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;} | |
6355 | fi | |
6356 | ||
bec39cab AC |
6357 | # ------------------------- # |
6358 | # Checks for header files. # | |
6359 | # ------------------------- # | |
8ee53726 | 6360 | |
0e5d83e3 | 6361 | |
bec39cab AC |
6362 | |
6363 | ||
6364 | ||
6365 | ||
6366 | ac_header_dirent=no | |
6367 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6368 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6369 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6370 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6373 | else | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
6375 | /* confdefs.h. */ | |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
6380 | #include <sys/types.h> | |
0e5d83e3 | 6381 | #include <$ac_hdr> |
bec39cab AC |
6382 | |
6383 | int | |
6384 | main () | |
6385 | { | |
6386 | if ((DIR *) 0) | |
6387 | return 0; | |
6388 | ; | |
6389 | return 0; | |
6390 | } | |
6391 | _ACEOF | |
6392 | rm -f conftest.$ac_objext | |
6393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6394 | (eval $ac_compile) 2>conftest.er1 | |
6395 | ac_status=$? | |
6396 | grep -v '^ *+' conftest.er1 >conftest.err | |
6397 | rm -f conftest.er1 | |
6398 | cat conftest.err >&5 | |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); } && | |
b4e70030 JB |
6401 | { ac_try='test -z "$ac_c_werror_flag" |
6402 | || test ! -s conftest.err' | |
bec39cab AC |
6403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6404 | (eval $ac_try) 2>&5 | |
6405 | ac_status=$? | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; } && | |
6408 | { ac_try='test -s conftest.$ac_objext' | |
6409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6410 | (eval $ac_try) 2>&5 | |
6411 | ac_status=$? | |
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6413 | (exit $ac_status); }; }; then | |
6414 | eval "$as_ac_Header=yes" | |
6415 | else | |
6416 | echo "$as_me: failed program was:" >&5 | |
6417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6418 | ||
b4e70030 | 6419 | eval "$as_ac_Header=no" |
bec39cab AC |
6420 | fi |
6421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6422 | fi | |
b4e70030 JB |
6423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6426 | cat >>confdefs.h <<_ACEOF | |
6427 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6428 | _ACEOF | |
6429 | ||
6430 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6431 | fi |
0e5d83e3 | 6432 | |
bec39cab AC |
6433 | done |
6434 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6435 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6436 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6437 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6438 | if test "${ac_cv_search_opendir+set}" = set; then |
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6440 | else | |
6441 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6442 | ac_cv_search_opendir=no |
bec39cab AC |
6443 | cat >conftest.$ac_ext <<_ACEOF |
6444 | /* confdefs.h. */ | |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
0e5d83e3 | 6449 | |
b4e70030 | 6450 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6451 | #ifdef __cplusplus |
6452 | extern "C" | |
6453 | #endif | |
b4e70030 JB |
6454 | /* We use char because int might match the return type of a gcc2 |
6455 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6456 | char opendir (); |
6457 | int | |
6458 | main () | |
6459 | { | |
b4e70030 | 6460 | opendir (); |
bec39cab AC |
6461 | ; |
6462 | return 0; | |
6463 | } | |
6464 | _ACEOF | |
b4e70030 | 6465 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6467 | (eval $ac_link) 2>conftest.er1 | |
6468 | ac_status=$? | |
6469 | grep -v '^ *+' conftest.er1 >conftest.err | |
6470 | rm -f conftest.er1 | |
6471 | cat conftest.err >&5 | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); } && | |
b4e70030 JB |
6474 | { ac_try='test -z "$ac_c_werror_flag" |
6475 | || test ! -s conftest.err' | |
bec39cab AC |
6476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6477 | (eval $ac_try) 2>&5 | |
6478 | ac_status=$? | |
6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6480 | (exit $ac_status); }; } && | |
6481 | { ac_try='test -s conftest$ac_exeext' | |
6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6483 | (eval $ac_try) 2>&5 | |
6484 | ac_status=$? | |
6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6486 | (exit $ac_status); }; }; then | |
b4e70030 | 6487 | ac_cv_search_opendir="none required" |
bec39cab AC |
6488 | else |
6489 | echo "$as_me: failed program was:" >&5 | |
6490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6491 | ||
6492 | fi | |
bec39cab | 6493 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6494 | conftest$ac_exeext conftest.$ac_ext |
6495 | if test "$ac_cv_search_opendir" = no; then | |
6496 | for ac_lib in dir; do | |
6497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6498 | cat >conftest.$ac_ext <<_ACEOF | |
6499 | /* confdefs.h. */ | |
6500 | _ACEOF | |
6501 | cat confdefs.h >>conftest.$ac_ext | |
6502 | cat >>conftest.$ac_ext <<_ACEOF | |
6503 | /* end confdefs.h. */ | |
6504 | ||
6505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6506 | #ifdef __cplusplus | |
6507 | extern "C" | |
6508 | #endif | |
6509 | /* We use char because int might match the return type of a gcc2 | |
6510 | builtin and then its argument prototype would still apply. */ | |
6511 | char opendir (); | |
6512 | int | |
6513 | main () | |
6514 | { | |
6515 | opendir (); | |
6516 | ; | |
6517 | return 0; | |
6518 | } | |
6519 | _ACEOF | |
6520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6522 | (eval $ac_link) 2>conftest.er1 | |
6523 | ac_status=$? | |
6524 | grep -v '^ *+' conftest.er1 >conftest.err | |
6525 | rm -f conftest.er1 | |
6526 | cat conftest.err >&5 | |
6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6528 | (exit $ac_status); } && | |
6529 | { ac_try='test -z "$ac_c_werror_flag" | |
6530 | || test ! -s conftest.err' | |
6531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6532 | (eval $ac_try) 2>&5 | |
6533 | ac_status=$? | |
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6535 | (exit $ac_status); }; } && | |
6536 | { ac_try='test -s conftest$ac_exeext' | |
6537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6538 | (eval $ac_try) 2>&5 | |
6539 | ac_status=$? | |
6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6541 | (exit $ac_status); }; }; then | |
6542 | ac_cv_search_opendir="-l$ac_lib" | |
6543 | break | |
4e8d927d | 6544 | else |
b4e70030 JB |
6545 | echo "$as_me: failed program was:" >&5 |
6546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6547 | ||
6548 | fi | |
6549 | rm -f conftest.err conftest.$ac_objext \ | |
6550 | conftest$ac_exeext conftest.$ac_ext | |
6551 | done | |
0e5d83e3 | 6552 | fi |
bec39cab | 6553 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6554 | fi |
b4e70030 JB |
6555 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6556 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6557 | if test "$ac_cv_search_opendir" != no; then | |
6558 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6559 | |
0e5d83e3 JJ |
6560 | fi |
6561 | ||
d28f9cdf | 6562 | else |
b4e70030 JB |
6563 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6564 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6565 | if test "${ac_cv_search_opendir+set}" = set; then |
6566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6567 | else | |
6568 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6569 | ac_cv_search_opendir=no |
bec39cab AC |
6570 | cat >conftest.$ac_ext <<_ACEOF |
6571 | /* confdefs.h. */ | |
6572 | _ACEOF | |
6573 | cat confdefs.h >>conftest.$ac_ext | |
6574 | cat >>conftest.$ac_ext <<_ACEOF | |
6575 | /* end confdefs.h. */ | |
d28f9cdf | 6576 | |
b4e70030 | 6577 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6578 | #ifdef __cplusplus |
6579 | extern "C" | |
d28f9cdf | 6580 | #endif |
b4e70030 JB |
6581 | /* We use char because int might match the return type of a gcc2 |
6582 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6583 | char opendir (); |
6584 | int | |
6585 | main () | |
6586 | { | |
b4e70030 | 6587 | opendir (); |
bec39cab AC |
6588 | ; |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
b4e70030 | 6592 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6594 | (eval $ac_link) 2>conftest.er1 | |
6595 | ac_status=$? | |
6596 | grep -v '^ *+' conftest.er1 >conftest.err | |
6597 | rm -f conftest.er1 | |
6598 | cat conftest.err >&5 | |
6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6600 | (exit $ac_status); } && | |
b4e70030 JB |
6601 | { ac_try='test -z "$ac_c_werror_flag" |
6602 | || test ! -s conftest.err' | |
bec39cab AC |
6603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6604 | (eval $ac_try) 2>&5 | |
6605 | ac_status=$? | |
6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6607 | (exit $ac_status); }; } && | |
6608 | { ac_try='test -s conftest$ac_exeext' | |
6609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6610 | (eval $ac_try) 2>&5 | |
6611 | ac_status=$? | |
6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6613 | (exit $ac_status); }; }; then | |
b4e70030 | 6614 | ac_cv_search_opendir="none required" |
d28f9cdf | 6615 | else |
bec39cab AC |
6616 | echo "$as_me: failed program was:" >&5 |
6617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6618 | ||
d28f9cdf | 6619 | fi |
bec39cab | 6620 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6621 | conftest$ac_exeext conftest.$ac_ext |
6622 | if test "$ac_cv_search_opendir" = no; then | |
6623 | for ac_lib in x; do | |
6624 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6625 | cat >conftest.$ac_ext <<_ACEOF | |
6626 | /* confdefs.h. */ | |
6627 | _ACEOF | |
6628 | cat confdefs.h >>conftest.$ac_ext | |
6629 | cat >>conftest.$ac_ext <<_ACEOF | |
6630 | /* end confdefs.h. */ | |
6631 | ||
6632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6633 | #ifdef __cplusplus | |
6634 | extern "C" | |
6635 | #endif | |
6636 | /* We use char because int might match the return type of a gcc2 | |
6637 | builtin and then its argument prototype would still apply. */ | |
6638 | char opendir (); | |
6639 | int | |
6640 | main () | |
6641 | { | |
6642 | opendir (); | |
6643 | ; | |
6644 | return 0; | |
6645 | } | |
6646 | _ACEOF | |
6647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6649 | (eval $ac_link) 2>conftest.er1 | |
6650 | ac_status=$? | |
6651 | grep -v '^ *+' conftest.er1 >conftest.err | |
6652 | rm -f conftest.er1 | |
6653 | cat conftest.err >&5 | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); } && | |
6656 | { ac_try='test -z "$ac_c_werror_flag" | |
6657 | || test ! -s conftest.err' | |
6658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6659 | (eval $ac_try) 2>&5 | |
6660 | ac_status=$? | |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6662 | (exit $ac_status); }; } && | |
6663 | { ac_try='test -s conftest$ac_exeext' | |
6664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6665 | (eval $ac_try) 2>&5 | |
6666 | ac_status=$? | |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); }; }; then | |
6669 | ac_cv_search_opendir="-l$ac_lib" | |
6670 | break | |
4e8d927d | 6671 | else |
b4e70030 JB |
6672 | echo "$as_me: failed program was:" >&5 |
6673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6674 | ||
6675 | fi | |
6676 | rm -f conftest.err conftest.$ac_objext \ | |
6677 | conftest$ac_exeext conftest.$ac_ext | |
6678 | done | |
bec39cab AC |
6679 | fi |
6680 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 6681 | fi |
b4e70030 JB |
6682 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6683 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6684 | if test "$ac_cv_search_opendir" != no; then | |
6685 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 6686 | |
d28f9cdf DJ |
6687 | fi |
6688 | ||
bec39cab | 6689 | fi |
b0b1c2c0 | 6690 | |
b4e70030 JB |
6691 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
6692 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
6693 | if test "${ac_cv_header_stat_broken+set}" = set; then |
6694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 6695 | else |
bec39cab AC |
6696 | cat >conftest.$ac_ext <<_ACEOF |
6697 | /* confdefs.h. */ | |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
6702 | #include <sys/types.h> | |
6703 | #include <sys/stat.h> | |
b0b1c2c0 | 6704 | |
b4e70030 | 6705 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
6706 | # if S_ISBLK (S_IFDIR) |
6707 | You lose. | |
6708 | # endif | |
6709 | #endif | |
b0b1c2c0 | 6710 | |
b4e70030 | 6711 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
6712 | # if S_ISBLK (S_IFCHR) |
6713 | You lose. | |
6714 | # endif | |
6715 | #endif | |
d28f9cdf | 6716 | |
b4e70030 | 6717 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
6718 | # if S_ISLNK (S_IFREG) |
6719 | You lose. | |
6720 | # endif | |
6721 | #endif | |
d28f9cdf | 6722 | |
b4e70030 | 6723 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
6724 | # if S_ISSOCK (S_IFREG) |
6725 | You lose. | |
6726 | # endif | |
6727 | #endif | |
6728 | ||
6729 | _ACEOF | |
6730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6731 | $EGREP "You lose" >/dev/null 2>&1; then | |
6732 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 6733 | else |
bec39cab | 6734 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
6735 | fi |
6736 | rm -f conftest* | |
d28f9cdf | 6737 | |
d28f9cdf | 6738 | fi |
b4e70030 JB |
6739 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
6740 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 6741 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 6742 | |
bec39cab AC |
6743 | cat >>confdefs.h <<\_ACEOF |
6744 | #define STAT_MACROS_BROKEN 1 | |
6745 | _ACEOF | |
8bb2c122 | 6746 | |
7a292a7a | 6747 | fi |
bec39cab | 6748 | |
b4e70030 JB |
6749 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6750 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
6751 | if test "${ac_cv_header_stdc+set}" = set; then |
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 6753 | else |
bec39cab AC |
6754 | cat >conftest.$ac_ext <<_ACEOF |
6755 | /* confdefs.h. */ | |
6756 | _ACEOF | |
6757 | cat confdefs.h >>conftest.$ac_ext | |
6758 | cat >>conftest.$ac_ext <<_ACEOF | |
6759 | /* end confdefs.h. */ | |
6760 | #include <stdlib.h> | |
6761 | #include <stdarg.h> | |
6762 | #include <string.h> | |
6763 | #include <float.h> | |
7a292a7a | 6764 | |
bec39cab AC |
6765 | int |
6766 | main () | |
6767 | { | |
7a292a7a | 6768 | |
bec39cab AC |
6769 | ; |
6770 | return 0; | |
6771 | } | |
6772 | _ACEOF | |
6773 | rm -f conftest.$ac_objext | |
6774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6775 | (eval $ac_compile) 2>conftest.er1 | |
6776 | ac_status=$? | |
6777 | grep -v '^ *+' conftest.er1 >conftest.err | |
6778 | rm -f conftest.er1 | |
6779 | cat conftest.err >&5 | |
6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6781 | (exit $ac_status); } && | |
b4e70030 JB |
6782 | { ac_try='test -z "$ac_c_werror_flag" |
6783 | || test ! -s conftest.err' | |
bec39cab AC |
6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6785 | (eval $ac_try) 2>&5 | |
6786 | ac_status=$? | |
6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6788 | (exit $ac_status); }; } && | |
6789 | { ac_try='test -s conftest.$ac_objext' | |
6790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6791 | (eval $ac_try) 2>&5 | |
6792 | ac_status=$? | |
6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6794 | (exit $ac_status); }; }; then | |
6795 | ac_cv_header_stdc=yes | |
c906108c | 6796 | else |
bec39cab AC |
6797 | echo "$as_me: failed program was:" >&5 |
6798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 6799 | |
b4e70030 | 6800 | ac_cv_header_stdc=no |
c906108c | 6801 | fi |
bec39cab | 6802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6803 | |
bec39cab AC |
6804 | if test $ac_cv_header_stdc = yes; then |
6805 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6806 | cat >conftest.$ac_ext <<_ACEOF | |
6807 | /* confdefs.h. */ | |
6808 | _ACEOF | |
6809 | cat confdefs.h >>conftest.$ac_ext | |
6810 | cat >>conftest.$ac_ext <<_ACEOF | |
6811 | /* end confdefs.h. */ | |
6812 | #include <string.h> | |
c906108c | 6813 | |
bec39cab AC |
6814 | _ACEOF |
6815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6816 | $EGREP "memchr" >/dev/null 2>&1; then | |
6817 | : | |
8bb2c122 | 6818 | else |
bec39cab | 6819 | ac_cv_header_stdc=no |
8bb2c122 | 6820 | fi |
bec39cab AC |
6821 | rm -f conftest* |
6822 | ||
c906108c SS |
6823 | fi |
6824 | ||
bec39cab AC |
6825 | if test $ac_cv_header_stdc = yes; then |
6826 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6827 | cat >conftest.$ac_ext <<_ACEOF | |
6828 | /* confdefs.h. */ | |
6829 | _ACEOF | |
6830 | cat confdefs.h >>conftest.$ac_ext | |
6831 | cat >>conftest.$ac_ext <<_ACEOF | |
6832 | /* end confdefs.h. */ | |
6833 | #include <stdlib.h> | |
6834 | ||
6835 | _ACEOF | |
6836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6837 | $EGREP "free" >/dev/null 2>&1; then | |
6838 | : | |
c906108c | 6839 | else |
bec39cab | 6840 | ac_cv_header_stdc=no |
c906108c | 6841 | fi |
bec39cab AC |
6842 | rm -f conftest* |
6843 | ||
c906108c SS |
6844 | fi |
6845 | ||
bec39cab AC |
6846 | if test $ac_cv_header_stdc = yes; then |
6847 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6848 | if test "$cross_compiling" = yes; then | |
6849 | : | |
c906108c | 6850 | else |
bec39cab AC |
6851 | cat >conftest.$ac_ext <<_ACEOF |
6852 | /* confdefs.h. */ | |
6853 | _ACEOF | |
6854 | cat confdefs.h >>conftest.$ac_ext | |
6855 | cat >>conftest.$ac_ext <<_ACEOF | |
6856 | /* end confdefs.h. */ | |
6857 | #include <ctype.h> | |
6858 | #if ((' ' & 0x0FF) == 0x020) | |
6859 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6860 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6861 | #else | |
6862 | # define ISLOWER(c) \ | |
6863 | (('a' <= (c) && (c) <= 'i') \ | |
6864 | || ('j' <= (c) && (c) <= 'r') \ | |
6865 | || ('s' <= (c) && (c) <= 'z')) | |
6866 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6867 | #endif | |
6868 | ||
6869 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6870 | int | |
6871 | main () | |
6872 | { | |
6873 | int i; | |
6874 | for (i = 0; i < 256; i++) | |
6875 | if (XOR (islower (i), ISLOWER (i)) | |
6876 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
6877 | exit(2); |
6878 | exit (0); | |
bec39cab AC |
6879 | } |
6880 | _ACEOF | |
6881 | rm -f conftest$ac_exeext | |
6882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6883 | (eval $ac_link) 2>&5 | |
6884 | ac_status=$? | |
6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6888 | (eval $ac_try) 2>&5 | |
6889 | ac_status=$? | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); }; }; then | |
6892 | : | |
6893 | else | |
6894 | echo "$as_me: program exited with status $ac_status" >&5 | |
6895 | echo "$as_me: failed program was:" >&5 | |
6896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6897 | ||
6898 | ( exit $ac_status ) | |
6899 | ac_cv_header_stdc=no | |
c906108c | 6900 | fi |
b4e70030 | 6901 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 6902 | fi |
c906108c | 6903 | fi |
bec39cab | 6904 | fi |
b4e70030 JB |
6905 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6906 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 6907 | if test $ac_cv_header_stdc = yes; then |
c906108c | 6908 | |
bec39cab AC |
6909 | cat >>confdefs.h <<\_ACEOF |
6910 | #define STDC_HEADERS 1 | |
6911 | _ACEOF | |
c906108c | 6912 | |
bec39cab | 6913 | fi |
8bb2c122 | 6914 | |
bec39cab | 6915 | |
7cb9022a | 6916 | for ac_header in nlist.h |
bec39cab AC |
6917 | do |
6918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
6919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6924 | fi | |
b4e70030 JB |
6925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6927 | else |
6928 | # Is the header compilable? | |
b4e70030 JB |
6929 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
6931 | cat >conftest.$ac_ext <<_ACEOF |
6932 | /* confdefs.h. */ | |
6933 | _ACEOF | |
6934 | cat confdefs.h >>conftest.$ac_ext | |
6935 | cat >>conftest.$ac_ext <<_ACEOF | |
6936 | /* end confdefs.h. */ | |
6937 | $ac_includes_default | |
6938 | #include <$ac_header> | |
6939 | _ACEOF | |
6940 | rm -f conftest.$ac_objext | |
6941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6942 | (eval $ac_compile) 2>conftest.er1 | |
6943 | ac_status=$? | |
6944 | grep -v '^ *+' conftest.er1 >conftest.err | |
6945 | rm -f conftest.er1 | |
6946 | cat conftest.err >&5 | |
6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6948 | (exit $ac_status); } && | |
b4e70030 JB |
6949 | { ac_try='test -z "$ac_c_werror_flag" |
6950 | || test ! -s conftest.err' | |
bec39cab AC |
6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6952 | (eval $ac_try) 2>&5 | |
6953 | ac_status=$? | |
6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6955 | (exit $ac_status); }; } && | |
6956 | { ac_try='test -s conftest.$ac_objext' | |
6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6958 | (eval $ac_try) 2>&5 | |
6959 | ac_status=$? | |
6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6961 | (exit $ac_status); }; }; then | |
6962 | ac_header_compiler=yes | |
6963 | else | |
6964 | echo "$as_me: failed program was:" >&5 | |
6965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6966 | ||
b4e70030 | 6967 | ac_header_compiler=no |
bec39cab AC |
6968 | fi |
6969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
6970 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6971 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
6972 | |
6973 | # Is the header present? | |
b4e70030 JB |
6974 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6975 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
6976 | cat >conftest.$ac_ext <<_ACEOF |
6977 | /* confdefs.h. */ | |
6978 | _ACEOF | |
6979 | cat confdefs.h >>conftest.$ac_ext | |
6980 | cat >>conftest.$ac_ext <<_ACEOF | |
6981 | /* end confdefs.h. */ | |
6982 | #include <$ac_header> | |
6983 | _ACEOF | |
6984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6986 | ac_status=$? | |
6987 | grep -v '^ *+' conftest.er1 >conftest.err | |
6988 | rm -f conftest.er1 | |
6989 | cat conftest.err >&5 | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); } >/dev/null; then | |
6992 | if test -s conftest.err; then | |
6993 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6995 | else | |
6996 | ac_cpp_err= | |
6997 | fi | |
c906108c | 6998 | else |
bec39cab | 6999 | ac_cpp_err=yes |
c906108c | 7000 | fi |
bec39cab AC |
7001 | if test -z "$ac_cpp_err"; then |
7002 | ac_header_preproc=yes | |
c906108c | 7003 | else |
bec39cab AC |
7004 | echo "$as_me: failed program was:" >&5 |
7005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7006 | |
bec39cab AC |
7007 | ac_header_preproc=no |
7008 | fi | |
7009 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7010 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7011 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7012 | |
bec39cab AC |
7013 | # So? What about this header? |
7014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7015 | yes:no: ) | |
7016 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7017 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7019 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7020 | ac_header_preproc=yes | |
7021 | ;; | |
7022 | no:yes:* ) | |
7023 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7024 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7025 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7026 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7027 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7028 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7029 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7030 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7032 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7033 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7034 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7035 | ( |
7036 | cat <<\_ASBOX | |
7037 | ## ------------------------------------------ ## | |
7038 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7039 | ## ------------------------------------------ ## | |
7040 | _ASBOX | |
7041 | ) | | |
7042 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7043 | ;; |
7044 | esac | |
b4e70030 JB |
7045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7049 | else |
bec39cab | 7050 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7051 | fi |
b4e70030 JB |
7052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7054 | |
95ca63c4 | 7055 | fi |
bec39cab AC |
7056 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7057 | cat >>confdefs.h <<_ACEOF | |
7058 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7059 | _ACEOF | |
7060 | ||
95ca63c4 CF |
7061 | fi |
7062 | ||
bec39cab | 7063 | done |
95ca63c4 CF |
7064 | |
7065 | ||
7cb9022a | 7066 | for ac_header in link.h |
bec39cab AC |
7067 | do |
7068 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7073 | else |
7cb9022a | 7074 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7075 | /* confdefs.h. */ |
7076 | _ACEOF | |
7077 | cat confdefs.h >>conftest.$ac_ext | |
7078 | cat >>conftest.$ac_ext <<_ACEOF | |
7079 | /* end confdefs.h. */ | |
7cb9022a MK |
7080 | #if HAVE_SYS_TYPES_H |
7081 | # include <sys/types.h> | |
7082 | #endif | |
7083 | #if HAVE_NLIST_H | |
7084 | # include <nlist.h> | |
7085 | #endif | |
7086 | ||
7087 | ||
bec39cab AC |
7088 | #include <$ac_header> |
7089 | _ACEOF | |
7090 | rm -f conftest.$ac_objext | |
7091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7092 | (eval $ac_compile) 2>conftest.er1 | |
7093 | ac_status=$? | |
7094 | grep -v '^ *+' conftest.er1 >conftest.err | |
7095 | rm -f conftest.er1 | |
7096 | cat conftest.err >&5 | |
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7098 | (exit $ac_status); } && | |
b4e70030 JB |
7099 | { ac_try='test -z "$ac_c_werror_flag" |
7100 | || test ! -s conftest.err' | |
bec39cab AC |
7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7102 | (eval $ac_try) 2>&5 | |
7103 | ac_status=$? | |
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7105 | (exit $ac_status); }; } && | |
7106 | { ac_try='test -s conftest.$ac_objext' | |
7107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7108 | (eval $ac_try) 2>&5 | |
7109 | ac_status=$? | |
7110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7111 | (exit $ac_status); }; }; then | |
7cb9022a | 7112 | eval "$as_ac_Header=yes" |
bec39cab AC |
7113 | else |
7114 | echo "$as_me: failed program was:" >&5 | |
7115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7116 | ||
b4e70030 | 7117 | eval "$as_ac_Header=no" |
bec39cab AC |
7118 | fi |
7119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7120 | fi |
b4e70030 JB |
7121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7123 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7124 | cat >>confdefs.h <<_ACEOF | |
7125 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7126 | _ACEOF | |
95ca63c4 | 7127 | |
bec39cab | 7128 | fi |
95ca63c4 | 7129 | |
bec39cab | 7130 | done |
95ca63c4 | 7131 | |
c906108c | 7132 | |
7cb9022a | 7133 | for ac_header in machine/reg.h |
bec39cab AC |
7134 | do |
7135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7141 | fi | |
b4e70030 JB |
7142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7143 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7144 | else |
7145 | # Is the header compilable? | |
b4e70030 JB |
7146 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7148 | cat >conftest.$ac_ext <<_ACEOF |
7149 | /* confdefs.h. */ | |
7150 | _ACEOF | |
7151 | cat confdefs.h >>conftest.$ac_ext | |
7152 | cat >>conftest.$ac_ext <<_ACEOF | |
7153 | /* end confdefs.h. */ | |
7154 | $ac_includes_default | |
7155 | #include <$ac_header> | |
7156 | _ACEOF | |
7157 | rm -f conftest.$ac_objext | |
7158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7159 | (eval $ac_compile) 2>conftest.er1 | |
7160 | ac_status=$? | |
7161 | grep -v '^ *+' conftest.er1 >conftest.err | |
7162 | rm -f conftest.er1 | |
7163 | cat conftest.err >&5 | |
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7165 | (exit $ac_status); } && | |
b4e70030 JB |
7166 | { ac_try='test -z "$ac_c_werror_flag" |
7167 | || test ! -s conftest.err' | |
bec39cab AC |
7168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7169 | (eval $ac_try) 2>&5 | |
7170 | ac_status=$? | |
7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7172 | (exit $ac_status); }; } && | |
7173 | { ac_try='test -s conftest.$ac_objext' | |
7174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7175 | (eval $ac_try) 2>&5 | |
7176 | ac_status=$? | |
7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7178 | (exit $ac_status); }; }; then | |
7179 | ac_header_compiler=yes | |
7180 | else | |
7181 | echo "$as_me: failed program was:" >&5 | |
7182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7183 | ||
b4e70030 | 7184 | ac_header_compiler=no |
bec39cab AC |
7185 | fi |
7186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7188 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7189 | |
7190 | # Is the header present? | |
b4e70030 JB |
7191 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7193 | cat >conftest.$ac_ext <<_ACEOF |
7194 | /* confdefs.h. */ | |
7195 | _ACEOF | |
7196 | cat confdefs.h >>conftest.$ac_ext | |
7197 | cat >>conftest.$ac_ext <<_ACEOF | |
7198 | /* end confdefs.h. */ | |
7199 | #include <$ac_header> | |
7200 | _ACEOF | |
7201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7203 | ac_status=$? | |
7204 | grep -v '^ *+' conftest.er1 >conftest.err | |
7205 | rm -f conftest.er1 | |
7206 | cat conftest.err >&5 | |
7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7208 | (exit $ac_status); } >/dev/null; then | |
7209 | if test -s conftest.err; then | |
7210 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7211 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7212 | else | |
7213 | ac_cpp_err= | |
7214 | fi | |
75c6e08a | 7215 | else |
bec39cab | 7216 | ac_cpp_err=yes |
75c6e08a | 7217 | fi |
bec39cab AC |
7218 | if test -z "$ac_cpp_err"; then |
7219 | ac_header_preproc=yes | |
7220 | else | |
7221 | echo "$as_me: failed program was:" >&5 | |
7222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7223 | ||
7224 | ac_header_preproc=no | |
75c6e08a | 7225 | fi |
bec39cab | 7226 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7228 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7229 | |
7230 | # So? What about this header? | |
7231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7232 | yes:no: ) | |
7233 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7234 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7236 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7237 | ac_header_preproc=yes | |
7238 | ;; | |
7239 | no:yes:* ) | |
7240 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7241 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7242 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7243 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7244 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7245 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7246 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7247 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7249 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7250 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7251 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7252 | ( |
7253 | cat <<\_ASBOX | |
7254 | ## ------------------------------------------ ## | |
7255 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7256 | ## ------------------------------------------ ## | |
7257 | _ASBOX | |
7258 | ) | | |
7259 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7260 | ;; |
7261 | esac | |
b4e70030 JB |
7262 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7266 | else |
bec39cab AC |
7267 | eval "$as_ac_Header=\$ac_header_preproc" |
7268 | fi | |
b4e70030 JB |
7269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7270 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7271 | |
75c6e08a | 7272 | fi |
bec39cab AC |
7273 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7274 | cat >>confdefs.h <<_ACEOF | |
7275 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7276 | _ACEOF | |
75c6e08a | 7277 | |
bec39cab | 7278 | fi |
75c6e08a | 7279 | |
bec39cab | 7280 | done |
75c6e08a MK |
7281 | |
7282 | ||
9a156167 | 7283 | |
bec39cab AC |
7284 | for ac_header in poll.h sys/poll.h |
7285 | do | |
7286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7288 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7289 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7292 | fi | |
b4e70030 JB |
7293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7295 | else |
7296 | # Is the header compilable? | |
b4e70030 JB |
7297 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7298 | echo $ECHO_N "checking $ac_header usability... $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 | $ac_includes_default | |
7306 | #include <$ac_header> | |
7307 | _ACEOF | |
7308 | rm -f conftest.$ac_objext | |
7309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7310 | (eval $ac_compile) 2>conftest.er1 | |
7311 | ac_status=$? | |
7312 | grep -v '^ *+' conftest.er1 >conftest.err | |
7313 | rm -f conftest.er1 | |
7314 | cat conftest.err >&5 | |
7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7316 | (exit $ac_status); } && | |
b4e70030 JB |
7317 | { ac_try='test -z "$ac_c_werror_flag" |
7318 | || test ! -s conftest.err' | |
bec39cab AC |
7319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7320 | (eval $ac_try) 2>&5 | |
7321 | ac_status=$? | |
7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7323 | (exit $ac_status); }; } && | |
7324 | { ac_try='test -s conftest.$ac_objext' | |
7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7326 | (eval $ac_try) 2>&5 | |
7327 | ac_status=$? | |
7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7329 | (exit $ac_status); }; }; then | |
7330 | ac_header_compiler=yes | |
7331 | else | |
7332 | echo "$as_me: failed program was:" >&5 | |
7333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7334 | ||
b4e70030 | 7335 | ac_header_compiler=no |
bec39cab AC |
7336 | fi |
7337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7338 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7339 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7340 | |
7341 | # Is the header present? | |
b4e70030 JB |
7342 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7343 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7344 | cat >conftest.$ac_ext <<_ACEOF |
7345 | /* confdefs.h. */ | |
7346 | _ACEOF | |
7347 | cat confdefs.h >>conftest.$ac_ext | |
7348 | cat >>conftest.$ac_ext <<_ACEOF | |
7349 | /* end confdefs.h. */ | |
7350 | #include <$ac_header> | |
7351 | _ACEOF | |
7352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7354 | ac_status=$? | |
7355 | grep -v '^ *+' conftest.er1 >conftest.err | |
7356 | rm -f conftest.er1 | |
7357 | cat conftest.err >&5 | |
7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7359 | (exit $ac_status); } >/dev/null; then | |
7360 | if test -s conftest.err; then | |
7361 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7363 | else | |
7364 | ac_cpp_err= | |
7365 | fi | |
9a156167 | 7366 | else |
bec39cab | 7367 | ac_cpp_err=yes |
9a156167 | 7368 | fi |
bec39cab AC |
7369 | if test -z "$ac_cpp_err"; then |
7370 | ac_header_preproc=yes | |
7371 | else | |
7372 | echo "$as_me: failed program was:" >&5 | |
7373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7374 | |
bec39cab | 7375 | ac_header_preproc=no |
9a156167 | 7376 | fi |
bec39cab | 7377 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7378 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7379 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7380 | |
bec39cab AC |
7381 | # So? What about this header? |
7382 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7383 | yes:no: ) | |
7384 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7385 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7387 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7388 | ac_header_preproc=yes | |
7389 | ;; | |
7390 | no:yes:* ) | |
7391 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7392 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7393 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7394 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7395 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7396 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7397 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7398 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7399 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7400 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7401 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7402 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7403 | ( |
7404 | cat <<\_ASBOX | |
7405 | ## ------------------------------------------ ## | |
7406 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7407 | ## ------------------------------------------ ## | |
7408 | _ASBOX | |
7409 | ) | | |
7410 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7411 | ;; |
7412 | esac | |
b4e70030 JB |
7413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7417 | else |
bec39cab | 7418 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7419 | fi |
b4e70030 JB |
7420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7422 | |
bec39cab AC |
7423 | fi |
7424 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7425 | cat >>confdefs.h <<_ACEOF | |
7426 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7427 | _ACEOF | |
9a156167 | 7428 | |
bec39cab | 7429 | fi |
9a156167 | 7430 | |
bec39cab | 7431 | done |
9a156167 | 7432 | |
9a156167 | 7433 | |
9a156167 | 7434 | |
bec39cab AC |
7435 | |
7436 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7437 | do | |
7438 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7439 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7440 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7444 | fi | |
b4e70030 JB |
7445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7446 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7447 | else |
7448 | # Is the header compilable? | |
b4e70030 JB |
7449 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7450 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7451 | cat >conftest.$ac_ext <<_ACEOF |
7452 | /* confdefs.h. */ | |
7453 | _ACEOF | |
7454 | cat confdefs.h >>conftest.$ac_ext | |
7455 | cat >>conftest.$ac_ext <<_ACEOF | |
7456 | /* end confdefs.h. */ | |
7457 | $ac_includes_default | |
7458 | #include <$ac_header> | |
7459 | _ACEOF | |
7460 | rm -f conftest.$ac_objext | |
7461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7462 | (eval $ac_compile) 2>conftest.er1 | |
7463 | ac_status=$? | |
7464 | grep -v '^ *+' conftest.er1 >conftest.err | |
7465 | rm -f conftest.er1 | |
7466 | cat conftest.err >&5 | |
7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7468 | (exit $ac_status); } && | |
b4e70030 JB |
7469 | { ac_try='test -z "$ac_c_werror_flag" |
7470 | || test ! -s conftest.err' | |
bec39cab AC |
7471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7472 | (eval $ac_try) 2>&5 | |
7473 | ac_status=$? | |
7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7475 | (exit $ac_status); }; } && | |
7476 | { ac_try='test -s conftest.$ac_objext' | |
7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7478 | (eval $ac_try) 2>&5 | |
7479 | ac_status=$? | |
7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7481 | (exit $ac_status); }; }; then | |
7482 | ac_header_compiler=yes | |
7483 | else | |
7484 | echo "$as_me: failed program was:" >&5 | |
7485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7486 | ||
b4e70030 | 7487 | ac_header_compiler=no |
bec39cab AC |
7488 | fi |
7489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7490 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7491 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7492 | |
7493 | # Is the header present? | |
b4e70030 JB |
7494 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7495 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7496 | cat >conftest.$ac_ext <<_ACEOF |
7497 | /* confdefs.h. */ | |
7498 | _ACEOF | |
7499 | cat confdefs.h >>conftest.$ac_ext | |
7500 | cat >>conftest.$ac_ext <<_ACEOF | |
7501 | /* end confdefs.h. */ | |
7502 | #include <$ac_header> | |
7503 | _ACEOF | |
7504 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7505 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7506 | ac_status=$? | |
7507 | grep -v '^ *+' conftest.er1 >conftest.err | |
7508 | rm -f conftest.er1 | |
7509 | cat conftest.err >&5 | |
7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7511 | (exit $ac_status); } >/dev/null; then | |
7512 | if test -s conftest.err; then | |
7513 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7514 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7515 | else | |
7516 | ac_cpp_err= | |
7517 | fi | |
9a156167 | 7518 | else |
bec39cab | 7519 | ac_cpp_err=yes |
9a156167 | 7520 | fi |
bec39cab AC |
7521 | if test -z "$ac_cpp_err"; then |
7522 | ac_header_preproc=yes | |
7523 | else | |
7524 | echo "$as_me: failed program was:" >&5 | |
7525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7526 | |
bec39cab | 7527 | ac_header_preproc=no |
9a156167 | 7528 | fi |
bec39cab | 7529 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7530 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7531 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7532 | |
bec39cab AC |
7533 | # So? What about this header? |
7534 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7535 | yes:no: ) | |
7536 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7537 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7538 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7539 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7540 | ac_header_preproc=yes | |
7541 | ;; | |
7542 | no:yes:* ) | |
7543 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7544 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7545 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7546 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7547 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7548 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7549 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7550 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7552 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7553 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7554 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7555 | ( |
7556 | cat <<\_ASBOX | |
7557 | ## ------------------------------------------ ## | |
7558 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7559 | ## ------------------------------------------ ## | |
7560 | _ASBOX | |
7561 | ) | | |
7562 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7563 | ;; |
7564 | esac | |
b4e70030 JB |
7565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7569 | else |
bec39cab | 7570 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7571 | fi |
b4e70030 JB |
7572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7573 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
7574 | |
7575 | fi | |
bec39cab AC |
7576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7577 | cat >>confdefs.h <<_ACEOF | |
7578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7579 | _ACEOF | |
9a156167 | 7580 | |
bec39cab AC |
7581 | fi |
7582 | ||
7583 | done | |
9a156167 | 7584 | |
c890192f | 7585 | |
bec39cab AC |
7586 | for ac_header in stddef.h |
7587 | do | |
7588 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7590 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7592 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7594 | fi | |
b4e70030 JB |
7595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7597 | else |
7598 | # Is the header compilable? | |
b4e70030 JB |
7599 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7600 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7601 | cat >conftest.$ac_ext <<_ACEOF |
7602 | /* confdefs.h. */ | |
7603 | _ACEOF | |
7604 | cat confdefs.h >>conftest.$ac_ext | |
7605 | cat >>conftest.$ac_ext <<_ACEOF | |
7606 | /* end confdefs.h. */ | |
7607 | $ac_includes_default | |
7608 | #include <$ac_header> | |
7609 | _ACEOF | |
7610 | rm -f conftest.$ac_objext | |
7611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7612 | (eval $ac_compile) 2>conftest.er1 | |
7613 | ac_status=$? | |
7614 | grep -v '^ *+' conftest.er1 >conftest.err | |
7615 | rm -f conftest.er1 | |
7616 | cat conftest.err >&5 | |
7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7618 | (exit $ac_status); } && | |
b4e70030 JB |
7619 | { ac_try='test -z "$ac_c_werror_flag" |
7620 | || test ! -s conftest.err' | |
bec39cab AC |
7621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7622 | (eval $ac_try) 2>&5 | |
7623 | ac_status=$? | |
7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7625 | (exit $ac_status); }; } && | |
7626 | { ac_try='test -s conftest.$ac_objext' | |
7627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7628 | (eval $ac_try) 2>&5 | |
7629 | ac_status=$? | |
7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7631 | (exit $ac_status); }; }; then | |
7632 | ac_header_compiler=yes | |
7633 | else | |
7634 | echo "$as_me: failed program was:" >&5 | |
7635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7636 | ||
b4e70030 | 7637 | ac_header_compiler=no |
bec39cab AC |
7638 | fi |
7639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7640 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7641 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7642 | |
7643 | # Is the header present? | |
b4e70030 JB |
7644 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7645 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7646 | cat >conftest.$ac_ext <<_ACEOF |
7647 | /* confdefs.h. */ | |
7648 | _ACEOF | |
7649 | cat confdefs.h >>conftest.$ac_ext | |
7650 | cat >>conftest.$ac_ext <<_ACEOF | |
7651 | /* end confdefs.h. */ | |
7652 | #include <$ac_header> | |
7653 | _ACEOF | |
7654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7656 | ac_status=$? | |
7657 | grep -v '^ *+' conftest.er1 >conftest.err | |
7658 | rm -f conftest.er1 | |
7659 | cat conftest.err >&5 | |
7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7661 | (exit $ac_status); } >/dev/null; then | |
7662 | if test -s conftest.err; then | |
7663 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7665 | else | |
7666 | ac_cpp_err= | |
7667 | fi | |
c890192f | 7668 | else |
bec39cab AC |
7669 | ac_cpp_err=yes |
7670 | fi | |
7671 | if test -z "$ac_cpp_err"; then | |
7672 | ac_header_preproc=yes | |
c890192f | 7673 | else |
bec39cab AC |
7674 | echo "$as_me: failed program was:" >&5 |
7675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7676 | ||
7677 | ac_header_preproc=no | |
c890192f | 7678 | fi |
bec39cab | 7679 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7680 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7681 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7682 | |
7683 | # So? What about this header? | |
7684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7685 | yes:no: ) | |
7686 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7687 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7689 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7690 | ac_header_preproc=yes | |
7691 | ;; | |
7692 | no:yes:* ) | |
7693 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7694 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7695 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7696 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7697 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7698 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7699 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7700 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7703 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7704 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7705 | ( |
7706 | cat <<\_ASBOX | |
7707 | ## ------------------------------------------ ## | |
7708 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7709 | ## ------------------------------------------ ## | |
7710 | _ASBOX | |
7711 | ) | | |
7712 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7713 | ;; |
7714 | esac | |
b4e70030 JB |
7715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 7719 | else |
bec39cab | 7720 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 7721 | fi |
b4e70030 JB |
7722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7724 | |
c890192f | 7725 | fi |
bec39cab AC |
7726 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7727 | cat >>confdefs.h <<_ACEOF | |
7728 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7729 | _ACEOF | |
c890192f | 7730 | |
c890192f MK |
7731 | fi |
7732 | ||
bec39cab | 7733 | done |
9a156167 | 7734 | |
bec39cab AC |
7735 | |
7736 | for ac_header in stdlib.h | |
7737 | do | |
7738 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7744 | fi | |
b4e70030 JB |
7745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7747 | else |
7748 | # Is the header compilable? | |
b4e70030 JB |
7749 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7750 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7751 | cat >conftest.$ac_ext <<_ACEOF |
7752 | /* confdefs.h. */ | |
7753 | _ACEOF | |
7754 | cat confdefs.h >>conftest.$ac_ext | |
7755 | cat >>conftest.$ac_ext <<_ACEOF | |
7756 | /* end confdefs.h. */ | |
7757 | $ac_includes_default | |
7758 | #include <$ac_header> | |
7759 | _ACEOF | |
7760 | rm -f conftest.$ac_objext | |
7761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7762 | (eval $ac_compile) 2>conftest.er1 | |
7763 | ac_status=$? | |
7764 | grep -v '^ *+' conftest.er1 >conftest.err | |
7765 | rm -f conftest.er1 | |
7766 | cat conftest.err >&5 | |
7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7768 | (exit $ac_status); } && | |
b4e70030 JB |
7769 | { ac_try='test -z "$ac_c_werror_flag" |
7770 | || test ! -s conftest.err' | |
bec39cab AC |
7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7772 | (eval $ac_try) 2>&5 | |
7773 | ac_status=$? | |
7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7775 | (exit $ac_status); }; } && | |
7776 | { ac_try='test -s conftest.$ac_objext' | |
7777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7778 | (eval $ac_try) 2>&5 | |
7779 | ac_status=$? | |
7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7781 | (exit $ac_status); }; }; then | |
7782 | ac_header_compiler=yes | |
7783 | else | |
7784 | echo "$as_me: failed program was:" >&5 | |
7785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7786 | ||
b4e70030 | 7787 | ac_header_compiler=no |
bec39cab AC |
7788 | fi |
7789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7791 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7792 | |
7793 | # Is the header present? | |
b4e70030 JB |
7794 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7796 | cat >conftest.$ac_ext <<_ACEOF |
7797 | /* confdefs.h. */ | |
7798 | _ACEOF | |
7799 | cat confdefs.h >>conftest.$ac_ext | |
7800 | cat >>conftest.$ac_ext <<_ACEOF | |
7801 | /* end confdefs.h. */ | |
7802 | #include <$ac_header> | |
7803 | _ACEOF | |
7804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7806 | ac_status=$? | |
7807 | grep -v '^ *+' conftest.er1 >conftest.err | |
7808 | rm -f conftest.er1 | |
7809 | cat conftest.err >&5 | |
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7811 | (exit $ac_status); } >/dev/null; then | |
7812 | if test -s conftest.err; then | |
7813 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7814 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7815 | else | |
7816 | ac_cpp_err= | |
7817 | fi | |
9a156167 | 7818 | else |
bec39cab AC |
7819 | ac_cpp_err=yes |
7820 | fi | |
7821 | if test -z "$ac_cpp_err"; then | |
7822 | ac_header_preproc=yes | |
9a156167 | 7823 | else |
bec39cab AC |
7824 | echo "$as_me: failed program was:" >&5 |
7825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7826 | ||
7827 | ac_header_preproc=no | |
9a156167 | 7828 | fi |
bec39cab | 7829 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7831 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7832 | |
7833 | # So? What about this header? | |
7834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7835 | yes:no: ) | |
7836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7839 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7840 | ac_header_preproc=yes | |
7841 | ;; | |
7842 | no:yes:* ) | |
7843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7847 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7848 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7849 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7850 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7853 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7854 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7855 | ( |
7856 | cat <<\_ASBOX | |
7857 | ## ------------------------------------------ ## | |
7858 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7859 | ## ------------------------------------------ ## | |
7860 | _ASBOX | |
7861 | ) | | |
7862 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7863 | ;; |
7864 | esac | |
b4e70030 JB |
7865 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7869 | else |
bec39cab | 7870 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7871 | fi |
b4e70030 JB |
7872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7874 | |
9a156167 | 7875 | fi |
bec39cab AC |
7876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7877 | cat >>confdefs.h <<_ACEOF | |
7878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7879 | _ACEOF | |
9a156167 | 7880 | |
9a156167 MK |
7881 | fi |
7882 | ||
bec39cab AC |
7883 | done |
7884 | ||
06825bd1 | 7885 | |
bec39cab AC |
7886 | for ac_header in stdint.h |
7887 | do | |
7888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7890 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7894 | fi | |
b4e70030 JB |
7895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7897 | else |
7898 | # Is the header compilable? | |
b4e70030 JB |
7899 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7900 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7901 | cat >conftest.$ac_ext <<_ACEOF |
7902 | /* confdefs.h. */ | |
7903 | _ACEOF | |
7904 | cat confdefs.h >>conftest.$ac_ext | |
7905 | cat >>conftest.$ac_ext <<_ACEOF | |
7906 | /* end confdefs.h. */ | |
7907 | $ac_includes_default | |
7908 | #include <$ac_header> | |
7909 | _ACEOF | |
7910 | rm -f conftest.$ac_objext | |
7911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7912 | (eval $ac_compile) 2>conftest.er1 | |
7913 | ac_status=$? | |
7914 | grep -v '^ *+' conftest.er1 >conftest.err | |
7915 | rm -f conftest.er1 | |
7916 | cat conftest.err >&5 | |
7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7918 | (exit $ac_status); } && | |
b4e70030 JB |
7919 | { ac_try='test -z "$ac_c_werror_flag" |
7920 | || test ! -s conftest.err' | |
bec39cab AC |
7921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7922 | (eval $ac_try) 2>&5 | |
7923 | ac_status=$? | |
7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7925 | (exit $ac_status); }; } && | |
7926 | { ac_try='test -s conftest.$ac_objext' | |
7927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7928 | (eval $ac_try) 2>&5 | |
7929 | ac_status=$? | |
7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7931 | (exit $ac_status); }; }; then | |
7932 | ac_header_compiler=yes | |
7933 | else | |
7934 | echo "$as_me: failed program was:" >&5 | |
7935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7936 | ||
b4e70030 | 7937 | ac_header_compiler=no |
bec39cab AC |
7938 | fi |
7939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7940 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7941 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7942 | |
7943 | # Is the header present? | |
b4e70030 JB |
7944 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7945 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7946 | cat >conftest.$ac_ext <<_ACEOF |
7947 | /* confdefs.h. */ | |
7948 | _ACEOF | |
7949 | cat confdefs.h >>conftest.$ac_ext | |
7950 | cat >>conftest.$ac_ext <<_ACEOF | |
7951 | /* end confdefs.h. */ | |
7952 | #include <$ac_header> | |
7953 | _ACEOF | |
7954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7956 | ac_status=$? | |
7957 | grep -v '^ *+' conftest.er1 >conftest.err | |
7958 | rm -f conftest.er1 | |
7959 | cat conftest.err >&5 | |
7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7961 | (exit $ac_status); } >/dev/null; then | |
7962 | if test -s conftest.err; then | |
7963 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7965 | else | |
7966 | ac_cpp_err= | |
7967 | fi | |
06825bd1 | 7968 | else |
bec39cab AC |
7969 | ac_cpp_err=yes |
7970 | fi | |
7971 | if test -z "$ac_cpp_err"; then | |
7972 | ac_header_preproc=yes | |
06825bd1 | 7973 | else |
bec39cab AC |
7974 | echo "$as_me: failed program was:" >&5 |
7975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7976 | ||
7977 | ac_header_preproc=no | |
06825bd1 | 7978 | fi |
bec39cab | 7979 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7980 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7981 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7982 | |
7983 | # So? What about this header? | |
7984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7985 | yes:no: ) | |
7986 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7987 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7989 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7990 | ac_header_preproc=yes | |
7991 | ;; | |
7992 | no:yes:* ) | |
7993 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7994 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7995 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7996 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7997 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7998 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7999 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8000 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8001 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8002 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8003 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8004 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8005 | ( |
8006 | cat <<\_ASBOX | |
8007 | ## ------------------------------------------ ## | |
8008 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8009 | ## ------------------------------------------ ## | |
8010 | _ASBOX | |
8011 | ) | | |
8012 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8013 | ;; |
8014 | esac | |
b4e70030 JB |
8015 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8019 | else |
bec39cab | 8020 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8021 | fi |
b4e70030 JB |
8022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8024 | |
06825bd1 | 8025 | fi |
bec39cab AC |
8026 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8027 | cat >>confdefs.h <<_ACEOF | |
8028 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8029 | _ACEOF | |
06825bd1 | 8030 | |
06825bd1 | 8031 | fi |
4f0be353 | 8032 | |
bec39cab | 8033 | done |
4f0be353 | 8034 | |
06825bd1 | 8035 | |
06825bd1 | 8036 | |
bec39cab AC |
8037 | |
8038 | for ac_header in string.h memory.h strings.h | |
8039 | do | |
8040 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8046 | fi | |
b4e70030 JB |
8047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8049 | else |
8050 | # Is the header compilable? | |
b4e70030 JB |
8051 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8052 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8053 | cat >conftest.$ac_ext <<_ACEOF |
8054 | /* confdefs.h. */ | |
8055 | _ACEOF | |
8056 | cat confdefs.h >>conftest.$ac_ext | |
8057 | cat >>conftest.$ac_ext <<_ACEOF | |
8058 | /* end confdefs.h. */ | |
8059 | $ac_includes_default | |
8060 | #include <$ac_header> | |
8061 | _ACEOF | |
8062 | rm -f conftest.$ac_objext | |
8063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8064 | (eval $ac_compile) 2>conftest.er1 | |
8065 | ac_status=$? | |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8070 | (exit $ac_status); } && | |
b4e70030 JB |
8071 | { ac_try='test -z "$ac_c_werror_flag" |
8072 | || test ! -s conftest.err' | |
bec39cab AC |
8073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8074 | (eval $ac_try) 2>&5 | |
8075 | ac_status=$? | |
8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8077 | (exit $ac_status); }; } && | |
8078 | { ac_try='test -s conftest.$ac_objext' | |
8079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8080 | (eval $ac_try) 2>&5 | |
8081 | ac_status=$? | |
8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8083 | (exit $ac_status); }; }; then | |
8084 | ac_header_compiler=yes | |
8085 | else | |
8086 | echo "$as_me: failed program was:" >&5 | |
8087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8088 | ||
b4e70030 | 8089 | ac_header_compiler=no |
bec39cab AC |
8090 | fi |
8091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8093 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8094 | |
8095 | # Is the header present? | |
b4e70030 JB |
8096 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8097 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8098 | cat >conftest.$ac_ext <<_ACEOF |
8099 | /* confdefs.h. */ | |
8100 | _ACEOF | |
8101 | cat confdefs.h >>conftest.$ac_ext | |
8102 | cat >>conftest.$ac_ext <<_ACEOF | |
8103 | /* end confdefs.h. */ | |
8104 | #include <$ac_header> | |
8105 | _ACEOF | |
8106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8108 | ac_status=$? | |
8109 | grep -v '^ *+' conftest.er1 >conftest.err | |
8110 | rm -f conftest.er1 | |
8111 | cat conftest.err >&5 | |
8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8113 | (exit $ac_status); } >/dev/null; then | |
8114 | if test -s conftest.err; then | |
8115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8117 | else | |
8118 | ac_cpp_err= | |
8119 | fi | |
06825bd1 | 8120 | else |
bec39cab AC |
8121 | ac_cpp_err=yes |
8122 | fi | |
8123 | if test -z "$ac_cpp_err"; then | |
8124 | ac_header_preproc=yes | |
06825bd1 | 8125 | else |
bec39cab AC |
8126 | echo "$as_me: failed program was:" >&5 |
8127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8128 | ||
8129 | ac_header_preproc=no | |
06825bd1 | 8130 | fi |
bec39cab | 8131 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8133 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8134 | |
8135 | # So? What about this header? | |
8136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8137 | yes:no: ) | |
8138 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8139 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8141 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8142 | ac_header_preproc=yes | |
8143 | ;; | |
8144 | no:yes:* ) | |
8145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8149 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8150 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8151 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8152 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8155 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8156 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8157 | ( |
8158 | cat <<\_ASBOX | |
8159 | ## ------------------------------------------ ## | |
8160 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8161 | ## ------------------------------------------ ## | |
8162 | _ASBOX | |
8163 | ) | | |
8164 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8165 | ;; |
8166 | esac | |
b4e70030 JB |
8167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8171 | else | |
8172 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8173 | fi |
b4e70030 JB |
8174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8176 | |
06825bd1 | 8177 | fi |
bec39cab AC |
8178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8179 | cat >>confdefs.h <<_ACEOF | |
8180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8181 | _ACEOF | |
06825bd1 | 8182 | |
06825bd1 MK |
8183 | fi |
8184 | ||
bec39cab | 8185 | done |
5ee754fc | 8186 | |
bec39cab AC |
8187 | |
8188 | for ac_header in sys/fault.h | |
5ee754fc | 8189 | do |
bec39cab | 8190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8196 | fi | |
b4e70030 JB |
8197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8199 | else |
8200 | # Is the header compilable? | |
b4e70030 JB |
8201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8203 | cat >conftest.$ac_ext <<_ACEOF |
8204 | /* confdefs.h. */ | |
8205 | _ACEOF | |
8206 | cat confdefs.h >>conftest.$ac_ext | |
8207 | cat >>conftest.$ac_ext <<_ACEOF | |
8208 | /* end confdefs.h. */ | |
8209 | $ac_includes_default | |
8210 | #include <$ac_header> | |
8211 | _ACEOF | |
8212 | rm -f conftest.$ac_objext | |
8213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8214 | (eval $ac_compile) 2>conftest.er1 | |
8215 | ac_status=$? | |
8216 | grep -v '^ *+' conftest.er1 >conftest.err | |
8217 | rm -f conftest.er1 | |
8218 | cat conftest.err >&5 | |
8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8220 | (exit $ac_status); } && | |
b4e70030 JB |
8221 | { ac_try='test -z "$ac_c_werror_flag" |
8222 | || test ! -s conftest.err' | |
bec39cab AC |
8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8224 | (eval $ac_try) 2>&5 | |
8225 | ac_status=$? | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8227 | (exit $ac_status); }; } && | |
8228 | { ac_try='test -s conftest.$ac_objext' | |
8229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8230 | (eval $ac_try) 2>&5 | |
8231 | ac_status=$? | |
8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8233 | (exit $ac_status); }; }; then | |
8234 | ac_header_compiler=yes | |
8235 | else | |
8236 | echo "$as_me: failed program was:" >&5 | |
8237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8238 | ||
b4e70030 | 8239 | ac_header_compiler=no |
bec39cab AC |
8240 | fi |
8241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8242 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8243 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8244 | |
8245 | # Is the header present? | |
b4e70030 JB |
8246 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8248 | cat >conftest.$ac_ext <<_ACEOF |
8249 | /* confdefs.h. */ | |
8250 | _ACEOF | |
8251 | cat confdefs.h >>conftest.$ac_ext | |
8252 | cat >>conftest.$ac_ext <<_ACEOF | |
8253 | /* end confdefs.h. */ | |
8254 | #include <$ac_header> | |
8255 | _ACEOF | |
8256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8258 | ac_status=$? | |
8259 | grep -v '^ *+' conftest.er1 >conftest.err | |
8260 | rm -f conftest.er1 | |
8261 | cat conftest.err >&5 | |
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8263 | (exit $ac_status); } >/dev/null; then | |
8264 | if test -s conftest.err; then | |
8265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8267 | else | |
8268 | ac_cpp_err= | |
8269 | fi | |
5ee754fc | 8270 | else |
bec39cab | 8271 | ac_cpp_err=yes |
5ee754fc | 8272 | fi |
bec39cab AC |
8273 | if test -z "$ac_cpp_err"; then |
8274 | ac_header_preproc=yes | |
8275 | else | |
8276 | echo "$as_me: failed program was:" >&5 | |
8277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8278 | |
bec39cab | 8279 | ac_header_preproc=no |
5ee754fc | 8280 | fi |
bec39cab | 8281 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8282 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8283 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8284 | |
8285 | # So? What about this header? | |
8286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8287 | yes:no: ) | |
8288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8292 | ac_header_preproc=yes | |
8293 | ;; | |
8294 | no:yes:* ) | |
8295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8307 | ( |
8308 | cat <<\_ASBOX | |
8309 | ## ------------------------------------------ ## | |
8310 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8311 | ## ------------------------------------------ ## | |
8312 | _ASBOX | |
8313 | ) | | |
8314 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8315 | ;; |
8316 | esac | |
b4e70030 JB |
8317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8321 | else |
bec39cab | 8322 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8323 | fi |
b4e70030 JB |
8324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8326 | |
5ee754fc | 8327 | fi |
bec39cab AC |
8328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8329 | cat >>confdefs.h <<_ACEOF | |
8330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8331 | _ACEOF | |
c906108c | 8332 | |
5ee754fc | 8333 | fi |
bec39cab AC |
8334 | |
8335 | done | |
8336 | ||
8337 | ||
8338 | for ac_header in sys/file.h | |
8339 | do | |
8340 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8346 | fi | |
b4e70030 JB |
8347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8349 | else |
8350 | # Is the header compilable? | |
b4e70030 JB |
8351 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8353 | cat >conftest.$ac_ext <<_ACEOF |
8354 | /* confdefs.h. */ | |
8355 | _ACEOF | |
8356 | cat confdefs.h >>conftest.$ac_ext | |
8357 | cat >>conftest.$ac_ext <<_ACEOF | |
8358 | /* end confdefs.h. */ | |
8359 | $ac_includes_default | |
8360 | #include <$ac_header> | |
8361 | _ACEOF | |
8362 | rm -f conftest.$ac_objext | |
8363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8364 | (eval $ac_compile) 2>conftest.er1 | |
8365 | ac_status=$? | |
8366 | grep -v '^ *+' conftest.er1 >conftest.err | |
8367 | rm -f conftest.er1 | |
8368 | cat conftest.err >&5 | |
8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8370 | (exit $ac_status); } && | |
b4e70030 JB |
8371 | { ac_try='test -z "$ac_c_werror_flag" |
8372 | || test ! -s conftest.err' | |
bec39cab AC |
8373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8374 | (eval $ac_try) 2>&5 | |
8375 | ac_status=$? | |
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8377 | (exit $ac_status); }; } && | |
8378 | { ac_try='test -s conftest.$ac_objext' | |
8379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8380 | (eval $ac_try) 2>&5 | |
8381 | ac_status=$? | |
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8383 | (exit $ac_status); }; }; then | |
8384 | ac_header_compiler=yes | |
8385 | else | |
8386 | echo "$as_me: failed program was:" >&5 | |
8387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8388 | ||
b4e70030 | 8389 | ac_header_compiler=no |
bec39cab AC |
8390 | fi |
8391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8393 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8394 | |
8395 | # Is the header present? | |
b4e70030 JB |
8396 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8398 | cat >conftest.$ac_ext <<_ACEOF |
8399 | /* confdefs.h. */ | |
8400 | _ACEOF | |
8401 | cat confdefs.h >>conftest.$ac_ext | |
8402 | cat >>conftest.$ac_ext <<_ACEOF | |
8403 | /* end confdefs.h. */ | |
8404 | #include <$ac_header> | |
8405 | _ACEOF | |
8406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8408 | ac_status=$? | |
8409 | grep -v '^ *+' conftest.er1 >conftest.err | |
8410 | rm -f conftest.er1 | |
8411 | cat conftest.err >&5 | |
8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8413 | (exit $ac_status); } >/dev/null; then | |
8414 | if test -s conftest.err; then | |
8415 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8417 | else | |
8418 | ac_cpp_err= | |
8419 | fi | |
5ee754fc | 8420 | else |
bec39cab | 8421 | ac_cpp_err=yes |
5ee754fc | 8422 | fi |
bec39cab AC |
8423 | if test -z "$ac_cpp_err"; then |
8424 | ac_header_preproc=yes | |
8425 | else | |
8426 | echo "$as_me: failed program was:" >&5 | |
8427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8428 | |
bec39cab | 8429 | ac_header_preproc=no |
5ee754fc | 8430 | fi |
bec39cab | 8431 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8433 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8434 | |
bec39cab AC |
8435 | # So? What about this header? |
8436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8437 | yes:no: ) | |
8438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8442 | ac_header_preproc=yes | |
8443 | ;; | |
8444 | no:yes:* ) | |
8445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8457 | ( |
8458 | cat <<\_ASBOX | |
8459 | ## ------------------------------------------ ## | |
8460 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8461 | ## ------------------------------------------ ## | |
8462 | _ASBOX | |
8463 | ) | | |
8464 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8465 | ;; |
8466 | esac | |
b4e70030 JB |
8467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8471 | else |
bec39cab AC |
8472 | eval "$as_ac_Header=\$ac_header_preproc" |
8473 | fi | |
b4e70030 JB |
8474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8476 | |
bec39cab AC |
8477 | fi |
8478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8479 | cat >>confdefs.h <<_ACEOF | |
8480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8481 | _ACEOF | |
5ee754fc | 8482 | |
bec39cab | 8483 | fi |
5ee754fc | 8484 | |
bec39cab | 8485 | done |
5ee754fc | 8486 | |
5ee754fc | 8487 | |
bec39cab AC |
8488 | for ac_header in sys/filio.h |
8489 | do | |
8490 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8496 | fi | |
b4e70030 JB |
8497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8499 | else |
8500 | # Is the header compilable? | |
b4e70030 JB |
8501 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8502 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8503 | cat >conftest.$ac_ext <<_ACEOF |
8504 | /* confdefs.h. */ | |
8505 | _ACEOF | |
8506 | cat confdefs.h >>conftest.$ac_ext | |
8507 | cat >>conftest.$ac_ext <<_ACEOF | |
8508 | /* end confdefs.h. */ | |
8509 | $ac_includes_default | |
8510 | #include <$ac_header> | |
8511 | _ACEOF | |
8512 | rm -f conftest.$ac_objext | |
8513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8514 | (eval $ac_compile) 2>conftest.er1 | |
8515 | ac_status=$? | |
8516 | grep -v '^ *+' conftest.er1 >conftest.err | |
8517 | rm -f conftest.er1 | |
8518 | cat conftest.err >&5 | |
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8520 | (exit $ac_status); } && | |
b4e70030 JB |
8521 | { ac_try='test -z "$ac_c_werror_flag" |
8522 | || test ! -s conftest.err' | |
bec39cab AC |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8524 | (eval $ac_try) 2>&5 | |
8525 | ac_status=$? | |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 | (exit $ac_status); }; } && | |
8528 | { ac_try='test -s conftest.$ac_objext' | |
8529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8530 | (eval $ac_try) 2>&5 | |
8531 | ac_status=$? | |
8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8533 | (exit $ac_status); }; }; then | |
8534 | ac_header_compiler=yes | |
8535 | else | |
8536 | echo "$as_me: failed program was:" >&5 | |
8537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8538 | ||
b4e70030 | 8539 | ac_header_compiler=no |
bec39cab AC |
8540 | fi |
8541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8542 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8543 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8544 | |
8545 | # Is the header present? | |
b4e70030 JB |
8546 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8547 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8548 | cat >conftest.$ac_ext <<_ACEOF |
8549 | /* confdefs.h. */ | |
8550 | _ACEOF | |
8551 | cat confdefs.h >>conftest.$ac_ext | |
8552 | cat >>conftest.$ac_ext <<_ACEOF | |
8553 | /* end confdefs.h. */ | |
8554 | #include <$ac_header> | |
8555 | _ACEOF | |
8556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8558 | ac_status=$? | |
8559 | grep -v '^ *+' conftest.er1 >conftest.err | |
8560 | rm -f conftest.er1 | |
8561 | cat conftest.err >&5 | |
8562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8563 | (exit $ac_status); } >/dev/null; then | |
8564 | if test -s conftest.err; then | |
8565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8567 | else | |
8568 | ac_cpp_err= | |
8569 | fi | |
5ee754fc | 8570 | else |
bec39cab | 8571 | ac_cpp_err=yes |
5ee754fc | 8572 | fi |
bec39cab AC |
8573 | if test -z "$ac_cpp_err"; then |
8574 | ac_header_preproc=yes | |
8575 | else | |
8576 | echo "$as_me: failed program was:" >&5 | |
8577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8578 | |
bec39cab | 8579 | ac_header_preproc=no |
5ee754fc | 8580 | fi |
bec39cab | 8581 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8583 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8584 | |
bec39cab AC |
8585 | # So? What about this header? |
8586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8587 | yes:no: ) | |
8588 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8589 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8591 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8592 | ac_header_preproc=yes | |
8593 | ;; | |
8594 | no:yes:* ) | |
8595 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8596 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8597 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8598 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8599 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8600 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8601 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8602 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8604 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8605 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8606 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8607 | ( |
8608 | cat <<\_ASBOX | |
8609 | ## ------------------------------------------ ## | |
8610 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8611 | ## ------------------------------------------ ## | |
8612 | _ASBOX | |
8613 | ) | | |
8614 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8615 | ;; |
8616 | esac | |
b4e70030 JB |
8617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8621 | else |
bec39cab | 8622 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8623 | fi |
b4e70030 JB |
8624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8626 | |
5ee754fc | 8627 | fi |
bec39cab AC |
8628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8629 | cat >>confdefs.h <<_ACEOF | |
8630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8631 | _ACEOF | |
5ee754fc MK |
8632 | |
8633 | fi | |
8634 | ||
bec39cab AC |
8635 | done |
8636 | ||
8637 | ||
8638 | for ac_header in sys/ioctl.h | |
8639 | do | |
8640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8646 | fi | |
b4e70030 JB |
8647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8649 | else |
8650 | # Is the header compilable? | |
b4e70030 JB |
8651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8653 | cat >conftest.$ac_ext <<_ACEOF |
8654 | /* confdefs.h. */ | |
8655 | _ACEOF | |
8656 | cat confdefs.h >>conftest.$ac_ext | |
8657 | cat >>conftest.$ac_ext <<_ACEOF | |
8658 | /* end confdefs.h. */ | |
8659 | $ac_includes_default | |
8660 | #include <$ac_header> | |
8661 | _ACEOF | |
8662 | rm -f conftest.$ac_objext | |
8663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8664 | (eval $ac_compile) 2>conftest.er1 | |
8665 | ac_status=$? | |
8666 | grep -v '^ *+' conftest.er1 >conftest.err | |
8667 | rm -f conftest.er1 | |
8668 | cat conftest.err >&5 | |
8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8670 | (exit $ac_status); } && | |
b4e70030 JB |
8671 | { ac_try='test -z "$ac_c_werror_flag" |
8672 | || test ! -s conftest.err' | |
bec39cab AC |
8673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8674 | (eval $ac_try) 2>&5 | |
8675 | ac_status=$? | |
8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8677 | (exit $ac_status); }; } && | |
8678 | { ac_try='test -s conftest.$ac_objext' | |
8679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8680 | (eval $ac_try) 2>&5 | |
8681 | ac_status=$? | |
8682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8683 | (exit $ac_status); }; }; then | |
8684 | ac_header_compiler=yes | |
8685 | else | |
8686 | echo "$as_me: failed program was:" >&5 | |
8687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8688 | ||
b4e70030 | 8689 | ac_header_compiler=no |
bec39cab AC |
8690 | fi |
8691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8694 | |
8695 | # Is the header present? | |
b4e70030 JB |
8696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8698 | cat >conftest.$ac_ext <<_ACEOF |
8699 | /* confdefs.h. */ | |
8700 | _ACEOF | |
8701 | cat confdefs.h >>conftest.$ac_ext | |
8702 | cat >>conftest.$ac_ext <<_ACEOF | |
8703 | /* end confdefs.h. */ | |
8704 | #include <$ac_header> | |
8705 | _ACEOF | |
8706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8708 | ac_status=$? | |
8709 | grep -v '^ *+' conftest.er1 >conftest.err | |
8710 | rm -f conftest.er1 | |
8711 | cat conftest.err >&5 | |
8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8713 | (exit $ac_status); } >/dev/null; then | |
8714 | if test -s conftest.err; then | |
8715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8717 | else | |
8718 | ac_cpp_err= | |
8719 | fi | |
5ee754fc | 8720 | else |
bec39cab | 8721 | ac_cpp_err=yes |
5ee754fc | 8722 | fi |
bec39cab AC |
8723 | if test -z "$ac_cpp_err"; then |
8724 | ac_header_preproc=yes | |
8725 | else | |
8726 | echo "$as_me: failed program was:" >&5 | |
8727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8728 | |
bec39cab | 8729 | ac_header_preproc=no |
5ee754fc | 8730 | fi |
bec39cab | 8731 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8734 | |
bec39cab AC |
8735 | # So? What about this header? |
8736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8737 | yes:no: ) | |
8738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8742 | ac_header_preproc=yes | |
8743 | ;; | |
8744 | no:yes:* ) | |
8745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8757 | ( |
8758 | cat <<\_ASBOX | |
8759 | ## ------------------------------------------ ## | |
8760 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8761 | ## ------------------------------------------ ## | |
8762 | _ASBOX | |
8763 | ) | | |
8764 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8765 | ;; |
8766 | esac | |
b4e70030 JB |
8767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8771 | else |
bec39cab | 8772 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8773 | fi |
b4e70030 JB |
8774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
8776 | |
8777 | fi | |
bec39cab AC |
8778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8779 | cat >>confdefs.h <<_ACEOF | |
8780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8781 | _ACEOF | |
8782 | ||
5ee754fc MK |
8783 | fi |
8784 | ||
bec39cab | 8785 | done |
5ee754fc | 8786 | |
5ee754fc | 8787 | |
bec39cab | 8788 | for ac_header in sys/param.h |
5ee754fc | 8789 | do |
bec39cab | 8790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8796 | fi | |
b4e70030 JB |
8797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8799 | else |
8800 | # Is the header compilable? | |
b4e70030 JB |
8801 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8803 | cat >conftest.$ac_ext <<_ACEOF |
8804 | /* confdefs.h. */ | |
8805 | _ACEOF | |
8806 | cat confdefs.h >>conftest.$ac_ext | |
8807 | cat >>conftest.$ac_ext <<_ACEOF | |
8808 | /* end confdefs.h. */ | |
8809 | $ac_includes_default | |
8810 | #include <$ac_header> | |
8811 | _ACEOF | |
8812 | rm -f conftest.$ac_objext | |
8813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8814 | (eval $ac_compile) 2>conftest.er1 | |
8815 | ac_status=$? | |
8816 | grep -v '^ *+' conftest.er1 >conftest.err | |
8817 | rm -f conftest.er1 | |
8818 | cat conftest.err >&5 | |
8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8820 | (exit $ac_status); } && | |
b4e70030 JB |
8821 | { ac_try='test -z "$ac_c_werror_flag" |
8822 | || test ! -s conftest.err' | |
bec39cab AC |
8823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8824 | (eval $ac_try) 2>&5 | |
8825 | ac_status=$? | |
8826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8827 | (exit $ac_status); }; } && | |
8828 | { ac_try='test -s conftest.$ac_objext' | |
8829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8830 | (eval $ac_try) 2>&5 | |
8831 | ac_status=$? | |
8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8833 | (exit $ac_status); }; }; then | |
8834 | ac_header_compiler=yes | |
8835 | else | |
8836 | echo "$as_me: failed program was:" >&5 | |
8837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8838 | ||
b4e70030 | 8839 | ac_header_compiler=no |
bec39cab AC |
8840 | fi |
8841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8843 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8844 | |
8845 | # Is the header present? | |
b4e70030 JB |
8846 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8848 | cat >conftest.$ac_ext <<_ACEOF |
8849 | /* confdefs.h. */ | |
8850 | _ACEOF | |
8851 | cat confdefs.h >>conftest.$ac_ext | |
8852 | cat >>conftest.$ac_ext <<_ACEOF | |
8853 | /* end confdefs.h. */ | |
8854 | #include <$ac_header> | |
8855 | _ACEOF | |
8856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8858 | ac_status=$? | |
8859 | grep -v '^ *+' conftest.er1 >conftest.err | |
8860 | rm -f conftest.er1 | |
8861 | cat conftest.err >&5 | |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 | (exit $ac_status); } >/dev/null; then | |
8864 | if test -s conftest.err; then | |
8865 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8866 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8867 | else | |
8868 | ac_cpp_err= | |
8869 | fi | |
5ee754fc | 8870 | else |
bec39cab | 8871 | ac_cpp_err=yes |
5ee754fc | 8872 | fi |
bec39cab AC |
8873 | if test -z "$ac_cpp_err"; then |
8874 | ac_header_preproc=yes | |
8875 | else | |
8876 | echo "$as_me: failed program was:" >&5 | |
8877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8878 | |
bec39cab | 8879 | ac_header_preproc=no |
5ee754fc | 8880 | fi |
bec39cab | 8881 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8882 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8883 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8884 | |
8885 | # So? What about this header? | |
8886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8887 | yes:no: ) | |
8888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8892 | ac_header_preproc=yes | |
8893 | ;; | |
8894 | no:yes:* ) | |
8895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8906 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8907 | ( |
8908 | cat <<\_ASBOX | |
8909 | ## ------------------------------------------ ## | |
8910 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8911 | ## ------------------------------------------ ## | |
8912 | _ASBOX | |
8913 | ) | | |
8914 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8915 | ;; |
8916 | esac | |
b4e70030 JB |
8917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8921 | else |
bec39cab | 8922 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8923 | fi |
b4e70030 JB |
8924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8926 | |
5ee754fc | 8927 | fi |
bec39cab AC |
8928 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8929 | cat >>confdefs.h <<_ACEOF | |
8930 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8931 | _ACEOF | |
8932 | ||
5ee754fc | 8933 | fi |
bec39cab | 8934 | |
5ee754fc MK |
8935 | done |
8936 | ||
bec39cab AC |
8937 | |
8938 | for ac_header in sys/proc.h | |
5ee754fc | 8939 | do |
bec39cab | 8940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 8945 | else |
7cb9022a | 8946 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
8947 | /* confdefs.h. */ |
8948 | _ACEOF | |
8949 | cat confdefs.h >>conftest.$ac_ext | |
8950 | cat >>conftest.$ac_ext <<_ACEOF | |
8951 | /* end confdefs.h. */ | |
7cb9022a MK |
8952 | #if HAVE_SYS_PARAM_H |
8953 | # include <sys/param.h> | |
8954 | #endif | |
8955 | ||
8956 | ||
bec39cab AC |
8957 | #include <$ac_header> |
8958 | _ACEOF | |
8959 | rm -f conftest.$ac_objext | |
8960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8961 | (eval $ac_compile) 2>conftest.er1 | |
8962 | ac_status=$? | |
8963 | grep -v '^ *+' conftest.er1 >conftest.err | |
8964 | rm -f conftest.er1 | |
8965 | cat conftest.err >&5 | |
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8967 | (exit $ac_status); } && | |
b4e70030 JB |
8968 | { ac_try='test -z "$ac_c_werror_flag" |
8969 | || test ! -s conftest.err' | |
bec39cab AC |
8970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8971 | (eval $ac_try) 2>&5 | |
8972 | ac_status=$? | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); }; } && | |
8975 | { ac_try='test -s conftest.$ac_objext' | |
8976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8977 | (eval $ac_try) 2>&5 | |
8978 | ac_status=$? | |
8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8980 | (exit $ac_status); }; }; then | |
7cb9022a | 8981 | eval "$as_ac_Header=yes" |
bec39cab AC |
8982 | else |
8983 | echo "$as_me: failed program was:" >&5 | |
8984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8985 | ||
b4e70030 | 8986 | eval "$as_ac_Header=no" |
bec39cab AC |
8987 | fi |
8988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 8989 | fi |
b4e70030 JB |
8990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8992 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8993 | cat >>confdefs.h <<_ACEOF | |
8994 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8995 | _ACEOF | |
8996 | ||
5ee754fc | 8997 | fi |
bec39cab | 8998 | |
5ee754fc MK |
8999 | done |
9000 | ||
bec39cab AC |
9001 | |
9002 | for ac_header in sys/procfs.h | |
5ee754fc | 9003 | do |
bec39cab | 9004 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9010 | fi | |
b4e70030 JB |
9011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9013 | else |
9014 | # Is the header compilable? | |
b4e70030 JB |
9015 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9016 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9017 | cat >conftest.$ac_ext <<_ACEOF |
9018 | /* confdefs.h. */ | |
9019 | _ACEOF | |
9020 | cat confdefs.h >>conftest.$ac_ext | |
9021 | cat >>conftest.$ac_ext <<_ACEOF | |
9022 | /* end confdefs.h. */ | |
9023 | $ac_includes_default | |
9024 | #include <$ac_header> | |
9025 | _ACEOF | |
9026 | rm -f conftest.$ac_objext | |
9027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9028 | (eval $ac_compile) 2>conftest.er1 | |
9029 | ac_status=$? | |
9030 | grep -v '^ *+' conftest.er1 >conftest.err | |
9031 | rm -f conftest.er1 | |
9032 | cat conftest.err >&5 | |
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9034 | (exit $ac_status); } && | |
b4e70030 JB |
9035 | { ac_try='test -z "$ac_c_werror_flag" |
9036 | || test ! -s conftest.err' | |
bec39cab AC |
9037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9038 | (eval $ac_try) 2>&5 | |
9039 | ac_status=$? | |
9040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9041 | (exit $ac_status); }; } && | |
9042 | { ac_try='test -s conftest.$ac_objext' | |
9043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9044 | (eval $ac_try) 2>&5 | |
9045 | ac_status=$? | |
9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9047 | (exit $ac_status); }; }; then | |
9048 | ac_header_compiler=yes | |
9049 | else | |
9050 | echo "$as_me: failed program was:" >&5 | |
9051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9052 | ||
b4e70030 | 9053 | ac_header_compiler=no |
bec39cab AC |
9054 | fi |
9055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9056 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9057 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9058 | |
9059 | # Is the header present? | |
b4e70030 JB |
9060 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9061 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9062 | cat >conftest.$ac_ext <<_ACEOF |
9063 | /* confdefs.h. */ | |
9064 | _ACEOF | |
9065 | cat confdefs.h >>conftest.$ac_ext | |
9066 | cat >>conftest.$ac_ext <<_ACEOF | |
9067 | /* end confdefs.h. */ | |
9068 | #include <$ac_header> | |
9069 | _ACEOF | |
9070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9072 | ac_status=$? | |
9073 | grep -v '^ *+' conftest.er1 >conftest.err | |
9074 | rm -f conftest.er1 | |
9075 | cat conftest.err >&5 | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); } >/dev/null; then | |
9078 | if test -s conftest.err; then | |
9079 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9081 | else | |
9082 | ac_cpp_err= | |
9083 | fi | |
9084 | else | |
9085 | ac_cpp_err=yes | |
5ee754fc | 9086 | fi |
bec39cab AC |
9087 | if test -z "$ac_cpp_err"; then |
9088 | ac_header_preproc=yes | |
5ee754fc | 9089 | else |
bec39cab AC |
9090 | echo "$as_me: failed program was:" >&5 |
9091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9092 | ||
9093 | ac_header_preproc=no | |
5ee754fc | 9094 | fi |
bec39cab | 9095 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9096 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9097 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9098 | |
bec39cab AC |
9099 | # So? What about this header? |
9100 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9101 | yes:no: ) | |
9102 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9103 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9104 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9105 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9106 | ac_header_preproc=yes | |
9107 | ;; | |
9108 | no:yes:* ) | |
9109 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9110 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9111 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9112 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9113 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9114 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9115 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9116 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9118 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9119 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9120 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9121 | ( |
9122 | cat <<\_ASBOX | |
9123 | ## ------------------------------------------ ## | |
9124 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9125 | ## ------------------------------------------ ## | |
9126 | _ASBOX | |
9127 | ) | | |
9128 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9129 | ;; |
9130 | esac | |
b4e70030 JB |
9131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9135 | else | |
9136 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9137 | fi |
b4e70030 JB |
9138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9139 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9140 | |
5ee754fc | 9141 | fi |
bec39cab AC |
9142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9143 | cat >>confdefs.h <<_ACEOF | |
9144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9145 | _ACEOF | |
9146 | ||
5ee754fc | 9147 | fi |
bec39cab | 9148 | |
5ee754fc MK |
9149 | done |
9150 | ||
bec39cab AC |
9151 | |
9152 | ||
9153 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9154 | do |
bec39cab | 9155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9157 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9161 | fi | |
b4e70030 JB |
9162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9164 | else |
9165 | # Is the header compilable? | |
b4e70030 JB |
9166 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9167 | echo $ECHO_N "checking $ac_header usability... $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 | $ac_includes_default | |
9175 | #include <$ac_header> | |
9176 | _ACEOF | |
9177 | rm -f conftest.$ac_objext | |
9178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9179 | (eval $ac_compile) 2>conftest.er1 | |
9180 | ac_status=$? | |
9181 | grep -v '^ *+' conftest.er1 >conftest.err | |
9182 | rm -f conftest.er1 | |
9183 | cat conftest.err >&5 | |
9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9185 | (exit $ac_status); } && | |
b4e70030 JB |
9186 | { ac_try='test -z "$ac_c_werror_flag" |
9187 | || test ! -s conftest.err' | |
bec39cab AC |
9188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9189 | (eval $ac_try) 2>&5 | |
9190 | ac_status=$? | |
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9192 | (exit $ac_status); }; } && | |
9193 | { ac_try='test -s conftest.$ac_objext' | |
9194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9195 | (eval $ac_try) 2>&5 | |
9196 | ac_status=$? | |
9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9198 | (exit $ac_status); }; }; then | |
9199 | ac_header_compiler=yes | |
9200 | else | |
9201 | echo "$as_me: failed program was:" >&5 | |
9202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9203 | ||
b4e70030 | 9204 | ac_header_compiler=no |
bec39cab AC |
9205 | fi |
9206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9207 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9208 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9209 | |
9210 | # Is the header present? | |
b4e70030 JB |
9211 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9213 | cat >conftest.$ac_ext <<_ACEOF |
9214 | /* confdefs.h. */ | |
9215 | _ACEOF | |
9216 | cat confdefs.h >>conftest.$ac_ext | |
9217 | cat >>conftest.$ac_ext <<_ACEOF | |
9218 | /* end confdefs.h. */ | |
9219 | #include <$ac_header> | |
9220 | _ACEOF | |
9221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9223 | ac_status=$? | |
9224 | grep -v '^ *+' conftest.er1 >conftest.err | |
9225 | rm -f conftest.er1 | |
9226 | cat conftest.err >&5 | |
9227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9228 | (exit $ac_status); } >/dev/null; then | |
9229 | if test -s conftest.err; then | |
9230 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9231 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9232 | else | |
9233 | ac_cpp_err= | |
9234 | fi | |
9235 | else | |
9236 | ac_cpp_err=yes | |
5ee754fc | 9237 | fi |
bec39cab AC |
9238 | if test -z "$ac_cpp_err"; then |
9239 | ac_header_preproc=yes | |
5ee754fc | 9240 | else |
bec39cab AC |
9241 | echo "$as_me: failed program was:" >&5 |
9242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9243 | ||
9244 | ac_header_preproc=no | |
5ee754fc | 9245 | fi |
bec39cab | 9246 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9248 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9249 | |
bec39cab AC |
9250 | # So? What about this header? |
9251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9252 | yes:no: ) | |
9253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9257 | ac_header_preproc=yes | |
9258 | ;; | |
9259 | no:yes:* ) | |
9260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9272 | ( |
9273 | cat <<\_ASBOX | |
9274 | ## ------------------------------------------ ## | |
9275 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9276 | ## ------------------------------------------ ## | |
9277 | _ASBOX | |
9278 | ) | | |
9279 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9280 | ;; |
9281 | esac | |
b4e70030 JB |
9282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9286 | else | |
9287 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9288 | fi |
b4e70030 JB |
9289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9291 | |
5ee754fc | 9292 | fi |
bec39cab AC |
9293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9294 | cat >>confdefs.h <<_ACEOF | |
9295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9296 | _ACEOF | |
9297 | ||
5ee754fc | 9298 | fi |
bec39cab | 9299 | |
5ee754fc MK |
9300 | done |
9301 | ||
bec39cab AC |
9302 | |
9303 | ||
9304 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9305 | do |
bec39cab | 9306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | fi | |
b4e70030 JB |
9313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9315 | else |
9316 | # Is the header compilable? | |
b4e70030 JB |
9317 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9318 | echo $ECHO_N "checking $ac_header usability... $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 | $ac_includes_default | |
9326 | #include <$ac_header> | |
9327 | _ACEOF | |
9328 | rm -f conftest.$ac_objext | |
9329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9330 | (eval $ac_compile) 2>conftest.er1 | |
9331 | ac_status=$? | |
9332 | grep -v '^ *+' conftest.er1 >conftest.err | |
9333 | rm -f conftest.er1 | |
9334 | cat conftest.err >&5 | |
9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9336 | (exit $ac_status); } && | |
b4e70030 JB |
9337 | { ac_try='test -z "$ac_c_werror_flag" |
9338 | || test ! -s conftest.err' | |
bec39cab AC |
9339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9340 | (eval $ac_try) 2>&5 | |
9341 | ac_status=$? | |
9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9343 | (exit $ac_status); }; } && | |
9344 | { ac_try='test -s conftest.$ac_objext' | |
9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9346 | (eval $ac_try) 2>&5 | |
9347 | ac_status=$? | |
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9349 | (exit $ac_status); }; }; then | |
9350 | ac_header_compiler=yes | |
9351 | else | |
9352 | echo "$as_me: failed program was:" >&5 | |
9353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9354 | ||
b4e70030 | 9355 | ac_header_compiler=no |
bec39cab AC |
9356 | fi |
9357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9359 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9360 | |
9361 | # Is the header present? | |
b4e70030 JB |
9362 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9363 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9364 | cat >conftest.$ac_ext <<_ACEOF |
9365 | /* confdefs.h. */ | |
9366 | _ACEOF | |
9367 | cat confdefs.h >>conftest.$ac_ext | |
9368 | cat >>conftest.$ac_ext <<_ACEOF | |
9369 | /* end confdefs.h. */ | |
9370 | #include <$ac_header> | |
9371 | _ACEOF | |
9372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9374 | ac_status=$? | |
9375 | grep -v '^ *+' conftest.er1 >conftest.err | |
9376 | rm -f conftest.er1 | |
9377 | cat conftest.err >&5 | |
9378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9379 | (exit $ac_status); } >/dev/null; then | |
9380 | if test -s conftest.err; then | |
9381 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9383 | else | |
9384 | ac_cpp_err= | |
9385 | fi | |
9386 | else | |
9387 | ac_cpp_err=yes | |
5ee754fc | 9388 | fi |
bec39cab AC |
9389 | if test -z "$ac_cpp_err"; then |
9390 | ac_header_preproc=yes | |
5ee754fc | 9391 | else |
bec39cab AC |
9392 | echo "$as_me: failed program was:" >&5 |
9393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9394 | ||
9395 | ac_header_preproc=no | |
5ee754fc | 9396 | fi |
bec39cab | 9397 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9399 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9400 | |
bec39cab AC |
9401 | # So? What about this header? |
9402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9403 | yes:no: ) | |
9404 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9405 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9407 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9408 | ac_header_preproc=yes | |
9409 | ;; | |
9410 | no:yes:* ) | |
9411 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9412 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9413 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9414 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9415 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9416 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9417 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9418 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9421 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9422 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9423 | ( |
9424 | cat <<\_ASBOX | |
9425 | ## ------------------------------------------ ## | |
9426 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9427 | ## ------------------------------------------ ## | |
9428 | _ASBOX | |
9429 | ) | | |
9430 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9431 | ;; |
9432 | esac | |
b4e70030 JB |
9433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9437 | else | |
9438 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9439 | fi |
b4e70030 JB |
9440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9442 | |
5ee754fc | 9443 | fi |
bec39cab AC |
9444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9445 | cat >>confdefs.h <<_ACEOF | |
9446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9447 | _ACEOF | |
9448 | ||
5ee754fc | 9449 | fi |
bec39cab | 9450 | |
5ee754fc MK |
9451 | done |
9452 | ||
bec39cab AC |
9453 | |
9454 | for ac_header in sys/select.h | |
5ee754fc | 9455 | do |
bec39cab | 9456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9462 | fi | |
b4e70030 JB |
9463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9465 | else |
9466 | # Is the header compilable? | |
b4e70030 JB |
9467 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9468 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9469 | cat >conftest.$ac_ext <<_ACEOF |
9470 | /* confdefs.h. */ | |
9471 | _ACEOF | |
9472 | cat confdefs.h >>conftest.$ac_ext | |
9473 | cat >>conftest.$ac_ext <<_ACEOF | |
9474 | /* end confdefs.h. */ | |
9475 | $ac_includes_default | |
9476 | #include <$ac_header> | |
9477 | _ACEOF | |
9478 | rm -f conftest.$ac_objext | |
9479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9480 | (eval $ac_compile) 2>conftest.er1 | |
9481 | ac_status=$? | |
9482 | grep -v '^ *+' conftest.er1 >conftest.err | |
9483 | rm -f conftest.er1 | |
9484 | cat conftest.err >&5 | |
9485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9486 | (exit $ac_status); } && | |
b4e70030 JB |
9487 | { ac_try='test -z "$ac_c_werror_flag" |
9488 | || test ! -s conftest.err' | |
bec39cab AC |
9489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9490 | (eval $ac_try) 2>&5 | |
9491 | ac_status=$? | |
9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9493 | (exit $ac_status); }; } && | |
9494 | { ac_try='test -s conftest.$ac_objext' | |
9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9496 | (eval $ac_try) 2>&5 | |
9497 | ac_status=$? | |
9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9499 | (exit $ac_status); }; }; then | |
9500 | ac_header_compiler=yes | |
9501 | else | |
9502 | echo "$as_me: failed program was:" >&5 | |
9503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9504 | ||
b4e70030 | 9505 | ac_header_compiler=no |
bec39cab AC |
9506 | fi |
9507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9509 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9510 | |
9511 | # Is the header present? | |
b4e70030 JB |
9512 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9513 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9514 | cat >conftest.$ac_ext <<_ACEOF |
9515 | /* confdefs.h. */ | |
9516 | _ACEOF | |
9517 | cat confdefs.h >>conftest.$ac_ext | |
9518 | cat >>conftest.$ac_ext <<_ACEOF | |
9519 | /* end confdefs.h. */ | |
9520 | #include <$ac_header> | |
9521 | _ACEOF | |
9522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9524 | ac_status=$? | |
9525 | grep -v '^ *+' conftest.er1 >conftest.err | |
9526 | rm -f conftest.er1 | |
9527 | cat conftest.err >&5 | |
9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9529 | (exit $ac_status); } >/dev/null; then | |
9530 | if test -s conftest.err; then | |
9531 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9532 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9533 | else | |
9534 | ac_cpp_err= | |
9535 | fi | |
9536 | else | |
9537 | ac_cpp_err=yes | |
5ee754fc | 9538 | fi |
bec39cab AC |
9539 | if test -z "$ac_cpp_err"; then |
9540 | ac_header_preproc=yes | |
5ee754fc | 9541 | else |
bec39cab AC |
9542 | echo "$as_me: failed program was:" >&5 |
9543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9544 | ||
9545 | ac_header_preproc=no | |
5ee754fc | 9546 | fi |
bec39cab | 9547 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9549 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9550 | |
bec39cab AC |
9551 | # So? What about this header? |
9552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9553 | yes:no: ) | |
9554 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9555 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9558 | ac_header_preproc=yes | |
9559 | ;; | |
9560 | no:yes:* ) | |
9561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9565 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9567 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9568 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9571 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9572 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9573 | ( |
9574 | cat <<\_ASBOX | |
9575 | ## ------------------------------------------ ## | |
9576 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9577 | ## ------------------------------------------ ## | |
9578 | _ASBOX | |
9579 | ) | | |
9580 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9581 | ;; |
9582 | esac | |
b4e70030 JB |
9583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9587 | else | |
9588 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9589 | fi |
b4e70030 JB |
9590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9592 | |
5ee754fc | 9593 | fi |
bec39cab AC |
9594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9595 | cat >>confdefs.h <<_ACEOF | |
9596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9597 | _ACEOF | |
9598 | ||
5ee754fc | 9599 | fi |
bec39cab | 9600 | |
5ee754fc MK |
9601 | done |
9602 | ||
bec39cab AC |
9603 | |
9604 | for ac_header in sys/syscall.h | |
5ee754fc | 9605 | do |
bec39cab | 9606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9612 | fi | |
b4e70030 JB |
9613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9614 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9615 | else |
9616 | # Is the header compilable? | |
b4e70030 JB |
9617 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9619 | cat >conftest.$ac_ext <<_ACEOF |
9620 | /* confdefs.h. */ | |
9621 | _ACEOF | |
9622 | cat confdefs.h >>conftest.$ac_ext | |
9623 | cat >>conftest.$ac_ext <<_ACEOF | |
9624 | /* end confdefs.h. */ | |
9625 | $ac_includes_default | |
9626 | #include <$ac_header> | |
9627 | _ACEOF | |
9628 | rm -f conftest.$ac_objext | |
9629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9630 | (eval $ac_compile) 2>conftest.er1 | |
9631 | ac_status=$? | |
9632 | grep -v '^ *+' conftest.er1 >conftest.err | |
9633 | rm -f conftest.er1 | |
9634 | cat conftest.err >&5 | |
9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9636 | (exit $ac_status); } && | |
b4e70030 JB |
9637 | { ac_try='test -z "$ac_c_werror_flag" |
9638 | || test ! -s conftest.err' | |
bec39cab AC |
9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9640 | (eval $ac_try) 2>&5 | |
9641 | ac_status=$? | |
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9643 | (exit $ac_status); }; } && | |
9644 | { ac_try='test -s conftest.$ac_objext' | |
9645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9646 | (eval $ac_try) 2>&5 | |
9647 | ac_status=$? | |
9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9649 | (exit $ac_status); }; }; then | |
9650 | ac_header_compiler=yes | |
9651 | else | |
9652 | echo "$as_me: failed program was:" >&5 | |
9653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9654 | ||
b4e70030 | 9655 | ac_header_compiler=no |
bec39cab AC |
9656 | fi |
9657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9658 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9659 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9660 | |
9661 | # Is the header present? | |
b4e70030 JB |
9662 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9663 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9664 | cat >conftest.$ac_ext <<_ACEOF |
9665 | /* confdefs.h. */ | |
9666 | _ACEOF | |
9667 | cat confdefs.h >>conftest.$ac_ext | |
9668 | cat >>conftest.$ac_ext <<_ACEOF | |
9669 | /* end confdefs.h. */ | |
9670 | #include <$ac_header> | |
9671 | _ACEOF | |
9672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9674 | ac_status=$? | |
9675 | grep -v '^ *+' conftest.er1 >conftest.err | |
9676 | rm -f conftest.er1 | |
9677 | cat conftest.err >&5 | |
9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9679 | (exit $ac_status); } >/dev/null; then | |
9680 | if test -s conftest.err; then | |
9681 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9683 | else | |
9684 | ac_cpp_err= | |
9685 | fi | |
9686 | else | |
9687 | ac_cpp_err=yes | |
5ee754fc | 9688 | fi |
bec39cab AC |
9689 | if test -z "$ac_cpp_err"; then |
9690 | ac_header_preproc=yes | |
5ee754fc | 9691 | else |
bec39cab AC |
9692 | echo "$as_me: failed program was:" >&5 |
9693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9694 | ||
9695 | ac_header_preproc=no | |
5ee754fc | 9696 | fi |
bec39cab | 9697 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9699 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9700 | |
bec39cab AC |
9701 | # So? What about this header? |
9702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9703 | yes:no: ) | |
9704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9708 | ac_header_preproc=yes | |
9709 | ;; | |
9710 | no:yes:* ) | |
9711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9723 | ( |
9724 | cat <<\_ASBOX | |
9725 | ## ------------------------------------------ ## | |
9726 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9727 | ## ------------------------------------------ ## | |
9728 | _ASBOX | |
9729 | ) | | |
9730 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9731 | ;; |
9732 | esac | |
b4e70030 JB |
9733 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9737 | else | |
9738 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9739 | fi |
b4e70030 JB |
9740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9742 | |
5ee754fc | 9743 | fi |
bec39cab AC |
9744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9745 | cat >>confdefs.h <<_ACEOF | |
9746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9747 | _ACEOF | |
9748 | ||
5ee754fc | 9749 | fi |
bec39cab | 9750 | |
5ee754fc MK |
9751 | done |
9752 | ||
bec39cab AC |
9753 | |
9754 | for ac_header in sys/types.h | |
5ee754fc | 9755 | do |
bec39cab | 9756 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9762 | fi | |
b4e70030 JB |
9763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9764 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9765 | else |
9766 | # Is the header compilable? | |
b4e70030 JB |
9767 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9768 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9769 | cat >conftest.$ac_ext <<_ACEOF |
9770 | /* confdefs.h. */ | |
9771 | _ACEOF | |
9772 | cat confdefs.h >>conftest.$ac_ext | |
9773 | cat >>conftest.$ac_ext <<_ACEOF | |
9774 | /* end confdefs.h. */ | |
9775 | $ac_includes_default | |
9776 | #include <$ac_header> | |
9777 | _ACEOF | |
9778 | rm -f conftest.$ac_objext | |
9779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9780 | (eval $ac_compile) 2>conftest.er1 | |
9781 | ac_status=$? | |
9782 | grep -v '^ *+' conftest.er1 >conftest.err | |
9783 | rm -f conftest.er1 | |
9784 | cat conftest.err >&5 | |
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9786 | (exit $ac_status); } && | |
b4e70030 JB |
9787 | { ac_try='test -z "$ac_c_werror_flag" |
9788 | || test ! -s conftest.err' | |
bec39cab AC |
9789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9790 | (eval $ac_try) 2>&5 | |
9791 | ac_status=$? | |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9793 | (exit $ac_status); }; } && | |
9794 | { ac_try='test -s conftest.$ac_objext' | |
9795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9796 | (eval $ac_try) 2>&5 | |
9797 | ac_status=$? | |
9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9799 | (exit $ac_status); }; }; then | |
9800 | ac_header_compiler=yes | |
9801 | else | |
9802 | echo "$as_me: failed program was:" >&5 | |
9803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9804 | ||
b4e70030 | 9805 | ac_header_compiler=no |
bec39cab AC |
9806 | fi |
9807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9808 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9809 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9810 | |
9811 | # Is the header present? | |
b4e70030 JB |
9812 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9813 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9814 | cat >conftest.$ac_ext <<_ACEOF |
9815 | /* confdefs.h. */ | |
9816 | _ACEOF | |
9817 | cat confdefs.h >>conftest.$ac_ext | |
9818 | cat >>conftest.$ac_ext <<_ACEOF | |
9819 | /* end confdefs.h. */ | |
9820 | #include <$ac_header> | |
9821 | _ACEOF | |
9822 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9823 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9824 | ac_status=$? | |
9825 | grep -v '^ *+' conftest.er1 >conftest.err | |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9829 | (exit $ac_status); } >/dev/null; then | |
9830 | if test -s conftest.err; then | |
9831 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9832 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9833 | else | |
9834 | ac_cpp_err= | |
9835 | fi | |
9836 | else | |
9837 | ac_cpp_err=yes | |
5ee754fc | 9838 | fi |
bec39cab AC |
9839 | if test -z "$ac_cpp_err"; then |
9840 | ac_header_preproc=yes | |
5ee754fc | 9841 | else |
bec39cab AC |
9842 | echo "$as_me: failed program was:" >&5 |
9843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9844 | ||
9845 | ac_header_preproc=no | |
5ee754fc | 9846 | fi |
bec39cab | 9847 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9848 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9849 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9850 | |
bec39cab AC |
9851 | # So? What about this header? |
9852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9853 | yes:no: ) | |
9854 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9855 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9857 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9858 | ac_header_preproc=yes | |
9859 | ;; | |
9860 | no:yes:* ) | |
9861 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9862 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9863 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9864 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9865 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9866 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9867 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9868 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9870 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9871 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9872 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9873 | ( |
9874 | cat <<\_ASBOX | |
9875 | ## ------------------------------------------ ## | |
9876 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9877 | ## ------------------------------------------ ## | |
9878 | _ASBOX | |
9879 | ) | | |
9880 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9881 | ;; |
9882 | esac | |
b4e70030 JB |
9883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9887 | else | |
9888 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9889 | fi |
b4e70030 JB |
9890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9891 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9892 | |
5ee754fc | 9893 | fi |
bec39cab AC |
9894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9895 | cat >>confdefs.h <<_ACEOF | |
9896 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9897 | _ACEOF | |
9898 | ||
5ee754fc | 9899 | fi |
bec39cab | 9900 | |
5ee754fc MK |
9901 | done |
9902 | ||
bec39cab AC |
9903 | |
9904 | for ac_header in sys/user.h | |
5ee754fc | 9905 | do |
bec39cab | 9906 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9911 | else |
7cb9022a | 9912 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9913 | /* confdefs.h. */ |
9914 | _ACEOF | |
9915 | cat confdefs.h >>conftest.$ac_ext | |
9916 | cat >>conftest.$ac_ext <<_ACEOF | |
9917 | /* end confdefs.h. */ | |
7cb9022a MK |
9918 | #if HAVE_SYS_PARAM_H |
9919 | # include <sys/param.h> | |
9920 | #endif | |
9921 | ||
9922 | ||
bec39cab AC |
9923 | #include <$ac_header> |
9924 | _ACEOF | |
9925 | rm -f conftest.$ac_objext | |
9926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9927 | (eval $ac_compile) 2>conftest.er1 | |
9928 | ac_status=$? | |
9929 | grep -v '^ *+' conftest.er1 >conftest.err | |
9930 | rm -f conftest.er1 | |
9931 | cat conftest.err >&5 | |
9932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9933 | (exit $ac_status); } && | |
b4e70030 JB |
9934 | { ac_try='test -z "$ac_c_werror_flag" |
9935 | || test ! -s conftest.err' | |
bec39cab AC |
9936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9937 | (eval $ac_try) 2>&5 | |
9938 | ac_status=$? | |
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9940 | (exit $ac_status); }; } && | |
9941 | { ac_try='test -s conftest.$ac_objext' | |
9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9943 | (eval $ac_try) 2>&5 | |
9944 | ac_status=$? | |
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9946 | (exit $ac_status); }; }; then | |
7cb9022a | 9947 | eval "$as_ac_Header=yes" |
bec39cab AC |
9948 | else |
9949 | echo "$as_me: failed program was:" >&5 | |
9950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9951 | ||
b4e70030 | 9952 | eval "$as_ac_Header=no" |
bec39cab AC |
9953 | fi |
9954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9955 | fi |
b4e70030 JB |
9956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9959 | cat >>confdefs.h <<_ACEOF | |
9960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9961 | _ACEOF | |
9962 | ||
5ee754fc | 9963 | fi |
bec39cab | 9964 | |
5ee754fc MK |
9965 | done |
9966 | ||
bec39cab AC |
9967 | |
9968 | ||
9969 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 9970 | do |
bec39cab | 9971 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9972 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9973 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9977 | fi | |
b4e70030 JB |
9978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9980 | else |
9981 | # Is the header compilable? | |
b4e70030 JB |
9982 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9983 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9984 | cat >conftest.$ac_ext <<_ACEOF |
9985 | /* confdefs.h. */ | |
9986 | _ACEOF | |
9987 | cat confdefs.h >>conftest.$ac_ext | |
9988 | cat >>conftest.$ac_ext <<_ACEOF | |
9989 | /* end confdefs.h. */ | |
9990 | $ac_includes_default | |
9991 | #include <$ac_header> | |
9992 | _ACEOF | |
9993 | rm -f conftest.$ac_objext | |
9994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9995 | (eval $ac_compile) 2>conftest.er1 | |
9996 | ac_status=$? | |
9997 | grep -v '^ *+' conftest.er1 >conftest.err | |
9998 | rm -f conftest.er1 | |
9999 | cat conftest.err >&5 | |
10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10001 | (exit $ac_status); } && | |
b4e70030 JB |
10002 | { ac_try='test -z "$ac_c_werror_flag" |
10003 | || test ! -s conftest.err' | |
bec39cab AC |
10004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10005 | (eval $ac_try) 2>&5 | |
10006 | ac_status=$? | |
10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10008 | (exit $ac_status); }; } && | |
10009 | { ac_try='test -s conftest.$ac_objext' | |
10010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10011 | (eval $ac_try) 2>&5 | |
10012 | ac_status=$? | |
10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10014 | (exit $ac_status); }; }; then | |
10015 | ac_header_compiler=yes | |
10016 | else | |
10017 | echo "$as_me: failed program was:" >&5 | |
10018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10019 | ||
b4e70030 | 10020 | ac_header_compiler=no |
bec39cab AC |
10021 | fi |
10022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10023 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10024 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10025 | |
10026 | # Is the header present? | |
b4e70030 JB |
10027 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10028 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10029 | cat >conftest.$ac_ext <<_ACEOF |
10030 | /* confdefs.h. */ | |
10031 | _ACEOF | |
10032 | cat confdefs.h >>conftest.$ac_ext | |
10033 | cat >>conftest.$ac_ext <<_ACEOF | |
10034 | /* end confdefs.h. */ | |
10035 | #include <$ac_header> | |
10036 | _ACEOF | |
10037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10039 | ac_status=$? | |
10040 | grep -v '^ *+' conftest.er1 >conftest.err | |
10041 | rm -f conftest.er1 | |
10042 | cat conftest.err >&5 | |
10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10044 | (exit $ac_status); } >/dev/null; then | |
10045 | if test -s conftest.err; then | |
10046 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10048 | else | |
10049 | ac_cpp_err= | |
10050 | fi | |
10051 | else | |
10052 | ac_cpp_err=yes | |
5ee754fc | 10053 | fi |
bec39cab AC |
10054 | if test -z "$ac_cpp_err"; then |
10055 | ac_header_preproc=yes | |
5ee754fc | 10056 | else |
bec39cab AC |
10057 | echo "$as_me: failed program was:" >&5 |
10058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10059 | ||
10060 | ac_header_preproc=no | |
5ee754fc | 10061 | fi |
bec39cab | 10062 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10063 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10064 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10065 | |
bec39cab AC |
10066 | # So? What about this header? |
10067 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10068 | yes:no: ) | |
10069 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10070 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10072 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10073 | ac_header_preproc=yes | |
10074 | ;; | |
10075 | no:yes:* ) | |
10076 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10077 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10078 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10079 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10080 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10081 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10082 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10083 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10085 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10086 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10087 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10088 | ( |
10089 | cat <<\_ASBOX | |
10090 | ## ------------------------------------------ ## | |
10091 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10092 | ## ------------------------------------------ ## | |
10093 | _ASBOX | |
10094 | ) | | |
10095 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10096 | ;; |
10097 | esac | |
b4e70030 JB |
10098 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10102 | else | |
10103 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10104 | fi |
b4e70030 JB |
10105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10107 | |
9608ab8b | 10108 | fi |
bec39cab AC |
10109 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10110 | cat >>confdefs.h <<_ACEOF | |
10111 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10112 | _ACEOF | |
10113 | ||
9608ab8b | 10114 | fi |
bec39cab | 10115 | |
9608ab8b | 10116 | done |
5ee754fc | 10117 | |
bec39cab AC |
10118 | |
10119 | ||
10120 | ||
10121 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10122 | do |
bec39cab | 10123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10129 | fi | |
b4e70030 JB |
10130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10132 | else |
10133 | # Is the header compilable? | |
b4e70030 JB |
10134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10136 | cat >conftest.$ac_ext <<_ACEOF |
10137 | /* confdefs.h. */ | |
10138 | _ACEOF | |
10139 | cat confdefs.h >>conftest.$ac_ext | |
10140 | cat >>conftest.$ac_ext <<_ACEOF | |
10141 | /* end confdefs.h. */ | |
10142 | $ac_includes_default | |
10143 | #include <$ac_header> | |
10144 | _ACEOF | |
10145 | rm -f conftest.$ac_objext | |
10146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10147 | (eval $ac_compile) 2>conftest.er1 | |
10148 | ac_status=$? | |
10149 | grep -v '^ *+' conftest.er1 >conftest.err | |
10150 | rm -f conftest.er1 | |
10151 | cat conftest.err >&5 | |
10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10153 | (exit $ac_status); } && | |
b4e70030 JB |
10154 | { ac_try='test -z "$ac_c_werror_flag" |
10155 | || test ! -s conftest.err' | |
bec39cab AC |
10156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10157 | (eval $ac_try) 2>&5 | |
10158 | ac_status=$? | |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); }; } && | |
10161 | { ac_try='test -s conftest.$ac_objext' | |
10162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10163 | (eval $ac_try) 2>&5 | |
10164 | ac_status=$? | |
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10166 | (exit $ac_status); }; }; then | |
10167 | ac_header_compiler=yes | |
10168 | else | |
10169 | echo "$as_me: failed program was:" >&5 | |
10170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10171 | ||
b4e70030 | 10172 | ac_header_compiler=no |
bec39cab AC |
10173 | fi |
10174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10177 | |
10178 | # Is the header present? | |
b4e70030 JB |
10179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10181 | cat >conftest.$ac_ext <<_ACEOF |
10182 | /* confdefs.h. */ | |
10183 | _ACEOF | |
10184 | cat confdefs.h >>conftest.$ac_ext | |
10185 | cat >>conftest.$ac_ext <<_ACEOF | |
10186 | /* end confdefs.h. */ | |
10187 | #include <$ac_header> | |
10188 | _ACEOF | |
10189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10191 | ac_status=$? | |
10192 | grep -v '^ *+' conftest.er1 >conftest.err | |
10193 | rm -f conftest.er1 | |
10194 | cat conftest.err >&5 | |
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10196 | (exit $ac_status); } >/dev/null; then | |
10197 | if test -s conftest.err; then | |
10198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10200 | else | |
10201 | ac_cpp_err= | |
10202 | fi | |
10203 | else | |
10204 | ac_cpp_err=yes | |
9608ab8b | 10205 | fi |
bec39cab AC |
10206 | if test -z "$ac_cpp_err"; then |
10207 | ac_header_preproc=yes | |
9608ab8b | 10208 | else |
bec39cab AC |
10209 | echo "$as_me: failed program was:" >&5 |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10211 | ||
10212 | ac_header_preproc=no | |
9608ab8b | 10213 | fi |
bec39cab | 10214 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10217 | |
bec39cab AC |
10218 | # So? What about this header? |
10219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10220 | yes:no: ) | |
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10225 | ac_header_preproc=yes | |
10226 | ;; | |
10227 | no:yes:* ) | |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10240 | ( |
10241 | cat <<\_ASBOX | |
10242 | ## ------------------------------------------ ## | |
10243 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10244 | ## ------------------------------------------ ## | |
10245 | _ASBOX | |
10246 | ) | | |
10247 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10248 | ;; |
10249 | esac | |
b4e70030 JB |
10250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10254 | else | |
10255 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10256 | fi |
b4e70030 JB |
10257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10259 | |
9608ab8b | 10260 | fi |
bec39cab AC |
10261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10262 | cat >>confdefs.h <<_ACEOF | |
10263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10264 | _ACEOF | |
10265 | ||
9608ab8b | 10266 | fi |
bec39cab | 10267 | |
5ee754fc | 10268 | done |
9608ab8b | 10269 | |
bec39cab AC |
10270 | |
10271 | for ac_header in unistd.h | |
78434e59 | 10272 | do |
bec39cab | 10273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10279 | fi | |
b4e70030 JB |
10280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10282 | else |
10283 | # Is the header compilable? | |
b4e70030 JB |
10284 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10286 | cat >conftest.$ac_ext <<_ACEOF |
10287 | /* confdefs.h. */ | |
10288 | _ACEOF | |
10289 | cat confdefs.h >>conftest.$ac_ext | |
10290 | cat >>conftest.$ac_ext <<_ACEOF | |
10291 | /* end confdefs.h. */ | |
10292 | $ac_includes_default | |
10293 | #include <$ac_header> | |
10294 | _ACEOF | |
10295 | rm -f conftest.$ac_objext | |
10296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10297 | (eval $ac_compile) 2>conftest.er1 | |
10298 | ac_status=$? | |
10299 | grep -v '^ *+' conftest.er1 >conftest.err | |
10300 | rm -f conftest.er1 | |
10301 | cat conftest.err >&5 | |
10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10303 | (exit $ac_status); } && | |
b4e70030 JB |
10304 | { ac_try='test -z "$ac_c_werror_flag" |
10305 | || test ! -s conftest.err' | |
bec39cab AC |
10306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10307 | (eval $ac_try) 2>&5 | |
10308 | ac_status=$? | |
10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10310 | (exit $ac_status); }; } && | |
10311 | { ac_try='test -s conftest.$ac_objext' | |
10312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10313 | (eval $ac_try) 2>&5 | |
10314 | ac_status=$? | |
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10316 | (exit $ac_status); }; }; then | |
10317 | ac_header_compiler=yes | |
10318 | else | |
10319 | echo "$as_me: failed program was:" >&5 | |
10320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10321 | ||
b4e70030 | 10322 | ac_header_compiler=no |
bec39cab AC |
10323 | fi |
10324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10326 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10327 | |
10328 | # Is the header present? | |
b4e70030 JB |
10329 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10330 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10331 | cat >conftest.$ac_ext <<_ACEOF |
10332 | /* confdefs.h. */ | |
10333 | _ACEOF | |
10334 | cat confdefs.h >>conftest.$ac_ext | |
10335 | cat >>conftest.$ac_ext <<_ACEOF | |
10336 | /* end confdefs.h. */ | |
10337 | #include <$ac_header> | |
10338 | _ACEOF | |
10339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10341 | ac_status=$? | |
10342 | grep -v '^ *+' conftest.er1 >conftest.err | |
10343 | rm -f conftest.er1 | |
10344 | cat conftest.err >&5 | |
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10346 | (exit $ac_status); } >/dev/null; then | |
10347 | if test -s conftest.err; then | |
10348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10350 | else | |
10351 | ac_cpp_err= | |
10352 | fi | |
10353 | else | |
10354 | ac_cpp_err=yes | |
78434e59 | 10355 | fi |
bec39cab AC |
10356 | if test -z "$ac_cpp_err"; then |
10357 | ac_header_preproc=yes | |
78434e59 | 10358 | else |
bec39cab AC |
10359 | echo "$as_me: failed program was:" >&5 |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10361 | ||
10362 | ac_header_preproc=no | |
78434e59 | 10363 | fi |
bec39cab | 10364 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10366 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 10367 | |
bec39cab AC |
10368 | # So? What about this header? |
10369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10370 | yes:no: ) | |
10371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10375 | ac_header_preproc=yes | |
10376 | ;; | |
10377 | no:yes:* ) | |
10378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10390 | ( |
10391 | cat <<\_ASBOX | |
10392 | ## ------------------------------------------ ## | |
10393 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10394 | ## ------------------------------------------ ## | |
10395 | _ASBOX | |
10396 | ) | | |
10397 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10398 | ;; |
10399 | esac | |
b4e70030 JB |
10400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10404 | else | |
10405 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 10406 | fi |
b4e70030 JB |
10407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10409 | |
086ec9eb | 10410 | fi |
bec39cab AC |
10411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10412 | cat >>confdefs.h <<_ACEOF | |
10413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10414 | _ACEOF | |
10415 | ||
086ec9eb | 10416 | fi |
bec39cab | 10417 | |
086ec9eb MK |
10418 | done |
10419 | ||
9608ab8b | 10420 | |
b1d19a62 | 10421 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
10422 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
10423 | # think that we don't have <curses.h> if we're using GCC. | |
10424 | case $host_os in | |
b1d19a62 | 10425 | solaris2.[789]) |
5ee754fc | 10426 | if test "$GCC" = yes; then |
bec39cab AC |
10427 | |
10428 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 10429 | #define _MSE_INT_H 1 |
bec39cab | 10430 | _ACEOF |
5ee754fc MK |
10431 | |
10432 | fi ;; | |
10433 | esac | |
bec39cab AC |
10434 | |
10435 | ||
10436 | ||
10437 | ||
10438 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 10439 | do |
bec39cab | 10440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10442 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10446 | fi | |
b4e70030 JB |
10447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10449 | else |
10450 | # Is the header compilable? | |
b4e70030 JB |
10451 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10452 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10453 | cat >conftest.$ac_ext <<_ACEOF |
10454 | /* confdefs.h. */ | |
10455 | _ACEOF | |
10456 | cat confdefs.h >>conftest.$ac_ext | |
10457 | cat >>conftest.$ac_ext <<_ACEOF | |
10458 | /* end confdefs.h. */ | |
10459 | $ac_includes_default | |
10460 | #include <$ac_header> | |
10461 | _ACEOF | |
10462 | rm -f conftest.$ac_objext | |
10463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10464 | (eval $ac_compile) 2>conftest.er1 | |
10465 | ac_status=$? | |
10466 | grep -v '^ *+' conftest.er1 >conftest.err | |
10467 | rm -f conftest.er1 | |
10468 | cat conftest.err >&5 | |
10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10470 | (exit $ac_status); } && | |
b4e70030 JB |
10471 | { ac_try='test -z "$ac_c_werror_flag" |
10472 | || test ! -s conftest.err' | |
bec39cab AC |
10473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10474 | (eval $ac_try) 2>&5 | |
10475 | ac_status=$? | |
10476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10477 | (exit $ac_status); }; } && | |
10478 | { ac_try='test -s conftest.$ac_objext' | |
10479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10480 | (eval $ac_try) 2>&5 | |
10481 | ac_status=$? | |
10482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10483 | (exit $ac_status); }; }; then | |
10484 | ac_header_compiler=yes | |
10485 | else | |
10486 | echo "$as_me: failed program was:" >&5 | |
10487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10488 | ||
b4e70030 | 10489 | ac_header_compiler=no |
bec39cab AC |
10490 | fi |
10491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10493 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10494 | |
10495 | # Is the header present? | |
b4e70030 JB |
10496 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10497 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10498 | cat >conftest.$ac_ext <<_ACEOF |
10499 | /* confdefs.h. */ | |
10500 | _ACEOF | |
10501 | cat confdefs.h >>conftest.$ac_ext | |
10502 | cat >>conftest.$ac_ext <<_ACEOF | |
10503 | /* end confdefs.h. */ | |
10504 | #include <$ac_header> | |
10505 | _ACEOF | |
10506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10508 | ac_status=$? | |
10509 | grep -v '^ *+' conftest.er1 >conftest.err | |
10510 | rm -f conftest.er1 | |
10511 | cat conftest.err >&5 | |
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10513 | (exit $ac_status); } >/dev/null; then | |
10514 | if test -s conftest.err; then | |
10515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10517 | else | |
10518 | ac_cpp_err= | |
10519 | fi | |
10520 | else | |
10521 | ac_cpp_err=yes | |
c906108c | 10522 | fi |
bec39cab AC |
10523 | if test -z "$ac_cpp_err"; then |
10524 | ac_header_preproc=yes | |
10525 | else | |
10526 | echo "$as_me: failed program was:" >&5 | |
10527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10528 | ||
10529 | ac_header_preproc=no | |
c906108c | 10530 | fi |
bec39cab | 10531 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10532 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10533 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10534 | |
10535 | # So? What about this header? | |
10536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10537 | yes:no: ) | |
10538 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10539 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10541 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10542 | ac_header_preproc=yes | |
10543 | ;; | |
10544 | no:yes:* ) | |
10545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10549 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10550 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10551 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10552 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10555 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10556 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10557 | ( |
10558 | cat <<\_ASBOX | |
10559 | ## ------------------------------------------ ## | |
10560 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10561 | ## ------------------------------------------ ## | |
10562 | _ASBOX | |
10563 | ) | | |
10564 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10565 | ;; |
10566 | esac | |
b4e70030 JB |
10567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 10571 | else |
bec39cab | 10572 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10573 | fi |
b4e70030 JB |
10574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10576 | |
10577 | fi | |
10578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10579 | cat >>confdefs.h <<_ACEOF | |
10580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10581 | _ACEOF | |
10582 | ||
10583 | fi | |
10584 | ||
5ee754fc | 10585 | done |
c906108c | 10586 | |
bec39cab | 10587 | |
065a1afc | 10588 | for ac_header in ncurses/term.h |
3b78cdbb | 10589 | do |
bec39cab | 10590 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10592 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10596 | fi | |
b4e70030 JB |
10597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10598 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10599 | else |
10600 | # Is the header compilable? | |
b4e70030 JB |
10601 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10603 | cat >conftest.$ac_ext <<_ACEOF |
10604 | /* confdefs.h. */ | |
10605 | _ACEOF | |
10606 | cat confdefs.h >>conftest.$ac_ext | |
10607 | cat >>conftest.$ac_ext <<_ACEOF | |
10608 | /* end confdefs.h. */ | |
10609 | $ac_includes_default | |
10610 | #include <$ac_header> | |
10611 | _ACEOF | |
10612 | rm -f conftest.$ac_objext | |
10613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10614 | (eval $ac_compile) 2>conftest.er1 | |
10615 | ac_status=$? | |
10616 | grep -v '^ *+' conftest.er1 >conftest.err | |
10617 | rm -f conftest.er1 | |
10618 | cat conftest.err >&5 | |
10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10620 | (exit $ac_status); } && | |
b4e70030 JB |
10621 | { ac_try='test -z "$ac_c_werror_flag" |
10622 | || test ! -s conftest.err' | |
bec39cab AC |
10623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10624 | (eval $ac_try) 2>&5 | |
10625 | ac_status=$? | |
10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10627 | (exit $ac_status); }; } && | |
10628 | { ac_try='test -s conftest.$ac_objext' | |
10629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10630 | (eval $ac_try) 2>&5 | |
10631 | ac_status=$? | |
10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10633 | (exit $ac_status); }; }; then | |
10634 | ac_header_compiler=yes | |
10635 | else | |
10636 | echo "$as_me: failed program was:" >&5 | |
10637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10638 | ||
b4e70030 | 10639 | ac_header_compiler=no |
bec39cab AC |
10640 | fi |
10641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10642 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10643 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10644 | |
10645 | # Is the header present? | |
b4e70030 JB |
10646 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10647 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10648 | cat >conftest.$ac_ext <<_ACEOF |
10649 | /* confdefs.h. */ | |
10650 | _ACEOF | |
10651 | cat confdefs.h >>conftest.$ac_ext | |
10652 | cat >>conftest.$ac_ext <<_ACEOF | |
10653 | /* end confdefs.h. */ | |
10654 | #include <$ac_header> | |
10655 | _ACEOF | |
10656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10657 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10658 | ac_status=$? | |
10659 | grep -v '^ *+' conftest.er1 >conftest.err | |
10660 | rm -f conftest.er1 | |
10661 | cat conftest.err >&5 | |
10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10663 | (exit $ac_status); } >/dev/null; then | |
10664 | if test -s conftest.err; then | |
10665 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10666 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10667 | else | |
10668 | ac_cpp_err= | |
10669 | fi | |
10670 | else | |
10671 | ac_cpp_err=yes | |
3b78cdbb | 10672 | fi |
bec39cab AC |
10673 | if test -z "$ac_cpp_err"; then |
10674 | ac_header_preproc=yes | |
10675 | else | |
10676 | echo "$as_me: failed program was:" >&5 | |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10678 | ||
10679 | ac_header_preproc=no | |
3b78cdbb | 10680 | fi |
bec39cab | 10681 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10682 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10683 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10684 | |
10685 | # So? What about this header? | |
10686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10687 | yes:no: ) | |
10688 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10689 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10690 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10691 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10692 | ac_header_preproc=yes | |
10693 | ;; | |
10694 | no:yes:* ) | |
10695 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10696 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10697 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10698 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10699 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10700 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10701 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10702 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10703 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10704 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10705 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10706 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10707 | ( |
10708 | cat <<\_ASBOX | |
10709 | ## ------------------------------------------ ## | |
10710 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10711 | ## ------------------------------------------ ## | |
10712 | _ASBOX | |
10713 | ) | | |
10714 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10715 | ;; |
10716 | esac | |
b4e70030 JB |
10717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 10721 | else |
bec39cab AC |
10722 | eval "$as_ac_Header=\$ac_header_preproc" |
10723 | fi | |
b4e70030 JB |
10724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10726 | |
3b78cdbb | 10727 | fi |
bec39cab AC |
10728 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10729 | cat >>confdefs.h <<_ACEOF | |
10730 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10731 | _ACEOF | |
10732 | ||
10733 | fi | |
10734 | ||
3b78cdbb DA |
10735 | done |
10736 | ||
c906108c | 10737 | |
065a1afc JB |
10738 | for ac_header in term.h |
10739 | do | |
10740 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
10741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
10744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10745 | else | |
10746 | cat >conftest.$ac_ext <<_ACEOF | |
10747 | /* confdefs.h. */ | |
10748 | _ACEOF | |
10749 | cat confdefs.h >>conftest.$ac_ext | |
10750 | cat >>conftest.$ac_ext <<_ACEOF | |
10751 | /* end confdefs.h. */ | |
10752 | #if HAVE_CURSES_H | |
10753 | # include <curses.h> | |
10754 | #endif | |
10755 | ||
10756 | ||
10757 | #include <$ac_header> | |
10758 | _ACEOF | |
10759 | rm -f conftest.$ac_objext | |
10760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10761 | (eval $ac_compile) 2>conftest.er1 | |
10762 | ac_status=$? | |
10763 | grep -v '^ *+' conftest.er1 >conftest.err | |
10764 | rm -f conftest.er1 | |
10765 | cat conftest.err >&5 | |
10766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10767 | (exit $ac_status); } && | |
b4e70030 JB |
10768 | { ac_try='test -z "$ac_c_werror_flag" |
10769 | || test ! -s conftest.err' | |
065a1afc JB |
10770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10771 | (eval $ac_try) 2>&5 | |
10772 | ac_status=$? | |
10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10774 | (exit $ac_status); }; } && | |
10775 | { ac_try='test -s conftest.$ac_objext' | |
10776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10777 | (eval $ac_try) 2>&5 | |
10778 | ac_status=$? | |
10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10780 | (exit $ac_status); }; }; then | |
10781 | eval "$as_ac_Header=yes" | |
10782 | else | |
10783 | echo "$as_me: failed program was:" >&5 | |
10784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10785 | ||
b4e70030 | 10786 | eval "$as_ac_Header=no" |
065a1afc JB |
10787 | fi |
10788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10789 | fi | |
b4e70030 JB |
10790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
10792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10793 | cat >>confdefs.h <<_ACEOF | |
10794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10795 | _ACEOF | |
10796 | ||
10797 | fi | |
10798 | ||
10799 | done | |
10800 | ||
10801 | ||
5ee754fc MK |
10802 | # FIXME: kettenis/20030102: In most cases we include these |
10803 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
10804 | |
10805 | ||
10806 | for ac_header in ctype.h time.h | |
c906108c | 10807 | do |
bec39cab | 10808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10814 | fi | |
b4e70030 JB |
10815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10817 | else |
10818 | # Is the header compilable? | |
b4e70030 JB |
10819 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10820 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10821 | cat >conftest.$ac_ext <<_ACEOF |
10822 | /* confdefs.h. */ | |
10823 | _ACEOF | |
10824 | cat confdefs.h >>conftest.$ac_ext | |
10825 | cat >>conftest.$ac_ext <<_ACEOF | |
10826 | /* end confdefs.h. */ | |
10827 | $ac_includes_default | |
10828 | #include <$ac_header> | |
10829 | _ACEOF | |
10830 | rm -f conftest.$ac_objext | |
10831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10832 | (eval $ac_compile) 2>conftest.er1 | |
10833 | ac_status=$? | |
10834 | grep -v '^ *+' conftest.er1 >conftest.err | |
10835 | rm -f conftest.er1 | |
10836 | cat conftest.err >&5 | |
10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10838 | (exit $ac_status); } && | |
b4e70030 JB |
10839 | { ac_try='test -z "$ac_c_werror_flag" |
10840 | || test ! -s conftest.err' | |
bec39cab AC |
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10842 | (eval $ac_try) 2>&5 | |
10843 | ac_status=$? | |
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10845 | (exit $ac_status); }; } && | |
10846 | { ac_try='test -s conftest.$ac_objext' | |
10847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10848 | (eval $ac_try) 2>&5 | |
10849 | ac_status=$? | |
10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10851 | (exit $ac_status); }; }; then | |
10852 | ac_header_compiler=yes | |
10853 | else | |
10854 | echo "$as_me: failed program was:" >&5 | |
10855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10856 | ||
b4e70030 | 10857 | ac_header_compiler=no |
bec39cab AC |
10858 | fi |
10859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10862 | |
10863 | # Is the header present? | |
b4e70030 JB |
10864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10866 | cat >conftest.$ac_ext <<_ACEOF |
10867 | /* confdefs.h. */ | |
10868 | _ACEOF | |
10869 | cat confdefs.h >>conftest.$ac_ext | |
10870 | cat >>conftest.$ac_ext <<_ACEOF | |
10871 | /* end confdefs.h. */ | |
10872 | #include <$ac_header> | |
10873 | _ACEOF | |
10874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10876 | ac_status=$? | |
10877 | grep -v '^ *+' conftest.er1 >conftest.err | |
10878 | rm -f conftest.er1 | |
10879 | cat conftest.err >&5 | |
10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10881 | (exit $ac_status); } >/dev/null; then | |
10882 | if test -s conftest.err; then | |
10883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10885 | else | |
10886 | ac_cpp_err= | |
10887 | fi | |
10888 | else | |
10889 | ac_cpp_err=yes | |
c906108c | 10890 | fi |
bec39cab AC |
10891 | if test -z "$ac_cpp_err"; then |
10892 | ac_header_preproc=yes | |
10893 | else | |
10894 | echo "$as_me: failed program was:" >&5 | |
10895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10896 | ||
10897 | ac_header_preproc=no | |
c906108c | 10898 | fi |
bec39cab | 10899 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10902 | |
10903 | # So? What about this header? | |
10904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10905 | yes:no: ) | |
10906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10910 | ac_header_preproc=yes | |
10911 | ;; | |
10912 | no:yes:* ) | |
10913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10925 | ( |
10926 | cat <<\_ASBOX | |
10927 | ## ------------------------------------------ ## | |
10928 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10929 | ## ------------------------------------------ ## | |
10930 | _ASBOX | |
10931 | ) | | |
10932 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10933 | ;; |
10934 | esac | |
b4e70030 JB |
10935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 10939 | else |
bec39cab AC |
10940 | eval "$as_ac_Header=\$ac_header_preproc" |
10941 | fi | |
b4e70030 JB |
10942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10944 | |
10945 | fi | |
10946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10947 | cat >>confdefs.h <<_ACEOF | |
10948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10949 | _ACEOF | |
10950 | ||
c906108c | 10951 | fi |
bec39cab | 10952 | |
c906108c SS |
10953 | done |
10954 | ||
5ee754fc | 10955 | |
4e8d927d | 10956 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 10957 | |
4e8d927d DJ |
10958 | |
10959 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
10960 | ||
10961 | acx_cv_header_stdint=stddef.h | |
10962 | acx_cv_header_stdint_kind="(already complete)" | |
10963 | for i in stdint.h $inttype_headers; do | |
10964 | unset ac_cv_type_uintptr_t | |
10965 | unset ac_cv_type_uintmax_t | |
10966 | unset ac_cv_type_int_least32_t | |
10967 | unset ac_cv_type_int_fast32_t | |
10968 | unset ac_cv_type_uint64_t | |
10969 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
10970 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
10971 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 10972 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 10974 | else |
bec39cab AC |
10975 | cat >conftest.$ac_ext <<_ACEOF |
10976 | /* confdefs.h. */ | |
10977 | _ACEOF | |
10978 | cat confdefs.h >>conftest.$ac_ext | |
10979 | cat >>conftest.$ac_ext <<_ACEOF | |
10980 | /* end confdefs.h. */ | |
4e8d927d DJ |
10981 | #include <sys/types.h> |
10982 | #include <$i> | |
10983 | ||
bec39cab AC |
10984 | int |
10985 | main () | |
10986 | { | |
b4e70030 | 10987 | if ((uintmax_t *) 0) |
4e8d927d | 10988 | return 0; |
b4e70030 | 10989 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
10990 | return 0; |
10991 | ; | |
bec39cab AC |
10992 | return 0; |
10993 | } | |
10994 | _ACEOF | |
10995 | rm -f conftest.$ac_objext | |
10996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10997 | (eval $ac_compile) 2>conftest.er1 | |
10998 | ac_status=$? | |
10999 | grep -v '^ *+' conftest.er1 >conftest.err | |
11000 | rm -f conftest.er1 | |
11001 | cat conftest.err >&5 | |
11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11003 | (exit $ac_status); } && | |
b4e70030 JB |
11004 | { ac_try='test -z "$ac_c_werror_flag" |
11005 | || test ! -s conftest.err' | |
bec39cab AC |
11006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11007 | (eval $ac_try) 2>&5 | |
11008 | ac_status=$? | |
11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11010 | (exit $ac_status); }; } && | |
11011 | { ac_try='test -s conftest.$ac_objext' | |
11012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11013 | (eval $ac_try) 2>&5 | |
11014 | ac_status=$? | |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; }; then | |
4e8d927d | 11017 | ac_cv_type_uintmax_t=yes |
40a7debc | 11018 | else |
bec39cab AC |
11019 | echo "$as_me: failed program was:" >&5 |
11020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11021 | ||
b4e70030 | 11022 | ac_cv_type_uintmax_t=no |
40a7debc | 11023 | fi |
bec39cab | 11024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11025 | fi |
b4e70030 JB |
11026 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11027 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11028 | if test $ac_cv_type_uintmax_t = yes; then |
11029 | acx_cv_header_stdint=$i | |
666ec76f | 11030 | else |
4e8d927d | 11031 | continue |
666ec76f | 11032 | fi |
4e8d927d | 11033 | |
b4e70030 JB |
11034 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11035 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11036 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11038 | else | |
11039 | cat >conftest.$ac_ext <<_ACEOF | |
11040 | /* confdefs.h. */ | |
11041 | _ACEOF | |
11042 | cat confdefs.h >>conftest.$ac_ext | |
11043 | cat >>conftest.$ac_ext <<_ACEOF | |
11044 | /* end confdefs.h. */ | |
4e8d927d DJ |
11045 | #include <sys/types.h> |
11046 | #include <$i> | |
11047 | ||
666ec76f MK |
11048 | int |
11049 | main () | |
11050 | { | |
b4e70030 | 11051 | if ((uintptr_t *) 0) |
4e8d927d | 11052 | return 0; |
b4e70030 | 11053 | if (sizeof (uintptr_t)) |
4e8d927d | 11054 | return 0; |
666ec76f MK |
11055 | ; |
11056 | return 0; | |
11057 | } | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11061 | (eval $ac_compile) 2>conftest.er1 | |
11062 | ac_status=$? | |
11063 | grep -v '^ *+' conftest.er1 >conftest.err | |
11064 | rm -f conftest.er1 | |
11065 | cat conftest.err >&5 | |
11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11067 | (exit $ac_status); } && | |
b4e70030 JB |
11068 | { ac_try='test -z "$ac_c_werror_flag" |
11069 | || test ! -s conftest.err' | |
666ec76f MK |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; }; then | |
4e8d927d | 11081 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11082 | else |
11083 | echo "$as_me: failed program was:" >&5 | |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11085 | |
b4e70030 | 11086 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11087 | fi |
11088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11089 | fi | |
b4e70030 JB |
11090 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11091 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11092 | if test $ac_cv_type_uintptr_t = yes; then |
11093 | : | |
a3828db0 | 11094 | else |
4e8d927d | 11095 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11096 | fi |
4e8d927d | 11097 | |
b4e70030 JB |
11098 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11099 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11100 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11102 | else | |
11103 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11104 | /* confdefs.h. */ |
11105 | _ACEOF | |
11106 | cat confdefs.h >>conftest.$ac_ext | |
11107 | cat >>conftest.$ac_ext <<_ACEOF | |
11108 | /* end confdefs.h. */ | |
4e8d927d DJ |
11109 | #include <sys/types.h> |
11110 | #include <$i> | |
11111 | ||
bec39cab AC |
11112 | int |
11113 | main () | |
11114 | { | |
b4e70030 | 11115 | if ((int_least32_t *) 0) |
4e8d927d | 11116 | return 0; |
b4e70030 | 11117 | if (sizeof (int_least32_t)) |
4e8d927d | 11118 | return 0; |
bec39cab AC |
11119 | ; |
11120 | return 0; | |
11121 | } | |
11122 | _ACEOF | |
11123 | rm -f conftest.$ac_objext | |
11124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11125 | (eval $ac_compile) 2>conftest.er1 | |
11126 | ac_status=$? | |
11127 | grep -v '^ *+' conftest.er1 >conftest.err | |
11128 | rm -f conftest.er1 | |
11129 | cat conftest.err >&5 | |
11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11131 | (exit $ac_status); } && | |
b4e70030 JB |
11132 | { ac_try='test -z "$ac_c_werror_flag" |
11133 | || test ! -s conftest.err' | |
bec39cab AC |
11134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11135 | (eval $ac_try) 2>&5 | |
11136 | ac_status=$? | |
11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11138 | (exit $ac_status); }; } && | |
11139 | { ac_try='test -s conftest.$ac_objext' | |
11140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11141 | (eval $ac_try) 2>&5 | |
11142 | ac_status=$? | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); }; }; then | |
4e8d927d | 11145 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11146 | else |
bec39cab AC |
11147 | echo "$as_me: failed program was:" >&5 |
11148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11149 | ||
b4e70030 | 11150 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11151 | fi |
bec39cab | 11152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11153 | fi |
b4e70030 JB |
11154 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11155 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11156 | if test $ac_cv_type_int_least32_t = yes; then |
11157 | : | |
a3828db0 | 11158 | else |
4e8d927d | 11159 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11160 | fi |
5ee754fc | 11161 | |
b4e70030 JB |
11162 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11163 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11164 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11166 | else | |
11167 | cat >conftest.$ac_ext <<_ACEOF | |
11168 | /* confdefs.h. */ | |
11169 | _ACEOF | |
11170 | cat confdefs.h >>conftest.$ac_ext | |
11171 | cat >>conftest.$ac_ext <<_ACEOF | |
11172 | /* end confdefs.h. */ | |
4e8d927d DJ |
11173 | #include <sys/types.h> |
11174 | #include <$i> | |
11175 | ||
bec39cab AC |
11176 | int |
11177 | main () | |
11178 | { | |
b4e70030 | 11179 | if ((int_fast32_t *) 0) |
4e8d927d | 11180 | return 0; |
b4e70030 | 11181 | if (sizeof (int_fast32_t)) |
4e8d927d | 11182 | return 0; |
bec39cab AC |
11183 | ; |
11184 | return 0; | |
11185 | } | |
11186 | _ACEOF | |
11187 | rm -f conftest.$ac_objext | |
11188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11189 | (eval $ac_compile) 2>conftest.er1 | |
11190 | ac_status=$? | |
11191 | grep -v '^ *+' conftest.er1 >conftest.err | |
11192 | rm -f conftest.er1 | |
11193 | cat conftest.err >&5 | |
11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11195 | (exit $ac_status); } && | |
b4e70030 JB |
11196 | { ac_try='test -z "$ac_c_werror_flag" |
11197 | || test ! -s conftest.err' | |
bec39cab AC |
11198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11199 | (eval $ac_try) 2>&5 | |
11200 | ac_status=$? | |
11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11202 | (exit $ac_status); }; } && | |
11203 | { ac_try='test -s conftest.$ac_objext' | |
11204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11205 | (eval $ac_try) 2>&5 | |
11206 | ac_status=$? | |
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); }; }; then | |
4e8d927d | 11209 | ac_cv_type_int_fast32_t=yes |
c906108c | 11210 | else |
bec39cab AC |
11211 | echo "$as_me: failed program was:" >&5 |
11212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11213 | ||
b4e70030 | 11214 | ac_cv_type_int_fast32_t=no |
c906108c | 11215 | fi |
bec39cab | 11216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11217 | fi |
b4e70030 JB |
11218 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
11219 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
11220 | if test $ac_cv_type_int_fast32_t = yes; then |
11221 | : | |
a3828db0 | 11222 | else |
4e8d927d | 11223 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11224 | fi |
4e8d927d | 11225 | |
b4e70030 JB |
11226 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11227 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11228 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11230 | else | |
11231 | cat >conftest.$ac_ext <<_ACEOF | |
11232 | /* confdefs.h. */ | |
11233 | _ACEOF | |
11234 | cat confdefs.h >>conftest.$ac_ext | |
11235 | cat >>conftest.$ac_ext <<_ACEOF | |
11236 | /* end confdefs.h. */ | |
4e8d927d DJ |
11237 | #include <sys/types.h> |
11238 | #include <$i> | |
11239 | ||
bec39cab AC |
11240 | int |
11241 | main () | |
11242 | { | |
b4e70030 | 11243 | if ((uint64_t *) 0) |
4e8d927d | 11244 | return 0; |
b4e70030 | 11245 | if (sizeof (uint64_t)) |
4e8d927d | 11246 | return 0; |
bec39cab AC |
11247 | ; |
11248 | return 0; | |
11249 | } | |
11250 | _ACEOF | |
11251 | rm -f conftest.$ac_objext | |
11252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11253 | (eval $ac_compile) 2>conftest.er1 | |
11254 | ac_status=$? | |
11255 | grep -v '^ *+' conftest.er1 >conftest.err | |
11256 | rm -f conftest.er1 | |
11257 | cat conftest.err >&5 | |
11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11259 | (exit $ac_status); } && | |
b4e70030 JB |
11260 | { ac_try='test -z "$ac_c_werror_flag" |
11261 | || test ! -s conftest.err' | |
bec39cab AC |
11262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11263 | (eval $ac_try) 2>&5 | |
11264 | ac_status=$? | |
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11266 | (exit $ac_status); }; } && | |
11267 | { ac_try='test -s conftest.$ac_objext' | |
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11269 | (eval $ac_try) 2>&5 | |
11270 | ac_status=$? | |
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11272 | (exit $ac_status); }; }; then | |
4e8d927d | 11273 | ac_cv_type_uint64_t=yes |
c906108c | 11274 | else |
bec39cab AC |
11275 | echo "$as_me: failed program was:" >&5 |
11276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11277 | ||
b4e70030 | 11278 | ac_cv_type_uint64_t=no |
c906108c | 11279 | fi |
bec39cab | 11280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11281 | fi |
b4e70030 JB |
11282 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11283 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
11284 | if test $ac_cv_type_uint64_t = yes; then |
11285 | : | |
a3828db0 | 11286 | else |
4e8d927d | 11287 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
11288 | fi |
11289 | ||
4e8d927d DJ |
11290 | break |
11291 | done | |
11292 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 11293 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 11294 | for i in stdint.h $inttype_headers; do |
3841debe | 11295 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
11296 | unset ac_cv_type_uint32_t |
11297 | unset ac_cv_type_uint64_t | |
11298 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11299 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11300 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 11301 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 11302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 11303 | else |
bec39cab AC |
11304 | cat >conftest.$ac_ext <<_ACEOF |
11305 | /* confdefs.h. */ | |
11306 | _ACEOF | |
11307 | cat confdefs.h >>conftest.$ac_ext | |
11308 | cat >>conftest.$ac_ext <<_ACEOF | |
11309 | /* end confdefs.h. */ | |
4e8d927d DJ |
11310 | #include <sys/types.h> |
11311 | #include <$i> | |
11312 | ||
a3828db0 MK |
11313 | int |
11314 | main () | |
11315 | { | |
b4e70030 | 11316 | if ((uint32_t *) 0) |
4e8d927d | 11317 | return 0; |
b4e70030 | 11318 | if (sizeof (uint32_t)) |
4e8d927d | 11319 | return 0; |
a3828db0 MK |
11320 | ; |
11321 | return 0; | |
11322 | } | |
bec39cab AC |
11323 | _ACEOF |
11324 | rm -f conftest.$ac_objext | |
11325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11326 | (eval $ac_compile) 2>conftest.er1 | |
11327 | ac_status=$? | |
11328 | grep -v '^ *+' conftest.er1 >conftest.err | |
11329 | rm -f conftest.er1 | |
11330 | cat conftest.err >&5 | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); } && | |
b4e70030 JB |
11333 | { ac_try='test -z "$ac_c_werror_flag" |
11334 | || test ! -s conftest.err' | |
bec39cab AC |
11335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11336 | (eval $ac_try) 2>&5 | |
11337 | ac_status=$? | |
11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11339 | (exit $ac_status); }; } && | |
11340 | { ac_try='test -s conftest.$ac_objext' | |
11341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11342 | (eval $ac_try) 2>&5 | |
11343 | ac_status=$? | |
11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11345 | (exit $ac_status); }; }; then | |
4e8d927d | 11346 | ac_cv_type_uint32_t=yes |
bce58c09 | 11347 | else |
bec39cab AC |
11348 | echo "$as_me: failed program was:" >&5 |
11349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11350 | ||
b4e70030 | 11351 | ac_cv_type_uint32_t=no |
bce58c09 | 11352 | fi |
bec39cab | 11353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 11354 | fi |
b4e70030 JB |
11355 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
11356 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
11357 | if test $ac_cv_type_uint32_t = yes; then |
11358 | acx_cv_header_stdint=$i | |
a3828db0 | 11359 | else |
4e8d927d | 11360 | continue |
e5a7de23 | 11361 | fi |
4e8d927d | 11362 | |
b4e70030 JB |
11363 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11364 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11365 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
11366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11367 | else | |
11368 | cat >conftest.$ac_ext <<_ACEOF | |
11369 | /* confdefs.h. */ | |
11370 | _ACEOF | |
11371 | cat confdefs.h >>conftest.$ac_ext | |
11372 | cat >>conftest.$ac_ext <<_ACEOF | |
11373 | /* end confdefs.h. */ | |
4e8d927d DJ |
11374 | #include <sys/types.h> |
11375 | #include <$i> | |
11376 | ||
e5a7de23 EZ |
11377 | int |
11378 | main () | |
11379 | { | |
b4e70030 | 11380 | if ((uint64_t *) 0) |
4e8d927d | 11381 | return 0; |
b4e70030 | 11382 | if (sizeof (uint64_t)) |
4e8d927d | 11383 | return 0; |
e5a7de23 EZ |
11384 | ; |
11385 | return 0; | |
11386 | } | |
11387 | _ACEOF | |
11388 | rm -f conftest.$ac_objext | |
11389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11390 | (eval $ac_compile) 2>conftest.er1 | |
11391 | ac_status=$? | |
11392 | grep -v '^ *+' conftest.er1 >conftest.err | |
11393 | rm -f conftest.er1 | |
11394 | cat conftest.err >&5 | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); } && | |
b4e70030 JB |
11397 | { ac_try='test -z "$ac_c_werror_flag" |
11398 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11400 | (eval $ac_try) 2>&5 | |
11401 | ac_status=$? | |
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11403 | (exit $ac_status); }; } && | |
11404 | { ac_try='test -s conftest.$ac_objext' | |
11405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11406 | (eval $ac_try) 2>&5 | |
11407 | ac_status=$? | |
11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11409 | (exit $ac_status); }; }; then | |
4e8d927d | 11410 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
11411 | else |
11412 | echo "$as_me: failed program was:" >&5 | |
11413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11414 | ||
b4e70030 | 11415 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
11416 | fi |
11417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11418 | fi | |
b4e70030 JB |
11419 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11420 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
11421 | |
11422 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
11423 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
11424 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
11425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11426 | else | |
11427 | cat >conftest.$ac_ext <<_ACEOF | |
11428 | /* confdefs.h. */ | |
11429 | _ACEOF | |
11430 | cat confdefs.h >>conftest.$ac_ext | |
11431 | cat >>conftest.$ac_ext <<_ACEOF | |
11432 | /* end confdefs.h. */ | |
11433 | #include <sys/types.h> | |
11434 | #include <$i> | |
11435 | ||
11436 | int | |
11437 | main () | |
11438 | { | |
11439 | if ((uintptr_t *) 0) | |
11440 | return 0; | |
11441 | if (sizeof (uintptr_t)) | |
11442 | return 0; | |
11443 | ; | |
11444 | return 0; | |
11445 | } | |
11446 | _ACEOF | |
11447 | rm -f conftest.$ac_objext | |
11448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11449 | (eval $ac_compile) 2>conftest.er1 | |
11450 | ac_status=$? | |
11451 | grep -v '^ *+' conftest.er1 >conftest.err | |
11452 | rm -f conftest.er1 | |
11453 | cat conftest.err >&5 | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11455 | (exit $ac_status); } && | |
11456 | { ac_try='test -z "$ac_c_werror_flag" | |
11457 | || test ! -s conftest.err' | |
11458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11459 | (eval $ac_try) 2>&5 | |
11460 | ac_status=$? | |
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11462 | (exit $ac_status); }; } && | |
11463 | { ac_try='test -s conftest.$ac_objext' | |
11464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11465 | (eval $ac_try) 2>&5 | |
11466 | ac_status=$? | |
11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11468 | (exit $ac_status); }; }; then | |
11469 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 11470 | else |
3841debe DJ |
11471 | echo "$as_me: failed program was:" >&5 |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11473 | ||
11474 | ac_cv_type_uintptr_t=no | |
4e8d927d | 11475 | fi |
3841debe DJ |
11476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11477 | fi | |
11478 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
11479 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 11480 | |
4e8d927d DJ |
11481 | break |
11482 | done | |
e5a7de23 | 11483 | fi |
4e8d927d DJ |
11484 | if test "$acx_cv_header_stdint" = stddef.h; then |
11485 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
11486 | for i in sys/types.h $inttype_headers; do | |
11487 | unset ac_cv_type_u_int32_t | |
11488 | unset ac_cv_type_u_int64_t | |
11489 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11490 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
11491 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 11492 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
11493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11494 | else | |
11495 | cat >conftest.$ac_ext <<_ACEOF | |
11496 | /* confdefs.h. */ | |
11497 | _ACEOF | |
11498 | cat confdefs.h >>conftest.$ac_ext | |
11499 | cat >>conftest.$ac_ext <<_ACEOF | |
11500 | /* end confdefs.h. */ | |
4e8d927d DJ |
11501 | #include <sys/types.h> |
11502 | #include <$i> | |
11503 | ||
e5a7de23 EZ |
11504 | int |
11505 | main () | |
11506 | { | |
b4e70030 | 11507 | if ((u_int32_t *) 0) |
4e8d927d | 11508 | return 0; |
b4e70030 | 11509 | if (sizeof (u_int32_t)) |
4e8d927d | 11510 | return 0; |
e5a7de23 EZ |
11511 | ; |
11512 | return 0; | |
11513 | } | |
11514 | _ACEOF | |
11515 | rm -f conftest.$ac_objext | |
11516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11517 | (eval $ac_compile) 2>conftest.er1 | |
11518 | ac_status=$? | |
11519 | grep -v '^ *+' conftest.er1 >conftest.err | |
11520 | rm -f conftest.er1 | |
11521 | cat conftest.err >&5 | |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11523 | (exit $ac_status); } && | |
b4e70030 JB |
11524 | { ac_try='test -z "$ac_c_werror_flag" |
11525 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11527 | (eval $ac_try) 2>&5 | |
11528 | ac_status=$? | |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 | (exit $ac_status); }; } && | |
11531 | { ac_try='test -s conftest.$ac_objext' | |
11532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11533 | (eval $ac_try) 2>&5 | |
11534 | ac_status=$? | |
11535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11536 | (exit $ac_status); }; }; then | |
4e8d927d | 11537 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
11538 | else |
11539 | echo "$as_me: failed program was:" >&5 | |
11540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11541 | ||
b4e70030 | 11542 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
11543 | fi |
11544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11545 | fi | |
b4e70030 JB |
11546 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
11547 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
11548 | if test $ac_cv_type_u_int32_t = yes; then |
11549 | acx_cv_header_stdint=$i | |
e5a7de23 | 11550 | else |
4e8d927d | 11551 | continue |
a3828db0 | 11552 | fi |
5ee754fc | 11553 | |
b4e70030 JB |
11554 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
11555 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 11556 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11558 | else | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
4e8d927d DJ |
11565 | #include <sys/types.h> |
11566 | #include <$i> | |
11567 | ||
bec39cab AC |
11568 | int |
11569 | main () | |
11570 | { | |
b4e70030 | 11571 | if ((u_int64_t *) 0) |
4e8d927d | 11572 | return 0; |
b4e70030 | 11573 | if (sizeof (u_int64_t)) |
4e8d927d | 11574 | return 0; |
bec39cab AC |
11575 | ; |
11576 | return 0; | |
11577 | } | |
11578 | _ACEOF | |
a3828db0 MK |
11579 | rm -f conftest.$ac_objext |
11580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11581 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11582 | ac_status=$? |
11583 | grep -v '^ *+' conftest.er1 >conftest.err | |
11584 | rm -f conftest.er1 | |
11585 | cat conftest.err >&5 | |
11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11587 | (exit $ac_status); } && | |
b4e70030 JB |
11588 | { ac_try='test -z "$ac_c_werror_flag" |
11589 | || test ! -s conftest.err' | |
bec39cab AC |
11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11591 | (eval $ac_try) 2>&5 | |
11592 | ac_status=$? | |
11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11594 | (exit $ac_status); }; } && | |
a3828db0 | 11595 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11597 | (eval $ac_try) 2>&5 | |
11598 | ac_status=$? | |
11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11600 | (exit $ac_status); }; }; then | |
4e8d927d | 11601 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
11602 | else |
11603 | echo "$as_me: failed program was:" >&5 | |
11604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11605 | ||
b4e70030 | 11606 | ac_cv_type_u_int64_t=no |
4e8d927d | 11607 | fi |
4e8d927d DJ |
11608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11609 | fi | |
b4e70030 JB |
11610 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
11611 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
11612 | |
11613 | break | |
11614 | done | |
11615 | fi | |
11616 | if test "$acx_cv_header_stdint" = stddef.h; then | |
11617 | acx_cv_header_stdint_kind="(using manual detection)" | |
11618 | fi | |
11619 | ||
11620 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
11621 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
11622 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
11623 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
11624 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
11625 | ||
11626 | # ----------------- Summarize what we found so far | |
11627 | ||
b4e70030 JB |
11628 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
11629 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 11630 | |
b4e70030 | 11631 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
11632 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
11633 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
11634 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
11635 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 11636 | echo X/gdb_stdint.h | |
b4e70030 JB |
11637 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
11638 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11639 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11640 | s/.*/./; q'` in | |
4e8d927d DJ |
11641 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
11642 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11643 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
11644 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
11645 | *) ;; | |
11646 | esac | |
11647 | ||
b4e70030 JB |
11648 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
11649 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
11650 | |
11651 | # ----------------- done included file, check C basic types -------- | |
11652 | ||
11653 | # Lacking an uintptr_t? Test size of void * | |
11654 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
11655 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
11656 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
11657 | if test "${ac_cv_type_void_p+set}" = set; then |
11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11659 | else | |
11660 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 11661 | /* confdefs.h. */ |
bec39cab AC |
11662 | _ACEOF |
11663 | cat confdefs.h >>conftest.$ac_ext | |
11664 | cat >>conftest.$ac_ext <<_ACEOF | |
11665 | /* end confdefs.h. */ | |
a3828db0 | 11666 | $ac_includes_default |
bec39cab AC |
11667 | int |
11668 | main () | |
11669 | { | |
b4e70030 | 11670 | if ((void * *) 0) |
4e8d927d | 11671 | return 0; |
b4e70030 | 11672 | if (sizeof (void *)) |
4e8d927d | 11673 | return 0; |
bec39cab AC |
11674 | ; |
11675 | return 0; | |
11676 | } | |
11677 | _ACEOF | |
a3828db0 MK |
11678 | rm -f conftest.$ac_objext |
11679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11680 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11681 | ac_status=$? |
11682 | grep -v '^ *+' conftest.er1 >conftest.err | |
11683 | rm -f conftest.er1 | |
11684 | cat conftest.err >&5 | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11686 | (exit $ac_status); } && | |
b4e70030 JB |
11687 | { ac_try='test -z "$ac_c_werror_flag" |
11688 | || test ! -s conftest.err' | |
bec39cab AC |
11689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11690 | (eval $ac_try) 2>&5 | |
11691 | ac_status=$? | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); }; } && | |
a3828db0 | 11694 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11696 | (eval $ac_try) 2>&5 | |
11697 | ac_status=$? | |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); }; }; then | |
4e8d927d | 11700 | ac_cv_type_void_p=yes |
46711df8 | 11701 | else |
bec39cab AC |
11702 | echo "$as_me: failed program was:" >&5 |
11703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11704 | ||
b4e70030 | 11705 | ac_cv_type_void_p=no |
a3828db0 | 11706 | fi |
4e8d927d | 11707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 11708 | fi |
b4e70030 JB |
11709 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
11710 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 11711 | |
b4e70030 JB |
11712 | echo "$as_me:$LINENO: checking size of void *" >&5 |
11713 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 11714 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11716 | else | |
4e8d927d | 11717 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 11718 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
11719 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
11720 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11721 | # This bug is HP SR number 8606223364. | |
11722 | if test "$cross_compiling" = yes; then | |
11723 | # Depending upon the size, compute the lo and hi bounds. | |
11724 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
11725 | /* confdefs.h. */ |
11726 | _ACEOF | |
11727 | cat confdefs.h >>conftest.$ac_ext | |
11728 | cat >>conftest.$ac_ext <<_ACEOF | |
11729 | /* end confdefs.h. */ | |
11730 | $ac_includes_default | |
11731 | int | |
11732 | main () | |
11733 | { | |
b4e70030 | 11734 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
11735 | test_array [0] = 0 |
11736 | ||
d3ea6809 MM |
11737 | ; |
11738 | return 0; | |
11739 | } | |
11740 | _ACEOF | |
11741 | rm -f conftest.$ac_objext | |
11742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11743 | (eval $ac_compile) 2>conftest.er1 | |
11744 | ac_status=$? | |
11745 | grep -v '^ *+' conftest.er1 >conftest.err | |
11746 | rm -f conftest.er1 | |
11747 | cat conftest.err >&5 | |
11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11749 | (exit $ac_status); } && | |
b4e70030 JB |
11750 | { ac_try='test -z "$ac_c_werror_flag" |
11751 | || test ! -s conftest.err' | |
d3ea6809 MM |
11752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11753 | (eval $ac_try) 2>&5 | |
11754 | ac_status=$? | |
11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11756 | (exit $ac_status); }; } && | |
11757 | { ac_try='test -s conftest.$ac_objext' | |
11758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11759 | (eval $ac_try) 2>&5 | |
11760 | ac_status=$? | |
11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11762 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
11763 | ac_lo=0 ac_mid=0 |
11764 | while :; do | |
11765 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
11766 | /* confdefs.h. */ |
11767 | _ACEOF | |
11768 | cat confdefs.h >>conftest.$ac_ext | |
11769 | cat >>conftest.$ac_ext <<_ACEOF | |
11770 | /* end confdefs.h. */ | |
11771 | $ac_includes_default | |
11772 | int | |
11773 | main () | |
11774 | { | |
b4e70030 | 11775 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
11776 | test_array [0] = 0 |
11777 | ||
d3ea6809 MM |
11778 | ; |
11779 | return 0; | |
11780 | } | |
11781 | _ACEOF | |
11782 | rm -f conftest.$ac_objext | |
11783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11784 | (eval $ac_compile) 2>conftest.er1 | |
11785 | ac_status=$? | |
11786 | grep -v '^ *+' conftest.er1 >conftest.err | |
11787 | rm -f conftest.er1 | |
11788 | cat conftest.err >&5 | |
11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11790 | (exit $ac_status); } && | |
b4e70030 JB |
11791 | { ac_try='test -z "$ac_c_werror_flag" |
11792 | || test ! -s conftest.err' | |
d3ea6809 MM |
11793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11794 | (eval $ac_try) 2>&5 | |
11795 | ac_status=$? | |
11796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11797 | (exit $ac_status); }; } && | |
11798 | { ac_try='test -s conftest.$ac_objext' | |
11799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11800 | (eval $ac_try) 2>&5 | |
11801 | ac_status=$? | |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); }; }; then | |
4e8d927d | 11804 | ac_hi=$ac_mid; break |
d3ea6809 MM |
11805 | else |
11806 | echo "$as_me: failed program was:" >&5 | |
11807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11808 | ||
b4e70030 JB |
11809 | ac_lo=`expr $ac_mid + 1` |
11810 | if test $ac_lo -le $ac_mid; then | |
11811 | ac_lo= ac_hi= | |
11812 | break | |
11813 | fi | |
11814 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 11815 | fi |
4e8d927d DJ |
11816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11817 | done | |
bec39cab | 11818 | else |
4e8d927d DJ |
11819 | echo "$as_me: failed program was:" >&5 |
11820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11821 | ||
b4e70030 | 11822 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11823 | /* confdefs.h. */ |
11824 | _ACEOF | |
11825 | cat confdefs.h >>conftest.$ac_ext | |
11826 | cat >>conftest.$ac_ext <<_ACEOF | |
11827 | /* end confdefs.h. */ | |
4e8d927d | 11828 | $ac_includes_default |
bec39cab AC |
11829 | int |
11830 | main () | |
11831 | { | |
b4e70030 | 11832 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
11833 | test_array [0] = 0 |
11834 | ||
bec39cab AC |
11835 | ; |
11836 | return 0; | |
11837 | } | |
11838 | _ACEOF | |
a3828db0 MK |
11839 | rm -f conftest.$ac_objext |
11840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11841 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
11842 | ac_status=$? |
11843 | grep -v '^ *+' conftest.er1 >conftest.err | |
11844 | rm -f conftest.er1 | |
11845 | cat conftest.err >&5 | |
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11847 | (exit $ac_status); } && | |
b4e70030 JB |
11848 | { ac_try='test -z "$ac_c_werror_flag" |
11849 | || test ! -s conftest.err' | |
bec39cab AC |
11850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11851 | (eval $ac_try) 2>&5 | |
11852 | ac_status=$? | |
11853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11854 | (exit $ac_status); }; } && | |
a3828db0 | 11855 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
11856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11857 | (eval $ac_try) 2>&5 | |
11858 | ac_status=$? | |
11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11860 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
11861 | ac_hi=-1 ac_mid=-1 |
11862 | while :; do | |
11863 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
11864 | /* confdefs.h. */ |
11865 | _ACEOF | |
11866 | cat confdefs.h >>conftest.$ac_ext | |
11867 | cat >>conftest.$ac_ext <<_ACEOF | |
11868 | /* end confdefs.h. */ | |
4e8d927d | 11869 | $ac_includes_default |
f9f87d2c MK |
11870 | int |
11871 | main () | |
11872 | { | |
b4e70030 | 11873 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
11874 | test_array [0] = 0 |
11875 | ||
f9f87d2c MK |
11876 | ; |
11877 | return 0; | |
11878 | } | |
11879 | _ACEOF | |
11880 | rm -f conftest.$ac_objext | |
11881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11882 | (eval $ac_compile) 2>conftest.er1 | |
11883 | ac_status=$? | |
11884 | grep -v '^ *+' conftest.er1 >conftest.err | |
11885 | rm -f conftest.er1 | |
11886 | cat conftest.err >&5 | |
11887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11888 | (exit $ac_status); } && | |
b4e70030 JB |
11889 | { ac_try='test -z "$ac_c_werror_flag" |
11890 | || test ! -s conftest.err' | |
f9f87d2c MK |
11891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11892 | (eval $ac_try) 2>&5 | |
11893 | ac_status=$? | |
11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11895 | (exit $ac_status); }; } && | |
11896 | { ac_try='test -s conftest.$ac_objext' | |
11897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11898 | (eval $ac_try) 2>&5 | |
11899 | ac_status=$? | |
11900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11901 | (exit $ac_status); }; }; then | |
4e8d927d | 11902 | ac_lo=$ac_mid; break |
f9f87d2c MK |
11903 | else |
11904 | echo "$as_me: failed program was:" >&5 | |
11905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11906 | ||
b4e70030 JB |
11907 | ac_hi=`expr '(' $ac_mid ')' - 1` |
11908 | if test $ac_mid -le $ac_hi; then | |
11909 | ac_lo= ac_hi= | |
11910 | break | |
11911 | fi | |
11912 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 11913 | fi |
4e8d927d DJ |
11914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11915 | done | |
11916 | else | |
11917 | echo "$as_me: failed program was:" >&5 | |
11918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 11919 | |
b4e70030 | 11920 | ac_lo= ac_hi= |
4e8d927d | 11921 | fi |
4e8d927d | 11922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 11923 | fi |
4e8d927d DJ |
11924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11925 | # Binary search between lo and hi bounds. | |
11926 | while test "x$ac_lo" != "x$ac_hi"; do | |
11927 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
11928 | cat >conftest.$ac_ext <<_ACEOF |
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 |
3be60c3d MK |
11935 | int |
11936 | main () | |
11937 | { | |
b4e70030 | 11938 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
11939 | test_array [0] = 0 |
11940 | ||
3be60c3d MK |
11941 | ; |
11942 | return 0; | |
11943 | } | |
11944 | _ACEOF | |
11945 | rm -f conftest.$ac_objext | |
11946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11947 | (eval $ac_compile) 2>conftest.er1 | |
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' | |
3be60c3d MK |
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); }; } && | |
11961 | { ac_try='test -s conftest.$ac_objext' | |
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 | 11967 | ac_hi=$ac_mid |
3be60c3d MK |
11968 | else |
11969 | echo "$as_me: failed program was:" >&5 | |
11970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11971 | ||
b4e70030 | 11972 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 11973 | fi |
4e8d927d DJ |
11974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11975 | done | |
11976 | case $ac_lo in | |
11977 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 11978 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 11979 | See \`config.log' for more details." >&5 |
b4e70030 | 11980 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 11981 | See \`config.log' for more details." >&2;} |
b4e70030 | 11982 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 11983 | esac |
b4e70030 JB |
11984 | else |
11985 | if test "$cross_compiling" = yes; then | |
11986 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
11987 | See \`config.log' for more details." >&5 | |
11988 | echo "$as_me: error: cannot run test program while cross compiling | |
11989 | See \`config.log' for more details." >&2;} | |
11990 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
11991 | else |
11992 | cat >conftest.$ac_ext <<_ACEOF | |
11993 | /* confdefs.h. */ | |
3be60c3d | 11994 | _ACEOF |
4e8d927d DJ |
11995 | cat confdefs.h >>conftest.$ac_ext |
11996 | cat >>conftest.$ac_ext <<_ACEOF | |
11997 | /* end confdefs.h. */ | |
11998 | $ac_includes_default | |
b4e70030 JB |
11999 | long longval () { return (long) (sizeof (void *)); } |
12000 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12001 | #include <stdio.h> |
12002 | #include <stdlib.h> | |
12003 | int | |
12004 | main () | |
12005 | { | |
12006 | ||
12007 | FILE *f = fopen ("conftest.val", "w"); | |
12008 | if (! f) | |
b4e70030 JB |
12009 | exit (1); |
12010 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12011 | { |
b4e70030 JB |
12012 | long i = longval (); |
12013 | if (i != ((long) (sizeof (void *)))) | |
12014 | exit (1); | |
4e8d927d DJ |
12015 | fprintf (f, "%ld\n", i); |
12016 | } | |
12017 | else | |
12018 | { | |
b4e70030 JB |
12019 | unsigned long i = ulongval (); |
12020 | if (i != ((long) (sizeof (void *)))) | |
12021 | exit (1); | |
4e8d927d DJ |
12022 | fprintf (f, "%lu\n", i); |
12023 | } | |
b4e70030 | 12024 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12025 | |
4e8d927d DJ |
12026 | ; |
12027 | return 0; | |
12028 | } | |
12029 | _ACEOF | |
12030 | rm -f conftest$ac_exeext | |
12031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12032 | (eval $ac_link) 2>&5 | |
12033 | ac_status=$? | |
12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12035 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12037 | (eval $ac_try) 2>&5 | |
12038 | ac_status=$? | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12040 | (exit $ac_status); }; }; then | |
12041 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12042 | else | |
12043 | echo "$as_me: program exited with status $ac_status" >&5 | |
12044 | echo "$as_me: failed program was:" >&5 | |
12045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12046 | |
4e8d927d | 12047 | ( exit $ac_status ) |
b4e70030 | 12048 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12049 | See \`config.log' for more details." >&5 |
b4e70030 | 12050 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12051 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12052 | { (exit 1); exit 1; }; } |
12053 | fi | |
12054 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12055 | fi |
4e8d927d DJ |
12056 | fi |
12057 | rm -f conftest.val | |
12058 | else | |
12059 | ac_cv_sizeof_void_p=0 | |
12060 | fi | |
12061 | fi | |
b4e70030 JB |
12062 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12063 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12064 | cat >>confdefs.h <<_ACEOF |
12065 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12066 | _ACEOF | |
f9f87d2c | 12067 | |
4e8d927d DJ |
12068 | ;; |
12069 | esac | |
46711df8 | 12070 | |
4e8d927d DJ |
12071 | # Lacking an uint64_t? Test size of long |
12072 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12073 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12074 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12075 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12077 | else |
bec39cab AC |
12078 | cat >conftest.$ac_ext <<_ACEOF |
12079 | /* confdefs.h. */ | |
12080 | _ACEOF | |
12081 | cat confdefs.h >>conftest.$ac_ext | |
12082 | cat >>conftest.$ac_ext <<_ACEOF | |
12083 | /* end confdefs.h. */ | |
4e8d927d | 12084 | $ac_includes_default |
bec39cab | 12085 | int |
46711df8 MK |
12086 | main () |
12087 | { | |
b4e70030 | 12088 | if ((long *) 0) |
4e8d927d | 12089 | return 0; |
b4e70030 | 12090 | if (sizeof (long)) |
4e8d927d | 12091 | return 0; |
a3828db0 MK |
12092 | ; |
12093 | return 0; | |
46711df8 | 12094 | } |
bec39cab | 12095 | _ACEOF |
a3828db0 MK |
12096 | rm -f conftest.$ac_objext |
12097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12098 | (eval $ac_compile) 2>conftest.er1 | |
12099 | ac_status=$? | |
12100 | grep -v '^ *+' conftest.er1 >conftest.err | |
12101 | rm -f conftest.er1 | |
12102 | cat conftest.err >&5 | |
12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12104 | (exit $ac_status); } && | |
b4e70030 JB |
12105 | { ac_try='test -z "$ac_c_werror_flag" |
12106 | || test ! -s conftest.err' | |
a3828db0 MK |
12107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12108 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12109 | ac_status=$? |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12111 | (exit $ac_status); }; } && |
12112 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12114 | (eval $ac_try) 2>&5 | |
12115 | ac_status=$? | |
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12117 | (exit $ac_status); }; }; then | |
4e8d927d | 12118 | ac_cv_type_long=yes |
46711df8 | 12119 | else |
a3828db0 | 12120 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12121 | sed 's/^/| /' conftest.$ac_ext >&5 |
12122 | ||
b4e70030 | 12123 | ac_cv_type_long=no |
46711df8 | 12124 | fi |
4e8d927d | 12125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12126 | fi |
b4e70030 JB |
12127 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12128 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12129 | |
b4e70030 JB |
12130 | echo "$as_me:$LINENO: checking size of long" >&5 |
12131 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12132 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12134 | else |
4e8d927d | 12135 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12136 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12139 | # This bug is HP SR number 8606223364. | |
12140 | if test "$cross_compiling" = yes; then | |
12141 | # Depending upon the size, compute the lo and hi bounds. | |
12142 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12143 | /* confdefs.h. */ |
12144 | _ACEOF | |
12145 | cat confdefs.h >>conftest.$ac_ext | |
12146 | cat >>conftest.$ac_ext <<_ACEOF | |
12147 | /* end confdefs.h. */ | |
4e8d927d | 12148 | $ac_includes_default |
4e8d927d DJ |
12149 | int |
12150 | main () | |
12151 | { | |
b4e70030 | 12152 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12153 | test_array [0] = 0 |
a3828db0 | 12154 | |
4e8d927d DJ |
12155 | ; |
12156 | return 0; | |
12157 | } | |
bec39cab AC |
12158 | _ACEOF |
12159 | rm -f conftest.$ac_objext | |
12160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12161 | (eval $ac_compile) 2>conftest.er1 | |
12162 | ac_status=$? | |
12163 | grep -v '^ *+' conftest.er1 >conftest.err | |
12164 | rm -f conftest.er1 | |
12165 | cat conftest.err >&5 | |
12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12167 | (exit $ac_status); } && | |
b4e70030 JB |
12168 | { ac_try='test -z "$ac_c_werror_flag" |
12169 | || test ! -s conftest.err' | |
bec39cab AC |
12170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12171 | (eval $ac_try) 2>&5 | |
12172 | ac_status=$? | |
12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12174 | (exit $ac_status); }; } && | |
12175 | { ac_try='test -s conftest.$ac_objext' | |
12176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12177 | (eval $ac_try) 2>&5 | |
12178 | ac_status=$? | |
12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12180 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12181 | ac_lo=0 ac_mid=0 |
12182 | while :; do | |
12183 | cat >conftest.$ac_ext <<_ACEOF | |
12184 | /* confdefs.h. */ | |
12185 | _ACEOF | |
12186 | cat confdefs.h >>conftest.$ac_ext | |
12187 | cat >>conftest.$ac_ext <<_ACEOF | |
12188 | /* end confdefs.h. */ | |
12189 | $ac_includes_default | |
4e8d927d DJ |
12190 | int |
12191 | main () | |
12192 | { | |
b4e70030 | 12193 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12194 | test_array [0] = 0 |
12195 | ||
12196 | ; | |
12197 | return 0; | |
12198 | } | |
12199 | _ACEOF | |
12200 | rm -f conftest.$ac_objext | |
12201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12202 | (eval $ac_compile) 2>conftest.er1 | |
12203 | ac_status=$? | |
12204 | grep -v '^ *+' conftest.er1 >conftest.err | |
12205 | rm -f conftest.er1 | |
12206 | cat conftest.err >&5 | |
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12208 | (exit $ac_status); } && | |
b4e70030 JB |
12209 | { ac_try='test -z "$ac_c_werror_flag" |
12210 | || test ! -s conftest.err' | |
4e8d927d DJ |
12211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12212 | (eval $ac_try) 2>&5 | |
12213 | ac_status=$? | |
12214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12215 | (exit $ac_status); }; } && | |
12216 | { ac_try='test -s conftest.$ac_objext' | |
12217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12218 | (eval $ac_try) 2>&5 | |
12219 | ac_status=$? | |
12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12221 | (exit $ac_status); }; }; then | |
12222 | ac_hi=$ac_mid; break | |
12223 | else | |
12224 | echo "$as_me: failed program was:" >&5 | |
12225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12226 | ||
b4e70030 JB |
12227 | ac_lo=`expr $ac_mid + 1` |
12228 | if test $ac_lo -le $ac_mid; then | |
12229 | ac_lo= ac_hi= | |
12230 | break | |
12231 | fi | |
12232 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12233 | fi |
4e8d927d DJ |
12234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12235 | done | |
12236 | else | |
12237 | echo "$as_me: failed program was:" >&5 | |
12238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12239 | ||
b4e70030 | 12240 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12241 | /* confdefs.h. */ |
12242 | _ACEOF | |
12243 | cat confdefs.h >>conftest.$ac_ext | |
12244 | cat >>conftest.$ac_ext <<_ACEOF | |
12245 | /* end confdefs.h. */ | |
12246 | $ac_includes_default | |
4e8d927d DJ |
12247 | int |
12248 | main () | |
12249 | { | |
b4e70030 | 12250 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
12251 | test_array [0] = 0 |
12252 | ||
12253 | ; | |
12254 | return 0; | |
12255 | } | |
12256 | _ACEOF | |
12257 | rm -f conftest.$ac_objext | |
12258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12259 | (eval $ac_compile) 2>conftest.er1 | |
12260 | ac_status=$? | |
12261 | grep -v '^ *+' conftest.er1 >conftest.err | |
12262 | rm -f conftest.er1 | |
12263 | cat conftest.err >&5 | |
12264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12265 | (exit $ac_status); } && | |
b4e70030 JB |
12266 | { ac_try='test -z "$ac_c_werror_flag" |
12267 | || test ! -s conftest.err' | |
4e8d927d DJ |
12268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12269 | (eval $ac_try) 2>&5 | |
12270 | ac_status=$? | |
12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12272 | (exit $ac_status); }; } && | |
12273 | { ac_try='test -s conftest.$ac_objext' | |
12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12275 | (eval $ac_try) 2>&5 | |
12276 | ac_status=$? | |
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12278 | (exit $ac_status); }; }; then | |
12279 | ac_hi=-1 ac_mid=-1 | |
12280 | while :; do | |
12281 | cat >conftest.$ac_ext <<_ACEOF | |
12282 | /* confdefs.h. */ | |
12283 | _ACEOF | |
12284 | cat confdefs.h >>conftest.$ac_ext | |
12285 | cat >>conftest.$ac_ext <<_ACEOF | |
12286 | /* end confdefs.h. */ | |
12287 | $ac_includes_default | |
4e8d927d DJ |
12288 | int |
12289 | main () | |
12290 | { | |
b4e70030 | 12291 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
12292 | test_array [0] = 0 |
12293 | ||
12294 | ; | |
12295 | return 0; | |
12296 | } | |
12297 | _ACEOF | |
12298 | rm -f conftest.$ac_objext | |
12299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12300 | (eval $ac_compile) 2>conftest.er1 | |
12301 | ac_status=$? | |
12302 | grep -v '^ *+' conftest.er1 >conftest.err | |
12303 | rm -f conftest.er1 | |
12304 | cat conftest.err >&5 | |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12306 | (exit $ac_status); } && | |
b4e70030 JB |
12307 | { ac_try='test -z "$ac_c_werror_flag" |
12308 | || test ! -s conftest.err' | |
4e8d927d DJ |
12309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12310 | (eval $ac_try) 2>&5 | |
12311 | ac_status=$? | |
12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12313 | (exit $ac_status); }; } && | |
12314 | { ac_try='test -s conftest.$ac_objext' | |
12315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12316 | (eval $ac_try) 2>&5 | |
12317 | ac_status=$? | |
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12319 | (exit $ac_status); }; }; then | |
12320 | ac_lo=$ac_mid; break | |
12321 | else | |
12322 | echo "$as_me: failed program was:" >&5 | |
12323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12324 | ||
b4e70030 JB |
12325 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12326 | if test $ac_mid -le $ac_hi; then | |
12327 | ac_lo= ac_hi= | |
12328 | break | |
12329 | fi | |
12330 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12331 | fi |
4e8d927d DJ |
12332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12333 | done | |
12334 | else | |
12335 | echo "$as_me: failed program was:" >&5 | |
12336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12337 | ||
b4e70030 | 12338 | ac_lo= ac_hi= |
4e8d927d | 12339 | fi |
4e8d927d DJ |
12340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12341 | fi | |
4e8d927d DJ |
12342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12343 | # Binary search between lo and hi bounds. | |
12344 | while test "x$ac_lo" != "x$ac_hi"; do | |
12345 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12346 | cat >conftest.$ac_ext <<_ACEOF | |
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))) <= $ac_mid)]; |
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=$ac_mid | |
12386 | else | |
12387 | echo "$as_me: failed program was:" >&5 | |
12388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12389 | ||
b4e70030 | 12390 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12391 | fi |
4e8d927d DJ |
12392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12393 | done | |
12394 | case $ac_lo in | |
12395 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 12396 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12397 | See \`config.log' for more details." >&5 |
b4e70030 | 12398 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12399 | See \`config.log' for more details." >&2;} |
b4e70030 | 12400 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12401 | esac |
b4e70030 JB |
12402 | else |
12403 | if test "$cross_compiling" = yes; then | |
12404 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12405 | See \`config.log' for more details." >&5 | |
12406 | echo "$as_me: error: cannot run test program while cross compiling | |
12407 | See \`config.log' for more details." >&2;} | |
12408 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12409 | else |
12410 | cat >conftest.$ac_ext <<_ACEOF | |
12411 | /* confdefs.h. */ | |
12412 | _ACEOF | |
12413 | cat confdefs.h >>conftest.$ac_ext | |
12414 | cat >>conftest.$ac_ext <<_ACEOF | |
12415 | /* end confdefs.h. */ | |
12416 | $ac_includes_default | |
b4e70030 JB |
12417 | long longval () { return (long) (sizeof (long)); } |
12418 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
12419 | #include <stdio.h> |
12420 | #include <stdlib.h> | |
12421 | int | |
12422 | main () | |
12423 | { | |
12424 | ||
12425 | FILE *f = fopen ("conftest.val", "w"); | |
12426 | if (! f) | |
b4e70030 JB |
12427 | exit (1); |
12428 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 12429 | { |
b4e70030 JB |
12430 | long i = longval (); |
12431 | if (i != ((long) (sizeof (long)))) | |
12432 | exit (1); | |
4e8d927d DJ |
12433 | fprintf (f, "%ld\n", i); |
12434 | } | |
12435 | else | |
12436 | { | |
b4e70030 JB |
12437 | unsigned long i = ulongval (); |
12438 | if (i != ((long) (sizeof (long)))) | |
12439 | exit (1); | |
4e8d927d DJ |
12440 | fprintf (f, "%lu\n", i); |
12441 | } | |
b4e70030 | 12442 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12443 | |
12444 | ; | |
12445 | return 0; | |
12446 | } | |
12447 | _ACEOF | |
12448 | rm -f conftest$ac_exeext | |
12449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12450 | (eval $ac_link) 2>&5 | |
12451 | ac_status=$? | |
12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12455 | (eval $ac_try) 2>&5 | |
12456 | ac_status=$? | |
12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12458 | (exit $ac_status); }; }; then | |
12459 | ac_cv_sizeof_long=`cat conftest.val` | |
12460 | else | |
12461 | echo "$as_me: program exited with status $ac_status" >&5 | |
12462 | echo "$as_me: failed program was:" >&5 | |
12463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12464 | ||
12465 | ( exit $ac_status ) | |
b4e70030 | 12466 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12467 | See \`config.log' for more details." >&5 |
b4e70030 | 12468 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12469 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12470 | { (exit 1); exit 1; }; } |
12471 | fi | |
12472 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12473 | fi |
4e8d927d DJ |
12474 | fi |
12475 | rm -f conftest.val | |
12476 | else | |
12477 | ac_cv_sizeof_long=0 | |
12478 | fi | |
12479 | fi | |
b4e70030 JB |
12480 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
12481 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
12482 | cat >>confdefs.h <<_ACEOF |
12483 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12484 | _ACEOF | |
12485 | ||
12486 | ;; | |
12487 | esac | |
12488 | ||
12489 | if test $acx_cv_header_stdint = stddef.h; then | |
12490 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
12491 | echo "$as_me:$LINENO: checking for int" >&5 |
12492 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
12493 | if test "${ac_cv_type_int+set}" = set; then |
12494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12495 | else | |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
12497 | /* confdefs.h. */ | |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | $ac_includes_default | |
4e8d927d DJ |
12503 | int |
12504 | main () | |
12505 | { | |
b4e70030 | 12506 | if ((int *) 0) |
4e8d927d | 12507 | return 0; |
b4e70030 | 12508 | if (sizeof (int)) |
4e8d927d DJ |
12509 | return 0; |
12510 | ; | |
12511 | return 0; | |
12512 | } | |
12513 | _ACEOF | |
12514 | rm -f conftest.$ac_objext | |
12515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12516 | (eval $ac_compile) 2>conftest.er1 | |
12517 | ac_status=$? | |
12518 | grep -v '^ *+' conftest.er1 >conftest.err | |
12519 | rm -f conftest.er1 | |
12520 | cat conftest.err >&5 | |
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12522 | (exit $ac_status); } && | |
b4e70030 JB |
12523 | { ac_try='test -z "$ac_c_werror_flag" |
12524 | || test ! -s conftest.err' | |
4e8d927d DJ |
12525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12526 | (eval $ac_try) 2>&5 | |
12527 | ac_status=$? | |
12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12529 | (exit $ac_status); }; } && | |
12530 | { ac_try='test -s conftest.$ac_objext' | |
12531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12532 | (eval $ac_try) 2>&5 | |
12533 | ac_status=$? | |
12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12535 | (exit $ac_status); }; }; then | |
12536 | ac_cv_type_int=yes | |
12537 | else | |
12538 | echo "$as_me: failed program was:" >&5 | |
12539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12540 | ||
b4e70030 | 12541 | ac_cv_type_int=no |
4e8d927d | 12542 | fi |
4e8d927d DJ |
12543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12544 | fi | |
b4e70030 JB |
12545 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
12546 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 12547 | |
b4e70030 JB |
12548 | echo "$as_me:$LINENO: checking size of int" >&5 |
12549 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
12550 | if test "${ac_cv_sizeof_int+set}" = set; then |
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12552 | else | |
12553 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 12554 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12557 | # This bug is HP SR number 8606223364. | |
12558 | if test "$cross_compiling" = yes; then | |
12559 | # Depending upon the size, compute the lo and hi bounds. | |
12560 | cat >conftest.$ac_ext <<_ACEOF | |
12561 | /* confdefs.h. */ | |
12562 | _ACEOF | |
12563 | cat confdefs.h >>conftest.$ac_ext | |
12564 | cat >>conftest.$ac_ext <<_ACEOF | |
12565 | /* end confdefs.h. */ | |
12566 | $ac_includes_default | |
4e8d927d DJ |
12567 | int |
12568 | main () | |
12569 | { | |
b4e70030 | 12570 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
12571 | test_array [0] = 0 |
12572 | ||
12573 | ; | |
12574 | return 0; | |
12575 | } | |
12576 | _ACEOF | |
12577 | rm -f conftest.$ac_objext | |
12578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12579 | (eval $ac_compile) 2>conftest.er1 | |
12580 | ac_status=$? | |
12581 | grep -v '^ *+' conftest.er1 >conftest.err | |
12582 | rm -f conftest.er1 | |
12583 | cat conftest.err >&5 | |
12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); } && | |
b4e70030 JB |
12586 | { ac_try='test -z "$ac_c_werror_flag" |
12587 | || test ! -s conftest.err' | |
4e8d927d DJ |
12588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12589 | (eval $ac_try) 2>&5 | |
12590 | ac_status=$? | |
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12592 | (exit $ac_status); }; } && | |
12593 | { ac_try='test -s conftest.$ac_objext' | |
12594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12595 | (eval $ac_try) 2>&5 | |
12596 | ac_status=$? | |
12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12598 | (exit $ac_status); }; }; then | |
12599 | ac_lo=0 ac_mid=0 | |
12600 | while :; do | |
12601 | cat >conftest.$ac_ext <<_ACEOF | |
12602 | /* confdefs.h. */ | |
12603 | _ACEOF | |
12604 | cat confdefs.h >>conftest.$ac_ext | |
12605 | cat >>conftest.$ac_ext <<_ACEOF | |
12606 | /* end confdefs.h. */ | |
12607 | $ac_includes_default | |
4e8d927d DJ |
12608 | int |
12609 | main () | |
12610 | { | |
b4e70030 | 12611 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
12612 | test_array [0] = 0 |
12613 | ||
12614 | ; | |
12615 | return 0; | |
12616 | } | |
12617 | _ACEOF | |
12618 | rm -f conftest.$ac_objext | |
12619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12620 | (eval $ac_compile) 2>conftest.er1 | |
12621 | ac_status=$? | |
12622 | grep -v '^ *+' conftest.er1 >conftest.err | |
12623 | rm -f conftest.er1 | |
12624 | cat conftest.err >&5 | |
12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12626 | (exit $ac_status); } && | |
b4e70030 JB |
12627 | { ac_try='test -z "$ac_c_werror_flag" |
12628 | || test ! -s conftest.err' | |
4e8d927d DJ |
12629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12630 | (eval $ac_try) 2>&5 | |
12631 | ac_status=$? | |
12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12633 | (exit $ac_status); }; } && | |
12634 | { ac_try='test -s conftest.$ac_objext' | |
12635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12636 | (eval $ac_try) 2>&5 | |
12637 | ac_status=$? | |
12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12639 | (exit $ac_status); }; }; then | |
12640 | ac_hi=$ac_mid; break | |
12641 | else | |
12642 | echo "$as_me: failed program was:" >&5 | |
12643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12644 | ||
b4e70030 JB |
12645 | ac_lo=`expr $ac_mid + 1` |
12646 | if test $ac_lo -le $ac_mid; then | |
12647 | ac_lo= ac_hi= | |
12648 | break | |
12649 | fi | |
12650 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12651 | fi |
4e8d927d DJ |
12652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12653 | done | |
12654 | else | |
12655 | echo "$as_me: failed program was:" >&5 | |
12656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12657 | ||
b4e70030 | 12658 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12659 | /* confdefs.h. */ |
12660 | _ACEOF | |
12661 | cat confdefs.h >>conftest.$ac_ext | |
12662 | cat >>conftest.$ac_ext <<_ACEOF | |
12663 | /* end confdefs.h. */ | |
12664 | $ac_includes_default | |
4e8d927d DJ |
12665 | int |
12666 | main () | |
12667 | { | |
b4e70030 | 12668 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
12669 | test_array [0] = 0 |
12670 | ||
12671 | ; | |
12672 | return 0; | |
12673 | } | |
12674 | _ACEOF | |
12675 | rm -f conftest.$ac_objext | |
12676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12677 | (eval $ac_compile) 2>conftest.er1 | |
12678 | ac_status=$? | |
12679 | grep -v '^ *+' conftest.er1 >conftest.err | |
12680 | rm -f conftest.er1 | |
12681 | cat conftest.err >&5 | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); } && | |
b4e70030 JB |
12684 | { ac_try='test -z "$ac_c_werror_flag" |
12685 | || test ! -s conftest.err' | |
4e8d927d DJ |
12686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12687 | (eval $ac_try) 2>&5 | |
12688 | ac_status=$? | |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12690 | (exit $ac_status); }; } && | |
12691 | { ac_try='test -s conftest.$ac_objext' | |
12692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12693 | (eval $ac_try) 2>&5 | |
12694 | ac_status=$? | |
12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12696 | (exit $ac_status); }; }; then | |
12697 | ac_hi=-1 ac_mid=-1 | |
12698 | while :; do | |
12699 | cat >conftest.$ac_ext <<_ACEOF | |
12700 | /* confdefs.h. */ | |
12701 | _ACEOF | |
12702 | cat confdefs.h >>conftest.$ac_ext | |
12703 | cat >>conftest.$ac_ext <<_ACEOF | |
12704 | /* end confdefs.h. */ | |
12705 | $ac_includes_default | |
4e8d927d DJ |
12706 | int |
12707 | main () | |
12708 | { | |
b4e70030 | 12709 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
12710 | test_array [0] = 0 |
12711 | ||
12712 | ; | |
12713 | return 0; | |
12714 | } | |
12715 | _ACEOF | |
12716 | rm -f conftest.$ac_objext | |
12717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12718 | (eval $ac_compile) 2>conftest.er1 | |
12719 | ac_status=$? | |
12720 | grep -v '^ *+' conftest.er1 >conftest.err | |
12721 | rm -f conftest.er1 | |
12722 | cat conftest.err >&5 | |
12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12724 | (exit $ac_status); } && | |
b4e70030 JB |
12725 | { ac_try='test -z "$ac_c_werror_flag" |
12726 | || test ! -s conftest.err' | |
4e8d927d DJ |
12727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12728 | (eval $ac_try) 2>&5 | |
12729 | ac_status=$? | |
12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12731 | (exit $ac_status); }; } && | |
12732 | { ac_try='test -s conftest.$ac_objext' | |
12733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12734 | (eval $ac_try) 2>&5 | |
12735 | ac_status=$? | |
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12737 | (exit $ac_status); }; }; then | |
12738 | ac_lo=$ac_mid; break | |
12739 | else | |
12740 | echo "$as_me: failed program was:" >&5 | |
12741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12742 | ||
b4e70030 JB |
12743 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12744 | if test $ac_mid -le $ac_hi; then | |
12745 | ac_lo= ac_hi= | |
12746 | break | |
12747 | fi | |
12748 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12749 | fi |
4e8d927d DJ |
12750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12751 | done | |
12752 | else | |
12753 | echo "$as_me: failed program was:" >&5 | |
12754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12755 | ||
b4e70030 | 12756 | ac_lo= ac_hi= |
4e8d927d | 12757 | fi |
4e8d927d DJ |
12758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12759 | fi | |
4e8d927d DJ |
12760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12761 | # Binary search between lo and hi bounds. | |
12762 | while test "x$ac_lo" != "x$ac_hi"; do | |
12763 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12764 | cat >conftest.$ac_ext <<_ACEOF | |
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))) <= $ac_mid)]; |
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=$ac_mid | |
12804 | else | |
12805 | echo "$as_me: failed program was:" >&5 | |
12806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12807 | ||
b4e70030 | 12808 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12809 | fi |
4e8d927d DJ |
12810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12811 | done | |
12812 | case $ac_lo in | |
12813 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 12814 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 12815 | See \`config.log' for more details." >&5 |
b4e70030 | 12816 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 12817 | See \`config.log' for more details." >&2;} |
b4e70030 | 12818 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12819 | esac |
b4e70030 JB |
12820 | else |
12821 | if test "$cross_compiling" = yes; then | |
12822 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12823 | See \`config.log' for more details." >&5 | |
12824 | echo "$as_me: error: cannot run test program while cross compiling | |
12825 | See \`config.log' for more details." >&2;} | |
12826 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12827 | else |
12828 | cat >conftest.$ac_ext <<_ACEOF | |
12829 | /* confdefs.h. */ | |
12830 | _ACEOF | |
12831 | cat confdefs.h >>conftest.$ac_ext | |
12832 | cat >>conftest.$ac_ext <<_ACEOF | |
12833 | /* end confdefs.h. */ | |
12834 | $ac_includes_default | |
b4e70030 JB |
12835 | long longval () { return (long) (sizeof (int)); } |
12836 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
12837 | #include <stdio.h> |
12838 | #include <stdlib.h> | |
12839 | int | |
12840 | main () | |
12841 | { | |
12842 | ||
12843 | FILE *f = fopen ("conftest.val", "w"); | |
12844 | if (! f) | |
b4e70030 JB |
12845 | exit (1); |
12846 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 12847 | { |
b4e70030 JB |
12848 | long i = longval (); |
12849 | if (i != ((long) (sizeof (int)))) | |
12850 | exit (1); | |
4e8d927d DJ |
12851 | fprintf (f, "%ld\n", i); |
12852 | } | |
12853 | else | |
12854 | { | |
b4e70030 JB |
12855 | unsigned long i = ulongval (); |
12856 | if (i != ((long) (sizeof (int)))) | |
12857 | exit (1); | |
4e8d927d DJ |
12858 | fprintf (f, "%lu\n", i); |
12859 | } | |
b4e70030 | 12860 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12861 | |
12862 | ; | |
12863 | return 0; | |
12864 | } | |
12865 | _ACEOF | |
12866 | rm -f conftest$ac_exeext | |
12867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12868 | (eval $ac_link) 2>&5 | |
12869 | ac_status=$? | |
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12873 | (eval $ac_try) 2>&5 | |
12874 | ac_status=$? | |
12875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12876 | (exit $ac_status); }; }; then | |
12877 | ac_cv_sizeof_int=`cat conftest.val` | |
12878 | else | |
12879 | echo "$as_me: program exited with status $ac_status" >&5 | |
12880 | echo "$as_me: failed program was:" >&5 | |
12881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12882 | ||
12883 | ( exit $ac_status ) | |
b4e70030 | 12884 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 12885 | See \`config.log' for more details." >&5 |
b4e70030 | 12886 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 12887 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12888 | { (exit 1); exit 1; }; } |
12889 | fi | |
12890 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12891 | fi |
4e8d927d DJ |
12892 | fi |
12893 | rm -f conftest.val | |
12894 | else | |
12895 | ac_cv_sizeof_int=0 | |
12896 | fi | |
12897 | fi | |
b4e70030 JB |
12898 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
12899 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
12900 | cat >>confdefs.h <<_ACEOF |
12901 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12902 | _ACEOF | |
12903 | ||
12904 | ||
b4e70030 JB |
12905 | echo "$as_me:$LINENO: checking for short" >&5 |
12906 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
12907 | if test "${ac_cv_type_short+set}" = set; then |
12908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12909 | else | |
12910 | cat >conftest.$ac_ext <<_ACEOF | |
12911 | /* confdefs.h. */ | |
12912 | _ACEOF | |
12913 | cat confdefs.h >>conftest.$ac_ext | |
12914 | cat >>conftest.$ac_ext <<_ACEOF | |
12915 | /* end confdefs.h. */ | |
12916 | $ac_includes_default | |
4e8d927d DJ |
12917 | int |
12918 | main () | |
12919 | { | |
b4e70030 | 12920 | if ((short *) 0) |
4e8d927d | 12921 | return 0; |
b4e70030 | 12922 | if (sizeof (short)) |
4e8d927d DJ |
12923 | return 0; |
12924 | ; | |
12925 | return 0; | |
12926 | } | |
12927 | _ACEOF | |
12928 | rm -f conftest.$ac_objext | |
12929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12930 | (eval $ac_compile) 2>conftest.er1 | |
12931 | ac_status=$? | |
12932 | grep -v '^ *+' conftest.er1 >conftest.err | |
12933 | rm -f conftest.er1 | |
12934 | cat conftest.err >&5 | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | (exit $ac_status); } && | |
b4e70030 JB |
12937 | { ac_try='test -z "$ac_c_werror_flag" |
12938 | || test ! -s conftest.err' | |
4e8d927d DJ |
12939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12940 | (eval $ac_try) 2>&5 | |
12941 | ac_status=$? | |
12942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12943 | (exit $ac_status); }; } && | |
12944 | { ac_try='test -s conftest.$ac_objext' | |
12945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12946 | (eval $ac_try) 2>&5 | |
12947 | ac_status=$? | |
12948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12949 | (exit $ac_status); }; }; then | |
12950 | ac_cv_type_short=yes | |
12951 | else | |
12952 | echo "$as_me: failed program was:" >&5 | |
12953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12954 | ||
b4e70030 | 12955 | ac_cv_type_short=no |
4e8d927d | 12956 | fi |
4e8d927d DJ |
12957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12958 | fi | |
b4e70030 JB |
12959 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
12960 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 12961 | |
b4e70030 JB |
12962 | echo "$as_me:$LINENO: checking size of short" >&5 |
12963 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
12964 | if test "${ac_cv_sizeof_short+set}" = set; then |
12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12966 | else | |
12967 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 12968 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12969 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12970 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12971 | # This bug is HP SR number 8606223364. | |
12972 | if test "$cross_compiling" = yes; then | |
12973 | # Depending upon the size, compute the lo and hi bounds. | |
12974 | cat >conftest.$ac_ext <<_ACEOF | |
12975 | /* confdefs.h. */ | |
12976 | _ACEOF | |
12977 | cat confdefs.h >>conftest.$ac_ext | |
12978 | cat >>conftest.$ac_ext <<_ACEOF | |
12979 | /* end confdefs.h. */ | |
12980 | $ac_includes_default | |
4e8d927d DJ |
12981 | int |
12982 | main () | |
12983 | { | |
b4e70030 | 12984 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
12985 | test_array [0] = 0 |
12986 | ||
12987 | ; | |
12988 | return 0; | |
12989 | } | |
12990 | _ACEOF | |
12991 | rm -f conftest.$ac_objext | |
12992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12993 | (eval $ac_compile) 2>conftest.er1 | |
12994 | ac_status=$? | |
12995 | grep -v '^ *+' conftest.er1 >conftest.err | |
12996 | rm -f conftest.er1 | |
12997 | cat conftest.err >&5 | |
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); } && | |
b4e70030 JB |
13000 | { ac_try='test -z "$ac_c_werror_flag" |
13001 | || test ! -s conftest.err' | |
4e8d927d DJ |
13002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13003 | (eval $ac_try) 2>&5 | |
13004 | ac_status=$? | |
13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); }; } && | |
13007 | { ac_try='test -s conftest.$ac_objext' | |
13008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13009 | (eval $ac_try) 2>&5 | |
13010 | ac_status=$? | |
13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13012 | (exit $ac_status); }; }; then | |
13013 | ac_lo=0 ac_mid=0 | |
13014 | while :; do | |
13015 | cat >conftest.$ac_ext <<_ACEOF | |
13016 | /* confdefs.h. */ | |
13017 | _ACEOF | |
13018 | cat confdefs.h >>conftest.$ac_ext | |
13019 | cat >>conftest.$ac_ext <<_ACEOF | |
13020 | /* end confdefs.h. */ | |
13021 | $ac_includes_default | |
4e8d927d DJ |
13022 | int |
13023 | main () | |
13024 | { | |
b4e70030 | 13025 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13026 | test_array [0] = 0 |
13027 | ||
13028 | ; | |
13029 | return 0; | |
13030 | } | |
13031 | _ACEOF | |
13032 | rm -f conftest.$ac_objext | |
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13034 | (eval $ac_compile) 2>conftest.er1 | |
13035 | ac_status=$? | |
13036 | grep -v '^ *+' conftest.er1 >conftest.err | |
13037 | rm -f conftest.er1 | |
13038 | cat conftest.err >&5 | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); } && | |
b4e70030 JB |
13041 | { ac_try='test -z "$ac_c_werror_flag" |
13042 | || test ! -s conftest.err' | |
4e8d927d DJ |
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13044 | (eval $ac_try) 2>&5 | |
13045 | ac_status=$? | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); }; } && | |
13048 | { ac_try='test -s conftest.$ac_objext' | |
13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13050 | (eval $ac_try) 2>&5 | |
13051 | ac_status=$? | |
13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13053 | (exit $ac_status); }; }; then | |
13054 | ac_hi=$ac_mid; break | |
13055 | else | |
13056 | echo "$as_me: failed program was:" >&5 | |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13058 | ||
b4e70030 JB |
13059 | ac_lo=`expr $ac_mid + 1` |
13060 | if test $ac_lo -le $ac_mid; then | |
13061 | ac_lo= ac_hi= | |
13062 | break | |
13063 | fi | |
13064 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13065 | fi |
4e8d927d DJ |
13066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13067 | done | |
13068 | else | |
13069 | echo "$as_me: failed program was:" >&5 | |
13070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13071 | ||
b4e70030 | 13072 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13073 | /* confdefs.h. */ |
13074 | _ACEOF | |
13075 | cat confdefs.h >>conftest.$ac_ext | |
13076 | cat >>conftest.$ac_ext <<_ACEOF | |
13077 | /* end confdefs.h. */ | |
13078 | $ac_includes_default | |
4e8d927d DJ |
13079 | int |
13080 | main () | |
13081 | { | |
b4e70030 | 13082 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13083 | test_array [0] = 0 |
13084 | ||
13085 | ; | |
13086 | return 0; | |
13087 | } | |
13088 | _ACEOF | |
13089 | rm -f conftest.$ac_objext | |
13090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13091 | (eval $ac_compile) 2>conftest.er1 | |
13092 | ac_status=$? | |
13093 | grep -v '^ *+' conftest.er1 >conftest.err | |
13094 | rm -f conftest.er1 | |
13095 | cat conftest.err >&5 | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); } && | |
b4e70030 JB |
13098 | { ac_try='test -z "$ac_c_werror_flag" |
13099 | || test ! -s conftest.err' | |
4e8d927d DJ |
13100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13101 | (eval $ac_try) 2>&5 | |
13102 | ac_status=$? | |
13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13104 | (exit $ac_status); }; } && | |
13105 | { ac_try='test -s conftest.$ac_objext' | |
13106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13107 | (eval $ac_try) 2>&5 | |
13108 | ac_status=$? | |
13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13110 | (exit $ac_status); }; }; then | |
13111 | ac_hi=-1 ac_mid=-1 | |
13112 | while :; do | |
13113 | cat >conftest.$ac_ext <<_ACEOF | |
13114 | /* confdefs.h. */ | |
13115 | _ACEOF | |
13116 | cat confdefs.h >>conftest.$ac_ext | |
13117 | cat >>conftest.$ac_ext <<_ACEOF | |
13118 | /* end confdefs.h. */ | |
13119 | $ac_includes_default | |
4e8d927d DJ |
13120 | int |
13121 | main () | |
13122 | { | |
b4e70030 | 13123 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13124 | test_array [0] = 0 |
13125 | ||
13126 | ; | |
13127 | return 0; | |
13128 | } | |
13129 | _ACEOF | |
13130 | rm -f conftest.$ac_objext | |
13131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13132 | (eval $ac_compile) 2>conftest.er1 | |
13133 | ac_status=$? | |
13134 | grep -v '^ *+' conftest.er1 >conftest.err | |
13135 | rm -f conftest.er1 | |
13136 | cat conftest.err >&5 | |
13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13138 | (exit $ac_status); } && | |
b4e70030 JB |
13139 | { ac_try='test -z "$ac_c_werror_flag" |
13140 | || test ! -s conftest.err' | |
4e8d927d DJ |
13141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13142 | (eval $ac_try) 2>&5 | |
13143 | ac_status=$? | |
13144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13145 | (exit $ac_status); }; } && | |
13146 | { ac_try='test -s conftest.$ac_objext' | |
13147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13148 | (eval $ac_try) 2>&5 | |
13149 | ac_status=$? | |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13151 | (exit $ac_status); }; }; then | |
13152 | ac_lo=$ac_mid; break | |
13153 | else | |
13154 | echo "$as_me: failed program was:" >&5 | |
13155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13156 | ||
b4e70030 JB |
13157 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13158 | if test $ac_mid -le $ac_hi; then | |
13159 | ac_lo= ac_hi= | |
13160 | break | |
13161 | fi | |
13162 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13163 | fi |
4e8d927d DJ |
13164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13165 | done | |
13166 | else | |
13167 | echo "$as_me: failed program was:" >&5 | |
13168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13169 | ||
b4e70030 | 13170 | ac_lo= ac_hi= |
4e8d927d | 13171 | fi |
4e8d927d DJ |
13172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13173 | fi | |
4e8d927d DJ |
13174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13175 | # Binary search between lo and hi bounds. | |
13176 | while test "x$ac_lo" != "x$ac_hi"; do | |
13177 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13178 | cat >conftest.$ac_ext <<_ACEOF | |
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))) <= $ac_mid)]; |
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=$ac_mid | |
13218 | else | |
13219 | echo "$as_me: failed program was:" >&5 | |
13220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13221 | ||
b4e70030 | 13222 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13223 | fi |
4e8d927d DJ |
13224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13225 | done | |
13226 | case $ac_lo in | |
13227 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 13228 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13229 | See \`config.log' for more details." >&5 |
b4e70030 | 13230 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13231 | See \`config.log' for more details." >&2;} |
b4e70030 | 13232 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13233 | esac |
b4e70030 JB |
13234 | else |
13235 | if test "$cross_compiling" = yes; then | |
13236 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13237 | See \`config.log' for more details." >&5 | |
13238 | echo "$as_me: error: cannot run test program while cross compiling | |
13239 | See \`config.log' for more details." >&2;} | |
13240 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13241 | else |
13242 | cat >conftest.$ac_ext <<_ACEOF | |
13243 | /* confdefs.h. */ | |
13244 | _ACEOF | |
13245 | cat confdefs.h >>conftest.$ac_ext | |
13246 | cat >>conftest.$ac_ext <<_ACEOF | |
13247 | /* end confdefs.h. */ | |
13248 | $ac_includes_default | |
b4e70030 JB |
13249 | long longval () { return (long) (sizeof (short)); } |
13250 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
13251 | #include <stdio.h> |
13252 | #include <stdlib.h> | |
13253 | int | |
13254 | main () | |
13255 | { | |
13256 | ||
13257 | FILE *f = fopen ("conftest.val", "w"); | |
13258 | if (! f) | |
b4e70030 JB |
13259 | exit (1); |
13260 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 13261 | { |
b4e70030 JB |
13262 | long i = longval (); |
13263 | if (i != ((long) (sizeof (short)))) | |
13264 | exit (1); | |
4e8d927d DJ |
13265 | fprintf (f, "%ld\n", i); |
13266 | } | |
13267 | else | |
13268 | { | |
b4e70030 JB |
13269 | unsigned long i = ulongval (); |
13270 | if (i != ((long) (sizeof (short)))) | |
13271 | exit (1); | |
4e8d927d DJ |
13272 | fprintf (f, "%lu\n", i); |
13273 | } | |
b4e70030 | 13274 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13275 | |
13276 | ; | |
13277 | return 0; | |
13278 | } | |
13279 | _ACEOF | |
13280 | rm -f conftest$ac_exeext | |
13281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13282 | (eval $ac_link) 2>&5 | |
13283 | ac_status=$? | |
13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13287 | (eval $ac_try) 2>&5 | |
13288 | ac_status=$? | |
13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13290 | (exit $ac_status); }; }; then | |
13291 | ac_cv_sizeof_short=`cat conftest.val` | |
13292 | else | |
13293 | echo "$as_me: program exited with status $ac_status" >&5 | |
13294 | echo "$as_me: failed program was:" >&5 | |
13295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13296 | ||
13297 | ( exit $ac_status ) | |
b4e70030 | 13298 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13299 | See \`config.log' for more details." >&5 |
b4e70030 | 13300 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13301 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13302 | { (exit 1); exit 1; }; } |
13303 | fi | |
13304 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13305 | fi |
4e8d927d DJ |
13306 | fi |
13307 | rm -f conftest.val | |
13308 | else | |
13309 | ac_cv_sizeof_short=0 | |
13310 | fi | |
13311 | fi | |
b4e70030 JB |
13312 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13313 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
13314 | cat >>confdefs.h <<_ACEOF |
13315 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13316 | _ACEOF | |
13317 | ||
13318 | ||
b4e70030 JB |
13319 | echo "$as_me:$LINENO: checking for char" >&5 |
13320 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
13321 | if test "${ac_cv_type_char+set}" = set; then |
13322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13323 | else | |
13324 | cat >conftest.$ac_ext <<_ACEOF | |
13325 | /* confdefs.h. */ | |
13326 | _ACEOF | |
13327 | cat confdefs.h >>conftest.$ac_ext | |
13328 | cat >>conftest.$ac_ext <<_ACEOF | |
13329 | /* end confdefs.h. */ | |
13330 | $ac_includes_default | |
4e8d927d DJ |
13331 | int |
13332 | main () | |
13333 | { | |
b4e70030 | 13334 | if ((char *) 0) |
4e8d927d | 13335 | return 0; |
b4e70030 | 13336 | if (sizeof (char)) |
4e8d927d DJ |
13337 | return 0; |
13338 | ; | |
13339 | return 0; | |
13340 | } | |
13341 | _ACEOF | |
13342 | rm -f conftest.$ac_objext | |
13343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13344 | (eval $ac_compile) 2>conftest.er1 | |
13345 | ac_status=$? | |
13346 | grep -v '^ *+' conftest.er1 >conftest.err | |
13347 | rm -f conftest.er1 | |
13348 | cat conftest.err >&5 | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); } && | |
b4e70030 JB |
13351 | { ac_try='test -z "$ac_c_werror_flag" |
13352 | || test ! -s conftest.err' | |
4e8d927d DJ |
13353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13354 | (eval $ac_try) 2>&5 | |
13355 | ac_status=$? | |
13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13357 | (exit $ac_status); }; } && | |
13358 | { ac_try='test -s conftest.$ac_objext' | |
13359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13360 | (eval $ac_try) 2>&5 | |
13361 | ac_status=$? | |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13363 | (exit $ac_status); }; }; then | |
13364 | ac_cv_type_char=yes | |
13365 | else | |
13366 | echo "$as_me: failed program was:" >&5 | |
13367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13368 | ||
b4e70030 | 13369 | ac_cv_type_char=no |
4e8d927d | 13370 | fi |
4e8d927d DJ |
13371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13372 | fi | |
b4e70030 JB |
13373 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
13374 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 13375 | |
b4e70030 JB |
13376 | echo "$as_me:$LINENO: checking size of char" >&5 |
13377 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
13378 | if test "${ac_cv_sizeof_char+set}" = set; then |
13379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13380 | else | |
13381 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 13382 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13383 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13384 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13385 | # This bug is HP SR number 8606223364. | |
13386 | if test "$cross_compiling" = yes; then | |
13387 | # Depending upon the size, compute the lo and hi bounds. | |
13388 | cat >conftest.$ac_ext <<_ACEOF | |
13389 | /* confdefs.h. */ | |
13390 | _ACEOF | |
13391 | cat confdefs.h >>conftest.$ac_ext | |
13392 | cat >>conftest.$ac_ext <<_ACEOF | |
13393 | /* end confdefs.h. */ | |
13394 | $ac_includes_default | |
4e8d927d DJ |
13395 | int |
13396 | main () | |
13397 | { | |
b4e70030 | 13398 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
13399 | test_array [0] = 0 |
13400 | ||
13401 | ; | |
13402 | return 0; | |
13403 | } | |
13404 | _ACEOF | |
13405 | rm -f conftest.$ac_objext | |
13406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13407 | (eval $ac_compile) 2>conftest.er1 | |
13408 | ac_status=$? | |
13409 | grep -v '^ *+' conftest.er1 >conftest.err | |
13410 | rm -f conftest.er1 | |
13411 | cat conftest.err >&5 | |
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13413 | (exit $ac_status); } && | |
b4e70030 JB |
13414 | { ac_try='test -z "$ac_c_werror_flag" |
13415 | || test ! -s conftest.err' | |
4e8d927d DJ |
13416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13417 | (eval $ac_try) 2>&5 | |
13418 | ac_status=$? | |
13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13420 | (exit $ac_status); }; } && | |
13421 | { ac_try='test -s conftest.$ac_objext' | |
13422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13423 | (eval $ac_try) 2>&5 | |
13424 | ac_status=$? | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13426 | (exit $ac_status); }; }; then | |
13427 | ac_lo=0 ac_mid=0 | |
13428 | while :; do | |
13429 | cat >conftest.$ac_ext <<_ACEOF | |
13430 | /* confdefs.h. */ | |
13431 | _ACEOF | |
13432 | cat confdefs.h >>conftest.$ac_ext | |
13433 | cat >>conftest.$ac_ext <<_ACEOF | |
13434 | /* end confdefs.h. */ | |
13435 | $ac_includes_default | |
4e8d927d DJ |
13436 | int |
13437 | main () | |
13438 | { | |
b4e70030 | 13439 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13440 | test_array [0] = 0 |
13441 | ||
13442 | ; | |
13443 | return 0; | |
13444 | } | |
13445 | _ACEOF | |
13446 | rm -f conftest.$ac_objext | |
13447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13448 | (eval $ac_compile) 2>conftest.er1 | |
13449 | ac_status=$? | |
13450 | grep -v '^ *+' conftest.er1 >conftest.err | |
13451 | rm -f conftest.er1 | |
13452 | cat conftest.err >&5 | |
13453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13454 | (exit $ac_status); } && | |
b4e70030 JB |
13455 | { ac_try='test -z "$ac_c_werror_flag" |
13456 | || test ! -s conftest.err' | |
4e8d927d DJ |
13457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13458 | (eval $ac_try) 2>&5 | |
13459 | ac_status=$? | |
13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13461 | (exit $ac_status); }; } && | |
13462 | { ac_try='test -s conftest.$ac_objext' | |
13463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13464 | (eval $ac_try) 2>&5 | |
13465 | ac_status=$? | |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13467 | (exit $ac_status); }; }; then | |
13468 | ac_hi=$ac_mid; break | |
13469 | else | |
13470 | echo "$as_me: failed program was:" >&5 | |
13471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13472 | ||
b4e70030 JB |
13473 | ac_lo=`expr $ac_mid + 1` |
13474 | if test $ac_lo -le $ac_mid; then | |
13475 | ac_lo= ac_hi= | |
13476 | break | |
13477 | fi | |
13478 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13479 | fi |
4e8d927d DJ |
13480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13481 | done | |
13482 | else | |
13483 | echo "$as_me: failed program was:" >&5 | |
13484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13485 | ||
b4e70030 | 13486 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13487 | /* confdefs.h. */ |
13488 | _ACEOF | |
13489 | cat confdefs.h >>conftest.$ac_ext | |
13490 | cat >>conftest.$ac_ext <<_ACEOF | |
13491 | /* end confdefs.h. */ | |
13492 | $ac_includes_default | |
4e8d927d DJ |
13493 | int |
13494 | main () | |
13495 | { | |
b4e70030 | 13496 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
13497 | test_array [0] = 0 |
13498 | ||
13499 | ; | |
13500 | return 0; | |
13501 | } | |
13502 | _ACEOF | |
13503 | rm -f conftest.$ac_objext | |
13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13505 | (eval $ac_compile) 2>conftest.er1 | |
13506 | ac_status=$? | |
13507 | grep -v '^ *+' conftest.er1 >conftest.err | |
13508 | rm -f conftest.er1 | |
13509 | cat conftest.err >&5 | |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13511 | (exit $ac_status); } && | |
b4e70030 JB |
13512 | { ac_try='test -z "$ac_c_werror_flag" |
13513 | || test ! -s conftest.err' | |
4e8d927d DJ |
13514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13515 | (eval $ac_try) 2>&5 | |
13516 | ac_status=$? | |
13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13518 | (exit $ac_status); }; } && | |
13519 | { ac_try='test -s conftest.$ac_objext' | |
13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13521 | (eval $ac_try) 2>&5 | |
13522 | ac_status=$? | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); }; }; then | |
13525 | ac_hi=-1 ac_mid=-1 | |
13526 | while :; do | |
13527 | cat >conftest.$ac_ext <<_ACEOF | |
13528 | /* confdefs.h. */ | |
13529 | _ACEOF | |
13530 | cat confdefs.h >>conftest.$ac_ext | |
13531 | cat >>conftest.$ac_ext <<_ACEOF | |
13532 | /* end confdefs.h. */ | |
13533 | $ac_includes_default | |
4e8d927d DJ |
13534 | int |
13535 | main () | |
13536 | { | |
b4e70030 | 13537 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
13538 | test_array [0] = 0 |
13539 | ||
13540 | ; | |
13541 | return 0; | |
13542 | } | |
13543 | _ACEOF | |
13544 | rm -f conftest.$ac_objext | |
13545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13546 | (eval $ac_compile) 2>conftest.er1 | |
13547 | ac_status=$? | |
13548 | grep -v '^ *+' conftest.er1 >conftest.err | |
13549 | rm -f conftest.er1 | |
13550 | cat conftest.err >&5 | |
13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13552 | (exit $ac_status); } && | |
b4e70030 JB |
13553 | { ac_try='test -z "$ac_c_werror_flag" |
13554 | || test ! -s conftest.err' | |
4e8d927d DJ |
13555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13556 | (eval $ac_try) 2>&5 | |
13557 | ac_status=$? | |
13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13559 | (exit $ac_status); }; } && | |
13560 | { ac_try='test -s conftest.$ac_objext' | |
13561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13562 | (eval $ac_try) 2>&5 | |
13563 | ac_status=$? | |
13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13565 | (exit $ac_status); }; }; then | |
13566 | ac_lo=$ac_mid; break | |
13567 | else | |
13568 | echo "$as_me: failed program was:" >&5 | |
13569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13570 | ||
b4e70030 JB |
13571 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13572 | if test $ac_mid -le $ac_hi; then | |
13573 | ac_lo= ac_hi= | |
13574 | break | |
13575 | fi | |
13576 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13577 | fi |
4e8d927d DJ |
13578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13579 | done | |
13580 | else | |
13581 | echo "$as_me: failed program was:" >&5 | |
13582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13583 | ||
b4e70030 | 13584 | ac_lo= ac_hi= |
4e8d927d | 13585 | fi |
4e8d927d DJ |
13586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13587 | fi | |
4e8d927d DJ |
13588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13589 | # Binary search between lo and hi bounds. | |
13590 | while test "x$ac_lo" != "x$ac_hi"; do | |
13591 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13592 | cat >conftest.$ac_ext <<_ACEOF | |
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))) <= $ac_mid)]; |
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=$ac_mid | |
13632 | else | |
13633 | echo "$as_me: failed program was:" >&5 | |
13634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13635 | ||
b4e70030 | 13636 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13637 | fi |
4e8d927d DJ |
13638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13639 | done | |
13640 | case $ac_lo in | |
13641 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 13642 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 13643 | See \`config.log' for more details." >&5 |
b4e70030 | 13644 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 13645 | See \`config.log' for more details." >&2;} |
b4e70030 | 13646 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13647 | esac |
b4e70030 JB |
13648 | else |
13649 | if test "$cross_compiling" = yes; then | |
13650 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13651 | See \`config.log' for more details." >&5 | |
13652 | echo "$as_me: error: cannot run test program while cross compiling | |
13653 | See \`config.log' for more details." >&2;} | |
13654 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13655 | else |
13656 | cat >conftest.$ac_ext <<_ACEOF | |
13657 | /* confdefs.h. */ | |
13658 | _ACEOF | |
13659 | cat confdefs.h >>conftest.$ac_ext | |
13660 | cat >>conftest.$ac_ext <<_ACEOF | |
13661 | /* end confdefs.h. */ | |
13662 | $ac_includes_default | |
b4e70030 JB |
13663 | long longval () { return (long) (sizeof (char)); } |
13664 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
13665 | #include <stdio.h> |
13666 | #include <stdlib.h> | |
13667 | int | |
13668 | main () | |
13669 | { | |
13670 | ||
13671 | FILE *f = fopen ("conftest.val", "w"); | |
13672 | if (! f) | |
b4e70030 JB |
13673 | exit (1); |
13674 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 13675 | { |
b4e70030 JB |
13676 | long i = longval (); |
13677 | if (i != ((long) (sizeof (char)))) | |
13678 | exit (1); | |
4e8d927d DJ |
13679 | fprintf (f, "%ld\n", i); |
13680 | } | |
13681 | else | |
13682 | { | |
b4e70030 JB |
13683 | unsigned long i = ulongval (); |
13684 | if (i != ((long) (sizeof (char)))) | |
13685 | exit (1); | |
4e8d927d DJ |
13686 | fprintf (f, "%lu\n", i); |
13687 | } | |
b4e70030 | 13688 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13689 | |
13690 | ; | |
13691 | return 0; | |
13692 | } | |
13693 | _ACEOF | |
13694 | rm -f conftest$ac_exeext | |
13695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13696 | (eval $ac_link) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13701 | (eval $ac_try) 2>&5 | |
13702 | ac_status=$? | |
13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 | (exit $ac_status); }; }; then | |
13705 | ac_cv_sizeof_char=`cat conftest.val` | |
13706 | else | |
13707 | echo "$as_me: program exited with status $ac_status" >&5 | |
13708 | echo "$as_me: failed program was:" >&5 | |
13709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13710 | ||
13711 | ( exit $ac_status ) | |
b4e70030 | 13712 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 13713 | See \`config.log' for more details." >&5 |
b4e70030 | 13714 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 13715 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13716 | { (exit 1); exit 1; }; } |
13717 | fi | |
13718 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13719 | fi |
4e8d927d DJ |
13720 | fi |
13721 | rm -f conftest.val | |
13722 | else | |
13723 | ac_cv_sizeof_char=0 | |
13724 | fi | |
13725 | fi | |
b4e70030 JB |
13726 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13727 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
13728 | cat >>confdefs.h <<_ACEOF |
13729 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13730 | _ACEOF | |
13731 | ||
13732 | ||
13733 | ||
b4e70030 JB |
13734 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
13735 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13736 | case "$ac_cv_sizeof_char" in |
13737 | 1) acx_cv_type_int8_t=char ;; | |
13738 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
13739 | echo "$as_me: error: no 8-bit type" >&2;} | |
13740 | { (exit please report a bug); exit please report a bug; }; } | |
13741 | esac | |
b4e70030 JB |
13742 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
13743 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 13744 | |
b4e70030 JB |
13745 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
13746 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13747 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
13748 | 2:*) acx_cv_type_int16_t=int ;; | |
13749 | *:2) acx_cv_type_int16_t=short ;; | |
13750 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
13751 | echo "$as_me: error: no 16-bit type" >&2;} | |
13752 | { (exit please report a bug); exit please report a bug; }; } | |
13753 | esac | |
b4e70030 JB |
13754 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
13755 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 13756 | |
b4e70030 JB |
13757 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
13758 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13759 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
13760 | 4:*) acx_cv_type_int32_t=int ;; | |
13761 | *:4) acx_cv_type_int32_t=long ;; | |
13762 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
13763 | echo "$as_me: error: no 32-bit type" >&2;} | |
13764 | { (exit please report a bug); exit please report a bug; }; } | |
13765 | esac | |
b4e70030 JB |
13766 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
13767 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
13768 | fi |
13769 | ||
13770 | # These tests are here to make the output prettier | |
13771 | ||
13772 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
13773 | case "$ac_cv_sizeof_long" in | |
13774 | 8) acx_cv_type_int64_t=long ;; | |
13775 | esac | |
b4e70030 JB |
13776 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
13777 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
13778 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
13779 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
13780 | fi |
13781 | ||
13782 | # Now we can use the above types | |
13783 | ||
13784 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
13785 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
13786 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
13787 | case $ac_cv_sizeof_void_p in |
13788 | 2) acx_cv_type_intptr_t=int16_t ;; | |
13789 | 4) acx_cv_type_intptr_t=int32_t ;; | |
13790 | 8) acx_cv_type_intptr_t=int64_t ;; | |
13791 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
13792 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
13793 | { (exit please report a bug); exit please report a bug; }; } | |
13794 | esac | |
b4e70030 JB |
13795 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
13796 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
13797 | fi |
13798 | ||
13799 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 13800 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
13801 | |
13802 | ||
13803 | ||
13804 | ||
13805 | # ------------------------- # | |
13806 | # Checks for declarations. # | |
13807 | # ------------------------- # | |
13808 | ||
b4e70030 JB |
13809 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
13810 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
13811 | if test "${ac_cv_have_decl_free+set}" = set; then |
13812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13813 | else | |
13814 | cat >conftest.$ac_ext <<_ACEOF | |
13815 | /* confdefs.h. */ | |
13816 | _ACEOF | |
13817 | cat confdefs.h >>conftest.$ac_ext | |
13818 | cat >>conftest.$ac_ext <<_ACEOF | |
13819 | /* end confdefs.h. */ | |
13820 | $ac_includes_default | |
13821 | int | |
13822 | main () | |
13823 | { | |
13824 | #ifndef free | |
13825 | char *p = (char *) free; | |
4e8d927d DJ |
13826 | #endif |
13827 | ||
13828 | ; | |
13829 | return 0; | |
13830 | } | |
13831 | _ACEOF | |
13832 | rm -f conftest.$ac_objext | |
13833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13834 | (eval $ac_compile) 2>conftest.er1 | |
13835 | ac_status=$? | |
13836 | grep -v '^ *+' conftest.er1 >conftest.err | |
13837 | rm -f conftest.er1 | |
13838 | cat conftest.err >&5 | |
13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13840 | (exit $ac_status); } && | |
b4e70030 JB |
13841 | { ac_try='test -z "$ac_c_werror_flag" |
13842 | || test ! -s conftest.err' | |
4e8d927d DJ |
13843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13844 | (eval $ac_try) 2>&5 | |
13845 | ac_status=$? | |
13846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13847 | (exit $ac_status); }; } && | |
13848 | { ac_try='test -s conftest.$ac_objext' | |
13849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13850 | (eval $ac_try) 2>&5 | |
13851 | ac_status=$? | |
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13853 | (exit $ac_status); }; }; then | |
13854 | ac_cv_have_decl_free=yes | |
13855 | else | |
13856 | echo "$as_me: failed program was:" >&5 | |
13857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13858 | ||
b4e70030 | 13859 | ac_cv_have_decl_free=no |
4e8d927d | 13860 | fi |
4e8d927d DJ |
13861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13862 | fi | |
b4e70030 JB |
13863 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
13864 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
13865 | if test $ac_cv_have_decl_free = yes; then |
13866 | ||
13867 | cat >>confdefs.h <<_ACEOF | |
13868 | #define HAVE_DECL_FREE 1 | |
13869 | _ACEOF | |
13870 | ||
13871 | ||
13872 | else | |
13873 | cat >>confdefs.h <<_ACEOF | |
13874 | #define HAVE_DECL_FREE 0 | |
13875 | _ACEOF | |
13876 | ||
13877 | ||
13878 | fi | |
b4e70030 JB |
13879 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
13880 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
13881 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
13882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13883 | else | |
13884 | cat >conftest.$ac_ext <<_ACEOF | |
13885 | /* confdefs.h. */ | |
13886 | _ACEOF | |
13887 | cat confdefs.h >>conftest.$ac_ext | |
13888 | cat >>conftest.$ac_ext <<_ACEOF | |
13889 | /* end confdefs.h. */ | |
13890 | $ac_includes_default | |
13891 | int | |
13892 | main () | |
13893 | { | |
13894 | #ifndef malloc | |
13895 | char *p = (char *) malloc; | |
4e8d927d DJ |
13896 | #endif |
13897 | ||
13898 | ; | |
13899 | return 0; | |
13900 | } | |
13901 | _ACEOF | |
13902 | rm -f conftest.$ac_objext | |
13903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13904 | (eval $ac_compile) 2>conftest.er1 | |
13905 | ac_status=$? | |
13906 | grep -v '^ *+' conftest.er1 >conftest.err | |
13907 | rm -f conftest.er1 | |
13908 | cat conftest.err >&5 | |
13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13910 | (exit $ac_status); } && | |
b4e70030 JB |
13911 | { ac_try='test -z "$ac_c_werror_flag" |
13912 | || test ! -s conftest.err' | |
4e8d927d DJ |
13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13914 | (eval $ac_try) 2>&5 | |
13915 | ac_status=$? | |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13917 | (exit $ac_status); }; } && | |
13918 | { ac_try='test -s conftest.$ac_objext' | |
13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13920 | (eval $ac_try) 2>&5 | |
13921 | ac_status=$? | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); }; }; then | |
13924 | ac_cv_have_decl_malloc=yes | |
13925 | else | |
13926 | echo "$as_me: failed program was:" >&5 | |
13927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13928 | ||
b4e70030 | 13929 | ac_cv_have_decl_malloc=no |
4e8d927d | 13930 | fi |
4e8d927d DJ |
13931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13932 | fi | |
b4e70030 JB |
13933 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
13934 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
13935 | if test $ac_cv_have_decl_malloc = yes; then |
13936 | ||
13937 | cat >>confdefs.h <<_ACEOF | |
13938 | #define HAVE_DECL_MALLOC 1 | |
13939 | _ACEOF | |
13940 | ||
13941 | ||
13942 | else | |
13943 | cat >>confdefs.h <<_ACEOF | |
13944 | #define HAVE_DECL_MALLOC 0 | |
13945 | _ACEOF | |
13946 | ||
13947 | ||
13948 | fi | |
b4e70030 JB |
13949 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
13950 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
13951 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
13952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13953 | else | |
13954 | cat >conftest.$ac_ext <<_ACEOF | |
13955 | /* confdefs.h. */ | |
13956 | _ACEOF | |
13957 | cat confdefs.h >>conftest.$ac_ext | |
13958 | cat >>conftest.$ac_ext <<_ACEOF | |
13959 | /* end confdefs.h. */ | |
13960 | $ac_includes_default | |
13961 | int | |
13962 | main () | |
13963 | { | |
13964 | #ifndef realloc | |
13965 | char *p = (char *) realloc; | |
4e8d927d DJ |
13966 | #endif |
13967 | ||
13968 | ; | |
13969 | return 0; | |
13970 | } | |
13971 | _ACEOF | |
13972 | rm -f conftest.$ac_objext | |
13973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13974 | (eval $ac_compile) 2>conftest.er1 | |
13975 | ac_status=$? | |
13976 | grep -v '^ *+' conftest.er1 >conftest.err | |
13977 | rm -f conftest.er1 | |
13978 | cat conftest.err >&5 | |
13979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13980 | (exit $ac_status); } && | |
b4e70030 JB |
13981 | { ac_try='test -z "$ac_c_werror_flag" |
13982 | || test ! -s conftest.err' | |
4e8d927d DJ |
13983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13984 | (eval $ac_try) 2>&5 | |
13985 | ac_status=$? | |
13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13987 | (exit $ac_status); }; } && | |
13988 | { ac_try='test -s conftest.$ac_objext' | |
13989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13990 | (eval $ac_try) 2>&5 | |
13991 | ac_status=$? | |
13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13993 | (exit $ac_status); }; }; then | |
13994 | ac_cv_have_decl_realloc=yes | |
13995 | else | |
13996 | echo "$as_me: failed program was:" >&5 | |
13997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13998 | ||
b4e70030 | 13999 | ac_cv_have_decl_realloc=no |
4e8d927d | 14000 | fi |
4e8d927d DJ |
14001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14002 | fi | |
b4e70030 JB |
14003 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14004 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14005 | if test $ac_cv_have_decl_realloc = yes; then |
14006 | ||
14007 | cat >>confdefs.h <<_ACEOF | |
14008 | #define HAVE_DECL_REALLOC 1 | |
14009 | _ACEOF | |
14010 | ||
14011 | ||
14012 | else | |
14013 | cat >>confdefs.h <<_ACEOF | |
14014 | #define HAVE_DECL_REALLOC 0 | |
14015 | _ACEOF | |
14016 | ||
14017 | ||
14018 | fi | |
14019 | ||
14020 | ||
b4e70030 JB |
14021 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14022 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14023 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14025 | else | |
14026 | cat >conftest.$ac_ext <<_ACEOF | |
14027 | /* confdefs.h. */ | |
14028 | _ACEOF | |
14029 | cat confdefs.h >>conftest.$ac_ext | |
14030 | cat >>conftest.$ac_ext <<_ACEOF | |
14031 | /* end confdefs.h. */ | |
14032 | $ac_includes_default | |
14033 | int | |
14034 | main () | |
14035 | { | |
14036 | #ifndef strerror | |
14037 | char *p = (char *) strerror; | |
4e8d927d DJ |
14038 | #endif |
14039 | ||
14040 | ; | |
14041 | return 0; | |
14042 | } | |
14043 | _ACEOF | |
14044 | rm -f conftest.$ac_objext | |
14045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14046 | (eval $ac_compile) 2>conftest.er1 | |
14047 | ac_status=$? | |
14048 | grep -v '^ *+' conftest.er1 >conftest.err | |
14049 | rm -f conftest.er1 | |
14050 | cat conftest.err >&5 | |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14052 | (exit $ac_status); } && | |
b4e70030 JB |
14053 | { ac_try='test -z "$ac_c_werror_flag" |
14054 | || test ! -s conftest.err' | |
4e8d927d DJ |
14055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14056 | (eval $ac_try) 2>&5 | |
14057 | ac_status=$? | |
14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14059 | (exit $ac_status); }; } && | |
14060 | { ac_try='test -s conftest.$ac_objext' | |
14061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14062 | (eval $ac_try) 2>&5 | |
14063 | ac_status=$? | |
14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14065 | (exit $ac_status); }; }; then | |
14066 | ac_cv_have_decl_strerror=yes | |
14067 | else | |
14068 | echo "$as_me: failed program was:" >&5 | |
14069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14070 | ||
b4e70030 | 14071 | ac_cv_have_decl_strerror=no |
4e8d927d | 14072 | fi |
4e8d927d DJ |
14073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14074 | fi | |
b4e70030 JB |
14075 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14076 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14077 | if test $ac_cv_have_decl_strerror = yes; then |
14078 | ||
14079 | cat >>confdefs.h <<_ACEOF | |
14080 | #define HAVE_DECL_STRERROR 1 | |
14081 | _ACEOF | |
14082 | ||
14083 | ||
14084 | else | |
14085 | cat >>confdefs.h <<_ACEOF | |
14086 | #define HAVE_DECL_STRERROR 0 | |
14087 | _ACEOF | |
14088 | ||
14089 | ||
14090 | fi | |
b4e70030 JB |
14091 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14092 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14093 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14095 | else | |
14096 | cat >conftest.$ac_ext <<_ACEOF | |
14097 | /* confdefs.h. */ | |
14098 | _ACEOF | |
14099 | cat confdefs.h >>conftest.$ac_ext | |
14100 | cat >>conftest.$ac_ext <<_ACEOF | |
14101 | /* end confdefs.h. */ | |
14102 | $ac_includes_default | |
14103 | int | |
14104 | main () | |
14105 | { | |
14106 | #ifndef strstr | |
14107 | char *p = (char *) strstr; | |
4e8d927d DJ |
14108 | #endif |
14109 | ||
14110 | ; | |
14111 | return 0; | |
14112 | } | |
14113 | _ACEOF | |
14114 | rm -f conftest.$ac_objext | |
14115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14116 | (eval $ac_compile) 2>conftest.er1 | |
14117 | ac_status=$? | |
14118 | grep -v '^ *+' conftest.er1 >conftest.err | |
14119 | rm -f conftest.er1 | |
14120 | cat conftest.err >&5 | |
14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14122 | (exit $ac_status); } && | |
b4e70030 JB |
14123 | { ac_try='test -z "$ac_c_werror_flag" |
14124 | || test ! -s conftest.err' | |
4e8d927d DJ |
14125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14126 | (eval $ac_try) 2>&5 | |
14127 | ac_status=$? | |
14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); }; } && | |
14130 | { ac_try='test -s conftest.$ac_objext' | |
14131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14132 | (eval $ac_try) 2>&5 | |
14133 | ac_status=$? | |
14134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14135 | (exit $ac_status); }; }; then | |
14136 | ac_cv_have_decl_strstr=yes | |
14137 | else | |
14138 | echo "$as_me: failed program was:" >&5 | |
14139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14140 | ||
b4e70030 | 14141 | ac_cv_have_decl_strstr=no |
4e8d927d | 14142 | fi |
4e8d927d DJ |
14143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14144 | fi | |
b4e70030 JB |
14145 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14146 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14147 | if test $ac_cv_have_decl_strstr = yes; then |
14148 | ||
14149 | cat >>confdefs.h <<_ACEOF | |
14150 | #define HAVE_DECL_STRSTR 1 | |
14151 | _ACEOF | |
14152 | ||
14153 | ||
14154 | else | |
14155 | cat >>confdefs.h <<_ACEOF | |
14156 | #define HAVE_DECL_STRSTR 0 | |
14157 | _ACEOF | |
14158 | ||
14159 | ||
14160 | fi | |
14161 | ||
14162 | ||
b4e70030 JB |
14163 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14164 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14165 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14167 | else | |
14168 | cat >conftest.$ac_ext <<_ACEOF | |
14169 | /* confdefs.h. */ | |
14170 | _ACEOF | |
14171 | cat confdefs.h >>conftest.$ac_ext | |
14172 | cat >>conftest.$ac_ext <<_ACEOF | |
14173 | /* end confdefs.h. */ | |
14174 | $ac_includes_default | |
14175 | int | |
14176 | main () | |
14177 | { | |
14178 | #ifndef getopt | |
14179 | char *p = (char *) getopt; | |
4e8d927d DJ |
14180 | #endif |
14181 | ||
14182 | ; | |
14183 | return 0; | |
14184 | } | |
14185 | _ACEOF | |
14186 | rm -f conftest.$ac_objext | |
14187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14188 | (eval $ac_compile) 2>conftest.er1 | |
14189 | ac_status=$? | |
14190 | grep -v '^ *+' conftest.er1 >conftest.err | |
14191 | rm -f conftest.er1 | |
14192 | cat conftest.err >&5 | |
14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14194 | (exit $ac_status); } && | |
b4e70030 JB |
14195 | { ac_try='test -z "$ac_c_werror_flag" |
14196 | || test ! -s conftest.err' | |
4e8d927d DJ |
14197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14198 | (eval $ac_try) 2>&5 | |
14199 | ac_status=$? | |
14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14201 | (exit $ac_status); }; } && | |
14202 | { ac_try='test -s conftest.$ac_objext' | |
14203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14204 | (eval $ac_try) 2>&5 | |
14205 | ac_status=$? | |
14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14207 | (exit $ac_status); }; }; then | |
14208 | ac_cv_have_decl_getopt=yes | |
14209 | else | |
14210 | echo "$as_me: failed program was:" >&5 | |
14211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14212 | ||
b4e70030 | 14213 | ac_cv_have_decl_getopt=no |
4e8d927d | 14214 | fi |
4e8d927d DJ |
14215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14216 | fi | |
b4e70030 JB |
14217 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
14218 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
14219 | if test $ac_cv_have_decl_getopt = yes; then |
14220 | ||
14221 | cat >>confdefs.h <<_ACEOF | |
14222 | #define HAVE_DECL_GETOPT 1 | |
14223 | _ACEOF | |
14224 | ||
14225 | ||
14226 | else | |
14227 | cat >>confdefs.h <<_ACEOF | |
14228 | #define HAVE_DECL_GETOPT 0 | |
14229 | _ACEOF | |
14230 | ||
14231 | ||
14232 | fi | |
b4e70030 JB |
14233 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
14234 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14235 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
14236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14237 | else | |
14238 | cat >conftest.$ac_ext <<_ACEOF | |
14239 | /* confdefs.h. */ | |
14240 | _ACEOF | |
14241 | cat confdefs.h >>conftest.$ac_ext | |
14242 | cat >>conftest.$ac_ext <<_ACEOF | |
14243 | /* end confdefs.h. */ | |
14244 | $ac_includes_default | |
14245 | int | |
14246 | main () | |
14247 | { | |
14248 | #ifndef snprintf | |
14249 | char *p = (char *) snprintf; | |
4e8d927d DJ |
14250 | #endif |
14251 | ||
14252 | ; | |
14253 | return 0; | |
14254 | } | |
14255 | _ACEOF | |
14256 | rm -f conftest.$ac_objext | |
14257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14258 | (eval $ac_compile) 2>conftest.er1 | |
14259 | ac_status=$? | |
14260 | grep -v '^ *+' conftest.er1 >conftest.err | |
14261 | rm -f conftest.er1 | |
14262 | cat conftest.err >&5 | |
14263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14264 | (exit $ac_status); } && | |
b4e70030 JB |
14265 | { ac_try='test -z "$ac_c_werror_flag" |
14266 | || test ! -s conftest.err' | |
4e8d927d DJ |
14267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14268 | (eval $ac_try) 2>&5 | |
14269 | ac_status=$? | |
14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14271 | (exit $ac_status); }; } && | |
14272 | { ac_try='test -s conftest.$ac_objext' | |
14273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14274 | (eval $ac_try) 2>&5 | |
14275 | ac_status=$? | |
14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14277 | (exit $ac_status); }; }; then | |
14278 | ac_cv_have_decl_snprintf=yes | |
14279 | else | |
14280 | echo "$as_me: failed program was:" >&5 | |
14281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14282 | ||
b4e70030 | 14283 | ac_cv_have_decl_snprintf=no |
4e8d927d | 14284 | fi |
4e8d927d DJ |
14285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14286 | fi | |
b4e70030 JB |
14287 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
14288 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
14289 | if test $ac_cv_have_decl_snprintf = yes; then |
14290 | ||
14291 | cat >>confdefs.h <<_ACEOF | |
14292 | #define HAVE_DECL_SNPRINTF 1 | |
14293 | _ACEOF | |
14294 | ||
14295 | ||
14296 | else | |
14297 | cat >>confdefs.h <<_ACEOF | |
14298 | #define HAVE_DECL_SNPRINTF 0 | |
14299 | _ACEOF | |
14300 | ||
14301 | ||
14302 | fi | |
b4e70030 JB |
14303 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14304 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14305 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
14306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14307 | else | |
14308 | cat >conftest.$ac_ext <<_ACEOF | |
14309 | /* confdefs.h. */ | |
14310 | _ACEOF | |
14311 | cat confdefs.h >>conftest.$ac_ext | |
14312 | cat >>conftest.$ac_ext <<_ACEOF | |
14313 | /* end confdefs.h. */ | |
14314 | $ac_includes_default | |
14315 | int | |
14316 | main () | |
14317 | { | |
14318 | #ifndef vsnprintf | |
14319 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
14320 | #endif |
14321 | ||
14322 | ; | |
14323 | return 0; | |
14324 | } | |
14325 | _ACEOF | |
14326 | rm -f conftest.$ac_objext | |
14327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14328 | (eval $ac_compile) 2>conftest.er1 | |
14329 | ac_status=$? | |
14330 | grep -v '^ *+' conftest.er1 >conftest.err | |
14331 | rm -f conftest.er1 | |
14332 | cat conftest.err >&5 | |
14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14334 | (exit $ac_status); } && | |
b4e70030 JB |
14335 | { ac_try='test -z "$ac_c_werror_flag" |
14336 | || test ! -s conftest.err' | |
4e8d927d DJ |
14337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14338 | (eval $ac_try) 2>&5 | |
14339 | ac_status=$? | |
14340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14341 | (exit $ac_status); }; } && | |
14342 | { ac_try='test -s conftest.$ac_objext' | |
14343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14344 | (eval $ac_try) 2>&5 | |
14345 | ac_status=$? | |
14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14347 | (exit $ac_status); }; }; then | |
14348 | ac_cv_have_decl_vsnprintf=yes | |
14349 | else | |
14350 | echo "$as_me: failed program was:" >&5 | |
14351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14352 | ||
b4e70030 | 14353 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 14354 | fi |
4e8d927d DJ |
14355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14356 | fi | |
b4e70030 JB |
14357 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
14358 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
14359 | if test $ac_cv_have_decl_vsnprintf = yes; then |
14360 | ||
14361 | cat >>confdefs.h <<_ACEOF | |
14362 | #define HAVE_DECL_VSNPRINTF 1 | |
14363 | _ACEOF | |
14364 | ||
14365 | ||
14366 | else | |
14367 | cat >>confdefs.h <<_ACEOF | |
14368 | #define HAVE_DECL_VSNPRINTF 0 | |
14369 | _ACEOF | |
14370 | ||
14371 | ||
14372 | fi | |
14373 | ||
14374 | ||
14375 | ||
14376 | # ----------------------- # | |
14377 | # Checks for structures. # | |
14378 | # ----------------------- # | |
14379 | ||
b4e70030 JB |
14380 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
14381 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
14382 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14384 | else | |
14385 | cat >conftest.$ac_ext <<_ACEOF | |
14386 | /* confdefs.h. */ | |
14387 | _ACEOF | |
14388 | cat confdefs.h >>conftest.$ac_ext | |
14389 | cat >>conftest.$ac_ext <<_ACEOF | |
14390 | /* end confdefs.h. */ | |
14391 | $ac_includes_default | |
14392 | int | |
14393 | main () | |
14394 | { | |
14395 | static struct stat ac_aggr; | |
14396 | if (ac_aggr.st_blocks) | |
14397 | return 0; | |
14398 | ; | |
14399 | return 0; | |
14400 | } | |
14401 | _ACEOF | |
14402 | rm -f conftest.$ac_objext | |
14403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14404 | (eval $ac_compile) 2>conftest.er1 | |
14405 | ac_status=$? | |
14406 | grep -v '^ *+' conftest.er1 >conftest.err | |
14407 | rm -f conftest.er1 | |
14408 | cat conftest.err >&5 | |
14409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14410 | (exit $ac_status); } && | |
b4e70030 JB |
14411 | { ac_try='test -z "$ac_c_werror_flag" |
14412 | || test ! -s conftest.err' | |
4e8d927d DJ |
14413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14414 | (eval $ac_try) 2>&5 | |
14415 | ac_status=$? | |
14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14417 | (exit $ac_status); }; } && | |
14418 | { ac_try='test -s conftest.$ac_objext' | |
14419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14420 | (eval $ac_try) 2>&5 | |
14421 | ac_status=$? | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); }; }; then | |
14424 | ac_cv_member_struct_stat_st_blocks=yes | |
14425 | else | |
14426 | echo "$as_me: failed program was:" >&5 | |
14427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14428 | ||
b4e70030 | 14429 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14430 | /* confdefs.h. */ |
14431 | _ACEOF | |
14432 | cat confdefs.h >>conftest.$ac_ext | |
14433 | cat >>conftest.$ac_ext <<_ACEOF | |
14434 | /* end confdefs.h. */ | |
14435 | $ac_includes_default | |
14436 | int | |
14437 | main () | |
14438 | { | |
14439 | static struct stat ac_aggr; | |
14440 | if (sizeof ac_aggr.st_blocks) | |
14441 | return 0; | |
14442 | ; | |
14443 | return 0; | |
14444 | } | |
14445 | _ACEOF | |
14446 | rm -f conftest.$ac_objext | |
14447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14448 | (eval $ac_compile) 2>conftest.er1 | |
14449 | ac_status=$? | |
14450 | grep -v '^ *+' conftest.er1 >conftest.err | |
14451 | rm -f conftest.er1 | |
14452 | cat conftest.err >&5 | |
14453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14454 | (exit $ac_status); } && | |
b4e70030 JB |
14455 | { ac_try='test -z "$ac_c_werror_flag" |
14456 | || test ! -s conftest.err' | |
4e8d927d DJ |
14457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14458 | (eval $ac_try) 2>&5 | |
14459 | ac_status=$? | |
14460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14461 | (exit $ac_status); }; } && | |
14462 | { ac_try='test -s conftest.$ac_objext' | |
14463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14464 | (eval $ac_try) 2>&5 | |
14465 | ac_status=$? | |
14466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14467 | (exit $ac_status); }; }; then | |
14468 | ac_cv_member_struct_stat_st_blocks=yes | |
14469 | else | |
14470 | echo "$as_me: failed program was:" >&5 | |
14471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14472 | ||
b4e70030 | 14473 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 14474 | fi |
4e8d927d DJ |
14475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14476 | fi | |
4e8d927d DJ |
14477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14478 | fi | |
b4e70030 JB |
14479 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
14480 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
14481 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
14482 | ||
14483 | cat >>confdefs.h <<_ACEOF | |
14484 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
14485 | _ACEOF | |
14486 | ||
14487 | ||
14488 | fi | |
14489 | ||
b4e70030 JB |
14490 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
14491 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
14492 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
14493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14494 | else | |
14495 | cat >conftest.$ac_ext <<_ACEOF | |
14496 | /* confdefs.h. */ | |
14497 | _ACEOF | |
14498 | cat confdefs.h >>conftest.$ac_ext | |
14499 | cat >>conftest.$ac_ext <<_ACEOF | |
14500 | /* end confdefs.h. */ | |
14501 | $ac_includes_default | |
14502 | int | |
14503 | main () | |
14504 | { | |
14505 | static struct stat ac_aggr; | |
14506 | if (ac_aggr.st_blksize) | |
14507 | return 0; | |
14508 | ; | |
14509 | return 0; | |
14510 | } | |
14511 | _ACEOF | |
14512 | rm -f conftest.$ac_objext | |
14513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14514 | (eval $ac_compile) 2>conftest.er1 | |
14515 | ac_status=$? | |
14516 | grep -v '^ *+' conftest.er1 >conftest.err | |
14517 | rm -f conftest.er1 | |
14518 | cat conftest.err >&5 | |
14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14520 | (exit $ac_status); } && | |
b4e70030 JB |
14521 | { ac_try='test -z "$ac_c_werror_flag" |
14522 | || test ! -s conftest.err' | |
4e8d927d DJ |
14523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14524 | (eval $ac_try) 2>&5 | |
14525 | ac_status=$? | |
14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14527 | (exit $ac_status); }; } && | |
14528 | { ac_try='test -s conftest.$ac_objext' | |
14529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14530 | (eval $ac_try) 2>&5 | |
14531 | ac_status=$? | |
14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14533 | (exit $ac_status); }; }; then | |
14534 | ac_cv_member_struct_stat_st_blksize=yes | |
14535 | else | |
14536 | echo "$as_me: failed program was:" >&5 | |
14537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14538 | ||
b4e70030 | 14539 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14540 | /* confdefs.h. */ |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
14545 | $ac_includes_default | |
14546 | int | |
14547 | main () | |
14548 | { | |
14549 | static struct stat ac_aggr; | |
14550 | if (sizeof ac_aggr.st_blksize) | |
14551 | return 0; | |
14552 | ; | |
14553 | return 0; | |
14554 | } | |
14555 | _ACEOF | |
14556 | rm -f conftest.$ac_objext | |
14557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14558 | (eval $ac_compile) 2>conftest.er1 | |
14559 | ac_status=$? | |
14560 | grep -v '^ *+' conftest.er1 >conftest.err | |
14561 | rm -f conftest.er1 | |
14562 | cat conftest.err >&5 | |
14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14564 | (exit $ac_status); } && | |
b4e70030 JB |
14565 | { ac_try='test -z "$ac_c_werror_flag" |
14566 | || test ! -s conftest.err' | |
4e8d927d DJ |
14567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14568 | (eval $ac_try) 2>&5 | |
14569 | ac_status=$? | |
14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14571 | (exit $ac_status); }; } && | |
14572 | { ac_try='test -s conftest.$ac_objext' | |
14573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14574 | (eval $ac_try) 2>&5 | |
14575 | ac_status=$? | |
14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14577 | (exit $ac_status); }; }; then | |
14578 | ac_cv_member_struct_stat_st_blksize=yes | |
14579 | else | |
14580 | echo "$as_me: failed program was:" >&5 | |
14581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14582 | ||
b4e70030 | 14583 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 14584 | fi |
4e8d927d DJ |
14585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14586 | fi | |
4e8d927d DJ |
14587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14588 | fi | |
b4e70030 JB |
14589 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
14590 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
14591 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
14592 | ||
14593 | cat >>confdefs.h <<_ACEOF | |
14594 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
14595 | _ACEOF | |
14596 | ||
14597 | ||
14598 | fi | |
14599 | ||
14600 | ||
14601 | # ------------------ # | |
14602 | # Checks for types. # | |
14603 | # ------------------ # | |
14604 | ||
b4e70030 JB |
14605 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
14606 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
14607 | if test "${ac_cv_type_signal+set}" = set; then |
14608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14609 | else | |
14610 | cat >conftest.$ac_ext <<_ACEOF | |
14611 | /* confdefs.h. */ | |
14612 | _ACEOF | |
14613 | cat confdefs.h >>conftest.$ac_ext | |
14614 | cat >>conftest.$ac_ext <<_ACEOF | |
14615 | /* end confdefs.h. */ | |
14616 | #include <sys/types.h> | |
14617 | #include <signal.h> | |
b4e70030 JB |
14618 | #ifdef signal |
14619 | # undef signal | |
14620 | #endif | |
14621 | #ifdef __cplusplus | |
14622 | extern "C" void (*signal (int, void (*)(int)))(int); | |
14623 | #else | |
14624 | void (*signal ()) (); | |
14625 | #endif | |
4e8d927d DJ |
14626 | |
14627 | int | |
14628 | main () | |
14629 | { | |
b4e70030 | 14630 | int i; |
4e8d927d DJ |
14631 | ; |
14632 | return 0; | |
14633 | } | |
14634 | _ACEOF | |
14635 | rm -f conftest.$ac_objext | |
14636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14637 | (eval $ac_compile) 2>conftest.er1 | |
14638 | ac_status=$? | |
14639 | grep -v '^ *+' conftest.er1 >conftest.err | |
14640 | rm -f conftest.er1 | |
14641 | cat conftest.err >&5 | |
14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14643 | (exit $ac_status); } && | |
b4e70030 JB |
14644 | { ac_try='test -z "$ac_c_werror_flag" |
14645 | || test ! -s conftest.err' | |
4e8d927d DJ |
14646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14647 | (eval $ac_try) 2>&5 | |
14648 | ac_status=$? | |
14649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14650 | (exit $ac_status); }; } && | |
14651 | { ac_try='test -s conftest.$ac_objext' | |
14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14653 | (eval $ac_try) 2>&5 | |
14654 | ac_status=$? | |
14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14656 | (exit $ac_status); }; }; then | |
b4e70030 | 14657 | ac_cv_type_signal=void |
4e8d927d DJ |
14658 | else |
14659 | echo "$as_me: failed program was:" >&5 | |
14660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14661 | ||
b4e70030 | 14662 | ac_cv_type_signal=int |
4e8d927d | 14663 | fi |
4e8d927d DJ |
14664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14665 | fi | |
b4e70030 JB |
14666 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
14667 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
14668 | |
14669 | cat >>confdefs.h <<_ACEOF | |
14670 | #define RETSIGTYPE $ac_cv_type_signal | |
14671 | _ACEOF | |
14672 | ||
14673 | ||
b4e70030 JB |
14674 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
14675 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14676 | if test "${ac_cv_type_socklen_t+set}" = set; then |
14677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14678 | else | |
14679 | cat >conftest.$ac_ext <<_ACEOF | |
14680 | /* confdefs.h. */ | |
14681 | _ACEOF | |
14682 | cat confdefs.h >>conftest.$ac_ext | |
14683 | cat >>conftest.$ac_ext <<_ACEOF | |
14684 | /* end confdefs.h. */ | |
14685 | #include <sys/types.h> | |
14686 | #include <sys/socket.h> | |
14687 | ||
14688 | ||
4e8d927d DJ |
14689 | int |
14690 | main () | |
14691 | { | |
b4e70030 | 14692 | if ((socklen_t *) 0) |
4e8d927d | 14693 | return 0; |
b4e70030 | 14694 | if (sizeof (socklen_t)) |
4e8d927d DJ |
14695 | return 0; |
14696 | ; | |
14697 | return 0; | |
14698 | } | |
14699 | _ACEOF | |
14700 | rm -f conftest.$ac_objext | |
14701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14702 | (eval $ac_compile) 2>conftest.er1 | |
14703 | ac_status=$? | |
14704 | grep -v '^ *+' conftest.er1 >conftest.err | |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); } && | |
b4e70030 JB |
14709 | { ac_try='test -z "$ac_c_werror_flag" |
14710 | || test ! -s conftest.err' | |
4e8d927d DJ |
14711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14712 | (eval $ac_try) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); }; } && | |
14716 | { ac_try='test -s conftest.$ac_objext' | |
14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14718 | (eval $ac_try) 2>&5 | |
14719 | ac_status=$? | |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 | (exit $ac_status); }; }; then | |
14722 | ac_cv_type_socklen_t=yes | |
14723 | else | |
14724 | echo "$as_me: failed program was:" >&5 | |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14726 | ||
b4e70030 | 14727 | ac_cv_type_socklen_t=no |
4e8d927d | 14728 | fi |
4e8d927d DJ |
14729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14730 | fi | |
b4e70030 JB |
14731 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
14732 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
14733 | if test $ac_cv_type_socklen_t = yes; then |
14734 | ||
14735 | cat >>confdefs.h <<_ACEOF | |
14736 | #define HAVE_SOCKLEN_T 1 | |
14737 | _ACEOF | |
14738 | ||
14739 | ||
14740 | fi | |
14741 | ||
b4e70030 JB |
14742 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
14743 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14744 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
14745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14746 | else | |
14747 | cat >conftest.$ac_ext <<_ACEOF | |
14748 | /* confdefs.h. */ | |
14749 | _ACEOF | |
14750 | cat confdefs.h >>conftest.$ac_ext | |
14751 | cat >>conftest.$ac_ext <<_ACEOF | |
14752 | /* end confdefs.h. */ | |
14753 | #include <stdint.h> | |
14754 | ||
4e8d927d DJ |
14755 | int |
14756 | main () | |
14757 | { | |
b4e70030 | 14758 | if ((uintptr_t *) 0) |
4e8d927d | 14759 | return 0; |
b4e70030 | 14760 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
14761 | return 0; |
14762 | ; | |
14763 | return 0; | |
14764 | } | |
14765 | _ACEOF | |
14766 | rm -f conftest.$ac_objext | |
14767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14768 | (eval $ac_compile) 2>conftest.er1 | |
14769 | ac_status=$? | |
14770 | grep -v '^ *+' conftest.er1 >conftest.err | |
14771 | rm -f conftest.er1 | |
14772 | cat conftest.err >&5 | |
14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14774 | (exit $ac_status); } && | |
b4e70030 JB |
14775 | { ac_try='test -z "$ac_c_werror_flag" |
14776 | || test ! -s conftest.err' | |
4e8d927d DJ |
14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14778 | (eval $ac_try) 2>&5 | |
14779 | ac_status=$? | |
14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14781 | (exit $ac_status); }; } && | |
14782 | { ac_try='test -s conftest.$ac_objext' | |
14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14787 | (exit $ac_status); }; }; then | |
14788 | ac_cv_type_uintptr_t=yes | |
14789 | else | |
14790 | echo "$as_me: failed program was:" >&5 | |
14791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14792 | ||
b4e70030 | 14793 | ac_cv_type_uintptr_t=no |
4e8d927d | 14794 | fi |
4e8d927d DJ |
14795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14796 | fi | |
b4e70030 JB |
14797 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
14798 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
14799 | if test $ac_cv_type_uintptr_t = yes; then |
14800 | ||
14801 | cat >>confdefs.h <<_ACEOF | |
14802 | #define HAVE_UINTPTR_T 1 | |
14803 | _ACEOF | |
14804 | ||
14805 | ||
14806 | fi | |
14807 | ||
14808 | ||
14809 | # ------------------------------------- # | |
14810 | # Checks for compiler characteristics. # | |
14811 | # ------------------------------------- # | |
14812 | ||
b4e70030 JB |
14813 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
14814 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
14815 | if test "${ac_cv_c_const+set}" = set; then |
14816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14817 | else | |
14818 | cat >conftest.$ac_ext <<_ACEOF | |
14819 | /* confdefs.h. */ | |
14820 | _ACEOF | |
14821 | cat confdefs.h >>conftest.$ac_ext | |
14822 | cat >>conftest.$ac_ext <<_ACEOF | |
14823 | /* end confdefs.h. */ | |
14824 | ||
14825 | int | |
14826 | main () | |
14827 | { | |
14828 | /* FIXME: Include the comments suggested by Paul. */ | |
14829 | #ifndef __cplusplus | |
14830 | /* Ultrix mips cc rejects this. */ | |
14831 | typedef int charset[2]; | |
14832 | const charset x; | |
14833 | /* SunOS 4.1.1 cc rejects this. */ | |
14834 | char const *const *ccp; | |
14835 | char **p; | |
14836 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14837 | struct point {int x, y;}; | |
14838 | static struct point const zero = {0,0}; | |
14839 | /* AIX XL C 1.02.0.0 rejects this. | |
14840 | It does not let you subtract one const X* pointer from another in | |
14841 | an arm of an if-expression whose if-part is not a constant | |
14842 | expression */ | |
14843 | const char *g = "string"; | |
14844 | ccp = &g + (g ? g-g : 0); | |
14845 | /* HPUX 7.0 cc rejects these. */ | |
14846 | ++ccp; | |
14847 | p = (char**) ccp; | |
14848 | ccp = (char const *const *) p; | |
14849 | { /* SCO 3.2v4 cc rejects this. */ | |
14850 | char *t; | |
14851 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14852 | ||
14853 | *t++ = 0; | |
4e8d927d DJ |
14854 | } |
14855 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14856 | int x[] = {25, 17}; | |
14857 | const int *foo = &x[0]; | |
14858 | ++foo; | |
14859 | } | |
14860 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14861 | typedef const int *iptr; | |
14862 | iptr p = 0; | |
14863 | ++p; | |
14864 | } | |
14865 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14866 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14867 | struct s { int j; const int *ap[3]; }; | |
14868 | struct s *b; b->j = 5; | |
14869 | } | |
14870 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14871 | const int foo = 10; | |
4e8d927d | 14872 | } |
4e8d927d DJ |
14873 | #endif |
14874 | ||
14875 | ; | |
14876 | return 0; | |
14877 | } | |
14878 | _ACEOF | |
14879 | rm -f conftest.$ac_objext | |
14880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14881 | (eval $ac_compile) 2>conftest.er1 | |
14882 | ac_status=$? | |
14883 | grep -v '^ *+' conftest.er1 >conftest.err | |
14884 | rm -f conftest.er1 | |
14885 | cat conftest.err >&5 | |
14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14887 | (exit $ac_status); } && | |
b4e70030 JB |
14888 | { ac_try='test -z "$ac_c_werror_flag" |
14889 | || test ! -s conftest.err' | |
4e8d927d DJ |
14890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14891 | (eval $ac_try) 2>&5 | |
14892 | ac_status=$? | |
14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14894 | (exit $ac_status); }; } && | |
14895 | { ac_try='test -s conftest.$ac_objext' | |
14896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14897 | (eval $ac_try) 2>&5 | |
14898 | ac_status=$? | |
14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14900 | (exit $ac_status); }; }; then | |
14901 | ac_cv_c_const=yes | |
14902 | else | |
14903 | echo "$as_me: failed program was:" >&5 | |
14904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14905 | ||
b4e70030 | 14906 | ac_cv_c_const=no |
4e8d927d | 14907 | fi |
4e8d927d DJ |
14908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14909 | fi | |
b4e70030 JB |
14910 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14911 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
14912 | if test $ac_cv_c_const = no; then |
14913 | ||
14914 | cat >>confdefs.h <<\_ACEOF | |
14915 | #define const | |
14916 | _ACEOF | |
14917 | ||
14918 | fi | |
14919 | ||
b4e70030 JB |
14920 | echo "$as_me:$LINENO: checking for inline" >&5 |
14921 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
14922 | if test "${ac_cv_c_inline+set}" = set; then |
14923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14924 | else | |
14925 | ac_cv_c_inline=no | |
14926 | for ac_kw in inline __inline__ __inline; do | |
14927 | cat >conftest.$ac_ext <<_ACEOF | |
14928 | /* confdefs.h. */ | |
14929 | _ACEOF | |
14930 | cat confdefs.h >>conftest.$ac_ext | |
14931 | cat >>conftest.$ac_ext <<_ACEOF | |
14932 | /* end confdefs.h. */ | |
14933 | #ifndef __cplusplus | |
14934 | typedef int foo_t; | |
14935 | static $ac_kw foo_t static_foo () {return 0; } | |
14936 | $ac_kw foo_t foo () {return 0; } | |
14937 | #endif | |
14938 | ||
14939 | _ACEOF | |
14940 | rm -f conftest.$ac_objext | |
14941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14942 | (eval $ac_compile) 2>conftest.er1 | |
14943 | ac_status=$? | |
14944 | grep -v '^ *+' conftest.er1 >conftest.err | |
14945 | rm -f conftest.er1 | |
14946 | cat conftest.err >&5 | |
14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14948 | (exit $ac_status); } && | |
b4e70030 JB |
14949 | { ac_try='test -z "$ac_c_werror_flag" |
14950 | || test ! -s conftest.err' | |
4e8d927d DJ |
14951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14952 | (eval $ac_try) 2>&5 | |
14953 | ac_status=$? | |
14954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14955 | (exit $ac_status); }; } && | |
14956 | { ac_try='test -s conftest.$ac_objext' | |
14957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14958 | (eval $ac_try) 2>&5 | |
14959 | ac_status=$? | |
14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14961 | (exit $ac_status); }; }; then | |
b4e70030 | 14962 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
14963 | else |
14964 | echo "$as_me: failed program was:" >&5 | |
14965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14966 | ||
4e8d927d | 14967 | fi |
4e8d927d | 14968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
14969 | done |
14970 | ||
14971 | fi | |
b4e70030 JB |
14972 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14973 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 14974 | |
bec39cab | 14975 | |
a3828db0 MK |
14976 | case $ac_cv_c_inline in |
14977 | inline | yes) ;; | |
14978 | *) | |
14979 | case $ac_cv_c_inline in | |
14980 | no) ac_val=;; | |
14981 | *) ac_val=$ac_cv_c_inline;; | |
14982 | esac | |
14983 | cat >>confdefs.h <<_ACEOF | |
14984 | #ifndef __cplusplus | |
14985 | #define inline $ac_val | |
14986 | #endif | |
14987 | _ACEOF | |
bec39cab AC |
14988 | ;; |
14989 | esac | |
bec39cab | 14990 | |
74c1b268 | 14991 | |
a3828db0 MK |
14992 | # ------------------------------ # |
14993 | # Checks for library functions. # | |
14994 | # ------------------------------ # | |
bec39cab | 14995 | |
a3828db0 MK |
14996 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
14997 | # for constant arguments. Useless! | |
b4e70030 JB |
14998 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
14999 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 15000 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
15001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15002 | else | |
15003 | cat >conftest.$ac_ext <<_ACEOF | |
15004 | /* confdefs.h. */ | |
15005 | _ACEOF | |
15006 | cat confdefs.h >>conftest.$ac_ext | |
15007 | cat >>conftest.$ac_ext <<_ACEOF | |
15008 | /* end confdefs.h. */ | |
a3828db0 | 15009 | #include <alloca.h> |
bec39cab AC |
15010 | int |
15011 | main () | |
15012 | { | |
a3828db0 | 15013 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
15014 | ; |
15015 | return 0; | |
15016 | } | |
15017 | _ACEOF | |
15018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15020 | (eval $ac_link) 2>conftest.er1 | |
15021 | ac_status=$? | |
15022 | grep -v '^ *+' conftest.er1 >conftest.err | |
15023 | rm -f conftest.er1 | |
15024 | cat conftest.err >&5 | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); } && | |
b4e70030 JB |
15027 | { ac_try='test -z "$ac_c_werror_flag" |
15028 | || test ! -s conftest.err' | |
bec39cab AC |
15029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15030 | (eval $ac_try) 2>&5 | |
15031 | ac_status=$? | |
15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15033 | (exit $ac_status); }; } && | |
15034 | { ac_try='test -s conftest$ac_exeext' | |
15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15036 | (eval $ac_try) 2>&5 | |
15037 | ac_status=$? | |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 | (exit $ac_status); }; }; then | |
a3828db0 | 15040 | ac_cv_working_alloca_h=yes |
bec39cab AC |
15041 | else |
15042 | echo "$as_me: failed program was:" >&5 | |
15043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15044 | ||
b4e70030 | 15045 | ac_cv_working_alloca_h=no |
bec39cab AC |
15046 | fi |
15047 | rm -f conftest.err conftest.$ac_objext \ | |
15048 | conftest$ac_exeext conftest.$ac_ext | |
15049 | fi | |
b4e70030 JB |
15050 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15051 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
15052 | if test $ac_cv_working_alloca_h = yes; then |
15053 | ||
15054 | cat >>confdefs.h <<\_ACEOF | |
15055 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 15056 | _ACEOF |
74c1b268 | 15057 | |
74c1b268 AC |
15058 | fi |
15059 | ||
b4e70030 JB |
15060 | echo "$as_me:$LINENO: checking for alloca" >&5 |
15061 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 15062 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 15063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 15064 | else |
bec39cab AC |
15065 | cat >conftest.$ac_ext <<_ACEOF |
15066 | /* confdefs.h. */ | |
15067 | _ACEOF | |
15068 | cat confdefs.h >>conftest.$ac_ext | |
15069 | cat >>conftest.$ac_ext <<_ACEOF | |
15070 | /* end confdefs.h. */ | |
a3828db0 MK |
15071 | #ifdef __GNUC__ |
15072 | # define alloca __builtin_alloca | |
15073 | #else | |
15074 | # ifdef _MSC_VER | |
15075 | # include <malloc.h> | |
15076 | # define alloca _alloca | |
15077 | # else | |
15078 | # if HAVE_ALLOCA_H | |
15079 | # include <alloca.h> | |
15080 | # else | |
15081 | # ifdef _AIX | |
15082 | #pragma alloca | |
15083 | # else | |
15084 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15085 | char *alloca (); | |
15086 | # endif | |
15087 | # endif | |
15088 | # endif | |
97bf5e38 | 15089 | # endif |
a3828db0 | 15090 | #endif |
97bf5e38 | 15091 | |
bec39cab AC |
15092 | int |
15093 | main () | |
15094 | { | |
a3828db0 | 15095 | char *p = (char *) alloca (1); |
bec39cab AC |
15096 | ; |
15097 | return 0; | |
15098 | } | |
15099 | _ACEOF | |
a3828db0 MK |
15100 | rm -f conftest.$ac_objext conftest$ac_exeext |
15101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15102 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15103 | ac_status=$? |
15104 | grep -v '^ *+' conftest.er1 >conftest.err | |
15105 | rm -f conftest.er1 | |
15106 | cat conftest.err >&5 | |
15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15108 | (exit $ac_status); } && | |
b4e70030 JB |
15109 | { ac_try='test -z "$ac_c_werror_flag" |
15110 | || test ! -s conftest.err' | |
bec39cab AC |
15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15112 | (eval $ac_try) 2>&5 | |
15113 | ac_status=$? | |
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15115 | (exit $ac_status); }; } && | |
a3828db0 | 15116 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15118 | (eval $ac_try) 2>&5 | |
15119 | ac_status=$? | |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15121 | (exit $ac_status); }; }; then | |
a3828db0 | 15122 | ac_cv_func_alloca_works=yes |
0200359f | 15123 | else |
bec39cab AC |
15124 | echo "$as_me: failed program was:" >&5 |
15125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 15126 | |
b4e70030 | 15127 | ac_cv_func_alloca_works=no |
0200359f | 15128 | fi |
a3828db0 MK |
15129 | rm -f conftest.err conftest.$ac_objext \ |
15130 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 15131 | fi |
b4e70030 JB |
15132 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15133 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 15134 | |
a3828db0 MK |
15135 | if test $ac_cv_func_alloca_works = yes; then |
15136 | ||
15137 | cat >>confdefs.h <<\_ACEOF | |
15138 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
15139 | _ACEOF |
15140 | ||
a3828db0 MK |
15141 | else |
15142 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15143 | # that cause trouble. Some versions do not even contain alloca or | |
15144 | # contain a buggy version. If you still want to use their alloca, | |
15145 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 15146 | |
b4e70030 | 15147 | ALLOCA=alloca.$ac_objext |
bec39cab | 15148 | |
a3828db0 MK |
15149 | cat >>confdefs.h <<\_ACEOF |
15150 | #define C_ALLOCA 1 | |
15151 | _ACEOF | |
bec39cab | 15152 | |
a3828db0 | 15153 | |
b4e70030 JB |
15154 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15155 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 15156 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 15157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 15158 | else |
a3828db0 | 15159 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15160 | /* confdefs.h. */ |
15161 | _ACEOF | |
15162 | cat confdefs.h >>conftest.$ac_ext | |
15163 | cat >>conftest.$ac_ext <<_ACEOF | |
15164 | /* end confdefs.h. */ | |
b4e70030 | 15165 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
15166 | webecray |
15167 | #else | |
15168 | wenotbecray | |
15169 | #endif | |
15170 | ||
15171 | _ACEOF | |
15172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15173 | $EGREP "webecray" >/dev/null 2>&1; then | |
15174 | ac_cv_os_cray=yes | |
15175 | else | |
15176 | ac_cv_os_cray=no | |
15177 | fi | |
15178 | rm -f conftest* | |
15179 | ||
15180 | fi | |
b4e70030 JB |
15181 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15182 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
15183 | if test $ac_cv_os_cray = yes; then |
15184 | for ac_func in _getb67 GETB67 getb67; do | |
15185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15186 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
15189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15190 | else | |
15191 | cat >conftest.$ac_ext <<_ACEOF | |
15192 | /* confdefs.h. */ | |
15193 | _ACEOF | |
15194 | cat confdefs.h >>conftest.$ac_ext | |
15195 | cat >>conftest.$ac_ext <<_ACEOF | |
15196 | /* end confdefs.h. */ | |
15197 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15199 | #define $ac_func innocuous_$ac_func | |
15200 | ||
15201 | /* System header to define __stub macros and hopefully few prototypes, | |
15202 | which can conflict with char $ac_func (); below. | |
15203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15204 | <limits.h> exists even on freestanding compilers. */ | |
15205 | ||
15206 | #ifdef __STDC__ | |
15207 | # include <limits.h> | |
15208 | #else | |
15209 | # include <assert.h> | |
15210 | #endif | |
15211 | ||
15212 | #undef $ac_func | |
15213 | ||
b4e70030 | 15214 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15215 | #ifdef __cplusplus |
15216 | extern "C" | |
b4e70030 | 15217 | { |
a3828db0 | 15218 | #endif |
b4e70030 JB |
15219 | /* We use char because int might match the return type of a gcc2 |
15220 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15221 | char $ac_func (); |
15222 | /* The GNU C library defines this for functions which it implements | |
15223 | to always fail with ENOSYS. Some functions are actually named | |
15224 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15226 | choke me |
b4e70030 JB |
15227 | #else |
15228 | char (*f) () = $ac_func; | |
15229 | #endif | |
15230 | #ifdef __cplusplus | |
15231 | } | |
a3828db0 MK |
15232 | #endif |
15233 | ||
15234 | int | |
15235 | main () | |
15236 | { | |
b4e70030 | 15237 | return f != $ac_func; |
a3828db0 MK |
15238 | ; |
15239 | return 0; | |
15240 | } | |
15241 | _ACEOF | |
15242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15244 | (eval $ac_link) 2>conftest.er1 | |
15245 | ac_status=$? | |
15246 | grep -v '^ *+' conftest.er1 >conftest.err | |
15247 | rm -f conftest.er1 | |
15248 | cat conftest.err >&5 | |
15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15250 | (exit $ac_status); } && | |
b4e70030 JB |
15251 | { ac_try='test -z "$ac_c_werror_flag" |
15252 | || test ! -s conftest.err' | |
a3828db0 MK |
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15254 | (eval $ac_try) 2>&5 | |
15255 | ac_status=$? | |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15257 | (exit $ac_status); }; } && | |
15258 | { ac_try='test -s conftest$ac_exeext' | |
15259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15260 | (eval $ac_try) 2>&5 | |
15261 | ac_status=$? | |
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15263 | (exit $ac_status); }; }; then | |
15264 | eval "$as_ac_var=yes" | |
15265 | else | |
15266 | echo "$as_me: failed program was:" >&5 | |
15267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15268 | ||
b4e70030 | 15269 | eval "$as_ac_var=no" |
a3828db0 MK |
15270 | fi |
15271 | rm -f conftest.err conftest.$ac_objext \ | |
15272 | conftest$ac_exeext conftest.$ac_ext | |
15273 | fi | |
b4e70030 JB |
15274 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15275 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15276 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15277 | ||
15278 | cat >>confdefs.h <<_ACEOF | |
15279 | #define CRAY_STACKSEG_END $ac_func | |
15280 | _ACEOF | |
15281 | ||
15282 | break | |
15283 | fi | |
15284 | ||
15285 | done | |
15286 | fi | |
15287 | ||
b4e70030 JB |
15288 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15289 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
15290 | if test "${ac_cv_c_stack_direction+set}" = set; then |
15291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15292 | else | |
15293 | if test "$cross_compiling" = yes; then | |
15294 | ac_cv_c_stack_direction=0 | |
15295 | else | |
15296 | cat >conftest.$ac_ext <<_ACEOF | |
15297 | /* confdefs.h. */ | |
15298 | _ACEOF | |
15299 | cat confdefs.h >>conftest.$ac_ext | |
15300 | cat >>conftest.$ac_ext <<_ACEOF | |
15301 | /* end confdefs.h. */ | |
15302 | int | |
15303 | find_stack_direction () | |
15304 | { | |
15305 | static char *addr = 0; | |
15306 | auto char dummy; | |
15307 | if (addr == 0) | |
15308 | { | |
15309 | addr = &dummy; | |
15310 | return find_stack_direction (); | |
15311 | } | |
15312 | else | |
15313 | return (&dummy > addr) ? 1 : -1; | |
15314 | } | |
15315 | ||
15316 | int | |
15317 | main () | |
15318 | { | |
b4e70030 | 15319 | exit (find_stack_direction () < 0); |
a3828db0 MK |
15320 | } |
15321 | _ACEOF | |
15322 | rm -f conftest$ac_exeext | |
15323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15324 | (eval $ac_link) 2>&5 | |
15325 | ac_status=$? | |
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15329 | (eval $ac_try) 2>&5 | |
15330 | ac_status=$? | |
15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15332 | (exit $ac_status); }; }; then | |
15333 | ac_cv_c_stack_direction=1 | |
15334 | else | |
15335 | echo "$as_me: program exited with status $ac_status" >&5 | |
15336 | echo "$as_me: failed program was:" >&5 | |
15337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15338 | ||
15339 | ( exit $ac_status ) | |
15340 | ac_cv_c_stack_direction=-1 | |
15341 | fi | |
b4e70030 | 15342 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
15343 | fi |
15344 | fi | |
b4e70030 JB |
15345 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15346 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
15347 | |
15348 | cat >>confdefs.h <<_ACEOF | |
15349 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15350 | _ACEOF | |
15351 | ||
15352 | ||
15353 | fi | |
15354 | ||
15355 | ||
15356 | ||
15357 | for ac_header in stdlib.h unistd.h | |
15358 | do | |
15359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15365 | fi | |
b4e70030 JB |
15366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
15368 | else |
15369 | # Is the header compilable? | |
b4e70030 JB |
15370 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15371 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
15372 | cat >conftest.$ac_ext <<_ACEOF |
15373 | /* confdefs.h. */ | |
15374 | _ACEOF | |
15375 | cat confdefs.h >>conftest.$ac_ext | |
15376 | cat >>conftest.$ac_ext <<_ACEOF | |
15377 | /* end confdefs.h. */ | |
15378 | $ac_includes_default | |
15379 | #include <$ac_header> | |
15380 | _ACEOF | |
15381 | rm -f conftest.$ac_objext | |
15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15383 | (eval $ac_compile) 2>conftest.er1 | |
15384 | ac_status=$? | |
bec39cab AC |
15385 | grep -v '^ *+' conftest.er1 >conftest.err |
15386 | rm -f conftest.er1 | |
15387 | cat conftest.err >&5 | |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 | (exit $ac_status); } && | |
b4e70030 JB |
15390 | { ac_try='test -z "$ac_c_werror_flag" |
15391 | || test ! -s conftest.err' | |
bec39cab AC |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; } && | |
15397 | { ac_try='test -s conftest.$ac_objext' | |
15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15402 | (exit $ac_status); }; }; then | |
15403 | ac_header_compiler=yes | |
15404 | else | |
15405 | echo "$as_me: failed program was:" >&5 | |
15406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15407 | ||
b4e70030 | 15408 | ac_header_compiler=no |
bec39cab AC |
15409 | fi |
15410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15411 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15412 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15413 | |
15414 | # Is the header present? | |
b4e70030 JB |
15415 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15417 | cat >conftest.$ac_ext <<_ACEOF |
15418 | /* confdefs.h. */ | |
15419 | _ACEOF | |
15420 | cat confdefs.h >>conftest.$ac_ext | |
15421 | cat >>conftest.$ac_ext <<_ACEOF | |
15422 | /* end confdefs.h. */ | |
15423 | #include <$ac_header> | |
15424 | _ACEOF | |
15425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15427 | ac_status=$? | |
15428 | grep -v '^ *+' conftest.er1 >conftest.err | |
15429 | rm -f conftest.er1 | |
15430 | cat conftest.err >&5 | |
15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15432 | (exit $ac_status); } >/dev/null; then | |
15433 | if test -s conftest.err; then | |
15434 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15435 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15436 | else | |
15437 | ac_cpp_err= | |
15438 | fi | |
15439 | else | |
15440 | ac_cpp_err=yes | |
15441 | fi | |
15442 | if test -z "$ac_cpp_err"; then | |
15443 | ac_header_preproc=yes | |
97bf5e38 | 15444 | else |
bec39cab AC |
15445 | echo "$as_me: failed program was:" >&5 |
15446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15447 | ||
15448 | ac_header_preproc=no | |
72473524 | 15449 | fi |
bec39cab | 15450 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15451 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15452 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 15453 | |
bec39cab AC |
15454 | # So? What about this header? |
15455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15456 | yes:no: ) | |
15457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15461 | ac_header_preproc=yes | |
15462 | ;; | |
15463 | no:yes:* ) | |
15464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15476 | ( |
15477 | cat <<\_ASBOX | |
15478 | ## ------------------------------------------ ## | |
15479 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15480 | ## ------------------------------------------ ## | |
15481 | _ASBOX | |
15482 | ) | | |
15483 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15484 | ;; |
15485 | esac | |
b4e70030 JB |
15486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15490 | else |
bec39cab AC |
15491 | eval "$as_ac_Header=\$ac_header_preproc" |
15492 | fi | |
b4e70030 JB |
15493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15495 | |
15496 | fi | |
15497 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15498 | cat >>confdefs.h <<_ACEOF | |
15499 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15500 | _ACEOF | |
15501 | ||
15502 | fi | |
15503 | ||
15504 | done | |
15505 | ||
15506 | ||
a3828db0 | 15507 | for ac_func in getpagesize |
bec39cab AC |
15508 | do |
15509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15510 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15512 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
15513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15514 | else | |
15515 | cat >conftest.$ac_ext <<_ACEOF | |
15516 | /* confdefs.h. */ | |
15517 | _ACEOF | |
15518 | cat confdefs.h >>conftest.$ac_ext | |
15519 | cat >>conftest.$ac_ext <<_ACEOF | |
15520 | /* end confdefs.h. */ | |
15521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15523 | #define $ac_func innocuous_$ac_func | |
15524 | ||
97bf5e38 | 15525 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15526 | which can conflict with char $ac_func (); below. |
15527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15528 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 15529 | |
bec39cab AC |
15530 | #ifdef __STDC__ |
15531 | # include <limits.h> | |
15532 | #else | |
15533 | # include <assert.h> | |
15534 | #endif | |
97bf5e38 | 15535 | |
bec39cab AC |
15536 | #undef $ac_func |
15537 | ||
b4e70030 | 15538 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
15539 | #ifdef __cplusplus |
15540 | extern "C" | |
b4e70030 | 15541 | { |
bec39cab | 15542 | #endif |
b4e70030 JB |
15543 | /* We use char because int might match the return type of a gcc2 |
15544 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 15545 | char $ac_func (); |
97bf5e38 MK |
15546 | /* The GNU C library defines this for functions which it implements |
15547 | to always fail with ENOSYS. Some functions are actually named | |
15548 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 15550 | choke me |
b4e70030 JB |
15551 | #else |
15552 | char (*f) () = $ac_func; | |
15553 | #endif | |
15554 | #ifdef __cplusplus | |
15555 | } | |
97bf5e38 MK |
15556 | #endif |
15557 | ||
bec39cab AC |
15558 | int |
15559 | main () | |
15560 | { | |
b4e70030 | 15561 | return f != $ac_func; |
bec39cab AC |
15562 | ; |
15563 | return 0; | |
15564 | } | |
15565 | _ACEOF | |
15566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15568 | (eval $ac_link) 2>conftest.er1 | |
15569 | ac_status=$? | |
15570 | grep -v '^ *+' conftest.er1 >conftest.err | |
15571 | rm -f conftest.er1 | |
15572 | cat conftest.err >&5 | |
15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15574 | (exit $ac_status); } && | |
b4e70030 JB |
15575 | { ac_try='test -z "$ac_c_werror_flag" |
15576 | || test ! -s conftest.err' | |
bec39cab AC |
15577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15578 | (eval $ac_try) 2>&5 | |
15579 | ac_status=$? | |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15581 | (exit $ac_status); }; } && | |
15582 | { ac_try='test -s conftest$ac_exeext' | |
15583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15584 | (eval $ac_try) 2>&5 | |
15585 | ac_status=$? | |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); }; }; then | |
15588 | eval "$as_ac_var=yes" | |
15589 | else | |
15590 | echo "$as_me: failed program was:" >&5 | |
15591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15592 | ||
b4e70030 | 15593 | eval "$as_ac_var=no" |
bec39cab AC |
15594 | fi |
15595 | rm -f conftest.err conftest.$ac_objext \ | |
15596 | conftest$ac_exeext conftest.$ac_ext | |
15597 | fi | |
b4e70030 JB |
15598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
15600 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15601 | cat >>confdefs.h <<_ACEOF | |
15602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15603 | _ACEOF | |
15604 | ||
2b2d558c | 15605 | fi |
bec39cab | 15606 | done |
2b2d558c | 15607 | |
b4e70030 JB |
15608 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
15609 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 15610 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 15611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15612 | else |
bec39cab | 15613 | if test "$cross_compiling" = yes; then |
a3828db0 | 15614 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
15615 | else |
15616 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 15617 | /* confdefs.h. */ |
bec39cab AC |
15618 | _ACEOF |
15619 | cat confdefs.h >>conftest.$ac_ext | |
15620 | cat >>conftest.$ac_ext <<_ACEOF | |
15621 | /* end confdefs.h. */ | |
a3828db0 MK |
15622 | $ac_includes_default |
15623 | /* malloc might have been renamed as rpl_malloc. */ | |
15624 | #undef malloc | |
bec39cab | 15625 | |
a3828db0 MK |
15626 | /* Thanks to Mike Haertel and Jim Avera for this test. |
15627 | Here is a matrix of mmap possibilities: | |
15628 | mmap private not fixed | |
15629 | mmap private fixed at somewhere currently unmapped | |
15630 | mmap private fixed at somewhere already mapped | |
15631 | mmap shared not fixed | |
15632 | mmap shared fixed at somewhere currently unmapped | |
15633 | mmap shared fixed at somewhere already mapped | |
15634 | For private mappings, we should verify that changes cannot be read() | |
15635 | back from the file, nor mmap's back from the file at a different | |
15636 | address. (There have been systems where private was not correctly | |
15637 | implemented like the infamous i386 svr4.0, and systems where the | |
15638 | VM page cache was not coherent with the file system buffer cache | |
15639 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
15640 | For shared mappings, we should conversely verify that changes get | |
15641 | propagated back to all the places they're supposed to be. | |
7dfa765c | 15642 | |
a3828db0 MK |
15643 | Grep wants private fixed already mapped. |
15644 | The main things grep needs to know about mmap are: | |
15645 | * does it exist and is it safe to write into the mmap'd area | |
15646 | * how to use it (BSD variants) */ | |
7dfa765c | 15647 | |
a3828db0 MK |
15648 | #include <fcntl.h> |
15649 | #include <sys/mman.h> | |
7dfa765c | 15650 | |
a3828db0 MK |
15651 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
15652 | char *malloc (); | |
15653 | #endif | |
7dfa765c | 15654 | |
a3828db0 MK |
15655 | /* This mess was copied from the GNU getpagesize.h. */ |
15656 | #if !HAVE_GETPAGESIZE | |
15657 | /* Assume that all systems that can run configure have sys/param.h. */ | |
15658 | # if !HAVE_SYS_PARAM_H | |
15659 | # define HAVE_SYS_PARAM_H 1 | |
15660 | # endif | |
64bb1671 | 15661 | |
a3828db0 MK |
15662 | # ifdef _SC_PAGESIZE |
15663 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
15664 | # else /* no _SC_PAGESIZE */ | |
15665 | # if HAVE_SYS_PARAM_H | |
15666 | # include <sys/param.h> | |
15667 | # ifdef EXEC_PAGESIZE | |
15668 | # define getpagesize() EXEC_PAGESIZE | |
15669 | # else /* no EXEC_PAGESIZE */ | |
15670 | # ifdef NBPG | |
15671 | # define getpagesize() NBPG * CLSIZE | |
15672 | # ifndef CLSIZE | |
15673 | # define CLSIZE 1 | |
15674 | # endif /* no CLSIZE */ | |
15675 | # else /* no NBPG */ | |
15676 | # ifdef NBPC | |
15677 | # define getpagesize() NBPC | |
15678 | # else /* no NBPC */ | |
15679 | # ifdef PAGESIZE | |
15680 | # define getpagesize() PAGESIZE | |
15681 | # endif /* PAGESIZE */ | |
15682 | # endif /* no NBPC */ | |
15683 | # endif /* no NBPG */ | |
15684 | # endif /* no EXEC_PAGESIZE */ | |
15685 | # else /* no HAVE_SYS_PARAM_H */ | |
15686 | # define getpagesize() 8192 /* punt totally */ | |
15687 | # endif /* no HAVE_SYS_PARAM_H */ | |
15688 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 15689 | |
a3828db0 | 15690 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 15691 | |
a3828db0 MK |
15692 | int |
15693 | main () | |
15694 | { | |
15695 | char *data, *data2, *data3; | |
15696 | int i, pagesize; | |
15697 | int fd; | |
97bf5e38 | 15698 | |
a3828db0 MK |
15699 | pagesize = getpagesize (); |
15700 | ||
15701 | /* First, make a file with some known garbage in it. */ | |
15702 | data = (char *) malloc (pagesize); | |
15703 | if (!data) | |
b4e70030 | 15704 | exit (1); |
a3828db0 MK |
15705 | for (i = 0; i < pagesize; ++i) |
15706 | *(data + i) = rand (); | |
15707 | umask (0); | |
15708 | fd = creat ("conftest.mmap", 0600); | |
15709 | if (fd < 0) | |
b4e70030 | 15710 | exit (1); |
a3828db0 | 15711 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 15712 | exit (1); |
a3828db0 MK |
15713 | close (fd); |
15714 | ||
15715 | /* Next, try to mmap the file at a fixed address which already has | |
15716 | something else allocated at it. If we can, also make sure that | |
15717 | we see the same garbage. */ | |
15718 | fd = open ("conftest.mmap", O_RDWR); | |
15719 | if (fd < 0) | |
b4e70030 | 15720 | exit (1); |
a3828db0 MK |
15721 | data2 = (char *) malloc (2 * pagesize); |
15722 | if (!data2) | |
b4e70030 JB |
15723 | exit (1); |
15724 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
15725 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
15726 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 15727 | exit (1); |
a3828db0 MK |
15728 | for (i = 0; i < pagesize; ++i) |
15729 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 15730 | exit (1); |
a3828db0 MK |
15731 | |
15732 | /* Finally, make sure that changes to the mapped area do not | |
15733 | percolate back to the file as seen by read(). (This is a bug on | |
15734 | some variants of i386 svr4.0.) */ | |
15735 | for (i = 0; i < pagesize; ++i) | |
15736 | *(data2 + i) = *(data2 + i) + 1; | |
15737 | data3 = (char *) malloc (pagesize); | |
15738 | if (!data3) | |
b4e70030 | 15739 | exit (1); |
a3828db0 | 15740 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 15741 | exit (1); |
a3828db0 MK |
15742 | for (i = 0; i < pagesize; ++i) |
15743 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 15744 | exit (1); |
a3828db0 | 15745 | close (fd); |
b4e70030 | 15746 | exit (0); |
97bf5e38 | 15747 | } |
bec39cab AC |
15748 | _ACEOF |
15749 | rm -f conftest$ac_exeext | |
15750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15751 | (eval $ac_link) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15756 | (eval $ac_try) 2>&5 | |
15757 | ac_status=$? | |
15758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15759 | (exit $ac_status); }; }; then | |
a3828db0 | 15760 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 15761 | else |
bec39cab AC |
15762 | echo "$as_me: program exited with status $ac_status" >&5 |
15763 | echo "$as_me: failed program was:" >&5 | |
15764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15765 | ||
15766 | ( exit $ac_status ) | |
a3828db0 | 15767 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 15768 | fi |
b4e70030 | 15769 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 15770 | fi |
a3828db0 | 15771 | fi |
b4e70030 JB |
15772 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
15773 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 15774 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
15775 | |
15776 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 15777 | #define HAVE_MMAP 1 |
bec39cab | 15778 | _ACEOF |
0afdd437 MK |
15779 | |
15780 | fi | |
a3828db0 | 15781 | rm -f conftest.mmap |
0afdd437 | 15782 | |
b4e70030 JB |
15783 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
15784 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 15785 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
15786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15787 | else | |
15788 | cat >conftest.$ac_ext <<_ACEOF | |
15789 | /* confdefs.h. */ | |
15790 | _ACEOF | |
15791 | cat confdefs.h >>conftest.$ac_ext | |
15792 | cat >>conftest.$ac_ext <<_ACEOF | |
15793 | /* end confdefs.h. */ | |
a3828db0 | 15794 | $ac_includes_default |
bec39cab AC |
15795 | int |
15796 | main () | |
15797 | { | |
b4e70030 | 15798 | if ((pid_t *) 0) |
a3828db0 | 15799 | return 0; |
b4e70030 | 15800 | if (sizeof (pid_t)) |
a3828db0 | 15801 | return 0; |
bec39cab AC |
15802 | ; |
15803 | return 0; | |
15804 | } | |
15805 | _ACEOF | |
a3828db0 MK |
15806 | rm -f conftest.$ac_objext |
15807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15808 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15809 | ac_status=$? |
15810 | grep -v '^ *+' conftest.er1 >conftest.err | |
15811 | rm -f conftest.er1 | |
15812 | cat conftest.err >&5 | |
15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15814 | (exit $ac_status); } && | |
b4e70030 JB |
15815 | { ac_try='test -z "$ac_c_werror_flag" |
15816 | || test ! -s conftest.err' | |
bec39cab AC |
15817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15818 | (eval $ac_try) 2>&5 | |
15819 | ac_status=$? | |
15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15821 | (exit $ac_status); }; } && | |
a3828db0 | 15822 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15824 | (eval $ac_try) 2>&5 | |
15825 | ac_status=$? | |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); }; }; then | |
a3828db0 | 15828 | ac_cv_type_pid_t=yes |
bec39cab AC |
15829 | else |
15830 | echo "$as_me: failed program was:" >&5 | |
15831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15832 | ||
b4e70030 | 15833 | ac_cv_type_pid_t=no |
bec39cab | 15834 | fi |
a3828db0 | 15835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 15836 | fi |
b4e70030 JB |
15837 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
15838 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
15839 | if test $ac_cv_type_pid_t = yes; then |
15840 | : | |
15841 | else | |
15842 | ||
15843 | cat >>confdefs.h <<_ACEOF | |
15844 | #define pid_t int | |
bec39cab | 15845 | _ACEOF |
7e89e357 | 15846 | |
7e89e357 JT |
15847 | fi |
15848 | ||
bec39cab | 15849 | |
b4e70030 JB |
15850 | |
15851 | for ac_header in unistd.h vfork.h | |
7be570e7 | 15852 | do |
a3828db0 | 15853 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
15854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 15859 | fi |
b4e70030 JB |
15860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15861 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15862 | else |
a3828db0 | 15863 | # Is the header compilable? |
b4e70030 JB |
15864 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15865 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 15866 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15867 | /* confdefs.h. */ |
15868 | _ACEOF | |
15869 | cat confdefs.h >>conftest.$ac_ext | |
15870 | cat >>conftest.$ac_ext <<_ACEOF | |
15871 | /* end confdefs.h. */ | |
a3828db0 MK |
15872 | $ac_includes_default |
15873 | #include <$ac_header> | |
bec39cab | 15874 | _ACEOF |
a3828db0 MK |
15875 | rm -f conftest.$ac_objext |
15876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15877 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15878 | ac_status=$? |
15879 | grep -v '^ *+' conftest.er1 >conftest.err | |
15880 | rm -f conftest.er1 | |
15881 | cat conftest.err >&5 | |
15882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15883 | (exit $ac_status); } && | |
b4e70030 JB |
15884 | { ac_try='test -z "$ac_c_werror_flag" |
15885 | || test ! -s conftest.err' | |
bec39cab AC |
15886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15887 | (eval $ac_try) 2>&5 | |
15888 | ac_status=$? | |
15889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15890 | (exit $ac_status); }; } && | |
a3828db0 | 15891 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15893 | (eval $ac_try) 2>&5 | |
15894 | ac_status=$? | |
15895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15896 | (exit $ac_status); }; }; then | |
a3828db0 | 15897 | ac_header_compiler=yes |
bec39cab AC |
15898 | else |
15899 | echo "$as_me: failed program was:" >&5 | |
15900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15901 | ||
b4e70030 | 15902 | ac_header_compiler=no |
bec39cab | 15903 | fi |
a3828db0 | 15904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
15905 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15906 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
15907 | |
15908 | # Is the header present? | |
b4e70030 JB |
15909 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15910 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
15911 | cat >conftest.$ac_ext <<_ACEOF |
15912 | /* confdefs.h. */ | |
15913 | _ACEOF | |
15914 | cat confdefs.h >>conftest.$ac_ext | |
15915 | cat >>conftest.$ac_ext <<_ACEOF | |
15916 | /* end confdefs.h. */ | |
15917 | #include <$ac_header> | |
15918 | _ACEOF | |
15919 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15920 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15921 | ac_status=$? | |
15922 | grep -v '^ *+' conftest.er1 >conftest.err | |
15923 | rm -f conftest.er1 | |
15924 | cat conftest.err >&5 | |
15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15926 | (exit $ac_status); } >/dev/null; then | |
15927 | if test -s conftest.err; then | |
15928 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15929 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15930 | else | |
15931 | ac_cpp_err= | |
15932 | fi | |
15933 | else | |
15934 | ac_cpp_err=yes | |
15935 | fi | |
15936 | if test -z "$ac_cpp_err"; then | |
15937 | ac_header_preproc=yes | |
15938 | else | |
15939 | echo "$as_me: failed program was:" >&5 | |
15940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15941 | ||
15942 | ac_header_preproc=no | |
15943 | fi | |
15944 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
15945 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15946 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
15947 | |
15948 | # So? What about this header? | |
15949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15950 | yes:no: ) | |
15951 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15952 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15953 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15954 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15955 | ac_header_preproc=yes | |
15956 | ;; | |
15957 | no:yes:* ) | |
15958 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15959 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15960 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15961 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15962 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15963 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15964 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15965 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15967 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15968 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15969 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15970 | ( |
15971 | cat <<\_ASBOX | |
15972 | ## ------------------------------------------ ## | |
15973 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15974 | ## ------------------------------------------ ## | |
15975 | _ASBOX | |
15976 | ) | | |
15977 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
15978 | ;; |
15979 | esac | |
b4e70030 JB |
15980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15984 | else | |
15985 | eval "$as_ac_Header=\$ac_header_preproc" | |
15986 | fi | |
b4e70030 JB |
15987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 15989 | |
bec39cab | 15990 | fi |
a3828db0 | 15991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 15992 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 15993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 15994 | _ACEOF |
14abd0fb | 15995 | |
14abd0fb | 15996 | fi |
a3828db0 | 15997 | |
14abd0fb MK |
15998 | done |
15999 | ||
bec39cab | 16000 | |
a3828db0 MK |
16001 | |
16002 | for ac_func in fork vfork | |
14abd0fb | 16003 | do |
bec39cab | 16004 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16005 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16006 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16007 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16009 | else | |
16010 | cat >conftest.$ac_ext <<_ACEOF | |
16011 | /* confdefs.h. */ | |
16012 | _ACEOF | |
16013 | cat confdefs.h >>conftest.$ac_ext | |
16014 | cat >>conftest.$ac_ext <<_ACEOF | |
16015 | /* end confdefs.h. */ | |
16016 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16018 | #define $ac_func innocuous_$ac_func | |
16019 | ||
14abd0fb | 16020 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16021 | which can conflict with char $ac_func (); below. |
16022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16023 | <limits.h> exists even on freestanding compilers. */ | |
16024 | ||
16025 | #ifdef __STDC__ | |
16026 | # include <limits.h> | |
16027 | #else | |
16028 | # include <assert.h> | |
16029 | #endif | |
14abd0fb | 16030 | |
bec39cab | 16031 | #undef $ac_func |
14abd0fb | 16032 | |
b4e70030 | 16033 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16034 | #ifdef __cplusplus |
16035 | extern "C" | |
b4e70030 | 16036 | { |
bec39cab | 16037 | #endif |
b4e70030 JB |
16038 | /* We use char because int might match the return type of a gcc2 |
16039 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16040 | char $ac_func (); |
14abd0fb MK |
16041 | /* The GNU C library defines this for functions which it implements |
16042 | to always fail with ENOSYS. Some functions are actually named | |
16043 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 16045 | choke me |
b4e70030 JB |
16046 | #else |
16047 | char (*f) () = $ac_func; | |
16048 | #endif | |
16049 | #ifdef __cplusplus | |
16050 | } | |
14abd0fb MK |
16051 | #endif |
16052 | ||
bec39cab AC |
16053 | int |
16054 | main () | |
16055 | { | |
b4e70030 | 16056 | return f != $ac_func; |
bec39cab AC |
16057 | ; |
16058 | return 0; | |
16059 | } | |
16060 | _ACEOF | |
16061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16063 | (eval $ac_link) 2>conftest.er1 | |
16064 | ac_status=$? | |
16065 | grep -v '^ *+' conftest.er1 >conftest.err | |
16066 | rm -f conftest.er1 | |
16067 | cat conftest.err >&5 | |
16068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16069 | (exit $ac_status); } && | |
b4e70030 JB |
16070 | { ac_try='test -z "$ac_c_werror_flag" |
16071 | || test ! -s conftest.err' | |
bec39cab AC |
16072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16073 | (eval $ac_try) 2>&5 | |
16074 | ac_status=$? | |
16075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16076 | (exit $ac_status); }; } && | |
16077 | { ac_try='test -s conftest$ac_exeext' | |
16078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16079 | (eval $ac_try) 2>&5 | |
16080 | ac_status=$? | |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16082 | (exit $ac_status); }; }; then | |
16083 | eval "$as_ac_var=yes" | |
16084 | else | |
16085 | echo "$as_me: failed program was:" >&5 | |
16086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16087 | ||
b4e70030 | 16088 | eval "$as_ac_var=no" |
bec39cab AC |
16089 | fi |
16090 | rm -f conftest.err conftest.$ac_objext \ | |
16091 | conftest$ac_exeext conftest.$ac_ext | |
16092 | fi | |
b4e70030 JB |
16093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16094 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16095 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16096 | cat >>confdefs.h <<_ACEOF | |
16097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16098 | _ACEOF | |
7be570e7 | 16099 | |
7be570e7 JM |
16100 | fi |
16101 | done | |
16102 | ||
a3828db0 | 16103 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
16104 | echo "$as_me:$LINENO: checking for working fork" >&5 |
16105 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
16106 | if test "${ac_cv_func_fork_works+set}" = set; then |
16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16108 | else | |
16109 | if test "$cross_compiling" = yes; then | |
16110 | ac_cv_func_fork_works=cross | |
16111 | else | |
16112 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
16113 | /* By Ruediger Kuhlmann. */ |
16114 | #include <sys/types.h> | |
16115 | #if HAVE_UNISTD_H | |
16116 | # include <unistd.h> | |
16117 | #endif | |
16118 | /* Some systems only have a dummy stub for fork() */ | |
16119 | int main () | |
16120 | { | |
16121 | if (fork() < 0) | |
16122 | exit (1); | |
16123 | exit (0); | |
16124 | } | |
a3828db0 MK |
16125 | _ACEOF |
16126 | rm -f conftest$ac_exeext | |
16127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16128 | (eval $ac_link) 2>&5 | |
16129 | ac_status=$? | |
16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16133 | (eval $ac_try) 2>&5 | |
16134 | ac_status=$? | |
16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16136 | (exit $ac_status); }; }; then | |
16137 | ac_cv_func_fork_works=yes | |
16138 | else | |
16139 | echo "$as_me: program exited with status $ac_status" >&5 | |
16140 | echo "$as_me: failed program was:" >&5 | |
16141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16142 | |
a3828db0 MK |
16143 | ( exit $ac_status ) |
16144 | ac_cv_func_fork_works=no | |
16145 | fi | |
b4e70030 | 16146 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16147 | fi |
16148 | fi | |
b4e70030 JB |
16149 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
16150 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
16151 | |
16152 | else | |
16153 | ac_cv_func_fork_works=$ac_cv_func_fork | |
16154 | fi | |
16155 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16156 | case $host in | |
16157 | *-*-amigaos* | *-*-msdosdjgpp*) | |
16158 | # Override, as these systems have only a dummy fork() stub | |
16159 | ac_cv_func_fork_works=no | |
16160 | ;; | |
16161 | *) | |
16162 | ac_cv_func_fork_works=yes | |
16163 | ;; | |
16164 | esac | |
16165 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
16166 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
16167 | fi | |
16168 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16169 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
16170 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
16171 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 16172 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 16173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16174 | else |
16175 | if test "$cross_compiling" = yes; then | |
16176 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
16177 | else |
16178 | cat >conftest.$ac_ext <<_ACEOF | |
16179 | /* confdefs.h. */ | |
16180 | _ACEOF | |
16181 | cat confdefs.h >>conftest.$ac_ext | |
16182 | cat >>conftest.$ac_ext <<_ACEOF | |
16183 | /* end confdefs.h. */ | |
a3828db0 | 16184 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
16185 | #include <stdio.h> |
16186 | #include <stdlib.h> | |
16187 | #include <sys/types.h> | |
16188 | #include <sys/stat.h> | |
a3828db0 | 16189 | #include <sys/wait.h> |
b4e70030 JB |
16190 | #if HAVE_UNISTD_H |
16191 | # include <unistd.h> | |
16192 | #endif | |
a3828db0 MK |
16193 | #if HAVE_VFORK_H |
16194 | # include <vfork.h> | |
bec39cab | 16195 | #endif |
a3828db0 MK |
16196 | /* On some sparc systems, changes by the child to local and incoming |
16197 | argument registers are propagated back to the parent. The compiler | |
16198 | is told about this with #include <vfork.h>, but some compilers | |
16199 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16200 | static variable whose address is put into a register that is | |
16201 | clobbered by the vfork. */ | |
16202 | static void | |
bec39cab | 16203 | #ifdef __cplusplus |
a3828db0 MK |
16204 | sparc_address_test (int arg) |
16205 | # else | |
16206 | sparc_address_test (arg) int arg; | |
c906108c | 16207 | #endif |
a3828db0 MK |
16208 | { |
16209 | static pid_t child; | |
16210 | if (!child) { | |
16211 | child = vfork (); | |
16212 | if (child < 0) { | |
16213 | perror ("vfork"); | |
16214 | _exit(2); | |
16215 | } | |
16216 | if (!child) { | |
16217 | arg = getpid(); | |
16218 | write(-1, "", 0); | |
16219 | _exit (arg); | |
16220 | } | |
16221 | } | |
16222 | } | |
97bf5e38 | 16223 | |
bec39cab AC |
16224 | int |
16225 | main () | |
16226 | { | |
a3828db0 MK |
16227 | pid_t parent = getpid (); |
16228 | pid_t child; | |
16229 | ||
16230 | sparc_address_test (0); | |
16231 | ||
16232 | child = vfork (); | |
16233 | ||
16234 | if (child == 0) { | |
16235 | /* Here is another test for sparc vfork register problems. This | |
16236 | test uses lots of local variables, at least as many local | |
16237 | variables as main has allocated so far including compiler | |
16238 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
16239 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
16240 | reuse the register of parent for one of the local variables, | |
16241 | since it will think that parent can't possibly be used any more | |
16242 | in this routine. Assigning to the local variable will thus | |
16243 | munge parent in the parent process. */ | |
16244 | pid_t | |
16245 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
16246 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
16247 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
16248 | use the same hardware register for all 8 local variables. */ | |
16249 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
16250 | || p != p5 || p != p6 || p != p7) | |
16251 | _exit(1); | |
16252 | ||
16253 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
16254 | from child file descriptors. If the child closes a descriptor | |
16255 | before it execs or exits, this munges the parent's descriptor | |
16256 | as well. Test for this by closing stdout in the child. */ | |
16257 | _exit(close(fileno(stdout)) != 0); | |
16258 | } else { | |
16259 | int status; | |
16260 | struct stat st; | |
16261 | ||
16262 | while (wait(&status) != child) | |
16263 | ; | |
b4e70030 | 16264 | exit( |
a3828db0 MK |
16265 | /* Was there some problem with vforking? */ |
16266 | child < 0 | |
16267 | ||
16268 | /* Did the child fail? (This shouldn't happen.) */ | |
16269 | || status | |
16270 | ||
16271 | /* Did the vfork/compiler bug occur? */ | |
16272 | || parent != getpid() | |
16273 | ||
16274 | /* Did the file descriptor bug occur? */ | |
16275 | || fstat(fileno(stdout), &st) != 0 | |
16276 | ); | |
16277 | } | |
bec39cab AC |
16278 | } |
16279 | _ACEOF | |
a3828db0 | 16280 | rm -f conftest$ac_exeext |
bec39cab | 16281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16282 | (eval $ac_link) 2>&5 |
bec39cab AC |
16283 | ac_status=$? |
16284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16287 | (eval $ac_try) 2>&5 | |
16288 | ac_status=$? | |
16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16290 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16291 | ac_cv_func_vfork_works=yes |
16292 | else | |
16293 | echo "$as_me: program exited with status $ac_status" >&5 | |
16294 | echo "$as_me: failed program was:" >&5 | |
16295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16296 | ||
16297 | ( exit $ac_status ) | |
16298 | ac_cv_func_vfork_works=no | |
16299 | fi | |
b4e70030 | 16300 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16301 | fi |
16302 | fi | |
b4e70030 JB |
16303 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
16304 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
16305 | |
16306 | fi; | |
16307 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16308 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16309 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
16310 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
16311 | fi | |
16312 | ||
16313 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
16314 | ||
16315 | cat >>confdefs.h <<\_ACEOF | |
16316 | #define HAVE_WORKING_VFORK 1 | |
16317 | _ACEOF | |
16318 | ||
bec39cab | 16319 | else |
bec39cab | 16320 | |
a3828db0 MK |
16321 | cat >>confdefs.h <<\_ACEOF |
16322 | #define vfork fork | |
16323 | _ACEOF | |
16324 | ||
bec39cab | 16325 | fi |
a3828db0 MK |
16326 | if test "x$ac_cv_func_fork_works" = xyes; then |
16327 | ||
16328 | cat >>confdefs.h <<\_ACEOF | |
16329 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 16330 | _ACEOF |
c906108c | 16331 | |
c906108c SS |
16332 | fi |
16333 | ||
bec39cab AC |
16334 | |
16335 | ||
a3828db0 | 16336 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 16337 | do |
bec39cab | 16338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16343 | else | |
16344 | cat >conftest.$ac_ext <<_ACEOF | |
16345 | /* confdefs.h. */ | |
16346 | _ACEOF | |
16347 | cat confdefs.h >>conftest.$ac_ext | |
16348 | cat >>conftest.$ac_ext <<_ACEOF | |
16349 | /* end confdefs.h. */ | |
16350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16352 | #define $ac_func innocuous_$ac_func | |
16353 | ||
d3ea6809 MM |
16354 | /* System header to define __stub macros and hopefully few prototypes, |
16355 | which can conflict with char $ac_func (); below. | |
16356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16357 | <limits.h> exists even on freestanding compilers. */ | |
16358 | ||
16359 | #ifdef __STDC__ | |
16360 | # include <limits.h> | |
16361 | #else | |
16362 | # include <assert.h> | |
16363 | #endif | |
16364 | ||
16365 | #undef $ac_func | |
16366 | ||
b4e70030 | 16367 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
16368 | #ifdef __cplusplus |
16369 | extern "C" | |
b4e70030 | 16370 | { |
d3ea6809 | 16371 | #endif |
b4e70030 JB |
16372 | /* We use char because int might match the return type of a gcc2 |
16373 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
16374 | char $ac_func (); |
16375 | /* The GNU C library defines this for functions which it implements | |
16376 | to always fail with ENOSYS. Some functions are actually named | |
16377 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 16379 | choke me |
b4e70030 JB |
16380 | #else |
16381 | char (*f) () = $ac_func; | |
16382 | #endif | |
16383 | #ifdef __cplusplus | |
16384 | } | |
d3ea6809 MM |
16385 | #endif |
16386 | ||
16387 | int | |
16388 | main () | |
16389 | { | |
b4e70030 | 16390 | return f != $ac_func; |
d3ea6809 MM |
16391 | ; |
16392 | return 0; | |
16393 | } | |
16394 | _ACEOF | |
16395 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16397 | (eval $ac_link) 2>conftest.er1 | |
16398 | ac_status=$? | |
16399 | grep -v '^ *+' conftest.er1 >conftest.err | |
16400 | rm -f conftest.er1 | |
16401 | cat conftest.err >&5 | |
16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16403 | (exit $ac_status); } && | |
b4e70030 JB |
16404 | { ac_try='test -z "$ac_c_werror_flag" |
16405 | || test ! -s conftest.err' | |
d3ea6809 MM |
16406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16407 | (eval $ac_try) 2>&5 | |
16408 | ac_status=$? | |
16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16410 | (exit $ac_status); }; } && | |
16411 | { ac_try='test -s conftest$ac_exeext' | |
16412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16413 | (eval $ac_try) 2>&5 | |
16414 | ac_status=$? | |
16415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16416 | (exit $ac_status); }; }; then | |
16417 | eval "$as_ac_var=yes" | |
16418 | else | |
16419 | echo "$as_me: failed program was:" >&5 | |
16420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16421 | ||
b4e70030 | 16422 | eval "$as_ac_var=no" |
d3ea6809 MM |
16423 | fi |
16424 | rm -f conftest.err conftest.$ac_objext \ | |
16425 | conftest$ac_exeext conftest.$ac_ext | |
16426 | fi | |
b4e70030 JB |
16427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16428 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
16429 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16430 | cat >>confdefs.h <<_ACEOF | |
16431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16432 | _ACEOF | |
16433 | ||
16434 | fi | |
16435 | done | |
16436 | ||
16437 | ||
16438 | ||
16439 | for ac_func in getuid getgid | |
16440 | do | |
16441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16442 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16444 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
16445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16446 | else | |
16447 | cat >conftest.$ac_ext <<_ACEOF | |
16448 | /* confdefs.h. */ | |
16449 | _ACEOF | |
16450 | cat confdefs.h >>conftest.$ac_ext | |
16451 | cat >>conftest.$ac_ext <<_ACEOF | |
16452 | /* end confdefs.h. */ | |
16453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16455 | #define $ac_func innocuous_$ac_func | |
16456 | ||
97bf5e38 | 16457 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16458 | which can conflict with char $ac_func (); below. |
16459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16460 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 16461 | |
bec39cab AC |
16462 | #ifdef __STDC__ |
16463 | # include <limits.h> | |
16464 | #else | |
16465 | # include <assert.h> | |
16466 | #endif | |
97bf5e38 | 16467 | |
bec39cab AC |
16468 | #undef $ac_func |
16469 | ||
b4e70030 | 16470 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16471 | #ifdef __cplusplus |
16472 | extern "C" | |
b4e70030 | 16473 | { |
bec39cab | 16474 | #endif |
b4e70030 JB |
16475 | /* We use char because int might match the return type of a gcc2 |
16476 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16477 | char $ac_func (); |
97bf5e38 MK |
16478 | /* The GNU C library defines this for functions which it implements |
16479 | to always fail with ENOSYS. Some functions are actually named | |
16480 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16482 | choke me |
b4e70030 JB |
16483 | #else |
16484 | char (*f) () = $ac_func; | |
16485 | #endif | |
16486 | #ifdef __cplusplus | |
16487 | } | |
c906108c | 16488 | #endif |
97bf5e38 | 16489 | |
bec39cab AC |
16490 | int |
16491 | main () | |
16492 | { | |
b4e70030 | 16493 | return f != $ac_func; |
bec39cab AC |
16494 | ; |
16495 | return 0; | |
16496 | } | |
16497 | _ACEOF | |
16498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16500 | (eval $ac_link) 2>conftest.er1 | |
16501 | ac_status=$? | |
16502 | grep -v '^ *+' conftest.er1 >conftest.err | |
16503 | rm -f conftest.er1 | |
16504 | cat conftest.err >&5 | |
16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16506 | (exit $ac_status); } && | |
b4e70030 JB |
16507 | { ac_try='test -z "$ac_c_werror_flag" |
16508 | || test ! -s conftest.err' | |
bec39cab AC |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; } && | |
16514 | { ac_try='test -s conftest$ac_exeext' | |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16516 | (eval $ac_try) 2>&5 | |
16517 | ac_status=$? | |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | (exit $ac_status); }; }; then | |
16520 | eval "$as_ac_var=yes" | |
16521 | else | |
16522 | echo "$as_me: failed program was:" >&5 | |
16523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16524 | ||
b4e70030 | 16525 | eval "$as_ac_var=no" |
bec39cab AC |
16526 | fi |
16527 | rm -f conftest.err conftest.$ac_objext \ | |
16528 | conftest$ac_exeext conftest.$ac_ext | |
16529 | fi | |
b4e70030 JB |
16530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16532 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16533 | cat >>confdefs.h <<_ACEOF | |
16534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16535 | _ACEOF | |
c906108c | 16536 | |
c906108c | 16537 | fi |
97bf5e38 | 16538 | done |
c906108c | 16539 | |
bec39cab | 16540 | |
a3828db0 | 16541 | for ac_func in poll |
97bf5e38 | 16542 | do |
bec39cab | 16543 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16544 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16545 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16546 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16548 | else | |
16549 | cat >conftest.$ac_ext <<_ACEOF | |
16550 | /* confdefs.h. */ | |
16551 | _ACEOF | |
16552 | cat confdefs.h >>conftest.$ac_ext | |
16553 | cat >>conftest.$ac_ext <<_ACEOF | |
16554 | /* end confdefs.h. */ | |
16555 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16556 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16557 | #define $ac_func innocuous_$ac_func | |
16558 | ||
97bf5e38 | 16559 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16560 | which can conflict with char $ac_func (); below. |
16561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16562 | <limits.h> exists even on freestanding compilers. */ | |
16563 | ||
16564 | #ifdef __STDC__ | |
16565 | # include <limits.h> | |
16566 | #else | |
16567 | # include <assert.h> | |
16568 | #endif | |
c906108c | 16569 | |
bec39cab | 16570 | #undef $ac_func |
97bf5e38 | 16571 | |
b4e70030 | 16572 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16573 | #ifdef __cplusplus |
16574 | extern "C" | |
b4e70030 | 16575 | { |
bec39cab | 16576 | #endif |
b4e70030 JB |
16577 | /* We use char because int might match the return type of a gcc2 |
16578 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16579 | char $ac_func (); |
97bf5e38 MK |
16580 | /* The GNU C library defines this for functions which it implements |
16581 | to always fail with ENOSYS. Some functions are actually named | |
16582 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16583 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16584 | choke me |
b4e70030 JB |
16585 | #else |
16586 | char (*f) () = $ac_func; | |
16587 | #endif | |
16588 | #ifdef __cplusplus | |
16589 | } | |
c906108c | 16590 | #endif |
97bf5e38 | 16591 | |
bec39cab AC |
16592 | int |
16593 | main () | |
16594 | { | |
b4e70030 | 16595 | return f != $ac_func; |
bec39cab AC |
16596 | ; |
16597 | return 0; | |
16598 | } | |
16599 | _ACEOF | |
16600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16602 | (eval $ac_link) 2>conftest.er1 | |
16603 | ac_status=$? | |
16604 | grep -v '^ *+' conftest.er1 >conftest.err | |
16605 | rm -f conftest.er1 | |
16606 | cat conftest.err >&5 | |
16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16608 | (exit $ac_status); } && | |
b4e70030 JB |
16609 | { ac_try='test -z "$ac_c_werror_flag" |
16610 | || test ! -s conftest.err' | |
bec39cab AC |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; } && | |
16616 | { ac_try='test -s conftest$ac_exeext' | |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; }; then | |
16622 | eval "$as_ac_var=yes" | |
16623 | else | |
16624 | echo "$as_me: failed program was:" >&5 | |
16625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16626 | ||
b4e70030 | 16627 | eval "$as_ac_var=no" |
bec39cab AC |
16628 | fi |
16629 | rm -f conftest.err conftest.$ac_objext \ | |
16630 | conftest$ac_exeext conftest.$ac_ext | |
16631 | fi | |
b4e70030 JB |
16632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16633 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16634 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16635 | cat >>confdefs.h <<_ACEOF | |
16636 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16637 | _ACEOF | |
c906108c | 16638 | |
c906108c | 16639 | fi |
97bf5e38 | 16640 | done |
c906108c | 16641 | |
bec39cab | 16642 | |
a3828db0 | 16643 | for ac_func in pread64 |
97bf5e38 | 16644 | do |
bec39cab | 16645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16650 | else | |
16651 | cat >conftest.$ac_ext <<_ACEOF | |
16652 | /* confdefs.h. */ | |
16653 | _ACEOF | |
16654 | cat confdefs.h >>conftest.$ac_ext | |
16655 | cat >>conftest.$ac_ext <<_ACEOF | |
16656 | /* end confdefs.h. */ | |
16657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16659 | #define $ac_func innocuous_$ac_func | |
16660 | ||
97bf5e38 | 16661 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16662 | which can conflict with char $ac_func (); below. |
16663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16664 | <limits.h> exists even on freestanding compilers. */ | |
16665 | ||
16666 | #ifdef __STDC__ | |
16667 | # include <limits.h> | |
16668 | #else | |
16669 | # include <assert.h> | |
16670 | #endif | |
c906108c | 16671 | |
bec39cab | 16672 | #undef $ac_func |
97bf5e38 | 16673 | |
b4e70030 | 16674 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16675 | #ifdef __cplusplus |
16676 | extern "C" | |
b4e70030 | 16677 | { |
bec39cab | 16678 | #endif |
b4e70030 JB |
16679 | /* We use char because int might match the return type of a gcc2 |
16680 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16681 | char $ac_func (); |
97bf5e38 MK |
16682 | /* The GNU C library defines this for functions which it implements |
16683 | to always fail with ENOSYS. Some functions are actually named | |
16684 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16686 | choke me |
b4e70030 JB |
16687 | #else |
16688 | char (*f) () = $ac_func; | |
16689 | #endif | |
16690 | #ifdef __cplusplus | |
16691 | } | |
c906108c | 16692 | #endif |
97bf5e38 | 16693 | |
bec39cab AC |
16694 | int |
16695 | main () | |
16696 | { | |
b4e70030 | 16697 | return f != $ac_func; |
bec39cab AC |
16698 | ; |
16699 | return 0; | |
16700 | } | |
16701 | _ACEOF | |
16702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16704 | (eval $ac_link) 2>conftest.er1 | |
16705 | ac_status=$? | |
16706 | grep -v '^ *+' conftest.er1 >conftest.err | |
16707 | rm -f conftest.er1 | |
16708 | cat conftest.err >&5 | |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 | (exit $ac_status); } && | |
b4e70030 JB |
16711 | { ac_try='test -z "$ac_c_werror_flag" |
16712 | || test ! -s conftest.err' | |
bec39cab AC |
16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16714 | (eval $ac_try) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); }; } && | |
16718 | { ac_try='test -s conftest$ac_exeext' | |
16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16720 | (eval $ac_try) 2>&5 | |
16721 | ac_status=$? | |
16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16723 | (exit $ac_status); }; }; then | |
16724 | eval "$as_ac_var=yes" | |
16725 | else | |
16726 | echo "$as_me: failed program was:" >&5 | |
16727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16728 | ||
b4e70030 | 16729 | eval "$as_ac_var=no" |
bec39cab AC |
16730 | fi |
16731 | rm -f conftest.err conftest.$ac_objext \ | |
16732 | conftest$ac_exeext conftest.$ac_ext | |
16733 | fi | |
b4e70030 JB |
16734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16735 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16737 | cat >>confdefs.h <<_ACEOF | |
16738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16739 | _ACEOF | |
c906108c | 16740 | |
c906108c | 16741 | fi |
97bf5e38 | 16742 | done |
c906108c | 16743 | |
bec39cab | 16744 | |
a3828db0 | 16745 | for ac_func in sbrk |
b757528f | 16746 | do |
bec39cab | 16747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16748 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16750 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16752 | else | |
16753 | cat >conftest.$ac_ext <<_ACEOF | |
16754 | /* confdefs.h. */ | |
16755 | _ACEOF | |
16756 | cat confdefs.h >>conftest.$ac_ext | |
16757 | cat >>conftest.$ac_ext <<_ACEOF | |
16758 | /* end confdefs.h. */ | |
16759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16761 | #define $ac_func innocuous_$ac_func | |
16762 | ||
b757528f | 16763 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16764 | which can conflict with char $ac_func (); below. |
16765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16766 | <limits.h> exists even on freestanding compilers. */ | |
16767 | ||
16768 | #ifdef __STDC__ | |
16769 | # include <limits.h> | |
16770 | #else | |
16771 | # include <assert.h> | |
16772 | #endif | |
b757528f | 16773 | |
bec39cab | 16774 | #undef $ac_func |
b757528f | 16775 | |
b4e70030 | 16776 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16777 | #ifdef __cplusplus |
16778 | extern "C" | |
b4e70030 | 16779 | { |
bec39cab | 16780 | #endif |
b4e70030 JB |
16781 | /* We use char because int might match the return type of a gcc2 |
16782 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16783 | char $ac_func (); |
b757528f JJ |
16784 | /* The GNU C library defines this for functions which it implements |
16785 | to always fail with ENOSYS. Some functions are actually named | |
16786 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 16788 | choke me |
b4e70030 JB |
16789 | #else |
16790 | char (*f) () = $ac_func; | |
16791 | #endif | |
16792 | #ifdef __cplusplus | |
16793 | } | |
b757528f JJ |
16794 | #endif |
16795 | ||
bec39cab AC |
16796 | int |
16797 | main () | |
16798 | { | |
b4e70030 | 16799 | return f != $ac_func; |
bec39cab AC |
16800 | ; |
16801 | return 0; | |
16802 | } | |
16803 | _ACEOF | |
16804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16806 | (eval $ac_link) 2>conftest.er1 | |
16807 | ac_status=$? | |
16808 | grep -v '^ *+' conftest.er1 >conftest.err | |
16809 | rm -f conftest.er1 | |
16810 | cat conftest.err >&5 | |
16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16812 | (exit $ac_status); } && | |
b4e70030 JB |
16813 | { ac_try='test -z "$ac_c_werror_flag" |
16814 | || test ! -s conftest.err' | |
bec39cab AC |
16815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16816 | (eval $ac_try) 2>&5 | |
16817 | ac_status=$? | |
16818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16819 | (exit $ac_status); }; } && | |
16820 | { ac_try='test -s conftest$ac_exeext' | |
16821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16822 | (eval $ac_try) 2>&5 | |
16823 | ac_status=$? | |
16824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16825 | (exit $ac_status); }; }; then | |
16826 | eval "$as_ac_var=yes" | |
16827 | else | |
16828 | echo "$as_me: failed program was:" >&5 | |
16829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16830 | ||
b4e70030 | 16831 | eval "$as_ac_var=no" |
bec39cab AC |
16832 | fi |
16833 | rm -f conftest.err conftest.$ac_objext \ | |
16834 | conftest$ac_exeext conftest.$ac_ext | |
16835 | fi | |
b4e70030 JB |
16836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16837 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16838 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16839 | cat >>confdefs.h <<_ACEOF | |
16840 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16841 | _ACEOF | |
b757528f | 16842 | |
b757528f JJ |
16843 | fi |
16844 | done | |
16845 | ||
bec39cab | 16846 | |
a3828db0 MK |
16847 | |
16848 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 16849 | do |
bec39cab | 16850 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16851 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16852 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16853 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16855 | else | |
16856 | cat >conftest.$ac_ext <<_ACEOF | |
16857 | /* confdefs.h. */ | |
16858 | _ACEOF | |
16859 | cat confdefs.h >>conftest.$ac_ext | |
16860 | cat >>conftest.$ac_ext <<_ACEOF | |
16861 | /* end confdefs.h. */ | |
16862 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16863 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16864 | #define $ac_func innocuous_$ac_func | |
16865 | ||
bcb3dc3d | 16866 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16867 | which can conflict with char $ac_func (); below. |
16868 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16869 | <limits.h> exists even on freestanding compilers. */ | |
16870 | ||
16871 | #ifdef __STDC__ | |
16872 | # include <limits.h> | |
16873 | #else | |
16874 | # include <assert.h> | |
16875 | #endif | |
bcb3dc3d | 16876 | |
bec39cab | 16877 | #undef $ac_func |
bcb3dc3d | 16878 | |
b4e70030 | 16879 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16880 | #ifdef __cplusplus |
16881 | extern "C" | |
b4e70030 | 16882 | { |
bec39cab | 16883 | #endif |
b4e70030 JB |
16884 | /* We use char because int might match the return type of a gcc2 |
16885 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16886 | char $ac_func (); |
bcb3dc3d MK |
16887 | /* The GNU C library defines this for functions which it implements |
16888 | to always fail with ENOSYS. Some functions are actually named | |
16889 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16890 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 16891 | choke me |
b4e70030 JB |
16892 | #else |
16893 | char (*f) () = $ac_func; | |
16894 | #endif | |
16895 | #ifdef __cplusplus | |
16896 | } | |
bcb3dc3d MK |
16897 | #endif |
16898 | ||
bec39cab AC |
16899 | int |
16900 | main () | |
16901 | { | |
b4e70030 | 16902 | return f != $ac_func; |
bec39cab AC |
16903 | ; |
16904 | return 0; | |
16905 | } | |
16906 | _ACEOF | |
16907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16909 | (eval $ac_link) 2>conftest.er1 | |
16910 | ac_status=$? | |
16911 | grep -v '^ *+' conftest.er1 >conftest.err | |
16912 | rm -f conftest.er1 | |
16913 | cat conftest.err >&5 | |
16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16915 | (exit $ac_status); } && | |
b4e70030 JB |
16916 | { ac_try='test -z "$ac_c_werror_flag" |
16917 | || test ! -s conftest.err' | |
bec39cab AC |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; } && | |
16923 | { ac_try='test -s conftest$ac_exeext' | |
16924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16925 | (eval $ac_try) 2>&5 | |
16926 | ac_status=$? | |
16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16928 | (exit $ac_status); }; }; then | |
16929 | eval "$as_ac_var=yes" | |
16930 | else | |
16931 | echo "$as_me: failed program was:" >&5 | |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16933 | ||
b4e70030 | 16934 | eval "$as_ac_var=no" |
bec39cab AC |
16935 | fi |
16936 | rm -f conftest.err conftest.$ac_objext \ | |
16937 | conftest$ac_exeext conftest.$ac_ext | |
16938 | fi | |
b4e70030 JB |
16939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16940 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16941 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16942 | cat >>confdefs.h <<_ACEOF | |
16943 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16944 | _ACEOF | |
bcb3dc3d | 16945 | |
bcb3dc3d MK |
16946 | fi |
16947 | done | |
16948 | ||
bec39cab | 16949 | |
a3828db0 MK |
16950 | |
16951 | ||
16952 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 16953 | do |
bec39cab | 16954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16959 | else | |
16960 | cat >conftest.$ac_ext <<_ACEOF | |
16961 | /* confdefs.h. */ | |
16962 | _ACEOF | |
16963 | cat confdefs.h >>conftest.$ac_ext | |
16964 | cat >>conftest.$ac_ext <<_ACEOF | |
16965 | /* end confdefs.h. */ | |
16966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16968 | #define $ac_func innocuous_$ac_func | |
16969 | ||
8b9cf735 | 16970 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16971 | which can conflict with char $ac_func (); below. |
16972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16973 | <limits.h> exists even on freestanding compilers. */ | |
16974 | ||
16975 | #ifdef __STDC__ | |
16976 | # include <limits.h> | |
16977 | #else | |
16978 | # include <assert.h> | |
16979 | #endif | |
8b9cf735 | 16980 | |
bec39cab | 16981 | #undef $ac_func |
8b9cf735 | 16982 | |
b4e70030 | 16983 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
16984 | #ifdef __cplusplus |
16985 | extern "C" | |
b4e70030 | 16986 | { |
a3828db0 | 16987 | #endif |
b4e70030 JB |
16988 | /* We use char because int might match the return type of a gcc2 |
16989 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
16990 | char $ac_func (); |
16991 | /* The GNU C library defines this for functions which it implements | |
16992 | to always fail with ENOSYS. Some functions are actually named | |
16993 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 16995 | choke me |
b4e70030 JB |
16996 | #else |
16997 | char (*f) () = $ac_func; | |
16998 | #endif | |
16999 | #ifdef __cplusplus | |
17000 | } | |
a3828db0 MK |
17001 | #endif |
17002 | ||
bec39cab AC |
17003 | int |
17004 | main () | |
17005 | { | |
b4e70030 | 17006 | return f != $ac_func; |
bec39cab AC |
17007 | ; |
17008 | return 0; | |
17009 | } | |
17010 | _ACEOF | |
a3828db0 MK |
17011 | rm -f conftest.$ac_objext conftest$ac_exeext |
17012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17013 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17014 | ac_status=$? |
17015 | grep -v '^ *+' conftest.er1 >conftest.err | |
17016 | rm -f conftest.er1 | |
17017 | cat conftest.err >&5 | |
17018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17019 | (exit $ac_status); } && | |
b4e70030 JB |
17020 | { ac_try='test -z "$ac_c_werror_flag" |
17021 | || test ! -s conftest.err' | |
bec39cab AC |
17022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17023 | (eval $ac_try) 2>&5 | |
17024 | ac_status=$? | |
17025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17026 | (exit $ac_status); }; } && | |
a3828db0 | 17027 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17029 | (eval $ac_try) 2>&5 | |
17030 | ac_status=$? | |
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17032 | (exit $ac_status); }; }; then | |
a3828db0 | 17033 | eval "$as_ac_var=yes" |
086ec9eb | 17034 | else |
bec39cab AC |
17035 | echo "$as_me: failed program was:" >&5 |
17036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17037 | ||
b4e70030 | 17038 | eval "$as_ac_var=no" |
a3828db0 MK |
17039 | fi |
17040 | rm -f conftest.err conftest.$ac_objext \ | |
17041 | conftest$ac_exeext conftest.$ac_ext | |
17042 | fi | |
b4e70030 JB |
17043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17045 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17046 | cat >>confdefs.h <<_ACEOF | |
17047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17048 | _ACEOF | |
17049 | ||
086ec9eb | 17050 | fi |
a3828db0 MK |
17051 | done |
17052 | ||
17053 | ||
17054 | for ac_func in socketpair | |
17055 | do | |
17056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17059 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17061 | else | |
17062 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17063 | /* confdefs.h. */ |
17064 | _ACEOF | |
17065 | cat confdefs.h >>conftest.$ac_ext | |
17066 | cat >>conftest.$ac_ext <<_ACEOF | |
17067 | /* end confdefs.h. */ | |
a3828db0 MK |
17068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17070 | #define $ac_func innocuous_$ac_func | |
17071 | ||
17072 | /* System header to define __stub macros and hopefully few prototypes, | |
17073 | which can conflict with char $ac_func (); below. | |
17074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17075 | <limits.h> exists even on freestanding compilers. */ | |
17076 | ||
17077 | #ifdef __STDC__ | |
17078 | # include <limits.h> | |
17079 | #else | |
17080 | # include <assert.h> | |
17081 | #endif | |
17082 | ||
17083 | #undef $ac_func | |
17084 | ||
b4e70030 | 17085 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17086 | #ifdef __cplusplus |
17087 | extern "C" | |
b4e70030 | 17088 | { |
a3828db0 | 17089 | #endif |
b4e70030 JB |
17090 | /* We use char because int might match the return type of a gcc2 |
17091 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17092 | char $ac_func (); |
17093 | /* The GNU C library defines this for functions which it implements | |
17094 | to always fail with ENOSYS. Some functions are actually named | |
17095 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17097 | choke me |
b4e70030 JB |
17098 | #else |
17099 | char (*f) () = $ac_func; | |
17100 | #endif | |
17101 | #ifdef __cplusplus | |
17102 | } | |
a3828db0 MK |
17103 | #endif |
17104 | ||
bec39cab AC |
17105 | int |
17106 | main () | |
17107 | { | |
b4e70030 | 17108 | return f != $ac_func; |
bec39cab AC |
17109 | ; |
17110 | return 0; | |
17111 | } | |
17112 | _ACEOF | |
a3828db0 MK |
17113 | rm -f conftest.$ac_objext conftest$ac_exeext |
17114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17115 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17116 | ac_status=$? |
17117 | grep -v '^ *+' conftest.er1 >conftest.err | |
17118 | rm -f conftest.er1 | |
17119 | cat conftest.err >&5 | |
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 | (exit $ac_status); } && | |
b4e70030 JB |
17122 | { ac_try='test -z "$ac_c_werror_flag" |
17123 | || test ! -s conftest.err' | |
bec39cab AC |
17124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17125 | (eval $ac_try) 2>&5 | |
17126 | ac_status=$? | |
17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17128 | (exit $ac_status); }; } && | |
a3828db0 | 17129 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17131 | (eval $ac_try) 2>&5 | |
17132 | ac_status=$? | |
17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17134 | (exit $ac_status); }; }; then | |
a3828db0 | 17135 | eval "$as_ac_var=yes" |
086ec9eb | 17136 | else |
bec39cab AC |
17137 | echo "$as_me: failed program was:" >&5 |
17138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17139 | ||
b4e70030 | 17140 | eval "$as_ac_var=no" |
086ec9eb | 17141 | fi |
a3828db0 MK |
17142 | rm -f conftest.err conftest.$ac_objext \ |
17143 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 17144 | fi |
b4e70030 JB |
17145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17147 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17148 | cat >>confdefs.h <<_ACEOF | |
17149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17150 | _ACEOF |
086ec9eb MK |
17151 | |
17152 | fi | |
a3828db0 | 17153 | done |
086ec9eb | 17154 | |
a3828db0 MK |
17155 | |
17156 | for ac_func in syscall | |
17157 | do | |
17158 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17159 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17160 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17161 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
17163 | else |
17164 | cat >conftest.$ac_ext <<_ACEOF | |
17165 | /* confdefs.h. */ | |
17166 | _ACEOF | |
17167 | cat confdefs.h >>conftest.$ac_ext | |
17168 | cat >>conftest.$ac_ext <<_ACEOF | |
17169 | /* end confdefs.h. */ | |
a3828db0 MK |
17170 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17172 | #define $ac_func innocuous_$ac_func | |
17173 | ||
17174 | /* System header to define __stub macros and hopefully few prototypes, | |
17175 | which can conflict with char $ac_func (); below. | |
17176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17177 | <limits.h> exists even on freestanding compilers. */ | |
17178 | ||
17179 | #ifdef __STDC__ | |
17180 | # include <limits.h> | |
17181 | #else | |
17182 | # include <assert.h> | |
17183 | #endif | |
17184 | ||
17185 | #undef $ac_func | |
17186 | ||
b4e70030 | 17187 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17188 | #ifdef __cplusplus |
17189 | extern "C" | |
b4e70030 | 17190 | { |
a3828db0 | 17191 | #endif |
b4e70030 JB |
17192 | /* We use char because int might match the return type of a gcc2 |
17193 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17194 | char $ac_func (); |
17195 | /* The GNU C library defines this for functions which it implements | |
17196 | to always fail with ENOSYS. Some functions are actually named | |
17197 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17199 | choke me |
b4e70030 JB |
17200 | #else |
17201 | char (*f) () = $ac_func; | |
17202 | #endif | |
17203 | #ifdef __cplusplus | |
17204 | } | |
c906108c | 17205 | #endif |
97bf5e38 | 17206 | |
bec39cab AC |
17207 | int |
17208 | main () | |
97bf5e38 | 17209 | { |
b4e70030 | 17210 | return f != $ac_func; |
bec39cab AC |
17211 | ; |
17212 | return 0; | |
97bf5e38 | 17213 | } |
bec39cab | 17214 | _ACEOF |
a3828db0 | 17215 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 17216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17217 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 17218 | ac_status=$? |
a3828db0 MK |
17219 | grep -v '^ *+' conftest.er1 >conftest.err |
17220 | rm -f conftest.er1 | |
17221 | cat conftest.err >&5 | |
bec39cab | 17222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 17223 | (exit $ac_status); } && |
b4e70030 JB |
17224 | { ac_try='test -z "$ac_c_werror_flag" |
17225 | || test ! -s conftest.err' | |
a3828db0 MK |
17226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17227 | (eval $ac_try) 2>&5 | |
17228 | ac_status=$? | |
17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17230 | (exit $ac_status); }; } && | |
17231 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
17232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17233 | (eval $ac_try) 2>&5 | |
17234 | ac_status=$? | |
17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17236 | (exit $ac_status); }; }; then | |
a3828db0 | 17237 | eval "$as_ac_var=yes" |
c906108c | 17238 | else |
a3828db0 | 17239 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17240 | sed 's/^/| /' conftest.$ac_ext >&5 |
17241 | ||
b4e70030 | 17242 | eval "$as_ac_var=no" |
97bf5e38 | 17243 | fi |
a3828db0 MK |
17244 | rm -f conftest.err conftest.$ac_objext \ |
17245 | conftest$ac_exeext conftest.$ac_ext | |
17246 | fi | |
b4e70030 JB |
17247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17248 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17249 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17250 | cat >>confdefs.h <<_ACEOF | |
17251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17252 | _ACEOF |
c906108c SS |
17253 | |
17254 | fi | |
a3828db0 | 17255 | done |
c906108c | 17256 | |
a3828db0 MK |
17257 | |
17258 | for ac_func in ttrace | |
17259 | do | |
17260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 17265 | else |
bec39cab AC |
17266 | cat >conftest.$ac_ext <<_ACEOF |
17267 | /* confdefs.h. */ | |
17268 | _ACEOF | |
17269 | cat confdefs.h >>conftest.$ac_ext | |
17270 | cat >>conftest.$ac_ext <<_ACEOF | |
17271 | /* end confdefs.h. */ | |
a3828db0 MK |
17272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17274 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 17275 | |
a3828db0 MK |
17276 | /* System header to define __stub macros and hopefully few prototypes, |
17277 | which can conflict with char $ac_func (); below. | |
17278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17279 | <limits.h> exists even on freestanding compilers. */ | |
17280 | ||
17281 | #ifdef __STDC__ | |
17282 | # include <limits.h> | |
17283 | #else | |
17284 | # include <assert.h> | |
17285 | #endif | |
17286 | ||
17287 | #undef $ac_func | |
17288 | ||
b4e70030 | 17289 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17290 | #ifdef __cplusplus |
17291 | extern "C" | |
b4e70030 | 17292 | { |
a3828db0 | 17293 | #endif |
b4e70030 JB |
17294 | /* We use char because int might match the return type of a gcc2 |
17295 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17296 | char $ac_func (); |
17297 | /* The GNU C library defines this for functions which it implements | |
17298 | to always fail with ENOSYS. Some functions are actually named | |
17299 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17301 | choke me |
b4e70030 JB |
17302 | #else |
17303 | char (*f) () = $ac_func; | |
17304 | #endif | |
17305 | #ifdef __cplusplus | |
17306 | } | |
a3828db0 | 17307 | #endif |
97bf5e38 | 17308 | |
bec39cab AC |
17309 | int |
17310 | main () | |
17311 | { | |
b4e70030 | 17312 | return f != $ac_func; |
bec39cab AC |
17313 | ; |
17314 | return 0; | |
17315 | } | |
17316 | _ACEOF | |
a3828db0 MK |
17317 | rm -f conftest.$ac_objext conftest$ac_exeext |
17318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17319 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17320 | ac_status=$? |
17321 | grep -v '^ *+' conftest.er1 >conftest.err | |
17322 | rm -f conftest.er1 | |
17323 | cat conftest.err >&5 | |
17324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17325 | (exit $ac_status); } && | |
b4e70030 JB |
17326 | { ac_try='test -z "$ac_c_werror_flag" |
17327 | || test ! -s conftest.err' | |
bec39cab AC |
17328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17329 | (eval $ac_try) 2>&5 | |
17330 | ac_status=$? | |
17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17332 | (exit $ac_status); }; } && | |
a3828db0 | 17333 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17335 | (eval $ac_try) 2>&5 | |
17336 | ac_status=$? | |
17337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17338 | (exit $ac_status); }; }; then | |
a3828db0 | 17339 | eval "$as_ac_var=yes" |
b83266a0 | 17340 | else |
bec39cab AC |
17341 | echo "$as_me: failed program was:" >&5 |
17342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17343 | ||
b4e70030 | 17344 | eval "$as_ac_var=no" |
b83266a0 | 17345 | fi |
a3828db0 MK |
17346 | rm -f conftest.err conftest.$ac_objext \ |
17347 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 17348 | fi |
b4e70030 JB |
17349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17350 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17351 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17352 | cat >>confdefs.h <<_ACEOF | |
17353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17354 | _ACEOF |
b83266a0 | 17355 | |
97bf5e38 | 17356 | fi |
a3828db0 | 17357 | done |
b83266a0 | 17358 | |
a3828db0 MK |
17359 | |
17360 | for ac_func in wborder | |
17361 | do | |
17362 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17363 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17364 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17365 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17367 | else | |
17368 | cat >conftest.$ac_ext <<_ACEOF | |
17369 | /* confdefs.h. */ | |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
a3828db0 MK |
17374 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17376 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 17377 | |
a3828db0 MK |
17378 | /* System header to define __stub macros and hopefully few prototypes, |
17379 | which can conflict with char $ac_func (); below. | |
17380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17381 | <limits.h> exists even on freestanding compilers. */ | |
17382 | ||
17383 | #ifdef __STDC__ | |
17384 | # include <limits.h> | |
17385 | #else | |
17386 | # include <assert.h> | |
17387 | #endif | |
17388 | ||
17389 | #undef $ac_func | |
17390 | ||
b4e70030 | 17391 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17392 | #ifdef __cplusplus |
17393 | extern "C" | |
b4e70030 | 17394 | { |
a3828db0 | 17395 | #endif |
b4e70030 JB |
17396 | /* We use char because int might match the return type of a gcc2 |
17397 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17398 | char $ac_func (); |
17399 | /* The GNU C library defines this for functions which it implements | |
17400 | to always fail with ENOSYS. Some functions are actually named | |
17401 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17403 | choke me |
b4e70030 JB |
17404 | #else |
17405 | char (*f) () = $ac_func; | |
17406 | #endif | |
17407 | #ifdef __cplusplus | |
17408 | } | |
a3828db0 | 17409 | #endif |
97bf5e38 | 17410 | |
bec39cab AC |
17411 | int |
17412 | main () | |
17413 | { | |
b4e70030 | 17414 | return f != $ac_func; |
bec39cab AC |
17415 | ; |
17416 | return 0; | |
17417 | } | |
17418 | _ACEOF | |
a3828db0 MK |
17419 | rm -f conftest.$ac_objext conftest$ac_exeext |
17420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17421 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17422 | ac_status=$? |
17423 | grep -v '^ *+' conftest.er1 >conftest.err | |
17424 | rm -f conftest.er1 | |
17425 | cat conftest.err >&5 | |
17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17427 | (exit $ac_status); } && | |
b4e70030 JB |
17428 | { ac_try='test -z "$ac_c_werror_flag" |
17429 | || test ! -s conftest.err' | |
bec39cab AC |
17430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17431 | (eval $ac_try) 2>&5 | |
17432 | ac_status=$? | |
17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17434 | (exit $ac_status); }; } && | |
a3828db0 | 17435 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17437 | (eval $ac_try) 2>&5 | |
17438 | ac_status=$? | |
17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17440 | (exit $ac_status); }; }; then | |
a3828db0 | 17441 | eval "$as_ac_var=yes" |
a4db0f07 | 17442 | else |
bec39cab AC |
17443 | echo "$as_me: failed program was:" >&5 |
17444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17445 | ||
b4e70030 | 17446 | eval "$as_ac_var=no" |
a4db0f07 | 17447 | fi |
a3828db0 MK |
17448 | rm -f conftest.err conftest.$ac_objext \ |
17449 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 17450 | fi |
b4e70030 JB |
17451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17452 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17453 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17454 | cat >>confdefs.h <<_ACEOF | |
17455 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17456 | _ACEOF |
a4db0f07 RH |
17457 | |
17458 | fi | |
a3828db0 | 17459 | done |
c906108c | 17460 | |
06825bd1 | 17461 | |
a3828db0 MK |
17462 | # Check the return and argument types of ptrace. No canned test for |
17463 | # this, so roll our own. | |
17464 | gdb_ptrace_headers=' | |
17465 | #if HAVE_SYS_TYPES_H | |
17466 | # include <sys/types.h> | |
17467 | #endif | |
17468 | #if HAVE_SYS_PTRACE_H | |
17469 | # include <sys/ptrace.h> | |
17470 | #endif | |
17471 | #if HAVE_UNISTD_H | |
17472 | # include <unistd.h> | |
17473 | #endif | |
17474 | ' | |
17475 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
17476 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
17477 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 17478 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
17479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17480 | else | |
17481 | cat >conftest.$ac_ext <<_ACEOF | |
17482 | /* confdefs.h. */ | |
17483 | _ACEOF | |
17484 | cat confdefs.h >>conftest.$ac_ext | |
17485 | cat >>conftest.$ac_ext <<_ACEOF | |
17486 | /* end confdefs.h. */ | |
a3828db0 MK |
17487 | $gdb_ptrace_headers |
17488 | ||
bec39cab AC |
17489 | int |
17490 | main () | |
17491 | { | |
a3828db0 MK |
17492 | #ifndef ptrace |
17493 | char *p = (char *) ptrace; | |
06825bd1 | 17494 | #endif |
a3828db0 | 17495 | |
bec39cab AC |
17496 | ; |
17497 | return 0; | |
17498 | } | |
17499 | _ACEOF | |
17500 | rm -f conftest.$ac_objext | |
17501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17502 | (eval $ac_compile) 2>conftest.er1 | |
17503 | ac_status=$? | |
17504 | grep -v '^ *+' conftest.er1 >conftest.err | |
17505 | rm -f conftest.er1 | |
17506 | cat conftest.err >&5 | |
17507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17508 | (exit $ac_status); } && | |
b4e70030 JB |
17509 | { ac_try='test -z "$ac_c_werror_flag" |
17510 | || test ! -s conftest.err' | |
bec39cab AC |
17511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17512 | (eval $ac_try) 2>&5 | |
17513 | ac_status=$? | |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17515 | (exit $ac_status); }; } && | |
17516 | { ac_try='test -s conftest.$ac_objext' | |
17517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17518 | (eval $ac_try) 2>&5 | |
17519 | ac_status=$? | |
17520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17521 | (exit $ac_status); }; }; then | |
a3828db0 | 17522 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 17523 | else |
bec39cab AC |
17524 | echo "$as_me: failed program was:" >&5 |
17525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17526 | ||
b4e70030 | 17527 | ac_cv_have_decl_ptrace=no |
06825bd1 | 17528 | fi |
bec39cab | 17529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 17530 | fi |
b4e70030 JB |
17531 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
17532 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 17533 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 17534 | |
a3828db0 MK |
17535 | cat >>confdefs.h <<_ACEOF |
17536 | #define HAVE_DECL_PTRACE 1 | |
17537 | _ACEOF | |
bec39cab | 17538 | |
bec39cab | 17539 | |
a3828db0 MK |
17540 | else |
17541 | cat >>confdefs.h <<_ACEOF | |
17542 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 17543 | _ACEOF |
06825bd1 | 17544 | |
a3828db0 MK |
17545 | |
17546 | : ${gdb_cv_func_ptrace_ret='int'} | |
17547 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
17548 | ||
06825bd1 MK |
17549 | fi |
17550 | ||
a3828db0 MK |
17551 | |
17552 | # Check return type. | |
b4e70030 JB |
17553 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
17554 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 17555 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
17556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17557 | else | |
17558 | cat >conftest.$ac_ext <<_ACEOF | |
17559 | /* confdefs.h. */ | |
17560 | _ACEOF | |
17561 | cat confdefs.h >>conftest.$ac_ext | |
17562 | cat >>conftest.$ac_ext <<_ACEOF | |
17563 | /* end confdefs.h. */ | |
a3828db0 | 17564 | $gdb_ptrace_headers |
bec39cab AC |
17565 | int |
17566 | main () | |
17567 | { | |
a3828db0 | 17568 | extern int ptrace (); |
bec39cab AC |
17569 | ; |
17570 | return 0; | |
17571 | } | |
17572 | _ACEOF | |
17573 | rm -f conftest.$ac_objext | |
17574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17575 | (eval $ac_compile) 2>conftest.er1 | |
17576 | ac_status=$? | |
17577 | grep -v '^ *+' conftest.er1 >conftest.err | |
17578 | rm -f conftest.er1 | |
17579 | cat conftest.err >&5 | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); } && | |
b4e70030 JB |
17582 | { ac_try='test -z "$ac_c_werror_flag" |
17583 | || test ! -s conftest.err' | |
bec39cab AC |
17584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17585 | (eval $ac_try) 2>&5 | |
17586 | ac_status=$? | |
17587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17588 | (exit $ac_status); }; } && | |
17589 | { ac_try='test -s conftest.$ac_objext' | |
17590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17591 | (eval $ac_try) 2>&5 | |
17592 | ac_status=$? | |
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17594 | (exit $ac_status); }; }; then | |
a3828db0 | 17595 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 17596 | else |
bec39cab AC |
17597 | echo "$as_me: failed program was:" >&5 |
17598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17599 | ||
b4e70030 | 17600 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 17601 | fi |
bec39cab | 17602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 17603 | fi |
b4e70030 JB |
17604 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
17605 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 17606 | |
a3828db0 MK |
17607 | cat >>confdefs.h <<_ACEOF |
17608 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 17609 | _ACEOF |
70f9f479 | 17610 | |
a3828db0 | 17611 | # Check argument types. |
b4e70030 JB |
17612 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
17613 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 17614 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
17615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17616 | else | |
a3828db0 MK |
17617 | |
17618 | for gdb_arg1 in 'int' 'long'; do | |
17619 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
17620 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
17621 | for gdb_arg4 in 'int' 'long'; do | |
17622 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17623 | /* confdefs.h. */ |
17624 | _ACEOF | |
17625 | cat confdefs.h >>conftest.$ac_ext | |
17626 | cat >>conftest.$ac_ext <<_ACEOF | |
17627 | /* end confdefs.h. */ | |
a3828db0 | 17628 | $gdb_ptrace_headers |
bec39cab AC |
17629 | int |
17630 | main () | |
17631 | { | |
a3828db0 MK |
17632 | |
17633 | extern $gdb_cv_func_ptrace_ret | |
17634 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
17635 | ||
bec39cab AC |
17636 | ; |
17637 | return 0; | |
17638 | } | |
17639 | _ACEOF | |
17640 | rm -f conftest.$ac_objext | |
17641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17642 | (eval $ac_compile) 2>conftest.er1 | |
17643 | ac_status=$? | |
17644 | grep -v '^ *+' conftest.er1 >conftest.err | |
17645 | rm -f conftest.er1 | |
17646 | cat conftest.err >&5 | |
17647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17648 | (exit $ac_status); } && | |
b4e70030 JB |
17649 | { ac_try='test -z "$ac_c_werror_flag" |
17650 | || test ! -s conftest.err' | |
bec39cab AC |
17651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17652 | (eval $ac_try) 2>&5 | |
17653 | ac_status=$? | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); }; } && | |
17656 | { ac_try='test -s conftest.$ac_objext' | |
17657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17658 | (eval $ac_try) 2>&5 | |
17659 | ac_status=$? | |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17661 | (exit $ac_status); }; }; then | |
a3828db0 MK |
17662 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
17663 | break 4; | |
5c7f2947 | 17664 | else |
bec39cab AC |
17665 | echo "$as_me: failed program was:" >&5 |
17666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17667 | ||
5c7f2947 | 17668 | fi |
bec39cab | 17669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17670 | for gdb_arg5 in 'int *' 'int' 'long'; do |
17671 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17672 | /* confdefs.h. */ |
17673 | _ACEOF | |
17674 | cat confdefs.h >>conftest.$ac_ext | |
17675 | cat >>conftest.$ac_ext <<_ACEOF | |
17676 | /* end confdefs.h. */ | |
a3828db0 | 17677 | $gdb_ptrace_headers |
bec39cab AC |
17678 | int |
17679 | main () | |
17680 | { | |
a3828db0 MK |
17681 | |
17682 | extern $gdb_cv_func_ptrace_ret | |
17683 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
17684 | ||
bec39cab AC |
17685 | ; |
17686 | return 0; | |
17687 | } | |
17688 | _ACEOF | |
17689 | rm -f conftest.$ac_objext | |
17690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17691 | (eval $ac_compile) 2>conftest.er1 | |
17692 | ac_status=$? | |
17693 | grep -v '^ *+' conftest.er1 >conftest.err | |
17694 | rm -f conftest.er1 | |
17695 | cat conftest.err >&5 | |
17696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17697 | (exit $ac_status); } && | |
b4e70030 JB |
17698 | { ac_try='test -z "$ac_c_werror_flag" |
17699 | || test ! -s conftest.err' | |
bec39cab AC |
17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17701 | (eval $ac_try) 2>&5 | |
17702 | ac_status=$? | |
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17704 | (exit $ac_status); }; } && | |
17705 | { ac_try='test -s conftest.$ac_objext' | |
17706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17707 | (eval $ac_try) 2>&5 | |
17708 | ac_status=$? | |
17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17710 | (exit $ac_status); }; }; then | |
a3828db0 MK |
17711 | |
17712 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
17713 | break 5; | |
78434e59 | 17714 | else |
bec39cab AC |
17715 | echo "$as_me: failed program was:" >&5 |
17716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17717 | ||
78434e59 | 17718 | fi |
bec39cab | 17719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17720 | done |
17721 | done | |
17722 | done | |
17723 | done | |
17724 | done | |
17725 | # Provide a safe default value. | |
17726 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
17727 | ||
78434e59 | 17728 | fi |
b4e70030 JB |
17729 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
17730 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
17731 | ac_save_IFS=$IFS; IFS=',' |
17732 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
17733 | IFS=$ac_save_IFS | |
17734 | shift | |
bec39cab | 17735 | |
a3828db0 MK |
17736 | cat >>confdefs.h <<_ACEOF |
17737 | #define PTRACE_TYPE_ARG3 $3 | |
17738 | _ACEOF | |
17739 | ||
17740 | if test -n "$5"; then | |
17741 | ||
17742 | cat >>confdefs.h <<_ACEOF | |
17743 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 17744 | _ACEOF |
78434e59 MK |
17745 | |
17746 | fi | |
17747 | ||
a3828db0 | 17748 | if test "$cross_compiling" = no; then |
b4e70030 JB |
17749 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
17750 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 17751 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 17752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
17753 | else |
17754 | if test "$cross_compiling" = yes; then | |
17755 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
17756 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
17757 | { (exit 1); exit 1; }; } | |
bec39cab AC |
17758 | else |
17759 | cat >conftest.$ac_ext <<_ACEOF | |
17760 | /* confdefs.h. */ | |
17761 | _ACEOF | |
17762 | cat confdefs.h >>conftest.$ac_ext | |
17763 | cat >>conftest.$ac_ext <<_ACEOF | |
17764 | /* end confdefs.h. */ | |
b4e70030 JB |
17765 | #if HAVE_UNISTD_H |
17766 | # include <unistd.h> | |
17767 | #endif | |
17768 | ||
bec39cab AC |
17769 | int |
17770 | main () | |
17771 | { | |
a3828db0 MK |
17772 | /* If this system has a BSD-style setpgrp which takes arguments, |
17773 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
17774 | exit successfully. */ | |
b4e70030 | 17775 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
17776 | ; |
17777 | return 0; | |
17778 | } | |
17779 | _ACEOF | |
a3828db0 MK |
17780 | rm -f conftest$ac_exeext |
17781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17782 | (eval $ac_link) 2>&5 | |
bec39cab AC |
17783 | ac_status=$? |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 17785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
17786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17787 | (eval $ac_try) 2>&5 | |
17788 | ac_status=$? | |
17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17790 | (exit $ac_status); }; }; then | |
a3828db0 | 17791 | ac_cv_func_setpgrp_void=no |
c906108c | 17792 | else |
a3828db0 MK |
17793 | echo "$as_me: program exited with status $ac_status" >&5 |
17794 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
17795 | sed 's/^/| /' conftest.$ac_ext >&5 |
17796 | ||
a3828db0 MK |
17797 | ( exit $ac_status ) |
17798 | ac_cv_func_setpgrp_void=yes | |
c906108c | 17799 | fi |
b4e70030 | 17800 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 17801 | fi |
a3828db0 | 17802 | fi |
b4e70030 JB |
17803 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
17804 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
17805 | if test $ac_cv_func_setpgrp_void = yes; then |
17806 | ||
17807 | cat >>confdefs.h <<\_ACEOF | |
17808 | #define SETPGRP_VOID 1 | |
bec39cab | 17809 | _ACEOF |
97bf5e38 MK |
17810 | |
17811 | fi | |
a3828db0 MK |
17812 | |
17813 | else | |
b4e70030 JB |
17814 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
17815 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 17816 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 17817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 17818 | else |
bec39cab AC |
17819 | cat >conftest.$ac_ext <<_ACEOF |
17820 | /* confdefs.h. */ | |
17821 | _ACEOF | |
17822 | cat confdefs.h >>conftest.$ac_ext | |
17823 | cat >>conftest.$ac_ext <<_ACEOF | |
17824 | /* end confdefs.h. */ | |
a3828db0 MK |
17825 | |
17826 | #include <unistd.h> | |
17827 | ||
bec39cab AC |
17828 | int |
17829 | main () | |
17830 | { | |
a3828db0 MK |
17831 | |
17832 | if (setpgrp(1,1) == -1) | |
17833 | exit (0); | |
17834 | else | |
17835 | exit (1); | |
17836 | ||
bec39cab AC |
17837 | ; |
17838 | return 0; | |
17839 | } | |
17840 | _ACEOF | |
17841 | rm -f conftest.$ac_objext | |
17842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17843 | (eval $ac_compile) 2>conftest.er1 | |
17844 | ac_status=$? | |
17845 | grep -v '^ *+' conftest.er1 >conftest.err | |
17846 | rm -f conftest.er1 | |
17847 | cat conftest.err >&5 | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); } && | |
b4e70030 JB |
17850 | { ac_try='test -z "$ac_c_werror_flag" |
17851 | || test ! -s conftest.err' | |
bec39cab AC |
17852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17853 | (eval $ac_try) 2>&5 | |
17854 | ac_status=$? | |
17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17856 | (exit $ac_status); }; } && | |
17857 | { ac_try='test -s conftest.$ac_objext' | |
17858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17859 | (eval $ac_try) 2>&5 | |
17860 | ac_status=$? | |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17862 | (exit $ac_status); }; }; then | |
a3828db0 | 17863 | ac_cv_func_setpgrp_void=no |
c906108c | 17864 | else |
bec39cab AC |
17865 | echo "$as_me: failed program was:" >&5 |
17866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17867 | ||
b4e70030 | 17868 | ac_cv_func_setpgrp_void=yes |
c906108c | 17869 | fi |
bec39cab | 17870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17871 | fi |
b4e70030 JB |
17872 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
17873 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 17874 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 17875 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 17876 | #define SETPGRP_VOID 1 |
bec39cab | 17877 | _ACEOF |
c3f6f71d | 17878 | |
a3828db0 | 17879 | fi |
c906108c SS |
17880 | fi |
17881 | ||
a3828db0 MK |
17882 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
17883 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
17884 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
17885 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 17886 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
17887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17888 | else | |
17889 | cat >conftest.$ac_ext <<_ACEOF | |
17890 | /* confdefs.h. */ | |
17891 | _ACEOF | |
17892 | cat confdefs.h >>conftest.$ac_ext | |
17893 | cat >>conftest.$ac_ext <<_ACEOF | |
17894 | /* end confdefs.h. */ | |
a3828db0 MK |
17895 | |
17896 | #include <setjmp.h> | |
17897 | ||
bec39cab AC |
17898 | int |
17899 | main () | |
17900 | { | |
a3828db0 | 17901 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
17902 | ; |
17903 | return 0; | |
17904 | } | |
17905 | _ACEOF | |
17906 | rm -f conftest.$ac_objext | |
17907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17908 | (eval $ac_compile) 2>conftest.er1 | |
17909 | ac_status=$? | |
17910 | grep -v '^ *+' conftest.er1 >conftest.err | |
17911 | rm -f conftest.er1 | |
17912 | cat conftest.err >&5 | |
17913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17914 | (exit $ac_status); } && | |
b4e70030 JB |
17915 | { ac_try='test -z "$ac_c_werror_flag" |
17916 | || test ! -s conftest.err' | |
bec39cab AC |
17917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17918 | (eval $ac_try) 2>&5 | |
17919 | ac_status=$? | |
17920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17921 | (exit $ac_status); }; } && | |
17922 | { ac_try='test -s conftest.$ac_objext' | |
17923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17924 | (eval $ac_try) 2>&5 | |
17925 | ac_status=$? | |
17926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17927 | (exit $ac_status); }; }; then | |
a3828db0 | 17928 | gdb_cv_func_sigsetjmp=yes |
c906108c | 17929 | else |
bec39cab AC |
17930 | echo "$as_me: failed program was:" >&5 |
17931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17932 | ||
b4e70030 | 17933 | gdb_cv_func_sigsetjmp=no |
c906108c | 17934 | fi |
bec39cab | 17935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17936 | fi |
b4e70030 JB |
17937 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
17938 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 17939 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 17940 | |
a3828db0 MK |
17941 | cat >>confdefs.h <<\_ACEOF |
17942 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 17943 | _ACEOF |
c906108c | 17944 | |
97bf5e38 | 17945 | fi |
c906108c | 17946 | |
a3828db0 MK |
17947 | # Assume we'll default to using the included libiberty regex. |
17948 | gdb_use_included_regex=yes | |
17949 | ||
17950 | # However, if the system regex is GNU regex, then default to *not* | |
17951 | # using the included regex. | |
b4e70030 JB |
17952 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
17953 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 17954 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
17955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17956 | else | |
17957 | cat >conftest.$ac_ext <<_ACEOF | |
17958 | /* confdefs.h. */ | |
17959 | _ACEOF | |
17960 | cat confdefs.h >>conftest.$ac_ext | |
17961 | cat >>conftest.$ac_ext <<_ACEOF | |
17962 | /* end confdefs.h. */ | |
a3828db0 | 17963 | #include <gnu-versions.h> |
bec39cab AC |
17964 | int |
17965 | main () | |
17966 | { | |
a3828db0 MK |
17967 | #define REGEX_INTERFACE_VERSION 1 |
17968 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
17969 | # error "Version mismatch" | |
17970 | #endif | |
bec39cab AC |
17971 | ; |
17972 | return 0; | |
17973 | } | |
17974 | _ACEOF | |
17975 | rm -f conftest.$ac_objext | |
17976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17977 | (eval $ac_compile) 2>conftest.er1 | |
17978 | ac_status=$? | |
17979 | grep -v '^ *+' conftest.er1 >conftest.err | |
17980 | rm -f conftest.er1 | |
17981 | cat conftest.err >&5 | |
17982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17983 | (exit $ac_status); } && | |
b4e70030 JB |
17984 | { ac_try='test -z "$ac_c_werror_flag" |
17985 | || test ! -s conftest.err' | |
bec39cab AC |
17986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17987 | (eval $ac_try) 2>&5 | |
17988 | ac_status=$? | |
17989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17990 | (exit $ac_status); }; } && | |
17991 | { ac_try='test -s conftest.$ac_objext' | |
17992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17993 | (eval $ac_try) 2>&5 | |
17994 | ac_status=$? | |
17995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17996 | (exit $ac_status); }; }; then | |
a3828db0 | 17997 | gdb_cv_have_gnu_regex=yes |
c906108c | 17998 | else |
bec39cab AC |
17999 | echo "$as_me: failed program was:" >&5 |
18000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18001 | ||
b4e70030 | 18002 | gdb_cv_have_gnu_regex=no |
c906108c | 18003 | fi |
bec39cab | 18004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18005 | fi |
b4e70030 JB |
18006 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
18007 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
18008 | if test $gdb_cv_have_gnu_regex = yes; then |
18009 | gdb_use_included_regex=no | |
18010 | fi | |
c906108c | 18011 | |
a3828db0 | 18012 | |
b4e70030 | 18013 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 18014 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
18015 | withval="$with_included_regex" |
18016 | gdb_with_regex=$withval | |
a3828db0 MK |
18017 | else |
18018 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 18019 | fi; |
a3828db0 MK |
18020 | if test "$gdb_with_regex" = yes; then |
18021 | ||
18022 | cat >>confdefs.h <<\_ACEOF | |
18023 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 18024 | _ACEOF |
c906108c | 18025 | |
97bf5e38 | 18026 | fi |
c906108c | 18027 | |
5c45e068 | 18028 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
18029 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
18030 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 18031 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
18032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18033 | else | |
18034 | cat >conftest.$ac_ext <<_ACEOF | |
18035 | /* confdefs.h. */ | |
18036 | _ACEOF | |
18037 | cat confdefs.h >>conftest.$ac_ext | |
18038 | cat >>conftest.$ac_ext <<_ACEOF | |
18039 | /* end confdefs.h. */ | |
a3828db0 MK |
18040 | #include <sys/param.h> |
18041 | #include <sys/proc.h> | |
5c45e068 MK |
18042 | |
18043 | ||
bec39cab AC |
18044 | int |
18045 | main () | |
18046 | { | |
5c45e068 MK |
18047 | static struct thread ac_aggr; |
18048 | if (ac_aggr.td_pcb) | |
18049 | return 0; | |
bec39cab AC |
18050 | ; |
18051 | return 0; | |
18052 | } | |
18053 | _ACEOF | |
18054 | rm -f conftest.$ac_objext | |
18055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18056 | (eval $ac_compile) 2>conftest.er1 | |
18057 | ac_status=$? | |
18058 | grep -v '^ *+' conftest.er1 >conftest.err | |
18059 | rm -f conftest.er1 | |
18060 | cat conftest.err >&5 | |
18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18062 | (exit $ac_status); } && | |
b4e70030 JB |
18063 | { ac_try='test -z "$ac_c_werror_flag" |
18064 | || test ! -s conftest.err' | |
bec39cab AC |
18065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18066 | (eval $ac_try) 2>&5 | |
18067 | ac_status=$? | |
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18069 | (exit $ac_status); }; } && | |
18070 | { ac_try='test -s conftest.$ac_objext' | |
18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18072 | (eval $ac_try) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); }; }; then | |
5c45e068 | 18076 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 18077 | else |
bec39cab AC |
18078 | echo "$as_me: failed program was:" >&5 |
18079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18080 | ||
b4e70030 | 18081 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18082 | /* confdefs.h. */ |
18083 | _ACEOF | |
18084 | cat confdefs.h >>conftest.$ac_ext | |
18085 | cat >>conftest.$ac_ext <<_ACEOF | |
18086 | /* end confdefs.h. */ | |
18087 | #include <sys/param.h> | |
18088 | #include <sys/proc.h> | |
18089 | ||
18090 | ||
18091 | int | |
18092 | main () | |
18093 | { | |
18094 | static struct thread ac_aggr; | |
18095 | if (sizeof ac_aggr.td_pcb) | |
18096 | return 0; | |
18097 | ; | |
18098 | return 0; | |
18099 | } | |
18100 | _ACEOF | |
18101 | rm -f conftest.$ac_objext | |
18102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18103 | (eval $ac_compile) 2>conftest.er1 | |
18104 | ac_status=$? | |
18105 | grep -v '^ *+' conftest.er1 >conftest.err | |
18106 | rm -f conftest.er1 | |
18107 | cat conftest.err >&5 | |
18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18109 | (exit $ac_status); } && | |
b4e70030 JB |
18110 | { ac_try='test -z "$ac_c_werror_flag" |
18111 | || test ! -s conftest.err' | |
5c45e068 MK |
18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18113 | (eval $ac_try) 2>&5 | |
18114 | ac_status=$? | |
18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18116 | (exit $ac_status); }; } && | |
18117 | { ac_try='test -s conftest.$ac_objext' | |
18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18119 | (eval $ac_try) 2>&5 | |
18120 | ac_status=$? | |
18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18122 | (exit $ac_status); }; }; then | |
18123 | ac_cv_member_struct_thread_td_pcb=yes | |
18124 | else | |
18125 | echo "$as_me: failed program was:" >&5 | |
18126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18127 | ||
b4e70030 | 18128 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
18129 | fi |
18130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 18131 | fi |
bec39cab | 18132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18133 | fi |
b4e70030 JB |
18134 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
18135 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 18136 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 18137 | |
5c45e068 | 18138 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18139 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 18140 | _ACEOF |
c906108c | 18141 | |
5c45e068 | 18142 | |
97bf5e38 | 18143 | fi |
c906108c | 18144 | |
5c45e068 | 18145 | |
a3828db0 | 18146 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
18147 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
18148 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 18149 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
18150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18151 | else | |
18152 | cat >conftest.$ac_ext <<_ACEOF | |
18153 | /* confdefs.h. */ | |
18154 | _ACEOF | |
18155 | cat confdefs.h >>conftest.$ac_ext | |
18156 | cat >>conftest.$ac_ext <<_ACEOF | |
18157 | /* end confdefs.h. */ | |
a3828db0 MK |
18158 | #include <sys/param.h> |
18159 | #include <sys/lwp.h> | |
bec39cab AC |
18160 | int |
18161 | main () | |
18162 | { | |
a3828db0 | 18163 | struct lwp l; |
bec39cab AC |
18164 | ; |
18165 | return 0; | |
18166 | } | |
18167 | _ACEOF | |
18168 | rm -f conftest.$ac_objext | |
18169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18170 | (eval $ac_compile) 2>conftest.er1 | |
18171 | ac_status=$? | |
18172 | grep -v '^ *+' conftest.er1 >conftest.err | |
18173 | rm -f conftest.er1 | |
18174 | cat conftest.err >&5 | |
18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18176 | (exit $ac_status); } && | |
b4e70030 JB |
18177 | { ac_try='test -z "$ac_c_werror_flag" |
18178 | || test ! -s conftest.err' | |
bec39cab AC |
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18180 | (eval $ac_try) 2>&5 | |
18181 | ac_status=$? | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); }; } && | |
18184 | { ac_try='test -s conftest.$ac_objext' | |
18185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18186 | (eval $ac_try) 2>&5 | |
18187 | ac_status=$? | |
18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18189 | (exit $ac_status); }; }; then | |
a3828db0 | 18190 | gdb_cv_struct_lwp=yes |
c906108c | 18191 | else |
bec39cab AC |
18192 | echo "$as_me: failed program was:" >&5 |
18193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18194 | ||
b4e70030 | 18195 | gdb_cv_struct_lwp=no |
c906108c | 18196 | fi |
bec39cab | 18197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18198 | fi |
b4e70030 JB |
18199 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
18200 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 18201 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 18202 | |
a3828db0 MK |
18203 | cat >>confdefs.h <<\_ACEOF |
18204 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 18205 | _ACEOF |
c906108c | 18206 | |
97bf5e38 | 18207 | fi |
c906108c | 18208 | |
a3828db0 | 18209 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
18210 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
18211 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 18212 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
18213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18214 | else | |
18215 | cat >conftest.$ac_ext <<_ACEOF | |
18216 | /* confdefs.h. */ | |
18217 | _ACEOF | |
18218 | cat confdefs.h >>conftest.$ac_ext | |
18219 | cat >>conftest.$ac_ext <<_ACEOF | |
18220 | /* end confdefs.h. */ | |
a3828db0 MK |
18221 | #include <sys/types.h> |
18222 | #include <machine/reg.h> | |
bec39cab AC |
18223 | int |
18224 | main () | |
18225 | { | |
a3828db0 | 18226 | struct reg r; |
bec39cab AC |
18227 | ; |
18228 | return 0; | |
18229 | } | |
18230 | _ACEOF | |
18231 | rm -f conftest.$ac_objext | |
18232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18233 | (eval $ac_compile) 2>conftest.er1 | |
18234 | ac_status=$? | |
18235 | grep -v '^ *+' conftest.er1 >conftest.err | |
18236 | rm -f conftest.er1 | |
18237 | cat conftest.err >&5 | |
18238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18239 | (exit $ac_status); } && | |
b4e70030 JB |
18240 | { ac_try='test -z "$ac_c_werror_flag" |
18241 | || test ! -s conftest.err' | |
bec39cab AC |
18242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18243 | (eval $ac_try) 2>&5 | |
18244 | ac_status=$? | |
18245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18246 | (exit $ac_status); }; } && | |
18247 | { ac_try='test -s conftest.$ac_objext' | |
18248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18249 | (eval $ac_try) 2>&5 | |
18250 | ac_status=$? | |
18251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18252 | (exit $ac_status); }; }; then | |
a3828db0 | 18253 | gdb_cv_struct_reg=yes |
27ca5dad | 18254 | else |
bec39cab AC |
18255 | echo "$as_me: failed program was:" >&5 |
18256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18257 | ||
b4e70030 | 18258 | gdb_cv_struct_reg=no |
27ca5dad | 18259 | fi |
bec39cab | 18260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 18261 | fi |
b4e70030 JB |
18262 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
18263 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 18264 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
18265 | |
18266 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18267 | #define HAVE_STRUCT_REG 1 |
bec39cab | 18268 | _ACEOF |
27ca5dad MC |
18269 | |
18270 | fi | |
97bf5e38 | 18271 | |
a3828db0 MK |
18272 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
18273 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
18274 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
18275 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 18276 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 18277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18278 | else |
bec39cab AC |
18279 | cat >conftest.$ac_ext <<_ACEOF |
18280 | /* confdefs.h. */ | |
18281 | _ACEOF | |
18282 | cat confdefs.h >>conftest.$ac_ext | |
18283 | cat >>conftest.$ac_ext <<_ACEOF | |
18284 | /* end confdefs.h. */ | |
a3828db0 | 18285 | #include <machine/reg.h> |
5c45e068 MK |
18286 | |
18287 | int | |
18288 | main () | |
18289 | { | |
18290 | static struct reg ac_aggr; | |
18291 | if (ac_aggr.r_fs) | |
18292 | return 0; | |
18293 | ; | |
18294 | return 0; | |
18295 | } | |
18296 | _ACEOF | |
18297 | rm -f conftest.$ac_objext | |
18298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18299 | (eval $ac_compile) 2>conftest.er1 | |
18300 | ac_status=$? | |
18301 | grep -v '^ *+' conftest.er1 >conftest.err | |
18302 | rm -f conftest.er1 | |
18303 | cat conftest.err >&5 | |
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18305 | (exit $ac_status); } && | |
b4e70030 JB |
18306 | { ac_try='test -z "$ac_c_werror_flag" |
18307 | || test ! -s conftest.err' | |
5c45e068 MK |
18308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18309 | (eval $ac_try) 2>&5 | |
18310 | ac_status=$? | |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18312 | (exit $ac_status); }; } && | |
18313 | { ac_try='test -s conftest.$ac_objext' | |
18314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18315 | (eval $ac_try) 2>&5 | |
18316 | ac_status=$? | |
18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18318 | (exit $ac_status); }; }; then | |
18319 | ac_cv_member_struct_reg_r_fs=yes | |
18320 | else | |
18321 | echo "$as_me: failed program was:" >&5 | |
18322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18323 | ||
b4e70030 | 18324 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18325 | /* confdefs.h. */ |
18326 | _ACEOF | |
18327 | cat confdefs.h >>conftest.$ac_ext | |
18328 | cat >>conftest.$ac_ext <<_ACEOF | |
18329 | /* end confdefs.h. */ | |
18330 | #include <machine/reg.h> | |
18331 | ||
bec39cab AC |
18332 | int |
18333 | main () | |
18334 | { | |
5c45e068 MK |
18335 | static struct reg ac_aggr; |
18336 | if (sizeof ac_aggr.r_fs) | |
18337 | return 0; | |
bec39cab AC |
18338 | ; |
18339 | return 0; | |
18340 | } | |
18341 | _ACEOF | |
18342 | rm -f conftest.$ac_objext | |
18343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18344 | (eval $ac_compile) 2>conftest.er1 | |
18345 | ac_status=$? | |
18346 | grep -v '^ *+' conftest.er1 >conftest.err | |
18347 | rm -f conftest.er1 | |
18348 | cat conftest.err >&5 | |
18349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18350 | (exit $ac_status); } && | |
b4e70030 JB |
18351 | { ac_try='test -z "$ac_c_werror_flag" |
18352 | || test ! -s conftest.err' | |
bec39cab AC |
18353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18354 | (eval $ac_try) 2>&5 | |
18355 | ac_status=$? | |
18356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18357 | (exit $ac_status); }; } && | |
18358 | { ac_try='test -s conftest.$ac_objext' | |
18359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18360 | (eval $ac_try) 2>&5 | |
18361 | ac_status=$? | |
18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18363 | (exit $ac_status); }; }; then | |
5c45e068 | 18364 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 18365 | else |
bec39cab AC |
18366 | echo "$as_me: failed program was:" >&5 |
18367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18368 | ||
b4e70030 | 18369 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 18370 | fi |
bec39cab | 18371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18372 | fi |
5c45e068 MK |
18373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18374 | fi | |
b4e70030 JB |
18375 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
18376 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
18377 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
18378 | ||
18379 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18380 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 18381 | _ACEOF |
3862412b | 18382 | |
5c45e068 | 18383 | |
97bf5e38 | 18384 | fi |
b4e70030 JB |
18385 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
18386 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 18387 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 18388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18389 | else |
bec39cab AC |
18390 | cat >conftest.$ac_ext <<_ACEOF |
18391 | /* confdefs.h. */ | |
18392 | _ACEOF | |
18393 | cat confdefs.h >>conftest.$ac_ext | |
18394 | cat >>conftest.$ac_ext <<_ACEOF | |
18395 | /* end confdefs.h. */ | |
a3828db0 | 18396 | #include <machine/reg.h> |
5c45e068 | 18397 | |
bec39cab AC |
18398 | int |
18399 | main () | |
18400 | { | |
5c45e068 MK |
18401 | static struct reg ac_aggr; |
18402 | if (ac_aggr.r_gs) | |
18403 | return 0; | |
bec39cab AC |
18404 | ; |
18405 | return 0; | |
18406 | } | |
18407 | _ACEOF | |
18408 | rm -f conftest.$ac_objext | |
18409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18410 | (eval $ac_compile) 2>conftest.er1 | |
18411 | ac_status=$? | |
18412 | grep -v '^ *+' conftest.er1 >conftest.err | |
18413 | rm -f conftest.er1 | |
18414 | cat conftest.err >&5 | |
18415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18416 | (exit $ac_status); } && | |
b4e70030 JB |
18417 | { ac_try='test -z "$ac_c_werror_flag" |
18418 | || test ! -s conftest.err' | |
bec39cab AC |
18419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18420 | (eval $ac_try) 2>&5 | |
18421 | ac_status=$? | |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18423 | (exit $ac_status); }; } && | |
18424 | { ac_try='test -s conftest.$ac_objext' | |
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18426 | (eval $ac_try) 2>&5 | |
18427 | ac_status=$? | |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18429 | (exit $ac_status); }; }; then | |
5c45e068 | 18430 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 18431 | else |
bec39cab AC |
18432 | echo "$as_me: failed program was:" >&5 |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18434 | ||
b4e70030 | 18435 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18436 | /* confdefs.h. */ |
18437 | _ACEOF | |
18438 | cat confdefs.h >>conftest.$ac_ext | |
18439 | cat >>conftest.$ac_ext <<_ACEOF | |
18440 | /* end confdefs.h. */ | |
18441 | #include <machine/reg.h> | |
18442 | ||
18443 | int | |
18444 | main () | |
18445 | { | |
18446 | static struct reg ac_aggr; | |
18447 | if (sizeof ac_aggr.r_gs) | |
18448 | return 0; | |
18449 | ; | |
18450 | return 0; | |
18451 | } | |
18452 | _ACEOF | |
18453 | rm -f conftest.$ac_objext | |
18454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18455 | (eval $ac_compile) 2>conftest.er1 | |
18456 | ac_status=$? | |
18457 | grep -v '^ *+' conftest.er1 >conftest.err | |
18458 | rm -f conftest.er1 | |
18459 | cat conftest.err >&5 | |
18460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18461 | (exit $ac_status); } && | |
b4e70030 JB |
18462 | { ac_try='test -z "$ac_c_werror_flag" |
18463 | || test ! -s conftest.err' | |
5c45e068 MK |
18464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18465 | (eval $ac_try) 2>&5 | |
18466 | ac_status=$? | |
18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18468 | (exit $ac_status); }; } && | |
18469 | { ac_try='test -s conftest.$ac_objext' | |
18470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18471 | (eval $ac_try) 2>&5 | |
18472 | ac_status=$? | |
18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18474 | (exit $ac_status); }; }; then | |
18475 | ac_cv_member_struct_reg_r_gs=yes | |
18476 | else | |
18477 | echo "$as_me: failed program was:" >&5 | |
18478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18479 | ||
b4e70030 | 18480 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 18481 | fi |
bec39cab | 18482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18483 | fi |
5c45e068 MK |
18484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18485 | fi | |
b4e70030 JB |
18486 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
18487 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
18488 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
18489 | ||
18490 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18491 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 18492 | _ACEOF |
3862412b | 18493 | |
5c45e068 | 18494 | |
97bf5e38 | 18495 | fi |
3862412b | 18496 | |
5c45e068 | 18497 | |
a3828db0 | 18498 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
18499 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
18500 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 18501 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 18502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 18503 | else |
bec39cab AC |
18504 | cat >conftest.$ac_ext <<_ACEOF |
18505 | /* confdefs.h. */ | |
18506 | _ACEOF | |
18507 | cat confdefs.h >>conftest.$ac_ext | |
18508 | cat >>conftest.$ac_ext <<_ACEOF | |
18509 | /* end confdefs.h. */ | |
a3828db0 | 18510 | #include <sys/ptrace.h> |
bec39cab AC |
18511 | int |
18512 | main () | |
18513 | { | |
a3828db0 | 18514 | PTRACE_GETREGS; |
bec39cab AC |
18515 | ; |
18516 | return 0; | |
18517 | } | |
18518 | _ACEOF | |
18519 | rm -f conftest.$ac_objext | |
18520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18521 | (eval $ac_compile) 2>conftest.er1 | |
18522 | ac_status=$? | |
18523 | grep -v '^ *+' conftest.er1 >conftest.err | |
18524 | rm -f conftest.er1 | |
18525 | cat conftest.err >&5 | |
18526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18527 | (exit $ac_status); } && | |
b4e70030 JB |
18528 | { ac_try='test -z "$ac_c_werror_flag" |
18529 | || test ! -s conftest.err' | |
bec39cab AC |
18530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18531 | (eval $ac_try) 2>&5 | |
18532 | ac_status=$? | |
18533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18534 | (exit $ac_status); }; } && | |
18535 | { ac_try='test -s conftest.$ac_objext' | |
18536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18537 | (eval $ac_try) 2>&5 | |
18538 | ac_status=$? | |
18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18540 | (exit $ac_status); }; }; then | |
a3828db0 | 18541 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 18542 | else |
bec39cab AC |
18543 | echo "$as_me: failed program was:" >&5 |
18544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18545 | ||
b4e70030 | 18546 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 18547 | fi |
bec39cab | 18548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
18549 | fi |
18550 | ||
b4e70030 JB |
18551 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
18552 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 18553 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
18554 | |
18555 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18556 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 18557 | _ACEOF |
451928c5 | 18558 | |
97bf5e38 | 18559 | fi |
451928c5 | 18560 | |
a3828db0 | 18561 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
18562 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
18563 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 18564 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 18565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 18566 | else |
bec39cab AC |
18567 | cat >conftest.$ac_ext <<_ACEOF |
18568 | /* confdefs.h. */ | |
18569 | _ACEOF | |
18570 | cat confdefs.h >>conftest.$ac_ext | |
18571 | cat >>conftest.$ac_ext <<_ACEOF | |
18572 | /* end confdefs.h. */ | |
a3828db0 | 18573 | #include <sys/ptrace.h> |
bec39cab AC |
18574 | int |
18575 | main () | |
18576 | { | |
a3828db0 | 18577 | PTRACE_GETFPXREGS; |
bec39cab AC |
18578 | ; |
18579 | return 0; | |
18580 | } | |
18581 | _ACEOF | |
18582 | rm -f conftest.$ac_objext | |
18583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18584 | (eval $ac_compile) 2>conftest.er1 | |
18585 | ac_status=$? | |
18586 | grep -v '^ *+' conftest.er1 >conftest.err | |
18587 | rm -f conftest.er1 | |
18588 | cat conftest.err >&5 | |
18589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18590 | (exit $ac_status); } && | |
b4e70030 JB |
18591 | { ac_try='test -z "$ac_c_werror_flag" |
18592 | || test ! -s conftest.err' | |
bec39cab AC |
18593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18594 | (eval $ac_try) 2>&5 | |
18595 | ac_status=$? | |
18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18597 | (exit $ac_status); }; } && | |
18598 | { ac_try='test -s conftest.$ac_objext' | |
18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18600 | (eval $ac_try) 2>&5 | |
18601 | ac_status=$? | |
18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18603 | (exit $ac_status); }; }; then | |
a3828db0 | 18604 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 18605 | else |
bec39cab AC |
18606 | echo "$as_me: failed program was:" >&5 |
18607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18608 | ||
b4e70030 | 18609 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 18610 | fi |
bec39cab | 18611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
18612 | fi |
18613 | ||
b4e70030 JB |
18614 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
18615 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 18616 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
18617 | |
18618 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18619 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 18620 | _ACEOF |
451928c5 | 18621 | |
97bf5e38 | 18622 | fi |
451928c5 | 18623 | |
a3828db0 | 18624 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
18625 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
18626 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 18627 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 18628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18629 | else |
bec39cab AC |
18630 | cat >conftest.$ac_ext <<_ACEOF |
18631 | /* confdefs.h. */ | |
18632 | _ACEOF | |
18633 | cat confdefs.h >>conftest.$ac_ext | |
18634 | cat >>conftest.$ac_ext <<_ACEOF | |
18635 | /* end confdefs.h. */ | |
a3828db0 MK |
18636 | #include <sys/types.h> |
18637 | #include <sys/ptrace.h> | |
bec39cab AC |
18638 | int |
18639 | main () | |
18640 | { | |
a3828db0 | 18641 | PT_GETDBREGS; |
bec39cab AC |
18642 | ; |
18643 | return 0; | |
18644 | } | |
18645 | _ACEOF | |
18646 | rm -f conftest.$ac_objext | |
18647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18648 | (eval $ac_compile) 2>conftest.er1 | |
18649 | ac_status=$? | |
18650 | grep -v '^ *+' conftest.er1 >conftest.err | |
18651 | rm -f conftest.er1 | |
18652 | cat conftest.err >&5 | |
18653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18654 | (exit $ac_status); } && | |
b4e70030 JB |
18655 | { ac_try='test -z "$ac_c_werror_flag" |
18656 | || test ! -s conftest.err' | |
bec39cab AC |
18657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18658 | (eval $ac_try) 2>&5 | |
18659 | ac_status=$? | |
18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18661 | (exit $ac_status); }; } && | |
18662 | { ac_try='test -s conftest.$ac_objext' | |
18663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18664 | (eval $ac_try) 2>&5 | |
18665 | ac_status=$? | |
18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18667 | (exit $ac_status); }; }; then | |
a3828db0 | 18668 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 18669 | else |
bec39cab AC |
18670 | echo "$as_me: failed program was:" >&5 |
18671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18672 | ||
b4e70030 | 18673 | gdb_cv_have_pt_getdbregs=no |
3862412b | 18674 | fi |
bec39cab | 18675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
18676 | fi |
18677 | ||
b4e70030 JB |
18678 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
18679 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 18680 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
18681 | |
18682 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18683 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 18684 | _ACEOF |
3862412b | 18685 | |
97bf5e38 | 18686 | fi |
3862412b | 18687 | |
a3828db0 | 18688 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
18689 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
18690 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 18691 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 18692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18693 | else |
bec39cab AC |
18694 | cat >conftest.$ac_ext <<_ACEOF |
18695 | /* confdefs.h. */ | |
18696 | _ACEOF | |
18697 | cat confdefs.h >>conftest.$ac_ext | |
18698 | cat >>conftest.$ac_ext <<_ACEOF | |
18699 | /* end confdefs.h. */ | |
a3828db0 MK |
18700 | #include <sys/types.h> |
18701 | #include <sys/ptrace.h> | |
bec39cab AC |
18702 | int |
18703 | main () | |
18704 | { | |
a3828db0 | 18705 | PT_GETXMMREGS; |
bec39cab AC |
18706 | ; |
18707 | return 0; | |
18708 | } | |
18709 | _ACEOF | |
18710 | rm -f conftest.$ac_objext | |
18711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18712 | (eval $ac_compile) 2>conftest.er1 | |
18713 | ac_status=$? | |
18714 | grep -v '^ *+' conftest.er1 >conftest.err | |
18715 | rm -f conftest.er1 | |
18716 | cat conftest.err >&5 | |
18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18718 | (exit $ac_status); } && | |
b4e70030 JB |
18719 | { ac_try='test -z "$ac_c_werror_flag" |
18720 | || test ! -s conftest.err' | |
bec39cab AC |
18721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18722 | (eval $ac_try) 2>&5 | |
18723 | ac_status=$? | |
18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18725 | (exit $ac_status); }; } && | |
18726 | { ac_try='test -s conftest.$ac_objext' | |
18727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18728 | (eval $ac_try) 2>&5 | |
18729 | ac_status=$? | |
18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18731 | (exit $ac_status); }; }; then | |
a3828db0 | 18732 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 18733 | else |
bec39cab AC |
18734 | echo "$as_me: failed program was:" >&5 |
18735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18736 | ||
b4e70030 | 18737 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 18738 | fi |
bec39cab | 18739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
18740 | fi |
18741 | ||
b4e70030 JB |
18742 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
18743 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 18744 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
18745 | |
18746 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18747 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 18748 | _ACEOF |
3862412b | 18749 | |
97bf5e38 | 18750 | fi |
3862412b | 18751 | |
97bf5e38 MK |
18752 | # If we are configured native on GNU/Linux, work around problems with |
18753 | # sys/procfs.h | |
18754 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
18755 | ||
18756 | if test "${target}" = "${host}"; then | |
18757 | case "${host}" in | |
18758 | i[3456]86-*-linux*) | |
60ca704f SE |
18759 | |
18760 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18761 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 18762 | _ACEOF |
97bf5e38 | 18763 | |
60ca704f SE |
18764 | |
18765 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18766 | #define sys_quotactl 1 |
bec39cab | 18767 | _ACEOF |
97bf5e38 MK |
18768 | |
18769 | ;; | |
97bf5e38 | 18770 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
18771 | |
18772 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18773 | #define NEW_PROC_API 1 |
bec39cab | 18774 | _ACEOF |
97bf5e38 MK |
18775 | |
18776 | ;; | |
0bbc026e | 18777 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
18778 | |
18779 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18780 | #define NEW_PROC_API 1 |
bec39cab | 18781 | _ACEOF |
c960c18f AC |
18782 | |
18783 | ;; | |
18784 | mips-sgi-irix5*) | |
18785 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
18786 | |
18787 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 18788 | #define _KMEMUSER 1 |
bec39cab | 18789 | _ACEOF |
97bf5e38 MK |
18790 | |
18791 | ;; | |
18792 | esac | |
18793 | fi | |
18794 | ||
18795 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
18796 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
18797 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18798 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
18799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18800 | else | |
18801 | cat >conftest.$ac_ext <<_ACEOF | |
18802 | /* confdefs.h. */ | |
18803 | _ACEOF | |
18804 | cat confdefs.h >>conftest.$ac_ext | |
18805 | cat >>conftest.$ac_ext <<_ACEOF | |
18806 | /* end confdefs.h. */ | |
596c9d4b KB |
18807 | |
18808 | #define _SYSCALL32 | |
18809 | #include <sys/procfs.h> | |
bec39cab AC |
18810 | int |
18811 | main () | |
18812 | { | |
97bf5e38 | 18813 | pstatus_t avar |
bec39cab AC |
18814 | ; |
18815 | return 0; | |
18816 | } | |
18817 | _ACEOF | |
18818 | rm -f conftest.$ac_objext | |
18819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18820 | (eval $ac_compile) 2>conftest.er1 | |
18821 | ac_status=$? | |
18822 | grep -v '^ *+' conftest.er1 >conftest.err | |
18823 | rm -f conftest.er1 | |
18824 | cat conftest.err >&5 | |
18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18826 | (exit $ac_status); } && | |
b4e70030 JB |
18827 | { ac_try='test -z "$ac_c_werror_flag" |
18828 | || test ! -s conftest.err' | |
bec39cab AC |
18829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18830 | (eval $ac_try) 2>&5 | |
18831 | ac_status=$? | |
18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18833 | (exit $ac_status); }; } && | |
18834 | { ac_try='test -s conftest.$ac_objext' | |
18835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18836 | (eval $ac_try) 2>&5 | |
18837 | ac_status=$? | |
18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18839 | (exit $ac_status); }; }; then | |
97bf5e38 | 18840 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 18841 | else |
bec39cab AC |
18842 | echo "$as_me: failed program was:" >&5 |
18843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18844 | ||
b4e70030 | 18845 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 18846 | |
596c9d4b | 18847 | fi |
bec39cab | 18848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18849 | fi |
18850 | ||
97bf5e38 | 18851 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
18852 | |
18853 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18854 | #define HAVE_PSTATUS_T 1 |
bec39cab | 18855 | _ACEOF |
596c9d4b KB |
18856 | |
18857 | fi | |
b4e70030 JB |
18858 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
18859 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 18860 | |
b4e70030 JB |
18861 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
18862 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18863 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
18864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 18865 | else |
bec39cab AC |
18866 | cat >conftest.$ac_ext <<_ACEOF |
18867 | /* confdefs.h. */ | |
18868 | _ACEOF | |
18869 | cat confdefs.h >>conftest.$ac_ext | |
18870 | cat >>conftest.$ac_ext <<_ACEOF | |
18871 | /* end confdefs.h. */ | |
596c9d4b KB |
18872 | |
18873 | #define _SYSCALL32 | |
18874 | #include <sys/procfs.h> | |
bec39cab AC |
18875 | int |
18876 | main () | |
18877 | { | |
97bf5e38 | 18878 | prrun_t avar |
bec39cab AC |
18879 | ; |
18880 | return 0; | |
18881 | } | |
18882 | _ACEOF | |
18883 | rm -f conftest.$ac_objext | |
18884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18885 | (eval $ac_compile) 2>conftest.er1 | |
18886 | ac_status=$? | |
18887 | grep -v '^ *+' conftest.er1 >conftest.err | |
18888 | rm -f conftest.er1 | |
18889 | cat conftest.err >&5 | |
18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18891 | (exit $ac_status); } && | |
b4e70030 JB |
18892 | { ac_try='test -z "$ac_c_werror_flag" |
18893 | || test ! -s conftest.err' | |
bec39cab AC |
18894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18895 | (eval $ac_try) 2>&5 | |
18896 | ac_status=$? | |
18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18898 | (exit $ac_status); }; } && | |
18899 | { ac_try='test -s conftest.$ac_objext' | |
18900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18901 | (eval $ac_try) 2>&5 | |
18902 | ac_status=$? | |
18903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18904 | (exit $ac_status); }; }; then | |
97bf5e38 | 18905 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 18906 | else |
bec39cab AC |
18907 | echo "$as_me: failed program was:" >&5 |
18908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18909 | ||
b4e70030 | 18910 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 18911 | |
596c9d4b | 18912 | fi |
bec39cab | 18913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18914 | fi |
18915 | ||
97bf5e38 | 18916 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
18917 | |
18918 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18919 | #define HAVE_PRRUN_T 1 |
bec39cab | 18920 | _ACEOF |
596c9d4b KB |
18921 | |
18922 | fi | |
b4e70030 JB |
18923 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
18924 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 18925 | |
b4e70030 JB |
18926 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
18927 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18928 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
18929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 18930 | else |
bec39cab AC |
18931 | cat >conftest.$ac_ext <<_ACEOF |
18932 | /* confdefs.h. */ | |
18933 | _ACEOF | |
18934 | cat confdefs.h >>conftest.$ac_ext | |
18935 | cat >>conftest.$ac_ext <<_ACEOF | |
18936 | /* end confdefs.h. */ | |
596c9d4b KB |
18937 | |
18938 | #define _SYSCALL32 | |
18939 | #include <sys/procfs.h> | |
bec39cab AC |
18940 | int |
18941 | main () | |
18942 | { | |
97bf5e38 | 18943 | gregset_t avar |
bec39cab AC |
18944 | ; |
18945 | return 0; | |
18946 | } | |
18947 | _ACEOF | |
18948 | rm -f conftest.$ac_objext | |
18949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18950 | (eval $ac_compile) 2>conftest.er1 | |
18951 | ac_status=$? | |
18952 | grep -v '^ *+' conftest.er1 >conftest.err | |
18953 | rm -f conftest.er1 | |
18954 | cat conftest.err >&5 | |
18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18956 | (exit $ac_status); } && | |
b4e70030 JB |
18957 | { ac_try='test -z "$ac_c_werror_flag" |
18958 | || test ! -s conftest.err' | |
bec39cab AC |
18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18960 | (eval $ac_try) 2>&5 | |
18961 | ac_status=$? | |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18963 | (exit $ac_status); }; } && | |
18964 | { ac_try='test -s conftest.$ac_objext' | |
18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18966 | (eval $ac_try) 2>&5 | |
18967 | ac_status=$? | |
18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18969 | (exit $ac_status); }; }; then | |
97bf5e38 | 18970 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 18971 | else |
bec39cab AC |
18972 | echo "$as_me: failed program was:" >&5 |
18973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18974 | ||
b4e70030 | 18975 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 18976 | |
596c9d4b | 18977 | fi |
bec39cab | 18978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18979 | fi |
18980 | ||
97bf5e38 | 18981 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
18982 | |
18983 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18984 | #define HAVE_GREGSET_T 1 |
bec39cab | 18985 | _ACEOF |
596c9d4b KB |
18986 | |
18987 | fi | |
b4e70030 JB |
18988 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
18989 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 18990 | |
b4e70030 JB |
18991 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
18992 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18993 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
18994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 18995 | else |
bec39cab AC |
18996 | cat >conftest.$ac_ext <<_ACEOF |
18997 | /* confdefs.h. */ | |
18998 | _ACEOF | |
18999 | cat confdefs.h >>conftest.$ac_ext | |
19000 | cat >>conftest.$ac_ext <<_ACEOF | |
19001 | /* end confdefs.h. */ | |
97bf5e38 MK |
19002 | |
19003 | #define _SYSCALL32 | |
d84dd0c5 | 19004 | #include <sys/procfs.h> |
bec39cab AC |
19005 | int |
19006 | main () | |
19007 | { | |
97bf5e38 | 19008 | fpregset_t avar |
bec39cab AC |
19009 | ; |
19010 | return 0; | |
19011 | } | |
19012 | _ACEOF | |
19013 | rm -f conftest.$ac_objext | |
19014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19015 | (eval $ac_compile) 2>conftest.er1 | |
19016 | ac_status=$? | |
19017 | grep -v '^ *+' conftest.er1 >conftest.err | |
19018 | rm -f conftest.er1 | |
19019 | cat conftest.err >&5 | |
19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19021 | (exit $ac_status); } && | |
b4e70030 JB |
19022 | { ac_try='test -z "$ac_c_werror_flag" |
19023 | || test ! -s conftest.err' | |
bec39cab AC |
19024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19025 | (eval $ac_try) 2>&5 | |
19026 | ac_status=$? | |
19027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19028 | (exit $ac_status); }; } && | |
19029 | { ac_try='test -s conftest.$ac_objext' | |
19030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19031 | (eval $ac_try) 2>&5 | |
19032 | ac_status=$? | |
19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19034 | (exit $ac_status); }; }; then | |
97bf5e38 | 19035 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 19036 | else |
bec39cab AC |
19037 | echo "$as_me: failed program was:" >&5 |
19038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19039 | ||
b4e70030 | 19040 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 19041 | |
d84dd0c5 | 19042 | fi |
bec39cab | 19043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
19044 | fi |
19045 | ||
97bf5e38 | 19046 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
19047 | |
19048 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19049 | #define HAVE_FPREGSET_T 1 |
bec39cab | 19050 | _ACEOF |
d84dd0c5 | 19051 | |
97bf5e38 | 19052 | fi |
b4e70030 JB |
19053 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
19054 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 19055 | |
b4e70030 JB |
19056 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
19057 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19058 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
19059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19060 | else |
bec39cab AC |
19061 | cat >conftest.$ac_ext <<_ACEOF |
19062 | /* confdefs.h. */ | |
19063 | _ACEOF | |
19064 | cat confdefs.h >>conftest.$ac_ext | |
19065 | cat >>conftest.$ac_ext <<_ACEOF | |
19066 | /* end confdefs.h. */ | |
c906108c | 19067 | |
97bf5e38 MK |
19068 | #define _SYSCALL32 |
19069 | #include <sys/procfs.h> | |
bec39cab AC |
19070 | int |
19071 | main () | |
19072 | { | |
97bf5e38 | 19073 | prgregset_t avar |
bec39cab AC |
19074 | ; |
19075 | return 0; | |
19076 | } | |
19077 | _ACEOF | |
19078 | rm -f conftest.$ac_objext | |
19079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19080 | (eval $ac_compile) 2>conftest.er1 | |
19081 | ac_status=$? | |
19082 | grep -v '^ *+' conftest.er1 >conftest.err | |
19083 | rm -f conftest.er1 | |
19084 | cat conftest.err >&5 | |
19085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19086 | (exit $ac_status); } && | |
b4e70030 JB |
19087 | { ac_try='test -z "$ac_c_werror_flag" |
19088 | || test ! -s conftest.err' | |
bec39cab AC |
19089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19090 | (eval $ac_try) 2>&5 | |
19091 | ac_status=$? | |
19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19093 | (exit $ac_status); }; } && | |
19094 | { ac_try='test -s conftest.$ac_objext' | |
19095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19096 | (eval $ac_try) 2>&5 | |
19097 | ac_status=$? | |
19098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19099 | (exit $ac_status); }; }; then | |
97bf5e38 | 19100 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 19101 | else |
bec39cab AC |
19102 | echo "$as_me: failed program was:" >&5 |
19103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19104 | ||
b4e70030 | 19105 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 19106 | |
c906108c | 19107 | fi |
bec39cab | 19108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19109 | fi |
19110 | ||
97bf5e38 | 19111 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
19112 | |
19113 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19114 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 19115 | _ACEOF |
c906108c | 19116 | |
97bf5e38 | 19117 | fi |
b4e70030 JB |
19118 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
19119 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 19120 | |
b4e70030 JB |
19121 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
19122 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19123 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
19124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19125 | else |
bec39cab AC |
19126 | cat >conftest.$ac_ext <<_ACEOF |
19127 | /* confdefs.h. */ | |
19128 | _ACEOF | |
19129 | cat confdefs.h >>conftest.$ac_ext | |
19130 | cat >>conftest.$ac_ext <<_ACEOF | |
19131 | /* end confdefs.h. */ | |
97bf5e38 MK |
19132 | |
19133 | #define _SYSCALL32 | |
19134 | #include <sys/procfs.h> | |
bec39cab AC |
19135 | int |
19136 | main () | |
19137 | { | |
97bf5e38 | 19138 | prfpregset_t avar |
bec39cab AC |
19139 | ; |
19140 | return 0; | |
19141 | } | |
19142 | _ACEOF | |
19143 | rm -f conftest.$ac_objext | |
19144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19145 | (eval $ac_compile) 2>conftest.er1 | |
19146 | ac_status=$? | |
19147 | grep -v '^ *+' conftest.er1 >conftest.err | |
19148 | rm -f conftest.er1 | |
19149 | cat conftest.err >&5 | |
19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19151 | (exit $ac_status); } && | |
b4e70030 JB |
19152 | { ac_try='test -z "$ac_c_werror_flag" |
19153 | || test ! -s conftest.err' | |
bec39cab AC |
19154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19155 | (eval $ac_try) 2>&5 | |
19156 | ac_status=$? | |
19157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19158 | (exit $ac_status); }; } && | |
19159 | { ac_try='test -s conftest.$ac_objext' | |
19160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19161 | (eval $ac_try) 2>&5 | |
19162 | ac_status=$? | |
19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19164 | (exit $ac_status); }; }; then | |
97bf5e38 | 19165 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 19166 | else |
bec39cab AC |
19167 | echo "$as_me: failed program was:" >&5 |
19168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19169 | ||
b4e70030 | 19170 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 19171 | |
d45fe813 | 19172 | fi |
bec39cab | 19173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19174 | fi |
19175 | ||
97bf5e38 | 19176 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
19177 | |
19178 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19179 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 19180 | _ACEOF |
d45fe813 | 19181 | |
97bf5e38 | 19182 | fi |
b4e70030 JB |
19183 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
19184 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 19185 | |
b4e70030 JB |
19186 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
19187 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19188 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
19189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19190 | else |
bec39cab AC |
19191 | cat >conftest.$ac_ext <<_ACEOF |
19192 | /* confdefs.h. */ | |
19193 | _ACEOF | |
19194 | cat confdefs.h >>conftest.$ac_ext | |
19195 | cat >>conftest.$ac_ext <<_ACEOF | |
19196 | /* end confdefs.h. */ | |
97bf5e38 MK |
19197 | |
19198 | #define _SYSCALL32 | |
19199 | #include <sys/procfs.h> | |
bec39cab AC |
19200 | int |
19201 | main () | |
19202 | { | |
97bf5e38 | 19203 | prgregset32_t avar |
bec39cab AC |
19204 | ; |
19205 | return 0; | |
19206 | } | |
19207 | _ACEOF | |
19208 | rm -f conftest.$ac_objext | |
19209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19210 | (eval $ac_compile) 2>conftest.er1 | |
19211 | ac_status=$? | |
19212 | grep -v '^ *+' conftest.er1 >conftest.err | |
19213 | rm -f conftest.er1 | |
19214 | cat conftest.err >&5 | |
19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19216 | (exit $ac_status); } && | |
b4e70030 JB |
19217 | { ac_try='test -z "$ac_c_werror_flag" |
19218 | || test ! -s conftest.err' | |
bec39cab AC |
19219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19220 | (eval $ac_try) 2>&5 | |
19221 | ac_status=$? | |
19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19223 | (exit $ac_status); }; } && | |
19224 | { ac_try='test -s conftest.$ac_objext' | |
19225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19226 | (eval $ac_try) 2>&5 | |
19227 | ac_status=$? | |
19228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19229 | (exit $ac_status); }; }; then | |
97bf5e38 | 19230 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 19231 | else |
bec39cab AC |
19232 | echo "$as_me: failed program was:" >&5 |
19233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19234 | ||
b4e70030 | 19235 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 19236 | |
d45fe813 | 19237 | fi |
bec39cab | 19238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19239 | fi |
19240 | ||
97bf5e38 | 19241 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
19242 | |
19243 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19244 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 19245 | _ACEOF |
d45fe813 | 19246 | |
97bf5e38 | 19247 | fi |
b4e70030 JB |
19248 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
19249 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 19250 | |
b4e70030 JB |
19251 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
19252 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19253 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
19254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19255 | else |
bec39cab AC |
19256 | cat >conftest.$ac_ext <<_ACEOF |
19257 | /* confdefs.h. */ | |
19258 | _ACEOF | |
19259 | cat confdefs.h >>conftest.$ac_ext | |
19260 | cat >>conftest.$ac_ext <<_ACEOF | |
19261 | /* end confdefs.h. */ | |
97bf5e38 MK |
19262 | |
19263 | #define _SYSCALL32 | |
19264 | #include <sys/procfs.h> | |
bec39cab AC |
19265 | int |
19266 | main () | |
19267 | { | |
97bf5e38 | 19268 | prfpregset32_t avar |
bec39cab AC |
19269 | ; |
19270 | return 0; | |
19271 | } | |
19272 | _ACEOF | |
19273 | rm -f conftest.$ac_objext | |
19274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19275 | (eval $ac_compile) 2>conftest.er1 | |
19276 | ac_status=$? | |
19277 | grep -v '^ *+' conftest.er1 >conftest.err | |
19278 | rm -f conftest.er1 | |
19279 | cat conftest.err >&5 | |
19280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19281 | (exit $ac_status); } && | |
b4e70030 JB |
19282 | { ac_try='test -z "$ac_c_werror_flag" |
19283 | || test ! -s conftest.err' | |
bec39cab AC |
19284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19285 | (eval $ac_try) 2>&5 | |
19286 | ac_status=$? | |
19287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19288 | (exit $ac_status); }; } && | |
19289 | { ac_try='test -s conftest.$ac_objext' | |
19290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19291 | (eval $ac_try) 2>&5 | |
19292 | ac_status=$? | |
19293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19294 | (exit $ac_status); }; }; then | |
97bf5e38 | 19295 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 19296 | else |
bec39cab AC |
19297 | echo "$as_me: failed program was:" >&5 |
19298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19299 | ||
b4e70030 | 19300 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 19301 | |
d45fe813 | 19302 | fi |
bec39cab | 19303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19304 | fi |
19305 | ||
97bf5e38 | 19306 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
19307 | |
19308 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19309 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 19310 | _ACEOF |
d45fe813 | 19311 | |
97bf5e38 | 19312 | fi |
b4e70030 JB |
19313 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
19314 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 19315 | |
b4e70030 JB |
19316 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
19317 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19318 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
19319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19320 | else |
bec39cab AC |
19321 | cat >conftest.$ac_ext <<_ACEOF |
19322 | /* confdefs.h. */ | |
19323 | _ACEOF | |
19324 | cat confdefs.h >>conftest.$ac_ext | |
19325 | cat >>conftest.$ac_ext <<_ACEOF | |
19326 | /* end confdefs.h. */ | |
97bf5e38 | 19327 | |
d45fe813 | 19328 | #define _SYSCALL32 |
97bf5e38 | 19329 | #include <sys/procfs.h> |
bec39cab AC |
19330 | int |
19331 | main () | |
19332 | { | |
97bf5e38 | 19333 | lwpid_t avar |
bec39cab AC |
19334 | ; |
19335 | return 0; | |
19336 | } | |
19337 | _ACEOF | |
19338 | rm -f conftest.$ac_objext | |
19339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19340 | (eval $ac_compile) 2>conftest.er1 | |
19341 | ac_status=$? | |
19342 | grep -v '^ *+' conftest.er1 >conftest.err | |
19343 | rm -f conftest.er1 | |
19344 | cat conftest.err >&5 | |
19345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19346 | (exit $ac_status); } && | |
b4e70030 JB |
19347 | { ac_try='test -z "$ac_c_werror_flag" |
19348 | || test ! -s conftest.err' | |
bec39cab AC |
19349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19350 | (eval $ac_try) 2>&5 | |
19351 | ac_status=$? | |
19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19353 | (exit $ac_status); }; } && | |
19354 | { ac_try='test -s conftest.$ac_objext' | |
19355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19356 | (eval $ac_try) 2>&5 | |
19357 | ac_status=$? | |
19358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19359 | (exit $ac_status); }; }; then | |
97bf5e38 | 19360 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 19361 | else |
bec39cab AC |
19362 | echo "$as_me: failed program was:" >&5 |
19363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19364 | ||
b4e70030 | 19365 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 19366 | |
d45fe813 | 19367 | fi |
bec39cab | 19368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19369 | fi |
19370 | ||
97bf5e38 | 19371 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
19372 | |
19373 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19374 | #define HAVE_LWPID_T 1 |
bec39cab | 19375 | _ACEOF |
d45fe813 | 19376 | |
97bf5e38 | 19377 | fi |
b4e70030 JB |
19378 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
19379 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 19380 | |
b4e70030 JB |
19381 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
19382 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19383 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
19384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19385 | else |
bec39cab AC |
19386 | cat >conftest.$ac_ext <<_ACEOF |
19387 | /* confdefs.h. */ | |
19388 | _ACEOF | |
19389 | cat confdefs.h >>conftest.$ac_ext | |
19390 | cat >>conftest.$ac_ext <<_ACEOF | |
19391 | /* end confdefs.h. */ | |
c906108c | 19392 | |
97bf5e38 MK |
19393 | #define _SYSCALL32 |
19394 | #include <sys/procfs.h> | |
bec39cab AC |
19395 | int |
19396 | main () | |
19397 | { | |
97bf5e38 | 19398 | psaddr_t avar |
bec39cab AC |
19399 | ; |
19400 | return 0; | |
19401 | } | |
19402 | _ACEOF | |
19403 | rm -f conftest.$ac_objext | |
19404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19405 | (eval $ac_compile) 2>conftest.er1 | |
19406 | ac_status=$? | |
19407 | grep -v '^ *+' conftest.er1 >conftest.err | |
19408 | rm -f conftest.er1 | |
19409 | cat conftest.err >&5 | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); } && | |
b4e70030 JB |
19412 | { ac_try='test -z "$ac_c_werror_flag" |
19413 | || test ! -s conftest.err' | |
bec39cab AC |
19414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19415 | (eval $ac_try) 2>&5 | |
19416 | ac_status=$? | |
19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19418 | (exit $ac_status); }; } && | |
19419 | { ac_try='test -s conftest.$ac_objext' | |
19420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19421 | (eval $ac_try) 2>&5 | |
19422 | ac_status=$? | |
19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19424 | (exit $ac_status); }; }; then | |
97bf5e38 | 19425 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 19426 | else |
bec39cab AC |
19427 | echo "$as_me: failed program was:" >&5 |
19428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19429 | ||
b4e70030 | 19430 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 19431 | |
c906108c | 19432 | fi |
bec39cab | 19433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19434 | fi |
19435 | ||
97bf5e38 | 19436 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
19437 | |
19438 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19439 | #define HAVE_PSADDR_T 1 |
bec39cab | 19440 | _ACEOF |
c906108c | 19441 | |
97bf5e38 | 19442 | fi |
b4e70030 JB |
19443 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
19444 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 19445 | |
b4e70030 JB |
19446 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
19447 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19448 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
19449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19450 | else |
bec39cab AC |
19451 | cat >conftest.$ac_ext <<_ACEOF |
19452 | /* confdefs.h. */ | |
19453 | _ACEOF | |
19454 | cat confdefs.h >>conftest.$ac_ext | |
19455 | cat >>conftest.$ac_ext <<_ACEOF | |
19456 | /* end confdefs.h. */ | |
c906108c | 19457 | |
97bf5e38 MK |
19458 | #define _SYSCALL32 |
19459 | #include <sys/procfs.h> | |
bec39cab AC |
19460 | int |
19461 | main () | |
19462 | { | |
97bf5e38 | 19463 | prsysent_t avar |
bec39cab AC |
19464 | ; |
19465 | return 0; | |
19466 | } | |
19467 | _ACEOF | |
19468 | rm -f conftest.$ac_objext | |
19469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19470 | (eval $ac_compile) 2>conftest.er1 | |
19471 | ac_status=$? | |
19472 | grep -v '^ *+' conftest.er1 >conftest.err | |
19473 | rm -f conftest.er1 | |
19474 | cat conftest.err >&5 | |
19475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19476 | (exit $ac_status); } && | |
b4e70030 JB |
19477 | { ac_try='test -z "$ac_c_werror_flag" |
19478 | || test ! -s conftest.err' | |
bec39cab AC |
19479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19480 | (eval $ac_try) 2>&5 | |
19481 | ac_status=$? | |
19482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19483 | (exit $ac_status); }; } && | |
19484 | { ac_try='test -s conftest.$ac_objext' | |
19485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19486 | (eval $ac_try) 2>&5 | |
19487 | ac_status=$? | |
19488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19489 | (exit $ac_status); }; }; then | |
97bf5e38 | 19490 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 19491 | else |
bec39cab AC |
19492 | echo "$as_me: failed program was:" >&5 |
19493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19494 | ||
b4e70030 | 19495 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 19496 | |
c906108c | 19497 | fi |
bec39cab | 19498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19499 | fi |
19500 | ||
97bf5e38 | 19501 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
19502 | |
19503 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19504 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 19505 | _ACEOF |
c906108c | 19506 | |
97bf5e38 | 19507 | fi |
b4e70030 JB |
19508 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
19509 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 19510 | |
b4e70030 JB |
19511 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
19512 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19513 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
19514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19515 | else |
bec39cab AC |
19516 | cat >conftest.$ac_ext <<_ACEOF |
19517 | /* confdefs.h. */ | |
19518 | _ACEOF | |
19519 | cat confdefs.h >>conftest.$ac_ext | |
19520 | cat >>conftest.$ac_ext <<_ACEOF | |
19521 | /* end confdefs.h. */ | |
c906108c | 19522 | |
97bf5e38 MK |
19523 | #define _SYSCALL32 |
19524 | #include <sys/procfs.h> | |
bec39cab AC |
19525 | int |
19526 | main () | |
19527 | { | |
97bf5e38 | 19528 | pr_sigset_t avar |
bec39cab AC |
19529 | ; |
19530 | return 0; | |
19531 | } | |
19532 | _ACEOF | |
19533 | rm -f conftest.$ac_objext | |
19534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19535 | (eval $ac_compile) 2>conftest.er1 | |
19536 | ac_status=$? | |
19537 | grep -v '^ *+' conftest.er1 >conftest.err | |
19538 | rm -f conftest.er1 | |
19539 | cat conftest.err >&5 | |
19540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19541 | (exit $ac_status); } && | |
b4e70030 JB |
19542 | { ac_try='test -z "$ac_c_werror_flag" |
19543 | || test ! -s conftest.err' | |
bec39cab AC |
19544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19545 | (eval $ac_try) 2>&5 | |
19546 | ac_status=$? | |
19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19548 | (exit $ac_status); }; } && | |
19549 | { ac_try='test -s conftest.$ac_objext' | |
19550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19551 | (eval $ac_try) 2>&5 | |
19552 | ac_status=$? | |
19553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19554 | (exit $ac_status); }; }; then | |
97bf5e38 | 19555 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 19556 | else |
bec39cab AC |
19557 | echo "$as_me: failed program was:" >&5 |
19558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19559 | ||
b4e70030 | 19560 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 19561 | |
c906108c | 19562 | fi |
bec39cab | 19563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19564 | fi |
19565 | ||
97bf5e38 | 19566 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
19567 | |
19568 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19569 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 19570 | _ACEOF |
c906108c | 19571 | |
97bf5e38 | 19572 | fi |
b4e70030 JB |
19573 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
19574 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 19575 | |
b4e70030 JB |
19576 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
19577 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19578 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
19579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19580 | else |
bec39cab AC |
19581 | cat >conftest.$ac_ext <<_ACEOF |
19582 | /* confdefs.h. */ | |
19583 | _ACEOF | |
19584 | cat confdefs.h >>conftest.$ac_ext | |
19585 | cat >>conftest.$ac_ext <<_ACEOF | |
19586 | /* end confdefs.h. */ | |
c906108c | 19587 | |
97bf5e38 MK |
19588 | #define _SYSCALL32 |
19589 | #include <sys/procfs.h> | |
bec39cab AC |
19590 | int |
19591 | main () | |
19592 | { | |
97bf5e38 | 19593 | pr_sigaction64_t avar |
bec39cab AC |
19594 | ; |
19595 | return 0; | |
19596 | } | |
19597 | _ACEOF | |
19598 | rm -f conftest.$ac_objext | |
19599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19600 | (eval $ac_compile) 2>conftest.er1 | |
19601 | ac_status=$? | |
19602 | grep -v '^ *+' conftest.er1 >conftest.err | |
19603 | rm -f conftest.er1 | |
19604 | cat conftest.err >&5 | |
19605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19606 | (exit $ac_status); } && | |
b4e70030 JB |
19607 | { ac_try='test -z "$ac_c_werror_flag" |
19608 | || test ! -s conftest.err' | |
bec39cab AC |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; } && | |
19614 | { ac_try='test -s conftest.$ac_objext' | |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; }; then | |
97bf5e38 | 19620 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 19621 | else |
bec39cab AC |
19622 | echo "$as_me: failed program was:" >&5 |
19623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19624 | ||
b4e70030 | 19625 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 19626 | |
c906108c | 19627 | fi |
bec39cab | 19628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19629 | fi |
19630 | ||
97bf5e38 | 19631 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
19632 | |
19633 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19634 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 19635 | _ACEOF |
c906108c | 19636 | |
97bf5e38 | 19637 | fi |
b4e70030 JB |
19638 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
19639 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 19640 | |
b4e70030 JB |
19641 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
19642 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19643 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
19644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19645 | else |
bec39cab AC |
19646 | cat >conftest.$ac_ext <<_ACEOF |
19647 | /* confdefs.h. */ | |
19648 | _ACEOF | |
19649 | cat confdefs.h >>conftest.$ac_ext | |
19650 | cat >>conftest.$ac_ext <<_ACEOF | |
19651 | /* end confdefs.h. */ | |
97bf5e38 MK |
19652 | |
19653 | #define _SYSCALL32 | |
19654 | #include <sys/procfs.h> | |
bec39cab AC |
19655 | int |
19656 | main () | |
19657 | { | |
97bf5e38 | 19658 | pr_siginfo64_t avar |
bec39cab AC |
19659 | ; |
19660 | return 0; | |
19661 | } | |
19662 | _ACEOF | |
19663 | rm -f conftest.$ac_objext | |
19664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19665 | (eval $ac_compile) 2>conftest.er1 | |
19666 | ac_status=$? | |
19667 | grep -v '^ *+' conftest.er1 >conftest.err | |
19668 | rm -f conftest.er1 | |
19669 | cat conftest.err >&5 | |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19671 | (exit $ac_status); } && | |
b4e70030 JB |
19672 | { ac_try='test -z "$ac_c_werror_flag" |
19673 | || test ! -s conftest.err' | |
bec39cab AC |
19674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19675 | (eval $ac_try) 2>&5 | |
19676 | ac_status=$? | |
19677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19678 | (exit $ac_status); }; } && | |
19679 | { ac_try='test -s conftest.$ac_objext' | |
19680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19681 | (eval $ac_try) 2>&5 | |
19682 | ac_status=$? | |
19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19684 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19685 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
19686 | else | |
bec39cab AC |
19687 | echo "$as_me: failed program was:" >&5 |
19688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19689 | ||
b4e70030 | 19690 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 19691 | |
97bf5e38 | 19692 | fi |
bec39cab | 19693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19694 | fi |
c906108c | 19695 | |
97bf5e38 | 19696 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
19697 | |
19698 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19699 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 19700 | _ACEOF |
c906108c | 19701 | |
97bf5e38 | 19702 | fi |
b4e70030 JB |
19703 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
19704 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
19705 | |
19706 | ||
97bf5e38 MK |
19707 | |
19708 | ||
19709 | ||
97bf5e38 | 19710 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
19711 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
19712 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
19713 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
19714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
19715 | else |
19716 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 19717 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 19718 | else |
bec39cab AC |
19719 | cat >conftest.$ac_ext <<_ACEOF |
19720 | /* confdefs.h. */ | |
19721 | _ACEOF | |
19722 | cat confdefs.h >>conftest.$ac_ext | |
19723 | cat >>conftest.$ac_ext <<_ACEOF | |
19724 | /* end confdefs.h. */ | |
97bf5e38 MK |
19725 | #include <sys/procfs.h> |
19726 | int main () | |
19727 | { | |
19728 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
19729 | return 1; | |
19730 | return 0; | |
19731 | } | |
bec39cab AC |
19732 | _ACEOF |
19733 | rm -f conftest$ac_exeext | |
19734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19735 | (eval $ac_link) 2>&5 | |
19736 | ac_status=$? | |
19737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19740 | (eval $ac_try) 2>&5 | |
19741 | ac_status=$? | |
19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19743 | (exit $ac_status); }; }; then | |
97bf5e38 | 19744 | gdb_cv_prfpregset_t_broken=no |
c906108c | 19745 | else |
bec39cab AC |
19746 | echo "$as_me: program exited with status $ac_status" >&5 |
19747 | echo "$as_me: failed program was:" >&5 | |
19748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19749 | ||
19750 | ( exit $ac_status ) | |
19751 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 19752 | fi |
b4e70030 | 19753 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19754 | fi |
c906108c SS |
19755 | fi |
19756 | ||
b4e70030 JB |
19757 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
19758 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 19759 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
19760 | |
19761 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19762 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 19763 | _ACEOF |
c906108c | 19764 | |
97bf5e38 MK |
19765 | fi |
19766 | fi | |
c906108c | 19767 | |
bec39cab | 19768 | |
b4e70030 JB |
19769 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
19770 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19771 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
19772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19773 | else |
bec39cab AC |
19774 | cat >conftest.$ac_ext <<_ACEOF |
19775 | /* confdefs.h. */ | |
19776 | _ACEOF | |
19777 | cat confdefs.h >>conftest.$ac_ext | |
19778 | cat >>conftest.$ac_ext <<_ACEOF | |
19779 | /* end confdefs.h. */ | |
97bf5e38 MK |
19780 | #include <unistd.h> |
19781 | #include <sys/types.h> | |
19782 | #include <sys/procfs.h> | |
19783 | ||
bec39cab AC |
19784 | int |
19785 | main () | |
19786 | { | |
97bf5e38 MK |
19787 | |
19788 | int dummy;; | |
19789 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
19790 | |
19791 | ; | |
19792 | return 0; | |
19793 | } | |
19794 | _ACEOF | |
19795 | rm -f conftest.$ac_objext | |
19796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19797 | (eval $ac_compile) 2>conftest.er1 | |
19798 | ac_status=$? | |
19799 | grep -v '^ *+' conftest.er1 >conftest.err | |
19800 | rm -f conftest.er1 | |
19801 | cat conftest.err >&5 | |
19802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19803 | (exit $ac_status); } && | |
b4e70030 JB |
19804 | { ac_try='test -z "$ac_c_werror_flag" |
19805 | || test ! -s conftest.err' | |
bec39cab AC |
19806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19807 | (eval $ac_try) 2>&5 | |
19808 | ac_status=$? | |
19809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19810 | (exit $ac_status); }; } && | |
19811 | { ac_try='test -s conftest.$ac_objext' | |
19812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19813 | (eval $ac_try) 2>&5 | |
19814 | ac_status=$? | |
19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19816 | (exit $ac_status); }; }; then | |
97bf5e38 | 19817 | gdb_cv_have_procfs_piocset=yes |
c906108c | 19818 | else |
bec39cab AC |
19819 | echo "$as_me: failed program was:" >&5 |
19820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19821 | ||
b4e70030 | 19822 | gdb_cv_have_procfs_piocset=no |
c906108c | 19823 | fi |
bec39cab | 19824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19825 | fi |
97bf5e38 | 19826 | |
b4e70030 JB |
19827 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
19828 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 19829 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
19830 | |
19831 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19832 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 19833 | _ACEOF |
97bf5e38 MK |
19834 | |
19835 | fi | |
c906108c | 19836 | fi |
c906108c | 19837 | |
97bf5e38 | 19838 | if test ${host} = ${target} ; then |
bec39cab | 19839 | |
b4e70030 JB |
19840 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
19841 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
19842 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
19843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19844 | else | |
19845 | cat >conftest.$ac_ext <<_ACEOF | |
19846 | /* confdefs.h. */ | |
19847 | _ACEOF | |
19848 | cat confdefs.h >>conftest.$ac_ext | |
19849 | cat >>conftest.$ac_ext <<_ACEOF | |
19850 | /* end confdefs.h. */ | |
97bf5e38 | 19851 | #include <link.h> |
bec39cab AC |
19852 | int |
19853 | main () | |
19854 | { | |
97bf5e38 | 19855 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
19856 | ; |
19857 | return 0; | |
19858 | } | |
19859 | _ACEOF | |
19860 | rm -f conftest.$ac_objext | |
19861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19862 | (eval $ac_compile) 2>conftest.er1 | |
19863 | ac_status=$? | |
19864 | grep -v '^ *+' conftest.er1 >conftest.err | |
19865 | rm -f conftest.er1 | |
19866 | cat conftest.err >&5 | |
19867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19868 | (exit $ac_status); } && | |
b4e70030 JB |
19869 | { ac_try='test -z "$ac_c_werror_flag" |
19870 | || test ! -s conftest.err' | |
bec39cab AC |
19871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19872 | (eval $ac_try) 2>&5 | |
19873 | ac_status=$? | |
19874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19875 | (exit $ac_status); }; } && | |
19876 | { ac_try='test -s conftest.$ac_objext' | |
19877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19878 | (eval $ac_try) 2>&5 | |
19879 | ac_status=$? | |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19881 | (exit $ac_status); }; }; then | |
97bf5e38 | 19882 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 19883 | else |
bec39cab AC |
19884 | echo "$as_me: failed program was:" >&5 |
19885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19886 | ||
b4e70030 | 19887 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 19888 | fi |
bec39cab | 19889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19890 | fi |
19891 | ||
b4e70030 JB |
19892 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
19893 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 19894 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
19895 | |
19896 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19897 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 19898 | _ACEOF |
97bf5e38 MK |
19899 | |
19900 | fi | |
19901 | ||
bec39cab | 19902 | |
b4e70030 JB |
19903 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
19904 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
19905 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
19906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19907 | else |
bec39cab AC |
19908 | cat >conftest.$ac_ext <<_ACEOF |
19909 | /* confdefs.h. */ | |
19910 | _ACEOF | |
19911 | cat confdefs.h >>conftest.$ac_ext | |
19912 | cat >>conftest.$ac_ext <<_ACEOF | |
19913 | /* end confdefs.h. */ | |
97bf5e38 MK |
19914 | #include <sys/types.h> |
19915 | #include <link.h> | |
bec39cab AC |
19916 | int |
19917 | main () | |
19918 | { | |
97bf5e38 | 19919 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
19920 | ; |
19921 | return 0; | |
19922 | } | |
19923 | _ACEOF | |
19924 | rm -f conftest.$ac_objext | |
19925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19926 | (eval $ac_compile) 2>conftest.er1 | |
19927 | ac_status=$? | |
19928 | grep -v '^ *+' conftest.er1 >conftest.err | |
19929 | rm -f conftest.er1 | |
19930 | cat conftest.err >&5 | |
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19932 | (exit $ac_status); } && | |
b4e70030 JB |
19933 | { ac_try='test -z "$ac_c_werror_flag" |
19934 | || test ! -s conftest.err' | |
bec39cab AC |
19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19936 | (eval $ac_try) 2>&5 | |
19937 | ac_status=$? | |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; } && | |
19940 | { ac_try='test -s conftest.$ac_objext' | |
19941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19942 | (eval $ac_try) 2>&5 | |
19943 | ac_status=$? | |
19944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19945 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19946 | gdb_cv_have_struct_link_map_with_lm_members=yes |
19947 | else | |
bec39cab AC |
19948 | echo "$as_me: failed program was:" >&5 |
19949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19950 | ||
b4e70030 | 19951 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 19952 | fi |
bec39cab | 19953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19954 | fi |
c906108c | 19955 | |
b4e70030 JB |
19956 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
19957 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 19958 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
19959 | |
19960 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19961 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 19962 | _ACEOF |
97bf5e38 MK |
19963 | |
19964 | fi | |
19965 | ||
bec39cab | 19966 | |
b4e70030 JB |
19967 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
19968 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
19969 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
19970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19971 | else |
bec39cab AC |
19972 | cat >conftest.$ac_ext <<_ACEOF |
19973 | /* confdefs.h. */ | |
19974 | _ACEOF | |
19975 | cat confdefs.h >>conftest.$ac_ext | |
19976 | cat >>conftest.$ac_ext <<_ACEOF | |
19977 | /* end confdefs.h. */ | |
97bf5e38 MK |
19978 | #include <sys/types.h> |
19979 | #ifdef HAVE_NLIST_H | |
19980 | #include <nlist.h> | |
19981 | #endif | |
19982 | #include <link.h> | |
bec39cab AC |
19983 | int |
19984 | main () | |
19985 | { | |
97bf5e38 | 19986 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
19987 | ; |
19988 | return 0; | |
19989 | } | |
19990 | _ACEOF | |
19991 | rm -f conftest.$ac_objext | |
19992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19993 | (eval $ac_compile) 2>conftest.er1 | |
19994 | ac_status=$? | |
19995 | grep -v '^ *+' conftest.er1 >conftest.err | |
19996 | rm -f conftest.er1 | |
19997 | cat conftest.err >&5 | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); } && | |
b4e70030 JB |
20000 | { ac_try='test -z "$ac_c_werror_flag" |
20001 | || test ! -s conftest.err' | |
bec39cab AC |
20002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20003 | (eval $ac_try) 2>&5 | |
20004 | ac_status=$? | |
20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20006 | (exit $ac_status); }; } && | |
20007 | { ac_try='test -s conftest.$ac_objext' | |
20008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20009 | (eval $ac_try) 2>&5 | |
20010 | ac_status=$? | |
20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20012 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20013 | gdb_cv_have_struct_so_map_with_som_members=yes |
20014 | else | |
bec39cab AC |
20015 | echo "$as_me: failed program was:" >&5 |
20016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20017 | ||
b4e70030 | 20018 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 20019 | fi |
bec39cab | 20020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20021 | fi |
c906108c | 20022 | |
b4e70030 JB |
20023 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
20024 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 20025 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
20026 | |
20027 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20028 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 20029 | _ACEOF |
c906108c | 20030 | |
97bf5e38 | 20031 | fi |
c906108c | 20032 | |
bec39cab | 20033 | |
b4e70030 JB |
20034 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
20035 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
20036 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
20037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20038 | else |
bec39cab AC |
20039 | cat >conftest.$ac_ext <<_ACEOF |
20040 | /* confdefs.h. */ | |
20041 | _ACEOF | |
20042 | cat confdefs.h >>conftest.$ac_ext | |
20043 | cat >>conftest.$ac_ext <<_ACEOF | |
20044 | /* end confdefs.h. */ | |
97bf5e38 MK |
20045 | #define _SYSCALL32 |
20046 | #include <sys/link.h> | |
bec39cab AC |
20047 | int |
20048 | main () | |
20049 | { | |
97bf5e38 | 20050 | struct link_map32 l; |
bec39cab AC |
20051 | ; |
20052 | return 0; | |
20053 | } | |
20054 | _ACEOF | |
20055 | rm -f conftest.$ac_objext | |
20056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20057 | (eval $ac_compile) 2>conftest.er1 | |
20058 | ac_status=$? | |
20059 | grep -v '^ *+' conftest.er1 >conftest.err | |
20060 | rm -f conftest.er1 | |
20061 | cat conftest.err >&5 | |
20062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20063 | (exit $ac_status); } && | |
b4e70030 JB |
20064 | { ac_try='test -z "$ac_c_werror_flag" |
20065 | || test ! -s conftest.err' | |
bec39cab AC |
20066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20067 | (eval $ac_try) 2>&5 | |
20068 | ac_status=$? | |
20069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20070 | (exit $ac_status); }; } && | |
20071 | { ac_try='test -s conftest.$ac_objext' | |
20072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20073 | (eval $ac_try) 2>&5 | |
20074 | ac_status=$? | |
20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20076 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20077 | gdb_cv_have_struct_link_map32=yes |
20078 | else | |
bec39cab AC |
20079 | echo "$as_me: failed program was:" >&5 |
20080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20081 | ||
b4e70030 | 20082 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 20083 | fi |
bec39cab | 20084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20085 | fi |
c906108c | 20086 | |
b4e70030 JB |
20087 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
20088 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 20089 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
20090 | |
20091 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20092 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 20093 | _ACEOF |
c906108c | 20094 | |
60ca704f SE |
20095 | |
20096 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20097 | #define _SYSCALL32 1 |
bec39cab | 20098 | _ACEOF |
c906108c | 20099 | |
97bf5e38 MK |
20100 | fi |
20101 | fi | |
c906108c | 20102 | |
bc8bcb4b | 20103 | # Check if the compiler supports the `long long' type. |
c906108c | 20104 | |
b4e70030 JB |
20105 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
20106 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
20107 | if test "${gdb_cv_c_long_long+set}" = set; then |
20108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20109 | else |
bec39cab AC |
20110 | cat >conftest.$ac_ext <<_ACEOF |
20111 | /* confdefs.h. */ | |
20112 | _ACEOF | |
20113 | cat confdefs.h >>conftest.$ac_ext | |
20114 | cat >>conftest.$ac_ext <<_ACEOF | |
20115 | /* end confdefs.h. */ | |
bc8bcb4b | 20116 | extern long long foo; |
bec39cab AC |
20117 | int |
20118 | main () | |
20119 | { | |
bc8bcb4b | 20120 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
20121 | ; |
20122 | return 0; | |
20123 | } | |
20124 | _ACEOF | |
20125 | rm -f conftest.$ac_objext | |
20126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20127 | (eval $ac_compile) 2>conftest.er1 | |
20128 | ac_status=$? | |
20129 | grep -v '^ *+' conftest.er1 >conftest.err | |
20130 | rm -f conftest.er1 | |
20131 | cat conftest.err >&5 | |
20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20133 | (exit $ac_status); } && | |
b4e70030 JB |
20134 | { ac_try='test -z "$ac_c_werror_flag" |
20135 | || test ! -s conftest.err' | |
bec39cab AC |
20136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20137 | (eval $ac_try) 2>&5 | |
20138 | ac_status=$? | |
20139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20140 | (exit $ac_status); }; } && | |
20141 | { ac_try='test -s conftest.$ac_objext' | |
20142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20143 | (eval $ac_try) 2>&5 | |
20144 | ac_status=$? | |
20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20146 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20147 | gdb_cv_c_long_long=yes |
20148 | else | |
bec39cab AC |
20149 | echo "$as_me: failed program was:" >&5 |
20150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20151 | ||
b4e70030 | 20152 | gdb_cv_c_long_long=no |
97bf5e38 | 20153 | fi |
bec39cab | 20154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20155 | fi |
b4e70030 JB |
20156 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
20157 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 20158 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
20159 | |
20160 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20161 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 20162 | _ACEOF |
97bf5e38 MK |
20163 | |
20164 | fi | |
20165 | ||
bc8bcb4b | 20166 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 20167 | |
b4e70030 JB |
20168 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
20169 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20170 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
20171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20172 | else |
20173 | if test "$cross_compiling" = yes; then | |
20174 | gdb_cv_printf_has_long_long=no | |
20175 | else | |
bec39cab AC |
20176 | cat >conftest.$ac_ext <<_ACEOF |
20177 | /* confdefs.h. */ | |
20178 | _ACEOF | |
20179 | cat confdefs.h >>conftest.$ac_ext | |
20180 | cat >>conftest.$ac_ext <<_ACEOF | |
20181 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20182 | $ac_includes_default |
20183 | int | |
20184 | main () | |
20185 | { | |
20186 | char buf[32]; | |
97bf5e38 MK |
20187 | long long l = 0; |
20188 | l = (l << 16) + 0x0123; | |
20189 | l = (l << 16) + 0x4567; | |
20190 | l = (l << 16) + 0x89ab; | |
20191 | l = (l << 16) + 0xcdef; | |
20192 | sprintf (buf, "0x%016llx", l); | |
20193 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
20194 | ; |
20195 | return 0; | |
c906108c | 20196 | } |
bec39cab AC |
20197 | _ACEOF |
20198 | rm -f conftest$ac_exeext | |
20199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20200 | (eval $ac_link) 2>&5 | |
20201 | ac_status=$? | |
20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20205 | (eval $ac_try) 2>&5 | |
20206 | ac_status=$? | |
20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20208 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20209 | gdb_cv_printf_has_long_long=yes |
20210 | else | |
bec39cab AC |
20211 | echo "$as_me: program exited with status $ac_status" >&5 |
20212 | echo "$as_me: failed program was:" >&5 | |
20213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20214 | ||
20215 | ( exit $ac_status ) | |
20216 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 20217 | fi |
b4e70030 | 20218 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20219 | fi |
97bf5e38 | 20220 | fi |
b4e70030 JB |
20221 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
20222 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 20223 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
20224 | |
20225 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20226 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 20227 | _ACEOF |
97bf5e38 MK |
20228 | |
20229 | fi | |
97bf5e38 | 20230 | |
bc8bcb4b MK |
20231 | # Check if the compiler supports the `long double' type. We can't use |
20232 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
20233 | # constants defined in <float.h> that fail on some systems, | |
20234 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 20235 | |
b4e70030 JB |
20236 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
20237 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 20238 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 20239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20240 | else |
bec39cab AC |
20241 | cat >conftest.$ac_ext <<_ACEOF |
20242 | /* confdefs.h. */ | |
20243 | _ACEOF | |
20244 | cat confdefs.h >>conftest.$ac_ext | |
20245 | cat >>conftest.$ac_ext <<_ACEOF | |
20246 | /* end confdefs.h. */ | |
97bf5e38 | 20247 | long double foo; |
bec39cab AC |
20248 | _ACEOF |
20249 | rm -f conftest.$ac_objext | |
20250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20251 | (eval $ac_compile) 2>conftest.er1 | |
20252 | ac_status=$? | |
20253 | grep -v '^ *+' conftest.er1 >conftest.err | |
20254 | rm -f conftest.er1 | |
20255 | cat conftest.err >&5 | |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20257 | (exit $ac_status); } && | |
b4e70030 JB |
20258 | { ac_try='test -z "$ac_c_werror_flag" |
20259 | || test ! -s conftest.err' | |
bec39cab AC |
20260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20261 | (eval $ac_try) 2>&5 | |
20262 | ac_status=$? | |
20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20264 | (exit $ac_status); }; } && | |
20265 | { ac_try='test -s conftest.$ac_objext' | |
20266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20267 | (eval $ac_try) 2>&5 | |
20268 | ac_status=$? | |
20269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20270 | (exit $ac_status); }; }; then | |
bc8bcb4b | 20271 | gdb_cv_c_long_double=yes |
97bf5e38 | 20272 | else |
bec39cab AC |
20273 | echo "$as_me: failed program was:" >&5 |
20274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20275 | ||
b4e70030 | 20276 | gdb_cv_c_long_double=no |
97bf5e38 | 20277 | fi |
bec39cab | 20278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20279 | fi |
b4e70030 JB |
20280 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
20281 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 20282 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 20283 | |
bc8bcb4b | 20284 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 20285 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 20286 | _ACEOF |
97bf5e38 MK |
20287 | |
20288 | fi | |
20289 | ||
bc8bcb4b | 20290 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 20291 | |
b4e70030 JB |
20292 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
20293 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20294 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
20295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20296 | else |
20297 | if test "$cross_compiling" = yes; then | |
20298 | gdb_cv_printf_has_long_double=no | |
20299 | else | |
bec39cab AC |
20300 | cat >conftest.$ac_ext <<_ACEOF |
20301 | /* confdefs.h. */ | |
20302 | _ACEOF | |
20303 | cat confdefs.h >>conftest.$ac_ext | |
20304 | cat >>conftest.$ac_ext <<_ACEOF | |
20305 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20306 | $ac_includes_default |
20307 | int | |
20308 | main () | |
20309 | { | |
20310 | char buf[16]; | |
97bf5e38 MK |
20311 | long double f = 3.141592653; |
20312 | sprintf (buf, "%Lg", f); | |
20313 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
20314 | ; |
20315 | return 0; | |
97bf5e38 | 20316 | } |
bec39cab AC |
20317 | _ACEOF |
20318 | rm -f conftest$ac_exeext | |
20319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20320 | (eval $ac_link) 2>&5 | |
20321 | ac_status=$? | |
20322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20325 | (eval $ac_try) 2>&5 | |
20326 | ac_status=$? | |
20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20328 | (exit $ac_status); }; }; then | |
97bf5e38 | 20329 | gdb_cv_printf_has_long_double=yes |
c906108c | 20330 | else |
bec39cab AC |
20331 | echo "$as_me: program exited with status $ac_status" >&5 |
20332 | echo "$as_me: failed program was:" >&5 | |
20333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20334 | ||
20335 | ( exit $ac_status ) | |
20336 | gdb_cv_printf_has_long_double=no | |
c906108c | 20337 | fi |
b4e70030 | 20338 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20339 | fi |
c906108c | 20340 | fi |
b4e70030 JB |
20341 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
20342 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 20343 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
20344 | |
20345 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20346 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 20347 | _ACEOF |
97bf5e38 MK |
20348 | |
20349 | fi | |
97bf5e38 | 20350 | |
bc8bcb4b | 20351 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 20352 | |
b4e70030 JB |
20353 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
20354 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
20355 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
20356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20357 | else |
20358 | if test "$cross_compiling" = yes; then | |
20359 | gdb_cv_scanf_has_long_double=no | |
20360 | else | |
bec39cab AC |
20361 | cat >conftest.$ac_ext <<_ACEOF |
20362 | /* confdefs.h. */ | |
20363 | _ACEOF | |
20364 | cat confdefs.h >>conftest.$ac_ext | |
20365 | cat >>conftest.$ac_ext <<_ACEOF | |
20366 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20367 | #include <stdio.h> |
20368 | int | |
20369 | main () | |
20370 | { | |
20371 | char *buf = "3.141592653"; | |
97bf5e38 MK |
20372 | long double f = 0; |
20373 | sscanf (buf, "%Lg", &f); | |
20374 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
20375 | ; |
20376 | return 0; | |
97bf5e38 | 20377 | } |
bec39cab AC |
20378 | _ACEOF |
20379 | rm -f conftest$ac_exeext | |
20380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20381 | (eval $ac_link) 2>&5 | |
20382 | ac_status=$? | |
20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20386 | (eval $ac_try) 2>&5 | |
20387 | ac_status=$? | |
20388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20389 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20390 | gdb_cv_scanf_has_long_double=yes |
20391 | else | |
bec39cab AC |
20392 | echo "$as_me: program exited with status $ac_status" >&5 |
20393 | echo "$as_me: failed program was:" >&5 | |
20394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20395 | ||
20396 | ( exit $ac_status ) | |
20397 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 20398 | fi |
b4e70030 | 20399 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20400 | fi |
c906108c | 20401 | fi |
b4e70030 JB |
20402 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
20403 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 20404 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
20405 | |
20406 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20407 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 20408 | _ACEOF |
97bf5e38 MK |
20409 | |
20410 | fi | |
c906108c | 20411 | |
438013df AO |
20412 | case ${host_os} in |
20413 | aix*) | |
b4e70030 JB |
20414 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
20415 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
20416 | if test "${gdb_cv_bigtoc+set}" = set; then |
20417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 20418 | else |
bec39cab | 20419 | |
438013df AO |
20420 | SAVE_LDFLAGS=$LDFLAGS |
20421 | ||
20422 | case $GCC in | |
20423 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
20424 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
20425 | esac | |
20426 | ||
20427 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
20428 | cat >conftest.$ac_ext <<_ACEOF |
20429 | /* confdefs.h. */ | |
20430 | _ACEOF | |
20431 | cat confdefs.h >>conftest.$ac_ext | |
20432 | cat >>conftest.$ac_ext <<_ACEOF | |
20433 | /* end confdefs.h. */ | |
438013df | 20434 | |
bec39cab AC |
20435 | int |
20436 | main () | |
20437 | { | |
438013df | 20438 | int i; |
bec39cab AC |
20439 | ; |
20440 | return 0; | |
20441 | } | |
20442 | _ACEOF | |
20443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20445 | (eval $ac_link) 2>conftest.er1 | |
20446 | ac_status=$? | |
20447 | grep -v '^ *+' conftest.er1 >conftest.err | |
20448 | rm -f conftest.er1 | |
20449 | cat conftest.err >&5 | |
20450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20451 | (exit $ac_status); } && | |
b4e70030 JB |
20452 | { ac_try='test -z "$ac_c_werror_flag" |
20453 | || test ! -s conftest.err' | |
bec39cab AC |
20454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20455 | (eval $ac_try) 2>&5 | |
20456 | ac_status=$? | |
20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20458 | (exit $ac_status); }; } && | |
20459 | { ac_try='test -s conftest$ac_exeext' | |
20460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20461 | (eval $ac_try) 2>&5 | |
20462 | ac_status=$? | |
20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20464 | (exit $ac_status); }; }; then | |
438013df AO |
20465 | : |
20466 | else | |
bec39cab AC |
20467 | echo "$as_me: failed program was:" >&5 |
20468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20469 | ||
b4e70030 | 20470 | gdb_cv_bigtoc= |
438013df | 20471 | fi |
bec39cab AC |
20472 | rm -f conftest.err conftest.$ac_objext \ |
20473 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 20474 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 20475 | |
bec39cab | 20476 | fi |
b4e70030 JB |
20477 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
20478 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
20479 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
20480 | ;; | |
20481 | esac | |
20482 | ||
c906108c SS |
20483 | |
20484 | ||
20485 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
20486 | case ${host_os} in | |
20487 | hpux*) | |
b4e70030 JB |
20488 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
20489 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
20490 | if test -f /usr/include/dce/cma_config.h ; then |
20491 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
20492 | echo "$as_me:$LINENO: result: yes" >&5 |
20493 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
20494 | |
20495 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20496 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 20497 | _ACEOF |
c906108c | 20498 | |
3483b318 | 20499 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
20500 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
20501 | else | |
b4e70030 JB |
20502 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
20503 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
20504 | fi |
20505 | else | |
b4e70030 JB |
20506 | echo "$as_me:$LINENO: result: no" >&5 |
20507 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
20508 | fi |
20509 | ;; | |
20510 | solaris*) | |
d92419e5 JB |
20511 | # See if thread_db library is around for Solaris thread debugging. |
20512 | # Note that we must explicitly test for version 1 of the library | |
20513 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
20514 | # the same API. | |
b4e70030 JB |
20515 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
20516 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 20517 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
20518 | echo "$as_me:$LINENO: result: yes" >&5 |
20519 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
20520 | |
20521 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20522 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 20523 | _ACEOF |
c906108c | 20524 | |
3483b318 | 20525 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 20526 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 20527 | |
b4e70030 JB |
20528 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
20529 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
20530 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
20531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20532 | else |
bec39cab | 20533 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 20534 | LIBS="-ldl $LIBS" |
bec39cab AC |
20535 | cat >conftest.$ac_ext <<_ACEOF |
20536 | /* confdefs.h. */ | |
20537 | _ACEOF | |
20538 | cat confdefs.h >>conftest.$ac_ext | |
20539 | cat >>conftest.$ac_ext <<_ACEOF | |
20540 | /* end confdefs.h. */ | |
20541 | ||
b4e70030 | 20542 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
20543 | #ifdef __cplusplus |
20544 | extern "C" | |
20545 | #endif | |
b4e70030 JB |
20546 | /* We use char because int might match the return type of a gcc2 |
20547 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
20548 | char dlopen (); |
20549 | int | |
20550 | main () | |
20551 | { | |
b4e70030 | 20552 | dlopen (); |
bec39cab AC |
20553 | ; |
20554 | return 0; | |
20555 | } | |
20556 | _ACEOF | |
20557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20559 | (eval $ac_link) 2>conftest.er1 | |
20560 | ac_status=$? | |
20561 | grep -v '^ *+' conftest.er1 >conftest.err | |
20562 | rm -f conftest.er1 | |
20563 | cat conftest.err >&5 | |
20564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20565 | (exit $ac_status); } && | |
b4e70030 JB |
20566 | { ac_try='test -z "$ac_c_werror_flag" |
20567 | || test ! -s conftest.err' | |
bec39cab AC |
20568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20569 | (eval $ac_try) 2>&5 | |
20570 | ac_status=$? | |
20571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20572 | (exit $ac_status); }; } && | |
20573 | { ac_try='test -s conftest$ac_exeext' | |
20574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20575 | (eval $ac_try) 2>&5 | |
20576 | ac_status=$? | |
20577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20578 | (exit $ac_status); }; }; then | |
20579 | ac_cv_lib_dl_dlopen=yes | |
20580 | else | |
20581 | echo "$as_me: failed program was:" >&5 | |
20582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20583 | ||
b4e70030 | 20584 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
20585 | fi |
20586 | rm -f conftest.err conftest.$ac_objext \ | |
20587 | conftest$ac_exeext conftest.$ac_ext | |
20588 | LIBS=$ac_check_lib_save_LIBS | |
20589 | fi | |
b4e70030 JB |
20590 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
20591 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
20592 | if test $ac_cv_lib_dl_dlopen = yes; then |
20593 | cat >>confdefs.h <<_ACEOF | |
20594 | #define HAVE_LIBDL 1 | |
20595 | _ACEOF | |
c906108c SS |
20596 | |
20597 | LIBS="-ldl $LIBS" | |
20598 | ||
c906108c SS |
20599 | fi |
20600 | ||
20601 | if test "$GCC" = "yes" ; then | |
20602 | # The GNU linker requires the -export-dynamic option to make | |
20603 | # all symbols visible in the dynamic symbol table. | |
20604 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
20605 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
20606 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 20607 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
20608 | cat >conftest.$ac_ext <<_ACEOF |
20609 | /* confdefs.h. */ | |
20610 | _ACEOF | |
20611 | cat confdefs.h >>conftest.$ac_ext | |
20612 | cat >>conftest.$ac_ext <<_ACEOF | |
20613 | /* end confdefs.h. */ | |
c906108c | 20614 | |
bec39cab AC |
20615 | int |
20616 | main () | |
20617 | { | |
c906108c | 20618 | int i; |
bec39cab AC |
20619 | ; |
20620 | return 0; | |
20621 | } | |
20622 | _ACEOF | |
20623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20625 | (eval $ac_link) 2>conftest.er1 | |
20626 | ac_status=$? | |
20627 | grep -v '^ *+' conftest.er1 >conftest.err | |
20628 | rm -f conftest.er1 | |
20629 | cat conftest.err >&5 | |
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20631 | (exit $ac_status); } && | |
b4e70030 JB |
20632 | { ac_try='test -z "$ac_c_werror_flag" |
20633 | || test ! -s conftest.err' | |
bec39cab AC |
20634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20635 | (eval $ac_try) 2>&5 | |
20636 | ac_status=$? | |
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 | (exit $ac_status); }; } && | |
20639 | { ac_try='test -s conftest$ac_exeext' | |
20640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20641 | (eval $ac_try) 2>&5 | |
20642 | ac_status=$? | |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20644 | (exit $ac_status); }; }; then | |
c906108c SS |
20645 | found=yes |
20646 | else | |
bec39cab AC |
20647 | echo "$as_me: failed program was:" >&5 |
20648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20649 | ||
b4e70030 | 20650 | found=no |
c906108c | 20651 | fi |
bec39cab AC |
20652 | rm -f conftest.err conftest.$ac_objext \ |
20653 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 20654 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
20655 | echo "$as_me:$LINENO: result: $found" >&5 |
20656 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
20657 | if test $found = yes; then |
20658 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
20659 | fi | |
20660 | fi | |
20661 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
20662 | # at one point. | |
b4e70030 JB |
20663 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
20664 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
20665 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
20666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20667 | else |
bec39cab AC |
20668 | |
20669 | cat >conftest.$ac_ext <<_ACEOF | |
20670 | /* confdefs.h. */ | |
20671 | _ACEOF | |
20672 | cat confdefs.h >>conftest.$ac_ext | |
20673 | cat >>conftest.$ac_ext <<_ACEOF | |
20674 | /* end confdefs.h. */ | |
c906108c SS |
20675 | |
20676 | #include <proc_service.h> | |
20677 | ps_err_e ps_pdwrite | |
20678 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 20679 | |
bec39cab AC |
20680 | int |
20681 | main () | |
20682 | { | |
20683 | ||
20684 | ; | |
20685 | return 0; | |
20686 | } | |
20687 | _ACEOF | |
20688 | rm -f conftest.$ac_objext | |
20689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20690 | (eval $ac_compile) 2>conftest.er1 | |
20691 | ac_status=$? | |
20692 | grep -v '^ *+' conftest.er1 >conftest.err | |
20693 | rm -f conftest.er1 | |
20694 | cat conftest.err >&5 | |
20695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20696 | (exit $ac_status); } && | |
b4e70030 JB |
20697 | { ac_try='test -z "$ac_c_werror_flag" |
20698 | || test ! -s conftest.err' | |
bec39cab AC |
20699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20700 | (eval $ac_try) 2>&5 | |
20701 | ac_status=$? | |
20702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20703 | (exit $ac_status); }; } && | |
20704 | { ac_try='test -s conftest.$ac_objext' | |
20705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20706 | (eval $ac_try) 2>&5 | |
20707 | ac_status=$? | |
20708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20709 | (exit $ac_status); }; }; then | |
c906108c SS |
20710 | gdb_cv_proc_service_is_old=no |
20711 | else | |
bec39cab AC |
20712 | echo "$as_me: failed program was:" >&5 |
20713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20714 | ||
b4e70030 | 20715 | gdb_cv_proc_service_is_old=yes |
c906108c | 20716 | fi |
bec39cab AC |
20717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20718 | ||
c906108c SS |
20719 | fi |
20720 | ||
b4e70030 JB |
20721 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
20722 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 20723 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
20724 | |
20725 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 20726 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 20727 | _ACEOF |
c906108c SS |
20728 | |
20729 | fi | |
20730 | else | |
b4e70030 JB |
20731 | echo "$as_me:$LINENO: result: no" >&5 |
20732 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
20733 | fi |
20734 | ;; | |
d92419e5 | 20735 | aix*) |
b4e70030 JB |
20736 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
20737 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
20738 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
20739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20740 | else | |
20741 | cat >conftest.$ac_ext <<_ACEOF | |
20742 | /* confdefs.h. */ | |
20743 | _ACEOF | |
20744 | cat confdefs.h >>conftest.$ac_ext | |
20745 | cat >>conftest.$ac_ext <<_ACEOF | |
20746 | /* end confdefs.h. */ | |
d92419e5 | 20747 | #include <sys/pthdebug.h> |
bec39cab AC |
20748 | int |
20749 | main () | |
20750 | { | |
d92419e5 JB |
20751 | #ifndef PTHDB_VERSION_3 |
20752 | #error | |
20753 | #endif | |
bec39cab AC |
20754 | ; |
20755 | return 0; | |
20756 | } | |
20757 | _ACEOF | |
20758 | rm -f conftest.$ac_objext | |
20759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20760 | (eval $ac_compile) 2>conftest.er1 | |
20761 | ac_status=$? | |
20762 | grep -v '^ *+' conftest.er1 >conftest.err | |
20763 | rm -f conftest.er1 | |
20764 | cat conftest.err >&5 | |
20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20766 | (exit $ac_status); } && | |
b4e70030 JB |
20767 | { ac_try='test -z "$ac_c_werror_flag" |
20768 | || test ! -s conftest.err' | |
bec39cab AC |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; } && | |
20774 | { ac_try='test -s conftest.$ac_objext' | |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; }; then | |
d92419e5 JB |
20780 | gdb_cv_have_aix_thread_debug=yes |
20781 | else | |
bec39cab AC |
20782 | echo "$as_me: failed program was:" >&5 |
20783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20784 | ||
b4e70030 | 20785 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 20786 | fi |
bec39cab | 20787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
20788 | fi |
20789 | ||
b4e70030 JB |
20790 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
20791 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
20792 | if test $gdb_cv_have_aix_thread_debug = yes; then |
20793 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 20794 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
20795 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
20796 | fi | |
20797 | ;; | |
c906108c | 20798 | esac |
bec39cab | 20799 | |
c906108c SS |
20800 | fi |
20801 | ||
3f47be5c | 20802 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
20803 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
20804 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
20805 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
20806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20807 | else | |
20808 | cat >conftest.$ac_ext <<_ACEOF | |
20809 | /* confdefs.h. */ | |
20810 | _ACEOF | |
20811 | cat confdefs.h >>conftest.$ac_ext | |
20812 | cat >>conftest.$ac_ext <<_ACEOF | |
20813 | /* end confdefs.h. */ | |
3f47be5c | 20814 | #include <thread_db.h> |
bec39cab AC |
20815 | int |
20816 | main () | |
20817 | { | |
3f47be5c | 20818 | int i = TD_NOTALLOC; |
bec39cab AC |
20819 | ; |
20820 | return 0; | |
20821 | } | |
20822 | _ACEOF | |
20823 | rm -f conftest.$ac_objext | |
20824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20825 | (eval $ac_compile) 2>conftest.er1 | |
20826 | ac_status=$? | |
20827 | grep -v '^ *+' conftest.er1 >conftest.err | |
20828 | rm -f conftest.er1 | |
20829 | cat conftest.err >&5 | |
20830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20831 | (exit $ac_status); } && | |
b4e70030 JB |
20832 | { ac_try='test -z "$ac_c_werror_flag" |
20833 | || test ! -s conftest.err' | |
bec39cab AC |
20834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20835 | (eval $ac_try) 2>&5 | |
20836 | ac_status=$? | |
20837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20838 | (exit $ac_status); }; } && | |
20839 | { ac_try='test -s conftest.$ac_objext' | |
20840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20841 | (eval $ac_try) 2>&5 | |
20842 | ac_status=$? | |
20843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20844 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
20845 | gdb_cv_thread_db_h_has_td_notalloc=yes |
20846 | else | |
bec39cab AC |
20847 | echo "$as_me: failed program was:" >&5 |
20848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20849 | ||
b4e70030 | 20850 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 20851 | |
3f47be5c | 20852 | fi |
bec39cab | 20853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 20854 | |
bec39cab | 20855 | fi |
b4e70030 JB |
20856 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
20857 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
3f47be5c EZ |
20858 | fi |
20859 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
20860 | |
20861 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 20862 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 20863 | _ACEOF |
3f47be5c EZ |
20864 | |
20865 | fi | |
20866 | ||
b757528f | 20867 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
20868 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
20869 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
20870 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
20871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20872 | else | |
20873 | cat >conftest.$ac_ext <<_ACEOF | |
20874 | /* confdefs.h. */ | |
20875 | _ACEOF | |
20876 | cat confdefs.h >>conftest.$ac_ext | |
20877 | cat >>conftest.$ac_ext <<_ACEOF | |
20878 | /* end confdefs.h. */ | |
b757528f | 20879 | #include <sys/syscall.h> |
bec39cab AC |
20880 | int |
20881 | main () | |
20882 | { | |
b757528f | 20883 | int i = __NR_tkill; |
bec39cab AC |
20884 | ; |
20885 | return 0; | |
20886 | } | |
20887 | _ACEOF | |
20888 | rm -f conftest.$ac_objext | |
20889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20890 | (eval $ac_compile) 2>conftest.er1 | |
20891 | ac_status=$? | |
20892 | grep -v '^ *+' conftest.er1 >conftest.err | |
20893 | rm -f conftest.er1 | |
20894 | cat conftest.err >&5 | |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20896 | (exit $ac_status); } && | |
b4e70030 JB |
20897 | { ac_try='test -z "$ac_c_werror_flag" |
20898 | || test ! -s conftest.err' | |
bec39cab AC |
20899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20900 | (eval $ac_try) 2>&5 | |
20901 | ac_status=$? | |
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20903 | (exit $ac_status); }; } && | |
20904 | { ac_try='test -s conftest.$ac_objext' | |
20905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20906 | (eval $ac_try) 2>&5 | |
20907 | ac_status=$? | |
20908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20909 | (exit $ac_status); }; }; then | |
b757528f JJ |
20910 | gdb_cv_sys_syscall_h_has_tkill=yes |
20911 | else | |
bec39cab AC |
20912 | echo "$as_me: failed program was:" >&5 |
20913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20914 | ||
b4e70030 | 20915 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 20916 | |
b757528f | 20917 | fi |
bec39cab | 20918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 20919 | |
bec39cab | 20920 | fi |
b4e70030 JB |
20921 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
20922 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
20923 | fi |
20924 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
20925 | |
20926 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 20927 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 20928 | _ACEOF |
b757528f JJ |
20929 | |
20930 | fi | |
20931 | ||
fb40c209 | 20932 | |
bec39cab | 20933 | |
b4e70030 | 20934 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 20935 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
20936 | withval="$with_sysroot" |
20937 | ||
030292b7 | 20938 | case ${with_sysroot} in |
715d1656 | 20939 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
20940 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
20941 | esac | |
20942 | ||
20943 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
20944 | ||
20945 | if test "x$exec_prefix" = xNONE; then | |
20946 | if test "x$prefix" = xNONE; then | |
20947 | test_prefix=/usr/local | |
20948 | else | |
20949 | test_prefix=$prefix | |
20950 | fi | |
20951 | else | |
20952 | test_prefix=$exec_prefix | |
20953 | fi | |
20954 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
20955 | "${test_prefix}"|"${test_prefix}/"*|\ |
20956 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
20957 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
20958 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
20959 | ;; | |
20960 | esac | |
20961 | ||
20962 | else | |
bec39cab | 20963 | |
030292b7 DJ |
20964 | TARGET_SYSTEM_ROOT= |
20965 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
20966 | ||
b4e70030 | 20967 | fi; |
030292b7 DJ |
20968 | |
20969 | ||
20970 | ||
b4e70030 | 20971 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 20972 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
20973 | enableval="$enable_werror" |
20974 | case "${enableval}" in | |
094a342e MK |
20975 | yes | y) ERROR_ON_WARNING="yes" ;; |
20976 | no | n) ERROR_ON_WARNING="no" ;; | |
20977 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
20978 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
20979 | { (exit 1); exit 1; }; } ;; | |
20980 | esac | |
b4e70030 | 20981 | fi; |
094a342e MK |
20982 | |
20983 | # Enable -Werror by default when using gcc | |
20984 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
20985 | ERROR_ON_WARNING=yes | |
20986 | fi | |
20987 | ||
20988 | WERROR_CFLAGS="" | |
20989 | if test "${ERROR_ON_WARNING}" = yes ; then | |
20990 | WERROR_CFLAGS="-Werror" | |
20991 | fi | |
20992 | ||
3b851bce AC |
20993 | # NOTE: Don't add -Wall or -Wunused, they both include |
20994 | # -Wunused-parameter which reports bogus warnings. | |
20995 | # NOTE: If you add to this list, remember to update | |
20996 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 20997 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
a3b362c4 | 20998 | -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ |
7be93b9e | 20999 | -Wunused-label -Wunused-function -Wno-pointer-sign" |
a3b362c4 JB |
21000 | |
21001 | # GCC supports -Wuninitialized only with -O or -On, n != 0. | |
ca231fcc | 21002 | if test x${CFLAGS+set} = xset; then |
a3b362c4 JB |
21003 | case "${CFLAGS}" in |
21004 | *"-O0"* ) ;; | |
21005 | *"-O"* ) | |
21006 | build_warnings="${build_warnings} -Wuninitialized" | |
21007 | ;; | |
21008 | esac | |
21009 | else | |
21010 | build_warnings="${build_warnings} -Wuninitialized" | |
21011 | fi | |
21012 | ||
d8038014 | 21013 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 21014 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 21015 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
21016 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
21017 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
21018 | # -Woverloaded-virtual -Winline -Werror" | |
b4e70030 | 21019 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 21020 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
21021 | enableval="$enable_build_warnings" |
21022 | case "${enableval}" in | |
c906108c SS |
21023 | yes) ;; |
21024 | no) build_warnings="-w";; | |
21025 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21026 | build_warnings="${build_warnings} ${t}";; | |
21027 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21028 | build_warnings="${t} ${build_warnings}";; | |
21029 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21030 | esac | |
d4f3574e | 21031 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 21032 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 21033 | fi |
b4e70030 | 21034 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 21035 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
21036 | enableval="$enable_gdb_build_warnings" |
21037 | case "${enableval}" in | |
3b851bce AC |
21038 | yes) ;; |
21039 | no) build_warnings="-w";; | |
21040 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21041 | build_warnings="${build_warnings} ${t}";; | |
21042 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21043 | build_warnings="${t} ${build_warnings}";; | |
21044 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21045 | esac | |
21046 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
21047 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
21048 | fi | |
b4e70030 | 21049 | fi; WARN_CFLAGS="" |
c906108c SS |
21050 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
21051 | then | |
b4e70030 JB |
21052 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
21053 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
21054 | # Separate out the -Werror flag as some files just cannot be |
21055 | # compiled with it enabled. | |
21056 | for w in ${build_warnings}; do | |
21057 | case $w in | |
21058 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
21059 | *) # Check that GCC accepts it | |
4536bbc6 AC |
21060 | saved_CFLAGS="$CFLAGS" |
21061 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
21062 | cat >conftest.$ac_ext <<_ACEOF |
21063 | /* confdefs.h. */ | |
21064 | _ACEOF | |
21065 | cat confdefs.h >>conftest.$ac_ext | |
21066 | cat >>conftest.$ac_ext <<_ACEOF | |
21067 | /* end confdefs.h. */ | |
4536bbc6 | 21068 | |
bec39cab AC |
21069 | int |
21070 | main () | |
21071 | { | |
4536bbc6 | 21072 | |
bec39cab AC |
21073 | ; |
21074 | return 0; | |
21075 | } | |
21076 | _ACEOF | |
21077 | rm -f conftest.$ac_objext | |
21078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21079 | (eval $ac_compile) 2>conftest.er1 | |
21080 | ac_status=$? | |
21081 | grep -v '^ *+' conftest.er1 >conftest.err | |
21082 | rm -f conftest.er1 | |
21083 | cat conftest.err >&5 | |
21084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21085 | (exit $ac_status); } && | |
b4e70030 JB |
21086 | { ac_try='test -z "$ac_c_werror_flag" |
21087 | || test ! -s conftest.err' | |
bec39cab AC |
21088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21089 | (eval $ac_try) 2>&5 | |
21090 | ac_status=$? | |
21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 | (exit $ac_status); }; } && | |
21093 | { ac_try='test -s conftest.$ac_objext' | |
21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21095 | (eval $ac_try) 2>&5 | |
21096 | ac_status=$? | |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21098 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
21099 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
21100 | else | |
bec39cab AC |
21101 | echo "$as_me: failed program was:" >&5 |
21102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21103 | ||
4536bbc6 | 21104 | fi |
bec39cab | 21105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 21106 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
21107 | esac |
21108 | done | |
b4e70030 JB |
21109 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
21110 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
21111 | fi |
21112 | ||
21113 | ||
104c1213 | 21114 | |
7a292a7a | 21115 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
21116 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
21117 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
21118 | if test "${gdb_cv_os_cygwin+set}" = set; then |
21119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21120 | else | |
21121 | cat >conftest.$ac_ext <<_ACEOF | |
21122 | /* confdefs.h. */ | |
21123 | _ACEOF | |
21124 | cat confdefs.h >>conftest.$ac_ext | |
21125 | cat >>conftest.$ac_ext <<_ACEOF | |
21126 | /* end confdefs.h. */ | |
7a292a7a SS |
21127 | |
21128 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
21129 | lose | |
21130 | #endif | |
bec39cab | 21131 | _ACEOF |
7a292a7a | 21132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 21133 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
21134 | gdb_cv_os_cygwin=yes |
21135 | else | |
7a292a7a SS |
21136 | gdb_cv_os_cygwin=no |
21137 | fi | |
21138 | rm -f conftest* | |
21139 | ||
21140 | fi | |
b4e70030 JB |
21141 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
21142 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 21143 | |
aff38e61 | 21144 | |
3eb25fda | 21145 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 21146 | case ${host} in |
95cbc983 AC |
21147 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
21148 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 21149 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
21150 | esac |
21151 | ||
21152 | ||
cd0fc7c3 SS |
21153 | # libreadline needs libuser32.a in a cygwin environment |
21154 | WIN32LIBS= | |
21155 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
21156 | WIN32LIBS="-luser32" |
21157 | case "${target}" in | |
21158 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
21159 | ;; | |
21160 | esac | |
cd0fc7c3 | 21161 | fi |
c906108c | 21162 | |
b4505029 MM |
21163 | # The ser-tcp.c module requires sockets. |
21164 | case ${host} in | |
21165 | *mingw32*) | |
21166 | ||
21167 | cat >>confdefs.h <<\_ACEOF | |
21168 | #define USE_WIN32API 1 | |
21169 | _ACEOF | |
21170 | ||
21171 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
21172 | ;; | |
21173 | esac | |
21174 | ||
7a292a7a | 21175 | |
121ce6e5 DJ |
21176 | # Add any host-specific objects to GDB. |
21177 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
21178 | ||
3fc11d3e JM |
21179 | LIBGUI="../libgui/src/libgui.a" |
21180 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
21181 | ||
21182 | ||
7a292a7a | 21183 | |
3fc11d3e JM |
21184 | WIN32LDAPP= |
21185 | ||
21186 | ||
21187 | ||
d91670b9 CV |
21188 | case "${host}" in |
21189 | *-*-cygwin*) | |
21190 | configdir="win" | |
21191 | ;; | |
21192 | *) | |
21193 | configdir="unix" | |
21194 | ;; | |
21195 | esac | |
3fc11d3e JM |
21196 | |
21197 | GDBTKLIBS= | |
21198 | if test "${enable_gdbtk}" = "yes"; then | |
21199 | ||
d1c3b63a KS |
21200 | # Gdbtk must have an absolute path to srcdir in order to run |
21201 | # properly when not installed. | |
21202 | here=`pwd` | |
21203 | cd ${srcdir} | |
21204 | GDBTK_SRC_DIR=`pwd` | |
21205 | cd $here | |
21206 | ||
bec39cab | 21207 | |
3fc11d3e JM |
21208 | # |
21209 | # Ok, lets find the tcl configuration | |
bec39cab | 21210 | # First, look for one uninstalled. |
3fc11d3e JM |
21211 | # the alternative search directory is invoked by --with-tclconfig |
21212 | # | |
21213 | ||
21214 | if test x"${no_tcl}" = x ; then | |
21215 | # we reset no_tcl in case something fails here | |
21216 | no_tcl=true | |
bec39cab | 21217 | |
b4e70030 | 21218 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 21219 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
21220 | withval="$with_tclconfig" |
21221 | with_tclconfig=${withval} | |
21222 | fi; | |
21223 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
21224 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
21225 | if test "${ac_cv_c_tclconfig+set}" = set; then |
21226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21227 | else |
bec39cab | 21228 | |
3fc11d3e JM |
21229 | |
21230 | # First check to see if --with-tclconfig was specified. | |
21231 | if test x"${with_tclconfig}" != x ; then | |
21232 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
21233 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
21234 | else | |
bec39cab AC |
21235 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
21236 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
21237 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21238 | fi |
21239 | fi | |
21240 | ||
21241 | # then check for a private Tcl installation | |
21242 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21243 | for i in \ | |
21244 | ../tcl \ | |
21245 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
21246 | ../../tcl \ | |
21247 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
21248 | ../../../tcl \ | |
21249 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
21250 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21251 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21252 | break | |
21253 | fi | |
21254 | done | |
21255 | fi | |
21256 | # check in a few common install locations | |
21257 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21258 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21259 | if test -f "$i/tclConfig.sh" ; then | |
21260 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
21261 | break | |
21262 | fi | |
21263 | done | |
21264 | fi | |
21265 | # check in a few other private locations | |
21266 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21267 | for i in \ | |
21268 | ${srcdir}/../tcl \ | |
21269 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
21270 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21271 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21272 | break | |
21273 | fi | |
21274 | done | |
21275 | fi | |
bec39cab | 21276 | |
3fc11d3e JM |
21277 | fi |
21278 | ||
21279 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21280 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
21281 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
21282 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
21283 | else |
21284 | no_tcl= | |
21285 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
21286 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
21287 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
21288 | fi |
21289 | fi | |
21290 | ||
21291 | if test -z "${no_tcl}"; then | |
bec39cab | 21292 | |
3fc11d3e JM |
21293 | . $TCLCONFIG |
21294 | ||
3fc11d3e JM |
21295 | |
21296 | ||
21297 | ||
21298 | ||
3fc11d3e JM |
21299 | |
21300 | ||
21301 | ||
bec39cab AC |
21302 | |
21303 | ||
21304 | ||
21305 | ||
21306 | ||
21307 | ||
21308 | ||
21309 | ||
21310 | ||
21311 | ||
21312 | ||
21313 | ||
21314 | ||
21315 | ||
21316 | ||
21317 | ||
21318 | ||
21319 | ||
21320 | ||
3fc11d3e JM |
21321 | # |
21322 | # Ok, lets find the tk configuration | |
bec39cab | 21323 | # First, look for one uninstalled. |
3fc11d3e JM |
21324 | # the alternative search directory is invoked by --with-tkconfig |
21325 | # | |
21326 | ||
21327 | if test x"${no_tk}" = x ; then | |
21328 | # we reset no_tk in case something fails here | |
21329 | no_tk=true | |
bec39cab | 21330 | |
b4e70030 | 21331 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 21332 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
21333 | withval="$with_tkconfig" |
21334 | with_tkconfig=${withval} | |
21335 | fi; | |
21336 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
21337 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
21338 | if test "${ac_cv_c_tkconfig+set}" = set; then |
21339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21340 | else |
bec39cab | 21341 | |
3fc11d3e JM |
21342 | |
21343 | # First check to see if --with-tkconfig was specified. | |
21344 | if test x"${with_tkconfig}" != x ; then | |
21345 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
21346 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
21347 | else | |
bec39cab AC |
21348 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
21349 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
21350 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21351 | fi |
21352 | fi | |
21353 | ||
21354 | # then check for a private Tk library | |
21355 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21356 | for i in \ | |
21357 | ../tk \ | |
21358 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
21359 | ../../tk \ | |
21360 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
21361 | ../../../tk \ | |
21362 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
21363 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
21364 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
21365 | break | |
21366 | fi | |
21367 | done | |
21368 | fi | |
21369 | # check in a few common install locations | |
21370 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21371 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21372 | if test -f "$i/tkConfig.sh" ; then | |
21373 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
21374 | break | |
21375 | fi | |
21376 | done | |
21377 | fi | |
21378 | # check in a few other private locations | |
21379 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21380 | for i in \ | |
21381 | ${srcdir}/../tk \ | |
21382 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
21383 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
21384 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
21385 | break | |
21386 | fi | |
21387 | done | |
21388 | fi | |
bec39cab | 21389 | |
3fc11d3e JM |
21390 | fi |
21391 | ||
21392 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21393 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
21394 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
21395 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
21396 | else |
21397 | no_tk= | |
21398 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
21399 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
21400 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
21401 | fi |
21402 | fi | |
21403 | ||
21404 | ||
21405 | ||
dd2504ab JM |
21406 | # now look for Tcl library stuff |
21407 | ||
d91670b9 | 21408 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
21409 | |
21410 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
21411 | ||
3fc11d3e JM |
21412 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
21413 | # point to doing Tcl. | |
21414 | if test -z "${no_tk}"; then | |
bec39cab | 21415 | |
3fc11d3e JM |
21416 | if test -f "$TKCONFIG" ; then |
21417 | . $TKCONFIG | |
21418 | fi | |
21419 | ||
3fc11d3e | 21420 | |
3fc11d3e JM |
21421 | |
21422 | ||
3fc11d3e | 21423 | |
bec39cab AC |
21424 | |
21425 | ||
21426 | ||
21427 | ||
21428 | ||
21429 | ||
21430 | ||
21431 | ||
21432 | ||
3fc11d3e JM |
21433 | # |
21434 | # Ok, lets find the tcl source trees so we can use the headers | |
21435 | # Warning: transition of version 9 to 10 will break this algorithm | |
21436 | # because 10 sorts before 9. We also look for just tcl. We have to | |
21437 | # be careful that we don't match stuff like tclX by accident. | |
21438 | # the alternative search directory is involked by --with-tclinclude | |
21439 | # | |
21440 | ||
21441 | no_tcl=true | |
b4e70030 JB |
21442 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
21443 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 21444 | |
b4e70030 | 21445 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 21446 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
21447 | withval="$with_tclinclude" |
21448 | with_tclinclude=${withval} | |
21449 | fi; | |
bec39cab AC |
21450 | if test "${ac_cv_c_tclh+set}" = set; then |
21451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21452 | else |
bec39cab | 21453 | |
3fc11d3e JM |
21454 | # first check to see if --with-tclinclude was specified |
21455 | if test x"${with_tclinclude}" != x ; then | |
21456 | if test -f ${with_tclinclude}/tclInt.h ; then | |
21457 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
21458 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
21459 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
21460 | else | |
bec39cab AC |
21461 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
21462 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
21463 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21464 | fi |
21465 | fi | |
21466 | ||
21467 | # next check if it came with Tcl configuration file | |
21468 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21469 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
21470 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
21471 | fi | |
21472 | fi | |
21473 | ||
21474 | # next check in private source directory | |
21475 | # | |
21476 | # since ls returns lowest version numbers first, reverse its output | |
21477 | if test x"${ac_cv_c_tclh}" = x ; then | |
21478 | for i in \ | |
21479 | ${srcdir}/../tcl \ | |
21480 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
21481 | ${srcdir}/../../tcl \ | |
21482 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
21483 | ${srcdir}/../../../tcl \ | |
21484 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
21485 | if test -f $i/generic/tclInt.h ; then | |
21486 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
21487 | break | |
21488 | fi | |
21489 | done | |
21490 | fi | |
21491 | # finally check in a few common install locations | |
21492 | # | |
21493 | # since ls returns lowest version numbers first, reverse its output | |
21494 | if test x"${ac_cv_c_tclh}" = x ; then | |
21495 | for i in \ | |
21496 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
21497 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
21498 | /usr/local/src/tcl \ | |
21499 | /usr/local/lib/tcl \ | |
21500 | ${prefix}/include ; do | |
21501 | if test -f $i/generic/tclInt.h ; then | |
21502 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
21503 | break | |
21504 | fi | |
21505 | done | |
21506 | fi | |
21507 | # see if one is installed | |
21508 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 21509 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
21510 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
21511 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
21512 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
21513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21514 | fi | |
b4e70030 JB |
21515 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
21516 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
21517 | else |
21518 | # Is the header compilable? | |
b4e70030 JB |
21519 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
21520 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
21521 | cat >conftest.$ac_ext <<_ACEOF |
21522 | /* confdefs.h. */ | |
21523 | _ACEOF | |
21524 | cat confdefs.h >>conftest.$ac_ext | |
21525 | cat >>conftest.$ac_ext <<_ACEOF | |
21526 | /* end confdefs.h. */ | |
21527 | $ac_includes_default | |
21528 | #include <tclInt.h> | |
21529 | _ACEOF | |
21530 | rm -f conftest.$ac_objext | |
21531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21532 | (eval $ac_compile) 2>conftest.er1 | |
21533 | ac_status=$? | |
21534 | grep -v '^ *+' conftest.er1 >conftest.err | |
21535 | rm -f conftest.er1 | |
21536 | cat conftest.err >&5 | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); } && | |
b4e70030 JB |
21539 | { ac_try='test -z "$ac_c_werror_flag" |
21540 | || test ! -s conftest.err' | |
bec39cab AC |
21541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21542 | (eval $ac_try) 2>&5 | |
21543 | ac_status=$? | |
21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21545 | (exit $ac_status); }; } && | |
21546 | { ac_try='test -s conftest.$ac_objext' | |
21547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21548 | (eval $ac_try) 2>&5 | |
21549 | ac_status=$? | |
21550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21551 | (exit $ac_status); }; }; then | |
21552 | ac_header_compiler=yes | |
21553 | else | |
21554 | echo "$as_me: failed program was:" >&5 | |
21555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21556 | ||
b4e70030 | 21557 | ac_header_compiler=no |
bec39cab AC |
21558 | fi |
21559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
21560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
21562 | |
21563 | # Is the header present? | |
b4e70030 JB |
21564 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
21565 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
21566 | cat >conftest.$ac_ext <<_ACEOF |
21567 | /* confdefs.h. */ | |
21568 | _ACEOF | |
21569 | cat confdefs.h >>conftest.$ac_ext | |
21570 | cat >>conftest.$ac_ext <<_ACEOF | |
21571 | /* end confdefs.h. */ | |
3fc11d3e | 21572 | #include <tclInt.h> |
bec39cab AC |
21573 | _ACEOF |
21574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21576 | ac_status=$? | |
21577 | grep -v '^ *+' conftest.er1 >conftest.err | |
21578 | rm -f conftest.er1 | |
21579 | cat conftest.err >&5 | |
21580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21581 | (exit $ac_status); } >/dev/null; then | |
21582 | if test -s conftest.err; then | |
21583 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21585 | else | |
21586 | ac_cpp_err= | |
21587 | fi | |
21588 | else | |
21589 | ac_cpp_err=yes | |
3fc11d3e | 21590 | fi |
bec39cab AC |
21591 | if test -z "$ac_cpp_err"; then |
21592 | ac_header_preproc=yes | |
21593 | else | |
21594 | echo "$as_me: failed program was:" >&5 | |
21595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21596 | ||
21597 | ac_header_preproc=no | |
3fc11d3e | 21598 | fi |
bec39cab | 21599 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
21600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
21602 | |
21603 | # So? What about this header? | |
21604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21605 | yes:no: ) | |
21606 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21607 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21608 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
21609 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
21610 | ac_header_preproc=yes | |
21611 | ;; | |
21612 | no:yes:* ) | |
21613 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
21614 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
21615 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
21616 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
21617 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
21618 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
21619 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21620 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21621 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
21622 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
21623 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
21624 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
21625 | ( |
21626 | cat <<\_ASBOX | |
21627 | ## ------------------------------------------ ## | |
21628 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
21629 | ## ------------------------------------------ ## | |
21630 | _ASBOX | |
21631 | ) | | |
21632 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
21633 | ;; |
21634 | esac | |
b4e70030 JB |
21635 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
21636 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
21637 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
21638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21639 | else | |
21640 | ac_cv_header_tclInt_h=$ac_header_preproc | |
21641 | fi | |
b4e70030 JB |
21642 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
21643 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
21644 | |
21645 | fi | |
21646 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
21647 | ac_cv_c_tclh=installed |
21648 | else | |
bec39cab | 21649 | ac_cv_c_tclh="" |
3fc11d3e JM |
21650 | fi |
21651 | ||
bec39cab | 21652 | |
3fc11d3e JM |
21653 | fi |
21654 | ||
21655 | fi | |
21656 | ||
21657 | if test x"${ac_cv_c_tclh}" = x ; then | |
21658 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
21659 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
21660 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
21661 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21662 | fi |
21663 | if test x"${ac_cv_c_tclh}" != x ; then | |
21664 | no_tcl="" | |
21665 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
21666 | echo "$as_me:$LINENO: result: is installed" >&5 |
21667 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
21668 | TCLHDIR="" |
21669 | else | |
b4e70030 JB |
21670 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
21671 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
21672 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
21673 | TCLHDIR="-I${ac_cv_c_tclh}" | |
21674 | fi | |
21675 | fi | |
21676 | ||
21677 | ||
21678 | ||
bec39cab | 21679 | |
3fc11d3e JM |
21680 | # |
21681 | # Ok, lets find the tk source trees so we can use the headers | |
21682 | # If the directory (presumably symlink) named "tk" exists, use that one | |
21683 | # in preference to any others. Same logic is used when choosing library | |
21684 | # and again with Tcl. The search order is the best place to look first, then in | |
21685 | # decreasing significance. The loop breaks if the trigger file is found. | |
21686 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
21687 | # directory. This converts the path from a relative to an absolute, so | |
21688 | # recursive cache variables for the path will work right. We check all | |
21689 | # the possible paths in one loop rather than many seperate loops to speed | |
21690 | # things up. | |
21691 | # the alternative search directory is involked by --with-tkinclude | |
21692 | # | |
21693 | no_tk=true | |
b4e70030 JB |
21694 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
21695 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 21696 | |
b4e70030 | 21697 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 21698 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
21699 | withval="$with_tkinclude" |
21700 | with_tkinclude=${withval} | |
21701 | fi; | |
bec39cab AC |
21702 | if test "${ac_cv_c_tkh+set}" = set; then |
21703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21704 | else |
bec39cab | 21705 | |
3fc11d3e JM |
21706 | # first check to see if --with-tkinclude was specified |
21707 | if test x"${with_tkinclude}" != x ; then | |
21708 | if test -f ${with_tkinclude}/tk.h ; then | |
21709 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
21710 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
21711 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
21712 | else | |
bec39cab AC |
21713 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
21714 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
21715 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21716 | fi |
21717 | fi | |
21718 | ||
21719 | # next check if it came with Tk configuration file | |
21720 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
21721 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
21722 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
21723 | fi | |
21724 | fi | |
21725 | ||
21726 | # next check in private source directory | |
21727 | # | |
21728 | # since ls returns lowest version numbers first, reverse its output | |
21729 | if test x"${ac_cv_c_tkh}" = x ; then | |
21730 | for i in \ | |
21731 | ${srcdir}/../tk \ | |
21732 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
21733 | ${srcdir}/../../tk \ | |
21734 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
21735 | ${srcdir}/../../../tk \ | |
21736 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
21737 | if test -f $i/generic/tk.h ; then | |
21738 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
21739 | break | |
21740 | fi | |
21741 | done | |
21742 | fi | |
21743 | # finally check in a few common install locations | |
21744 | # | |
21745 | # since ls returns lowest version numbers first, reverse its output | |
21746 | if test x"${ac_cv_c_tkh}" = x ; then | |
21747 | for i in \ | |
21748 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
21749 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
21750 | /usr/local/src/tk \ | |
21751 | /usr/local/lib/tk \ | |
21752 | ${prefix}/include ; do | |
21753 | if test -f $i/generic/tk.h ; then | |
21754 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
21755 | break | |
21756 | fi | |
21757 | done | |
21758 | fi | |
21759 | # see if one is installed | |
21760 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 21761 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
21762 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
21763 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
21764 | if test "${ac_cv_header_tk_h+set}" = set; then |
21765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21766 | fi | |
b4e70030 JB |
21767 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
21768 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
21769 | else |
21770 | # Is the header compilable? | |
b4e70030 JB |
21771 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
21772 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
21773 | cat >conftest.$ac_ext <<_ACEOF |
21774 | /* confdefs.h. */ | |
21775 | _ACEOF | |
21776 | cat confdefs.h >>conftest.$ac_ext | |
21777 | cat >>conftest.$ac_ext <<_ACEOF | |
21778 | /* end confdefs.h. */ | |
21779 | $ac_includes_default | |
3fc11d3e | 21780 | #include <tk.h> |
bec39cab AC |
21781 | _ACEOF |
21782 | rm -f conftest.$ac_objext | |
21783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21784 | (eval $ac_compile) 2>conftest.er1 | |
21785 | ac_status=$? | |
21786 | grep -v '^ *+' conftest.er1 >conftest.err | |
21787 | rm -f conftest.er1 | |
21788 | cat conftest.err >&5 | |
21789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21790 | (exit $ac_status); } && | |
b4e70030 JB |
21791 | { ac_try='test -z "$ac_c_werror_flag" |
21792 | || test ! -s conftest.err' | |
bec39cab AC |
21793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21794 | (eval $ac_try) 2>&5 | |
21795 | ac_status=$? | |
21796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21797 | (exit $ac_status); }; } && | |
21798 | { ac_try='test -s conftest.$ac_objext' | |
21799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21800 | (eval $ac_try) 2>&5 | |
21801 | ac_status=$? | |
21802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21803 | (exit $ac_status); }; }; then | |
21804 | ac_header_compiler=yes | |
21805 | else | |
21806 | echo "$as_me: failed program was:" >&5 | |
21807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21808 | ||
b4e70030 | 21809 | ac_header_compiler=no |
bec39cab AC |
21810 | fi |
21811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
21812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21813 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
21814 | |
21815 | # Is the header present? | |
b4e70030 JB |
21816 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
21817 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
21818 | cat >conftest.$ac_ext <<_ACEOF |
21819 | /* confdefs.h. */ | |
21820 | _ACEOF | |
21821 | cat confdefs.h >>conftest.$ac_ext | |
21822 | cat >>conftest.$ac_ext <<_ACEOF | |
21823 | /* end confdefs.h. */ | |
21824 | #include <tk.h> | |
21825 | _ACEOF | |
21826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21828 | ac_status=$? | |
21829 | grep -v '^ *+' conftest.er1 >conftest.err | |
21830 | rm -f conftest.er1 | |
21831 | cat conftest.err >&5 | |
21832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21833 | (exit $ac_status); } >/dev/null; then | |
21834 | if test -s conftest.err; then | |
21835 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21837 | else | |
21838 | ac_cpp_err= | |
21839 | fi | |
21840 | else | |
21841 | ac_cpp_err=yes | |
3fc11d3e | 21842 | fi |
bec39cab AC |
21843 | if test -z "$ac_cpp_err"; then |
21844 | ac_header_preproc=yes | |
21845 | else | |
21846 | echo "$as_me: failed program was:" >&5 | |
21847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21848 | ||
21849 | ac_header_preproc=no | |
21850 | fi | |
21851 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
21852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21853 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
21854 | |
21855 | # So? What about this header? | |
21856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21857 | yes:no: ) | |
21858 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21859 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21860 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
21861 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
21862 | ac_header_preproc=yes | |
21863 | ;; | |
21864 | no:yes:* ) | |
21865 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
21866 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
21867 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
21868 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
21869 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
21870 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
21871 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21872 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21873 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
21874 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
21875 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
21876 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
21877 | ( |
21878 | cat <<\_ASBOX | |
21879 | ## ------------------------------------------ ## | |
21880 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
21881 | ## ------------------------------------------ ## | |
21882 | _ASBOX | |
21883 | ) | | |
21884 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
21885 | ;; |
21886 | esac | |
b4e70030 JB |
21887 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
21888 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
21889 | if test "${ac_cv_header_tk_h+set}" = set; then |
21890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21891 | else | |
21892 | ac_cv_header_tk_h=$ac_header_preproc | |
21893 | fi | |
b4e70030 JB |
21894 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
21895 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 21896 | |
3fc11d3e | 21897 | fi |
bec39cab | 21898 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
21899 | ac_cv_c_tkh=installed |
21900 | else | |
bec39cab | 21901 | ac_cv_c_tkh="" |
3fc11d3e JM |
21902 | fi |
21903 | ||
bec39cab | 21904 | |
3fc11d3e JM |
21905 | fi |
21906 | ||
21907 | fi | |
21908 | ||
21909 | if test x"${ac_cv_c_tkh}" != x ; then | |
21910 | no_tk="" | |
21911 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
21912 | echo "$as_me:$LINENO: result: is installed" >&5 |
21913 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
21914 | TKHDIR="" |
21915 | else | |
b4e70030 JB |
21916 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
21917 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
21918 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
21919 | TKHDIR="-I${ac_cv_c_tkh}" | |
21920 | fi | |
21921 | else | |
21922 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
21923 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
21924 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
21925 | no_tk=true |
21926 | fi | |
21927 | ||
21928 | ||
21929 | ||
bec39cab | 21930 | |
b4e70030 JB |
21931 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
21932 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
21933 | if test x"${ac_cv_c_itclh}" = x ; then |
21934 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
21935 | if test -f $i/generic/itcl.h ; then | |
21936 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
21937 | break | |
21938 | fi | |
21939 | done | |
21940 | fi | |
21941 | if test x"${ac_cv_c_itclh}" = x ; then | |
21942 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
21943 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
21944 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
21945 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21946 | fi |
21947 | if test x"${ac_cv_c_itclh}" != x ; then | |
21948 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
21949 | fi | |
21950 | # should always be here | |
21951 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
21952 | ||
21953 | #AC_SUBST(ITCLLIB) | |
21954 | ||
bec39cab | 21955 | |
b4e70030 JB |
21956 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
21957 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
21958 | if test x"${ac_cv_c_itkh}" = x ; then |
21959 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
21960 | if test -f $i/generic/itk.h ; then | |
21961 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
21962 | break | |
21963 | fi | |
21964 | done | |
21965 | fi | |
21966 | if test x"${ac_cv_c_itkh}" = x ; then | |
21967 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
21968 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
21969 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
21970 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21971 | fi |
21972 | if test x"${ac_cv_c_itkh}" != x ; then | |
21973 | ITKHDIR="-I${ac_cv_c_itkh}" | |
21974 | fi | |
21975 | # should always be here | |
21976 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
21977 | ||
21978 | #AC_SUBST(ITKLIB) | |
21979 | ||
3fc11d3e | 21980 | |
dd2504ab JM |
21981 | |
21982 | # now look for Tk library stuff | |
21983 | ||
d91670b9 | 21984 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
21985 | |
21986 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
21987 | ||
3fc11d3e JM |
21988 | # now look for Itcl library stuff |
21989 | ||
bec39cab | 21990 | |
3fc11d3e JM |
21991 | # |
21992 | # Ok, lets find the itcl configuration | |
bec39cab | 21993 | # First, look for one uninstalled. |
3fc11d3e JM |
21994 | # the alternative search directory is invoked by --with-itclconfig |
21995 | # | |
21996 | ||
21997 | if test x"${no_itcl}" = x ; then | |
21998 | # we reset no_itcl in case something fails here | |
21999 | no_itcl=true | |
bec39cab | 22000 | |
b4e70030 | 22001 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 22002 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
22003 | withval="$with_itclconfig" |
22004 | with_itclconfig=${withval} | |
22005 | fi; | |
22006 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
22007 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22008 | if test "${ac_cv_c_itclconfig+set}" = set; then |
22009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22010 | else |
bec39cab | 22011 | |
3fc11d3e JM |
22012 | |
22013 | # First check to see if --with-itclconfig was specified. | |
22014 | if test x"${with_itclconfig}" != x ; then | |
22015 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
22016 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
22017 | else | |
bec39cab AC |
22018 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
22019 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
22020 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22021 | fi |
22022 | fi | |
22023 | ||
22024 | # then check for a private Itcl library | |
22025 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22026 | for i in \ | |
22027 | ../itcl/itcl \ | |
22028 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
22029 | ../../itcl \ | |
22030 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
22031 | ../../../itcl \ | |
22032 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22033 | if test -f "$i/itclConfig.sh" ; then | |
22034 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22035 | break | |
22036 | fi | |
22037 | done | |
22038 | fi | |
22039 | # check in a few common install locations | |
22040 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22041 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22042 | if test -f "$i/itclConfig.sh" ; then | |
22043 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22044 | break | |
22045 | fi | |
22046 | done | |
22047 | fi | |
22048 | # check in a few other private locations | |
22049 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22050 | for i in \ | |
22051 | ${srcdir}/../itcl/itcl \ | |
22052 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22053 | if test -f "$i/itclConfig.sh" ; then | |
22054 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22055 | break | |
22056 | fi | |
22057 | done | |
22058 | fi | |
bec39cab | 22059 | |
3fc11d3e JM |
22060 | fi |
22061 | ||
22062 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22063 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
22064 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
22065 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
22066 | else |
22067 | no_itcl= | |
22068 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
22069 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
22070 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
22071 | fi |
22072 | fi | |
22073 | ||
22074 | if test -z "${no_itcl}"; then | |
bec39cab | 22075 | |
3fc11d3e JM |
22076 | if test -f "$ITCLCONFIG" ; then |
22077 | . $ITCLCONFIG | |
22078 | fi | |
22079 | ||
3fc11d3e | 22080 | |
3fc11d3e JM |
22081 | |
22082 | ||
bec39cab AC |
22083 | |
22084 | ||
22085 | ||
22086 | ||
22087 | ||
22088 | ||
22089 | ||
3fc11d3e JM |
22090 | |
22091 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 22092 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
22093 | fi |
22094 | ||
bec39cab | 22095 | |
3fc11d3e | 22096 | # now look for Itk library stuff |
bec39cab | 22097 | |
3fc11d3e JM |
22098 | # |
22099 | # Ok, lets find the itk configuration | |
bec39cab | 22100 | # First, look for one uninstalled. |
3fc11d3e JM |
22101 | # the alternative search directory is invoked by --with-itkconfig |
22102 | # | |
22103 | ||
22104 | if test x"${no_itk}" = x ; then | |
22105 | # we reset no_itk in case something fails here | |
22106 | no_itk=true | |
bec39cab | 22107 | |
b4e70030 | 22108 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 22109 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
22110 | withval="$with_itkconfig" |
22111 | with_itkconfig=${withval} | |
22112 | fi; | |
22113 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
22114 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22115 | if test "${ac_cv_c_itkconfig+set}" = set; then |
22116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22117 | else |
bec39cab | 22118 | |
3fc11d3e JM |
22119 | |
22120 | # First check to see if --with-itkconfig was specified. | |
22121 | if test x"${with_itkconfig}" != x ; then | |
22122 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
22123 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
22124 | else | |
bec39cab AC |
22125 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
22126 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
22127 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22128 | fi |
22129 | fi | |
22130 | ||
22131 | # then check for a private Itk library | |
22132 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22133 | for i in \ | |
22134 | ../itcl/itk \ | |
22135 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
22136 | ../../itk \ | |
22137 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
22138 | ../../../itk \ | |
22139 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
22140 | if test -f "$i/itkConfig.sh" ; then | |
22141 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22142 | break | |
22143 | fi | |
22144 | done | |
22145 | fi | |
22146 | # check in a few common install locations | |
22147 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22148 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22149 | if test -f "$i/itkConfig.sh" ; then | |
22150 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22151 | break | |
22152 | fi | |
22153 | done | |
22154 | fi | |
22155 | # check in a few other private locations | |
22156 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22157 | for i in \ | |
22158 | ${srcdir}/../itcl/itk \ | |
22159 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
22160 | if test -f "$i/itkConfig.sh" ; then | |
22161 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22162 | break | |
22163 | fi | |
22164 | done | |
22165 | fi | |
bec39cab | 22166 | |
3fc11d3e JM |
22167 | fi |
22168 | ||
22169 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22170 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
22171 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
22172 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
22173 | else |
22174 | no_itk= | |
22175 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
22176 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
22177 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
22178 | fi |
22179 | fi | |
22180 | ||
22181 | ||
bec39cab AC |
22182 | if test -z "${no_itcl}"; then |
22183 | ||
22184 | if test -f "$ITKCONFIG" ; then | |
22185 | . $ITKCONFIG | |
22186 | fi | |
22187 | ||
22188 | ||
22189 | ||
22190 | ||
22191 | ||
22192 | ||
3fc11d3e | 22193 | |
3fc11d3e | 22194 | |
3fc11d3e JM |
22195 | |
22196 | ||
3fc11d3e JM |
22197 | |
22198 | ||
3fc11d3e | 22199 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 22200 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
22201 | fi |
22202 | ||
4226a5a5 | 22203 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
22204 | |
22205 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 22206 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
22207 | # Yes, the ordering seems wrong here. But it isn't. |
22208 | # TK_LIBS is the list of libraries that need to be linked | |
22209 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
22210 | # were in LIBS then any link tests after this point would | |
22211 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
22212 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
22213 | |
22214 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
22215 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
22216 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
22217 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
22218 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
22219 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
22220 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
22221 | |
22222 | if test x$gdb_cv_os_cygwin = xyes; then | |
22223 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
22224 | WIN32LDAPP="-Wl,--subsystem,console" | |
22225 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
22226 | fi | |
22227 | fi | |
22228 | fi | |
ffc6a242 | 22229 | |
b4e70030 JB |
22230 | |
22231 | ||
22232 | subdirs="$subdirs gdbtk" | |
3ace7edb | 22233 | |
3fc11d3e JM |
22234 | fi |
22235 | ||
22236 | ||
22237 | ||
22238 | ||
22239 | ||
22240 | ||
22241 | ||
22242 | ||
22243 | ||
22244 | ||
22245 | ||
22246 | ||
22247 | ||
dd2504ab | 22248 | |
b4e70030 JB |
22249 | echo "$as_me:$LINENO: checking for X" >&5 |
22250 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 22251 | |
c906108c | 22252 | |
b4e70030 | 22253 | # Check whether --with-x or --without-x was given. |
c906108c | 22254 | if test "${with_x+set}" = set; then |
b4e70030 | 22255 | withval="$with_x" |
c906108c | 22256 | |
b4e70030 | 22257 | fi; |
c906108c SS |
22258 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22259 | if test "x$with_x" = xno; then | |
22260 | # The user explicitly disabled X. | |
22261 | have_x=disabled | |
22262 | else | |
22263 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22264 | # Both variables are already set. | |
22265 | have_x=yes | |
22266 | else | |
bec39cab AC |
22267 | if test "${ac_cv_have_x+set}" = set; then |
22268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
22269 | else |
22270 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 22271 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 22272 | rm -fr conftest.dir |
bec39cab AC |
22273 | if mkdir conftest.dir; then |
22274 | cd conftest.dir | |
c906108c | 22275 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 22276 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
22277 | acfindx: |
22278 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 22279 | _ACEOF |
b4e70030 | 22280 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
22281 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
22282 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22283 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22284 | for ac_extension in a so sl; do | |
22285 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
22286 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22287 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
22288 | fi |
22289 | done | |
22290 | # Screen out bogus values from the imake configuration. They are | |
22291 | # bogus both because they are the default anyway, and because | |
22292 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 22293 | case $ac_im_incroot in |
b4e70030 | 22294 | /usr/include) ;; |
bec39cab | 22295 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 22296 | esac |
bec39cab | 22297 | case $ac_im_usrlibdir in |
c906108c | 22298 | /usr/lib | /lib) ;; |
bec39cab | 22299 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
22300 | esac |
22301 | fi | |
22302 | cd .. | |
b4e70030 | 22303 | rm -fr conftest.dir |
c906108c SS |
22304 | fi |
22305 | ||
bec39cab AC |
22306 | # Standard set of common directories for X headers. |
22307 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22308 | ac_x_header_dirs=' | |
22309 | /usr/X11/include | |
22310 | /usr/X11R6/include | |
22311 | /usr/X11R5/include | |
22312 | /usr/X11R4/include | |
22313 | ||
22314 | /usr/include/X11 | |
22315 | /usr/include/X11R6 | |
22316 | /usr/include/X11R5 | |
22317 | /usr/include/X11R4 | |
22318 | ||
22319 | /usr/local/X11/include | |
22320 | /usr/local/X11R6/include | |
22321 | /usr/local/X11R5/include | |
22322 | /usr/local/X11R4/include | |
22323 | ||
22324 | /usr/local/include/X11 | |
22325 | /usr/local/include/X11R6 | |
22326 | /usr/local/include/X11R5 | |
22327 | /usr/local/include/X11R4 | |
22328 | ||
22329 | /usr/X386/include | |
22330 | /usr/x386/include | |
22331 | /usr/XFree86/include/X11 | |
22332 | ||
22333 | /usr/include | |
22334 | /usr/local/include | |
22335 | /usr/unsupported/include | |
22336 | /usr/athena/include | |
22337 | /usr/local/x11r5/include | |
22338 | /usr/lpp/Xamples/include | |
22339 | ||
22340 | /usr/openwin/include | |
22341 | /usr/openwin/share/include' | |
22342 | ||
22343 | if test "$ac_x_includes" = no; then | |
771b4502 | 22344 | # Guess where to find include files, by looking for Xlib.h. |
c906108c | 22345 | # First, try using that file with no special directory specified. |
bec39cab AC |
22346 | cat >conftest.$ac_ext <<_ACEOF |
22347 | /* confdefs.h. */ | |
22348 | _ACEOF | |
22349 | cat confdefs.h >>conftest.$ac_ext | |
22350 | cat >>conftest.$ac_ext <<_ACEOF | |
22351 | /* end confdefs.h. */ | |
771b4502 | 22352 | #include <X11/Xlib.h> |
bec39cab AC |
22353 | _ACEOF |
22354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22356 | ac_status=$? | |
22357 | grep -v '^ *+' conftest.er1 >conftest.err | |
22358 | rm -f conftest.er1 | |
22359 | cat conftest.err >&5 | |
22360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22361 | (exit $ac_status); } >/dev/null; then | |
22362 | if test -s conftest.err; then | |
22363 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22365 | else | |
22366 | ac_cpp_err= | |
22367 | fi | |
22368 | else | |
22369 | ac_cpp_err=yes | |
22370 | fi | |
22371 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
22372 | # We can compile using X headers with no special include directory. |
22373 | ac_x_includes= | |
22374 | else | |
bec39cab AC |
22375 | echo "$as_me: failed program was:" >&5 |
22376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22377 | ||
22378 | for ac_dir in $ac_x_header_dirs; do | |
771b4502 | 22379 | if test -r "$ac_dir/X11/Xlib.h"; then |
bec39cab AC |
22380 | ac_x_includes=$ac_dir |
22381 | break | |
22382 | fi | |
22383 | done | |
c906108c | 22384 | fi |
bec39cab AC |
22385 | rm -f conftest.err conftest.$ac_ext |
22386 | fi # $ac_x_includes = no | |
c906108c | 22387 | |
bec39cab | 22388 | if test "$ac_x_libraries" = no; then |
c906108c | 22389 | # Check for the libraries. |
c906108c SS |
22390 | # See if we find them without any special options. |
22391 | # Don't add to $LIBS permanently. | |
bec39cab | 22392 | ac_save_LIBS=$LIBS |
4e8d927d | 22393 | LIBS="-lXt $LIBS" |
bec39cab AC |
22394 | cat >conftest.$ac_ext <<_ACEOF |
22395 | /* confdefs.h. */ | |
22396 | _ACEOF | |
22397 | cat confdefs.h >>conftest.$ac_ext | |
22398 | cat >>conftest.$ac_ext <<_ACEOF | |
22399 | /* end confdefs.h. */ | |
771b4502 | 22400 | #include <X11/Xlib.h> |
bec39cab AC |
22401 | int |
22402 | main () | |
22403 | { | |
771b4502 | 22404 | XrmInitialize () |
bec39cab AC |
22405 | ; |
22406 | return 0; | |
22407 | } | |
22408 | _ACEOF | |
22409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22411 | (eval $ac_link) 2>conftest.er1 | |
22412 | ac_status=$? | |
22413 | grep -v '^ *+' conftest.er1 >conftest.err | |
22414 | rm -f conftest.er1 | |
22415 | cat conftest.err >&5 | |
22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22417 | (exit $ac_status); } && | |
b4e70030 JB |
22418 | { ac_try='test -z "$ac_c_werror_flag" |
22419 | || test ! -s conftest.err' | |
bec39cab AC |
22420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22421 | (eval $ac_try) 2>&5 | |
22422 | ac_status=$? | |
22423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22424 | (exit $ac_status); }; } && | |
22425 | { ac_try='test -s conftest$ac_exeext' | |
22426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22427 | (eval $ac_try) 2>&5 | |
22428 | ac_status=$? | |
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22430 | (exit $ac_status); }; }; then | |
22431 | LIBS=$ac_save_LIBS | |
c906108c SS |
22432 | # We can link X programs with no special library path. |
22433 | ac_x_libraries= | |
22434 | else | |
bec39cab AC |
22435 | echo "$as_me: failed program was:" >&5 |
22436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22437 | ||
b4e70030 | 22438 | LIBS=$ac_save_LIBS |
bec39cab | 22439 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 22440 | do |
bec39cab | 22441 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 22442 | for ac_extension in a so sl; do |
b4e70030 | 22443 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
22444 | ac_x_libraries=$ac_dir |
22445 | break 2 | |
22446 | fi | |
22447 | done | |
22448 | done | |
22449 | fi | |
bec39cab AC |
22450 | rm -f conftest.err conftest.$ac_objext \ |
22451 | conftest$ac_exeext conftest.$ac_ext | |
22452 | fi # $ac_x_libraries = no | |
c906108c | 22453 | |
bec39cab | 22454 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
22455 | # Didn't find X anywhere. Cache the known absence of X. |
22456 | ac_cv_have_x="have_x=no" | |
22457 | else | |
22458 | # Record where we found X for the cache. | |
22459 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 22460 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
22461 | fi |
22462 | fi | |
bec39cab | 22463 | |
c906108c SS |
22464 | fi |
22465 | eval "$ac_cv_have_x" | |
22466 | fi # $with_x != no | |
22467 | ||
22468 | if test "$have_x" != yes; then | |
b4e70030 JB |
22469 | echo "$as_me:$LINENO: result: $have_x" >&5 |
22470 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
22471 | no_x=yes |
22472 | else | |
22473 | # If each of the values was on the command line, it overrides each guess. | |
22474 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22475 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22476 | # Update the cache value to reflect the command line values. | |
22477 | ac_cv_have_x="have_x=yes \ | |
22478 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
22479 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22480 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
22481 | fi |
22482 | ||
22483 | ||
9cc52bde MK |
22484 | # Check whether we should enable the TUI, but only do so if we really |
22485 | # can. | |
22486 | if test x"$enable_tui" = xyes; then | |
22487 | if test -d $srcdir/tui; then | |
22488 | if test "$ac_cv_search_waddstr" != no; then | |
22489 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
22490 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
22491 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
22492 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
22493 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
22494 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
22495 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
22496 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
22497 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
22498 | else | |
bec39cab AC |
22499 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
22500 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
22501 | fi |
22502 | fi | |
22503 | fi | |
22504 | ||
bec39cab AC |
22505 | # Unlike the sim directory, whether a simulator is linked is controlled by |
22506 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
22507 | # This code just checks for a few cases where we'd like to ignore those |
22508 | # definitions, even when they're present in the '.mt' file. These cases | |
22509 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 22510 | # not part of the source tree. |
7a292a7a | 22511 | # |
b4e70030 | 22512 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 22513 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
22514 | enableval="$enable_sim" |
22515 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
22516 | echo "enableval = ${enableval}"; |
22517 | case "${enableval}" in | |
22518 | yes) ignore_sim=false ;; | |
22519 | no) ignore_sim=true ;; | |
22520 | *) ignore_sim=false ;; | |
22521 | esac | |
22522 | else | |
22523 | ignore_sim=false | |
b4e70030 | 22524 | fi; |
7a292a7a SS |
22525 | |
22526 | if test ! -d "${srcdir}/../sim"; then | |
22527 | ignore_sim=true | |
22528 | fi | |
22529 | ||
22530 | if test "${ignore_sim}" = "true"; then | |
22531 | IGNORE_SIM="SIM=" | |
22532 | IGNORE_SIM_OBS="SIM_OBS=" | |
22533 | else | |
22534 | IGNORE_SIM="" | |
22535 | IGNORE_SIM_OBS="" | |
60ca704f SE |
22536 | |
22537 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 22538 | #define WITH_SIM 1 |
bec39cab | 22539 | _ACEOF |
7a292a7a SS |
22540 | |
22541 | fi | |
22542 | ||
22543 | ||
22544 | ||
c906108c SS |
22545 | |
22546 | ||
22547 | ||
22548 | ||
22549 | ||
22550 | ||
dfcd3bfb | 22551 | |
e56ac5c3 AC |
22552 | |
22553 | ||
b3a90332 AC |
22554 | |
22555 | ||
c35f4ffc | 22556 | # List of host floatformats. |
bec39cab AC |
22557 | |
22558 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 22559 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 22560 | _ACEOF |
c35f4ffc | 22561 | |
bec39cab AC |
22562 | |
22563 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 22564 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
22565 | _ACEOF |
22566 | ||
c35f4ffc | 22567 | |
bec39cab | 22568 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 22569 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 22570 | _ACEOF |
c35f4ffc AC |
22571 | |
22572 | ||
c906108c SS |
22573 | # target_subdir is used by the testsuite to find the target libraries. |
22574 | target_subdir= | |
22575 | if test "${host}" != "${target}"; then | |
22576 | target_subdir="${target_alias}/" | |
22577 | fi | |
22578 | ||
22579 | ||
22580 | frags= | |
771b4502 | 22581 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
22582 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
22583 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
22584 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
22585 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
22586 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
22587 | fi |
22588 | frags="$frags $host_makefile_frag" | |
22589 | else | |
22590 | host_makefile_frag=/dev/null | |
c906108c | 22591 | fi |
c906108c SS |
22592 | |
22593 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
22594 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
22595 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
22596 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
22597 | { (exit 1); exit 1; }; } | |
c906108c SS |
22598 | fi |
22599 | frags="$frags $target_makefile_frag" | |
22600 | ||
22601 | ||
22602 | ||
22603 | ||
22604 | ||
22605 | hostfile=`sed -n ' | |
22606 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
22607 | ' ${host_makefile_frag}` | |
22608 | ||
22609 | targetfile=`sed -n ' | |
2c0fc042 | 22610 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
22611 | ' ${target_makefile_frag}` |
22612 | ||
771b4502 | 22613 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
22614 | # We pick this up from the host configuration file (.mh) because we |
22615 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
22616 | nativefile=`sed -n ' |
22617 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
22618 | ' ${host_makefile_frag}` | |
c906108c SS |
22619 | fi |
22620 | ||
22621 | ||
b00a8037 | 22622 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
22623 | |
22624 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 22625 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 22626 | _ACEOF |
b00a8037 DJ |
22627 | |
22628 | fi | |
22629 | ||
8dcde887 | 22630 | # Enable multi-ice-gdb-server. |
b4e70030 | 22631 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 22632 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
22633 | enableval="$enable_multi_ice" |
22634 | case $enableval in | |
8dcde887 MK |
22635 | yes | no) |
22636 | ;; | |
bec39cab AC |
22637 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
22638 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
22639 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 22640 | esac |
b4e70030 | 22641 | fi; |
4e8d927d | 22642 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
22643 | |
22644 | ||
22645 | subdirs="$subdirs multi-ice" | |
3ace7edb | 22646 | |
a85f51e7 DJ |
22647 | fi |
22648 | ||
a13e2c95 UW |
22649 | # We only build gdbserver automatically in a native configuration. |
22650 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
22651 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
22652 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 22653 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
22654 | echo "$as_me:$LINENO: result: yes" >&5 |
22655 | echo "${ECHO_T}yes" >&6 | |
22656 | ||
22657 | ||
22658 | subdirs="$subdirs gdbserver" | |
3ace7edb | 22659 | |
8dcde887 | 22660 | else |
b4e70030 JB |
22661 | echo "$as_me:$LINENO: result: no" >&5 |
22662 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
22663 | fi |
22664 | fi | |
22665 | ||
2c0fc042 AC |
22666 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
22667 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
22668 | # to an empty version. | |
c906108c SS |
22669 | |
22670 | files= | |
22671 | links= | |
5a2402b8 | 22672 | |
c906108c | 22673 | rm -f xm.h |
5a2402b8 | 22674 | xm_h="" |
c906108c | 22675 | if test "${hostfile}" != ""; then |
5a2402b8 | 22676 | xm_h=xm.h |
0f475e27 AC |
22677 | case "${hostfile}" in |
22678 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
22679 | * ) GDB_XM_FILE="${hostfile}" | |
22680 | esac | |
5a2402b8 AC |
22681 | files="${files} ${GDB_XM_FILE}" |
22682 | links="${links} xm.h" | |
60ca704f SE |
22683 | |
22684 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22685 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 22686 | _ACEOF |
5a2402b8 | 22687 | |
c906108c | 22688 | fi |
5a2402b8 AC |
22689 | |
22690 | ||
c906108c | 22691 | rm -f tm.h |
5a2402b8 | 22692 | tm_h="" |
c906108c | 22693 | if test "${targetfile}" != ""; then |
5a2402b8 | 22694 | tm_h=tm.h |
0f475e27 | 22695 | case "${targetfile}" in |
b8c4aece | 22696 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
22697 | * ) GDB_TM_FILE="${targetfile}" |
22698 | esac | |
5a2402b8 AC |
22699 | files="${files} ${GDB_TM_FILE}" |
22700 | links="${links} tm.h" | |
60ca704f SE |
22701 | |
22702 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22703 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 22704 | _ACEOF |
5a2402b8 | 22705 | |
c906108c | 22706 | fi |
5a2402b8 AC |
22707 | |
22708 | ||
c906108c | 22709 | rm -f nm.h |
5a2402b8 | 22710 | nm_h="" |
c906108c | 22711 | if test "${nativefile}" != ""; then |
5a2402b8 | 22712 | nm_h=nm.h |
0f475e27 AC |
22713 | case "${nativefile}" in |
22714 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
22715 | * ) GDB_NM_FILE="${nativefile}" | |
22716 | esac | |
5a2402b8 AC |
22717 | files="${files} ${GDB_NM_FILE}" |
22718 | links="${links} nm.h" | |
60ca704f SE |
22719 | |
22720 | cat >>confdefs.h <<_ACEOF | |
b78960be | 22721 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 22722 | _ACEOF |
5a2402b8 | 22723 | |
c906108c | 22724 | fi |
5a2402b8 AC |
22725 | |
22726 | ||
bec39cab AC |
22727 | ac_sources="$files" |
22728 | ac_dests="$links" | |
22729 | while test -n "$ac_sources"; do | |
22730 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
22731 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
22732 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
22733 | done | |
b4e70030 | 22734 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
22735 | |
22736 | ||
c906108c SS |
22737 | |
22738 | ||
c906108c | 22739 | |
c906108c | 22740 | |
bec39cab AC |
22741 | cat >>confdefs.h <<\_ACEOF |
22742 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
22743 | _ACEOF | |
c906108c | 22744 | |
234b45d4 | 22745 | |
234b45d4 KB |
22746 | |
22747 | ||
22748 | ||
b4e70030 | 22749 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 22750 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
22751 | withval="$with_libiconv_prefix" |
22752 | ||
234b45d4 KB |
22753 | for dir in `echo "$withval" | tr : ' '`; do |
22754 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
22755 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
22756 | done | |
234b45d4 | 22757 | |
b4e70030 | 22758 | fi; |
234b45d4 | 22759 | |
b4e70030 JB |
22760 | echo "$as_me:$LINENO: checking for iconv" >&5 |
22761 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
22762 | if test "${am_cv_func_iconv+set}" = set; then |
22763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 22764 | else |
bec39cab | 22765 | |
234b45d4 KB |
22766 | am_cv_func_iconv="no, consider installing GNU libiconv" |
22767 | am_cv_lib_iconv=no | |
bec39cab AC |
22768 | cat >conftest.$ac_ext <<_ACEOF |
22769 | /* confdefs.h. */ | |
22770 | _ACEOF | |
22771 | cat confdefs.h >>conftest.$ac_ext | |
22772 | cat >>conftest.$ac_ext <<_ACEOF | |
22773 | /* end confdefs.h. */ | |
234b45d4 KB |
22774 | #include <stdlib.h> |
22775 | #include <iconv.h> | |
bec39cab AC |
22776 | int |
22777 | main () | |
22778 | { | |
234b45d4 KB |
22779 | iconv_t cd = iconv_open("",""); |
22780 | iconv(cd,NULL,NULL,NULL,NULL); | |
22781 | iconv_close(cd); | |
bec39cab AC |
22782 | ; |
22783 | return 0; | |
22784 | } | |
22785 | _ACEOF | |
22786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22788 | (eval $ac_link) 2>conftest.er1 | |
22789 | ac_status=$? | |
22790 | grep -v '^ *+' conftest.er1 >conftest.err | |
22791 | rm -f conftest.er1 | |
22792 | cat conftest.err >&5 | |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22794 | (exit $ac_status); } && | |
b4e70030 JB |
22795 | { ac_try='test -z "$ac_c_werror_flag" |
22796 | || test ! -s conftest.err' | |
bec39cab AC |
22797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22798 | (eval $ac_try) 2>&5 | |
22799 | ac_status=$? | |
22800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22801 | (exit $ac_status); }; } && | |
22802 | { ac_try='test -s conftest$ac_exeext' | |
22803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22804 | (eval $ac_try) 2>&5 | |
22805 | ac_status=$? | |
22806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22807 | (exit $ac_status); }; }; then | |
234b45d4 KB |
22808 | am_cv_func_iconv=yes |
22809 | else | |
bec39cab AC |
22810 | echo "$as_me: failed program was:" >&5 |
22811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22812 | ||
234b45d4 | 22813 | fi |
bec39cab AC |
22814 | rm -f conftest.err conftest.$ac_objext \ |
22815 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
22816 | if test "$am_cv_func_iconv" != yes; then |
22817 | am_save_LIBS="$LIBS" | |
22818 | LIBS="$LIBS -liconv" | |
bec39cab AC |
22819 | cat >conftest.$ac_ext <<_ACEOF |
22820 | /* confdefs.h. */ | |
22821 | _ACEOF | |
22822 | cat confdefs.h >>conftest.$ac_ext | |
22823 | cat >>conftest.$ac_ext <<_ACEOF | |
22824 | /* end confdefs.h. */ | |
234b45d4 KB |
22825 | #include <stdlib.h> |
22826 | #include <iconv.h> | |
bec39cab AC |
22827 | int |
22828 | main () | |
22829 | { | |
234b45d4 KB |
22830 | iconv_t cd = iconv_open("",""); |
22831 | iconv(cd,NULL,NULL,NULL,NULL); | |
22832 | iconv_close(cd); | |
bec39cab AC |
22833 | ; |
22834 | return 0; | |
22835 | } | |
22836 | _ACEOF | |
22837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22839 | (eval $ac_link) 2>conftest.er1 | |
22840 | ac_status=$? | |
22841 | grep -v '^ *+' conftest.er1 >conftest.err | |
22842 | rm -f conftest.er1 | |
22843 | cat conftest.err >&5 | |
22844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22845 | (exit $ac_status); } && | |
b4e70030 JB |
22846 | { ac_try='test -z "$ac_c_werror_flag" |
22847 | || test ! -s conftest.err' | |
bec39cab AC |
22848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22849 | (eval $ac_try) 2>&5 | |
22850 | ac_status=$? | |
22851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22852 | (exit $ac_status); }; } && | |
22853 | { ac_try='test -s conftest$ac_exeext' | |
22854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22855 | (eval $ac_try) 2>&5 | |
22856 | ac_status=$? | |
22857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22858 | (exit $ac_status); }; }; then | |
234b45d4 KB |
22859 | am_cv_lib_iconv=yes |
22860 | am_cv_func_iconv=yes | |
22861 | else | |
bec39cab AC |
22862 | echo "$as_me: failed program was:" >&5 |
22863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22864 | ||
234b45d4 | 22865 | fi |
bec39cab AC |
22866 | rm -f conftest.err conftest.$ac_objext \ |
22867 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
22868 | LIBS="$am_save_LIBS" |
22869 | fi | |
bec39cab AC |
22870 | |
22871 | fi | |
b4e70030 JB |
22872 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
22873 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
22874 | if test "$am_cv_func_iconv" = yes; then |
22875 | ||
22876 | cat >>confdefs.h <<\_ACEOF | |
22877 | #define HAVE_ICONV 1 | |
22878 | _ACEOF | |
22879 | ||
b4e70030 JB |
22880 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
22881 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
22882 | if test "${am_cv_proto_iconv+set}" = set; then |
22883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22884 | else | |
22885 | ||
22886 | cat >conftest.$ac_ext <<_ACEOF | |
22887 | /* confdefs.h. */ | |
22888 | _ACEOF | |
22889 | cat confdefs.h >>conftest.$ac_ext | |
22890 | cat >>conftest.$ac_ext <<_ACEOF | |
22891 | /* end confdefs.h. */ | |
22892 | ||
22893 | #include <stdlib.h> | |
22894 | #include <iconv.h> | |
22895 | extern | |
22896 | #ifdef __cplusplus | |
22897 | "C" | |
22898 | #endif | |
22899 | #if defined(__STDC__) || defined(__cplusplus) | |
22900 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
22901 | #else | |
22902 | size_t iconv(); | |
22903 | #endif | |
22904 | ||
22905 | int | |
22906 | main () | |
22907 | { | |
22908 | ||
22909 | ; | |
22910 | return 0; | |
22911 | } | |
22912 | _ACEOF | |
22913 | rm -f conftest.$ac_objext | |
22914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22915 | (eval $ac_compile) 2>conftest.er1 | |
22916 | ac_status=$? | |
22917 | grep -v '^ *+' conftest.er1 >conftest.err | |
22918 | rm -f conftest.er1 | |
22919 | cat conftest.err >&5 | |
22920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22921 | (exit $ac_status); } && | |
b4e70030 JB |
22922 | { ac_try='test -z "$ac_c_werror_flag" |
22923 | || test ! -s conftest.err' | |
bec39cab AC |
22924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22925 | (eval $ac_try) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); }; } && | |
22929 | { ac_try='test -s conftest.$ac_objext' | |
22930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22931 | (eval $ac_try) 2>&5 | |
22932 | ac_status=$? | |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22934 | (exit $ac_status); }; }; then | |
22935 | am_cv_proto_iconv_arg1="" | |
22936 | else | |
22937 | echo "$as_me: failed program was:" >&5 | |
22938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22939 | ||
b4e70030 | 22940 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
22941 | fi |
22942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22943 | 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);" | |
22944 | fi | |
22945 | ||
22946 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 22947 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
22948 | }$am_cv_proto_iconv" >&5 |
22949 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 22950 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
22951 | |
22952 | cat >>confdefs.h <<_ACEOF | |
22953 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
22954 | _ACEOF | |
22955 | ||
22956 | fi | |
22957 | LIBICONV= | |
22958 | if test "$am_cv_lib_iconv" = yes; then | |
22959 | LIBICONV="-liconv" | |
22960 | fi | |
22961 | ||
22962 | ||
22963 | ||
b4e70030 JB |
22964 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
22965 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
22966 | cat >confcache <<\_ACEOF |
22967 | # This file is a shell script that caches the results of configure | |
22968 | # tests run on this system so they can be shared between configure | |
22969 | # scripts and configure runs, see configure's option --config-cache. | |
22970 | # It is not useful on other systems. If it contains results you don't | |
22971 | # want to keep, you may remove or edit it. | |
22972 | # | |
22973 | # config.status only pays attention to the cache file if you give it | |
22974 | # the --recheck option to rerun configure. | |
22975 | # | |
22976 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22977 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22978 | # following values. | |
22979 | ||
22980 | _ACEOF | |
22981 | ||
22982 | # The following way of writing the cache mishandles newlines in values, | |
22983 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 22984 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
22985 | # Ultrix sh set writes to stderr and can't be redirected directly, |
22986 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 22987 | { |
bec39cab | 22988 | (set) 2>&1 | |
b4e70030 JB |
22989 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
22990 | *ac_space=\ *) | |
bec39cab AC |
22991 | # `set' does not quote correctly, so add quotes (double-quote |
22992 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22993 | sed -n \ | |
22994 | "s/'/'\\\\''/g; | |
22995 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 22996 | ;; |
bec39cab AC |
22997 | *) |
22998 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
22999 | sed -n \ |
23000 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 23001 | ;; |
b4e70030 JB |
23002 | esac; |
23003 | } | | |
bec39cab AC |
23004 | sed ' |
23005 | t clear | |
b4e70030 | 23006 | : clear |
bec39cab AC |
23007 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23008 | t end | |
b4e70030 JB |
23009 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23010 | : end' >>confcache | |
bec39cab AC |
23011 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
23012 | if test -w $cache_file; then | |
b4e70030 | 23013 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
23014 | cat confcache >$cache_file |
23015 | else | |
b4e70030 | 23016 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
23017 | fi |
23018 | fi | |
23019 | rm -f confcache | |
23020 | ||
23021 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23022 | # Let make expand exec_prefix. | |
23023 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23024 | ||
b4e70030 JB |
23025 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23026 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23027 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23028 | # (actually we leave an empty line to preserve line numbers). | |
23029 | if test "x$srcdir" = x.; then | |
23030 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23031 | s/:*\$(srcdir):*/:/; | |
23032 | s/:*\${srcdir}:*/:/; | |
23033 | s/:*@srcdir@:*/:/; | |
23034 | s/^\([^=]*=[ ]*\):*/\1/; | |
23035 | s/:*$//; | |
23036 | s/^[^=]*=[ ]*$//; | |
23037 | }' | |
23038 | fi | |
23039 | ||
bec39cab AC |
23040 | DEFS=-DHAVE_CONFIG_H |
23041 | ||
23042 | ac_libobjs= | |
23043 | ac_ltlibobjs= | |
23044 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23045 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
23046 | ac_i=`echo "$ac_i" | |
23047 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23048 | # 2. Add them. | |
23049 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23050 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
23051 | done |
23052 | LIBOBJS=$ac_libobjs | |
23053 | ||
23054 | LTLIBOBJS=$ac_ltlibobjs | |
23055 | ||
23056 | ||
85981d60 AC |
23057 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23058 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23059 | Usually this means the macro was only invoked conditionally." >&5 | |
23060 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23061 | Usually this means the macro was only invoked conditionally." >&2;} | |
23062 | { (exit 1); exit 1; }; } | |
23063 | fi | |
bec39cab AC |
23064 | |
23065 | : ${CONFIG_STATUS=./config.status} | |
23066 | ac_clean_files_save=$ac_clean_files | |
23067 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23068 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23069 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23070 | cat >$CONFIG_STATUS <<_ACEOF | |
23071 | #! $SHELL | |
23072 | # Generated by $as_me. | |
23073 | # Run this file to recreate the current configuration. | |
23074 | # Compiler output produced by configure, useful for debugging | |
23075 | # configure, is in config.log if it exists. | |
23076 | ||
23077 | debug=false | |
23078 | ac_cs_recheck=false | |
23079 | ac_cs_silent=false | |
23080 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23081 | _ACEOF | |
23082 | ||
23083 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23084 | ## --------------------- ## | |
23085 | ## M4sh Initialization. ## | |
23086 | ## --------------------- ## | |
23087 | ||
23088 | # Be Bourne compatible | |
23089 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23090 | emulate sh | |
23091 | NULLCMD=: | |
23092 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23093 | # is contrary to our usage. Disable this feature. | |
23094 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
23095 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23096 | set -o posix | |
bec39cab AC |
23097 | fi |
23098 | DUALCASE=1; export DUALCASE # for MKS sh | |
23099 | ||
23100 | # Support unset when possible. | |
23101 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23102 | as_unset=unset | |
23103 | else | |
23104 | as_unset=false | |
23105 | fi | |
23106 | ||
23107 | ||
23108 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 23109 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
23110 | PS1='$ ' |
23111 | PS2='> ' | |
23112 | PS4='+ ' | |
23113 | ||
23114 | # NLS nuisances. | |
23115 | for as_var in \ | |
23116 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23117 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23118 | LC_TELEPHONE LC_TIME | |
23119 | do | |
23120 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23121 | eval $as_var=C; export $as_var | |
23122 | else | |
b4e70030 | 23123 | $as_unset $as_var |
bec39cab AC |
23124 | fi |
23125 | done | |
23126 | ||
23127 | # Required to use basename. | |
b4e70030 | 23128 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23129 | as_expr=expr |
23130 | else | |
23131 | as_expr=false | |
23132 | fi | |
23133 | ||
b4e70030 | 23134 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
23135 | as_basename=basename |
23136 | else | |
23137 | as_basename=false | |
23138 | fi | |
23139 | ||
23140 | ||
23141 | # Name of the executable. | |
b4e70030 | 23142 | as_me=`$as_basename "$0" || |
bec39cab AC |
23143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23144 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23145 | X"$0" : 'X\(/\)$' \| \ |
23146 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23147 | echo X/"$0" | |
b4e70030 JB |
23148 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
23149 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23150 | /^X\/\(\/\).*/{ s//\1/; q; } | |
23151 | s/.*/./; q'` | |
bec39cab | 23152 | |
b4e70030 JB |
23153 | |
23154 | # PATH needs CR, and LINENO needs CR and PATH. | |
23155 | # Avoid depending upon Character Ranges. | |
23156 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23157 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23158 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23159 | as_cr_digits='0123456789' | |
23160 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23161 | ||
23162 | # The user is always right. | |
23163 | if test "${PATH_SEPARATOR+set}" != set; then | |
23164 | echo "#! /bin/sh" >conf$$.sh | |
23165 | echo "exit 0" >>conf$$.sh | |
23166 | chmod +x conf$$.sh | |
23167 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23168 | PATH_SEPARATOR=';' | |
23169 | else | |
23170 | PATH_SEPARATOR=: | |
23171 | fi | |
23172 | rm -f conf$$.sh | |
23173 | fi | |
bec39cab AC |
23174 | |
23175 | ||
b4e70030 JB |
23176 | as_lineno_1=$LINENO |
23177 | as_lineno_2=$LINENO | |
23178 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23179 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
23180 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23181 | # Find who we are. Look in the path if we contain no path at all | |
23182 | # relative or not. | |
23183 | case $0 in | |
23184 | *[\\/]* ) as_myself=$0 ;; | |
23185 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23186 | for as_dir in $PATH | |
23187 | do | |
23188 | IFS=$as_save_IFS | |
23189 | test -z "$as_dir" && as_dir=. | |
23190 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23191 | done | |
bec39cab | 23192 | |
b4e70030 JB |
23193 | ;; |
23194 | esac | |
23195 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23196 | # in which case we are not to be found in the path. | |
23197 | if test "x$as_myself" = x; then | |
23198 | as_myself=$0 | |
23199 | fi | |
23200 | if test ! -f "$as_myself"; then | |
23201 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
23202 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
23203 | { (exit 1); exit 1; }; } | |
23204 | fi | |
23205 | case $CONFIG_SHELL in | |
23206 | '') | |
23207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23208 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
23209 | do | |
23210 | IFS=$as_save_IFS | |
23211 | test -z "$as_dir" && as_dir=. | |
23212 | for as_base in sh bash ksh sh5; do | |
23213 | case $as_dir in | |
23214 | /*) | |
23215 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
23216 | as_lineno_1=$LINENO |
23217 | as_lineno_2=$LINENO | |
b4e70030 | 23218 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 23219 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
23220 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
23221 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
23222 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
23223 | CONFIG_SHELL=$as_dir/$as_base | |
23224 | export CONFIG_SHELL | |
23225 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
23226 | fi;; | |
23227 | esac | |
23228 | done | |
23229 | done | |
23230 | ;; | |
23231 | esac | |
bec39cab AC |
23232 | |
23233 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23234 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
23235 | # line-number line before each line; the second 'sed' does the real |
23236 | # work. The second script uses 'N' to pair each line-number line | |
23237 | # with the numbered line, and appends trailing '-' during | |
23238 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 23239 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
23240 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
23241 | sed '=' <$as_myself | | |
bec39cab AC |
23242 | sed ' |
23243 | N | |
b4e70030 JB |
23244 | s,$,-, |
23245 | : loop | |
23246 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 23247 | t loop |
b4e70030 JB |
23248 | s,-$,, |
23249 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 23250 | ' >$as_me.lineno && |
b4e70030 JB |
23251 | chmod +x $as_me.lineno || |
23252 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
23253 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
23254 | { (exit 1); exit 1; }; } |
23255 | ||
23256 | # Don't try to exec as it changes $[0], causing all sort of problems | |
23257 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
23258 | # original and so on. Autoconf is especially sensible to this). |
23259 | . ./$as_me.lineno | |
bec39cab AC |
23260 | # Exit status is that of the last command. |
23261 | exit | |
23262 | } | |
23263 | ||
23264 | ||
b4e70030 JB |
23265 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
23266 | *c*,-n*) ECHO_N= ECHO_C=' | |
23267 | ' ECHO_T=' ' ;; | |
23268 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
23269 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
23270 | esac |
23271 | ||
b4e70030 | 23272 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23273 | as_expr=expr |
23274 | else | |
23275 | as_expr=false | |
23276 | fi | |
23277 | ||
23278 | rm -f conf$$ conf$$.exe conf$$.file | |
23279 | echo >conf$$.file | |
23280 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
23281 | # We could just check for DJGPP; but this test a) works b) is more generic |
23282 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
23283 | if test -f conf$$.exe; then | |
23284 | # Don't use ln at all; we don't have any links | |
bec39cab | 23285 | as_ln_s='cp -p' |
b4e70030 JB |
23286 | else |
23287 | as_ln_s='ln -s' | |
23288 | fi | |
bec39cab AC |
23289 | elif ln conf$$.file conf$$ 2>/dev/null; then |
23290 | as_ln_s=ln | |
23291 | else | |
23292 | as_ln_s='cp -p' | |
23293 | fi | |
b4e70030 | 23294 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
23295 | |
23296 | if mkdir -p . 2>/dev/null; then | |
23297 | as_mkdir_p=: | |
23298 | else | |
23299 | test -d ./-p && rmdir ./-p | |
23300 | as_mkdir_p=false | |
23301 | fi | |
23302 | ||
b4e70030 | 23303 | as_executable_p="test -f" |
bec39cab AC |
23304 | |
23305 | # Sed expression to map a string onto a valid CPP name. | |
23306 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
23307 | ||
23308 | # Sed expression to map a string onto a valid variable name. | |
23309 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
23310 | ||
23311 | ||
b4e70030 JB |
23312 | # IFS |
23313 | # We need space, tab and new line, in precisely that order. | |
23314 | as_nl=' | |
23315 | ' | |
23316 | IFS=" $as_nl" | |
23317 | ||
23318 | # CDPATH. | |
23319 | $as_unset CDPATH | |
23320 | ||
bec39cab AC |
23321 | exec 6>&1 |
23322 | ||
b4e70030 | 23323 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 23324 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
23325 | # values after options handling. Logging --version etc. is OK. |
23326 | exec 5>>config.log | |
23327 | { | |
23328 | echo | |
23329 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
23330 | ## Running $as_me. ## | |
23331 | _ASBOX | |
23332 | } >&5 | |
23333 | cat >&5 <<_CSEOF | |
23334 | ||
bec39cab | 23335 | This file was extended by $as_me, which was |
b4e70030 | 23336 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
23337 | |
23338 | CONFIG_FILES = $CONFIG_FILES | |
23339 | CONFIG_HEADERS = $CONFIG_HEADERS | |
23340 | CONFIG_LINKS = $CONFIG_LINKS | |
23341 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
23342 | $ $0 $@ | |
23343 | ||
b4e70030 JB |
23344 | _CSEOF |
23345 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
23346 | echo >&5 | |
bec39cab AC |
23347 | _ACEOF |
23348 | ||
23349 | # Files that config.status was made for. | |
b4e70030 JB |
23350 | if test -n "$ac_config_files"; then |
23351 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
23352 | fi | |
234b45d4 | 23353 | |
b4e70030 JB |
23354 | if test -n "$ac_config_headers"; then |
23355 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
23356 | fi | |
23357 | ||
23358 | if test -n "$ac_config_links"; then | |
23359 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
23360 | fi | |
23361 | ||
23362 | if test -n "$ac_config_commands"; then | |
23363 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
23364 | fi | |
234b45d4 | 23365 | |
bec39cab | 23366 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 23367 | |
bec39cab AC |
23368 | ac_cs_usage="\ |
23369 | \`$as_me' instantiates files from templates according to the | |
23370 | current configuration. | |
234b45d4 | 23371 | |
bec39cab | 23372 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 23373 | |
bec39cab AC |
23374 | -h, --help print this help, then exit |
23375 | -V, --version print version number, then exit | |
23376 | -q, --quiet do not print progress messages | |
23377 | -d, --debug don't remove temporary files | |
23378 | --recheck update $as_me by reconfiguring in the same conditions | |
23379 | --file=FILE[:TEMPLATE] | |
23380 | instantiate the configuration file FILE | |
23381 | --header=FILE[:TEMPLATE] | |
23382 | instantiate the configuration header FILE | |
234b45d4 | 23383 | |
bec39cab AC |
23384 | Configuration files: |
23385 | $config_files | |
234b45d4 | 23386 | |
bec39cab AC |
23387 | Configuration headers: |
23388 | $config_headers | |
234b45d4 | 23389 | |
bec39cab AC |
23390 | Configuration links: |
23391 | $config_links | |
234b45d4 | 23392 | |
bec39cab AC |
23393 | Configuration commands: |
23394 | $config_commands | |
23395 | ||
23396 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 23397 | _ACEOF |
b4e70030 | 23398 | |
bec39cab AC |
23399 | cat >>$CONFIG_STATUS <<_ACEOF |
23400 | ac_cs_version="\\ | |
23401 | config.status | |
b4e70030 | 23402 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
23403 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
23404 | ||
b4e70030 | 23405 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
23406 | This config.status script is free software; the Free Software Foundation |
23407 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
23408 | srcdir=$srcdir |
23409 | INSTALL="$INSTALL" | |
bec39cab AC |
23410 | _ACEOF |
23411 | ||
23412 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23413 | # If no file are specified by the user, then we need to provide default | |
23414 | # value. By we need to know if files were specified by the user. | |
23415 | ac_need_defaults=: | |
23416 | while test $# != 0 | |
23417 | do | |
23418 | case $1 in | |
23419 | --*=*) | |
b4e70030 JB |
23420 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
23421 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 23422 | ac_shift=: |
c906108c | 23423 | ;; |
b4e70030 | 23424 | -*) |
bec39cab AC |
23425 | ac_option=$1 |
23426 | ac_optarg=$2 | |
23427 | ac_shift=shift | |
c906108c | 23428 | ;; |
b4e70030 JB |
23429 | *) # This is not an option, so the user has probably given explicit |
23430 | # arguments. | |
23431 | ac_option=$1 | |
23432 | ac_need_defaults=false;; | |
bec39cab | 23433 | esac |
c906108c | 23434 | |
bec39cab AC |
23435 | case $ac_option in |
23436 | # Handling of the options. | |
b4e70030 JB |
23437 | _ACEOF |
23438 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
23439 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
23440 | ac_cs_recheck=: ;; | |
b4e70030 JB |
23441 | --version | --vers* | -V ) |
23442 | echo "$ac_cs_version"; exit 0 ;; | |
23443 | --he | --h) | |
23444 | # Conflict between --help and --header | |
23445 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
23446 | Try \`$0 --help' for more information." >&5 | |
23447 | echo "$as_me: error: ambiguous option: $1 | |
23448 | Try \`$0 --help' for more information." >&2;} | |
23449 | { (exit 1); exit 1; }; };; | |
23450 | --help | --hel | -h ) | |
23451 | echo "$ac_cs_usage"; exit 0 ;; | |
23452 | --debug | --d* | -d ) | |
bec39cab AC |
23453 | debug=: ;; |
23454 | --file | --fil | --fi | --f ) | |
23455 | $ac_shift | |
23456 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
23457 | ac_need_defaults=false;; | |
23458 | --header | --heade | --head | --hea ) | |
23459 | $ac_shift | |
23460 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
23461 | ac_need_defaults=false;; | |
23462 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
23463 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
23464 | ac_cs_silent=: ;; | |
c906108c | 23465 | |
bec39cab | 23466 | # This is an error. |
b4e70030 JB |
23467 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
23468 | Try \`$0 --help' for more information." >&5 | |
23469 | echo "$as_me: error: unrecognized option: $1 | |
23470 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 23471 | { (exit 1); exit 1; }; } ;; |
c906108c | 23472 | |
b4e70030 | 23473 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 23474 | |
bec39cab AC |
23475 | esac |
23476 | shift | |
23477 | done | |
c906108c | 23478 | |
bec39cab | 23479 | ac_configure_extra_args= |
c906108c | 23480 | |
bec39cab AC |
23481 | if $ac_cs_silent; then |
23482 | exec 6>/dev/null | |
23483 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
23484 | fi | |
c906108c | 23485 | |
bec39cab AC |
23486 | _ACEOF |
23487 | cat >>$CONFIG_STATUS <<_ACEOF | |
23488 | if \$ac_cs_recheck; then | |
b4e70030 JB |
23489 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
23490 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
23491 | fi |
23492 | ||
23493 | _ACEOF | |
23494 | ||
23495 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 23496 | # |
b4e70030 | 23497 | # INIT-COMMANDS section. |
c906108c | 23498 | # |
c906108c | 23499 | |
b4e70030 | 23500 | |
4e8d927d DJ |
23501 | GCC="$GCC" |
23502 | CC="$CC" | |
23503 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
23504 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
23505 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
23506 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
23507 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
23508 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
23509 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
23510 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
23511 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
23512 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
23513 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
23514 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
23515 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
23516 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
23517 | ||
bec39cab AC |
23518 | |
23519 | gdb_host_cpu=$gdb_host_cpu | |
23520 | gdb_target_cpu=$gdb_target_cpu | |
23521 | nativefile=$nativefile | |
23522 | ||
23523 | ||
23524 | _ACEOF | |
23525 | ||
4e8d927d | 23526 | |
b4e70030 JB |
23527 | |
23528 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 23529 | for ac_config_target in $ac_config_targets |
c906108c | 23530 | do |
b4e70030 JB |
23531 | case "$ac_config_target" in |
23532 | # Handling of arguments. | |
23533 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
23534 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
23535 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
23536 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
23537 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
23538 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
23539 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
23540 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
23541 | { (exit 1); exit 1; }; };; | |
c906108c SS |
23542 | esac |
23543 | done | |
23544 | ||
bec39cab AC |
23545 | # If the user did not use the arguments to specify the items to instantiate, |
23546 | # then the envvar interface is used. Set only those that are not. | |
23547 | # We use the long form for the default assignment because of an extremely | |
23548 | # bizarre bug on SunOS 4.1.3. | |
23549 | if $ac_need_defaults; then | |
23550 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
23551 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
23552 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
23553 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
23554 | fi | |
23555 | ||
b4e70030 JB |
23556 | # Have a temporary directory for convenience. Make it in the build tree |
23557 | # simply because there is no reason to put it here, and in addition, | |
23558 | # creating and moving files from /tmp can sometimes cause problems. | |
23559 | # Create a temporary directory, and hook for its removal unless debugging. | |
23560 | $debug || | |
23561 | { | |
23562 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
23563 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
23564 | } | |
4e8d927d | 23565 | |
b4e70030 | 23566 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 23567 | |
b4e70030 JB |
23568 | { |
23569 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
23570 | test -n "$tmp" && test -d "$tmp" | |
23571 | } || | |
23572 | { | |
23573 | tmp=./confstat$$-$RANDOM | |
23574 | (umask 077 && mkdir $tmp) | |
23575 | } || | |
23576 | { | |
23577 | echo "$me: cannot create a temporary directory in ." >&2 | |
23578 | { (exit 1); exit 1; } | |
23579 | } | |
4e8d927d | 23580 | |
b4e70030 | 23581 | _ACEOF |
4e8d927d | 23582 | |
b4e70030 | 23583 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 23584 | |
b4e70030 JB |
23585 | # |
23586 | # CONFIG_FILES section. | |
23587 | # | |
4e8d927d | 23588 | |
b4e70030 JB |
23589 | # No need to generate the scripts if there are no CONFIG_FILES. |
23590 | # This happens for instance when ./config.status config.h | |
23591 | if test -n "\$CONFIG_FILES"; then | |
23592 | # Protect against being on the right side of a sed subst in config.status. | |
23593 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
23594 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
23595 | s,@SHELL@,$SHELL,;t t | |
23596 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
23597 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
23598 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
23599 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
23600 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
23601 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
23602 | s,@exec_prefix@,$exec_prefix,;t t | |
23603 | s,@prefix@,$prefix,;t t | |
23604 | s,@program_transform_name@,$program_transform_name,;t t | |
23605 | s,@bindir@,$bindir,;t t | |
23606 | s,@sbindir@,$sbindir,;t t | |
23607 | s,@libexecdir@,$libexecdir,;t t | |
23608 | s,@datadir@,$datadir,;t t | |
23609 | s,@sysconfdir@,$sysconfdir,;t t | |
23610 | s,@sharedstatedir@,$sharedstatedir,;t t | |
23611 | s,@localstatedir@,$localstatedir,;t t | |
23612 | s,@libdir@,$libdir,;t t | |
23613 | s,@includedir@,$includedir,;t t | |
23614 | s,@oldincludedir@,$oldincludedir,;t t | |
23615 | s,@infodir@,$infodir,;t t | |
23616 | s,@mandir@,$mandir,;t t | |
23617 | s,@build_alias@,$build_alias,;t t | |
23618 | s,@host_alias@,$host_alias,;t t | |
23619 | s,@target_alias@,$target_alias,;t t | |
23620 | s,@DEFS@,$DEFS,;t t | |
23621 | s,@ECHO_C@,$ECHO_C,;t t | |
23622 | s,@ECHO_N@,$ECHO_N,;t t | |
23623 | s,@ECHO_T@,$ECHO_T,;t t | |
23624 | s,@LIBS@,$LIBS,;t t | |
23625 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
23626 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
23627 | s,@MAINT@,$MAINT,;t t | |
23628 | s,@CC@,$CC,;t t | |
23629 | s,@CFLAGS@,$CFLAGS,;t t | |
23630 | s,@LDFLAGS@,$LDFLAGS,;t t | |
23631 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
23632 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
23633 | s,@EXEEXT@,$EXEEXT,;t t | |
23634 | s,@OBJEXT@,$OBJEXT,;t t | |
23635 | s,@CPP@,$CPP,;t t | |
23636 | s,@EGREP@,$EGREP,;t t | |
23637 | s,@build@,$build,;t t | |
23638 | s,@build_cpu@,$build_cpu,;t t | |
23639 | s,@build_vendor@,$build_vendor,;t t | |
23640 | s,@build_os@,$build_os,;t t | |
23641 | s,@host@,$host,;t t | |
23642 | s,@host_cpu@,$host_cpu,;t t | |
23643 | s,@host_vendor@,$host_vendor,;t t | |
23644 | s,@host_os@,$host_os,;t t | |
23645 | s,@target@,$target,;t t | |
23646 | s,@target_cpu@,$target_cpu,;t t | |
23647 | s,@target_vendor@,$target_vendor,;t t | |
23648 | s,@target_os@,$target_os,;t t | |
b4e70030 | 23649 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
23650 | s,@LIBINTL@,$LIBINTL,;t t |
23651 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
23652 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 23653 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
23654 | s,@GMSGFMT@,$GMSGFMT,;t t |
23655 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 23656 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 23657 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 23658 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
23659 | s,@GENCAT@,$GENCAT,;t t |
23660 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
23661 | s,@localedir@,$localedir,;t t |
23662 | s,@PACKAGE@,$PACKAGE,;t t | |
23663 | s,@subdirs@,$subdirs,;t t | |
23664 | s,@AWK@,$AWK,;t t | |
23665 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
23666 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
23667 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
23668 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
23669 | s,@RANLIB@,$RANLIB,;t t |
23670 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
23671 | s,@YACC@,$YACC,;t t |
23672 | s,@AR@,$AR,;t t | |
23673 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
23674 | s,@DLLTOOL@,$DLLTOOL,;t t | |
23675 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
23676 | s,@WINDRES@,$WINDRES,;t t | |
23677 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
23678 | s,@MIG@,$MIG,;t t | |
23679 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
3841debe DJ |
23680 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
23681 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
23682 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 23683 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
23684 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
23685 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
23686 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
23687 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
23688 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
23689 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
23690 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
23691 | s,@LIBGUI@,$LIBGUI,;t t | |
23692 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
23693 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
23694 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
23695 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
23696 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
23697 | s,@TCL_CC@,$TCL_CC,;t t | |
23698 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
23699 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
23700 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
23701 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
23702 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
23703 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
23704 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
23705 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
23706 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
23707 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
23708 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
23709 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
23710 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
23711 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
23712 | s,@TK_VERSION@,$TK_VERSION,;t t | |
23713 | s,@TK_DEFS@,$TK_DEFS,;t t | |
23714 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
23715 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
23716 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
23717 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
23718 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
23719 | s,@TCLHDIR@,$TCLHDIR,;t t | |
23720 | s,@TKHDIR@,$TKHDIR,;t t | |
23721 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
23722 | s,@ITKHDIR@,$ITKHDIR,;t t | |
23723 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
23724 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
23725 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
23726 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
23727 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
23728 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
23729 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
23730 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
23731 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
23732 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
23733 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
23734 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
23735 | s,@X_LIBS@,$X_LIBS,;t t | |
23736 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
23737 | s,@TK_DEPS@,$TK_DEPS,;t t | |
23738 | s,@ITCLLIB@,$ITCLLIB,;t t | |
23739 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
23740 | s,@ITKLIB@,$ITKLIB,;t t | |
23741 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
23742 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
23743 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
23744 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
23745 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
23746 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
23747 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
23748 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
23749 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
23750 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
23751 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
23752 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
23753 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
23754 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
23755 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
23756 | s,@target_subdir@,$target_subdir,;t t | |
23757 | s,@frags@,$frags,;t t | |
23758 | s,@xm_h@,$xm_h,;t t | |
23759 | s,@tm_h@,$tm_h,;t t | |
23760 | s,@nm_h@,$nm_h,;t t | |
23761 | s,@LIBICONV@,$LIBICONV,;t t | |
23762 | s,@LIBOBJS@,$LIBOBJS,;t t | |
23763 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
23764 | /@host_makefile_frag@/r $host_makefile_frag | |
23765 | s,@host_makefile_frag@,,;t t | |
23766 | /@target_makefile_frag@/r $target_makefile_frag | |
23767 | s,@target_makefile_frag@,,;t t | |
23768 | CEOF | |
23769 | ||
23770 | _ACEOF | |
23771 | ||
23772 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23773 | # Split the substitutions into bite-sized pieces for seds with | |
23774 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
23775 | ac_max_sed_lines=48 | |
23776 | ac_sed_frag=1 # Number of current file. | |
23777 | ac_beg=1 # First line for current file. | |
23778 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
23779 | ac_more_lines=: | |
23780 | ac_sed_cmds= | |
23781 | while $ac_more_lines; do | |
23782 | if test $ac_beg -gt 1; then | |
23783 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
23784 | else | |
23785 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 23786 | fi |
b4e70030 JB |
23787 | if test ! -s $tmp/subs.frag; then |
23788 | ac_more_lines=false | |
23789 | else | |
23790 | # The purpose of the label and of the branching condition is to | |
23791 | # speed up the sed processing (if there are no `@' at all, there | |
23792 | # is no need to browse any of the substitutions). | |
23793 | # These are the two extra sed commands mentioned above. | |
23794 | (echo ':t | |
23795 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
23796 | if test -z "$ac_sed_cmds"; then | |
23797 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
23798 | else | |
23799 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
23800 | fi | |
23801 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
23802 | ac_beg=$ac_end | |
23803 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
23804 | fi | |
23805 | done | |
23806 | if test -z "$ac_sed_cmds"; then | |
23807 | ac_sed_cmds=cat | |
23808 | fi | |
23809 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 23810 | |
b4e70030 JB |
23811 | _ACEOF |
23812 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23813 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
23814 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
23815 | case $ac_file in | |
23816 | - | *:- | *:-:* ) # input from stdin | |
23817 | cat >$tmp/stdin | |
23818 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23819 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23820 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23821 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23822 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
23823 | esac |
23824 | ||
b4e70030 JB |
23825 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
23826 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
23827 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23828 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23829 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23830 | X"$ac_file" : 'X\(/\)' \| \ |
23831 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23832 | echo X"$ac_file" | |
b4e70030 JB |
23833 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
23834 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23835 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23836 | /^X\(\/\).*/{ s//\1/; q; } | |
23837 | s/.*/./; q'` | |
23838 | { if $as_mkdir_p; then | |
23839 | mkdir -p "$ac_dir" | |
23840 | else | |
23841 | as_dir="$ac_dir" | |
bec39cab | 23842 | as_dirs= |
b4e70030 JB |
23843 | while test ! -d "$as_dir"; do |
23844 | as_dirs="$as_dir $as_dirs" | |
23845 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
23846 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23847 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23848 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23849 | X"$as_dir" : 'X\(/\)' \| \ |
23850 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23851 | echo X"$as_dir" | |
b4e70030 JB |
23852 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
23853 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23854 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23855 | /^X\(\/\).*/{ s//\1/; q; } | |
23856 | s/.*/./; q'` | |
bec39cab | 23857 | done |
b4e70030 JB |
23858 | test ! -n "$as_dirs" || mkdir $as_dirs |
23859 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23860 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 23861 | { (exit 1); exit 1; }; }; } |
b4e70030 | 23862 | |
bec39cab AC |
23863 | ac_builddir=. |
23864 | ||
b4e70030 | 23865 | if test "$ac_dir" != .; then |
bec39cab | 23866 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
23867 | # A "../" for each directory in $ac_dir_suffix. |
23868 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23869 | else | |
23870 | ac_dir_suffix= ac_top_builddir= | |
23871 | fi | |
bec39cab AC |
23872 | |
23873 | case $srcdir in | |
b4e70030 | 23874 | .) # No --srcdir option. We are building in place. |
bec39cab | 23875 | ac_srcdir=. |
b4e70030 JB |
23876 | if test -z "$ac_top_builddir"; then |
23877 | ac_top_srcdir=. | |
23878 | else | |
23879 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23880 | fi ;; | |
23881 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 23882 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
23883 | ac_top_srcdir=$srcdir ;; |
23884 | *) # Relative path. | |
23885 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23886 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
23887 | esac |
23888 | ||
b4e70030 JB |
23889 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23890 | # the directories may not exist. | |
23891 | case `pwd` in | |
23892 | .) ac_abs_builddir="$ac_dir";; | |
23893 | *) | |
23894 | case "$ac_dir" in | |
23895 | .) ac_abs_builddir=`pwd`;; | |
23896 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23897 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23898 | esac;; | |
23899 | esac | |
23900 | case $ac_abs_builddir in | |
23901 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23902 | *) | |
23903 | case ${ac_top_builddir}. in | |
23904 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23905 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23906 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23907 | esac;; | |
23908 | esac | |
23909 | case $ac_abs_builddir in | |
23910 | .) ac_abs_srcdir=$ac_srcdir;; | |
23911 | *) | |
23912 | case $ac_srcdir in | |
23913 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23914 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23915 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23916 | esac;; | |
23917 | esac | |
23918 | case $ac_abs_builddir in | |
23919 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23920 | *) | |
23921 | case $ac_top_srcdir in | |
23922 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23923 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23924 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23925 | esac;; | |
23926 | esac | |
c906108c | 23927 | |
c906108c | 23928 | |
bec39cab AC |
23929 | case $INSTALL in |
23930 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 23931 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 23932 | esac |
121ce6e5 | 23933 | |
b4e70030 JB |
23934 | if test x"$ac_file" != x-; then |
23935 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
23936 | echo "$as_me: creating $ac_file" >&6;} | |
23937 | rm -f "$ac_file" | |
23938 | fi | |
23939 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23940 | # use $as_me), people would be surprised to read: | |
23941 | # /* config.h. Generated by config.status. */ | |
23942 | if test x"$ac_file" = x-; then | |
23943 | configure_input= | |
23944 | else | |
23945 | configure_input="$ac_file. " | |
23946 | fi | |
23947 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
23948 | sed 's,.*/,,'` by configure." | |
23949 | ||
23950 | # First look for the input files in the build tree, otherwise in the | |
23951 | # src tree. | |
23952 | ac_file_inputs=`IFS=: | |
23953 | for f in $ac_file_in; do | |
23954 | case $f in | |
23955 | -) echo $tmp/stdin ;; | |
23956 | [\\/$]*) | |
23957 | # Absolute (can't be DOS-style, as IFS=:) | |
23958 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23959 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23960 | { (exit 1); exit 1; }; } | |
23961 | echo "$f";; | |
23962 | *) # Relative | |
23963 | if test -f "$f"; then | |
23964 | # Build tree | |
23965 | echo "$f" | |
23966 | elif test -f "$srcdir/$f"; then | |
23967 | # Source tree | |
23968 | echo "$srcdir/$f" | |
23969 | else | |
23970 | # /dev/null tree | |
23971 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23972 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23973 | { (exit 1); exit 1; }; } | |
23974 | fi;; | |
23975 | esac | |
23976 | done` || { (exit 1); exit 1; } | |
4e8d927d | 23977 | _ACEOF |
bec39cab AC |
23978 | cat >>$CONFIG_STATUS <<_ACEOF |
23979 | sed "$ac_vpsub | |
23980 | $extrasub | |
23981 | _ACEOF | |
23982 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23983 | :t | |
23984 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
23985 | s,@configure_input@,$configure_input,;t t |
23986 | s,@srcdir@,$ac_srcdir,;t t | |
23987 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
23988 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
23989 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
23990 | s,@builddir@,$ac_builddir,;t t | |
23991 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
23992 | s,@top_builddir@,$ac_top_builddir,;t t | |
23993 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
23994 | s,@INSTALL@,$ac_INSTALL,;t t | |
23995 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
23996 | rm -f $tmp/stdin | |
23997 | if test x"$ac_file" != x-; then | |
23998 | mv $tmp/out $ac_file | |
23999 | else | |
24000 | cat $tmp/out | |
24001 | rm -f $tmp/out | |
24002 | fi | |
24003 | ||
24004 | done | |
24005 | _ACEOF | |
24006 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24007 | ||
24008 | # | |
24009 | # CONFIG_HEADER section. | |
24010 | # | |
24011 | ||
24012 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24013 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24014 | # | |
24015 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24016 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24017 | ac_dB='[ ].*$,\1#\2' | |
24018 | ac_dC=' ' | |
24019 | ac_dD=',;t' | |
24020 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24021 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24022 | ac_uB='$,\1#\2define\3' | |
24023 | ac_uC=' ' | |
24024 | ac_uD=',;t' | |
24025 | ||
24026 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24027 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 24028 | case $ac_file in |
b4e70030 JB |
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 | 24036 | esac |
b4e70030 JB |
24037 | |
24038 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24039 | echo "$as_me: creating $ac_file" >&6;} | |
24040 | ||
24041 | # First look for the input files in the build tree, otherwise in the | |
24042 | # src tree. | |
24043 | ac_file_inputs=`IFS=: | |
24044 | for f in $ac_file_in; do | |
24045 | case $f in | |
24046 | -) echo $tmp/stdin ;; | |
24047 | [\\/$]*) | |
24048 | # Absolute (can't be DOS-style, as IFS=:) | |
24049 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24050 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24051 | { (exit 1); exit 1; }; } | |
24052 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
24053 | echo "$f";; | |
24054 | *) # Relative | |
24055 | if test -f "$f"; then | |
24056 | # Build tree | |
24057 | echo "$f" | |
24058 | elif test -f "$srcdir/$f"; then | |
24059 | # Source tree | |
24060 | echo "$srcdir/$f" | |
24061 | else | |
24062 | # /dev/null tree | |
24063 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24064 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24065 | { (exit 1); exit 1; }; } | |
24066 | fi;; | |
24067 | esac | |
24068 | done` || { (exit 1); exit 1; } | |
24069 | # Remove the trailing spaces. | |
24070 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24071 | ||
24072 | _ACEOF | |
24073 | ||
24074 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24075 | # `conftest.undefs', that substitutes the proper values into | |
24076 | # config.h.in to produce config.h. The first handles `#define' | |
24077 | # templates, and the second `#undef' templates. | |
24078 | # And first: Protect against being on the right side of a sed subst in | |
24079 | # config.status. Protect against being in an unquoted here document | |
24080 | # in config.status. | |
24081 | rm -f conftest.defines conftest.undefs | |
24082 | # Using a here document instead of a string reduces the quoting nightmare. | |
24083 | # Putting comments in sed scripts is not portable. | |
24084 | # | |
24085 | # `end' is used to avoid that the second main sed command (meant for | |
24086 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24087 | # See the Autoconf documentation for `clear'. | |
24088 | cat >confdef2sed.sed <<\_ACEOF | |
24089 | s/[\\&,]/\\&/g | |
24090 | s,[\\$`],\\&,g | |
24091 | t clear | |
24092 | : clear | |
24093 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24094 | t end | |
24095 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24096 | : end | |
24097 | _ACEOF | |
24098 | # If some macros were called several times there might be several times | |
24099 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24100 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24101 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24102 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24103 | rm -f confdef2sed.sed | |
24104 | ||
24105 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
24106 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24107 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
24108 | cat >>conftest.undefs <<\_ACEOF |
24109 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24110 | _ACEOF | |
24111 | ||
24112 | # Break up conftest.defines because some shells have a limit on the size | |
24113 | # of here documents, and old seds have small limits too (100 cmds). | |
24114 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24115 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24116 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24117 | echo ' :' >>$CONFIG_STATUS | |
24118 | rm -f conftest.tail | |
24119 | while grep . conftest.defines >/dev/null | |
bec39cab | 24120 | do |
b4e70030 JB |
24121 | # Write a limited-size here document to $tmp/defines.sed. |
24122 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24123 | # Speed up: don't consider the non `#define' lines. | |
24124 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24125 | # Work around the forget-to-reset-the-flag bug. | |
24126 | echo 't clr' >>$CONFIG_STATUS | |
24127 | echo ': clr' >>$CONFIG_STATUS | |
24128 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 24129 | echo 'CEOF |
b4e70030 JB |
24130 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
24131 | rm -f $tmp/in | |
24132 | mv $tmp/out $tmp/in | |
24133 | ' >>$CONFIG_STATUS | |
24134 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
24135 | rm -f conftest.defines |
24136 | mv conftest.tail conftest.defines | |
24137 | done | |
b4e70030 JB |
24138 | rm -f conftest.defines |
24139 | echo ' fi # grep' >>$CONFIG_STATUS | |
24140 | echo >>$CONFIG_STATUS | |
24141 | ||
24142 | # Break up conftest.undefs because some shells have a limit on the size | |
24143 | # of here documents, and old seds have small limits too (100 cmds). | |
24144 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24145 | rm -f conftest.tail | |
24146 | while grep . conftest.undefs >/dev/null | |
24147 | do | |
24148 | # Write a limited-size here document to $tmp/undefs.sed. | |
24149 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24150 | # Speed up: don't consider the non `#undef' | |
24151 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24152 | # Work around the forget-to-reset-the-flag bug. | |
24153 | echo 't clr' >>$CONFIG_STATUS | |
24154 | echo ': clr' >>$CONFIG_STATUS | |
24155 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24156 | echo 'CEOF | |
24157 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24158 | rm -f $tmp/in | |
24159 | mv $tmp/out $tmp/in | |
24160 | ' >>$CONFIG_STATUS | |
24161 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24162 | rm -f conftest.undefs | |
24163 | mv conftest.tail conftest.undefs | |
24164 | done | |
24165 | rm -f conftest.undefs | |
bec39cab AC |
24166 | |
24167 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
24168 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24169 | # use $as_me), people would be surprised to read: | |
24170 | # /* config.h. Generated by config.status. */ | |
24171 | if test x"$ac_file" = x-; then | |
24172 | echo "/* Generated by configure. */" >$tmp/config.h | |
24173 | else | |
24174 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24175 | fi | |
24176 | cat $tmp/in >>$tmp/config.h | |
24177 | rm -f $tmp/in | |
bec39cab | 24178 | if test x"$ac_file" != x-; then |
b4e70030 | 24179 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
24180 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
24181 | echo "$as_me: $ac_file is unchanged" >&6;} | |
24182 | else | |
b4e70030 JB |
24183 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
24184 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24185 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24186 | X"$ac_file" : 'X\(//\)$' \| \ | |
24187 | X"$ac_file" : 'X\(/\)' \| \ | |
24188 | . : '\(.\)' 2>/dev/null || | |
24189 | echo X"$ac_file" | | |
24190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24191 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24192 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24193 | /^X\(\/\).*/{ s//\1/; q; } | |
24194 | s/.*/./; q'` | |
24195 | { if $as_mkdir_p; then | |
24196 | mkdir -p "$ac_dir" | |
24197 | else | |
24198 | as_dir="$ac_dir" | |
24199 | as_dirs= | |
24200 | while test ! -d "$as_dir"; do | |
24201 | as_dirs="$as_dir $as_dirs" | |
24202 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24203 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24204 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24205 | X"$as_dir" : 'X\(//\)$' \| \ | |
24206 | X"$as_dir" : 'X\(/\)' \| \ | |
24207 | . : '\(.\)' 2>/dev/null || | |
24208 | echo X"$as_dir" | | |
24209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24210 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24211 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24212 | /^X\(\/\).*/{ s//\1/; q; } | |
24213 | s/.*/./; q'` | |
24214 | done | |
24215 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24216 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24217 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24218 | { (exit 1); exit 1; }; }; } | |
24219 | ||
bec39cab | 24220 | rm -f $ac_file |
b4e70030 | 24221 | mv $tmp/config.h $ac_file |
bec39cab AC |
24222 | fi |
24223 | else | |
b4e70030 JB |
24224 | cat $tmp/config.h |
24225 | rm -f $tmp/config.h | |
bec39cab | 24226 | fi |
b4e70030 JB |
24227 | done |
24228 | _ACEOF | |
24229 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24230 | ||
24231 | # | |
24232 | # CONFIG_LINKS section. | |
24233 | # | |
24234 | ||
24235 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
24236 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24237 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 24238 | |
b4e70030 JB |
24239 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
24240 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
24241 | |
24242 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
24243 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
24244 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
24245 | { (exit 1); exit 1; }; } | |
c906108c | 24246 | fi |
b4e70030 JB |
24247 | rm -f $ac_dest |
24248 | ||
24249 | # Make relative symlinks. | |
24250 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24251 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24252 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24253 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24254 | X"$ac_dest" : 'X\(/\)' \| \ | |
24255 | . : '\(.\)' 2>/dev/null || | |
24256 | echo X"$ac_dest" | | |
24257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24260 | /^X\(\/\).*/{ s//\1/; q; } | |
24261 | s/.*/./; q'` | |
24262 | { if $as_mkdir_p; then | |
24263 | mkdir -p "$ac_dest_dir" | |
24264 | else | |
24265 | as_dir="$ac_dest_dir" | |
24266 | as_dirs= | |
24267 | while test ! -d "$as_dir"; do | |
24268 | as_dirs="$as_dir $as_dirs" | |
24269 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24270 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24271 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24272 | X"$as_dir" : 'X\(//\)$' \| \ | |
24273 | X"$as_dir" : 'X\(/\)' \| \ | |
24274 | . : '\(.\)' 2>/dev/null || | |
24275 | echo X"$as_dir" | | |
24276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24277 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24278 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24279 | /^X\(\/\).*/{ s//\1/; q; } | |
24280 | s/.*/./; q'` | |
24281 | done | |
24282 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24283 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
24284 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
24285 | { (exit 1); exit 1; }; }; } | |
24286 | ||
24287 | ac_builddir=. | |
24288 | ||
24289 | if test "$ac_dest_dir" != .; then | |
24290 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
24291 | # A "../" for each directory in $ac_dir_suffix. | |
24292 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24293 | else | |
24294 | ac_dir_suffix= ac_top_builddir= | |
24295 | fi | |
24296 | ||
24297 | case $srcdir in | |
24298 | .) # No --srcdir option. We are building in place. | |
24299 | ac_srcdir=. | |
24300 | if test -z "$ac_top_builddir"; then | |
24301 | ac_top_srcdir=. | |
24302 | else | |
24303 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24304 | fi ;; | |
24305 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
24306 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24307 | ac_top_srcdir=$srcdir ;; | |
24308 | *) # Relative path. | |
24309 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24310 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24311 | esac | |
24312 | ||
24313 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24314 | # the directories may not exist. | |
24315 | case `pwd` in | |
24316 | .) ac_abs_builddir="$ac_dest_dir";; | |
24317 | *) | |
24318 | case "$ac_dest_dir" in | |
24319 | .) ac_abs_builddir=`pwd`;; | |
24320 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
24321 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
24322 | esac;; | |
24323 | esac | |
24324 | case $ac_abs_builddir in | |
24325 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24326 | *) | |
24327 | case ${ac_top_builddir}. in | |
24328 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24329 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24330 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24331 | esac;; | |
24332 | esac | |
24333 | case $ac_abs_builddir in | |
24334 | .) ac_abs_srcdir=$ac_srcdir;; | |
24335 | *) | |
24336 | case $ac_srcdir in | |
24337 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24338 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24339 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24340 | esac;; | |
24341 | esac | |
24342 | case $ac_abs_builddir in | |
24343 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24344 | *) | |
24345 | case $ac_top_srcdir in | |
24346 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24347 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24348 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24349 | esac;; | |
24350 | esac | |
24351 | ||
bec39cab AC |
24352 | |
24353 | case $srcdir in | |
24354 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 24355 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 24356 | esac |
b4e70030 JB |
24357 | |
24358 | # Try a symlink, then a hard link, then a copy. | |
24359 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
24360 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
24361 | cp -p $srcdir/$ac_source $ac_dest || | |
24362 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
24363 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 24364 | { (exit 1); exit 1; }; } |
b4e70030 JB |
24365 | done |
24366 | _ACEOF | |
24367 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24368 | ||
24369 | # | |
24370 | # CONFIG_COMMANDS section. | |
24371 | # | |
24372 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
24373 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24374 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24375 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24376 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24377 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24378 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24379 | X"$ac_dest" : 'X\(/\)' \| \ | |
24380 | . : '\(.\)' 2>/dev/null || | |
24381 | echo X"$ac_dest" | | |
24382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24383 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24384 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24385 | /^X\(\/\).*/{ s//\1/; q; } | |
24386 | s/.*/./; q'` | |
24387 | { if $as_mkdir_p; then | |
24388 | mkdir -p "$ac_dir" | |
24389 | else | |
24390 | as_dir="$ac_dir" | |
24391 | as_dirs= | |
24392 | while test ! -d "$as_dir"; do | |
24393 | as_dirs="$as_dir $as_dirs" | |
24394 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24395 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24396 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24397 | X"$as_dir" : 'X\(//\)$' \| \ | |
24398 | X"$as_dir" : 'X\(/\)' \| \ | |
24399 | . : '\(.\)' 2>/dev/null || | |
24400 | echo X"$as_dir" | | |
24401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24402 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24403 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24404 | /^X\(\/\).*/{ s//\1/; q; } | |
24405 | s/.*/./; q'` | |
24406 | done | |
24407 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24408 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24409 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24410 | { (exit 1); exit 1; }; }; } | |
24411 | ||
24412 | ac_builddir=. | |
24413 | ||
24414 | if test "$ac_dir" != .; then | |
24415 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
24416 | # A "../" for each directory in $ac_dir_suffix. | |
24417 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24418 | else | |
24419 | ac_dir_suffix= ac_top_builddir= | |
24420 | fi | |
24421 | ||
24422 | case $srcdir in | |
24423 | .) # No --srcdir option. We are building in place. | |
24424 | ac_srcdir=. | |
24425 | if test -z "$ac_top_builddir"; then | |
24426 | ac_top_srcdir=. | |
24427 | else | |
24428 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24429 | fi ;; | |
24430 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
24431 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24432 | ac_top_srcdir=$srcdir ;; | |
24433 | *) # Relative path. | |
24434 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24435 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24436 | esac | |
24437 | ||
24438 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24439 | # the directories may not exist. | |
24440 | case `pwd` in | |
24441 | .) ac_abs_builddir="$ac_dir";; | |
24442 | *) | |
24443 | case "$ac_dir" in | |
24444 | .) ac_abs_builddir=`pwd`;; | |
24445 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24446 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24447 | esac;; | |
24448 | esac | |
24449 | case $ac_abs_builddir in | |
24450 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24451 | *) | |
24452 | case ${ac_top_builddir}. in | |
24453 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24454 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24455 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24456 | esac;; | |
24457 | esac | |
24458 | case $ac_abs_builddir in | |
24459 | .) ac_abs_srcdir=$ac_srcdir;; | |
24460 | *) | |
24461 | case $ac_srcdir in | |
24462 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24463 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24464 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24465 | esac;; | |
24466 | esac | |
24467 | case $ac_abs_builddir in | |
24468 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24469 | *) | |
24470 | case $ac_top_srcdir in | |
24471 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24472 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24473 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24474 | esac;; | |
24475 | esac | |
bec39cab | 24476 | |
bec39cab | 24477 | |
b4e70030 JB |
24478 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
24479 | echo "$as_me: executing $ac_dest commands" >&6;} | |
24480 | case $ac_dest in | |
24481 | gdb_stdint.h ) | |
4e8d927d DJ |
24482 | if test "$GCC" = yes; then |
24483 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
24484 | else | |
24485 | echo "/* generated for $CC */" > tmp-stdint.h | |
24486 | fi | |
24487 | ||
24488 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24489 | ||
24490 | #ifndef GCC_GENERATED_STDINT_H | |
24491 | #define GCC_GENERATED_STDINT_H 1 | |
24492 | ||
24493 | #include <sys/types.h> | |
24494 | EOF | |
24495 | ||
24496 | if test "$acx_cv_header_stdint" != stdint.h; then | |
24497 | echo "#include <stddef.h>" >> tmp-stdint.h | |
24498 | fi | |
24499 | if test "$acx_cv_header_stdint" != stddef.h; then | |
24500 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
24501 | fi | |
24502 | ||
24503 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24504 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
24505 | #ifdef __int8_t_defined | |
24506 | #define _INT8_T | |
24507 | #define _INT16_T | |
24508 | #define _INT32_T | |
24509 | #endif | |
24510 | #ifdef __uint32_t_defined | |
24511 | #define _UINT32_T | |
24512 | #endif | |
24513 | ||
24514 | EOF | |
24515 | ||
24516 | # ----------------- done header, emit basic int types ------------- | |
24517 | if test "$acx_cv_header_stdint" = stddef.h; then | |
24518 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24519 | ||
24520 | #ifndef _UINT8_T | |
24521 | #define _UINT8_T | |
24522 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
24523 | #endif | |
24524 | ||
24525 | #ifndef _UINT16_T | |
24526 | #define _UINT16_T | |
24527 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
24528 | #endif | |
24529 | ||
24530 | #ifndef _UINT32_T | |
24531 | #define _UINT32_T | |
24532 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
24533 | #endif | |
24534 | ||
24535 | #ifndef _INT8_T | |
24536 | #define _INT8_T | |
24537 | typedef $acx_cv_type_int8_t int8_t; | |
24538 | #endif | |
24539 | ||
24540 | #ifndef _INT16_T | |
24541 | #define _INT16_T | |
24542 | typedef $acx_cv_type_int16_t int16_t; | |
24543 | #endif | |
24544 | ||
24545 | #ifndef _INT32_T | |
24546 | #define _INT32_T | |
24547 | typedef $acx_cv_type_int32_t int32_t; | |
24548 | #endif | |
24549 | EOF | |
24550 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
24551 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24552 | ||
24553 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
24554 | #ifndef _INT8_T | |
24555 | #define _INT8_T | |
24556 | #endif | |
24557 | #ifndef _INT16_T | |
24558 | #define _INT16_T | |
24559 | #endif | |
24560 | #ifndef _INT32_T | |
24561 | #define _INT32_T | |
24562 | #endif | |
24563 | ||
24564 | #ifndef _UINT8_T | |
24565 | #define _UINT8_T | |
24566 | typedef u_int8_t uint8_t; | |
24567 | #endif | |
24568 | ||
24569 | #ifndef _UINT16_T | |
24570 | #define _UINT16_T | |
24571 | typedef u_int16_t uint16_t; | |
24572 | #endif | |
24573 | ||
24574 | #ifndef _UINT32_T | |
24575 | #define _UINT32_T | |
24576 | typedef u_int32_t uint32_t; | |
24577 | #endif | |
24578 | EOF | |
24579 | else | |
24580 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24581 | ||
24582 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
24583 | #ifndef _INT8_T | |
24584 | #define _INT8_T | |
24585 | #endif | |
24586 | #ifndef _INT16_T | |
24587 | #define _INT16_T | |
24588 | #endif | |
24589 | #ifndef _INT32_T | |
24590 | #define _INT32_T | |
24591 | #endif | |
24592 | #ifndef _UINT8_T | |
24593 | #define _UINT8_T | |
24594 | #endif | |
24595 | #ifndef _UINT16_T | |
24596 | #define _UINT16_T | |
24597 | #endif | |
24598 | #ifndef _UINT32_T | |
24599 | #define _UINT32_T | |
24600 | #endif | |
24601 | EOF | |
24602 | fi | |
24603 | ||
24604 | # ------------- done basic int types, emit int64_t types ------------ | |
24605 | if test "$ac_cv_type_uint64_t" = yes; then | |
24606 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24607 | ||
24608 | /* system headers have good uint64_t and int64_t */ | |
24609 | #ifndef _INT64_T | |
24610 | #define _INT64_T | |
24611 | #endif | |
24612 | #ifndef _UINT64_T | |
24613 | #define _UINT64_T | |
24614 | #endif | |
24615 | EOF | |
24616 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
24617 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24618 | ||
24619 | /* system headers have an u_int64_t (and int64_t) */ | |
24620 | #ifndef _INT64_T | |
24621 | #define _INT64_T | |
24622 | #endif | |
24623 | #ifndef _UINT64_T | |
24624 | #define _UINT64_T | |
24625 | typedef u_int64_t uint64_t; | |
24626 | #endif | |
24627 | EOF | |
24628 | elif test -n "$acx_cv_type_int64_t"; then | |
24629 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24630 | ||
24631 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
24632 | #ifndef _INT64_T | |
24633 | #define _INT64_T | |
24634 | typedef $acx_cv_type_int64_t int64_t; | |
24635 | #endif | |
24636 | #ifndef _UINT64_T | |
24637 | #define _UINT64_T | |
24638 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
24639 | #endif | |
24640 | EOF | |
24641 | else | |
24642 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24643 | ||
24644 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
24645 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
24646 | #ifndef _INT64_T | |
24647 | #define _INT64_T | |
24648 | typedef long long int64_t; | |
24649 | #endif | |
24650 | #ifndef _UINT64_T | |
24651 | #define _UINT64_T | |
24652 | typedef unsigned long long uint64_t; | |
24653 | #endif | |
24654 | ||
24655 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
24656 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
24657 | does not implement __extension__. But that compiler doesn't define | |
24658 | __GNUC_MINOR__. */ | |
24659 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
24660 | # define __extension__ | |
24661 | # endif | |
24662 | ||
24663 | # ifndef _INT64_T | |
24664 | # define _INT64_T | |
24665 | __extension__ typedef long long int64_t; | |
24666 | # endif | |
24667 | # ifndef _UINT64_T | |
24668 | # define _UINT64_T | |
24669 | __extension__ typedef unsigned long long uint64_t; | |
24670 | # endif | |
24671 | ||
24672 | #elif !defined __STRICT_ANSI__ | |
24673 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
24674 | ||
24675 | # ifndef _INT64_T | |
24676 | # define _INT64_T | |
24677 | typedef __int64 int64_t; | |
24678 | # endif | |
24679 | # ifndef _UINT64_T | |
24680 | # define _UINT64_T | |
24681 | typedef unsigned __int64 uint64_t; | |
24682 | # endif | |
24683 | # endif /* compiler */ | |
24684 | ||
24685 | #endif /* ANSI version */ | |
24686 | EOF | |
24687 | fi | |
24688 | ||
24689 | # ------------- done int64_t types, emit intptr types ------------ | |
24690 | if test "$ac_cv_type_uintptr_t" != yes; then | |
24691 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24692 | ||
24693 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
24694 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
24695 | typedef $acx_cv_type_intptr_t intptr_t; | |
24696 | EOF | |
24697 | fi | |
24698 | ||
24699 | # ------------- done intptr types, emit int_least types ------------ | |
24700 | if test "$ac_cv_type_int_least32_t" != yes; then | |
24701 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24702 | ||
24703 | /* Define int_least types */ | |
24704 | typedef int8_t int_least8_t; | |
24705 | typedef int16_t int_least16_t; | |
24706 | typedef int32_t int_least32_t; | |
24707 | #ifdef _INT64_T | |
24708 | typedef int64_t int_least64_t; | |
24709 | #endif | |
24710 | ||
24711 | typedef uint8_t uint_least8_t; | |
24712 | typedef uint16_t uint_least16_t; | |
24713 | typedef uint32_t uint_least32_t; | |
24714 | #ifdef _UINT64_T | |
24715 | typedef uint64_t uint_least64_t; | |
24716 | #endif | |
24717 | EOF | |
24718 | fi | |
24719 | ||
24720 | # ------------- done intptr types, emit int_fast types ------------ | |
24721 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
24722 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24723 | ||
24724 | /* Define int_fast types. short is often slow */ | |
24725 | typedef int8_t int_fast8_t; | |
24726 | typedef int int_fast16_t; | |
24727 | typedef int32_t int_fast32_t; | |
24728 | #ifdef _INT64_T | |
24729 | typedef int64_t int_fast64_t; | |
24730 | #endif | |
24731 | ||
24732 | typedef uint8_t uint_fast8_t; | |
24733 | typedef unsigned int uint_fast16_t; | |
24734 | typedef uint32_t uint_fast32_t; | |
24735 | #ifdef _UINT64_T | |
24736 | typedef uint64_t uint_fast64_t; | |
24737 | #endif | |
24738 | EOF | |
24739 | fi | |
24740 | ||
24741 | if test "$ac_cv_type_uintmax_t" != yes; then | |
24742 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24743 | ||
24744 | /* Define intmax based on what we found */ | |
24745 | #ifdef _INT64_T | |
24746 | typedef int64_t intmax_t; | |
24747 | #else | |
24748 | typedef long intmax_t; | |
24749 | #endif | |
24750 | #ifdef _UINT64_T | |
24751 | typedef uint64_t uintmax_t; | |
24752 | #else | |
24753 | typedef unsigned long uintmax_t; | |
24754 | #endif | |
24755 | EOF | |
24756 | fi | |
24757 | ||
24758 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24759 | ||
24760 | #endif /* GCC_GENERATED_STDINT_H */ | |
24761 | EOF | |
24762 | ||
24763 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
24764 | rm -f tmp-stdint.h | |
24765 | else | |
24766 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
24767 | fi |
24768 | ||
4e8d927d | 24769 | ;; |
b4e70030 | 24770 | default ) |
c906108c | 24771 | |
2c0fc042 | 24772 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
24773 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
24774 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
24775 | mv -f Makefile.tmp Makefile | |
24776 | ||
2acceee2 | 24777 | |
c906108c SS |
24778 | case x$CONFIG_HEADERS in |
24779 | xconfig.h:config.in) | |
24780 | echo > stamp-h ;; | |
24781 | esac | |
bec39cab AC |
24782 | ;; |
24783 | esac | |
b4e70030 JB |
24784 | done |
24785 | _ACEOF | |
c906108c | 24786 | |
b4e70030 | 24787 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
24788 | |
24789 | { (exit 0); exit 0; } | |
24790 | _ACEOF | |
c906108c | 24791 | chmod +x $CONFIG_STATUS |
bec39cab AC |
24792 | ac_clean_files=$ac_clean_files_save |
24793 | ||
24794 | ||
24795 | # configure is writing to config.log, and then calls config.status. | |
24796 | # config.status does its own redirection, appending to config.log. | |
24797 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24798 | # by configure, so config.status won't be able to write to it; its | |
24799 | # output is simply discarded. So we exec the FD to /dev/null, | |
24800 | # effectively closing config.log, so it can be properly (re)opened and | |
24801 | # appended to by config.status. When coming back to configure, we | |
24802 | # need to make the FD available again. | |
24803 | if test "$no_create" != yes; then | |
24804 | ac_cs_success=: | |
24805 | ac_config_status_args= | |
24806 | test "$silent" = yes && | |
24807 | ac_config_status_args="$ac_config_status_args --quiet" | |
24808 | exec 5>/dev/null | |
24809 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24810 | exec 5>>config.log | |
24811 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24812 | # would make configure fail if this is the last instruction. | |
24813 | $ac_cs_success || { (exit 1); exit 1; } | |
24814 | fi | |
c906108c | 24815 | |
bec39cab AC |
24816 | # |
24817 | # CONFIG_SUBDIRS section. | |
24818 | # | |
c906108c SS |
24819 | if test "$no_recursion" != yes; then |
24820 | ||
24821 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
24822 | ac_sub_configure_args= | |
24823 | ac_prev= | |
b4e70030 | 24824 | for ac_arg in $ac_configure_args; do |
c906108c SS |
24825 | if test -n "$ac_prev"; then |
24826 | ac_prev= | |
24827 | continue | |
24828 | fi | |
bec39cab | 24829 | case $ac_arg in |
c906108c SS |
24830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
24831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
24832 | ac_prev=cache_file ;; | |
24833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
24834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
24835 | | --c=*) | |
24836 | ;; | |
24837 | --config-cache | -C) | |
c906108c SS |
24838 | ;; |
24839 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
24840 | ac_prev=srcdir ;; | |
24841 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
24842 | ;; | |
bec39cab AC |
24843 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
24844 | ac_prev=prefix ;; | |
24845 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
24846 | ;; | |
b4e70030 | 24847 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
24848 | esac |
24849 | done | |
24850 | ||
bec39cab AC |
24851 | # Always prepend --prefix to ensure using the same prefix |
24852 | # in subdir configurations. | |
24853 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
24854 | ||
b4e70030 | 24855 | ac_popdir=`pwd` |
bec39cab | 24856 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
24857 | |
24858 | # Do not complain, so a configure script can configure whichever | |
24859 | # parts of a large source tree are present. | |
bec39cab | 24860 | test -d $srcdir/$ac_dir || continue |
c906108c | 24861 | |
b4e70030 JB |
24862 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
24863 | echo "$as_me: configuring in $ac_dir" >&6;} | |
24864 | { if $as_mkdir_p; then | |
24865 | mkdir -p "$ac_dir" | |
24866 | else | |
24867 | as_dir="$ac_dir" | |
bec39cab | 24868 | as_dirs= |
b4e70030 JB |
24869 | while test ! -d "$as_dir"; do |
24870 | as_dirs="$as_dir $as_dirs" | |
24871 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
24872 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24873 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24874 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24875 | X"$as_dir" : 'X\(/\)' \| \ |
24876 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24877 | echo X"$as_dir" | |
b4e70030 JB |
24878 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24879 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24880 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24881 | /^X\(\/\).*/{ s//\1/; q; } | |
24882 | s/.*/./; q'` | |
bec39cab | 24883 | done |
b4e70030 JB |
24884 | test ! -n "$as_dirs" || mkdir $as_dirs |
24885 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24886 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 24887 | { (exit 1); exit 1; }; }; } |
b4e70030 | 24888 | |
bec39cab AC |
24889 | ac_builddir=. |
24890 | ||
b4e70030 | 24891 | if test "$ac_dir" != .; then |
bec39cab | 24892 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
24893 | # A "../" for each directory in $ac_dir_suffix. |
24894 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24895 | else | |
24896 | ac_dir_suffix= ac_top_builddir= | |
24897 | fi | |
bec39cab AC |
24898 | |
24899 | case $srcdir in | |
b4e70030 | 24900 | .) # No --srcdir option. We are building in place. |
bec39cab | 24901 | ac_srcdir=. |
b4e70030 JB |
24902 | if test -z "$ac_top_builddir"; then |
24903 | ac_top_srcdir=. | |
24904 | else | |
24905 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24906 | fi ;; | |
24907 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 24908 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
24909 | ac_top_srcdir=$srcdir ;; |
24910 | *) # Relative path. | |
24911 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24912 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24913 | esac | |
24914 | ||
24915 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24916 | # the directories may not exist. | |
24917 | case `pwd` in | |
24918 | .) ac_abs_builddir="$ac_dir";; | |
24919 | *) | |
24920 | case "$ac_dir" in | |
24921 | .) ac_abs_builddir=`pwd`;; | |
24922 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24923 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24924 | esac;; | |
24925 | esac | |
24926 | case $ac_abs_builddir in | |
24927 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24928 | *) | |
24929 | case ${ac_top_builddir}. in | |
24930 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24931 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24932 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24933 | esac;; | |
24934 | esac | |
24935 | case $ac_abs_builddir in | |
24936 | .) ac_abs_srcdir=$ac_srcdir;; | |
24937 | *) | |
24938 | case $ac_srcdir in | |
24939 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24940 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24941 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24942 | esac;; | |
24943 | esac | |
24944 | case $ac_abs_builddir in | |
24945 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24946 | *) | |
24947 | case $ac_top_srcdir in | |
24948 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24949 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24950 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24951 | esac;; | |
bec39cab | 24952 | esac |
c906108c | 24953 | |
c906108c | 24954 | |
b4e70030 | 24955 | cd $ac_dir |
c906108c SS |
24956 | |
24957 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
24958 | if test -f $ac_srcdir/configure.gnu; then |
24959 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
24960 | elif test -f $ac_srcdir/configure; then | |
24961 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
24962 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
24963 | ac_sub_configure=$ac_configure |
24964 | else | |
bec39cab AC |
24965 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
24966 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
24967 | ac_sub_configure= |
24968 | fi | |
24969 | ||
24970 | # The recursion is here. | |
24971 | if test -n "$ac_sub_configure"; then | |
c906108c | 24972 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
24973 | case $cache_file in |
24974 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
24975 | *) # Relative path. |
24976 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 24977 | esac |
c906108c | 24978 | |
bec39cab AC |
24979 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
24980 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 24981 | # The eval makes quoting arguments work. |
b4e70030 JB |
24982 | eval $ac_sub_configure $ac_sub_configure_args \ |
24983 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
24984 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
24985 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
24986 | { (exit 1); exit 1; }; } | |
c906108c SS |
24987 | fi |
24988 | ||
b4e70030 | 24989 | cd $ac_popdir |
c906108c SS |
24990 | done |
24991 | fi | |
24992 | ||
24993 | ||
24994 | exit 0 |