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" | |
3841debe | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS' |
b4e70030 | 317 | ac_subst_files='host_makefile_frag target_makefile_frag' |
c906108c SS |
318 | |
319 | # Initialize some variables set by options. | |
bec39cab AC |
320 | ac_init_help= |
321 | ac_init_version=false | |
c906108c SS |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
bec39cab | 324 | cache_file=/dev/null |
c906108c | 325 | exec_prefix=NONE |
c906108c | 326 | no_create= |
c906108c SS |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
c906108c SS |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
bec39cab AC |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 347 | datadir='${prefix}/share' |
c906108c SS |
348 | sysconfdir='${prefix}/etc' |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
b4e70030 | 351 | libdir='${exec_prefix}/lib' |
c906108c SS |
352 | includedir='${prefix}/include' |
353 | oldincludedir='/usr/include' | |
b4e70030 JB |
354 | infodir='${prefix}/info' |
355 | mandir='${prefix}/man' | |
c906108c | 356 | |
c906108c SS |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
c906108c SS |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
b4e70030 | 362 | eval "$ac_prev=\$ac_option" |
c906108c SS |
363 | ac_prev= |
364 | continue | |
365 | fi | |
366 | ||
b4e70030 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
b4e70030 | 371 | case $ac_option in |
c906108c SS |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 376 | bindir=$ac_optarg ;; |
c906108c SS |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 379 | ac_prev=build_alias ;; |
c906108c | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 381 | build_alias=$ac_optarg ;; |
c906108c SS |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
c906108c | 392 | |
b4e70030 | 393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 394 | ac_prev=datadir ;; |
b4e70030 JB |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
396 | | --da=*) | |
bec39cab | 397 | datadir=$ac_optarg ;; |
c906108c SS |
398 | |
399 | -disable-* | --disable-*) | |
bec39cab | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 401 | # Reject names that are not valid shell variable names. |
bec39cab AC |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 | 406 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
407 | |
408 | -enable-* | --enable-*) | |
bec39cab | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 410 | # Reject names that are not valid shell variable names. |
bec39cab AC |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 JB |
415 | case $ac_option in |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 428 | exec_prefix=$ac_optarg ;; |
c906108c SS |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
bec39cab AC |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
c906108c SS |
440 | |
441 | -host | --host | --hos | --ho) | |
bec39cab | 442 | ac_prev=host_alias ;; |
c906108c | 443 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 444 | host_alias=$ac_optarg ;; |
c906108c SS |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 451 | includedir=$ac_optarg ;; |
c906108c SS |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 456 | infodir=$ac_optarg ;; |
c906108c SS |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 461 | libdir=$ac_optarg ;; |
c906108c SS |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 468 | libexecdir=$ac_optarg ;; |
c906108c SS |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
471 | | --localstate | --localstat | --localsta | --localst \ |
472 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
473 | ac_prev=localstatedir ;; |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 477 | localstatedir=$ac_optarg ;; |
c906108c SS |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 482 | mandir=$ac_optarg ;; |
c906108c SS |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 489 | | --no-cr | --no-c | -n) |
c906108c SS |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 503 | oldincludedir=$ac_optarg ;; |
c906108c SS |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 508 | prefix=$ac_optarg ;; |
c906108c SS |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 515 | program_prefix=$ac_optarg ;; |
c906108c SS |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 522 | program_suffix=$ac_optarg ;; |
c906108c SS |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 539 | program_transform_name=$ac_optarg ;; |
c906108c SS |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
bec39cab | 549 | sbindir=$ac_optarg ;; |
c906108c SS |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
bec39cab | 560 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
bec39cab | 565 | site=$ac_optarg ;; |
3ace7edb | 566 | |
c906108c SS |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 570 | srcdir=$ac_optarg ;; |
c906108c SS |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 577 | sysconfdir=$ac_optarg ;; |
c906108c SS |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 580 | ac_prev=target_alias ;; |
c906108c | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 582 | target_alias=$ac_optarg ;; |
c906108c SS |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
bec39cab AC |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
c906108c SS |
589 | |
590 | -with-* | --with-*) | |
bec39cab | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 592 | # Reject names that are not valid shell variable names. |
bec39cab AC |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
c906108c | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
602 | |
603 | -without-* | --without-*) | |
bec39cab | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 605 | # Reject names that are not valid shell variable names. |
bec39cab AC |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
b4e70030 | 610 | eval "with_$ac_package=no" ;; |
c906108c SS |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 621 | x_includes=$ac_optarg ;; |
c906108c SS |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 628 | x_libraries=$ac_optarg ;; |
c906108c | 629 | |
bec39cab AC |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
c906108c SS |
633 | ;; |
634 | ||
bec39cab AC |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
642 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
643 | export $ac_envvar ;; |
644 | ||
c906108c | 645 | *) |
bec39cab AC |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
bec39cab AC |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
c906108c | 660 | fi |
c906108c | 661 | |
b4e70030 JB |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
c906108c | 664 | do |
b4e70030 | 665 | eval ac_val=$`echo $ac_var` |
bec39cab | 666 | case $ac_val in |
b4e70030 JB |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
675 | localstatedir libdir includedir oldincludedir infodir mandir | |
676 | do | |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
c906108c SS |
682 | esac |
683 | done | |
684 | ||
bec39cab AC |
685 | # There might be people who depend on the old broken behavior: `$host' |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
c906108c | 702 | |
bec39cab AC |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 707 | |
c906108c SS |
708 | |
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
712 | # Try the directory containing this script, then its parent. |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
717 | X"$0" : 'X\(/\)' \| \ |
718 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 719 | echo X"$0" | |
b4e70030 JB |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
c906108c | 725 | srcdir=$ac_confdir |
b4e70030 | 726 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
727 | srcdir=.. |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
b4e70030 JB |
732 | if test ! -r $srcdir/$ac_unique_file; then |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 738 | { (exit 1); exit 1; }; } |
b4e70030 | 739 | fi |
c906108c | 740 | fi |
b4e70030 JB |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 743 | { (exit 1); exit 1; }; } |
b4e70030 JB |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
c906108c | 777 | |
bec39cab AC |
778 | # |
779 | # Report the --help message. | |
780 | # | |
781 | if test "$ac_init_help" = "long"; then | |
782 | # Omit some internal or obsolete options to make the list less imposing. | |
783 | # This message is too long to be a string in the A/UX 3.1 sh. | |
784 | cat <<_ACEOF | |
785 | \`configure' configures this package to adapt to many kinds of systems. | |
786 | ||
787 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
788 | ||
789 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
790 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
791 | ||
792 | Defaults for the options are specified in brackets. | |
793 | ||
794 | Configuration: | |
795 | -h, --help display this help and exit | |
796 | --help=short display options specific to this package | |
797 | --help=recursive display the short help of all the included packages | |
798 | -V, --version display version information and exit | |
799 | -q, --quiet, --silent do not print \`checking...' messages | |
800 | --cache-file=FILE cache test results in FILE [disabled] | |
801 | -C, --config-cache alias for \`--cache-file=config.cache' | |
802 | -n, --no-create do not create output files | |
803 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
804 | ||
b4e70030 JB |
805 | _ACEOF |
806 | ||
807 | cat <<_ACEOF | |
bec39cab AC |
808 | Installation directories: |
809 | --prefix=PREFIX install architecture-independent files in PREFIX | |
810 | [$ac_default_prefix] | |
811 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
812 | [PREFIX] | |
813 | ||
814 | By default, \`make install' will install all the files in | |
815 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
816 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
817 | for instance \`--prefix=\$HOME'. | |
818 | ||
819 | For better control, use the options below. | |
820 | ||
821 | Fine tuning of the installation directories: | |
822 | --bindir=DIR user executables [EPREFIX/bin] | |
823 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
824 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b4e70030 | 825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
826 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
827 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
828 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
829 | --libdir=DIR object code libraries [EPREFIX/lib] | |
830 | --includedir=DIR C header files [PREFIX/include] | |
831 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
b4e70030 JB |
832 | --infodir=DIR info documentation [PREFIX/info] |
833 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
834 | _ACEOF |
835 | ||
836 | cat <<\_ACEOF | |
837 | ||
838 | Program names: | |
839 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
840 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
841 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
842 | ||
843 | X features: | |
844 | --x-includes=DIR X include files are in DIR | |
845 | --x-libraries=DIR X library files are in DIR | |
846 | ||
847 | System types: | |
848 | --build=BUILD configure for building on BUILD [guessed] | |
849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
850 | --target=TARGET configure for building compilers for TARGET [HOST] | |
851 | _ACEOF | |
852 | fi | |
853 | ||
854 | if test -n "$ac_init_help"; then | |
855 | ||
856 | cat <<\_ACEOF | |
857 | ||
858 | Optional Features: | |
859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
861 | --enable-maintainer-mode enable make rules and dependencies not useful |
862 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
863 | --disable-gdbcli disable command-line interface (CLI) |
864 | --disable-gdbmi disable machine-interface (MI) | |
865 | --enable-tui enable full-screen terminal user interface (TUI) | |
866 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
867 | --enable-profiling enable profiling of GDB | |
3841debe | 868 | --disable-rpath do not hardcode runtime library paths |
094a342e | 869 | --enable-werror treat compile warnings as errors |
bec39cab AC |
870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
872 | --enable-sim Link gdb with simulator | |
873 | --enable-multi-ice build the multi-ice-gdb-server | |
874 | ||
875 | Optional Packages: | |
876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
878 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
879 | --with-libunwind Use libunwind frame unwinding support | |
3841debe DJ |
880 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
881 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
882 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
883 | --without-included-regex don't use included regex; this is the default |
884 | on systems with version 2 of the GNU C library | |
885 | (use with caution on other system) | |
886 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
887 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
888 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
889 | --with-tclinclude=DIR Directory where tcl private headers are | |
890 | --with-tkinclude=DIR Directory where tk private headers are | |
891 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
892 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
893 | --with-x use the X Window System | |
894 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
895 | ||
896 | Some influential environment variables: | |
897 | CC C compiler command | |
898 | CFLAGS C compiler flags | |
899 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
900 | nonstandard directory <lib dir> | |
b4e70030 JB |
901 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
902 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
903 | CPP C preprocessor |
904 | ||
905 | Use these variables to override the choices made by `configure' or to help | |
906 | it to find libraries and programs with nonstandard names/locations. | |
907 | ||
908 | _ACEOF | |
909 | fi | |
910 | ||
911 | if test "$ac_init_help" = "recursive"; then | |
912 | # If there are subdirs, report their specific --help. | |
b4e70030 | 913 | ac_popdir=`pwd` |
bec39cab AC |
914 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
915 | test -d $ac_dir || continue | |
916 | ac_builddir=. | |
917 | ||
b4e70030 | 918 | if test "$ac_dir" != .; then |
bec39cab | 919 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
920 | # A "../" for each directory in $ac_dir_suffix. |
921 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
922 | else | |
923 | ac_dir_suffix= ac_top_builddir= | |
924 | fi | |
bec39cab AC |
925 | |
926 | case $srcdir in | |
b4e70030 | 927 | .) # No --srcdir option. We are building in place. |
bec39cab | 928 | ac_srcdir=. |
b4e70030 JB |
929 | if test -z "$ac_top_builddir"; then |
930 | ac_top_srcdir=. | |
931 | else | |
932 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
933 | fi ;; | |
934 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 935 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
936 | ac_top_srcdir=$srcdir ;; |
937 | *) # Relative path. | |
938 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
939 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
940 | esac | |
941 | ||
942 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
943 | # the directories may not exist. | |
944 | case `pwd` in | |
945 | .) ac_abs_builddir="$ac_dir";; | |
946 | *) | |
947 | case "$ac_dir" in | |
948 | .) ac_abs_builddir=`pwd`;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
950 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
955 | *) | |
956 | case ${ac_top_builddir}. in | |
957 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
959 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
960 | esac;; | |
961 | esac | |
962 | case $ac_abs_builddir in | |
963 | .) ac_abs_srcdir=$ac_srcdir;; | |
964 | *) | |
965 | case $ac_srcdir in | |
966 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
967 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
968 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
969 | esac;; | |
970 | esac | |
971 | case $ac_abs_builddir in | |
972 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
973 | *) | |
974 | case $ac_top_srcdir in | |
975 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
976 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
977 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
978 | esac;; | |
bec39cab AC |
979 | esac |
980 | ||
b4e70030 JB |
981 | cd $ac_dir |
982 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 983 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 984 | echo |
bec39cab AC |
985 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
986 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 987 | echo |
bec39cab | 988 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
989 | elif test -f $ac_srcdir/configure.ac || |
990 | test -f $ac_srcdir/configure.in; then | |
991 | echo | |
992 | $ac_configure --help | |
3ace7edb | 993 | else |
bec39cab | 994 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
995 | fi |
996 | cd $ac_popdir | |
bec39cab AC |
997 | done |
998 | fi | |
999 | ||
b4e70030 | 1000 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1001 | if $ac_init_version; then |
1002 | cat <<\_ACEOF | |
1003 | ||
b4e70030 | 1004 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1005 | This configure script is free software; the Free Software Foundation |
1006 | gives unlimited permission to copy, distribute and modify it. | |
1007 | _ACEOF | |
b4e70030 | 1008 | exit 0 |
bec39cab | 1009 | fi |
b4e70030 JB |
1010 | exec 5>config.log |
1011 | cat >&5 <<_ACEOF | |
bec39cab AC |
1012 | This file contains any messages produced by compilers while |
1013 | running configure, to aid debugging if configure makes a mistake. | |
1014 | ||
1015 | It was created by $as_me, which was | |
b4e70030 | 1016 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1017 | |
1018 | $ $0 $@ | |
1019 | ||
1020 | _ACEOF | |
1021 | { | |
1022 | cat <<_ASUNAME | |
1023 | ## --------- ## | |
1024 | ## Platform. ## | |
1025 | ## --------- ## | |
1026 | ||
1027 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1028 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1029 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1030 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1031 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1032 | ||
1033 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1034 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1035 | ||
1036 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1037 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1038 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1039 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1040 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1041 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1042 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1043 | ||
1044 | _ASUNAME | |
1045 | ||
1046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1047 | for as_dir in $PATH | |
1048 | do | |
1049 | IFS=$as_save_IFS | |
1050 | test -z "$as_dir" && as_dir=. | |
1051 | echo "PATH: $as_dir" | |
1052 | done | |
1053 | ||
1054 | } >&5 | |
1055 | ||
1056 | cat >&5 <<_ACEOF | |
1057 | ||
1058 | ||
1059 | ## ----------- ## | |
1060 | ## Core tests. ## | |
1061 | ## ----------- ## | |
1062 | ||
1063 | _ACEOF | |
1064 | ||
1065 | ||
1066 | # Keep a trace of the command line. | |
1067 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1068 | # Strip out --silent because we don't want to record it for future runs. | |
1069 | # Also quote any args containing shell meta-characters. | |
1070 | # Make two passes to allow for proper duplicate-argument suppression. | |
1071 | ac_configure_args= | |
1072 | ac_configure_args0= | |
1073 | ac_configure_args1= | |
1074 | ac_sep= | |
1075 | ac_must_keep_next=false | |
1076 | for ac_pass in 1 2 | |
1077 | do | |
1078 | for ac_arg | |
1079 | do | |
1080 | case $ac_arg in | |
1081 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1082 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1083 | | -silent | --silent | --silen | --sile | --sil) | |
1084 | continue ;; | |
b4e70030 | 1085 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1086 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1087 | esac | |
1088 | case $ac_pass in | |
1089 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1090 | 2) | |
1091 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1092 | if test $ac_must_keep_next = true; then | |
1093 | ac_must_keep_next=false # Got value, back to normal. | |
1094 | else | |
1095 | case $ac_arg in | |
1096 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1097 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1098 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1099 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1100 | case "$ac_configure_args0 " in | |
1101 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1102 | esac | |
1103 | ;; | |
1104 | -* ) ac_must_keep_next=true ;; | |
1105 | esac | |
1106 | fi | |
1107 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1108 | # Get rid of the leading space. | |
1109 | ac_sep=" " | |
1110 | ;; | |
1111 | esac | |
1112 | done | |
1113 | done | |
1114 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1115 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1116 | ||
1117 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1118 | # config.log. We remove comments because anyway the quotes in there | |
1119 | # would cause problems or look ugly. | |
b4e70030 JB |
1120 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1121 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1122 | trap 'exit_status=$? |
1123 | # Save into config.log some information that might help in debugging. | |
1124 | { | |
1125 | echo | |
1126 | ||
1127 | cat <<\_ASBOX | |
1128 | ## ---------------- ## | |
1129 | ## Cache variables. ## | |
1130 | ## ---------------- ## | |
1131 | _ASBOX | |
1132 | echo | |
1133 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1134 | { |
bec39cab | 1135 | (set) 2>&1 | |
b4e70030 JB |
1136 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1137 | *ac_space=\ *) | |
bec39cab | 1138 | sed -n \ |
b4e70030 JB |
1139 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1140 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1141 | ;; | |
bec39cab | 1142 | *) |
b4e70030 JB |
1143 | sed -n \ |
1144 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1145 | ;; |
b4e70030 JB |
1146 | esac; |
1147 | } | |
bec39cab AC |
1148 | echo |
1149 | ||
1150 | cat <<\_ASBOX | |
1151 | ## ----------------- ## | |
1152 | ## Output variables. ## | |
1153 | ## ----------------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | for ac_var in $ac_subst_vars | |
1157 | do | |
b4e70030 JB |
1158 | eval ac_val=$`echo $ac_var` |
1159 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1160 | done | sort |
1161 | echo | |
1162 | ||
1163 | if test -n "$ac_subst_files"; then | |
1164 | cat <<\_ASBOX | |
b4e70030 JB |
1165 | ## ------------- ## |
1166 | ## Output files. ## | |
1167 | ## ------------- ## | |
bec39cab AC |
1168 | _ASBOX |
1169 | echo | |
1170 | for ac_var in $ac_subst_files | |
1171 | do | |
b4e70030 JB |
1172 | eval ac_val=$`echo $ac_var` |
1173 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1174 | done | sort |
1175 | echo | |
1176 | fi | |
1177 | ||
1178 | if test -s confdefs.h; then | |
1179 | cat <<\_ASBOX | |
1180 | ## ----------- ## | |
1181 | ## confdefs.h. ## | |
1182 | ## ----------- ## | |
1183 | _ASBOX | |
1184 | echo | |
b4e70030 | 1185 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1186 | echo |
3ace7edb | 1187 | fi |
bec39cab AC |
1188 | test "$ac_signal" != 0 && |
1189 | echo "$as_me: caught signal $ac_signal" | |
1190 | echo "$as_me: exit $exit_status" | |
1191 | } >&5 | |
b4e70030 JB |
1192 | rm -f core *.core && |
1193 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1194 | exit $exit_status |
b4e70030 | 1195 | ' 0 |
bec39cab AC |
1196 | for ac_signal in 1 2 13 15; do |
1197 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1198 | done | |
1199 | ac_signal=0 | |
1200 | ||
1201 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1202 | rm -rf conftest* confdefs.h |
1203 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1204 | echo >confdefs.h | |
bec39cab AC |
1205 | |
1206 | # Predefined preprocessor variables. | |
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | cat >>confdefs.h <<_ACEOF | |
1224 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1225 | _ACEOF | |
1226 | ||
1227 | ||
1228 | cat >>confdefs.h <<_ACEOF | |
1229 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1230 | _ACEOF | |
1231 | ||
1232 | ||
1233 | # Let the site file select an alternate cache file if it wants to. | |
1234 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1235 | if test -z "$CONFIG_SITE"; then |
1236 | if test "x$prefix" != xNONE; then | |
1237 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1238 | else | |
1239 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1240 | fi | |
c906108c | 1241 | fi |
b4e70030 | 1242 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1243 | if test -r "$ac_site_file"; then |
bec39cab AC |
1244 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1245 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1246 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1247 | . "$ac_site_file" |
1248 | fi | |
1249 | done | |
1250 | ||
1251 | if test -r "$cache_file"; then | |
bec39cab AC |
1252 | # Some versions of bash will fail to source /dev/null (special |
1253 | # files actually), so we avoid doing that. | |
1254 | if test -f "$cache_file"; then | |
1255 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1256 | echo "$as_me: loading cache $cache_file" >&6;} | |
1257 | case $cache_file in | |
1258 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1259 | *) . ./$cache_file;; | |
1260 | esac | |
1261 | fi | |
c906108c | 1262 | else |
bec39cab AC |
1263 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1264 | echo "$as_me: creating cache $cache_file" >&6;} | |
1265 | >$cache_file | |
1266 | fi | |
1267 | ||
1268 | # Check that the precious variables saved in the cache have kept the same | |
1269 | # value. | |
1270 | ac_cache_corrupted=false | |
b4e70030 JB |
1271 | for ac_var in `(set) 2>&1 | |
1272 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1273 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1274 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1275 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1276 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1277 | case $ac_old_set,$ac_new_set in |
1278 | set,) | |
1279 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1280 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1281 | ac_cache_corrupted=: ;; | |
1282 | ,set) | |
1283 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1284 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1285 | ac_cache_corrupted=: ;; | |
1286 | ,);; | |
1287 | *) | |
1288 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1289 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1290 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1291 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1292 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1293 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1294 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1295 | ac_cache_corrupted=: | |
1296 | fi;; | |
1297 | esac | |
1298 | # Pass precious variables to config.status. | |
1299 | if test "$ac_new_set" = set; then | |
1300 | case $ac_new_val in | |
b4e70030 JB |
1301 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1302 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1303 | *) ac_arg=$ac_var=$ac_new_val ;; |
1304 | esac | |
1305 | case " $ac_configure_args " in | |
1306 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1307 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1308 | esac | |
1309 | fi | |
1310 | done | |
1311 | if $ac_cache_corrupted; then | |
1312 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1313 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1314 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1315 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1316 | { (exit 1); exit 1; }; } | |
c906108c SS |
1317 | fi |
1318 | ||
b4e70030 JB |
1319 | ac_ext=c |
1320 | ac_cpp='$CPP $CPPFLAGS' | |
1321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1324 | |
1325 | ||
bec39cab AC |
1326 | |
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
bec39cab | 1342 | |
b4e70030 JB |
1343 | ac_config_headers="$ac_config_headers config.h:config.in" |
1344 | ||
1345 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1346 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1347 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1348 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1349 | enableval="$enable_maintainer_mode" |
1350 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1351 | else |
1352 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1353 | fi; |
1354 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1355 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1356 | |
413ccac7 AC |
1357 | |
1358 | if test $USE_MAINTAINER_MODE = yes; then | |
1359 | MAINTAINER_MODE_TRUE= | |
1360 | MAINTAINER_MODE_FALSE='#' | |
1361 | else | |
1362 | MAINTAINER_MODE_TRUE='#' | |
1363 | MAINTAINER_MODE_FALSE= | |
1364 | fi | |
85981d60 | 1365 | |
413ccac7 | 1366 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1367 | |
c906108c | 1368 | |
bec39cab AC |
1369 | |
1370 | ac_ext=c | |
1371 | ac_cpp='$CPP $CPPFLAGS' | |
1372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1375 | if test -n "$ac_tool_prefix"; then | |
1376 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1377 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1380 | if test "${ac_cv_prog_CC+set}" = set; then |
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1382 | else | |
1383 | if test -n "$CC"; then | |
1384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1385 | else | |
1386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1387 | for as_dir in $PATH | |
1388 | do | |
1389 | IFS=$as_save_IFS | |
1390 | test -z "$as_dir" && as_dir=. | |
1391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1393 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1395 | break 2 | |
1396 | fi | |
1397 | done | |
1398 | done | |
1399 | ||
1400 | fi | |
1401 | fi | |
1402 | CC=$ac_cv_prog_CC | |
1403 | if test -n "$CC"; then | |
b4e70030 JB |
1404 | echo "$as_me:$LINENO: result: $CC" >&5 |
1405 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1406 | else |
b4e70030 JB |
1407 | echo "$as_me:$LINENO: result: no" >&5 |
1408 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1409 | fi |
1410 | ||
1411 | fi | |
1412 | if test -z "$ac_cv_prog_CC"; then | |
1413 | ac_ct_CC=$CC | |
1414 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1415 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1420 | else | |
1421 | if test -n "$ac_ct_CC"; then | |
1422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1423 | else | |
1424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1425 | for as_dir in $PATH | |
1426 | do | |
1427 | IFS=$as_save_IFS | |
1428 | test -z "$as_dir" && as_dir=. | |
1429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1431 | ac_cv_prog_ac_ct_CC="gcc" |
1432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1433 | break 2 | |
1434 | fi | |
1435 | done | |
1436 | done | |
1437 | ||
1438 | fi | |
1439 | fi | |
1440 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1441 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1442 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1443 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1444 | else |
b4e70030 JB |
1445 | echo "$as_me:$LINENO: result: no" >&5 |
1446 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1447 | fi |
1448 | ||
b4e70030 | 1449 | CC=$ac_ct_CC |
bec39cab AC |
1450 | else |
1451 | CC="$ac_cv_prog_CC" | |
1452 | fi | |
1453 | ||
1454 | if test -z "$CC"; then | |
b4e70030 JB |
1455 | if test -n "$ac_tool_prefix"; then |
1456 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1457 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1460 | if test "${ac_cv_prog_CC+set}" = set; then |
1461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1462 | else |
1463 | if test -n "$CC"; then | |
1464 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1465 | else | |
bec39cab AC |
1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1467 | for as_dir in $PATH | |
1468 | do | |
1469 | IFS=$as_save_IFS | |
1470 | test -z "$as_dir" && as_dir=. | |
1471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1473 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1475 | break 2 | |
1476 | fi | |
1477 | done | |
1478 | done | |
1479 | ||
c906108c SS |
1480 | fi |
1481 | fi | |
bec39cab | 1482 | CC=$ac_cv_prog_CC |
c906108c | 1483 | if test -n "$CC"; then |
b4e70030 JB |
1484 | echo "$as_me:$LINENO: result: $CC" >&5 |
1485 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1486 | else |
b4e70030 JB |
1487 | echo "$as_me:$LINENO: result: no" >&5 |
1488 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1489 | fi |
1490 | ||
b4e70030 JB |
1491 | fi |
1492 | if test -z "$ac_cv_prog_CC"; then | |
1493 | ac_ct_CC=$CC | |
1494 | # Extract the first word of "cc", so it can be a program name with args. | |
1495 | set dummy cc; ac_word=$2 | |
1496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1498 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1500 | else | |
1501 | if test -n "$ac_ct_CC"; then | |
1502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1503 | else | |
1504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1505 | for as_dir in $PATH | |
1506 | do | |
1507 | IFS=$as_save_IFS | |
1508 | test -z "$as_dir" && as_dir=. | |
1509 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1511 | ac_cv_prog_ac_ct_CC="cc" | |
1512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1513 | break 2 | |
4e8d927d | 1514 | fi |
b4e70030 JB |
1515 | done |
1516 | done | |
1517 | ||
1518 | fi | |
1519 | fi | |
1520 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1521 | if test -n "$ac_ct_CC"; then | |
1522 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1523 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1524 | else | |
1525 | echo "$as_me:$LINENO: result: no" >&5 | |
1526 | echo "${ECHO_T}no" >&6 | |
1527 | fi | |
1528 | ||
1529 | CC=$ac_ct_CC | |
1530 | else | |
1531 | CC="$ac_cv_prog_CC" | |
1532 | fi | |
1533 | ||
bec39cab | 1534 | fi |
c906108c SS |
1535 | if test -z "$CC"; then |
1536 | # Extract the first word of "cc", so it can be a program name with args. | |
1537 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1540 | if test "${ac_cv_prog_CC+set}" = set; then |
1541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1542 | else |
1543 | if test -n "$CC"; then | |
1544 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1545 | else | |
c906108c | 1546 | ac_prog_rejected=no |
bec39cab AC |
1547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1548 | for as_dir in $PATH | |
1549 | do | |
1550 | IFS=$as_save_IFS | |
1551 | test -z "$as_dir" && as_dir=. | |
1552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1554 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1555 | ac_prog_rejected=yes | |
1556 | continue | |
1557 | fi | |
1558 | ac_cv_prog_CC="cc" | |
1559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1560 | break 2 | |
1561 | fi | |
1562 | done | |
1563 | done | |
1564 | ||
c906108c SS |
1565 | if test $ac_prog_rejected = yes; then |
1566 | # We found a bogon in the path, so make sure we never use it. | |
1567 | set dummy $ac_cv_prog_CC | |
1568 | shift | |
bec39cab | 1569 | if test $# != 0; then |
c906108c SS |
1570 | # We chose a different compiler from the bogus one. |
1571 | # However, it has the same basename, so the bogon will be chosen | |
1572 | # first if we set CC to just the basename; use the full file name. | |
1573 | shift | |
bec39cab | 1574 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1575 | fi |
1576 | fi | |
1577 | fi | |
1578 | fi | |
bec39cab | 1579 | CC=$ac_cv_prog_CC |
c906108c | 1580 | if test -n "$CC"; then |
b4e70030 JB |
1581 | echo "$as_me:$LINENO: result: $CC" >&5 |
1582 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1583 | else |
b4e70030 JB |
1584 | echo "$as_me:$LINENO: result: no" >&5 |
1585 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1586 | fi |
1587 | ||
bec39cab AC |
1588 | fi |
1589 | if test -z "$CC"; then | |
1590 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1591 | for ac_prog in cl |
bec39cab AC |
1592 | do |
1593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1597 | if test "${ac_cv_prog_CC+set}" = set; then |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1599 | else |
1600 | if test -n "$CC"; then | |
1601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1602 | else | |
bec39cab AC |
1603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1604 | for as_dir in $PATH | |
1605 | do | |
1606 | IFS=$as_save_IFS | |
1607 | test -z "$as_dir" && as_dir=. | |
1608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1610 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1612 | break 2 | |
1613 | fi | |
1614 | done | |
1615 | done | |
1616 | ||
c906108c SS |
1617 | fi |
1618 | fi | |
bec39cab | 1619 | CC=$ac_cv_prog_CC |
c906108c | 1620 | if test -n "$CC"; then |
b4e70030 JB |
1621 | echo "$as_me:$LINENO: result: $CC" >&5 |
1622 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1623 | else |
b4e70030 JB |
1624 | echo "$as_me:$LINENO: result: no" >&5 |
1625 | echo "${ECHO_T}no" >&6 | |
c906108c | 1626 | fi |
bec39cab AC |
1627 | |
1628 | test -n "$CC" && break | |
1629 | done | |
1630 | fi | |
1631 | if test -z "$CC"; then | |
1632 | ac_ct_CC=$CC | |
b4e70030 | 1633 | for ac_prog in cl |
bec39cab AC |
1634 | do |
1635 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1636 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1639 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1641 | else | |
1642 | if test -n "$ac_ct_CC"; then | |
1643 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1644 | else | |
1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1646 | for as_dir in $PATH | |
1647 | do | |
1648 | IFS=$as_save_IFS | |
1649 | test -z "$as_dir" && as_dir=. | |
1650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1652 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1654 | break 2 | |
c906108c | 1655 | fi |
bec39cab AC |
1656 | done |
1657 | done | |
1658 | ||
1659 | fi | |
1660 | fi | |
1661 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1662 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1663 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1664 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1665 | else |
b4e70030 JB |
1666 | echo "$as_me:$LINENO: result: no" >&5 |
1667 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1668 | fi |
1669 | ||
bec39cab AC |
1670 | test -n "$ac_ct_CC" && break |
1671 | done | |
c906108c | 1672 | |
b4e70030 | 1673 | CC=$ac_ct_CC |
bec39cab AC |
1674 | fi |
1675 | ||
1676 | fi | |
1677 | ||
1678 | ||
1679 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1680 | See \`config.log' for more details." >&5 | |
1681 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1682 | See \`config.log' for more details." >&2;} | |
1683 | { (exit 1); exit 1; }; } | |
1684 | ||
1685 | # Provide some information about the compiler. | |
b4e70030 JB |
1686 | echo "$as_me:$LINENO:" \ |
1687 | "checking for C compiler version" >&5 | |
bec39cab | 1688 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1690 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1691 | ac_status=$? |
1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1693 | (exit $ac_status); } | |
b4e70030 JB |
1694 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1695 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1696 | ac_status=$? |
1697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1698 | (exit $ac_status); } | |
b4e70030 JB |
1699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1700 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1701 | ac_status=$? |
1702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1703 | (exit $ac_status); } | |
1704 | ||
1705 | cat >conftest.$ac_ext <<_ACEOF | |
1706 | /* confdefs.h. */ | |
1707 | _ACEOF | |
1708 | cat confdefs.h >>conftest.$ac_ext | |
1709 | cat >>conftest.$ac_ext <<_ACEOF | |
1710 | /* end confdefs.h. */ | |
1711 | ||
1712 | int | |
1713 | main () | |
1714 | { | |
1715 | ||
1716 | ; | |
1717 | return 0; | |
1718 | } | |
1719 | _ACEOF | |
1720 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1721 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1722 | # Try to create an executable without -o first, disregard a.out. |
1723 | # It will help us diagnose broken compilers, and finding out an intuition | |
1724 | # of exeext. | |
b4e70030 JB |
1725 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1726 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1727 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1728 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1729 | (eval $ac_link_default) 2>&5 | |
1730 | ac_status=$? | |
1731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1732 | (exit $ac_status); }; then | |
b4e70030 JB |
1733 | # Find the output, starting from the most likely. This scheme is |
1734 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1735 | # resort. | |
1736 | ||
1737 | # Be careful to initialize this variable, since it used to be cached. | |
1738 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1739 | ac_cv_exeext= | |
1740 | # b.out is created by i960 compilers. | |
1741 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1742 | do |
1743 | test -f "$ac_file" || continue | |
1744 | case $ac_file in | |
b4e70030 JB |
1745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1746 | ;; | |
1747 | conftest.$ac_ext ) | |
1748 | # This is the source file. | |
1749 | ;; | |
1750 | [ab].out ) | |
1751 | # We found the default executable, but exeext='' is most | |
1752 | # certainly right. | |
1753 | break;; | |
1754 | *.* ) | |
1755 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1756 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1757 | # but it would be cool to find out if it's true. Does anybody | |
1758 | # maintain Libtool? --akim. | |
1759 | export ac_cv_exeext | |
1760 | break;; | |
1761 | * ) | |
1762 | break;; | |
bec39cab AC |
1763 | esac |
1764 | done | |
1765 | else | |
1766 | echo "$as_me: failed program was:" >&5 | |
1767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1768 | ||
1769 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1770 | See \`config.log' for more details." >&5 | |
1771 | echo "$as_me: error: C compiler cannot create executables | |
1772 | See \`config.log' for more details." >&2;} | |
1773 | { (exit 77); exit 77; }; } | |
1774 | fi | |
1775 | ||
b4e70030 JB |
1776 | ac_exeext=$ac_cv_exeext |
1777 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1778 | echo "${ECHO_T}$ac_file" >&6 | |
1779 | ||
1780 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1781 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1782 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1783 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1784 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1785 | # If not cross compiling, check that we can run a simple program. | |
1786 | if test "$cross_compiling" != yes; then | |
1787 | if { ac_try='./$ac_file' | |
1788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1789 | (eval $ac_try) 2>&5 | |
1790 | ac_status=$? | |
1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1792 | (exit $ac_status); }; }; then | |
1793 | cross_compiling=no | |
c906108c | 1794 | else |
bec39cab AC |
1795 | if test "$cross_compiling" = maybe; then |
1796 | cross_compiling=yes | |
1797 | else | |
1798 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1799 | If you meant to cross compile, use \`--host'. | |
1800 | See \`config.log' for more details." >&5 | |
1801 | echo "$as_me: error: cannot run C compiled programs. | |
1802 | If you meant to cross compile, use \`--host'. | |
1803 | See \`config.log' for more details." >&2;} | |
1804 | { (exit 1); exit 1; }; } | |
1805 | fi | |
c906108c | 1806 | fi |
bec39cab | 1807 | fi |
b4e70030 JB |
1808 | echo "$as_me:$LINENO: result: yes" >&5 |
1809 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1810 | |
b4e70030 JB |
1811 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1812 | ac_clean_files=$ac_clean_files_save | |
1813 | # Check the compiler produces executables we can run. If not, either | |
1814 | # the compiler is broken, or we cross compile. | |
1815 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1816 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1817 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1818 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1819 | |
b4e70030 JB |
1820 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1821 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1823 | (eval $ac_link) 2>&5 |
1824 | ac_status=$? | |
1825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1826 | (exit $ac_status); }; then | |
b4e70030 JB |
1827 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1828 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1829 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1830 | # `rm'. | |
1831 | for ac_file in conftest.exe conftest conftest.*; do | |
1832 | test -f "$ac_file" || continue | |
1833 | case $ac_file in | |
1834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1835 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1836 | export ac_cv_exeext | |
1837 | break;; | |
1838 | * ) break;; | |
1839 | esac | |
1840 | done | |
c906108c | 1841 | else |
bec39cab AC |
1842 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1843 | See \`config.log' for more details." >&5 | |
1844 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1845 | See \`config.log' for more details." >&2;} | |
1846 | { (exit 1); exit 1; }; } | |
c906108c | 1847 | fi |
c906108c | 1848 | |
b4e70030 JB |
1849 | rm -f conftest$ac_cv_exeext |
1850 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1851 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1852 | |
b4e70030 | 1853 | rm -f conftest.$ac_ext |
bec39cab AC |
1854 | EXEEXT=$ac_cv_exeext |
1855 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1856 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1857 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1858 | if test "${ac_cv_objext+set}" = set; then |
1859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1860 | else | |
b4e70030 JB |
1861 | cat >conftest.$ac_ext <<_ACEOF |
1862 | /* confdefs.h. */ | |
1863 | _ACEOF | |
1864 | cat confdefs.h >>conftest.$ac_ext | |
1865 | cat >>conftest.$ac_ext <<_ACEOF | |
1866 | /* end confdefs.h. */ | |
1867 | ||
1868 | int | |
1869 | main () | |
1870 | { | |
1871 | ||
1872 | ; | |
1873 | return 0; | |
1874 | } | |
1875 | _ACEOF | |
1876 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1878 | (eval $ac_compile) 2>&5 | |
1879 | ac_status=$? | |
1880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1881 | (exit $ac_status); }; then | |
b4e70030 | 1882 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1883 | case $ac_file in |
b4e70030 | 1884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1885 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1886 | break;; | |
1887 | esac | |
1888 | done | |
c906108c | 1889 | else |
bec39cab AC |
1890 | echo "$as_me: failed program was:" >&5 |
1891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1892 | ||
1893 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1894 | See \`config.log' for more details." >&5 | |
1895 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1896 | See \`config.log' for more details." >&2;} | |
1897 | { (exit 1); exit 1; }; } | |
c906108c SS |
1898 | fi |
1899 | ||
b4e70030 | 1900 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1901 | fi |
b4e70030 JB |
1902 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1903 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1904 | OBJEXT=$ac_cv_objext |
1905 | ac_objext=$OBJEXT | |
b4e70030 JB |
1906 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1907 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1908 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1910 | else |
bec39cab AC |
1911 | cat >conftest.$ac_ext <<_ACEOF |
1912 | /* confdefs.h. */ | |
1913 | _ACEOF | |
1914 | cat confdefs.h >>conftest.$ac_ext | |
1915 | cat >>conftest.$ac_ext <<_ACEOF | |
1916 | /* end confdefs.h. */ | |
1917 | ||
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | #ifndef __GNUC__ | |
1922 | choke me | |
1923 | #endif | |
1924 | ||
1925 | ; | |
1926 | return 0; | |
1927 | } | |
1928 | _ACEOF | |
1929 | rm -f conftest.$ac_objext | |
1930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1931 | (eval $ac_compile) 2>conftest.er1 | |
1932 | ac_status=$? | |
1933 | grep -v '^ *+' conftest.er1 >conftest.err | |
1934 | rm -f conftest.er1 | |
1935 | cat conftest.err >&5 | |
1936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1937 | (exit $ac_status); } && | |
b4e70030 JB |
1938 | { ac_try='test -z "$ac_c_werror_flag" |
1939 | || test ! -s conftest.err' | |
bec39cab AC |
1940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1941 | (eval $ac_try) 2>&5 | |
1942 | ac_status=$? | |
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1944 | (exit $ac_status); }; } && | |
1945 | { ac_try='test -s conftest.$ac_objext' | |
1946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1947 | (eval $ac_try) 2>&5 | |
1948 | ac_status=$? | |
1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1950 | (exit $ac_status); }; }; then | |
1951 | ac_compiler_gnu=yes | |
1952 | else | |
1953 | echo "$as_me: failed program was:" >&5 | |
1954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1955 | ||
b4e70030 | 1956 | ac_compiler_gnu=no |
bec39cab AC |
1957 | fi |
1958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1959 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1960 | ||
1961 | fi | |
b4e70030 JB |
1962 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1963 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1964 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1965 | ac_test_CFLAGS=${CFLAGS+set} | |
1966 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1967 | CFLAGS="-g" |
1968 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1969 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1970 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1972 | else | |
b4e70030 | 1973 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1974 | /* confdefs.h. */ |
1975 | _ACEOF | |
1976 | cat confdefs.h >>conftest.$ac_ext | |
1977 | cat >>conftest.$ac_ext <<_ACEOF | |
1978 | /* end confdefs.h. */ | |
1979 | ||
1980 | int | |
1981 | main () | |
1982 | { | |
1983 | ||
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | rm -f conftest.$ac_objext | |
1989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1990 | (eval $ac_compile) 2>conftest.er1 | |
1991 | ac_status=$? | |
1992 | grep -v '^ *+' conftest.er1 >conftest.err | |
1993 | rm -f conftest.er1 | |
1994 | cat conftest.err >&5 | |
1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1996 | (exit $ac_status); } && | |
b4e70030 JB |
1997 | { ac_try='test -z "$ac_c_werror_flag" |
1998 | || test ! -s conftest.err' | |
bec39cab AC |
1999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2000 | (eval $ac_try) 2>&5 | |
2001 | ac_status=$? | |
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2003 | (exit $ac_status); }; } && | |
2004 | { ac_try='test -s conftest.$ac_objext' | |
2005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2006 | (eval $ac_try) 2>&5 | |
2007 | ac_status=$? | |
2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2009 | (exit $ac_status); }; }; then | |
c906108c SS |
2010 | ac_cv_prog_cc_g=yes |
2011 | else | |
bec39cab AC |
2012 | echo "$as_me: failed program was:" >&5 |
2013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2014 | |
b4e70030 | 2015 | ac_cv_prog_cc_g=no |
4e8d927d | 2016 | fi |
bec39cab AC |
2017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2018 | fi | |
b4e70030 JB |
2019 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2020 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2021 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2022 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2023 | elif test $ac_cv_prog_cc_g = yes; then |
2024 | if test "$GCC" = yes; then | |
2025 | CFLAGS="-g -O2" | |
2026 | else | |
2027 | CFLAGS="-g" | |
2028 | fi | |
2029 | else | |
2030 | if test "$GCC" = yes; then | |
2031 | CFLAGS="-O2" | |
2032 | else | |
2033 | CFLAGS= | |
2034 | fi | |
2035 | fi | |
b4e70030 JB |
2036 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2037 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2038 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2040 | else | |
b4e70030 | 2041 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2042 | ac_save_CC=$CC |
2043 | cat >conftest.$ac_ext <<_ACEOF | |
2044 | /* confdefs.h. */ | |
2045 | _ACEOF | |
2046 | cat confdefs.h >>conftest.$ac_ext | |
2047 | cat >>conftest.$ac_ext <<_ACEOF | |
2048 | /* end confdefs.h. */ | |
c906108c SS |
2049 | #include <stdarg.h> |
2050 | #include <stdio.h> | |
2051 | #include <sys/types.h> | |
2052 | #include <sys/stat.h> | |
2053 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2054 | struct buf { int x; }; | |
2055 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2056 | static char *e (p, i) | |
2057 | char **p; | |
2058 | int i; | |
2059 | { | |
2060 | return p[i]; | |
2061 | } | |
2062 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2063 | { | |
2064 | char *s; | |
2065 | va_list v; | |
2066 | va_start (v,p); | |
2067 | s = g (p, va_arg (v,int)); | |
2068 | va_end (v); | |
2069 | return s; | |
2070 | } | |
bec39cab AC |
2071 | |
2072 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2073 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2074 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2075 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2076 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2077 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2078 | that's true only with -std1. */ |
bec39cab AC |
2079 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2080 | ||
c906108c SS |
2081 | int test (int i, double x); |
2082 | struct s1 {int (*f) (int a);}; | |
2083 | struct s2 {int (*f) (double a);}; | |
2084 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2085 | int argc; | |
2086 | char **argv; | |
bec39cab AC |
2087 | int |
2088 | main () | |
2089 | { | |
c906108c | 2090 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2091 | ; |
2092 | return 0; | |
2093 | } | |
2094 | _ACEOF | |
b4e70030 JB |
2095 | # Don't try gcc -ansi; that turns off useful extensions and |
2096 | # breaks some systems' header files. | |
2097 | # AIX -qlanglvl=ansi | |
2098 | # Ultrix and OSF/1 -std1 | |
2099 | # HP-UX 10.20 and later -Ae | |
2100 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2101 | # SVR4 -Xc -D__EXTENSIONS__ | |
2102 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2103 | do |
2104 | CC="$ac_save_CC $ac_arg" | |
2105 | rm -f conftest.$ac_objext | |
2106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2107 | (eval $ac_compile) 2>conftest.er1 | |
2108 | ac_status=$? | |
2109 | grep -v '^ *+' conftest.er1 >conftest.err | |
2110 | rm -f conftest.er1 | |
2111 | cat conftest.err >&5 | |
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2113 | (exit $ac_status); } && | |
b4e70030 JB |
2114 | { ac_try='test -z "$ac_c_werror_flag" |
2115 | || test ! -s conftest.err' | |
bec39cab AC |
2116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2117 | (eval $ac_try) 2>&5 | |
2118 | ac_status=$? | |
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2120 | (exit $ac_status); }; } && | |
2121 | { ac_try='test -s conftest.$ac_objext' | |
2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2123 | (eval $ac_try) 2>&5 | |
2124 | ac_status=$? | |
2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2126 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2127 | ac_cv_prog_cc_stdc=$ac_arg |
2128 | break | |
c906108c | 2129 | else |
bec39cab AC |
2130 | echo "$as_me: failed program was:" >&5 |
2131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2132 | ||
c906108c | 2133 | fi |
bec39cab | 2134 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2135 | done |
b4e70030 | 2136 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2137 | CC=$ac_save_CC |
c906108c SS |
2138 | |
2139 | fi | |
b4e70030 JB |
2140 | |
2141 | case "x$ac_cv_prog_cc_stdc" in | |
2142 | x|xno) | |
2143 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2144 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2145 | *) |
b4e70030 JB |
2146 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2147 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2148 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2149 | esac |
2150 | ||
b4e70030 JB |
2151 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2152 | # in C++ we need to declare it. In case someone uses the same compiler | |
2153 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2154 | # the declaration of exit, since it's the most demanding environment. | |
2155 | cat >conftest.$ac_ext <<_ACEOF | |
2156 | #ifndef __cplusplus | |
2157 | choke me | |
2158 | #endif | |
2159 | _ACEOF | |
2160 | rm -f conftest.$ac_objext | |
2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2162 | (eval $ac_compile) 2>conftest.er1 | |
2163 | ac_status=$? | |
2164 | grep -v '^ *+' conftest.er1 >conftest.err | |
2165 | rm -f conftest.er1 | |
2166 | cat conftest.err >&5 | |
2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2168 | (exit $ac_status); } && | |
2169 | { ac_try='test -z "$ac_c_werror_flag" | |
2170 | || test ! -s conftest.err' | |
2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2172 | (eval $ac_try) 2>&5 | |
2173 | ac_status=$? | |
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2175 | (exit $ac_status); }; } && | |
2176 | { ac_try='test -s conftest.$ac_objext' | |
2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2178 | (eval $ac_try) 2>&5 | |
2179 | ac_status=$? | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); }; }; then | |
2182 | for ac_declaration in \ | |
2183 | '' \ | |
2184 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2185 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2186 | 'extern "C" void exit (int) throw ();' \ | |
2187 | 'extern "C" void exit (int);' \ | |
2188 | 'void exit (int);' | |
2189 | do | |
2190 | cat >conftest.$ac_ext <<_ACEOF | |
2191 | /* confdefs.h. */ | |
2192 | _ACEOF | |
2193 | cat confdefs.h >>conftest.$ac_ext | |
2194 | cat >>conftest.$ac_ext <<_ACEOF | |
2195 | /* end confdefs.h. */ | |
2196 | $ac_declaration | |
2197 | #include <stdlib.h> | |
2198 | int | |
2199 | main () | |
2200 | { | |
2201 | exit (42); | |
2202 | ; | |
2203 | return 0; | |
2204 | } | |
2205 | _ACEOF | |
2206 | rm -f conftest.$ac_objext | |
2207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2208 | (eval $ac_compile) 2>conftest.er1 | |
2209 | ac_status=$? | |
2210 | grep -v '^ *+' conftest.er1 >conftest.err | |
2211 | rm -f conftest.er1 | |
2212 | cat conftest.err >&5 | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); } && | |
2215 | { ac_try='test -z "$ac_c_werror_flag" | |
2216 | || test ! -s conftest.err' | |
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2218 | (eval $ac_try) 2>&5 | |
2219 | ac_status=$? | |
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2221 | (exit $ac_status); }; } && | |
2222 | { ac_try='test -s conftest.$ac_objext' | |
2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2224 | (eval $ac_try) 2>&5 | |
2225 | ac_status=$? | |
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2227 | (exit $ac_status); }; }; then | |
2228 | : | |
2229 | else | |
2230 | echo "$as_me: failed program was:" >&5 | |
2231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2232 | ||
2233 | continue | |
2234 | fi | |
2235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2236 | cat >conftest.$ac_ext <<_ACEOF | |
2237 | /* confdefs.h. */ | |
2238 | _ACEOF | |
2239 | cat confdefs.h >>conftest.$ac_ext | |
2240 | cat >>conftest.$ac_ext <<_ACEOF | |
2241 | /* end confdefs.h. */ | |
2242 | $ac_declaration | |
2243 | int | |
2244 | main () | |
2245 | { | |
2246 | exit (42); | |
2247 | ; | |
2248 | return 0; | |
2249 | } | |
2250 | _ACEOF | |
2251 | rm -f conftest.$ac_objext | |
2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2253 | (eval $ac_compile) 2>conftest.er1 | |
2254 | ac_status=$? | |
2255 | grep -v '^ *+' conftest.er1 >conftest.err | |
2256 | rm -f conftest.er1 | |
2257 | cat conftest.err >&5 | |
2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2259 | (exit $ac_status); } && | |
2260 | { ac_try='test -z "$ac_c_werror_flag" | |
2261 | || test ! -s conftest.err' | |
2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2263 | (eval $ac_try) 2>&5 | |
2264 | ac_status=$? | |
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2266 | (exit $ac_status); }; } && | |
2267 | { ac_try='test -s conftest.$ac_objext' | |
2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2269 | (eval $ac_try) 2>&5 | |
2270 | ac_status=$? | |
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); }; }; then | |
2273 | break | |
2274 | else | |
2275 | echo "$as_me: failed program was:" >&5 | |
2276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2277 | ||
2278 | fi | |
2279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2280 | done | |
2281 | rm -f conftest* | |
2282 | if test -n "$ac_declaration"; then | |
2283 | echo '#ifdef __cplusplus' >>confdefs.h | |
2284 | echo $ac_declaration >>confdefs.h | |
2285 | echo '#endif' >>confdefs.h | |
2286 | fi | |
2287 | ||
2288 | else | |
2289 | echo "$as_me: failed program was:" >&5 | |
2290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2291 | |
b4e70030 JB |
2292 | fi |
2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2294 | ac_ext=c |
2295 | ac_cpp='$CPP $CPPFLAGS' | |
2296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2299 | |
60ca704f | 2300 | |
bec39cab AC |
2301 | cat >>confdefs.h <<\_ACEOF |
2302 | #define _GNU_SOURCE 1 | |
2303 | _ACEOF | |
c906108c SS |
2304 | |
2305 | ||
8bb2c122 | 2306 | |
bec39cab AC |
2307 | ac_ext=c |
2308 | ac_cpp='$CPP $CPPFLAGS' | |
2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2312 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2313 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2314 | # On Suns, sometimes $CPP names a directory. |
2315 | if test -n "$CPP" && test -d "$CPP"; then | |
2316 | CPP= | |
8bb2c122 | 2317 | fi |
bec39cab AC |
2318 | if test -z "$CPP"; then |
2319 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2321 | else | |
2322 | # Double quotes because CPP needs to be expanded | |
2323 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2324 | do | |
2325 | ac_preproc_ok=false | |
2326 | for ac_c_preproc_warn_flag in '' yes | |
2327 | do | |
2328 | # Use a header file that comes with gcc, so configuring glibc | |
2329 | # with a fresh cross-compiler works. | |
2330 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2331 | # <limits.h> exists even on freestanding compilers. | |
2332 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2333 | # not just through cpp. "Syntax error" is here to catch this case. | |
2334 | cat >conftest.$ac_ext <<_ACEOF | |
2335 | /* confdefs.h. */ | |
2336 | _ACEOF | |
2337 | cat confdefs.h >>conftest.$ac_ext | |
2338 | cat >>conftest.$ac_ext <<_ACEOF | |
2339 | /* end confdefs.h. */ | |
2340 | #ifdef __STDC__ | |
2341 | # include <limits.h> | |
2342 | #else | |
2343 | # include <assert.h> | |
2344 | #endif | |
2345 | Syntax error | |
2346 | _ACEOF | |
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2349 | ac_status=$? | |
2350 | grep -v '^ *+' conftest.er1 >conftest.err | |
2351 | rm -f conftest.er1 | |
2352 | cat conftest.err >&5 | |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2354 | (exit $ac_status); } >/dev/null; then | |
2355 | if test -s conftest.err; then | |
2356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2358 | else | |
2359 | ac_cpp_err= | |
2360 | fi | |
8bb2c122 | 2361 | else |
bec39cab | 2362 | ac_cpp_err=yes |
8bb2c122 | 2363 | fi |
bec39cab AC |
2364 | if test -z "$ac_cpp_err"; then |
2365 | : | |
8bb2c122 | 2366 | else |
bec39cab AC |
2367 | echo "$as_me: failed program was:" >&5 |
2368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2369 | ||
2370 | # Broken: fails on valid input. | |
2371 | continue | |
2372 | fi | |
2373 | rm -f conftest.err conftest.$ac_ext | |
2374 | ||
b4e70030 | 2375 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2376 | # can be detected and how. |
2377 | cat >conftest.$ac_ext <<_ACEOF | |
2378 | /* confdefs.h. */ | |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | #include <ac_nonexistent.h> | |
2384 | _ACEOF | |
2385 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2386 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2387 | ac_status=$? | |
2388 | grep -v '^ *+' conftest.er1 >conftest.err | |
2389 | rm -f conftest.er1 | |
2390 | cat conftest.err >&5 | |
2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2392 | (exit $ac_status); } >/dev/null; then | |
2393 | if test -s conftest.err; then | |
2394 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2395 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2396 | else | |
2397 | ac_cpp_err= | |
2398 | fi | |
8bb2c122 | 2399 | else |
bec39cab | 2400 | ac_cpp_err=yes |
8bb2c122 | 2401 | fi |
bec39cab AC |
2402 | if test -z "$ac_cpp_err"; then |
2403 | # Broken: success on invalid input. | |
2404 | continue | |
8bb2c122 | 2405 | else |
bec39cab AC |
2406 | echo "$as_me: failed program was:" >&5 |
2407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2408 | |
bec39cab AC |
2409 | # Passes both tests. |
2410 | ac_preproc_ok=: | |
2411 | break | |
8bb2c122 | 2412 | fi |
bec39cab | 2413 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2414 | |
bec39cab AC |
2415 | done |
2416 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2417 | rm -f conftest.err conftest.$ac_ext | |
2418 | if $ac_preproc_ok; then | |
2419 | break | |
2420 | fi | |
8bb2c122 | 2421 | |
bec39cab AC |
2422 | done |
2423 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2424 | |
c906108c | 2425 | fi |
bec39cab AC |
2426 | CPP=$ac_cv_prog_CPP |
2427 | else | |
2428 | ac_cv_prog_CPP=$CPP | |
c906108c | 2429 | fi |
b4e70030 JB |
2430 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2431 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2432 | ac_preproc_ok=false |
2433 | for ac_c_preproc_warn_flag in '' yes | |
2434 | do | |
2435 | # Use a header file that comes with gcc, so configuring glibc | |
2436 | # with a fresh cross-compiler works. | |
2437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2438 | # <limits.h> exists even on freestanding compilers. | |
2439 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2440 | # not just through cpp. "Syntax error" is here to catch this case. | |
2441 | cat >conftest.$ac_ext <<_ACEOF | |
2442 | /* confdefs.h. */ | |
2443 | _ACEOF | |
2444 | cat confdefs.h >>conftest.$ac_ext | |
2445 | cat >>conftest.$ac_ext <<_ACEOF | |
2446 | /* end confdefs.h. */ | |
2447 | #ifdef __STDC__ | |
2448 | # include <limits.h> | |
2449 | #else | |
2450 | # include <assert.h> | |
2451 | #endif | |
2452 | Syntax error | |
2453 | _ACEOF | |
2454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2456 | ac_status=$? | |
2457 | grep -v '^ *+' conftest.er1 >conftest.err | |
2458 | rm -f conftest.er1 | |
2459 | cat conftest.err >&5 | |
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2461 | (exit $ac_status); } >/dev/null; then | |
2462 | if test -s conftest.err; then | |
2463 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2465 | else | |
2466 | ac_cpp_err= | |
2467 | fi | |
c906108c | 2468 | else |
bec39cab | 2469 | ac_cpp_err=yes |
c906108c | 2470 | fi |
bec39cab AC |
2471 | if test -z "$ac_cpp_err"; then |
2472 | : | |
c906108c | 2473 | else |
bec39cab AC |
2474 | echo "$as_me: failed program was:" >&5 |
2475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2476 | ||
2477 | # Broken: fails on valid input. | |
2478 | continue | |
2479 | fi | |
2480 | rm -f conftest.err conftest.$ac_ext | |
2481 | ||
b4e70030 | 2482 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2483 | # can be detected and how. |
2484 | cat >conftest.$ac_ext <<_ACEOF | |
2485 | /* confdefs.h. */ | |
2486 | _ACEOF | |
2487 | cat confdefs.h >>conftest.$ac_ext | |
2488 | cat >>conftest.$ac_ext <<_ACEOF | |
2489 | /* end confdefs.h. */ | |
2490 | #include <ac_nonexistent.h> | |
2491 | _ACEOF | |
2492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2494 | ac_status=$? | |
2495 | grep -v '^ *+' conftest.er1 >conftest.err | |
2496 | rm -f conftest.er1 | |
2497 | cat conftest.err >&5 | |
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2499 | (exit $ac_status); } >/dev/null; then | |
2500 | if test -s conftest.err; then | |
2501 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2502 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2503 | else | |
2504 | ac_cpp_err= | |
2505 | fi | |
c906108c | 2506 | else |
bec39cab | 2507 | ac_cpp_err=yes |
c906108c | 2508 | fi |
bec39cab AC |
2509 | if test -z "$ac_cpp_err"; then |
2510 | # Broken: success on invalid input. | |
2511 | continue | |
c906108c | 2512 | else |
bec39cab AC |
2513 | echo "$as_me: failed program was:" >&5 |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2515 | |
bec39cab AC |
2516 | # Passes both tests. |
2517 | ac_preproc_ok=: | |
2518 | break | |
c906108c | 2519 | fi |
bec39cab | 2520 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2521 | |
bec39cab AC |
2522 | done |
2523 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2524 | rm -f conftest.err conftest.$ac_ext | |
2525 | if $ac_preproc_ok; then | |
c906108c SS |
2526 | : |
2527 | else | |
bec39cab AC |
2528 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2529 | See \`config.log' for more details." >&5 | |
2530 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2531 | See \`config.log' for more details." >&2;} | |
2532 | { (exit 1); exit 1; }; } | |
c906108c | 2533 | fi |
c906108c | 2534 | |
bec39cab AC |
2535 | ac_ext=c |
2536 | ac_cpp='$CPP $CPPFLAGS' | |
2537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2540 | ||
2541 | ||
b4e70030 JB |
2542 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2543 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2544 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2546 | else | |
b4e70030 JB |
2547 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2548 | then ac_cv_prog_egrep='grep -E' | |
2549 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2550 | fi |
4e8d927d | 2551 | fi |
b4e70030 JB |
2552 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2553 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2554 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2555 | |
bec39cab AC |
2556 | |
2557 | ||
b4e70030 JB |
2558 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2559 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2560 | cat >conftest.$ac_ext <<_ACEOF |
2561 | /* confdefs.h. */ | |
2562 | _ACEOF | |
2563 | cat confdefs.h >>conftest.$ac_ext | |
2564 | cat >>conftest.$ac_ext <<_ACEOF | |
2565 | /* end confdefs.h. */ | |
2566 | #ifdef _AIX | |
2567 | yes | |
2568 | #endif | |
2569 | ||
2570 | _ACEOF | |
c906108c | 2571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2572 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2573 | echo "$as_me:$LINENO: result: yes" >&5 |
2574 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2575 | cat >>confdefs.h <<\_ACEOF |
2576 | #define _ALL_SOURCE 1 | |
2577 | _ACEOF | |
2578 | ||
c906108c | 2579 | else |
b4e70030 JB |
2580 | echo "$as_me:$LINENO: result: no" >&5 |
2581 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2582 | fi |
2583 | rm -f conftest* | |
2584 | ||
c906108c | 2585 | |
b4e70030 JB |
2586 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2587 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2588 | if test "${ac_cv_search_strerror+set}" = set; then |
2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2590 | else |
bec39cab | 2591 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2592 | ac_cv_search_strerror=no |
bec39cab AC |
2593 | cat >conftest.$ac_ext <<_ACEOF |
2594 | /* confdefs.h. */ | |
2595 | _ACEOF | |
2596 | cat confdefs.h >>conftest.$ac_ext | |
2597 | cat >>conftest.$ac_ext <<_ACEOF | |
2598 | /* end confdefs.h. */ | |
c906108c | 2599 | |
b4e70030 | 2600 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2601 | #ifdef __cplusplus |
2602 | extern "C" | |
2603 | #endif | |
b4e70030 JB |
2604 | /* We use char because int might match the return type of a gcc2 |
2605 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2606 | char strerror (); |
2607 | int | |
2608 | main () | |
2609 | { | |
b4e70030 | 2610 | strerror (); |
bec39cab AC |
2611 | ; |
2612 | return 0; | |
2613 | } | |
2614 | _ACEOF | |
b4e70030 | 2615 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2617 | (eval $ac_link) 2>conftest.er1 | |
2618 | ac_status=$? | |
2619 | grep -v '^ *+' conftest.er1 >conftest.err | |
2620 | rm -f conftest.er1 | |
2621 | cat conftest.err >&5 | |
2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2623 | (exit $ac_status); } && | |
b4e70030 JB |
2624 | { ac_try='test -z "$ac_c_werror_flag" |
2625 | || test ! -s conftest.err' | |
bec39cab AC |
2626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2627 | (eval $ac_try) 2>&5 | |
2628 | ac_status=$? | |
2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2630 | (exit $ac_status); }; } && | |
2631 | { ac_try='test -s conftest$ac_exeext' | |
2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2633 | (eval $ac_try) 2>&5 | |
2634 | ac_status=$? | |
2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2636 | (exit $ac_status); }; }; then | |
b4e70030 | 2637 | ac_cv_search_strerror="none required" |
c906108c | 2638 | else |
bec39cab AC |
2639 | echo "$as_me: failed program was:" >&5 |
2640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2641 | |
2642 | fi | |
bec39cab | 2643 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2644 | conftest$ac_exeext conftest.$ac_ext |
2645 | if test "$ac_cv_search_strerror" = no; then | |
2646 | for ac_lib in cposix; do | |
2647 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2648 | cat >conftest.$ac_ext <<_ACEOF | |
2649 | /* confdefs.h. */ | |
2650 | _ACEOF | |
2651 | cat confdefs.h >>conftest.$ac_ext | |
2652 | cat >>conftest.$ac_ext <<_ACEOF | |
2653 | /* end confdefs.h. */ | |
2654 | ||
2655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2656 | #ifdef __cplusplus | |
2657 | extern "C" | |
2658 | #endif | |
2659 | /* We use char because int might match the return type of a gcc2 | |
2660 | builtin and then its argument prototype would still apply. */ | |
2661 | char strerror (); | |
2662 | int | |
2663 | main () | |
2664 | { | |
2665 | strerror (); | |
2666 | ; | |
2667 | return 0; | |
2668 | } | |
2669 | _ACEOF | |
2670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2672 | (eval $ac_link) 2>conftest.er1 | |
2673 | ac_status=$? | |
2674 | grep -v '^ *+' conftest.er1 >conftest.err | |
2675 | rm -f conftest.er1 | |
2676 | cat conftest.err >&5 | |
2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2678 | (exit $ac_status); } && | |
2679 | { ac_try='test -z "$ac_c_werror_flag" | |
2680 | || test ! -s conftest.err' | |
2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2682 | (eval $ac_try) 2>&5 | |
2683 | ac_status=$? | |
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2685 | (exit $ac_status); }; } && | |
2686 | { ac_try='test -s conftest$ac_exeext' | |
2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2688 | (eval $ac_try) 2>&5 | |
2689 | ac_status=$? | |
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2691 | (exit $ac_status); }; }; then | |
2692 | ac_cv_search_strerror="-l$ac_lib" | |
2693 | break | |
4e8d927d | 2694 | else |
b4e70030 JB |
2695 | echo "$as_me: failed program was:" >&5 |
2696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2697 | ||
2698 | fi | |
2699 | rm -f conftest.err conftest.$ac_objext \ | |
2700 | conftest$ac_exeext conftest.$ac_ext | |
2701 | done | |
c906108c | 2702 | fi |
bec39cab | 2703 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2704 | fi |
b4e70030 JB |
2705 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2706 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2707 | if test "$ac_cv_search_strerror" != no; then | |
2708 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2709 | |
c906108c SS |
2710 | fi |
2711 | ||
c906108c | 2712 | |
c906108c | 2713 | |
bec39cab | 2714 | |
b4e70030 JB |
2715 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
2716 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
bec39cab AC |
2717 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
2718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2719 | else |
bec39cab AC |
2720 | am_cv_prog_cc_stdc=no |
2721 | ac_save_CC="$CC" | |
2722 | # Don't try gcc -ansi; that turns off useful extensions and | |
2723 | # breaks some systems' header files. | |
2724 | # AIX -qlanglvl=ansi | |
2725 | # Ultrix and OSF/1 -std1 | |
2726 | # HP-UX 10.20 and later -Ae | |
2727 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2728 | # SVR4 -Xc -D__EXTENSIONS__ | |
2729 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2730 | do | |
2731 | CC="$ac_save_CC $ac_arg" | |
2732 | cat >conftest.$ac_ext <<_ACEOF | |
2733 | /* confdefs.h. */ | |
2734 | _ACEOF | |
2735 | cat confdefs.h >>conftest.$ac_ext | |
2736 | cat >>conftest.$ac_ext <<_ACEOF | |
2737 | /* end confdefs.h. */ | |
2738 | #include <stdarg.h> | |
2739 | #include <stdio.h> | |
2740 | #include <sys/types.h> | |
2741 | #include <sys/stat.h> | |
2742 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2743 | struct buf { int x; }; | |
2744 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2745 | static char *e (p, i) | |
2746 | char **p; | |
2747 | int i; | |
2748 | { | |
2749 | return p[i]; | |
2750 | } | |
2751 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2752 | { | |
2753 | char *s; | |
2754 | va_list v; | |
2755 | va_start (v,p); | |
2756 | s = g (p, va_arg (v,int)); | |
2757 | va_end (v); | |
2758 | return s; | |
2759 | } | |
2760 | int test (int i, double x); | |
2761 | struct s1 {int (*f) (int a);}; | |
2762 | struct s2 {int (*f) (double a);}; | |
2763 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2764 | int argc; | |
2765 | char **argv; | |
c906108c | 2766 | |
bec39cab AC |
2767 | int |
2768 | main () | |
2769 | { | |
c906108c | 2770 | |
bec39cab | 2771 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2772 | |
bec39cab AC |
2773 | ; |
2774 | return 0; | |
2775 | } | |
2776 | _ACEOF | |
2777 | rm -f conftest.$ac_objext | |
2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2779 | (eval $ac_compile) 2>conftest.er1 | |
2780 | ac_status=$? | |
2781 | grep -v '^ *+' conftest.er1 >conftest.err | |
2782 | rm -f conftest.er1 | |
2783 | cat conftest.err >&5 | |
2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2785 | (exit $ac_status); } && | |
b4e70030 JB |
2786 | { ac_try='test -z "$ac_c_werror_flag" |
2787 | || test ! -s conftest.err' | |
bec39cab AC |
2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2789 | (eval $ac_try) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); }; } && | |
2793 | { ac_try='test -s conftest.$ac_objext' | |
2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2795 | (eval $ac_try) 2>&5 | |
2796 | ac_status=$? | |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2798 | (exit $ac_status); }; }; then | |
2799 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2800 | else |
bec39cab AC |
2801 | echo "$as_me: failed program was:" >&5 |
2802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2803 | |
2804 | fi | |
bec39cab AC |
2805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2806 | done | |
2807 | CC="$ac_save_CC" | |
c906108c SS |
2808 | |
2809 | fi | |
2810 | ||
bec39cab | 2811 | if test -z "$am_cv_prog_cc_stdc"; then |
b4e70030 JB |
2812 | echo "$as_me:$LINENO: result: none needed" >&5 |
2813 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2814 | else |
b4e70030 JB |
2815 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2816 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2817 | fi |
bec39cab AC |
2818 | case "x$am_cv_prog_cc_stdc" in |
2819 | x|xno) ;; | |
2820 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2821 | esac | |
c906108c | 2822 | |
c906108c | 2823 | |
bec39cab AC |
2824 | ac_aux_dir= |
2825 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2826 | if test -f $ac_dir/install-sh; then | |
2827 | ac_aux_dir=$ac_dir | |
2828 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2829 | break | |
2830 | elif test -f $ac_dir/install.sh; then | |
2831 | ac_aux_dir=$ac_dir | |
2832 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2833 | break | |
2834 | elif test -f $ac_dir/shtool; then | |
2835 | ac_aux_dir=$ac_dir | |
2836 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2837 | break | |
2838 | fi | |
2839 | done | |
2840 | if test -z "$ac_aux_dir"; then | |
2841 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2842 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2843 | { (exit 1); exit 1; }; } | |
c906108c | 2844 | fi |
bec39cab AC |
2845 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2846 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2847 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2848 | |
bec39cab AC |
2849 | # Make sure we can run config.sub. |
2850 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2851 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2852 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2853 | { (exit 1); exit 1; }; } | |
2854 | ||
b4e70030 JB |
2855 | echo "$as_me:$LINENO: checking build system type" >&5 |
2856 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2857 | if test "${ac_cv_build+set}" = set; then |
2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2859 | else | |
b4e70030 JB |
2860 | ac_cv_build_alias=$build_alias |
2861 | test -z "$ac_cv_build_alias" && | |
2862 | ac_cv_build_alias=`$ac_config_guess` | |
2863 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2864 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2865 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2866 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
2867 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2868 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2869 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab AC |
2870 | { (exit 1); exit 1; }; } |
2871 | ||
2872 | fi | |
b4e70030 JB |
2873 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2874 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2875 | build=$ac_cv_build |
b4e70030 JB |
2876 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2877 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2878 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2879 | |
2880 | ||
b4e70030 JB |
2881 | echo "$as_me:$LINENO: checking host system type" >&5 |
2882 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2883 | if test "${ac_cv_host+set}" = set; then |
2884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2885 | else | |
b4e70030 JB |
2886 | ac_cv_host_alias=$host_alias |
2887 | test -z "$ac_cv_host_alias" && | |
2888 | ac_cv_host_alias=$ac_cv_build_alias | |
2889 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2890 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2891 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab AC |
2892 | { (exit 1); exit 1; }; } |
2893 | ||
2894 | fi | |
b4e70030 JB |
2895 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2896 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2897 | host=$ac_cv_host |
b4e70030 JB |
2898 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2899 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2900 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2901 | |
2902 | ||
b4e70030 JB |
2903 | echo "$as_me:$LINENO: checking target system type" >&5 |
2904 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2905 | if test "${ac_cv_target+set}" = set; then |
2906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2907 | else | |
b4e70030 JB |
2908 | ac_cv_target_alias=$target_alias |
2909 | test "x$ac_cv_target_alias" = "x" && | |
2910 | ac_cv_target_alias=$ac_cv_host_alias | |
2911 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2912 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2913 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
2914 | { (exit 1); exit 1; }; } |
2915 | ||
2916 | fi | |
b4e70030 JB |
2917 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2918 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2919 | target=$ac_cv_target |
b4e70030 JB |
2920 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2921 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2922 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2923 | |
c906108c | 2924 | |
bec39cab AC |
2925 | # The aliases save the names the user supplied, while $host etc. |
2926 | # will get canonicalized. | |
2927 | test -n "$target_alias" && | |
2928 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2929 | NONENONEs,x,x, && | |
2930 | program_prefix=${target_alias}- | |
c906108c | 2931 | |
c906108c | 2932 | |
bec39cab AC |
2933 | CONFIG_OBS= |
2934 | CONFIG_DEPS= | |
2935 | CONFIG_SRCS= | |
2936 | ENABLE_CFLAGS= | |
c906108c | 2937 | |
bec39cab AC |
2938 | CONFIG_ALL= |
2939 | CONFIG_CLEAN= | |
2940 | CONFIG_INSTALL= | |
2941 | CONFIG_UNINSTALL= | |
2942 | ||
20e95c23 DJ |
2943 | # If we haven't got the data from the intl directory, |
2944 | # assume NLS is disabled. | |
2945 | USE_NLS=no | |
2946 | LIBINTL= | |
2947 | LIBINTL_DEP= | |
2948 | INCINTL= | |
2949 | XGETTEXT= | |
2950 | GMSGFMT= | |
2951 | POSUB= | |
3841debe DJ |
2952 | |
2953 | if test -f ../intl/config.intl; then | |
2954 | . ../intl/config.intl | |
20e95c23 DJ |
2955 | fi |
2956 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2957 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2958 | if test x"$USE_NLS" != xyes; then | |
b4e70030 JB |
2959 | echo "$as_me:$LINENO: result: no" >&5 |
2960 | echo "${ECHO_T}no" >&6 | |
c906108c | 2961 | else |
20e95c23 DJ |
2962 | echo "$as_me:$LINENO: result: yes" >&5 |
2963 | echo "${ECHO_T}yes" >&6 | |
c906108c | 2964 | |
20e95c23 DJ |
2965 | cat >>confdefs.h <<\_ACEOF |
2966 | #define ENABLE_NLS 1 | |
bec39cab | 2967 | _ACEOF |
c906108c | 2968 | |
c906108c | 2969 | |
20e95c23 DJ |
2970 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
2971 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2972 | # Look for .po and .gmo files in the source directory. | |
2973 | CATALOGS= | |
2974 | XLINGUAS= | |
2975 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2976 | # If there aren't any .gmo files the shell will give us the | |
2977 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2978 | # weeded out. | |
2979 | case "$cat" in *\**) | |
2980 | continue;; | |
2981 | esac | |
2982 | # The quadruple backslash is collapsed to a double backslash | |
2983 | # by the backticks, then collapsed again by the double quotes, | |
2984 | # leaving us with one backslash in the sed expression (right | |
2985 | # before the dot that mustn't act as a wildcard). | |
2986 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2987 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2988 | # The user is allowed to set LINGUAS to a list of languages to | |
2989 | # install catalogs for. If it's empty that means "all of them." | |
2990 | if test "x$LINGUAS" = x; then | |
2991 | CATALOGS="$CATALOGS $cat" | |
2992 | XLINGUAS="$XLINGUAS $lang" | |
2993 | else | |
2994 | case "$LINGUAS" in *$lang*) | |
2995 | CATALOGS="$CATALOGS $cat" | |
2996 | XLINGUAS="$XLINGUAS $lang" | |
2997 | ;; | |
2998 | esac | |
2999 | fi | |
3000 | done | |
3001 | LINGUAS="$XLINGUAS" | |
3002 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3003 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c | 3004 | |
c906108c | 3005 | |
20e95c23 | 3006 | DATADIRNAME=share |
c906108c | 3007 | |
20e95c23 | 3008 | INSTOBJEXT=.mo |
c906108c | 3009 | |
20e95c23 DJ |
3010 | GENCAT=gencat |
3011 | ||
3012 | CATOBJEXT=.gmo | |
3013 | ||
3014 | fi | |
3015 | ||
3016 | localedir='${datadir}/locale' | |
c906108c | 3017 | |
bec39cab | 3018 | |
20e95c23 | 3019 | if test x"$USE_NLS" = xyes; then |
bec39cab AC |
3020 | CONFIG_ALL="$CONFIG_ALL all-po" |
3021 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3022 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3023 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3024 | fi | |
3025 | ||
3026 | PACKAGE=gdb | |
3027 | ||
3028 | cat >>confdefs.h <<_ACEOF | |
3029 | #define PACKAGE "$PACKAGE" | |
3030 | _ACEOF | |
3031 | ||
3032 | ||
3033 | ||
3034 | debugdir=${libdir}/debug | |
3035 | ||
3036 | ||
b4e70030 | 3037 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 3038 | if test "${with_separate_debug_dir+set}" = set; then |
b4e70030 JB |
3039 | withval="$with_separate_debug_dir" |
3040 | debugdir="${withval}" | |
3041 | fi; | |
bec39cab AC |
3042 | |
3043 | ||
3044 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
3045 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3046 | ac_define_dir=`eval echo $debugdir` | |
3047 | ac_define_dir=`eval echo $ac_define_dir` | |
3048 | ||
3049 | cat >>confdefs.h <<_ACEOF | |
3050 | #define DEBUGDIR "$ac_define_dir" | |
3051 | _ACEOF | |
3052 | ||
3053 | ||
3054 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
3055 | ||
b4e70030 JB |
3056 | |
3057 | ||
bec39cab AC |
3058 | subdirs="$subdirs doc testsuite" |
3059 | ||
3060 | ||
121ce6e5 DJ |
3061 | # Provide defaults for some variables set by the per-host and per-target |
3062 | # configuration. | |
3063 | gdb_host_obs=posix-hdep.o | |
3064 | ||
771b4502 UW |
3065 | if test "${target}" = "${host}"; then |
3066 | gdb_native=yes | |
3067 | else | |
3068 | gdb_native=no | |
3069 | fi | |
3070 | ||
bec39cab AC |
3071 | . $srcdir/configure.host |
3072 | ||
3073 | . $srcdir/configure.tgt | |
3074 | ||
3075 | # Fetch the default architecture and default target vector from BFD. | |
3076 | targ=$target; . $srcdir/../bfd/config.bfd | |
3077 | ||
3078 | # We only want the first architecture, so strip off the others if | |
3079 | # there is more than one. | |
3080 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
3081 | ||
3082 | if test "x$targ_archs" != x; then | |
3083 | ||
3084 | cat >>confdefs.h <<_ACEOF | |
3085 | #define DEFAULT_BFD_ARCH $targ_archs | |
3086 | _ACEOF | |
3087 | ||
3088 | fi | |
3089 | if test "x$targ_defvec" != x; then | |
3090 | ||
3091 | cat >>confdefs.h <<_ACEOF | |
3092 | #define DEFAULT_BFD_VEC $targ_defvec | |
3093 | _ACEOF | |
3094 | ||
3095 | fi | |
3096 | ||
3097 | test "$program_prefix" != NONE && | |
b4e70030 | 3098 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bec39cab AC |
3099 | # Use a double $ so make ignores it. |
3100 | test "$program_suffix" != NONE && | |
b4e70030 | 3101 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
bec39cab AC |
3102 | # Double any \ or $. echo might interpret backslashes. |
3103 | # By default was `s,x,x', remove it if useless. | |
3104 | cat <<\_ACEOF >conftest.sed | |
3105 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3106 | _ACEOF | |
3107 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
b4e70030 | 3108 | rm conftest.sed |
bec39cab AC |
3109 | |
3110 | ||
3111 | # The CLI cannot be disabled yet, but may be in the future. | |
3112 | ||
3113 | # Enable CLI. | |
b4e70030 | 3114 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
bec39cab | 3115 | if test "${enable_gdbcli+set}" = set; then |
b4e70030 JB |
3116 | enableval="$enable_gdbcli" |
3117 | case $enableval in | |
bec39cab AC |
3118 | yes) |
3119 | ;; | |
3120 | no) | |
3121 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
3122 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
3123 | { (exit 1); exit 1; }; } ;; | |
3124 | *) | |
3125 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
3126 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
3127 | { (exit 1); exit 1; }; } ;; | |
3128 | esac | |
3129 | else | |
3130 | enable_gdbcli=yes | |
b4e70030 | 3131 | fi; |
bec39cab AC |
3132 | if test x"$enable_gdbcli" = xyes; then |
3133 | if test -d $srcdir/cli; then | |
3134 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
3135 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
3136 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
3137 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
3138 | fi | |
3139 | fi | |
3140 | ||
3141 | # Enable MI. | |
b4e70030 | 3142 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
bec39cab | 3143 | if test "${enable_gdbmi+set}" = set; then |
b4e70030 JB |
3144 | enableval="$enable_gdbmi" |
3145 | case $enableval in | |
bec39cab AC |
3146 | yes | no) |
3147 | ;; | |
3148 | *) | |
3149 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
3150 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
3151 | { (exit 1); exit 1; }; } ;; | |
3152 | esac | |
3153 | else | |
3154 | enable_gdbmi=yes | |
b4e70030 | 3155 | fi; |
bec39cab AC |
3156 | if test x"$enable_gdbmi" = xyes; then |
3157 | if test -d $srcdir/mi; then | |
3158 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
3159 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
3160 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
3161 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
3162 | fi | |
3163 | fi | |
3164 | ||
3165 | # Enable TUI. | |
b4e70030 | 3166 | # Check whether --enable-tui or --disable-tui was given. |
bec39cab | 3167 | if test "${enable_tui+set}" = set; then |
b4e70030 JB |
3168 | enableval="$enable_tui" |
3169 | case $enableval in | |
bec39cab AC |
3170 | yes | no) |
3171 | ;; | |
3172 | *) | |
3173 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
3174 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
3175 | { (exit 1); exit 1; }; } ;; | |
3176 | esac | |
3177 | else | |
3178 | enable_tui=yes | |
b4e70030 | 3179 | fi; |
bec39cab AC |
3180 | |
3181 | # Enable gdbtk. | |
b4e70030 | 3182 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
bec39cab | 3183 | if test "${enable_gdbtk+set}" = set; then |
b4e70030 JB |
3184 | enableval="$enable_gdbtk" |
3185 | case $enableval in | |
bec39cab AC |
3186 | yes | no) |
3187 | ;; | |
3188 | *) | |
3189 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
3190 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
3191 | { (exit 1); exit 1; }; } ;; | |
3192 | esac | |
3193 | else | |
04ac69aa | 3194 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
3195 | enable_gdbtk=yes |
3196 | else | |
3197 | enable_gdbtk=no | |
3198 | fi | |
b4e70030 | 3199 | fi; |
bec39cab AC |
3200 | # We unconditionally disable gdbtk tests on selected platforms. |
3201 | case $host_os in | |
3202 | go32* | windows*) | |
3203 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
3204 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
3205 | enable_gdbtk=no ;; | |
3206 | esac | |
3207 | ||
3208 | # Libunwind support. | |
20e95c23 DJ |
3209 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3210 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3211 | if test "${ac_cv_header_stdc+set}" = set; then | |
3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3213 | else | |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
3215 | /* confdefs.h. */ | |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
3220 | #include <stdlib.h> | |
3221 | #include <stdarg.h> | |
3222 | #include <string.h> | |
3223 | #include <float.h> | |
3224 | ||
3225 | int | |
3226 | main () | |
3227 | { | |
3228 | ||
3229 | ; | |
3230 | return 0; | |
3231 | } | |
3232 | _ACEOF | |
3233 | rm -f conftest.$ac_objext | |
3234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3235 | (eval $ac_compile) 2>conftest.er1 | |
3236 | ac_status=$? | |
3237 | grep -v '^ *+' conftest.er1 >conftest.err | |
3238 | rm -f conftest.er1 | |
3239 | cat conftest.err >&5 | |
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3241 | (exit $ac_status); } && | |
3242 | { ac_try='test -z "$ac_c_werror_flag" | |
3243 | || test ! -s conftest.err' | |
3244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3245 | (eval $ac_try) 2>&5 | |
3246 | ac_status=$? | |
3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3248 | (exit $ac_status); }; } && | |
3249 | { ac_try='test -s conftest.$ac_objext' | |
3250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3251 | (eval $ac_try) 2>&5 | |
3252 | ac_status=$? | |
3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3254 | (exit $ac_status); }; }; then | |
3255 | ac_cv_header_stdc=yes | |
3256 | else | |
3257 | echo "$as_me: failed program was:" >&5 | |
3258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3259 | ||
3260 | ac_cv_header_stdc=no | |
3261 | fi | |
3262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3263 | ||
3264 | if test $ac_cv_header_stdc = yes; then | |
3265 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3266 | cat >conftest.$ac_ext <<_ACEOF | |
3267 | /* confdefs.h. */ | |
3268 | _ACEOF | |
3269 | cat confdefs.h >>conftest.$ac_ext | |
3270 | cat >>conftest.$ac_ext <<_ACEOF | |
3271 | /* end confdefs.h. */ | |
3272 | #include <string.h> | |
3273 | ||
3274 | _ACEOF | |
3275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3276 | $EGREP "memchr" >/dev/null 2>&1; then | |
3277 | : | |
3278 | else | |
3279 | ac_cv_header_stdc=no | |
3280 | fi | |
3281 | rm -f conftest* | |
3282 | ||
3283 | fi | |
3284 | ||
3285 | if test $ac_cv_header_stdc = yes; then | |
3286 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3287 | cat >conftest.$ac_ext <<_ACEOF | |
3288 | /* confdefs.h. */ | |
3289 | _ACEOF | |
3290 | cat confdefs.h >>conftest.$ac_ext | |
3291 | cat >>conftest.$ac_ext <<_ACEOF | |
3292 | /* end confdefs.h. */ | |
3293 | #include <stdlib.h> | |
3294 | ||
3295 | _ACEOF | |
3296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3297 | $EGREP "free" >/dev/null 2>&1; then | |
3298 | : | |
3299 | else | |
3300 | ac_cv_header_stdc=no | |
3301 | fi | |
3302 | rm -f conftest* | |
3303 | ||
3304 | fi | |
3305 | ||
3306 | if test $ac_cv_header_stdc = yes; then | |
3307 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3308 | if test "$cross_compiling" = yes; then | |
3309 | : | |
3310 | else | |
3311 | cat >conftest.$ac_ext <<_ACEOF | |
3312 | /* confdefs.h. */ | |
3313 | _ACEOF | |
3314 | cat confdefs.h >>conftest.$ac_ext | |
3315 | cat >>conftest.$ac_ext <<_ACEOF | |
3316 | /* end confdefs.h. */ | |
3317 | #include <ctype.h> | |
3318 | #if ((' ' & 0x0FF) == 0x020) | |
3319 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3320 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3321 | #else | |
3322 | # define ISLOWER(c) \ | |
3323 | (('a' <= (c) && (c) <= 'i') \ | |
3324 | || ('j' <= (c) && (c) <= 'r') \ | |
3325 | || ('s' <= (c) && (c) <= 'z')) | |
3326 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3327 | #endif | |
3328 | ||
3329 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3330 | int | |
3331 | main () | |
3332 | { | |
3333 | int i; | |
3334 | for (i = 0; i < 256; i++) | |
3335 | if (XOR (islower (i), ISLOWER (i)) | |
3336 | || toupper (i) != TOUPPER (i)) | |
3337 | exit(2); | |
3338 | exit (0); | |
3339 | } | |
3340 | _ACEOF | |
3341 | rm -f conftest$ac_exeext | |
3342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3343 | (eval $ac_link) 2>&5 | |
3344 | ac_status=$? | |
3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3348 | (eval $ac_try) 2>&5 | |
3349 | ac_status=$? | |
3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3351 | (exit $ac_status); }; }; then | |
3352 | : | |
3353 | else | |
3354 | echo "$as_me: program exited with status $ac_status" >&5 | |
3355 | echo "$as_me: failed program was:" >&5 | |
3356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3357 | ||
3358 | ( exit $ac_status ) | |
3359 | ac_cv_header_stdc=no | |
3360 | fi | |
3361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3362 | fi | |
3363 | fi | |
3364 | fi | |
3365 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3366 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3367 | if test $ac_cv_header_stdc = yes; then | |
3368 | ||
3369 | cat >>confdefs.h <<\_ACEOF | |
3370 | #define STDC_HEADERS 1 | |
3371 | _ACEOF | |
3372 | ||
3373 | fi | |
3374 | ||
3375 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3376 | ||
3377 | ||
3378 | ||
3379 | ||
3380 | ||
3381 | ||
3382 | ||
3383 | ||
3384 | ||
3385 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3386 | inttypes.h stdint.h unistd.h | |
3387 | do | |
3388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3393 | else | |
3394 | cat >conftest.$ac_ext <<_ACEOF | |
3395 | /* confdefs.h. */ | |
3396 | _ACEOF | |
3397 | cat confdefs.h >>conftest.$ac_ext | |
3398 | cat >>conftest.$ac_ext <<_ACEOF | |
3399 | /* end confdefs.h. */ | |
3400 | $ac_includes_default | |
3401 | ||
3402 | #include <$ac_header> | |
3403 | _ACEOF | |
3404 | rm -f conftest.$ac_objext | |
3405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3406 | (eval $ac_compile) 2>conftest.er1 | |
3407 | ac_status=$? | |
3408 | grep -v '^ *+' conftest.er1 >conftest.err | |
3409 | rm -f conftest.er1 | |
3410 | cat conftest.err >&5 | |
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3412 | (exit $ac_status); } && | |
3413 | { ac_try='test -z "$ac_c_werror_flag" | |
3414 | || test ! -s conftest.err' | |
3415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3416 | (eval $ac_try) 2>&5 | |
3417 | ac_status=$? | |
3418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3419 | (exit $ac_status); }; } && | |
3420 | { ac_try='test -s conftest.$ac_objext' | |
3421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3422 | (eval $ac_try) 2>&5 | |
3423 | ac_status=$? | |
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3425 | (exit $ac_status); }; }; then | |
3426 | eval "$as_ac_Header=yes" | |
3427 | else | |
3428 | echo "$as_me: failed program was:" >&5 | |
3429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3430 | ||
3431 | eval "$as_ac_Header=no" | |
3432 | fi | |
3433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3434 | fi | |
3435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3438 | cat >>confdefs.h <<_ACEOF | |
3439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3440 | _ACEOF | |
3441 | ||
3442 | fi | |
3443 | ||
3444 | done | |
3445 | ||
3446 | ||
bec39cab | 3447 | |
b4e70030 | 3448 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 3449 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
3450 | withval="$with_libunwind" |
3451 | case "${withval}" in | |
bec39cab AC |
3452 | yes) enable_libunwind=yes ;; |
3453 | no) enable_libunwind=no ;; | |
3454 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
3455 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
3456 | { (exit 1); exit 1; }; } ;; | |
3457 | esac | |
3458 | else | |
3459 | ||
3460 | ||
3461 | for ac_header in libunwind.h | |
3462 | do | |
3463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3464 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3469 | fi | |
b4e70030 JB |
3470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3472 | else |
3473 | # Is the header compilable? | |
b4e70030 JB |
3474 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3475 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3476 | cat >conftest.$ac_ext <<_ACEOF |
3477 | /* confdefs.h. */ | |
3478 | _ACEOF | |
3479 | cat confdefs.h >>conftest.$ac_ext | |
3480 | cat >>conftest.$ac_ext <<_ACEOF | |
3481 | /* end confdefs.h. */ | |
3482 | $ac_includes_default | |
3483 | #include <$ac_header> | |
3484 | _ACEOF | |
3485 | rm -f conftest.$ac_objext | |
3486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3487 | (eval $ac_compile) 2>conftest.er1 | |
3488 | ac_status=$? | |
3489 | grep -v '^ *+' conftest.er1 >conftest.err | |
3490 | rm -f conftest.er1 | |
3491 | cat conftest.err >&5 | |
3492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3493 | (exit $ac_status); } && | |
b4e70030 JB |
3494 | { ac_try='test -z "$ac_c_werror_flag" |
3495 | || test ! -s conftest.err' | |
bec39cab AC |
3496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3497 | (eval $ac_try) 2>&5 | |
3498 | ac_status=$? | |
3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3500 | (exit $ac_status); }; } && | |
3501 | { ac_try='test -s conftest.$ac_objext' | |
3502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3503 | (eval $ac_try) 2>&5 | |
3504 | ac_status=$? | |
3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3506 | (exit $ac_status); }; }; then | |
3507 | ac_header_compiler=yes | |
3508 | else | |
3509 | echo "$as_me: failed program was:" >&5 | |
3510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3511 | ||
b4e70030 | 3512 | ac_header_compiler=no |
bec39cab AC |
3513 | fi |
3514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3515 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3516 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3517 | |
3518 | # Is the header present? | |
b4e70030 JB |
3519 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3520 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3521 | cat >conftest.$ac_ext <<_ACEOF |
3522 | /* confdefs.h. */ | |
3523 | _ACEOF | |
3524 | cat confdefs.h >>conftest.$ac_ext | |
3525 | cat >>conftest.$ac_ext <<_ACEOF | |
3526 | /* end confdefs.h. */ | |
3527 | #include <$ac_header> | |
3528 | _ACEOF | |
3529 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3530 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3531 | ac_status=$? | |
3532 | grep -v '^ *+' conftest.er1 >conftest.err | |
3533 | rm -f conftest.er1 | |
3534 | cat conftest.err >&5 | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); } >/dev/null; then | |
3537 | if test -s conftest.err; then | |
3538 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3539 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3540 | else | |
3541 | ac_cpp_err= | |
3542 | fi | |
3543 | else | |
3544 | ac_cpp_err=yes | |
3545 | fi | |
3546 | if test -z "$ac_cpp_err"; then | |
3547 | ac_header_preproc=yes | |
3548 | else | |
3549 | echo "$as_me: failed program was:" >&5 | |
3550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3551 | ||
3552 | ac_header_preproc=no | |
3553 | fi | |
3554 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3555 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3556 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3557 | |
3558 | # So? What about this header? | |
3559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3560 | yes:no: ) | |
3561 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3562 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3564 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3565 | ac_header_preproc=yes | |
3566 | ;; | |
3567 | no:yes:* ) | |
3568 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3569 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3570 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3571 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3572 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3573 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3574 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3575 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3577 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3578 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3579 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3580 | ( |
3581 | cat <<\_ASBOX | |
3582 | ## ------------------------------------------ ## | |
3583 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3584 | ## ------------------------------------------ ## | |
3585 | _ASBOX | |
3586 | ) | | |
3587 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3588 | ;; |
3589 | esac | |
b4e70030 JB |
3590 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3592 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3594 | else | |
3595 | eval "$as_ac_Header=\$ac_header_preproc" | |
3596 | fi | |
b4e70030 JB |
3597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3598 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3599 | |
3600 | fi | |
3601 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3602 | cat >>confdefs.h <<_ACEOF | |
3603 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3604 | _ACEOF | |
3605 | ||
3606 | fi | |
3607 | ||
3608 | done | |
3609 | ||
3610 | ||
3611 | for ac_header in libunwind-ia64.h | |
3612 | do | |
3613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
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 | fi | |
b4e70030 JB |
3620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3622 | else |
3623 | # Is the header compilable? | |
b4e70030 JB |
3624 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3625 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3626 | cat >conftest.$ac_ext <<_ACEOF |
3627 | /* confdefs.h. */ | |
3628 | _ACEOF | |
3629 | cat confdefs.h >>conftest.$ac_ext | |
3630 | cat >>conftest.$ac_ext <<_ACEOF | |
3631 | /* end confdefs.h. */ | |
3632 | $ac_includes_default | |
3633 | #include <$ac_header> | |
3634 | _ACEOF | |
3635 | rm -f conftest.$ac_objext | |
3636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3637 | (eval $ac_compile) 2>conftest.er1 | |
3638 | ac_status=$? | |
3639 | grep -v '^ *+' conftest.er1 >conftest.err | |
3640 | rm -f conftest.er1 | |
3641 | cat conftest.err >&5 | |
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3643 | (exit $ac_status); } && | |
b4e70030 JB |
3644 | { ac_try='test -z "$ac_c_werror_flag" |
3645 | || test ! -s conftest.err' | |
bec39cab AC |
3646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3647 | (eval $ac_try) 2>&5 | |
3648 | ac_status=$? | |
3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3650 | (exit $ac_status); }; } && | |
3651 | { ac_try='test -s conftest.$ac_objext' | |
3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3653 | (eval $ac_try) 2>&5 | |
3654 | ac_status=$? | |
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3656 | (exit $ac_status); }; }; then | |
3657 | ac_header_compiler=yes | |
3658 | else | |
3659 | echo "$as_me: failed program was:" >&5 | |
3660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3661 | ||
b4e70030 | 3662 | ac_header_compiler=no |
bec39cab AC |
3663 | fi |
3664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3665 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3666 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3667 | |
3668 | # Is the header present? | |
b4e70030 JB |
3669 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3670 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3671 | cat >conftest.$ac_ext <<_ACEOF |
3672 | /* confdefs.h. */ | |
3673 | _ACEOF | |
3674 | cat confdefs.h >>conftest.$ac_ext | |
3675 | cat >>conftest.$ac_ext <<_ACEOF | |
3676 | /* end confdefs.h. */ | |
3677 | #include <$ac_header> | |
3678 | _ACEOF | |
3679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3681 | ac_status=$? | |
3682 | grep -v '^ *+' conftest.er1 >conftest.err | |
3683 | rm -f conftest.er1 | |
3684 | cat conftest.err >&5 | |
3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3686 | (exit $ac_status); } >/dev/null; then | |
3687 | if test -s conftest.err; then | |
3688 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3690 | else | |
3691 | ac_cpp_err= | |
3692 | fi | |
3693 | else | |
3694 | ac_cpp_err=yes | |
3695 | fi | |
3696 | if test -z "$ac_cpp_err"; then | |
3697 | ac_header_preproc=yes | |
3698 | else | |
3699 | echo "$as_me: failed program was:" >&5 | |
3700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3701 | ||
3702 | ac_header_preproc=no | |
3703 | fi | |
3704 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3705 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3706 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3707 | |
3708 | # So? What about this header? | |
3709 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3710 | yes:no: ) | |
3711 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3712 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3714 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3715 | ac_header_preproc=yes | |
3716 | ;; | |
3717 | no:yes:* ) | |
3718 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3719 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3720 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3721 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3722 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3723 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3724 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3725 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3727 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3728 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3729 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3730 | ( |
3731 | cat <<\_ASBOX | |
3732 | ## ------------------------------------------ ## | |
3733 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3734 | ## ------------------------------------------ ## | |
3735 | _ASBOX | |
3736 | ) | | |
3737 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3738 | ;; |
3739 | esac | |
b4e70030 JB |
3740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3744 | else | |
3745 | eval "$as_ac_Header=\$ac_header_preproc" | |
3746 | fi | |
b4e70030 JB |
3747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3749 | |
3750 | fi | |
3751 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3752 | cat >>confdefs.h <<_ACEOF | |
3753 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3754 | _ACEOF | |
3755 | ||
3756 | fi | |
3757 | ||
3758 | done | |
3759 | ||
3760 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
3761 | enable_libunwind=yes; | |
3762 | fi | |
3763 | ||
b4e70030 | 3764 | fi; |
bec39cab AC |
3765 | |
3766 | if test x"$enable_libunwind" = xyes; then | |
3767 | ||
3768 | for ac_header in libunwind.h | |
3769 | do | |
3770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3772 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3776 | fi | |
b4e70030 JB |
3777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3779 | else |
3780 | # Is the header compilable? | |
b4e70030 JB |
3781 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3782 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3783 | cat >conftest.$ac_ext <<_ACEOF |
3784 | /* confdefs.h. */ | |
3785 | _ACEOF | |
3786 | cat confdefs.h >>conftest.$ac_ext | |
3787 | cat >>conftest.$ac_ext <<_ACEOF | |
3788 | /* end confdefs.h. */ | |
3789 | $ac_includes_default | |
3790 | #include <$ac_header> | |
3791 | _ACEOF | |
3792 | rm -f conftest.$ac_objext | |
3793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3794 | (eval $ac_compile) 2>conftest.er1 | |
3795 | ac_status=$? | |
3796 | grep -v '^ *+' conftest.er1 >conftest.err | |
3797 | rm -f conftest.er1 | |
3798 | cat conftest.err >&5 | |
3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3800 | (exit $ac_status); } && | |
b4e70030 JB |
3801 | { ac_try='test -z "$ac_c_werror_flag" |
3802 | || test ! -s conftest.err' | |
bec39cab AC |
3803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3804 | (eval $ac_try) 2>&5 | |
3805 | ac_status=$? | |
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3807 | (exit $ac_status); }; } && | |
3808 | { ac_try='test -s conftest.$ac_objext' | |
3809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3810 | (eval $ac_try) 2>&5 | |
3811 | ac_status=$? | |
3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3813 | (exit $ac_status); }; }; then | |
3814 | ac_header_compiler=yes | |
3815 | else | |
3816 | echo "$as_me: failed program was:" >&5 | |
3817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3818 | ||
b4e70030 | 3819 | ac_header_compiler=no |
bec39cab AC |
3820 | fi |
3821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3822 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3823 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3824 | |
3825 | # Is the header present? | |
b4e70030 JB |
3826 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3827 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3828 | cat >conftest.$ac_ext <<_ACEOF |
3829 | /* confdefs.h. */ | |
3830 | _ACEOF | |
3831 | cat confdefs.h >>conftest.$ac_ext | |
3832 | cat >>conftest.$ac_ext <<_ACEOF | |
3833 | /* end confdefs.h. */ | |
3834 | #include <$ac_header> | |
3835 | _ACEOF | |
3836 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3837 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3838 | ac_status=$? | |
3839 | grep -v '^ *+' conftest.er1 >conftest.err | |
3840 | rm -f conftest.er1 | |
3841 | cat conftest.err >&5 | |
3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3843 | (exit $ac_status); } >/dev/null; then | |
3844 | if test -s conftest.err; then | |
3845 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3846 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3847 | else | |
3848 | ac_cpp_err= | |
3849 | fi | |
3850 | else | |
3851 | ac_cpp_err=yes | |
3852 | fi | |
3853 | if test -z "$ac_cpp_err"; then | |
3854 | ac_header_preproc=yes | |
3855 | else | |
3856 | echo "$as_me: failed program was:" >&5 | |
3857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3858 | ||
3859 | ac_header_preproc=no | |
3860 | fi | |
3861 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3862 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3863 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3864 | |
3865 | # So? What about this header? | |
3866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3867 | yes:no: ) | |
3868 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3869 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3871 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3872 | ac_header_preproc=yes | |
3873 | ;; | |
3874 | no:yes:* ) | |
3875 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3876 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3877 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3878 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3879 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3880 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3881 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3882 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3884 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3885 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3886 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3887 | ( |
3888 | cat <<\_ASBOX | |
3889 | ## ------------------------------------------ ## | |
3890 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3891 | ## ------------------------------------------ ## | |
3892 | _ASBOX | |
3893 | ) | | |
3894 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3895 | ;; |
3896 | esac | |
b4e70030 JB |
3897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3901 | else | |
3902 | eval "$as_ac_Header=\$ac_header_preproc" | |
3903 | fi | |
b4e70030 JB |
3904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3906 | |
3907 | fi | |
3908 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3909 | cat >>confdefs.h <<_ACEOF | |
3910 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3911 | _ACEOF | |
3912 | ||
3913 | fi | |
3914 | ||
3915 | done | |
3916 | ||
3917 | ||
3918 | for ac_header in libunwind-ia64.h | |
3919 | do | |
3920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
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 | fi | |
b4e70030 JB |
3927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3929 | else |
3930 | # Is the header compilable? | |
b4e70030 JB |
3931 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3932 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3933 | cat >conftest.$ac_ext <<_ACEOF |
3934 | /* confdefs.h. */ | |
3935 | _ACEOF | |
3936 | cat confdefs.h >>conftest.$ac_ext | |
3937 | cat >>conftest.$ac_ext <<_ACEOF | |
3938 | /* end confdefs.h. */ | |
3939 | $ac_includes_default | |
3940 | #include <$ac_header> | |
3941 | _ACEOF | |
3942 | rm -f conftest.$ac_objext | |
3943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3944 | (eval $ac_compile) 2>conftest.er1 | |
3945 | ac_status=$? | |
3946 | grep -v '^ *+' conftest.er1 >conftest.err | |
3947 | rm -f conftest.er1 | |
3948 | cat conftest.err >&5 | |
3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3950 | (exit $ac_status); } && | |
b4e70030 JB |
3951 | { ac_try='test -z "$ac_c_werror_flag" |
3952 | || test ! -s conftest.err' | |
bec39cab AC |
3953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3954 | (eval $ac_try) 2>&5 | |
3955 | ac_status=$? | |
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3957 | (exit $ac_status); }; } && | |
3958 | { ac_try='test -s conftest.$ac_objext' | |
3959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3960 | (eval $ac_try) 2>&5 | |
3961 | ac_status=$? | |
3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3963 | (exit $ac_status); }; }; then | |
3964 | ac_header_compiler=yes | |
3965 | else | |
3966 | echo "$as_me: failed program was:" >&5 | |
3967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3968 | ||
b4e70030 | 3969 | ac_header_compiler=no |
bec39cab AC |
3970 | fi |
3971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3972 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3973 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3974 | |
3975 | # Is the header present? | |
b4e70030 JB |
3976 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3977 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3978 | cat >conftest.$ac_ext <<_ACEOF |
3979 | /* confdefs.h. */ | |
3980 | _ACEOF | |
3981 | cat confdefs.h >>conftest.$ac_ext | |
3982 | cat >>conftest.$ac_ext <<_ACEOF | |
3983 | /* end confdefs.h. */ | |
3984 | #include <$ac_header> | |
3985 | _ACEOF | |
3986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3988 | ac_status=$? | |
3989 | grep -v '^ *+' conftest.er1 >conftest.err | |
3990 | rm -f conftest.er1 | |
3991 | cat conftest.err >&5 | |
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3993 | (exit $ac_status); } >/dev/null; then | |
3994 | if test -s conftest.err; then | |
3995 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3997 | else | |
3998 | ac_cpp_err= | |
3999 | fi | |
4000 | else | |
4001 | ac_cpp_err=yes | |
4002 | fi | |
4003 | if test -z "$ac_cpp_err"; then | |
4004 | ac_header_preproc=yes | |
4005 | else | |
4006 | echo "$as_me: failed program was:" >&5 | |
4007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4008 | ||
4009 | ac_header_preproc=no | |
4010 | fi | |
4011 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
4012 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4013 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
4014 | |
4015 | # So? What about this header? | |
4016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4017 | yes:no: ) | |
4018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4022 | ac_header_preproc=yes | |
4023 | ;; | |
4024 | no:yes:* ) | |
4025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
4037 | ( |
4038 | cat <<\_ASBOX | |
4039 | ## ------------------------------------------ ## | |
4040 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4041 | ## ------------------------------------------ ## | |
4042 | _ASBOX | |
4043 | ) | | |
4044 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
4045 | ;; |
4046 | esac | |
b4e70030 JB |
4047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4051 | else | |
4052 | eval "$as_ac_Header=\$ac_header_preproc" | |
4053 | fi | |
b4e70030 JB |
4054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
4056 | |
4057 | fi | |
4058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4059 | cat >>confdefs.h <<_ACEOF | |
4060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4061 | _ACEOF | |
4062 | ||
4063 | fi | |
4064 | ||
4065 | done | |
4066 | ||
60ca704f SE |
4067 | |
4068 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
4069 | #define HAVE_LIBUNWIND 1 |
4070 | _ACEOF | |
4071 | ||
4072 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
4073 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
4074 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
4075 | fi | |
4076 | ||
4077 | # Profiling support. | |
b4e70030 | 4078 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 4079 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
4080 | enableval="$enable_profiling" |
4081 | case $enableval in | |
bec39cab AC |
4082 | yes | no) |
4083 | ;; | |
4084 | *) | |
4085 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
4086 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
4087 | { (exit 1); exit 1; }; } ;; | |
4088 | esac | |
4089 | else | |
4090 | enable_profiling=no | |
b4e70030 | 4091 | fi; |
bec39cab AC |
4092 | |
4093 | ||
4094 | ||
4095 | for ac_func in monstartup _mcleanup | |
4096 | do | |
4097 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
4098 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4099 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4100 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4102 | else | |
4103 | cat >conftest.$ac_ext <<_ACEOF | |
4104 | /* confdefs.h. */ | |
4105 | _ACEOF | |
4106 | cat confdefs.h >>conftest.$ac_ext | |
4107 | cat >>conftest.$ac_ext <<_ACEOF | |
4108 | /* end confdefs.h. */ | |
4109 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4111 | #define $ac_func innocuous_$ac_func | |
4112 | ||
4113 | /* System header to define __stub macros and hopefully few prototypes, | |
4114 | which can conflict with char $ac_func (); below. | |
4115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4116 | <limits.h> exists even on freestanding compilers. */ | |
4117 | ||
4118 | #ifdef __STDC__ | |
4119 | # include <limits.h> | |
4120 | #else | |
4121 | # include <assert.h> | |
4122 | #endif | |
4123 | ||
4124 | #undef $ac_func | |
4125 | ||
b4e70030 | 4126 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
4127 | #ifdef __cplusplus |
4128 | extern "C" | |
b4e70030 | 4129 | { |
bec39cab | 4130 | #endif |
b4e70030 JB |
4131 | /* We use char because int might match the return type of a gcc2 |
4132 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4133 | char $ac_func (); |
4134 | /* The GNU C library defines this for functions which it implements | |
4135 | to always fail with ENOSYS. Some functions are actually named | |
4136 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 4137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 4138 | choke me |
b4e70030 JB |
4139 | #else |
4140 | char (*f) () = $ac_func; | |
4141 | #endif | |
4142 | #ifdef __cplusplus | |
4143 | } | |
bec39cab AC |
4144 | #endif |
4145 | ||
4146 | int | |
4147 | main () | |
4148 | { | |
b4e70030 | 4149 | return f != $ac_func; |
bec39cab AC |
4150 | ; |
4151 | return 0; | |
4152 | } | |
4153 | _ACEOF | |
4154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4156 | (eval $ac_link) 2>conftest.er1 | |
4157 | ac_status=$? | |
4158 | grep -v '^ *+' conftest.er1 >conftest.err | |
4159 | rm -f conftest.er1 | |
4160 | cat conftest.err >&5 | |
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4162 | (exit $ac_status); } && | |
b4e70030 JB |
4163 | { ac_try='test -z "$ac_c_werror_flag" |
4164 | || test ! -s conftest.err' | |
bec39cab AC |
4165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4166 | (eval $ac_try) 2>&5 | |
4167 | ac_status=$? | |
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4169 | (exit $ac_status); }; } && | |
4170 | { ac_try='test -s conftest$ac_exeext' | |
4171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4172 | (eval $ac_try) 2>&5 | |
4173 | ac_status=$? | |
4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4175 | (exit $ac_status); }; }; then | |
4176 | eval "$as_ac_var=yes" | |
4177 | else | |
4178 | echo "$as_me: failed program was:" >&5 | |
4179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4180 | ||
b4e70030 | 4181 | eval "$as_ac_var=no" |
bec39cab AC |
4182 | fi |
4183 | rm -f conftest.err conftest.$ac_objext \ | |
4184 | conftest$ac_exeext conftest.$ac_ext | |
4185 | fi | |
b4e70030 JB |
4186 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4187 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
4188 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4189 | cat >>confdefs.h <<_ACEOF | |
4190 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4191 | _ACEOF | |
4192 | ||
4193 | fi | |
4194 | done | |
4195 | ||
b4e70030 JB |
4196 | echo "$as_me:$LINENO: checking for _etext" >&5 |
4197 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
4198 | if test "${ac_cv_var__etext+set}" = set; then |
4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4200 | else | |
4201 | cat >conftest.$ac_ext <<_ACEOF | |
4202 | /* confdefs.h. */ | |
4203 | _ACEOF | |
4204 | cat confdefs.h >>conftest.$ac_ext | |
4205 | cat >>conftest.$ac_ext <<_ACEOF | |
4206 | /* end confdefs.h. */ | |
4207 | #include <stdlib.h> | |
4208 | extern char _etext; | |
4209 | ||
4210 | int | |
4211 | main () | |
4212 | { | |
4213 | free (&_etext); | |
4214 | ; | |
4215 | return 0; | |
4216 | } | |
4217 | _ACEOF | |
4218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4220 | (eval $ac_link) 2>conftest.er1 | |
4221 | ac_status=$? | |
4222 | grep -v '^ *+' conftest.er1 >conftest.err | |
4223 | rm -f conftest.er1 | |
4224 | cat conftest.err >&5 | |
4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4226 | (exit $ac_status); } && | |
b4e70030 JB |
4227 | { ac_try='test -z "$ac_c_werror_flag" |
4228 | || test ! -s conftest.err' | |
bec39cab AC |
4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4230 | (eval $ac_try) 2>&5 | |
4231 | ac_status=$? | |
4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4233 | (exit $ac_status); }; } && | |
4234 | { ac_try='test -s conftest$ac_exeext' | |
4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4236 | (eval $ac_try) 2>&5 | |
4237 | ac_status=$? | |
4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4239 | (exit $ac_status); }; }; then | |
4240 | ac_cv_var__etext=yes | |
4241 | else | |
4242 | echo "$as_me: failed program was:" >&5 | |
4243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4244 | ||
b4e70030 | 4245 | ac_cv_var__etext=no |
bec39cab AC |
4246 | fi |
4247 | rm -f conftest.err conftest.$ac_objext \ | |
4248 | conftest$ac_exeext conftest.$ac_ext | |
4249 | fi | |
b4e70030 JB |
4250 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
4251 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
4252 | if test $ac_cv_var__etext = yes; then |
4253 | ||
4254 | cat >>confdefs.h <<\_ACEOF | |
4255 | #define HAVE__ETEXT 1 | |
4256 | _ACEOF | |
4257 | ||
4258 | fi | |
4259 | if test "$enable_profiling" = yes ; then | |
4260 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
4261 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
4262 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
4263 | { (exit 1); exit 1; }; } | |
4264 | fi | |
4265 | PROFILE_CFLAGS=-pg | |
4266 | OLD_CFLAGS="$CFLAGS" | |
4267 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
4268 | ||
b4e70030 JB |
4269 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
4270 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
4271 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4273 | else |
bec39cab AC |
4274 | cat >conftest.$ac_ext <<_ACEOF |
4275 | /* confdefs.h. */ | |
4276 | _ACEOF | |
4277 | cat confdefs.h >>conftest.$ac_ext | |
4278 | cat >>conftest.$ac_ext <<_ACEOF | |
4279 | /* end confdefs.h. */ | |
4280 | ||
4281 | int | |
4282 | main () | |
4283 | { | |
4284 | int x; | |
4285 | ; | |
4286 | return 0; | |
4287 | } | |
4288 | _ACEOF | |
4289 | rm -f conftest.$ac_objext | |
4290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4291 | (eval $ac_compile) 2>conftest.er1 | |
4292 | ac_status=$? | |
4293 | grep -v '^ *+' conftest.er1 >conftest.err | |
4294 | rm -f conftest.er1 | |
4295 | cat conftest.err >&5 | |
4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4297 | (exit $ac_status); } && | |
b4e70030 JB |
4298 | { ac_try='test -z "$ac_c_werror_flag" |
4299 | || test ! -s conftest.err' | |
bec39cab AC |
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4301 | (eval $ac_try) 2>&5 | |
4302 | ac_status=$? | |
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4304 | (exit $ac_status); }; } && | |
4305 | { ac_try='test -s conftest.$ac_objext' | |
4306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4307 | (eval $ac_try) 2>&5 | |
4308 | ac_status=$? | |
4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4310 | (exit $ac_status); }; }; then | |
4311 | ac_cv_cc_supports_pg=yes | |
4312 | else | |
4313 | echo "$as_me: failed program was:" >&5 | |
4314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4315 | ||
b4e70030 | 4316 | ac_cv_cc_supports_pg=no |
bec39cab AC |
4317 | fi |
4318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4319 | fi | |
b4e70030 JB |
4320 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
4321 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
4322 | |
4323 | if test $ac_cv_cc_supports_pg = no; then | |
4324 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
4325 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
4326 | { (exit 1); exit 1; }; } | |
4327 | fi | |
4328 | ||
4329 | CFLAGS="$OLD_CFLAGS" | |
4330 | fi | |
4331 | ||
4332 | # --------------------- # | |
4333 | # Checks for programs. # | |
4334 | # --------------------- # | |
4335 | ||
4336 | for ac_prog in gawk mawk nawk awk | |
4337 | do | |
4338 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4339 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4342 | if test "${ac_cv_prog_AWK+set}" = set; then |
4343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4344 | else | |
4345 | if test -n "$AWK"; then | |
4346 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4347 | else | |
4348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4349 | for as_dir in $PATH | |
4350 | do | |
4351 | IFS=$as_save_IFS | |
4352 | test -z "$as_dir" && as_dir=. | |
4353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4355 | ac_cv_prog_AWK="$ac_prog" |
4356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4357 | break 2 | |
4358 | fi | |
4359 | done | |
4360 | done | |
4361 | ||
4362 | fi | |
4363 | fi | |
4364 | AWK=$ac_cv_prog_AWK | |
4365 | if test -n "$AWK"; then | |
b4e70030 JB |
4366 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4367 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 4368 | else |
b4e70030 JB |
4369 | echo "$as_me:$LINENO: result: no" >&5 |
4370 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4371 | fi |
4372 | ||
4373 | test -n "$AWK" && break | |
4374 | done | |
4375 | ||
4376 | # Find a good install program. We prefer a C program (faster), | |
4377 | # so one script is as good as another. But avoid the broken or | |
4378 | # incompatible versions: | |
4379 | # SysV /etc/install, /usr/sbin/install | |
4380 | # SunOS /usr/etc/install | |
4381 | # IRIX /sbin/install | |
4382 | # AIX /bin/install | |
4383 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4384 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4385 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4386 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4387 | # OS/2's system install, which has a completely different semantic | |
4388 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
4389 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4390 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
4391 | if test -z "$INSTALL"; then |
4392 | if test "${ac_cv_path_install+set}" = set; then | |
4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4394 | else | |
4395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4396 | for as_dir in $PATH | |
4397 | do | |
4398 | IFS=$as_save_IFS | |
4399 | test -z "$as_dir" && as_dir=. | |
4400 | # Account for people who put trailing slashes in PATH elements. | |
4401 | case $as_dir/ in | |
4402 | ./ | .// | /cC/* | \ | |
4403 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4404 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4405 | /usr/ucb/* ) ;; | |
c906108c | 4406 | *) |
bec39cab AC |
4407 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4408 | # Don't use installbsd from OSF since it installs stuff as root | |
4409 | # by default. | |
4410 | for ac_prog in ginstall scoinst install; do | |
4411 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4412 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
4413 | if test $ac_prog = install && |
4414 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4415 | # AIX install. It has an incompatible calling convention. | |
4416 | : | |
4417 | elif test $ac_prog = install && | |
4418 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4419 | # program-specific install script used by HP pwplus--don't use. | |
4420 | : | |
4421 | else | |
4422 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4423 | break 3 | |
4424 | fi | |
4425 | fi | |
4426 | done | |
4427 | done | |
4428 | ;; | |
c906108c | 4429 | esac |
bec39cab AC |
4430 | done |
4431 | ||
4432 | ||
4433 | fi | |
4434 | if test "${ac_cv_path_install+set}" = set; then | |
4435 | INSTALL=$ac_cv_path_install | |
4436 | else | |
b4e70030 JB |
4437 | # As a last resort, use the slow shell script. We don't cache a |
4438 | # path for INSTALL within a source directory, because that will | |
bec39cab | 4439 | # break other packages using the cache if that directory is |
b4e70030 | 4440 | # removed, or if the path is relative. |
bec39cab AC |
4441 | INSTALL=$ac_install_sh |
4442 | fi | |
4443 | fi | |
b4e70030 JB |
4444 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4445 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
4446 | |
4447 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4448 | # It thinks the first close brace ends the variable substitution. | |
4449 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4450 | ||
4451 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4452 | ||
4453 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4454 | ||
b4e70030 JB |
4455 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4456 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
4457 | LN_S=$as_ln_s |
4458 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
4459 | echo "$as_me:$LINENO: result: yes" >&5 |
4460 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 4461 | else |
b4e70030 JB |
4462 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4463 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
4464 | fi |
4465 | ||
4466 | if test -n "$ac_tool_prefix"; then | |
4467 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4468 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
4469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4471 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4473 | else | |
4474 | if test -n "$RANLIB"; then | |
4475 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4476 | else | |
4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4478 | for as_dir in $PATH | |
4479 | do | |
4480 | IFS=$as_save_IFS | |
4481 | test -z "$as_dir" && as_dir=. | |
4482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4483 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4484 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4486 | break 2 | |
4487 | fi | |
4488 | done | |
4489 | done | |
4490 | ||
4491 | fi | |
4492 | fi | |
4493 | RANLIB=$ac_cv_prog_RANLIB | |
4494 | if test -n "$RANLIB"; then | |
b4e70030 JB |
4495 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4496 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 4497 | else |
b4e70030 JB |
4498 | echo "$as_me:$LINENO: result: no" >&5 |
4499 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4500 | fi |
4501 | ||
4502 | fi | |
4503 | if test -z "$ac_cv_prog_RANLIB"; then | |
4504 | ac_ct_RANLIB=$RANLIB | |
4505 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4506 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
4507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4509 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4511 | else | |
4512 | if test -n "$ac_ct_RANLIB"; then | |
4513 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4514 | else | |
4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4516 | for as_dir in $PATH | |
4517 | do | |
4518 | IFS=$as_save_IFS | |
4519 | test -z "$as_dir" && as_dir=. | |
4520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4522 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4524 | break 2 | |
4525 | fi | |
4526 | done | |
4527 | done | |
4528 | ||
b4e70030 | 4529 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
4530 | fi |
4531 | fi | |
4532 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4533 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
4534 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4535 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 4536 | else |
b4e70030 JB |
4537 | echo "$as_me:$LINENO: result: no" >&5 |
4538 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4539 | fi |
4540 | ||
b4e70030 | 4541 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
4542 | else |
4543 | RANLIB="$ac_cv_prog_RANLIB" | |
4544 | fi | |
4545 | ||
4546 | for ac_prog in 'bison -y' byacc | |
4547 | do | |
4548 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4549 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4552 | if test "${ac_cv_prog_YACC+set}" = set; then |
4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4554 | else | |
4555 | if test -n "$YACC"; then | |
4556 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4557 | else | |
4558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4559 | for as_dir in $PATH | |
4560 | do | |
4561 | IFS=$as_save_IFS | |
4562 | test -z "$as_dir" && as_dir=. | |
4563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4565 | ac_cv_prog_YACC="$ac_prog" |
4566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4567 | break 2 | |
4568 | fi | |
4569 | done | |
4570 | done | |
4571 | ||
4572 | fi | |
4573 | fi | |
4574 | YACC=$ac_cv_prog_YACC | |
4575 | if test -n "$YACC"; then | |
b4e70030 JB |
4576 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4577 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 4578 | else |
b4e70030 JB |
4579 | echo "$as_me:$LINENO: result: no" >&5 |
4580 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4581 | fi |
4582 | ||
4583 | test -n "$YACC" && break | |
4584 | done | |
4585 | test -n "$YACC" || YACC="yacc" | |
4586 | ||
4587 | ||
4588 | if test -n "$ac_tool_prefix"; then | |
4589 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4590 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
4591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4593 | if test "${ac_cv_prog_AR+set}" = set; then |
4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4595 | else | |
4596 | if test -n "$AR"; then | |
4597 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4598 | else | |
4599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4600 | for as_dir in $PATH | |
4601 | do | |
4602 | IFS=$as_save_IFS | |
4603 | test -z "$as_dir" && as_dir=. | |
4604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4606 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4608 | break 2 | |
4609 | fi | |
4610 | done | |
4611 | done | |
4612 | ||
4613 | fi | |
4614 | fi | |
4615 | AR=$ac_cv_prog_AR | |
4616 | if test -n "$AR"; then | |
b4e70030 JB |
4617 | echo "$as_me:$LINENO: result: $AR" >&5 |
4618 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 4619 | else |
b4e70030 JB |
4620 | echo "$as_me:$LINENO: result: no" >&5 |
4621 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4622 | fi |
4623 | ||
4624 | fi | |
4625 | if test -z "$ac_cv_prog_AR"; then | |
4626 | ac_ct_AR=$AR | |
4627 | # Extract the first word of "ar", so it can be a program name with args. | |
4628 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
4629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4631 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4633 | else | |
4634 | if test -n "$ac_ct_AR"; then | |
4635 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4636 | else | |
4637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4638 | for as_dir in $PATH | |
4639 | do | |
4640 | IFS=$as_save_IFS | |
4641 | test -z "$as_dir" && as_dir=. | |
4642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4644 | ac_cv_prog_ac_ct_AR="ar" |
4645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4646 | break 2 | |
4647 | fi | |
4648 | done | |
4649 | done | |
4650 | ||
4651 | fi | |
4652 | fi | |
4653 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4654 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
4655 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4656 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 4657 | else |
b4e70030 JB |
4658 | echo "$as_me:$LINENO: result: no" >&5 |
4659 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4660 | fi |
4661 | ||
b4e70030 | 4662 | AR=$ac_ct_AR |
bec39cab AC |
4663 | else |
4664 | AR="$ac_cv_prog_AR" | |
4665 | fi | |
4666 | ||
4667 | if test -n "$ac_tool_prefix"; then | |
4668 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4669 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
4670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4672 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4674 | else | |
4675 | if test -n "$DLLTOOL"; then | |
4676 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4677 | else | |
4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4679 | for as_dir in $PATH | |
4680 | do | |
4681 | IFS=$as_save_IFS | |
4682 | test -z "$as_dir" && as_dir=. | |
4683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4685 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4687 | break 2 | |
4688 | fi | |
4689 | done | |
4690 | done | |
4691 | ||
4692 | fi | |
4693 | fi | |
4694 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
4695 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
4696 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4697 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 4698 | else |
b4e70030 JB |
4699 | echo "$as_me:$LINENO: result: no" >&5 |
4700 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4701 | fi |
4702 | ||
4703 | fi | |
4704 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
4705 | ac_ct_DLLTOOL=$DLLTOOL | |
4706 | # Extract the first word of "dlltool", so it can be a program name with args. | |
4707 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
4708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4710 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4712 | else | |
4713 | if test -n "$ac_ct_DLLTOOL"; then | |
4714 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4715 | else | |
4716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4717 | for as_dir in $PATH | |
4718 | do | |
4719 | IFS=$as_save_IFS | |
4720 | test -z "$as_dir" && as_dir=. | |
4721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4723 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4725 | break 2 | |
4726 | fi | |
4727 | done | |
4728 | done | |
4729 | ||
4730 | fi | |
4731 | fi | |
4732 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4733 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
4734 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4735 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 4736 | else |
b4e70030 JB |
4737 | echo "$as_me:$LINENO: result: no" >&5 |
4738 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4739 | fi |
4740 | ||
b4e70030 | 4741 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
4742 | else |
4743 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4744 | fi | |
4745 | ||
4746 | if test -n "$ac_tool_prefix"; then | |
4747 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4748 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
4749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4751 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4753 | else | |
4754 | if test -n "$WINDRES"; then | |
4755 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4756 | else | |
4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4758 | for as_dir in $PATH | |
4759 | do | |
4760 | IFS=$as_save_IFS | |
4761 | test -z "$as_dir" && as_dir=. | |
4762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4764 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
4765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4766 | break 2 | |
4767 | fi | |
4768 | done | |
4769 | done | |
4770 | ||
4771 | fi | |
4772 | fi | |
4773 | WINDRES=$ac_cv_prog_WINDRES | |
4774 | if test -n "$WINDRES"; then | |
b4e70030 JB |
4775 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
4776 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 4777 | else |
b4e70030 JB |
4778 | echo "$as_me:$LINENO: result: no" >&5 |
4779 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4780 | fi |
4781 | ||
4782 | fi | |
4783 | if test -z "$ac_cv_prog_WINDRES"; then | |
4784 | ac_ct_WINDRES=$WINDRES | |
4785 | # Extract the first word of "windres", so it can be a program name with args. | |
4786 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
4787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4789 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4791 | else | |
4792 | if test -n "$ac_ct_WINDRES"; then | |
4793 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4794 | else | |
4795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4796 | for as_dir in $PATH | |
4797 | do | |
4798 | IFS=$as_save_IFS | |
4799 | test -z "$as_dir" && as_dir=. | |
4800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4802 | ac_cv_prog_ac_ct_WINDRES="windres" |
4803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4804 | break 2 | |
4805 | fi | |
4806 | done | |
4807 | done | |
4808 | ||
4809 | fi | |
4810 | fi | |
4811 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4812 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
4813 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
4814 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 4815 | else |
b4e70030 JB |
4816 | echo "$as_me:$LINENO: result: no" >&5 |
4817 | echo "${ECHO_T}no" >&6 | |
c906108c | 4818 | fi |
bec39cab | 4819 | |
b4e70030 | 4820 | WINDRES=$ac_ct_WINDRES |
c906108c | 4821 | else |
bec39cab | 4822 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
4823 | fi |
4824 | ||
bec39cab AC |
4825 | |
4826 | # Needed for GNU/Hurd. | |
4827 | if test -n "$ac_tool_prefix"; then | |
4828 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
4829 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
4830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4832 | if test "${ac_cv_prog_MIG+set}" = set; then |
4833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4834 | else |
bec39cab AC |
4835 | if test -n "$MIG"; then |
4836 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
4837 | else | |
4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4839 | for as_dir in $PATH | |
4840 | do | |
4841 | IFS=$as_save_IFS | |
4842 | test -z "$as_dir" && as_dir=. | |
4843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4845 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
4846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4847 | break 2 | |
4848 | fi | |
4849 | done | |
4850 | done | |
4851 | ||
c906108c | 4852 | fi |
bec39cab AC |
4853 | fi |
4854 | MIG=$ac_cv_prog_MIG | |
4855 | if test -n "$MIG"; then | |
b4e70030 JB |
4856 | echo "$as_me:$LINENO: result: $MIG" >&5 |
4857 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 4858 | else |
b4e70030 JB |
4859 | echo "$as_me:$LINENO: result: no" >&5 |
4860 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
4861 | fi |
4862 | ||
bec39cab AC |
4863 | fi |
4864 | if test -z "$ac_cv_prog_MIG"; then | |
4865 | ac_ct_MIG=$MIG | |
4866 | # Extract the first word of "mig", so it can be a program name with args. | |
4867 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
4868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4870 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4872 | else | |
4873 | if test -n "$ac_ct_MIG"; then | |
4874 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
4875 | else | |
4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4877 | for as_dir in $PATH | |
4878 | do | |
4879 | IFS=$as_save_IFS | |
4880 | test -z "$as_dir" && as_dir=. | |
4881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4883 | ac_cv_prog_ac_ct_MIG="mig" |
4884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4885 | break 2 | |
4886 | fi | |
4887 | done | |
4888 | done | |
c906108c | 4889 | |
bec39cab AC |
4890 | fi |
4891 | fi | |
4892 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
4893 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
4894 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
4895 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 4896 | else |
b4e70030 JB |
4897 | echo "$as_me:$LINENO: result: no" >&5 |
4898 | echo "${ECHO_T}no" >&6 | |
bec39cab | 4899 | fi |
c906108c | 4900 | |
b4e70030 | 4901 | MIG=$ac_ct_MIG |
bec39cab AC |
4902 | else |
4903 | MIG="$ac_cv_prog_MIG" | |
4904 | fi | |
c906108c | 4905 | |
c906108c | 4906 | |
bec39cab AC |
4907 | # ---------------------- # |
4908 | # Checks for libraries. # | |
4909 | # ---------------------- # | |
c906108c | 4910 | |
bec39cab | 4911 | # We might need to link with -lm; most simulators need it. |
c906108c | 4912 | |
b4e70030 JB |
4913 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
4914 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
4915 | if test "${ac_cv_lib_m_main+set}" = set; then |
4916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4917 | else | |
4918 | ac_check_lib_save_LIBS=$LIBS | |
4919 | LIBS="-lm $LIBS" | |
4920 | cat >conftest.$ac_ext <<_ACEOF | |
4921 | /* confdefs.h. */ | |
4922 | _ACEOF | |
4923 | cat confdefs.h >>conftest.$ac_ext | |
4924 | cat >>conftest.$ac_ext <<_ACEOF | |
4925 | /* end confdefs.h. */ | |
c906108c | 4926 | |
c906108c | 4927 | |
bec39cab AC |
4928 | int |
4929 | main () | |
4930 | { | |
b4e70030 | 4931 | main (); |
bec39cab AC |
4932 | ; |
4933 | return 0; | |
4934 | } | |
4935 | _ACEOF | |
4936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4938 | (eval $ac_link) 2>conftest.er1 | |
4939 | ac_status=$? | |
4940 | grep -v '^ *+' conftest.er1 >conftest.err | |
4941 | rm -f conftest.er1 | |
4942 | cat conftest.err >&5 | |
4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4944 | (exit $ac_status); } && | |
b4e70030 JB |
4945 | { ac_try='test -z "$ac_c_werror_flag" |
4946 | || test ! -s conftest.err' | |
bec39cab AC |
4947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4948 | (eval $ac_try) 2>&5 | |
4949 | ac_status=$? | |
4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4951 | (exit $ac_status); }; } && | |
4952 | { ac_try='test -s conftest$ac_exeext' | |
4953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4954 | (eval $ac_try) 2>&5 | |
4955 | ac_status=$? | |
4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4957 | (exit $ac_status); }; }; then | |
4958 | ac_cv_lib_m_main=yes | |
4959 | else | |
4960 | echo "$as_me: failed program was:" >&5 | |
4961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4962 | ||
b4e70030 | 4963 | ac_cv_lib_m_main=no |
bec39cab AC |
4964 | fi |
4965 | rm -f conftest.err conftest.$ac_objext \ | |
4966 | conftest$ac_exeext conftest.$ac_ext | |
4967 | LIBS=$ac_check_lib_save_LIBS | |
4968 | fi | |
b4e70030 JB |
4969 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
4970 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
4971 | if test $ac_cv_lib_m_main = yes; then |
4972 | cat >>confdefs.h <<_ACEOF | |
4973 | #define HAVE_LIBM 1 | |
4974 | _ACEOF | |
4975 | ||
4976 | LIBS="-lm $LIBS" | |
c906108c | 4977 | |
c906108c | 4978 | fi |
bec39cab AC |
4979 | |
4980 | ||
4981 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
4982 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
4983 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
4984 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
4985 | echo "$as_me:$LINENO: checking for wctype" >&5 |
4986 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
4987 | if test "${ac_cv_func_wctype+set}" = set; then |
4988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4989 | else | |
4990 | cat >conftest.$ac_ext <<_ACEOF | |
4991 | /* confdefs.h. */ | |
4992 | _ACEOF | |
4993 | cat confdefs.h >>conftest.$ac_ext | |
4994 | cat >>conftest.$ac_ext <<_ACEOF | |
4995 | /* end confdefs.h. */ | |
4996 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
4997 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4998 | #define wctype innocuous_wctype | |
4999 | ||
5000 | /* System header to define __stub macros and hopefully few prototypes, | |
5001 | which can conflict with char wctype (); below. | |
5002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5003 | <limits.h> exists even on freestanding compilers. */ | |
5004 | ||
5005 | #ifdef __STDC__ | |
5006 | # include <limits.h> | |
5007 | #else | |
5008 | # include <assert.h> | |
5009 | #endif | |
5010 | ||
5011 | #undef wctype | |
5012 | ||
b4e70030 | 5013 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5014 | #ifdef __cplusplus |
5015 | extern "C" | |
b4e70030 | 5016 | { |
bec39cab | 5017 | #endif |
b4e70030 JB |
5018 | /* We use char because int might match the return type of a gcc2 |
5019 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5020 | char wctype (); |
5021 | /* The GNU C library defines this for functions which it implements | |
5022 | to always fail with ENOSYS. Some functions are actually named | |
5023 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 5024 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 5025 | choke me |
b4e70030 JB |
5026 | #else |
5027 | char (*f) () = wctype; | |
5028 | #endif | |
5029 | #ifdef __cplusplus | |
5030 | } | |
bec39cab AC |
5031 | #endif |
5032 | ||
5033 | int | |
5034 | main () | |
5035 | { | |
b4e70030 | 5036 | return f != wctype; |
bec39cab AC |
5037 | ; |
5038 | return 0; | |
5039 | } | |
5040 | _ACEOF | |
5041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5043 | (eval $ac_link) 2>conftest.er1 | |
5044 | ac_status=$? | |
5045 | grep -v '^ *+' conftest.er1 >conftest.err | |
5046 | rm -f conftest.er1 | |
5047 | cat conftest.err >&5 | |
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5049 | (exit $ac_status); } && | |
b4e70030 JB |
5050 | { ac_try='test -z "$ac_c_werror_flag" |
5051 | || test ! -s conftest.err' | |
bec39cab AC |
5052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5053 | (eval $ac_try) 2>&5 | |
5054 | ac_status=$? | |
5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5056 | (exit $ac_status); }; } && | |
5057 | { ac_try='test -s conftest$ac_exeext' | |
5058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5059 | (eval $ac_try) 2>&5 | |
5060 | ac_status=$? | |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); }; }; then | |
5063 | ac_cv_func_wctype=yes | |
5064 | else | |
5065 | echo "$as_me: failed program was:" >&5 | |
5066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5067 | ||
b4e70030 | 5068 | ac_cv_func_wctype=no |
bec39cab AC |
5069 | fi |
5070 | rm -f conftest.err conftest.$ac_objext \ | |
5071 | conftest$ac_exeext conftest.$ac_ext | |
5072 | fi | |
b4e70030 JB |
5073 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
5074 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
5075 | if test $ac_cv_func_wctype = yes; then |
5076 | : | |
c906108c | 5077 | else |
c906108c | 5078 | |
b4e70030 JB |
5079 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
5080 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
5081 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5083 | else | |
5084 | ac_check_lib_save_LIBS=$LIBS | |
5085 | LIBS="-lw $LIBS" | |
5086 | cat >conftest.$ac_ext <<_ACEOF | |
5087 | /* confdefs.h. */ | |
5088 | _ACEOF | |
5089 | cat confdefs.h >>conftest.$ac_ext | |
5090 | cat >>conftest.$ac_ext <<_ACEOF | |
5091 | /* end confdefs.h. */ | |
c906108c | 5092 | |
b4e70030 | 5093 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5094 | #ifdef __cplusplus |
5095 | extern "C" | |
5096 | #endif | |
b4e70030 JB |
5097 | /* We use char because int might match the return type of a gcc2 |
5098 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5099 | char wctype (); |
5100 | int | |
5101 | main () | |
5102 | { | |
b4e70030 | 5103 | wctype (); |
bec39cab AC |
5104 | ; |
5105 | return 0; | |
5106 | } | |
5107 | _ACEOF | |
5108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5110 | (eval $ac_link) 2>conftest.er1 | |
5111 | ac_status=$? | |
5112 | grep -v '^ *+' conftest.er1 >conftest.err | |
5113 | rm -f conftest.er1 | |
5114 | cat conftest.err >&5 | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); } && | |
b4e70030 JB |
5117 | { ac_try='test -z "$ac_c_werror_flag" |
5118 | || test ! -s conftest.err' | |
bec39cab AC |
5119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5120 | (eval $ac_try) 2>&5 | |
5121 | ac_status=$? | |
5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5123 | (exit $ac_status); }; } && | |
5124 | { ac_try='test -s conftest$ac_exeext' | |
5125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5126 | (eval $ac_try) 2>&5 | |
5127 | ac_status=$? | |
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5129 | (exit $ac_status); }; }; then | |
5130 | ac_cv_lib_w_wctype=yes | |
5131 | else | |
5132 | echo "$as_me: failed program was:" >&5 | |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5134 | ||
b4e70030 | 5135 | ac_cv_lib_w_wctype=no |
bec39cab AC |
5136 | fi |
5137 | rm -f conftest.err conftest.$ac_objext \ | |
5138 | conftest$ac_exeext conftest.$ac_ext | |
5139 | LIBS=$ac_check_lib_save_LIBS | |
5140 | fi | |
b4e70030 JB |
5141 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
5142 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
5143 | if test $ac_cv_lib_w_wctype = yes; then |
5144 | cat >>confdefs.h <<_ACEOF | |
5145 | #define HAVE_LIBW 1 | |
5146 | _ACEOF | |
c906108c | 5147 | |
bec39cab | 5148 | LIBS="-lw $LIBS" |
c906108c | 5149 | |
bec39cab | 5150 | fi |
c906108c | 5151 | |
bec39cab | 5152 | fi |
c906108c | 5153 | |
ddc9cd0f | 5154 | |
bec39cab | 5155 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
5156 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
5157 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
5158 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5160 | else | |
5161 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5162 | ac_cv_search_gethostbyname=no |
bec39cab AC |
5163 | cat >conftest.$ac_ext <<_ACEOF |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
ddc9cd0f | 5169 | |
b4e70030 | 5170 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5171 | #ifdef __cplusplus |
5172 | extern "C" | |
5173 | #endif | |
b4e70030 JB |
5174 | /* We use char because int might match the return type of a gcc2 |
5175 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5176 | char gethostbyname (); |
5177 | int | |
5178 | main () | |
5179 | { | |
b4e70030 | 5180 | gethostbyname (); |
bec39cab AC |
5181 | ; |
5182 | return 0; | |
5183 | } | |
5184 | _ACEOF | |
b4e70030 | 5185 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5187 | (eval $ac_link) 2>conftest.er1 | |
5188 | ac_status=$? | |
5189 | grep -v '^ *+' conftest.er1 >conftest.err | |
5190 | rm -f conftest.er1 | |
5191 | cat conftest.err >&5 | |
5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5193 | (exit $ac_status); } && | |
b4e70030 JB |
5194 | { ac_try='test -z "$ac_c_werror_flag" |
5195 | || test ! -s conftest.err' | |
bec39cab AC |
5196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5197 | (eval $ac_try) 2>&5 | |
5198 | ac_status=$? | |
5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5200 | (exit $ac_status); }; } && | |
5201 | { ac_try='test -s conftest$ac_exeext' | |
5202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5203 | (eval $ac_try) 2>&5 | |
5204 | ac_status=$? | |
5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5206 | (exit $ac_status); }; }; then | |
b4e70030 | 5207 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
5208 | else |
5209 | echo "$as_me: failed program was:" >&5 | |
5210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 5211 | |
bec39cab AC |
5212 | fi |
5213 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5214 | conftest$ac_exeext conftest.$ac_ext |
5215 | if test "$ac_cv_search_gethostbyname" = no; then | |
5216 | for ac_lib in nsl; do | |
5217 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5218 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
5219 | /* confdefs.h. */ |
5220 | _ACEOF | |
5221 | cat confdefs.h >>conftest.$ac_ext | |
5222 | cat >>conftest.$ac_ext <<_ACEOF | |
5223 | /* end confdefs.h. */ | |
ddc9cd0f | 5224 | |
b4e70030 | 5225 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5226 | #ifdef __cplusplus |
5227 | extern "C" | |
5228 | #endif | |
b4e70030 JB |
5229 | /* We use char because int might match the return type of a gcc2 |
5230 | builtin and then its argument prototype would still apply. */ | |
5231 | char gethostbyname (); | |
bec39cab AC |
5232 | int |
5233 | main () | |
5234 | { | |
b4e70030 | 5235 | gethostbyname (); |
bec39cab AC |
5236 | ; |
5237 | return 0; | |
5238 | } | |
5239 | _ACEOF | |
b4e70030 | 5240 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5242 | (eval $ac_link) 2>conftest.er1 | |
5243 | ac_status=$? | |
5244 | grep -v '^ *+' conftest.er1 >conftest.err | |
5245 | rm -f conftest.er1 | |
5246 | cat conftest.err >&5 | |
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5248 | (exit $ac_status); } && | |
b4e70030 JB |
5249 | { ac_try='test -z "$ac_c_werror_flag" |
5250 | || test ! -s conftest.err' | |
bec39cab AC |
5251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5252 | (eval $ac_try) 2>&5 | |
5253 | ac_status=$? | |
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5255 | (exit $ac_status); }; } && | |
5256 | { ac_try='test -s conftest$ac_exeext' | |
5257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5258 | (eval $ac_try) 2>&5 | |
5259 | ac_status=$? | |
5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5261 | (exit $ac_status); }; }; then | |
b4e70030 JB |
5262 | ac_cv_search_gethostbyname="-l$ac_lib" |
5263 | break | |
bec39cab AC |
5264 | else |
5265 | echo "$as_me: failed program was:" >&5 | |
5266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5267 | ||
5268 | fi | |
5269 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5270 | conftest$ac_exeext conftest.$ac_ext |
5271 | done | |
bec39cab AC |
5272 | fi |
5273 | LIBS=$ac_func_search_save_LIBS | |
5274 | fi | |
b4e70030 JB |
5275 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
5276 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
5277 | if test "$ac_cv_search_gethostbyname" != no; then | |
5278 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 5279 | |
bec39cab | 5280 | fi |
96baa820 | 5281 | |
c906108c | 5282 | |
b4e70030 JB |
5283 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
5284 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
5285 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
5286 | if test "${ac_cv_search_socketpair+set}" = set; then | |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5288 | else | |
5289 | ac_func_search_save_LIBS=$LIBS | |
5290 | ac_cv_search_socketpair=no | |
5291 | cat >conftest.$ac_ext <<_ACEOF | |
5292 | /* confdefs.h. */ | |
5293 | _ACEOF | |
5294 | cat confdefs.h >>conftest.$ac_ext | |
5295 | cat >>conftest.$ac_ext <<_ACEOF | |
5296 | /* end confdefs.h. */ | |
5297 | ||
5298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5299 | #ifdef __cplusplus | |
5300 | extern "C" | |
5301 | #endif | |
5302 | /* We use char because int might match the return type of a gcc2 | |
5303 | builtin and then its argument prototype would still apply. */ | |
5304 | char socketpair (); | |
5305 | int | |
5306 | main () | |
5307 | { | |
5308 | socketpair (); | |
5309 | ; | |
5310 | return 0; | |
5311 | } | |
5312 | _ACEOF | |
5313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5315 | (eval $ac_link) 2>conftest.er1 | |
5316 | ac_status=$? | |
5317 | grep -v '^ *+' conftest.er1 >conftest.err | |
5318 | rm -f conftest.er1 | |
5319 | cat conftest.err >&5 | |
5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5321 | (exit $ac_status); } && | |
5322 | { ac_try='test -z "$ac_c_werror_flag" | |
5323 | || test ! -s conftest.err' | |
5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5325 | (eval $ac_try) 2>&5 | |
5326 | ac_status=$? | |
5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5328 | (exit $ac_status); }; } && | |
5329 | { ac_try='test -s conftest$ac_exeext' | |
5330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5331 | (eval $ac_try) 2>&5 | |
5332 | ac_status=$? | |
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5334 | (exit $ac_status); }; }; then | |
5335 | ac_cv_search_socketpair="none required" | |
5336 | else | |
5337 | echo "$as_me: failed program was:" >&5 | |
5338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5339 | ||
5340 | fi | |
5341 | rm -f conftest.err conftest.$ac_objext \ | |
5342 | conftest$ac_exeext conftest.$ac_ext | |
5343 | if test "$ac_cv_search_socketpair" = no; then | |
5344 | for ac_lib in socket; do | |
5345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5346 | cat >conftest.$ac_ext <<_ACEOF | |
5347 | /* confdefs.h. */ | |
5348 | _ACEOF | |
5349 | cat confdefs.h >>conftest.$ac_ext | |
5350 | cat >>conftest.$ac_ext <<_ACEOF | |
5351 | /* end confdefs.h. */ | |
5352 | ||
5353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5354 | #ifdef __cplusplus | |
5355 | extern "C" | |
5356 | #endif | |
5357 | /* We use char because int might match the return type of a gcc2 | |
5358 | builtin and then its argument prototype would still apply. */ | |
5359 | char socketpair (); | |
5360 | int | |
5361 | main () | |
5362 | { | |
5363 | socketpair (); | |
5364 | ; | |
5365 | return 0; | |
5366 | } | |
5367 | _ACEOF | |
5368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5370 | (eval $ac_link) 2>conftest.er1 | |
5371 | ac_status=$? | |
5372 | grep -v '^ *+' conftest.er1 >conftest.err | |
5373 | rm -f conftest.er1 | |
5374 | cat conftest.err >&5 | |
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5376 | (exit $ac_status); } && | |
5377 | { ac_try='test -z "$ac_c_werror_flag" | |
5378 | || test ! -s conftest.err' | |
5379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5380 | (eval $ac_try) 2>&5 | |
5381 | ac_status=$? | |
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5383 | (exit $ac_status); }; } && | |
5384 | { ac_try='test -s conftest$ac_exeext' | |
5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5386 | (eval $ac_try) 2>&5 | |
5387 | ac_status=$? | |
5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5389 | (exit $ac_status); }; }; then | |
5390 | ac_cv_search_socketpair="-l$ac_lib" | |
5391 | break | |
5392 | else | |
5393 | echo "$as_me: failed program was:" >&5 | |
5394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5395 | ||
5396 | fi | |
5397 | rm -f conftest.err conftest.$ac_objext \ | |
5398 | conftest$ac_exeext conftest.$ac_ext | |
5399 | done | |
5400 | fi | |
5401 | LIBS=$ac_func_search_save_LIBS | |
5402 | fi | |
5403 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
5404 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
5405 | if test "$ac_cv_search_socketpair" != no; then | |
5406 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
5407 | ||
5408 | fi | |
5409 | ||
5410 | ||
5411 | # For the TUI, we need enhanced curses functionality. | |
bec39cab AC |
5412 | # |
5413 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
5414 | # curses library because the latter might not provide all the | |
5415 | # functionality we need. However, this leads to problems on systems | |
5416 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
5417 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
5418 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
5419 | # a situation. | |
b4e70030 JB |
5420 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
5421 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
5422 | if test "${ac_cv_search_waddstr+set}" = set; then |
5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5424 | else | |
5425 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5426 | ac_cv_search_waddstr=no |
bec39cab AC |
5427 | cat >conftest.$ac_ext <<_ACEOF |
5428 | /* confdefs.h. */ | |
5429 | _ACEOF | |
5430 | cat confdefs.h >>conftest.$ac_ext | |
5431 | cat >>conftest.$ac_ext <<_ACEOF | |
5432 | /* end confdefs.h. */ | |
c906108c | 5433 | |
b4e70030 | 5434 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5435 | #ifdef __cplusplus |
5436 | extern "C" | |
5437 | #endif | |
b4e70030 JB |
5438 | /* We use char because int might match the return type of a gcc2 |
5439 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5440 | char waddstr (); |
5441 | int | |
5442 | main () | |
5443 | { | |
b4e70030 | 5444 | waddstr (); |
bec39cab AC |
5445 | ; |
5446 | return 0; | |
5447 | } | |
5448 | _ACEOF | |
b4e70030 | 5449 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5451 | (eval $ac_link) 2>conftest.er1 | |
5452 | ac_status=$? | |
5453 | grep -v '^ *+' conftest.er1 >conftest.err | |
5454 | rm -f conftest.er1 | |
5455 | cat conftest.err >&5 | |
5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5457 | (exit $ac_status); } && | |
b4e70030 JB |
5458 | { ac_try='test -z "$ac_c_werror_flag" |
5459 | || test ! -s conftest.err' | |
bec39cab AC |
5460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5461 | (eval $ac_try) 2>&5 | |
5462 | ac_status=$? | |
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5464 | (exit $ac_status); }; } && | |
5465 | { ac_try='test -s conftest$ac_exeext' | |
5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5467 | (eval $ac_try) 2>&5 | |
5468 | ac_status=$? | |
5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5470 | (exit $ac_status); }; }; then | |
b4e70030 | 5471 | ac_cv_search_waddstr="none required" |
bec39cab AC |
5472 | else |
5473 | echo "$as_me: failed program was:" >&5 | |
5474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
5475 | |
5476 | fi | |
bec39cab | 5477 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5478 | conftest$ac_exeext conftest.$ac_ext |
5479 | if test "$ac_cv_search_waddstr" = no; then | |
5480 | for ac_lib in ncurses cursesX curses; do | |
5481 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5482 | cat >conftest.$ac_ext <<_ACEOF | |
5483 | /* confdefs.h. */ | |
5484 | _ACEOF | |
5485 | cat confdefs.h >>conftest.$ac_ext | |
5486 | cat >>conftest.$ac_ext <<_ACEOF | |
5487 | /* end confdefs.h. */ | |
5488 | ||
5489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5490 | #ifdef __cplusplus | |
5491 | extern "C" | |
5492 | #endif | |
5493 | /* We use char because int might match the return type of a gcc2 | |
5494 | builtin and then its argument prototype would still apply. */ | |
5495 | char waddstr (); | |
5496 | int | |
5497 | main () | |
5498 | { | |
5499 | waddstr (); | |
5500 | ; | |
5501 | return 0; | |
5502 | } | |
5503 | _ACEOF | |
5504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5506 | (eval $ac_link) 2>conftest.er1 | |
5507 | ac_status=$? | |
5508 | grep -v '^ *+' conftest.er1 >conftest.err | |
5509 | rm -f conftest.er1 | |
5510 | cat conftest.err >&5 | |
5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5512 | (exit $ac_status); } && | |
5513 | { ac_try='test -z "$ac_c_werror_flag" | |
5514 | || test ! -s conftest.err' | |
5515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5516 | (eval $ac_try) 2>&5 | |
5517 | ac_status=$? | |
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5519 | (exit $ac_status); }; } && | |
5520 | { ac_try='test -s conftest$ac_exeext' | |
5521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5522 | (eval $ac_try) 2>&5 | |
5523 | ac_status=$? | |
5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5525 | (exit $ac_status); }; }; then | |
5526 | ac_cv_search_waddstr="-l$ac_lib" | |
5527 | break | |
4e8d927d | 5528 | else |
b4e70030 JB |
5529 | echo "$as_me: failed program was:" >&5 |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5531 | ||
5532 | fi | |
5533 | rm -f conftest.err conftest.$ac_objext \ | |
5534 | conftest$ac_exeext conftest.$ac_ext | |
5535 | done | |
1ba607ad | 5536 | fi |
bec39cab AC |
5537 | LIBS=$ac_func_search_save_LIBS |
5538 | fi | |
b4e70030 JB |
5539 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
5540 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
5541 | if test "$ac_cv_search_waddstr" != no; then | |
5542 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 5543 | |
8bb2c122 | 5544 | fi |
8bb2c122 | 5545 | |
8bb2c122 | 5546 | |
bec39cab AC |
5547 | # Since GDB uses Readline, we need termcap functionality. In many |
5548 | # cases this will be provided by the curses library, but some systems | |
5549 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 5550 | |
bec39cab AC |
5551 | case $host_os in |
5552 | cygwin*) | |
5553 | if test -d $srcdir/libtermcap; then | |
5554 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
5555 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
5556 | fi ;; | |
5557 | go32* | *djgpp*) | |
5558 | ac_cv_search_tgetent="none required" | |
5559 | ;; | |
7ef34f2c MM |
5560 | *mingw32*) |
5561 | ac_cv_search_tgetent="none required" | |
5562 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
5563 | ;; | |
bec39cab | 5564 | esac |
627af7ea | 5565 | |
bec39cab | 5566 | # These are the libraries checked by Readline. |
b4e70030 JB |
5567 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
5568 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
5569 | if test "${ac_cv_search_tgetent+set}" = set; then |
5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5571 | else | |
5572 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5573 | ac_cv_search_tgetent=no |
bec39cab AC |
5574 | cat >conftest.$ac_ext <<_ACEOF |
5575 | /* confdefs.h. */ | |
5576 | _ACEOF | |
5577 | cat confdefs.h >>conftest.$ac_ext | |
5578 | cat >>conftest.$ac_ext <<_ACEOF | |
5579 | /* end confdefs.h. */ | |
5580 | ||
b4e70030 | 5581 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5582 | #ifdef __cplusplus |
5583 | extern "C" | |
5584 | #endif | |
b4e70030 JB |
5585 | /* We use char because int might match the return type of a gcc2 |
5586 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5587 | char tgetent (); |
5588 | int | |
5589 | main () | |
5590 | { | |
b4e70030 | 5591 | tgetent (); |
bec39cab AC |
5592 | ; |
5593 | return 0; | |
5594 | } | |
5595 | _ACEOF | |
b4e70030 | 5596 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5598 | (eval $ac_link) 2>conftest.er1 | |
5599 | ac_status=$? | |
5600 | grep -v '^ *+' conftest.er1 >conftest.err | |
5601 | rm -f conftest.er1 | |
5602 | cat conftest.err >&5 | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5604 | (exit $ac_status); } && | |
b4e70030 JB |
5605 | { ac_try='test -z "$ac_c_werror_flag" |
5606 | || test ! -s conftest.err' | |
bec39cab AC |
5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5608 | (eval $ac_try) 2>&5 | |
5609 | ac_status=$? | |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5611 | (exit $ac_status); }; } && | |
5612 | { ac_try='test -s conftest$ac_exeext' | |
5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5614 | (eval $ac_try) 2>&5 | |
5615 | ac_status=$? | |
5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5617 | (exit $ac_status); }; }; then | |
b4e70030 | 5618 | ac_cv_search_tgetent="none required" |
627af7ea | 5619 | else |
bec39cab AC |
5620 | echo "$as_me: failed program was:" >&5 |
5621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 5622 | |
627af7ea | 5623 | fi |
bec39cab | 5624 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5625 | conftest$ac_exeext conftest.$ac_ext |
5626 | if test "$ac_cv_search_tgetent" = no; then | |
5627 | for ac_lib in termcap tinfo curses ncurses; do | |
5628 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5629 | cat >conftest.$ac_ext <<_ACEOF | |
5630 | /* confdefs.h. */ | |
5631 | _ACEOF | |
5632 | cat confdefs.h >>conftest.$ac_ext | |
5633 | cat >>conftest.$ac_ext <<_ACEOF | |
5634 | /* end confdefs.h. */ | |
5635 | ||
5636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5637 | #ifdef __cplusplus | |
5638 | extern "C" | |
5639 | #endif | |
5640 | /* We use char because int might match the return type of a gcc2 | |
5641 | builtin and then its argument prototype would still apply. */ | |
5642 | char tgetent (); | |
5643 | int | |
5644 | main () | |
5645 | { | |
5646 | tgetent (); | |
5647 | ; | |
5648 | return 0; | |
5649 | } | |
5650 | _ACEOF | |
5651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5653 | (eval $ac_link) 2>conftest.er1 | |
5654 | ac_status=$? | |
5655 | grep -v '^ *+' conftest.er1 >conftest.err | |
5656 | rm -f conftest.er1 | |
5657 | cat conftest.err >&5 | |
5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5659 | (exit $ac_status); } && | |
5660 | { ac_try='test -z "$ac_c_werror_flag" | |
5661 | || test ! -s conftest.err' | |
5662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5663 | (eval $ac_try) 2>&5 | |
5664 | ac_status=$? | |
5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5666 | (exit $ac_status); }; } && | |
5667 | { ac_try='test -s conftest$ac_exeext' | |
5668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5669 | (eval $ac_try) 2>&5 | |
5670 | ac_status=$? | |
5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5672 | (exit $ac_status); }; }; then | |
5673 | ac_cv_search_tgetent="-l$ac_lib" | |
5674 | break | |
4e8d927d | 5675 | else |
b4e70030 JB |
5676 | echo "$as_me: failed program was:" >&5 |
5677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5678 | ||
5679 | fi | |
5680 | rm -f conftest.err conftest.$ac_objext \ | |
5681 | conftest$ac_exeext conftest.$ac_ext | |
5682 | done | |
bec39cab AC |
5683 | fi |
5684 | LIBS=$ac_func_search_save_LIBS | |
5685 | fi | |
b4e70030 JB |
5686 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
5687 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
5688 | if test "$ac_cv_search_tgetent" != no; then | |
5689 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 5690 | |
06825bd1 MK |
5691 | fi |
5692 | ||
06825bd1 | 5693 | |
bec39cab AC |
5694 | if test "$ac_cv_search_tgetent" = no; then |
5695 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
5696 | echo "$as_me: error: no termcap library found" >&2;} | |
5697 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
5698 | fi |
5699 | ||
3841debe DJ |
5700 | |
5701 | if test "X$prefix" = "XNONE"; then | |
5702 | acl_final_prefix="$ac_default_prefix" | |
5703 | else | |
5704 | acl_final_prefix="$prefix" | |
5705 | fi | |
5706 | if test "X$exec_prefix" = "XNONE"; then | |
5707 | acl_final_exec_prefix='${prefix}' | |
5708 | else | |
5709 | acl_final_exec_prefix="$exec_prefix" | |
5710 | fi | |
5711 | acl_save_prefix="$prefix" | |
5712 | prefix="$acl_final_prefix" | |
5713 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5714 | prefix="$acl_save_prefix" | |
5715 | ||
5716 | ||
5717 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5718 | if test "${with_gnu_ld+set}" = set; then | |
5719 | withval="$with_gnu_ld" | |
5720 | test "$withval" = no || with_gnu_ld=yes | |
5721 | else | |
5722 | with_gnu_ld=no | |
5723 | fi; | |
5724 | # Prepare PATH_SEPARATOR. | |
5725 | # The user is always right. | |
5726 | if test "${PATH_SEPARATOR+set}" != set; then | |
5727 | echo "#! /bin/sh" >conf$$.sh | |
5728 | echo "exit 0" >>conf$$.sh | |
5729 | chmod +x conf$$.sh | |
5730 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5731 | PATH_SEPARATOR=';' | |
5732 | else | |
5733 | PATH_SEPARATOR=: | |
5734 | fi | |
5735 | rm -f conf$$.sh | |
5736 | fi | |
5737 | ac_prog=ld | |
5738 | if test "$GCC" = yes; then | |
5739 | # Check if gcc -print-prog-name=ld gives a path. | |
5740 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5741 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5742 | case $host in | |
5743 | *-*-mingw*) | |
5744 | # gcc leaves a trailing carriage return which upsets mingw | |
5745 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5746 | *) | |
5747 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5748 | esac | |
5749 | case $ac_prog in | |
5750 | # Accept absolute paths. | |
5751 | [\\/]* | [A-Za-z]:[\\/]*) | |
5752 | re_direlt='/[^/][^/]*/\.\./' | |
5753 | # Canonicalize the path of ld | |
5754 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5755 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5756 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5757 | done | |
5758 | test -z "$LD" && LD="$ac_prog" | |
5759 | ;; | |
5760 | "") | |
5761 | # If it fails, then pretend we aren't using GCC. | |
5762 | ac_prog=ld | |
5763 | ;; | |
5764 | *) | |
5765 | # If it is relative, then search for the first ld in PATH. | |
5766 | with_gnu_ld=unknown | |
5767 | ;; | |
5768 | esac | |
5769 | elif test "$with_gnu_ld" = yes; then | |
5770 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5771 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5772 | else | |
5773 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5774 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5775 | fi | |
5776 | if test "${acl_cv_path_LD+set}" = set; then | |
5777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5778 | else | |
5779 | if test -z "$LD"; then | |
5780 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5781 | for ac_dir in $PATH; do | |
5782 | test -z "$ac_dir" && ac_dir=. | |
5783 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5784 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5785 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5786 | # but apparently some GNU ld's only accept -v. | |
5787 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5788 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5789 | test "$with_gnu_ld" != no && break | |
5790 | else | |
5791 | test "$with_gnu_ld" != yes && break | |
5792 | fi | |
5793 | fi | |
5794 | done | |
5795 | IFS="$ac_save_ifs" | |
5796 | else | |
5797 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5798 | fi | |
5799 | fi | |
5800 | ||
5801 | LD="$acl_cv_path_LD" | |
5802 | if test -n "$LD"; then | |
5803 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5804 | echo "${ECHO_T}$LD" >&6 | |
5805 | else | |
5806 | echo "$as_me:$LINENO: result: no" >&5 | |
5807 | echo "${ECHO_T}no" >&6 | |
5808 | fi | |
5809 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5810 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5811 | { (exit 1); exit 1; }; } | |
5812 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5813 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5814 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
5815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5816 | else | |
5817 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5818 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5819 | acl_cv_prog_gnu_ld=yes | |
5820 | else | |
5821 | acl_cv_prog_gnu_ld=no | |
5822 | fi | |
5823 | fi | |
5824 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
5825 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
5826 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5827 | ||
5828 | ||
5829 | ||
5830 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
5831 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
5832 | if test "${acl_cv_rpath+set}" = set; then | |
5833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5834 | else | |
5835 | ||
5836 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5837 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5838 | . ./conftest.sh | |
5839 | rm -f ./conftest.sh | |
5840 | acl_cv_rpath=done | |
5841 | ||
5842 | fi | |
5843 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
5844 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
5845 | wl="$acl_cv_wl" | |
5846 | libext="$acl_cv_libext" | |
5847 | shlibext="$acl_cv_shlibext" | |
5848 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5849 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5850 | hardcode_direct="$acl_cv_hardcode_direct" | |
5851 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5852 | # Check whether --enable-rpath or --disable-rpath was given. | |
5853 | if test "${enable_rpath+set}" = set; then | |
5854 | enableval="$enable_rpath" | |
5855 | : | |
5856 | else | |
5857 | enable_rpath=yes | |
5858 | fi; | |
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | use_additional=yes | |
5869 | ||
5870 | acl_save_prefix="$prefix" | |
5871 | prefix="$acl_final_prefix" | |
5872 | acl_save_exec_prefix="$exec_prefix" | |
5873 | exec_prefix="$acl_final_exec_prefix" | |
5874 | ||
5875 | eval additional_includedir=\"$includedir\" | |
5876 | eval additional_libdir=\"$libdir\" | |
5877 | ||
5878 | exec_prefix="$acl_save_exec_prefix" | |
5879 | prefix="$acl_save_prefix" | |
5880 | ||
5881 | ||
5882 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
5883 | if test "${with_libexpat_prefix+set}" = set; then | |
5884 | withval="$with_libexpat_prefix" | |
5885 | ||
5886 | if test "X$withval" = "Xno"; then | |
5887 | use_additional=no | |
5888 | else | |
5889 | if test "X$withval" = "X"; then | |
5890 | ||
5891 | acl_save_prefix="$prefix" | |
5892 | prefix="$acl_final_prefix" | |
5893 | acl_save_exec_prefix="$exec_prefix" | |
5894 | exec_prefix="$acl_final_exec_prefix" | |
5895 | ||
5896 | eval additional_includedir=\"$includedir\" | |
5897 | eval additional_libdir=\"$libdir\" | |
5898 | ||
5899 | exec_prefix="$acl_save_exec_prefix" | |
5900 | prefix="$acl_save_prefix" | |
5901 | ||
5902 | else | |
5903 | additional_includedir="$withval/include" | |
5904 | additional_libdir="$withval/lib" | |
5905 | fi | |
5906 | fi | |
5907 | ||
5908 | fi; | |
5909 | LIBEXPAT= | |
5910 | LTLIBEXPAT= | |
5911 | INCEXPAT= | |
5912 | rpathdirs= | |
5913 | ltrpathdirs= | |
5914 | names_already_handled= | |
5915 | names_next_round='expat ' | |
5916 | while test -n "$names_next_round"; do | |
5917 | names_this_round="$names_next_round" | |
5918 | names_next_round= | |
5919 | for name in $names_this_round; do | |
5920 | already_handled= | |
5921 | for n in $names_already_handled; do | |
5922 | if test "$n" = "$name"; then | |
5923 | already_handled=yes | |
5924 | break | |
5925 | fi | |
5926 | done | |
5927 | if test -z "$already_handled"; then | |
5928 | names_already_handled="$names_already_handled $name" | |
5929 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5930 | eval value=\"\$HAVE_LIB$uppername\" | |
5931 | if test -n "$value"; then | |
5932 | if test "$value" = yes; then | |
5933 | eval value=\"\$LIB$uppername\" | |
5934 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
5935 | eval value=\"\$LTLIB$uppername\" | |
5936 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
5937 | else | |
5938 | : | |
5939 | fi | |
5940 | else | |
5941 | found_dir= | |
5942 | found_la= | |
5943 | found_so= | |
5944 | found_a= | |
5945 | if test $use_additional = yes; then | |
5946 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
5947 | found_dir="$additional_libdir" | |
5948 | found_so="$additional_libdir/lib$name.$shlibext" | |
5949 | if test -f "$additional_libdir/lib$name.la"; then | |
5950 | found_la="$additional_libdir/lib$name.la" | |
5951 | fi | |
5952 | else | |
5953 | if test -f "$additional_libdir/lib$name.$libext"; then | |
5954 | found_dir="$additional_libdir" | |
5955 | found_a="$additional_libdir/lib$name.$libext" | |
5956 | if test -f "$additional_libdir/lib$name.la"; then | |
5957 | found_la="$additional_libdir/lib$name.la" | |
5958 | fi | |
5959 | fi | |
5960 | fi | |
5961 | fi | |
5962 | if test "X$found_dir" = "X"; then | |
5963 | for x in $LDFLAGS $LTLIBEXPAT; do | |
5964 | ||
5965 | acl_save_prefix="$prefix" | |
5966 | prefix="$acl_final_prefix" | |
5967 | acl_save_exec_prefix="$exec_prefix" | |
5968 | exec_prefix="$acl_final_exec_prefix" | |
5969 | eval x=\"$x\" | |
5970 | exec_prefix="$acl_save_exec_prefix" | |
5971 | prefix="$acl_save_prefix" | |
5972 | ||
5973 | case "$x" in | |
5974 | -L*) | |
5975 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
5976 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
5977 | found_dir="$dir" | |
5978 | found_so="$dir/lib$name.$shlibext" | |
5979 | if test -f "$dir/lib$name.la"; then | |
5980 | found_la="$dir/lib$name.la" | |
5981 | fi | |
5982 | else | |
5983 | if test -f "$dir/lib$name.$libext"; then | |
5984 | found_dir="$dir" | |
5985 | found_a="$dir/lib$name.$libext" | |
5986 | if test -f "$dir/lib$name.la"; then | |
5987 | found_la="$dir/lib$name.la" | |
5988 | fi | |
5989 | fi | |
5990 | fi | |
5991 | ;; | |
5992 | esac | |
5993 | if test "X$found_dir" != "X"; then | |
5994 | break | |
5995 | fi | |
5996 | done | |
5997 | fi | |
5998 | if test "X$found_dir" != "X"; then | |
5999 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
6000 | if test "X$found_so" != "X"; then | |
6001 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6002 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6003 | else | |
6004 | haveit= | |
6005 | for x in $ltrpathdirs; do | |
6006 | if test "X$x" = "X$found_dir"; then | |
6007 | haveit=yes | |
6008 | break | |
6009 | fi | |
6010 | done | |
6011 | if test -z "$haveit"; then | |
6012 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6013 | fi | |
6014 | if test "$hardcode_direct" = yes; then | |
6015 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6016 | else | |
6017 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6018 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6019 | haveit= | |
6020 | for x in $rpathdirs; do | |
6021 | if test "X$x" = "X$found_dir"; then | |
6022 | haveit=yes | |
6023 | break | |
6024 | fi | |
6025 | done | |
6026 | if test -z "$haveit"; then | |
6027 | rpathdirs="$rpathdirs $found_dir" | |
6028 | fi | |
6029 | else | |
6030 | haveit= | |
6031 | for x in $LDFLAGS $LIBEXPAT; do | |
6032 | ||
6033 | acl_save_prefix="$prefix" | |
6034 | prefix="$acl_final_prefix" | |
6035 | acl_save_exec_prefix="$exec_prefix" | |
6036 | exec_prefix="$acl_final_exec_prefix" | |
6037 | eval x=\"$x\" | |
6038 | exec_prefix="$acl_save_exec_prefix" | |
6039 | prefix="$acl_save_prefix" | |
6040 | ||
6041 | if test "X$x" = "X-L$found_dir"; then | |
6042 | haveit=yes | |
6043 | break | |
6044 | fi | |
6045 | done | |
6046 | if test -z "$haveit"; then | |
6047 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
6048 | fi | |
6049 | if test "$hardcode_minus_L" != no; then | |
6050 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6051 | else | |
6052 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6053 | fi | |
6054 | fi | |
6055 | fi | |
6056 | fi | |
6057 | else | |
6058 | if test "X$found_a" != "X"; then | |
6059 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
6060 | else | |
6061 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
6062 | fi | |
6063 | fi | |
6064 | additional_includedir= | |
6065 | case "$found_dir" in | |
6066 | */lib | */lib/) | |
6067 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6068 | additional_includedir="$basedir/include" | |
6069 | ;; | |
6070 | esac | |
6071 | if test "X$additional_includedir" != "X"; then | |
6072 | if test "X$additional_includedir" != "X/usr/include"; then | |
6073 | haveit= | |
6074 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6075 | if test -n "$GCC"; then | |
6076 | case $host_os in | |
6077 | linux*) haveit=yes;; | |
6078 | esac | |
6079 | fi | |
6080 | fi | |
6081 | if test -z "$haveit"; then | |
6082 | for x in $CPPFLAGS $INCEXPAT; do | |
6083 | ||
6084 | acl_save_prefix="$prefix" | |
6085 | prefix="$acl_final_prefix" | |
6086 | acl_save_exec_prefix="$exec_prefix" | |
6087 | exec_prefix="$acl_final_exec_prefix" | |
6088 | eval x=\"$x\" | |
6089 | exec_prefix="$acl_save_exec_prefix" | |
6090 | prefix="$acl_save_prefix" | |
6091 | ||
6092 | if test "X$x" = "X-I$additional_includedir"; then | |
6093 | haveit=yes | |
6094 | break | |
6095 | fi | |
6096 | done | |
6097 | if test -z "$haveit"; then | |
6098 | if test -d "$additional_includedir"; then | |
6099 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
6100 | fi | |
6101 | fi | |
6102 | fi | |
6103 | fi | |
6104 | fi | |
6105 | if test -n "$found_la"; then | |
6106 | save_libdir="$libdir" | |
6107 | case "$found_la" in | |
6108 | */* | *\\*) . "$found_la" ;; | |
6109 | *) . "./$found_la" ;; | |
6110 | esac | |
6111 | libdir="$save_libdir" | |
6112 | for dep in $dependency_libs; do | |
6113 | case "$dep" in | |
6114 | -L*) | |
6115 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6116 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6117 | haveit= | |
6118 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6119 | if test -n "$GCC"; then | |
6120 | case $host_os in | |
6121 | linux*) haveit=yes;; | |
6122 | esac | |
6123 | fi | |
6124 | fi | |
6125 | if test -z "$haveit"; then | |
6126 | haveit= | |
6127 | for x in $LDFLAGS $LIBEXPAT; do | |
6128 | ||
6129 | acl_save_prefix="$prefix" | |
6130 | prefix="$acl_final_prefix" | |
6131 | acl_save_exec_prefix="$exec_prefix" | |
6132 | exec_prefix="$acl_final_exec_prefix" | |
6133 | eval x=\"$x\" | |
6134 | exec_prefix="$acl_save_exec_prefix" | |
6135 | prefix="$acl_save_prefix" | |
6136 | ||
6137 | if test "X$x" = "X-L$additional_libdir"; then | |
6138 | haveit=yes | |
6139 | break | |
6140 | fi | |
6141 | done | |
6142 | if test -z "$haveit"; then | |
6143 | if test -d "$additional_libdir"; then | |
6144 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
6145 | fi | |
6146 | fi | |
6147 | haveit= | |
6148 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6149 | ||
6150 | acl_save_prefix="$prefix" | |
6151 | prefix="$acl_final_prefix" | |
6152 | acl_save_exec_prefix="$exec_prefix" | |
6153 | exec_prefix="$acl_final_exec_prefix" | |
6154 | eval x=\"$x\" | |
6155 | exec_prefix="$acl_save_exec_prefix" | |
6156 | prefix="$acl_save_prefix" | |
6157 | ||
6158 | if test "X$x" = "X-L$additional_libdir"; then | |
6159 | haveit=yes | |
6160 | break | |
6161 | fi | |
6162 | done | |
6163 | if test -z "$haveit"; then | |
6164 | if test -d "$additional_libdir"; then | |
6165 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
6166 | fi | |
6167 | fi | |
6168 | fi | |
6169 | fi | |
6170 | ;; | |
6171 | -R*) | |
6172 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6173 | if test "$enable_rpath" != no; then | |
6174 | haveit= | |
6175 | for x in $rpathdirs; do | |
6176 | if test "X$x" = "X$dir"; then | |
6177 | haveit=yes | |
6178 | break | |
6179 | fi | |
6180 | done | |
6181 | if test -z "$haveit"; then | |
6182 | rpathdirs="$rpathdirs $dir" | |
6183 | fi | |
6184 | haveit= | |
6185 | for x in $ltrpathdirs; do | |
6186 | if test "X$x" = "X$dir"; then | |
6187 | haveit=yes | |
6188 | break | |
6189 | fi | |
6190 | done | |
6191 | if test -z "$haveit"; then | |
6192 | ltrpathdirs="$ltrpathdirs $dir" | |
6193 | fi | |
6194 | fi | |
6195 | ;; | |
6196 | -l*) | |
6197 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6198 | ;; | |
6199 | *.la) | |
6200 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6201 | ;; | |
6202 | *) | |
6203 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
6204 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
6205 | ;; | |
6206 | esac | |
6207 | done | |
6208 | fi | |
6209 | else | |
6210 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6211 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
6212 | fi | |
6213 | fi | |
6214 | fi | |
6215 | done | |
6216 | done | |
6217 | if test "X$rpathdirs" != "X"; then | |
6218 | if test -n "$hardcode_libdir_separator"; then | |
6219 | alldirs= | |
6220 | for found_dir in $rpathdirs; do | |
6221 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6222 | done | |
6223 | acl_save_libdir="$libdir" | |
6224 | libdir="$alldirs" | |
6225 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6226 | libdir="$acl_save_libdir" | |
6227 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6228 | else | |
6229 | for found_dir in $rpathdirs; do | |
6230 | acl_save_libdir="$libdir" | |
6231 | libdir="$found_dir" | |
6232 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6233 | libdir="$acl_save_libdir" | |
6234 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6235 | done | |
6236 | fi | |
6237 | fi | |
6238 | if test "X$ltrpathdirs" != "X"; then | |
6239 | for found_dir in $ltrpathdirs; do | |
6240 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
6241 | done | |
6242 | fi | |
6243 | ||
6244 | ||
6245 | ac_save_CPPFLAGS="$CPPFLAGS" | |
6246 | ||
6247 | for element in $INCEXPAT; do | |
6248 | haveit= | |
6249 | for x in $CPPFLAGS; do | |
6250 | ||
6251 | acl_save_prefix="$prefix" | |
6252 | prefix="$acl_final_prefix" | |
6253 | acl_save_exec_prefix="$exec_prefix" | |
6254 | exec_prefix="$acl_final_exec_prefix" | |
6255 | eval x=\"$x\" | |
6256 | exec_prefix="$acl_save_exec_prefix" | |
6257 | prefix="$acl_save_prefix" | |
6258 | ||
6259 | if test "X$x" = "X$element"; then | |
6260 | haveit=yes | |
6261 | break | |
6262 | fi | |
6263 | done | |
6264 | if test -z "$haveit"; then | |
6265 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6266 | fi | |
6267 | done | |
6268 | ||
6269 | ||
6270 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
6271 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
6272 | if test "${ac_cv_libexpat+set}" = set; then | |
6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6274 | else | |
6275 | ||
6276 | ac_save_LIBS="$LIBS" | |
6277 | LIBS="$LIBS $LIBEXPAT" | |
6278 | cat >conftest.$ac_ext <<_ACEOF | |
6279 | /* confdefs.h. */ | |
6280 | _ACEOF | |
6281 | cat confdefs.h >>conftest.$ac_ext | |
6282 | cat >>conftest.$ac_ext <<_ACEOF | |
6283 | /* end confdefs.h. */ | |
6284 | #include "expat.h" | |
6285 | int | |
6286 | main () | |
6287 | { | |
6288 | XML_Parser p = XML_ParserCreate (0); | |
6289 | ; | |
6290 | return 0; | |
6291 | } | |
6292 | _ACEOF | |
6293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6295 | (eval $ac_link) 2>conftest.er1 | |
6296 | ac_status=$? | |
6297 | grep -v '^ *+' conftest.er1 >conftest.err | |
6298 | rm -f conftest.er1 | |
6299 | cat conftest.err >&5 | |
6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6301 | (exit $ac_status); } && | |
6302 | { ac_try='test -z "$ac_c_werror_flag" | |
6303 | || test ! -s conftest.err' | |
6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6305 | (eval $ac_try) 2>&5 | |
6306 | ac_status=$? | |
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6308 | (exit $ac_status); }; } && | |
6309 | { ac_try='test -s conftest$ac_exeext' | |
6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6311 | (eval $ac_try) 2>&5 | |
6312 | ac_status=$? | |
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); }; }; then | |
6315 | ac_cv_libexpat=yes | |
6316 | else | |
6317 | echo "$as_me: failed program was:" >&5 | |
6318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6319 | ||
6320 | ac_cv_libexpat=no | |
6321 | fi | |
6322 | rm -f conftest.err conftest.$ac_objext \ | |
6323 | conftest$ac_exeext conftest.$ac_ext | |
6324 | LIBS="$ac_save_LIBS" | |
6325 | ||
6326 | fi | |
6327 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
6328 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
6329 | if test "$ac_cv_libexpat" = yes; then | |
6330 | HAVE_LIBEXPAT=yes | |
6331 | ||
6332 | cat >>confdefs.h <<\_ACEOF | |
6333 | #define HAVE_LIBEXPAT 1 | |
6334 | _ACEOF | |
6335 | ||
6336 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
6337 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
6338 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
6339 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
6340 | else | |
6341 | HAVE_LIBEXPAT=no | |
6342 | CPPFLAGS="$ac_save_CPPFLAGS" | |
6343 | LIBEXPAT= | |
6344 | LTLIBEXPAT= | |
6345 | fi | |
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | if test "$HAVE_LIBEXPAT" != yes; then | |
6353 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5 | |
6354 | echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;} | |
ca4ca11e DJ |
6355 | else |
6356 | save_LIBS=$LIBS | |
6357 | LIBS="$LIBS $LIBEXPAT" | |
6358 | ||
6359 | for ac_func in XML_StopParser | |
6360 | do | |
6361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6362 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6364 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6366 | else | |
6367 | cat >conftest.$ac_ext <<_ACEOF | |
6368 | /* confdefs.h. */ | |
6369 | _ACEOF | |
6370 | cat confdefs.h >>conftest.$ac_ext | |
6371 | cat >>conftest.$ac_ext <<_ACEOF | |
6372 | /* end confdefs.h. */ | |
6373 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6375 | #define $ac_func innocuous_$ac_func | |
6376 | ||
6377 | /* System header to define __stub macros and hopefully few prototypes, | |
6378 | which can conflict with char $ac_func (); below. | |
6379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6380 | <limits.h> exists even on freestanding compilers. */ | |
6381 | ||
6382 | #ifdef __STDC__ | |
6383 | # include <limits.h> | |
6384 | #else | |
6385 | # include <assert.h> | |
6386 | #endif | |
6387 | ||
6388 | #undef $ac_func | |
6389 | ||
6390 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6391 | #ifdef __cplusplus | |
6392 | extern "C" | |
6393 | { | |
6394 | #endif | |
6395 | /* We use char because int might match the return type of a gcc2 | |
6396 | builtin and then its argument prototype would still apply. */ | |
6397 | char $ac_func (); | |
6398 | /* The GNU C library defines this for functions which it implements | |
6399 | to always fail with ENOSYS. Some functions are actually named | |
6400 | something starting with __ and the normal name is an alias. */ | |
6401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6402 | choke me | |
6403 | #else | |
6404 | char (*f) () = $ac_func; | |
6405 | #endif | |
6406 | #ifdef __cplusplus | |
6407 | } | |
6408 | #endif | |
6409 | ||
6410 | int | |
6411 | main () | |
6412 | { | |
6413 | return f != $ac_func; | |
6414 | ; | |
6415 | return 0; | |
6416 | } | |
6417 | _ACEOF | |
6418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6420 | (eval $ac_link) 2>conftest.er1 | |
6421 | ac_status=$? | |
6422 | grep -v '^ *+' conftest.er1 >conftest.err | |
6423 | rm -f conftest.er1 | |
6424 | cat conftest.err >&5 | |
6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6426 | (exit $ac_status); } && | |
6427 | { ac_try='test -z "$ac_c_werror_flag" | |
6428 | || test ! -s conftest.err' | |
6429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6430 | (eval $ac_try) 2>&5 | |
6431 | ac_status=$? | |
6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6433 | (exit $ac_status); }; } && | |
6434 | { ac_try='test -s conftest$ac_exeext' | |
6435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6436 | (eval $ac_try) 2>&5 | |
6437 | ac_status=$? | |
6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6439 | (exit $ac_status); }; }; then | |
6440 | eval "$as_ac_var=yes" | |
6441 | else | |
6442 | echo "$as_me: failed program was:" >&5 | |
6443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6444 | ||
6445 | eval "$as_ac_var=no" | |
6446 | fi | |
6447 | rm -f conftest.err conftest.$ac_objext \ | |
6448 | conftest$ac_exeext conftest.$ac_ext | |
6449 | fi | |
6450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6452 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6453 | cat >>confdefs.h <<_ACEOF | |
6454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6455 | _ACEOF | |
6456 | ||
6457 | fi | |
6458 | done | |
6459 | ||
6460 | LIBS=$save_LIBS | |
3841debe DJ |
6461 | fi |
6462 | ||
bec39cab AC |
6463 | # ------------------------- # |
6464 | # Checks for header files. # | |
6465 | # ------------------------- # | |
8ee53726 | 6466 | |
0e5d83e3 | 6467 | |
bec39cab AC |
6468 | |
6469 | ||
6470 | ||
6471 | ||
6472 | ac_header_dirent=no | |
6473 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6474 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6475 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6476 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6479 | else | |
6480 | cat >conftest.$ac_ext <<_ACEOF | |
6481 | /* confdefs.h. */ | |
6482 | _ACEOF | |
6483 | cat confdefs.h >>conftest.$ac_ext | |
6484 | cat >>conftest.$ac_ext <<_ACEOF | |
6485 | /* end confdefs.h. */ | |
6486 | #include <sys/types.h> | |
0e5d83e3 | 6487 | #include <$ac_hdr> |
bec39cab AC |
6488 | |
6489 | int | |
6490 | main () | |
6491 | { | |
6492 | if ((DIR *) 0) | |
6493 | return 0; | |
6494 | ; | |
6495 | return 0; | |
6496 | } | |
6497 | _ACEOF | |
6498 | rm -f conftest.$ac_objext | |
6499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6500 | (eval $ac_compile) 2>conftest.er1 | |
6501 | ac_status=$? | |
6502 | grep -v '^ *+' conftest.er1 >conftest.err | |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6506 | (exit $ac_status); } && | |
b4e70030 JB |
6507 | { ac_try='test -z "$ac_c_werror_flag" |
6508 | || test ! -s conftest.err' | |
bec39cab AC |
6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6510 | (eval $ac_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); }; } && | |
6514 | { ac_try='test -s conftest.$ac_objext' | |
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6516 | (eval $ac_try) 2>&5 | |
6517 | ac_status=$? | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | eval "$as_ac_Header=yes" | |
6521 | else | |
6522 | echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
b4e70030 | 6525 | eval "$as_ac_Header=no" |
bec39cab AC |
6526 | fi |
6527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6528 | fi | |
b4e70030 JB |
6529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6532 | cat >>confdefs.h <<_ACEOF | |
6533 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6534 | _ACEOF | |
6535 | ||
6536 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6537 | fi |
0e5d83e3 | 6538 | |
bec39cab AC |
6539 | done |
6540 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6541 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6542 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6543 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6544 | if test "${ac_cv_search_opendir+set}" = set; then |
6545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6546 | else | |
6547 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6548 | ac_cv_search_opendir=no |
bec39cab AC |
6549 | cat >conftest.$ac_ext <<_ACEOF |
6550 | /* confdefs.h. */ | |
6551 | _ACEOF | |
6552 | cat confdefs.h >>conftest.$ac_ext | |
6553 | cat >>conftest.$ac_ext <<_ACEOF | |
6554 | /* end confdefs.h. */ | |
0e5d83e3 | 6555 | |
b4e70030 | 6556 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6557 | #ifdef __cplusplus |
6558 | extern "C" | |
6559 | #endif | |
b4e70030 JB |
6560 | /* We use char because int might match the return type of a gcc2 |
6561 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6562 | char opendir (); |
6563 | int | |
6564 | main () | |
6565 | { | |
b4e70030 | 6566 | opendir (); |
bec39cab AC |
6567 | ; |
6568 | return 0; | |
6569 | } | |
6570 | _ACEOF | |
b4e70030 | 6571 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6573 | (eval $ac_link) 2>conftest.er1 | |
6574 | ac_status=$? | |
6575 | grep -v '^ *+' conftest.er1 >conftest.err | |
6576 | rm -f conftest.er1 | |
6577 | cat conftest.err >&5 | |
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 | (exit $ac_status); } && | |
b4e70030 JB |
6580 | { ac_try='test -z "$ac_c_werror_flag" |
6581 | || test ! -s conftest.err' | |
bec39cab AC |
6582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6583 | (eval $ac_try) 2>&5 | |
6584 | ac_status=$? | |
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); }; } && | |
6587 | { ac_try='test -s conftest$ac_exeext' | |
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6589 | (eval $ac_try) 2>&5 | |
6590 | ac_status=$? | |
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6592 | (exit $ac_status); }; }; then | |
b4e70030 | 6593 | ac_cv_search_opendir="none required" |
bec39cab AC |
6594 | else |
6595 | echo "$as_me: failed program was:" >&5 | |
6596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6597 | ||
6598 | fi | |
bec39cab | 6599 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6600 | conftest$ac_exeext conftest.$ac_ext |
6601 | if test "$ac_cv_search_opendir" = no; then | |
6602 | for ac_lib in dir; do | |
6603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6604 | cat >conftest.$ac_ext <<_ACEOF | |
6605 | /* confdefs.h. */ | |
6606 | _ACEOF | |
6607 | cat confdefs.h >>conftest.$ac_ext | |
6608 | cat >>conftest.$ac_ext <<_ACEOF | |
6609 | /* end confdefs.h. */ | |
6610 | ||
6611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6612 | #ifdef __cplusplus | |
6613 | extern "C" | |
6614 | #endif | |
6615 | /* We use char because int might match the return type of a gcc2 | |
6616 | builtin and then its argument prototype would still apply. */ | |
6617 | char opendir (); | |
6618 | int | |
6619 | main () | |
6620 | { | |
6621 | opendir (); | |
6622 | ; | |
6623 | return 0; | |
6624 | } | |
6625 | _ACEOF | |
6626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6628 | (eval $ac_link) 2>conftest.er1 | |
6629 | ac_status=$? | |
6630 | grep -v '^ *+' conftest.er1 >conftest.err | |
6631 | rm -f conftest.er1 | |
6632 | cat conftest.err >&5 | |
6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6634 | (exit $ac_status); } && | |
6635 | { ac_try='test -z "$ac_c_werror_flag" | |
6636 | || test ! -s conftest.err' | |
6637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6638 | (eval $ac_try) 2>&5 | |
6639 | ac_status=$? | |
6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6641 | (exit $ac_status); }; } && | |
6642 | { ac_try='test -s conftest$ac_exeext' | |
6643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6644 | (eval $ac_try) 2>&5 | |
6645 | ac_status=$? | |
6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6647 | (exit $ac_status); }; }; then | |
6648 | ac_cv_search_opendir="-l$ac_lib" | |
6649 | break | |
4e8d927d | 6650 | else |
b4e70030 JB |
6651 | echo "$as_me: failed program was:" >&5 |
6652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6653 | ||
6654 | fi | |
6655 | rm -f conftest.err conftest.$ac_objext \ | |
6656 | conftest$ac_exeext conftest.$ac_ext | |
6657 | done | |
0e5d83e3 | 6658 | fi |
bec39cab | 6659 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6660 | fi |
b4e70030 JB |
6661 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6662 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6663 | if test "$ac_cv_search_opendir" != no; then | |
6664 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6665 | |
0e5d83e3 JJ |
6666 | fi |
6667 | ||
d28f9cdf | 6668 | else |
b4e70030 JB |
6669 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6670 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6671 | if test "${ac_cv_search_opendir+set}" = set; then |
6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6673 | else | |
6674 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6675 | ac_cv_search_opendir=no |
bec39cab AC |
6676 | cat >conftest.$ac_ext <<_ACEOF |
6677 | /* confdefs.h. */ | |
6678 | _ACEOF | |
6679 | cat confdefs.h >>conftest.$ac_ext | |
6680 | cat >>conftest.$ac_ext <<_ACEOF | |
6681 | /* end confdefs.h. */ | |
d28f9cdf | 6682 | |
b4e70030 | 6683 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6684 | #ifdef __cplusplus |
6685 | extern "C" | |
d28f9cdf | 6686 | #endif |
b4e70030 JB |
6687 | /* We use char because int might match the return type of a gcc2 |
6688 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6689 | char opendir (); |
6690 | int | |
6691 | main () | |
6692 | { | |
b4e70030 | 6693 | opendir (); |
bec39cab AC |
6694 | ; |
6695 | return 0; | |
6696 | } | |
6697 | _ACEOF | |
b4e70030 | 6698 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6700 | (eval $ac_link) 2>conftest.er1 | |
6701 | ac_status=$? | |
6702 | grep -v '^ *+' conftest.er1 >conftest.err | |
6703 | rm -f conftest.er1 | |
6704 | cat conftest.err >&5 | |
6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6706 | (exit $ac_status); } && | |
b4e70030 JB |
6707 | { ac_try='test -z "$ac_c_werror_flag" |
6708 | || test ! -s conftest.err' | |
bec39cab AC |
6709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6710 | (eval $ac_try) 2>&5 | |
6711 | ac_status=$? | |
6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6713 | (exit $ac_status); }; } && | |
6714 | { ac_try='test -s conftest$ac_exeext' | |
6715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6716 | (eval $ac_try) 2>&5 | |
6717 | ac_status=$? | |
6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6719 | (exit $ac_status); }; }; then | |
b4e70030 | 6720 | ac_cv_search_opendir="none required" |
d28f9cdf | 6721 | else |
bec39cab AC |
6722 | echo "$as_me: failed program was:" >&5 |
6723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6724 | ||
d28f9cdf | 6725 | fi |
bec39cab | 6726 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6727 | conftest$ac_exeext conftest.$ac_ext |
6728 | if test "$ac_cv_search_opendir" = no; then | |
6729 | for ac_lib in x; do | |
6730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6731 | cat >conftest.$ac_ext <<_ACEOF | |
6732 | /* confdefs.h. */ | |
6733 | _ACEOF | |
6734 | cat confdefs.h >>conftest.$ac_ext | |
6735 | cat >>conftest.$ac_ext <<_ACEOF | |
6736 | /* end confdefs.h. */ | |
6737 | ||
6738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6739 | #ifdef __cplusplus | |
6740 | extern "C" | |
6741 | #endif | |
6742 | /* We use char because int might match the return type of a gcc2 | |
6743 | builtin and then its argument prototype would still apply. */ | |
6744 | char opendir (); | |
6745 | int | |
6746 | main () | |
6747 | { | |
6748 | opendir (); | |
6749 | ; | |
6750 | return 0; | |
6751 | } | |
6752 | _ACEOF | |
6753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6755 | (eval $ac_link) 2>conftest.er1 | |
6756 | ac_status=$? | |
6757 | grep -v '^ *+' conftest.er1 >conftest.err | |
6758 | rm -f conftest.er1 | |
6759 | cat conftest.err >&5 | |
6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6761 | (exit $ac_status); } && | |
6762 | { ac_try='test -z "$ac_c_werror_flag" | |
6763 | || test ! -s conftest.err' | |
6764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6765 | (eval $ac_try) 2>&5 | |
6766 | ac_status=$? | |
6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 | (exit $ac_status); }; } && | |
6769 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
6775 | ac_cv_search_opendir="-l$ac_lib" | |
6776 | break | |
4e8d927d | 6777 | else |
b4e70030 JB |
6778 | echo "$as_me: failed program was:" >&5 |
6779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6780 | ||
6781 | fi | |
6782 | rm -f conftest.err conftest.$ac_objext \ | |
6783 | conftest$ac_exeext conftest.$ac_ext | |
6784 | done | |
bec39cab AC |
6785 | fi |
6786 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 6787 | fi |
b4e70030 JB |
6788 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6789 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6790 | if test "$ac_cv_search_opendir" != no; then | |
6791 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 6792 | |
d28f9cdf DJ |
6793 | fi |
6794 | ||
bec39cab | 6795 | fi |
b0b1c2c0 | 6796 | |
b4e70030 JB |
6797 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
6798 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
6799 | if test "${ac_cv_header_stat_broken+set}" = set; then |
6800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 6801 | else |
bec39cab AC |
6802 | cat >conftest.$ac_ext <<_ACEOF |
6803 | /* confdefs.h. */ | |
6804 | _ACEOF | |
6805 | cat confdefs.h >>conftest.$ac_ext | |
6806 | cat >>conftest.$ac_ext <<_ACEOF | |
6807 | /* end confdefs.h. */ | |
6808 | #include <sys/types.h> | |
6809 | #include <sys/stat.h> | |
b0b1c2c0 | 6810 | |
b4e70030 | 6811 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
6812 | # if S_ISBLK (S_IFDIR) |
6813 | You lose. | |
6814 | # endif | |
6815 | #endif | |
b0b1c2c0 | 6816 | |
b4e70030 | 6817 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
6818 | # if S_ISBLK (S_IFCHR) |
6819 | You lose. | |
6820 | # endif | |
6821 | #endif | |
d28f9cdf | 6822 | |
b4e70030 | 6823 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
6824 | # if S_ISLNK (S_IFREG) |
6825 | You lose. | |
6826 | # endif | |
6827 | #endif | |
d28f9cdf | 6828 | |
b4e70030 | 6829 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
6830 | # if S_ISSOCK (S_IFREG) |
6831 | You lose. | |
6832 | # endif | |
6833 | #endif | |
6834 | ||
6835 | _ACEOF | |
6836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6837 | $EGREP "You lose" >/dev/null 2>&1; then | |
6838 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 6839 | else |
bec39cab | 6840 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
6841 | fi |
6842 | rm -f conftest* | |
d28f9cdf | 6843 | |
d28f9cdf | 6844 | fi |
b4e70030 JB |
6845 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
6846 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 6847 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 6848 | |
bec39cab AC |
6849 | cat >>confdefs.h <<\_ACEOF |
6850 | #define STAT_MACROS_BROKEN 1 | |
6851 | _ACEOF | |
8bb2c122 | 6852 | |
7a292a7a | 6853 | fi |
bec39cab | 6854 | |
b4e70030 JB |
6855 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6856 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
6857 | if test "${ac_cv_header_stdc+set}" = set; then |
6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 6859 | else |
bec39cab AC |
6860 | cat >conftest.$ac_ext <<_ACEOF |
6861 | /* confdefs.h. */ | |
6862 | _ACEOF | |
6863 | cat confdefs.h >>conftest.$ac_ext | |
6864 | cat >>conftest.$ac_ext <<_ACEOF | |
6865 | /* end confdefs.h. */ | |
6866 | #include <stdlib.h> | |
6867 | #include <stdarg.h> | |
6868 | #include <string.h> | |
6869 | #include <float.h> | |
7a292a7a | 6870 | |
bec39cab AC |
6871 | int |
6872 | main () | |
6873 | { | |
7a292a7a | 6874 | |
bec39cab AC |
6875 | ; |
6876 | return 0; | |
6877 | } | |
6878 | _ACEOF | |
6879 | rm -f conftest.$ac_objext | |
6880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6881 | (eval $ac_compile) 2>conftest.er1 | |
6882 | ac_status=$? | |
6883 | grep -v '^ *+' conftest.er1 >conftest.err | |
6884 | rm -f conftest.er1 | |
6885 | cat conftest.err >&5 | |
6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6887 | (exit $ac_status); } && | |
b4e70030 JB |
6888 | { ac_try='test -z "$ac_c_werror_flag" |
6889 | || test ! -s conftest.err' | |
bec39cab AC |
6890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6891 | (eval $ac_try) 2>&5 | |
6892 | ac_status=$? | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); }; } && | |
6895 | { ac_try='test -s conftest.$ac_objext' | |
6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6897 | (eval $ac_try) 2>&5 | |
6898 | ac_status=$? | |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); }; }; then | |
6901 | ac_cv_header_stdc=yes | |
c906108c | 6902 | else |
bec39cab AC |
6903 | echo "$as_me: failed program was:" >&5 |
6904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 6905 | |
b4e70030 | 6906 | ac_cv_header_stdc=no |
c906108c | 6907 | fi |
bec39cab | 6908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6909 | |
bec39cab AC |
6910 | if test $ac_cv_header_stdc = yes; then |
6911 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6912 | cat >conftest.$ac_ext <<_ACEOF | |
6913 | /* confdefs.h. */ | |
6914 | _ACEOF | |
6915 | cat confdefs.h >>conftest.$ac_ext | |
6916 | cat >>conftest.$ac_ext <<_ACEOF | |
6917 | /* end confdefs.h. */ | |
6918 | #include <string.h> | |
c906108c | 6919 | |
bec39cab AC |
6920 | _ACEOF |
6921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6922 | $EGREP "memchr" >/dev/null 2>&1; then | |
6923 | : | |
8bb2c122 | 6924 | else |
bec39cab | 6925 | ac_cv_header_stdc=no |
8bb2c122 | 6926 | fi |
bec39cab AC |
6927 | rm -f conftest* |
6928 | ||
c906108c SS |
6929 | fi |
6930 | ||
bec39cab AC |
6931 | if test $ac_cv_header_stdc = yes; then |
6932 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6933 | cat >conftest.$ac_ext <<_ACEOF | |
6934 | /* confdefs.h. */ | |
6935 | _ACEOF | |
6936 | cat confdefs.h >>conftest.$ac_ext | |
6937 | cat >>conftest.$ac_ext <<_ACEOF | |
6938 | /* end confdefs.h. */ | |
6939 | #include <stdlib.h> | |
6940 | ||
6941 | _ACEOF | |
6942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6943 | $EGREP "free" >/dev/null 2>&1; then | |
6944 | : | |
c906108c | 6945 | else |
bec39cab | 6946 | ac_cv_header_stdc=no |
c906108c | 6947 | fi |
bec39cab AC |
6948 | rm -f conftest* |
6949 | ||
c906108c SS |
6950 | fi |
6951 | ||
bec39cab AC |
6952 | if test $ac_cv_header_stdc = yes; then |
6953 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6954 | if test "$cross_compiling" = yes; then | |
6955 | : | |
c906108c | 6956 | else |
bec39cab AC |
6957 | cat >conftest.$ac_ext <<_ACEOF |
6958 | /* confdefs.h. */ | |
6959 | _ACEOF | |
6960 | cat confdefs.h >>conftest.$ac_ext | |
6961 | cat >>conftest.$ac_ext <<_ACEOF | |
6962 | /* end confdefs.h. */ | |
6963 | #include <ctype.h> | |
6964 | #if ((' ' & 0x0FF) == 0x020) | |
6965 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6966 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6967 | #else | |
6968 | # define ISLOWER(c) \ | |
6969 | (('a' <= (c) && (c) <= 'i') \ | |
6970 | || ('j' <= (c) && (c) <= 'r') \ | |
6971 | || ('s' <= (c) && (c) <= 'z')) | |
6972 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6973 | #endif | |
6974 | ||
6975 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6976 | int | |
6977 | main () | |
6978 | { | |
6979 | int i; | |
6980 | for (i = 0; i < 256; i++) | |
6981 | if (XOR (islower (i), ISLOWER (i)) | |
6982 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
6983 | exit(2); |
6984 | exit (0); | |
bec39cab AC |
6985 | } |
6986 | _ACEOF | |
6987 | rm -f conftest$ac_exeext | |
6988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6989 | (eval $ac_link) 2>&5 | |
6990 | ac_status=$? | |
6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6994 | (eval $ac_try) 2>&5 | |
6995 | ac_status=$? | |
6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6997 | (exit $ac_status); }; }; then | |
6998 | : | |
6999 | else | |
7000 | echo "$as_me: program exited with status $ac_status" >&5 | |
7001 | echo "$as_me: failed program was:" >&5 | |
7002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7003 | ||
7004 | ( exit $ac_status ) | |
7005 | ac_cv_header_stdc=no | |
c906108c | 7006 | fi |
b4e70030 | 7007 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7008 | fi |
c906108c | 7009 | fi |
bec39cab | 7010 | fi |
b4e70030 JB |
7011 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7012 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 7013 | if test $ac_cv_header_stdc = yes; then |
c906108c | 7014 | |
bec39cab AC |
7015 | cat >>confdefs.h <<\_ACEOF |
7016 | #define STDC_HEADERS 1 | |
7017 | _ACEOF | |
c906108c | 7018 | |
bec39cab | 7019 | fi |
8bb2c122 | 7020 | |
bec39cab | 7021 | |
7cb9022a | 7022 | for ac_header in nlist.h |
bec39cab AC |
7023 | do |
7024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7030 | fi | |
b4e70030 JB |
7031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7033 | else |
7034 | # Is the header compilable? | |
b4e70030 JB |
7035 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7037 | cat >conftest.$ac_ext <<_ACEOF |
7038 | /* confdefs.h. */ | |
7039 | _ACEOF | |
7040 | cat confdefs.h >>conftest.$ac_ext | |
7041 | cat >>conftest.$ac_ext <<_ACEOF | |
7042 | /* end confdefs.h. */ | |
7043 | $ac_includes_default | |
7044 | #include <$ac_header> | |
7045 | _ACEOF | |
7046 | rm -f conftest.$ac_objext | |
7047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7048 | (eval $ac_compile) 2>conftest.er1 | |
7049 | ac_status=$? | |
7050 | grep -v '^ *+' conftest.er1 >conftest.err | |
7051 | rm -f conftest.er1 | |
7052 | cat conftest.err >&5 | |
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7054 | (exit $ac_status); } && | |
b4e70030 JB |
7055 | { ac_try='test -z "$ac_c_werror_flag" |
7056 | || test ! -s conftest.err' | |
bec39cab AC |
7057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7058 | (eval $ac_try) 2>&5 | |
7059 | ac_status=$? | |
7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7061 | (exit $ac_status); }; } && | |
7062 | { ac_try='test -s conftest.$ac_objext' | |
7063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7064 | (eval $ac_try) 2>&5 | |
7065 | ac_status=$? | |
7066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7067 | (exit $ac_status); }; }; then | |
7068 | ac_header_compiler=yes | |
7069 | else | |
7070 | echo "$as_me: failed program was:" >&5 | |
7071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7072 | ||
b4e70030 | 7073 | ac_header_compiler=no |
bec39cab AC |
7074 | fi |
7075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7078 | |
7079 | # Is the header present? | |
b4e70030 JB |
7080 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7082 | cat >conftest.$ac_ext <<_ACEOF |
7083 | /* confdefs.h. */ | |
7084 | _ACEOF | |
7085 | cat confdefs.h >>conftest.$ac_ext | |
7086 | cat >>conftest.$ac_ext <<_ACEOF | |
7087 | /* end confdefs.h. */ | |
7088 | #include <$ac_header> | |
7089 | _ACEOF | |
7090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7092 | ac_status=$? | |
7093 | grep -v '^ *+' conftest.er1 >conftest.err | |
7094 | rm -f conftest.er1 | |
7095 | cat conftest.err >&5 | |
7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7097 | (exit $ac_status); } >/dev/null; then | |
7098 | if test -s conftest.err; then | |
7099 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7100 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7101 | else | |
7102 | ac_cpp_err= | |
7103 | fi | |
c906108c | 7104 | else |
bec39cab | 7105 | ac_cpp_err=yes |
c906108c | 7106 | fi |
bec39cab AC |
7107 | if test -z "$ac_cpp_err"; then |
7108 | ac_header_preproc=yes | |
c906108c | 7109 | else |
bec39cab AC |
7110 | echo "$as_me: failed program was:" >&5 |
7111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7112 | |
bec39cab AC |
7113 | ac_header_preproc=no |
7114 | fi | |
7115 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7118 | |
bec39cab AC |
7119 | # So? What about this header? |
7120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7121 | yes:no: ) | |
7122 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7123 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7125 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7126 | ac_header_preproc=yes | |
7127 | ;; | |
7128 | no:yes:* ) | |
7129 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7130 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7131 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7132 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7133 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7134 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7135 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7136 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7138 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7139 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7140 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7141 | ( |
7142 | cat <<\_ASBOX | |
7143 | ## ------------------------------------------ ## | |
7144 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7145 | ## ------------------------------------------ ## | |
7146 | _ASBOX | |
7147 | ) | | |
7148 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7149 | ;; |
7150 | esac | |
b4e70030 JB |
7151 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7155 | else |
bec39cab | 7156 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7157 | fi |
b4e70030 JB |
7158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7159 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7160 | |
95ca63c4 | 7161 | fi |
bec39cab AC |
7162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7163 | cat >>confdefs.h <<_ACEOF | |
7164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7165 | _ACEOF | |
7166 | ||
95ca63c4 CF |
7167 | fi |
7168 | ||
bec39cab | 7169 | done |
95ca63c4 CF |
7170 | |
7171 | ||
7cb9022a | 7172 | for ac_header in link.h |
bec39cab AC |
7173 | do |
7174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7179 | else |
7cb9022a | 7180 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7181 | /* confdefs.h. */ |
7182 | _ACEOF | |
7183 | cat confdefs.h >>conftest.$ac_ext | |
7184 | cat >>conftest.$ac_ext <<_ACEOF | |
7185 | /* end confdefs.h. */ | |
7cb9022a MK |
7186 | #if HAVE_SYS_TYPES_H |
7187 | # include <sys/types.h> | |
7188 | #endif | |
7189 | #if HAVE_NLIST_H | |
7190 | # include <nlist.h> | |
7191 | #endif | |
7192 | ||
7193 | ||
bec39cab AC |
7194 | #include <$ac_header> |
7195 | _ACEOF | |
7196 | rm -f conftest.$ac_objext | |
7197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7198 | (eval $ac_compile) 2>conftest.er1 | |
7199 | ac_status=$? | |
7200 | grep -v '^ *+' conftest.er1 >conftest.err | |
7201 | rm -f conftest.er1 | |
7202 | cat conftest.err >&5 | |
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7204 | (exit $ac_status); } && | |
b4e70030 JB |
7205 | { ac_try='test -z "$ac_c_werror_flag" |
7206 | || test ! -s conftest.err' | |
bec39cab AC |
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7208 | (eval $ac_try) 2>&5 | |
7209 | ac_status=$? | |
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7211 | (exit $ac_status); }; } && | |
7212 | { ac_try='test -s conftest.$ac_objext' | |
7213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7214 | (eval $ac_try) 2>&5 | |
7215 | ac_status=$? | |
7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7217 | (exit $ac_status); }; }; then | |
7cb9022a | 7218 | eval "$as_ac_Header=yes" |
bec39cab AC |
7219 | else |
7220 | echo "$as_me: failed program was:" >&5 | |
7221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7222 | ||
b4e70030 | 7223 | eval "$as_ac_Header=no" |
bec39cab AC |
7224 | fi |
7225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7226 | fi |
b4e70030 JB |
7227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7230 | cat >>confdefs.h <<_ACEOF | |
7231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7232 | _ACEOF | |
95ca63c4 | 7233 | |
bec39cab | 7234 | fi |
95ca63c4 | 7235 | |
bec39cab | 7236 | done |
95ca63c4 | 7237 | |
c906108c | 7238 | |
7cb9022a | 7239 | for ac_header in machine/reg.h |
bec39cab AC |
7240 | do |
7241 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7243 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7247 | fi | |
b4e70030 JB |
7248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7249 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7250 | else |
7251 | # Is the header compilable? | |
b4e70030 JB |
7252 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7253 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7254 | cat >conftest.$ac_ext <<_ACEOF |
7255 | /* confdefs.h. */ | |
7256 | _ACEOF | |
7257 | cat confdefs.h >>conftest.$ac_ext | |
7258 | cat >>conftest.$ac_ext <<_ACEOF | |
7259 | /* end confdefs.h. */ | |
7260 | $ac_includes_default | |
7261 | #include <$ac_header> | |
7262 | _ACEOF | |
7263 | rm -f conftest.$ac_objext | |
7264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7265 | (eval $ac_compile) 2>conftest.er1 | |
7266 | ac_status=$? | |
7267 | grep -v '^ *+' conftest.er1 >conftest.err | |
7268 | rm -f conftest.er1 | |
7269 | cat conftest.err >&5 | |
7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7271 | (exit $ac_status); } && | |
b4e70030 JB |
7272 | { ac_try='test -z "$ac_c_werror_flag" |
7273 | || test ! -s conftest.err' | |
bec39cab AC |
7274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7275 | (eval $ac_try) 2>&5 | |
7276 | ac_status=$? | |
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7278 | (exit $ac_status); }; } && | |
7279 | { ac_try='test -s conftest.$ac_objext' | |
7280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7281 | (eval $ac_try) 2>&5 | |
7282 | ac_status=$? | |
7283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7284 | (exit $ac_status); }; }; then | |
7285 | ac_header_compiler=yes | |
7286 | else | |
7287 | echo "$as_me: failed program was:" >&5 | |
7288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7289 | ||
b4e70030 | 7290 | ac_header_compiler=no |
bec39cab AC |
7291 | fi |
7292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7293 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7294 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7295 | |
7296 | # Is the header present? | |
b4e70030 JB |
7297 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7298 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7299 | cat >conftest.$ac_ext <<_ACEOF |
7300 | /* confdefs.h. */ | |
7301 | _ACEOF | |
7302 | cat confdefs.h >>conftest.$ac_ext | |
7303 | cat >>conftest.$ac_ext <<_ACEOF | |
7304 | /* end confdefs.h. */ | |
7305 | #include <$ac_header> | |
7306 | _ACEOF | |
7307 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7309 | ac_status=$? | |
7310 | grep -v '^ *+' conftest.er1 >conftest.err | |
7311 | rm -f conftest.er1 | |
7312 | cat conftest.err >&5 | |
7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7314 | (exit $ac_status); } >/dev/null; then | |
7315 | if test -s conftest.err; then | |
7316 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7317 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7318 | else | |
7319 | ac_cpp_err= | |
7320 | fi | |
75c6e08a | 7321 | else |
bec39cab | 7322 | ac_cpp_err=yes |
75c6e08a | 7323 | fi |
bec39cab AC |
7324 | if test -z "$ac_cpp_err"; then |
7325 | ac_header_preproc=yes | |
7326 | else | |
7327 | echo "$as_me: failed program was:" >&5 | |
7328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7329 | ||
7330 | ac_header_preproc=no | |
75c6e08a | 7331 | fi |
bec39cab | 7332 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7333 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7334 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7335 | |
7336 | # So? What about this header? | |
7337 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7338 | yes:no: ) | |
7339 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7340 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7342 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7343 | ac_header_preproc=yes | |
7344 | ;; | |
7345 | no:yes:* ) | |
7346 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7347 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7348 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7349 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7350 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7351 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7352 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7353 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7354 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7355 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7356 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7357 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7358 | ( |
7359 | cat <<\_ASBOX | |
7360 | ## ------------------------------------------ ## | |
7361 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7362 | ## ------------------------------------------ ## | |
7363 | _ASBOX | |
7364 | ) | | |
7365 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7366 | ;; |
7367 | esac | |
b4e70030 JB |
7368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7372 | else |
bec39cab AC |
7373 | eval "$as_ac_Header=\$ac_header_preproc" |
7374 | fi | |
b4e70030 JB |
7375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7377 | |
75c6e08a | 7378 | fi |
bec39cab AC |
7379 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7380 | cat >>confdefs.h <<_ACEOF | |
7381 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7382 | _ACEOF | |
75c6e08a | 7383 | |
bec39cab | 7384 | fi |
75c6e08a | 7385 | |
bec39cab | 7386 | done |
75c6e08a MK |
7387 | |
7388 | ||
9a156167 | 7389 | |
bec39cab AC |
7390 | for ac_header in poll.h sys/poll.h |
7391 | do | |
7392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7398 | fi | |
b4e70030 JB |
7399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7401 | else |
7402 | # Is the header compilable? | |
b4e70030 JB |
7403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7405 | cat >conftest.$ac_ext <<_ACEOF |
7406 | /* confdefs.h. */ | |
7407 | _ACEOF | |
7408 | cat confdefs.h >>conftest.$ac_ext | |
7409 | cat >>conftest.$ac_ext <<_ACEOF | |
7410 | /* end confdefs.h. */ | |
7411 | $ac_includes_default | |
7412 | #include <$ac_header> | |
7413 | _ACEOF | |
7414 | rm -f conftest.$ac_objext | |
7415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7416 | (eval $ac_compile) 2>conftest.er1 | |
7417 | ac_status=$? | |
7418 | grep -v '^ *+' conftest.er1 >conftest.err | |
7419 | rm -f conftest.er1 | |
7420 | cat conftest.err >&5 | |
7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7422 | (exit $ac_status); } && | |
b4e70030 JB |
7423 | { ac_try='test -z "$ac_c_werror_flag" |
7424 | || test ! -s conftest.err' | |
bec39cab AC |
7425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7426 | (eval $ac_try) 2>&5 | |
7427 | ac_status=$? | |
7428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7429 | (exit $ac_status); }; } && | |
7430 | { ac_try='test -s conftest.$ac_objext' | |
7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7432 | (eval $ac_try) 2>&5 | |
7433 | ac_status=$? | |
7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7435 | (exit $ac_status); }; }; then | |
7436 | ac_header_compiler=yes | |
7437 | else | |
7438 | echo "$as_me: failed program was:" >&5 | |
7439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7440 | ||
b4e70030 | 7441 | ac_header_compiler=no |
bec39cab AC |
7442 | fi |
7443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7445 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7446 | |
7447 | # Is the header present? | |
b4e70030 JB |
7448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7450 | cat >conftest.$ac_ext <<_ACEOF |
7451 | /* confdefs.h. */ | |
7452 | _ACEOF | |
7453 | cat confdefs.h >>conftest.$ac_ext | |
7454 | cat >>conftest.$ac_ext <<_ACEOF | |
7455 | /* end confdefs.h. */ | |
7456 | #include <$ac_header> | |
7457 | _ACEOF | |
7458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7459 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
7466 | if test -s conftest.err; then | |
7467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7469 | else | |
7470 | ac_cpp_err= | |
7471 | fi | |
9a156167 | 7472 | else |
bec39cab | 7473 | ac_cpp_err=yes |
9a156167 | 7474 | fi |
bec39cab AC |
7475 | if test -z "$ac_cpp_err"; then |
7476 | ac_header_preproc=yes | |
7477 | else | |
7478 | echo "$as_me: failed program was:" >&5 | |
7479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7480 | |
bec39cab | 7481 | ac_header_preproc=no |
9a156167 | 7482 | fi |
bec39cab | 7483 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7485 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7486 | |
bec39cab AC |
7487 | # So? What about this header? |
7488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7489 | yes:no: ) | |
7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7494 | ac_header_preproc=yes | |
7495 | ;; | |
7496 | no:yes:* ) | |
7497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7509 | ( |
7510 | cat <<\_ASBOX | |
7511 | ## ------------------------------------------ ## | |
7512 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7513 | ## ------------------------------------------ ## | |
7514 | _ASBOX | |
7515 | ) | | |
7516 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7517 | ;; |
7518 | esac | |
b4e70030 JB |
7519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7523 | else |
bec39cab | 7524 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7525 | fi |
b4e70030 JB |
7526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7528 | |
bec39cab AC |
7529 | fi |
7530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7531 | cat >>confdefs.h <<_ACEOF | |
7532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7533 | _ACEOF | |
9a156167 | 7534 | |
bec39cab | 7535 | fi |
9a156167 | 7536 | |
bec39cab | 7537 | done |
9a156167 | 7538 | |
9a156167 | 7539 | |
9a156167 | 7540 | |
bec39cab AC |
7541 | |
7542 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7543 | do | |
7544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7546 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7548 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7550 | fi | |
b4e70030 JB |
7551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7553 | else |
7554 | # Is the header compilable? | |
b4e70030 JB |
7555 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7556 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7557 | cat >conftest.$ac_ext <<_ACEOF |
7558 | /* confdefs.h. */ | |
7559 | _ACEOF | |
7560 | cat confdefs.h >>conftest.$ac_ext | |
7561 | cat >>conftest.$ac_ext <<_ACEOF | |
7562 | /* end confdefs.h. */ | |
7563 | $ac_includes_default | |
7564 | #include <$ac_header> | |
7565 | _ACEOF | |
7566 | rm -f conftest.$ac_objext | |
7567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7568 | (eval $ac_compile) 2>conftest.er1 | |
7569 | ac_status=$? | |
7570 | grep -v '^ *+' conftest.er1 >conftest.err | |
7571 | rm -f conftest.er1 | |
7572 | cat conftest.err >&5 | |
7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7574 | (exit $ac_status); } && | |
b4e70030 JB |
7575 | { ac_try='test -z "$ac_c_werror_flag" |
7576 | || test ! -s conftest.err' | |
bec39cab AC |
7577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7578 | (eval $ac_try) 2>&5 | |
7579 | ac_status=$? | |
7580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7581 | (exit $ac_status); }; } && | |
7582 | { ac_try='test -s conftest.$ac_objext' | |
7583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7584 | (eval $ac_try) 2>&5 | |
7585 | ac_status=$? | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); }; }; then | |
7588 | ac_header_compiler=yes | |
7589 | else | |
7590 | echo "$as_me: failed program was:" >&5 | |
7591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7592 | ||
b4e70030 | 7593 | ac_header_compiler=no |
bec39cab AC |
7594 | fi |
7595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7596 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7597 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7598 | |
7599 | # Is the header present? | |
b4e70030 JB |
7600 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7601 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7602 | cat >conftest.$ac_ext <<_ACEOF |
7603 | /* confdefs.h. */ | |
7604 | _ACEOF | |
7605 | cat confdefs.h >>conftest.$ac_ext | |
7606 | cat >>conftest.$ac_ext <<_ACEOF | |
7607 | /* end confdefs.h. */ | |
7608 | #include <$ac_header> | |
7609 | _ACEOF | |
7610 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7611 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7612 | ac_status=$? | |
7613 | grep -v '^ *+' conftest.er1 >conftest.err | |
7614 | rm -f conftest.er1 | |
7615 | cat conftest.err >&5 | |
7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7617 | (exit $ac_status); } >/dev/null; then | |
7618 | if test -s conftest.err; then | |
7619 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7620 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7621 | else | |
7622 | ac_cpp_err= | |
7623 | fi | |
9a156167 | 7624 | else |
bec39cab | 7625 | ac_cpp_err=yes |
9a156167 | 7626 | fi |
bec39cab AC |
7627 | if test -z "$ac_cpp_err"; then |
7628 | ac_header_preproc=yes | |
7629 | else | |
7630 | echo "$as_me: failed program was:" >&5 | |
7631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7632 | |
bec39cab | 7633 | ac_header_preproc=no |
9a156167 | 7634 | fi |
bec39cab | 7635 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7636 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7637 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7638 | |
bec39cab AC |
7639 | # So? What about this header? |
7640 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7641 | yes:no: ) | |
7642 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7643 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7644 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7645 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7646 | ac_header_preproc=yes | |
7647 | ;; | |
7648 | no:yes:* ) | |
7649 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7650 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7651 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7652 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7653 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7654 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7655 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7656 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7657 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7658 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7659 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7660 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7661 | ( |
7662 | cat <<\_ASBOX | |
7663 | ## ------------------------------------------ ## | |
7664 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7665 | ## ------------------------------------------ ## | |
7666 | _ASBOX | |
7667 | ) | | |
7668 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7669 | ;; |
7670 | esac | |
b4e70030 JB |
7671 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7675 | else |
bec39cab | 7676 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7677 | fi |
b4e70030 JB |
7678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
7680 | |
7681 | fi | |
bec39cab AC |
7682 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7683 | cat >>confdefs.h <<_ACEOF | |
7684 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7685 | _ACEOF | |
9a156167 | 7686 | |
bec39cab AC |
7687 | fi |
7688 | ||
7689 | done | |
9a156167 | 7690 | |
c890192f | 7691 | |
bec39cab AC |
7692 | for ac_header in stddef.h |
7693 | do | |
7694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7700 | fi | |
b4e70030 JB |
7701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7703 | else |
7704 | # Is the header compilable? | |
b4e70030 JB |
7705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7707 | cat >conftest.$ac_ext <<_ACEOF |
7708 | /* confdefs.h. */ | |
7709 | _ACEOF | |
7710 | cat confdefs.h >>conftest.$ac_ext | |
7711 | cat >>conftest.$ac_ext <<_ACEOF | |
7712 | /* end confdefs.h. */ | |
7713 | $ac_includes_default | |
7714 | #include <$ac_header> | |
7715 | _ACEOF | |
7716 | rm -f conftest.$ac_objext | |
7717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7718 | (eval $ac_compile) 2>conftest.er1 | |
7719 | ac_status=$? | |
7720 | grep -v '^ *+' conftest.er1 >conftest.err | |
7721 | rm -f conftest.er1 | |
7722 | cat conftest.err >&5 | |
7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7724 | (exit $ac_status); } && | |
b4e70030 JB |
7725 | { ac_try='test -z "$ac_c_werror_flag" |
7726 | || test ! -s conftest.err' | |
bec39cab AC |
7727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7728 | (eval $ac_try) 2>&5 | |
7729 | ac_status=$? | |
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7731 | (exit $ac_status); }; } && | |
7732 | { ac_try='test -s conftest.$ac_objext' | |
7733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7734 | (eval $ac_try) 2>&5 | |
7735 | ac_status=$? | |
7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7737 | (exit $ac_status); }; }; then | |
7738 | ac_header_compiler=yes | |
7739 | else | |
7740 | echo "$as_me: failed program was:" >&5 | |
7741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7742 | ||
b4e70030 | 7743 | ac_header_compiler=no |
bec39cab AC |
7744 | fi |
7745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7747 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7748 | |
7749 | # Is the header present? | |
b4e70030 JB |
7750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7752 | cat >conftest.$ac_ext <<_ACEOF |
7753 | /* confdefs.h. */ | |
7754 | _ACEOF | |
7755 | cat confdefs.h >>conftest.$ac_ext | |
7756 | cat >>conftest.$ac_ext <<_ACEOF | |
7757 | /* end confdefs.h. */ | |
7758 | #include <$ac_header> | |
7759 | _ACEOF | |
7760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7762 | ac_status=$? | |
7763 | grep -v '^ *+' conftest.er1 >conftest.err | |
7764 | rm -f conftest.er1 | |
7765 | cat conftest.err >&5 | |
7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7767 | (exit $ac_status); } >/dev/null; then | |
7768 | if test -s conftest.err; then | |
7769 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7771 | else | |
7772 | ac_cpp_err= | |
7773 | fi | |
c890192f | 7774 | else |
bec39cab AC |
7775 | ac_cpp_err=yes |
7776 | fi | |
7777 | if test -z "$ac_cpp_err"; then | |
7778 | ac_header_preproc=yes | |
c890192f | 7779 | else |
bec39cab AC |
7780 | echo "$as_me: failed program was:" >&5 |
7781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7782 | ||
7783 | ac_header_preproc=no | |
c890192f | 7784 | fi |
bec39cab | 7785 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7788 | |
7789 | # So? What about this header? | |
7790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7791 | yes:no: ) | |
7792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7796 | ac_header_preproc=yes | |
7797 | ;; | |
7798 | no:yes:* ) | |
7799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7811 | ( |
7812 | cat <<\_ASBOX | |
7813 | ## ------------------------------------------ ## | |
7814 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7815 | ## ------------------------------------------ ## | |
7816 | _ASBOX | |
7817 | ) | | |
7818 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7819 | ;; |
7820 | esac | |
b4e70030 JB |
7821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 7825 | else |
bec39cab | 7826 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 7827 | fi |
b4e70030 JB |
7828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7830 | |
c890192f | 7831 | fi |
bec39cab AC |
7832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7833 | cat >>confdefs.h <<_ACEOF | |
7834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7835 | _ACEOF | |
c890192f | 7836 | |
c890192f MK |
7837 | fi |
7838 | ||
bec39cab | 7839 | done |
9a156167 | 7840 | |
bec39cab AC |
7841 | |
7842 | for ac_header in stdlib.h | |
7843 | do | |
7844 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7845 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7846 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7848 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7850 | fi | |
b4e70030 JB |
7851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7853 | else |
7854 | # Is the header compilable? | |
b4e70030 JB |
7855 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7856 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7857 | cat >conftest.$ac_ext <<_ACEOF |
7858 | /* confdefs.h. */ | |
7859 | _ACEOF | |
7860 | cat confdefs.h >>conftest.$ac_ext | |
7861 | cat >>conftest.$ac_ext <<_ACEOF | |
7862 | /* end confdefs.h. */ | |
7863 | $ac_includes_default | |
7864 | #include <$ac_header> | |
7865 | _ACEOF | |
7866 | rm -f conftest.$ac_objext | |
7867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7868 | (eval $ac_compile) 2>conftest.er1 | |
7869 | ac_status=$? | |
7870 | grep -v '^ *+' conftest.er1 >conftest.err | |
7871 | rm -f conftest.er1 | |
7872 | cat conftest.err >&5 | |
7873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7874 | (exit $ac_status); } && | |
b4e70030 JB |
7875 | { ac_try='test -z "$ac_c_werror_flag" |
7876 | || test ! -s conftest.err' | |
bec39cab AC |
7877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7878 | (eval $ac_try) 2>&5 | |
7879 | ac_status=$? | |
7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7881 | (exit $ac_status); }; } && | |
7882 | { ac_try='test -s conftest.$ac_objext' | |
7883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7884 | (eval $ac_try) 2>&5 | |
7885 | ac_status=$? | |
7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7887 | (exit $ac_status); }; }; then | |
7888 | ac_header_compiler=yes | |
7889 | else | |
7890 | echo "$as_me: failed program was:" >&5 | |
7891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7892 | ||
b4e70030 | 7893 | ac_header_compiler=no |
bec39cab AC |
7894 | fi |
7895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7896 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7897 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7898 | |
7899 | # Is the header present? | |
b4e70030 JB |
7900 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7901 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7902 | cat >conftest.$ac_ext <<_ACEOF |
7903 | /* confdefs.h. */ | |
7904 | _ACEOF | |
7905 | cat confdefs.h >>conftest.$ac_ext | |
7906 | cat >>conftest.$ac_ext <<_ACEOF | |
7907 | /* end confdefs.h. */ | |
7908 | #include <$ac_header> | |
7909 | _ACEOF | |
7910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7912 | ac_status=$? | |
7913 | grep -v '^ *+' conftest.er1 >conftest.err | |
7914 | rm -f conftest.er1 | |
7915 | cat conftest.err >&5 | |
7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7917 | (exit $ac_status); } >/dev/null; then | |
7918 | if test -s conftest.err; then | |
7919 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7921 | else | |
7922 | ac_cpp_err= | |
7923 | fi | |
9a156167 | 7924 | else |
bec39cab AC |
7925 | ac_cpp_err=yes |
7926 | fi | |
7927 | if test -z "$ac_cpp_err"; then | |
7928 | ac_header_preproc=yes | |
9a156167 | 7929 | else |
bec39cab AC |
7930 | echo "$as_me: failed program was:" >&5 |
7931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7932 | ||
7933 | ac_header_preproc=no | |
9a156167 | 7934 | fi |
bec39cab | 7935 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7936 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7937 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7938 | |
7939 | # So? What about this header? | |
7940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7941 | yes:no: ) | |
7942 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7943 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7945 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7946 | ac_header_preproc=yes | |
7947 | ;; | |
7948 | no:yes:* ) | |
7949 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7950 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7951 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7952 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7953 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7954 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7955 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7956 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7958 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7959 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7960 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7961 | ( |
7962 | cat <<\_ASBOX | |
7963 | ## ------------------------------------------ ## | |
7964 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7965 | ## ------------------------------------------ ## | |
7966 | _ASBOX | |
7967 | ) | | |
7968 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7969 | ;; |
7970 | esac | |
b4e70030 JB |
7971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7975 | else |
bec39cab | 7976 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7977 | fi |
b4e70030 JB |
7978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7980 | |
9a156167 | 7981 | fi |
bec39cab AC |
7982 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7983 | cat >>confdefs.h <<_ACEOF | |
7984 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7985 | _ACEOF | |
9a156167 | 7986 | |
9a156167 MK |
7987 | fi |
7988 | ||
bec39cab AC |
7989 | done |
7990 | ||
06825bd1 | 7991 | |
bec39cab AC |
7992 | for ac_header in stdint.h |
7993 | do | |
7994 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8000 | fi | |
b4e70030 JB |
8001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8003 | else |
8004 | # Is the header compilable? | |
b4e70030 JB |
8005 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8006 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8007 | cat >conftest.$ac_ext <<_ACEOF |
8008 | /* confdefs.h. */ | |
8009 | _ACEOF | |
8010 | cat confdefs.h >>conftest.$ac_ext | |
8011 | cat >>conftest.$ac_ext <<_ACEOF | |
8012 | /* end confdefs.h. */ | |
8013 | $ac_includes_default | |
8014 | #include <$ac_header> | |
8015 | _ACEOF | |
8016 | rm -f conftest.$ac_objext | |
8017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8018 | (eval $ac_compile) 2>conftest.er1 | |
8019 | ac_status=$? | |
8020 | grep -v '^ *+' conftest.er1 >conftest.err | |
8021 | rm -f conftest.er1 | |
8022 | cat conftest.err >&5 | |
8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8024 | (exit $ac_status); } && | |
b4e70030 JB |
8025 | { ac_try='test -z "$ac_c_werror_flag" |
8026 | || test ! -s conftest.err' | |
bec39cab AC |
8027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8028 | (eval $ac_try) 2>&5 | |
8029 | ac_status=$? | |
8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8031 | (exit $ac_status); }; } && | |
8032 | { ac_try='test -s conftest.$ac_objext' | |
8033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8034 | (eval $ac_try) 2>&5 | |
8035 | ac_status=$? | |
8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8037 | (exit $ac_status); }; }; then | |
8038 | ac_header_compiler=yes | |
8039 | else | |
8040 | echo "$as_me: failed program was:" >&5 | |
8041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8042 | ||
b4e70030 | 8043 | ac_header_compiler=no |
bec39cab AC |
8044 | fi |
8045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8047 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8048 | |
8049 | # Is the header present? | |
b4e70030 JB |
8050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8052 | cat >conftest.$ac_ext <<_ACEOF |
8053 | /* confdefs.h. */ | |
8054 | _ACEOF | |
8055 | cat confdefs.h >>conftest.$ac_ext | |
8056 | cat >>conftest.$ac_ext <<_ACEOF | |
8057 | /* end confdefs.h. */ | |
8058 | #include <$ac_header> | |
8059 | _ACEOF | |
8060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8062 | ac_status=$? | |
8063 | grep -v '^ *+' conftest.er1 >conftest.err | |
8064 | rm -f conftest.er1 | |
8065 | cat conftest.err >&5 | |
8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8067 | (exit $ac_status); } >/dev/null; then | |
8068 | if test -s conftest.err; then | |
8069 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8071 | else | |
8072 | ac_cpp_err= | |
8073 | fi | |
06825bd1 | 8074 | else |
bec39cab AC |
8075 | ac_cpp_err=yes |
8076 | fi | |
8077 | if test -z "$ac_cpp_err"; then | |
8078 | ac_header_preproc=yes | |
06825bd1 | 8079 | else |
bec39cab AC |
8080 | echo "$as_me: failed program was:" >&5 |
8081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8082 | ||
8083 | ac_header_preproc=no | |
06825bd1 | 8084 | fi |
bec39cab | 8085 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8087 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8088 | |
8089 | # So? What about this header? | |
8090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8091 | yes:no: ) | |
8092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8095 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8096 | ac_header_preproc=yes | |
8097 | ;; | |
8098 | no:yes:* ) | |
8099 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8100 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8101 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8102 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8103 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8104 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8105 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8106 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8108 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8109 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8110 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8111 | ( |
8112 | cat <<\_ASBOX | |
8113 | ## ------------------------------------------ ## | |
8114 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8115 | ## ------------------------------------------ ## | |
8116 | _ASBOX | |
8117 | ) | | |
8118 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8119 | ;; |
8120 | esac | |
b4e70030 JB |
8121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8125 | else |
bec39cab | 8126 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8127 | fi |
b4e70030 JB |
8128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8130 | |
06825bd1 | 8131 | fi |
bec39cab AC |
8132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8133 | cat >>confdefs.h <<_ACEOF | |
8134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8135 | _ACEOF | |
06825bd1 | 8136 | |
06825bd1 | 8137 | fi |
4f0be353 | 8138 | |
bec39cab | 8139 | done |
4f0be353 | 8140 | |
06825bd1 | 8141 | |
06825bd1 | 8142 | |
bec39cab AC |
8143 | |
8144 | for ac_header in string.h memory.h strings.h | |
8145 | do | |
8146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8152 | fi | |
b4e70030 JB |
8153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8155 | else |
8156 | # Is the header compilable? | |
b4e70030 JB |
8157 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8158 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8159 | cat >conftest.$ac_ext <<_ACEOF |
8160 | /* confdefs.h. */ | |
8161 | _ACEOF | |
8162 | cat confdefs.h >>conftest.$ac_ext | |
8163 | cat >>conftest.$ac_ext <<_ACEOF | |
8164 | /* end confdefs.h. */ | |
8165 | $ac_includes_default | |
8166 | #include <$ac_header> | |
8167 | _ACEOF | |
8168 | rm -f conftest.$ac_objext | |
8169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8170 | (eval $ac_compile) 2>conftest.er1 | |
8171 | ac_status=$? | |
8172 | grep -v '^ *+' conftest.er1 >conftest.err | |
8173 | rm -f conftest.er1 | |
8174 | cat conftest.err >&5 | |
8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8176 | (exit $ac_status); } && | |
b4e70030 JB |
8177 | { ac_try='test -z "$ac_c_werror_flag" |
8178 | || test ! -s conftest.err' | |
bec39cab AC |
8179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8180 | (eval $ac_try) 2>&5 | |
8181 | ac_status=$? | |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8183 | (exit $ac_status); }; } && | |
8184 | { ac_try='test -s conftest.$ac_objext' | |
8185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8186 | (eval $ac_try) 2>&5 | |
8187 | ac_status=$? | |
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8189 | (exit $ac_status); }; }; then | |
8190 | ac_header_compiler=yes | |
8191 | else | |
8192 | echo "$as_me: failed program was:" >&5 | |
8193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8194 | ||
b4e70030 | 8195 | ac_header_compiler=no |
bec39cab AC |
8196 | fi |
8197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8199 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8200 | |
8201 | # Is the header present? | |
b4e70030 JB |
8202 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8204 | cat >conftest.$ac_ext <<_ACEOF |
8205 | /* confdefs.h. */ | |
8206 | _ACEOF | |
8207 | cat confdefs.h >>conftest.$ac_ext | |
8208 | cat >>conftest.$ac_ext <<_ACEOF | |
8209 | /* end confdefs.h. */ | |
8210 | #include <$ac_header> | |
8211 | _ACEOF | |
8212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8214 | ac_status=$? | |
8215 | grep -v '^ *+' conftest.er1 >conftest.err | |
8216 | rm -f conftest.er1 | |
8217 | cat conftest.err >&5 | |
8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8219 | (exit $ac_status); } >/dev/null; then | |
8220 | if test -s conftest.err; then | |
8221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8223 | else | |
8224 | ac_cpp_err= | |
8225 | fi | |
06825bd1 | 8226 | else |
bec39cab AC |
8227 | ac_cpp_err=yes |
8228 | fi | |
8229 | if test -z "$ac_cpp_err"; then | |
8230 | ac_header_preproc=yes | |
06825bd1 | 8231 | else |
bec39cab AC |
8232 | echo "$as_me: failed program was:" >&5 |
8233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8234 | ||
8235 | ac_header_preproc=no | |
06825bd1 | 8236 | fi |
bec39cab | 8237 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8239 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8240 | |
8241 | # So? What about this header? | |
8242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8243 | yes:no: ) | |
8244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8248 | ac_header_preproc=yes | |
8249 | ;; | |
8250 | no:yes:* ) | |
8251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8253 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8254 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8257 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8258 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8263 | ( |
8264 | cat <<\_ASBOX | |
8265 | ## ------------------------------------------ ## | |
8266 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8267 | ## ------------------------------------------ ## | |
8268 | _ASBOX | |
8269 | ) | | |
8270 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8271 | ;; |
8272 | esac | |
b4e70030 JB |
8273 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8277 | else | |
8278 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8279 | fi |
b4e70030 JB |
8280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8282 | |
06825bd1 | 8283 | fi |
bec39cab AC |
8284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8285 | cat >>confdefs.h <<_ACEOF | |
8286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8287 | _ACEOF | |
06825bd1 | 8288 | |
06825bd1 MK |
8289 | fi |
8290 | ||
bec39cab | 8291 | done |
5ee754fc | 8292 | |
bec39cab AC |
8293 | |
8294 | for ac_header in sys/fault.h | |
5ee754fc | 8295 | do |
bec39cab | 8296 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8298 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8302 | fi | |
b4e70030 JB |
8303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8304 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8305 | else |
8306 | # Is the header compilable? | |
b4e70030 JB |
8307 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8308 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8309 | cat >conftest.$ac_ext <<_ACEOF |
8310 | /* confdefs.h. */ | |
8311 | _ACEOF | |
8312 | cat confdefs.h >>conftest.$ac_ext | |
8313 | cat >>conftest.$ac_ext <<_ACEOF | |
8314 | /* end confdefs.h. */ | |
8315 | $ac_includes_default | |
8316 | #include <$ac_header> | |
8317 | _ACEOF | |
8318 | rm -f conftest.$ac_objext | |
8319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8320 | (eval $ac_compile) 2>conftest.er1 | |
8321 | ac_status=$? | |
8322 | grep -v '^ *+' conftest.er1 >conftest.err | |
8323 | rm -f conftest.er1 | |
8324 | cat conftest.err >&5 | |
8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8326 | (exit $ac_status); } && | |
b4e70030 JB |
8327 | { ac_try='test -z "$ac_c_werror_flag" |
8328 | || test ! -s conftest.err' | |
bec39cab AC |
8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8330 | (eval $ac_try) 2>&5 | |
8331 | ac_status=$? | |
8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8333 | (exit $ac_status); }; } && | |
8334 | { ac_try='test -s conftest.$ac_objext' | |
8335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8336 | (eval $ac_try) 2>&5 | |
8337 | ac_status=$? | |
8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8339 | (exit $ac_status); }; }; then | |
8340 | ac_header_compiler=yes | |
8341 | else | |
8342 | echo "$as_me: failed program was:" >&5 | |
8343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8344 | ||
b4e70030 | 8345 | ac_header_compiler=no |
bec39cab AC |
8346 | fi |
8347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8348 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8349 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8350 | |
8351 | # Is the header present? | |
b4e70030 JB |
8352 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8353 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8354 | cat >conftest.$ac_ext <<_ACEOF |
8355 | /* confdefs.h. */ | |
8356 | _ACEOF | |
8357 | cat confdefs.h >>conftest.$ac_ext | |
8358 | cat >>conftest.$ac_ext <<_ACEOF | |
8359 | /* end confdefs.h. */ | |
8360 | #include <$ac_header> | |
8361 | _ACEOF | |
8362 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8363 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8364 | ac_status=$? | |
8365 | grep -v '^ *+' conftest.er1 >conftest.err | |
8366 | rm -f conftest.er1 | |
8367 | cat conftest.err >&5 | |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8369 | (exit $ac_status); } >/dev/null; then | |
8370 | if test -s conftest.err; then | |
8371 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8372 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8373 | else | |
8374 | ac_cpp_err= | |
8375 | fi | |
5ee754fc | 8376 | else |
bec39cab | 8377 | ac_cpp_err=yes |
5ee754fc | 8378 | fi |
bec39cab AC |
8379 | if test -z "$ac_cpp_err"; then |
8380 | ac_header_preproc=yes | |
8381 | else | |
8382 | echo "$as_me: failed program was:" >&5 | |
8383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8384 | |
bec39cab | 8385 | ac_header_preproc=no |
5ee754fc | 8386 | fi |
bec39cab | 8387 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8388 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8389 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8390 | |
8391 | # So? What about this header? | |
8392 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8393 | yes:no: ) | |
8394 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8395 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8397 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8398 | ac_header_preproc=yes | |
8399 | ;; | |
8400 | no:yes:* ) | |
8401 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8402 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8403 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8404 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8405 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8406 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8407 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8408 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8410 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8411 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8412 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8413 | ( |
8414 | cat <<\_ASBOX | |
8415 | ## ------------------------------------------ ## | |
8416 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8417 | ## ------------------------------------------ ## | |
8418 | _ASBOX | |
8419 | ) | | |
8420 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8421 | ;; |
8422 | esac | |
b4e70030 JB |
8423 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8424 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8425 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8427 | else |
bec39cab | 8428 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8429 | fi |
b4e70030 JB |
8430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8432 | |
5ee754fc | 8433 | fi |
bec39cab AC |
8434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8435 | cat >>confdefs.h <<_ACEOF | |
8436 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8437 | _ACEOF | |
c906108c | 8438 | |
5ee754fc | 8439 | fi |
bec39cab AC |
8440 | |
8441 | done | |
8442 | ||
8443 | ||
8444 | for ac_header in sys/file.h | |
8445 | do | |
8446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8448 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8452 | fi | |
b4e70030 JB |
8453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8454 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8455 | else |
8456 | # Is the header compilable? | |
b4e70030 JB |
8457 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8458 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8459 | cat >conftest.$ac_ext <<_ACEOF |
8460 | /* confdefs.h. */ | |
8461 | _ACEOF | |
8462 | cat confdefs.h >>conftest.$ac_ext | |
8463 | cat >>conftest.$ac_ext <<_ACEOF | |
8464 | /* end confdefs.h. */ | |
8465 | $ac_includes_default | |
8466 | #include <$ac_header> | |
8467 | _ACEOF | |
8468 | rm -f conftest.$ac_objext | |
8469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8470 | (eval $ac_compile) 2>conftest.er1 | |
8471 | ac_status=$? | |
8472 | grep -v '^ *+' conftest.er1 >conftest.err | |
8473 | rm -f conftest.er1 | |
8474 | cat conftest.err >&5 | |
8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8476 | (exit $ac_status); } && | |
b4e70030 JB |
8477 | { ac_try='test -z "$ac_c_werror_flag" |
8478 | || test ! -s conftest.err' | |
bec39cab AC |
8479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8480 | (eval $ac_try) 2>&5 | |
8481 | ac_status=$? | |
8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8483 | (exit $ac_status); }; } && | |
8484 | { ac_try='test -s conftest.$ac_objext' | |
8485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8486 | (eval $ac_try) 2>&5 | |
8487 | ac_status=$? | |
8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8489 | (exit $ac_status); }; }; then | |
8490 | ac_header_compiler=yes | |
8491 | else | |
8492 | echo "$as_me: failed program was:" >&5 | |
8493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8494 | ||
b4e70030 | 8495 | ac_header_compiler=no |
bec39cab AC |
8496 | fi |
8497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8498 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8499 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8500 | |
8501 | # Is the header present? | |
b4e70030 JB |
8502 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8503 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8504 | cat >conftest.$ac_ext <<_ACEOF |
8505 | /* confdefs.h. */ | |
8506 | _ACEOF | |
8507 | cat confdefs.h >>conftest.$ac_ext | |
8508 | cat >>conftest.$ac_ext <<_ACEOF | |
8509 | /* end confdefs.h. */ | |
8510 | #include <$ac_header> | |
8511 | _ACEOF | |
8512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8514 | ac_status=$? | |
8515 | grep -v '^ *+' conftest.er1 >conftest.err | |
8516 | rm -f conftest.er1 | |
8517 | cat conftest.err >&5 | |
8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8519 | (exit $ac_status); } >/dev/null; then | |
8520 | if test -s conftest.err; then | |
8521 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8523 | else | |
8524 | ac_cpp_err= | |
8525 | fi | |
5ee754fc | 8526 | else |
bec39cab | 8527 | ac_cpp_err=yes |
5ee754fc | 8528 | fi |
bec39cab AC |
8529 | if test -z "$ac_cpp_err"; then |
8530 | ac_header_preproc=yes | |
8531 | else | |
8532 | echo "$as_me: failed program was:" >&5 | |
8533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8534 | |
bec39cab | 8535 | ac_header_preproc=no |
5ee754fc | 8536 | fi |
bec39cab | 8537 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8538 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8539 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8540 | |
bec39cab AC |
8541 | # So? What about this header? |
8542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8543 | yes:no: ) | |
8544 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8545 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8547 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8548 | ac_header_preproc=yes | |
8549 | ;; | |
8550 | no:yes:* ) | |
8551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8555 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8556 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8557 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8558 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8561 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8562 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8563 | ( |
8564 | cat <<\_ASBOX | |
8565 | ## ------------------------------------------ ## | |
8566 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8567 | ## ------------------------------------------ ## | |
8568 | _ASBOX | |
8569 | ) | | |
8570 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8571 | ;; |
8572 | esac | |
b4e70030 JB |
8573 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8577 | else |
bec39cab AC |
8578 | eval "$as_ac_Header=\$ac_header_preproc" |
8579 | fi | |
b4e70030 JB |
8580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8581 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8582 | |
bec39cab AC |
8583 | fi |
8584 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8585 | cat >>confdefs.h <<_ACEOF | |
8586 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8587 | _ACEOF | |
5ee754fc | 8588 | |
bec39cab | 8589 | fi |
5ee754fc | 8590 | |
bec39cab | 8591 | done |
5ee754fc | 8592 | |
5ee754fc | 8593 | |
bec39cab AC |
8594 | for ac_header in sys/filio.h |
8595 | do | |
8596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8602 | fi | |
b4e70030 JB |
8603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8604 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8605 | else |
8606 | # Is the header compilable? | |
b4e70030 JB |
8607 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8608 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8609 | cat >conftest.$ac_ext <<_ACEOF |
8610 | /* confdefs.h. */ | |
8611 | _ACEOF | |
8612 | cat confdefs.h >>conftest.$ac_ext | |
8613 | cat >>conftest.$ac_ext <<_ACEOF | |
8614 | /* end confdefs.h. */ | |
8615 | $ac_includes_default | |
8616 | #include <$ac_header> | |
8617 | _ACEOF | |
8618 | rm -f conftest.$ac_objext | |
8619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8620 | (eval $ac_compile) 2>conftest.er1 | |
8621 | ac_status=$? | |
8622 | grep -v '^ *+' conftest.er1 >conftest.err | |
8623 | rm -f conftest.er1 | |
8624 | cat conftest.err >&5 | |
8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8626 | (exit $ac_status); } && | |
b4e70030 JB |
8627 | { ac_try='test -z "$ac_c_werror_flag" |
8628 | || test ! -s conftest.err' | |
bec39cab AC |
8629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8630 | (eval $ac_try) 2>&5 | |
8631 | ac_status=$? | |
8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8633 | (exit $ac_status); }; } && | |
8634 | { ac_try='test -s conftest.$ac_objext' | |
8635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8636 | (eval $ac_try) 2>&5 | |
8637 | ac_status=$? | |
8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8639 | (exit $ac_status); }; }; then | |
8640 | ac_header_compiler=yes | |
8641 | else | |
8642 | echo "$as_me: failed program was:" >&5 | |
8643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8644 | ||
b4e70030 | 8645 | ac_header_compiler=no |
bec39cab AC |
8646 | fi |
8647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8648 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8649 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8650 | |
8651 | # Is the header present? | |
b4e70030 JB |
8652 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8653 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8654 | cat >conftest.$ac_ext <<_ACEOF |
8655 | /* confdefs.h. */ | |
8656 | _ACEOF | |
8657 | cat confdefs.h >>conftest.$ac_ext | |
8658 | cat >>conftest.$ac_ext <<_ACEOF | |
8659 | /* end confdefs.h. */ | |
8660 | #include <$ac_header> | |
8661 | _ACEOF | |
8662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8664 | ac_status=$? | |
8665 | grep -v '^ *+' conftest.er1 >conftest.err | |
8666 | rm -f conftest.er1 | |
8667 | cat conftest.err >&5 | |
8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8669 | (exit $ac_status); } >/dev/null; then | |
8670 | if test -s conftest.err; then | |
8671 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8673 | else | |
8674 | ac_cpp_err= | |
8675 | fi | |
5ee754fc | 8676 | else |
bec39cab | 8677 | ac_cpp_err=yes |
5ee754fc | 8678 | fi |
bec39cab AC |
8679 | if test -z "$ac_cpp_err"; then |
8680 | ac_header_preproc=yes | |
8681 | else | |
8682 | echo "$as_me: failed program was:" >&5 | |
8683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8684 | |
bec39cab | 8685 | ac_header_preproc=no |
5ee754fc | 8686 | fi |
bec39cab | 8687 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8688 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8689 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8690 | |
bec39cab AC |
8691 | # So? What about this header? |
8692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8693 | yes:no: ) | |
8694 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8695 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8697 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8698 | ac_header_preproc=yes | |
8699 | ;; | |
8700 | no:yes:* ) | |
8701 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8702 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8703 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8704 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8705 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8706 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8707 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8708 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8710 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8711 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8712 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8713 | ( |
8714 | cat <<\_ASBOX | |
8715 | ## ------------------------------------------ ## | |
8716 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8717 | ## ------------------------------------------ ## | |
8718 | _ASBOX | |
8719 | ) | | |
8720 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8721 | ;; |
8722 | esac | |
b4e70030 JB |
8723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8727 | else |
bec39cab | 8728 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8729 | fi |
b4e70030 JB |
8730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8732 | |
5ee754fc | 8733 | fi |
bec39cab AC |
8734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8735 | cat >>confdefs.h <<_ACEOF | |
8736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8737 | _ACEOF | |
5ee754fc MK |
8738 | |
8739 | fi | |
8740 | ||
bec39cab AC |
8741 | done |
8742 | ||
8743 | ||
8744 | for ac_header in sys/ioctl.h | |
8745 | do | |
8746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8752 | fi | |
b4e70030 JB |
8753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8755 | else |
8756 | # Is the header compilable? | |
b4e70030 JB |
8757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8759 | cat >conftest.$ac_ext <<_ACEOF |
8760 | /* confdefs.h. */ | |
8761 | _ACEOF | |
8762 | cat confdefs.h >>conftest.$ac_ext | |
8763 | cat >>conftest.$ac_ext <<_ACEOF | |
8764 | /* end confdefs.h. */ | |
8765 | $ac_includes_default | |
8766 | #include <$ac_header> | |
8767 | _ACEOF | |
8768 | rm -f conftest.$ac_objext | |
8769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8770 | (eval $ac_compile) 2>conftest.er1 | |
8771 | ac_status=$? | |
8772 | grep -v '^ *+' conftest.er1 >conftest.err | |
8773 | rm -f conftest.er1 | |
8774 | cat conftest.err >&5 | |
8775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8776 | (exit $ac_status); } && | |
b4e70030 JB |
8777 | { ac_try='test -z "$ac_c_werror_flag" |
8778 | || test ! -s conftest.err' | |
bec39cab AC |
8779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8780 | (eval $ac_try) 2>&5 | |
8781 | ac_status=$? | |
8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8783 | (exit $ac_status); }; } && | |
8784 | { ac_try='test -s conftest.$ac_objext' | |
8785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8786 | (eval $ac_try) 2>&5 | |
8787 | ac_status=$? | |
8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8789 | (exit $ac_status); }; }; then | |
8790 | ac_header_compiler=yes | |
8791 | else | |
8792 | echo "$as_me: failed program was:" >&5 | |
8793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8794 | ||
b4e70030 | 8795 | ac_header_compiler=no |
bec39cab AC |
8796 | fi |
8797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8799 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8800 | |
8801 | # Is the header present? | |
b4e70030 JB |
8802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8804 | cat >conftest.$ac_ext <<_ACEOF |
8805 | /* confdefs.h. */ | |
8806 | _ACEOF | |
8807 | cat confdefs.h >>conftest.$ac_ext | |
8808 | cat >>conftest.$ac_ext <<_ACEOF | |
8809 | /* end confdefs.h. */ | |
8810 | #include <$ac_header> | |
8811 | _ACEOF | |
8812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8814 | ac_status=$? | |
8815 | grep -v '^ *+' conftest.er1 >conftest.err | |
8816 | rm -f conftest.er1 | |
8817 | cat conftest.err >&5 | |
8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8819 | (exit $ac_status); } >/dev/null; then | |
8820 | if test -s conftest.err; then | |
8821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8823 | else | |
8824 | ac_cpp_err= | |
8825 | fi | |
5ee754fc | 8826 | else |
bec39cab | 8827 | ac_cpp_err=yes |
5ee754fc | 8828 | fi |
bec39cab AC |
8829 | if test -z "$ac_cpp_err"; then |
8830 | ac_header_preproc=yes | |
8831 | else | |
8832 | echo "$as_me: failed program was:" >&5 | |
8833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8834 | |
bec39cab | 8835 | ac_header_preproc=no |
5ee754fc | 8836 | fi |
bec39cab | 8837 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8839 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8840 | |
bec39cab AC |
8841 | # So? What about this header? |
8842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8843 | yes:no: ) | |
8844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8848 | ac_header_preproc=yes | |
8849 | ;; | |
8850 | no:yes:* ) | |
8851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8863 | ( |
8864 | cat <<\_ASBOX | |
8865 | ## ------------------------------------------ ## | |
8866 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8867 | ## ------------------------------------------ ## | |
8868 | _ASBOX | |
8869 | ) | | |
8870 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8871 | ;; |
8872 | esac | |
b4e70030 JB |
8873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8877 | else |
bec39cab | 8878 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8879 | fi |
b4e70030 JB |
8880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
8882 | |
8883 | fi | |
bec39cab AC |
8884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8885 | cat >>confdefs.h <<_ACEOF | |
8886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8887 | _ACEOF | |
8888 | ||
5ee754fc MK |
8889 | fi |
8890 | ||
bec39cab | 8891 | done |
5ee754fc | 8892 | |
5ee754fc | 8893 | |
bec39cab | 8894 | for ac_header in sys/param.h |
5ee754fc | 8895 | do |
bec39cab | 8896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8902 | fi | |
b4e70030 JB |
8903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8905 | else |
8906 | # Is the header compilable? | |
b4e70030 JB |
8907 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8908 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8909 | cat >conftest.$ac_ext <<_ACEOF |
8910 | /* confdefs.h. */ | |
8911 | _ACEOF | |
8912 | cat confdefs.h >>conftest.$ac_ext | |
8913 | cat >>conftest.$ac_ext <<_ACEOF | |
8914 | /* end confdefs.h. */ | |
8915 | $ac_includes_default | |
8916 | #include <$ac_header> | |
8917 | _ACEOF | |
8918 | rm -f conftest.$ac_objext | |
8919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8920 | (eval $ac_compile) 2>conftest.er1 | |
8921 | ac_status=$? | |
8922 | grep -v '^ *+' conftest.er1 >conftest.err | |
8923 | rm -f conftest.er1 | |
8924 | cat conftest.err >&5 | |
8925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8926 | (exit $ac_status); } && | |
b4e70030 JB |
8927 | { ac_try='test -z "$ac_c_werror_flag" |
8928 | || test ! -s conftest.err' | |
bec39cab AC |
8929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8930 | (eval $ac_try) 2>&5 | |
8931 | ac_status=$? | |
8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8933 | (exit $ac_status); }; } && | |
8934 | { ac_try='test -s conftest.$ac_objext' | |
8935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8936 | (eval $ac_try) 2>&5 | |
8937 | ac_status=$? | |
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8939 | (exit $ac_status); }; }; then | |
8940 | ac_header_compiler=yes | |
8941 | else | |
8942 | echo "$as_me: failed program was:" >&5 | |
8943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8944 | ||
b4e70030 | 8945 | ac_header_compiler=no |
bec39cab AC |
8946 | fi |
8947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8950 | |
8951 | # Is the header present? | |
b4e70030 JB |
8952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8954 | cat >conftest.$ac_ext <<_ACEOF |
8955 | /* confdefs.h. */ | |
8956 | _ACEOF | |
8957 | cat confdefs.h >>conftest.$ac_ext | |
8958 | cat >>conftest.$ac_ext <<_ACEOF | |
8959 | /* end confdefs.h. */ | |
8960 | #include <$ac_header> | |
8961 | _ACEOF | |
8962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8964 | ac_status=$? | |
8965 | grep -v '^ *+' conftest.er1 >conftest.err | |
8966 | rm -f conftest.er1 | |
8967 | cat conftest.err >&5 | |
8968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8969 | (exit $ac_status); } >/dev/null; then | |
8970 | if test -s conftest.err; then | |
8971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8973 | else | |
8974 | ac_cpp_err= | |
8975 | fi | |
5ee754fc | 8976 | else |
bec39cab | 8977 | ac_cpp_err=yes |
5ee754fc | 8978 | fi |
bec39cab AC |
8979 | if test -z "$ac_cpp_err"; then |
8980 | ac_header_preproc=yes | |
8981 | else | |
8982 | echo "$as_me: failed program was:" >&5 | |
8983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8984 | |
bec39cab | 8985 | ac_header_preproc=no |
5ee754fc | 8986 | fi |
bec39cab | 8987 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8990 | |
8991 | # So? What about this header? | |
8992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8993 | yes:no: ) | |
8994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8998 | ac_header_preproc=yes | |
8999 | ;; | |
9000 | no:yes:* ) | |
9001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9013 | ( |
9014 | cat <<\_ASBOX | |
9015 | ## ------------------------------------------ ## | |
9016 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9017 | ## ------------------------------------------ ## | |
9018 | _ASBOX | |
9019 | ) | | |
9020 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9021 | ;; |
9022 | esac | |
b4e70030 JB |
9023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9027 | else |
bec39cab | 9028 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9029 | fi |
b4e70030 JB |
9030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9032 | |
5ee754fc | 9033 | fi |
bec39cab AC |
9034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9035 | cat >>confdefs.h <<_ACEOF | |
9036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9037 | _ACEOF | |
9038 | ||
5ee754fc | 9039 | fi |
bec39cab | 9040 | |
5ee754fc MK |
9041 | done |
9042 | ||
bec39cab AC |
9043 | |
9044 | for ac_header in sys/proc.h | |
5ee754fc | 9045 | do |
bec39cab | 9046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9051 | else |
7cb9022a | 9052 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9053 | /* confdefs.h. */ |
9054 | _ACEOF | |
9055 | cat confdefs.h >>conftest.$ac_ext | |
9056 | cat >>conftest.$ac_ext <<_ACEOF | |
9057 | /* end confdefs.h. */ | |
7cb9022a MK |
9058 | #if HAVE_SYS_PARAM_H |
9059 | # include <sys/param.h> | |
9060 | #endif | |
9061 | ||
9062 | ||
bec39cab AC |
9063 | #include <$ac_header> |
9064 | _ACEOF | |
9065 | rm -f conftest.$ac_objext | |
9066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9067 | (eval $ac_compile) 2>conftest.er1 | |
9068 | ac_status=$? | |
9069 | grep -v '^ *+' conftest.er1 >conftest.err | |
9070 | rm -f conftest.er1 | |
9071 | cat conftest.err >&5 | |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | (exit $ac_status); } && | |
b4e70030 JB |
9074 | { ac_try='test -z "$ac_c_werror_flag" |
9075 | || test ! -s conftest.err' | |
bec39cab AC |
9076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9077 | (eval $ac_try) 2>&5 | |
9078 | ac_status=$? | |
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9080 | (exit $ac_status); }; } && | |
9081 | { ac_try='test -s conftest.$ac_objext' | |
9082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9083 | (eval $ac_try) 2>&5 | |
9084 | ac_status=$? | |
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9086 | (exit $ac_status); }; }; then | |
7cb9022a | 9087 | eval "$as_ac_Header=yes" |
bec39cab AC |
9088 | else |
9089 | echo "$as_me: failed program was:" >&5 | |
9090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9091 | ||
b4e70030 | 9092 | eval "$as_ac_Header=no" |
bec39cab AC |
9093 | fi |
9094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9095 | fi |
b4e70030 JB |
9096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9098 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9099 | cat >>confdefs.h <<_ACEOF | |
9100 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9101 | _ACEOF | |
9102 | ||
5ee754fc | 9103 | fi |
bec39cab | 9104 | |
5ee754fc MK |
9105 | done |
9106 | ||
bec39cab AC |
9107 | |
9108 | for ac_header in sys/procfs.h | |
5ee754fc | 9109 | do |
bec39cab | 9110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9112 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9116 | fi | |
b4e70030 JB |
9117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9119 | else |
9120 | # Is the header compilable? | |
b4e70030 JB |
9121 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9122 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9123 | cat >conftest.$ac_ext <<_ACEOF |
9124 | /* confdefs.h. */ | |
9125 | _ACEOF | |
9126 | cat confdefs.h >>conftest.$ac_ext | |
9127 | cat >>conftest.$ac_ext <<_ACEOF | |
9128 | /* end confdefs.h. */ | |
9129 | $ac_includes_default | |
9130 | #include <$ac_header> | |
9131 | _ACEOF | |
9132 | rm -f conftest.$ac_objext | |
9133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9134 | (eval $ac_compile) 2>conftest.er1 | |
9135 | ac_status=$? | |
9136 | grep -v '^ *+' conftest.er1 >conftest.err | |
9137 | rm -f conftest.er1 | |
9138 | cat conftest.err >&5 | |
9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9140 | (exit $ac_status); } && | |
b4e70030 JB |
9141 | { ac_try='test -z "$ac_c_werror_flag" |
9142 | || test ! -s conftest.err' | |
bec39cab AC |
9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9144 | (eval $ac_try) 2>&5 | |
9145 | ac_status=$? | |
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9147 | (exit $ac_status); }; } && | |
9148 | { ac_try='test -s conftest.$ac_objext' | |
9149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9150 | (eval $ac_try) 2>&5 | |
9151 | ac_status=$? | |
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9153 | (exit $ac_status); }; }; then | |
9154 | ac_header_compiler=yes | |
9155 | else | |
9156 | echo "$as_me: failed program was:" >&5 | |
9157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9158 | ||
b4e70030 | 9159 | ac_header_compiler=no |
bec39cab AC |
9160 | fi |
9161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9163 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9164 | |
9165 | # Is the header present? | |
b4e70030 JB |
9166 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9167 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9168 | cat >conftest.$ac_ext <<_ACEOF |
9169 | /* confdefs.h. */ | |
9170 | _ACEOF | |
9171 | cat confdefs.h >>conftest.$ac_ext | |
9172 | cat >>conftest.$ac_ext <<_ACEOF | |
9173 | /* end confdefs.h. */ | |
9174 | #include <$ac_header> | |
9175 | _ACEOF | |
9176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9178 | ac_status=$? | |
9179 | grep -v '^ *+' conftest.er1 >conftest.err | |
9180 | rm -f conftest.er1 | |
9181 | cat conftest.err >&5 | |
9182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9183 | (exit $ac_status); } >/dev/null; then | |
9184 | if test -s conftest.err; then | |
9185 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9187 | else | |
9188 | ac_cpp_err= | |
9189 | fi | |
9190 | else | |
9191 | ac_cpp_err=yes | |
5ee754fc | 9192 | fi |
bec39cab AC |
9193 | if test -z "$ac_cpp_err"; then |
9194 | ac_header_preproc=yes | |
5ee754fc | 9195 | else |
bec39cab AC |
9196 | echo "$as_me: failed program was:" >&5 |
9197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9198 | ||
9199 | ac_header_preproc=no | |
5ee754fc | 9200 | fi |
bec39cab | 9201 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9203 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9204 | |
bec39cab AC |
9205 | # So? What about this header? |
9206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9207 | yes:no: ) | |
9208 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9209 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9211 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9212 | ac_header_preproc=yes | |
9213 | ;; | |
9214 | no:yes:* ) | |
9215 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9216 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9217 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9218 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9219 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9220 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9221 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9222 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9224 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9225 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9226 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9227 | ( |
9228 | cat <<\_ASBOX | |
9229 | ## ------------------------------------------ ## | |
9230 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9231 | ## ------------------------------------------ ## | |
9232 | _ASBOX | |
9233 | ) | | |
9234 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9235 | ;; |
9236 | esac | |
b4e70030 JB |
9237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9241 | else | |
9242 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9243 | fi |
b4e70030 JB |
9244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9246 | |
5ee754fc | 9247 | fi |
bec39cab AC |
9248 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9249 | cat >>confdefs.h <<_ACEOF | |
9250 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9251 | _ACEOF | |
9252 | ||
5ee754fc | 9253 | fi |
bec39cab | 9254 | |
5ee754fc MK |
9255 | done |
9256 | ||
bec39cab AC |
9257 | |
9258 | ||
9259 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9260 | do |
bec39cab | 9261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9267 | fi | |
b4e70030 JB |
9268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9270 | else |
9271 | # Is the header compilable? | |
b4e70030 JB |
9272 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9273 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9274 | cat >conftest.$ac_ext <<_ACEOF |
9275 | /* confdefs.h. */ | |
9276 | _ACEOF | |
9277 | cat confdefs.h >>conftest.$ac_ext | |
9278 | cat >>conftest.$ac_ext <<_ACEOF | |
9279 | /* end confdefs.h. */ | |
9280 | $ac_includes_default | |
9281 | #include <$ac_header> | |
9282 | _ACEOF | |
9283 | rm -f conftest.$ac_objext | |
9284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9285 | (eval $ac_compile) 2>conftest.er1 | |
9286 | ac_status=$? | |
9287 | grep -v '^ *+' conftest.er1 >conftest.err | |
9288 | rm -f conftest.er1 | |
9289 | cat conftest.err >&5 | |
9290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9291 | (exit $ac_status); } && | |
b4e70030 JB |
9292 | { ac_try='test -z "$ac_c_werror_flag" |
9293 | || test ! -s conftest.err' | |
bec39cab AC |
9294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9295 | (eval $ac_try) 2>&5 | |
9296 | ac_status=$? | |
9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9298 | (exit $ac_status); }; } && | |
9299 | { ac_try='test -s conftest.$ac_objext' | |
9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9301 | (eval $ac_try) 2>&5 | |
9302 | ac_status=$? | |
9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9304 | (exit $ac_status); }; }; then | |
9305 | ac_header_compiler=yes | |
9306 | else | |
9307 | echo "$as_me: failed program was:" >&5 | |
9308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9309 | ||
b4e70030 | 9310 | ac_header_compiler=no |
bec39cab AC |
9311 | fi |
9312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9313 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9314 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9315 | |
9316 | # Is the header present? | |
b4e70030 JB |
9317 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9318 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9319 | cat >conftest.$ac_ext <<_ACEOF |
9320 | /* confdefs.h. */ | |
9321 | _ACEOF | |
9322 | cat confdefs.h >>conftest.$ac_ext | |
9323 | cat >>conftest.$ac_ext <<_ACEOF | |
9324 | /* end confdefs.h. */ | |
9325 | #include <$ac_header> | |
9326 | _ACEOF | |
9327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9329 | ac_status=$? | |
9330 | grep -v '^ *+' conftest.er1 >conftest.err | |
9331 | rm -f conftest.er1 | |
9332 | cat conftest.err >&5 | |
9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9334 | (exit $ac_status); } >/dev/null; then | |
9335 | if test -s conftest.err; then | |
9336 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9338 | else | |
9339 | ac_cpp_err= | |
9340 | fi | |
9341 | else | |
9342 | ac_cpp_err=yes | |
5ee754fc | 9343 | fi |
bec39cab AC |
9344 | if test -z "$ac_cpp_err"; then |
9345 | ac_header_preproc=yes | |
5ee754fc | 9346 | else |
bec39cab AC |
9347 | echo "$as_me: failed program was:" >&5 |
9348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9349 | ||
9350 | ac_header_preproc=no | |
5ee754fc | 9351 | fi |
bec39cab | 9352 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9353 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9354 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9355 | |
bec39cab AC |
9356 | # So? What about this header? |
9357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9358 | yes:no: ) | |
9359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9362 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9363 | ac_header_preproc=yes | |
9364 | ;; | |
9365 | no:yes:* ) | |
9366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9377 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9378 | ( |
9379 | cat <<\_ASBOX | |
9380 | ## ------------------------------------------ ## | |
9381 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9382 | ## ------------------------------------------ ## | |
9383 | _ASBOX | |
9384 | ) | | |
9385 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9386 | ;; |
9387 | esac | |
b4e70030 JB |
9388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9392 | else | |
9393 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9394 | fi |
b4e70030 JB |
9395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9397 | |
5ee754fc | 9398 | fi |
bec39cab AC |
9399 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9400 | cat >>confdefs.h <<_ACEOF | |
9401 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9402 | _ACEOF | |
9403 | ||
5ee754fc | 9404 | fi |
bec39cab | 9405 | |
5ee754fc MK |
9406 | done |
9407 | ||
bec39cab AC |
9408 | |
9409 | ||
9410 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9411 | do |
bec39cab | 9412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9418 | fi | |
b4e70030 JB |
9419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9421 | else |
9422 | # Is the header compilable? | |
b4e70030 JB |
9423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9425 | cat >conftest.$ac_ext <<_ACEOF |
9426 | /* confdefs.h. */ | |
9427 | _ACEOF | |
9428 | cat confdefs.h >>conftest.$ac_ext | |
9429 | cat >>conftest.$ac_ext <<_ACEOF | |
9430 | /* end confdefs.h. */ | |
9431 | $ac_includes_default | |
9432 | #include <$ac_header> | |
9433 | _ACEOF | |
9434 | rm -f conftest.$ac_objext | |
9435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9436 | (eval $ac_compile) 2>conftest.er1 | |
9437 | ac_status=$? | |
9438 | grep -v '^ *+' conftest.er1 >conftest.err | |
9439 | rm -f conftest.er1 | |
9440 | cat conftest.err >&5 | |
9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9442 | (exit $ac_status); } && | |
b4e70030 JB |
9443 | { ac_try='test -z "$ac_c_werror_flag" |
9444 | || test ! -s conftest.err' | |
bec39cab AC |
9445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9446 | (eval $ac_try) 2>&5 | |
9447 | ac_status=$? | |
9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9449 | (exit $ac_status); }; } && | |
9450 | { ac_try='test -s conftest.$ac_objext' | |
9451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9452 | (eval $ac_try) 2>&5 | |
9453 | ac_status=$? | |
9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9455 | (exit $ac_status); }; }; then | |
9456 | ac_header_compiler=yes | |
9457 | else | |
9458 | echo "$as_me: failed program was:" >&5 | |
9459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9460 | ||
b4e70030 | 9461 | ac_header_compiler=no |
bec39cab AC |
9462 | fi |
9463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9464 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9465 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9466 | |
9467 | # Is the header present? | |
b4e70030 JB |
9468 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9469 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
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 | #include <$ac_header> | |
9477 | _ACEOF | |
9478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9480 | ac_status=$? | |
9481 | grep -v '^ *+' conftest.er1 >conftest.err | |
9482 | rm -f conftest.er1 | |
9483 | cat conftest.err >&5 | |
9484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9485 | (exit $ac_status); } >/dev/null; then | |
9486 | if test -s conftest.err; then | |
9487 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9489 | else | |
9490 | ac_cpp_err= | |
9491 | fi | |
9492 | else | |
9493 | ac_cpp_err=yes | |
5ee754fc | 9494 | fi |
bec39cab AC |
9495 | if test -z "$ac_cpp_err"; then |
9496 | ac_header_preproc=yes | |
5ee754fc | 9497 | else |
bec39cab AC |
9498 | echo "$as_me: failed program was:" >&5 |
9499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9500 | ||
9501 | ac_header_preproc=no | |
5ee754fc | 9502 | fi |
bec39cab | 9503 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9504 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9505 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9506 | |
bec39cab AC |
9507 | # So? What about this header? |
9508 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9509 | yes:no: ) | |
9510 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9511 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9513 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9514 | ac_header_preproc=yes | |
9515 | ;; | |
9516 | no:yes:* ) | |
9517 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9518 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9519 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9520 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9521 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9522 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9523 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9524 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9525 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9526 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9527 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9528 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9529 | ( |
9530 | cat <<\_ASBOX | |
9531 | ## ------------------------------------------ ## | |
9532 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9533 | ## ------------------------------------------ ## | |
9534 | _ASBOX | |
9535 | ) | | |
9536 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9537 | ;; |
9538 | esac | |
b4e70030 JB |
9539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9543 | else | |
9544 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9545 | fi |
b4e70030 JB |
9546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9547 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9548 | |
5ee754fc | 9549 | fi |
bec39cab AC |
9550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9551 | cat >>confdefs.h <<_ACEOF | |
9552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9553 | _ACEOF | |
9554 | ||
5ee754fc | 9555 | fi |
bec39cab | 9556 | |
5ee754fc MK |
9557 | done |
9558 | ||
bec39cab AC |
9559 | |
9560 | for ac_header in sys/select.h | |
5ee754fc | 9561 | do |
bec39cab | 9562 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9568 | fi | |
b4e70030 JB |
9569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9571 | else |
9572 | # Is the header compilable? | |
b4e70030 JB |
9573 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9575 | cat >conftest.$ac_ext <<_ACEOF |
9576 | /* confdefs.h. */ | |
9577 | _ACEOF | |
9578 | cat confdefs.h >>conftest.$ac_ext | |
9579 | cat >>conftest.$ac_ext <<_ACEOF | |
9580 | /* end confdefs.h. */ | |
9581 | $ac_includes_default | |
9582 | #include <$ac_header> | |
9583 | _ACEOF | |
9584 | rm -f conftest.$ac_objext | |
9585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9586 | (eval $ac_compile) 2>conftest.er1 | |
9587 | ac_status=$? | |
9588 | grep -v '^ *+' conftest.er1 >conftest.err | |
9589 | rm -f conftest.er1 | |
9590 | cat conftest.err >&5 | |
9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9592 | (exit $ac_status); } && | |
b4e70030 JB |
9593 | { ac_try='test -z "$ac_c_werror_flag" |
9594 | || test ! -s conftest.err' | |
bec39cab AC |
9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9596 | (eval $ac_try) 2>&5 | |
9597 | ac_status=$? | |
9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9599 | (exit $ac_status); }; } && | |
9600 | { ac_try='test -s conftest.$ac_objext' | |
9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9602 | (eval $ac_try) 2>&5 | |
9603 | ac_status=$? | |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9605 | (exit $ac_status); }; }; then | |
9606 | ac_header_compiler=yes | |
9607 | else | |
9608 | echo "$as_me: failed program was:" >&5 | |
9609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9610 | ||
b4e70030 | 9611 | ac_header_compiler=no |
bec39cab AC |
9612 | fi |
9613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9614 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9615 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9616 | |
9617 | # Is the header present? | |
b4e70030 JB |
9618 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9619 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9620 | cat >conftest.$ac_ext <<_ACEOF |
9621 | /* confdefs.h. */ | |
9622 | _ACEOF | |
9623 | cat confdefs.h >>conftest.$ac_ext | |
9624 | cat >>conftest.$ac_ext <<_ACEOF | |
9625 | /* end confdefs.h. */ | |
9626 | #include <$ac_header> | |
9627 | _ACEOF | |
9628 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9629 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9630 | ac_status=$? | |
9631 | grep -v '^ *+' conftest.er1 >conftest.err | |
9632 | rm -f conftest.er1 | |
9633 | cat conftest.err >&5 | |
9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9635 | (exit $ac_status); } >/dev/null; then | |
9636 | if test -s conftest.err; then | |
9637 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9638 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9639 | else | |
9640 | ac_cpp_err= | |
9641 | fi | |
9642 | else | |
9643 | ac_cpp_err=yes | |
5ee754fc | 9644 | fi |
bec39cab AC |
9645 | if test -z "$ac_cpp_err"; then |
9646 | ac_header_preproc=yes | |
5ee754fc | 9647 | else |
bec39cab AC |
9648 | echo "$as_me: failed program was:" >&5 |
9649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9650 | ||
9651 | ac_header_preproc=no | |
5ee754fc | 9652 | fi |
bec39cab | 9653 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9654 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9655 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9656 | |
bec39cab AC |
9657 | # So? What about this header? |
9658 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9659 | yes:no: ) | |
9660 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9661 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9663 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9664 | ac_header_preproc=yes | |
9665 | ;; | |
9666 | no:yes:* ) | |
9667 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9668 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9669 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9670 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9671 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9672 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9673 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9674 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9676 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9677 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9678 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9679 | ( |
9680 | cat <<\_ASBOX | |
9681 | ## ------------------------------------------ ## | |
9682 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9683 | ## ------------------------------------------ ## | |
9684 | _ASBOX | |
9685 | ) | | |
9686 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9687 | ;; |
9688 | esac | |
b4e70030 JB |
9689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9693 | else | |
9694 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9695 | fi |
b4e70030 JB |
9696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9698 | |
5ee754fc | 9699 | fi |
bec39cab AC |
9700 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9701 | cat >>confdefs.h <<_ACEOF | |
9702 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9703 | _ACEOF | |
9704 | ||
5ee754fc | 9705 | fi |
bec39cab | 9706 | |
5ee754fc MK |
9707 | done |
9708 | ||
bec39cab AC |
9709 | |
9710 | for ac_header in sys/syscall.h | |
5ee754fc | 9711 | do |
bec39cab | 9712 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9713 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9714 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9715 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9718 | fi | |
b4e70030 JB |
9719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9721 | else |
9722 | # Is the header compilable? | |
b4e70030 JB |
9723 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9724 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9725 | cat >conftest.$ac_ext <<_ACEOF |
9726 | /* confdefs.h. */ | |
9727 | _ACEOF | |
9728 | cat confdefs.h >>conftest.$ac_ext | |
9729 | cat >>conftest.$ac_ext <<_ACEOF | |
9730 | /* end confdefs.h. */ | |
9731 | $ac_includes_default | |
9732 | #include <$ac_header> | |
9733 | _ACEOF | |
9734 | rm -f conftest.$ac_objext | |
9735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9736 | (eval $ac_compile) 2>conftest.er1 | |
9737 | ac_status=$? | |
9738 | grep -v '^ *+' conftest.er1 >conftest.err | |
9739 | rm -f conftest.er1 | |
9740 | cat conftest.err >&5 | |
9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9742 | (exit $ac_status); } && | |
b4e70030 JB |
9743 | { ac_try='test -z "$ac_c_werror_flag" |
9744 | || test ! -s conftest.err' | |
bec39cab AC |
9745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9746 | (eval $ac_try) 2>&5 | |
9747 | ac_status=$? | |
9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9749 | (exit $ac_status); }; } && | |
9750 | { ac_try='test -s conftest.$ac_objext' | |
9751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9752 | (eval $ac_try) 2>&5 | |
9753 | ac_status=$? | |
9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9755 | (exit $ac_status); }; }; then | |
9756 | ac_header_compiler=yes | |
9757 | else | |
9758 | echo "$as_me: failed program was:" >&5 | |
9759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9760 | ||
b4e70030 | 9761 | ac_header_compiler=no |
bec39cab AC |
9762 | fi |
9763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9764 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9765 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9766 | |
9767 | # Is the header present? | |
b4e70030 JB |
9768 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9770 | cat >conftest.$ac_ext <<_ACEOF |
9771 | /* confdefs.h. */ | |
9772 | _ACEOF | |
9773 | cat confdefs.h >>conftest.$ac_ext | |
9774 | cat >>conftest.$ac_ext <<_ACEOF | |
9775 | /* end confdefs.h. */ | |
9776 | #include <$ac_header> | |
9777 | _ACEOF | |
9778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9780 | ac_status=$? | |
9781 | grep -v '^ *+' conftest.er1 >conftest.err | |
9782 | rm -f conftest.er1 | |
9783 | cat conftest.err >&5 | |
9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9785 | (exit $ac_status); } >/dev/null; then | |
9786 | if test -s conftest.err; then | |
9787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9788 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9789 | else | |
9790 | ac_cpp_err= | |
9791 | fi | |
9792 | else | |
9793 | ac_cpp_err=yes | |
5ee754fc | 9794 | fi |
bec39cab AC |
9795 | if test -z "$ac_cpp_err"; then |
9796 | ac_header_preproc=yes | |
5ee754fc | 9797 | else |
bec39cab AC |
9798 | echo "$as_me: failed program was:" >&5 |
9799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9800 | ||
9801 | ac_header_preproc=no | |
5ee754fc | 9802 | fi |
bec39cab | 9803 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9804 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9805 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9806 | |
bec39cab AC |
9807 | # So? What about this header? |
9808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9809 | yes:no: ) | |
9810 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9811 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9813 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9814 | ac_header_preproc=yes | |
9815 | ;; | |
9816 | no:yes:* ) | |
9817 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9818 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9819 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9820 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9821 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9822 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9823 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9824 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9827 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9828 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9829 | ( |
9830 | cat <<\_ASBOX | |
9831 | ## ------------------------------------------ ## | |
9832 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9833 | ## ------------------------------------------ ## | |
9834 | _ASBOX | |
9835 | ) | | |
9836 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9837 | ;; |
9838 | esac | |
b4e70030 JB |
9839 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9843 | else | |
9844 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9845 | fi |
b4e70030 JB |
9846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9848 | |
5ee754fc | 9849 | fi |
bec39cab AC |
9850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9851 | cat >>confdefs.h <<_ACEOF | |
9852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9853 | _ACEOF | |
9854 | ||
5ee754fc | 9855 | fi |
bec39cab | 9856 | |
5ee754fc MK |
9857 | done |
9858 | ||
bec39cab AC |
9859 | |
9860 | for ac_header in sys/types.h | |
5ee754fc | 9861 | do |
bec39cab | 9862 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9864 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9868 | fi | |
b4e70030 JB |
9869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9870 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9871 | else |
9872 | # Is the header compilable? | |
b4e70030 JB |
9873 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9875 | cat >conftest.$ac_ext <<_ACEOF |
9876 | /* confdefs.h. */ | |
9877 | _ACEOF | |
9878 | cat confdefs.h >>conftest.$ac_ext | |
9879 | cat >>conftest.$ac_ext <<_ACEOF | |
9880 | /* end confdefs.h. */ | |
9881 | $ac_includes_default | |
9882 | #include <$ac_header> | |
9883 | _ACEOF | |
9884 | rm -f conftest.$ac_objext | |
9885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9886 | (eval $ac_compile) 2>conftest.er1 | |
9887 | ac_status=$? | |
9888 | grep -v '^ *+' conftest.er1 >conftest.err | |
9889 | rm -f conftest.er1 | |
9890 | cat conftest.err >&5 | |
9891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9892 | (exit $ac_status); } && | |
b4e70030 JB |
9893 | { ac_try='test -z "$ac_c_werror_flag" |
9894 | || test ! -s conftest.err' | |
bec39cab AC |
9895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9896 | (eval $ac_try) 2>&5 | |
9897 | ac_status=$? | |
9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9899 | (exit $ac_status); }; } && | |
9900 | { ac_try='test -s conftest.$ac_objext' | |
9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9902 | (eval $ac_try) 2>&5 | |
9903 | ac_status=$? | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); }; }; then | |
9906 | ac_header_compiler=yes | |
9907 | else | |
9908 | echo "$as_me: failed program was:" >&5 | |
9909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9910 | ||
b4e70030 | 9911 | ac_header_compiler=no |
bec39cab AC |
9912 | fi |
9913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9914 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9915 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9916 | |
9917 | # Is the header present? | |
b4e70030 JB |
9918 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9919 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9920 | cat >conftest.$ac_ext <<_ACEOF |
9921 | /* confdefs.h. */ | |
9922 | _ACEOF | |
9923 | cat confdefs.h >>conftest.$ac_ext | |
9924 | cat >>conftest.$ac_ext <<_ACEOF | |
9925 | /* end confdefs.h. */ | |
9926 | #include <$ac_header> | |
9927 | _ACEOF | |
9928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9930 | ac_status=$? | |
9931 | grep -v '^ *+' conftest.er1 >conftest.err | |
9932 | rm -f conftest.er1 | |
9933 | cat conftest.err >&5 | |
9934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9935 | (exit $ac_status); } >/dev/null; then | |
9936 | if test -s conftest.err; then | |
9937 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9939 | else | |
9940 | ac_cpp_err= | |
9941 | fi | |
9942 | else | |
9943 | ac_cpp_err=yes | |
5ee754fc | 9944 | fi |
bec39cab AC |
9945 | if test -z "$ac_cpp_err"; then |
9946 | ac_header_preproc=yes | |
5ee754fc | 9947 | else |
bec39cab AC |
9948 | echo "$as_me: failed program was:" >&5 |
9949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9950 | ||
9951 | ac_header_preproc=no | |
5ee754fc | 9952 | fi |
bec39cab | 9953 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9954 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9955 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9956 | |
bec39cab AC |
9957 | # So? What about this header? |
9958 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9959 | yes:no: ) | |
9960 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9961 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9963 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9964 | ac_header_preproc=yes | |
9965 | ;; | |
9966 | no:yes:* ) | |
9967 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9968 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9969 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9970 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9971 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9972 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9973 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9974 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9977 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9978 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9979 | ( |
9980 | cat <<\_ASBOX | |
9981 | ## ------------------------------------------ ## | |
9982 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9983 | ## ------------------------------------------ ## | |
9984 | _ASBOX | |
9985 | ) | | |
9986 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9987 | ;; |
9988 | esac | |
b4e70030 JB |
9989 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9991 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9993 | else | |
9994 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9995 | fi |
b4e70030 JB |
9996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9998 | |
5ee754fc | 9999 | fi |
bec39cab AC |
10000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10001 | cat >>confdefs.h <<_ACEOF | |
10002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10003 | _ACEOF | |
10004 | ||
5ee754fc | 10005 | fi |
bec39cab | 10006 | |
5ee754fc MK |
10007 | done |
10008 | ||
bec39cab AC |
10009 | |
10010 | for ac_header in sys/user.h | |
5ee754fc | 10011 | do |
bec39cab | 10012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 10017 | else |
7cb9022a | 10018 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10019 | /* confdefs.h. */ |
10020 | _ACEOF | |
10021 | cat confdefs.h >>conftest.$ac_ext | |
10022 | cat >>conftest.$ac_ext <<_ACEOF | |
10023 | /* end confdefs.h. */ | |
7cb9022a MK |
10024 | #if HAVE_SYS_PARAM_H |
10025 | # include <sys/param.h> | |
10026 | #endif | |
10027 | ||
10028 | ||
bec39cab AC |
10029 | #include <$ac_header> |
10030 | _ACEOF | |
10031 | rm -f conftest.$ac_objext | |
10032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10033 | (eval $ac_compile) 2>conftest.er1 | |
10034 | ac_status=$? | |
10035 | grep -v '^ *+' conftest.er1 >conftest.err | |
10036 | rm -f conftest.er1 | |
10037 | cat conftest.err >&5 | |
10038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10039 | (exit $ac_status); } && | |
b4e70030 JB |
10040 | { ac_try='test -z "$ac_c_werror_flag" |
10041 | || test ! -s conftest.err' | |
bec39cab AC |
10042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10043 | (eval $ac_try) 2>&5 | |
10044 | ac_status=$? | |
10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10046 | (exit $ac_status); }; } && | |
10047 | { ac_try='test -s conftest.$ac_objext' | |
10048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10049 | (eval $ac_try) 2>&5 | |
10050 | ac_status=$? | |
10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10052 | (exit $ac_status); }; }; then | |
7cb9022a | 10053 | eval "$as_ac_Header=yes" |
bec39cab AC |
10054 | else |
10055 | echo "$as_me: failed program was:" >&5 | |
10056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10057 | ||
b4e70030 | 10058 | eval "$as_ac_Header=no" |
bec39cab AC |
10059 | fi |
10060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10061 | fi |
b4e70030 JB |
10062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10065 | cat >>confdefs.h <<_ACEOF | |
10066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10067 | _ACEOF | |
10068 | ||
5ee754fc | 10069 | fi |
bec39cab | 10070 | |
5ee754fc MK |
10071 | done |
10072 | ||
bec39cab AC |
10073 | |
10074 | ||
10075 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 10076 | do |
bec39cab | 10077 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10083 | fi | |
b4e70030 JB |
10084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10086 | else |
10087 | # Is the header compilable? | |
b4e70030 JB |
10088 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10090 | cat >conftest.$ac_ext <<_ACEOF |
10091 | /* confdefs.h. */ | |
10092 | _ACEOF | |
10093 | cat confdefs.h >>conftest.$ac_ext | |
10094 | cat >>conftest.$ac_ext <<_ACEOF | |
10095 | /* end confdefs.h. */ | |
10096 | $ac_includes_default | |
10097 | #include <$ac_header> | |
10098 | _ACEOF | |
10099 | rm -f conftest.$ac_objext | |
10100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10101 | (eval $ac_compile) 2>conftest.er1 | |
10102 | ac_status=$? | |
10103 | grep -v '^ *+' conftest.er1 >conftest.err | |
10104 | rm -f conftest.er1 | |
10105 | cat conftest.err >&5 | |
10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10107 | (exit $ac_status); } && | |
b4e70030 JB |
10108 | { ac_try='test -z "$ac_c_werror_flag" |
10109 | || test ! -s conftest.err' | |
bec39cab AC |
10110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10111 | (eval $ac_try) 2>&5 | |
10112 | ac_status=$? | |
10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10114 | (exit $ac_status); }; } && | |
10115 | { ac_try='test -s conftest.$ac_objext' | |
10116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10117 | (eval $ac_try) 2>&5 | |
10118 | ac_status=$? | |
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10120 | (exit $ac_status); }; }; then | |
10121 | ac_header_compiler=yes | |
10122 | else | |
10123 | echo "$as_me: failed program was:" >&5 | |
10124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10125 | ||
b4e70030 | 10126 | ac_header_compiler=no |
bec39cab AC |
10127 | fi |
10128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10130 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10131 | |
10132 | # Is the header present? | |
b4e70030 JB |
10133 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10135 | cat >conftest.$ac_ext <<_ACEOF |
10136 | /* confdefs.h. */ | |
10137 | _ACEOF | |
10138 | cat confdefs.h >>conftest.$ac_ext | |
10139 | cat >>conftest.$ac_ext <<_ACEOF | |
10140 | /* end confdefs.h. */ | |
10141 | #include <$ac_header> | |
10142 | _ACEOF | |
10143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10145 | ac_status=$? | |
10146 | grep -v '^ *+' conftest.er1 >conftest.err | |
10147 | rm -f conftest.er1 | |
10148 | cat conftest.err >&5 | |
10149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10150 | (exit $ac_status); } >/dev/null; then | |
10151 | if test -s conftest.err; then | |
10152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10154 | else | |
10155 | ac_cpp_err= | |
10156 | fi | |
10157 | else | |
10158 | ac_cpp_err=yes | |
5ee754fc | 10159 | fi |
bec39cab AC |
10160 | if test -z "$ac_cpp_err"; then |
10161 | ac_header_preproc=yes | |
5ee754fc | 10162 | else |
bec39cab AC |
10163 | echo "$as_me: failed program was:" >&5 |
10164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10165 | ||
10166 | ac_header_preproc=no | |
5ee754fc | 10167 | fi |
bec39cab | 10168 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10170 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10171 | |
bec39cab AC |
10172 | # So? What about this header? |
10173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10174 | yes:no: ) | |
10175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10179 | ac_header_preproc=yes | |
10180 | ;; | |
10181 | no:yes:* ) | |
10182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10194 | ( |
10195 | cat <<\_ASBOX | |
10196 | ## ------------------------------------------ ## | |
10197 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10198 | ## ------------------------------------------ ## | |
10199 | _ASBOX | |
10200 | ) | | |
10201 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10202 | ;; |
10203 | esac | |
b4e70030 JB |
10204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10208 | else | |
10209 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10210 | fi |
b4e70030 JB |
10211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10213 | |
9608ab8b | 10214 | fi |
bec39cab AC |
10215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10216 | cat >>confdefs.h <<_ACEOF | |
10217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10218 | _ACEOF | |
10219 | ||
9608ab8b | 10220 | fi |
bec39cab | 10221 | |
9608ab8b | 10222 | done |
5ee754fc | 10223 | |
bec39cab AC |
10224 | |
10225 | ||
10226 | ||
10227 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10228 | do |
bec39cab | 10229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10235 | fi | |
b4e70030 JB |
10236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10238 | else |
10239 | # Is the header compilable? | |
b4e70030 JB |
10240 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10241 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10242 | cat >conftest.$ac_ext <<_ACEOF |
10243 | /* confdefs.h. */ | |
10244 | _ACEOF | |
10245 | cat confdefs.h >>conftest.$ac_ext | |
10246 | cat >>conftest.$ac_ext <<_ACEOF | |
10247 | /* end confdefs.h. */ | |
10248 | $ac_includes_default | |
10249 | #include <$ac_header> | |
10250 | _ACEOF | |
10251 | rm -f conftest.$ac_objext | |
10252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10253 | (eval $ac_compile) 2>conftest.er1 | |
10254 | ac_status=$? | |
10255 | grep -v '^ *+' conftest.er1 >conftest.err | |
10256 | rm -f conftest.er1 | |
10257 | cat conftest.err >&5 | |
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10259 | (exit $ac_status); } && | |
b4e70030 JB |
10260 | { ac_try='test -z "$ac_c_werror_flag" |
10261 | || test ! -s conftest.err' | |
bec39cab AC |
10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10263 | (eval $ac_try) 2>&5 | |
10264 | ac_status=$? | |
10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10266 | (exit $ac_status); }; } && | |
10267 | { ac_try='test -s conftest.$ac_objext' | |
10268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10269 | (eval $ac_try) 2>&5 | |
10270 | ac_status=$? | |
10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10272 | (exit $ac_status); }; }; then | |
10273 | ac_header_compiler=yes | |
10274 | else | |
10275 | echo "$as_me: failed program was:" >&5 | |
10276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10277 | ||
b4e70030 | 10278 | ac_header_compiler=no |
bec39cab AC |
10279 | fi |
10280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10282 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10283 | |
10284 | # Is the header present? | |
b4e70030 JB |
10285 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10287 | cat >conftest.$ac_ext <<_ACEOF |
10288 | /* confdefs.h. */ | |
10289 | _ACEOF | |
10290 | cat confdefs.h >>conftest.$ac_ext | |
10291 | cat >>conftest.$ac_ext <<_ACEOF | |
10292 | /* end confdefs.h. */ | |
10293 | #include <$ac_header> | |
10294 | _ACEOF | |
10295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10297 | ac_status=$? | |
10298 | grep -v '^ *+' conftest.er1 >conftest.err | |
10299 | rm -f conftest.er1 | |
10300 | cat conftest.err >&5 | |
10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10302 | (exit $ac_status); } >/dev/null; then | |
10303 | if test -s conftest.err; then | |
10304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10306 | else | |
10307 | ac_cpp_err= | |
10308 | fi | |
10309 | else | |
10310 | ac_cpp_err=yes | |
9608ab8b | 10311 | fi |
bec39cab AC |
10312 | if test -z "$ac_cpp_err"; then |
10313 | ac_header_preproc=yes | |
9608ab8b | 10314 | else |
bec39cab AC |
10315 | echo "$as_me: failed program was:" >&5 |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
10318 | ac_header_preproc=no | |
9608ab8b | 10319 | fi |
bec39cab | 10320 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10322 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10323 | |
bec39cab AC |
10324 | # So? What about this header? |
10325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10326 | yes:no: ) | |
10327 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10328 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10330 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10331 | ac_header_preproc=yes | |
10332 | ;; | |
10333 | no:yes:* ) | |
10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10339 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10341 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10343 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10344 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10345 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10346 | ( |
10347 | cat <<\_ASBOX | |
10348 | ## ------------------------------------------ ## | |
10349 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10350 | ## ------------------------------------------ ## | |
10351 | _ASBOX | |
10352 | ) | | |
10353 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10354 | ;; |
10355 | esac | |
b4e70030 JB |
10356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10360 | else | |
10361 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10362 | fi |
b4e70030 JB |
10363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10365 | |
9608ab8b | 10366 | fi |
bec39cab AC |
10367 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10368 | cat >>confdefs.h <<_ACEOF | |
10369 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10370 | _ACEOF | |
10371 | ||
9608ab8b | 10372 | fi |
bec39cab | 10373 | |
5ee754fc | 10374 | done |
9608ab8b | 10375 | |
bec39cab AC |
10376 | |
10377 | for ac_header in unistd.h | |
78434e59 | 10378 | do |
bec39cab | 10379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10385 | fi | |
b4e70030 JB |
10386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10388 | else |
10389 | # Is the header compilable? | |
b4e70030 JB |
10390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10392 | cat >conftest.$ac_ext <<_ACEOF |
10393 | /* confdefs.h. */ | |
10394 | _ACEOF | |
10395 | cat confdefs.h >>conftest.$ac_ext | |
10396 | cat >>conftest.$ac_ext <<_ACEOF | |
10397 | /* end confdefs.h. */ | |
10398 | $ac_includes_default | |
10399 | #include <$ac_header> | |
10400 | _ACEOF | |
10401 | rm -f conftest.$ac_objext | |
10402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10403 | (eval $ac_compile) 2>conftest.er1 | |
10404 | ac_status=$? | |
10405 | grep -v '^ *+' conftest.er1 >conftest.err | |
10406 | rm -f conftest.er1 | |
10407 | cat conftest.err >&5 | |
10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10409 | (exit $ac_status); } && | |
b4e70030 JB |
10410 | { ac_try='test -z "$ac_c_werror_flag" |
10411 | || test ! -s conftest.err' | |
bec39cab AC |
10412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10413 | (eval $ac_try) 2>&5 | |
10414 | ac_status=$? | |
10415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10416 | (exit $ac_status); }; } && | |
10417 | { ac_try='test -s conftest.$ac_objext' | |
10418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10419 | (eval $ac_try) 2>&5 | |
10420 | ac_status=$? | |
10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10422 | (exit $ac_status); }; }; then | |
10423 | ac_header_compiler=yes | |
10424 | else | |
10425 | echo "$as_me: failed program was:" >&5 | |
10426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10427 | ||
b4e70030 | 10428 | ac_header_compiler=no |
bec39cab AC |
10429 | fi |
10430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10432 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10433 | |
10434 | # Is the header present? | |
b4e70030 JB |
10435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10437 | cat >conftest.$ac_ext <<_ACEOF |
10438 | /* confdefs.h. */ | |
10439 | _ACEOF | |
10440 | cat confdefs.h >>conftest.$ac_ext | |
10441 | cat >>conftest.$ac_ext <<_ACEOF | |
10442 | /* end confdefs.h. */ | |
10443 | #include <$ac_header> | |
10444 | _ACEOF | |
10445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10447 | ac_status=$? | |
10448 | grep -v '^ *+' conftest.er1 >conftest.err | |
10449 | rm -f conftest.er1 | |
10450 | cat conftest.err >&5 | |
10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10452 | (exit $ac_status); } >/dev/null; then | |
10453 | if test -s conftest.err; then | |
10454 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10456 | else | |
10457 | ac_cpp_err= | |
10458 | fi | |
10459 | else | |
10460 | ac_cpp_err=yes | |
78434e59 | 10461 | fi |
bec39cab AC |
10462 | if test -z "$ac_cpp_err"; then |
10463 | ac_header_preproc=yes | |
78434e59 | 10464 | else |
bec39cab AC |
10465 | echo "$as_me: failed program was:" >&5 |
10466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10467 | ||
10468 | ac_header_preproc=no | |
78434e59 | 10469 | fi |
bec39cab | 10470 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10472 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 10473 | |
bec39cab AC |
10474 | # So? What about this header? |
10475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10476 | yes:no: ) | |
10477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10481 | ac_header_preproc=yes | |
10482 | ;; | |
10483 | no:yes:* ) | |
10484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10496 | ( |
10497 | cat <<\_ASBOX | |
10498 | ## ------------------------------------------ ## | |
10499 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10500 | ## ------------------------------------------ ## | |
10501 | _ASBOX | |
10502 | ) | | |
10503 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10504 | ;; |
10505 | esac | |
b4e70030 JB |
10506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10510 | else | |
10511 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 10512 | fi |
b4e70030 JB |
10513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10515 | |
086ec9eb | 10516 | fi |
bec39cab AC |
10517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10518 | cat >>confdefs.h <<_ACEOF | |
10519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10520 | _ACEOF | |
10521 | ||
086ec9eb | 10522 | fi |
bec39cab | 10523 | |
086ec9eb MK |
10524 | done |
10525 | ||
9608ab8b | 10526 | |
b1d19a62 | 10527 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
10528 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
10529 | # think that we don't have <curses.h> if we're using GCC. | |
10530 | case $host_os in | |
b1d19a62 | 10531 | solaris2.[789]) |
5ee754fc | 10532 | if test "$GCC" = yes; then |
bec39cab AC |
10533 | |
10534 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 10535 | #define _MSE_INT_H 1 |
bec39cab | 10536 | _ACEOF |
5ee754fc MK |
10537 | |
10538 | fi ;; | |
10539 | esac | |
bec39cab AC |
10540 | |
10541 | ||
10542 | ||
10543 | ||
10544 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 10545 | do |
bec39cab | 10546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10548 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10552 | fi | |
b4e70030 JB |
10553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10555 | else |
10556 | # Is the header compilable? | |
b4e70030 JB |
10557 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10559 | cat >conftest.$ac_ext <<_ACEOF |
10560 | /* confdefs.h. */ | |
10561 | _ACEOF | |
10562 | cat confdefs.h >>conftest.$ac_ext | |
10563 | cat >>conftest.$ac_ext <<_ACEOF | |
10564 | /* end confdefs.h. */ | |
10565 | $ac_includes_default | |
10566 | #include <$ac_header> | |
10567 | _ACEOF | |
10568 | rm -f conftest.$ac_objext | |
10569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10570 | (eval $ac_compile) 2>conftest.er1 | |
10571 | ac_status=$? | |
10572 | grep -v '^ *+' conftest.er1 >conftest.err | |
10573 | rm -f conftest.er1 | |
10574 | cat conftest.err >&5 | |
10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10576 | (exit $ac_status); } && | |
b4e70030 JB |
10577 | { ac_try='test -z "$ac_c_werror_flag" |
10578 | || test ! -s conftest.err' | |
bec39cab AC |
10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10580 | (eval $ac_try) 2>&5 | |
10581 | ac_status=$? | |
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10583 | (exit $ac_status); }; } && | |
10584 | { ac_try='test -s conftest.$ac_objext' | |
10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10586 | (eval $ac_try) 2>&5 | |
10587 | ac_status=$? | |
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10589 | (exit $ac_status); }; }; then | |
10590 | ac_header_compiler=yes | |
10591 | else | |
10592 | echo "$as_me: failed program was:" >&5 | |
10593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10594 | ||
b4e70030 | 10595 | ac_header_compiler=no |
bec39cab AC |
10596 | fi |
10597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10598 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10599 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10600 | |
10601 | # Is the header present? | |
b4e70030 JB |
10602 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10603 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10604 | cat >conftest.$ac_ext <<_ACEOF |
10605 | /* confdefs.h. */ | |
10606 | _ACEOF | |
10607 | cat confdefs.h >>conftest.$ac_ext | |
10608 | cat >>conftest.$ac_ext <<_ACEOF | |
10609 | /* end confdefs.h. */ | |
10610 | #include <$ac_header> | |
10611 | _ACEOF | |
10612 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10613 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10614 | ac_status=$? | |
10615 | grep -v '^ *+' conftest.er1 >conftest.err | |
10616 | rm -f conftest.er1 | |
10617 | cat conftest.err >&5 | |
10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10619 | (exit $ac_status); } >/dev/null; then | |
10620 | if test -s conftest.err; then | |
10621 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10623 | else | |
10624 | ac_cpp_err= | |
10625 | fi | |
10626 | else | |
10627 | ac_cpp_err=yes | |
c906108c | 10628 | fi |
bec39cab AC |
10629 | if test -z "$ac_cpp_err"; then |
10630 | ac_header_preproc=yes | |
10631 | else | |
10632 | echo "$as_me: failed program was:" >&5 | |
10633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10634 | ||
10635 | ac_header_preproc=no | |
c906108c | 10636 | fi |
bec39cab | 10637 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10638 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10639 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10640 | |
10641 | # So? What about this header? | |
10642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10643 | yes:no: ) | |
10644 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10645 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10647 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10648 | ac_header_preproc=yes | |
10649 | ;; | |
10650 | no:yes:* ) | |
10651 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10652 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10654 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10656 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10657 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10658 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10660 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10661 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10662 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10663 | ( |
10664 | cat <<\_ASBOX | |
10665 | ## ------------------------------------------ ## | |
10666 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10667 | ## ------------------------------------------ ## | |
10668 | _ASBOX | |
10669 | ) | | |
10670 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10671 | ;; |
10672 | esac | |
b4e70030 JB |
10673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 10677 | else |
bec39cab | 10678 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10679 | fi |
b4e70030 JB |
10680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10682 | |
10683 | fi | |
10684 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10685 | cat >>confdefs.h <<_ACEOF | |
10686 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10687 | _ACEOF | |
10688 | ||
10689 | fi | |
10690 | ||
5ee754fc | 10691 | done |
c906108c | 10692 | |
bec39cab | 10693 | |
065a1afc | 10694 | for ac_header in ncurses/term.h |
3b78cdbb | 10695 | do |
bec39cab | 10696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10702 | fi | |
b4e70030 JB |
10703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10705 | else |
10706 | # Is the header compilable? | |
b4e70030 JB |
10707 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10709 | cat >conftest.$ac_ext <<_ACEOF |
10710 | /* confdefs.h. */ | |
10711 | _ACEOF | |
10712 | cat confdefs.h >>conftest.$ac_ext | |
10713 | cat >>conftest.$ac_ext <<_ACEOF | |
10714 | /* end confdefs.h. */ | |
10715 | $ac_includes_default | |
10716 | #include <$ac_header> | |
10717 | _ACEOF | |
10718 | rm -f conftest.$ac_objext | |
10719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10720 | (eval $ac_compile) 2>conftest.er1 | |
10721 | ac_status=$? | |
10722 | grep -v '^ *+' conftest.er1 >conftest.err | |
10723 | rm -f conftest.er1 | |
10724 | cat conftest.err >&5 | |
10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10726 | (exit $ac_status); } && | |
b4e70030 JB |
10727 | { ac_try='test -z "$ac_c_werror_flag" |
10728 | || test ! -s conftest.err' | |
bec39cab AC |
10729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10730 | (eval $ac_try) 2>&5 | |
10731 | ac_status=$? | |
10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10733 | (exit $ac_status); }; } && | |
10734 | { ac_try='test -s conftest.$ac_objext' | |
10735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10736 | (eval $ac_try) 2>&5 | |
10737 | ac_status=$? | |
10738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10739 | (exit $ac_status); }; }; then | |
10740 | ac_header_compiler=yes | |
10741 | else | |
10742 | echo "$as_me: failed program was:" >&5 | |
10743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10744 | ||
b4e70030 | 10745 | ac_header_compiler=no |
bec39cab AC |
10746 | fi |
10747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10748 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10749 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10750 | |
10751 | # Is the header present? | |
b4e70030 JB |
10752 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10753 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10754 | cat >conftest.$ac_ext <<_ACEOF |
10755 | /* confdefs.h. */ | |
10756 | _ACEOF | |
10757 | cat confdefs.h >>conftest.$ac_ext | |
10758 | cat >>conftest.$ac_ext <<_ACEOF | |
10759 | /* end confdefs.h. */ | |
10760 | #include <$ac_header> | |
10761 | _ACEOF | |
10762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10764 | ac_status=$? | |
10765 | grep -v '^ *+' conftest.er1 >conftest.err | |
10766 | rm -f conftest.er1 | |
10767 | cat conftest.err >&5 | |
10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10769 | (exit $ac_status); } >/dev/null; then | |
10770 | if test -s conftest.err; then | |
10771 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10772 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10773 | else | |
10774 | ac_cpp_err= | |
10775 | fi | |
10776 | else | |
10777 | ac_cpp_err=yes | |
3b78cdbb | 10778 | fi |
bec39cab AC |
10779 | if test -z "$ac_cpp_err"; then |
10780 | ac_header_preproc=yes | |
10781 | else | |
10782 | echo "$as_me: failed program was:" >&5 | |
10783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10784 | ||
10785 | ac_header_preproc=no | |
3b78cdbb | 10786 | fi |
bec39cab | 10787 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10788 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10789 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10790 | |
10791 | # So? What about this header? | |
10792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10793 | yes:no: ) | |
10794 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10795 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10797 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10798 | ac_header_preproc=yes | |
10799 | ;; | |
10800 | no:yes:* ) | |
10801 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10802 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10803 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10804 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10805 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10806 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10807 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10808 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10811 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10812 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10813 | ( |
10814 | cat <<\_ASBOX | |
10815 | ## ------------------------------------------ ## | |
10816 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10817 | ## ------------------------------------------ ## | |
10818 | _ASBOX | |
10819 | ) | | |
10820 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10821 | ;; |
10822 | esac | |
b4e70030 JB |
10823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 10827 | else |
bec39cab AC |
10828 | eval "$as_ac_Header=\$ac_header_preproc" |
10829 | fi | |
b4e70030 JB |
10830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10832 | |
3b78cdbb | 10833 | fi |
bec39cab AC |
10834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10835 | cat >>confdefs.h <<_ACEOF | |
10836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10837 | _ACEOF | |
10838 | ||
10839 | fi | |
10840 | ||
3b78cdbb DA |
10841 | done |
10842 | ||
c906108c | 10843 | |
065a1afc JB |
10844 | for ac_header in term.h |
10845 | do | |
10846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
10847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10851 | else | |
10852 | cat >conftest.$ac_ext <<_ACEOF | |
10853 | /* confdefs.h. */ | |
10854 | _ACEOF | |
10855 | cat confdefs.h >>conftest.$ac_ext | |
10856 | cat >>conftest.$ac_ext <<_ACEOF | |
10857 | /* end confdefs.h. */ | |
10858 | #if HAVE_CURSES_H | |
10859 | # include <curses.h> | |
10860 | #endif | |
10861 | ||
10862 | ||
10863 | #include <$ac_header> | |
10864 | _ACEOF | |
10865 | rm -f conftest.$ac_objext | |
10866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10867 | (eval $ac_compile) 2>conftest.er1 | |
10868 | ac_status=$? | |
10869 | grep -v '^ *+' conftest.er1 >conftest.err | |
10870 | rm -f conftest.er1 | |
10871 | cat conftest.err >&5 | |
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); } && | |
b4e70030 JB |
10874 | { ac_try='test -z "$ac_c_werror_flag" |
10875 | || test ! -s conftest.err' | |
065a1afc JB |
10876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10877 | (eval $ac_try) 2>&5 | |
10878 | ac_status=$? | |
10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10880 | (exit $ac_status); }; } && | |
10881 | { ac_try='test -s conftest.$ac_objext' | |
10882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10883 | (eval $ac_try) 2>&5 | |
10884 | ac_status=$? | |
10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10886 | (exit $ac_status); }; }; then | |
10887 | eval "$as_ac_Header=yes" | |
10888 | else | |
10889 | echo "$as_me: failed program was:" >&5 | |
10890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10891 | ||
b4e70030 | 10892 | eval "$as_ac_Header=no" |
065a1afc JB |
10893 | fi |
10894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10895 | fi | |
b4e70030 JB |
10896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
10898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10899 | cat >>confdefs.h <<_ACEOF | |
10900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10901 | _ACEOF | |
10902 | ||
10903 | fi | |
10904 | ||
10905 | done | |
10906 | ||
10907 | ||
5ee754fc MK |
10908 | # FIXME: kettenis/20030102: In most cases we include these |
10909 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
10910 | |
10911 | ||
10912 | for ac_header in ctype.h time.h | |
c906108c | 10913 | do |
bec39cab | 10914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10915 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10916 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10920 | fi | |
b4e70030 JB |
10921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10922 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10923 | else |
10924 | # Is the header compilable? | |
b4e70030 JB |
10925 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10926 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10927 | cat >conftest.$ac_ext <<_ACEOF |
10928 | /* confdefs.h. */ | |
10929 | _ACEOF | |
10930 | cat confdefs.h >>conftest.$ac_ext | |
10931 | cat >>conftest.$ac_ext <<_ACEOF | |
10932 | /* end confdefs.h. */ | |
10933 | $ac_includes_default | |
10934 | #include <$ac_header> | |
10935 | _ACEOF | |
10936 | rm -f conftest.$ac_objext | |
10937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10938 | (eval $ac_compile) 2>conftest.er1 | |
10939 | ac_status=$? | |
10940 | grep -v '^ *+' conftest.er1 >conftest.err | |
10941 | rm -f conftest.er1 | |
10942 | cat conftest.err >&5 | |
10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10944 | (exit $ac_status); } && | |
b4e70030 JB |
10945 | { ac_try='test -z "$ac_c_werror_flag" |
10946 | || test ! -s conftest.err' | |
bec39cab AC |
10947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10948 | (eval $ac_try) 2>&5 | |
10949 | ac_status=$? | |
10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10951 | (exit $ac_status); }; } && | |
10952 | { ac_try='test -s conftest.$ac_objext' | |
10953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10954 | (eval $ac_try) 2>&5 | |
10955 | ac_status=$? | |
10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10957 | (exit $ac_status); }; }; then | |
10958 | ac_header_compiler=yes | |
10959 | else | |
10960 | echo "$as_me: failed program was:" >&5 | |
10961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10962 | ||
b4e70030 | 10963 | ac_header_compiler=no |
bec39cab AC |
10964 | fi |
10965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10966 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10967 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10968 | |
10969 | # Is the header present? | |
b4e70030 JB |
10970 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10971 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10972 | cat >conftest.$ac_ext <<_ACEOF |
10973 | /* confdefs.h. */ | |
10974 | _ACEOF | |
10975 | cat confdefs.h >>conftest.$ac_ext | |
10976 | cat >>conftest.$ac_ext <<_ACEOF | |
10977 | /* end confdefs.h. */ | |
10978 | #include <$ac_header> | |
10979 | _ACEOF | |
10980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10982 | ac_status=$? | |
10983 | grep -v '^ *+' conftest.er1 >conftest.err | |
10984 | rm -f conftest.er1 | |
10985 | cat conftest.err >&5 | |
10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10987 | (exit $ac_status); } >/dev/null; then | |
10988 | if test -s conftest.err; then | |
10989 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10990 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10991 | else | |
10992 | ac_cpp_err= | |
10993 | fi | |
10994 | else | |
10995 | ac_cpp_err=yes | |
c906108c | 10996 | fi |
bec39cab AC |
10997 | if test -z "$ac_cpp_err"; then |
10998 | ac_header_preproc=yes | |
10999 | else | |
11000 | echo "$as_me: failed program was:" >&5 | |
11001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11002 | ||
11003 | ac_header_preproc=no | |
c906108c | 11004 | fi |
bec39cab | 11005 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11006 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11007 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11008 | |
11009 | # So? What about this header? | |
11010 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11011 | yes:no: ) | |
11012 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11013 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11015 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11016 | ac_header_preproc=yes | |
11017 | ;; | |
11018 | no:yes:* ) | |
11019 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11020 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11021 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11022 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11023 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11024 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11025 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11026 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11028 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11029 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11030 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11031 | ( |
11032 | cat <<\_ASBOX | |
11033 | ## ------------------------------------------ ## | |
11034 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11035 | ## ------------------------------------------ ## | |
11036 | _ASBOX | |
11037 | ) | | |
11038 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11039 | ;; |
11040 | esac | |
b4e70030 JB |
11041 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11043 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11045 | else |
bec39cab AC |
11046 | eval "$as_ac_Header=\$ac_header_preproc" |
11047 | fi | |
b4e70030 JB |
11048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11049 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11050 | |
11051 | fi | |
11052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11053 | cat >>confdefs.h <<_ACEOF | |
11054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11055 | _ACEOF | |
11056 | ||
c906108c | 11057 | fi |
bec39cab | 11058 | |
c906108c SS |
11059 | done |
11060 | ||
5ee754fc | 11061 | |
4e8d927d | 11062 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 11063 | |
4e8d927d DJ |
11064 | |
11065 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11066 | ||
11067 | acx_cv_header_stdint=stddef.h | |
11068 | acx_cv_header_stdint_kind="(already complete)" | |
11069 | for i in stdint.h $inttype_headers; do | |
11070 | unset ac_cv_type_uintptr_t | |
11071 | unset ac_cv_type_uintmax_t | |
11072 | unset ac_cv_type_int_least32_t | |
11073 | unset ac_cv_type_int_fast32_t | |
11074 | unset ac_cv_type_uint64_t | |
11075 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11076 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
11077 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 11078 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 11079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 11080 | else |
bec39cab AC |
11081 | cat >conftest.$ac_ext <<_ACEOF |
11082 | /* confdefs.h. */ | |
11083 | _ACEOF | |
11084 | cat confdefs.h >>conftest.$ac_ext | |
11085 | cat >>conftest.$ac_ext <<_ACEOF | |
11086 | /* end confdefs.h. */ | |
4e8d927d DJ |
11087 | #include <sys/types.h> |
11088 | #include <$i> | |
11089 | ||
bec39cab AC |
11090 | int |
11091 | main () | |
11092 | { | |
b4e70030 | 11093 | if ((uintmax_t *) 0) |
4e8d927d | 11094 | return 0; |
b4e70030 | 11095 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
11096 | return 0; |
11097 | ; | |
bec39cab AC |
11098 | return 0; |
11099 | } | |
11100 | _ACEOF | |
11101 | rm -f conftest.$ac_objext | |
11102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11103 | (eval $ac_compile) 2>conftest.er1 | |
11104 | ac_status=$? | |
11105 | grep -v '^ *+' conftest.er1 >conftest.err | |
11106 | rm -f conftest.er1 | |
11107 | cat conftest.err >&5 | |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11109 | (exit $ac_status); } && | |
b4e70030 JB |
11110 | { ac_try='test -z "$ac_c_werror_flag" |
11111 | || test ! -s conftest.err' | |
bec39cab AC |
11112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11113 | (eval $ac_try) 2>&5 | |
11114 | ac_status=$? | |
11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11116 | (exit $ac_status); }; } && | |
11117 | { ac_try='test -s conftest.$ac_objext' | |
11118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11119 | (eval $ac_try) 2>&5 | |
11120 | ac_status=$? | |
11121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11122 | (exit $ac_status); }; }; then | |
4e8d927d | 11123 | ac_cv_type_uintmax_t=yes |
40a7debc | 11124 | else |
bec39cab AC |
11125 | echo "$as_me: failed program was:" >&5 |
11126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11127 | ||
b4e70030 | 11128 | ac_cv_type_uintmax_t=no |
40a7debc | 11129 | fi |
bec39cab | 11130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11131 | fi |
b4e70030 JB |
11132 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11133 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11134 | if test $ac_cv_type_uintmax_t = yes; then |
11135 | acx_cv_header_stdint=$i | |
666ec76f | 11136 | else |
4e8d927d | 11137 | continue |
666ec76f | 11138 | fi |
4e8d927d | 11139 | |
b4e70030 JB |
11140 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11141 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11142 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11144 | else | |
11145 | cat >conftest.$ac_ext <<_ACEOF | |
11146 | /* confdefs.h. */ | |
11147 | _ACEOF | |
11148 | cat confdefs.h >>conftest.$ac_ext | |
11149 | cat >>conftest.$ac_ext <<_ACEOF | |
11150 | /* end confdefs.h. */ | |
4e8d927d DJ |
11151 | #include <sys/types.h> |
11152 | #include <$i> | |
11153 | ||
666ec76f MK |
11154 | int |
11155 | main () | |
11156 | { | |
b4e70030 | 11157 | if ((uintptr_t *) 0) |
4e8d927d | 11158 | return 0; |
b4e70030 | 11159 | if (sizeof (uintptr_t)) |
4e8d927d | 11160 | return 0; |
666ec76f MK |
11161 | ; |
11162 | return 0; | |
11163 | } | |
11164 | _ACEOF | |
11165 | rm -f conftest.$ac_objext | |
11166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11167 | (eval $ac_compile) 2>conftest.er1 | |
11168 | ac_status=$? | |
11169 | grep -v '^ *+' conftest.er1 >conftest.err | |
11170 | rm -f conftest.er1 | |
11171 | cat conftest.err >&5 | |
11172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11173 | (exit $ac_status); } && | |
b4e70030 JB |
11174 | { ac_try='test -z "$ac_c_werror_flag" |
11175 | || test ! -s conftest.err' | |
666ec76f MK |
11176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11177 | (eval $ac_try) 2>&5 | |
11178 | ac_status=$? | |
11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11180 | (exit $ac_status); }; } && | |
11181 | { ac_try='test -s conftest.$ac_objext' | |
11182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11183 | (eval $ac_try) 2>&5 | |
11184 | ac_status=$? | |
11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11186 | (exit $ac_status); }; }; then | |
4e8d927d | 11187 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11188 | else |
11189 | echo "$as_me: failed program was:" >&5 | |
11190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11191 | |
b4e70030 | 11192 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11193 | fi |
11194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11195 | fi | |
b4e70030 JB |
11196 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11197 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11198 | if test $ac_cv_type_uintptr_t = yes; then |
11199 | : | |
a3828db0 | 11200 | else |
4e8d927d | 11201 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11202 | fi |
4e8d927d | 11203 | |
b4e70030 JB |
11204 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11205 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11206 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11208 | else | |
11209 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11210 | /* confdefs.h. */ |
11211 | _ACEOF | |
11212 | cat confdefs.h >>conftest.$ac_ext | |
11213 | cat >>conftest.$ac_ext <<_ACEOF | |
11214 | /* end confdefs.h. */ | |
4e8d927d DJ |
11215 | #include <sys/types.h> |
11216 | #include <$i> | |
11217 | ||
bec39cab AC |
11218 | int |
11219 | main () | |
11220 | { | |
b4e70030 | 11221 | if ((int_least32_t *) 0) |
4e8d927d | 11222 | return 0; |
b4e70030 | 11223 | if (sizeof (int_least32_t)) |
4e8d927d | 11224 | return 0; |
bec39cab AC |
11225 | ; |
11226 | return 0; | |
11227 | } | |
11228 | _ACEOF | |
11229 | rm -f conftest.$ac_objext | |
11230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11231 | (eval $ac_compile) 2>conftest.er1 | |
11232 | ac_status=$? | |
11233 | grep -v '^ *+' conftest.er1 >conftest.err | |
11234 | rm -f conftest.er1 | |
11235 | cat conftest.err >&5 | |
11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11237 | (exit $ac_status); } && | |
b4e70030 JB |
11238 | { ac_try='test -z "$ac_c_werror_flag" |
11239 | || test ! -s conftest.err' | |
bec39cab AC |
11240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11241 | (eval $ac_try) 2>&5 | |
11242 | ac_status=$? | |
11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11244 | (exit $ac_status); }; } && | |
11245 | { ac_try='test -s conftest.$ac_objext' | |
11246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11247 | (eval $ac_try) 2>&5 | |
11248 | ac_status=$? | |
11249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11250 | (exit $ac_status); }; }; then | |
4e8d927d | 11251 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11252 | else |
bec39cab AC |
11253 | echo "$as_me: failed program was:" >&5 |
11254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11255 | ||
b4e70030 | 11256 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11257 | fi |
bec39cab | 11258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11259 | fi |
b4e70030 JB |
11260 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11261 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11262 | if test $ac_cv_type_int_least32_t = yes; then |
11263 | : | |
a3828db0 | 11264 | else |
4e8d927d | 11265 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11266 | fi |
5ee754fc | 11267 | |
b4e70030 JB |
11268 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11269 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11270 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11272 | else | |
11273 | cat >conftest.$ac_ext <<_ACEOF | |
11274 | /* confdefs.h. */ | |
11275 | _ACEOF | |
11276 | cat confdefs.h >>conftest.$ac_ext | |
11277 | cat >>conftest.$ac_ext <<_ACEOF | |
11278 | /* end confdefs.h. */ | |
4e8d927d DJ |
11279 | #include <sys/types.h> |
11280 | #include <$i> | |
11281 | ||
bec39cab AC |
11282 | int |
11283 | main () | |
11284 | { | |
b4e70030 | 11285 | if ((int_fast32_t *) 0) |
4e8d927d | 11286 | return 0; |
b4e70030 | 11287 | if (sizeof (int_fast32_t)) |
4e8d927d | 11288 | return 0; |
bec39cab AC |
11289 | ; |
11290 | return 0; | |
11291 | } | |
11292 | _ACEOF | |
11293 | rm -f conftest.$ac_objext | |
11294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11295 | (eval $ac_compile) 2>conftest.er1 | |
11296 | ac_status=$? | |
11297 | grep -v '^ *+' conftest.er1 >conftest.err | |
11298 | rm -f conftest.er1 | |
11299 | cat conftest.err >&5 | |
11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11301 | (exit $ac_status); } && | |
b4e70030 JB |
11302 | { ac_try='test -z "$ac_c_werror_flag" |
11303 | || test ! -s conftest.err' | |
bec39cab AC |
11304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11305 | (eval $ac_try) 2>&5 | |
11306 | ac_status=$? | |
11307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11308 | (exit $ac_status); }; } && | |
11309 | { ac_try='test -s conftest.$ac_objext' | |
11310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11311 | (eval $ac_try) 2>&5 | |
11312 | ac_status=$? | |
11313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11314 | (exit $ac_status); }; }; then | |
4e8d927d | 11315 | ac_cv_type_int_fast32_t=yes |
c906108c | 11316 | else |
bec39cab AC |
11317 | echo "$as_me: failed program was:" >&5 |
11318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11319 | ||
b4e70030 | 11320 | ac_cv_type_int_fast32_t=no |
c906108c | 11321 | fi |
bec39cab | 11322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11323 | fi |
b4e70030 JB |
11324 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
11325 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
11326 | if test $ac_cv_type_int_fast32_t = yes; then |
11327 | : | |
a3828db0 | 11328 | else |
4e8d927d | 11329 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11330 | fi |
4e8d927d | 11331 | |
b4e70030 JB |
11332 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11333 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11334 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
11335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11336 | else | |
11337 | cat >conftest.$ac_ext <<_ACEOF | |
11338 | /* confdefs.h. */ | |
11339 | _ACEOF | |
11340 | cat confdefs.h >>conftest.$ac_ext | |
11341 | cat >>conftest.$ac_ext <<_ACEOF | |
11342 | /* end confdefs.h. */ | |
4e8d927d DJ |
11343 | #include <sys/types.h> |
11344 | #include <$i> | |
11345 | ||
bec39cab AC |
11346 | int |
11347 | main () | |
11348 | { | |
b4e70030 | 11349 | if ((uint64_t *) 0) |
4e8d927d | 11350 | return 0; |
b4e70030 | 11351 | if (sizeof (uint64_t)) |
4e8d927d | 11352 | return 0; |
bec39cab AC |
11353 | ; |
11354 | return 0; | |
11355 | } | |
11356 | _ACEOF | |
11357 | rm -f conftest.$ac_objext | |
11358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11359 | (eval $ac_compile) 2>conftest.er1 | |
11360 | ac_status=$? | |
11361 | grep -v '^ *+' conftest.er1 >conftest.err | |
11362 | rm -f conftest.er1 | |
11363 | cat conftest.err >&5 | |
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11365 | (exit $ac_status); } && | |
b4e70030 JB |
11366 | { ac_try='test -z "$ac_c_werror_flag" |
11367 | || test ! -s conftest.err' | |
bec39cab AC |
11368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11369 | (eval $ac_try) 2>&5 | |
11370 | ac_status=$? | |
11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11372 | (exit $ac_status); }; } && | |
11373 | { ac_try='test -s conftest.$ac_objext' | |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; }; then | |
4e8d927d | 11379 | ac_cv_type_uint64_t=yes |
c906108c | 11380 | else |
bec39cab AC |
11381 | echo "$as_me: failed program was:" >&5 |
11382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11383 | ||
b4e70030 | 11384 | ac_cv_type_uint64_t=no |
c906108c | 11385 | fi |
bec39cab | 11386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11387 | fi |
b4e70030 JB |
11388 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11389 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
11390 | if test $ac_cv_type_uint64_t = yes; then |
11391 | : | |
a3828db0 | 11392 | else |
4e8d927d | 11393 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
11394 | fi |
11395 | ||
4e8d927d DJ |
11396 | break |
11397 | done | |
11398 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 11399 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 11400 | for i in stdint.h $inttype_headers; do |
3841debe | 11401 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
11402 | unset ac_cv_type_uint32_t |
11403 | unset ac_cv_type_uint64_t | |
11404 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11405 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11406 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 11407 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 11408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 11409 | else |
bec39cab AC |
11410 | cat >conftest.$ac_ext <<_ACEOF |
11411 | /* confdefs.h. */ | |
11412 | _ACEOF | |
11413 | cat confdefs.h >>conftest.$ac_ext | |
11414 | cat >>conftest.$ac_ext <<_ACEOF | |
11415 | /* end confdefs.h. */ | |
4e8d927d DJ |
11416 | #include <sys/types.h> |
11417 | #include <$i> | |
11418 | ||
a3828db0 MK |
11419 | int |
11420 | main () | |
11421 | { | |
b4e70030 | 11422 | if ((uint32_t *) 0) |
4e8d927d | 11423 | return 0; |
b4e70030 | 11424 | if (sizeof (uint32_t)) |
4e8d927d | 11425 | return 0; |
a3828db0 MK |
11426 | ; |
11427 | return 0; | |
11428 | } | |
bec39cab AC |
11429 | _ACEOF |
11430 | rm -f conftest.$ac_objext | |
11431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11432 | (eval $ac_compile) 2>conftest.er1 | |
11433 | ac_status=$? | |
11434 | grep -v '^ *+' conftest.er1 >conftest.err | |
11435 | rm -f conftest.er1 | |
11436 | cat conftest.err >&5 | |
11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11438 | (exit $ac_status); } && | |
b4e70030 JB |
11439 | { ac_try='test -z "$ac_c_werror_flag" |
11440 | || test ! -s conftest.err' | |
bec39cab AC |
11441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11442 | (eval $ac_try) 2>&5 | |
11443 | ac_status=$? | |
11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11445 | (exit $ac_status); }; } && | |
11446 | { ac_try='test -s conftest.$ac_objext' | |
11447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11448 | (eval $ac_try) 2>&5 | |
11449 | ac_status=$? | |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 | (exit $ac_status); }; }; then | |
4e8d927d | 11452 | ac_cv_type_uint32_t=yes |
bce58c09 | 11453 | else |
bec39cab AC |
11454 | echo "$as_me: failed program was:" >&5 |
11455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11456 | ||
b4e70030 | 11457 | ac_cv_type_uint32_t=no |
bce58c09 | 11458 | fi |
bec39cab | 11459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 11460 | fi |
b4e70030 JB |
11461 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
11462 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
11463 | if test $ac_cv_type_uint32_t = yes; then |
11464 | acx_cv_header_stdint=$i | |
a3828db0 | 11465 | else |
4e8d927d | 11466 | continue |
e5a7de23 | 11467 | fi |
4e8d927d | 11468 | |
b4e70030 JB |
11469 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11470 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11471 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
11472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11473 | else | |
11474 | cat >conftest.$ac_ext <<_ACEOF | |
11475 | /* confdefs.h. */ | |
11476 | _ACEOF | |
11477 | cat confdefs.h >>conftest.$ac_ext | |
11478 | cat >>conftest.$ac_ext <<_ACEOF | |
11479 | /* end confdefs.h. */ | |
4e8d927d DJ |
11480 | #include <sys/types.h> |
11481 | #include <$i> | |
11482 | ||
e5a7de23 EZ |
11483 | int |
11484 | main () | |
11485 | { | |
b4e70030 | 11486 | if ((uint64_t *) 0) |
4e8d927d | 11487 | return 0; |
b4e70030 | 11488 | if (sizeof (uint64_t)) |
4e8d927d | 11489 | return 0; |
e5a7de23 EZ |
11490 | ; |
11491 | return 0; | |
11492 | } | |
11493 | _ACEOF | |
11494 | rm -f conftest.$ac_objext | |
11495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11496 | (eval $ac_compile) 2>conftest.er1 | |
11497 | ac_status=$? | |
11498 | grep -v '^ *+' conftest.er1 >conftest.err | |
11499 | rm -f conftest.er1 | |
11500 | cat conftest.err >&5 | |
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); } && | |
b4e70030 JB |
11503 | { ac_try='test -z "$ac_c_werror_flag" |
11504 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11506 | (eval $ac_try) 2>&5 | |
11507 | ac_status=$? | |
11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11509 | (exit $ac_status); }; } && | |
11510 | { ac_try='test -s conftest.$ac_objext' | |
11511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11512 | (eval $ac_try) 2>&5 | |
11513 | ac_status=$? | |
11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11515 | (exit $ac_status); }; }; then | |
4e8d927d | 11516 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
11517 | else |
11518 | echo "$as_me: failed program was:" >&5 | |
11519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11520 | ||
b4e70030 | 11521 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
11522 | fi |
11523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11524 | fi | |
b4e70030 JB |
11525 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11526 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
11527 | |
11528 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
11529 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
11530 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
11531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11532 | else | |
11533 | cat >conftest.$ac_ext <<_ACEOF | |
11534 | /* confdefs.h. */ | |
11535 | _ACEOF | |
11536 | cat confdefs.h >>conftest.$ac_ext | |
11537 | cat >>conftest.$ac_ext <<_ACEOF | |
11538 | /* end confdefs.h. */ | |
11539 | #include <sys/types.h> | |
11540 | #include <$i> | |
11541 | ||
11542 | int | |
11543 | main () | |
11544 | { | |
11545 | if ((uintptr_t *) 0) | |
11546 | return 0; | |
11547 | if (sizeof (uintptr_t)) | |
11548 | return 0; | |
11549 | ; | |
11550 | return 0; | |
11551 | } | |
11552 | _ACEOF | |
11553 | rm -f conftest.$ac_objext | |
11554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11555 | (eval $ac_compile) 2>conftest.er1 | |
11556 | ac_status=$? | |
11557 | grep -v '^ *+' conftest.er1 >conftest.err | |
11558 | rm -f conftest.er1 | |
11559 | cat conftest.err >&5 | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11561 | (exit $ac_status); } && | |
11562 | { ac_try='test -z "$ac_c_werror_flag" | |
11563 | || test ! -s conftest.err' | |
11564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11565 | (eval $ac_try) 2>&5 | |
11566 | ac_status=$? | |
11567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11568 | (exit $ac_status); }; } && | |
11569 | { ac_try='test -s conftest.$ac_objext' | |
11570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11571 | (eval $ac_try) 2>&5 | |
11572 | ac_status=$? | |
11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11574 | (exit $ac_status); }; }; then | |
11575 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 11576 | else |
3841debe DJ |
11577 | echo "$as_me: failed program was:" >&5 |
11578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11579 | ||
11580 | ac_cv_type_uintptr_t=no | |
4e8d927d | 11581 | fi |
3841debe DJ |
11582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11583 | fi | |
11584 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
11585 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 11586 | |
4e8d927d DJ |
11587 | break |
11588 | done | |
e5a7de23 | 11589 | fi |
4e8d927d DJ |
11590 | if test "$acx_cv_header_stdint" = stddef.h; then |
11591 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
11592 | for i in sys/types.h $inttype_headers; do | |
11593 | unset ac_cv_type_u_int32_t | |
11594 | unset ac_cv_type_u_int64_t | |
11595 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11596 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
11597 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 11598 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11600 | else | |
11601 | cat >conftest.$ac_ext <<_ACEOF | |
11602 | /* confdefs.h. */ | |
11603 | _ACEOF | |
11604 | cat confdefs.h >>conftest.$ac_ext | |
11605 | cat >>conftest.$ac_ext <<_ACEOF | |
11606 | /* end confdefs.h. */ | |
4e8d927d DJ |
11607 | #include <sys/types.h> |
11608 | #include <$i> | |
11609 | ||
e5a7de23 EZ |
11610 | int |
11611 | main () | |
11612 | { | |
b4e70030 | 11613 | if ((u_int32_t *) 0) |
4e8d927d | 11614 | return 0; |
b4e70030 | 11615 | if (sizeof (u_int32_t)) |
4e8d927d | 11616 | return 0; |
e5a7de23 EZ |
11617 | ; |
11618 | return 0; | |
11619 | } | |
11620 | _ACEOF | |
11621 | rm -f conftest.$ac_objext | |
11622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11623 | (eval $ac_compile) 2>conftest.er1 | |
11624 | ac_status=$? | |
11625 | grep -v '^ *+' conftest.er1 >conftest.err | |
11626 | rm -f conftest.er1 | |
11627 | cat conftest.err >&5 | |
11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11629 | (exit $ac_status); } && | |
b4e70030 JB |
11630 | { ac_try='test -z "$ac_c_werror_flag" |
11631 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11633 | (eval $ac_try) 2>&5 | |
11634 | ac_status=$? | |
11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11636 | (exit $ac_status); }; } && | |
11637 | { ac_try='test -s conftest.$ac_objext' | |
11638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11639 | (eval $ac_try) 2>&5 | |
11640 | ac_status=$? | |
11641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11642 | (exit $ac_status); }; }; then | |
4e8d927d | 11643 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
11644 | else |
11645 | echo "$as_me: failed program was:" >&5 | |
11646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11647 | ||
b4e70030 | 11648 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
11649 | fi |
11650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11651 | fi | |
b4e70030 JB |
11652 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
11653 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
11654 | if test $ac_cv_type_u_int32_t = yes; then |
11655 | acx_cv_header_stdint=$i | |
e5a7de23 | 11656 | else |
4e8d927d | 11657 | continue |
a3828db0 | 11658 | fi |
5ee754fc | 11659 | |
b4e70030 JB |
11660 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
11661 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 11662 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
11663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11664 | else | |
11665 | cat >conftest.$ac_ext <<_ACEOF | |
11666 | /* confdefs.h. */ | |
11667 | _ACEOF | |
11668 | cat confdefs.h >>conftest.$ac_ext | |
11669 | cat >>conftest.$ac_ext <<_ACEOF | |
11670 | /* end confdefs.h. */ | |
4e8d927d DJ |
11671 | #include <sys/types.h> |
11672 | #include <$i> | |
11673 | ||
bec39cab AC |
11674 | int |
11675 | main () | |
11676 | { | |
b4e70030 | 11677 | if ((u_int64_t *) 0) |
4e8d927d | 11678 | return 0; |
b4e70030 | 11679 | if (sizeof (u_int64_t)) |
4e8d927d | 11680 | return 0; |
bec39cab AC |
11681 | ; |
11682 | return 0; | |
11683 | } | |
11684 | _ACEOF | |
a3828db0 MK |
11685 | rm -f conftest.$ac_objext |
11686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11687 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11688 | ac_status=$? |
11689 | grep -v '^ *+' conftest.er1 >conftest.err | |
11690 | rm -f conftest.er1 | |
11691 | cat conftest.err >&5 | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); } && | |
b4e70030 JB |
11694 | { ac_try='test -z "$ac_c_werror_flag" |
11695 | || test ! -s conftest.err' | |
bec39cab AC |
11696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11697 | (eval $ac_try) 2>&5 | |
11698 | ac_status=$? | |
11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11700 | (exit $ac_status); }; } && | |
a3828db0 | 11701 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11703 | (eval $ac_try) 2>&5 | |
11704 | ac_status=$? | |
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11706 | (exit $ac_status); }; }; then | |
4e8d927d | 11707 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
11708 | else |
11709 | echo "$as_me: failed program was:" >&5 | |
11710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11711 | ||
b4e70030 | 11712 | ac_cv_type_u_int64_t=no |
4e8d927d | 11713 | fi |
4e8d927d DJ |
11714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11715 | fi | |
b4e70030 JB |
11716 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
11717 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
11718 | |
11719 | break | |
11720 | done | |
11721 | fi | |
11722 | if test "$acx_cv_header_stdint" = stddef.h; then | |
11723 | acx_cv_header_stdint_kind="(using manual detection)" | |
11724 | fi | |
11725 | ||
11726 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
11727 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
11728 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
11729 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
11730 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
11731 | ||
11732 | # ----------------- Summarize what we found so far | |
11733 | ||
b4e70030 JB |
11734 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
11735 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 11736 | |
b4e70030 | 11737 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
11738 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
11739 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
11740 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
11741 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 11742 | echo X/gdb_stdint.h | |
b4e70030 JB |
11743 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
11744 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11745 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11746 | s/.*/./; q'` in | |
4e8d927d DJ |
11747 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
11748 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11749 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
11750 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11751 | *) ;; | |
11752 | esac | |
11753 | ||
b4e70030 JB |
11754 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
11755 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
11756 | |
11757 | # ----------------- done included file, check C basic types -------- | |
11758 | ||
11759 | # Lacking an uintptr_t? Test size of void * | |
11760 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
11761 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
11762 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
11763 | if test "${ac_cv_type_void_p+set}" = set; then |
11764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11765 | else | |
11766 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 11767 | /* confdefs.h. */ |
bec39cab AC |
11768 | _ACEOF |
11769 | cat confdefs.h >>conftest.$ac_ext | |
11770 | cat >>conftest.$ac_ext <<_ACEOF | |
11771 | /* end confdefs.h. */ | |
a3828db0 | 11772 | $ac_includes_default |
bec39cab AC |
11773 | int |
11774 | main () | |
11775 | { | |
b4e70030 | 11776 | if ((void * *) 0) |
4e8d927d | 11777 | return 0; |
b4e70030 | 11778 | if (sizeof (void *)) |
4e8d927d | 11779 | return 0; |
bec39cab AC |
11780 | ; |
11781 | return 0; | |
11782 | } | |
11783 | _ACEOF | |
a3828db0 MK |
11784 | rm -f conftest.$ac_objext |
11785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11786 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11787 | ac_status=$? |
11788 | grep -v '^ *+' conftest.er1 >conftest.err | |
11789 | rm -f conftest.er1 | |
11790 | cat conftest.err >&5 | |
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11792 | (exit $ac_status); } && | |
b4e70030 JB |
11793 | { ac_try='test -z "$ac_c_werror_flag" |
11794 | || test ! -s conftest.err' | |
bec39cab AC |
11795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11796 | (eval $ac_try) 2>&5 | |
11797 | ac_status=$? | |
11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11799 | (exit $ac_status); }; } && | |
a3828db0 | 11800 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11802 | (eval $ac_try) 2>&5 | |
11803 | ac_status=$? | |
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11805 | (exit $ac_status); }; }; then | |
4e8d927d | 11806 | ac_cv_type_void_p=yes |
46711df8 | 11807 | else |
bec39cab AC |
11808 | echo "$as_me: failed program was:" >&5 |
11809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11810 | ||
b4e70030 | 11811 | ac_cv_type_void_p=no |
a3828db0 | 11812 | fi |
4e8d927d | 11813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 11814 | fi |
b4e70030 JB |
11815 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
11816 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 11817 | |
b4e70030 JB |
11818 | echo "$as_me:$LINENO: checking size of void *" >&5 |
11819 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 11820 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
11821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11822 | else | |
4e8d927d | 11823 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 11824 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
11825 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
11826 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11827 | # This bug is HP SR number 8606223364. | |
11828 | if test "$cross_compiling" = yes; then | |
11829 | # Depending upon the size, compute the lo and hi bounds. | |
11830 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
11831 | /* confdefs.h. */ |
11832 | _ACEOF | |
11833 | cat confdefs.h >>conftest.$ac_ext | |
11834 | cat >>conftest.$ac_ext <<_ACEOF | |
11835 | /* end confdefs.h. */ | |
11836 | $ac_includes_default | |
11837 | int | |
11838 | main () | |
11839 | { | |
b4e70030 | 11840 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
11841 | test_array [0] = 0 |
11842 | ||
d3ea6809 MM |
11843 | ; |
11844 | return 0; | |
11845 | } | |
11846 | _ACEOF | |
11847 | rm -f conftest.$ac_objext | |
11848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11849 | (eval $ac_compile) 2>conftest.er1 | |
11850 | ac_status=$? | |
11851 | grep -v '^ *+' conftest.er1 >conftest.err | |
11852 | rm -f conftest.er1 | |
11853 | cat conftest.err >&5 | |
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11855 | (exit $ac_status); } && | |
b4e70030 JB |
11856 | { ac_try='test -z "$ac_c_werror_flag" |
11857 | || test ! -s conftest.err' | |
d3ea6809 MM |
11858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11859 | (eval $ac_try) 2>&5 | |
11860 | ac_status=$? | |
11861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11862 | (exit $ac_status); }; } && | |
11863 | { ac_try='test -s conftest.$ac_objext' | |
11864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11865 | (eval $ac_try) 2>&5 | |
11866 | ac_status=$? | |
11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11868 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
11869 | ac_lo=0 ac_mid=0 |
11870 | while :; do | |
11871 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
11872 | /* confdefs.h. */ |
11873 | _ACEOF | |
11874 | cat confdefs.h >>conftest.$ac_ext | |
11875 | cat >>conftest.$ac_ext <<_ACEOF | |
11876 | /* end confdefs.h. */ | |
11877 | $ac_includes_default | |
11878 | int | |
11879 | main () | |
11880 | { | |
b4e70030 | 11881 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
11882 | test_array [0] = 0 |
11883 | ||
d3ea6809 MM |
11884 | ; |
11885 | return 0; | |
11886 | } | |
11887 | _ACEOF | |
11888 | rm -f conftest.$ac_objext | |
11889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11890 | (eval $ac_compile) 2>conftest.er1 | |
11891 | ac_status=$? | |
11892 | grep -v '^ *+' conftest.er1 >conftest.err | |
11893 | rm -f conftest.er1 | |
11894 | cat conftest.err >&5 | |
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11896 | (exit $ac_status); } && | |
b4e70030 JB |
11897 | { ac_try='test -z "$ac_c_werror_flag" |
11898 | || test ! -s conftest.err' | |
d3ea6809 MM |
11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11900 | (eval $ac_try) 2>&5 | |
11901 | ac_status=$? | |
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11903 | (exit $ac_status); }; } && | |
11904 | { ac_try='test -s conftest.$ac_objext' | |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; }; then | |
4e8d927d | 11910 | ac_hi=$ac_mid; break |
d3ea6809 MM |
11911 | else |
11912 | echo "$as_me: failed program was:" >&5 | |
11913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11914 | ||
b4e70030 JB |
11915 | ac_lo=`expr $ac_mid + 1` |
11916 | if test $ac_lo -le $ac_mid; then | |
11917 | ac_lo= ac_hi= | |
11918 | break | |
11919 | fi | |
11920 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 11921 | fi |
4e8d927d DJ |
11922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11923 | done | |
bec39cab | 11924 | else |
4e8d927d DJ |
11925 | echo "$as_me: failed program was:" >&5 |
11926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11927 | ||
b4e70030 | 11928 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11929 | /* confdefs.h. */ |
11930 | _ACEOF | |
11931 | cat confdefs.h >>conftest.$ac_ext | |
11932 | cat >>conftest.$ac_ext <<_ACEOF | |
11933 | /* end confdefs.h. */ | |
4e8d927d | 11934 | $ac_includes_default |
bec39cab AC |
11935 | int |
11936 | main () | |
11937 | { | |
b4e70030 | 11938 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
11939 | test_array [0] = 0 |
11940 | ||
bec39cab AC |
11941 | ; |
11942 | return 0; | |
11943 | } | |
11944 | _ACEOF | |
a3828db0 MK |
11945 | rm -f conftest.$ac_objext |
11946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11947 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11948 | ac_status=$? |
11949 | grep -v '^ *+' conftest.er1 >conftest.err | |
11950 | rm -f conftest.er1 | |
11951 | cat conftest.err >&5 | |
11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11953 | (exit $ac_status); } && | |
b4e70030 JB |
11954 | { ac_try='test -z "$ac_c_werror_flag" |
11955 | || test ! -s conftest.err' | |
bec39cab AC |
11956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11957 | (eval $ac_try) 2>&5 | |
11958 | ac_status=$? | |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); }; } && | |
a3828db0 | 11961 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11963 | (eval $ac_try) 2>&5 | |
11964 | ac_status=$? | |
11965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11966 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
11967 | ac_hi=-1 ac_mid=-1 |
11968 | while :; do | |
11969 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
11970 | /* confdefs.h. */ |
11971 | _ACEOF | |
11972 | cat confdefs.h >>conftest.$ac_ext | |
11973 | cat >>conftest.$ac_ext <<_ACEOF | |
11974 | /* end confdefs.h. */ | |
4e8d927d | 11975 | $ac_includes_default |
f9f87d2c MK |
11976 | int |
11977 | main () | |
11978 | { | |
b4e70030 | 11979 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
11980 | test_array [0] = 0 |
11981 | ||
f9f87d2c MK |
11982 | ; |
11983 | return 0; | |
11984 | } | |
11985 | _ACEOF | |
11986 | rm -f conftest.$ac_objext | |
11987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11988 | (eval $ac_compile) 2>conftest.er1 | |
11989 | ac_status=$? | |
11990 | grep -v '^ *+' conftest.er1 >conftest.err | |
11991 | rm -f conftest.er1 | |
11992 | cat conftest.err >&5 | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); } && | |
b4e70030 JB |
11995 | { ac_try='test -z "$ac_c_werror_flag" |
11996 | || test ! -s conftest.err' | |
f9f87d2c MK |
11997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11998 | (eval $ac_try) 2>&5 | |
11999 | ac_status=$? | |
12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12001 | (exit $ac_status); }; } && | |
12002 | { ac_try='test -s conftest.$ac_objext' | |
12003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12004 | (eval $ac_try) 2>&5 | |
12005 | ac_status=$? | |
12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12007 | (exit $ac_status); }; }; then | |
4e8d927d | 12008 | ac_lo=$ac_mid; break |
f9f87d2c MK |
12009 | else |
12010 | echo "$as_me: failed program was:" >&5 | |
12011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12012 | ||
b4e70030 JB |
12013 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12014 | if test $ac_mid -le $ac_hi; then | |
12015 | ac_lo= ac_hi= | |
12016 | break | |
12017 | fi | |
12018 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 12019 | fi |
4e8d927d DJ |
12020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12021 | done | |
12022 | else | |
12023 | echo "$as_me: failed program was:" >&5 | |
12024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 12025 | |
b4e70030 | 12026 | ac_lo= ac_hi= |
4e8d927d | 12027 | fi |
4e8d927d | 12028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 12029 | fi |
4e8d927d DJ |
12030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12031 | # Binary search between lo and hi bounds. | |
12032 | while test "x$ac_lo" != "x$ac_hi"; do | |
12033 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
12034 | cat >conftest.$ac_ext <<_ACEOF |
12035 | /* confdefs.h. */ | |
12036 | _ACEOF | |
12037 | cat confdefs.h >>conftest.$ac_ext | |
12038 | cat >>conftest.$ac_ext <<_ACEOF | |
12039 | /* end confdefs.h. */ | |
4e8d927d | 12040 | $ac_includes_default |
3be60c3d MK |
12041 | int |
12042 | main () | |
12043 | { | |
b4e70030 | 12044 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12045 | test_array [0] = 0 |
12046 | ||
3be60c3d MK |
12047 | ; |
12048 | return 0; | |
12049 | } | |
12050 | _ACEOF | |
12051 | rm -f conftest.$ac_objext | |
12052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12053 | (eval $ac_compile) 2>conftest.er1 | |
12054 | ac_status=$? | |
12055 | grep -v '^ *+' conftest.er1 >conftest.err | |
12056 | rm -f conftest.er1 | |
12057 | cat conftest.err >&5 | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); } && | |
b4e70030 JB |
12060 | { ac_try='test -z "$ac_c_werror_flag" |
12061 | || test ! -s conftest.err' | |
3be60c3d MK |
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12063 | (eval $ac_try) 2>&5 | |
12064 | ac_status=$? | |
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12066 | (exit $ac_status); }; } && | |
12067 | { ac_try='test -s conftest.$ac_objext' | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12069 | (eval $ac_try) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); }; }; then | |
4e8d927d | 12073 | ac_hi=$ac_mid |
3be60c3d MK |
12074 | else |
12075 | echo "$as_me: failed program was:" >&5 | |
12076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12077 | ||
b4e70030 | 12078 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 12079 | fi |
4e8d927d DJ |
12080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12081 | done | |
12082 | case $ac_lo in | |
12083 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 12084 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12085 | See \`config.log' for more details." >&5 |
b4e70030 | 12086 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12087 | See \`config.log' for more details." >&2;} |
b4e70030 | 12088 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12089 | esac |
b4e70030 JB |
12090 | else |
12091 | if test "$cross_compiling" = yes; then | |
12092 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12093 | See \`config.log' for more details." >&5 | |
12094 | echo "$as_me: error: cannot run test program while cross compiling | |
12095 | See \`config.log' for more details." >&2;} | |
12096 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12097 | else |
12098 | cat >conftest.$ac_ext <<_ACEOF | |
12099 | /* confdefs.h. */ | |
3be60c3d | 12100 | _ACEOF |
4e8d927d DJ |
12101 | cat confdefs.h >>conftest.$ac_ext |
12102 | cat >>conftest.$ac_ext <<_ACEOF | |
12103 | /* end confdefs.h. */ | |
12104 | $ac_includes_default | |
b4e70030 JB |
12105 | long longval () { return (long) (sizeof (void *)); } |
12106 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12107 | #include <stdio.h> |
12108 | #include <stdlib.h> | |
12109 | int | |
12110 | main () | |
12111 | { | |
12112 | ||
12113 | FILE *f = fopen ("conftest.val", "w"); | |
12114 | if (! f) | |
b4e70030 JB |
12115 | exit (1); |
12116 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12117 | { |
b4e70030 JB |
12118 | long i = longval (); |
12119 | if (i != ((long) (sizeof (void *)))) | |
12120 | exit (1); | |
4e8d927d DJ |
12121 | fprintf (f, "%ld\n", i); |
12122 | } | |
12123 | else | |
12124 | { | |
b4e70030 JB |
12125 | unsigned long i = ulongval (); |
12126 | if (i != ((long) (sizeof (void *)))) | |
12127 | exit (1); | |
4e8d927d DJ |
12128 | fprintf (f, "%lu\n", i); |
12129 | } | |
b4e70030 | 12130 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12131 | |
4e8d927d DJ |
12132 | ; |
12133 | return 0; | |
12134 | } | |
12135 | _ACEOF | |
12136 | rm -f conftest$ac_exeext | |
12137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12138 | (eval $ac_link) 2>&5 | |
12139 | ac_status=$? | |
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12143 | (eval $ac_try) 2>&5 | |
12144 | ac_status=$? | |
12145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12146 | (exit $ac_status); }; }; then | |
12147 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12148 | else | |
12149 | echo "$as_me: program exited with status $ac_status" >&5 | |
12150 | echo "$as_me: failed program was:" >&5 | |
12151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12152 | |
4e8d927d | 12153 | ( exit $ac_status ) |
b4e70030 | 12154 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12155 | See \`config.log' for more details." >&5 |
b4e70030 | 12156 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12157 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12158 | { (exit 1); exit 1; }; } |
12159 | fi | |
12160 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12161 | fi |
4e8d927d DJ |
12162 | fi |
12163 | rm -f conftest.val | |
12164 | else | |
12165 | ac_cv_sizeof_void_p=0 | |
12166 | fi | |
12167 | fi | |
b4e70030 JB |
12168 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12169 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12170 | cat >>confdefs.h <<_ACEOF |
12171 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12172 | _ACEOF | |
f9f87d2c | 12173 | |
4e8d927d DJ |
12174 | ;; |
12175 | esac | |
46711df8 | 12176 | |
4e8d927d DJ |
12177 | # Lacking an uint64_t? Test size of long |
12178 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12179 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12180 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12181 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12183 | else |
bec39cab AC |
12184 | cat >conftest.$ac_ext <<_ACEOF |
12185 | /* confdefs.h. */ | |
12186 | _ACEOF | |
12187 | cat confdefs.h >>conftest.$ac_ext | |
12188 | cat >>conftest.$ac_ext <<_ACEOF | |
12189 | /* end confdefs.h. */ | |
4e8d927d | 12190 | $ac_includes_default |
bec39cab | 12191 | int |
46711df8 MK |
12192 | main () |
12193 | { | |
b4e70030 | 12194 | if ((long *) 0) |
4e8d927d | 12195 | return 0; |
b4e70030 | 12196 | if (sizeof (long)) |
4e8d927d | 12197 | return 0; |
a3828db0 MK |
12198 | ; |
12199 | return 0; | |
46711df8 | 12200 | } |
bec39cab | 12201 | _ACEOF |
a3828db0 MK |
12202 | rm -f conftest.$ac_objext |
12203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12204 | (eval $ac_compile) 2>conftest.er1 | |
12205 | ac_status=$? | |
12206 | grep -v '^ *+' conftest.er1 >conftest.err | |
12207 | rm -f conftest.er1 | |
12208 | cat conftest.err >&5 | |
12209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12210 | (exit $ac_status); } && | |
b4e70030 JB |
12211 | { ac_try='test -z "$ac_c_werror_flag" |
12212 | || test ! -s conftest.err' | |
a3828db0 MK |
12213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12214 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12215 | ac_status=$? |
12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12217 | (exit $ac_status); }; } && |
12218 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12220 | (eval $ac_try) 2>&5 | |
12221 | ac_status=$? | |
12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12223 | (exit $ac_status); }; }; then | |
4e8d927d | 12224 | ac_cv_type_long=yes |
46711df8 | 12225 | else |
a3828db0 | 12226 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12227 | sed 's/^/| /' conftest.$ac_ext >&5 |
12228 | ||
b4e70030 | 12229 | ac_cv_type_long=no |
46711df8 | 12230 | fi |
4e8d927d | 12231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12232 | fi |
b4e70030 JB |
12233 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12234 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12235 | |
b4e70030 JB |
12236 | echo "$as_me:$LINENO: checking size of long" >&5 |
12237 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12238 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12240 | else |
4e8d927d | 12241 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12242 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12243 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12244 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12245 | # This bug is HP SR number 8606223364. | |
12246 | if test "$cross_compiling" = yes; then | |
12247 | # Depending upon the size, compute the lo and hi bounds. | |
12248 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12249 | /* confdefs.h. */ |
12250 | _ACEOF | |
12251 | cat confdefs.h >>conftest.$ac_ext | |
12252 | cat >>conftest.$ac_ext <<_ACEOF | |
12253 | /* end confdefs.h. */ | |
4e8d927d | 12254 | $ac_includes_default |
4e8d927d DJ |
12255 | int |
12256 | main () | |
12257 | { | |
b4e70030 | 12258 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12259 | test_array [0] = 0 |
a3828db0 | 12260 | |
4e8d927d DJ |
12261 | ; |
12262 | return 0; | |
12263 | } | |
bec39cab AC |
12264 | _ACEOF |
12265 | rm -f conftest.$ac_objext | |
12266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12267 | (eval $ac_compile) 2>conftest.er1 | |
12268 | ac_status=$? | |
12269 | grep -v '^ *+' conftest.er1 >conftest.err | |
12270 | rm -f conftest.er1 | |
12271 | cat conftest.err >&5 | |
12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); } && | |
b4e70030 JB |
12274 | { ac_try='test -z "$ac_c_werror_flag" |
12275 | || test ! -s conftest.err' | |
bec39cab AC |
12276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12277 | (eval $ac_try) 2>&5 | |
12278 | ac_status=$? | |
12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12280 | (exit $ac_status); }; } && | |
12281 | { ac_try='test -s conftest.$ac_objext' | |
12282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12283 | (eval $ac_try) 2>&5 | |
12284 | ac_status=$? | |
12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12286 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12287 | ac_lo=0 ac_mid=0 |
12288 | while :; do | |
12289 | cat >conftest.$ac_ext <<_ACEOF | |
12290 | /* confdefs.h. */ | |
12291 | _ACEOF | |
12292 | cat confdefs.h >>conftest.$ac_ext | |
12293 | cat >>conftest.$ac_ext <<_ACEOF | |
12294 | /* end confdefs.h. */ | |
12295 | $ac_includes_default | |
4e8d927d DJ |
12296 | int |
12297 | main () | |
12298 | { | |
b4e70030 | 12299 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12300 | test_array [0] = 0 |
12301 | ||
12302 | ; | |
12303 | return 0; | |
12304 | } | |
12305 | _ACEOF | |
12306 | rm -f conftest.$ac_objext | |
12307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12308 | (eval $ac_compile) 2>conftest.er1 | |
12309 | ac_status=$? | |
12310 | grep -v '^ *+' conftest.er1 >conftest.err | |
12311 | rm -f conftest.er1 | |
12312 | cat conftest.err >&5 | |
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12314 | (exit $ac_status); } && | |
b4e70030 JB |
12315 | { ac_try='test -z "$ac_c_werror_flag" |
12316 | || test ! -s conftest.err' | |
4e8d927d DJ |
12317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12318 | (eval $ac_try) 2>&5 | |
12319 | ac_status=$? | |
12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12321 | (exit $ac_status); }; } && | |
12322 | { ac_try='test -s conftest.$ac_objext' | |
12323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12324 | (eval $ac_try) 2>&5 | |
12325 | ac_status=$? | |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12327 | (exit $ac_status); }; }; then | |
12328 | ac_hi=$ac_mid; break | |
12329 | else | |
12330 | echo "$as_me: failed program was:" >&5 | |
12331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12332 | ||
b4e70030 JB |
12333 | ac_lo=`expr $ac_mid + 1` |
12334 | if test $ac_lo -le $ac_mid; then | |
12335 | ac_lo= ac_hi= | |
12336 | break | |
12337 | fi | |
12338 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12339 | fi |
4e8d927d DJ |
12340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12341 | done | |
12342 | else | |
12343 | echo "$as_me: failed program was:" >&5 | |
12344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12345 | ||
b4e70030 | 12346 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12347 | /* confdefs.h. */ |
12348 | _ACEOF | |
12349 | cat confdefs.h >>conftest.$ac_ext | |
12350 | cat >>conftest.$ac_ext <<_ACEOF | |
12351 | /* end confdefs.h. */ | |
12352 | $ac_includes_default | |
4e8d927d DJ |
12353 | int |
12354 | main () | |
12355 | { | |
b4e70030 | 12356 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
12357 | test_array [0] = 0 |
12358 | ||
12359 | ; | |
12360 | return 0; | |
12361 | } | |
12362 | _ACEOF | |
12363 | rm -f conftest.$ac_objext | |
12364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12365 | (eval $ac_compile) 2>conftest.er1 | |
12366 | ac_status=$? | |
12367 | grep -v '^ *+' conftest.er1 >conftest.err | |
12368 | rm -f conftest.er1 | |
12369 | cat conftest.err >&5 | |
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12371 | (exit $ac_status); } && | |
b4e70030 JB |
12372 | { ac_try='test -z "$ac_c_werror_flag" |
12373 | || test ! -s conftest.err' | |
4e8d927d DJ |
12374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12375 | (eval $ac_try) 2>&5 | |
12376 | ac_status=$? | |
12377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12378 | (exit $ac_status); }; } && | |
12379 | { ac_try='test -s conftest.$ac_objext' | |
12380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12381 | (eval $ac_try) 2>&5 | |
12382 | ac_status=$? | |
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12384 | (exit $ac_status); }; }; then | |
12385 | ac_hi=-1 ac_mid=-1 | |
12386 | while :; do | |
12387 | cat >conftest.$ac_ext <<_ACEOF | |
12388 | /* confdefs.h. */ | |
12389 | _ACEOF | |
12390 | cat confdefs.h >>conftest.$ac_ext | |
12391 | cat >>conftest.$ac_ext <<_ACEOF | |
12392 | /* end confdefs.h. */ | |
12393 | $ac_includes_default | |
4e8d927d DJ |
12394 | int |
12395 | main () | |
12396 | { | |
b4e70030 | 12397 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
12398 | test_array [0] = 0 |
12399 | ||
12400 | ; | |
12401 | return 0; | |
12402 | } | |
12403 | _ACEOF | |
12404 | rm -f conftest.$ac_objext | |
12405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12406 | (eval $ac_compile) 2>conftest.er1 | |
12407 | ac_status=$? | |
12408 | grep -v '^ *+' conftest.er1 >conftest.err | |
12409 | rm -f conftest.er1 | |
12410 | cat conftest.err >&5 | |
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12412 | (exit $ac_status); } && | |
b4e70030 JB |
12413 | { ac_try='test -z "$ac_c_werror_flag" |
12414 | || test ! -s conftest.err' | |
4e8d927d DJ |
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); }; } && | |
12420 | { ac_try='test -s conftest.$ac_objext' | |
12421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12422 | (eval $ac_try) 2>&5 | |
12423 | ac_status=$? | |
12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12425 | (exit $ac_status); }; }; then | |
12426 | ac_lo=$ac_mid; break | |
12427 | else | |
12428 | echo "$as_me: failed program was:" >&5 | |
12429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12430 | ||
b4e70030 JB |
12431 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12432 | if test $ac_mid -le $ac_hi; then | |
12433 | ac_lo= ac_hi= | |
12434 | break | |
12435 | fi | |
12436 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12437 | fi |
4e8d927d DJ |
12438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12439 | done | |
12440 | else | |
12441 | echo "$as_me: failed program was:" >&5 | |
12442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12443 | ||
b4e70030 | 12444 | ac_lo= ac_hi= |
4e8d927d | 12445 | fi |
4e8d927d DJ |
12446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12447 | fi | |
4e8d927d DJ |
12448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12449 | # Binary search between lo and hi bounds. | |
12450 | while test "x$ac_lo" != "x$ac_hi"; do | |
12451 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | /* confdefs.h. */ | |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | $ac_includes_default | |
4e8d927d DJ |
12459 | int |
12460 | main () | |
12461 | { | |
b4e70030 | 12462 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12463 | test_array [0] = 0 |
12464 | ||
12465 | ; | |
12466 | return 0; | |
12467 | } | |
12468 | _ACEOF | |
12469 | rm -f conftest.$ac_objext | |
12470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12471 | (eval $ac_compile) 2>conftest.er1 | |
12472 | ac_status=$? | |
12473 | grep -v '^ *+' conftest.er1 >conftest.err | |
12474 | rm -f conftest.er1 | |
12475 | cat conftest.err >&5 | |
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12477 | (exit $ac_status); } && | |
b4e70030 JB |
12478 | { ac_try='test -z "$ac_c_werror_flag" |
12479 | || test ! -s conftest.err' | |
4e8d927d DJ |
12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12481 | (eval $ac_try) 2>&5 | |
12482 | ac_status=$? | |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 | (exit $ac_status); }; } && | |
12485 | { ac_try='test -s conftest.$ac_objext' | |
12486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12487 | (eval $ac_try) 2>&5 | |
12488 | ac_status=$? | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); }; }; then | |
12491 | ac_hi=$ac_mid | |
12492 | else | |
12493 | echo "$as_me: failed program was:" >&5 | |
12494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12495 | ||
b4e70030 | 12496 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12497 | fi |
4e8d927d DJ |
12498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12499 | done | |
12500 | case $ac_lo in | |
12501 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 12502 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12503 | See \`config.log' for more details." >&5 |
b4e70030 | 12504 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12505 | See \`config.log' for more details." >&2;} |
b4e70030 | 12506 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12507 | esac |
b4e70030 JB |
12508 | else |
12509 | if test "$cross_compiling" = yes; then | |
12510 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12511 | See \`config.log' for more details." >&5 | |
12512 | echo "$as_me: error: cannot run test program while cross compiling | |
12513 | See \`config.log' for more details." >&2;} | |
12514 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12515 | else |
12516 | cat >conftest.$ac_ext <<_ACEOF | |
12517 | /* confdefs.h. */ | |
12518 | _ACEOF | |
12519 | cat confdefs.h >>conftest.$ac_ext | |
12520 | cat >>conftest.$ac_ext <<_ACEOF | |
12521 | /* end confdefs.h. */ | |
12522 | $ac_includes_default | |
b4e70030 JB |
12523 | long longval () { return (long) (sizeof (long)); } |
12524 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
12525 | #include <stdio.h> |
12526 | #include <stdlib.h> | |
12527 | int | |
12528 | main () | |
12529 | { | |
12530 | ||
12531 | FILE *f = fopen ("conftest.val", "w"); | |
12532 | if (! f) | |
b4e70030 JB |
12533 | exit (1); |
12534 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 12535 | { |
b4e70030 JB |
12536 | long i = longval (); |
12537 | if (i != ((long) (sizeof (long)))) | |
12538 | exit (1); | |
4e8d927d DJ |
12539 | fprintf (f, "%ld\n", i); |
12540 | } | |
12541 | else | |
12542 | { | |
b4e70030 JB |
12543 | unsigned long i = ulongval (); |
12544 | if (i != ((long) (sizeof (long)))) | |
12545 | exit (1); | |
4e8d927d DJ |
12546 | fprintf (f, "%lu\n", i); |
12547 | } | |
b4e70030 | 12548 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12549 | |
12550 | ; | |
12551 | return 0; | |
12552 | } | |
12553 | _ACEOF | |
12554 | rm -f conftest$ac_exeext | |
12555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12556 | (eval $ac_link) 2>&5 | |
12557 | ac_status=$? | |
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12561 | (eval $ac_try) 2>&5 | |
12562 | ac_status=$? | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); }; }; then | |
12565 | ac_cv_sizeof_long=`cat conftest.val` | |
12566 | else | |
12567 | echo "$as_me: program exited with status $ac_status" >&5 | |
12568 | echo "$as_me: failed program was:" >&5 | |
12569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12570 | ||
12571 | ( exit $ac_status ) | |
b4e70030 | 12572 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12573 | See \`config.log' for more details." >&5 |
b4e70030 | 12574 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12575 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12576 | { (exit 1); exit 1; }; } |
12577 | fi | |
12578 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12579 | fi |
4e8d927d DJ |
12580 | fi |
12581 | rm -f conftest.val | |
12582 | else | |
12583 | ac_cv_sizeof_long=0 | |
12584 | fi | |
12585 | fi | |
b4e70030 JB |
12586 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
12587 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
12588 | cat >>confdefs.h <<_ACEOF |
12589 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12590 | _ACEOF | |
12591 | ||
12592 | ;; | |
12593 | esac | |
12594 | ||
12595 | if test $acx_cv_header_stdint = stddef.h; then | |
12596 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
12597 | echo "$as_me:$LINENO: checking for int" >&5 |
12598 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
12599 | if test "${ac_cv_type_int+set}" = set; then |
12600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12601 | else | |
12602 | cat >conftest.$ac_ext <<_ACEOF | |
12603 | /* confdefs.h. */ | |
12604 | _ACEOF | |
12605 | cat confdefs.h >>conftest.$ac_ext | |
12606 | cat >>conftest.$ac_ext <<_ACEOF | |
12607 | /* end confdefs.h. */ | |
12608 | $ac_includes_default | |
4e8d927d DJ |
12609 | int |
12610 | main () | |
12611 | { | |
b4e70030 | 12612 | if ((int *) 0) |
4e8d927d | 12613 | return 0; |
b4e70030 | 12614 | if (sizeof (int)) |
4e8d927d DJ |
12615 | return 0; |
12616 | ; | |
12617 | return 0; | |
12618 | } | |
12619 | _ACEOF | |
12620 | rm -f conftest.$ac_objext | |
12621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12622 | (eval $ac_compile) 2>conftest.er1 | |
12623 | ac_status=$? | |
12624 | grep -v '^ *+' conftest.er1 >conftest.err | |
12625 | rm -f conftest.er1 | |
12626 | cat conftest.err >&5 | |
12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12628 | (exit $ac_status); } && | |
b4e70030 JB |
12629 | { ac_try='test -z "$ac_c_werror_flag" |
12630 | || test ! -s conftest.err' | |
4e8d927d DJ |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; } && | |
12636 | { ac_try='test -s conftest.$ac_objext' | |
12637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12638 | (eval $ac_try) 2>&5 | |
12639 | ac_status=$? | |
12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12641 | (exit $ac_status); }; }; then | |
12642 | ac_cv_type_int=yes | |
12643 | else | |
12644 | echo "$as_me: failed program was:" >&5 | |
12645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12646 | ||
b4e70030 | 12647 | ac_cv_type_int=no |
4e8d927d | 12648 | fi |
4e8d927d DJ |
12649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12650 | fi | |
b4e70030 JB |
12651 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
12652 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 12653 | |
b4e70030 JB |
12654 | echo "$as_me:$LINENO: checking size of int" >&5 |
12655 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
12656 | if test "${ac_cv_sizeof_int+set}" = set; then |
12657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12658 | else | |
12659 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 12660 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12661 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12662 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12663 | # This bug is HP SR number 8606223364. | |
12664 | if test "$cross_compiling" = yes; then | |
12665 | # Depending upon the size, compute the lo and hi bounds. | |
12666 | cat >conftest.$ac_ext <<_ACEOF | |
12667 | /* confdefs.h. */ | |
12668 | _ACEOF | |
12669 | cat confdefs.h >>conftest.$ac_ext | |
12670 | cat >>conftest.$ac_ext <<_ACEOF | |
12671 | /* end confdefs.h. */ | |
12672 | $ac_includes_default | |
4e8d927d DJ |
12673 | int |
12674 | main () | |
12675 | { | |
b4e70030 | 12676 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
12677 | test_array [0] = 0 |
12678 | ||
12679 | ; | |
12680 | return 0; | |
12681 | } | |
12682 | _ACEOF | |
12683 | rm -f conftest.$ac_objext | |
12684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12685 | (eval $ac_compile) 2>conftest.er1 | |
12686 | ac_status=$? | |
12687 | grep -v '^ *+' conftest.er1 >conftest.err | |
12688 | rm -f conftest.er1 | |
12689 | cat conftest.err >&5 | |
12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12691 | (exit $ac_status); } && | |
b4e70030 JB |
12692 | { ac_try='test -z "$ac_c_werror_flag" |
12693 | || test ! -s conftest.err' | |
4e8d927d DJ |
12694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12695 | (eval $ac_try) 2>&5 | |
12696 | ac_status=$? | |
12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12698 | (exit $ac_status); }; } && | |
12699 | { ac_try='test -s conftest.$ac_objext' | |
12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12701 | (eval $ac_try) 2>&5 | |
12702 | ac_status=$? | |
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12704 | (exit $ac_status); }; }; then | |
12705 | ac_lo=0 ac_mid=0 | |
12706 | while :; do | |
12707 | cat >conftest.$ac_ext <<_ACEOF | |
12708 | /* confdefs.h. */ | |
12709 | _ACEOF | |
12710 | cat confdefs.h >>conftest.$ac_ext | |
12711 | cat >>conftest.$ac_ext <<_ACEOF | |
12712 | /* end confdefs.h. */ | |
12713 | $ac_includes_default | |
4e8d927d DJ |
12714 | int |
12715 | main () | |
12716 | { | |
b4e70030 | 12717 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
12718 | test_array [0] = 0 |
12719 | ||
12720 | ; | |
12721 | return 0; | |
12722 | } | |
12723 | _ACEOF | |
12724 | rm -f conftest.$ac_objext | |
12725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12726 | (eval $ac_compile) 2>conftest.er1 | |
12727 | ac_status=$? | |
12728 | grep -v '^ *+' conftest.er1 >conftest.err | |
12729 | rm -f conftest.er1 | |
12730 | cat conftest.err >&5 | |
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12732 | (exit $ac_status); } && | |
b4e70030 JB |
12733 | { ac_try='test -z "$ac_c_werror_flag" |
12734 | || test ! -s conftest.err' | |
4e8d927d DJ |
12735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12736 | (eval $ac_try) 2>&5 | |
12737 | ac_status=$? | |
12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12739 | (exit $ac_status); }; } && | |
12740 | { ac_try='test -s conftest.$ac_objext' | |
12741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12742 | (eval $ac_try) 2>&5 | |
12743 | ac_status=$? | |
12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12745 | (exit $ac_status); }; }; then | |
12746 | ac_hi=$ac_mid; break | |
12747 | else | |
12748 | echo "$as_me: failed program was:" >&5 | |
12749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12750 | ||
b4e70030 JB |
12751 | ac_lo=`expr $ac_mid + 1` |
12752 | if test $ac_lo -le $ac_mid; then | |
12753 | ac_lo= ac_hi= | |
12754 | break | |
12755 | fi | |
12756 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12757 | fi |
4e8d927d DJ |
12758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12759 | done | |
12760 | else | |
12761 | echo "$as_me: failed program was:" >&5 | |
12762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12763 | ||
b4e70030 | 12764 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12765 | /* confdefs.h. */ |
12766 | _ACEOF | |
12767 | cat confdefs.h >>conftest.$ac_ext | |
12768 | cat >>conftest.$ac_ext <<_ACEOF | |
12769 | /* end confdefs.h. */ | |
12770 | $ac_includes_default | |
4e8d927d DJ |
12771 | int |
12772 | main () | |
12773 | { | |
b4e70030 | 12774 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
12775 | test_array [0] = 0 |
12776 | ||
12777 | ; | |
12778 | return 0; | |
12779 | } | |
12780 | _ACEOF | |
12781 | rm -f conftest.$ac_objext | |
12782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12783 | (eval $ac_compile) 2>conftest.er1 | |
12784 | ac_status=$? | |
12785 | grep -v '^ *+' conftest.er1 >conftest.err | |
12786 | rm -f conftest.er1 | |
12787 | cat conftest.err >&5 | |
12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12789 | (exit $ac_status); } && | |
b4e70030 JB |
12790 | { ac_try='test -z "$ac_c_werror_flag" |
12791 | || test ! -s conftest.err' | |
4e8d927d DJ |
12792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12793 | (eval $ac_try) 2>&5 | |
12794 | ac_status=$? | |
12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12796 | (exit $ac_status); }; } && | |
12797 | { ac_try='test -s conftest.$ac_objext' | |
12798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12799 | (eval $ac_try) 2>&5 | |
12800 | ac_status=$? | |
12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12802 | (exit $ac_status); }; }; then | |
12803 | ac_hi=-1 ac_mid=-1 | |
12804 | while :; do | |
12805 | cat >conftest.$ac_ext <<_ACEOF | |
12806 | /* confdefs.h. */ | |
12807 | _ACEOF | |
12808 | cat confdefs.h >>conftest.$ac_ext | |
12809 | cat >>conftest.$ac_ext <<_ACEOF | |
12810 | /* end confdefs.h. */ | |
12811 | $ac_includes_default | |
4e8d927d DJ |
12812 | int |
12813 | main () | |
12814 | { | |
b4e70030 | 12815 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
12816 | test_array [0] = 0 |
12817 | ||
12818 | ; | |
12819 | return 0; | |
12820 | } | |
12821 | _ACEOF | |
12822 | rm -f conftest.$ac_objext | |
12823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12824 | (eval $ac_compile) 2>conftest.er1 | |
12825 | ac_status=$? | |
12826 | grep -v '^ *+' conftest.er1 >conftest.err | |
12827 | rm -f conftest.er1 | |
12828 | cat conftest.err >&5 | |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12830 | (exit $ac_status); } && | |
b4e70030 JB |
12831 | { ac_try='test -z "$ac_c_werror_flag" |
12832 | || test ! -s conftest.err' | |
4e8d927d DJ |
12833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12834 | (eval $ac_try) 2>&5 | |
12835 | ac_status=$? | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); }; } && | |
12838 | { ac_try='test -s conftest.$ac_objext' | |
12839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12840 | (eval $ac_try) 2>&5 | |
12841 | ac_status=$? | |
12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12843 | (exit $ac_status); }; }; then | |
12844 | ac_lo=$ac_mid; break | |
12845 | else | |
12846 | echo "$as_me: failed program was:" >&5 | |
12847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12848 | ||
b4e70030 JB |
12849 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12850 | if test $ac_mid -le $ac_hi; then | |
12851 | ac_lo= ac_hi= | |
12852 | break | |
12853 | fi | |
12854 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12855 | fi |
4e8d927d DJ |
12856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12857 | done | |
12858 | else | |
12859 | echo "$as_me: failed program was:" >&5 | |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12861 | ||
b4e70030 | 12862 | ac_lo= ac_hi= |
4e8d927d | 12863 | fi |
4e8d927d DJ |
12864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12865 | fi | |
4e8d927d DJ |
12866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12867 | # Binary search between lo and hi bounds. | |
12868 | while test "x$ac_lo" != "x$ac_hi"; do | |
12869 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12870 | cat >conftest.$ac_ext <<_ACEOF | |
12871 | /* confdefs.h. */ | |
12872 | _ACEOF | |
12873 | cat confdefs.h >>conftest.$ac_ext | |
12874 | cat >>conftest.$ac_ext <<_ACEOF | |
12875 | /* end confdefs.h. */ | |
12876 | $ac_includes_default | |
4e8d927d DJ |
12877 | int |
12878 | main () | |
12879 | { | |
b4e70030 | 12880 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
12881 | test_array [0] = 0 |
12882 | ||
12883 | ; | |
12884 | return 0; | |
12885 | } | |
12886 | _ACEOF | |
12887 | rm -f conftest.$ac_objext | |
12888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12889 | (eval $ac_compile) 2>conftest.er1 | |
12890 | ac_status=$? | |
12891 | grep -v '^ *+' conftest.er1 >conftest.err | |
12892 | rm -f conftest.er1 | |
12893 | cat conftest.err >&5 | |
12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12895 | (exit $ac_status); } && | |
b4e70030 JB |
12896 | { ac_try='test -z "$ac_c_werror_flag" |
12897 | || test ! -s conftest.err' | |
4e8d927d DJ |
12898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12899 | (eval $ac_try) 2>&5 | |
12900 | ac_status=$? | |
12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12902 | (exit $ac_status); }; } && | |
12903 | { ac_try='test -s conftest.$ac_objext' | |
12904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12905 | (eval $ac_try) 2>&5 | |
12906 | ac_status=$? | |
12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12908 | (exit $ac_status); }; }; then | |
12909 | ac_hi=$ac_mid | |
12910 | else | |
12911 | echo "$as_me: failed program was:" >&5 | |
12912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12913 | ||
b4e70030 | 12914 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12915 | fi |
4e8d927d DJ |
12916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12917 | done | |
12918 | case $ac_lo in | |
12919 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 12920 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 12921 | See \`config.log' for more details." >&5 |
b4e70030 | 12922 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 12923 | See \`config.log' for more details." >&2;} |
b4e70030 | 12924 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12925 | esac |
b4e70030 JB |
12926 | else |
12927 | if test "$cross_compiling" = yes; then | |
12928 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12929 | See \`config.log' for more details." >&5 | |
12930 | echo "$as_me: error: cannot run test program while cross compiling | |
12931 | See \`config.log' for more details." >&2;} | |
12932 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12933 | else |
12934 | cat >conftest.$ac_ext <<_ACEOF | |
12935 | /* confdefs.h. */ | |
12936 | _ACEOF | |
12937 | cat confdefs.h >>conftest.$ac_ext | |
12938 | cat >>conftest.$ac_ext <<_ACEOF | |
12939 | /* end confdefs.h. */ | |
12940 | $ac_includes_default | |
b4e70030 JB |
12941 | long longval () { return (long) (sizeof (int)); } |
12942 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
12943 | #include <stdio.h> |
12944 | #include <stdlib.h> | |
12945 | int | |
12946 | main () | |
12947 | { | |
12948 | ||
12949 | FILE *f = fopen ("conftest.val", "w"); | |
12950 | if (! f) | |
b4e70030 JB |
12951 | exit (1); |
12952 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 12953 | { |
b4e70030 JB |
12954 | long i = longval (); |
12955 | if (i != ((long) (sizeof (int)))) | |
12956 | exit (1); | |
4e8d927d DJ |
12957 | fprintf (f, "%ld\n", i); |
12958 | } | |
12959 | else | |
12960 | { | |
b4e70030 JB |
12961 | unsigned long i = ulongval (); |
12962 | if (i != ((long) (sizeof (int)))) | |
12963 | exit (1); | |
4e8d927d DJ |
12964 | fprintf (f, "%lu\n", i); |
12965 | } | |
b4e70030 | 12966 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12967 | |
12968 | ; | |
12969 | return 0; | |
12970 | } | |
12971 | _ACEOF | |
12972 | rm -f conftest$ac_exeext | |
12973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12974 | (eval $ac_link) 2>&5 | |
12975 | ac_status=$? | |
12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12977 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12979 | (eval $ac_try) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); }; }; then | |
12983 | ac_cv_sizeof_int=`cat conftest.val` | |
12984 | else | |
12985 | echo "$as_me: program exited with status $ac_status" >&5 | |
12986 | echo "$as_me: failed program was:" >&5 | |
12987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12988 | ||
12989 | ( exit $ac_status ) | |
b4e70030 | 12990 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 12991 | See \`config.log' for more details." >&5 |
b4e70030 | 12992 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 12993 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12994 | { (exit 1); exit 1; }; } |
12995 | fi | |
12996 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12997 | fi |
4e8d927d DJ |
12998 | fi |
12999 | rm -f conftest.val | |
13000 | else | |
13001 | ac_cv_sizeof_int=0 | |
13002 | fi | |
13003 | fi | |
b4e70030 JB |
13004 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13005 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
13006 | cat >>confdefs.h <<_ACEOF |
13007 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13008 | _ACEOF | |
13009 | ||
13010 | ||
b4e70030 JB |
13011 | echo "$as_me:$LINENO: checking for short" >&5 |
13012 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
13013 | if test "${ac_cv_type_short+set}" = set; then |
13014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13015 | else | |
13016 | cat >conftest.$ac_ext <<_ACEOF | |
13017 | /* confdefs.h. */ | |
13018 | _ACEOF | |
13019 | cat confdefs.h >>conftest.$ac_ext | |
13020 | cat >>conftest.$ac_ext <<_ACEOF | |
13021 | /* end confdefs.h. */ | |
13022 | $ac_includes_default | |
4e8d927d DJ |
13023 | int |
13024 | main () | |
13025 | { | |
b4e70030 | 13026 | if ((short *) 0) |
4e8d927d | 13027 | return 0; |
b4e70030 | 13028 | if (sizeof (short)) |
4e8d927d DJ |
13029 | return 0; |
13030 | ; | |
13031 | return 0; | |
13032 | } | |
13033 | _ACEOF | |
13034 | rm -f conftest.$ac_objext | |
13035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13036 | (eval $ac_compile) 2>conftest.er1 | |
13037 | ac_status=$? | |
13038 | grep -v '^ *+' conftest.er1 >conftest.err | |
13039 | rm -f conftest.er1 | |
13040 | cat conftest.err >&5 | |
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); } && | |
b4e70030 JB |
13043 | { ac_try='test -z "$ac_c_werror_flag" |
13044 | || test ! -s conftest.err' | |
4e8d927d DJ |
13045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13046 | (eval $ac_try) 2>&5 | |
13047 | ac_status=$? | |
13048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13049 | (exit $ac_status); }; } && | |
13050 | { ac_try='test -s conftest.$ac_objext' | |
13051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13052 | (eval $ac_try) 2>&5 | |
13053 | ac_status=$? | |
13054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13055 | (exit $ac_status); }; }; then | |
13056 | ac_cv_type_short=yes | |
13057 | else | |
13058 | echo "$as_me: failed program was:" >&5 | |
13059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13060 | ||
b4e70030 | 13061 | ac_cv_type_short=no |
4e8d927d | 13062 | fi |
4e8d927d DJ |
13063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13064 | fi | |
b4e70030 JB |
13065 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
13066 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 13067 | |
b4e70030 JB |
13068 | echo "$as_me:$LINENO: checking size of short" >&5 |
13069 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
13070 | if test "${ac_cv_sizeof_short+set}" = set; then |
13071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13072 | else | |
13073 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 13074 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13075 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13076 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13077 | # This bug is HP SR number 8606223364. | |
13078 | if test "$cross_compiling" = yes; then | |
13079 | # Depending upon the size, compute the lo and hi bounds. | |
13080 | cat >conftest.$ac_ext <<_ACEOF | |
13081 | /* confdefs.h. */ | |
13082 | _ACEOF | |
13083 | cat confdefs.h >>conftest.$ac_ext | |
13084 | cat >>conftest.$ac_ext <<_ACEOF | |
13085 | /* end confdefs.h. */ | |
13086 | $ac_includes_default | |
4e8d927d DJ |
13087 | int |
13088 | main () | |
13089 | { | |
b4e70030 | 13090 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
13091 | test_array [0] = 0 |
13092 | ||
13093 | ; | |
13094 | return 0; | |
13095 | } | |
13096 | _ACEOF | |
13097 | rm -f conftest.$ac_objext | |
13098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13099 | (eval $ac_compile) 2>conftest.er1 | |
13100 | ac_status=$? | |
13101 | grep -v '^ *+' conftest.er1 >conftest.err | |
13102 | rm -f conftest.er1 | |
13103 | cat conftest.err >&5 | |
13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13105 | (exit $ac_status); } && | |
b4e70030 JB |
13106 | { ac_try='test -z "$ac_c_werror_flag" |
13107 | || test ! -s conftest.err' | |
4e8d927d DJ |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; } && | |
13113 | { ac_try='test -s conftest.$ac_objext' | |
13114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13115 | (eval $ac_try) 2>&5 | |
13116 | ac_status=$? | |
13117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13118 | (exit $ac_status); }; }; then | |
13119 | ac_lo=0 ac_mid=0 | |
13120 | while :; do | |
13121 | cat >conftest.$ac_ext <<_ACEOF | |
13122 | /* confdefs.h. */ | |
13123 | _ACEOF | |
13124 | cat confdefs.h >>conftest.$ac_ext | |
13125 | cat >>conftest.$ac_ext <<_ACEOF | |
13126 | /* end confdefs.h. */ | |
13127 | $ac_includes_default | |
4e8d927d DJ |
13128 | int |
13129 | main () | |
13130 | { | |
b4e70030 | 13131 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13132 | test_array [0] = 0 |
13133 | ||
13134 | ; | |
13135 | return 0; | |
13136 | } | |
13137 | _ACEOF | |
13138 | rm -f conftest.$ac_objext | |
13139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13140 | (eval $ac_compile) 2>conftest.er1 | |
13141 | ac_status=$? | |
13142 | grep -v '^ *+' conftest.er1 >conftest.err | |
13143 | rm -f conftest.er1 | |
13144 | cat conftest.err >&5 | |
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13146 | (exit $ac_status); } && | |
b4e70030 JB |
13147 | { ac_try='test -z "$ac_c_werror_flag" |
13148 | || test ! -s conftest.err' | |
4e8d927d DJ |
13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13150 | (eval $ac_try) 2>&5 | |
13151 | ac_status=$? | |
13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13153 | (exit $ac_status); }; } && | |
13154 | { ac_try='test -s conftest.$ac_objext' | |
13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13156 | (eval $ac_try) 2>&5 | |
13157 | ac_status=$? | |
13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13159 | (exit $ac_status); }; }; then | |
13160 | ac_hi=$ac_mid; break | |
13161 | else | |
13162 | echo "$as_me: failed program was:" >&5 | |
13163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13164 | ||
b4e70030 JB |
13165 | ac_lo=`expr $ac_mid + 1` |
13166 | if test $ac_lo -le $ac_mid; then | |
13167 | ac_lo= ac_hi= | |
13168 | break | |
13169 | fi | |
13170 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13171 | fi |
4e8d927d DJ |
13172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13173 | done | |
13174 | else | |
13175 | echo "$as_me: failed program was:" >&5 | |
13176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13177 | ||
b4e70030 | 13178 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13179 | /* confdefs.h. */ |
13180 | _ACEOF | |
13181 | cat confdefs.h >>conftest.$ac_ext | |
13182 | cat >>conftest.$ac_ext <<_ACEOF | |
13183 | /* end confdefs.h. */ | |
13184 | $ac_includes_default | |
4e8d927d DJ |
13185 | int |
13186 | main () | |
13187 | { | |
b4e70030 | 13188 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13189 | test_array [0] = 0 |
13190 | ||
13191 | ; | |
13192 | return 0; | |
13193 | } | |
13194 | _ACEOF | |
13195 | rm -f conftest.$ac_objext | |
13196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13197 | (eval $ac_compile) 2>conftest.er1 | |
13198 | ac_status=$? | |
13199 | grep -v '^ *+' conftest.er1 >conftest.err | |
13200 | rm -f conftest.er1 | |
13201 | cat conftest.err >&5 | |
13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13203 | (exit $ac_status); } && | |
b4e70030 JB |
13204 | { ac_try='test -z "$ac_c_werror_flag" |
13205 | || test ! -s conftest.err' | |
4e8d927d DJ |
13206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13207 | (eval $ac_try) 2>&5 | |
13208 | ac_status=$? | |
13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13210 | (exit $ac_status); }; } && | |
13211 | { ac_try='test -s conftest.$ac_objext' | |
13212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13213 | (eval $ac_try) 2>&5 | |
13214 | ac_status=$? | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); }; }; then | |
13217 | ac_hi=-1 ac_mid=-1 | |
13218 | while :; do | |
13219 | cat >conftest.$ac_ext <<_ACEOF | |
13220 | /* confdefs.h. */ | |
13221 | _ACEOF | |
13222 | cat confdefs.h >>conftest.$ac_ext | |
13223 | cat >>conftest.$ac_ext <<_ACEOF | |
13224 | /* end confdefs.h. */ | |
13225 | $ac_includes_default | |
4e8d927d DJ |
13226 | int |
13227 | main () | |
13228 | { | |
b4e70030 | 13229 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13230 | test_array [0] = 0 |
13231 | ||
13232 | ; | |
13233 | return 0; | |
13234 | } | |
13235 | _ACEOF | |
13236 | rm -f conftest.$ac_objext | |
13237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13238 | (eval $ac_compile) 2>conftest.er1 | |
13239 | ac_status=$? | |
13240 | grep -v '^ *+' conftest.er1 >conftest.err | |
13241 | rm -f conftest.er1 | |
13242 | cat conftest.err >&5 | |
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 | (exit $ac_status); } && | |
b4e70030 JB |
13245 | { ac_try='test -z "$ac_c_werror_flag" |
13246 | || test ! -s conftest.err' | |
4e8d927d DJ |
13247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13248 | (eval $ac_try) 2>&5 | |
13249 | ac_status=$? | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); }; } && | |
13252 | { ac_try='test -s conftest.$ac_objext' | |
13253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13254 | (eval $ac_try) 2>&5 | |
13255 | ac_status=$? | |
13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13257 | (exit $ac_status); }; }; then | |
13258 | ac_lo=$ac_mid; break | |
13259 | else | |
13260 | echo "$as_me: failed program was:" >&5 | |
13261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13262 | ||
b4e70030 JB |
13263 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13264 | if test $ac_mid -le $ac_hi; then | |
13265 | ac_lo= ac_hi= | |
13266 | break | |
13267 | fi | |
13268 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13269 | fi |
4e8d927d DJ |
13270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13271 | done | |
13272 | else | |
13273 | echo "$as_me: failed program was:" >&5 | |
13274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13275 | ||
b4e70030 | 13276 | ac_lo= ac_hi= |
4e8d927d | 13277 | fi |
4e8d927d DJ |
13278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13279 | fi | |
4e8d927d DJ |
13280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13281 | # Binary search between lo and hi bounds. | |
13282 | while test "x$ac_lo" != "x$ac_hi"; do | |
13283 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13284 | cat >conftest.$ac_ext <<_ACEOF | |
13285 | /* confdefs.h. */ | |
13286 | _ACEOF | |
13287 | cat confdefs.h >>conftest.$ac_ext | |
13288 | cat >>conftest.$ac_ext <<_ACEOF | |
13289 | /* end confdefs.h. */ | |
13290 | $ac_includes_default | |
4e8d927d DJ |
13291 | int |
13292 | main () | |
13293 | { | |
b4e70030 | 13294 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13295 | test_array [0] = 0 |
13296 | ||
13297 | ; | |
13298 | return 0; | |
13299 | } | |
13300 | _ACEOF | |
13301 | rm -f conftest.$ac_objext | |
13302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13303 | (eval $ac_compile) 2>conftest.er1 | |
13304 | ac_status=$? | |
13305 | grep -v '^ *+' conftest.er1 >conftest.err | |
13306 | rm -f conftest.er1 | |
13307 | cat conftest.err >&5 | |
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13309 | (exit $ac_status); } && | |
b4e70030 JB |
13310 | { ac_try='test -z "$ac_c_werror_flag" |
13311 | || test ! -s conftest.err' | |
4e8d927d DJ |
13312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13313 | (eval $ac_try) 2>&5 | |
13314 | ac_status=$? | |
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); }; } && | |
13317 | { ac_try='test -s conftest.$ac_objext' | |
13318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13319 | (eval $ac_try) 2>&5 | |
13320 | ac_status=$? | |
13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13322 | (exit $ac_status); }; }; then | |
13323 | ac_hi=$ac_mid | |
13324 | else | |
13325 | echo "$as_me: failed program was:" >&5 | |
13326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13327 | ||
b4e70030 | 13328 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13329 | fi |
4e8d927d DJ |
13330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13331 | done | |
13332 | case $ac_lo in | |
13333 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 13334 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13335 | See \`config.log' for more details." >&5 |
b4e70030 | 13336 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13337 | See \`config.log' for more details." >&2;} |
b4e70030 | 13338 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13339 | esac |
b4e70030 JB |
13340 | else |
13341 | if test "$cross_compiling" = yes; then | |
13342 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13343 | See \`config.log' for more details." >&5 | |
13344 | echo "$as_me: error: cannot run test program while cross compiling | |
13345 | See \`config.log' for more details." >&2;} | |
13346 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13347 | else |
13348 | cat >conftest.$ac_ext <<_ACEOF | |
13349 | /* confdefs.h. */ | |
13350 | _ACEOF | |
13351 | cat confdefs.h >>conftest.$ac_ext | |
13352 | cat >>conftest.$ac_ext <<_ACEOF | |
13353 | /* end confdefs.h. */ | |
13354 | $ac_includes_default | |
b4e70030 JB |
13355 | long longval () { return (long) (sizeof (short)); } |
13356 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
13357 | #include <stdio.h> |
13358 | #include <stdlib.h> | |
13359 | int | |
13360 | main () | |
13361 | { | |
13362 | ||
13363 | FILE *f = fopen ("conftest.val", "w"); | |
13364 | if (! f) | |
b4e70030 JB |
13365 | exit (1); |
13366 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 13367 | { |
b4e70030 JB |
13368 | long i = longval (); |
13369 | if (i != ((long) (sizeof (short)))) | |
13370 | exit (1); | |
4e8d927d DJ |
13371 | fprintf (f, "%ld\n", i); |
13372 | } | |
13373 | else | |
13374 | { | |
b4e70030 JB |
13375 | unsigned long i = ulongval (); |
13376 | if (i != ((long) (sizeof (short)))) | |
13377 | exit (1); | |
4e8d927d DJ |
13378 | fprintf (f, "%lu\n", i); |
13379 | } | |
b4e70030 | 13380 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13381 | |
13382 | ; | |
13383 | return 0; | |
13384 | } | |
13385 | _ACEOF | |
13386 | rm -f conftest$ac_exeext | |
13387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13388 | (eval $ac_link) 2>&5 | |
13389 | ac_status=$? | |
13390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13393 | (eval $ac_try) 2>&5 | |
13394 | ac_status=$? | |
13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13396 | (exit $ac_status); }; }; then | |
13397 | ac_cv_sizeof_short=`cat conftest.val` | |
13398 | else | |
13399 | echo "$as_me: program exited with status $ac_status" >&5 | |
13400 | echo "$as_me: failed program was:" >&5 | |
13401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13402 | ||
13403 | ( exit $ac_status ) | |
b4e70030 | 13404 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13405 | See \`config.log' for more details." >&5 |
b4e70030 | 13406 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13407 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13408 | { (exit 1); exit 1; }; } |
13409 | fi | |
13410 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13411 | fi |
4e8d927d DJ |
13412 | fi |
13413 | rm -f conftest.val | |
13414 | else | |
13415 | ac_cv_sizeof_short=0 | |
13416 | fi | |
13417 | fi | |
b4e70030 JB |
13418 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13419 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
13420 | cat >>confdefs.h <<_ACEOF |
13421 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13422 | _ACEOF | |
13423 | ||
13424 | ||
b4e70030 JB |
13425 | echo "$as_me:$LINENO: checking for char" >&5 |
13426 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
13427 | if test "${ac_cv_type_char+set}" = set; then |
13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13429 | else | |
13430 | cat >conftest.$ac_ext <<_ACEOF | |
13431 | /* confdefs.h. */ | |
13432 | _ACEOF | |
13433 | cat confdefs.h >>conftest.$ac_ext | |
13434 | cat >>conftest.$ac_ext <<_ACEOF | |
13435 | /* end confdefs.h. */ | |
13436 | $ac_includes_default | |
4e8d927d DJ |
13437 | int |
13438 | main () | |
13439 | { | |
b4e70030 | 13440 | if ((char *) 0) |
4e8d927d | 13441 | return 0; |
b4e70030 | 13442 | if (sizeof (char)) |
4e8d927d DJ |
13443 | return 0; |
13444 | ; | |
13445 | return 0; | |
13446 | } | |
13447 | _ACEOF | |
13448 | rm -f conftest.$ac_objext | |
13449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13450 | (eval $ac_compile) 2>conftest.er1 | |
13451 | ac_status=$? | |
13452 | grep -v '^ *+' conftest.er1 >conftest.err | |
13453 | rm -f conftest.er1 | |
13454 | cat conftest.err >&5 | |
13455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13456 | (exit $ac_status); } && | |
b4e70030 JB |
13457 | { ac_try='test -z "$ac_c_werror_flag" |
13458 | || test ! -s conftest.err' | |
4e8d927d DJ |
13459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13460 | (eval $ac_try) 2>&5 | |
13461 | ac_status=$? | |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13463 | (exit $ac_status); }; } && | |
13464 | { ac_try='test -s conftest.$ac_objext' | |
13465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13466 | (eval $ac_try) 2>&5 | |
13467 | ac_status=$? | |
13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13469 | (exit $ac_status); }; }; then | |
13470 | ac_cv_type_char=yes | |
13471 | else | |
13472 | echo "$as_me: failed program was:" >&5 | |
13473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13474 | ||
b4e70030 | 13475 | ac_cv_type_char=no |
4e8d927d | 13476 | fi |
4e8d927d DJ |
13477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13478 | fi | |
b4e70030 JB |
13479 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
13480 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 13481 | |
b4e70030 JB |
13482 | echo "$as_me:$LINENO: checking size of char" >&5 |
13483 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
13484 | if test "${ac_cv_sizeof_char+set}" = set; then |
13485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13486 | else | |
13487 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 13488 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13489 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13490 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13491 | # This bug is HP SR number 8606223364. | |
13492 | if test "$cross_compiling" = yes; then | |
13493 | # Depending upon the size, compute the lo and hi bounds. | |
13494 | cat >conftest.$ac_ext <<_ACEOF | |
13495 | /* confdefs.h. */ | |
13496 | _ACEOF | |
13497 | cat confdefs.h >>conftest.$ac_ext | |
13498 | cat >>conftest.$ac_ext <<_ACEOF | |
13499 | /* end confdefs.h. */ | |
13500 | $ac_includes_default | |
4e8d927d DJ |
13501 | int |
13502 | main () | |
13503 | { | |
b4e70030 | 13504 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
13505 | test_array [0] = 0 |
13506 | ||
13507 | ; | |
13508 | return 0; | |
13509 | } | |
13510 | _ACEOF | |
13511 | rm -f conftest.$ac_objext | |
13512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13513 | (eval $ac_compile) 2>conftest.er1 | |
13514 | ac_status=$? | |
13515 | grep -v '^ *+' conftest.er1 >conftest.err | |
13516 | rm -f conftest.er1 | |
13517 | cat conftest.err >&5 | |
13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13519 | (exit $ac_status); } && | |
b4e70030 JB |
13520 | { ac_try='test -z "$ac_c_werror_flag" |
13521 | || test ! -s conftest.err' | |
4e8d927d DJ |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; } && | |
13527 | { ac_try='test -s conftest.$ac_objext' | |
13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13529 | (eval $ac_try) 2>&5 | |
13530 | ac_status=$? | |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13532 | (exit $ac_status); }; }; then | |
13533 | ac_lo=0 ac_mid=0 | |
13534 | while :; do | |
13535 | cat >conftest.$ac_ext <<_ACEOF | |
13536 | /* confdefs.h. */ | |
13537 | _ACEOF | |
13538 | cat confdefs.h >>conftest.$ac_ext | |
13539 | cat >>conftest.$ac_ext <<_ACEOF | |
13540 | /* end confdefs.h. */ | |
13541 | $ac_includes_default | |
4e8d927d DJ |
13542 | int |
13543 | main () | |
13544 | { | |
b4e70030 | 13545 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13546 | test_array [0] = 0 |
13547 | ||
13548 | ; | |
13549 | return 0; | |
13550 | } | |
13551 | _ACEOF | |
13552 | rm -f conftest.$ac_objext | |
13553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13554 | (eval $ac_compile) 2>conftest.er1 | |
13555 | ac_status=$? | |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } && | |
b4e70030 JB |
13561 | { ac_try='test -z "$ac_c_werror_flag" |
13562 | || test ! -s conftest.err' | |
4e8d927d DJ |
13563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13564 | (eval $ac_try) 2>&5 | |
13565 | ac_status=$? | |
13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13567 | (exit $ac_status); }; } && | |
13568 | { ac_try='test -s conftest.$ac_objext' | |
13569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13570 | (eval $ac_try) 2>&5 | |
13571 | ac_status=$? | |
13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13573 | (exit $ac_status); }; }; then | |
13574 | ac_hi=$ac_mid; break | |
13575 | else | |
13576 | echo "$as_me: failed program was:" >&5 | |
13577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13578 | ||
b4e70030 JB |
13579 | ac_lo=`expr $ac_mid + 1` |
13580 | if test $ac_lo -le $ac_mid; then | |
13581 | ac_lo= ac_hi= | |
13582 | break | |
13583 | fi | |
13584 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13585 | fi |
4e8d927d DJ |
13586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13587 | done | |
13588 | else | |
13589 | echo "$as_me: failed program was:" >&5 | |
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13591 | ||
b4e70030 | 13592 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13593 | /* confdefs.h. */ |
13594 | _ACEOF | |
13595 | cat confdefs.h >>conftest.$ac_ext | |
13596 | cat >>conftest.$ac_ext <<_ACEOF | |
13597 | /* end confdefs.h. */ | |
13598 | $ac_includes_default | |
4e8d927d DJ |
13599 | int |
13600 | main () | |
13601 | { | |
b4e70030 | 13602 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
13603 | test_array [0] = 0 |
13604 | ||
13605 | ; | |
13606 | return 0; | |
13607 | } | |
13608 | _ACEOF | |
13609 | rm -f conftest.$ac_objext | |
13610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13611 | (eval $ac_compile) 2>conftest.er1 | |
13612 | ac_status=$? | |
13613 | grep -v '^ *+' conftest.er1 >conftest.err | |
13614 | rm -f conftest.er1 | |
13615 | cat conftest.err >&5 | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13617 | (exit $ac_status); } && | |
b4e70030 JB |
13618 | { ac_try='test -z "$ac_c_werror_flag" |
13619 | || test ! -s conftest.err' | |
4e8d927d DJ |
13620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13621 | (eval $ac_try) 2>&5 | |
13622 | ac_status=$? | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13624 | (exit $ac_status); }; } && | |
13625 | { ac_try='test -s conftest.$ac_objext' | |
13626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13627 | (eval $ac_try) 2>&5 | |
13628 | ac_status=$? | |
13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13630 | (exit $ac_status); }; }; then | |
13631 | ac_hi=-1 ac_mid=-1 | |
13632 | while :; do | |
13633 | cat >conftest.$ac_ext <<_ACEOF | |
13634 | /* confdefs.h. */ | |
13635 | _ACEOF | |
13636 | cat confdefs.h >>conftest.$ac_ext | |
13637 | cat >>conftest.$ac_ext <<_ACEOF | |
13638 | /* end confdefs.h. */ | |
13639 | $ac_includes_default | |
4e8d927d DJ |
13640 | int |
13641 | main () | |
13642 | { | |
b4e70030 | 13643 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
13644 | test_array [0] = 0 |
13645 | ||
13646 | ; | |
13647 | return 0; | |
13648 | } | |
13649 | _ACEOF | |
13650 | rm -f conftest.$ac_objext | |
13651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13652 | (eval $ac_compile) 2>conftest.er1 | |
13653 | ac_status=$? | |
13654 | grep -v '^ *+' conftest.er1 >conftest.err | |
13655 | rm -f conftest.er1 | |
13656 | cat conftest.err >&5 | |
13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13658 | (exit $ac_status); } && | |
b4e70030 JB |
13659 | { ac_try='test -z "$ac_c_werror_flag" |
13660 | || test ! -s conftest.err' | |
4e8d927d DJ |
13661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13662 | (eval $ac_try) 2>&5 | |
13663 | ac_status=$? | |
13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13665 | (exit $ac_status); }; } && | |
13666 | { ac_try='test -s conftest.$ac_objext' | |
13667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13668 | (eval $ac_try) 2>&5 | |
13669 | ac_status=$? | |
13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13671 | (exit $ac_status); }; }; then | |
13672 | ac_lo=$ac_mid; break | |
13673 | else | |
13674 | echo "$as_me: failed program was:" >&5 | |
13675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13676 | ||
b4e70030 JB |
13677 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13678 | if test $ac_mid -le $ac_hi; then | |
13679 | ac_lo= ac_hi= | |
13680 | break | |
13681 | fi | |
13682 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13683 | fi |
4e8d927d DJ |
13684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13685 | done | |
13686 | else | |
13687 | echo "$as_me: failed program was:" >&5 | |
13688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13689 | ||
b4e70030 | 13690 | ac_lo= ac_hi= |
4e8d927d | 13691 | fi |
4e8d927d DJ |
13692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13693 | fi | |
4e8d927d DJ |
13694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13695 | # Binary search between lo and hi bounds. | |
13696 | while test "x$ac_lo" != "x$ac_hi"; do | |
13697 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | $ac_includes_default | |
4e8d927d DJ |
13705 | int |
13706 | main () | |
13707 | { | |
b4e70030 | 13708 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13709 | test_array [0] = 0 |
13710 | ||
13711 | ; | |
13712 | return 0; | |
13713 | } | |
13714 | _ACEOF | |
13715 | rm -f conftest.$ac_objext | |
13716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13717 | (eval $ac_compile) 2>conftest.er1 | |
13718 | ac_status=$? | |
13719 | grep -v '^ *+' conftest.er1 >conftest.err | |
13720 | rm -f conftest.er1 | |
13721 | cat conftest.err >&5 | |
13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13723 | (exit $ac_status); } && | |
b4e70030 JB |
13724 | { ac_try='test -z "$ac_c_werror_flag" |
13725 | || test ! -s conftest.err' | |
4e8d927d DJ |
13726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13727 | (eval $ac_try) 2>&5 | |
13728 | ac_status=$? | |
13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13730 | (exit $ac_status); }; } && | |
13731 | { ac_try='test -s conftest.$ac_objext' | |
13732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13733 | (eval $ac_try) 2>&5 | |
13734 | ac_status=$? | |
13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13736 | (exit $ac_status); }; }; then | |
13737 | ac_hi=$ac_mid | |
13738 | else | |
13739 | echo "$as_me: failed program was:" >&5 | |
13740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13741 | ||
b4e70030 | 13742 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13743 | fi |
4e8d927d DJ |
13744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13745 | done | |
13746 | case $ac_lo in | |
13747 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 13748 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 13749 | See \`config.log' for more details." >&5 |
b4e70030 | 13750 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 13751 | See \`config.log' for more details." >&2;} |
b4e70030 | 13752 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13753 | esac |
b4e70030 JB |
13754 | else |
13755 | if test "$cross_compiling" = yes; then | |
13756 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13757 | See \`config.log' for more details." >&5 | |
13758 | echo "$as_me: error: cannot run test program while cross compiling | |
13759 | See \`config.log' for more details." >&2;} | |
13760 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13761 | else |
13762 | cat >conftest.$ac_ext <<_ACEOF | |
13763 | /* confdefs.h. */ | |
13764 | _ACEOF | |
13765 | cat confdefs.h >>conftest.$ac_ext | |
13766 | cat >>conftest.$ac_ext <<_ACEOF | |
13767 | /* end confdefs.h. */ | |
13768 | $ac_includes_default | |
b4e70030 JB |
13769 | long longval () { return (long) (sizeof (char)); } |
13770 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
13771 | #include <stdio.h> |
13772 | #include <stdlib.h> | |
13773 | int | |
13774 | main () | |
13775 | { | |
13776 | ||
13777 | FILE *f = fopen ("conftest.val", "w"); | |
13778 | if (! f) | |
b4e70030 JB |
13779 | exit (1); |
13780 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 13781 | { |
b4e70030 JB |
13782 | long i = longval (); |
13783 | if (i != ((long) (sizeof (char)))) | |
13784 | exit (1); | |
4e8d927d DJ |
13785 | fprintf (f, "%ld\n", i); |
13786 | } | |
13787 | else | |
13788 | { | |
b4e70030 JB |
13789 | unsigned long i = ulongval (); |
13790 | if (i != ((long) (sizeof (char)))) | |
13791 | exit (1); | |
4e8d927d DJ |
13792 | fprintf (f, "%lu\n", i); |
13793 | } | |
b4e70030 | 13794 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13795 | |
13796 | ; | |
13797 | return 0; | |
13798 | } | |
13799 | _ACEOF | |
13800 | rm -f conftest$ac_exeext | |
13801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13802 | (eval $ac_link) 2>&5 | |
13803 | ac_status=$? | |
13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13807 | (eval $ac_try) 2>&5 | |
13808 | ac_status=$? | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); }; }; then | |
13811 | ac_cv_sizeof_char=`cat conftest.val` | |
13812 | else | |
13813 | echo "$as_me: program exited with status $ac_status" >&5 | |
13814 | echo "$as_me: failed program was:" >&5 | |
13815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13816 | ||
13817 | ( exit $ac_status ) | |
b4e70030 | 13818 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 13819 | See \`config.log' for more details." >&5 |
b4e70030 | 13820 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 13821 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13822 | { (exit 1); exit 1; }; } |
13823 | fi | |
13824 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13825 | fi |
4e8d927d DJ |
13826 | fi |
13827 | rm -f conftest.val | |
13828 | else | |
13829 | ac_cv_sizeof_char=0 | |
13830 | fi | |
13831 | fi | |
b4e70030 JB |
13832 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13833 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
13834 | cat >>confdefs.h <<_ACEOF |
13835 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13836 | _ACEOF | |
13837 | ||
13838 | ||
13839 | ||
b4e70030 JB |
13840 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
13841 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13842 | case "$ac_cv_sizeof_char" in |
13843 | 1) acx_cv_type_int8_t=char ;; | |
13844 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
13845 | echo "$as_me: error: no 8-bit type" >&2;} | |
13846 | { (exit please report a bug); exit please report a bug; }; } | |
13847 | esac | |
b4e70030 JB |
13848 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
13849 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 13850 | |
b4e70030 JB |
13851 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
13852 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13853 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
13854 | 2:*) acx_cv_type_int16_t=int ;; | |
13855 | *:2) acx_cv_type_int16_t=short ;; | |
13856 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
13857 | echo "$as_me: error: no 16-bit type" >&2;} | |
13858 | { (exit please report a bug); exit please report a bug; }; } | |
13859 | esac | |
b4e70030 JB |
13860 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
13861 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 13862 | |
b4e70030 JB |
13863 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
13864 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13865 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
13866 | 4:*) acx_cv_type_int32_t=int ;; | |
13867 | *:4) acx_cv_type_int32_t=long ;; | |
13868 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
13869 | echo "$as_me: error: no 32-bit type" >&2;} | |
13870 | { (exit please report a bug); exit please report a bug; }; } | |
13871 | esac | |
b4e70030 JB |
13872 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
13873 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
13874 | fi |
13875 | ||
13876 | # These tests are here to make the output prettier | |
13877 | ||
13878 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
13879 | case "$ac_cv_sizeof_long" in | |
13880 | 8) acx_cv_type_int64_t=long ;; | |
13881 | esac | |
b4e70030 JB |
13882 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
13883 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
13884 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
13885 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
13886 | fi |
13887 | ||
13888 | # Now we can use the above types | |
13889 | ||
13890 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
13891 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
13892 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13893 | case $ac_cv_sizeof_void_p in |
13894 | 2) acx_cv_type_intptr_t=int16_t ;; | |
13895 | 4) acx_cv_type_intptr_t=int32_t ;; | |
13896 | 8) acx_cv_type_intptr_t=int64_t ;; | |
13897 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
13898 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
13899 | { (exit please report a bug); exit please report a bug; }; } | |
13900 | esac | |
b4e70030 JB |
13901 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
13902 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
13903 | fi |
13904 | ||
13905 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 13906 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
13907 | |
13908 | ||
13909 | ||
13910 | ||
13911 | # ------------------------- # | |
13912 | # Checks for declarations. # | |
13913 | # ------------------------- # | |
13914 | ||
b4e70030 JB |
13915 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
13916 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
13917 | if test "${ac_cv_have_decl_free+set}" = set; then |
13918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13919 | else | |
13920 | cat >conftest.$ac_ext <<_ACEOF | |
13921 | /* confdefs.h. */ | |
13922 | _ACEOF | |
13923 | cat confdefs.h >>conftest.$ac_ext | |
13924 | cat >>conftest.$ac_ext <<_ACEOF | |
13925 | /* end confdefs.h. */ | |
13926 | $ac_includes_default | |
13927 | int | |
13928 | main () | |
13929 | { | |
13930 | #ifndef free | |
13931 | char *p = (char *) free; | |
4e8d927d DJ |
13932 | #endif |
13933 | ||
13934 | ; | |
13935 | return 0; | |
13936 | } | |
13937 | _ACEOF | |
13938 | rm -f conftest.$ac_objext | |
13939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13940 | (eval $ac_compile) 2>conftest.er1 | |
13941 | ac_status=$? | |
13942 | grep -v '^ *+' conftest.er1 >conftest.err | |
13943 | rm -f conftest.er1 | |
13944 | cat conftest.err >&5 | |
13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13946 | (exit $ac_status); } && | |
b4e70030 JB |
13947 | { ac_try='test -z "$ac_c_werror_flag" |
13948 | || test ! -s conftest.err' | |
4e8d927d DJ |
13949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13950 | (eval $ac_try) 2>&5 | |
13951 | ac_status=$? | |
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13953 | (exit $ac_status); }; } && | |
13954 | { ac_try='test -s conftest.$ac_objext' | |
13955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13956 | (eval $ac_try) 2>&5 | |
13957 | ac_status=$? | |
13958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13959 | (exit $ac_status); }; }; then | |
13960 | ac_cv_have_decl_free=yes | |
13961 | else | |
13962 | echo "$as_me: failed program was:" >&5 | |
13963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13964 | ||
b4e70030 | 13965 | ac_cv_have_decl_free=no |
4e8d927d | 13966 | fi |
4e8d927d DJ |
13967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13968 | fi | |
b4e70030 JB |
13969 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
13970 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
13971 | if test $ac_cv_have_decl_free = yes; then |
13972 | ||
13973 | cat >>confdefs.h <<_ACEOF | |
13974 | #define HAVE_DECL_FREE 1 | |
13975 | _ACEOF | |
13976 | ||
13977 | ||
13978 | else | |
13979 | cat >>confdefs.h <<_ACEOF | |
13980 | #define HAVE_DECL_FREE 0 | |
13981 | _ACEOF | |
13982 | ||
13983 | ||
13984 | fi | |
b4e70030 JB |
13985 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
13986 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
13987 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
13988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13989 | else | |
13990 | cat >conftest.$ac_ext <<_ACEOF | |
13991 | /* confdefs.h. */ | |
13992 | _ACEOF | |
13993 | cat confdefs.h >>conftest.$ac_ext | |
13994 | cat >>conftest.$ac_ext <<_ACEOF | |
13995 | /* end confdefs.h. */ | |
13996 | $ac_includes_default | |
13997 | int | |
13998 | main () | |
13999 | { | |
14000 | #ifndef malloc | |
14001 | char *p = (char *) malloc; | |
4e8d927d DJ |
14002 | #endif |
14003 | ||
14004 | ; | |
14005 | return 0; | |
14006 | } | |
14007 | _ACEOF | |
14008 | rm -f conftest.$ac_objext | |
14009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14010 | (eval $ac_compile) 2>conftest.er1 | |
14011 | ac_status=$? | |
14012 | grep -v '^ *+' conftest.er1 >conftest.err | |
14013 | rm -f conftest.er1 | |
14014 | cat conftest.err >&5 | |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14016 | (exit $ac_status); } && | |
b4e70030 JB |
14017 | { ac_try='test -z "$ac_c_werror_flag" |
14018 | || test ! -s conftest.err' | |
4e8d927d DJ |
14019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14020 | (eval $ac_try) 2>&5 | |
14021 | ac_status=$? | |
14022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14023 | (exit $ac_status); }; } && | |
14024 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
14030 | ac_cv_have_decl_malloc=yes | |
14031 | else | |
14032 | echo "$as_me: failed program was:" >&5 | |
14033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14034 | ||
b4e70030 | 14035 | ac_cv_have_decl_malloc=no |
4e8d927d | 14036 | fi |
4e8d927d DJ |
14037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14038 | fi | |
b4e70030 JB |
14039 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
14040 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
14041 | if test $ac_cv_have_decl_malloc = yes; then |
14042 | ||
14043 | cat >>confdefs.h <<_ACEOF | |
14044 | #define HAVE_DECL_MALLOC 1 | |
14045 | _ACEOF | |
14046 | ||
14047 | ||
14048 | else | |
14049 | cat >>confdefs.h <<_ACEOF | |
14050 | #define HAVE_DECL_MALLOC 0 | |
14051 | _ACEOF | |
14052 | ||
14053 | ||
14054 | fi | |
b4e70030 JB |
14055 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
14056 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14057 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
14058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14059 | else | |
14060 | cat >conftest.$ac_ext <<_ACEOF | |
14061 | /* confdefs.h. */ | |
14062 | _ACEOF | |
14063 | cat confdefs.h >>conftest.$ac_ext | |
14064 | cat >>conftest.$ac_ext <<_ACEOF | |
14065 | /* end confdefs.h. */ | |
14066 | $ac_includes_default | |
14067 | int | |
14068 | main () | |
14069 | { | |
14070 | #ifndef realloc | |
14071 | char *p = (char *) realloc; | |
4e8d927d DJ |
14072 | #endif |
14073 | ||
14074 | ; | |
14075 | return 0; | |
14076 | } | |
14077 | _ACEOF | |
14078 | rm -f conftest.$ac_objext | |
14079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14080 | (eval $ac_compile) 2>conftest.er1 | |
14081 | ac_status=$? | |
14082 | grep -v '^ *+' conftest.er1 >conftest.err | |
14083 | rm -f conftest.er1 | |
14084 | cat conftest.err >&5 | |
14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14086 | (exit $ac_status); } && | |
b4e70030 JB |
14087 | { ac_try='test -z "$ac_c_werror_flag" |
14088 | || test ! -s conftest.err' | |
4e8d927d DJ |
14089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14090 | (eval $ac_try) 2>&5 | |
14091 | ac_status=$? | |
14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14093 | (exit $ac_status); }; } && | |
14094 | { ac_try='test -s conftest.$ac_objext' | |
14095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14096 | (eval $ac_try) 2>&5 | |
14097 | ac_status=$? | |
14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14099 | (exit $ac_status); }; }; then | |
14100 | ac_cv_have_decl_realloc=yes | |
14101 | else | |
14102 | echo "$as_me: failed program was:" >&5 | |
14103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14104 | ||
b4e70030 | 14105 | ac_cv_have_decl_realloc=no |
4e8d927d | 14106 | fi |
4e8d927d DJ |
14107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14108 | fi | |
b4e70030 JB |
14109 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14110 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14111 | if test $ac_cv_have_decl_realloc = yes; then |
14112 | ||
14113 | cat >>confdefs.h <<_ACEOF | |
14114 | #define HAVE_DECL_REALLOC 1 | |
14115 | _ACEOF | |
14116 | ||
14117 | ||
14118 | else | |
14119 | cat >>confdefs.h <<_ACEOF | |
14120 | #define HAVE_DECL_REALLOC 0 | |
14121 | _ACEOF | |
14122 | ||
14123 | ||
14124 | fi | |
14125 | ||
14126 | ||
b4e70030 JB |
14127 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14128 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14129 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14131 | else | |
14132 | cat >conftest.$ac_ext <<_ACEOF | |
14133 | /* confdefs.h. */ | |
14134 | _ACEOF | |
14135 | cat confdefs.h >>conftest.$ac_ext | |
14136 | cat >>conftest.$ac_ext <<_ACEOF | |
14137 | /* end confdefs.h. */ | |
14138 | $ac_includes_default | |
14139 | int | |
14140 | main () | |
14141 | { | |
14142 | #ifndef strerror | |
14143 | char *p = (char *) strerror; | |
4e8d927d DJ |
14144 | #endif |
14145 | ||
14146 | ; | |
14147 | return 0; | |
14148 | } | |
14149 | _ACEOF | |
14150 | rm -f conftest.$ac_objext | |
14151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14152 | (eval $ac_compile) 2>conftest.er1 | |
14153 | ac_status=$? | |
14154 | grep -v '^ *+' conftest.er1 >conftest.err | |
14155 | rm -f conftest.er1 | |
14156 | cat conftest.err >&5 | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); } && | |
b4e70030 JB |
14159 | { ac_try='test -z "$ac_c_werror_flag" |
14160 | || test ! -s conftest.err' | |
4e8d927d DJ |
14161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14162 | (eval $ac_try) 2>&5 | |
14163 | ac_status=$? | |
14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14165 | (exit $ac_status); }; } && | |
14166 | { ac_try='test -s conftest.$ac_objext' | |
14167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14168 | (eval $ac_try) 2>&5 | |
14169 | ac_status=$? | |
14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14171 | (exit $ac_status); }; }; then | |
14172 | ac_cv_have_decl_strerror=yes | |
14173 | else | |
14174 | echo "$as_me: failed program was:" >&5 | |
14175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14176 | ||
b4e70030 | 14177 | ac_cv_have_decl_strerror=no |
4e8d927d | 14178 | fi |
4e8d927d DJ |
14179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14180 | fi | |
b4e70030 JB |
14181 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14182 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14183 | if test $ac_cv_have_decl_strerror = yes; then |
14184 | ||
14185 | cat >>confdefs.h <<_ACEOF | |
14186 | #define HAVE_DECL_STRERROR 1 | |
14187 | _ACEOF | |
14188 | ||
14189 | ||
14190 | else | |
14191 | cat >>confdefs.h <<_ACEOF | |
14192 | #define HAVE_DECL_STRERROR 0 | |
14193 | _ACEOF | |
14194 | ||
14195 | ||
14196 | fi | |
b4e70030 JB |
14197 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14198 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14199 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14201 | else | |
14202 | cat >conftest.$ac_ext <<_ACEOF | |
14203 | /* confdefs.h. */ | |
14204 | _ACEOF | |
14205 | cat confdefs.h >>conftest.$ac_ext | |
14206 | cat >>conftest.$ac_ext <<_ACEOF | |
14207 | /* end confdefs.h. */ | |
14208 | $ac_includes_default | |
14209 | int | |
14210 | main () | |
14211 | { | |
14212 | #ifndef strstr | |
14213 | char *p = (char *) strstr; | |
4e8d927d DJ |
14214 | #endif |
14215 | ||
14216 | ; | |
14217 | return 0; | |
14218 | } | |
14219 | _ACEOF | |
14220 | rm -f conftest.$ac_objext | |
14221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14222 | (eval $ac_compile) 2>conftest.er1 | |
14223 | ac_status=$? | |
14224 | grep -v '^ *+' conftest.er1 >conftest.err | |
14225 | rm -f conftest.er1 | |
14226 | cat conftest.err >&5 | |
14227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14228 | (exit $ac_status); } && | |
b4e70030 JB |
14229 | { ac_try='test -z "$ac_c_werror_flag" |
14230 | || test ! -s conftest.err' | |
4e8d927d DJ |
14231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14232 | (eval $ac_try) 2>&5 | |
14233 | ac_status=$? | |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14235 | (exit $ac_status); }; } && | |
14236 | { ac_try='test -s conftest.$ac_objext' | |
14237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14238 | (eval $ac_try) 2>&5 | |
14239 | ac_status=$? | |
14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14241 | (exit $ac_status); }; }; then | |
14242 | ac_cv_have_decl_strstr=yes | |
14243 | else | |
14244 | echo "$as_me: failed program was:" >&5 | |
14245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14246 | ||
b4e70030 | 14247 | ac_cv_have_decl_strstr=no |
4e8d927d | 14248 | fi |
4e8d927d DJ |
14249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14250 | fi | |
b4e70030 JB |
14251 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14252 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14253 | if test $ac_cv_have_decl_strstr = yes; then |
14254 | ||
14255 | cat >>confdefs.h <<_ACEOF | |
14256 | #define HAVE_DECL_STRSTR 1 | |
14257 | _ACEOF | |
14258 | ||
14259 | ||
14260 | else | |
14261 | cat >>confdefs.h <<_ACEOF | |
14262 | #define HAVE_DECL_STRSTR 0 | |
14263 | _ACEOF | |
14264 | ||
14265 | ||
14266 | fi | |
14267 | ||
14268 | ||
b4e70030 JB |
14269 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14270 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14271 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14273 | else | |
14274 | cat >conftest.$ac_ext <<_ACEOF | |
14275 | /* confdefs.h. */ | |
14276 | _ACEOF | |
14277 | cat confdefs.h >>conftest.$ac_ext | |
14278 | cat >>conftest.$ac_ext <<_ACEOF | |
14279 | /* end confdefs.h. */ | |
14280 | $ac_includes_default | |
14281 | int | |
14282 | main () | |
14283 | { | |
14284 | #ifndef getopt | |
14285 | char *p = (char *) getopt; | |
4e8d927d DJ |
14286 | #endif |
14287 | ||
14288 | ; | |
14289 | return 0; | |
14290 | } | |
14291 | _ACEOF | |
14292 | rm -f conftest.$ac_objext | |
14293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14294 | (eval $ac_compile) 2>conftest.er1 | |
14295 | ac_status=$? | |
14296 | grep -v '^ *+' conftest.er1 >conftest.err | |
14297 | rm -f conftest.er1 | |
14298 | cat conftest.err >&5 | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); } && | |
b4e70030 JB |
14301 | { ac_try='test -z "$ac_c_werror_flag" |
14302 | || test ! -s conftest.err' | |
4e8d927d DJ |
14303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14304 | (eval $ac_try) 2>&5 | |
14305 | ac_status=$? | |
14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14307 | (exit $ac_status); }; } && | |
14308 | { ac_try='test -s conftest.$ac_objext' | |
14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; }; then | |
14314 | ac_cv_have_decl_getopt=yes | |
14315 | else | |
14316 | echo "$as_me: failed program was:" >&5 | |
14317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14318 | ||
b4e70030 | 14319 | ac_cv_have_decl_getopt=no |
4e8d927d | 14320 | fi |
4e8d927d DJ |
14321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14322 | fi | |
b4e70030 JB |
14323 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
14324 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
14325 | if test $ac_cv_have_decl_getopt = yes; then |
14326 | ||
14327 | cat >>confdefs.h <<_ACEOF | |
14328 | #define HAVE_DECL_GETOPT 1 | |
14329 | _ACEOF | |
14330 | ||
14331 | ||
14332 | else | |
14333 | cat >>confdefs.h <<_ACEOF | |
14334 | #define HAVE_DECL_GETOPT 0 | |
14335 | _ACEOF | |
14336 | ||
14337 | ||
14338 | fi | |
b4e70030 JB |
14339 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
14340 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14341 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
14342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14343 | else | |
14344 | cat >conftest.$ac_ext <<_ACEOF | |
14345 | /* confdefs.h. */ | |
14346 | _ACEOF | |
14347 | cat confdefs.h >>conftest.$ac_ext | |
14348 | cat >>conftest.$ac_ext <<_ACEOF | |
14349 | /* end confdefs.h. */ | |
14350 | $ac_includes_default | |
14351 | int | |
14352 | main () | |
14353 | { | |
14354 | #ifndef snprintf | |
14355 | char *p = (char *) snprintf; | |
4e8d927d DJ |
14356 | #endif |
14357 | ||
14358 | ; | |
14359 | return 0; | |
14360 | } | |
14361 | _ACEOF | |
14362 | rm -f conftest.$ac_objext | |
14363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14364 | (eval $ac_compile) 2>conftest.er1 | |
14365 | ac_status=$? | |
14366 | grep -v '^ *+' conftest.er1 >conftest.err | |
14367 | rm -f conftest.er1 | |
14368 | cat conftest.err >&5 | |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); } && | |
b4e70030 JB |
14371 | { ac_try='test -z "$ac_c_werror_flag" |
14372 | || test ! -s conftest.err' | |
4e8d927d DJ |
14373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14374 | (eval $ac_try) 2>&5 | |
14375 | ac_status=$? | |
14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14377 | (exit $ac_status); }; } && | |
14378 | { ac_try='test -s conftest.$ac_objext' | |
14379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14380 | (eval $ac_try) 2>&5 | |
14381 | ac_status=$? | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); }; }; then | |
14384 | ac_cv_have_decl_snprintf=yes | |
14385 | else | |
14386 | echo "$as_me: failed program was:" >&5 | |
14387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14388 | ||
b4e70030 | 14389 | ac_cv_have_decl_snprintf=no |
4e8d927d | 14390 | fi |
4e8d927d DJ |
14391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14392 | fi | |
b4e70030 JB |
14393 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
14394 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
14395 | if test $ac_cv_have_decl_snprintf = yes; then |
14396 | ||
14397 | cat >>confdefs.h <<_ACEOF | |
14398 | #define HAVE_DECL_SNPRINTF 1 | |
14399 | _ACEOF | |
14400 | ||
14401 | ||
14402 | else | |
14403 | cat >>confdefs.h <<_ACEOF | |
14404 | #define HAVE_DECL_SNPRINTF 0 | |
14405 | _ACEOF | |
14406 | ||
14407 | ||
14408 | fi | |
b4e70030 JB |
14409 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14410 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14411 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14413 | else | |
14414 | cat >conftest.$ac_ext <<_ACEOF | |
14415 | /* confdefs.h. */ | |
14416 | _ACEOF | |
14417 | cat confdefs.h >>conftest.$ac_ext | |
14418 | cat >>conftest.$ac_ext <<_ACEOF | |
14419 | /* end confdefs.h. */ | |
14420 | $ac_includes_default | |
14421 | int | |
14422 | main () | |
14423 | { | |
14424 | #ifndef vsnprintf | |
14425 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
14426 | #endif |
14427 | ||
14428 | ; | |
14429 | return 0; | |
14430 | } | |
14431 | _ACEOF | |
14432 | rm -f conftest.$ac_objext | |
14433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14434 | (eval $ac_compile) 2>conftest.er1 | |
14435 | ac_status=$? | |
14436 | grep -v '^ *+' conftest.er1 >conftest.err | |
14437 | rm -f conftest.er1 | |
14438 | cat conftest.err >&5 | |
14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14440 | (exit $ac_status); } && | |
b4e70030 JB |
14441 | { ac_try='test -z "$ac_c_werror_flag" |
14442 | || test ! -s conftest.err' | |
4e8d927d DJ |
14443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14444 | (eval $ac_try) 2>&5 | |
14445 | ac_status=$? | |
14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14447 | (exit $ac_status); }; } && | |
14448 | { ac_try='test -s conftest.$ac_objext' | |
14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14450 | (eval $ac_try) 2>&5 | |
14451 | ac_status=$? | |
14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 | (exit $ac_status); }; }; then | |
14454 | ac_cv_have_decl_vsnprintf=yes | |
14455 | else | |
14456 | echo "$as_me: failed program was:" >&5 | |
14457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14458 | ||
b4e70030 | 14459 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 14460 | fi |
4e8d927d DJ |
14461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14462 | fi | |
b4e70030 JB |
14463 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
14464 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
14465 | if test $ac_cv_have_decl_vsnprintf = yes; then |
14466 | ||
14467 | cat >>confdefs.h <<_ACEOF | |
14468 | #define HAVE_DECL_VSNPRINTF 1 | |
14469 | _ACEOF | |
14470 | ||
14471 | ||
14472 | else | |
14473 | cat >>confdefs.h <<_ACEOF | |
14474 | #define HAVE_DECL_VSNPRINTF 0 | |
14475 | _ACEOF | |
14476 | ||
14477 | ||
14478 | fi | |
14479 | ||
14480 | ||
14481 | ||
14482 | # ----------------------- # | |
14483 | # Checks for structures. # | |
14484 | # ----------------------- # | |
14485 | ||
b4e70030 JB |
14486 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
14487 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
14488 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
14489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14490 | else | |
14491 | cat >conftest.$ac_ext <<_ACEOF | |
14492 | /* confdefs.h. */ | |
14493 | _ACEOF | |
14494 | cat confdefs.h >>conftest.$ac_ext | |
14495 | cat >>conftest.$ac_ext <<_ACEOF | |
14496 | /* end confdefs.h. */ | |
14497 | $ac_includes_default | |
14498 | int | |
14499 | main () | |
14500 | { | |
14501 | static struct stat ac_aggr; | |
14502 | if (ac_aggr.st_blocks) | |
14503 | return 0; | |
14504 | ; | |
14505 | return 0; | |
14506 | } | |
14507 | _ACEOF | |
14508 | rm -f conftest.$ac_objext | |
14509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14510 | (eval $ac_compile) 2>conftest.er1 | |
14511 | ac_status=$? | |
14512 | grep -v '^ *+' conftest.er1 >conftest.err | |
14513 | rm -f conftest.er1 | |
14514 | cat conftest.err >&5 | |
14515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14516 | (exit $ac_status); } && | |
b4e70030 JB |
14517 | { ac_try='test -z "$ac_c_werror_flag" |
14518 | || test ! -s conftest.err' | |
4e8d927d DJ |
14519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14520 | (eval $ac_try) 2>&5 | |
14521 | ac_status=$? | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); }; } && | |
14524 | { ac_try='test -s conftest.$ac_objext' | |
14525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14526 | (eval $ac_try) 2>&5 | |
14527 | ac_status=$? | |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14529 | (exit $ac_status); }; }; then | |
14530 | ac_cv_member_struct_stat_st_blocks=yes | |
14531 | else | |
14532 | echo "$as_me: failed program was:" >&5 | |
14533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14534 | ||
b4e70030 | 14535 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14536 | /* confdefs.h. */ |
14537 | _ACEOF | |
14538 | cat confdefs.h >>conftest.$ac_ext | |
14539 | cat >>conftest.$ac_ext <<_ACEOF | |
14540 | /* end confdefs.h. */ | |
14541 | $ac_includes_default | |
14542 | int | |
14543 | main () | |
14544 | { | |
14545 | static struct stat ac_aggr; | |
14546 | if (sizeof ac_aggr.st_blocks) | |
14547 | return 0; | |
14548 | ; | |
14549 | return 0; | |
14550 | } | |
14551 | _ACEOF | |
14552 | rm -f conftest.$ac_objext | |
14553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14554 | (eval $ac_compile) 2>conftest.er1 | |
14555 | ac_status=$? | |
14556 | grep -v '^ *+' conftest.er1 >conftest.err | |
14557 | rm -f conftest.er1 | |
14558 | cat conftest.err >&5 | |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14560 | (exit $ac_status); } && | |
b4e70030 JB |
14561 | { ac_try='test -z "$ac_c_werror_flag" |
14562 | || test ! -s conftest.err' | |
4e8d927d DJ |
14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); }; } && | |
14568 | { ac_try='test -s conftest.$ac_objext' | |
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14570 | (eval $ac_try) 2>&5 | |
14571 | ac_status=$? | |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14573 | (exit $ac_status); }; }; then | |
14574 | ac_cv_member_struct_stat_st_blocks=yes | |
14575 | else | |
14576 | echo "$as_me: failed program was:" >&5 | |
14577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14578 | ||
b4e70030 | 14579 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 14580 | fi |
4e8d927d DJ |
14581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14582 | fi | |
4e8d927d DJ |
14583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14584 | fi | |
b4e70030 JB |
14585 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
14586 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
14587 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
14588 | ||
14589 | cat >>confdefs.h <<_ACEOF | |
14590 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
14591 | _ACEOF | |
14592 | ||
14593 | ||
14594 | fi | |
14595 | ||
b4e70030 JB |
14596 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
14597 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
14598 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
14599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14600 | else | |
14601 | cat >conftest.$ac_ext <<_ACEOF | |
14602 | /* confdefs.h. */ | |
14603 | _ACEOF | |
14604 | cat confdefs.h >>conftest.$ac_ext | |
14605 | cat >>conftest.$ac_ext <<_ACEOF | |
14606 | /* end confdefs.h. */ | |
14607 | $ac_includes_default | |
14608 | int | |
14609 | main () | |
14610 | { | |
14611 | static struct stat ac_aggr; | |
14612 | if (ac_aggr.st_blksize) | |
14613 | return 0; | |
14614 | ; | |
14615 | return 0; | |
14616 | } | |
14617 | _ACEOF | |
14618 | rm -f conftest.$ac_objext | |
14619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14620 | (eval $ac_compile) 2>conftest.er1 | |
14621 | ac_status=$? | |
14622 | grep -v '^ *+' conftest.er1 >conftest.err | |
14623 | rm -f conftest.er1 | |
14624 | cat conftest.err >&5 | |
14625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14626 | (exit $ac_status); } && | |
b4e70030 JB |
14627 | { ac_try='test -z "$ac_c_werror_flag" |
14628 | || test ! -s conftest.err' | |
4e8d927d DJ |
14629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14630 | (eval $ac_try) 2>&5 | |
14631 | ac_status=$? | |
14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14633 | (exit $ac_status); }; } && | |
14634 | { ac_try='test -s conftest.$ac_objext' | |
14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14636 | (eval $ac_try) 2>&5 | |
14637 | ac_status=$? | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); }; }; then | |
14640 | ac_cv_member_struct_stat_st_blksize=yes | |
14641 | else | |
14642 | echo "$as_me: failed program was:" >&5 | |
14643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14644 | ||
b4e70030 | 14645 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14646 | /* confdefs.h. */ |
14647 | _ACEOF | |
14648 | cat confdefs.h >>conftest.$ac_ext | |
14649 | cat >>conftest.$ac_ext <<_ACEOF | |
14650 | /* end confdefs.h. */ | |
14651 | $ac_includes_default | |
14652 | int | |
14653 | main () | |
14654 | { | |
14655 | static struct stat ac_aggr; | |
14656 | if (sizeof ac_aggr.st_blksize) | |
14657 | return 0; | |
14658 | ; | |
14659 | return 0; | |
14660 | } | |
14661 | _ACEOF | |
14662 | rm -f conftest.$ac_objext | |
14663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14664 | (eval $ac_compile) 2>conftest.er1 | |
14665 | ac_status=$? | |
14666 | grep -v '^ *+' conftest.er1 >conftest.err | |
14667 | rm -f conftest.er1 | |
14668 | cat conftest.err >&5 | |
14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14670 | (exit $ac_status); } && | |
b4e70030 JB |
14671 | { ac_try='test -z "$ac_c_werror_flag" |
14672 | || test ! -s conftest.err' | |
4e8d927d DJ |
14673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14674 | (eval $ac_try) 2>&5 | |
14675 | ac_status=$? | |
14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14677 | (exit $ac_status); }; } && | |
14678 | { ac_try='test -s conftest.$ac_objext' | |
14679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14680 | (eval $ac_try) 2>&5 | |
14681 | ac_status=$? | |
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14683 | (exit $ac_status); }; }; then | |
14684 | ac_cv_member_struct_stat_st_blksize=yes | |
14685 | else | |
14686 | echo "$as_me: failed program was:" >&5 | |
14687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14688 | ||
b4e70030 | 14689 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 14690 | fi |
4e8d927d DJ |
14691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14692 | fi | |
4e8d927d DJ |
14693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14694 | fi | |
b4e70030 JB |
14695 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
14696 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
14697 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
14698 | ||
14699 | cat >>confdefs.h <<_ACEOF | |
14700 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
14701 | _ACEOF | |
14702 | ||
14703 | ||
14704 | fi | |
14705 | ||
14706 | ||
14707 | # ------------------ # | |
14708 | # Checks for types. # | |
14709 | # ------------------ # | |
14710 | ||
b4e70030 JB |
14711 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
14712 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
14713 | if test "${ac_cv_type_signal+set}" = set; then |
14714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14715 | else | |
14716 | cat >conftest.$ac_ext <<_ACEOF | |
14717 | /* confdefs.h. */ | |
14718 | _ACEOF | |
14719 | cat confdefs.h >>conftest.$ac_ext | |
14720 | cat >>conftest.$ac_ext <<_ACEOF | |
14721 | /* end confdefs.h. */ | |
14722 | #include <sys/types.h> | |
14723 | #include <signal.h> | |
b4e70030 JB |
14724 | #ifdef signal |
14725 | # undef signal | |
14726 | #endif | |
14727 | #ifdef __cplusplus | |
14728 | extern "C" void (*signal (int, void (*)(int)))(int); | |
14729 | #else | |
14730 | void (*signal ()) (); | |
14731 | #endif | |
4e8d927d DJ |
14732 | |
14733 | int | |
14734 | main () | |
14735 | { | |
b4e70030 | 14736 | int i; |
4e8d927d DJ |
14737 | ; |
14738 | return 0; | |
14739 | } | |
14740 | _ACEOF | |
14741 | rm -f conftest.$ac_objext | |
14742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14743 | (eval $ac_compile) 2>conftest.er1 | |
14744 | ac_status=$? | |
14745 | grep -v '^ *+' conftest.er1 >conftest.err | |
14746 | rm -f conftest.er1 | |
14747 | cat conftest.err >&5 | |
14748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14749 | (exit $ac_status); } && | |
b4e70030 JB |
14750 | { ac_try='test -z "$ac_c_werror_flag" |
14751 | || test ! -s conftest.err' | |
4e8d927d DJ |
14752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14753 | (eval $ac_try) 2>&5 | |
14754 | ac_status=$? | |
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14756 | (exit $ac_status); }; } && | |
14757 | { ac_try='test -s conftest.$ac_objext' | |
14758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14759 | (eval $ac_try) 2>&5 | |
14760 | ac_status=$? | |
14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14762 | (exit $ac_status); }; }; then | |
b4e70030 | 14763 | ac_cv_type_signal=void |
4e8d927d DJ |
14764 | else |
14765 | echo "$as_me: failed program was:" >&5 | |
14766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14767 | ||
b4e70030 | 14768 | ac_cv_type_signal=int |
4e8d927d | 14769 | fi |
4e8d927d DJ |
14770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14771 | fi | |
b4e70030 JB |
14772 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
14773 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
14774 | |
14775 | cat >>confdefs.h <<_ACEOF | |
14776 | #define RETSIGTYPE $ac_cv_type_signal | |
14777 | _ACEOF | |
14778 | ||
14779 | ||
b4e70030 JB |
14780 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
14781 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14782 | if test "${ac_cv_type_socklen_t+set}" = set; then |
14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14784 | else | |
14785 | cat >conftest.$ac_ext <<_ACEOF | |
14786 | /* confdefs.h. */ | |
14787 | _ACEOF | |
14788 | cat confdefs.h >>conftest.$ac_ext | |
14789 | cat >>conftest.$ac_ext <<_ACEOF | |
14790 | /* end confdefs.h. */ | |
14791 | #include <sys/types.h> | |
14792 | #include <sys/socket.h> | |
14793 | ||
14794 | ||
4e8d927d DJ |
14795 | int |
14796 | main () | |
14797 | { | |
b4e70030 | 14798 | if ((socklen_t *) 0) |
4e8d927d | 14799 | return 0; |
b4e70030 | 14800 | if (sizeof (socklen_t)) |
4e8d927d DJ |
14801 | return 0; |
14802 | ; | |
14803 | return 0; | |
14804 | } | |
14805 | _ACEOF | |
14806 | rm -f conftest.$ac_objext | |
14807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14808 | (eval $ac_compile) 2>conftest.er1 | |
14809 | ac_status=$? | |
14810 | grep -v '^ *+' conftest.er1 >conftest.err | |
14811 | rm -f conftest.er1 | |
14812 | cat conftest.err >&5 | |
14813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14814 | (exit $ac_status); } && | |
b4e70030 JB |
14815 | { ac_try='test -z "$ac_c_werror_flag" |
14816 | || test ! -s conftest.err' | |
4e8d927d DJ |
14817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14818 | (eval $ac_try) 2>&5 | |
14819 | ac_status=$? | |
14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14821 | (exit $ac_status); }; } && | |
14822 | { ac_try='test -s conftest.$ac_objext' | |
14823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14824 | (eval $ac_try) 2>&5 | |
14825 | ac_status=$? | |
14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14827 | (exit $ac_status); }; }; then | |
14828 | ac_cv_type_socklen_t=yes | |
14829 | else | |
14830 | echo "$as_me: failed program was:" >&5 | |
14831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14832 | ||
b4e70030 | 14833 | ac_cv_type_socklen_t=no |
4e8d927d | 14834 | fi |
4e8d927d DJ |
14835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14836 | fi | |
b4e70030 JB |
14837 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
14838 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
14839 | if test $ac_cv_type_socklen_t = yes; then |
14840 | ||
14841 | cat >>confdefs.h <<_ACEOF | |
14842 | #define HAVE_SOCKLEN_T 1 | |
14843 | _ACEOF | |
14844 | ||
14845 | ||
14846 | fi | |
14847 | ||
b4e70030 JB |
14848 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
14849 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14850 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
14851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14852 | else | |
14853 | cat >conftest.$ac_ext <<_ACEOF | |
14854 | /* confdefs.h. */ | |
14855 | _ACEOF | |
14856 | cat confdefs.h >>conftest.$ac_ext | |
14857 | cat >>conftest.$ac_ext <<_ACEOF | |
14858 | /* end confdefs.h. */ | |
14859 | #include <stdint.h> | |
14860 | ||
4e8d927d DJ |
14861 | int |
14862 | main () | |
14863 | { | |
b4e70030 | 14864 | if ((uintptr_t *) 0) |
4e8d927d | 14865 | return 0; |
b4e70030 | 14866 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
14867 | return 0; |
14868 | ; | |
14869 | return 0; | |
14870 | } | |
14871 | _ACEOF | |
14872 | rm -f conftest.$ac_objext | |
14873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14874 | (eval $ac_compile) 2>conftest.er1 | |
14875 | ac_status=$? | |
14876 | grep -v '^ *+' conftest.er1 >conftest.err | |
14877 | rm -f conftest.er1 | |
14878 | cat conftest.err >&5 | |
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14880 | (exit $ac_status); } && | |
b4e70030 JB |
14881 | { ac_try='test -z "$ac_c_werror_flag" |
14882 | || test ! -s conftest.err' | |
4e8d927d DJ |
14883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14884 | (eval $ac_try) 2>&5 | |
14885 | ac_status=$? | |
14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14887 | (exit $ac_status); }; } && | |
14888 | { ac_try='test -s conftest.$ac_objext' | |
14889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14890 | (eval $ac_try) 2>&5 | |
14891 | ac_status=$? | |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14893 | (exit $ac_status); }; }; then | |
14894 | ac_cv_type_uintptr_t=yes | |
14895 | else | |
14896 | echo "$as_me: failed program was:" >&5 | |
14897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14898 | ||
b4e70030 | 14899 | ac_cv_type_uintptr_t=no |
4e8d927d | 14900 | fi |
4e8d927d DJ |
14901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14902 | fi | |
b4e70030 JB |
14903 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
14904 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
14905 | if test $ac_cv_type_uintptr_t = yes; then |
14906 | ||
14907 | cat >>confdefs.h <<_ACEOF | |
14908 | #define HAVE_UINTPTR_T 1 | |
14909 | _ACEOF | |
14910 | ||
14911 | ||
14912 | fi | |
14913 | ||
14914 | ||
14915 | # ------------------------------------- # | |
14916 | # Checks for compiler characteristics. # | |
14917 | # ------------------------------------- # | |
14918 | ||
b4e70030 JB |
14919 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
14920 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
14921 | if test "${ac_cv_c_const+set}" = set; then |
14922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14923 | else | |
14924 | cat >conftest.$ac_ext <<_ACEOF | |
14925 | /* confdefs.h. */ | |
14926 | _ACEOF | |
14927 | cat confdefs.h >>conftest.$ac_ext | |
14928 | cat >>conftest.$ac_ext <<_ACEOF | |
14929 | /* end confdefs.h. */ | |
14930 | ||
14931 | int | |
14932 | main () | |
14933 | { | |
14934 | /* FIXME: Include the comments suggested by Paul. */ | |
14935 | #ifndef __cplusplus | |
14936 | /* Ultrix mips cc rejects this. */ | |
14937 | typedef int charset[2]; | |
14938 | const charset x; | |
14939 | /* SunOS 4.1.1 cc rejects this. */ | |
14940 | char const *const *ccp; | |
14941 | char **p; | |
14942 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14943 | struct point {int x, y;}; | |
14944 | static struct point const zero = {0,0}; | |
14945 | /* AIX XL C 1.02.0.0 rejects this. | |
14946 | It does not let you subtract one const X* pointer from another in | |
14947 | an arm of an if-expression whose if-part is not a constant | |
14948 | expression */ | |
14949 | const char *g = "string"; | |
14950 | ccp = &g + (g ? g-g : 0); | |
14951 | /* HPUX 7.0 cc rejects these. */ | |
14952 | ++ccp; | |
14953 | p = (char**) ccp; | |
14954 | ccp = (char const *const *) p; | |
14955 | { /* SCO 3.2v4 cc rejects this. */ | |
14956 | char *t; | |
14957 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14958 | ||
14959 | *t++ = 0; | |
4e8d927d DJ |
14960 | } |
14961 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14962 | int x[] = {25, 17}; | |
14963 | const int *foo = &x[0]; | |
14964 | ++foo; | |
14965 | } | |
14966 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14967 | typedef const int *iptr; | |
14968 | iptr p = 0; | |
14969 | ++p; | |
14970 | } | |
14971 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14972 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14973 | struct s { int j; const int *ap[3]; }; | |
14974 | struct s *b; b->j = 5; | |
14975 | } | |
14976 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14977 | const int foo = 10; | |
4e8d927d | 14978 | } |
4e8d927d DJ |
14979 | #endif |
14980 | ||
14981 | ; | |
14982 | return 0; | |
14983 | } | |
14984 | _ACEOF | |
14985 | rm -f conftest.$ac_objext | |
14986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14987 | (eval $ac_compile) 2>conftest.er1 | |
14988 | ac_status=$? | |
14989 | grep -v '^ *+' conftest.er1 >conftest.err | |
14990 | rm -f conftest.er1 | |
14991 | cat conftest.err >&5 | |
14992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14993 | (exit $ac_status); } && | |
b4e70030 JB |
14994 | { ac_try='test -z "$ac_c_werror_flag" |
14995 | || test ! -s conftest.err' | |
4e8d927d DJ |
14996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14997 | (eval $ac_try) 2>&5 | |
14998 | ac_status=$? | |
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15000 | (exit $ac_status); }; } && | |
15001 | { ac_try='test -s conftest.$ac_objext' | |
15002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15003 | (eval $ac_try) 2>&5 | |
15004 | ac_status=$? | |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); }; }; then | |
15007 | ac_cv_c_const=yes | |
15008 | else | |
15009 | echo "$as_me: failed program was:" >&5 | |
15010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15011 | ||
b4e70030 | 15012 | ac_cv_c_const=no |
4e8d927d | 15013 | fi |
4e8d927d DJ |
15014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15015 | fi | |
b4e70030 JB |
15016 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
15017 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
15018 | if test $ac_cv_c_const = no; then |
15019 | ||
15020 | cat >>confdefs.h <<\_ACEOF | |
15021 | #define const | |
15022 | _ACEOF | |
15023 | ||
15024 | fi | |
15025 | ||
b4e70030 JB |
15026 | echo "$as_me:$LINENO: checking for inline" >&5 |
15027 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
15028 | if test "${ac_cv_c_inline+set}" = set; then |
15029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15030 | else | |
15031 | ac_cv_c_inline=no | |
15032 | for ac_kw in inline __inline__ __inline; do | |
15033 | cat >conftest.$ac_ext <<_ACEOF | |
15034 | /* confdefs.h. */ | |
15035 | _ACEOF | |
15036 | cat confdefs.h >>conftest.$ac_ext | |
15037 | cat >>conftest.$ac_ext <<_ACEOF | |
15038 | /* end confdefs.h. */ | |
15039 | #ifndef __cplusplus | |
15040 | typedef int foo_t; | |
15041 | static $ac_kw foo_t static_foo () {return 0; } | |
15042 | $ac_kw foo_t foo () {return 0; } | |
15043 | #endif | |
15044 | ||
15045 | _ACEOF | |
15046 | rm -f conftest.$ac_objext | |
15047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15048 | (eval $ac_compile) 2>conftest.er1 | |
15049 | ac_status=$? | |
15050 | grep -v '^ *+' conftest.er1 >conftest.err | |
15051 | rm -f conftest.er1 | |
15052 | cat conftest.err >&5 | |
15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15054 | (exit $ac_status); } && | |
b4e70030 JB |
15055 | { ac_try='test -z "$ac_c_werror_flag" |
15056 | || test ! -s conftest.err' | |
4e8d927d DJ |
15057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15058 | (eval $ac_try) 2>&5 | |
15059 | ac_status=$? | |
15060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15061 | (exit $ac_status); }; } && | |
15062 | { ac_try='test -s conftest.$ac_objext' | |
15063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15064 | (eval $ac_try) 2>&5 | |
15065 | ac_status=$? | |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15067 | (exit $ac_status); }; }; then | |
b4e70030 | 15068 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
15069 | else |
15070 | echo "$as_me: failed program was:" >&5 | |
15071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15072 | ||
4e8d927d | 15073 | fi |
4e8d927d | 15074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
15075 | done |
15076 | ||
15077 | fi | |
b4e70030 JB |
15078 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
15079 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 15080 | |
bec39cab | 15081 | |
a3828db0 MK |
15082 | case $ac_cv_c_inline in |
15083 | inline | yes) ;; | |
15084 | *) | |
15085 | case $ac_cv_c_inline in | |
15086 | no) ac_val=;; | |
15087 | *) ac_val=$ac_cv_c_inline;; | |
15088 | esac | |
15089 | cat >>confdefs.h <<_ACEOF | |
15090 | #ifndef __cplusplus | |
15091 | #define inline $ac_val | |
15092 | #endif | |
15093 | _ACEOF | |
bec39cab AC |
15094 | ;; |
15095 | esac | |
bec39cab | 15096 | |
74c1b268 | 15097 | |
a3828db0 MK |
15098 | # ------------------------------ # |
15099 | # Checks for library functions. # | |
15100 | # ------------------------------ # | |
bec39cab | 15101 | |
a3828db0 MK |
15102 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
15103 | # for constant arguments. Useless! | |
b4e70030 JB |
15104 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
15105 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 15106 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
15107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15108 | else | |
15109 | cat >conftest.$ac_ext <<_ACEOF | |
15110 | /* confdefs.h. */ | |
15111 | _ACEOF | |
15112 | cat confdefs.h >>conftest.$ac_ext | |
15113 | cat >>conftest.$ac_ext <<_ACEOF | |
15114 | /* end confdefs.h. */ | |
a3828db0 | 15115 | #include <alloca.h> |
bec39cab AC |
15116 | int |
15117 | main () | |
15118 | { | |
a3828db0 | 15119 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
15120 | ; |
15121 | return 0; | |
15122 | } | |
15123 | _ACEOF | |
15124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15126 | (eval $ac_link) 2>conftest.er1 | |
15127 | ac_status=$? | |
15128 | grep -v '^ *+' conftest.er1 >conftest.err | |
15129 | rm -f conftest.er1 | |
15130 | cat conftest.err >&5 | |
15131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15132 | (exit $ac_status); } && | |
b4e70030 JB |
15133 | { ac_try='test -z "$ac_c_werror_flag" |
15134 | || test ! -s conftest.err' | |
bec39cab AC |
15135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15136 | (eval $ac_try) 2>&5 | |
15137 | ac_status=$? | |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15139 | (exit $ac_status); }; } && | |
15140 | { ac_try='test -s conftest$ac_exeext' | |
15141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15142 | (eval $ac_try) 2>&5 | |
15143 | ac_status=$? | |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15145 | (exit $ac_status); }; }; then | |
a3828db0 | 15146 | ac_cv_working_alloca_h=yes |
bec39cab AC |
15147 | else |
15148 | echo "$as_me: failed program was:" >&5 | |
15149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15150 | ||
b4e70030 | 15151 | ac_cv_working_alloca_h=no |
bec39cab AC |
15152 | fi |
15153 | rm -f conftest.err conftest.$ac_objext \ | |
15154 | conftest$ac_exeext conftest.$ac_ext | |
15155 | fi | |
b4e70030 JB |
15156 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15157 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
15158 | if test $ac_cv_working_alloca_h = yes; then |
15159 | ||
15160 | cat >>confdefs.h <<\_ACEOF | |
15161 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 15162 | _ACEOF |
74c1b268 | 15163 | |
74c1b268 AC |
15164 | fi |
15165 | ||
b4e70030 JB |
15166 | echo "$as_me:$LINENO: checking for alloca" >&5 |
15167 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 15168 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 15169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 15170 | else |
bec39cab AC |
15171 | cat >conftest.$ac_ext <<_ACEOF |
15172 | /* confdefs.h. */ | |
15173 | _ACEOF | |
15174 | cat confdefs.h >>conftest.$ac_ext | |
15175 | cat >>conftest.$ac_ext <<_ACEOF | |
15176 | /* end confdefs.h. */ | |
a3828db0 MK |
15177 | #ifdef __GNUC__ |
15178 | # define alloca __builtin_alloca | |
15179 | #else | |
15180 | # ifdef _MSC_VER | |
15181 | # include <malloc.h> | |
15182 | # define alloca _alloca | |
15183 | # else | |
15184 | # if HAVE_ALLOCA_H | |
15185 | # include <alloca.h> | |
15186 | # else | |
15187 | # ifdef _AIX | |
15188 | #pragma alloca | |
15189 | # else | |
15190 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15191 | char *alloca (); | |
15192 | # endif | |
15193 | # endif | |
15194 | # endif | |
97bf5e38 | 15195 | # endif |
a3828db0 | 15196 | #endif |
97bf5e38 | 15197 | |
bec39cab AC |
15198 | int |
15199 | main () | |
15200 | { | |
a3828db0 | 15201 | char *p = (char *) alloca (1); |
bec39cab AC |
15202 | ; |
15203 | return 0; | |
15204 | } | |
15205 | _ACEOF | |
a3828db0 MK |
15206 | rm -f conftest.$ac_objext conftest$ac_exeext |
15207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15208 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15209 | ac_status=$? |
15210 | grep -v '^ *+' conftest.er1 >conftest.err | |
15211 | rm -f conftest.er1 | |
15212 | cat conftest.err >&5 | |
15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15214 | (exit $ac_status); } && | |
b4e70030 JB |
15215 | { ac_try='test -z "$ac_c_werror_flag" |
15216 | || test ! -s conftest.err' | |
bec39cab AC |
15217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15218 | (eval $ac_try) 2>&5 | |
15219 | ac_status=$? | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); }; } && | |
a3828db0 | 15222 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15224 | (eval $ac_try) 2>&5 | |
15225 | ac_status=$? | |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15227 | (exit $ac_status); }; }; then | |
a3828db0 | 15228 | ac_cv_func_alloca_works=yes |
0200359f | 15229 | else |
bec39cab AC |
15230 | echo "$as_me: failed program was:" >&5 |
15231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 15232 | |
b4e70030 | 15233 | ac_cv_func_alloca_works=no |
0200359f | 15234 | fi |
a3828db0 MK |
15235 | rm -f conftest.err conftest.$ac_objext \ |
15236 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 15237 | fi |
b4e70030 JB |
15238 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15239 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 15240 | |
a3828db0 MK |
15241 | if test $ac_cv_func_alloca_works = yes; then |
15242 | ||
15243 | cat >>confdefs.h <<\_ACEOF | |
15244 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
15245 | _ACEOF |
15246 | ||
a3828db0 MK |
15247 | else |
15248 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15249 | # that cause trouble. Some versions do not even contain alloca or | |
15250 | # contain a buggy version. If you still want to use their alloca, | |
15251 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 15252 | |
b4e70030 | 15253 | ALLOCA=alloca.$ac_objext |
bec39cab | 15254 | |
a3828db0 MK |
15255 | cat >>confdefs.h <<\_ACEOF |
15256 | #define C_ALLOCA 1 | |
15257 | _ACEOF | |
bec39cab | 15258 | |
a3828db0 | 15259 | |
b4e70030 JB |
15260 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15261 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 15262 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 15263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 15264 | else |
a3828db0 | 15265 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15266 | /* confdefs.h. */ |
15267 | _ACEOF | |
15268 | cat confdefs.h >>conftest.$ac_ext | |
15269 | cat >>conftest.$ac_ext <<_ACEOF | |
15270 | /* end confdefs.h. */ | |
b4e70030 | 15271 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
15272 | webecray |
15273 | #else | |
15274 | wenotbecray | |
15275 | #endif | |
15276 | ||
15277 | _ACEOF | |
15278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15279 | $EGREP "webecray" >/dev/null 2>&1; then | |
15280 | ac_cv_os_cray=yes | |
15281 | else | |
15282 | ac_cv_os_cray=no | |
15283 | fi | |
15284 | rm -f conftest* | |
15285 | ||
15286 | fi | |
b4e70030 JB |
15287 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15288 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
15289 | if test $ac_cv_os_cray = yes; then |
15290 | for ac_func in _getb67 GETB67 getb67; do | |
15291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15292 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15294 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
15295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15296 | else | |
15297 | cat >conftest.$ac_ext <<_ACEOF | |
15298 | /* confdefs.h. */ | |
15299 | _ACEOF | |
15300 | cat confdefs.h >>conftest.$ac_ext | |
15301 | cat >>conftest.$ac_ext <<_ACEOF | |
15302 | /* end confdefs.h. */ | |
15303 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15305 | #define $ac_func innocuous_$ac_func | |
15306 | ||
15307 | /* System header to define __stub macros and hopefully few prototypes, | |
15308 | which can conflict with char $ac_func (); below. | |
15309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15310 | <limits.h> exists even on freestanding compilers. */ | |
15311 | ||
15312 | #ifdef __STDC__ | |
15313 | # include <limits.h> | |
15314 | #else | |
15315 | # include <assert.h> | |
15316 | #endif | |
15317 | ||
15318 | #undef $ac_func | |
15319 | ||
b4e70030 | 15320 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15321 | #ifdef __cplusplus |
15322 | extern "C" | |
b4e70030 | 15323 | { |
a3828db0 | 15324 | #endif |
b4e70030 JB |
15325 | /* We use char because int might match the return type of a gcc2 |
15326 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15327 | char $ac_func (); |
15328 | /* The GNU C library defines this for functions which it implements | |
15329 | to always fail with ENOSYS. Some functions are actually named | |
15330 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15332 | choke me |
b4e70030 JB |
15333 | #else |
15334 | char (*f) () = $ac_func; | |
15335 | #endif | |
15336 | #ifdef __cplusplus | |
15337 | } | |
a3828db0 MK |
15338 | #endif |
15339 | ||
15340 | int | |
15341 | main () | |
15342 | { | |
b4e70030 | 15343 | return f != $ac_func; |
a3828db0 MK |
15344 | ; |
15345 | return 0; | |
15346 | } | |
15347 | _ACEOF | |
15348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15350 | (eval $ac_link) 2>conftest.er1 | |
15351 | ac_status=$? | |
15352 | grep -v '^ *+' conftest.er1 >conftest.err | |
15353 | rm -f conftest.er1 | |
15354 | cat conftest.err >&5 | |
15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15356 | (exit $ac_status); } && | |
b4e70030 JB |
15357 | { ac_try='test -z "$ac_c_werror_flag" |
15358 | || test ! -s conftest.err' | |
a3828db0 MK |
15359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15360 | (eval $ac_try) 2>&5 | |
15361 | ac_status=$? | |
15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15363 | (exit $ac_status); }; } && | |
15364 | { ac_try='test -s conftest$ac_exeext' | |
15365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15366 | (eval $ac_try) 2>&5 | |
15367 | ac_status=$? | |
15368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15369 | (exit $ac_status); }; }; then | |
15370 | eval "$as_ac_var=yes" | |
15371 | else | |
15372 | echo "$as_me: failed program was:" >&5 | |
15373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15374 | ||
b4e70030 | 15375 | eval "$as_ac_var=no" |
a3828db0 MK |
15376 | fi |
15377 | rm -f conftest.err conftest.$ac_objext \ | |
15378 | conftest$ac_exeext conftest.$ac_ext | |
15379 | fi | |
b4e70030 JB |
15380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15383 | ||
15384 | cat >>confdefs.h <<_ACEOF | |
15385 | #define CRAY_STACKSEG_END $ac_func | |
15386 | _ACEOF | |
15387 | ||
15388 | break | |
15389 | fi | |
15390 | ||
15391 | done | |
15392 | fi | |
15393 | ||
b4e70030 JB |
15394 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15395 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
15396 | if test "${ac_cv_c_stack_direction+set}" = set; then |
15397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15398 | else | |
15399 | if test "$cross_compiling" = yes; then | |
15400 | ac_cv_c_stack_direction=0 | |
15401 | else | |
15402 | cat >conftest.$ac_ext <<_ACEOF | |
15403 | /* confdefs.h. */ | |
15404 | _ACEOF | |
15405 | cat confdefs.h >>conftest.$ac_ext | |
15406 | cat >>conftest.$ac_ext <<_ACEOF | |
15407 | /* end confdefs.h. */ | |
15408 | int | |
15409 | find_stack_direction () | |
15410 | { | |
15411 | static char *addr = 0; | |
15412 | auto char dummy; | |
15413 | if (addr == 0) | |
15414 | { | |
15415 | addr = &dummy; | |
15416 | return find_stack_direction (); | |
15417 | } | |
15418 | else | |
15419 | return (&dummy > addr) ? 1 : -1; | |
15420 | } | |
15421 | ||
15422 | int | |
15423 | main () | |
15424 | { | |
b4e70030 | 15425 | exit (find_stack_direction () < 0); |
a3828db0 MK |
15426 | } |
15427 | _ACEOF | |
15428 | rm -f conftest$ac_exeext | |
15429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15430 | (eval $ac_link) 2>&5 | |
15431 | ac_status=$? | |
15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15435 | (eval $ac_try) 2>&5 | |
15436 | ac_status=$? | |
15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15438 | (exit $ac_status); }; }; then | |
15439 | ac_cv_c_stack_direction=1 | |
15440 | else | |
15441 | echo "$as_me: program exited with status $ac_status" >&5 | |
15442 | echo "$as_me: failed program was:" >&5 | |
15443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15444 | ||
15445 | ( exit $ac_status ) | |
15446 | ac_cv_c_stack_direction=-1 | |
15447 | fi | |
b4e70030 | 15448 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
15449 | fi |
15450 | fi | |
b4e70030 JB |
15451 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15452 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
15453 | |
15454 | cat >>confdefs.h <<_ACEOF | |
15455 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15456 | _ACEOF | |
15457 | ||
15458 | ||
15459 | fi | |
15460 | ||
15461 | ||
15462 | ||
15463 | for ac_header in stdlib.h unistd.h | |
15464 | do | |
15465 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15471 | fi | |
b4e70030 JB |
15472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15473 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
15474 | else |
15475 | # Is the header compilable? | |
b4e70030 JB |
15476 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15477 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
15478 | cat >conftest.$ac_ext <<_ACEOF |
15479 | /* confdefs.h. */ | |
15480 | _ACEOF | |
15481 | cat confdefs.h >>conftest.$ac_ext | |
15482 | cat >>conftest.$ac_ext <<_ACEOF | |
15483 | /* end confdefs.h. */ | |
15484 | $ac_includes_default | |
15485 | #include <$ac_header> | |
15486 | _ACEOF | |
15487 | rm -f conftest.$ac_objext | |
15488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15489 | (eval $ac_compile) 2>conftest.er1 | |
15490 | ac_status=$? | |
bec39cab AC |
15491 | grep -v '^ *+' conftest.er1 >conftest.err |
15492 | rm -f conftest.er1 | |
15493 | cat conftest.err >&5 | |
15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15495 | (exit $ac_status); } && | |
b4e70030 JB |
15496 | { ac_try='test -z "$ac_c_werror_flag" |
15497 | || test ! -s conftest.err' | |
bec39cab AC |
15498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15499 | (eval $ac_try) 2>&5 | |
15500 | ac_status=$? | |
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15502 | (exit $ac_status); }; } && | |
15503 | { ac_try='test -s conftest.$ac_objext' | |
15504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15505 | (eval $ac_try) 2>&5 | |
15506 | ac_status=$? | |
15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15508 | (exit $ac_status); }; }; then | |
15509 | ac_header_compiler=yes | |
15510 | else | |
15511 | echo "$as_me: failed program was:" >&5 | |
15512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15513 | ||
b4e70030 | 15514 | ac_header_compiler=no |
bec39cab AC |
15515 | fi |
15516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15518 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15519 | |
15520 | # Is the header present? | |
b4e70030 JB |
15521 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15522 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15523 | cat >conftest.$ac_ext <<_ACEOF |
15524 | /* confdefs.h. */ | |
15525 | _ACEOF | |
15526 | cat confdefs.h >>conftest.$ac_ext | |
15527 | cat >>conftest.$ac_ext <<_ACEOF | |
15528 | /* end confdefs.h. */ | |
15529 | #include <$ac_header> | |
15530 | _ACEOF | |
15531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15533 | ac_status=$? | |
15534 | grep -v '^ *+' conftest.er1 >conftest.err | |
15535 | rm -f conftest.er1 | |
15536 | cat conftest.err >&5 | |
15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15538 | (exit $ac_status); } >/dev/null; then | |
15539 | if test -s conftest.err; then | |
15540 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15541 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15542 | else | |
15543 | ac_cpp_err= | |
15544 | fi | |
15545 | else | |
15546 | ac_cpp_err=yes | |
15547 | fi | |
15548 | if test -z "$ac_cpp_err"; then | |
15549 | ac_header_preproc=yes | |
97bf5e38 | 15550 | else |
bec39cab AC |
15551 | echo "$as_me: failed program was:" >&5 |
15552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15553 | ||
15554 | ac_header_preproc=no | |
72473524 | 15555 | fi |
bec39cab | 15556 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 15559 | |
bec39cab AC |
15560 | # So? What about this header? |
15561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15562 | yes:no: ) | |
15563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15566 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15567 | ac_header_preproc=yes | |
15568 | ;; | |
15569 | no:yes:* ) | |
15570 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15571 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15572 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15573 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15574 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15575 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15576 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15577 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15578 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15579 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15580 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15581 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15582 | ( |
15583 | cat <<\_ASBOX | |
15584 | ## ------------------------------------------ ## | |
15585 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15586 | ## ------------------------------------------ ## | |
15587 | _ASBOX | |
15588 | ) | | |
15589 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15590 | ;; |
15591 | esac | |
b4e70030 JB |
15592 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15596 | else |
bec39cab AC |
15597 | eval "$as_ac_Header=\$ac_header_preproc" |
15598 | fi | |
b4e70030 JB |
15599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15600 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15601 | |
15602 | fi | |
15603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15604 | cat >>confdefs.h <<_ACEOF | |
15605 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15606 | _ACEOF | |
15607 | ||
15608 | fi | |
15609 | ||
15610 | done | |
15611 | ||
15612 | ||
a3828db0 | 15613 | for ac_func in getpagesize |
bec39cab AC |
15614 | do |
15615 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15616 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15617 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15618 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
15619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15620 | else | |
15621 | cat >conftest.$ac_ext <<_ACEOF | |
15622 | /* confdefs.h. */ | |
15623 | _ACEOF | |
15624 | cat confdefs.h >>conftest.$ac_ext | |
15625 | cat >>conftest.$ac_ext <<_ACEOF | |
15626 | /* end confdefs.h. */ | |
15627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15629 | #define $ac_func innocuous_$ac_func | |
15630 | ||
97bf5e38 | 15631 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15632 | which can conflict with char $ac_func (); below. |
15633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15634 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 15635 | |
bec39cab AC |
15636 | #ifdef __STDC__ |
15637 | # include <limits.h> | |
15638 | #else | |
15639 | # include <assert.h> | |
15640 | #endif | |
97bf5e38 | 15641 | |
bec39cab AC |
15642 | #undef $ac_func |
15643 | ||
b4e70030 | 15644 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
15645 | #ifdef __cplusplus |
15646 | extern "C" | |
b4e70030 | 15647 | { |
bec39cab | 15648 | #endif |
b4e70030 JB |
15649 | /* We use char because int might match the return type of a gcc2 |
15650 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 15651 | char $ac_func (); |
97bf5e38 MK |
15652 | /* The GNU C library defines this for functions which it implements |
15653 | to always fail with ENOSYS. Some functions are actually named | |
15654 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 15656 | choke me |
b4e70030 JB |
15657 | #else |
15658 | char (*f) () = $ac_func; | |
15659 | #endif | |
15660 | #ifdef __cplusplus | |
15661 | } | |
97bf5e38 MK |
15662 | #endif |
15663 | ||
bec39cab AC |
15664 | int |
15665 | main () | |
15666 | { | |
b4e70030 | 15667 | return f != $ac_func; |
bec39cab AC |
15668 | ; |
15669 | return 0; | |
15670 | } | |
15671 | _ACEOF | |
15672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15674 | (eval $ac_link) 2>conftest.er1 | |
15675 | ac_status=$? | |
15676 | grep -v '^ *+' conftest.er1 >conftest.err | |
15677 | rm -f conftest.er1 | |
15678 | cat conftest.err >&5 | |
15679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15680 | (exit $ac_status); } && | |
b4e70030 JB |
15681 | { ac_try='test -z "$ac_c_werror_flag" |
15682 | || test ! -s conftest.err' | |
bec39cab AC |
15683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15684 | (eval $ac_try) 2>&5 | |
15685 | ac_status=$? | |
15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15687 | (exit $ac_status); }; } && | |
15688 | { ac_try='test -s conftest$ac_exeext' | |
15689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15690 | (eval $ac_try) 2>&5 | |
15691 | ac_status=$? | |
15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15693 | (exit $ac_status); }; }; then | |
15694 | eval "$as_ac_var=yes" | |
15695 | else | |
15696 | echo "$as_me: failed program was:" >&5 | |
15697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15698 | ||
b4e70030 | 15699 | eval "$as_ac_var=no" |
bec39cab AC |
15700 | fi |
15701 | rm -f conftest.err conftest.$ac_objext \ | |
15702 | conftest$ac_exeext conftest.$ac_ext | |
15703 | fi | |
b4e70030 JB |
15704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15705 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
15706 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15707 | cat >>confdefs.h <<_ACEOF | |
15708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15709 | _ACEOF | |
15710 | ||
2b2d558c | 15711 | fi |
bec39cab | 15712 | done |
2b2d558c | 15713 | |
b4e70030 JB |
15714 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
15715 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 15716 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15718 | else |
bec39cab | 15719 | if test "$cross_compiling" = yes; then |
a3828db0 | 15720 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
15721 | else |
15722 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 15723 | /* confdefs.h. */ |
bec39cab AC |
15724 | _ACEOF |
15725 | cat confdefs.h >>conftest.$ac_ext | |
15726 | cat >>conftest.$ac_ext <<_ACEOF | |
15727 | /* end confdefs.h. */ | |
a3828db0 MK |
15728 | $ac_includes_default |
15729 | /* malloc might have been renamed as rpl_malloc. */ | |
15730 | #undef malloc | |
bec39cab | 15731 | |
a3828db0 MK |
15732 | /* Thanks to Mike Haertel and Jim Avera for this test. |
15733 | Here is a matrix of mmap possibilities: | |
15734 | mmap private not fixed | |
15735 | mmap private fixed at somewhere currently unmapped | |
15736 | mmap private fixed at somewhere already mapped | |
15737 | mmap shared not fixed | |
15738 | mmap shared fixed at somewhere currently unmapped | |
15739 | mmap shared fixed at somewhere already mapped | |
15740 | For private mappings, we should verify that changes cannot be read() | |
15741 | back from the file, nor mmap's back from the file at a different | |
15742 | address. (There have been systems where private was not correctly | |
15743 | implemented like the infamous i386 svr4.0, and systems where the | |
15744 | VM page cache was not coherent with the file system buffer cache | |
15745 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
15746 | For shared mappings, we should conversely verify that changes get | |
15747 | propagated back to all the places they're supposed to be. | |
7dfa765c | 15748 | |
a3828db0 MK |
15749 | Grep wants private fixed already mapped. |
15750 | The main things grep needs to know about mmap are: | |
15751 | * does it exist and is it safe to write into the mmap'd area | |
15752 | * how to use it (BSD variants) */ | |
7dfa765c | 15753 | |
a3828db0 MK |
15754 | #include <fcntl.h> |
15755 | #include <sys/mman.h> | |
7dfa765c | 15756 | |
a3828db0 MK |
15757 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
15758 | char *malloc (); | |
15759 | #endif | |
7dfa765c | 15760 | |
a3828db0 MK |
15761 | /* This mess was copied from the GNU getpagesize.h. */ |
15762 | #if !HAVE_GETPAGESIZE | |
15763 | /* Assume that all systems that can run configure have sys/param.h. */ | |
15764 | # if !HAVE_SYS_PARAM_H | |
15765 | # define HAVE_SYS_PARAM_H 1 | |
15766 | # endif | |
64bb1671 | 15767 | |
a3828db0 MK |
15768 | # ifdef _SC_PAGESIZE |
15769 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
15770 | # else /* no _SC_PAGESIZE */ | |
15771 | # if HAVE_SYS_PARAM_H | |
15772 | # include <sys/param.h> | |
15773 | # ifdef EXEC_PAGESIZE | |
15774 | # define getpagesize() EXEC_PAGESIZE | |
15775 | # else /* no EXEC_PAGESIZE */ | |
15776 | # ifdef NBPG | |
15777 | # define getpagesize() NBPG * CLSIZE | |
15778 | # ifndef CLSIZE | |
15779 | # define CLSIZE 1 | |
15780 | # endif /* no CLSIZE */ | |
15781 | # else /* no NBPG */ | |
15782 | # ifdef NBPC | |
15783 | # define getpagesize() NBPC | |
15784 | # else /* no NBPC */ | |
15785 | # ifdef PAGESIZE | |
15786 | # define getpagesize() PAGESIZE | |
15787 | # endif /* PAGESIZE */ | |
15788 | # endif /* no NBPC */ | |
15789 | # endif /* no NBPG */ | |
15790 | # endif /* no EXEC_PAGESIZE */ | |
15791 | # else /* no HAVE_SYS_PARAM_H */ | |
15792 | # define getpagesize() 8192 /* punt totally */ | |
15793 | # endif /* no HAVE_SYS_PARAM_H */ | |
15794 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 15795 | |
a3828db0 | 15796 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 15797 | |
a3828db0 MK |
15798 | int |
15799 | main () | |
15800 | { | |
15801 | char *data, *data2, *data3; | |
15802 | int i, pagesize; | |
15803 | int fd; | |
97bf5e38 | 15804 | |
a3828db0 MK |
15805 | pagesize = getpagesize (); |
15806 | ||
15807 | /* First, make a file with some known garbage in it. */ | |
15808 | data = (char *) malloc (pagesize); | |
15809 | if (!data) | |
b4e70030 | 15810 | exit (1); |
a3828db0 MK |
15811 | for (i = 0; i < pagesize; ++i) |
15812 | *(data + i) = rand (); | |
15813 | umask (0); | |
15814 | fd = creat ("conftest.mmap", 0600); | |
15815 | if (fd < 0) | |
b4e70030 | 15816 | exit (1); |
a3828db0 | 15817 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 15818 | exit (1); |
a3828db0 MK |
15819 | close (fd); |
15820 | ||
15821 | /* Next, try to mmap the file at a fixed address which already has | |
15822 | something else allocated at it. If we can, also make sure that | |
15823 | we see the same garbage. */ | |
15824 | fd = open ("conftest.mmap", O_RDWR); | |
15825 | if (fd < 0) | |
b4e70030 | 15826 | exit (1); |
a3828db0 MK |
15827 | data2 = (char *) malloc (2 * pagesize); |
15828 | if (!data2) | |
b4e70030 JB |
15829 | exit (1); |
15830 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
15831 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
15832 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 15833 | exit (1); |
a3828db0 MK |
15834 | for (i = 0; i < pagesize; ++i) |
15835 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 15836 | exit (1); |
a3828db0 MK |
15837 | |
15838 | /* Finally, make sure that changes to the mapped area do not | |
15839 | percolate back to the file as seen by read(). (This is a bug on | |
15840 | some variants of i386 svr4.0.) */ | |
15841 | for (i = 0; i < pagesize; ++i) | |
15842 | *(data2 + i) = *(data2 + i) + 1; | |
15843 | data3 = (char *) malloc (pagesize); | |
15844 | if (!data3) | |
b4e70030 | 15845 | exit (1); |
a3828db0 | 15846 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 15847 | exit (1); |
a3828db0 MK |
15848 | for (i = 0; i < pagesize; ++i) |
15849 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 15850 | exit (1); |
a3828db0 | 15851 | close (fd); |
b4e70030 | 15852 | exit (0); |
97bf5e38 | 15853 | } |
bec39cab AC |
15854 | _ACEOF |
15855 | rm -f conftest$ac_exeext | |
15856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15857 | (eval $ac_link) 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15862 | (eval $ac_try) 2>&5 | |
15863 | ac_status=$? | |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15865 | (exit $ac_status); }; }; then | |
a3828db0 | 15866 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 15867 | else |
bec39cab AC |
15868 | echo "$as_me: program exited with status $ac_status" >&5 |
15869 | echo "$as_me: failed program was:" >&5 | |
15870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15871 | ||
15872 | ( exit $ac_status ) | |
a3828db0 | 15873 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 15874 | fi |
b4e70030 | 15875 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 15876 | fi |
a3828db0 | 15877 | fi |
b4e70030 JB |
15878 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
15879 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 15880 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
15881 | |
15882 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 15883 | #define HAVE_MMAP 1 |
bec39cab | 15884 | _ACEOF |
0afdd437 MK |
15885 | |
15886 | fi | |
a3828db0 | 15887 | rm -f conftest.mmap |
0afdd437 | 15888 | |
b4e70030 JB |
15889 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
15890 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 15891 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
15892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15893 | else | |
15894 | cat >conftest.$ac_ext <<_ACEOF | |
15895 | /* confdefs.h. */ | |
15896 | _ACEOF | |
15897 | cat confdefs.h >>conftest.$ac_ext | |
15898 | cat >>conftest.$ac_ext <<_ACEOF | |
15899 | /* end confdefs.h. */ | |
a3828db0 | 15900 | $ac_includes_default |
bec39cab AC |
15901 | int |
15902 | main () | |
15903 | { | |
b4e70030 | 15904 | if ((pid_t *) 0) |
a3828db0 | 15905 | return 0; |
b4e70030 | 15906 | if (sizeof (pid_t)) |
a3828db0 | 15907 | return 0; |
bec39cab AC |
15908 | ; |
15909 | return 0; | |
15910 | } | |
15911 | _ACEOF | |
a3828db0 MK |
15912 | rm -f conftest.$ac_objext |
15913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15914 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15915 | ac_status=$? |
15916 | grep -v '^ *+' conftest.er1 >conftest.err | |
15917 | rm -f conftest.er1 | |
15918 | cat conftest.err >&5 | |
15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15920 | (exit $ac_status); } && | |
b4e70030 JB |
15921 | { ac_try='test -z "$ac_c_werror_flag" |
15922 | || test ! -s conftest.err' | |
bec39cab AC |
15923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15924 | (eval $ac_try) 2>&5 | |
15925 | ac_status=$? | |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15927 | (exit $ac_status); }; } && | |
a3828db0 | 15928 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15930 | (eval $ac_try) 2>&5 | |
15931 | ac_status=$? | |
15932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15933 | (exit $ac_status); }; }; then | |
a3828db0 | 15934 | ac_cv_type_pid_t=yes |
bec39cab AC |
15935 | else |
15936 | echo "$as_me: failed program was:" >&5 | |
15937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15938 | ||
b4e70030 | 15939 | ac_cv_type_pid_t=no |
bec39cab | 15940 | fi |
a3828db0 | 15941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 15942 | fi |
b4e70030 JB |
15943 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
15944 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
15945 | if test $ac_cv_type_pid_t = yes; then |
15946 | : | |
15947 | else | |
15948 | ||
15949 | cat >>confdefs.h <<_ACEOF | |
15950 | #define pid_t int | |
bec39cab | 15951 | _ACEOF |
7e89e357 | 15952 | |
7e89e357 JT |
15953 | fi |
15954 | ||
bec39cab | 15955 | |
b4e70030 JB |
15956 | |
15957 | for ac_header in unistd.h vfork.h | |
7be570e7 | 15958 | do |
a3828db0 | 15959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 15965 | fi |
b4e70030 JB |
15966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15968 | else |
a3828db0 | 15969 | # Is the header compilable? |
b4e70030 JB |
15970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 15972 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15973 | /* confdefs.h. */ |
15974 | _ACEOF | |
15975 | cat confdefs.h >>conftest.$ac_ext | |
15976 | cat >>conftest.$ac_ext <<_ACEOF | |
15977 | /* end confdefs.h. */ | |
a3828db0 MK |
15978 | $ac_includes_default |
15979 | #include <$ac_header> | |
bec39cab | 15980 | _ACEOF |
a3828db0 MK |
15981 | rm -f conftest.$ac_objext |
15982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15983 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15984 | ac_status=$? |
15985 | grep -v '^ *+' conftest.er1 >conftest.err | |
15986 | rm -f conftest.er1 | |
15987 | cat conftest.err >&5 | |
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15989 | (exit $ac_status); } && | |
b4e70030 JB |
15990 | { ac_try='test -z "$ac_c_werror_flag" |
15991 | || test ! -s conftest.err' | |
bec39cab AC |
15992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15993 | (eval $ac_try) 2>&5 | |
15994 | ac_status=$? | |
15995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15996 | (exit $ac_status); }; } && | |
a3828db0 | 15997 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15999 | (eval $ac_try) 2>&5 | |
16000 | ac_status=$? | |
16001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16002 | (exit $ac_status); }; }; then | |
a3828db0 | 16003 | ac_header_compiler=yes |
bec39cab AC |
16004 | else |
16005 | echo "$as_me: failed program was:" >&5 | |
16006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16007 | ||
b4e70030 | 16008 | ac_header_compiler=no |
bec39cab | 16009 | fi |
a3828db0 | 16010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
16011 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16012 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
16013 | |
16014 | # Is the header present? | |
b4e70030 JB |
16015 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
16017 | cat >conftest.$ac_ext <<_ACEOF |
16018 | /* confdefs.h. */ | |
16019 | _ACEOF | |
16020 | cat confdefs.h >>conftest.$ac_ext | |
16021 | cat >>conftest.$ac_ext <<_ACEOF | |
16022 | /* end confdefs.h. */ | |
16023 | #include <$ac_header> | |
16024 | _ACEOF | |
16025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16027 | ac_status=$? | |
16028 | grep -v '^ *+' conftest.er1 >conftest.err | |
16029 | rm -f conftest.er1 | |
16030 | cat conftest.err >&5 | |
16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16032 | (exit $ac_status); } >/dev/null; then | |
16033 | if test -s conftest.err; then | |
16034 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16035 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16036 | else | |
16037 | ac_cpp_err= | |
16038 | fi | |
16039 | else | |
16040 | ac_cpp_err=yes | |
16041 | fi | |
16042 | if test -z "$ac_cpp_err"; then | |
16043 | ac_header_preproc=yes | |
16044 | else | |
16045 | echo "$as_me: failed program was:" >&5 | |
16046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16047 | ||
16048 | ac_header_preproc=no | |
16049 | fi | |
16050 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
16051 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16052 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
16053 | |
16054 | # So? What about this header? | |
16055 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16056 | yes:no: ) | |
16057 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16058 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16059 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16060 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16061 | ac_header_preproc=yes | |
16062 | ;; | |
16063 | no:yes:* ) | |
16064 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16065 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16066 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16067 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16068 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16069 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16070 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16071 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16073 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16074 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16075 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16076 | ( |
16077 | cat <<\_ASBOX | |
16078 | ## ------------------------------------------ ## | |
16079 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16080 | ## ------------------------------------------ ## | |
16081 | _ASBOX | |
16082 | ) | | |
16083 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
16084 | ;; |
16085 | esac | |
b4e70030 JB |
16086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
16089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16090 | else | |
16091 | eval "$as_ac_Header=\$ac_header_preproc" | |
16092 | fi | |
b4e70030 JB |
16093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 16095 | |
bec39cab | 16096 | fi |
a3828db0 | 16097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 16098 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 16099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 16100 | _ACEOF |
14abd0fb | 16101 | |
14abd0fb | 16102 | fi |
a3828db0 | 16103 | |
14abd0fb MK |
16104 | done |
16105 | ||
bec39cab | 16106 | |
a3828db0 MK |
16107 | |
16108 | for ac_func in fork vfork | |
14abd0fb | 16109 | do |
bec39cab | 16110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16111 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16113 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16115 | else | |
16116 | cat >conftest.$ac_ext <<_ACEOF | |
16117 | /* confdefs.h. */ | |
16118 | _ACEOF | |
16119 | cat confdefs.h >>conftest.$ac_ext | |
16120 | cat >>conftest.$ac_ext <<_ACEOF | |
16121 | /* end confdefs.h. */ | |
16122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16124 | #define $ac_func innocuous_$ac_func | |
16125 | ||
14abd0fb | 16126 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16127 | which can conflict with char $ac_func (); below. |
16128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16129 | <limits.h> exists even on freestanding compilers. */ | |
16130 | ||
16131 | #ifdef __STDC__ | |
16132 | # include <limits.h> | |
16133 | #else | |
16134 | # include <assert.h> | |
16135 | #endif | |
14abd0fb | 16136 | |
bec39cab | 16137 | #undef $ac_func |
14abd0fb | 16138 | |
b4e70030 | 16139 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16140 | #ifdef __cplusplus |
16141 | extern "C" | |
b4e70030 | 16142 | { |
bec39cab | 16143 | #endif |
b4e70030 JB |
16144 | /* We use char because int might match the return type of a gcc2 |
16145 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16146 | char $ac_func (); |
14abd0fb MK |
16147 | /* The GNU C library defines this for functions which it implements |
16148 | to always fail with ENOSYS. Some functions are actually named | |
16149 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 16151 | choke me |
b4e70030 JB |
16152 | #else |
16153 | char (*f) () = $ac_func; | |
16154 | #endif | |
16155 | #ifdef __cplusplus | |
16156 | } | |
14abd0fb MK |
16157 | #endif |
16158 | ||
bec39cab AC |
16159 | int |
16160 | main () | |
16161 | { | |
b4e70030 | 16162 | return f != $ac_func; |
bec39cab AC |
16163 | ; |
16164 | return 0; | |
16165 | } | |
16166 | _ACEOF | |
16167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16169 | (eval $ac_link) 2>conftest.er1 | |
16170 | ac_status=$? | |
16171 | grep -v '^ *+' conftest.er1 >conftest.err | |
16172 | rm -f conftest.er1 | |
16173 | cat conftest.err >&5 | |
16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16175 | (exit $ac_status); } && | |
b4e70030 JB |
16176 | { ac_try='test -z "$ac_c_werror_flag" |
16177 | || test ! -s conftest.err' | |
bec39cab AC |
16178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16179 | (eval $ac_try) 2>&5 | |
16180 | ac_status=$? | |
16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16182 | (exit $ac_status); }; } && | |
16183 | { ac_try='test -s conftest$ac_exeext' | |
16184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16185 | (eval $ac_try) 2>&5 | |
16186 | ac_status=$? | |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16188 | (exit $ac_status); }; }; then | |
16189 | eval "$as_ac_var=yes" | |
16190 | else | |
16191 | echo "$as_me: failed program was:" >&5 | |
16192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16193 | ||
b4e70030 | 16194 | eval "$as_ac_var=no" |
bec39cab AC |
16195 | fi |
16196 | rm -f conftest.err conftest.$ac_objext \ | |
16197 | conftest$ac_exeext conftest.$ac_ext | |
16198 | fi | |
b4e70030 JB |
16199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16200 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16201 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16202 | cat >>confdefs.h <<_ACEOF | |
16203 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16204 | _ACEOF | |
7be570e7 | 16205 | |
7be570e7 JM |
16206 | fi |
16207 | done | |
16208 | ||
a3828db0 | 16209 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
16210 | echo "$as_me:$LINENO: checking for working fork" >&5 |
16211 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
16212 | if test "${ac_cv_func_fork_works+set}" = set; then |
16213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16214 | else | |
16215 | if test "$cross_compiling" = yes; then | |
16216 | ac_cv_func_fork_works=cross | |
16217 | else | |
16218 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
16219 | /* By Ruediger Kuhlmann. */ |
16220 | #include <sys/types.h> | |
16221 | #if HAVE_UNISTD_H | |
16222 | # include <unistd.h> | |
16223 | #endif | |
16224 | /* Some systems only have a dummy stub for fork() */ | |
16225 | int main () | |
16226 | { | |
16227 | if (fork() < 0) | |
16228 | exit (1); | |
16229 | exit (0); | |
16230 | } | |
a3828db0 MK |
16231 | _ACEOF |
16232 | rm -f conftest$ac_exeext | |
16233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16234 | (eval $ac_link) 2>&5 | |
16235 | ac_status=$? | |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16237 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16239 | (eval $ac_try) 2>&5 | |
16240 | ac_status=$? | |
16241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16242 | (exit $ac_status); }; }; then | |
16243 | ac_cv_func_fork_works=yes | |
16244 | else | |
16245 | echo "$as_me: program exited with status $ac_status" >&5 | |
16246 | echo "$as_me: failed program was:" >&5 | |
16247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16248 | |
a3828db0 MK |
16249 | ( exit $ac_status ) |
16250 | ac_cv_func_fork_works=no | |
16251 | fi | |
b4e70030 | 16252 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16253 | fi |
16254 | fi | |
b4e70030 JB |
16255 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
16256 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
16257 | |
16258 | else | |
16259 | ac_cv_func_fork_works=$ac_cv_func_fork | |
16260 | fi | |
16261 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16262 | case $host in | |
16263 | *-*-amigaos* | *-*-msdosdjgpp*) | |
16264 | # Override, as these systems have only a dummy fork() stub | |
16265 | ac_cv_func_fork_works=no | |
16266 | ;; | |
16267 | *) | |
16268 | ac_cv_func_fork_works=yes | |
16269 | ;; | |
16270 | esac | |
16271 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
16272 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
16273 | fi | |
16274 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16275 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
16276 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
16277 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 16278 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 16279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16280 | else |
16281 | if test "$cross_compiling" = yes; then | |
16282 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
16283 | else |
16284 | cat >conftest.$ac_ext <<_ACEOF | |
16285 | /* confdefs.h. */ | |
16286 | _ACEOF | |
16287 | cat confdefs.h >>conftest.$ac_ext | |
16288 | cat >>conftest.$ac_ext <<_ACEOF | |
16289 | /* end confdefs.h. */ | |
a3828db0 | 16290 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
16291 | #include <stdio.h> |
16292 | #include <stdlib.h> | |
16293 | #include <sys/types.h> | |
16294 | #include <sys/stat.h> | |
a3828db0 | 16295 | #include <sys/wait.h> |
b4e70030 JB |
16296 | #if HAVE_UNISTD_H |
16297 | # include <unistd.h> | |
16298 | #endif | |
a3828db0 MK |
16299 | #if HAVE_VFORK_H |
16300 | # include <vfork.h> | |
bec39cab | 16301 | #endif |
a3828db0 MK |
16302 | /* On some sparc systems, changes by the child to local and incoming |
16303 | argument registers are propagated back to the parent. The compiler | |
16304 | is told about this with #include <vfork.h>, but some compilers | |
16305 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16306 | static variable whose address is put into a register that is | |
16307 | clobbered by the vfork. */ | |
16308 | static void | |
bec39cab | 16309 | #ifdef __cplusplus |
a3828db0 MK |
16310 | sparc_address_test (int arg) |
16311 | # else | |
16312 | sparc_address_test (arg) int arg; | |
c906108c | 16313 | #endif |
a3828db0 MK |
16314 | { |
16315 | static pid_t child; | |
16316 | if (!child) { | |
16317 | child = vfork (); | |
16318 | if (child < 0) { | |
16319 | perror ("vfork"); | |
16320 | _exit(2); | |
16321 | } | |
16322 | if (!child) { | |
16323 | arg = getpid(); | |
16324 | write(-1, "", 0); | |
16325 | _exit (arg); | |
16326 | } | |
16327 | } | |
16328 | } | |
97bf5e38 | 16329 | |
bec39cab AC |
16330 | int |
16331 | main () | |
16332 | { | |
a3828db0 MK |
16333 | pid_t parent = getpid (); |
16334 | pid_t child; | |
16335 | ||
16336 | sparc_address_test (0); | |
16337 | ||
16338 | child = vfork (); | |
16339 | ||
16340 | if (child == 0) { | |
16341 | /* Here is another test for sparc vfork register problems. This | |
16342 | test uses lots of local variables, at least as many local | |
16343 | variables as main has allocated so far including compiler | |
16344 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
16345 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
16346 | reuse the register of parent for one of the local variables, | |
16347 | since it will think that parent can't possibly be used any more | |
16348 | in this routine. Assigning to the local variable will thus | |
16349 | munge parent in the parent process. */ | |
16350 | pid_t | |
16351 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
16352 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
16353 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
16354 | use the same hardware register for all 8 local variables. */ | |
16355 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
16356 | || p != p5 || p != p6 || p != p7) | |
16357 | _exit(1); | |
16358 | ||
16359 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
16360 | from child file descriptors. If the child closes a descriptor | |
16361 | before it execs or exits, this munges the parent's descriptor | |
16362 | as well. Test for this by closing stdout in the child. */ | |
16363 | _exit(close(fileno(stdout)) != 0); | |
16364 | } else { | |
16365 | int status; | |
16366 | struct stat st; | |
16367 | ||
16368 | while (wait(&status) != child) | |
16369 | ; | |
b4e70030 | 16370 | exit( |
a3828db0 MK |
16371 | /* Was there some problem with vforking? */ |
16372 | child < 0 | |
16373 | ||
16374 | /* Did the child fail? (This shouldn't happen.) */ | |
16375 | || status | |
16376 | ||
16377 | /* Did the vfork/compiler bug occur? */ | |
16378 | || parent != getpid() | |
16379 | ||
16380 | /* Did the file descriptor bug occur? */ | |
16381 | || fstat(fileno(stdout), &st) != 0 | |
16382 | ); | |
16383 | } | |
bec39cab AC |
16384 | } |
16385 | _ACEOF | |
a3828db0 | 16386 | rm -f conftest$ac_exeext |
bec39cab | 16387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16388 | (eval $ac_link) 2>&5 |
bec39cab AC |
16389 | ac_status=$? |
16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16393 | (eval $ac_try) 2>&5 | |
16394 | ac_status=$? | |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16396 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16397 | ac_cv_func_vfork_works=yes |
16398 | else | |
16399 | echo "$as_me: program exited with status $ac_status" >&5 | |
16400 | echo "$as_me: failed program was:" >&5 | |
16401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16402 | ||
16403 | ( exit $ac_status ) | |
16404 | ac_cv_func_vfork_works=no | |
16405 | fi | |
b4e70030 | 16406 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16407 | fi |
16408 | fi | |
b4e70030 JB |
16409 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
16410 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
16411 | |
16412 | fi; | |
16413 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16414 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16415 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
16416 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
16417 | fi | |
16418 | ||
16419 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
16420 | ||
16421 | cat >>confdefs.h <<\_ACEOF | |
16422 | #define HAVE_WORKING_VFORK 1 | |
16423 | _ACEOF | |
16424 | ||
bec39cab | 16425 | else |
bec39cab | 16426 | |
a3828db0 MK |
16427 | cat >>confdefs.h <<\_ACEOF |
16428 | #define vfork fork | |
16429 | _ACEOF | |
16430 | ||
bec39cab | 16431 | fi |
a3828db0 MK |
16432 | if test "x$ac_cv_func_fork_works" = xyes; then |
16433 | ||
16434 | cat >>confdefs.h <<\_ACEOF | |
16435 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 16436 | _ACEOF |
c906108c | 16437 | |
c906108c SS |
16438 | fi |
16439 | ||
bec39cab AC |
16440 | |
16441 | ||
a3828db0 | 16442 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 16443 | do |
bec39cab | 16444 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16445 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16446 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16447 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16449 | else | |
16450 | cat >conftest.$ac_ext <<_ACEOF | |
16451 | /* confdefs.h. */ | |
16452 | _ACEOF | |
16453 | cat confdefs.h >>conftest.$ac_ext | |
16454 | cat >>conftest.$ac_ext <<_ACEOF | |
16455 | /* end confdefs.h. */ | |
16456 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16457 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16458 | #define $ac_func innocuous_$ac_func | |
16459 | ||
d3ea6809 MM |
16460 | /* System header to define __stub macros and hopefully few prototypes, |
16461 | which can conflict with char $ac_func (); below. | |
16462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16463 | <limits.h> exists even on freestanding compilers. */ | |
16464 | ||
16465 | #ifdef __STDC__ | |
16466 | # include <limits.h> | |
16467 | #else | |
16468 | # include <assert.h> | |
16469 | #endif | |
16470 | ||
16471 | #undef $ac_func | |
16472 | ||
b4e70030 | 16473 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
16474 | #ifdef __cplusplus |
16475 | extern "C" | |
b4e70030 | 16476 | { |
d3ea6809 | 16477 | #endif |
b4e70030 JB |
16478 | /* We use char because int might match the return type of a gcc2 |
16479 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
16480 | char $ac_func (); |
16481 | /* The GNU C library defines this for functions which it implements | |
16482 | to always fail with ENOSYS. Some functions are actually named | |
16483 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 16485 | choke me |
b4e70030 JB |
16486 | #else |
16487 | char (*f) () = $ac_func; | |
16488 | #endif | |
16489 | #ifdef __cplusplus | |
16490 | } | |
d3ea6809 MM |
16491 | #endif |
16492 | ||
16493 | int | |
16494 | main () | |
16495 | { | |
b4e70030 | 16496 | return f != $ac_func; |
d3ea6809 MM |
16497 | ; |
16498 | return 0; | |
16499 | } | |
16500 | _ACEOF | |
16501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16503 | (eval $ac_link) 2>conftest.er1 | |
16504 | ac_status=$? | |
16505 | grep -v '^ *+' conftest.er1 >conftest.err | |
16506 | rm -f conftest.er1 | |
16507 | cat conftest.err >&5 | |
16508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16509 | (exit $ac_status); } && | |
b4e70030 JB |
16510 | { ac_try='test -z "$ac_c_werror_flag" |
16511 | || test ! -s conftest.err' | |
d3ea6809 MM |
16512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16513 | (eval $ac_try) 2>&5 | |
16514 | ac_status=$? | |
16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16516 | (exit $ac_status); }; } && | |
16517 | { ac_try='test -s conftest$ac_exeext' | |
16518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16519 | (eval $ac_try) 2>&5 | |
16520 | ac_status=$? | |
16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16522 | (exit $ac_status); }; }; then | |
16523 | eval "$as_ac_var=yes" | |
16524 | else | |
16525 | echo "$as_me: failed program was:" >&5 | |
16526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16527 | ||
b4e70030 | 16528 | eval "$as_ac_var=no" |
d3ea6809 MM |
16529 | fi |
16530 | rm -f conftest.err conftest.$ac_objext \ | |
16531 | conftest$ac_exeext conftest.$ac_ext | |
16532 | fi | |
b4e70030 JB |
16533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16534 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
16535 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16536 | cat >>confdefs.h <<_ACEOF | |
16537 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16538 | _ACEOF | |
16539 | ||
16540 | fi | |
16541 | done | |
16542 | ||
16543 | ||
16544 | ||
16545 | for ac_func in getuid getgid | |
16546 | do | |
16547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16550 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
16551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16552 | else | |
16553 | cat >conftest.$ac_ext <<_ACEOF | |
16554 | /* confdefs.h. */ | |
16555 | _ACEOF | |
16556 | cat confdefs.h >>conftest.$ac_ext | |
16557 | cat >>conftest.$ac_ext <<_ACEOF | |
16558 | /* end confdefs.h. */ | |
16559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16561 | #define $ac_func innocuous_$ac_func | |
16562 | ||
97bf5e38 | 16563 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16564 | which can conflict with char $ac_func (); below. |
16565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16566 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 16567 | |
bec39cab AC |
16568 | #ifdef __STDC__ |
16569 | # include <limits.h> | |
16570 | #else | |
16571 | # include <assert.h> | |
16572 | #endif | |
97bf5e38 | 16573 | |
bec39cab AC |
16574 | #undef $ac_func |
16575 | ||
b4e70030 | 16576 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16577 | #ifdef __cplusplus |
16578 | extern "C" | |
b4e70030 | 16579 | { |
bec39cab | 16580 | #endif |
b4e70030 JB |
16581 | /* We use char because int might match the return type of a gcc2 |
16582 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16583 | char $ac_func (); |
97bf5e38 MK |
16584 | /* The GNU C library defines this for functions which it implements |
16585 | to always fail with ENOSYS. Some functions are actually named | |
16586 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16588 | choke me |
b4e70030 JB |
16589 | #else |
16590 | char (*f) () = $ac_func; | |
16591 | #endif | |
16592 | #ifdef __cplusplus | |
16593 | } | |
c906108c | 16594 | #endif |
97bf5e38 | 16595 | |
bec39cab AC |
16596 | int |
16597 | main () | |
16598 | { | |
b4e70030 | 16599 | return f != $ac_func; |
bec39cab AC |
16600 | ; |
16601 | return 0; | |
16602 | } | |
16603 | _ACEOF | |
16604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16606 | (eval $ac_link) 2>conftest.er1 | |
16607 | ac_status=$? | |
16608 | grep -v '^ *+' conftest.er1 >conftest.err | |
16609 | rm -f conftest.er1 | |
16610 | cat conftest.err >&5 | |
16611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16612 | (exit $ac_status); } && | |
b4e70030 JB |
16613 | { ac_try='test -z "$ac_c_werror_flag" |
16614 | || test ! -s conftest.err' | |
bec39cab AC |
16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16616 | (eval $ac_try) 2>&5 | |
16617 | ac_status=$? | |
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16619 | (exit $ac_status); }; } && | |
16620 | { ac_try='test -s conftest$ac_exeext' | |
16621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16622 | (eval $ac_try) 2>&5 | |
16623 | ac_status=$? | |
16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16625 | (exit $ac_status); }; }; then | |
16626 | eval "$as_ac_var=yes" | |
16627 | else | |
16628 | echo "$as_me: failed program was:" >&5 | |
16629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16630 | ||
b4e70030 | 16631 | eval "$as_ac_var=no" |
bec39cab AC |
16632 | fi |
16633 | rm -f conftest.err conftest.$ac_objext \ | |
16634 | conftest$ac_exeext conftest.$ac_ext | |
16635 | fi | |
b4e70030 JB |
16636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16638 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16639 | cat >>confdefs.h <<_ACEOF | |
16640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16641 | _ACEOF | |
c906108c | 16642 | |
c906108c | 16643 | fi |
97bf5e38 | 16644 | done |
c906108c | 16645 | |
bec39cab | 16646 | |
a3828db0 | 16647 | for ac_func in poll |
97bf5e38 | 16648 | do |
bec39cab | 16649 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16650 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16651 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16652 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16654 | else | |
16655 | cat >conftest.$ac_ext <<_ACEOF | |
16656 | /* confdefs.h. */ | |
16657 | _ACEOF | |
16658 | cat confdefs.h >>conftest.$ac_ext | |
16659 | cat >>conftest.$ac_ext <<_ACEOF | |
16660 | /* end confdefs.h. */ | |
16661 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16662 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16663 | #define $ac_func innocuous_$ac_func | |
16664 | ||
97bf5e38 | 16665 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16666 | which can conflict with char $ac_func (); below. |
16667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16668 | <limits.h> exists even on freestanding compilers. */ | |
16669 | ||
16670 | #ifdef __STDC__ | |
16671 | # include <limits.h> | |
16672 | #else | |
16673 | # include <assert.h> | |
16674 | #endif | |
c906108c | 16675 | |
bec39cab | 16676 | #undef $ac_func |
97bf5e38 | 16677 | |
b4e70030 | 16678 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16679 | #ifdef __cplusplus |
16680 | extern "C" | |
b4e70030 | 16681 | { |
bec39cab | 16682 | #endif |
b4e70030 JB |
16683 | /* We use char because int might match the return type of a gcc2 |
16684 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16685 | char $ac_func (); |
97bf5e38 MK |
16686 | /* The GNU C library defines this for functions which it implements |
16687 | to always fail with ENOSYS. Some functions are actually named | |
16688 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16690 | choke me |
b4e70030 JB |
16691 | #else |
16692 | char (*f) () = $ac_func; | |
16693 | #endif | |
16694 | #ifdef __cplusplus | |
16695 | } | |
c906108c | 16696 | #endif |
97bf5e38 | 16697 | |
bec39cab AC |
16698 | int |
16699 | main () | |
16700 | { | |
b4e70030 | 16701 | return f != $ac_func; |
bec39cab AC |
16702 | ; |
16703 | return 0; | |
16704 | } | |
16705 | _ACEOF | |
16706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16708 | (eval $ac_link) 2>conftest.er1 | |
16709 | ac_status=$? | |
16710 | grep -v '^ *+' conftest.er1 >conftest.err | |
16711 | rm -f conftest.er1 | |
16712 | cat conftest.err >&5 | |
16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16714 | (exit $ac_status); } && | |
b4e70030 JB |
16715 | { ac_try='test -z "$ac_c_werror_flag" |
16716 | || test ! -s conftest.err' | |
bec39cab AC |
16717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16718 | (eval $ac_try) 2>&5 | |
16719 | ac_status=$? | |
16720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16721 | (exit $ac_status); }; } && | |
16722 | { ac_try='test -s conftest$ac_exeext' | |
16723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16724 | (eval $ac_try) 2>&5 | |
16725 | ac_status=$? | |
16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16727 | (exit $ac_status); }; }; then | |
16728 | eval "$as_ac_var=yes" | |
16729 | else | |
16730 | echo "$as_me: failed program was:" >&5 | |
16731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16732 | ||
b4e70030 | 16733 | eval "$as_ac_var=no" |
bec39cab AC |
16734 | fi |
16735 | rm -f conftest.err conftest.$ac_objext \ | |
16736 | conftest$ac_exeext conftest.$ac_ext | |
16737 | fi | |
b4e70030 JB |
16738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16739 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16740 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16741 | cat >>confdefs.h <<_ACEOF | |
16742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16743 | _ACEOF | |
c906108c | 16744 | |
c906108c | 16745 | fi |
97bf5e38 | 16746 | done |
c906108c | 16747 | |
bec39cab | 16748 | |
a3828db0 | 16749 | for ac_func in pread64 |
97bf5e38 | 16750 | do |
bec39cab | 16751 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16752 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16753 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16754 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16756 | else | |
16757 | cat >conftest.$ac_ext <<_ACEOF | |
16758 | /* confdefs.h. */ | |
16759 | _ACEOF | |
16760 | cat confdefs.h >>conftest.$ac_ext | |
16761 | cat >>conftest.$ac_ext <<_ACEOF | |
16762 | /* end confdefs.h. */ | |
16763 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16765 | #define $ac_func innocuous_$ac_func | |
16766 | ||
97bf5e38 | 16767 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16768 | which can conflict with char $ac_func (); below. |
16769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16770 | <limits.h> exists even on freestanding compilers. */ | |
16771 | ||
16772 | #ifdef __STDC__ | |
16773 | # include <limits.h> | |
16774 | #else | |
16775 | # include <assert.h> | |
16776 | #endif | |
c906108c | 16777 | |
bec39cab | 16778 | #undef $ac_func |
97bf5e38 | 16779 | |
b4e70030 | 16780 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16781 | #ifdef __cplusplus |
16782 | extern "C" | |
b4e70030 | 16783 | { |
bec39cab | 16784 | #endif |
b4e70030 JB |
16785 | /* We use char because int might match the return type of a gcc2 |
16786 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16787 | char $ac_func (); |
97bf5e38 MK |
16788 | /* The GNU C library defines this for functions which it implements |
16789 | to always fail with ENOSYS. Some functions are actually named | |
16790 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16792 | choke me |
b4e70030 JB |
16793 | #else |
16794 | char (*f) () = $ac_func; | |
16795 | #endif | |
16796 | #ifdef __cplusplus | |
16797 | } | |
c906108c | 16798 | #endif |
97bf5e38 | 16799 | |
bec39cab AC |
16800 | int |
16801 | main () | |
16802 | { | |
b4e70030 | 16803 | return f != $ac_func; |
bec39cab AC |
16804 | ; |
16805 | return 0; | |
16806 | } | |
16807 | _ACEOF | |
16808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16810 | (eval $ac_link) 2>conftest.er1 | |
16811 | ac_status=$? | |
16812 | grep -v '^ *+' conftest.er1 >conftest.err | |
16813 | rm -f conftest.er1 | |
16814 | cat conftest.err >&5 | |
16815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16816 | (exit $ac_status); } && | |
b4e70030 JB |
16817 | { ac_try='test -z "$ac_c_werror_flag" |
16818 | || test ! -s conftest.err' | |
bec39cab AC |
16819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16820 | (eval $ac_try) 2>&5 | |
16821 | ac_status=$? | |
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16823 | (exit $ac_status); }; } && | |
16824 | { ac_try='test -s conftest$ac_exeext' | |
16825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16826 | (eval $ac_try) 2>&5 | |
16827 | ac_status=$? | |
16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16829 | (exit $ac_status); }; }; then | |
16830 | eval "$as_ac_var=yes" | |
16831 | else | |
16832 | echo "$as_me: failed program was:" >&5 | |
16833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16834 | ||
b4e70030 | 16835 | eval "$as_ac_var=no" |
bec39cab AC |
16836 | fi |
16837 | rm -f conftest.err conftest.$ac_objext \ | |
16838 | conftest$ac_exeext conftest.$ac_ext | |
16839 | fi | |
b4e70030 JB |
16840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16841 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16842 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16843 | cat >>confdefs.h <<_ACEOF | |
16844 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16845 | _ACEOF | |
c906108c | 16846 | |
c906108c | 16847 | fi |
97bf5e38 | 16848 | done |
c906108c | 16849 | |
bec39cab | 16850 | |
a3828db0 | 16851 | for ac_func in sbrk |
b757528f | 16852 | do |
bec39cab | 16853 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16854 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16855 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16856 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16858 | else | |
16859 | cat >conftest.$ac_ext <<_ACEOF | |
16860 | /* confdefs.h. */ | |
16861 | _ACEOF | |
16862 | cat confdefs.h >>conftest.$ac_ext | |
16863 | cat >>conftest.$ac_ext <<_ACEOF | |
16864 | /* end confdefs.h. */ | |
16865 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16867 | #define $ac_func innocuous_$ac_func | |
16868 | ||
b757528f | 16869 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16870 | which can conflict with char $ac_func (); below. |
16871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16872 | <limits.h> exists even on freestanding compilers. */ | |
16873 | ||
16874 | #ifdef __STDC__ | |
16875 | # include <limits.h> | |
16876 | #else | |
16877 | # include <assert.h> | |
16878 | #endif | |
b757528f | 16879 | |
bec39cab | 16880 | #undef $ac_func |
b757528f | 16881 | |
b4e70030 | 16882 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16883 | #ifdef __cplusplus |
16884 | extern "C" | |
b4e70030 | 16885 | { |
bec39cab | 16886 | #endif |
b4e70030 JB |
16887 | /* We use char because int might match the return type of a gcc2 |
16888 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16889 | char $ac_func (); |
b757528f JJ |
16890 | /* The GNU C library defines this for functions which it implements |
16891 | to always fail with ENOSYS. Some functions are actually named | |
16892 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16893 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 16894 | choke me |
b4e70030 JB |
16895 | #else |
16896 | char (*f) () = $ac_func; | |
16897 | #endif | |
16898 | #ifdef __cplusplus | |
16899 | } | |
b757528f JJ |
16900 | #endif |
16901 | ||
bec39cab AC |
16902 | int |
16903 | main () | |
16904 | { | |
b4e70030 | 16905 | return f != $ac_func; |
bec39cab AC |
16906 | ; |
16907 | return 0; | |
16908 | } | |
16909 | _ACEOF | |
16910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16912 | (eval $ac_link) 2>conftest.er1 | |
16913 | ac_status=$? | |
16914 | grep -v '^ *+' conftest.er1 >conftest.err | |
16915 | rm -f conftest.er1 | |
16916 | cat conftest.err >&5 | |
16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16918 | (exit $ac_status); } && | |
b4e70030 JB |
16919 | { ac_try='test -z "$ac_c_werror_flag" |
16920 | || test ! -s conftest.err' | |
bec39cab AC |
16921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16922 | (eval $ac_try) 2>&5 | |
16923 | ac_status=$? | |
16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16925 | (exit $ac_status); }; } && | |
16926 | { ac_try='test -s conftest$ac_exeext' | |
16927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16928 | (eval $ac_try) 2>&5 | |
16929 | ac_status=$? | |
16930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16931 | (exit $ac_status); }; }; then | |
16932 | eval "$as_ac_var=yes" | |
16933 | else | |
16934 | echo "$as_me: failed program was:" >&5 | |
16935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16936 | ||
b4e70030 | 16937 | eval "$as_ac_var=no" |
bec39cab AC |
16938 | fi |
16939 | rm -f conftest.err conftest.$ac_objext \ | |
16940 | conftest$ac_exeext conftest.$ac_ext | |
16941 | fi | |
b4e70030 JB |
16942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16943 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16944 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16945 | cat >>confdefs.h <<_ACEOF | |
16946 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16947 | _ACEOF | |
b757528f | 16948 | |
b757528f JJ |
16949 | fi |
16950 | done | |
16951 | ||
bec39cab | 16952 | |
a3828db0 MK |
16953 | |
16954 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 16955 | do |
bec39cab | 16956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16961 | else | |
16962 | cat >conftest.$ac_ext <<_ACEOF | |
16963 | /* confdefs.h. */ | |
16964 | _ACEOF | |
16965 | cat confdefs.h >>conftest.$ac_ext | |
16966 | cat >>conftest.$ac_ext <<_ACEOF | |
16967 | /* end confdefs.h. */ | |
16968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16970 | #define $ac_func innocuous_$ac_func | |
16971 | ||
bcb3dc3d | 16972 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16973 | which can conflict with char $ac_func (); below. |
16974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16975 | <limits.h> exists even on freestanding compilers. */ | |
16976 | ||
16977 | #ifdef __STDC__ | |
16978 | # include <limits.h> | |
16979 | #else | |
16980 | # include <assert.h> | |
16981 | #endif | |
bcb3dc3d | 16982 | |
bec39cab | 16983 | #undef $ac_func |
bcb3dc3d | 16984 | |
b4e70030 | 16985 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16986 | #ifdef __cplusplus |
16987 | extern "C" | |
b4e70030 | 16988 | { |
bec39cab | 16989 | #endif |
b4e70030 JB |
16990 | /* We use char because int might match the return type of a gcc2 |
16991 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16992 | char $ac_func (); |
bcb3dc3d MK |
16993 | /* The GNU C library defines this for functions which it implements |
16994 | to always fail with ENOSYS. Some functions are actually named | |
16995 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 16997 | choke me |
b4e70030 JB |
16998 | #else |
16999 | char (*f) () = $ac_func; | |
17000 | #endif | |
17001 | #ifdef __cplusplus | |
17002 | } | |
bcb3dc3d MK |
17003 | #endif |
17004 | ||
bec39cab AC |
17005 | int |
17006 | main () | |
17007 | { | |
b4e70030 | 17008 | return f != $ac_func; |
bec39cab AC |
17009 | ; |
17010 | return 0; | |
17011 | } | |
17012 | _ACEOF | |
17013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17015 | (eval $ac_link) 2>conftest.er1 | |
17016 | ac_status=$? | |
17017 | grep -v '^ *+' conftest.er1 >conftest.err | |
17018 | rm -f conftest.er1 | |
17019 | cat conftest.err >&5 | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); } && | |
b4e70030 JB |
17022 | { ac_try='test -z "$ac_c_werror_flag" |
17023 | || test ! -s conftest.err' | |
bec39cab AC |
17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17025 | (eval $ac_try) 2>&5 | |
17026 | ac_status=$? | |
17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17028 | (exit $ac_status); }; } && | |
17029 | { ac_try='test -s conftest$ac_exeext' | |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; }; then | |
17035 | eval "$as_ac_var=yes" | |
17036 | else | |
17037 | echo "$as_me: failed program was:" >&5 | |
17038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17039 | ||
b4e70030 | 17040 | eval "$as_ac_var=no" |
bec39cab AC |
17041 | fi |
17042 | rm -f conftest.err conftest.$ac_objext \ | |
17043 | conftest$ac_exeext conftest.$ac_ext | |
17044 | fi | |
b4e70030 JB |
17045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17047 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17048 | cat >>confdefs.h <<_ACEOF | |
17049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17050 | _ACEOF | |
bcb3dc3d | 17051 | |
bcb3dc3d MK |
17052 | fi |
17053 | done | |
17054 | ||
bec39cab | 17055 | |
a3828db0 MK |
17056 | |
17057 | ||
17058 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 17059 | do |
bec39cab | 17060 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17061 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17062 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17063 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17065 | else | |
17066 | cat >conftest.$ac_ext <<_ACEOF | |
17067 | /* confdefs.h. */ | |
17068 | _ACEOF | |
17069 | cat confdefs.h >>conftest.$ac_ext | |
17070 | cat >>conftest.$ac_ext <<_ACEOF | |
17071 | /* end confdefs.h. */ | |
17072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17074 | #define $ac_func innocuous_$ac_func | |
17075 | ||
8b9cf735 | 17076 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17077 | which can conflict with char $ac_func (); below. |
17078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17079 | <limits.h> exists even on freestanding compilers. */ | |
17080 | ||
17081 | #ifdef __STDC__ | |
17082 | # include <limits.h> | |
17083 | #else | |
17084 | # include <assert.h> | |
17085 | #endif | |
8b9cf735 | 17086 | |
bec39cab | 17087 | #undef $ac_func |
8b9cf735 | 17088 | |
b4e70030 | 17089 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17090 | #ifdef __cplusplus |
17091 | extern "C" | |
b4e70030 | 17092 | { |
a3828db0 | 17093 | #endif |
b4e70030 JB |
17094 | /* We use char because int might match the return type of a gcc2 |
17095 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17096 | char $ac_func (); |
17097 | /* The GNU C library defines this for functions which it implements | |
17098 | to always fail with ENOSYS. Some functions are actually named | |
17099 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17101 | choke me |
b4e70030 JB |
17102 | #else |
17103 | char (*f) () = $ac_func; | |
17104 | #endif | |
17105 | #ifdef __cplusplus | |
17106 | } | |
a3828db0 MK |
17107 | #endif |
17108 | ||
bec39cab AC |
17109 | int |
17110 | main () | |
17111 | { | |
b4e70030 | 17112 | return f != $ac_func; |
bec39cab AC |
17113 | ; |
17114 | return 0; | |
17115 | } | |
17116 | _ACEOF | |
a3828db0 MK |
17117 | rm -f conftest.$ac_objext conftest$ac_exeext |
17118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17119 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17120 | ac_status=$? |
17121 | grep -v '^ *+' conftest.er1 >conftest.err | |
17122 | rm -f conftest.er1 | |
17123 | cat conftest.err >&5 | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); } && | |
b4e70030 JB |
17126 | { ac_try='test -z "$ac_c_werror_flag" |
17127 | || test ! -s conftest.err' | |
bec39cab AC |
17128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17129 | (eval $ac_try) 2>&5 | |
17130 | ac_status=$? | |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17132 | (exit $ac_status); }; } && | |
a3828db0 | 17133 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17135 | (eval $ac_try) 2>&5 | |
17136 | ac_status=$? | |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17138 | (exit $ac_status); }; }; then | |
a3828db0 | 17139 | eval "$as_ac_var=yes" |
086ec9eb | 17140 | else |
bec39cab AC |
17141 | echo "$as_me: failed program was:" >&5 |
17142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17143 | ||
b4e70030 | 17144 | eval "$as_ac_var=no" |
a3828db0 MK |
17145 | fi |
17146 | rm -f conftest.err conftest.$ac_objext \ | |
17147 | conftest$ac_exeext conftest.$ac_ext | |
17148 | fi | |
b4e70030 JB |
17149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17152 | cat >>confdefs.h <<_ACEOF | |
17153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17154 | _ACEOF | |
17155 | ||
086ec9eb | 17156 | fi |
a3828db0 MK |
17157 | done |
17158 | ||
17159 | ||
17160 | for ac_func in socketpair | |
17161 | do | |
17162 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17163 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17164 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17165 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17167 | else | |
17168 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17169 | /* confdefs.h. */ |
17170 | _ACEOF | |
17171 | cat confdefs.h >>conftest.$ac_ext | |
17172 | cat >>conftest.$ac_ext <<_ACEOF | |
17173 | /* end confdefs.h. */ | |
a3828db0 MK |
17174 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17175 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17176 | #define $ac_func innocuous_$ac_func | |
17177 | ||
17178 | /* System header to define __stub macros and hopefully few prototypes, | |
17179 | which can conflict with char $ac_func (); below. | |
17180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17181 | <limits.h> exists even on freestanding compilers. */ | |
17182 | ||
17183 | #ifdef __STDC__ | |
17184 | # include <limits.h> | |
17185 | #else | |
17186 | # include <assert.h> | |
17187 | #endif | |
17188 | ||
17189 | #undef $ac_func | |
17190 | ||
b4e70030 | 17191 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17192 | #ifdef __cplusplus |
17193 | extern "C" | |
b4e70030 | 17194 | { |
a3828db0 | 17195 | #endif |
b4e70030 JB |
17196 | /* We use char because int might match the return type of a gcc2 |
17197 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17198 | char $ac_func (); |
17199 | /* The GNU C library defines this for functions which it implements | |
17200 | to always fail with ENOSYS. Some functions are actually named | |
17201 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17202 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17203 | choke me |
b4e70030 JB |
17204 | #else |
17205 | char (*f) () = $ac_func; | |
17206 | #endif | |
17207 | #ifdef __cplusplus | |
17208 | } | |
a3828db0 MK |
17209 | #endif |
17210 | ||
bec39cab AC |
17211 | int |
17212 | main () | |
17213 | { | |
b4e70030 | 17214 | return f != $ac_func; |
bec39cab AC |
17215 | ; |
17216 | return 0; | |
17217 | } | |
17218 | _ACEOF | |
a3828db0 MK |
17219 | rm -f conftest.$ac_objext conftest$ac_exeext |
17220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17221 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17222 | ac_status=$? |
17223 | grep -v '^ *+' conftest.er1 >conftest.err | |
17224 | rm -f conftest.er1 | |
17225 | cat conftest.err >&5 | |
17226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17227 | (exit $ac_status); } && | |
b4e70030 JB |
17228 | { ac_try='test -z "$ac_c_werror_flag" |
17229 | || test ! -s conftest.err' | |
bec39cab AC |
17230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17231 | (eval $ac_try) 2>&5 | |
17232 | ac_status=$? | |
17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17234 | (exit $ac_status); }; } && | |
a3828db0 | 17235 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17237 | (eval $ac_try) 2>&5 | |
17238 | ac_status=$? | |
17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17240 | (exit $ac_status); }; }; then | |
a3828db0 | 17241 | eval "$as_ac_var=yes" |
086ec9eb | 17242 | else |
bec39cab AC |
17243 | echo "$as_me: failed program was:" >&5 |
17244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17245 | ||
b4e70030 | 17246 | eval "$as_ac_var=no" |
086ec9eb | 17247 | fi |
a3828db0 MK |
17248 | rm -f conftest.err conftest.$ac_objext \ |
17249 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 17250 | fi |
b4e70030 JB |
17251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17252 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17253 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17254 | cat >>confdefs.h <<_ACEOF | |
17255 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17256 | _ACEOF |
086ec9eb MK |
17257 | |
17258 | fi | |
a3828db0 | 17259 | done |
086ec9eb | 17260 | |
a3828db0 MK |
17261 | |
17262 | for ac_func in syscall | |
17263 | do | |
17264 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17265 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17266 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17267 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
17269 | else |
17270 | cat >conftest.$ac_ext <<_ACEOF | |
17271 | /* confdefs.h. */ | |
17272 | _ACEOF | |
17273 | cat confdefs.h >>conftest.$ac_ext | |
17274 | cat >>conftest.$ac_ext <<_ACEOF | |
17275 | /* end confdefs.h. */ | |
a3828db0 MK |
17276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17278 | #define $ac_func innocuous_$ac_func | |
17279 | ||
17280 | /* System header to define __stub macros and hopefully few prototypes, | |
17281 | which can conflict with char $ac_func (); below. | |
17282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17283 | <limits.h> exists even on freestanding compilers. */ | |
17284 | ||
17285 | #ifdef __STDC__ | |
17286 | # include <limits.h> | |
17287 | #else | |
17288 | # include <assert.h> | |
17289 | #endif | |
17290 | ||
17291 | #undef $ac_func | |
17292 | ||
b4e70030 | 17293 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17294 | #ifdef __cplusplus |
17295 | extern "C" | |
b4e70030 | 17296 | { |
a3828db0 | 17297 | #endif |
b4e70030 JB |
17298 | /* We use char because int might match the return type of a gcc2 |
17299 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17300 | char $ac_func (); |
17301 | /* The GNU C library defines this for functions which it implements | |
17302 | to always fail with ENOSYS. Some functions are actually named | |
17303 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17305 | choke me |
b4e70030 JB |
17306 | #else |
17307 | char (*f) () = $ac_func; | |
17308 | #endif | |
17309 | #ifdef __cplusplus | |
17310 | } | |
c906108c | 17311 | #endif |
97bf5e38 | 17312 | |
bec39cab AC |
17313 | int |
17314 | main () | |
97bf5e38 | 17315 | { |
b4e70030 | 17316 | return f != $ac_func; |
bec39cab AC |
17317 | ; |
17318 | return 0; | |
97bf5e38 | 17319 | } |
bec39cab | 17320 | _ACEOF |
a3828db0 | 17321 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 17322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17323 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 17324 | ac_status=$? |
a3828db0 MK |
17325 | grep -v '^ *+' conftest.er1 >conftest.err |
17326 | rm -f conftest.er1 | |
17327 | cat conftest.err >&5 | |
bec39cab | 17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 17329 | (exit $ac_status); } && |
b4e70030 JB |
17330 | { ac_try='test -z "$ac_c_werror_flag" |
17331 | || test ! -s conftest.err' | |
a3828db0 MK |
17332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17333 | (eval $ac_try) 2>&5 | |
17334 | ac_status=$? | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17336 | (exit $ac_status); }; } && | |
17337 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
17338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17339 | (eval $ac_try) 2>&5 | |
17340 | ac_status=$? | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); }; }; then | |
a3828db0 | 17343 | eval "$as_ac_var=yes" |
c906108c | 17344 | else |
a3828db0 | 17345 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17346 | sed 's/^/| /' conftest.$ac_ext >&5 |
17347 | ||
b4e70030 | 17348 | eval "$as_ac_var=no" |
97bf5e38 | 17349 | fi |
a3828db0 MK |
17350 | rm -f conftest.err conftest.$ac_objext \ |
17351 | conftest$ac_exeext conftest.$ac_ext | |
17352 | fi | |
b4e70030 JB |
17353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17354 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17355 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17356 | cat >>confdefs.h <<_ACEOF | |
17357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17358 | _ACEOF |
c906108c SS |
17359 | |
17360 | fi | |
a3828db0 | 17361 | done |
c906108c | 17362 | |
a3828db0 MK |
17363 | |
17364 | for ac_func in ttrace | |
17365 | do | |
17366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17367 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17369 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 17371 | else |
bec39cab AC |
17372 | cat >conftest.$ac_ext <<_ACEOF |
17373 | /* confdefs.h. */ | |
17374 | _ACEOF | |
17375 | cat confdefs.h >>conftest.$ac_ext | |
17376 | cat >>conftest.$ac_ext <<_ACEOF | |
17377 | /* end confdefs.h. */ | |
a3828db0 MK |
17378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17380 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 17381 | |
a3828db0 MK |
17382 | /* System header to define __stub macros and hopefully few prototypes, |
17383 | which can conflict with char $ac_func (); below. | |
17384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17385 | <limits.h> exists even on freestanding compilers. */ | |
17386 | ||
17387 | #ifdef __STDC__ | |
17388 | # include <limits.h> | |
17389 | #else | |
17390 | # include <assert.h> | |
17391 | #endif | |
17392 | ||
17393 | #undef $ac_func | |
17394 | ||
b4e70030 | 17395 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17396 | #ifdef __cplusplus |
17397 | extern "C" | |
b4e70030 | 17398 | { |
a3828db0 | 17399 | #endif |
b4e70030 JB |
17400 | /* We use char because int might match the return type of a gcc2 |
17401 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17402 | char $ac_func (); |
17403 | /* The GNU C library defines this for functions which it implements | |
17404 | to always fail with ENOSYS. Some functions are actually named | |
17405 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17406 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17407 | choke me |
b4e70030 JB |
17408 | #else |
17409 | char (*f) () = $ac_func; | |
17410 | #endif | |
17411 | #ifdef __cplusplus | |
17412 | } | |
a3828db0 | 17413 | #endif |
97bf5e38 | 17414 | |
bec39cab AC |
17415 | int |
17416 | main () | |
17417 | { | |
b4e70030 | 17418 | return f != $ac_func; |
bec39cab AC |
17419 | ; |
17420 | return 0; | |
17421 | } | |
17422 | _ACEOF | |
a3828db0 MK |
17423 | rm -f conftest.$ac_objext conftest$ac_exeext |
17424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17425 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17426 | ac_status=$? |
17427 | grep -v '^ *+' conftest.er1 >conftest.err | |
17428 | rm -f conftest.er1 | |
17429 | cat conftest.err >&5 | |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17431 | (exit $ac_status); } && | |
b4e70030 JB |
17432 | { ac_try='test -z "$ac_c_werror_flag" |
17433 | || test ! -s conftest.err' | |
bec39cab AC |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; } && | |
a3828db0 | 17439 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17441 | (eval $ac_try) 2>&5 | |
17442 | ac_status=$? | |
17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17444 | (exit $ac_status); }; }; then | |
a3828db0 | 17445 | eval "$as_ac_var=yes" |
b83266a0 | 17446 | else |
bec39cab AC |
17447 | echo "$as_me: failed program was:" >&5 |
17448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17449 | ||
b4e70030 | 17450 | eval "$as_ac_var=no" |
b83266a0 | 17451 | fi |
a3828db0 MK |
17452 | rm -f conftest.err conftest.$ac_objext \ |
17453 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 17454 | fi |
b4e70030 JB |
17455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17457 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17458 | cat >>confdefs.h <<_ACEOF | |
17459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17460 | _ACEOF |
b83266a0 | 17461 | |
97bf5e38 | 17462 | fi |
a3828db0 | 17463 | done |
b83266a0 | 17464 | |
a3828db0 MK |
17465 | |
17466 | for ac_func in wborder | |
17467 | do | |
17468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17473 | else | |
17474 | cat >conftest.$ac_ext <<_ACEOF | |
17475 | /* confdefs.h. */ | |
17476 | _ACEOF | |
17477 | cat confdefs.h >>conftest.$ac_ext | |
17478 | cat >>conftest.$ac_ext <<_ACEOF | |
17479 | /* end confdefs.h. */ | |
a3828db0 MK |
17480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17482 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 17483 | |
a3828db0 MK |
17484 | /* System header to define __stub macros and hopefully few prototypes, |
17485 | which can conflict with char $ac_func (); below. | |
17486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17487 | <limits.h> exists even on freestanding compilers. */ | |
17488 | ||
17489 | #ifdef __STDC__ | |
17490 | # include <limits.h> | |
17491 | #else | |
17492 | # include <assert.h> | |
17493 | #endif | |
17494 | ||
17495 | #undef $ac_func | |
17496 | ||
b4e70030 | 17497 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17498 | #ifdef __cplusplus |
17499 | extern "C" | |
b4e70030 | 17500 | { |
a3828db0 | 17501 | #endif |
b4e70030 JB |
17502 | /* We use char because int might match the return type of a gcc2 |
17503 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17504 | char $ac_func (); |
17505 | /* The GNU C library defines this for functions which it implements | |
17506 | to always fail with ENOSYS. Some functions are actually named | |
17507 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17509 | choke me |
b4e70030 JB |
17510 | #else |
17511 | char (*f) () = $ac_func; | |
17512 | #endif | |
17513 | #ifdef __cplusplus | |
17514 | } | |
a3828db0 | 17515 | #endif |
97bf5e38 | 17516 | |
bec39cab AC |
17517 | int |
17518 | main () | |
17519 | { | |
b4e70030 | 17520 | return f != $ac_func; |
bec39cab AC |
17521 | ; |
17522 | return 0; | |
17523 | } | |
17524 | _ACEOF | |
a3828db0 MK |
17525 | rm -f conftest.$ac_objext conftest$ac_exeext |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17527 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17528 | ac_status=$? |
17529 | grep -v '^ *+' conftest.er1 >conftest.err | |
17530 | rm -f conftest.er1 | |
17531 | cat conftest.err >&5 | |
17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17533 | (exit $ac_status); } && | |
b4e70030 JB |
17534 | { ac_try='test -z "$ac_c_werror_flag" |
17535 | || test ! -s conftest.err' | |
bec39cab AC |
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17537 | (eval $ac_try) 2>&5 | |
17538 | ac_status=$? | |
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17540 | (exit $ac_status); }; } && | |
a3828db0 | 17541 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17543 | (eval $ac_try) 2>&5 | |
17544 | ac_status=$? | |
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17546 | (exit $ac_status); }; }; then | |
a3828db0 | 17547 | eval "$as_ac_var=yes" |
a4db0f07 | 17548 | else |
bec39cab AC |
17549 | echo "$as_me: failed program was:" >&5 |
17550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17551 | ||
b4e70030 | 17552 | eval "$as_ac_var=no" |
a4db0f07 | 17553 | fi |
a3828db0 MK |
17554 | rm -f conftest.err conftest.$ac_objext \ |
17555 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 17556 | fi |
b4e70030 JB |
17557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17559 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17560 | cat >>confdefs.h <<_ACEOF | |
17561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17562 | _ACEOF |
a4db0f07 RH |
17563 | |
17564 | fi | |
a3828db0 | 17565 | done |
c906108c | 17566 | |
06825bd1 | 17567 | |
a3828db0 MK |
17568 | # Check the return and argument types of ptrace. No canned test for |
17569 | # this, so roll our own. | |
17570 | gdb_ptrace_headers=' | |
17571 | #if HAVE_SYS_TYPES_H | |
17572 | # include <sys/types.h> | |
17573 | #endif | |
17574 | #if HAVE_SYS_PTRACE_H | |
17575 | # include <sys/ptrace.h> | |
17576 | #endif | |
17577 | #if HAVE_UNISTD_H | |
17578 | # include <unistd.h> | |
17579 | #endif | |
17580 | ' | |
17581 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
17582 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
17583 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 17584 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
17585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17586 | else | |
17587 | cat >conftest.$ac_ext <<_ACEOF | |
17588 | /* confdefs.h. */ | |
17589 | _ACEOF | |
17590 | cat confdefs.h >>conftest.$ac_ext | |
17591 | cat >>conftest.$ac_ext <<_ACEOF | |
17592 | /* end confdefs.h. */ | |
a3828db0 MK |
17593 | $gdb_ptrace_headers |
17594 | ||
bec39cab AC |
17595 | int |
17596 | main () | |
17597 | { | |
a3828db0 MK |
17598 | #ifndef ptrace |
17599 | char *p = (char *) ptrace; | |
06825bd1 | 17600 | #endif |
a3828db0 | 17601 | |
bec39cab AC |
17602 | ; |
17603 | return 0; | |
17604 | } | |
17605 | _ACEOF | |
17606 | rm -f conftest.$ac_objext | |
17607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17608 | (eval $ac_compile) 2>conftest.er1 | |
17609 | ac_status=$? | |
17610 | grep -v '^ *+' conftest.er1 >conftest.err | |
17611 | rm -f conftest.er1 | |
17612 | cat conftest.err >&5 | |
17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17614 | (exit $ac_status); } && | |
b4e70030 JB |
17615 | { ac_try='test -z "$ac_c_werror_flag" |
17616 | || test ! -s conftest.err' | |
bec39cab AC |
17617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17618 | (eval $ac_try) 2>&5 | |
17619 | ac_status=$? | |
17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17621 | (exit $ac_status); }; } && | |
17622 | { ac_try='test -s conftest.$ac_objext' | |
17623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17624 | (eval $ac_try) 2>&5 | |
17625 | ac_status=$? | |
17626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17627 | (exit $ac_status); }; }; then | |
a3828db0 | 17628 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 17629 | else |
bec39cab AC |
17630 | echo "$as_me: failed program was:" >&5 |
17631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17632 | ||
b4e70030 | 17633 | ac_cv_have_decl_ptrace=no |
06825bd1 | 17634 | fi |
bec39cab | 17635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 17636 | fi |
b4e70030 JB |
17637 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
17638 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 17639 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 17640 | |
a3828db0 MK |
17641 | cat >>confdefs.h <<_ACEOF |
17642 | #define HAVE_DECL_PTRACE 1 | |
17643 | _ACEOF | |
bec39cab | 17644 | |
bec39cab | 17645 | |
a3828db0 MK |
17646 | else |
17647 | cat >>confdefs.h <<_ACEOF | |
17648 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 17649 | _ACEOF |
06825bd1 | 17650 | |
a3828db0 MK |
17651 | |
17652 | : ${gdb_cv_func_ptrace_ret='int'} | |
17653 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
17654 | ||
06825bd1 MK |
17655 | fi |
17656 | ||
a3828db0 MK |
17657 | |
17658 | # Check return type. | |
b4e70030 JB |
17659 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
17660 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 17661 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
17662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17663 | else | |
17664 | cat >conftest.$ac_ext <<_ACEOF | |
17665 | /* confdefs.h. */ | |
17666 | _ACEOF | |
17667 | cat confdefs.h >>conftest.$ac_ext | |
17668 | cat >>conftest.$ac_ext <<_ACEOF | |
17669 | /* end confdefs.h. */ | |
a3828db0 | 17670 | $gdb_ptrace_headers |
bec39cab AC |
17671 | int |
17672 | main () | |
17673 | { | |
a3828db0 | 17674 | extern int ptrace (); |
bec39cab AC |
17675 | ; |
17676 | return 0; | |
17677 | } | |
17678 | _ACEOF | |
17679 | rm -f conftest.$ac_objext | |
17680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17681 | (eval $ac_compile) 2>conftest.er1 | |
17682 | ac_status=$? | |
17683 | grep -v '^ *+' conftest.er1 >conftest.err | |
17684 | rm -f conftest.er1 | |
17685 | cat conftest.err >&5 | |
17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17687 | (exit $ac_status); } && | |
b4e70030 JB |
17688 | { ac_try='test -z "$ac_c_werror_flag" |
17689 | || test ! -s conftest.err' | |
bec39cab AC |
17690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17691 | (eval $ac_try) 2>&5 | |
17692 | ac_status=$? | |
17693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17694 | (exit $ac_status); }; } && | |
17695 | { ac_try='test -s conftest.$ac_objext' | |
17696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17697 | (eval $ac_try) 2>&5 | |
17698 | ac_status=$? | |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17700 | (exit $ac_status); }; }; then | |
a3828db0 | 17701 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 17702 | else |
bec39cab AC |
17703 | echo "$as_me: failed program was:" >&5 |
17704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17705 | ||
b4e70030 | 17706 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 17707 | fi |
bec39cab | 17708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 17709 | fi |
b4e70030 JB |
17710 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
17711 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 17712 | |
a3828db0 MK |
17713 | cat >>confdefs.h <<_ACEOF |
17714 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 17715 | _ACEOF |
70f9f479 | 17716 | |
a3828db0 | 17717 | # Check argument types. |
b4e70030 JB |
17718 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
17719 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 17720 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
17721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17722 | else | |
a3828db0 MK |
17723 | |
17724 | for gdb_arg1 in 'int' 'long'; do | |
17725 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
17726 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
17727 | for gdb_arg4 in 'int' 'long'; do | |
17728 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17729 | /* confdefs.h. */ |
17730 | _ACEOF | |
17731 | cat confdefs.h >>conftest.$ac_ext | |
17732 | cat >>conftest.$ac_ext <<_ACEOF | |
17733 | /* end confdefs.h. */ | |
a3828db0 | 17734 | $gdb_ptrace_headers |
bec39cab AC |
17735 | int |
17736 | main () | |
17737 | { | |
a3828db0 MK |
17738 | |
17739 | extern $gdb_cv_func_ptrace_ret | |
17740 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
17741 | ||
bec39cab AC |
17742 | ; |
17743 | return 0; | |
17744 | } | |
17745 | _ACEOF | |
17746 | rm -f conftest.$ac_objext | |
17747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17748 | (eval $ac_compile) 2>conftest.er1 | |
17749 | ac_status=$? | |
17750 | grep -v '^ *+' conftest.er1 >conftest.err | |
17751 | rm -f conftest.er1 | |
17752 | cat conftest.err >&5 | |
17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17754 | (exit $ac_status); } && | |
b4e70030 JB |
17755 | { ac_try='test -z "$ac_c_werror_flag" |
17756 | || test ! -s conftest.err' | |
bec39cab AC |
17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17758 | (eval $ac_try) 2>&5 | |
17759 | ac_status=$? | |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; } && | |
17762 | { ac_try='test -s conftest.$ac_objext' | |
17763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17764 | (eval $ac_try) 2>&5 | |
17765 | ac_status=$? | |
17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17767 | (exit $ac_status); }; }; then | |
a3828db0 MK |
17768 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
17769 | break 4; | |
5c7f2947 | 17770 | else |
bec39cab AC |
17771 | echo "$as_me: failed program was:" >&5 |
17772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17773 | ||
5c7f2947 | 17774 | fi |
bec39cab | 17775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17776 | for gdb_arg5 in 'int *' 'int' 'long'; do |
17777 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17778 | /* confdefs.h. */ |
17779 | _ACEOF | |
17780 | cat confdefs.h >>conftest.$ac_ext | |
17781 | cat >>conftest.$ac_ext <<_ACEOF | |
17782 | /* end confdefs.h. */ | |
a3828db0 | 17783 | $gdb_ptrace_headers |
bec39cab AC |
17784 | int |
17785 | main () | |
17786 | { | |
a3828db0 MK |
17787 | |
17788 | extern $gdb_cv_func_ptrace_ret | |
17789 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
17790 | ||
bec39cab AC |
17791 | ; |
17792 | return 0; | |
17793 | } | |
17794 | _ACEOF | |
17795 | rm -f conftest.$ac_objext | |
17796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17797 | (eval $ac_compile) 2>conftest.er1 | |
17798 | ac_status=$? | |
17799 | grep -v '^ *+' conftest.er1 >conftest.err | |
17800 | rm -f conftest.er1 | |
17801 | cat conftest.err >&5 | |
17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17803 | (exit $ac_status); } && | |
b4e70030 JB |
17804 | { ac_try='test -z "$ac_c_werror_flag" |
17805 | || test ! -s conftest.err' | |
bec39cab AC |
17806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17807 | (eval $ac_try) 2>&5 | |
17808 | ac_status=$? | |
17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17810 | (exit $ac_status); }; } && | |
17811 | { ac_try='test -s conftest.$ac_objext' | |
17812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17813 | (eval $ac_try) 2>&5 | |
17814 | ac_status=$? | |
17815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17816 | (exit $ac_status); }; }; then | |
a3828db0 MK |
17817 | |
17818 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
17819 | break 5; | |
78434e59 | 17820 | else |
bec39cab AC |
17821 | echo "$as_me: failed program was:" >&5 |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
78434e59 | 17824 | fi |
bec39cab | 17825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17826 | done |
17827 | done | |
17828 | done | |
17829 | done | |
17830 | done | |
17831 | # Provide a safe default value. | |
17832 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
17833 | ||
78434e59 | 17834 | fi |
b4e70030 JB |
17835 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
17836 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
17837 | ac_save_IFS=$IFS; IFS=',' |
17838 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
17839 | IFS=$ac_save_IFS | |
17840 | shift | |
bec39cab | 17841 | |
a3828db0 MK |
17842 | cat >>confdefs.h <<_ACEOF |
17843 | #define PTRACE_TYPE_ARG3 $3 | |
17844 | _ACEOF | |
17845 | ||
17846 | if test -n "$5"; then | |
17847 | ||
17848 | cat >>confdefs.h <<_ACEOF | |
17849 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 17850 | _ACEOF |
78434e59 MK |
17851 | |
17852 | fi | |
17853 | ||
a3828db0 | 17854 | if test "$cross_compiling" = no; then |
b4e70030 JB |
17855 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
17856 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 17857 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 17858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
17859 | else |
17860 | if test "$cross_compiling" = yes; then | |
17861 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
17862 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
17863 | { (exit 1); exit 1; }; } | |
bec39cab AC |
17864 | else |
17865 | cat >conftest.$ac_ext <<_ACEOF | |
17866 | /* confdefs.h. */ | |
17867 | _ACEOF | |
17868 | cat confdefs.h >>conftest.$ac_ext | |
17869 | cat >>conftest.$ac_ext <<_ACEOF | |
17870 | /* end confdefs.h. */ | |
b4e70030 JB |
17871 | #if HAVE_UNISTD_H |
17872 | # include <unistd.h> | |
17873 | #endif | |
17874 | ||
bec39cab AC |
17875 | int |
17876 | main () | |
17877 | { | |
a3828db0 MK |
17878 | /* If this system has a BSD-style setpgrp which takes arguments, |
17879 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
17880 | exit successfully. */ | |
b4e70030 | 17881 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
17882 | ; |
17883 | return 0; | |
17884 | } | |
17885 | _ACEOF | |
a3828db0 MK |
17886 | rm -f conftest$ac_exeext |
17887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17888 | (eval $ac_link) 2>&5 | |
bec39cab AC |
17889 | ac_status=$? |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 17891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
17892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17893 | (eval $ac_try) 2>&5 | |
17894 | ac_status=$? | |
17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17896 | (exit $ac_status); }; }; then | |
a3828db0 | 17897 | ac_cv_func_setpgrp_void=no |
c906108c | 17898 | else |
a3828db0 MK |
17899 | echo "$as_me: program exited with status $ac_status" >&5 |
17900 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
17901 | sed 's/^/| /' conftest.$ac_ext >&5 |
17902 | ||
a3828db0 MK |
17903 | ( exit $ac_status ) |
17904 | ac_cv_func_setpgrp_void=yes | |
c906108c | 17905 | fi |
b4e70030 | 17906 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 17907 | fi |
a3828db0 | 17908 | fi |
b4e70030 JB |
17909 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
17910 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
17911 | if test $ac_cv_func_setpgrp_void = yes; then |
17912 | ||
17913 | cat >>confdefs.h <<\_ACEOF | |
17914 | #define SETPGRP_VOID 1 | |
bec39cab | 17915 | _ACEOF |
97bf5e38 MK |
17916 | |
17917 | fi | |
a3828db0 MK |
17918 | |
17919 | else | |
b4e70030 JB |
17920 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
17921 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 17922 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 17923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 17924 | else |
bec39cab AC |
17925 | cat >conftest.$ac_ext <<_ACEOF |
17926 | /* confdefs.h. */ | |
17927 | _ACEOF | |
17928 | cat confdefs.h >>conftest.$ac_ext | |
17929 | cat >>conftest.$ac_ext <<_ACEOF | |
17930 | /* end confdefs.h. */ | |
a3828db0 MK |
17931 | |
17932 | #include <unistd.h> | |
17933 | ||
bec39cab AC |
17934 | int |
17935 | main () | |
17936 | { | |
a3828db0 MK |
17937 | |
17938 | if (setpgrp(1,1) == -1) | |
17939 | exit (0); | |
17940 | else | |
17941 | exit (1); | |
17942 | ||
bec39cab AC |
17943 | ; |
17944 | return 0; | |
17945 | } | |
17946 | _ACEOF | |
17947 | rm -f conftest.$ac_objext | |
17948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17949 | (eval $ac_compile) 2>conftest.er1 | |
17950 | ac_status=$? | |
17951 | grep -v '^ *+' conftest.er1 >conftest.err | |
17952 | rm -f conftest.er1 | |
17953 | cat conftest.err >&5 | |
17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17955 | (exit $ac_status); } && | |
b4e70030 JB |
17956 | { ac_try='test -z "$ac_c_werror_flag" |
17957 | || test ! -s conftest.err' | |
bec39cab AC |
17958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17959 | (eval $ac_try) 2>&5 | |
17960 | ac_status=$? | |
17961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17962 | (exit $ac_status); }; } && | |
17963 | { ac_try='test -s conftest.$ac_objext' | |
17964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17965 | (eval $ac_try) 2>&5 | |
17966 | ac_status=$? | |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17968 | (exit $ac_status); }; }; then | |
a3828db0 | 17969 | ac_cv_func_setpgrp_void=no |
c906108c | 17970 | else |
bec39cab AC |
17971 | echo "$as_me: failed program was:" >&5 |
17972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17973 | ||
b4e70030 | 17974 | ac_cv_func_setpgrp_void=yes |
c906108c | 17975 | fi |
bec39cab | 17976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17977 | fi |
b4e70030 JB |
17978 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
17979 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 17980 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 17981 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 17982 | #define SETPGRP_VOID 1 |
bec39cab | 17983 | _ACEOF |
c3f6f71d | 17984 | |
a3828db0 | 17985 | fi |
c906108c SS |
17986 | fi |
17987 | ||
a3828db0 MK |
17988 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
17989 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
17990 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
17991 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 17992 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
17993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17994 | else | |
17995 | cat >conftest.$ac_ext <<_ACEOF | |
17996 | /* confdefs.h. */ | |
17997 | _ACEOF | |
17998 | cat confdefs.h >>conftest.$ac_ext | |
17999 | cat >>conftest.$ac_ext <<_ACEOF | |
18000 | /* end confdefs.h. */ | |
a3828db0 MK |
18001 | |
18002 | #include <setjmp.h> | |
18003 | ||
bec39cab AC |
18004 | int |
18005 | main () | |
18006 | { | |
a3828db0 | 18007 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
18008 | ; |
18009 | return 0; | |
18010 | } | |
18011 | _ACEOF | |
18012 | rm -f conftest.$ac_objext | |
18013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18014 | (eval $ac_compile) 2>conftest.er1 | |
18015 | ac_status=$? | |
18016 | grep -v '^ *+' conftest.er1 >conftest.err | |
18017 | rm -f conftest.er1 | |
18018 | cat conftest.err >&5 | |
18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18020 | (exit $ac_status); } && | |
b4e70030 JB |
18021 | { ac_try='test -z "$ac_c_werror_flag" |
18022 | || test ! -s conftest.err' | |
bec39cab AC |
18023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18024 | (eval $ac_try) 2>&5 | |
18025 | ac_status=$? | |
18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18027 | (exit $ac_status); }; } && | |
18028 | { ac_try='test -s conftest.$ac_objext' | |
18029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18030 | (eval $ac_try) 2>&5 | |
18031 | ac_status=$? | |
18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18033 | (exit $ac_status); }; }; then | |
a3828db0 | 18034 | gdb_cv_func_sigsetjmp=yes |
c906108c | 18035 | else |
bec39cab AC |
18036 | echo "$as_me: failed program was:" >&5 |
18037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18038 | ||
b4e70030 | 18039 | gdb_cv_func_sigsetjmp=no |
c906108c | 18040 | fi |
bec39cab | 18041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18042 | fi |
b4e70030 JB |
18043 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
18044 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 18045 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 18046 | |
a3828db0 MK |
18047 | cat >>confdefs.h <<\_ACEOF |
18048 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 18049 | _ACEOF |
c906108c | 18050 | |
97bf5e38 | 18051 | fi |
c906108c | 18052 | |
a3828db0 MK |
18053 | # Assume we'll default to using the included libiberty regex. |
18054 | gdb_use_included_regex=yes | |
18055 | ||
18056 | # However, if the system regex is GNU regex, then default to *not* | |
18057 | # using the included regex. | |
b4e70030 JB |
18058 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
18059 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 18060 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
18061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18062 | else | |
18063 | cat >conftest.$ac_ext <<_ACEOF | |
18064 | /* confdefs.h. */ | |
18065 | _ACEOF | |
18066 | cat confdefs.h >>conftest.$ac_ext | |
18067 | cat >>conftest.$ac_ext <<_ACEOF | |
18068 | /* end confdefs.h. */ | |
a3828db0 | 18069 | #include <gnu-versions.h> |
bec39cab AC |
18070 | int |
18071 | main () | |
18072 | { | |
a3828db0 MK |
18073 | #define REGEX_INTERFACE_VERSION 1 |
18074 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
18075 | # error "Version mismatch" | |
18076 | #endif | |
bec39cab AC |
18077 | ; |
18078 | return 0; | |
18079 | } | |
18080 | _ACEOF | |
18081 | rm -f conftest.$ac_objext | |
18082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18083 | (eval $ac_compile) 2>conftest.er1 | |
18084 | ac_status=$? | |
18085 | grep -v '^ *+' conftest.er1 >conftest.err | |
18086 | rm -f conftest.er1 | |
18087 | cat conftest.err >&5 | |
18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18089 | (exit $ac_status); } && | |
b4e70030 JB |
18090 | { ac_try='test -z "$ac_c_werror_flag" |
18091 | || test ! -s conftest.err' | |
bec39cab AC |
18092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18093 | (eval $ac_try) 2>&5 | |
18094 | ac_status=$? | |
18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18096 | (exit $ac_status); }; } && | |
18097 | { ac_try='test -s conftest.$ac_objext' | |
18098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18099 | (eval $ac_try) 2>&5 | |
18100 | ac_status=$? | |
18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | (exit $ac_status); }; }; then | |
a3828db0 | 18103 | gdb_cv_have_gnu_regex=yes |
c906108c | 18104 | else |
bec39cab AC |
18105 | echo "$as_me: failed program was:" >&5 |
18106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18107 | ||
b4e70030 | 18108 | gdb_cv_have_gnu_regex=no |
c906108c | 18109 | fi |
bec39cab | 18110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18111 | fi |
b4e70030 JB |
18112 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
18113 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
18114 | if test $gdb_cv_have_gnu_regex = yes; then |
18115 | gdb_use_included_regex=no | |
18116 | fi | |
c906108c | 18117 | |
a3828db0 | 18118 | |
b4e70030 | 18119 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 18120 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
18121 | withval="$with_included_regex" |
18122 | gdb_with_regex=$withval | |
a3828db0 MK |
18123 | else |
18124 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 18125 | fi; |
a3828db0 MK |
18126 | if test "$gdb_with_regex" = yes; then |
18127 | ||
18128 | cat >>confdefs.h <<\_ACEOF | |
18129 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 18130 | _ACEOF |
c906108c | 18131 | |
97bf5e38 | 18132 | fi |
c906108c | 18133 | |
5c45e068 | 18134 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
18135 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
18136 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 18137 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
18138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18139 | else | |
18140 | cat >conftest.$ac_ext <<_ACEOF | |
18141 | /* confdefs.h. */ | |
18142 | _ACEOF | |
18143 | cat confdefs.h >>conftest.$ac_ext | |
18144 | cat >>conftest.$ac_ext <<_ACEOF | |
18145 | /* end confdefs.h. */ | |
a3828db0 MK |
18146 | #include <sys/param.h> |
18147 | #include <sys/proc.h> | |
5c45e068 MK |
18148 | |
18149 | ||
bec39cab AC |
18150 | int |
18151 | main () | |
18152 | { | |
5c45e068 MK |
18153 | static struct thread ac_aggr; |
18154 | if (ac_aggr.td_pcb) | |
18155 | return 0; | |
bec39cab AC |
18156 | ; |
18157 | return 0; | |
18158 | } | |
18159 | _ACEOF | |
18160 | rm -f conftest.$ac_objext | |
18161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18162 | (eval $ac_compile) 2>conftest.er1 | |
18163 | ac_status=$? | |
18164 | grep -v '^ *+' conftest.er1 >conftest.err | |
18165 | rm -f conftest.er1 | |
18166 | cat conftest.err >&5 | |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18168 | (exit $ac_status); } && | |
b4e70030 JB |
18169 | { ac_try='test -z "$ac_c_werror_flag" |
18170 | || test ! -s conftest.err' | |
bec39cab AC |
18171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18172 | (eval $ac_try) 2>&5 | |
18173 | ac_status=$? | |
18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18175 | (exit $ac_status); }; } && | |
18176 | { ac_try='test -s conftest.$ac_objext' | |
18177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18178 | (eval $ac_try) 2>&5 | |
18179 | ac_status=$? | |
18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18181 | (exit $ac_status); }; }; then | |
5c45e068 | 18182 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 18183 | else |
bec39cab AC |
18184 | echo "$as_me: failed program was:" >&5 |
18185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18186 | ||
b4e70030 | 18187 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18188 | /* confdefs.h. */ |
18189 | _ACEOF | |
18190 | cat confdefs.h >>conftest.$ac_ext | |
18191 | cat >>conftest.$ac_ext <<_ACEOF | |
18192 | /* end confdefs.h. */ | |
18193 | #include <sys/param.h> | |
18194 | #include <sys/proc.h> | |
18195 | ||
18196 | ||
18197 | int | |
18198 | main () | |
18199 | { | |
18200 | static struct thread ac_aggr; | |
18201 | if (sizeof ac_aggr.td_pcb) | |
18202 | return 0; | |
18203 | ; | |
18204 | return 0; | |
18205 | } | |
18206 | _ACEOF | |
18207 | rm -f conftest.$ac_objext | |
18208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18209 | (eval $ac_compile) 2>conftest.er1 | |
18210 | ac_status=$? | |
18211 | grep -v '^ *+' conftest.er1 >conftest.err | |
18212 | rm -f conftest.er1 | |
18213 | cat conftest.err >&5 | |
18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18215 | (exit $ac_status); } && | |
b4e70030 JB |
18216 | { ac_try='test -z "$ac_c_werror_flag" |
18217 | || test ! -s conftest.err' | |
5c45e068 MK |
18218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18219 | (eval $ac_try) 2>&5 | |
18220 | ac_status=$? | |
18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18222 | (exit $ac_status); }; } && | |
18223 | { ac_try='test -s conftest.$ac_objext' | |
18224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18225 | (eval $ac_try) 2>&5 | |
18226 | ac_status=$? | |
18227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18228 | (exit $ac_status); }; }; then | |
18229 | ac_cv_member_struct_thread_td_pcb=yes | |
18230 | else | |
18231 | echo "$as_me: failed program was:" >&5 | |
18232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18233 | ||
b4e70030 | 18234 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
18235 | fi |
18236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 18237 | fi |
bec39cab | 18238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18239 | fi |
b4e70030 JB |
18240 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
18241 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 18242 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 18243 | |
5c45e068 | 18244 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18245 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 18246 | _ACEOF |
c906108c | 18247 | |
5c45e068 | 18248 | |
97bf5e38 | 18249 | fi |
c906108c | 18250 | |
5c45e068 | 18251 | |
a3828db0 | 18252 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
18253 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
18254 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 18255 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
18256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18257 | else | |
18258 | cat >conftest.$ac_ext <<_ACEOF | |
18259 | /* confdefs.h. */ | |
18260 | _ACEOF | |
18261 | cat confdefs.h >>conftest.$ac_ext | |
18262 | cat >>conftest.$ac_ext <<_ACEOF | |
18263 | /* end confdefs.h. */ | |
a3828db0 MK |
18264 | #include <sys/param.h> |
18265 | #include <sys/lwp.h> | |
bec39cab AC |
18266 | int |
18267 | main () | |
18268 | { | |
a3828db0 | 18269 | struct lwp l; |
bec39cab AC |
18270 | ; |
18271 | return 0; | |
18272 | } | |
18273 | _ACEOF | |
18274 | rm -f conftest.$ac_objext | |
18275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18276 | (eval $ac_compile) 2>conftest.er1 | |
18277 | ac_status=$? | |
18278 | grep -v '^ *+' conftest.er1 >conftest.err | |
18279 | rm -f conftest.er1 | |
18280 | cat conftest.err >&5 | |
18281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18282 | (exit $ac_status); } && | |
b4e70030 JB |
18283 | { ac_try='test -z "$ac_c_werror_flag" |
18284 | || test ! -s conftest.err' | |
bec39cab AC |
18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18286 | (eval $ac_try) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); }; } && | |
18290 | { ac_try='test -s conftest.$ac_objext' | |
18291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18292 | (eval $ac_try) 2>&5 | |
18293 | ac_status=$? | |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18295 | (exit $ac_status); }; }; then | |
a3828db0 | 18296 | gdb_cv_struct_lwp=yes |
c906108c | 18297 | else |
bec39cab AC |
18298 | echo "$as_me: failed program was:" >&5 |
18299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18300 | ||
b4e70030 | 18301 | gdb_cv_struct_lwp=no |
c906108c | 18302 | fi |
bec39cab | 18303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18304 | fi |
b4e70030 JB |
18305 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
18306 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 18307 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 18308 | |
a3828db0 MK |
18309 | cat >>confdefs.h <<\_ACEOF |
18310 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 18311 | _ACEOF |
c906108c | 18312 | |
97bf5e38 | 18313 | fi |
c906108c | 18314 | |
a3828db0 | 18315 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
18316 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
18317 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 18318 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
18319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18320 | else | |
18321 | cat >conftest.$ac_ext <<_ACEOF | |
18322 | /* confdefs.h. */ | |
18323 | _ACEOF | |
18324 | cat confdefs.h >>conftest.$ac_ext | |
18325 | cat >>conftest.$ac_ext <<_ACEOF | |
18326 | /* end confdefs.h. */ | |
a3828db0 MK |
18327 | #include <sys/types.h> |
18328 | #include <machine/reg.h> | |
bec39cab AC |
18329 | int |
18330 | main () | |
18331 | { | |
a3828db0 | 18332 | struct reg r; |
bec39cab AC |
18333 | ; |
18334 | return 0; | |
18335 | } | |
18336 | _ACEOF | |
18337 | rm -f conftest.$ac_objext | |
18338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18339 | (eval $ac_compile) 2>conftest.er1 | |
18340 | ac_status=$? | |
18341 | grep -v '^ *+' conftest.er1 >conftest.err | |
18342 | rm -f conftest.er1 | |
18343 | cat conftest.err >&5 | |
18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18345 | (exit $ac_status); } && | |
b4e70030 JB |
18346 | { ac_try='test -z "$ac_c_werror_flag" |
18347 | || test ! -s conftest.err' | |
bec39cab AC |
18348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18349 | (eval $ac_try) 2>&5 | |
18350 | ac_status=$? | |
18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18352 | (exit $ac_status); }; } && | |
18353 | { ac_try='test -s conftest.$ac_objext' | |
18354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18355 | (eval $ac_try) 2>&5 | |
18356 | ac_status=$? | |
18357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18358 | (exit $ac_status); }; }; then | |
a3828db0 | 18359 | gdb_cv_struct_reg=yes |
27ca5dad | 18360 | else |
bec39cab AC |
18361 | echo "$as_me: failed program was:" >&5 |
18362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18363 | ||
b4e70030 | 18364 | gdb_cv_struct_reg=no |
27ca5dad | 18365 | fi |
bec39cab | 18366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 18367 | fi |
b4e70030 JB |
18368 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
18369 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 18370 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
18371 | |
18372 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18373 | #define HAVE_STRUCT_REG 1 |
bec39cab | 18374 | _ACEOF |
27ca5dad MC |
18375 | |
18376 | fi | |
97bf5e38 | 18377 | |
a3828db0 MK |
18378 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
18379 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
18380 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
18381 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 18382 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 18383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18384 | else |
bec39cab AC |
18385 | cat >conftest.$ac_ext <<_ACEOF |
18386 | /* confdefs.h. */ | |
18387 | _ACEOF | |
18388 | cat confdefs.h >>conftest.$ac_ext | |
18389 | cat >>conftest.$ac_ext <<_ACEOF | |
18390 | /* end confdefs.h. */ | |
a3828db0 | 18391 | #include <machine/reg.h> |
5c45e068 MK |
18392 | |
18393 | int | |
18394 | main () | |
18395 | { | |
18396 | static struct reg ac_aggr; | |
18397 | if (ac_aggr.r_fs) | |
18398 | return 0; | |
18399 | ; | |
18400 | return 0; | |
18401 | } | |
18402 | _ACEOF | |
18403 | rm -f conftest.$ac_objext | |
18404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18405 | (eval $ac_compile) 2>conftest.er1 | |
18406 | ac_status=$? | |
18407 | grep -v '^ *+' conftest.er1 >conftest.err | |
18408 | rm -f conftest.er1 | |
18409 | cat conftest.err >&5 | |
18410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18411 | (exit $ac_status); } && | |
b4e70030 JB |
18412 | { ac_try='test -z "$ac_c_werror_flag" |
18413 | || test ! -s conftest.err' | |
5c45e068 MK |
18414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18415 | (eval $ac_try) 2>&5 | |
18416 | ac_status=$? | |
18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18418 | (exit $ac_status); }; } && | |
18419 | { ac_try='test -s conftest.$ac_objext' | |
18420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18421 | (eval $ac_try) 2>&5 | |
18422 | ac_status=$? | |
18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18424 | (exit $ac_status); }; }; then | |
18425 | ac_cv_member_struct_reg_r_fs=yes | |
18426 | else | |
18427 | echo "$as_me: failed program was:" >&5 | |
18428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18429 | ||
b4e70030 | 18430 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18431 | /* confdefs.h. */ |
18432 | _ACEOF | |
18433 | cat confdefs.h >>conftest.$ac_ext | |
18434 | cat >>conftest.$ac_ext <<_ACEOF | |
18435 | /* end confdefs.h. */ | |
18436 | #include <machine/reg.h> | |
18437 | ||
bec39cab AC |
18438 | int |
18439 | main () | |
18440 | { | |
5c45e068 MK |
18441 | static struct reg ac_aggr; |
18442 | if (sizeof ac_aggr.r_fs) | |
18443 | return 0; | |
bec39cab AC |
18444 | ; |
18445 | return 0; | |
18446 | } | |
18447 | _ACEOF | |
18448 | rm -f conftest.$ac_objext | |
18449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18450 | (eval $ac_compile) 2>conftest.er1 | |
18451 | ac_status=$? | |
18452 | grep -v '^ *+' conftest.er1 >conftest.err | |
18453 | rm -f conftest.er1 | |
18454 | cat conftest.err >&5 | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); } && | |
b4e70030 JB |
18457 | { ac_try='test -z "$ac_c_werror_flag" |
18458 | || test ! -s conftest.err' | |
bec39cab AC |
18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18460 | (eval $ac_try) 2>&5 | |
18461 | ac_status=$? | |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18463 | (exit $ac_status); }; } && | |
18464 | { ac_try='test -s conftest.$ac_objext' | |
18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18466 | (eval $ac_try) 2>&5 | |
18467 | ac_status=$? | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); }; }; then | |
5c45e068 | 18470 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 18471 | else |
bec39cab AC |
18472 | echo "$as_me: failed program was:" >&5 |
18473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18474 | ||
b4e70030 | 18475 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 18476 | fi |
bec39cab | 18477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18478 | fi |
5c45e068 MK |
18479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18480 | fi | |
b4e70030 JB |
18481 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
18482 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
18483 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
18484 | ||
18485 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18486 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 18487 | _ACEOF |
3862412b | 18488 | |
5c45e068 | 18489 | |
97bf5e38 | 18490 | fi |
b4e70030 JB |
18491 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
18492 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 18493 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 18494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18495 | else |
bec39cab AC |
18496 | cat >conftest.$ac_ext <<_ACEOF |
18497 | /* confdefs.h. */ | |
18498 | _ACEOF | |
18499 | cat confdefs.h >>conftest.$ac_ext | |
18500 | cat >>conftest.$ac_ext <<_ACEOF | |
18501 | /* end confdefs.h. */ | |
a3828db0 | 18502 | #include <machine/reg.h> |
5c45e068 | 18503 | |
bec39cab AC |
18504 | int |
18505 | main () | |
18506 | { | |
5c45e068 MK |
18507 | static struct reg ac_aggr; |
18508 | if (ac_aggr.r_gs) | |
18509 | return 0; | |
bec39cab AC |
18510 | ; |
18511 | return 0; | |
18512 | } | |
18513 | _ACEOF | |
18514 | rm -f conftest.$ac_objext | |
18515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18516 | (eval $ac_compile) 2>conftest.er1 | |
18517 | ac_status=$? | |
18518 | grep -v '^ *+' conftest.er1 >conftest.err | |
18519 | rm -f conftest.er1 | |
18520 | cat conftest.err >&5 | |
18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18522 | (exit $ac_status); } && | |
b4e70030 JB |
18523 | { ac_try='test -z "$ac_c_werror_flag" |
18524 | || test ! -s conftest.err' | |
bec39cab AC |
18525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18526 | (eval $ac_try) 2>&5 | |
18527 | ac_status=$? | |
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18529 | (exit $ac_status); }; } && | |
18530 | { ac_try='test -s conftest.$ac_objext' | |
18531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18532 | (eval $ac_try) 2>&5 | |
18533 | ac_status=$? | |
18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18535 | (exit $ac_status); }; }; then | |
5c45e068 | 18536 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 18537 | else |
bec39cab AC |
18538 | echo "$as_me: failed program was:" >&5 |
18539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18540 | ||
b4e70030 | 18541 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18542 | /* confdefs.h. */ |
18543 | _ACEOF | |
18544 | cat confdefs.h >>conftest.$ac_ext | |
18545 | cat >>conftest.$ac_ext <<_ACEOF | |
18546 | /* end confdefs.h. */ | |
18547 | #include <machine/reg.h> | |
18548 | ||
18549 | int | |
18550 | main () | |
18551 | { | |
18552 | static struct reg ac_aggr; | |
18553 | if (sizeof ac_aggr.r_gs) | |
18554 | return 0; | |
18555 | ; | |
18556 | return 0; | |
18557 | } | |
18558 | _ACEOF | |
18559 | rm -f conftest.$ac_objext | |
18560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18561 | (eval $ac_compile) 2>conftest.er1 | |
18562 | ac_status=$? | |
18563 | grep -v '^ *+' conftest.er1 >conftest.err | |
18564 | rm -f conftest.er1 | |
18565 | cat conftest.err >&5 | |
18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18567 | (exit $ac_status); } && | |
b4e70030 JB |
18568 | { ac_try='test -z "$ac_c_werror_flag" |
18569 | || test ! -s conftest.err' | |
5c45e068 MK |
18570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18571 | (eval $ac_try) 2>&5 | |
18572 | ac_status=$? | |
18573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18574 | (exit $ac_status); }; } && | |
18575 | { ac_try='test -s conftest.$ac_objext' | |
18576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18577 | (eval $ac_try) 2>&5 | |
18578 | ac_status=$? | |
18579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18580 | (exit $ac_status); }; }; then | |
18581 | ac_cv_member_struct_reg_r_gs=yes | |
18582 | else | |
18583 | echo "$as_me: failed program was:" >&5 | |
18584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18585 | ||
b4e70030 | 18586 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 18587 | fi |
bec39cab | 18588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18589 | fi |
5c45e068 MK |
18590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18591 | fi | |
b4e70030 JB |
18592 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
18593 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
18594 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
18595 | ||
18596 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18597 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 18598 | _ACEOF |
3862412b | 18599 | |
5c45e068 | 18600 | |
97bf5e38 | 18601 | fi |
3862412b | 18602 | |
5c45e068 | 18603 | |
a3828db0 | 18604 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
18605 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
18606 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 18607 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 18608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 18609 | else |
bec39cab AC |
18610 | cat >conftest.$ac_ext <<_ACEOF |
18611 | /* confdefs.h. */ | |
18612 | _ACEOF | |
18613 | cat confdefs.h >>conftest.$ac_ext | |
18614 | cat >>conftest.$ac_ext <<_ACEOF | |
18615 | /* end confdefs.h. */ | |
a3828db0 | 18616 | #include <sys/ptrace.h> |
bec39cab AC |
18617 | int |
18618 | main () | |
18619 | { | |
a3828db0 | 18620 | PTRACE_GETREGS; |
bec39cab AC |
18621 | ; |
18622 | return 0; | |
18623 | } | |
18624 | _ACEOF | |
18625 | rm -f conftest.$ac_objext | |
18626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18627 | (eval $ac_compile) 2>conftest.er1 | |
18628 | ac_status=$? | |
18629 | grep -v '^ *+' conftest.er1 >conftest.err | |
18630 | rm -f conftest.er1 | |
18631 | cat conftest.err >&5 | |
18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18633 | (exit $ac_status); } && | |
b4e70030 JB |
18634 | { ac_try='test -z "$ac_c_werror_flag" |
18635 | || test ! -s conftest.err' | |
bec39cab AC |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; } && | |
18641 | { ac_try='test -s conftest.$ac_objext' | |
18642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18643 | (eval $ac_try) 2>&5 | |
18644 | ac_status=$? | |
18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18646 | (exit $ac_status); }; }; then | |
a3828db0 | 18647 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 18648 | else |
bec39cab AC |
18649 | echo "$as_me: failed program was:" >&5 |
18650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18651 | ||
b4e70030 | 18652 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 18653 | fi |
bec39cab | 18654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
18655 | fi |
18656 | ||
b4e70030 JB |
18657 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
18658 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 18659 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
18660 | |
18661 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18662 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 18663 | _ACEOF |
451928c5 | 18664 | |
97bf5e38 | 18665 | fi |
451928c5 | 18666 | |
a3828db0 | 18667 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
18668 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
18669 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 18670 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 18671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 18672 | else |
bec39cab AC |
18673 | cat >conftest.$ac_ext <<_ACEOF |
18674 | /* confdefs.h. */ | |
18675 | _ACEOF | |
18676 | cat confdefs.h >>conftest.$ac_ext | |
18677 | cat >>conftest.$ac_ext <<_ACEOF | |
18678 | /* end confdefs.h. */ | |
a3828db0 | 18679 | #include <sys/ptrace.h> |
bec39cab AC |
18680 | int |
18681 | main () | |
18682 | { | |
a3828db0 | 18683 | PTRACE_GETFPXREGS; |
bec39cab AC |
18684 | ; |
18685 | return 0; | |
18686 | } | |
18687 | _ACEOF | |
18688 | rm -f conftest.$ac_objext | |
18689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18690 | (eval $ac_compile) 2>conftest.er1 | |
18691 | ac_status=$? | |
18692 | grep -v '^ *+' conftest.er1 >conftest.err | |
18693 | rm -f conftest.er1 | |
18694 | cat conftest.err >&5 | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); } && | |
b4e70030 JB |
18697 | { ac_try='test -z "$ac_c_werror_flag" |
18698 | || test ! -s conftest.err' | |
bec39cab AC |
18699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18700 | (eval $ac_try) 2>&5 | |
18701 | ac_status=$? | |
18702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18703 | (exit $ac_status); }; } && | |
18704 | { ac_try='test -s conftest.$ac_objext' | |
18705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18706 | (eval $ac_try) 2>&5 | |
18707 | ac_status=$? | |
18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18709 | (exit $ac_status); }; }; then | |
a3828db0 | 18710 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 18711 | else |
bec39cab AC |
18712 | echo "$as_me: failed program was:" >&5 |
18713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18714 | ||
b4e70030 | 18715 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 18716 | fi |
bec39cab | 18717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
18718 | fi |
18719 | ||
b4e70030 JB |
18720 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
18721 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 18722 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
18723 | |
18724 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18725 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 18726 | _ACEOF |
451928c5 | 18727 | |
97bf5e38 | 18728 | fi |
451928c5 | 18729 | |
a3828db0 | 18730 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
18731 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
18732 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 18733 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 18734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18735 | else |
bec39cab AC |
18736 | cat >conftest.$ac_ext <<_ACEOF |
18737 | /* confdefs.h. */ | |
18738 | _ACEOF | |
18739 | cat confdefs.h >>conftest.$ac_ext | |
18740 | cat >>conftest.$ac_ext <<_ACEOF | |
18741 | /* end confdefs.h. */ | |
a3828db0 MK |
18742 | #include <sys/types.h> |
18743 | #include <sys/ptrace.h> | |
bec39cab AC |
18744 | int |
18745 | main () | |
18746 | { | |
a3828db0 | 18747 | PT_GETDBREGS; |
bec39cab AC |
18748 | ; |
18749 | return 0; | |
18750 | } | |
18751 | _ACEOF | |
18752 | rm -f conftest.$ac_objext | |
18753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18754 | (eval $ac_compile) 2>conftest.er1 | |
18755 | ac_status=$? | |
18756 | grep -v '^ *+' conftest.er1 >conftest.err | |
18757 | rm -f conftest.er1 | |
18758 | cat conftest.err >&5 | |
18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18760 | (exit $ac_status); } && | |
b4e70030 JB |
18761 | { ac_try='test -z "$ac_c_werror_flag" |
18762 | || test ! -s conftest.err' | |
bec39cab AC |
18763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18764 | (eval $ac_try) 2>&5 | |
18765 | ac_status=$? | |
18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18767 | (exit $ac_status); }; } && | |
18768 | { ac_try='test -s conftest.$ac_objext' | |
18769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18770 | (eval $ac_try) 2>&5 | |
18771 | ac_status=$? | |
18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18773 | (exit $ac_status); }; }; then | |
a3828db0 | 18774 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 18775 | else |
bec39cab AC |
18776 | echo "$as_me: failed program was:" >&5 |
18777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18778 | ||
b4e70030 | 18779 | gdb_cv_have_pt_getdbregs=no |
3862412b | 18780 | fi |
bec39cab | 18781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
18782 | fi |
18783 | ||
b4e70030 JB |
18784 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
18785 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 18786 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
18787 | |
18788 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18789 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 18790 | _ACEOF |
3862412b | 18791 | |
97bf5e38 | 18792 | fi |
3862412b | 18793 | |
a3828db0 | 18794 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
18795 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
18796 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 18797 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 18798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18799 | else |
bec39cab AC |
18800 | cat >conftest.$ac_ext <<_ACEOF |
18801 | /* confdefs.h. */ | |
18802 | _ACEOF | |
18803 | cat confdefs.h >>conftest.$ac_ext | |
18804 | cat >>conftest.$ac_ext <<_ACEOF | |
18805 | /* end confdefs.h. */ | |
a3828db0 MK |
18806 | #include <sys/types.h> |
18807 | #include <sys/ptrace.h> | |
bec39cab AC |
18808 | int |
18809 | main () | |
18810 | { | |
a3828db0 | 18811 | PT_GETXMMREGS; |
bec39cab AC |
18812 | ; |
18813 | return 0; | |
18814 | } | |
18815 | _ACEOF | |
18816 | rm -f conftest.$ac_objext | |
18817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18818 | (eval $ac_compile) 2>conftest.er1 | |
18819 | ac_status=$? | |
18820 | grep -v '^ *+' conftest.er1 >conftest.err | |
18821 | rm -f conftest.er1 | |
18822 | cat conftest.err >&5 | |
18823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18824 | (exit $ac_status); } && | |
b4e70030 JB |
18825 | { ac_try='test -z "$ac_c_werror_flag" |
18826 | || test ! -s conftest.err' | |
bec39cab AC |
18827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18828 | (eval $ac_try) 2>&5 | |
18829 | ac_status=$? | |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18831 | (exit $ac_status); }; } && | |
18832 | { ac_try='test -s conftest.$ac_objext' | |
18833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18834 | (eval $ac_try) 2>&5 | |
18835 | ac_status=$? | |
18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18837 | (exit $ac_status); }; }; then | |
a3828db0 | 18838 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 18839 | else |
bec39cab AC |
18840 | echo "$as_me: failed program was:" >&5 |
18841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18842 | ||
b4e70030 | 18843 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 18844 | fi |
bec39cab | 18845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
18846 | fi |
18847 | ||
b4e70030 JB |
18848 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
18849 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 18850 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
18851 | |
18852 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18853 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 18854 | _ACEOF |
3862412b | 18855 | |
97bf5e38 | 18856 | fi |
3862412b | 18857 | |
97bf5e38 MK |
18858 | # If we are configured native on GNU/Linux, work around problems with |
18859 | # sys/procfs.h | |
18860 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
18861 | ||
18862 | if test "${target}" = "${host}"; then | |
18863 | case "${host}" in | |
18864 | i[3456]86-*-linux*) | |
60ca704f SE |
18865 | |
18866 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18867 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 18868 | _ACEOF |
97bf5e38 | 18869 | |
60ca704f SE |
18870 | |
18871 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18872 | #define sys_quotactl 1 |
bec39cab | 18873 | _ACEOF |
97bf5e38 MK |
18874 | |
18875 | ;; | |
97bf5e38 | 18876 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
18877 | |
18878 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18879 | #define NEW_PROC_API 1 |
bec39cab | 18880 | _ACEOF |
97bf5e38 MK |
18881 | |
18882 | ;; | |
0bbc026e | 18883 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
18884 | |
18885 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18886 | #define NEW_PROC_API 1 |
bec39cab | 18887 | _ACEOF |
c960c18f AC |
18888 | |
18889 | ;; | |
18890 | mips-sgi-irix5*) | |
18891 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
18892 | |
18893 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 18894 | #define _KMEMUSER 1 |
bec39cab | 18895 | _ACEOF |
97bf5e38 MK |
18896 | |
18897 | ;; | |
18898 | esac | |
18899 | fi | |
18900 | ||
18901 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
18902 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
18903 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18904 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
18905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18906 | else | |
18907 | cat >conftest.$ac_ext <<_ACEOF | |
18908 | /* confdefs.h. */ | |
18909 | _ACEOF | |
18910 | cat confdefs.h >>conftest.$ac_ext | |
18911 | cat >>conftest.$ac_ext <<_ACEOF | |
18912 | /* end confdefs.h. */ | |
596c9d4b KB |
18913 | |
18914 | #define _SYSCALL32 | |
18915 | #include <sys/procfs.h> | |
bec39cab AC |
18916 | int |
18917 | main () | |
18918 | { | |
97bf5e38 | 18919 | pstatus_t avar |
bec39cab AC |
18920 | ; |
18921 | return 0; | |
18922 | } | |
18923 | _ACEOF | |
18924 | rm -f conftest.$ac_objext | |
18925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18926 | (eval $ac_compile) 2>conftest.er1 | |
18927 | ac_status=$? | |
18928 | grep -v '^ *+' conftest.er1 >conftest.err | |
18929 | rm -f conftest.er1 | |
18930 | cat conftest.err >&5 | |
18931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18932 | (exit $ac_status); } && | |
b4e70030 JB |
18933 | { ac_try='test -z "$ac_c_werror_flag" |
18934 | || test ! -s conftest.err' | |
bec39cab AC |
18935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18936 | (eval $ac_try) 2>&5 | |
18937 | ac_status=$? | |
18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18939 | (exit $ac_status); }; } && | |
18940 | { ac_try='test -s conftest.$ac_objext' | |
18941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18942 | (eval $ac_try) 2>&5 | |
18943 | ac_status=$? | |
18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18945 | (exit $ac_status); }; }; then | |
97bf5e38 | 18946 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 18947 | else |
bec39cab AC |
18948 | echo "$as_me: failed program was:" >&5 |
18949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18950 | ||
b4e70030 | 18951 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 18952 | |
596c9d4b | 18953 | fi |
bec39cab | 18954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18955 | fi |
18956 | ||
97bf5e38 | 18957 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
18958 | |
18959 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18960 | #define HAVE_PSTATUS_T 1 |
bec39cab | 18961 | _ACEOF |
596c9d4b KB |
18962 | |
18963 | fi | |
b4e70030 JB |
18964 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
18965 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 18966 | |
b4e70030 JB |
18967 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
18968 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18969 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
18970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 18971 | else |
bec39cab AC |
18972 | cat >conftest.$ac_ext <<_ACEOF |
18973 | /* confdefs.h. */ | |
18974 | _ACEOF | |
18975 | cat confdefs.h >>conftest.$ac_ext | |
18976 | cat >>conftest.$ac_ext <<_ACEOF | |
18977 | /* end confdefs.h. */ | |
596c9d4b KB |
18978 | |
18979 | #define _SYSCALL32 | |
18980 | #include <sys/procfs.h> | |
bec39cab AC |
18981 | int |
18982 | main () | |
18983 | { | |
97bf5e38 | 18984 | prrun_t avar |
bec39cab AC |
18985 | ; |
18986 | return 0; | |
18987 | } | |
18988 | _ACEOF | |
18989 | rm -f conftest.$ac_objext | |
18990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18991 | (eval $ac_compile) 2>conftest.er1 | |
18992 | ac_status=$? | |
18993 | grep -v '^ *+' conftest.er1 >conftest.err | |
18994 | rm -f conftest.er1 | |
18995 | cat conftest.err >&5 | |
18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18997 | (exit $ac_status); } && | |
b4e70030 JB |
18998 | { ac_try='test -z "$ac_c_werror_flag" |
18999 | || test ! -s conftest.err' | |
bec39cab AC |
19000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19001 | (eval $ac_try) 2>&5 | |
19002 | ac_status=$? | |
19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19004 | (exit $ac_status); }; } && | |
19005 | { ac_try='test -s conftest.$ac_objext' | |
19006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19007 | (eval $ac_try) 2>&5 | |
19008 | ac_status=$? | |
19009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19010 | (exit $ac_status); }; }; then | |
97bf5e38 | 19011 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 19012 | else |
bec39cab AC |
19013 | echo "$as_me: failed program was:" >&5 |
19014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19015 | ||
b4e70030 | 19016 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 19017 | |
596c9d4b | 19018 | fi |
bec39cab | 19019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19020 | fi |
19021 | ||
97bf5e38 | 19022 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
19023 | |
19024 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19025 | #define HAVE_PRRUN_T 1 |
bec39cab | 19026 | _ACEOF |
596c9d4b KB |
19027 | |
19028 | fi | |
b4e70030 JB |
19029 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
19030 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 19031 | |
b4e70030 JB |
19032 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
19033 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19034 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
19035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19036 | else |
bec39cab AC |
19037 | cat >conftest.$ac_ext <<_ACEOF |
19038 | /* confdefs.h. */ | |
19039 | _ACEOF | |
19040 | cat confdefs.h >>conftest.$ac_ext | |
19041 | cat >>conftest.$ac_ext <<_ACEOF | |
19042 | /* end confdefs.h. */ | |
596c9d4b KB |
19043 | |
19044 | #define _SYSCALL32 | |
19045 | #include <sys/procfs.h> | |
bec39cab AC |
19046 | int |
19047 | main () | |
19048 | { | |
97bf5e38 | 19049 | gregset_t avar |
bec39cab AC |
19050 | ; |
19051 | return 0; | |
19052 | } | |
19053 | _ACEOF | |
19054 | rm -f conftest.$ac_objext | |
19055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19056 | (eval $ac_compile) 2>conftest.er1 | |
19057 | ac_status=$? | |
19058 | grep -v '^ *+' conftest.er1 >conftest.err | |
19059 | rm -f conftest.er1 | |
19060 | cat conftest.err >&5 | |
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19062 | (exit $ac_status); } && | |
b4e70030 JB |
19063 | { ac_try='test -z "$ac_c_werror_flag" |
19064 | || test ! -s conftest.err' | |
bec39cab AC |
19065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19066 | (eval $ac_try) 2>&5 | |
19067 | ac_status=$? | |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19069 | (exit $ac_status); }; } && | |
19070 | { ac_try='test -s conftest.$ac_objext' | |
19071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19072 | (eval $ac_try) 2>&5 | |
19073 | ac_status=$? | |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19075 | (exit $ac_status); }; }; then | |
97bf5e38 | 19076 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 19077 | else |
bec39cab AC |
19078 | echo "$as_me: failed program was:" >&5 |
19079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19080 | ||
b4e70030 | 19081 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 19082 | |
596c9d4b | 19083 | fi |
bec39cab | 19084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19085 | fi |
19086 | ||
97bf5e38 | 19087 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
19088 | |
19089 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19090 | #define HAVE_GREGSET_T 1 |
bec39cab | 19091 | _ACEOF |
596c9d4b KB |
19092 | |
19093 | fi | |
b4e70030 JB |
19094 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
19095 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 19096 | |
b4e70030 JB |
19097 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
19098 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19099 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
19100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 19101 | else |
bec39cab AC |
19102 | cat >conftest.$ac_ext <<_ACEOF |
19103 | /* confdefs.h. */ | |
19104 | _ACEOF | |
19105 | cat confdefs.h >>conftest.$ac_ext | |
19106 | cat >>conftest.$ac_ext <<_ACEOF | |
19107 | /* end confdefs.h. */ | |
97bf5e38 MK |
19108 | |
19109 | #define _SYSCALL32 | |
d84dd0c5 | 19110 | #include <sys/procfs.h> |
bec39cab AC |
19111 | int |
19112 | main () | |
19113 | { | |
97bf5e38 | 19114 | fpregset_t avar |
bec39cab AC |
19115 | ; |
19116 | return 0; | |
19117 | } | |
19118 | _ACEOF | |
19119 | rm -f conftest.$ac_objext | |
19120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19121 | (eval $ac_compile) 2>conftest.er1 | |
19122 | ac_status=$? | |
19123 | grep -v '^ *+' conftest.er1 >conftest.err | |
19124 | rm -f conftest.er1 | |
19125 | cat conftest.err >&5 | |
19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19127 | (exit $ac_status); } && | |
b4e70030 JB |
19128 | { ac_try='test -z "$ac_c_werror_flag" |
19129 | || test ! -s conftest.err' | |
bec39cab AC |
19130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19131 | (eval $ac_try) 2>&5 | |
19132 | ac_status=$? | |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19134 | (exit $ac_status); }; } && | |
19135 | { ac_try='test -s conftest.$ac_objext' | |
19136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19137 | (eval $ac_try) 2>&5 | |
19138 | ac_status=$? | |
19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19140 | (exit $ac_status); }; }; then | |
97bf5e38 | 19141 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 19142 | else |
bec39cab AC |
19143 | echo "$as_me: failed program was:" >&5 |
19144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19145 | ||
b4e70030 | 19146 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 19147 | |
d84dd0c5 | 19148 | fi |
bec39cab | 19149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
19150 | fi |
19151 | ||
97bf5e38 | 19152 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
19153 | |
19154 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19155 | #define HAVE_FPREGSET_T 1 |
bec39cab | 19156 | _ACEOF |
d84dd0c5 | 19157 | |
97bf5e38 | 19158 | fi |
b4e70030 JB |
19159 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
19160 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 19161 | |
b4e70030 JB |
19162 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
19163 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19164 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
19165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19166 | else |
bec39cab AC |
19167 | cat >conftest.$ac_ext <<_ACEOF |
19168 | /* confdefs.h. */ | |
19169 | _ACEOF | |
19170 | cat confdefs.h >>conftest.$ac_ext | |
19171 | cat >>conftest.$ac_ext <<_ACEOF | |
19172 | /* end confdefs.h. */ | |
c906108c | 19173 | |
97bf5e38 MK |
19174 | #define _SYSCALL32 |
19175 | #include <sys/procfs.h> | |
bec39cab AC |
19176 | int |
19177 | main () | |
19178 | { | |
97bf5e38 | 19179 | prgregset_t avar |
bec39cab AC |
19180 | ; |
19181 | return 0; | |
19182 | } | |
19183 | _ACEOF | |
19184 | rm -f conftest.$ac_objext | |
19185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19186 | (eval $ac_compile) 2>conftest.er1 | |
19187 | ac_status=$? | |
19188 | grep -v '^ *+' conftest.er1 >conftest.err | |
19189 | rm -f conftest.er1 | |
19190 | cat conftest.err >&5 | |
19191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19192 | (exit $ac_status); } && | |
b4e70030 JB |
19193 | { ac_try='test -z "$ac_c_werror_flag" |
19194 | || test ! -s conftest.err' | |
bec39cab AC |
19195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19196 | (eval $ac_try) 2>&5 | |
19197 | ac_status=$? | |
19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19199 | (exit $ac_status); }; } && | |
19200 | { ac_try='test -s conftest.$ac_objext' | |
19201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19202 | (eval $ac_try) 2>&5 | |
19203 | ac_status=$? | |
19204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19205 | (exit $ac_status); }; }; then | |
97bf5e38 | 19206 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 19207 | else |
bec39cab AC |
19208 | echo "$as_me: failed program was:" >&5 |
19209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19210 | ||
b4e70030 | 19211 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 19212 | |
c906108c | 19213 | fi |
bec39cab | 19214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19215 | fi |
19216 | ||
97bf5e38 | 19217 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
19218 | |
19219 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19220 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 19221 | _ACEOF |
c906108c | 19222 | |
97bf5e38 | 19223 | fi |
b4e70030 JB |
19224 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
19225 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 19226 | |
b4e70030 JB |
19227 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
19228 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19229 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
19230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19231 | else |
bec39cab AC |
19232 | cat >conftest.$ac_ext <<_ACEOF |
19233 | /* confdefs.h. */ | |
19234 | _ACEOF | |
19235 | cat confdefs.h >>conftest.$ac_ext | |
19236 | cat >>conftest.$ac_ext <<_ACEOF | |
19237 | /* end confdefs.h. */ | |
97bf5e38 MK |
19238 | |
19239 | #define _SYSCALL32 | |
19240 | #include <sys/procfs.h> | |
bec39cab AC |
19241 | int |
19242 | main () | |
19243 | { | |
97bf5e38 | 19244 | prfpregset_t avar |
bec39cab AC |
19245 | ; |
19246 | return 0; | |
19247 | } | |
19248 | _ACEOF | |
19249 | rm -f conftest.$ac_objext | |
19250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19251 | (eval $ac_compile) 2>conftest.er1 | |
19252 | ac_status=$? | |
19253 | grep -v '^ *+' conftest.er1 >conftest.err | |
19254 | rm -f conftest.er1 | |
19255 | cat conftest.err >&5 | |
19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19257 | (exit $ac_status); } && | |
b4e70030 JB |
19258 | { ac_try='test -z "$ac_c_werror_flag" |
19259 | || test ! -s conftest.err' | |
bec39cab AC |
19260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19261 | (eval $ac_try) 2>&5 | |
19262 | ac_status=$? | |
19263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19264 | (exit $ac_status); }; } && | |
19265 | { ac_try='test -s conftest.$ac_objext' | |
19266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19267 | (eval $ac_try) 2>&5 | |
19268 | ac_status=$? | |
19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19270 | (exit $ac_status); }; }; then | |
97bf5e38 | 19271 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 19272 | else |
bec39cab AC |
19273 | echo "$as_me: failed program was:" >&5 |
19274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19275 | ||
b4e70030 | 19276 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 19277 | |
d45fe813 | 19278 | fi |
bec39cab | 19279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19280 | fi |
19281 | ||
97bf5e38 | 19282 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
19283 | |
19284 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19285 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 19286 | _ACEOF |
d45fe813 | 19287 | |
97bf5e38 | 19288 | fi |
b4e70030 JB |
19289 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
19290 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 19291 | |
b4e70030 JB |
19292 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
19293 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19294 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
19295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19296 | else |
bec39cab AC |
19297 | cat >conftest.$ac_ext <<_ACEOF |
19298 | /* confdefs.h. */ | |
19299 | _ACEOF | |
19300 | cat confdefs.h >>conftest.$ac_ext | |
19301 | cat >>conftest.$ac_ext <<_ACEOF | |
19302 | /* end confdefs.h. */ | |
97bf5e38 MK |
19303 | |
19304 | #define _SYSCALL32 | |
19305 | #include <sys/procfs.h> | |
bec39cab AC |
19306 | int |
19307 | main () | |
19308 | { | |
97bf5e38 | 19309 | prgregset32_t avar |
bec39cab AC |
19310 | ; |
19311 | return 0; | |
19312 | } | |
19313 | _ACEOF | |
19314 | rm -f conftest.$ac_objext | |
19315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19316 | (eval $ac_compile) 2>conftest.er1 | |
19317 | ac_status=$? | |
19318 | grep -v '^ *+' conftest.er1 >conftest.err | |
19319 | rm -f conftest.er1 | |
19320 | cat conftest.err >&5 | |
19321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19322 | (exit $ac_status); } && | |
b4e70030 JB |
19323 | { ac_try='test -z "$ac_c_werror_flag" |
19324 | || test ! -s conftest.err' | |
bec39cab AC |
19325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19326 | (eval $ac_try) 2>&5 | |
19327 | ac_status=$? | |
19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19329 | (exit $ac_status); }; } && | |
19330 | { ac_try='test -s conftest.$ac_objext' | |
19331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19332 | (eval $ac_try) 2>&5 | |
19333 | ac_status=$? | |
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19335 | (exit $ac_status); }; }; then | |
97bf5e38 | 19336 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 19337 | else |
bec39cab AC |
19338 | echo "$as_me: failed program was:" >&5 |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
b4e70030 | 19341 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 19342 | |
d45fe813 | 19343 | fi |
bec39cab | 19344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19345 | fi |
19346 | ||
97bf5e38 | 19347 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
19348 | |
19349 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19350 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 19351 | _ACEOF |
d45fe813 | 19352 | |
97bf5e38 | 19353 | fi |
b4e70030 JB |
19354 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
19355 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 19356 | |
b4e70030 JB |
19357 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
19358 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19359 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
19360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19361 | else |
bec39cab AC |
19362 | cat >conftest.$ac_ext <<_ACEOF |
19363 | /* confdefs.h. */ | |
19364 | _ACEOF | |
19365 | cat confdefs.h >>conftest.$ac_ext | |
19366 | cat >>conftest.$ac_ext <<_ACEOF | |
19367 | /* end confdefs.h. */ | |
97bf5e38 MK |
19368 | |
19369 | #define _SYSCALL32 | |
19370 | #include <sys/procfs.h> | |
bec39cab AC |
19371 | int |
19372 | main () | |
19373 | { | |
97bf5e38 | 19374 | prfpregset32_t avar |
bec39cab AC |
19375 | ; |
19376 | return 0; | |
19377 | } | |
19378 | _ACEOF | |
19379 | rm -f conftest.$ac_objext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19381 | (eval $ac_compile) 2>conftest.er1 | |
19382 | ac_status=$? | |
19383 | grep -v '^ *+' conftest.er1 >conftest.err | |
19384 | rm -f conftest.er1 | |
19385 | cat conftest.err >&5 | |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19387 | (exit $ac_status); } && | |
b4e70030 JB |
19388 | { ac_try='test -z "$ac_c_werror_flag" |
19389 | || test ! -s conftest.err' | |
bec39cab AC |
19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19394 | (exit $ac_status); }; } && | |
19395 | { ac_try='test -s conftest.$ac_objext' | |
19396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19397 | (eval $ac_try) 2>&5 | |
19398 | ac_status=$? | |
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19400 | (exit $ac_status); }; }; then | |
97bf5e38 | 19401 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 19402 | else |
bec39cab AC |
19403 | echo "$as_me: failed program was:" >&5 |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19405 | ||
b4e70030 | 19406 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 19407 | |
d45fe813 | 19408 | fi |
bec39cab | 19409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19410 | fi |
19411 | ||
97bf5e38 | 19412 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
19413 | |
19414 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19415 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 19416 | _ACEOF |
d45fe813 | 19417 | |
97bf5e38 | 19418 | fi |
b4e70030 JB |
19419 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
19420 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 19421 | |
b4e70030 JB |
19422 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
19423 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19424 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
19425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19426 | else |
bec39cab AC |
19427 | cat >conftest.$ac_ext <<_ACEOF |
19428 | /* confdefs.h. */ | |
19429 | _ACEOF | |
19430 | cat confdefs.h >>conftest.$ac_ext | |
19431 | cat >>conftest.$ac_ext <<_ACEOF | |
19432 | /* end confdefs.h. */ | |
97bf5e38 | 19433 | |
d45fe813 | 19434 | #define _SYSCALL32 |
97bf5e38 | 19435 | #include <sys/procfs.h> |
bec39cab AC |
19436 | int |
19437 | main () | |
19438 | { | |
97bf5e38 | 19439 | lwpid_t avar |
bec39cab AC |
19440 | ; |
19441 | return 0; | |
19442 | } | |
19443 | _ACEOF | |
19444 | rm -f conftest.$ac_objext | |
19445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19446 | (eval $ac_compile) 2>conftest.er1 | |
19447 | ac_status=$? | |
19448 | grep -v '^ *+' conftest.er1 >conftest.err | |
19449 | rm -f conftest.er1 | |
19450 | cat conftest.err >&5 | |
19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19452 | (exit $ac_status); } && | |
b4e70030 JB |
19453 | { ac_try='test -z "$ac_c_werror_flag" |
19454 | || test ! -s conftest.err' | |
bec39cab AC |
19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); }; } && | |
19460 | { ac_try='test -s conftest.$ac_objext' | |
19461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19462 | (eval $ac_try) 2>&5 | |
19463 | ac_status=$? | |
19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19465 | (exit $ac_status); }; }; then | |
97bf5e38 | 19466 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 19467 | else |
bec39cab AC |
19468 | echo "$as_me: failed program was:" >&5 |
19469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19470 | ||
b4e70030 | 19471 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 19472 | |
d45fe813 | 19473 | fi |
bec39cab | 19474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19475 | fi |
19476 | ||
97bf5e38 | 19477 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
19478 | |
19479 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19480 | #define HAVE_LWPID_T 1 |
bec39cab | 19481 | _ACEOF |
d45fe813 | 19482 | |
97bf5e38 | 19483 | fi |
b4e70030 JB |
19484 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
19485 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 19486 | |
b4e70030 JB |
19487 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
19488 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19489 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
19490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19491 | else |
bec39cab AC |
19492 | cat >conftest.$ac_ext <<_ACEOF |
19493 | /* confdefs.h. */ | |
19494 | _ACEOF | |
19495 | cat confdefs.h >>conftest.$ac_ext | |
19496 | cat >>conftest.$ac_ext <<_ACEOF | |
19497 | /* end confdefs.h. */ | |
c906108c | 19498 | |
97bf5e38 MK |
19499 | #define _SYSCALL32 |
19500 | #include <sys/procfs.h> | |
bec39cab AC |
19501 | int |
19502 | main () | |
19503 | { | |
97bf5e38 | 19504 | psaddr_t avar |
bec39cab AC |
19505 | ; |
19506 | return 0; | |
19507 | } | |
19508 | _ACEOF | |
19509 | rm -f conftest.$ac_objext | |
19510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19511 | (eval $ac_compile) 2>conftest.er1 | |
19512 | ac_status=$? | |
19513 | grep -v '^ *+' conftest.er1 >conftest.err | |
19514 | rm -f conftest.er1 | |
19515 | cat conftest.err >&5 | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); } && | |
b4e70030 JB |
19518 | { ac_try='test -z "$ac_c_werror_flag" |
19519 | || test ! -s conftest.err' | |
bec39cab AC |
19520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19521 | (eval $ac_try) 2>&5 | |
19522 | ac_status=$? | |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19524 | (exit $ac_status); }; } && | |
19525 | { ac_try='test -s conftest.$ac_objext' | |
19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); }; }; then | |
97bf5e38 | 19531 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 19532 | else |
bec39cab AC |
19533 | echo "$as_me: failed program was:" >&5 |
19534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19535 | ||
b4e70030 | 19536 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 19537 | |
c906108c | 19538 | fi |
bec39cab | 19539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19540 | fi |
19541 | ||
97bf5e38 | 19542 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
19543 | |
19544 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19545 | #define HAVE_PSADDR_T 1 |
bec39cab | 19546 | _ACEOF |
c906108c | 19547 | |
97bf5e38 | 19548 | fi |
b4e70030 JB |
19549 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
19550 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 19551 | |
b4e70030 JB |
19552 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
19553 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19554 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
19555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19556 | else |
bec39cab AC |
19557 | cat >conftest.$ac_ext <<_ACEOF |
19558 | /* confdefs.h. */ | |
19559 | _ACEOF | |
19560 | cat confdefs.h >>conftest.$ac_ext | |
19561 | cat >>conftest.$ac_ext <<_ACEOF | |
19562 | /* end confdefs.h. */ | |
c906108c | 19563 | |
97bf5e38 MK |
19564 | #define _SYSCALL32 |
19565 | #include <sys/procfs.h> | |
bec39cab AC |
19566 | int |
19567 | main () | |
19568 | { | |
97bf5e38 | 19569 | prsysent_t avar |
bec39cab AC |
19570 | ; |
19571 | return 0; | |
19572 | } | |
19573 | _ACEOF | |
19574 | rm -f conftest.$ac_objext | |
19575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19576 | (eval $ac_compile) 2>conftest.er1 | |
19577 | ac_status=$? | |
19578 | grep -v '^ *+' conftest.er1 >conftest.err | |
19579 | rm -f conftest.er1 | |
19580 | cat conftest.err >&5 | |
19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19582 | (exit $ac_status); } && | |
b4e70030 JB |
19583 | { ac_try='test -z "$ac_c_werror_flag" |
19584 | || test ! -s conftest.err' | |
bec39cab AC |
19585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19586 | (eval $ac_try) 2>&5 | |
19587 | ac_status=$? | |
19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19589 | (exit $ac_status); }; } && | |
19590 | { ac_try='test -s conftest.$ac_objext' | |
19591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19592 | (eval $ac_try) 2>&5 | |
19593 | ac_status=$? | |
19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19595 | (exit $ac_status); }; }; then | |
97bf5e38 | 19596 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 19597 | else |
bec39cab AC |
19598 | echo "$as_me: failed program was:" >&5 |
19599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19600 | ||
b4e70030 | 19601 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 19602 | |
c906108c | 19603 | fi |
bec39cab | 19604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19605 | fi |
19606 | ||
97bf5e38 | 19607 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
19608 | |
19609 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19610 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 19611 | _ACEOF |
c906108c | 19612 | |
97bf5e38 | 19613 | fi |
b4e70030 JB |
19614 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
19615 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 19616 | |
b4e70030 JB |
19617 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
19618 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19619 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
19620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19621 | else |
bec39cab AC |
19622 | cat >conftest.$ac_ext <<_ACEOF |
19623 | /* confdefs.h. */ | |
19624 | _ACEOF | |
19625 | cat confdefs.h >>conftest.$ac_ext | |
19626 | cat >>conftest.$ac_ext <<_ACEOF | |
19627 | /* end confdefs.h. */ | |
c906108c | 19628 | |
97bf5e38 MK |
19629 | #define _SYSCALL32 |
19630 | #include <sys/procfs.h> | |
bec39cab AC |
19631 | int |
19632 | main () | |
19633 | { | |
97bf5e38 | 19634 | pr_sigset_t avar |
bec39cab AC |
19635 | ; |
19636 | return 0; | |
19637 | } | |
19638 | _ACEOF | |
19639 | rm -f conftest.$ac_objext | |
19640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19641 | (eval $ac_compile) 2>conftest.er1 | |
19642 | ac_status=$? | |
19643 | grep -v '^ *+' conftest.er1 >conftest.err | |
19644 | rm -f conftest.er1 | |
19645 | cat conftest.err >&5 | |
19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19647 | (exit $ac_status); } && | |
b4e70030 JB |
19648 | { ac_try='test -z "$ac_c_werror_flag" |
19649 | || test ! -s conftest.err' | |
bec39cab AC |
19650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19651 | (eval $ac_try) 2>&5 | |
19652 | ac_status=$? | |
19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19654 | (exit $ac_status); }; } && | |
19655 | { ac_try='test -s conftest.$ac_objext' | |
19656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19657 | (eval $ac_try) 2>&5 | |
19658 | ac_status=$? | |
19659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19660 | (exit $ac_status); }; }; then | |
97bf5e38 | 19661 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 19662 | else |
bec39cab AC |
19663 | echo "$as_me: failed program was:" >&5 |
19664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19665 | ||
b4e70030 | 19666 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 19667 | |
c906108c | 19668 | fi |
bec39cab | 19669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19670 | fi |
19671 | ||
97bf5e38 | 19672 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
19673 | |
19674 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19675 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 19676 | _ACEOF |
c906108c | 19677 | |
97bf5e38 | 19678 | fi |
b4e70030 JB |
19679 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
19680 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 19681 | |
b4e70030 JB |
19682 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
19683 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19684 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
19685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19686 | else |
bec39cab AC |
19687 | cat >conftest.$ac_ext <<_ACEOF |
19688 | /* confdefs.h. */ | |
19689 | _ACEOF | |
19690 | cat confdefs.h >>conftest.$ac_ext | |
19691 | cat >>conftest.$ac_ext <<_ACEOF | |
19692 | /* end confdefs.h. */ | |
c906108c | 19693 | |
97bf5e38 MK |
19694 | #define _SYSCALL32 |
19695 | #include <sys/procfs.h> | |
bec39cab AC |
19696 | int |
19697 | main () | |
19698 | { | |
97bf5e38 | 19699 | pr_sigaction64_t avar |
bec39cab AC |
19700 | ; |
19701 | return 0; | |
19702 | } | |
19703 | _ACEOF | |
19704 | rm -f conftest.$ac_objext | |
19705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19706 | (eval $ac_compile) 2>conftest.er1 | |
19707 | ac_status=$? | |
19708 | grep -v '^ *+' conftest.er1 >conftest.err | |
19709 | rm -f conftest.er1 | |
19710 | cat conftest.err >&5 | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); } && | |
b4e70030 JB |
19713 | { ac_try='test -z "$ac_c_werror_flag" |
19714 | || test ! -s conftest.err' | |
bec39cab AC |
19715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19716 | (eval $ac_try) 2>&5 | |
19717 | ac_status=$? | |
19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 | (exit $ac_status); }; } && | |
19720 | { ac_try='test -s conftest.$ac_objext' | |
19721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19722 | (eval $ac_try) 2>&5 | |
19723 | ac_status=$? | |
19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19725 | (exit $ac_status); }; }; then | |
97bf5e38 | 19726 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 19727 | else |
bec39cab AC |
19728 | echo "$as_me: failed program was:" >&5 |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19730 | ||
b4e70030 | 19731 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 19732 | |
c906108c | 19733 | fi |
bec39cab | 19734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19735 | fi |
19736 | ||
97bf5e38 | 19737 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
19738 | |
19739 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19740 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 19741 | _ACEOF |
c906108c | 19742 | |
97bf5e38 | 19743 | fi |
b4e70030 JB |
19744 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
19745 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 19746 | |
b4e70030 JB |
19747 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
19748 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19749 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19751 | else |
bec39cab AC |
19752 | cat >conftest.$ac_ext <<_ACEOF |
19753 | /* confdefs.h. */ | |
19754 | _ACEOF | |
19755 | cat confdefs.h >>conftest.$ac_ext | |
19756 | cat >>conftest.$ac_ext <<_ACEOF | |
19757 | /* end confdefs.h. */ | |
97bf5e38 MK |
19758 | |
19759 | #define _SYSCALL32 | |
19760 | #include <sys/procfs.h> | |
bec39cab AC |
19761 | int |
19762 | main () | |
19763 | { | |
97bf5e38 | 19764 | pr_siginfo64_t avar |
bec39cab AC |
19765 | ; |
19766 | return 0; | |
19767 | } | |
19768 | _ACEOF | |
19769 | rm -f conftest.$ac_objext | |
19770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19771 | (eval $ac_compile) 2>conftest.er1 | |
19772 | ac_status=$? | |
19773 | grep -v '^ *+' conftest.er1 >conftest.err | |
19774 | rm -f conftest.er1 | |
19775 | cat conftest.err >&5 | |
19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19777 | (exit $ac_status); } && | |
b4e70030 JB |
19778 | { ac_try='test -z "$ac_c_werror_flag" |
19779 | || test ! -s conftest.err' | |
bec39cab AC |
19780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19781 | (eval $ac_try) 2>&5 | |
19782 | ac_status=$? | |
19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 | (exit $ac_status); }; } && | |
19785 | { ac_try='test -s conftest.$ac_objext' | |
19786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19787 | (eval $ac_try) 2>&5 | |
19788 | ac_status=$? | |
19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19791 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
19792 | else | |
bec39cab AC |
19793 | echo "$as_me: failed program was:" >&5 |
19794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19795 | ||
b4e70030 | 19796 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 19797 | |
97bf5e38 | 19798 | fi |
bec39cab | 19799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19800 | fi |
c906108c | 19801 | |
97bf5e38 | 19802 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
19803 | |
19804 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19805 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 19806 | _ACEOF |
c906108c | 19807 | |
97bf5e38 | 19808 | fi |
b4e70030 JB |
19809 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
19810 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
19811 | |
19812 | ||
97bf5e38 MK |
19813 | |
19814 | ||
19815 | ||
97bf5e38 | 19816 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
19817 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
19818 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
19819 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
19820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
19821 | else |
19822 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 19823 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 19824 | else |
bec39cab AC |
19825 | cat >conftest.$ac_ext <<_ACEOF |
19826 | /* confdefs.h. */ | |
19827 | _ACEOF | |
19828 | cat confdefs.h >>conftest.$ac_ext | |
19829 | cat >>conftest.$ac_ext <<_ACEOF | |
19830 | /* end confdefs.h. */ | |
97bf5e38 MK |
19831 | #include <sys/procfs.h> |
19832 | int main () | |
19833 | { | |
19834 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
19835 | return 1; | |
19836 | return 0; | |
19837 | } | |
bec39cab AC |
19838 | _ACEOF |
19839 | rm -f conftest$ac_exeext | |
19840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19841 | (eval $ac_link) 2>&5 | |
19842 | ac_status=$? | |
19843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19846 | (eval $ac_try) 2>&5 | |
19847 | ac_status=$? | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); }; }; then | |
97bf5e38 | 19850 | gdb_cv_prfpregset_t_broken=no |
c906108c | 19851 | else |
bec39cab AC |
19852 | echo "$as_me: program exited with status $ac_status" >&5 |
19853 | echo "$as_me: failed program was:" >&5 | |
19854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19855 | ||
19856 | ( exit $ac_status ) | |
19857 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 19858 | fi |
b4e70030 | 19859 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19860 | fi |
c906108c SS |
19861 | fi |
19862 | ||
b4e70030 JB |
19863 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
19864 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 19865 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
19866 | |
19867 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19868 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 19869 | _ACEOF |
c906108c | 19870 | |
97bf5e38 MK |
19871 | fi |
19872 | fi | |
c906108c | 19873 | |
bec39cab | 19874 | |
b4e70030 JB |
19875 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
19876 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19877 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
19878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19879 | else |
bec39cab AC |
19880 | cat >conftest.$ac_ext <<_ACEOF |
19881 | /* confdefs.h. */ | |
19882 | _ACEOF | |
19883 | cat confdefs.h >>conftest.$ac_ext | |
19884 | cat >>conftest.$ac_ext <<_ACEOF | |
19885 | /* end confdefs.h. */ | |
97bf5e38 MK |
19886 | #include <unistd.h> |
19887 | #include <sys/types.h> | |
19888 | #include <sys/procfs.h> | |
19889 | ||
bec39cab AC |
19890 | int |
19891 | main () | |
19892 | { | |
97bf5e38 MK |
19893 | |
19894 | int dummy;; | |
19895 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
19896 | |
19897 | ; | |
19898 | return 0; | |
19899 | } | |
19900 | _ACEOF | |
19901 | rm -f conftest.$ac_objext | |
19902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19903 | (eval $ac_compile) 2>conftest.er1 | |
19904 | ac_status=$? | |
19905 | grep -v '^ *+' conftest.er1 >conftest.err | |
19906 | rm -f conftest.er1 | |
19907 | cat conftest.err >&5 | |
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19909 | (exit $ac_status); } && | |
b4e70030 JB |
19910 | { ac_try='test -z "$ac_c_werror_flag" |
19911 | || test ! -s conftest.err' | |
bec39cab AC |
19912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19913 | (eval $ac_try) 2>&5 | |
19914 | ac_status=$? | |
19915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19916 | (exit $ac_status); }; } && | |
19917 | { ac_try='test -s conftest.$ac_objext' | |
19918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19919 | (eval $ac_try) 2>&5 | |
19920 | ac_status=$? | |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19922 | (exit $ac_status); }; }; then | |
97bf5e38 | 19923 | gdb_cv_have_procfs_piocset=yes |
c906108c | 19924 | else |
bec39cab AC |
19925 | echo "$as_me: failed program was:" >&5 |
19926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19927 | ||
b4e70030 | 19928 | gdb_cv_have_procfs_piocset=no |
c906108c | 19929 | fi |
bec39cab | 19930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19931 | fi |
97bf5e38 | 19932 | |
b4e70030 JB |
19933 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
19934 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 19935 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
19936 | |
19937 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19938 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 19939 | _ACEOF |
97bf5e38 MK |
19940 | |
19941 | fi | |
c906108c | 19942 | fi |
c906108c | 19943 | |
97bf5e38 | 19944 | if test ${host} = ${target} ; then |
bec39cab | 19945 | |
b4e70030 JB |
19946 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
19947 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
19948 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
19949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19950 | else | |
19951 | cat >conftest.$ac_ext <<_ACEOF | |
19952 | /* confdefs.h. */ | |
19953 | _ACEOF | |
19954 | cat confdefs.h >>conftest.$ac_ext | |
19955 | cat >>conftest.$ac_ext <<_ACEOF | |
19956 | /* end confdefs.h. */ | |
97bf5e38 | 19957 | #include <link.h> |
bec39cab AC |
19958 | int |
19959 | main () | |
19960 | { | |
97bf5e38 | 19961 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
19962 | ; |
19963 | return 0; | |
19964 | } | |
19965 | _ACEOF | |
19966 | rm -f conftest.$ac_objext | |
19967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19968 | (eval $ac_compile) 2>conftest.er1 | |
19969 | ac_status=$? | |
19970 | grep -v '^ *+' conftest.er1 >conftest.err | |
19971 | rm -f conftest.er1 | |
19972 | cat conftest.err >&5 | |
19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19974 | (exit $ac_status); } && | |
b4e70030 JB |
19975 | { ac_try='test -z "$ac_c_werror_flag" |
19976 | || test ! -s conftest.err' | |
bec39cab AC |
19977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19978 | (eval $ac_try) 2>&5 | |
19979 | ac_status=$? | |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19981 | (exit $ac_status); }; } && | |
19982 | { ac_try='test -s conftest.$ac_objext' | |
19983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19984 | (eval $ac_try) 2>&5 | |
19985 | ac_status=$? | |
19986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19987 | (exit $ac_status); }; }; then | |
97bf5e38 | 19988 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 19989 | else |
bec39cab AC |
19990 | echo "$as_me: failed program was:" >&5 |
19991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19992 | ||
b4e70030 | 19993 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 19994 | fi |
bec39cab | 19995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19996 | fi |
19997 | ||
b4e70030 JB |
19998 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
19999 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 20000 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
20001 | |
20002 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20003 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 20004 | _ACEOF |
97bf5e38 MK |
20005 | |
20006 | fi | |
20007 | ||
bec39cab | 20008 | |
b4e70030 JB |
20009 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
20010 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20011 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
20012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20013 | else |
bec39cab AC |
20014 | cat >conftest.$ac_ext <<_ACEOF |
20015 | /* confdefs.h. */ | |
20016 | _ACEOF | |
20017 | cat confdefs.h >>conftest.$ac_ext | |
20018 | cat >>conftest.$ac_ext <<_ACEOF | |
20019 | /* end confdefs.h. */ | |
97bf5e38 MK |
20020 | #include <sys/types.h> |
20021 | #include <link.h> | |
bec39cab AC |
20022 | int |
20023 | main () | |
20024 | { | |
97bf5e38 | 20025 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
20026 | ; |
20027 | return 0; | |
20028 | } | |
20029 | _ACEOF | |
20030 | rm -f conftest.$ac_objext | |
20031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20032 | (eval $ac_compile) 2>conftest.er1 | |
20033 | ac_status=$? | |
20034 | grep -v '^ *+' conftest.er1 >conftest.err | |
20035 | rm -f conftest.er1 | |
20036 | cat conftest.err >&5 | |
20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20038 | (exit $ac_status); } && | |
b4e70030 JB |
20039 | { ac_try='test -z "$ac_c_werror_flag" |
20040 | || test ! -s conftest.err' | |
bec39cab AC |
20041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20042 | (eval $ac_try) 2>&5 | |
20043 | ac_status=$? | |
20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20045 | (exit $ac_status); }; } && | |
20046 | { ac_try='test -s conftest.$ac_objext' | |
20047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20048 | (eval $ac_try) 2>&5 | |
20049 | ac_status=$? | |
20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20051 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20052 | gdb_cv_have_struct_link_map_with_lm_members=yes |
20053 | else | |
bec39cab AC |
20054 | echo "$as_me: failed program was:" >&5 |
20055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20056 | ||
b4e70030 | 20057 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 20058 | fi |
bec39cab | 20059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20060 | fi |
c906108c | 20061 | |
b4e70030 JB |
20062 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
20063 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 20064 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
20065 | |
20066 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20067 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 20068 | _ACEOF |
97bf5e38 MK |
20069 | |
20070 | fi | |
20071 | ||
bec39cab | 20072 | |
b4e70030 JB |
20073 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
20074 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
20075 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
20076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20077 | else |
bec39cab AC |
20078 | cat >conftest.$ac_ext <<_ACEOF |
20079 | /* confdefs.h. */ | |
20080 | _ACEOF | |
20081 | cat confdefs.h >>conftest.$ac_ext | |
20082 | cat >>conftest.$ac_ext <<_ACEOF | |
20083 | /* end confdefs.h. */ | |
97bf5e38 MK |
20084 | #include <sys/types.h> |
20085 | #ifdef HAVE_NLIST_H | |
20086 | #include <nlist.h> | |
20087 | #endif | |
20088 | #include <link.h> | |
bec39cab AC |
20089 | int |
20090 | main () | |
20091 | { | |
97bf5e38 | 20092 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
20093 | ; |
20094 | return 0; | |
20095 | } | |
20096 | _ACEOF | |
20097 | rm -f conftest.$ac_objext | |
20098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20099 | (eval $ac_compile) 2>conftest.er1 | |
20100 | ac_status=$? | |
20101 | grep -v '^ *+' conftest.er1 >conftest.err | |
20102 | rm -f conftest.er1 | |
20103 | cat conftest.err >&5 | |
20104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20105 | (exit $ac_status); } && | |
b4e70030 JB |
20106 | { ac_try='test -z "$ac_c_werror_flag" |
20107 | || test ! -s conftest.err' | |
bec39cab AC |
20108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20109 | (eval $ac_try) 2>&5 | |
20110 | ac_status=$? | |
20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20112 | (exit $ac_status); }; } && | |
20113 | { ac_try='test -s conftest.$ac_objext' | |
20114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20115 | (eval $ac_try) 2>&5 | |
20116 | ac_status=$? | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20119 | gdb_cv_have_struct_so_map_with_som_members=yes |
20120 | else | |
bec39cab AC |
20121 | echo "$as_me: failed program was:" >&5 |
20122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20123 | ||
b4e70030 | 20124 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 20125 | fi |
bec39cab | 20126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20127 | fi |
c906108c | 20128 | |
b4e70030 JB |
20129 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
20130 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 20131 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
20132 | |
20133 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20134 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 20135 | _ACEOF |
c906108c | 20136 | |
97bf5e38 | 20137 | fi |
c906108c | 20138 | |
bec39cab | 20139 | |
b4e70030 JB |
20140 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
20141 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
20142 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
20143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20144 | else |
bec39cab AC |
20145 | cat >conftest.$ac_ext <<_ACEOF |
20146 | /* confdefs.h. */ | |
20147 | _ACEOF | |
20148 | cat confdefs.h >>conftest.$ac_ext | |
20149 | cat >>conftest.$ac_ext <<_ACEOF | |
20150 | /* end confdefs.h. */ | |
97bf5e38 MK |
20151 | #define _SYSCALL32 |
20152 | #include <sys/link.h> | |
bec39cab AC |
20153 | int |
20154 | main () | |
20155 | { | |
97bf5e38 | 20156 | struct link_map32 l; |
bec39cab AC |
20157 | ; |
20158 | return 0; | |
20159 | } | |
20160 | _ACEOF | |
20161 | rm -f conftest.$ac_objext | |
20162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20163 | (eval $ac_compile) 2>conftest.er1 | |
20164 | ac_status=$? | |
20165 | grep -v '^ *+' conftest.er1 >conftest.err | |
20166 | rm -f conftest.er1 | |
20167 | cat conftest.err >&5 | |
20168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20169 | (exit $ac_status); } && | |
b4e70030 JB |
20170 | { ac_try='test -z "$ac_c_werror_flag" |
20171 | || test ! -s conftest.err' | |
bec39cab AC |
20172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20173 | (eval $ac_try) 2>&5 | |
20174 | ac_status=$? | |
20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20176 | (exit $ac_status); }; } && | |
20177 | { ac_try='test -s conftest.$ac_objext' | |
20178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20179 | (eval $ac_try) 2>&5 | |
20180 | ac_status=$? | |
20181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20182 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20183 | gdb_cv_have_struct_link_map32=yes |
20184 | else | |
bec39cab AC |
20185 | echo "$as_me: failed program was:" >&5 |
20186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20187 | ||
b4e70030 | 20188 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 20189 | fi |
bec39cab | 20190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20191 | fi |
c906108c | 20192 | |
b4e70030 JB |
20193 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
20194 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 20195 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
20196 | |
20197 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20198 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 20199 | _ACEOF |
c906108c | 20200 | |
60ca704f SE |
20201 | |
20202 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20203 | #define _SYSCALL32 1 |
bec39cab | 20204 | _ACEOF |
c906108c | 20205 | |
97bf5e38 MK |
20206 | fi |
20207 | fi | |
c906108c | 20208 | |
bc8bcb4b | 20209 | # Check if the compiler supports the `long long' type. |
c906108c | 20210 | |
b4e70030 JB |
20211 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
20212 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
20213 | if test "${gdb_cv_c_long_long+set}" = set; then |
20214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20215 | else |
bec39cab AC |
20216 | cat >conftest.$ac_ext <<_ACEOF |
20217 | /* confdefs.h. */ | |
20218 | _ACEOF | |
20219 | cat confdefs.h >>conftest.$ac_ext | |
20220 | cat >>conftest.$ac_ext <<_ACEOF | |
20221 | /* end confdefs.h. */ | |
bc8bcb4b | 20222 | extern long long foo; |
bec39cab AC |
20223 | int |
20224 | main () | |
20225 | { | |
bc8bcb4b | 20226 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
20227 | ; |
20228 | return 0; | |
20229 | } | |
20230 | _ACEOF | |
20231 | rm -f conftest.$ac_objext | |
20232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20233 | (eval $ac_compile) 2>conftest.er1 | |
20234 | ac_status=$? | |
20235 | grep -v '^ *+' conftest.er1 >conftest.err | |
20236 | rm -f conftest.er1 | |
20237 | cat conftest.err >&5 | |
20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20239 | (exit $ac_status); } && | |
b4e70030 JB |
20240 | { ac_try='test -z "$ac_c_werror_flag" |
20241 | || test ! -s conftest.err' | |
bec39cab AC |
20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20243 | (eval $ac_try) 2>&5 | |
20244 | ac_status=$? | |
20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20246 | (exit $ac_status); }; } && | |
20247 | { ac_try='test -s conftest.$ac_objext' | |
20248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20249 | (eval $ac_try) 2>&5 | |
20250 | ac_status=$? | |
20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20252 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20253 | gdb_cv_c_long_long=yes |
20254 | else | |
bec39cab AC |
20255 | echo "$as_me: failed program was:" >&5 |
20256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20257 | ||
b4e70030 | 20258 | gdb_cv_c_long_long=no |
97bf5e38 | 20259 | fi |
bec39cab | 20260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20261 | fi |
b4e70030 JB |
20262 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
20263 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 20264 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
20265 | |
20266 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20267 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 20268 | _ACEOF |
97bf5e38 MK |
20269 | |
20270 | fi | |
20271 | ||
bc8bcb4b | 20272 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 20273 | |
b4e70030 JB |
20274 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
20275 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20276 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
20277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20278 | else |
20279 | if test "$cross_compiling" = yes; then | |
20280 | gdb_cv_printf_has_long_long=no | |
20281 | else | |
bec39cab AC |
20282 | cat >conftest.$ac_ext <<_ACEOF |
20283 | /* confdefs.h. */ | |
20284 | _ACEOF | |
20285 | cat confdefs.h >>conftest.$ac_ext | |
20286 | cat >>conftest.$ac_ext <<_ACEOF | |
20287 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20288 | $ac_includes_default |
20289 | int | |
20290 | main () | |
20291 | { | |
20292 | char buf[32]; | |
97bf5e38 MK |
20293 | long long l = 0; |
20294 | l = (l << 16) + 0x0123; | |
20295 | l = (l << 16) + 0x4567; | |
20296 | l = (l << 16) + 0x89ab; | |
20297 | l = (l << 16) + 0xcdef; | |
20298 | sprintf (buf, "0x%016llx", l); | |
20299 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
20300 | ; |
20301 | return 0; | |
c906108c | 20302 | } |
bec39cab AC |
20303 | _ACEOF |
20304 | rm -f conftest$ac_exeext | |
20305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20306 | (eval $ac_link) 2>&5 | |
20307 | ac_status=$? | |
20308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20311 | (eval $ac_try) 2>&5 | |
20312 | ac_status=$? | |
20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20314 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20315 | gdb_cv_printf_has_long_long=yes |
20316 | else | |
bec39cab AC |
20317 | echo "$as_me: program exited with status $ac_status" >&5 |
20318 | echo "$as_me: failed program was:" >&5 | |
20319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20320 | ||
20321 | ( exit $ac_status ) | |
20322 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 20323 | fi |
b4e70030 | 20324 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20325 | fi |
97bf5e38 | 20326 | fi |
b4e70030 JB |
20327 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
20328 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 20329 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
20330 | |
20331 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20332 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 20333 | _ACEOF |
97bf5e38 MK |
20334 | |
20335 | fi | |
97bf5e38 | 20336 | |
bc8bcb4b MK |
20337 | # Check if the compiler supports the `long double' type. We can't use |
20338 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
20339 | # constants defined in <float.h> that fail on some systems, | |
20340 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 20341 | |
b4e70030 JB |
20342 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
20343 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 20344 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 20345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20346 | else |
bec39cab AC |
20347 | cat >conftest.$ac_ext <<_ACEOF |
20348 | /* confdefs.h. */ | |
20349 | _ACEOF | |
20350 | cat confdefs.h >>conftest.$ac_ext | |
20351 | cat >>conftest.$ac_ext <<_ACEOF | |
20352 | /* end confdefs.h. */ | |
97bf5e38 | 20353 | long double foo; |
bec39cab AC |
20354 | _ACEOF |
20355 | rm -f conftest.$ac_objext | |
20356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20357 | (eval $ac_compile) 2>conftest.er1 | |
20358 | ac_status=$? | |
20359 | grep -v '^ *+' conftest.er1 >conftest.err | |
20360 | rm -f conftest.er1 | |
20361 | cat conftest.err >&5 | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); } && | |
b4e70030 JB |
20364 | { ac_try='test -z "$ac_c_werror_flag" |
20365 | || test ! -s conftest.err' | |
bec39cab AC |
20366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20367 | (eval $ac_try) 2>&5 | |
20368 | ac_status=$? | |
20369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20370 | (exit $ac_status); }; } && | |
20371 | { ac_try='test -s conftest.$ac_objext' | |
20372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20373 | (eval $ac_try) 2>&5 | |
20374 | ac_status=$? | |
20375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20376 | (exit $ac_status); }; }; then | |
bc8bcb4b | 20377 | gdb_cv_c_long_double=yes |
97bf5e38 | 20378 | else |
bec39cab AC |
20379 | echo "$as_me: failed program was:" >&5 |
20380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20381 | ||
b4e70030 | 20382 | gdb_cv_c_long_double=no |
97bf5e38 | 20383 | fi |
bec39cab | 20384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20385 | fi |
b4e70030 JB |
20386 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
20387 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 20388 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 20389 | |
bc8bcb4b | 20390 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 20391 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 20392 | _ACEOF |
97bf5e38 MK |
20393 | |
20394 | fi | |
20395 | ||
bc8bcb4b | 20396 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 20397 | |
b4e70030 JB |
20398 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
20399 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20400 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
20401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20402 | else |
20403 | if test "$cross_compiling" = yes; then | |
20404 | gdb_cv_printf_has_long_double=no | |
20405 | else | |
bec39cab AC |
20406 | cat >conftest.$ac_ext <<_ACEOF |
20407 | /* confdefs.h. */ | |
20408 | _ACEOF | |
20409 | cat confdefs.h >>conftest.$ac_ext | |
20410 | cat >>conftest.$ac_ext <<_ACEOF | |
20411 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20412 | $ac_includes_default |
20413 | int | |
20414 | main () | |
20415 | { | |
20416 | char buf[16]; | |
97bf5e38 MK |
20417 | long double f = 3.141592653; |
20418 | sprintf (buf, "%Lg", f); | |
20419 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
20420 | ; |
20421 | return 0; | |
97bf5e38 | 20422 | } |
bec39cab AC |
20423 | _ACEOF |
20424 | rm -f conftest$ac_exeext | |
20425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20426 | (eval $ac_link) 2>&5 | |
20427 | ac_status=$? | |
20428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20431 | (eval $ac_try) 2>&5 | |
20432 | ac_status=$? | |
20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20434 | (exit $ac_status); }; }; then | |
97bf5e38 | 20435 | gdb_cv_printf_has_long_double=yes |
c906108c | 20436 | else |
bec39cab AC |
20437 | echo "$as_me: program exited with status $ac_status" >&5 |
20438 | echo "$as_me: failed program was:" >&5 | |
20439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20440 | ||
20441 | ( exit $ac_status ) | |
20442 | gdb_cv_printf_has_long_double=no | |
c906108c | 20443 | fi |
b4e70030 | 20444 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20445 | fi |
c906108c | 20446 | fi |
b4e70030 JB |
20447 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
20448 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 20449 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
20450 | |
20451 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20452 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 20453 | _ACEOF |
97bf5e38 MK |
20454 | |
20455 | fi | |
97bf5e38 | 20456 | |
bc8bcb4b | 20457 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 20458 | |
b4e70030 JB |
20459 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
20460 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
20461 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
20462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20463 | else |
20464 | if test "$cross_compiling" = yes; then | |
20465 | gdb_cv_scanf_has_long_double=no | |
20466 | else | |
bec39cab AC |
20467 | cat >conftest.$ac_ext <<_ACEOF |
20468 | /* confdefs.h. */ | |
20469 | _ACEOF | |
20470 | cat confdefs.h >>conftest.$ac_ext | |
20471 | cat >>conftest.$ac_ext <<_ACEOF | |
20472 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20473 | #include <stdio.h> |
20474 | int | |
20475 | main () | |
20476 | { | |
20477 | char *buf = "3.141592653"; | |
97bf5e38 MK |
20478 | long double f = 0; |
20479 | sscanf (buf, "%Lg", &f); | |
20480 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
20481 | ; |
20482 | return 0; | |
97bf5e38 | 20483 | } |
bec39cab AC |
20484 | _ACEOF |
20485 | rm -f conftest$ac_exeext | |
20486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20487 | (eval $ac_link) 2>&5 | |
20488 | ac_status=$? | |
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20490 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20492 | (eval $ac_try) 2>&5 | |
20493 | ac_status=$? | |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20495 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20496 | gdb_cv_scanf_has_long_double=yes |
20497 | else | |
bec39cab AC |
20498 | echo "$as_me: program exited with status $ac_status" >&5 |
20499 | echo "$as_me: failed program was:" >&5 | |
20500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20501 | ||
20502 | ( exit $ac_status ) | |
20503 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 20504 | fi |
b4e70030 | 20505 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20506 | fi |
c906108c | 20507 | fi |
b4e70030 JB |
20508 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
20509 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 20510 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
20511 | |
20512 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20513 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 20514 | _ACEOF |
97bf5e38 MK |
20515 | |
20516 | fi | |
c906108c | 20517 | |
438013df AO |
20518 | case ${host_os} in |
20519 | aix*) | |
b4e70030 JB |
20520 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
20521 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
20522 | if test "${gdb_cv_bigtoc+set}" = set; then |
20523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 20524 | else |
bec39cab | 20525 | |
438013df AO |
20526 | SAVE_LDFLAGS=$LDFLAGS |
20527 | ||
20528 | case $GCC in | |
20529 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
20530 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
20531 | esac | |
20532 | ||
20533 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
20534 | cat >conftest.$ac_ext <<_ACEOF |
20535 | /* confdefs.h. */ | |
20536 | _ACEOF | |
20537 | cat confdefs.h >>conftest.$ac_ext | |
20538 | cat >>conftest.$ac_ext <<_ACEOF | |
20539 | /* end confdefs.h. */ | |
438013df | 20540 | |
bec39cab AC |
20541 | int |
20542 | main () | |
20543 | { | |
438013df | 20544 | int i; |
bec39cab AC |
20545 | ; |
20546 | return 0; | |
20547 | } | |
20548 | _ACEOF | |
20549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20551 | (eval $ac_link) 2>conftest.er1 | |
20552 | ac_status=$? | |
20553 | grep -v '^ *+' conftest.er1 >conftest.err | |
20554 | rm -f conftest.er1 | |
20555 | cat conftest.err >&5 | |
20556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20557 | (exit $ac_status); } && | |
b4e70030 JB |
20558 | { ac_try='test -z "$ac_c_werror_flag" |
20559 | || test ! -s conftest.err' | |
bec39cab AC |
20560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20561 | (eval $ac_try) 2>&5 | |
20562 | ac_status=$? | |
20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20564 | (exit $ac_status); }; } && | |
20565 | { ac_try='test -s conftest$ac_exeext' | |
20566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20567 | (eval $ac_try) 2>&5 | |
20568 | ac_status=$? | |
20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20570 | (exit $ac_status); }; }; then | |
438013df AO |
20571 | : |
20572 | else | |
bec39cab AC |
20573 | echo "$as_me: failed program was:" >&5 |
20574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20575 | ||
b4e70030 | 20576 | gdb_cv_bigtoc= |
438013df | 20577 | fi |
bec39cab AC |
20578 | rm -f conftest.err conftest.$ac_objext \ |
20579 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 20580 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 20581 | |
bec39cab | 20582 | fi |
b4e70030 JB |
20583 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
20584 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
20585 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
20586 | ;; | |
20587 | esac | |
20588 | ||
c906108c SS |
20589 | |
20590 | ||
20591 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
20592 | case ${host_os} in | |
20593 | hpux*) | |
b4e70030 JB |
20594 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
20595 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
20596 | if test -f /usr/include/dce/cma_config.h ; then |
20597 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
20598 | echo "$as_me:$LINENO: result: yes" >&5 |
20599 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
20600 | |
20601 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20602 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 20603 | _ACEOF |
c906108c | 20604 | |
3483b318 | 20605 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
20606 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
20607 | else | |
b4e70030 JB |
20608 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
20609 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
20610 | fi |
20611 | else | |
b4e70030 JB |
20612 | echo "$as_me:$LINENO: result: no" >&5 |
20613 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
20614 | fi |
20615 | ;; | |
20616 | solaris*) | |
d92419e5 JB |
20617 | # See if thread_db library is around for Solaris thread debugging. |
20618 | # Note that we must explicitly test for version 1 of the library | |
20619 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
20620 | # the same API. | |
b4e70030 JB |
20621 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
20622 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 20623 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
20624 | echo "$as_me:$LINENO: result: yes" >&5 |
20625 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
20626 | |
20627 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20628 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 20629 | _ACEOF |
c906108c | 20630 | |
3483b318 | 20631 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 20632 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 20633 | |
b4e70030 JB |
20634 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
20635 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
20636 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
20637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20638 | else |
bec39cab | 20639 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 20640 | LIBS="-ldl $LIBS" |
bec39cab AC |
20641 | cat >conftest.$ac_ext <<_ACEOF |
20642 | /* confdefs.h. */ | |
20643 | _ACEOF | |
20644 | cat confdefs.h >>conftest.$ac_ext | |
20645 | cat >>conftest.$ac_ext <<_ACEOF | |
20646 | /* end confdefs.h. */ | |
20647 | ||
b4e70030 | 20648 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
20649 | #ifdef __cplusplus |
20650 | extern "C" | |
20651 | #endif | |
b4e70030 JB |
20652 | /* We use char because int might match the return type of a gcc2 |
20653 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
20654 | char dlopen (); |
20655 | int | |
20656 | main () | |
20657 | { | |
b4e70030 | 20658 | dlopen (); |
bec39cab AC |
20659 | ; |
20660 | return 0; | |
20661 | } | |
20662 | _ACEOF | |
20663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20665 | (eval $ac_link) 2>conftest.er1 | |
20666 | ac_status=$? | |
20667 | grep -v '^ *+' conftest.er1 >conftest.err | |
20668 | rm -f conftest.er1 | |
20669 | cat conftest.err >&5 | |
20670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20671 | (exit $ac_status); } && | |
b4e70030 JB |
20672 | { ac_try='test -z "$ac_c_werror_flag" |
20673 | || test ! -s conftest.err' | |
bec39cab AC |
20674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20675 | (eval $ac_try) 2>&5 | |
20676 | ac_status=$? | |
20677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20678 | (exit $ac_status); }; } && | |
20679 | { ac_try='test -s conftest$ac_exeext' | |
20680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20681 | (eval $ac_try) 2>&5 | |
20682 | ac_status=$? | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); }; }; then | |
20685 | ac_cv_lib_dl_dlopen=yes | |
20686 | else | |
20687 | echo "$as_me: failed program was:" >&5 | |
20688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20689 | ||
b4e70030 | 20690 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
20691 | fi |
20692 | rm -f conftest.err conftest.$ac_objext \ | |
20693 | conftest$ac_exeext conftest.$ac_ext | |
20694 | LIBS=$ac_check_lib_save_LIBS | |
20695 | fi | |
b4e70030 JB |
20696 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
20697 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
20698 | if test $ac_cv_lib_dl_dlopen = yes; then |
20699 | cat >>confdefs.h <<_ACEOF | |
20700 | #define HAVE_LIBDL 1 | |
20701 | _ACEOF | |
c906108c SS |
20702 | |
20703 | LIBS="-ldl $LIBS" | |
20704 | ||
c906108c SS |
20705 | fi |
20706 | ||
20707 | if test "$GCC" = "yes" ; then | |
20708 | # The GNU linker requires the -export-dynamic option to make | |
20709 | # all symbols visible in the dynamic symbol table. | |
20710 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
20711 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
20712 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 20713 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
20714 | cat >conftest.$ac_ext <<_ACEOF |
20715 | /* confdefs.h. */ | |
20716 | _ACEOF | |
20717 | cat confdefs.h >>conftest.$ac_ext | |
20718 | cat >>conftest.$ac_ext <<_ACEOF | |
20719 | /* end confdefs.h. */ | |
c906108c | 20720 | |
bec39cab AC |
20721 | int |
20722 | main () | |
20723 | { | |
c906108c | 20724 | int i; |
bec39cab AC |
20725 | ; |
20726 | return 0; | |
20727 | } | |
20728 | _ACEOF | |
20729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20731 | (eval $ac_link) 2>conftest.er1 | |
20732 | ac_status=$? | |
20733 | grep -v '^ *+' conftest.er1 >conftest.err | |
20734 | rm -f conftest.er1 | |
20735 | cat conftest.err >&5 | |
20736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20737 | (exit $ac_status); } && | |
b4e70030 JB |
20738 | { ac_try='test -z "$ac_c_werror_flag" |
20739 | || test ! -s conftest.err' | |
bec39cab AC |
20740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20741 | (eval $ac_try) 2>&5 | |
20742 | ac_status=$? | |
20743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20744 | (exit $ac_status); }; } && | |
20745 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
c906108c SS |
20751 | found=yes |
20752 | else | |
bec39cab AC |
20753 | echo "$as_me: failed program was:" >&5 |
20754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20755 | ||
b4e70030 | 20756 | found=no |
c906108c | 20757 | fi |
bec39cab AC |
20758 | rm -f conftest.err conftest.$ac_objext \ |
20759 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 20760 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
20761 | echo "$as_me:$LINENO: result: $found" >&5 |
20762 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
20763 | if test $found = yes; then |
20764 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
20765 | fi | |
20766 | fi | |
20767 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
20768 | # at one point. | |
b4e70030 JB |
20769 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
20770 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
20771 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
20772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20773 | else |
bec39cab AC |
20774 | |
20775 | cat >conftest.$ac_ext <<_ACEOF | |
20776 | /* confdefs.h. */ | |
20777 | _ACEOF | |
20778 | cat confdefs.h >>conftest.$ac_ext | |
20779 | cat >>conftest.$ac_ext <<_ACEOF | |
20780 | /* end confdefs.h. */ | |
c906108c SS |
20781 | |
20782 | #include <proc_service.h> | |
20783 | ps_err_e ps_pdwrite | |
20784 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 20785 | |
bec39cab AC |
20786 | int |
20787 | main () | |
20788 | { | |
20789 | ||
20790 | ; | |
20791 | return 0; | |
20792 | } | |
20793 | _ACEOF | |
20794 | rm -f conftest.$ac_objext | |
20795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20796 | (eval $ac_compile) 2>conftest.er1 | |
20797 | ac_status=$? | |
20798 | grep -v '^ *+' conftest.er1 >conftest.err | |
20799 | rm -f conftest.er1 | |
20800 | cat conftest.err >&5 | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); } && | |
b4e70030 JB |
20803 | { ac_try='test -z "$ac_c_werror_flag" |
20804 | || test ! -s conftest.err' | |
bec39cab AC |
20805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20806 | (eval $ac_try) 2>&5 | |
20807 | ac_status=$? | |
20808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20809 | (exit $ac_status); }; } && | |
20810 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
20816 | gdb_cv_proc_service_is_old=no |
20817 | else | |
bec39cab AC |
20818 | echo "$as_me: failed program was:" >&5 |
20819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20820 | ||
b4e70030 | 20821 | gdb_cv_proc_service_is_old=yes |
c906108c | 20822 | fi |
bec39cab AC |
20823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20824 | ||
c906108c SS |
20825 | fi |
20826 | ||
b4e70030 JB |
20827 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
20828 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 20829 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
20830 | |
20831 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20832 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 20833 | _ACEOF |
c906108c SS |
20834 | |
20835 | fi | |
20836 | else | |
b4e70030 JB |
20837 | echo "$as_me:$LINENO: result: no" >&5 |
20838 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
20839 | fi |
20840 | ;; | |
d92419e5 | 20841 | aix*) |
b4e70030 JB |
20842 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
20843 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
20844 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
20845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20846 | else | |
20847 | cat >conftest.$ac_ext <<_ACEOF | |
20848 | /* confdefs.h. */ | |
20849 | _ACEOF | |
20850 | cat confdefs.h >>conftest.$ac_ext | |
20851 | cat >>conftest.$ac_ext <<_ACEOF | |
20852 | /* end confdefs.h. */ | |
d92419e5 | 20853 | #include <sys/pthdebug.h> |
bec39cab AC |
20854 | int |
20855 | main () | |
20856 | { | |
d92419e5 JB |
20857 | #ifndef PTHDB_VERSION_3 |
20858 | #error | |
20859 | #endif | |
bec39cab AC |
20860 | ; |
20861 | return 0; | |
20862 | } | |
20863 | _ACEOF | |
20864 | rm -f conftest.$ac_objext | |
20865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20866 | (eval $ac_compile) 2>conftest.er1 | |
20867 | ac_status=$? | |
20868 | grep -v '^ *+' conftest.er1 >conftest.err | |
20869 | rm -f conftest.er1 | |
20870 | cat conftest.err >&5 | |
20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20872 | (exit $ac_status); } && | |
b4e70030 JB |
20873 | { ac_try='test -z "$ac_c_werror_flag" |
20874 | || test ! -s conftest.err' | |
bec39cab AC |
20875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20876 | (eval $ac_try) 2>&5 | |
20877 | ac_status=$? | |
20878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20879 | (exit $ac_status); }; } && | |
20880 | { ac_try='test -s conftest.$ac_objext' | |
20881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20882 | (eval $ac_try) 2>&5 | |
20883 | ac_status=$? | |
20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20885 | (exit $ac_status); }; }; then | |
d92419e5 JB |
20886 | gdb_cv_have_aix_thread_debug=yes |
20887 | else | |
bec39cab AC |
20888 | echo "$as_me: failed program was:" >&5 |
20889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20890 | ||
b4e70030 | 20891 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 20892 | fi |
bec39cab | 20893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
20894 | fi |
20895 | ||
b4e70030 JB |
20896 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
20897 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
20898 | if test $gdb_cv_have_aix_thread_debug = yes; then |
20899 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 20900 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
20901 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
20902 | fi | |
20903 | ;; | |
c906108c | 20904 | esac |
bec39cab | 20905 | |
c906108c SS |
20906 | fi |
20907 | ||
3f47be5c | 20908 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
20909 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
20910 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
20911 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
20912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20913 | else | |
20914 | cat >conftest.$ac_ext <<_ACEOF | |
20915 | /* confdefs.h. */ | |
20916 | _ACEOF | |
20917 | cat confdefs.h >>conftest.$ac_ext | |
20918 | cat >>conftest.$ac_ext <<_ACEOF | |
20919 | /* end confdefs.h. */ | |
3f47be5c | 20920 | #include <thread_db.h> |
bec39cab AC |
20921 | int |
20922 | main () | |
20923 | { | |
3f47be5c | 20924 | int i = TD_NOTALLOC; |
bec39cab AC |
20925 | ; |
20926 | return 0; | |
20927 | } | |
20928 | _ACEOF | |
20929 | rm -f conftest.$ac_objext | |
20930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20931 | (eval $ac_compile) 2>conftest.er1 | |
20932 | ac_status=$? | |
20933 | grep -v '^ *+' conftest.er1 >conftest.err | |
20934 | rm -f conftest.er1 | |
20935 | cat conftest.err >&5 | |
20936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20937 | (exit $ac_status); } && | |
b4e70030 JB |
20938 | { ac_try='test -z "$ac_c_werror_flag" |
20939 | || test ! -s conftest.err' | |
bec39cab AC |
20940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20941 | (eval $ac_try) 2>&5 | |
20942 | ac_status=$? | |
20943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20944 | (exit $ac_status); }; } && | |
20945 | { ac_try='test -s conftest.$ac_objext' | |
20946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20947 | (eval $ac_try) 2>&5 | |
20948 | ac_status=$? | |
20949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20950 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
20951 | gdb_cv_thread_db_h_has_td_notalloc=yes |
20952 | else | |
bec39cab AC |
20953 | echo "$as_me: failed program was:" >&5 |
20954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20955 | ||
b4e70030 | 20956 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 20957 | |
3f47be5c | 20958 | fi |
bec39cab | 20959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 20960 | |
bec39cab | 20961 | fi |
b4e70030 JB |
20962 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
20963 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
20964 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
20965 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
20966 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
20967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20968 | else | |
20969 | cat >conftest.$ac_ext <<_ACEOF | |
20970 | /* confdefs.h. */ | |
20971 | _ACEOF | |
20972 | cat confdefs.h >>conftest.$ac_ext | |
20973 | cat >>conftest.$ac_ext <<_ACEOF | |
20974 | /* end confdefs.h. */ | |
20975 | #include <thread_db.h> | |
20976 | int | |
20977 | main () | |
20978 | { | |
20979 | int i = TD_VERSION; | |
20980 | ; | |
20981 | return 0; | |
20982 | } | |
20983 | _ACEOF | |
20984 | rm -f conftest.$ac_objext | |
20985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20986 | (eval $ac_compile) 2>conftest.er1 | |
20987 | ac_status=$? | |
20988 | grep -v '^ *+' conftest.er1 >conftest.err | |
20989 | rm -f conftest.er1 | |
20990 | cat conftest.err >&5 | |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20992 | (exit $ac_status); } && | |
20993 | { ac_try='test -z "$ac_c_werror_flag" | |
20994 | || test ! -s conftest.err' | |
20995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20996 | (eval $ac_try) 2>&5 | |
20997 | ac_status=$? | |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20999 | (exit $ac_status); }; } && | |
21000 | { ac_try='test -s conftest.$ac_objext' | |
21001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21002 | (eval $ac_try) 2>&5 | |
21003 | ac_status=$? | |
21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21005 | (exit $ac_status); }; }; then | |
21006 | gdb_cv_thread_db_h_has_td_version=yes | |
21007 | else | |
21008 | echo "$as_me: failed program was:" >&5 | |
21009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21010 | ||
21011 | gdb_cv_thread_db_h_has_td_version=no | |
21012 | ||
21013 | fi | |
21014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21015 | ||
21016 | fi | |
21017 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
21018 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
21019 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
21020 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
21021 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
21022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21023 | else | |
21024 | cat >conftest.$ac_ext <<_ACEOF | |
21025 | /* confdefs.h. */ | |
21026 | _ACEOF | |
21027 | cat confdefs.h >>conftest.$ac_ext | |
21028 | cat >>conftest.$ac_ext <<_ACEOF | |
21029 | /* end confdefs.h. */ | |
21030 | #include <thread_db.h> | |
21031 | int | |
21032 | main () | |
21033 | { | |
21034 | int i = TD_NOTLS; | |
21035 | ; | |
21036 | return 0; | |
21037 | } | |
21038 | _ACEOF | |
21039 | rm -f conftest.$ac_objext | |
21040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21041 | (eval $ac_compile) 2>conftest.er1 | |
21042 | ac_status=$? | |
21043 | grep -v '^ *+' conftest.er1 >conftest.err | |
21044 | rm -f conftest.er1 | |
21045 | cat conftest.err >&5 | |
21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21047 | (exit $ac_status); } && | |
21048 | { ac_try='test -z "$ac_c_werror_flag" | |
21049 | || test ! -s conftest.err' | |
21050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21051 | (eval $ac_try) 2>&5 | |
21052 | ac_status=$? | |
21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21054 | (exit $ac_status); }; } && | |
21055 | { ac_try='test -s conftest.$ac_objext' | |
21056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21057 | (eval $ac_try) 2>&5 | |
21058 | ac_status=$? | |
21059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21060 | (exit $ac_status); }; }; then | |
21061 | gdb_cv_thread_db_h_has_td_notls=yes | |
21062 | else | |
21063 | echo "$as_me: failed program was:" >&5 | |
21064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21065 | ||
21066 | gdb_cv_thread_db_h_has_td_notls=no | |
21067 | ||
21068 | fi | |
21069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21070 | ||
21071 | fi | |
21072 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
21073 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
21074 | fi |
21075 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
21076 | |
21077 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 21078 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 21079 | _ACEOF |
3f47be5c | 21080 | |
59f80f10 DJ |
21081 | fi |
21082 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
21083 | ||
21084 | cat >>confdefs.h <<\_ACEOF | |
21085 | #define THREAD_DB_HAS_TD_VERSION 1 | |
21086 | _ACEOF | |
21087 | ||
21088 | fi | |
21089 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
21090 | ||
21091 | cat >>confdefs.h <<\_ACEOF | |
21092 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
21093 | _ACEOF | |
21094 | ||
3f47be5c EZ |
21095 | fi |
21096 | ||
b757528f | 21097 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
21098 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
21099 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
21100 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
21101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21102 | else | |
21103 | cat >conftest.$ac_ext <<_ACEOF | |
21104 | /* confdefs.h. */ | |
21105 | _ACEOF | |
21106 | cat confdefs.h >>conftest.$ac_ext | |
21107 | cat >>conftest.$ac_ext <<_ACEOF | |
21108 | /* end confdefs.h. */ | |
b757528f | 21109 | #include <sys/syscall.h> |
bec39cab AC |
21110 | int |
21111 | main () | |
21112 | { | |
b757528f | 21113 | int i = __NR_tkill; |
bec39cab AC |
21114 | ; |
21115 | return 0; | |
21116 | } | |
21117 | _ACEOF | |
21118 | rm -f conftest.$ac_objext | |
21119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21120 | (eval $ac_compile) 2>conftest.er1 | |
21121 | ac_status=$? | |
21122 | grep -v '^ *+' conftest.er1 >conftest.err | |
21123 | rm -f conftest.er1 | |
21124 | cat conftest.err >&5 | |
21125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21126 | (exit $ac_status); } && | |
b4e70030 JB |
21127 | { ac_try='test -z "$ac_c_werror_flag" |
21128 | || test ! -s conftest.err' | |
bec39cab AC |
21129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21130 | (eval $ac_try) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); }; } && | |
21134 | { ac_try='test -s conftest.$ac_objext' | |
21135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21136 | (eval $ac_try) 2>&5 | |
21137 | ac_status=$? | |
21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21139 | (exit $ac_status); }; }; then | |
b757528f JJ |
21140 | gdb_cv_sys_syscall_h_has_tkill=yes |
21141 | else | |
bec39cab AC |
21142 | echo "$as_me: failed program was:" >&5 |
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21144 | ||
b4e70030 | 21145 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 21146 | |
b757528f | 21147 | fi |
bec39cab | 21148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 21149 | |
bec39cab | 21150 | fi |
b4e70030 JB |
21151 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
21152 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
21153 | fi |
21154 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
21155 | |
21156 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 21157 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 21158 | _ACEOF |
b757528f JJ |
21159 | |
21160 | fi | |
21161 | ||
fb40c209 | 21162 | |
bec39cab | 21163 | |
b4e70030 | 21164 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 21165 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
21166 | withval="$with_sysroot" |
21167 | ||
030292b7 | 21168 | case ${with_sysroot} in |
715d1656 | 21169 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
21170 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
21171 | esac | |
21172 | ||
21173 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
21174 | ||
21175 | if test "x$exec_prefix" = xNONE; then | |
21176 | if test "x$prefix" = xNONE; then | |
21177 | test_prefix=/usr/local | |
21178 | else | |
21179 | test_prefix=$prefix | |
21180 | fi | |
21181 | else | |
21182 | test_prefix=$exec_prefix | |
21183 | fi | |
21184 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
21185 | "${test_prefix}"|"${test_prefix}/"*|\ |
21186 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
21187 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
21188 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
21189 | ;; | |
21190 | esac | |
21191 | ||
21192 | else | |
bec39cab | 21193 | |
030292b7 DJ |
21194 | TARGET_SYSTEM_ROOT= |
21195 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
21196 | ||
b4e70030 | 21197 | fi; |
030292b7 DJ |
21198 | |
21199 | ||
21200 | ||
b4e70030 | 21201 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 21202 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
21203 | enableval="$enable_werror" |
21204 | case "${enableval}" in | |
094a342e MK |
21205 | yes | y) ERROR_ON_WARNING="yes" ;; |
21206 | no | n) ERROR_ON_WARNING="no" ;; | |
21207 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
21208 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
21209 | { (exit 1); exit 1; }; } ;; | |
21210 | esac | |
b4e70030 | 21211 | fi; |
094a342e MK |
21212 | |
21213 | # Enable -Werror by default when using gcc | |
21214 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
21215 | ERROR_ON_WARNING=yes | |
21216 | fi | |
21217 | ||
21218 | WERROR_CFLAGS="" | |
21219 | if test "${ERROR_ON_WARNING}" = yes ; then | |
21220 | WERROR_CFLAGS="-Werror" | |
21221 | fi | |
21222 | ||
aa79a185 DJ |
21223 | # The entries after -Wno-pointer-sign are disabled warnings which may |
21224 | # be enabled in the future, which can not currently be used to build | |
21225 | # GDB. | |
21226 | # NOTE: If you change this list, remember to update | |
3b851bce | 21227 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
21228 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
21229 | -Wformat-nonliteral -Wno-pointer-sign \ | |
21230 | -Wno-unused -Wno-switch" | |
a3b362c4 | 21231 | |
b4e70030 | 21232 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 21233 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
21234 | enableval="$enable_build_warnings" |
21235 | case "${enableval}" in | |
c906108c SS |
21236 | yes) ;; |
21237 | no) build_warnings="-w";; | |
21238 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21239 | build_warnings="${build_warnings} ${t}";; | |
21240 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21241 | build_warnings="${t} ${build_warnings}";; | |
21242 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21243 | esac | |
d4f3574e | 21244 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 21245 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 21246 | fi |
b4e70030 | 21247 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 21248 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
21249 | enableval="$enable_gdb_build_warnings" |
21250 | case "${enableval}" in | |
3b851bce AC |
21251 | yes) ;; |
21252 | no) build_warnings="-w";; | |
21253 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21254 | build_warnings="${build_warnings} ${t}";; | |
21255 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21256 | build_warnings="${t} ${build_warnings}";; | |
21257 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21258 | esac | |
21259 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
21260 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
21261 | fi | |
b4e70030 | 21262 | fi; WARN_CFLAGS="" |
c906108c SS |
21263 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
21264 | then | |
b4e70030 JB |
21265 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
21266 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
21267 | # Separate out the -Werror flag as some files just cannot be |
21268 | # compiled with it enabled. | |
21269 | for w in ${build_warnings}; do | |
21270 | case $w in | |
21271 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
21272 | *) # Check that GCC accepts it | |
4536bbc6 AC |
21273 | saved_CFLAGS="$CFLAGS" |
21274 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
21275 | cat >conftest.$ac_ext <<_ACEOF |
21276 | /* confdefs.h. */ | |
21277 | _ACEOF | |
21278 | cat confdefs.h >>conftest.$ac_ext | |
21279 | cat >>conftest.$ac_ext <<_ACEOF | |
21280 | /* end confdefs.h. */ | |
4536bbc6 | 21281 | |
bec39cab AC |
21282 | int |
21283 | main () | |
21284 | { | |
4536bbc6 | 21285 | |
bec39cab AC |
21286 | ; |
21287 | return 0; | |
21288 | } | |
21289 | _ACEOF | |
21290 | rm -f conftest.$ac_objext | |
21291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21292 | (eval $ac_compile) 2>conftest.er1 | |
21293 | ac_status=$? | |
21294 | grep -v '^ *+' conftest.er1 >conftest.err | |
21295 | rm -f conftest.er1 | |
21296 | cat conftest.err >&5 | |
21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21298 | (exit $ac_status); } && | |
b4e70030 JB |
21299 | { ac_try='test -z "$ac_c_werror_flag" |
21300 | || test ! -s conftest.err' | |
bec39cab AC |
21301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21302 | (eval $ac_try) 2>&5 | |
21303 | ac_status=$? | |
21304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21305 | (exit $ac_status); }; } && | |
21306 | { ac_try='test -s conftest.$ac_objext' | |
21307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21308 | (eval $ac_try) 2>&5 | |
21309 | ac_status=$? | |
21310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21311 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
21312 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
21313 | else | |
bec39cab AC |
21314 | echo "$as_me: failed program was:" >&5 |
21315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21316 | ||
4536bbc6 | 21317 | fi |
bec39cab | 21318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 21319 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
21320 | esac |
21321 | done | |
aa79a185 DJ |
21322 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
21323 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
21324 | fi |
21325 | ||
21326 | ||
104c1213 | 21327 | |
7a292a7a | 21328 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
21329 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
21330 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
21331 | if test "${gdb_cv_os_cygwin+set}" = set; then |
21332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21333 | else | |
21334 | cat >conftest.$ac_ext <<_ACEOF | |
21335 | /* confdefs.h. */ | |
21336 | _ACEOF | |
21337 | cat confdefs.h >>conftest.$ac_ext | |
21338 | cat >>conftest.$ac_ext <<_ACEOF | |
21339 | /* end confdefs.h. */ | |
7a292a7a SS |
21340 | |
21341 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
21342 | lose | |
21343 | #endif | |
bec39cab | 21344 | _ACEOF |
7a292a7a | 21345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 21346 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
21347 | gdb_cv_os_cygwin=yes |
21348 | else | |
7a292a7a SS |
21349 | gdb_cv_os_cygwin=no |
21350 | fi | |
21351 | rm -f conftest* | |
21352 | ||
21353 | fi | |
b4e70030 JB |
21354 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
21355 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 21356 | |
aff38e61 | 21357 | |
3eb25fda | 21358 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 21359 | case ${host} in |
95cbc983 AC |
21360 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
21361 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 21362 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
21363 | esac |
21364 | ||
21365 | ||
cd0fc7c3 SS |
21366 | # libreadline needs libuser32.a in a cygwin environment |
21367 | WIN32LIBS= | |
21368 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
21369 | WIN32LIBS="-luser32" |
21370 | case "${target}" in | |
21371 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
21372 | ;; | |
21373 | esac | |
cd0fc7c3 | 21374 | fi |
c906108c | 21375 | |
b4505029 MM |
21376 | # The ser-tcp.c module requires sockets. |
21377 | case ${host} in | |
21378 | *mingw32*) | |
21379 | ||
21380 | cat >>confdefs.h <<\_ACEOF | |
21381 | #define USE_WIN32API 1 | |
21382 | _ACEOF | |
21383 | ||
21384 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
21385 | ;; | |
21386 | esac | |
21387 | ||
7a292a7a | 21388 | |
121ce6e5 DJ |
21389 | # Add any host-specific objects to GDB. |
21390 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
21391 | ||
3fc11d3e JM |
21392 | LIBGUI="../libgui/src/libgui.a" |
21393 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
21394 | ||
21395 | ||
7a292a7a | 21396 | |
3fc11d3e JM |
21397 | WIN32LDAPP= |
21398 | ||
21399 | ||
21400 | ||
d91670b9 CV |
21401 | case "${host}" in |
21402 | *-*-cygwin*) | |
21403 | configdir="win" | |
21404 | ;; | |
21405 | *) | |
21406 | configdir="unix" | |
21407 | ;; | |
21408 | esac | |
3fc11d3e JM |
21409 | |
21410 | GDBTKLIBS= | |
21411 | if test "${enable_gdbtk}" = "yes"; then | |
21412 | ||
d1c3b63a KS |
21413 | # Gdbtk must have an absolute path to srcdir in order to run |
21414 | # properly when not installed. | |
21415 | here=`pwd` | |
21416 | cd ${srcdir} | |
21417 | GDBTK_SRC_DIR=`pwd` | |
21418 | cd $here | |
21419 | ||
bec39cab | 21420 | |
3fc11d3e JM |
21421 | # |
21422 | # Ok, lets find the tcl configuration | |
bec39cab | 21423 | # First, look for one uninstalled. |
3fc11d3e JM |
21424 | # the alternative search directory is invoked by --with-tclconfig |
21425 | # | |
21426 | ||
21427 | if test x"${no_tcl}" = x ; then | |
21428 | # we reset no_tcl in case something fails here | |
21429 | no_tcl=true | |
bec39cab | 21430 | |
b4e70030 | 21431 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 21432 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
21433 | withval="$with_tclconfig" |
21434 | with_tclconfig=${withval} | |
21435 | fi; | |
21436 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
21437 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
21438 | if test "${ac_cv_c_tclconfig+set}" = set; then |
21439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21440 | else |
bec39cab | 21441 | |
3fc11d3e JM |
21442 | |
21443 | # First check to see if --with-tclconfig was specified. | |
21444 | if test x"${with_tclconfig}" != x ; then | |
21445 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
21446 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
21447 | else | |
bec39cab AC |
21448 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
21449 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
21450 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21451 | fi |
21452 | fi | |
21453 | ||
21454 | # then check for a private Tcl installation | |
21455 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21456 | for i in \ | |
21457 | ../tcl \ | |
21458 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
21459 | ../../tcl \ | |
21460 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
21461 | ../../../tcl \ | |
21462 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
21463 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21464 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21465 | break | |
21466 | fi | |
21467 | done | |
21468 | fi | |
21469 | # check in a few common install locations | |
21470 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21471 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21472 | if test -f "$i/tclConfig.sh" ; then | |
21473 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
21474 | break | |
21475 | fi | |
21476 | done | |
21477 | fi | |
21478 | # check in a few other private locations | |
21479 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21480 | for i in \ | |
21481 | ${srcdir}/../tcl \ | |
21482 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
21483 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21484 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21485 | break | |
21486 | fi | |
21487 | done | |
21488 | fi | |
bec39cab | 21489 | |
3fc11d3e JM |
21490 | fi |
21491 | ||
21492 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21493 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
21494 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
21495 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
21496 | else |
21497 | no_tcl= | |
21498 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
21499 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
21500 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
21501 | fi |
21502 | fi | |
21503 | ||
21504 | if test -z "${no_tcl}"; then | |
bec39cab | 21505 | |
3fc11d3e JM |
21506 | . $TCLCONFIG |
21507 | ||
3fc11d3e JM |
21508 | |
21509 | ||
21510 | ||
21511 | ||
3fc11d3e JM |
21512 | |
21513 | ||
21514 | ||
bec39cab AC |
21515 | |
21516 | ||
21517 | ||
21518 | ||
21519 | ||
21520 | ||
21521 | ||
21522 | ||
21523 | ||
21524 | ||
21525 | ||
21526 | ||
21527 | ||
21528 | ||
21529 | ||
21530 | ||
21531 | ||
21532 | ||
21533 | ||
3fc11d3e JM |
21534 | # |
21535 | # Ok, lets find the tk configuration | |
bec39cab | 21536 | # First, look for one uninstalled. |
3fc11d3e JM |
21537 | # the alternative search directory is invoked by --with-tkconfig |
21538 | # | |
21539 | ||
21540 | if test x"${no_tk}" = x ; then | |
21541 | # we reset no_tk in case something fails here | |
21542 | no_tk=true | |
bec39cab | 21543 | |
b4e70030 | 21544 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 21545 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
21546 | withval="$with_tkconfig" |
21547 | with_tkconfig=${withval} | |
21548 | fi; | |
21549 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
21550 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
21551 | if test "${ac_cv_c_tkconfig+set}" = set; then |
21552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21553 | else |
bec39cab | 21554 | |
3fc11d3e JM |
21555 | |
21556 | # First check to see if --with-tkconfig was specified. | |
21557 | if test x"${with_tkconfig}" != x ; then | |
21558 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
21559 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
21560 | else | |
bec39cab AC |
21561 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
21562 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
21563 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21564 | fi |
21565 | fi | |
21566 | ||
21567 | # then check for a private Tk library | |
21568 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21569 | for i in \ | |
21570 | ../tk \ | |
21571 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
21572 | ../../tk \ | |
21573 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
21574 | ../../../tk \ | |
21575 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
21576 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
21577 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
21578 | break | |
21579 | fi | |
21580 | done | |
21581 | fi | |
21582 | # check in a few common install locations | |
21583 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21584 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21585 | if test -f "$i/tkConfig.sh" ; then | |
21586 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
21587 | break | |
21588 | fi | |
21589 | done | |
21590 | fi | |
21591 | # check in a few other private locations | |
21592 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21593 | for i in \ | |
21594 | ${srcdir}/../tk \ | |
21595 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
21596 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
21597 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
21598 | break | |
21599 | fi | |
21600 | done | |
21601 | fi | |
bec39cab | 21602 | |
3fc11d3e JM |
21603 | fi |
21604 | ||
21605 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21606 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
21607 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
21608 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
21609 | else |
21610 | no_tk= | |
21611 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
21612 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
21613 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
21614 | fi |
21615 | fi | |
21616 | ||
21617 | ||
21618 | ||
dd2504ab JM |
21619 | # now look for Tcl library stuff |
21620 | ||
d91670b9 | 21621 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
21622 | |
21623 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
21624 | ||
3fc11d3e JM |
21625 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
21626 | # point to doing Tcl. | |
21627 | if test -z "${no_tk}"; then | |
bec39cab | 21628 | |
3fc11d3e JM |
21629 | if test -f "$TKCONFIG" ; then |
21630 | . $TKCONFIG | |
21631 | fi | |
21632 | ||
3fc11d3e | 21633 | |
3fc11d3e JM |
21634 | |
21635 | ||
3fc11d3e | 21636 | |
bec39cab AC |
21637 | |
21638 | ||
21639 | ||
21640 | ||
21641 | ||
21642 | ||
21643 | ||
21644 | ||
21645 | ||
3fc11d3e JM |
21646 | # |
21647 | # Ok, lets find the tcl source trees so we can use the headers | |
21648 | # Warning: transition of version 9 to 10 will break this algorithm | |
21649 | # because 10 sorts before 9. We also look for just tcl. We have to | |
21650 | # be careful that we don't match stuff like tclX by accident. | |
21651 | # the alternative search directory is involked by --with-tclinclude | |
21652 | # | |
21653 | ||
21654 | no_tcl=true | |
b4e70030 JB |
21655 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
21656 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 21657 | |
b4e70030 | 21658 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 21659 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
21660 | withval="$with_tclinclude" |
21661 | with_tclinclude=${withval} | |
21662 | fi; | |
bec39cab AC |
21663 | if test "${ac_cv_c_tclh+set}" = set; then |
21664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21665 | else |
bec39cab | 21666 | |
3fc11d3e JM |
21667 | # first check to see if --with-tclinclude was specified |
21668 | if test x"${with_tclinclude}" != x ; then | |
21669 | if test -f ${with_tclinclude}/tclInt.h ; then | |
21670 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
21671 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
21672 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
21673 | else | |
bec39cab AC |
21674 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
21675 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
21676 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21677 | fi |
21678 | fi | |
21679 | ||
21680 | # next check if it came with Tcl configuration file | |
21681 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21682 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
21683 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
21684 | fi | |
21685 | fi | |
21686 | ||
21687 | # next check in private source directory | |
21688 | # | |
21689 | # since ls returns lowest version numbers first, reverse its output | |
21690 | if test x"${ac_cv_c_tclh}" = x ; then | |
21691 | for i in \ | |
21692 | ${srcdir}/../tcl \ | |
21693 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
21694 | ${srcdir}/../../tcl \ | |
21695 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
21696 | ${srcdir}/../../../tcl \ | |
21697 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
21698 | if test -f $i/generic/tclInt.h ; then | |
21699 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
21700 | break | |
21701 | fi | |
21702 | done | |
21703 | fi | |
21704 | # finally check in a few common install locations | |
21705 | # | |
21706 | # since ls returns lowest version numbers first, reverse its output | |
21707 | if test x"${ac_cv_c_tclh}" = x ; then | |
21708 | for i in \ | |
21709 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
21710 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
21711 | /usr/local/src/tcl \ | |
21712 | /usr/local/lib/tcl \ | |
21713 | ${prefix}/include ; do | |
21714 | if test -f $i/generic/tclInt.h ; then | |
21715 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
21716 | break | |
21717 | fi | |
21718 | done | |
21719 | fi | |
21720 | # see if one is installed | |
21721 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 21722 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
21723 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
21724 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
21725 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
21726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21727 | fi | |
b4e70030 JB |
21728 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
21729 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
21730 | else |
21731 | # Is the header compilable? | |
b4e70030 JB |
21732 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
21733 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
21734 | cat >conftest.$ac_ext <<_ACEOF |
21735 | /* confdefs.h. */ | |
21736 | _ACEOF | |
21737 | cat confdefs.h >>conftest.$ac_ext | |
21738 | cat >>conftest.$ac_ext <<_ACEOF | |
21739 | /* end confdefs.h. */ | |
21740 | $ac_includes_default | |
21741 | #include <tclInt.h> | |
21742 | _ACEOF | |
21743 | rm -f conftest.$ac_objext | |
21744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21745 | (eval $ac_compile) 2>conftest.er1 | |
21746 | ac_status=$? | |
21747 | grep -v '^ *+' conftest.er1 >conftest.err | |
21748 | rm -f conftest.er1 | |
21749 | cat conftest.err >&5 | |
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21751 | (exit $ac_status); } && | |
b4e70030 JB |
21752 | { ac_try='test -z "$ac_c_werror_flag" |
21753 | || test ! -s conftest.err' | |
bec39cab AC |
21754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21755 | (eval $ac_try) 2>&5 | |
21756 | ac_status=$? | |
21757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21758 | (exit $ac_status); }; } && | |
21759 | { ac_try='test -s conftest.$ac_objext' | |
21760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21761 | (eval $ac_try) 2>&5 | |
21762 | ac_status=$? | |
21763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21764 | (exit $ac_status); }; }; then | |
21765 | ac_header_compiler=yes | |
21766 | else | |
21767 | echo "$as_me: failed program was:" >&5 | |
21768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21769 | ||
b4e70030 | 21770 | ac_header_compiler=no |
bec39cab AC |
21771 | fi |
21772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
21773 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21774 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
21775 | |
21776 | # Is the header present? | |
b4e70030 JB |
21777 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
21778 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
21779 | cat >conftest.$ac_ext <<_ACEOF |
21780 | /* confdefs.h. */ | |
21781 | _ACEOF | |
21782 | cat confdefs.h >>conftest.$ac_ext | |
21783 | cat >>conftest.$ac_ext <<_ACEOF | |
21784 | /* end confdefs.h. */ | |
3fc11d3e | 21785 | #include <tclInt.h> |
bec39cab AC |
21786 | _ACEOF |
21787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21789 | ac_status=$? | |
21790 | grep -v '^ *+' conftest.er1 >conftest.err | |
21791 | rm -f conftest.er1 | |
21792 | cat conftest.err >&5 | |
21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21794 | (exit $ac_status); } >/dev/null; then | |
21795 | if test -s conftest.err; then | |
21796 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21798 | else | |
21799 | ac_cpp_err= | |
21800 | fi | |
21801 | else | |
21802 | ac_cpp_err=yes | |
3fc11d3e | 21803 | fi |
bec39cab AC |
21804 | if test -z "$ac_cpp_err"; then |
21805 | ac_header_preproc=yes | |
21806 | else | |
21807 | echo "$as_me: failed program was:" >&5 | |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21809 | ||
21810 | ac_header_preproc=no | |
3fc11d3e | 21811 | fi |
bec39cab | 21812 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
21813 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21814 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
21815 | |
21816 | # So? What about this header? | |
21817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21818 | yes:no: ) | |
21819 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21820 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21821 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
21822 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
21823 | ac_header_preproc=yes | |
21824 | ;; | |
21825 | no:yes:* ) | |
21826 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
21827 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
21828 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
21829 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
21830 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
21831 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
21832 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21833 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21834 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
21835 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
21836 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
21837 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
21838 | ( |
21839 | cat <<\_ASBOX | |
21840 | ## ------------------------------------------ ## | |
21841 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
21842 | ## ------------------------------------------ ## | |
21843 | _ASBOX | |
21844 | ) | | |
21845 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
21846 | ;; |
21847 | esac | |
b4e70030 JB |
21848 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
21849 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
21850 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21852 | else | |
21853 | ac_cv_header_tclInt_h=$ac_header_preproc | |
21854 | fi | |
b4e70030 JB |
21855 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
21856 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
21857 | |
21858 | fi | |
21859 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
21860 | ac_cv_c_tclh=installed |
21861 | else | |
bec39cab | 21862 | ac_cv_c_tclh="" |
3fc11d3e JM |
21863 | fi |
21864 | ||
bec39cab | 21865 | |
3fc11d3e JM |
21866 | fi |
21867 | ||
21868 | fi | |
21869 | ||
21870 | if test x"${ac_cv_c_tclh}" = x ; then | |
21871 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
21872 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
21873 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
21874 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21875 | fi |
21876 | if test x"${ac_cv_c_tclh}" != x ; then | |
21877 | no_tcl="" | |
21878 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
21879 | echo "$as_me:$LINENO: result: is installed" >&5 |
21880 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
21881 | TCLHDIR="" |
21882 | else | |
b4e70030 JB |
21883 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
21884 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
21885 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
21886 | TCLHDIR="-I${ac_cv_c_tclh}" | |
21887 | fi | |
21888 | fi | |
21889 | ||
21890 | ||
21891 | ||
bec39cab | 21892 | |
3fc11d3e JM |
21893 | # |
21894 | # Ok, lets find the tk source trees so we can use the headers | |
21895 | # If the directory (presumably symlink) named "tk" exists, use that one | |
21896 | # in preference to any others. Same logic is used when choosing library | |
21897 | # and again with Tcl. The search order is the best place to look first, then in | |
21898 | # decreasing significance. The loop breaks if the trigger file is found. | |
21899 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
21900 | # directory. This converts the path from a relative to an absolute, so | |
21901 | # recursive cache variables for the path will work right. We check all | |
21902 | # the possible paths in one loop rather than many seperate loops to speed | |
21903 | # things up. | |
21904 | # the alternative search directory is involked by --with-tkinclude | |
21905 | # | |
21906 | no_tk=true | |
b4e70030 JB |
21907 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
21908 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 21909 | |
b4e70030 | 21910 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 21911 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
21912 | withval="$with_tkinclude" |
21913 | with_tkinclude=${withval} | |
21914 | fi; | |
bec39cab AC |
21915 | if test "${ac_cv_c_tkh+set}" = set; then |
21916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21917 | else |
bec39cab | 21918 | |
3fc11d3e JM |
21919 | # first check to see if --with-tkinclude was specified |
21920 | if test x"${with_tkinclude}" != x ; then | |
21921 | if test -f ${with_tkinclude}/tk.h ; then | |
21922 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
21923 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
21924 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
21925 | else | |
bec39cab AC |
21926 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
21927 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
21928 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21929 | fi |
21930 | fi | |
21931 | ||
21932 | # next check if it came with Tk configuration file | |
21933 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21934 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
21935 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
21936 | fi | |
21937 | fi | |
21938 | ||
21939 | # next check in private source directory | |
21940 | # | |
21941 | # since ls returns lowest version numbers first, reverse its output | |
21942 | if test x"${ac_cv_c_tkh}" = x ; then | |
21943 | for i in \ | |
21944 | ${srcdir}/../tk \ | |
21945 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
21946 | ${srcdir}/../../tk \ | |
21947 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
21948 | ${srcdir}/../../../tk \ | |
21949 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
21950 | if test -f $i/generic/tk.h ; then | |
21951 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
21952 | break | |
21953 | fi | |
21954 | done | |
21955 | fi | |
21956 | # finally check in a few common install locations | |
21957 | # | |
21958 | # since ls returns lowest version numbers first, reverse its output | |
21959 | if test x"${ac_cv_c_tkh}" = x ; then | |
21960 | for i in \ | |
21961 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
21962 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
21963 | /usr/local/src/tk \ | |
21964 | /usr/local/lib/tk \ | |
21965 | ${prefix}/include ; do | |
21966 | if test -f $i/generic/tk.h ; then | |
21967 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
21968 | break | |
21969 | fi | |
21970 | done | |
21971 | fi | |
21972 | # see if one is installed | |
21973 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 21974 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
21975 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
21976 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
21977 | if test "${ac_cv_header_tk_h+set}" = set; then |
21978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21979 | fi | |
b4e70030 JB |
21980 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
21981 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
21982 | else |
21983 | # Is the header compilable? | |
b4e70030 JB |
21984 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
21985 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
21986 | cat >conftest.$ac_ext <<_ACEOF |
21987 | /* confdefs.h. */ | |
21988 | _ACEOF | |
21989 | cat confdefs.h >>conftest.$ac_ext | |
21990 | cat >>conftest.$ac_ext <<_ACEOF | |
21991 | /* end confdefs.h. */ | |
21992 | $ac_includes_default | |
3fc11d3e | 21993 | #include <tk.h> |
bec39cab AC |
21994 | _ACEOF |
21995 | rm -f conftest.$ac_objext | |
21996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21997 | (eval $ac_compile) 2>conftest.er1 | |
21998 | ac_status=$? | |
21999 | grep -v '^ *+' conftest.er1 >conftest.err | |
22000 | rm -f conftest.er1 | |
22001 | cat conftest.err >&5 | |
22002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22003 | (exit $ac_status); } && | |
b4e70030 JB |
22004 | { ac_try='test -z "$ac_c_werror_flag" |
22005 | || test ! -s conftest.err' | |
bec39cab AC |
22006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22007 | (eval $ac_try) 2>&5 | |
22008 | ac_status=$? | |
22009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22010 | (exit $ac_status); }; } && | |
22011 | { ac_try='test -s conftest.$ac_objext' | |
22012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22013 | (eval $ac_try) 2>&5 | |
22014 | ac_status=$? | |
22015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22016 | (exit $ac_status); }; }; then | |
22017 | ac_header_compiler=yes | |
22018 | else | |
22019 | echo "$as_me: failed program was:" >&5 | |
22020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22021 | ||
b4e70030 | 22022 | ac_header_compiler=no |
bec39cab AC |
22023 | fi |
22024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22026 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22027 | |
22028 | # Is the header present? | |
b4e70030 JB |
22029 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
22030 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22031 | cat >conftest.$ac_ext <<_ACEOF |
22032 | /* confdefs.h. */ | |
22033 | _ACEOF | |
22034 | cat confdefs.h >>conftest.$ac_ext | |
22035 | cat >>conftest.$ac_ext <<_ACEOF | |
22036 | /* end confdefs.h. */ | |
22037 | #include <tk.h> | |
22038 | _ACEOF | |
22039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22041 | ac_status=$? | |
22042 | grep -v '^ *+' conftest.er1 >conftest.err | |
22043 | rm -f conftest.er1 | |
22044 | cat conftest.err >&5 | |
22045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22046 | (exit $ac_status); } >/dev/null; then | |
22047 | if test -s conftest.err; then | |
22048 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22050 | else | |
22051 | ac_cpp_err= | |
22052 | fi | |
22053 | else | |
22054 | ac_cpp_err=yes | |
3fc11d3e | 22055 | fi |
bec39cab AC |
22056 | if test -z "$ac_cpp_err"; then |
22057 | ac_header_preproc=yes | |
22058 | else | |
22059 | echo "$as_me: failed program was:" >&5 | |
22060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22061 | ||
22062 | ac_header_preproc=no | |
22063 | fi | |
22064 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
22065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22066 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22067 | |
22068 | # So? What about this header? | |
22069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22070 | yes:no: ) | |
22071 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22072 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22073 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
22074 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
22075 | ac_header_preproc=yes | |
22076 | ;; | |
22077 | no:yes:* ) | |
22078 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
22079 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
22080 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
22081 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
22082 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
22083 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
22084 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22085 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22086 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
22087 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
22088 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
22089 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22090 | ( |
22091 | cat <<\_ASBOX | |
22092 | ## ------------------------------------------ ## | |
22093 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22094 | ## ------------------------------------------ ## | |
22095 | _ASBOX | |
22096 | ) | | |
22097 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22098 | ;; |
22099 | esac | |
b4e70030 JB |
22100 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22101 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22102 | if test "${ac_cv_header_tk_h+set}" = set; then |
22103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22104 | else | |
22105 | ac_cv_header_tk_h=$ac_header_preproc | |
22106 | fi | |
b4e70030 JB |
22107 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22108 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 22109 | |
3fc11d3e | 22110 | fi |
bec39cab | 22111 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
22112 | ac_cv_c_tkh=installed |
22113 | else | |
bec39cab | 22114 | ac_cv_c_tkh="" |
3fc11d3e JM |
22115 | fi |
22116 | ||
bec39cab | 22117 | |
3fc11d3e JM |
22118 | fi |
22119 | ||
22120 | fi | |
22121 | ||
22122 | if test x"${ac_cv_c_tkh}" != x ; then | |
22123 | no_tk="" | |
22124 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
22125 | echo "$as_me:$LINENO: result: is installed" >&5 |
22126 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22127 | TKHDIR="" |
22128 | else | |
b4e70030 JB |
22129 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
22130 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
22131 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
22132 | TKHDIR="-I${ac_cv_c_tkh}" | |
22133 | fi | |
22134 | else | |
22135 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
22136 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
22137 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
22138 | no_tk=true |
22139 | fi | |
22140 | ||
22141 | ||
22142 | ||
bec39cab | 22143 | |
b4e70030 JB |
22144 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
22145 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22146 | if test x"${ac_cv_c_itclh}" = x ; then |
22147 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
22148 | if test -f $i/generic/itcl.h ; then | |
22149 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
22150 | break | |
22151 | fi | |
22152 | done | |
22153 | fi | |
22154 | if test x"${ac_cv_c_itclh}" = x ; then | |
22155 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
22156 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
22157 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
22158 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22159 | fi |
22160 | if test x"${ac_cv_c_itclh}" != x ; then | |
22161 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
22162 | fi | |
22163 | # should always be here | |
22164 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
22165 | ||
22166 | #AC_SUBST(ITCLLIB) | |
22167 | ||
bec39cab | 22168 | |
b4e70030 JB |
22169 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
22170 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22171 | if test x"${ac_cv_c_itkh}" = x ; then |
22172 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
22173 | if test -f $i/generic/itk.h ; then | |
22174 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
22175 | break | |
22176 | fi | |
22177 | done | |
22178 | fi | |
22179 | if test x"${ac_cv_c_itkh}" = x ; then | |
22180 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
22181 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
22182 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
22183 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22184 | fi |
22185 | if test x"${ac_cv_c_itkh}" != x ; then | |
22186 | ITKHDIR="-I${ac_cv_c_itkh}" | |
22187 | fi | |
22188 | # should always be here | |
22189 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
22190 | ||
22191 | #AC_SUBST(ITKLIB) | |
22192 | ||
3fc11d3e | 22193 | |
dd2504ab JM |
22194 | |
22195 | # now look for Tk library stuff | |
22196 | ||
d91670b9 | 22197 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
22198 | |
22199 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
22200 | ||
3fc11d3e JM |
22201 | # now look for Itcl library stuff |
22202 | ||
bec39cab | 22203 | |
3fc11d3e JM |
22204 | # |
22205 | # Ok, lets find the itcl configuration | |
bec39cab | 22206 | # First, look for one uninstalled. |
3fc11d3e JM |
22207 | # the alternative search directory is invoked by --with-itclconfig |
22208 | # | |
22209 | ||
22210 | if test x"${no_itcl}" = x ; then | |
22211 | # we reset no_itcl in case something fails here | |
22212 | no_itcl=true | |
bec39cab | 22213 | |
b4e70030 | 22214 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 22215 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
22216 | withval="$with_itclconfig" |
22217 | with_itclconfig=${withval} | |
22218 | fi; | |
22219 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
22220 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22221 | if test "${ac_cv_c_itclconfig+set}" = set; then |
22222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22223 | else |
bec39cab | 22224 | |
3fc11d3e JM |
22225 | |
22226 | # First check to see if --with-itclconfig was specified. | |
22227 | if test x"${with_itclconfig}" != x ; then | |
22228 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
22229 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
22230 | else | |
bec39cab AC |
22231 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
22232 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
22233 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22234 | fi |
22235 | fi | |
22236 | ||
22237 | # then check for a private Itcl library | |
22238 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22239 | for i in \ | |
22240 | ../itcl/itcl \ | |
22241 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
22242 | ../../itcl \ | |
22243 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
22244 | ../../../itcl \ | |
22245 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22246 | if test -f "$i/itclConfig.sh" ; then | |
22247 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22248 | break | |
22249 | fi | |
22250 | done | |
22251 | fi | |
22252 | # check in a few common install locations | |
22253 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22254 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22255 | if test -f "$i/itclConfig.sh" ; then | |
22256 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22257 | break | |
22258 | fi | |
22259 | done | |
22260 | fi | |
22261 | # check in a few other private locations | |
22262 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22263 | for i in \ | |
22264 | ${srcdir}/../itcl/itcl \ | |
22265 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22266 | if test -f "$i/itclConfig.sh" ; then | |
22267 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22268 | break | |
22269 | fi | |
22270 | done | |
22271 | fi | |
bec39cab | 22272 | |
3fc11d3e JM |
22273 | fi |
22274 | ||
22275 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22276 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
22277 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
22278 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
22279 | else |
22280 | no_itcl= | |
22281 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
22282 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
22283 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
22284 | fi |
22285 | fi | |
22286 | ||
22287 | if test -z "${no_itcl}"; then | |
bec39cab | 22288 | |
3fc11d3e JM |
22289 | if test -f "$ITCLCONFIG" ; then |
22290 | . $ITCLCONFIG | |
22291 | fi | |
22292 | ||
3fc11d3e | 22293 | |
3fc11d3e JM |
22294 | |
22295 | ||
bec39cab AC |
22296 | |
22297 | ||
22298 | ||
22299 | ||
22300 | ||
22301 | ||
22302 | ||
3fc11d3e JM |
22303 | |
22304 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 22305 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
22306 | fi |
22307 | ||
bec39cab | 22308 | |
3fc11d3e | 22309 | # now look for Itk library stuff |
bec39cab | 22310 | |
3fc11d3e JM |
22311 | # |
22312 | # Ok, lets find the itk configuration | |
bec39cab | 22313 | # First, look for one uninstalled. |
3fc11d3e JM |
22314 | # the alternative search directory is invoked by --with-itkconfig |
22315 | # | |
22316 | ||
22317 | if test x"${no_itk}" = x ; then | |
22318 | # we reset no_itk in case something fails here | |
22319 | no_itk=true | |
bec39cab | 22320 | |
b4e70030 | 22321 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 22322 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
22323 | withval="$with_itkconfig" |
22324 | with_itkconfig=${withval} | |
22325 | fi; | |
22326 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
22327 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22328 | if test "${ac_cv_c_itkconfig+set}" = set; then |
22329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22330 | else |
bec39cab | 22331 | |
3fc11d3e JM |
22332 | |
22333 | # First check to see if --with-itkconfig was specified. | |
22334 | if test x"${with_itkconfig}" != x ; then | |
22335 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
22336 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
22337 | else | |
bec39cab AC |
22338 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
22339 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
22340 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22341 | fi |
22342 | fi | |
22343 | ||
22344 | # then check for a private Itk library | |
22345 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22346 | for i in \ | |
22347 | ../itcl/itk \ | |
22348 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
22349 | ../../itk \ | |
22350 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
22351 | ../../../itk \ | |
22352 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
22353 | if test -f "$i/itkConfig.sh" ; then | |
22354 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22355 | break | |
22356 | fi | |
22357 | done | |
22358 | fi | |
22359 | # check in a few common install locations | |
22360 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22361 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22362 | if test -f "$i/itkConfig.sh" ; then | |
22363 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22364 | break | |
22365 | fi | |
22366 | done | |
22367 | fi | |
22368 | # check in a few other private locations | |
22369 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22370 | for i in \ | |
22371 | ${srcdir}/../itcl/itk \ | |
22372 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
22373 | if test -f "$i/itkConfig.sh" ; then | |
22374 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22375 | break | |
22376 | fi | |
22377 | done | |
22378 | fi | |
bec39cab | 22379 | |
3fc11d3e JM |
22380 | fi |
22381 | ||
22382 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22383 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
22384 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
22385 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
22386 | else |
22387 | no_itk= | |
22388 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
22389 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
22390 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
22391 | fi |
22392 | fi | |
22393 | ||
22394 | ||
bec39cab AC |
22395 | if test -z "${no_itcl}"; then |
22396 | ||
22397 | if test -f "$ITKCONFIG" ; then | |
22398 | . $ITKCONFIG | |
22399 | fi | |
22400 | ||
22401 | ||
22402 | ||
22403 | ||
22404 | ||
22405 | ||
3fc11d3e | 22406 | |
3fc11d3e | 22407 | |
3fc11d3e JM |
22408 | |
22409 | ||
3fc11d3e JM |
22410 | |
22411 | ||
3fc11d3e | 22412 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 22413 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
22414 | fi |
22415 | ||
4226a5a5 | 22416 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
22417 | |
22418 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 22419 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
22420 | # Yes, the ordering seems wrong here. But it isn't. |
22421 | # TK_LIBS is the list of libraries that need to be linked | |
22422 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
22423 | # were in LIBS then any link tests after this point would | |
22424 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
22425 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
22426 | |
22427 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
22428 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
22429 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
22430 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
22431 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
22432 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
22433 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
22434 | |
22435 | if test x$gdb_cv_os_cygwin = xyes; then | |
22436 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
22437 | WIN32LDAPP="-Wl,--subsystem,console" | |
22438 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
22439 | fi | |
22440 | fi | |
22441 | fi | |
ffc6a242 | 22442 | |
b4e70030 JB |
22443 | |
22444 | ||
22445 | subdirs="$subdirs gdbtk" | |
3ace7edb | 22446 | |
3fc11d3e JM |
22447 | fi |
22448 | ||
22449 | ||
22450 | ||
22451 | ||
22452 | ||
22453 | ||
22454 | ||
22455 | ||
22456 | ||
22457 | ||
22458 | ||
22459 | ||
22460 | ||
dd2504ab | 22461 | |
b4e70030 JB |
22462 | echo "$as_me:$LINENO: checking for X" >&5 |
22463 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 22464 | |
c906108c | 22465 | |
b4e70030 | 22466 | # Check whether --with-x or --without-x was given. |
c906108c | 22467 | if test "${with_x+set}" = set; then |
b4e70030 | 22468 | withval="$with_x" |
c906108c | 22469 | |
b4e70030 | 22470 | fi; |
c906108c SS |
22471 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22472 | if test "x$with_x" = xno; then | |
22473 | # The user explicitly disabled X. | |
22474 | have_x=disabled | |
22475 | else | |
22476 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22477 | # Both variables are already set. | |
22478 | have_x=yes | |
22479 | else | |
bec39cab AC |
22480 | if test "${ac_cv_have_x+set}" = set; then |
22481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
22482 | else |
22483 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 22484 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 22485 | rm -fr conftest.dir |
bec39cab AC |
22486 | if mkdir conftest.dir; then |
22487 | cd conftest.dir | |
c906108c | 22488 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 22489 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
22490 | acfindx: |
22491 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 22492 | _ACEOF |
b4e70030 | 22493 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
22494 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
22495 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22496 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22497 | for ac_extension in a so sl; do | |
22498 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
22499 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22500 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
22501 | fi |
22502 | done | |
22503 | # Screen out bogus values from the imake configuration. They are | |
22504 | # bogus both because they are the default anyway, and because | |
22505 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 22506 | case $ac_im_incroot in |
b4e70030 | 22507 | /usr/include) ;; |
bec39cab | 22508 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 22509 | esac |
bec39cab | 22510 | case $ac_im_usrlibdir in |
c906108c | 22511 | /usr/lib | /lib) ;; |
bec39cab | 22512 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
22513 | esac |
22514 | fi | |
22515 | cd .. | |
b4e70030 | 22516 | rm -fr conftest.dir |
c906108c SS |
22517 | fi |
22518 | ||
bec39cab AC |
22519 | # Standard set of common directories for X headers. |
22520 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22521 | ac_x_header_dirs=' | |
22522 | /usr/X11/include | |
22523 | /usr/X11R6/include | |
22524 | /usr/X11R5/include | |
22525 | /usr/X11R4/include | |
22526 | ||
22527 | /usr/include/X11 | |
22528 | /usr/include/X11R6 | |
22529 | /usr/include/X11R5 | |
22530 | /usr/include/X11R4 | |
22531 | ||
22532 | /usr/local/X11/include | |
22533 | /usr/local/X11R6/include | |
22534 | /usr/local/X11R5/include | |
22535 | /usr/local/X11R4/include | |
22536 | ||
22537 | /usr/local/include/X11 | |
22538 | /usr/local/include/X11R6 | |
22539 | /usr/local/include/X11R5 | |
22540 | /usr/local/include/X11R4 | |
22541 | ||
22542 | /usr/X386/include | |
22543 | /usr/x386/include | |
22544 | /usr/XFree86/include/X11 | |
22545 | ||
22546 | /usr/include | |
22547 | /usr/local/include | |
22548 | /usr/unsupported/include | |
22549 | /usr/athena/include | |
22550 | /usr/local/x11r5/include | |
22551 | /usr/lpp/Xamples/include | |
22552 | ||
22553 | /usr/openwin/include | |
22554 | /usr/openwin/share/include' | |
22555 | ||
22556 | if test "$ac_x_includes" = no; then | |
59f80f10 | 22557 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 22558 | # First, try using that file with no special directory specified. |
bec39cab AC |
22559 | cat >conftest.$ac_ext <<_ACEOF |
22560 | /* confdefs.h. */ | |
22561 | _ACEOF | |
22562 | cat confdefs.h >>conftest.$ac_ext | |
22563 | cat >>conftest.$ac_ext <<_ACEOF | |
22564 | /* end confdefs.h. */ | |
59f80f10 | 22565 | #include <X11/Intrinsic.h> |
bec39cab AC |
22566 | _ACEOF |
22567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22569 | ac_status=$? | |
22570 | grep -v '^ *+' conftest.er1 >conftest.err | |
22571 | rm -f conftest.er1 | |
22572 | cat conftest.err >&5 | |
22573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22574 | (exit $ac_status); } >/dev/null; then | |
22575 | if test -s conftest.err; then | |
22576 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22578 | else | |
22579 | ac_cpp_err= | |
22580 | fi | |
22581 | else | |
22582 | ac_cpp_err=yes | |
22583 | fi | |
22584 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
22585 | # We can compile using X headers with no special include directory. |
22586 | ac_x_includes= | |
22587 | else | |
bec39cab AC |
22588 | echo "$as_me: failed program was:" >&5 |
22589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22590 | ||
22591 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 22592 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
22593 | ac_x_includes=$ac_dir |
22594 | break | |
22595 | fi | |
22596 | done | |
c906108c | 22597 | fi |
bec39cab AC |
22598 | rm -f conftest.err conftest.$ac_ext |
22599 | fi # $ac_x_includes = no | |
c906108c | 22600 | |
bec39cab | 22601 | if test "$ac_x_libraries" = no; then |
c906108c | 22602 | # Check for the libraries. |
c906108c SS |
22603 | # See if we find them without any special options. |
22604 | # Don't add to $LIBS permanently. | |
bec39cab | 22605 | ac_save_LIBS=$LIBS |
4e8d927d | 22606 | LIBS="-lXt $LIBS" |
bec39cab AC |
22607 | cat >conftest.$ac_ext <<_ACEOF |
22608 | /* confdefs.h. */ | |
22609 | _ACEOF | |
22610 | cat confdefs.h >>conftest.$ac_ext | |
22611 | cat >>conftest.$ac_ext <<_ACEOF | |
22612 | /* end confdefs.h. */ | |
59f80f10 | 22613 | #include <X11/Intrinsic.h> |
bec39cab AC |
22614 | int |
22615 | main () | |
22616 | { | |
59f80f10 | 22617 | XtMalloc (0) |
bec39cab AC |
22618 | ; |
22619 | return 0; | |
22620 | } | |
22621 | _ACEOF | |
22622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22624 | (eval $ac_link) 2>conftest.er1 | |
22625 | ac_status=$? | |
22626 | grep -v '^ *+' conftest.er1 >conftest.err | |
22627 | rm -f conftest.er1 | |
22628 | cat conftest.err >&5 | |
22629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22630 | (exit $ac_status); } && | |
b4e70030 JB |
22631 | { ac_try='test -z "$ac_c_werror_flag" |
22632 | || test ! -s conftest.err' | |
bec39cab AC |
22633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22634 | (eval $ac_try) 2>&5 | |
22635 | ac_status=$? | |
22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22637 | (exit $ac_status); }; } && | |
22638 | { ac_try='test -s conftest$ac_exeext' | |
22639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22640 | (eval $ac_try) 2>&5 | |
22641 | ac_status=$? | |
22642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22643 | (exit $ac_status); }; }; then | |
22644 | LIBS=$ac_save_LIBS | |
c906108c SS |
22645 | # We can link X programs with no special library path. |
22646 | ac_x_libraries= | |
22647 | else | |
bec39cab AC |
22648 | echo "$as_me: failed program was:" >&5 |
22649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22650 | ||
b4e70030 | 22651 | LIBS=$ac_save_LIBS |
bec39cab | 22652 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 22653 | do |
bec39cab | 22654 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 22655 | for ac_extension in a so sl; do |
b4e70030 | 22656 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
22657 | ac_x_libraries=$ac_dir |
22658 | break 2 | |
22659 | fi | |
22660 | done | |
22661 | done | |
22662 | fi | |
bec39cab AC |
22663 | rm -f conftest.err conftest.$ac_objext \ |
22664 | conftest$ac_exeext conftest.$ac_ext | |
22665 | fi # $ac_x_libraries = no | |
c906108c | 22666 | |
bec39cab | 22667 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
22668 | # Didn't find X anywhere. Cache the known absence of X. |
22669 | ac_cv_have_x="have_x=no" | |
22670 | else | |
22671 | # Record where we found X for the cache. | |
22672 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 22673 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
22674 | fi |
22675 | fi | |
bec39cab | 22676 | |
c906108c SS |
22677 | fi |
22678 | eval "$ac_cv_have_x" | |
22679 | fi # $with_x != no | |
22680 | ||
22681 | if test "$have_x" != yes; then | |
b4e70030 JB |
22682 | echo "$as_me:$LINENO: result: $have_x" >&5 |
22683 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
22684 | no_x=yes |
22685 | else | |
22686 | # If each of the values was on the command line, it overrides each guess. | |
22687 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22688 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22689 | # Update the cache value to reflect the command line values. | |
22690 | ac_cv_have_x="have_x=yes \ | |
22691 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
22692 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22693 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
22694 | fi |
22695 | ||
22696 | ||
9cc52bde MK |
22697 | # Check whether we should enable the TUI, but only do so if we really |
22698 | # can. | |
22699 | if test x"$enable_tui" = xyes; then | |
22700 | if test -d $srcdir/tui; then | |
22701 | if test "$ac_cv_search_waddstr" != no; then | |
22702 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
22703 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
22704 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
22705 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
22706 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
22707 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
22708 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
22709 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
22710 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
22711 | else | |
bec39cab AC |
22712 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
22713 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
22714 | fi |
22715 | fi | |
22716 | fi | |
22717 | ||
bec39cab AC |
22718 | # Unlike the sim directory, whether a simulator is linked is controlled by |
22719 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
22720 | # This code just checks for a few cases where we'd like to ignore those |
22721 | # definitions, even when they're present in the '.mt' file. These cases | |
22722 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 22723 | # not part of the source tree. |
7a292a7a | 22724 | # |
b4e70030 | 22725 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 22726 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
22727 | enableval="$enable_sim" |
22728 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
22729 | echo "enableval = ${enableval}"; |
22730 | case "${enableval}" in | |
22731 | yes) ignore_sim=false ;; | |
22732 | no) ignore_sim=true ;; | |
22733 | *) ignore_sim=false ;; | |
22734 | esac | |
22735 | else | |
22736 | ignore_sim=false | |
b4e70030 | 22737 | fi; |
7a292a7a SS |
22738 | |
22739 | if test ! -d "${srcdir}/../sim"; then | |
22740 | ignore_sim=true | |
22741 | fi | |
22742 | ||
22743 | if test "${ignore_sim}" = "true"; then | |
22744 | IGNORE_SIM="SIM=" | |
22745 | IGNORE_SIM_OBS="SIM_OBS=" | |
22746 | else | |
22747 | IGNORE_SIM="" | |
22748 | IGNORE_SIM_OBS="" | |
60ca704f SE |
22749 | |
22750 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 22751 | #define WITH_SIM 1 |
bec39cab | 22752 | _ACEOF |
7a292a7a SS |
22753 | |
22754 | fi | |
22755 | ||
22756 | ||
22757 | ||
c906108c SS |
22758 | |
22759 | ||
22760 | ||
22761 | ||
22762 | ||
22763 | ||
dfcd3bfb | 22764 | |
e56ac5c3 AC |
22765 | |
22766 | ||
b3a90332 AC |
22767 | |
22768 | ||
c35f4ffc | 22769 | # List of host floatformats. |
bec39cab AC |
22770 | |
22771 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 22772 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 22773 | _ACEOF |
c35f4ffc | 22774 | |
bec39cab AC |
22775 | |
22776 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 22777 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
22778 | _ACEOF |
22779 | ||
c35f4ffc | 22780 | |
bec39cab | 22781 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 22782 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 22783 | _ACEOF |
c35f4ffc AC |
22784 | |
22785 | ||
c906108c SS |
22786 | # target_subdir is used by the testsuite to find the target libraries. |
22787 | target_subdir= | |
22788 | if test "${host}" != "${target}"; then | |
22789 | target_subdir="${target_alias}/" | |
22790 | fi | |
22791 | ||
22792 | ||
22793 | frags= | |
771b4502 | 22794 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
22795 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
22796 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
22797 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
22798 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
22799 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
22800 | fi |
22801 | frags="$frags $host_makefile_frag" | |
22802 | else | |
22803 | host_makefile_frag=/dev/null | |
c906108c | 22804 | fi |
c906108c SS |
22805 | |
22806 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
22807 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
22808 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
22809 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
22810 | { (exit 1); exit 1; }; } | |
c906108c SS |
22811 | fi |
22812 | frags="$frags $target_makefile_frag" | |
22813 | ||
22814 | ||
22815 | ||
22816 | ||
22817 | ||
22818 | hostfile=`sed -n ' | |
22819 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
22820 | ' ${host_makefile_frag}` | |
22821 | ||
22822 | targetfile=`sed -n ' | |
b523a1fd | 22823 | s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
22824 | ' ${target_makefile_frag}` |
22825 | ||
771b4502 | 22826 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
22827 | # We pick this up from the host configuration file (.mh) because we |
22828 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
22829 | nativefile=`sed -n ' |
22830 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
22831 | ' ${host_makefile_frag}` | |
c906108c SS |
22832 | fi |
22833 | ||
22834 | ||
b00a8037 | 22835 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
22836 | |
22837 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 22838 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 22839 | _ACEOF |
b00a8037 DJ |
22840 | |
22841 | fi | |
22842 | ||
8dcde887 | 22843 | # Enable multi-ice-gdb-server. |
b4e70030 | 22844 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 22845 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
22846 | enableval="$enable_multi_ice" |
22847 | case $enableval in | |
8dcde887 MK |
22848 | yes | no) |
22849 | ;; | |
bec39cab AC |
22850 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
22851 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
22852 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 22853 | esac |
b4e70030 | 22854 | fi; |
4e8d927d | 22855 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
22856 | |
22857 | ||
22858 | subdirs="$subdirs multi-ice" | |
3ace7edb | 22859 | |
a85f51e7 DJ |
22860 | fi |
22861 | ||
a13e2c95 UW |
22862 | # We only build gdbserver automatically in a native configuration. |
22863 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
22864 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
22865 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 22866 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
22867 | echo "$as_me:$LINENO: result: yes" >&5 |
22868 | echo "${ECHO_T}yes" >&6 | |
22869 | ||
22870 | ||
22871 | subdirs="$subdirs gdbserver" | |
3ace7edb | 22872 | |
8dcde887 | 22873 | else |
b4e70030 JB |
22874 | echo "$as_me:$LINENO: result: no" >&5 |
22875 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
22876 | fi |
22877 | fi | |
22878 | ||
2c0fc042 AC |
22879 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
22880 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
22881 | # to an empty version. | |
c906108c SS |
22882 | |
22883 | files= | |
22884 | links= | |
5a2402b8 | 22885 | |
c906108c | 22886 | rm -f xm.h |
5a2402b8 | 22887 | xm_h="" |
c906108c | 22888 | if test "${hostfile}" != ""; then |
5a2402b8 | 22889 | xm_h=xm.h |
0f475e27 AC |
22890 | case "${hostfile}" in |
22891 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
22892 | * ) GDB_XM_FILE="${hostfile}" | |
22893 | esac | |
5a2402b8 AC |
22894 | files="${files} ${GDB_XM_FILE}" |
22895 | links="${links} xm.h" | |
60ca704f SE |
22896 | |
22897 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22898 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 22899 | _ACEOF |
5a2402b8 | 22900 | |
c906108c | 22901 | fi |
5a2402b8 AC |
22902 | |
22903 | ||
c906108c | 22904 | rm -f tm.h |
5a2402b8 | 22905 | tm_h="" |
c906108c | 22906 | if test "${targetfile}" != ""; then |
5a2402b8 | 22907 | tm_h=tm.h |
0f475e27 | 22908 | case "${targetfile}" in |
b8c4aece | 22909 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
22910 | * ) GDB_TM_FILE="${targetfile}" |
22911 | esac | |
5a2402b8 AC |
22912 | files="${files} ${GDB_TM_FILE}" |
22913 | links="${links} tm.h" | |
60ca704f SE |
22914 | |
22915 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22916 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 22917 | _ACEOF |
5a2402b8 | 22918 | |
c906108c | 22919 | fi |
5a2402b8 AC |
22920 | |
22921 | ||
c906108c | 22922 | rm -f nm.h |
5a2402b8 | 22923 | nm_h="" |
c906108c | 22924 | if test "${nativefile}" != ""; then |
5a2402b8 | 22925 | nm_h=nm.h |
0f475e27 AC |
22926 | case "${nativefile}" in |
22927 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
22928 | * ) GDB_NM_FILE="${nativefile}" | |
22929 | esac | |
5a2402b8 AC |
22930 | files="${files} ${GDB_NM_FILE}" |
22931 | links="${links} nm.h" | |
60ca704f SE |
22932 | |
22933 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22934 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 22935 | _ACEOF |
5a2402b8 | 22936 | |
c906108c | 22937 | fi |
5a2402b8 AC |
22938 | |
22939 | ||
bec39cab AC |
22940 | ac_sources="$files" |
22941 | ac_dests="$links" | |
22942 | while test -n "$ac_sources"; do | |
22943 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
22944 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
22945 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
22946 | done | |
b4e70030 | 22947 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
22948 | |
22949 | ||
c906108c SS |
22950 | |
22951 | ||
c906108c | 22952 | |
c906108c | 22953 | |
bec39cab AC |
22954 | cat >>confdefs.h <<\_ACEOF |
22955 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
22956 | _ACEOF | |
c906108c | 22957 | |
234b45d4 | 22958 | |
234b45d4 KB |
22959 | |
22960 | ||
22961 | ||
b4e70030 | 22962 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 22963 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
22964 | withval="$with_libiconv_prefix" |
22965 | ||
234b45d4 KB |
22966 | for dir in `echo "$withval" | tr : ' '`; do |
22967 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
22968 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
22969 | done | |
234b45d4 | 22970 | |
b4e70030 | 22971 | fi; |
234b45d4 | 22972 | |
b4e70030 JB |
22973 | echo "$as_me:$LINENO: checking for iconv" >&5 |
22974 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
22975 | if test "${am_cv_func_iconv+set}" = set; then |
22976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 22977 | else |
bec39cab | 22978 | |
234b45d4 KB |
22979 | am_cv_func_iconv="no, consider installing GNU libiconv" |
22980 | am_cv_lib_iconv=no | |
bec39cab AC |
22981 | cat >conftest.$ac_ext <<_ACEOF |
22982 | /* confdefs.h. */ | |
22983 | _ACEOF | |
22984 | cat confdefs.h >>conftest.$ac_ext | |
22985 | cat >>conftest.$ac_ext <<_ACEOF | |
22986 | /* end confdefs.h. */ | |
234b45d4 KB |
22987 | #include <stdlib.h> |
22988 | #include <iconv.h> | |
bec39cab AC |
22989 | int |
22990 | main () | |
22991 | { | |
234b45d4 KB |
22992 | iconv_t cd = iconv_open("",""); |
22993 | iconv(cd,NULL,NULL,NULL,NULL); | |
22994 | iconv_close(cd); | |
bec39cab AC |
22995 | ; |
22996 | return 0; | |
22997 | } | |
22998 | _ACEOF | |
22999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23001 | (eval $ac_link) 2>conftest.er1 | |
23002 | ac_status=$? | |
23003 | grep -v '^ *+' conftest.er1 >conftest.err | |
23004 | rm -f conftest.er1 | |
23005 | cat conftest.err >&5 | |
23006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23007 | (exit $ac_status); } && | |
b4e70030 JB |
23008 | { ac_try='test -z "$ac_c_werror_flag" |
23009 | || test ! -s conftest.err' | |
bec39cab AC |
23010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23011 | (eval $ac_try) 2>&5 | |
23012 | ac_status=$? | |
23013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23014 | (exit $ac_status); }; } && | |
23015 | { ac_try='test -s conftest$ac_exeext' | |
23016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23017 | (eval $ac_try) 2>&5 | |
23018 | ac_status=$? | |
23019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23020 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23021 | am_cv_func_iconv=yes |
23022 | else | |
bec39cab AC |
23023 | echo "$as_me: failed program was:" >&5 |
23024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23025 | ||
234b45d4 | 23026 | fi |
bec39cab AC |
23027 | rm -f conftest.err conftest.$ac_objext \ |
23028 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23029 | if test "$am_cv_func_iconv" != yes; then |
23030 | am_save_LIBS="$LIBS" | |
23031 | LIBS="$LIBS -liconv" | |
bec39cab AC |
23032 | cat >conftest.$ac_ext <<_ACEOF |
23033 | /* confdefs.h. */ | |
23034 | _ACEOF | |
23035 | cat confdefs.h >>conftest.$ac_ext | |
23036 | cat >>conftest.$ac_ext <<_ACEOF | |
23037 | /* end confdefs.h. */ | |
234b45d4 KB |
23038 | #include <stdlib.h> |
23039 | #include <iconv.h> | |
bec39cab AC |
23040 | int |
23041 | main () | |
23042 | { | |
234b45d4 KB |
23043 | iconv_t cd = iconv_open("",""); |
23044 | iconv(cd,NULL,NULL,NULL,NULL); | |
23045 | iconv_close(cd); | |
bec39cab AC |
23046 | ; |
23047 | return 0; | |
23048 | } | |
23049 | _ACEOF | |
23050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23052 | (eval $ac_link) 2>conftest.er1 | |
23053 | ac_status=$? | |
23054 | grep -v '^ *+' conftest.er1 >conftest.err | |
23055 | rm -f conftest.er1 | |
23056 | cat conftest.err >&5 | |
23057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23058 | (exit $ac_status); } && | |
b4e70030 JB |
23059 | { ac_try='test -z "$ac_c_werror_flag" |
23060 | || test ! -s conftest.err' | |
bec39cab AC |
23061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23062 | (eval $ac_try) 2>&5 | |
23063 | ac_status=$? | |
23064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23065 | (exit $ac_status); }; } && | |
23066 | { ac_try='test -s conftest$ac_exeext' | |
23067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23068 | (eval $ac_try) 2>&5 | |
23069 | ac_status=$? | |
23070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23071 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23072 | am_cv_lib_iconv=yes |
23073 | am_cv_func_iconv=yes | |
23074 | else | |
bec39cab AC |
23075 | echo "$as_me: failed program was:" >&5 |
23076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23077 | ||
234b45d4 | 23078 | fi |
bec39cab AC |
23079 | rm -f conftest.err conftest.$ac_objext \ |
23080 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23081 | LIBS="$am_save_LIBS" |
23082 | fi | |
bec39cab AC |
23083 | |
23084 | fi | |
b4e70030 JB |
23085 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
23086 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
23087 | if test "$am_cv_func_iconv" = yes; then |
23088 | ||
23089 | cat >>confdefs.h <<\_ACEOF | |
23090 | #define HAVE_ICONV 1 | |
23091 | _ACEOF | |
23092 | ||
b4e70030 JB |
23093 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
23094 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
23095 | if test "${am_cv_proto_iconv+set}" = set; then |
23096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23097 | else | |
23098 | ||
23099 | cat >conftest.$ac_ext <<_ACEOF | |
23100 | /* confdefs.h. */ | |
23101 | _ACEOF | |
23102 | cat confdefs.h >>conftest.$ac_ext | |
23103 | cat >>conftest.$ac_ext <<_ACEOF | |
23104 | /* end confdefs.h. */ | |
23105 | ||
23106 | #include <stdlib.h> | |
23107 | #include <iconv.h> | |
23108 | extern | |
23109 | #ifdef __cplusplus | |
23110 | "C" | |
23111 | #endif | |
23112 | #if defined(__STDC__) || defined(__cplusplus) | |
23113 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23114 | #else | |
23115 | size_t iconv(); | |
23116 | #endif | |
23117 | ||
23118 | int | |
23119 | main () | |
23120 | { | |
23121 | ||
23122 | ; | |
23123 | return 0; | |
23124 | } | |
23125 | _ACEOF | |
23126 | rm -f conftest.$ac_objext | |
23127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23128 | (eval $ac_compile) 2>conftest.er1 | |
23129 | ac_status=$? | |
23130 | grep -v '^ *+' conftest.er1 >conftest.err | |
23131 | rm -f conftest.er1 | |
23132 | cat conftest.err >&5 | |
23133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23134 | (exit $ac_status); } && | |
b4e70030 JB |
23135 | { ac_try='test -z "$ac_c_werror_flag" |
23136 | || test ! -s conftest.err' | |
bec39cab AC |
23137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23138 | (eval $ac_try) 2>&5 | |
23139 | ac_status=$? | |
23140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23141 | (exit $ac_status); }; } && | |
23142 | { ac_try='test -s conftest.$ac_objext' | |
23143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23144 | (eval $ac_try) 2>&5 | |
23145 | ac_status=$? | |
23146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23147 | (exit $ac_status); }; }; then | |
23148 | am_cv_proto_iconv_arg1="" | |
23149 | else | |
23150 | echo "$as_me: failed program was:" >&5 | |
23151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23152 | ||
b4e70030 | 23153 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
23154 | fi |
23155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23156 | 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);" | |
23157 | fi | |
23158 | ||
23159 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 23160 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
23161 | }$am_cv_proto_iconv" >&5 |
23162 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 23163 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
23164 | |
23165 | cat >>confdefs.h <<_ACEOF | |
23166 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
23167 | _ACEOF | |
23168 | ||
23169 | fi | |
23170 | LIBICONV= | |
23171 | if test "$am_cv_lib_iconv" = yes; then | |
23172 | LIBICONV="-liconv" | |
23173 | fi | |
23174 | ||
23175 | ||
23176 | ||
b4e70030 JB |
23177 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
23178 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
23179 | cat >confcache <<\_ACEOF |
23180 | # This file is a shell script that caches the results of configure | |
23181 | # tests run on this system so they can be shared between configure | |
23182 | # scripts and configure runs, see configure's option --config-cache. | |
23183 | # It is not useful on other systems. If it contains results you don't | |
23184 | # want to keep, you may remove or edit it. | |
23185 | # | |
23186 | # config.status only pays attention to the cache file if you give it | |
23187 | # the --recheck option to rerun configure. | |
23188 | # | |
23189 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23190 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23191 | # following values. | |
23192 | ||
23193 | _ACEOF | |
23194 | ||
23195 | # The following way of writing the cache mishandles newlines in values, | |
23196 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 23197 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
23198 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23199 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 23200 | { |
bec39cab | 23201 | (set) 2>&1 | |
b4e70030 JB |
23202 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
23203 | *ac_space=\ *) | |
bec39cab AC |
23204 | # `set' does not quote correctly, so add quotes (double-quote |
23205 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23206 | sed -n \ | |
23207 | "s/'/'\\\\''/g; | |
23208 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 23209 | ;; |
bec39cab AC |
23210 | *) |
23211 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
23212 | sed -n \ |
23213 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 23214 | ;; |
b4e70030 JB |
23215 | esac; |
23216 | } | | |
bec39cab AC |
23217 | sed ' |
23218 | t clear | |
b4e70030 | 23219 | : clear |
bec39cab AC |
23220 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23221 | t end | |
b4e70030 JB |
23222 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23223 | : end' >>confcache | |
bec39cab AC |
23224 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
23225 | if test -w $cache_file; then | |
b4e70030 | 23226 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
23227 | cat confcache >$cache_file |
23228 | else | |
b4e70030 | 23229 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
23230 | fi |
23231 | fi | |
23232 | rm -f confcache | |
23233 | ||
23234 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23235 | # Let make expand exec_prefix. | |
23236 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23237 | ||
b4e70030 JB |
23238 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23239 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23240 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23241 | # (actually we leave an empty line to preserve line numbers). | |
23242 | if test "x$srcdir" = x.; then | |
23243 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23244 | s/:*\$(srcdir):*/:/; | |
23245 | s/:*\${srcdir}:*/:/; | |
23246 | s/:*@srcdir@:*/:/; | |
23247 | s/^\([^=]*=[ ]*\):*/\1/; | |
23248 | s/:*$//; | |
23249 | s/^[^=]*=[ ]*$//; | |
23250 | }' | |
23251 | fi | |
23252 | ||
bec39cab AC |
23253 | DEFS=-DHAVE_CONFIG_H |
23254 | ||
23255 | ac_libobjs= | |
23256 | ac_ltlibobjs= | |
23257 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23258 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
23259 | ac_i=`echo "$ac_i" | |
23260 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23261 | # 2. Add them. | |
23262 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23263 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
23264 | done |
23265 | LIBOBJS=$ac_libobjs | |
23266 | ||
23267 | LTLIBOBJS=$ac_ltlibobjs | |
23268 | ||
23269 | ||
85981d60 AC |
23270 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23271 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23272 | Usually this means the macro was only invoked conditionally." >&5 | |
23273 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23274 | Usually this means the macro was only invoked conditionally." >&2;} | |
23275 | { (exit 1); exit 1; }; } | |
23276 | fi | |
bec39cab AC |
23277 | |
23278 | : ${CONFIG_STATUS=./config.status} | |
23279 | ac_clean_files_save=$ac_clean_files | |
23280 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23281 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23282 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23283 | cat >$CONFIG_STATUS <<_ACEOF | |
23284 | #! $SHELL | |
23285 | # Generated by $as_me. | |
23286 | # Run this file to recreate the current configuration. | |
23287 | # Compiler output produced by configure, useful for debugging | |
23288 | # configure, is in config.log if it exists. | |
23289 | ||
23290 | debug=false | |
23291 | ac_cs_recheck=false | |
23292 | ac_cs_silent=false | |
23293 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23294 | _ACEOF | |
23295 | ||
23296 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23297 | ## --------------------- ## | |
23298 | ## M4sh Initialization. ## | |
23299 | ## --------------------- ## | |
23300 | ||
23301 | # Be Bourne compatible | |
23302 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23303 | emulate sh | |
23304 | NULLCMD=: | |
23305 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23306 | # is contrary to our usage. Disable this feature. | |
23307 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
23308 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23309 | set -o posix | |
bec39cab AC |
23310 | fi |
23311 | DUALCASE=1; export DUALCASE # for MKS sh | |
23312 | ||
23313 | # Support unset when possible. | |
23314 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23315 | as_unset=unset | |
23316 | else | |
23317 | as_unset=false | |
23318 | fi | |
23319 | ||
23320 | ||
23321 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 23322 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
23323 | PS1='$ ' |
23324 | PS2='> ' | |
23325 | PS4='+ ' | |
23326 | ||
23327 | # NLS nuisances. | |
23328 | for as_var in \ | |
23329 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23330 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23331 | LC_TELEPHONE LC_TIME | |
23332 | do | |
23333 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23334 | eval $as_var=C; export $as_var | |
23335 | else | |
b4e70030 | 23336 | $as_unset $as_var |
bec39cab AC |
23337 | fi |
23338 | done | |
23339 | ||
23340 | # Required to use basename. | |
b4e70030 | 23341 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23342 | as_expr=expr |
23343 | else | |
23344 | as_expr=false | |
23345 | fi | |
23346 | ||
b4e70030 | 23347 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
23348 | as_basename=basename |
23349 | else | |
23350 | as_basename=false | |
23351 | fi | |
23352 | ||
23353 | ||
23354 | # Name of the executable. | |
b4e70030 | 23355 | as_me=`$as_basename "$0" || |
bec39cab AC |
23356 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23357 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23358 | X"$0" : 'X\(/\)$' \| \ |
23359 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23360 | echo X/"$0" | |
b4e70030 JB |
23361 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
23362 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23363 | /^X\/\(\/\).*/{ s//\1/; q; } | |
23364 | s/.*/./; q'` | |
bec39cab | 23365 | |
b4e70030 JB |
23366 | |
23367 | # PATH needs CR, and LINENO needs CR and PATH. | |
23368 | # Avoid depending upon Character Ranges. | |
23369 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23370 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23371 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23372 | as_cr_digits='0123456789' | |
23373 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23374 | ||
23375 | # The user is always right. | |
23376 | if test "${PATH_SEPARATOR+set}" != set; then | |
23377 | echo "#! /bin/sh" >conf$$.sh | |
23378 | echo "exit 0" >>conf$$.sh | |
23379 | chmod +x conf$$.sh | |
23380 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23381 | PATH_SEPARATOR=';' | |
23382 | else | |
23383 | PATH_SEPARATOR=: | |
23384 | fi | |
23385 | rm -f conf$$.sh | |
23386 | fi | |
bec39cab AC |
23387 | |
23388 | ||
b4e70030 JB |
23389 | as_lineno_1=$LINENO |
23390 | as_lineno_2=$LINENO | |
23391 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23392 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
23393 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23394 | # Find who we are. Look in the path if we contain no path at all | |
23395 | # relative or not. | |
23396 | case $0 in | |
23397 | *[\\/]* ) as_myself=$0 ;; | |
23398 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23399 | for as_dir in $PATH | |
23400 | do | |
23401 | IFS=$as_save_IFS | |
23402 | test -z "$as_dir" && as_dir=. | |
23403 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23404 | done | |
bec39cab | 23405 | |
b4e70030 JB |
23406 | ;; |
23407 | esac | |
23408 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23409 | # in which case we are not to be found in the path. | |
23410 | if test "x$as_myself" = x; then | |
23411 | as_myself=$0 | |
23412 | fi | |
23413 | if test ! -f "$as_myself"; then | |
23414 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
23415 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
23416 | { (exit 1); exit 1; }; } | |
23417 | fi | |
23418 | case $CONFIG_SHELL in | |
23419 | '') | |
23420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23421 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
23422 | do | |
23423 | IFS=$as_save_IFS | |
23424 | test -z "$as_dir" && as_dir=. | |
23425 | for as_base in sh bash ksh sh5; do | |
23426 | case $as_dir in | |
23427 | /*) | |
23428 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
23429 | as_lineno_1=$LINENO |
23430 | as_lineno_2=$LINENO | |
b4e70030 | 23431 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 23432 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
23433 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
23434 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
23435 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
23436 | CONFIG_SHELL=$as_dir/$as_base | |
23437 | export CONFIG_SHELL | |
23438 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
23439 | fi;; | |
23440 | esac | |
23441 | done | |
23442 | done | |
23443 | ;; | |
23444 | esac | |
bec39cab AC |
23445 | |
23446 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23447 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
23448 | # line-number line before each line; the second 'sed' does the real |
23449 | # work. The second script uses 'N' to pair each line-number line | |
23450 | # with the numbered line, and appends trailing '-' during | |
23451 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 23452 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
23453 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
23454 | sed '=' <$as_myself | | |
bec39cab AC |
23455 | sed ' |
23456 | N | |
b4e70030 JB |
23457 | s,$,-, |
23458 | : loop | |
23459 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 23460 | t loop |
b4e70030 JB |
23461 | s,-$,, |
23462 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 23463 | ' >$as_me.lineno && |
b4e70030 JB |
23464 | chmod +x $as_me.lineno || |
23465 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
23466 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
23467 | { (exit 1); exit 1; }; } |
23468 | ||
23469 | # Don't try to exec as it changes $[0], causing all sort of problems | |
23470 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
23471 | # original and so on. Autoconf is especially sensible to this). |
23472 | . ./$as_me.lineno | |
bec39cab AC |
23473 | # Exit status is that of the last command. |
23474 | exit | |
23475 | } | |
23476 | ||
23477 | ||
b4e70030 JB |
23478 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
23479 | *c*,-n*) ECHO_N= ECHO_C=' | |
23480 | ' ECHO_T=' ' ;; | |
23481 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
23482 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
23483 | esac |
23484 | ||
b4e70030 | 23485 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23486 | as_expr=expr |
23487 | else | |
23488 | as_expr=false | |
23489 | fi | |
23490 | ||
23491 | rm -f conf$$ conf$$.exe conf$$.file | |
23492 | echo >conf$$.file | |
23493 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
23494 | # We could just check for DJGPP; but this test a) works b) is more generic |
23495 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
23496 | if test -f conf$$.exe; then | |
23497 | # Don't use ln at all; we don't have any links | |
bec39cab | 23498 | as_ln_s='cp -p' |
b4e70030 JB |
23499 | else |
23500 | as_ln_s='ln -s' | |
23501 | fi | |
bec39cab AC |
23502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
23503 | as_ln_s=ln | |
23504 | else | |
23505 | as_ln_s='cp -p' | |
23506 | fi | |
b4e70030 | 23507 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
23508 | |
23509 | if mkdir -p . 2>/dev/null; then | |
23510 | as_mkdir_p=: | |
23511 | else | |
23512 | test -d ./-p && rmdir ./-p | |
23513 | as_mkdir_p=false | |
23514 | fi | |
23515 | ||
b4e70030 | 23516 | as_executable_p="test -f" |
bec39cab AC |
23517 | |
23518 | # Sed expression to map a string onto a valid CPP name. | |
23519 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
23520 | ||
23521 | # Sed expression to map a string onto a valid variable name. | |
23522 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
23523 | ||
23524 | ||
b4e70030 JB |
23525 | # IFS |
23526 | # We need space, tab and new line, in precisely that order. | |
23527 | as_nl=' | |
23528 | ' | |
23529 | IFS=" $as_nl" | |
23530 | ||
23531 | # CDPATH. | |
23532 | $as_unset CDPATH | |
23533 | ||
bec39cab AC |
23534 | exec 6>&1 |
23535 | ||
b4e70030 | 23536 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 23537 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
23538 | # values after options handling. Logging --version etc. is OK. |
23539 | exec 5>>config.log | |
23540 | { | |
23541 | echo | |
23542 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
23543 | ## Running $as_me. ## | |
23544 | _ASBOX | |
23545 | } >&5 | |
23546 | cat >&5 <<_CSEOF | |
23547 | ||
bec39cab | 23548 | This file was extended by $as_me, which was |
b4e70030 | 23549 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
23550 | |
23551 | CONFIG_FILES = $CONFIG_FILES | |
23552 | CONFIG_HEADERS = $CONFIG_HEADERS | |
23553 | CONFIG_LINKS = $CONFIG_LINKS | |
23554 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
23555 | $ $0 $@ | |
23556 | ||
b4e70030 JB |
23557 | _CSEOF |
23558 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
23559 | echo >&5 | |
bec39cab AC |
23560 | _ACEOF |
23561 | ||
23562 | # Files that config.status was made for. | |
b4e70030 JB |
23563 | if test -n "$ac_config_files"; then |
23564 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
23565 | fi | |
234b45d4 | 23566 | |
b4e70030 JB |
23567 | if test -n "$ac_config_headers"; then |
23568 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
23569 | fi | |
23570 | ||
23571 | if test -n "$ac_config_links"; then | |
23572 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
23573 | fi | |
23574 | ||
23575 | if test -n "$ac_config_commands"; then | |
23576 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
23577 | fi | |
234b45d4 | 23578 | |
bec39cab | 23579 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 23580 | |
bec39cab AC |
23581 | ac_cs_usage="\ |
23582 | \`$as_me' instantiates files from templates according to the | |
23583 | current configuration. | |
234b45d4 | 23584 | |
bec39cab | 23585 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 23586 | |
bec39cab AC |
23587 | -h, --help print this help, then exit |
23588 | -V, --version print version number, then exit | |
23589 | -q, --quiet do not print progress messages | |
23590 | -d, --debug don't remove temporary files | |
23591 | --recheck update $as_me by reconfiguring in the same conditions | |
23592 | --file=FILE[:TEMPLATE] | |
23593 | instantiate the configuration file FILE | |
23594 | --header=FILE[:TEMPLATE] | |
23595 | instantiate the configuration header FILE | |
234b45d4 | 23596 | |
bec39cab AC |
23597 | Configuration files: |
23598 | $config_files | |
234b45d4 | 23599 | |
bec39cab AC |
23600 | Configuration headers: |
23601 | $config_headers | |
234b45d4 | 23602 | |
bec39cab AC |
23603 | Configuration links: |
23604 | $config_links | |
234b45d4 | 23605 | |
bec39cab AC |
23606 | Configuration commands: |
23607 | $config_commands | |
23608 | ||
23609 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 23610 | _ACEOF |
b4e70030 | 23611 | |
bec39cab AC |
23612 | cat >>$CONFIG_STATUS <<_ACEOF |
23613 | ac_cs_version="\\ | |
23614 | config.status | |
b4e70030 | 23615 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
23616 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
23617 | ||
b4e70030 | 23618 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
23619 | This config.status script is free software; the Free Software Foundation |
23620 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
23621 | srcdir=$srcdir |
23622 | INSTALL="$INSTALL" | |
bec39cab AC |
23623 | _ACEOF |
23624 | ||
23625 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23626 | # If no file are specified by the user, then we need to provide default | |
23627 | # value. By we need to know if files were specified by the user. | |
23628 | ac_need_defaults=: | |
23629 | while test $# != 0 | |
23630 | do | |
23631 | case $1 in | |
23632 | --*=*) | |
b4e70030 JB |
23633 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
23634 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 23635 | ac_shift=: |
c906108c | 23636 | ;; |
b4e70030 | 23637 | -*) |
bec39cab AC |
23638 | ac_option=$1 |
23639 | ac_optarg=$2 | |
23640 | ac_shift=shift | |
c906108c | 23641 | ;; |
b4e70030 JB |
23642 | *) # This is not an option, so the user has probably given explicit |
23643 | # arguments. | |
23644 | ac_option=$1 | |
23645 | ac_need_defaults=false;; | |
bec39cab | 23646 | esac |
c906108c | 23647 | |
bec39cab AC |
23648 | case $ac_option in |
23649 | # Handling of the options. | |
b4e70030 JB |
23650 | _ACEOF |
23651 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
23652 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
23653 | ac_cs_recheck=: ;; | |
b4e70030 JB |
23654 | --version | --vers* | -V ) |
23655 | echo "$ac_cs_version"; exit 0 ;; | |
23656 | --he | --h) | |
23657 | # Conflict between --help and --header | |
23658 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
23659 | Try \`$0 --help' for more information." >&5 | |
23660 | echo "$as_me: error: ambiguous option: $1 | |
23661 | Try \`$0 --help' for more information." >&2;} | |
23662 | { (exit 1); exit 1; }; };; | |
23663 | --help | --hel | -h ) | |
23664 | echo "$ac_cs_usage"; exit 0 ;; | |
23665 | --debug | --d* | -d ) | |
bec39cab AC |
23666 | debug=: ;; |
23667 | --file | --fil | --fi | --f ) | |
23668 | $ac_shift | |
23669 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
23670 | ac_need_defaults=false;; | |
23671 | --header | --heade | --head | --hea ) | |
23672 | $ac_shift | |
23673 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
23674 | ac_need_defaults=false;; | |
23675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
23676 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
23677 | ac_cs_silent=: ;; | |
c906108c | 23678 | |
bec39cab | 23679 | # This is an error. |
b4e70030 JB |
23680 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
23681 | Try \`$0 --help' for more information." >&5 | |
23682 | echo "$as_me: error: unrecognized option: $1 | |
23683 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 23684 | { (exit 1); exit 1; }; } ;; |
c906108c | 23685 | |
b4e70030 | 23686 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 23687 | |
bec39cab AC |
23688 | esac |
23689 | shift | |
23690 | done | |
c906108c | 23691 | |
bec39cab | 23692 | ac_configure_extra_args= |
c906108c | 23693 | |
bec39cab AC |
23694 | if $ac_cs_silent; then |
23695 | exec 6>/dev/null | |
23696 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
23697 | fi | |
c906108c | 23698 | |
bec39cab AC |
23699 | _ACEOF |
23700 | cat >>$CONFIG_STATUS <<_ACEOF | |
23701 | if \$ac_cs_recheck; then | |
b4e70030 JB |
23702 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
23703 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
23704 | fi |
23705 | ||
23706 | _ACEOF | |
23707 | ||
23708 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 23709 | # |
b4e70030 | 23710 | # INIT-COMMANDS section. |
c906108c | 23711 | # |
c906108c | 23712 | |
b4e70030 | 23713 | |
4e8d927d DJ |
23714 | GCC="$GCC" |
23715 | CC="$CC" | |
23716 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
23717 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
23718 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
23719 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
23720 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
23721 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
23722 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
23723 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
23724 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
23725 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
23726 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
23727 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
23728 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
23729 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
23730 | ||
bec39cab AC |
23731 | |
23732 | gdb_host_cpu=$gdb_host_cpu | |
23733 | gdb_target_cpu=$gdb_target_cpu | |
23734 | nativefile=$nativefile | |
23735 | ||
23736 | ||
23737 | _ACEOF | |
23738 | ||
4e8d927d | 23739 | |
b4e70030 JB |
23740 | |
23741 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 23742 | for ac_config_target in $ac_config_targets |
c906108c | 23743 | do |
b4e70030 JB |
23744 | case "$ac_config_target" in |
23745 | # Handling of arguments. | |
23746 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
23747 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
23748 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
23749 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
23750 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
23751 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
23752 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
23753 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
23754 | { (exit 1); exit 1; }; };; | |
c906108c SS |
23755 | esac |
23756 | done | |
23757 | ||
bec39cab AC |
23758 | # If the user did not use the arguments to specify the items to instantiate, |
23759 | # then the envvar interface is used. Set only those that are not. | |
23760 | # We use the long form for the default assignment because of an extremely | |
23761 | # bizarre bug on SunOS 4.1.3. | |
23762 | if $ac_need_defaults; then | |
23763 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
23764 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
23765 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
23766 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
23767 | fi | |
23768 | ||
b4e70030 JB |
23769 | # Have a temporary directory for convenience. Make it in the build tree |
23770 | # simply because there is no reason to put it here, and in addition, | |
23771 | # creating and moving files from /tmp can sometimes cause problems. | |
23772 | # Create a temporary directory, and hook for its removal unless debugging. | |
23773 | $debug || | |
23774 | { | |
23775 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
23776 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
23777 | } | |
4e8d927d | 23778 | |
b4e70030 | 23779 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 23780 | |
b4e70030 JB |
23781 | { |
23782 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
23783 | test -n "$tmp" && test -d "$tmp" | |
23784 | } || | |
23785 | { | |
23786 | tmp=./confstat$$-$RANDOM | |
23787 | (umask 077 && mkdir $tmp) | |
23788 | } || | |
23789 | { | |
23790 | echo "$me: cannot create a temporary directory in ." >&2 | |
23791 | { (exit 1); exit 1; } | |
23792 | } | |
4e8d927d | 23793 | |
b4e70030 | 23794 | _ACEOF |
4e8d927d | 23795 | |
b4e70030 | 23796 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 23797 | |
b4e70030 JB |
23798 | # |
23799 | # CONFIG_FILES section. | |
23800 | # | |
4e8d927d | 23801 | |
b4e70030 JB |
23802 | # No need to generate the scripts if there are no CONFIG_FILES. |
23803 | # This happens for instance when ./config.status config.h | |
23804 | if test -n "\$CONFIG_FILES"; then | |
23805 | # Protect against being on the right side of a sed subst in config.status. | |
23806 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
23807 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
23808 | s,@SHELL@,$SHELL,;t t | |
23809 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
23810 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
23811 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
23812 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
23813 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
23814 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
23815 | s,@exec_prefix@,$exec_prefix,;t t | |
23816 | s,@prefix@,$prefix,;t t | |
23817 | s,@program_transform_name@,$program_transform_name,;t t | |
23818 | s,@bindir@,$bindir,;t t | |
23819 | s,@sbindir@,$sbindir,;t t | |
23820 | s,@libexecdir@,$libexecdir,;t t | |
23821 | s,@datadir@,$datadir,;t t | |
23822 | s,@sysconfdir@,$sysconfdir,;t t | |
23823 | s,@sharedstatedir@,$sharedstatedir,;t t | |
23824 | s,@localstatedir@,$localstatedir,;t t | |
23825 | s,@libdir@,$libdir,;t t | |
23826 | s,@includedir@,$includedir,;t t | |
23827 | s,@oldincludedir@,$oldincludedir,;t t | |
23828 | s,@infodir@,$infodir,;t t | |
23829 | s,@mandir@,$mandir,;t t | |
23830 | s,@build_alias@,$build_alias,;t t | |
23831 | s,@host_alias@,$host_alias,;t t | |
23832 | s,@target_alias@,$target_alias,;t t | |
23833 | s,@DEFS@,$DEFS,;t t | |
23834 | s,@ECHO_C@,$ECHO_C,;t t | |
23835 | s,@ECHO_N@,$ECHO_N,;t t | |
23836 | s,@ECHO_T@,$ECHO_T,;t t | |
23837 | s,@LIBS@,$LIBS,;t t | |
23838 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
23839 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
23840 | s,@MAINT@,$MAINT,;t t | |
23841 | s,@CC@,$CC,;t t | |
23842 | s,@CFLAGS@,$CFLAGS,;t t | |
23843 | s,@LDFLAGS@,$LDFLAGS,;t t | |
23844 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
23845 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
23846 | s,@EXEEXT@,$EXEEXT,;t t | |
23847 | s,@OBJEXT@,$OBJEXT,;t t | |
23848 | s,@CPP@,$CPP,;t t | |
23849 | s,@EGREP@,$EGREP,;t t | |
23850 | s,@build@,$build,;t t | |
23851 | s,@build_cpu@,$build_cpu,;t t | |
23852 | s,@build_vendor@,$build_vendor,;t t | |
23853 | s,@build_os@,$build_os,;t t | |
23854 | s,@host@,$host,;t t | |
23855 | s,@host_cpu@,$host_cpu,;t t | |
23856 | s,@host_vendor@,$host_vendor,;t t | |
23857 | s,@host_os@,$host_os,;t t | |
23858 | s,@target@,$target,;t t | |
23859 | s,@target_cpu@,$target_cpu,;t t | |
23860 | s,@target_vendor@,$target_vendor,;t t | |
23861 | s,@target_os@,$target_os,;t t | |
b4e70030 | 23862 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
23863 | s,@LIBINTL@,$LIBINTL,;t t |
23864 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
23865 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 23866 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
23867 | s,@GMSGFMT@,$GMSGFMT,;t t |
23868 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 23869 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 23870 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 23871 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
23872 | s,@GENCAT@,$GENCAT,;t t |
23873 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
23874 | s,@localedir@,$localedir,;t t |
23875 | s,@PACKAGE@,$PACKAGE,;t t | |
23876 | s,@subdirs@,$subdirs,;t t | |
23877 | s,@AWK@,$AWK,;t t | |
23878 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
23879 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
23880 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
23881 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
23882 | s,@RANLIB@,$RANLIB,;t t |
23883 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
23884 | s,@YACC@,$YACC,;t t |
23885 | s,@AR@,$AR,;t t | |
23886 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
23887 | s,@DLLTOOL@,$DLLTOOL,;t t | |
23888 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
23889 | s,@WINDRES@,$WINDRES,;t t | |
23890 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
23891 | s,@MIG@,$MIG,;t t | |
23892 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
3841debe DJ |
23893 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
23894 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
23895 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 23896 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
23897 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
23898 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
23899 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
23900 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
23901 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
23902 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
23903 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
23904 | s,@LIBGUI@,$LIBGUI,;t t | |
23905 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
23906 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
23907 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
23908 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
23909 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
23910 | s,@TCL_CC@,$TCL_CC,;t t | |
23911 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
23912 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
23913 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
23914 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
23915 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
23916 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
23917 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
23918 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
23919 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
23920 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
23921 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
23922 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
23923 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
23924 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
23925 | s,@TK_VERSION@,$TK_VERSION,;t t | |
23926 | s,@TK_DEFS@,$TK_DEFS,;t t | |
23927 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
23928 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
23929 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
23930 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
23931 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
23932 | s,@TCLHDIR@,$TCLHDIR,;t t | |
23933 | s,@TKHDIR@,$TKHDIR,;t t | |
23934 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
23935 | s,@ITKHDIR@,$ITKHDIR,;t t | |
23936 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
23937 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
23938 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
23939 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
23940 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
23941 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
23942 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
23943 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
23944 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
23945 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
23946 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
23947 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
23948 | s,@X_LIBS@,$X_LIBS,;t t | |
23949 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
23950 | s,@TK_DEPS@,$TK_DEPS,;t t | |
23951 | s,@ITCLLIB@,$ITCLLIB,;t t | |
23952 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
23953 | s,@ITKLIB@,$ITKLIB,;t t | |
23954 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
23955 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
23956 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
23957 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
23958 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
23959 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
23960 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
23961 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
23962 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
23963 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
23964 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
23965 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
23966 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
23967 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
23968 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
23969 | s,@target_subdir@,$target_subdir,;t t | |
23970 | s,@frags@,$frags,;t t | |
23971 | s,@xm_h@,$xm_h,;t t | |
23972 | s,@tm_h@,$tm_h,;t t | |
23973 | s,@nm_h@,$nm_h,;t t | |
23974 | s,@LIBICONV@,$LIBICONV,;t t | |
23975 | s,@LIBOBJS@,$LIBOBJS,;t t | |
23976 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
23977 | /@host_makefile_frag@/r $host_makefile_frag | |
23978 | s,@host_makefile_frag@,,;t t | |
23979 | /@target_makefile_frag@/r $target_makefile_frag | |
23980 | s,@target_makefile_frag@,,;t t | |
23981 | CEOF | |
23982 | ||
23983 | _ACEOF | |
23984 | ||
23985 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23986 | # Split the substitutions into bite-sized pieces for seds with | |
23987 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
23988 | ac_max_sed_lines=48 | |
23989 | ac_sed_frag=1 # Number of current file. | |
23990 | ac_beg=1 # First line for current file. | |
23991 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
23992 | ac_more_lines=: | |
23993 | ac_sed_cmds= | |
23994 | while $ac_more_lines; do | |
23995 | if test $ac_beg -gt 1; then | |
23996 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
23997 | else | |
23998 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 23999 | fi |
b4e70030 JB |
24000 | if test ! -s $tmp/subs.frag; then |
24001 | ac_more_lines=false | |
24002 | else | |
24003 | # The purpose of the label and of the branching condition is to | |
24004 | # speed up the sed processing (if there are no `@' at all, there | |
24005 | # is no need to browse any of the substitutions). | |
24006 | # These are the two extra sed commands mentioned above. | |
24007 | (echo ':t | |
24008 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24009 | if test -z "$ac_sed_cmds"; then | |
24010 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24011 | else | |
24012 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24013 | fi | |
24014 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
24015 | ac_beg=$ac_end | |
24016 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24017 | fi | |
24018 | done | |
24019 | if test -z "$ac_sed_cmds"; then | |
24020 | ac_sed_cmds=cat | |
24021 | fi | |
24022 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 24023 | |
b4e70030 JB |
24024 | _ACEOF |
24025 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24026 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
24027 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24028 | case $ac_file in | |
24029 | - | *:- | *:-:* ) # input from stdin | |
24030 | cat >$tmp/stdin | |
24031 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24032 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24033 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24034 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24035 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
24036 | esac |
24037 | ||
b4e70030 JB |
24038 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
24039 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
24040 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24041 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24042 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24043 | X"$ac_file" : 'X\(/\)' \| \ |
24044 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24045 | echo X"$ac_file" | |
b4e70030 JB |
24046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24047 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24048 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24049 | /^X\(\/\).*/{ s//\1/; q; } | |
24050 | s/.*/./; q'` | |
24051 | { if $as_mkdir_p; then | |
24052 | mkdir -p "$ac_dir" | |
24053 | else | |
24054 | as_dir="$ac_dir" | |
bec39cab | 24055 | as_dirs= |
b4e70030 JB |
24056 | while test ! -d "$as_dir"; do |
24057 | as_dirs="$as_dir $as_dirs" | |
24058 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
24059 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24060 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24061 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24062 | X"$as_dir" : 'X\(/\)' \| \ |
24063 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24064 | echo X"$as_dir" | |
b4e70030 JB |
24065 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24066 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24067 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24068 | /^X\(\/\).*/{ s//\1/; q; } | |
24069 | s/.*/./; q'` | |
bec39cab | 24070 | done |
b4e70030 JB |
24071 | test ! -n "$as_dirs" || mkdir $as_dirs |
24072 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24073 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 24074 | { (exit 1); exit 1; }; }; } |
b4e70030 | 24075 | |
bec39cab AC |
24076 | ac_builddir=. |
24077 | ||
b4e70030 | 24078 | if test "$ac_dir" != .; then |
bec39cab | 24079 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
24080 | # A "../" for each directory in $ac_dir_suffix. |
24081 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24082 | else | |
24083 | ac_dir_suffix= ac_top_builddir= | |
24084 | fi | |
bec39cab AC |
24085 | |
24086 | case $srcdir in | |
b4e70030 | 24087 | .) # No --srcdir option. We are building in place. |
bec39cab | 24088 | ac_srcdir=. |
b4e70030 JB |
24089 | if test -z "$ac_top_builddir"; then |
24090 | ac_top_srcdir=. | |
24091 | else | |
24092 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24093 | fi ;; | |
24094 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 24095 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
24096 | ac_top_srcdir=$srcdir ;; |
24097 | *) # Relative path. | |
24098 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24099 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
24100 | esac |
24101 | ||
b4e70030 JB |
24102 | # Do not use `cd foo && pwd` to compute absolute paths, because |
24103 | # the directories may not exist. | |
24104 | case `pwd` in | |
24105 | .) ac_abs_builddir="$ac_dir";; | |
24106 | *) | |
24107 | case "$ac_dir" in | |
24108 | .) ac_abs_builddir=`pwd`;; | |
24109 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24110 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24111 | esac;; | |
24112 | esac | |
24113 | case $ac_abs_builddir in | |
24114 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24115 | *) | |
24116 | case ${ac_top_builddir}. in | |
24117 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24118 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24119 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24120 | esac;; | |
24121 | esac | |
24122 | case $ac_abs_builddir in | |
24123 | .) ac_abs_srcdir=$ac_srcdir;; | |
24124 | *) | |
24125 | case $ac_srcdir in | |
24126 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24127 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24128 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24129 | esac;; | |
24130 | esac | |
24131 | case $ac_abs_builddir in | |
24132 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24133 | *) | |
24134 | case $ac_top_srcdir in | |
24135 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24136 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24137 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24138 | esac;; | |
24139 | esac | |
c906108c | 24140 | |
c906108c | 24141 | |
bec39cab AC |
24142 | case $INSTALL in |
24143 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 24144 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 24145 | esac |
121ce6e5 | 24146 | |
b4e70030 JB |
24147 | if test x"$ac_file" != x-; then |
24148 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24149 | echo "$as_me: creating $ac_file" >&6;} | |
24150 | rm -f "$ac_file" | |
24151 | fi | |
24152 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24153 | # use $as_me), people would be surprised to read: | |
24154 | # /* config.h. Generated by config.status. */ | |
24155 | if test x"$ac_file" = x-; then | |
24156 | configure_input= | |
24157 | else | |
24158 | configure_input="$ac_file. " | |
24159 | fi | |
24160 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
24161 | sed 's,.*/,,'` by configure." | |
24162 | ||
24163 | # First look for the input files in the build tree, otherwise in the | |
24164 | # src tree. | |
24165 | ac_file_inputs=`IFS=: | |
24166 | for f in $ac_file_in; do | |
24167 | case $f in | |
24168 | -) echo $tmp/stdin ;; | |
24169 | [\\/$]*) | |
24170 | # Absolute (can't be DOS-style, as IFS=:) | |
24171 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24172 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24173 | { (exit 1); exit 1; }; } | |
24174 | echo "$f";; | |
24175 | *) # Relative | |
24176 | if test -f "$f"; then | |
24177 | # Build tree | |
24178 | echo "$f" | |
24179 | elif test -f "$srcdir/$f"; then | |
24180 | # Source tree | |
24181 | echo "$srcdir/$f" | |
24182 | else | |
24183 | # /dev/null tree | |
24184 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24185 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24186 | { (exit 1); exit 1; }; } | |
24187 | fi;; | |
24188 | esac | |
24189 | done` || { (exit 1); exit 1; } | |
4e8d927d | 24190 | _ACEOF |
bec39cab AC |
24191 | cat >>$CONFIG_STATUS <<_ACEOF |
24192 | sed "$ac_vpsub | |
24193 | $extrasub | |
24194 | _ACEOF | |
24195 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24196 | :t | |
24197 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
24198 | s,@configure_input@,$configure_input,;t t |
24199 | s,@srcdir@,$ac_srcdir,;t t | |
24200 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
24201 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
24202 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
24203 | s,@builddir@,$ac_builddir,;t t | |
24204 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
24205 | s,@top_builddir@,$ac_top_builddir,;t t | |
24206 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
24207 | s,@INSTALL@,$ac_INSTALL,;t t | |
24208 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24209 | rm -f $tmp/stdin | |
24210 | if test x"$ac_file" != x-; then | |
24211 | mv $tmp/out $ac_file | |
24212 | else | |
24213 | cat $tmp/out | |
24214 | rm -f $tmp/out | |
24215 | fi | |
24216 | ||
24217 | done | |
24218 | _ACEOF | |
24219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24220 | ||
24221 | # | |
24222 | # CONFIG_HEADER section. | |
24223 | # | |
24224 | ||
24225 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24226 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24227 | # | |
24228 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24229 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24230 | ac_dB='[ ].*$,\1#\2' | |
24231 | ac_dC=' ' | |
24232 | ac_dD=',;t' | |
24233 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24234 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24235 | ac_uB='$,\1#\2define\3' | |
24236 | ac_uC=' ' | |
24237 | ac_uD=',;t' | |
24238 | ||
24239 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24240 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 24241 | case $ac_file in |
b4e70030 JB |
24242 | - | *:- | *:-:* ) # input from stdin |
24243 | cat >$tmp/stdin | |
24244 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24245 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24246 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24247 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24248 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 24249 | esac |
b4e70030 JB |
24250 | |
24251 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24252 | echo "$as_me: creating $ac_file" >&6;} | |
24253 | ||
24254 | # First look for the input files in the build tree, otherwise in the | |
24255 | # src tree. | |
24256 | ac_file_inputs=`IFS=: | |
24257 | for f in $ac_file_in; do | |
24258 | case $f in | |
24259 | -) echo $tmp/stdin ;; | |
24260 | [\\/$]*) | |
24261 | # Absolute (can't be DOS-style, as IFS=:) | |
24262 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24263 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24264 | { (exit 1); exit 1; }; } | |
24265 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
24266 | echo "$f";; | |
24267 | *) # Relative | |
24268 | if test -f "$f"; then | |
24269 | # Build tree | |
24270 | echo "$f" | |
24271 | elif test -f "$srcdir/$f"; then | |
24272 | # Source tree | |
24273 | echo "$srcdir/$f" | |
24274 | else | |
24275 | # /dev/null tree | |
24276 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24277 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24278 | { (exit 1); exit 1; }; } | |
24279 | fi;; | |
24280 | esac | |
24281 | done` || { (exit 1); exit 1; } | |
24282 | # Remove the trailing spaces. | |
24283 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24284 | ||
24285 | _ACEOF | |
24286 | ||
24287 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24288 | # `conftest.undefs', that substitutes the proper values into | |
24289 | # config.h.in to produce config.h. The first handles `#define' | |
24290 | # templates, and the second `#undef' templates. | |
24291 | # And first: Protect against being on the right side of a sed subst in | |
24292 | # config.status. Protect against being in an unquoted here document | |
24293 | # in config.status. | |
24294 | rm -f conftest.defines conftest.undefs | |
24295 | # Using a here document instead of a string reduces the quoting nightmare. | |
24296 | # Putting comments in sed scripts is not portable. | |
24297 | # | |
24298 | # `end' is used to avoid that the second main sed command (meant for | |
24299 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24300 | # See the Autoconf documentation for `clear'. | |
24301 | cat >confdef2sed.sed <<\_ACEOF | |
24302 | s/[\\&,]/\\&/g | |
24303 | s,[\\$`],\\&,g | |
24304 | t clear | |
24305 | : clear | |
24306 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24307 | t end | |
24308 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24309 | : end | |
24310 | _ACEOF | |
24311 | # If some macros were called several times there might be several times | |
24312 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24313 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24314 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24315 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24316 | rm -f confdef2sed.sed | |
24317 | ||
24318 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
24319 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24320 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
24321 | cat >>conftest.undefs <<\_ACEOF |
24322 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24323 | _ACEOF | |
24324 | ||
24325 | # Break up conftest.defines because some shells have a limit on the size | |
24326 | # of here documents, and old seds have small limits too (100 cmds). | |
24327 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24328 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24329 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24330 | echo ' :' >>$CONFIG_STATUS | |
24331 | rm -f conftest.tail | |
24332 | while grep . conftest.defines >/dev/null | |
bec39cab | 24333 | do |
b4e70030 JB |
24334 | # Write a limited-size here document to $tmp/defines.sed. |
24335 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24336 | # Speed up: don't consider the non `#define' lines. | |
24337 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24338 | # Work around the forget-to-reset-the-flag bug. | |
24339 | echo 't clr' >>$CONFIG_STATUS | |
24340 | echo ': clr' >>$CONFIG_STATUS | |
24341 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 24342 | echo 'CEOF |
b4e70030 JB |
24343 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
24344 | rm -f $tmp/in | |
24345 | mv $tmp/out $tmp/in | |
24346 | ' >>$CONFIG_STATUS | |
24347 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
24348 | rm -f conftest.defines |
24349 | mv conftest.tail conftest.defines | |
24350 | done | |
b4e70030 JB |
24351 | rm -f conftest.defines |
24352 | echo ' fi # grep' >>$CONFIG_STATUS | |
24353 | echo >>$CONFIG_STATUS | |
24354 | ||
24355 | # Break up conftest.undefs because some shells have a limit on the size | |
24356 | # of here documents, and old seds have small limits too (100 cmds). | |
24357 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24358 | rm -f conftest.tail | |
24359 | while grep . conftest.undefs >/dev/null | |
24360 | do | |
24361 | # Write a limited-size here document to $tmp/undefs.sed. | |
24362 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24363 | # Speed up: don't consider the non `#undef' | |
24364 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24365 | # Work around the forget-to-reset-the-flag bug. | |
24366 | echo 't clr' >>$CONFIG_STATUS | |
24367 | echo ': clr' >>$CONFIG_STATUS | |
24368 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24369 | echo 'CEOF | |
24370 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24371 | rm -f $tmp/in | |
24372 | mv $tmp/out $tmp/in | |
24373 | ' >>$CONFIG_STATUS | |
24374 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24375 | rm -f conftest.undefs | |
24376 | mv conftest.tail conftest.undefs | |
24377 | done | |
24378 | rm -f conftest.undefs | |
bec39cab AC |
24379 | |
24380 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
24381 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24382 | # use $as_me), people would be surprised to read: | |
24383 | # /* config.h. Generated by config.status. */ | |
24384 | if test x"$ac_file" = x-; then | |
24385 | echo "/* Generated by configure. */" >$tmp/config.h | |
24386 | else | |
24387 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24388 | fi | |
24389 | cat $tmp/in >>$tmp/config.h | |
24390 | rm -f $tmp/in | |
bec39cab | 24391 | if test x"$ac_file" != x-; then |
b4e70030 | 24392 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
24393 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
24394 | echo "$as_me: $ac_file is unchanged" >&6;} | |
24395 | else | |
b4e70030 JB |
24396 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
24397 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24398 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24399 | X"$ac_file" : 'X\(//\)$' \| \ | |
24400 | X"$ac_file" : 'X\(/\)' \| \ | |
24401 | . : '\(.\)' 2>/dev/null || | |
24402 | echo X"$ac_file" | | |
24403 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24404 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24405 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24406 | /^X\(\/\).*/{ s//\1/; q; } | |
24407 | s/.*/./; q'` | |
24408 | { if $as_mkdir_p; then | |
24409 | mkdir -p "$ac_dir" | |
24410 | else | |
24411 | as_dir="$ac_dir" | |
24412 | as_dirs= | |
24413 | while test ! -d "$as_dir"; do | |
24414 | as_dirs="$as_dir $as_dirs" | |
24415 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24416 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24417 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24418 | X"$as_dir" : 'X\(//\)$' \| \ | |
24419 | X"$as_dir" : 'X\(/\)' \| \ | |
24420 | . : '\(.\)' 2>/dev/null || | |
24421 | echo X"$as_dir" | | |
24422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24423 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24424 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24425 | /^X\(\/\).*/{ s//\1/; q; } | |
24426 | s/.*/./; q'` | |
24427 | done | |
24428 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24429 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24430 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24431 | { (exit 1); exit 1; }; }; } | |
24432 | ||
bec39cab | 24433 | rm -f $ac_file |
b4e70030 | 24434 | mv $tmp/config.h $ac_file |
bec39cab AC |
24435 | fi |
24436 | else | |
b4e70030 JB |
24437 | cat $tmp/config.h |
24438 | rm -f $tmp/config.h | |
bec39cab | 24439 | fi |
b4e70030 JB |
24440 | done |
24441 | _ACEOF | |
24442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24443 | ||
24444 | # | |
24445 | # CONFIG_LINKS section. | |
24446 | # | |
24447 | ||
24448 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
24449 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24450 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 24451 | |
b4e70030 JB |
24452 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
24453 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
24454 | |
24455 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
24456 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
24457 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
24458 | { (exit 1); exit 1; }; } | |
c906108c | 24459 | fi |
b4e70030 JB |
24460 | rm -f $ac_dest |
24461 | ||
24462 | # Make relative symlinks. | |
24463 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24464 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24465 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24466 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24467 | X"$ac_dest" : 'X\(/\)' \| \ | |
24468 | . : '\(.\)' 2>/dev/null || | |
24469 | echo X"$ac_dest" | | |
24470 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24471 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24472 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24473 | /^X\(\/\).*/{ s//\1/; q; } | |
24474 | s/.*/./; q'` | |
24475 | { if $as_mkdir_p; then | |
24476 | mkdir -p "$ac_dest_dir" | |
24477 | else | |
24478 | as_dir="$ac_dest_dir" | |
24479 | as_dirs= | |
24480 | while test ! -d "$as_dir"; do | |
24481 | as_dirs="$as_dir $as_dirs" | |
24482 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24483 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24484 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24485 | X"$as_dir" : 'X\(//\)$' \| \ | |
24486 | X"$as_dir" : 'X\(/\)' \| \ | |
24487 | . : '\(.\)' 2>/dev/null || | |
24488 | echo X"$as_dir" | | |
24489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24491 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24492 | /^X\(\/\).*/{ s//\1/; q; } | |
24493 | s/.*/./; q'` | |
24494 | done | |
24495 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24496 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
24497 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
24498 | { (exit 1); exit 1; }; }; } | |
24499 | ||
24500 | ac_builddir=. | |
24501 | ||
24502 | if test "$ac_dest_dir" != .; then | |
24503 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
24504 | # A "../" for each directory in $ac_dir_suffix. | |
24505 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24506 | else | |
24507 | ac_dir_suffix= ac_top_builddir= | |
24508 | fi | |
24509 | ||
24510 | case $srcdir in | |
24511 | .) # No --srcdir option. We are building in place. | |
24512 | ac_srcdir=. | |
24513 | if test -z "$ac_top_builddir"; then | |
24514 | ac_top_srcdir=. | |
24515 | else | |
24516 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24517 | fi ;; | |
24518 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
24519 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24520 | ac_top_srcdir=$srcdir ;; | |
24521 | *) # Relative path. | |
24522 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24523 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24524 | esac | |
24525 | ||
24526 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24527 | # the directories may not exist. | |
24528 | case `pwd` in | |
24529 | .) ac_abs_builddir="$ac_dest_dir";; | |
24530 | *) | |
24531 | case "$ac_dest_dir" in | |
24532 | .) ac_abs_builddir=`pwd`;; | |
24533 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
24534 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
24535 | esac;; | |
24536 | esac | |
24537 | case $ac_abs_builddir in | |
24538 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24539 | *) | |
24540 | case ${ac_top_builddir}. in | |
24541 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24542 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24543 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24544 | esac;; | |
24545 | esac | |
24546 | case $ac_abs_builddir in | |
24547 | .) ac_abs_srcdir=$ac_srcdir;; | |
24548 | *) | |
24549 | case $ac_srcdir in | |
24550 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24551 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24552 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24553 | esac;; | |
24554 | esac | |
24555 | case $ac_abs_builddir in | |
24556 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24557 | *) | |
24558 | case $ac_top_srcdir in | |
24559 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24560 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24561 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24562 | esac;; | |
24563 | esac | |
24564 | ||
bec39cab AC |
24565 | |
24566 | case $srcdir in | |
24567 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 24568 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 24569 | esac |
b4e70030 JB |
24570 | |
24571 | # Try a symlink, then a hard link, then a copy. | |
24572 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
24573 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
24574 | cp -p $srcdir/$ac_source $ac_dest || | |
24575 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
24576 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 24577 | { (exit 1); exit 1; }; } |
b4e70030 JB |
24578 | done |
24579 | _ACEOF | |
24580 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24581 | ||
24582 | # | |
24583 | # CONFIG_COMMANDS section. | |
24584 | # | |
24585 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
24586 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24587 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24588 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24589 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24590 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24591 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24592 | X"$ac_dest" : 'X\(/\)' \| \ | |
24593 | . : '\(.\)' 2>/dev/null || | |
24594 | echo X"$ac_dest" | | |
24595 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24596 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24597 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24598 | /^X\(\/\).*/{ s//\1/; q; } | |
24599 | s/.*/./; q'` | |
24600 | { if $as_mkdir_p; then | |
24601 | mkdir -p "$ac_dir" | |
24602 | else | |
24603 | as_dir="$ac_dir" | |
24604 | as_dirs= | |
24605 | while test ! -d "$as_dir"; do | |
24606 | as_dirs="$as_dir $as_dirs" | |
24607 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24608 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24609 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24610 | X"$as_dir" : 'X\(//\)$' \| \ | |
24611 | X"$as_dir" : 'X\(/\)' \| \ | |
24612 | . : '\(.\)' 2>/dev/null || | |
24613 | echo X"$as_dir" | | |
24614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24615 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24616 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24617 | /^X\(\/\).*/{ s//\1/; q; } | |
24618 | s/.*/./; q'` | |
24619 | done | |
24620 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24621 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24622 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24623 | { (exit 1); exit 1; }; }; } | |
24624 | ||
24625 | ac_builddir=. | |
24626 | ||
24627 | if test "$ac_dir" != .; then | |
24628 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
24629 | # A "../" for each directory in $ac_dir_suffix. | |
24630 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24631 | else | |
24632 | ac_dir_suffix= ac_top_builddir= | |
24633 | fi | |
24634 | ||
24635 | case $srcdir in | |
24636 | .) # No --srcdir option. We are building in place. | |
24637 | ac_srcdir=. | |
24638 | if test -z "$ac_top_builddir"; then | |
24639 | ac_top_srcdir=. | |
24640 | else | |
24641 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24642 | fi ;; | |
24643 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
24644 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24645 | ac_top_srcdir=$srcdir ;; | |
24646 | *) # Relative path. | |
24647 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24648 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24649 | esac | |
24650 | ||
24651 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24652 | # the directories may not exist. | |
24653 | case `pwd` in | |
24654 | .) ac_abs_builddir="$ac_dir";; | |
24655 | *) | |
24656 | case "$ac_dir" in | |
24657 | .) ac_abs_builddir=`pwd`;; | |
24658 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24659 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24660 | esac;; | |
24661 | esac | |
24662 | case $ac_abs_builddir in | |
24663 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24664 | *) | |
24665 | case ${ac_top_builddir}. in | |
24666 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24667 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24668 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24669 | esac;; | |
24670 | esac | |
24671 | case $ac_abs_builddir in | |
24672 | .) ac_abs_srcdir=$ac_srcdir;; | |
24673 | *) | |
24674 | case $ac_srcdir in | |
24675 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24676 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24677 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24678 | esac;; | |
24679 | esac | |
24680 | case $ac_abs_builddir in | |
24681 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24682 | *) | |
24683 | case $ac_top_srcdir in | |
24684 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24685 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24686 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24687 | esac;; | |
24688 | esac | |
bec39cab | 24689 | |
bec39cab | 24690 | |
b4e70030 JB |
24691 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
24692 | echo "$as_me: executing $ac_dest commands" >&6;} | |
24693 | case $ac_dest in | |
24694 | gdb_stdint.h ) | |
4e8d927d DJ |
24695 | if test "$GCC" = yes; then |
24696 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
24697 | else | |
24698 | echo "/* generated for $CC */" > tmp-stdint.h | |
24699 | fi | |
24700 | ||
24701 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24702 | ||
24703 | #ifndef GCC_GENERATED_STDINT_H | |
24704 | #define GCC_GENERATED_STDINT_H 1 | |
24705 | ||
24706 | #include <sys/types.h> | |
24707 | EOF | |
24708 | ||
24709 | if test "$acx_cv_header_stdint" != stdint.h; then | |
24710 | echo "#include <stddef.h>" >> tmp-stdint.h | |
24711 | fi | |
24712 | if test "$acx_cv_header_stdint" != stddef.h; then | |
24713 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
24714 | fi | |
24715 | ||
24716 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24717 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
24718 | #ifdef __int8_t_defined | |
24719 | #define _INT8_T | |
24720 | #define _INT16_T | |
24721 | #define _INT32_T | |
24722 | #endif | |
24723 | #ifdef __uint32_t_defined | |
24724 | #define _UINT32_T | |
24725 | #endif | |
24726 | ||
24727 | EOF | |
24728 | ||
24729 | # ----------------- done header, emit basic int types ------------- | |
24730 | if test "$acx_cv_header_stdint" = stddef.h; then | |
24731 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24732 | ||
24733 | #ifndef _UINT8_T | |
24734 | #define _UINT8_T | |
24735 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
24736 | #endif | |
24737 | ||
24738 | #ifndef _UINT16_T | |
24739 | #define _UINT16_T | |
24740 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
24741 | #endif | |
24742 | ||
24743 | #ifndef _UINT32_T | |
24744 | #define _UINT32_T | |
24745 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
24746 | #endif | |
24747 | ||
24748 | #ifndef _INT8_T | |
24749 | #define _INT8_T | |
24750 | typedef $acx_cv_type_int8_t int8_t; | |
24751 | #endif | |
24752 | ||
24753 | #ifndef _INT16_T | |
24754 | #define _INT16_T | |
24755 | typedef $acx_cv_type_int16_t int16_t; | |
24756 | #endif | |
24757 | ||
24758 | #ifndef _INT32_T | |
24759 | #define _INT32_T | |
24760 | typedef $acx_cv_type_int32_t int32_t; | |
24761 | #endif | |
24762 | EOF | |
24763 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
24764 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24765 | ||
24766 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
24767 | #ifndef _INT8_T | |
24768 | #define _INT8_T | |
24769 | #endif | |
24770 | #ifndef _INT16_T | |
24771 | #define _INT16_T | |
24772 | #endif | |
24773 | #ifndef _INT32_T | |
24774 | #define _INT32_T | |
24775 | #endif | |
24776 | ||
24777 | #ifndef _UINT8_T | |
24778 | #define _UINT8_T | |
24779 | typedef u_int8_t uint8_t; | |
24780 | #endif | |
24781 | ||
24782 | #ifndef _UINT16_T | |
24783 | #define _UINT16_T | |
24784 | typedef u_int16_t uint16_t; | |
24785 | #endif | |
24786 | ||
24787 | #ifndef _UINT32_T | |
24788 | #define _UINT32_T | |
24789 | typedef u_int32_t uint32_t; | |
24790 | #endif | |
24791 | EOF | |
24792 | else | |
24793 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24794 | ||
24795 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
24796 | #ifndef _INT8_T | |
24797 | #define _INT8_T | |
24798 | #endif | |
24799 | #ifndef _INT16_T | |
24800 | #define _INT16_T | |
24801 | #endif | |
24802 | #ifndef _INT32_T | |
24803 | #define _INT32_T | |
24804 | #endif | |
24805 | #ifndef _UINT8_T | |
24806 | #define _UINT8_T | |
24807 | #endif | |
24808 | #ifndef _UINT16_T | |
24809 | #define _UINT16_T | |
24810 | #endif | |
24811 | #ifndef _UINT32_T | |
24812 | #define _UINT32_T | |
24813 | #endif | |
24814 | EOF | |
24815 | fi | |
24816 | ||
24817 | # ------------- done basic int types, emit int64_t types ------------ | |
24818 | if test "$ac_cv_type_uint64_t" = yes; then | |
24819 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24820 | ||
24821 | /* system headers have good uint64_t and int64_t */ | |
24822 | #ifndef _INT64_T | |
24823 | #define _INT64_T | |
24824 | #endif | |
24825 | #ifndef _UINT64_T | |
24826 | #define _UINT64_T | |
24827 | #endif | |
24828 | EOF | |
24829 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
24830 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24831 | ||
24832 | /* system headers have an u_int64_t (and int64_t) */ | |
24833 | #ifndef _INT64_T | |
24834 | #define _INT64_T | |
24835 | #endif | |
24836 | #ifndef _UINT64_T | |
24837 | #define _UINT64_T | |
24838 | typedef u_int64_t uint64_t; | |
24839 | #endif | |
24840 | EOF | |
24841 | elif test -n "$acx_cv_type_int64_t"; then | |
24842 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24843 | ||
24844 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
24845 | #ifndef _INT64_T | |
24846 | #define _INT64_T | |
24847 | typedef $acx_cv_type_int64_t int64_t; | |
24848 | #endif | |
24849 | #ifndef _UINT64_T | |
24850 | #define _UINT64_T | |
24851 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
24852 | #endif | |
24853 | EOF | |
24854 | else | |
24855 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24856 | ||
24857 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
24858 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
24859 | #ifndef _INT64_T | |
24860 | #define _INT64_T | |
24861 | typedef long long int64_t; | |
24862 | #endif | |
24863 | #ifndef _UINT64_T | |
24864 | #define _UINT64_T | |
24865 | typedef unsigned long long uint64_t; | |
24866 | #endif | |
24867 | ||
24868 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
24869 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
24870 | does not implement __extension__. But that compiler doesn't define | |
24871 | __GNUC_MINOR__. */ | |
24872 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
24873 | # define __extension__ | |
24874 | # endif | |
24875 | ||
24876 | # ifndef _INT64_T | |
24877 | # define _INT64_T | |
24878 | __extension__ typedef long long int64_t; | |
24879 | # endif | |
24880 | # ifndef _UINT64_T | |
24881 | # define _UINT64_T | |
24882 | __extension__ typedef unsigned long long uint64_t; | |
24883 | # endif | |
24884 | ||
24885 | #elif !defined __STRICT_ANSI__ | |
24886 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
24887 | ||
24888 | # ifndef _INT64_T | |
24889 | # define _INT64_T | |
24890 | typedef __int64 int64_t; | |
24891 | # endif | |
24892 | # ifndef _UINT64_T | |
24893 | # define _UINT64_T | |
24894 | typedef unsigned __int64 uint64_t; | |
24895 | # endif | |
24896 | # endif /* compiler */ | |
24897 | ||
24898 | #endif /* ANSI version */ | |
24899 | EOF | |
24900 | fi | |
24901 | ||
24902 | # ------------- done int64_t types, emit intptr types ------------ | |
24903 | if test "$ac_cv_type_uintptr_t" != yes; then | |
24904 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24905 | ||
24906 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
24907 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
24908 | typedef $acx_cv_type_intptr_t intptr_t; | |
24909 | EOF | |
24910 | fi | |
24911 | ||
24912 | # ------------- done intptr types, emit int_least types ------------ | |
24913 | if test "$ac_cv_type_int_least32_t" != yes; then | |
24914 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24915 | ||
24916 | /* Define int_least types */ | |
24917 | typedef int8_t int_least8_t; | |
24918 | typedef int16_t int_least16_t; | |
24919 | typedef int32_t int_least32_t; | |
24920 | #ifdef _INT64_T | |
24921 | typedef int64_t int_least64_t; | |
24922 | #endif | |
24923 | ||
24924 | typedef uint8_t uint_least8_t; | |
24925 | typedef uint16_t uint_least16_t; | |
24926 | typedef uint32_t uint_least32_t; | |
24927 | #ifdef _UINT64_T | |
24928 | typedef uint64_t uint_least64_t; | |
24929 | #endif | |
24930 | EOF | |
24931 | fi | |
24932 | ||
24933 | # ------------- done intptr types, emit int_fast types ------------ | |
24934 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
24935 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24936 | ||
24937 | /* Define int_fast types. short is often slow */ | |
24938 | typedef int8_t int_fast8_t; | |
24939 | typedef int int_fast16_t; | |
24940 | typedef int32_t int_fast32_t; | |
24941 | #ifdef _INT64_T | |
24942 | typedef int64_t int_fast64_t; | |
24943 | #endif | |
24944 | ||
24945 | typedef uint8_t uint_fast8_t; | |
24946 | typedef unsigned int uint_fast16_t; | |
24947 | typedef uint32_t uint_fast32_t; | |
24948 | #ifdef _UINT64_T | |
24949 | typedef uint64_t uint_fast64_t; | |
24950 | #endif | |
24951 | EOF | |
24952 | fi | |
24953 | ||
24954 | if test "$ac_cv_type_uintmax_t" != yes; then | |
24955 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24956 | ||
24957 | /* Define intmax based on what we found */ | |
24958 | #ifdef _INT64_T | |
24959 | typedef int64_t intmax_t; | |
24960 | #else | |
24961 | typedef long intmax_t; | |
24962 | #endif | |
24963 | #ifdef _UINT64_T | |
24964 | typedef uint64_t uintmax_t; | |
24965 | #else | |
24966 | typedef unsigned long uintmax_t; | |
24967 | #endif | |
24968 | EOF | |
24969 | fi | |
24970 | ||
24971 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24972 | ||
24973 | #endif /* GCC_GENERATED_STDINT_H */ | |
24974 | EOF | |
24975 | ||
24976 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
24977 | rm -f tmp-stdint.h | |
24978 | else | |
24979 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
24980 | fi |
24981 | ||
4e8d927d | 24982 | ;; |
b4e70030 | 24983 | default ) |
c906108c | 24984 | |
2c0fc042 | 24985 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
24986 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
24987 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
24988 | mv -f Makefile.tmp Makefile | |
24989 | ||
2acceee2 | 24990 | |
c906108c SS |
24991 | case x$CONFIG_HEADERS in |
24992 | xconfig.h:config.in) | |
24993 | echo > stamp-h ;; | |
24994 | esac | |
bec39cab AC |
24995 | ;; |
24996 | esac | |
b4e70030 JB |
24997 | done |
24998 | _ACEOF | |
c906108c | 24999 | |
b4e70030 | 25000 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
25001 | |
25002 | { (exit 0); exit 0; } | |
25003 | _ACEOF | |
c906108c | 25004 | chmod +x $CONFIG_STATUS |
bec39cab AC |
25005 | ac_clean_files=$ac_clean_files_save |
25006 | ||
25007 | ||
25008 | # configure is writing to config.log, and then calls config.status. | |
25009 | # config.status does its own redirection, appending to config.log. | |
25010 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25011 | # by configure, so config.status won't be able to write to it; its | |
25012 | # output is simply discarded. So we exec the FD to /dev/null, | |
25013 | # effectively closing config.log, so it can be properly (re)opened and | |
25014 | # appended to by config.status. When coming back to configure, we | |
25015 | # need to make the FD available again. | |
25016 | if test "$no_create" != yes; then | |
25017 | ac_cs_success=: | |
25018 | ac_config_status_args= | |
25019 | test "$silent" = yes && | |
25020 | ac_config_status_args="$ac_config_status_args --quiet" | |
25021 | exec 5>/dev/null | |
25022 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25023 | exec 5>>config.log | |
25024 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25025 | # would make configure fail if this is the last instruction. | |
25026 | $ac_cs_success || { (exit 1); exit 1; } | |
25027 | fi | |
c906108c | 25028 | |
bec39cab AC |
25029 | # |
25030 | # CONFIG_SUBDIRS section. | |
25031 | # | |
c906108c SS |
25032 | if test "$no_recursion" != yes; then |
25033 | ||
25034 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
25035 | ac_sub_configure_args= | |
25036 | ac_prev= | |
b4e70030 | 25037 | for ac_arg in $ac_configure_args; do |
c906108c SS |
25038 | if test -n "$ac_prev"; then |
25039 | ac_prev= | |
25040 | continue | |
25041 | fi | |
bec39cab | 25042 | case $ac_arg in |
c906108c SS |
25043 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
25044 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
25045 | ac_prev=cache_file ;; | |
25046 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
25047 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
25048 | | --c=*) | |
25049 | ;; | |
25050 | --config-cache | -C) | |
c906108c SS |
25051 | ;; |
25052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
25053 | ac_prev=srcdir ;; | |
25054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
25055 | ;; | |
bec39cab AC |
25056 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
25057 | ac_prev=prefix ;; | |
25058 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
25059 | ;; | |
b4e70030 | 25060 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
25061 | esac |
25062 | done | |
25063 | ||
bec39cab AC |
25064 | # Always prepend --prefix to ensure using the same prefix |
25065 | # in subdir configurations. | |
25066 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
25067 | ||
b4e70030 | 25068 | ac_popdir=`pwd` |
bec39cab | 25069 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
25070 | |
25071 | # Do not complain, so a configure script can configure whichever | |
25072 | # parts of a large source tree are present. | |
bec39cab | 25073 | test -d $srcdir/$ac_dir || continue |
c906108c | 25074 | |
b4e70030 JB |
25075 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
25076 | echo "$as_me: configuring in $ac_dir" >&6;} | |
25077 | { if $as_mkdir_p; then | |
25078 | mkdir -p "$ac_dir" | |
25079 | else | |
25080 | as_dir="$ac_dir" | |
bec39cab | 25081 | as_dirs= |
b4e70030 JB |
25082 | while test ! -d "$as_dir"; do |
25083 | as_dirs="$as_dir $as_dirs" | |
25084 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
25085 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25086 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25087 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25088 | X"$as_dir" : 'X\(/\)' \| \ |
25089 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25090 | echo X"$as_dir" | |
b4e70030 JB |
25091 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25092 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25093 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25094 | /^X\(\/\).*/{ s//\1/; q; } | |
25095 | s/.*/./; q'` | |
bec39cab | 25096 | done |
b4e70030 JB |
25097 | test ! -n "$as_dirs" || mkdir $as_dirs |
25098 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25099 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 25100 | { (exit 1); exit 1; }; }; } |
b4e70030 | 25101 | |
bec39cab AC |
25102 | ac_builddir=. |
25103 | ||
b4e70030 | 25104 | if test "$ac_dir" != .; then |
bec39cab | 25105 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
25106 | # A "../" for each directory in $ac_dir_suffix. |
25107 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25108 | else | |
25109 | ac_dir_suffix= ac_top_builddir= | |
25110 | fi | |
bec39cab AC |
25111 | |
25112 | case $srcdir in | |
b4e70030 | 25113 | .) # No --srcdir option. We are building in place. |
bec39cab | 25114 | ac_srcdir=. |
b4e70030 JB |
25115 | if test -z "$ac_top_builddir"; then |
25116 | ac_top_srcdir=. | |
25117 | else | |
25118 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25119 | fi ;; | |
25120 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 25121 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
25122 | ac_top_srcdir=$srcdir ;; |
25123 | *) # Relative path. | |
25124 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25125 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25126 | esac | |
25127 | ||
25128 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25129 | # the directories may not exist. | |
25130 | case `pwd` in | |
25131 | .) ac_abs_builddir="$ac_dir";; | |
25132 | *) | |
25133 | case "$ac_dir" in | |
25134 | .) ac_abs_builddir=`pwd`;; | |
25135 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25136 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25137 | esac;; | |
25138 | esac | |
25139 | case $ac_abs_builddir in | |
25140 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25141 | *) | |
25142 | case ${ac_top_builddir}. in | |
25143 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25144 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25145 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25146 | esac;; | |
25147 | esac | |
25148 | case $ac_abs_builddir in | |
25149 | .) ac_abs_srcdir=$ac_srcdir;; | |
25150 | *) | |
25151 | case $ac_srcdir in | |
25152 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25153 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25154 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25155 | esac;; | |
25156 | esac | |
25157 | case $ac_abs_builddir in | |
25158 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25159 | *) | |
25160 | case $ac_top_srcdir in | |
25161 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25162 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25163 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25164 | esac;; | |
bec39cab | 25165 | esac |
c906108c | 25166 | |
c906108c | 25167 | |
b4e70030 | 25168 | cd $ac_dir |
c906108c SS |
25169 | |
25170 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
25171 | if test -f $ac_srcdir/configure.gnu; then |
25172 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
25173 | elif test -f $ac_srcdir/configure; then | |
25174 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
25175 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
25176 | ac_sub_configure=$ac_configure |
25177 | else | |
bec39cab AC |
25178 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
25179 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
25180 | ac_sub_configure= |
25181 | fi | |
25182 | ||
25183 | # The recursion is here. | |
25184 | if test -n "$ac_sub_configure"; then | |
c906108c | 25185 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
25186 | case $cache_file in |
25187 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
25188 | *) # Relative path. |
25189 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 25190 | esac |
c906108c | 25191 | |
bec39cab AC |
25192 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
25193 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 25194 | # The eval makes quoting arguments work. |
b4e70030 JB |
25195 | eval $ac_sub_configure $ac_sub_configure_args \ |
25196 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
25197 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
25198 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
25199 | { (exit 1); exit 1; }; } | |
c906108c SS |
25200 | fi |
25201 | ||
b4e70030 | 25202 | cd $ac_popdir |
c906108c SS |
25203 | done |
25204 | fi | |
25205 | ||
25206 | ||
25207 | exit 0 |