]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 AC |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
c906108c | 11 | |
b7026657 AC |
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+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
c906108c | 23 | |
b7026657 AC |
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 | |
c906108c SS |
30 | |
31 | ||
b7026657 AC |
32 | # Work around bugs in pre-3.0 UWIN ksh. |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
c906108c | 37 | |
b7026657 AC |
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 | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
c906108c | 50 | |
b7026657 AC |
51 | # Required to use basename. |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
c906108c | 57 | |
b7026657 AC |
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c906108c SS |
63 | |
64 | ||
b7026657 AC |
65 | # Name of the executable. |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
c906108c SS |
76 | |
77 | ||
b7026657 AC |
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 | |
c906108c | 85 | |
b7026657 AC |
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 | |
97 | fi | |
c906108c SS |
98 | |
99 | ||
b7026657 AC |
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 | |
c906108c | 116 | |
b7026657 AC |
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 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
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 | |
c906108c | 155 | |
b7026657 AC |
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 | |
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. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
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 | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
c906108c SS |
185 | |
186 | ||
b7026657 AC |
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= ;; | |
192 | esac | |
c906108c | 193 | |
b7026657 AC |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
c906108c | 199 | |
b7026657 AC |
200 | rm -f conf$$ conf$$.exe conf$$.file |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
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 | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
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 | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
c906108c | 217 | |
b7026657 AC |
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 | |
c906108c | 224 | |
b7026657 | 225 | as_executable_p="test -f" |
c906108c | 226 | |
b7026657 AC |
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'" | |
c906108c | 229 | |
b7026657 AC |
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'" | |
c906108c SS |
232 | |
233 | ||
b7026657 AC |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
c906108c | 239 | |
b7026657 AC |
240 | # CDPATH. |
241 | $as_unset CDPATH | |
c906108c SS |
242 | |
243 | ||
b7026657 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` | |
c906108c | 248 | |
b7026657 | 249 | exec 6>&1 |
c906108c | 250 | |
c906108c | 251 | # |
b7026657 | 252 | # Initializations. |
c906108c | 253 | # |
b7026657 AC |
254 | ac_default_prefix=/usr/local |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
c906108c | 261 | |
b7026657 AC |
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 | ||
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="Makefile.in" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
c906108c | 311 | |
6efef468 | 312 | ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS' |
b7026657 | 313 | ac_subst_files='' |
d6416cdc | 314 | ac_pwd=`pwd` |
c906108c SS |
315 | |
316 | # Initialize some variables set by options. | |
b7026657 AC |
317 | ac_init_help= |
318 | ac_init_version=false | |
c906108c SS |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
b7026657 | 321 | cache_file=/dev/null |
c906108c | 322 | exec_prefix=NONE |
c906108c | 323 | no_create= |
c906108c SS |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
c906108c SS |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
b7026657 AC |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
c906108c SS |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
c906108c SS |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
b7026657 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
b7026657 | 368 | case $ac_option in |
c906108c SS |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 373 | bindir=$ac_optarg ;; |
c906108c SS |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 376 | ac_prev=build_alias ;; |
c906108c | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 378 | build_alias=$ac_optarg ;; |
c906108c SS |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
c906108c SS |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
b7026657 | 394 | datadir=$ac_optarg ;; |
c906108c SS |
395 | |
396 | -disable-* | --disable-*) | |
b7026657 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 398 | # Reject names that are not valid shell variable names. |
b7026657 AC |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
404 | |
405 | -enable-* | --enable-*) | |
b7026657 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 407 | # Reject names that are not valid shell variable names. |
b7026657 AC |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
414 | *) ac_optarg=yes ;; |
415 | esac | |
b7026657 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 425 | exec_prefix=$ac_optarg ;; |
c906108c SS |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
b7026657 AC |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
c906108c SS |
437 | |
438 | -host | --host | --hos | --ho) | |
b7026657 | 439 | ac_prev=host_alias ;; |
c906108c | 440 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 441 | host_alias=$ac_optarg ;; |
c906108c SS |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 448 | includedir=$ac_optarg ;; |
c906108c SS |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 453 | infodir=$ac_optarg ;; |
c906108c SS |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 458 | libdir=$ac_optarg ;; |
c906108c SS |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 465 | libexecdir=$ac_optarg ;; |
c906108c SS |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b7026657 | 474 | localstatedir=$ac_optarg ;; |
c906108c SS |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 479 | mandir=$ac_optarg ;; |
c906108c SS |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 486 | | --no-cr | --no-c | -n) |
c906108c SS |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 500 | oldincludedir=$ac_optarg ;; |
c906108c SS |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 505 | prefix=$ac_optarg ;; |
c906108c SS |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 512 | program_prefix=$ac_optarg ;; |
c906108c SS |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 519 | program_suffix=$ac_optarg ;; |
c906108c SS |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 536 | program_transform_name=$ac_optarg ;; |
c906108c SS |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
b7026657 | 546 | sbindir=$ac_optarg ;; |
c906108c SS |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
b7026657 | 557 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
b7026657 | 562 | site=$ac_optarg ;; |
eb2d80b4 | 563 | |
c906108c SS |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 567 | srcdir=$ac_optarg ;; |
c906108c SS |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 574 | sysconfdir=$ac_optarg ;; |
c906108c SS |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 577 | ac_prev=target_alias ;; |
c906108c | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 579 | target_alias=$ac_optarg ;; |
c906108c SS |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
b7026657 AC |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
c906108c SS |
586 | |
587 | -with-* | --with-*) | |
b7026657 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 589 | # Reject names that are not valid shell variable names. |
b7026657 AC |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
c906108c | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b7026657 AC |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
596 | *) ac_optarg=yes ;; |
597 | esac | |
b7026657 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
599 | |
600 | -without-* | --without-*) | |
b7026657 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 602 | # Reject names that are not valid shell variable names. |
b7026657 AC |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
c906108c SS |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 618 | x_includes=$ac_optarg ;; |
c906108c SS |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 625 | x_libraries=$ac_optarg ;; |
c906108c | 626 | |
b7026657 AC |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
c906108c SS |
630 | ;; |
631 | ||
b7026657 AC |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
c906108c | 642 | *) |
b7026657 AC |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
b7026657 AC |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
c906108c | 657 | fi |
c906108c | 658 | |
b7026657 AC |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
666 | { (exit 1); exit 1; }; };; | |
667 | esac | |
668 | done | |
c906108c | 669 | |
b7026657 AC |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
672 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 673 | do |
b7026657 AC |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
678 | { (exit 1); exit 1; }; };; | |
c906108c SS |
679 | esac |
680 | done | |
681 | ||
b7026657 AC |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
684 | # FIXME: To remove some day. | |
685 | build=$build_alias | |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
689 | # FIXME: To remove some day. | |
690 | if test "x$host_alias" != x; then | |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
c906108c | 699 | |
b7026657 AC |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
702 | ||
703 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 704 | |
c906108c SS |
705 | |
706 | # Find the source files, if location was not specified. | |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
b7026657 AC |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
712 | X"$0" : 'X\(//\)[^/]' \| \ | |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
716 | echo X"$0" | | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
c906108c SS |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
b7026657 AC |
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
732 | { (exit 1); exit 1; }; } | |
c906108c | 733 | else |
b7026657 AC |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
735 | { (exit 1); exit 1; }; } | |
c906108c SS |
736 | fi |
737 | fi | |
b7026657 AC |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
c906108c | 774 | |
b7026657 AC |
775 | # |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
781 | cat <<_ACEOF | |
782 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 783 | |
b7026657 | 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 785 | |
b7026657 AC |
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 788 | |
b7026657 | 789 | Defaults for the options are specified in brackets. |
c906108c | 790 | |
b7026657 AC |
791 | Configuration: |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
802 | _ACEOF | |
803 | ||
804 | cat <<_ACEOF | |
805 | Installation directories: | |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
807 | [$ac_default_prefix] | |
808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
809 | [PREFIX] | |
c906108c | 810 | |
b7026657 AC |
811 | By default, \`make install' will install all the files in |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
c906108c | 815 | |
b7026657 AC |
816 | For better control, use the options below. |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
831 | _ACEOF | |
832 | ||
833 | cat <<\_ACEOF | |
834 | ||
835 | Program names: | |
836 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
837 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
839 | ||
840 | System types: | |
841 | --build=BUILD configure for building on BUILD [guessed] | |
842 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
843 | --target=TARGET configure for building compilers for TARGET [HOST] | |
844 | _ACEOF | |
c906108c | 845 | fi |
b7026657 AC |
846 | |
847 | if test -n "$ac_init_help"; then | |
848 | ||
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b7026657 AC |
854 | --enable-maintainer-mode Enable developer functionality. |
855 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
856 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
857 | --enable-sim-debug=opts Enable debugging flags | |
858 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
859 | --enable-sim-trace=opts Enable tracing flags | |
860 | --enable-sim-profile=opts Enable profiling flags | |
861 | ||
6efef468 JM |
862 | Optional Packages: |
863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
865 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
866 | --with-bugurl=URL Direct users to URL to report a bug | |
867 | ||
b7026657 AC |
868 | Some influential environment variables: |
869 | CC C compiler command | |
870 | CFLAGS C compiler flags | |
871 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
872 | nonstandard directory <lib dir> | |
873 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
874 | headers in a nonstandard directory <include dir> | |
875 | CPP C preprocessor | |
876 | ||
877 | Use these variables to override the choices made by `configure' or to help | |
878 | it to find libraries and programs with nonstandard names/locations. | |
879 | ||
880 | _ACEOF | |
c906108c SS |
881 | fi |
882 | ||
b7026657 AC |
883 | if test "$ac_init_help" = "recursive"; then |
884 | # If there are subdirs, report their specific --help. | |
885 | ac_popdir=`pwd` | |
886 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
887 | test -d $ac_dir || continue | |
888 | ac_builddir=. | |
c906108c | 889 | |
b7026657 AC |
890 | if test "$ac_dir" != .; then |
891 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
892 | # A "../" for each directory in $ac_dir_suffix. | |
893 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
c906108c | 894 | else |
b7026657 | 895 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
896 | fi |
897 | ||
b7026657 AC |
898 | case $srcdir in |
899 | .) # No --srcdir option. We are building in place. | |
900 | ac_srcdir=. | |
901 | if test -z "$ac_top_builddir"; then | |
902 | ac_top_srcdir=. | |
903 | else | |
904 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
905 | fi ;; | |
906 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
907 | ac_srcdir=$srcdir$ac_dir_suffix; | |
908 | ac_top_srcdir=$srcdir ;; | |
909 | *) # Relative path. | |
910 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
911 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
912 | esac | |
913 | ||
914 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
915 | # the directories may not exist. | |
916 | case `pwd` in | |
917 | .) ac_abs_builddir="$ac_dir";; | |
918 | *) | |
919 | case "$ac_dir" in | |
920 | .) ac_abs_builddir=`pwd`;; | |
921 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
922 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
923 | esac;; | |
924 | esac | |
925 | case $ac_abs_builddir in | |
926 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
927 | *) | |
928 | case ${ac_top_builddir}. in | |
929 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
930 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
931 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
932 | esac;; | |
933 | esac | |
934 | case $ac_abs_builddir in | |
935 | .) ac_abs_srcdir=$ac_srcdir;; | |
936 | *) | |
937 | case $ac_srcdir in | |
938 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
940 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
945 | *) | |
946 | case $ac_top_srcdir in | |
947 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
949 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
950 | esac;; | |
951 | esac | |
952 | ||
953 | cd $ac_dir | |
954 | # Check for guested configure; otherwise get Cygnus style configure. | |
955 | if test -f $ac_srcdir/configure.gnu; then | |
956 | echo | |
957 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
958 | elif test -f $ac_srcdir/configure; then | |
959 | echo | |
960 | $SHELL $ac_srcdir/configure --help=recursive | |
961 | elif test -f $ac_srcdir/configure.ac || | |
962 | test -f $ac_srcdir/configure.in; then | |
963 | echo | |
964 | $ac_configure --help | |
965 | else | |
966 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
967 | fi | |
20e95c23 | 968 | cd $ac_popdir |
b7026657 | 969 | done |
c906108c | 970 | fi |
b7026657 AC |
971 | |
972 | test -n "$ac_init_help" && exit 0 | |
973 | if $ac_init_version; then | |
974 | cat <<\_ACEOF | |
975 | ||
976 | Copyright (C) 2003 Free Software Foundation, Inc. | |
977 | This configure script is free software; the Free Software Foundation | |
978 | gives unlimited permission to copy, distribute and modify it. | |
979 | _ACEOF | |
980 | exit 0 | |
981 | fi | |
982 | exec 5>config.log | |
983 | cat >&5 <<_ACEOF | |
984 | This file contains any messages produced by compilers while | |
985 | running configure, to aid debugging if configure makes a mistake. | |
986 | ||
987 | It was created by $as_me, which was | |
988 | generated by GNU Autoconf 2.59. Invocation command line was | |
989 | ||
990 | $ $0 $@ | |
991 | ||
992 | _ACEOF | |
993 | { | |
994 | cat <<_ASUNAME | |
995 | ## --------- ## | |
996 | ## Platform. ## | |
997 | ## --------- ## | |
998 | ||
999 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1000 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1001 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1002 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1003 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1004 | ||
1005 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1006 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1007 | ||
1008 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1009 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1010 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1011 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1012 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1013 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1014 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1015 | ||
1016 | _ASUNAME | |
1017 | ||
1018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1019 | for as_dir in $PATH | |
1020 | do | |
1021 | IFS=$as_save_IFS | |
1022 | test -z "$as_dir" && as_dir=. | |
1023 | echo "PATH: $as_dir" | |
1024 | done | |
1025 | ||
1026 | } >&5 | |
1027 | ||
1028 | cat >&5 <<_ACEOF | |
1029 | ||
1030 | ||
1031 | ## ----------- ## | |
1032 | ## Core tests. ## | |
1033 | ## ----------- ## | |
1034 | ||
1035 | _ACEOF | |
1036 | ||
1037 | ||
1038 | # Keep a trace of the command line. | |
1039 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1040 | # Strip out --silent because we don't want to record it for future runs. | |
1041 | # Also quote any args containing shell meta-characters. | |
1042 | # Make two passes to allow for proper duplicate-argument suppression. | |
1043 | ac_configure_args= | |
1044 | ac_configure_args0= | |
1045 | ac_configure_args1= | |
1046 | ac_sep= | |
1047 | ac_must_keep_next=false | |
1048 | for ac_pass in 1 2 | |
1049 | do | |
1050 | for ac_arg | |
1051 | do | |
1052 | case $ac_arg in | |
1053 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1055 | | -silent | --silent | --silen | --sile | --sil) | |
1056 | continue ;; | |
1057 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1058 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1059 | esac | |
1060 | case $ac_pass in | |
1061 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1062 | 2) | |
1063 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1064 | if test $ac_must_keep_next = true; then | |
1065 | ac_must_keep_next=false # Got value, back to normal. | |
1066 | else | |
1067 | case $ac_arg in | |
1068 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1069 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1070 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1071 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1072 | case "$ac_configure_args0 " in | |
1073 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1074 | esac | |
1075 | ;; | |
1076 | -* ) ac_must_keep_next=true ;; | |
1077 | esac | |
1078 | fi | |
1079 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1080 | # Get rid of the leading space. | |
1081 | ac_sep=" " | |
1082 | ;; | |
1083 | esac | |
1084 | done | |
1085 | done | |
1086 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1087 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1088 | ||
1089 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1090 | # config.log. We remove comments because anyway the quotes in there | |
1091 | # would cause problems or look ugly. | |
1092 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1093 | # such as our DU 5.0 friend, will then `close' the trap. | |
1094 | trap 'exit_status=$? | |
1095 | # Save into config.log some information that might help in debugging. | |
1096 | { | |
1097 | echo | |
1098 | ||
1099 | cat <<\_ASBOX | |
1100 | ## ---------------- ## | |
1101 | ## Cache variables. ## | |
1102 | ## ---------------- ## | |
1103 | _ASBOX | |
1104 | echo | |
1105 | # The following way of writing the cache mishandles newlines in values, | |
1106 | { | |
1107 | (set) 2>&1 | | |
1108 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1109 | *ac_space=\ *) | |
1110 | sed -n \ | |
1111 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1113 | ;; | |
1114 | *) | |
1115 | sed -n \ | |
1116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1117 | ;; | |
1118 | esac; | |
1119 | } | |
1120 | echo | |
1121 | ||
1122 | cat <<\_ASBOX | |
1123 | ## ----------------- ## | |
1124 | ## Output variables. ## | |
1125 | ## ----------------- ## | |
1126 | _ASBOX | |
1127 | echo | |
1128 | for ac_var in $ac_subst_vars | |
1129 | do | |
1130 | eval ac_val=$`echo $ac_var` | |
1131 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1132 | done | sort | |
1133 | echo | |
1134 | ||
1135 | if test -n "$ac_subst_files"; then | |
1136 | cat <<\_ASBOX | |
1137 | ## ------------- ## | |
1138 | ## Output files. ## | |
1139 | ## ------------- ## | |
1140 | _ASBOX | |
1141 | echo | |
1142 | for ac_var in $ac_subst_files | |
1143 | do | |
1144 | eval ac_val=$`echo $ac_var` | |
1145 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1146 | done | sort | |
1147 | echo | |
1148 | fi | |
1149 | ||
1150 | if test -s confdefs.h; then | |
1151 | cat <<\_ASBOX | |
1152 | ## ----------- ## | |
1153 | ## confdefs.h. ## | |
1154 | ## ----------- ## | |
1155 | _ASBOX | |
1156 | echo | |
1157 | sed "/^$/d" confdefs.h | sort | |
1158 | echo | |
1159 | fi | |
1160 | test "$ac_signal" != 0 && | |
1161 | echo "$as_me: caught signal $ac_signal" | |
1162 | echo "$as_me: exit $exit_status" | |
1163 | } >&5 | |
1164 | rm -f core *.core && | |
1165 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1166 | exit $exit_status | |
1167 | ' 0 | |
1168 | for ac_signal in 1 2 13 15; do | |
1169 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1170 | done | |
1171 | ac_signal=0 | |
1172 | ||
1173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1174 | rm -rf conftest* confdefs.h | |
1175 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1176 | echo >confdefs.h | |
1177 | ||
1178 | # Predefined preprocessor variables. | |
1179 | ||
1180 | cat >>confdefs.h <<_ACEOF | |
1181 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1182 | _ACEOF | |
1183 | ||
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | # Let the site file select an alternate cache file if it wants to. | |
1206 | # Prefer explicitly selected file to automatically selected ones. | |
1207 | if test -z "$CONFIG_SITE"; then | |
1208 | if test "x$prefix" != xNONE; then | |
1209 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1210 | else | |
1211 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1212 | fi | |
1213 | fi | |
1214 | for ac_site_file in $CONFIG_SITE; do | |
1215 | if test -r "$ac_site_file"; then | |
1216 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1217 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1218 | sed 's/^/| /' "$ac_site_file" >&5 | |
1219 | . "$ac_site_file" | |
1220 | fi | |
1221 | done | |
1222 | ||
1223 | if test -r "$cache_file"; then | |
1224 | # Some versions of bash will fail to source /dev/null (special | |
1225 | # files actually), so we avoid doing that. | |
1226 | if test -f "$cache_file"; then | |
1227 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1228 | echo "$as_me: loading cache $cache_file" >&6;} | |
1229 | case $cache_file in | |
1230 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1231 | *) . ./$cache_file;; | |
1232 | esac | |
1233 | fi | |
1234 | else | |
1235 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1236 | echo "$as_me: creating cache $cache_file" >&6;} | |
1237 | >$cache_file | |
1238 | fi | |
1239 | ||
1240 | # Check that the precious variables saved in the cache have kept the same | |
1241 | # value. | |
1242 | ac_cache_corrupted=false | |
1243 | for ac_var in `(set) 2>&1 | | |
1244 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1245 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1246 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1247 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1248 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1249 | case $ac_old_set,$ac_new_set in | |
1250 | set,) | |
1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1252 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1253 | ac_cache_corrupted=: ;; | |
1254 | ,set) | |
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1256 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1257 | ac_cache_corrupted=: ;; | |
1258 | ,);; | |
1259 | *) | |
1260 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
d6416cdc RW |
1261 | # differences in whitespace do not lead to failure. |
1262 | ac_old_val_w=`echo x $ac_old_val` | |
1263 | ac_new_val_w=`echo x $ac_new_val` | |
1264 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
b7026657 | 1266 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
d6416cdc RW |
1267 | ac_cache_corrupted=: |
1268 | else | |
1269 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1270 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1271 | eval $ac_var=\$ac_old_val | |
1272 | fi | |
1273 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1274 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1275 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1276 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
1277 | fi;; |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
d6416cdc RW |
1293 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1294 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b7026657 AC |
1295 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1296 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1297 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1298 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1299 | { (exit 1); exit 1; }; } | |
1300 | fi | |
1301 | ||
1302 | ac_ext=c | |
1303 | ac_cpp='$CPP $CPPFLAGS' | |
1304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
d6416cdc RW |
1324 | |
1325 | ||
1326 | ||
b7026657 AC |
1327 | |
1328 | ||
35695fd6 AC |
1329 | ac_config_headers="$ac_config_headers cconfig.h:config.in" |
1330 | ||
1331 | ||
1332 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around | |
1333 | # it by inlining the macro's contents. | |
1334 | # This file contains common code used by all simulators. | |
1335 | # | |
1336 | # common.m4 invokes AC macros used by all simulators and by the common | |
1337 | # directory. It is intended to be included before any target specific | |
1338 | # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate | |
1339 | # the Makefile. It is intended to be invoked last. | |
1340 | # | |
1341 | # The simulator's configure.in should look like: | |
1342 | # | |
1343 | # dnl Process this file with autoconf to produce a configure script. | |
1344 | # AC_PREREQ(2.5)dnl | |
1345 | # AC_INIT(Makefile.in) | |
1346 | # AC_CONFIG_HEADER(config.h:config.in) | |
1347 | # | |
1348 | # sinclude(../common/aclocal.m4) | |
1349 | # sinclude(../common/common.m4) | |
1350 | # | |
1351 | # ... target specific stuff ... | |
b7026657 | 1352 | |
b7026657 AC |
1353 | ac_aux_dir= |
1354 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1355 | if test -f $ac_dir/install-sh; then | |
1356 | ac_aux_dir=$ac_dir | |
1357 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1358 | break | |
1359 | elif test -f $ac_dir/install.sh; then | |
1360 | ac_aux_dir=$ac_dir | |
1361 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1362 | break | |
1363 | elif test -f $ac_dir/shtool; then | |
1364 | ac_aux_dir=$ac_dir | |
1365 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1366 | break | |
1367 | fi | |
1368 | done | |
1369 | if test -z "$ac_aux_dir"; then | |
1370 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1371 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1372 | { (exit 1); exit 1; }; } | |
1373 | fi | |
1374 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1375 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1376 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1377 | ||
1378 | # Make sure we can run config.sub. | |
1379 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1380 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1381 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1382 | { (exit 1); exit 1; }; } | |
1383 | ||
1384 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1385 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1386 | if test "${ac_cv_build+set}" = set; then | |
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1388 | else | |
1389 | ac_cv_build_alias=$build_alias | |
1390 | test -z "$ac_cv_build_alias" && | |
1391 | ac_cv_build_alias=`$ac_config_guess` | |
1392 | test -z "$ac_cv_build_alias" && | |
1393 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1394 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1395 | { (exit 1); exit 1; }; } | |
1396 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1397 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1398 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1399 | { (exit 1); exit 1; }; } | |
1400 | ||
1401 | fi | |
1402 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1403 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1404 | build=$ac_cv_build | |
1405 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1406 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1407 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1408 | ||
1409 | ||
1410 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1411 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1412 | if test "${ac_cv_host+set}" = set; then | |
1413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1414 | else | |
1415 | ac_cv_host_alias=$host_alias | |
1416 | test -z "$ac_cv_host_alias" && | |
1417 | ac_cv_host_alias=$ac_cv_build_alias | |
1418 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1419 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1420 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1421 | { (exit 1); exit 1; }; } | |
1422 | ||
1423 | fi | |
1424 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1425 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1426 | host=$ac_cv_host | |
1427 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1428 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1429 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1430 | ||
1431 | ||
35695fd6 AC |
1432 | echo "$as_me:$LINENO: checking target system type" >&5 |
1433 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1434 | if test "${ac_cv_target+set}" = set; then | |
b7026657 AC |
1435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1436 | else | |
35695fd6 AC |
1437 | ac_cv_target_alias=$target_alias |
1438 | test "x$ac_cv_target_alias" = "x" && | |
1439 | ac_cv_target_alias=$ac_cv_host_alias | |
1440 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1441 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1442 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1443 | { (exit 1); exit 1; }; } | |
1444 | ||
1445 | fi | |
1446 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1447 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1448 | target=$ac_cv_target | |
1449 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1450 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1451 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1452 | ||
1453 | ||
1454 | # The aliases save the names the user supplied, while $host etc. | |
1455 | # will get canonicalized. | |
1456 | test -n "$target_alias" && | |
1457 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1458 | NONENONEs,x,x, && | |
1459 | program_prefix=${target_alias}- | |
1460 | test "$program_prefix" != NONE && | |
1461 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1462 | # Use a double $ so make ignores it. | |
1463 | test "$program_suffix" != NONE && | |
1464 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1465 | # Double any \ or $. echo might interpret backslashes. | |
1466 | # By default was `s,x,x', remove it if useless. | |
1467 | cat <<\_ACEOF >conftest.sed | |
1468 | s/[\\$]/&&/g;s/;s,x,x,$// | |
b7026657 | 1469 | _ACEOF |
35695fd6 AC |
1470 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1471 | rm conftest.sed | |
1472 | ||
1473 | ac_ext=c | |
1474 | ac_cpp='$CPP $CPPFLAGS' | |
1475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1478 | if test -n "$ac_tool_prefix"; then | |
1479 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1480 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1483 | if test "${ac_cv_prog_CC+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1485 | else |
35695fd6 AC |
1486 | if test -n "$CC"; then |
1487 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1488 | else | |
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1490 | for as_dir in $PATH | |
1491 | do | |
1492 | IFS=$as_save_IFS | |
1493 | test -z "$as_dir" && as_dir=. | |
1494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1496 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1498 | break 2 | |
1499 | fi | |
1500 | done | |
1501 | done | |
1502 | ||
b7026657 | 1503 | fi |
b7026657 | 1504 | fi |
35695fd6 AC |
1505 | CC=$ac_cv_prog_CC |
1506 | if test -n "$CC"; then | |
1507 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1508 | echo "${ECHO_T}$CC" >&6 | |
b7026657 AC |
1509 | else |
1510 | echo "$as_me:$LINENO: result: no" >&5 | |
1511 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1512 | fi |
1513 | ||
35695fd6 AC |
1514 | fi |
1515 | if test -z "$ac_cv_prog_CC"; then | |
1516 | ac_ct_CC=$CC | |
1517 | # Extract the first word of "gcc", so it can be a program name with args. | |
1518 | set dummy gcc; ac_word=$2 | |
1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1523 | else | |
35695fd6 AC |
1524 | if test -n "$ac_ct_CC"; then |
1525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b7026657 | 1526 | else |
35695fd6 AC |
1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1528 | for as_dir in $PATH | |
1529 | do | |
1530 | IFS=$as_save_IFS | |
1531 | test -z "$as_dir" && as_dir=. | |
1532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1534 | ac_cv_prog_ac_ct_CC="gcc" | |
1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1536 | break 2 | |
1537 | fi | |
1538 | done | |
1539 | done | |
b7026657 AC |
1540 | |
1541 | fi | |
b7026657 | 1542 | fi |
35695fd6 AC |
1543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1544 | if test -n "$ac_ct_CC"; then | |
1545 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1546 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1547 | else | |
1548 | echo "$as_me:$LINENO: result: no" >&5 | |
1549 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1550 | fi |
b7026657 | 1551 | |
35695fd6 AC |
1552 | CC=$ac_ct_CC |
1553 | else | |
1554 | CC="$ac_cv_prog_CC" | |
b7026657 AC |
1555 | fi |
1556 | ||
35695fd6 AC |
1557 | if test -z "$CC"; then |
1558 | if test -n "$ac_tool_prefix"; then | |
1559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1563 | if test "${ac_cv_prog_CC+set}" = set; then | |
b7026657 AC |
1564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1565 | else | |
35695fd6 AC |
1566 | if test -n "$CC"; then |
1567 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1568 | else | |
1569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1570 | for as_dir in $PATH | |
b7026657 | 1571 | do |
35695fd6 AC |
1572 | IFS=$as_save_IFS |
1573 | test -z "$as_dir" && as_dir=. | |
1574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1576 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1578 | break 2 | |
b7026657 | 1579 | fi |
35695fd6 AC |
1580 | done |
1581 | done | |
b7026657 | 1582 | |
b7026657 | 1583 | fi |
b7026657 | 1584 | fi |
35695fd6 AC |
1585 | CC=$ac_cv_prog_CC |
1586 | if test -n "$CC"; then | |
1587 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1588 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1589 | else |
35695fd6 AC |
1590 | echo "$as_me:$LINENO: result: no" >&5 |
1591 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1592 | fi |
1593 | ||
b7026657 | 1594 | fi |
35695fd6 AC |
1595 | if test -z "$ac_cv_prog_CC"; then |
1596 | ac_ct_CC=$CC | |
1597 | # Extract the first word of "cc", so it can be a program name with args. | |
1598 | set dummy cc; ac_word=$2 | |
1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1603 | else |
35695fd6 AC |
1604 | if test -n "$ac_ct_CC"; then |
1605 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1606 | else | |
1607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1608 | for as_dir in $PATH | |
b7026657 | 1609 | do |
35695fd6 AC |
1610 | IFS=$as_save_IFS |
1611 | test -z "$as_dir" && as_dir=. | |
1612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1614 | ac_cv_prog_ac_ct_CC="cc" | |
1615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1616 | break 2 | |
b7026657 | 1617 | fi |
35695fd6 AC |
1618 | done |
1619 | done | |
b7026657 | 1620 | |
b7026657 | 1621 | fi |
b7026657 | 1622 | fi |
35695fd6 AC |
1623 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1624 | if test -n "$ac_ct_CC"; then | |
1625 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1626 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1627 | else |
35695fd6 AC |
1628 | echo "$as_me:$LINENO: result: no" >&5 |
1629 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1630 | fi |
b7026657 | 1631 | |
35695fd6 | 1632 | CC=$ac_ct_CC |
b7026657 | 1633 | else |
35695fd6 | 1634 | CC="$ac_cv_prog_CC" |
b7026657 AC |
1635 | fi |
1636 | ||
35695fd6 AC |
1637 | fi |
1638 | if test -z "$CC"; then | |
1639 | # Extract the first word of "cc", so it can be a program name with args. | |
1640 | set dummy cc; ac_word=$2 | |
1641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1643 | if test "${ac_cv_prog_CC+set}" = set; then | |
1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1645 | else | |
1646 | if test -n "$CC"; then | |
1647 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1648 | else | |
1649 | ac_prog_rejected=no | |
1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1651 | for as_dir in $PATH | |
1652 | do | |
1653 | IFS=$as_save_IFS | |
1654 | test -z "$as_dir" && as_dir=. | |
1655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1657 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1658 | ac_prog_rejected=yes | |
1659 | continue | |
1660 | fi | |
1661 | ac_cv_prog_CC="cc" | |
1662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1663 | break 2 | |
1664 | fi | |
1665 | done | |
1666 | done | |
b7026657 | 1667 | |
35695fd6 AC |
1668 | if test $ac_prog_rejected = yes; then |
1669 | # We found a bogon in the path, so make sure we never use it. | |
1670 | set dummy $ac_cv_prog_CC | |
1671 | shift | |
1672 | if test $# != 0; then | |
1673 | # We chose a different compiler from the bogus one. | |
1674 | # However, it has the same basename, so the bogon will be chosen | |
1675 | # first if we set CC to just the basename; use the full file name. | |
1676 | shift | |
1677 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1678 | fi | |
1679 | fi | |
1680 | fi | |
1681 | fi | |
1682 | CC=$ac_cv_prog_CC | |
1683 | if test -n "$CC"; then | |
1684 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1685 | echo "${ECHO_T}$CC" >&6 | |
1686 | else | |
1687 | echo "$as_me:$LINENO: result: no" >&5 | |
1688 | echo "${ECHO_T}no" >&6 | |
1689 | fi | |
b7026657 | 1690 | |
35695fd6 AC |
1691 | fi |
1692 | if test -z "$CC"; then | |
1693 | if test -n "$ac_tool_prefix"; then | |
1694 | for ac_prog in cl | |
1695 | do | |
1696 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1697 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1700 | if test "${ac_cv_prog_CC+set}" = set; then | |
b7026657 AC |
1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1702 | else | |
35695fd6 AC |
1703 | if test -n "$CC"; then |
1704 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1705 | else | |
1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1707 | for as_dir in $PATH | |
1708 | do | |
1709 | IFS=$as_save_IFS | |
1710 | test -z "$as_dir" && as_dir=. | |
1711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1713 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1715 | break 2 | |
1716 | fi | |
1717 | done | |
1718 | done | |
b7026657 | 1719 | |
35695fd6 AC |
1720 | fi |
1721 | fi | |
1722 | CC=$ac_cv_prog_CC | |
1723 | if test -n "$CC"; then | |
1724 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1725 | echo "${ECHO_T}$CC" >&6 | |
1726 | else | |
1727 | echo "$as_me:$LINENO: result: no" >&5 | |
1728 | echo "${ECHO_T}no" >&6 | |
1729 | fi | |
b7026657 | 1730 | |
35695fd6 AC |
1731 | test -n "$CC" && break |
1732 | done | |
1733 | fi | |
1734 | if test -z "$CC"; then | |
1735 | ac_ct_CC=$CC | |
1736 | for ac_prog in cl | |
1737 | do | |
1738 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1739 | set dummy $ac_prog; ac_word=$2 | |
1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1744 | else | |
35695fd6 AC |
1745 | if test -n "$ac_ct_CC"; then |
1746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1747 | else | |
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1749 | for as_dir in $PATH | |
1750 | do | |
1751 | IFS=$as_save_IFS | |
1752 | test -z "$as_dir" && as_dir=. | |
1753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1755 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1757 | break 2 | |
1758 | fi | |
1759 | done | |
1760 | done | |
1761 | ||
1762 | fi | |
1763 | fi | |
1764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1765 | if test -n "$ac_ct_CC"; then | |
1766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1767 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1768 | else | |
1769 | echo "$as_me:$LINENO: result: no" >&5 | |
1770 | echo "${ECHO_T}no" >&6 | |
1771 | fi | |
1772 | ||
1773 | test -n "$ac_ct_CC" && break | |
1774 | done | |
1775 | ||
1776 | CC=$ac_ct_CC | |
1777 | fi | |
1778 | ||
1779 | fi | |
1780 | ||
1781 | ||
d6416cdc RW |
1782 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1783 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1784 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
35695fd6 AC |
1785 | See \`config.log' for more details." >&5 |
1786 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1787 | See \`config.log' for more details." >&2;} | |
d6416cdc | 1788 | { (exit 1); exit 1; }; }; } |
35695fd6 AC |
1789 | |
1790 | # Provide some information about the compiler. | |
1791 | echo "$as_me:$LINENO:" \ | |
1792 | "checking for C compiler version" >&5 | |
1793 | ac_compiler=`set X $ac_compile; echo $2` | |
1794 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1795 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1796 | ac_status=$? | |
1797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1798 | (exit $ac_status); } | |
1799 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1800 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1801 | ac_status=$? | |
1802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1803 | (exit $ac_status); } | |
1804 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1805 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1806 | ac_status=$? | |
1807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1808 | (exit $ac_status); } | |
1809 | ||
1810 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
1811 | /* confdefs.h. */ |
1812 | _ACEOF | |
1813 | cat confdefs.h >>conftest.$ac_ext | |
1814 | cat >>conftest.$ac_ext <<_ACEOF | |
1815 | /* end confdefs.h. */ | |
b7026657 AC |
1816 | |
1817 | int | |
1818 | main () | |
1819 | { | |
1820 | ||
1821 | ; | |
1822 | return 0; | |
1823 | } | |
1824 | _ACEOF | |
35695fd6 AC |
1825 | ac_clean_files_save=$ac_clean_files |
1826 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1827 | # Try to create an executable without -o first, disregard a.out. | |
1828 | # It will help us diagnose broken compilers, and finding out an intuition | |
1829 | # of exeext. | |
1830 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1831 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1832 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1833 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1834 | (eval $ac_link_default) 2>&5 | |
b7026657 AC |
1835 | ac_status=$? |
1836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
1837 | (exit $ac_status); }; then |
1838 | # Find the output, starting from the most likely. This scheme is | |
1839 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1840 | # resort. | |
1841 | ||
1842 | # Be careful to initialize this variable, since it used to be cached. | |
1843 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1844 | ac_cv_exeext= | |
1845 | # b.out is created by i960 compilers. | |
1846 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1847 | do | |
1848 | test -f "$ac_file" || continue | |
1849 | case $ac_file in | |
1850 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1851 | ;; | |
1852 | conftest.$ac_ext ) | |
1853 | # This is the source file. | |
1854 | ;; | |
1855 | [ab].out ) | |
1856 | # We found the default executable, but exeext='' is most | |
1857 | # certainly right. | |
1858 | break;; | |
1859 | *.* ) | |
1860 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1861 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1862 | # but it would be cool to find out if it's true. Does anybody | |
1863 | # maintain Libtool? --akim. | |
1864 | export ac_cv_exeext | |
1865 | break;; | |
1866 | * ) | |
1867 | break;; | |
1868 | esac | |
1869 | done | |
b7026657 AC |
1870 | else |
1871 | echo "$as_me: failed program was:" >&5 | |
1872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | ||
d6416cdc RW |
1874 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1875 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35695fd6 AC |
1876 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1877 | See \`config.log' for more details." >&5 | |
1878 | echo "$as_me: error: C compiler cannot create executables | |
1879 | See \`config.log' for more details." >&2;} | |
d6416cdc | 1880 | { (exit 77); exit 77; }; }; } |
b7026657 | 1881 | fi |
c906108c | 1882 | |
35695fd6 AC |
1883 | ac_exeext=$ac_cv_exeext |
1884 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1885 | echo "${ECHO_T}$ac_file" >&6 | |
c906108c | 1886 | |
35695fd6 AC |
1887 | # Check the compiler produces executables we can run. If not, either |
1888 | # the compiler is broken, or we cross compile. | |
1889 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1890 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1891 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1892 | # If not cross compiling, check that we can run a simple program. | |
1893 | if test "$cross_compiling" != yes; then | |
1894 | if { ac_try='./$ac_file' | |
1895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1896 | (eval $ac_try) 2>&5 | |
1897 | ac_status=$? | |
1898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1899 | (exit $ac_status); }; }; then | |
1900 | cross_compiling=no | |
1901 | else | |
1902 | if test "$cross_compiling" = maybe; then | |
1903 | cross_compiling=yes | |
1904 | else | |
d6416cdc RW |
1905 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1906 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1907 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
35695fd6 AC |
1908 | If you meant to cross compile, use \`--host'. |
1909 | See \`config.log' for more details." >&5 | |
1910 | echo "$as_me: error: cannot run C compiled programs. | |
1911 | If you meant to cross compile, use \`--host'. | |
1912 | See \`config.log' for more details." >&2;} | |
d6416cdc | 1913 | { (exit 1); exit 1; }; }; } |
35695fd6 AC |
1914 | fi |
1915 | fi | |
c906108c | 1916 | fi |
35695fd6 AC |
1917 | echo "$as_me:$LINENO: result: yes" >&5 |
1918 | echo "${ECHO_T}yes" >&6 | |
c906108c | 1919 | |
35695fd6 AC |
1920 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1921 | ac_clean_files=$ac_clean_files_save | |
1922 | # Check the compiler produces executables we can run. If not, either | |
1923 | # the compiler is broken, or we cross compile. | |
1924 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1925 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1926 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1927 | echo "${ECHO_T}$cross_compiling" >&6 | |
b7026657 | 1928 | |
35695fd6 AC |
1929 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1930 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1932 | (eval $ac_link) 2>&5 | |
1933 | ac_status=$? | |
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1935 | (exit $ac_status); }; then | |
1936 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1937 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1938 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1939 | # `rm'. | |
1940 | for ac_file in conftest.exe conftest conftest.*; do | |
1941 | test -f "$ac_file" || continue | |
1942 | case $ac_file in | |
1943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1944 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1945 | export ac_cv_exeext | |
1946 | break;; | |
1947 | * ) break;; | |
1948 | esac | |
1949 | done | |
c906108c | 1950 | else |
d6416cdc RW |
1951 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1952 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1953 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
35695fd6 AC |
1954 | See \`config.log' for more details." >&5 |
1955 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1956 | See \`config.log' for more details." >&2;} | |
d6416cdc | 1957 | { (exit 1); exit 1; }; }; } |
c906108c | 1958 | fi |
c906108c | 1959 | |
35695fd6 AC |
1960 | rm -f conftest$ac_cv_exeext |
1961 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1962 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1963 | |
35695fd6 AC |
1964 | rm -f conftest.$ac_ext |
1965 | EXEEXT=$ac_cv_exeext | |
1966 | ac_exeext=$EXEEXT | |
1967 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1968 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1969 | if test "${ac_cv_objext+set}" = set; then | |
1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1971 | else |
b7026657 AC |
1972 | cat >conftest.$ac_ext <<_ACEOF |
1973 | /* confdefs.h. */ | |
1974 | _ACEOF | |
1975 | cat confdefs.h >>conftest.$ac_ext | |
1976 | cat >>conftest.$ac_ext <<_ACEOF | |
1977 | /* end confdefs.h. */ | |
c906108c | 1978 | |
b7026657 AC |
1979 | int |
1980 | main () | |
1981 | { | |
35695fd6 AC |
1982 | |
1983 | ; | |
1984 | return 0; | |
b7026657 AC |
1985 | } |
1986 | _ACEOF | |
35695fd6 AC |
1987 | rm -f conftest.o conftest.obj |
1988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1989 | (eval $ac_compile) 2>&5 | |
b7026657 AC |
1990 | ac_status=$? |
1991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
1992 | (exit $ac_status); }; then |
1993 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1994 | case $ac_file in | |
1995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1997 | break;; | |
1998 | esac | |
1999 | done | |
c906108c | 2000 | else |
35695fd6 | 2001 | echo "$as_me: failed program was:" >&5 |
b7026657 AC |
2002 | sed 's/^/| /' conftest.$ac_ext >&5 |
2003 | ||
d6416cdc RW |
2004 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2005 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
35695fd6 AC |
2006 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2007 | See \`config.log' for more details." >&5 | |
2008 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2009 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2010 | { (exit 1); exit 1; }; }; } |
c906108c | 2011 | fi |
c906108c | 2012 | |
35695fd6 | 2013 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
b7026657 | 2014 | fi |
35695fd6 AC |
2015 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2016 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2017 | OBJEXT=$ac_cv_objext | |
2018 | ac_objext=$OBJEXT | |
2019 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2020 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2021 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
b7026657 AC |
2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2023 | else | |
2024 | cat >conftest.$ac_ext <<_ACEOF | |
2025 | /* confdefs.h. */ | |
2026 | _ACEOF | |
2027 | cat confdefs.h >>conftest.$ac_ext | |
2028 | cat >>conftest.$ac_ext <<_ACEOF | |
2029 | /* end confdefs.h. */ | |
2030 | ||
2031 | int | |
2032 | main () | |
2033 | { | |
35695fd6 AC |
2034 | #ifndef __GNUC__ |
2035 | choke me | |
b7026657 AC |
2036 | #endif |
2037 | ||
2038 | ; | |
2039 | return 0; | |
2040 | } | |
2041 | _ACEOF | |
2042 | rm -f conftest.$ac_objext | |
2043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2044 | (eval $ac_compile) 2>conftest.er1 | |
2045 | ac_status=$? | |
2046 | grep -v '^ *+' conftest.er1 >conftest.err | |
2047 | rm -f conftest.er1 | |
2048 | cat conftest.err >&5 | |
2049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2050 | (exit $ac_status); } && | |
20e95c23 DJ |
2051 | { ac_try='test -z "$ac_c_werror_flag" |
2052 | || test ! -s conftest.err' | |
b7026657 AC |
2053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2054 | (eval $ac_try) 2>&5 | |
2055 | ac_status=$? | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); }; } && | |
2058 | { ac_try='test -s conftest.$ac_objext' | |
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2060 | (eval $ac_try) 2>&5 | |
2061 | ac_status=$? | |
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2063 | (exit $ac_status); }; }; then | |
35695fd6 | 2064 | ac_compiler_gnu=yes |
c906108c | 2065 | else |
b7026657 AC |
2066 | echo "$as_me: failed program was:" >&5 |
2067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2068 | ||
35695fd6 | 2069 | ac_compiler_gnu=no |
c906108c | 2070 | fi |
b7026657 | 2071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
35695fd6 | 2072 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c SS |
2073 | |
2074 | fi | |
35695fd6 AC |
2075 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2076 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2077 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2078 | ac_test_CFLAGS=${CFLAGS+set} | |
2079 | ac_save_CFLAGS=$CFLAGS | |
2080 | CFLAGS="-g" | |
2081 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2082 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2083 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2085 | else | |
b7026657 AC |
2086 | cat >conftest.$ac_ext <<_ACEOF |
2087 | /* confdefs.h. */ | |
2088 | _ACEOF | |
2089 | cat confdefs.h >>conftest.$ac_ext | |
2090 | cat >>conftest.$ac_ext <<_ACEOF | |
2091 | /* end confdefs.h. */ | |
b7026657 | 2092 | |
35695fd6 AC |
2093 | int |
2094 | main () | |
2095 | { | |
2096 | ||
2097 | ; | |
2098 | return 0; | |
2099 | } | |
b7026657 AC |
2100 | _ACEOF |
2101 | rm -f conftest.$ac_objext | |
2102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2103 | (eval $ac_compile) 2>conftest.er1 | |
2104 | ac_status=$? | |
2105 | grep -v '^ *+' conftest.er1 >conftest.err | |
2106 | rm -f conftest.er1 | |
2107 | cat conftest.err >&5 | |
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2109 | (exit $ac_status); } && | |
20e95c23 DJ |
2110 | { ac_try='test -z "$ac_c_werror_flag" |
2111 | || test ! -s conftest.err' | |
b7026657 AC |
2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2113 | (eval $ac_try) 2>&5 | |
2114 | ac_status=$? | |
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2116 | (exit $ac_status); }; } && | |
2117 | { ac_try='test -s conftest.$ac_objext' | |
2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2119 | (eval $ac_try) 2>&5 | |
2120 | ac_status=$? | |
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2122 | (exit $ac_status); }; }; then | |
35695fd6 | 2123 | ac_cv_prog_cc_g=yes |
c906108c | 2124 | else |
b7026657 AC |
2125 | echo "$as_me: failed program was:" >&5 |
2126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2127 | ||
35695fd6 | 2128 | ac_cv_prog_cc_g=no |
c906108c | 2129 | fi |
b7026657 | 2130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2131 | fi |
35695fd6 AC |
2132 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2133 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2134 | if test "$ac_test_CFLAGS" = set; then | |
2135 | CFLAGS=$ac_save_CFLAGS | |
2136 | elif test $ac_cv_prog_cc_g = yes; then | |
2137 | if test "$GCC" = yes; then | |
2138 | CFLAGS="-g -O2" | |
2139 | else | |
2140 | CFLAGS="-g" | |
2141 | fi | |
2142 | else | |
2143 | if test "$GCC" = yes; then | |
2144 | CFLAGS="-O2" | |
2145 | else | |
2146 | CFLAGS= | |
2147 | fi | |
2148 | fi | |
2149 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2150 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2151 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
b7026657 AC |
2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2153 | else | |
35695fd6 AC |
2154 | ac_cv_prog_cc_stdc=no |
2155 | ac_save_CC=$CC | |
2156 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2157 | /* confdefs.h. */ |
2158 | _ACEOF | |
2159 | cat confdefs.h >>conftest.$ac_ext | |
2160 | cat >>conftest.$ac_ext <<_ACEOF | |
2161 | /* end confdefs.h. */ | |
35695fd6 AC |
2162 | #include <stdarg.h> |
2163 | #include <stdio.h> | |
2164 | #include <sys/types.h> | |
2165 | #include <sys/stat.h> | |
2166 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2167 | struct buf { int x; }; | |
2168 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2169 | static char *e (p, i) | |
2170 | char **p; | |
2171 | int i; | |
2172 | { | |
2173 | return p[i]; | |
2174 | } | |
2175 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2176 | { | |
2177 | char *s; | |
2178 | va_list v; | |
2179 | va_start (v,p); | |
2180 | s = g (p, va_arg (v,int)); | |
2181 | va_end (v); | |
2182 | return s; | |
2183 | } | |
b7026657 | 2184 | |
35695fd6 AC |
2185 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2186 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2187 | These don't provoke an error unfortunately, instead are silently treated | |
2188 | as 'x'. The following induces an error, until -std1 is added to get | |
2189 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2190 | array size at least. It's necessary to write '\x00'==0 to get something | |
2191 | that's true only with -std1. */ | |
2192 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2193 | ||
2194 | int test (int i, double x); | |
2195 | struct s1 {int (*f) (int a);}; | |
2196 | struct s2 {int (*f) (double a);}; | |
2197 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2198 | int argc; | |
2199 | char **argv; | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2204 | ; | |
2205 | return 0; | |
2206 | } | |
b7026657 | 2207 | _ACEOF |
35695fd6 AC |
2208 | # Don't try gcc -ansi; that turns off useful extensions and |
2209 | # breaks some systems' header files. | |
2210 | # AIX -qlanglvl=ansi | |
2211 | # Ultrix and OSF/1 -std1 | |
2212 | # HP-UX 10.20 and later -Ae | |
2213 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2214 | # SVR4 -Xc -D__EXTENSIONS__ | |
2215 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2216 | do | |
2217 | CC="$ac_save_CC $ac_arg" | |
2218 | rm -f conftest.$ac_objext | |
b7026657 AC |
2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2220 | (eval $ac_compile) 2>conftest.er1 | |
2221 | ac_status=$? | |
2222 | grep -v '^ *+' conftest.er1 >conftest.err | |
2223 | rm -f conftest.er1 | |
2224 | cat conftest.err >&5 | |
2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2226 | (exit $ac_status); } && | |
20e95c23 DJ |
2227 | { ac_try='test -z "$ac_c_werror_flag" |
2228 | || test ! -s conftest.err' | |
b7026657 AC |
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2230 | (eval $ac_try) 2>&5 | |
2231 | ac_status=$? | |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); }; } && | |
2234 | { ac_try='test -s conftest.$ac_objext' | |
2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2236 | (eval $ac_try) 2>&5 | |
2237 | ac_status=$? | |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2239 | (exit $ac_status); }; }; then | |
35695fd6 AC |
2240 | ac_cv_prog_cc_stdc=$ac_arg |
2241 | break | |
b7026657 AC |
2242 | else |
2243 | echo "$as_me: failed program was:" >&5 | |
2244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2245 | ||
b7026657 | 2246 | fi |
35695fd6 AC |
2247 | rm -f conftest.err conftest.$ac_objext |
2248 | done | |
2249 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2250 | CC=$ac_save_CC | |
b7026657 AC |
2251 | |
2252 | fi | |
2253 | ||
35695fd6 AC |
2254 | case "x$ac_cv_prog_cc_stdc" in |
2255 | x|xno) | |
2256 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2257 | echo "${ECHO_T}none needed" >&6 ;; | |
2258 | *) | |
2259 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2260 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2261 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2262 | esac | |
b7026657 | 2263 | |
35695fd6 AC |
2264 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2265 | # in C++ we need to declare it. In case someone uses the same compiler | |
2266 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2267 | # the declaration of exit, since it's the most demanding environment. | |
2268 | cat >conftest.$ac_ext <<_ACEOF | |
2269 | #ifndef __cplusplus | |
2270 | choke me | |
2271 | #endif | |
2272 | _ACEOF | |
2273 | rm -f conftest.$ac_objext | |
2274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2275 | (eval $ac_compile) 2>conftest.er1 | |
2276 | ac_status=$? | |
2277 | grep -v '^ *+' conftest.er1 >conftest.err | |
2278 | rm -f conftest.er1 | |
2279 | cat conftest.err >&5 | |
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2281 | (exit $ac_status); } && | |
20e95c23 DJ |
2282 | { ac_try='test -z "$ac_c_werror_flag" |
2283 | || test ! -s conftest.err' | |
35695fd6 AC |
2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2285 | (eval $ac_try) 2>&5 | |
2286 | ac_status=$? | |
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2288 | (exit $ac_status); }; } && | |
2289 | { ac_try='test -s conftest.$ac_objext' | |
2290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2291 | (eval $ac_try) 2>&5 | |
2292 | ac_status=$? | |
2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2294 | (exit $ac_status); }; }; then | |
2295 | for ac_declaration in \ | |
2296 | '' \ | |
2297 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2298 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2299 | 'extern "C" void exit (int) throw ();' \ | |
2300 | 'extern "C" void exit (int);' \ | |
2301 | 'void exit (int);' | |
2302 | do | |
b7026657 AC |
2303 | cat >conftest.$ac_ext <<_ACEOF |
2304 | /* confdefs.h. */ | |
2305 | _ACEOF | |
2306 | cat confdefs.h >>conftest.$ac_ext | |
2307 | cat >>conftest.$ac_ext <<_ACEOF | |
2308 | /* end confdefs.h. */ | |
35695fd6 AC |
2309 | $ac_declaration |
2310 | #include <stdlib.h> | |
b7026657 AC |
2311 | int |
2312 | main () | |
2313 | { | |
35695fd6 | 2314 | exit (42); |
b7026657 AC |
2315 | ; |
2316 | return 0; | |
2317 | } | |
2318 | _ACEOF | |
2319 | rm -f conftest.$ac_objext | |
2320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2321 | (eval $ac_compile) 2>conftest.er1 | |
2322 | ac_status=$? | |
2323 | grep -v '^ *+' conftest.er1 >conftest.err | |
2324 | rm -f conftest.er1 | |
2325 | cat conftest.err >&5 | |
2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2327 | (exit $ac_status); } && | |
20e95c23 DJ |
2328 | { ac_try='test -z "$ac_c_werror_flag" |
2329 | || test ! -s conftest.err' | |
b7026657 AC |
2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2331 | (eval $ac_try) 2>&5 | |
2332 | ac_status=$? | |
2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2334 | (exit $ac_status); }; } && | |
2335 | { ac_try='test -s conftest.$ac_objext' | |
2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2337 | (eval $ac_try) 2>&5 | |
2338 | ac_status=$? | |
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2340 | (exit $ac_status); }; }; then | |
35695fd6 | 2341 | : |
c906108c | 2342 | else |
b7026657 AC |
2343 | echo "$as_me: failed program was:" >&5 |
2344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2345 | |
35695fd6 | 2346 | continue |
c906108c | 2347 | fi |
b7026657 | 2348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
2349 | cat >conftest.$ac_ext <<_ACEOF |
2350 | /* confdefs.h. */ | |
2351 | _ACEOF | |
2352 | cat confdefs.h >>conftest.$ac_ext | |
2353 | cat >>conftest.$ac_ext <<_ACEOF | |
2354 | /* end confdefs.h. */ | |
35695fd6 | 2355 | $ac_declaration |
b7026657 AC |
2356 | int |
2357 | main () | |
2358 | { | |
35695fd6 | 2359 | exit (42); |
b7026657 AC |
2360 | ; |
2361 | return 0; | |
2362 | } | |
2363 | _ACEOF | |
2364 | rm -f conftest.$ac_objext | |
2365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2366 | (eval $ac_compile) 2>conftest.er1 | |
2367 | ac_status=$? | |
2368 | grep -v '^ *+' conftest.er1 >conftest.err | |
2369 | rm -f conftest.er1 | |
2370 | cat conftest.err >&5 | |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2372 | (exit $ac_status); } && | |
20e95c23 DJ |
2373 | { ac_try='test -z "$ac_c_werror_flag" |
2374 | || test ! -s conftest.err' | |
b7026657 AC |
2375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2376 | (eval $ac_try) 2>&5 | |
2377 | ac_status=$? | |
2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2379 | (exit $ac_status); }; } && | |
2380 | { ac_try='test -s conftest.$ac_objext' | |
2381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2382 | (eval $ac_try) 2>&5 | |
2383 | ac_status=$? | |
2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2385 | (exit $ac_status); }; }; then | |
35695fd6 | 2386 | break |
c906108c | 2387 | else |
b7026657 AC |
2388 | echo "$as_me: failed program was:" >&5 |
2389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2390 | |
b7026657 AC |
2391 | fi |
2392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35695fd6 AC |
2393 | done |
2394 | rm -f conftest* | |
2395 | if test -n "$ac_declaration"; then | |
2396 | echo '#ifdef __cplusplus' >>confdefs.h | |
2397 | echo $ac_declaration >>confdefs.h | |
2398 | echo '#endif' >>confdefs.h | |
c906108c | 2399 | fi |
35695fd6 | 2400 | |
b7026657 | 2401 | else |
35695fd6 AC |
2402 | echo "$as_me: failed program was:" >&5 |
2403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2404 | ||
2405 | fi | |
2406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2407 | ac_ext=c | |
2408 | ac_cpp='$CPP $CPPFLAGS' | |
2409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2412 | ||
2413 | # Find a good install program. We prefer a C program (faster), | |
2414 | # so one script is as good as another. But avoid the broken or | |
2415 | # incompatible versions: | |
2416 | # SysV /etc/install, /usr/sbin/install | |
2417 | # SunOS /usr/etc/install | |
2418 | # IRIX /sbin/install | |
2419 | # AIX /bin/install | |
2420 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2421 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2422 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2423 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2424 | # OS/2's system install, which has a completely different semantic | |
2425 | # ./install, which can be erroneously created by make from ./install.sh. | |
2426 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2427 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2428 | if test -z "$INSTALL"; then | |
2429 | if test "${ac_cv_path_install+set}" = set; then | |
2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2431 | else | |
2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2433 | for as_dir in $PATH | |
2434 | do | |
2435 | IFS=$as_save_IFS | |
2436 | test -z "$as_dir" && as_dir=. | |
2437 | # Account for people who put trailing slashes in PATH elements. | |
2438 | case $as_dir/ in | |
2439 | ./ | .// | /cC/* | \ | |
2440 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2441 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2442 | /usr/ucb/* ) ;; | |
2443 | *) | |
2444 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2445 | # Don't use installbsd from OSF since it installs stuff as root | |
2446 | # by default. | |
2447 | for ac_prog in ginstall scoinst install; do | |
2448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2449 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2450 | if test $ac_prog = install && | |
2451 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2452 | # AIX install. It has an incompatible calling convention. | |
2453 | : | |
2454 | elif test $ac_prog = install && | |
2455 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2456 | # program-specific install script used by HP pwplus--don't use. | |
2457 | : | |
2458 | else | |
2459 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2460 | break 3 | |
2461 | fi | |
2462 | fi | |
2463 | done | |
2464 | done | |
2465 | ;; | |
2466 | esac | |
2467 | done | |
b7026657 | 2468 | |
c906108c SS |
2469 | |
2470 | fi | |
35695fd6 AC |
2471 | if test "${ac_cv_path_install+set}" = set; then |
2472 | INSTALL=$ac_cv_path_install | |
2473 | else | |
2474 | # As a last resort, use the slow shell script. We don't cache a | |
2475 | # path for INSTALL within a source directory, because that will | |
2476 | # break other packages using the cache if that directory is | |
2477 | # removed, or if the path is relative. | |
2478 | INSTALL=$ac_install_sh | |
2479 | fi | |
2480 | fi | |
2481 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2482 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c | 2483 | |
35695fd6 AC |
2484 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2485 | # It thinks the first close brace ends the variable substitution. | |
2486 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2487 | ||
2488 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2489 | ||
2490 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2491 | ||
2492 | ||
2493 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
2494 | if test "x$cross_compiling" = "xno"; then | |
2495 | CC_FOR_BUILD='$(CC)' | |
2496 | else | |
2497 | CC_FOR_BUILD=gcc | |
2498 | fi | |
2499 | ||
2500 | ||
2501 | ||
2502 | ||
2503 | AR=${AR-ar} | |
2504 | ||
2505 | if test -n "$ac_tool_prefix"; then | |
2506 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2507 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2510 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
b7026657 AC |
2511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2512 | else | |
35695fd6 AC |
2513 | if test -n "$RANLIB"; then |
2514 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2515 | else | |
2516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2517 | for as_dir in $PATH | |
2518 | do | |
2519 | IFS=$as_save_IFS | |
2520 | test -z "$as_dir" && as_dir=. | |
2521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2523 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2525 | break 2 | |
2526 | fi | |
2527 | done | |
2528 | done | |
2529 | ||
2530 | fi | |
2531 | fi | |
2532 | RANLIB=$ac_cv_prog_RANLIB | |
2533 | if test -n "$RANLIB"; then | |
2534 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2535 | echo "${ECHO_T}$RANLIB" >&6 | |
2536 | else | |
2537 | echo "$as_me:$LINENO: result: no" >&5 | |
2538 | echo "${ECHO_T}no" >&6 | |
2539 | fi | |
2540 | ||
2541 | fi | |
2542 | if test -z "$ac_cv_prog_RANLIB"; then | |
2543 | ac_ct_RANLIB=$RANLIB | |
2544 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2545 | set dummy ranlib; ac_word=$2 | |
2546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2548 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2550 | else | |
2551 | if test -n "$ac_ct_RANLIB"; then | |
2552 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2553 | else | |
2554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2555 | for as_dir in $PATH | |
2556 | do | |
2557 | IFS=$as_save_IFS | |
2558 | test -z "$as_dir" && as_dir=. | |
2559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2561 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2563 | break 2 | |
2564 | fi | |
2565 | done | |
2566 | done | |
2567 | ||
2568 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2569 | fi | |
2570 | fi | |
2571 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2572 | if test -n "$ac_ct_RANLIB"; then | |
2573 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2574 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2575 | else | |
2576 | echo "$as_me:$LINENO: result: no" >&5 | |
2577 | echo "${ECHO_T}no" >&6 | |
2578 | fi | |
2579 | ||
2580 | RANLIB=$ac_ct_RANLIB | |
2581 | else | |
2582 | RANLIB="$ac_cv_prog_RANLIB" | |
2583 | fi | |
2584 | ||
2585 | ||
2586 | ALL_LINGUAS= | |
2f0122dc DJ |
2587 | # If we haven't got the data from the intl directory, |
2588 | # assume NLS is disabled. | |
2589 | USE_NLS=no | |
2590 | LIBINTL= | |
2591 | LIBINTL_DEP= | |
2592 | INCINTL= | |
2593 | XGETTEXT= | |
2594 | GMSGFMT= | |
2595 | POSUB= | |
e85e3205 RE |
2596 | |
2597 | if test -f ../../intl/config.intl; then | |
2598 | . ../../intl/config.intl | |
2f0122dc DJ |
2599 | fi |
2600 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2601 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2602 | if test x"$USE_NLS" != xyes; then | |
2603 | echo "$as_me:$LINENO: result: no" >&5 | |
2604 | echo "${ECHO_T}no" >&6 | |
2605 | else | |
2606 | echo "$as_me:$LINENO: result: yes" >&5 | |
2607 | echo "${ECHO_T}yes" >&6 | |
2608 | ||
2609 | cat >>confdefs.h <<\_ACEOF | |
2610 | #define ENABLE_NLS 1 | |
2611 | _ACEOF | |
2612 | ||
2613 | ||
2614 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
2615 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2616 | # Look for .po and .gmo files in the source directory. | |
2617 | CATALOGS= | |
2618 | XLINGUAS= | |
2619 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2620 | # If there aren't any .gmo files the shell will give us the | |
2621 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2622 | # weeded out. | |
2623 | case "$cat" in *\**) | |
2624 | continue;; | |
2625 | esac | |
2626 | # The quadruple backslash is collapsed to a double backslash | |
2627 | # by the backticks, then collapsed again by the double quotes, | |
2628 | # leaving us with one backslash in the sed expression (right | |
2629 | # before the dot that mustn't act as a wildcard). | |
2630 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2631 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2632 | # The user is allowed to set LINGUAS to a list of languages to | |
2633 | # install catalogs for. If it's empty that means "all of them." | |
2634 | if test "x$LINGUAS" = x; then | |
2635 | CATALOGS="$CATALOGS $cat" | |
2636 | XLINGUAS="$XLINGUAS $lang" | |
2637 | else | |
2638 | case "$LINGUAS" in *$lang*) | |
2639 | CATALOGS="$CATALOGS $cat" | |
2640 | XLINGUAS="$XLINGUAS $lang" | |
2641 | ;; | |
2642 | esac | |
2643 | fi | |
2644 | done | |
2645 | LINGUAS="$XLINGUAS" | |
2646 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
2647 | echo "${ECHO_T}$LINGUAS" >&6 | |
2648 | ||
2649 | ||
2650 | DATADIRNAME=share | |
2651 | ||
2652 | INSTOBJEXT=.mo | |
2653 | ||
2654 | GENCAT=gencat | |
2655 | ||
2656 | CATOBJEXT=.gmo | |
2657 | ||
2658 | fi | |
c906108c | 2659 | |
20e95c23 DJ |
2660 | # Check for common headers. |
2661 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
2662 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
c906108c | 2663 | |
35695fd6 AC |
2664 | ac_ext=c |
2665 | ac_cpp='$CPP $CPPFLAGS' | |
2666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2669 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2670 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2671 | # On Suns, sometimes $CPP names a directory. | |
2672 | if test -n "$CPP" && test -d "$CPP"; then | |
2673 | CPP= | |
2674 | fi | |
2675 | if test -z "$CPP"; then | |
2676 | if test "${ac_cv_prog_CPP+set}" = set; then | |
b7026657 | 2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 2678 | else |
35695fd6 AC |
2679 | # Double quotes because CPP needs to be expanded |
2680 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2681 | do | |
2682 | ac_preproc_ok=false | |
2683 | for ac_c_preproc_warn_flag in '' yes | |
2684 | do | |
2685 | # Use a header file that comes with gcc, so configuring glibc | |
2686 | # with a fresh cross-compiler works. | |
2687 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2688 | # <limits.h> exists even on freestanding compilers. | |
2689 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2690 | # not just through cpp. "Syntax error" is here to catch this case. | |
b7026657 AC |
2691 | cat >conftest.$ac_ext <<_ACEOF |
2692 | /* confdefs.h. */ | |
2693 | _ACEOF | |
2694 | cat confdefs.h >>conftest.$ac_ext | |
2695 | cat >>conftest.$ac_ext <<_ACEOF | |
2696 | /* end confdefs.h. */ | |
35695fd6 AC |
2697 | #ifdef __STDC__ |
2698 | # include <limits.h> | |
c906108c | 2699 | #else |
35695fd6 | 2700 | # include <assert.h> |
c906108c | 2701 | #endif |
35695fd6 | 2702 | Syntax error |
b7026657 | 2703 | _ACEOF |
35695fd6 AC |
2704 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2705 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2706 | ac_status=$? | |
2707 | grep -v '^ *+' conftest.er1 >conftest.err | |
2708 | rm -f conftest.er1 | |
2709 | cat conftest.err >&5 | |
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2711 | (exit $ac_status); } >/dev/null; then | |
2712 | if test -s conftest.err; then | |
2713 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2714 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2715 | else | |
2716 | ac_cpp_err= | |
2717 | fi | |
c906108c | 2718 | else |
35695fd6 | 2719 | ac_cpp_err=yes |
c906108c | 2720 | fi |
35695fd6 AC |
2721 | if test -z "$ac_cpp_err"; then |
2722 | : | |
2723 | else | |
2724 | echo "$as_me: failed program was:" >&5 | |
2725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2726 | |
35695fd6 AC |
2727 | # Broken: fails on valid input. |
2728 | continue | |
c906108c | 2729 | fi |
35695fd6 AC |
2730 | rm -f conftest.err conftest.$ac_ext |
2731 | ||
2732 | # OK, works on sane cases. Now check whether non-existent headers | |
2733 | # can be detected and how. | |
b7026657 AC |
2734 | cat >conftest.$ac_ext <<_ACEOF |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
35695fd6 | 2740 | #include <ac_nonexistent.h> |
b7026657 | 2741 | _ACEOF |
35695fd6 AC |
2742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
2744 | ac_status=$? |
2745 | grep -v '^ *+' conftest.er1 >conftest.err | |
2746 | rm -f conftest.er1 | |
2747 | cat conftest.err >&5 | |
2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
2749 | (exit $ac_status); } >/dev/null; then |
2750 | if test -s conftest.err; then | |
2751 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2752 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2753 | else | |
2754 | ac_cpp_err= | |
2755 | fi | |
2756 | else | |
2757 | ac_cpp_err=yes | |
2758 | fi | |
2759 | if test -z "$ac_cpp_err"; then | |
2760 | # Broken: success on invalid input. | |
2761 | continue | |
b7026657 AC |
2762 | else |
2763 | echo "$as_me: failed program was:" >&5 | |
2764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2765 | ||
35695fd6 AC |
2766 | # Passes both tests. |
2767 | ac_preproc_ok=: | |
2768 | break | |
b7026657 | 2769 | fi |
35695fd6 AC |
2770 | rm -f conftest.err conftest.$ac_ext |
2771 | ||
2772 | done | |
2773 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2774 | rm -f conftest.err conftest.$ac_ext | |
2775 | if $ac_preproc_ok; then | |
2776 | break | |
b7026657 | 2777 | fi |
b7026657 | 2778 | |
35695fd6 AC |
2779 | done |
2780 | ac_cv_prog_CPP=$CPP | |
c906108c | 2781 | |
c906108c | 2782 | fi |
35695fd6 | 2783 | CPP=$ac_cv_prog_CPP |
c906108c | 2784 | else |
35695fd6 AC |
2785 | ac_cv_prog_CPP=$CPP |
2786 | fi | |
2787 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2788 | echo "${ECHO_T}$CPP" >&6 | |
2789 | ac_preproc_ok=false | |
2790 | for ac_c_preproc_warn_flag in '' yes | |
2791 | do | |
2792 | # Use a header file that comes with gcc, so configuring glibc | |
2793 | # with a fresh cross-compiler works. | |
2794 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2795 | # <limits.h> exists even on freestanding compilers. | |
2796 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2797 | # not just through cpp. "Syntax error" is here to catch this case. | |
b7026657 AC |
2798 | cat >conftest.$ac_ext <<_ACEOF |
2799 | /* confdefs.h. */ | |
2800 | _ACEOF | |
2801 | cat confdefs.h >>conftest.$ac_ext | |
2802 | cat >>conftest.$ac_ext <<_ACEOF | |
2803 | /* end confdefs.h. */ | |
35695fd6 AC |
2804 | #ifdef __STDC__ |
2805 | # include <limits.h> | |
2806 | #else | |
2807 | # include <assert.h> | |
2808 | #endif | |
2809 | Syntax error | |
b7026657 | 2810 | _ACEOF |
35695fd6 AC |
2811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 | 2813 | ac_status=$? |
35695fd6 AC |
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
2815 | rm -f conftest.er1 | |
2816 | cat conftest.err >&5 | |
b7026657 | 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
2818 | (exit $ac_status); } >/dev/null; then |
2819 | if test -s conftest.err; then | |
2820 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2822 | else | |
2823 | ac_cpp_err= | |
2824 | fi | |
c906108c | 2825 | else |
35695fd6 AC |
2826 | ac_cpp_err=yes |
2827 | fi | |
2828 | if test -z "$ac_cpp_err"; then | |
2829 | : | |
2830 | else | |
2831 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
2832 | sed 's/^/| /' conftest.$ac_ext >&5 |
2833 | ||
35695fd6 AC |
2834 | # Broken: fails on valid input. |
2835 | continue | |
c906108c | 2836 | fi |
35695fd6 | 2837 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2838 | |
35695fd6 AC |
2839 | # OK, works on sane cases. Now check whether non-existent headers |
2840 | # can be detected and how. | |
2841 | cat >conftest.$ac_ext <<_ACEOF | |
2842 | /* confdefs.h. */ | |
b7026657 | 2843 | _ACEOF |
35695fd6 AC |
2844 | cat confdefs.h >>conftest.$ac_ext |
2845 | cat >>conftest.$ac_ext <<_ACEOF | |
2846 | /* end confdefs.h. */ | |
2847 | #include <ac_nonexistent.h> | |
2848 | _ACEOF | |
2849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2851 | ac_status=$? | |
2852 | grep -v '^ *+' conftest.er1 >conftest.err | |
2853 | rm -f conftest.er1 | |
2854 | cat conftest.err >&5 | |
2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2856 | (exit $ac_status); } >/dev/null; then | |
2857 | if test -s conftest.err; then | |
2858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2860 | else | |
2861 | ac_cpp_err= | |
2862 | fi | |
2863 | else | |
2864 | ac_cpp_err=yes | |
2865 | fi | |
2866 | if test -z "$ac_cpp_err"; then | |
2867 | # Broken: success on invalid input. | |
2868 | continue | |
2869 | else | |
2870 | echo "$as_me: failed program was:" >&5 | |
2871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 2872 | |
35695fd6 AC |
2873 | # Passes both tests. |
2874 | ac_preproc_ok=: | |
2875 | break | |
2876 | fi | |
2877 | rm -f conftest.err conftest.$ac_ext | |
c906108c | 2878 | |
35695fd6 AC |
2879 | done |
2880 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2881 | rm -f conftest.err conftest.$ac_ext | |
2882 | if $ac_preproc_ok; then | |
2883 | : | |
2884 | else | |
d6416cdc RW |
2885 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2886 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2887 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
35695fd6 AC |
2888 | See \`config.log' for more details." >&5 |
2889 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2890 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2891 | { (exit 1); exit 1; }; }; } |
c906108c SS |
2892 | fi |
2893 | ||
35695fd6 AC |
2894 | ac_ext=c |
2895 | ac_cpp='$CPP $CPPFLAGS' | |
2896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b7026657 AC |
2899 | |
2900 | ||
35695fd6 AC |
2901 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2902 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2903 | if test "${ac_cv_prog_egrep+set}" = set; then | |
b7026657 | 2904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
35695fd6 AC |
2905 | else |
2906 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2907 | then ac_cv_prog_egrep='grep -E' | |
2908 | else ac_cv_prog_egrep='egrep' | |
2909 | fi | |
b7026657 | 2910 | fi |
35695fd6 AC |
2911 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2912 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2913 | EGREP=$ac_cv_prog_egrep | |
2914 | ||
2915 | ||
2916 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2917 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2918 | if test "${ac_cv_header_stdc+set}" = set; then | |
2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 2920 | else |
35695fd6 | 2921 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
2922 | /* confdefs.h. */ |
2923 | _ACEOF | |
2924 | cat confdefs.h >>conftest.$ac_ext | |
2925 | cat >>conftest.$ac_ext <<_ACEOF | |
2926 | /* end confdefs.h. */ | |
35695fd6 AC |
2927 | #include <stdlib.h> |
2928 | #include <stdarg.h> | |
2929 | #include <string.h> | |
2930 | #include <float.h> | |
2931 | ||
2932 | int | |
2933 | main () | |
2934 | { | |
2935 | ||
2936 | ; | |
2937 | return 0; | |
2938 | } | |
b7026657 AC |
2939 | _ACEOF |
2940 | rm -f conftest.$ac_objext | |
2941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2942 | (eval $ac_compile) 2>conftest.er1 | |
2943 | ac_status=$? | |
2944 | grep -v '^ *+' conftest.er1 >conftest.err | |
2945 | rm -f conftest.er1 | |
2946 | cat conftest.err >&5 | |
2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2948 | (exit $ac_status); } && | |
20e95c23 DJ |
2949 | { ac_try='test -z "$ac_c_werror_flag" |
2950 | || test ! -s conftest.err' | |
b7026657 AC |
2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2952 | (eval $ac_try) 2>&5 | |
2953 | ac_status=$? | |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2955 | (exit $ac_status); }; } && | |
2956 | { ac_try='test -s conftest.$ac_objext' | |
2957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2958 | (eval $ac_try) 2>&5 | |
2959 | ac_status=$? | |
2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2961 | (exit $ac_status); }; }; then | |
35695fd6 | 2962 | ac_cv_header_stdc=yes |
b7026657 AC |
2963 | else |
2964 | echo "$as_me: failed program was:" >&5 | |
2965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2966 | ||
35695fd6 | 2967 | ac_cv_header_stdc=no |
b7026657 AC |
2968 | fi |
2969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 2970 | |
35695fd6 AC |
2971 | if test $ac_cv_header_stdc = yes; then |
2972 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2973 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2974 | /* confdefs.h. */ |
2975 | _ACEOF | |
2976 | cat confdefs.h >>conftest.$ac_ext | |
2977 | cat >>conftest.$ac_ext <<_ACEOF | |
2978 | /* end confdefs.h. */ | |
35695fd6 AC |
2979 | #include <string.h> |
2980 | ||
b7026657 | 2981 | _ACEOF |
35695fd6 AC |
2982 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2983 | $EGREP "memchr" >/dev/null 2>&1; then | |
2984 | : | |
b7026657 | 2985 | else |
35695fd6 | 2986 | ac_cv_header_stdc=no |
c906108c | 2987 | fi |
35695fd6 AC |
2988 | rm -f conftest* |
2989 | ||
2990 | fi | |
2991 | ||
2992 | if test $ac_cv_header_stdc = yes; then | |
2993 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2994 | cat >conftest.$ac_ext <<_ACEOF | |
2995 | /* confdefs.h. */ | |
2996 | _ACEOF | |
2997 | cat confdefs.h >>conftest.$ac_ext | |
2998 | cat >>conftest.$ac_ext <<_ACEOF | |
2999 | /* end confdefs.h. */ | |
3000 | #include <stdlib.h> | |
3001 | ||
3002 | _ACEOF | |
3003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3004 | $EGREP "free" >/dev/null 2>&1; then | |
3005 | : | |
b7026657 | 3006 | else |
20e95c23 DJ |
3007 | ac_cv_header_stdc=no |
3008 | fi | |
3009 | rm -f conftest* | |
3010 | ||
c906108c SS |
3011 | fi |
3012 | ||
20e95c23 DJ |
3013 | if test $ac_cv_header_stdc = yes; then |
3014 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3015 | if test "$cross_compiling" = yes; then | |
3016 | : | |
3017 | else | |
3018 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3019 | /* confdefs.h. */ |
3020 | _ACEOF | |
3021 | cat confdefs.h >>conftest.$ac_ext | |
3022 | cat >>conftest.$ac_ext <<_ACEOF | |
3023 | /* end confdefs.h. */ | |
20e95c23 DJ |
3024 | #include <ctype.h> |
3025 | #if ((' ' & 0x0FF) == 0x020) | |
3026 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3027 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3028 | #else | |
3029 | # define ISLOWER(c) \ | |
3030 | (('a' <= (c) && (c) <= 'i') \ | |
3031 | || ('j' <= (c) && (c) <= 'r') \ | |
3032 | || ('s' <= (c) && (c) <= 'z')) | |
3033 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3034 | #endif | |
c906108c | 3035 | |
20e95c23 | 3036 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b7026657 AC |
3037 | int |
3038 | main () | |
3039 | { | |
20e95c23 DJ |
3040 | int i; |
3041 | for (i = 0; i < 256; i++) | |
3042 | if (XOR (islower (i), ISLOWER (i)) | |
3043 | || toupper (i) != TOUPPER (i)) | |
3044 | exit(2); | |
3045 | exit (0); | |
b7026657 AC |
3046 | } |
3047 | _ACEOF | |
20e95c23 | 3048 | rm -f conftest$ac_exeext |
b7026657 | 3049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20e95c23 | 3050 | (eval $ac_link) 2>&5 |
b7026657 AC |
3051 | ac_status=$? |
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 | 3053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
b7026657 AC |
3054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3055 | (eval $ac_try) 2>&5 | |
3056 | ac_status=$? | |
3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3058 | (exit $ac_status); }; }; then | |
20e95c23 | 3059 | : |
c906108c | 3060 | else |
20e95c23 DJ |
3061 | echo "$as_me: program exited with status $ac_status" >&5 |
3062 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
3064 | ||
20e95c23 DJ |
3065 | ( exit $ac_status ) |
3066 | ac_cv_header_stdc=no | |
c906108c | 3067 | fi |
20e95c23 | 3068 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3069 | fi |
c906108c | 3070 | fi |
c906108c | 3071 | fi |
20e95c23 DJ |
3072 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3073 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3074 | if test $ac_cv_header_stdc = yes; then | |
b7026657 | 3075 | |
20e95c23 DJ |
3076 | cat >>confdefs.h <<\_ACEOF |
3077 | #define STDC_HEADERS 1 | |
3078 | _ACEOF | |
c906108c | 3079 | |
c906108c SS |
3080 | fi |
3081 | ||
20e95c23 | 3082 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b7026657 AC |
3083 | |
3084 | ||
3085 | ||
3086 | ||
2b193c4a | 3087 | |
2b193c4a | 3088 | |
b7026657 | 3089 | |
c906108c | 3090 | |
c906108c | 3091 | |
20e95c23 DJ |
3092 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3093 | inttypes.h stdint.h unistd.h | |
3094 | do | |
3095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
b7026657 | 3099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b7026657 | 3100 | else |
20e95c23 | 3101 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
3102 | /* confdefs.h. */ |
3103 | _ACEOF | |
3104 | cat confdefs.h >>conftest.$ac_ext | |
3105 | cat >>conftest.$ac_ext <<_ACEOF | |
3106 | /* end confdefs.h. */ | |
3107 | $ac_includes_default | |
20e95c23 DJ |
3108 | |
3109 | #include <$ac_header> | |
b7026657 AC |
3110 | _ACEOF |
3111 | rm -f conftest.$ac_objext | |
3112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3113 | (eval $ac_compile) 2>conftest.er1 | |
3114 | ac_status=$? | |
3115 | grep -v '^ *+' conftest.er1 >conftest.err | |
3116 | rm -f conftest.er1 | |
3117 | cat conftest.err >&5 | |
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3119 | (exit $ac_status); } && | |
20e95c23 DJ |
3120 | { ac_try='test -z "$ac_c_werror_flag" |
3121 | || test ! -s conftest.err' | |
b7026657 AC |
3122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3123 | (eval $ac_try) 2>&5 | |
3124 | ac_status=$? | |
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3126 | (exit $ac_status); }; } && | |
3127 | { ac_try='test -s conftest.$ac_objext' | |
3128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3129 | (eval $ac_try) 2>&5 | |
3130 | ac_status=$? | |
3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3132 | (exit $ac_status); }; }; then | |
20e95c23 | 3133 | eval "$as_ac_Header=yes" |
b7026657 AC |
3134 | else |
3135 | echo "$as_me: failed program was:" >&5 | |
3136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3137 | ||
20e95c23 | 3138 | eval "$as_ac_Header=no" |
b7026657 AC |
3139 | fi |
3140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3141 | fi |
20e95c23 DJ |
3142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3143 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3145 | cat >>confdefs.h <<_ACEOF | |
3146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3147 | _ACEOF | |
b7026657 AC |
3148 | |
3149 | fi | |
b7026657 | 3150 | |
20e95c23 | 3151 | done |
b7026657 | 3152 | |
c906108c | 3153 | |
b7026657 AC |
3154 | |
3155 | ||
3156 | ||
3157 | ||
3158 | ||
3159 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 3160 | do |
b7026657 AC |
3161 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3163 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3164 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3165 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3167 | fi | |
3168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3169 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3170 | else | |
3171 | # Is the header compilable? | |
3172 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3173 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3174 | cat >conftest.$ac_ext <<_ACEOF | |
3175 | /* confdefs.h. */ | |
3176 | _ACEOF | |
3177 | cat confdefs.h >>conftest.$ac_ext | |
3178 | cat >>conftest.$ac_ext <<_ACEOF | |
3179 | /* end confdefs.h. */ | |
3180 | $ac_includes_default | |
3181 | #include <$ac_header> | |
3182 | _ACEOF | |
3183 | rm -f conftest.$ac_objext | |
3184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3185 | (eval $ac_compile) 2>conftest.er1 | |
3186 | ac_status=$? | |
3187 | grep -v '^ *+' conftest.er1 >conftest.err | |
3188 | rm -f conftest.er1 | |
3189 | cat conftest.err >&5 | |
3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3191 | (exit $ac_status); } && | |
20e95c23 DJ |
3192 | { ac_try='test -z "$ac_c_werror_flag" |
3193 | || test ! -s conftest.err' | |
b7026657 AC |
3194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | (eval $ac_try) 2>&5 | |
3196 | ac_status=$? | |
3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3198 | (exit $ac_status); }; } && | |
3199 | { ac_try='test -s conftest.$ac_objext' | |
3200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3201 | (eval $ac_try) 2>&5 | |
3202 | ac_status=$? | |
3203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3204 | (exit $ac_status); }; }; then | |
3205 | ac_header_compiler=yes | |
3206 | else | |
3207 | echo "$as_me: failed program was:" >&5 | |
3208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3209 | ||
3210 | ac_header_compiler=no | |
3211 | fi | |
3212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3213 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3214 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3215 | ||
3216 | # Is the header present? | |
3217 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3218 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
3220 | /* confdefs.h. */ | |
3221 | _ACEOF | |
3222 | cat confdefs.h >>conftest.$ac_ext | |
3223 | cat >>conftest.$ac_ext <<_ACEOF | |
3224 | /* end confdefs.h. */ | |
3225 | #include <$ac_header> | |
3226 | _ACEOF | |
3227 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3228 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3229 | ac_status=$? | |
3230 | grep -v '^ *+' conftest.er1 >conftest.err | |
3231 | rm -f conftest.er1 | |
3232 | cat conftest.err >&5 | |
3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3234 | (exit $ac_status); } >/dev/null; then | |
3235 | if test -s conftest.err; then | |
3236 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3237 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3238 | else | |
3239 | ac_cpp_err= | |
3240 | fi | |
3241 | else | |
3242 | ac_cpp_err=yes | |
c906108c | 3243 | fi |
b7026657 AC |
3244 | if test -z "$ac_cpp_err"; then |
3245 | ac_header_preproc=yes | |
3246 | else | |
3247 | echo "$as_me: failed program was:" >&5 | |
3248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3249 | ||
3250 | ac_header_preproc=no | |
c906108c | 3251 | fi |
b7026657 AC |
3252 | rm -f conftest.err conftest.$ac_ext |
3253 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3254 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3255 | ||
3256 | # So? What about this header? | |
3257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3258 | yes:no: ) | |
3259 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3260 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3262 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3263 | ac_header_preproc=yes | |
3264 | ;; | |
3265 | no:yes:* ) | |
3266 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3267 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3268 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3269 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3270 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3271 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3272 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3273 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3275 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3276 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3277 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3278 | ( | |
3279 | cat <<\_ASBOX | |
3280 | ## ------------------------------------------ ## | |
3281 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3282 | ## ------------------------------------------ ## | |
3283 | _ASBOX | |
3284 | ) | | |
3285 | sed "s/^/$as_me: WARNING: /" >&2 | |
3286 | ;; | |
3287 | esac | |
3288 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3289 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3292 | else |
b7026657 AC |
3293 | eval "$as_ac_Header=\$ac_header_preproc" |
3294 | fi | |
3295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3296 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3297 | ||
3298 | fi | |
3299 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3300 | cat >>confdefs.h <<_ACEOF | |
3301 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3302 | _ACEOF | |
3303 | ||
c906108c | 3304 | fi |
b7026657 | 3305 | |
c906108c SS |
3306 | done |
3307 | ||
b7026657 AC |
3308 | |
3309 | ||
3310 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 3311 | do |
b7026657 AC |
3312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3314 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3318 | fi | |
3319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3321 | else | |
3322 | # Is the header compilable? | |
3323 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3324 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3325 | cat >conftest.$ac_ext <<_ACEOF | |
3326 | /* confdefs.h. */ | |
3327 | _ACEOF | |
3328 | cat confdefs.h >>conftest.$ac_ext | |
3329 | cat >>conftest.$ac_ext <<_ACEOF | |
3330 | /* end confdefs.h. */ | |
3331 | $ac_includes_default | |
3332 | #include <$ac_header> | |
3333 | _ACEOF | |
3334 | rm -f conftest.$ac_objext | |
3335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3336 | (eval $ac_compile) 2>conftest.er1 | |
3337 | ac_status=$? | |
3338 | grep -v '^ *+' conftest.er1 >conftest.err | |
3339 | rm -f conftest.er1 | |
3340 | cat conftest.err >&5 | |
3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3342 | (exit $ac_status); } && | |
20e95c23 DJ |
3343 | { ac_try='test -z "$ac_c_werror_flag" |
3344 | || test ! -s conftest.err' | |
b7026657 AC |
3345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3346 | (eval $ac_try) 2>&5 | |
3347 | ac_status=$? | |
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3349 | (exit $ac_status); }; } && | |
3350 | { ac_try='test -s conftest.$ac_objext' | |
3351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3352 | (eval $ac_try) 2>&5 | |
3353 | ac_status=$? | |
3354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3355 | (exit $ac_status); }; }; then | |
3356 | ac_header_compiler=yes | |
3357 | else | |
3358 | echo "$as_me: failed program was:" >&5 | |
3359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3360 | ||
3361 | ac_header_compiler=no | |
3362 | fi | |
3363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3364 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3365 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3366 | ||
3367 | # Is the header present? | |
3368 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3369 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3370 | cat >conftest.$ac_ext <<_ACEOF | |
3371 | /* confdefs.h. */ | |
3372 | _ACEOF | |
3373 | cat confdefs.h >>conftest.$ac_ext | |
3374 | cat >>conftest.$ac_ext <<_ACEOF | |
3375 | /* end confdefs.h. */ | |
3376 | #include <$ac_header> | |
3377 | _ACEOF | |
3378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3380 | ac_status=$? | |
3381 | grep -v '^ *+' conftest.er1 >conftest.err | |
3382 | rm -f conftest.er1 | |
3383 | cat conftest.err >&5 | |
3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3385 | (exit $ac_status); } >/dev/null; then | |
3386 | if test -s conftest.err; then | |
3387 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3388 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3389 | else | |
3390 | ac_cpp_err= | |
3391 | fi | |
3392 | else | |
3393 | ac_cpp_err=yes | |
c906108c | 3394 | fi |
b7026657 AC |
3395 | if test -z "$ac_cpp_err"; then |
3396 | ac_header_preproc=yes | |
3397 | else | |
3398 | echo "$as_me: failed program was:" >&5 | |
3399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3400 | ||
3401 | ac_header_preproc=no | |
c906108c | 3402 | fi |
b7026657 AC |
3403 | rm -f conftest.err conftest.$ac_ext |
3404 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3405 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3406 | ||
3407 | # So? What about this header? | |
3408 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3409 | yes:no: ) | |
3410 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3411 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3413 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3414 | ac_header_preproc=yes | |
3415 | ;; | |
3416 | no:yes:* ) | |
3417 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3418 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3419 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3420 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3421 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3422 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3423 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3424 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3425 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3426 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3427 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3428 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3429 | ( | |
3430 | cat <<\_ASBOX | |
3431 | ## ------------------------------------------ ## | |
3432 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3433 | ## ------------------------------------------ ## | |
3434 | _ASBOX | |
3435 | ) | | |
3436 | sed "s/^/$as_me: WARNING: /" >&2 | |
3437 | ;; | |
3438 | esac | |
3439 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3443 | else |
b7026657 AC |
3444 | eval "$as_ac_Header=\$ac_header_preproc" |
3445 | fi | |
3446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3448 | ||
3449 | fi | |
3450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3451 | cat >>confdefs.h <<_ACEOF | |
3452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3453 | _ACEOF | |
3454 | ||
c906108c | 3455 | fi |
b7026657 | 3456 | |
c906108c SS |
3457 | done |
3458 | ||
b7026657 AC |
3459 | |
3460 | ||
3461 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 3462 | do |
b7026657 AC |
3463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
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 | |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3469 | fi | |
3470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3472 | else | |
3473 | # Is the header compilable? | |
3474 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3475 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
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); } && | |
20e95c23 DJ |
3494 | { ac_try='test -z "$ac_c_werror_flag" |
3495 | || test ! -s conftest.err' | |
b7026657 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 | ||
3512 | ac_header_compiler=no | |
3513 | fi | |
3514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3515 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3516 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3517 | ||
3518 | # Is the header present? | |
3519 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3520 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | |
c906108c | 3545 | fi |
b7026657 AC |
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 | |
c906108c | 3553 | fi |
b7026657 AC |
3554 | rm -f conftest.err conftest.$ac_ext |
3555 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3556 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
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;} | |
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 | |
3588 | ;; | |
3589 | esac | |
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 | |
3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3594 | else |
b7026657 AC |
3595 | eval "$as_ac_Header=\$ac_header_preproc" |
3596 | fi | |
3597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3598 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
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 | ||
c906108c | 3606 | fi |
b7026657 | 3607 | |
c906108c SS |
3608 | done |
3609 | ||
b7026657 AC |
3610 | |
3611 | ||
3612 | ||
3613 | for ac_header in dlfcn.h errno.h sys/stat.h | |
c906108c | 3614 | do |
b7026657 AC |
3615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3621 | fi | |
3622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3624 | else | |
3625 | # Is the header compilable? | |
3626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3628 | cat >conftest.$ac_ext <<_ACEOF | |
3629 | /* confdefs.h. */ | |
3630 | _ACEOF | |
3631 | cat confdefs.h >>conftest.$ac_ext | |
3632 | cat >>conftest.$ac_ext <<_ACEOF | |
3633 | /* end confdefs.h. */ | |
3634 | $ac_includes_default | |
3635 | #include <$ac_header> | |
3636 | _ACEOF | |
3637 | rm -f conftest.$ac_objext | |
3638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3639 | (eval $ac_compile) 2>conftest.er1 | |
3640 | ac_status=$? | |
3641 | grep -v '^ *+' conftest.er1 >conftest.err | |
3642 | rm -f conftest.er1 | |
3643 | cat conftest.err >&5 | |
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3645 | (exit $ac_status); } && | |
20e95c23 DJ |
3646 | { ac_try='test -z "$ac_c_werror_flag" |
3647 | || test ! -s conftest.err' | |
b7026657 AC |
3648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3649 | (eval $ac_try) 2>&5 | |
3650 | ac_status=$? | |
3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3652 | (exit $ac_status); }; } && | |
3653 | { ac_try='test -s conftest.$ac_objext' | |
3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3655 | (eval $ac_try) 2>&5 | |
3656 | ac_status=$? | |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3658 | (exit $ac_status); }; }; then | |
3659 | ac_header_compiler=yes | |
3660 | else | |
3661 | echo "$as_me: failed program was:" >&5 | |
3662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3663 | ||
3664 | ac_header_compiler=no | |
3665 | fi | |
3666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3668 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3669 | ||
3670 | # Is the header present? | |
3671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3673 | cat >conftest.$ac_ext <<_ACEOF | |
3674 | /* confdefs.h. */ | |
3675 | _ACEOF | |
3676 | cat confdefs.h >>conftest.$ac_ext | |
3677 | cat >>conftest.$ac_ext <<_ACEOF | |
3678 | /* end confdefs.h. */ | |
3679 | #include <$ac_header> | |
3680 | _ACEOF | |
3681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3683 | ac_status=$? | |
3684 | grep -v '^ *+' conftest.er1 >conftest.err | |
3685 | rm -f conftest.er1 | |
3686 | cat conftest.err >&5 | |
3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3688 | (exit $ac_status); } >/dev/null; then | |
3689 | if test -s conftest.err; then | |
3690 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3692 | else | |
3693 | ac_cpp_err= | |
3694 | fi | |
3695 | else | |
3696 | ac_cpp_err=yes | |
c906108c | 3697 | fi |
b7026657 AC |
3698 | if test -z "$ac_cpp_err"; then |
3699 | ac_header_preproc=yes | |
3700 | else | |
3701 | echo "$as_me: failed program was:" >&5 | |
3702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3703 | ||
3704 | ac_header_preproc=no | |
c906108c | 3705 | fi |
b7026657 AC |
3706 | rm -f conftest.err conftest.$ac_ext |
3707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3708 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3709 | ||
3710 | # So? What about this header? | |
3711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3712 | yes:no: ) | |
3713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3717 | ac_header_preproc=yes | |
3718 | ;; | |
3719 | no:yes:* ) | |
3720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3732 | ( | |
3733 | cat <<\_ASBOX | |
3734 | ## ------------------------------------------ ## | |
3735 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3736 | ## ------------------------------------------ ## | |
3737 | _ASBOX | |
3738 | ) | | |
3739 | sed "s/^/$as_me: WARNING: /" >&2 | |
3740 | ;; | |
3741 | esac | |
3742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3746 | else |
b7026657 AC |
3747 | eval "$as_ac_Header=\$ac_header_preproc" |
3748 | fi | |
3749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3751 | ||
3752 | fi | |
3753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3754 | cat >>confdefs.h <<_ACEOF | |
3755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3756 | _ACEOF | |
3757 | ||
c906108c | 3758 | fi |
b7026657 | 3759 | |
c906108c SS |
3760 | done |
3761 | ||
b7026657 AC |
3762 | |
3763 | ||
3764 | ||
3765 | ||
c906108c SS |
3766 | for ac_func in getrusage time sigaction __setfpucw |
3767 | do | |
b7026657 AC |
3768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
3769 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3771 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3773 | else | |
3774 | cat >conftest.$ac_ext <<_ACEOF | |
3775 | /* confdefs.h. */ | |
3776 | _ACEOF | |
3777 | cat confdefs.h >>conftest.$ac_ext | |
3778 | cat >>conftest.$ac_ext <<_ACEOF | |
3779 | /* end confdefs.h. */ | |
3780 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3782 | #define $ac_func innocuous_$ac_func | |
3783 | ||
c906108c | 3784 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
3785 | which can conflict with char $ac_func (); below. |
3786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3787 | <limits.h> exists even on freestanding compilers. */ | |
3788 | ||
3789 | #ifdef __STDC__ | |
3790 | # include <limits.h> | |
3791 | #else | |
3792 | # include <assert.h> | |
3793 | #endif | |
c906108c | 3794 | |
b7026657 | 3795 | #undef $ac_func |
c906108c | 3796 | |
b7026657 AC |
3797 | /* Override any gcc2 internal prototype to avoid an error. */ |
3798 | #ifdef __cplusplus | |
3799 | extern "C" | |
3800 | { | |
3801 | #endif | |
3802 | /* We use char because int might match the return type of a gcc2 | |
3803 | builtin and then its argument prototype would still apply. */ | |
3804 | char $ac_func (); | |
c906108c SS |
3805 | /* The GNU C library defines this for functions which it implements |
3806 | to always fail with ENOSYS. Some functions are actually named | |
3807 | something starting with __ and the normal name is an alias. */ | |
3808 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3809 | choke me | |
3810 | #else | |
b7026657 AC |
3811 | char (*f) () = $ac_func; |
3812 | #endif | |
3813 | #ifdef __cplusplus | |
3814 | } | |
c906108c SS |
3815 | #endif |
3816 | ||
b7026657 AC |
3817 | int |
3818 | main () | |
3819 | { | |
3820 | return f != $ac_func; | |
3821 | ; | |
3822 | return 0; | |
3823 | } | |
3824 | _ACEOF | |
3825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3827 | (eval $ac_link) 2>conftest.er1 | |
3828 | ac_status=$? | |
3829 | grep -v '^ *+' conftest.er1 >conftest.err | |
3830 | rm -f conftest.er1 | |
3831 | cat conftest.err >&5 | |
3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3833 | (exit $ac_status); } && | |
20e95c23 DJ |
3834 | { ac_try='test -z "$ac_c_werror_flag" |
3835 | || test ! -s conftest.err' | |
b7026657 AC |
3836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3837 | (eval $ac_try) 2>&5 | |
3838 | ac_status=$? | |
3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3840 | (exit $ac_status); }; } && | |
3841 | { ac_try='test -s conftest$ac_exeext' | |
3842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3843 | (eval $ac_try) 2>&5 | |
3844 | ac_status=$? | |
3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3846 | (exit $ac_status); }; }; then | |
3847 | eval "$as_ac_var=yes" | |
3848 | else | |
3849 | echo "$as_me: failed program was:" >&5 | |
3850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3851 | ||
3852 | eval "$as_ac_var=no" | |
3853 | fi | |
3854 | rm -f conftest.err conftest.$ac_objext \ | |
3855 | conftest$ac_exeext conftest.$ac_ext | |
3856 | fi | |
3857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3858 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3859 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3860 | cat >>confdefs.h <<_ACEOF | |
3861 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3862 | _ACEOF | |
c906108c | 3863 | |
c906108c SS |
3864 | fi |
3865 | done | |
3866 | ||
3867 | ||
3868 | # Check for socket libraries | |
b7026657 AC |
3869 | |
3870 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
3871 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
3872 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3874 | else |
b7026657 | 3875 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 3876 | LIBS="-lsocket $LIBS" |
b7026657 AC |
3877 | cat >conftest.$ac_ext <<_ACEOF |
3878 | /* confdefs.h. */ | |
3879 | _ACEOF | |
3880 | cat confdefs.h >>conftest.$ac_ext | |
3881 | cat >>conftest.$ac_ext <<_ACEOF | |
3882 | /* end confdefs.h. */ | |
3883 | ||
c906108c | 3884 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
3885 | #ifdef __cplusplus |
3886 | extern "C" | |
3887 | #endif | |
c906108c | 3888 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
3889 | builtin and then its argument prototype would still apply. */ |
3890 | char bind (); | |
3891 | int | |
3892 | main () | |
3893 | { | |
3894 | bind (); | |
3895 | ; | |
3896 | return 0; | |
3897 | } | |
3898 | _ACEOF | |
3899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3901 | (eval $ac_link) 2>conftest.er1 | |
3902 | ac_status=$? | |
3903 | grep -v '^ *+' conftest.er1 >conftest.err | |
3904 | rm -f conftest.er1 | |
3905 | cat conftest.err >&5 | |
3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3907 | (exit $ac_status); } && | |
20e95c23 DJ |
3908 | { ac_try='test -z "$ac_c_werror_flag" |
3909 | || test ! -s conftest.err' | |
b7026657 AC |
3910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3911 | (eval $ac_try) 2>&5 | |
3912 | ac_status=$? | |
3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3914 | (exit $ac_status); }; } && | |
3915 | { ac_try='test -s conftest$ac_exeext' | |
3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3917 | (eval $ac_try) 2>&5 | |
3918 | ac_status=$? | |
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3920 | (exit $ac_status); }; }; then | |
3921 | ac_cv_lib_socket_bind=yes | |
3922 | else | |
3923 | echo "$as_me: failed program was:" >&5 | |
3924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3925 | ||
3926 | ac_cv_lib_socket_bind=no | |
3927 | fi | |
3928 | rm -f conftest.err conftest.$ac_objext \ | |
3929 | conftest$ac_exeext conftest.$ac_ext | |
3930 | LIBS=$ac_check_lib_save_LIBS | |
3931 | fi | |
3932 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
3933 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
3934 | if test $ac_cv_lib_socket_bind = yes; then | |
3935 | cat >>confdefs.h <<_ACEOF | |
3936 | #define HAVE_LIBSOCKET 1 | |
3937 | _ACEOF | |
c906108c SS |
3938 | |
3939 | LIBS="-lsocket $LIBS" | |
3940 | ||
c906108c SS |
3941 | fi |
3942 | ||
b7026657 AC |
3943 | |
3944 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
3945 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
3946 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3948 | else |
b7026657 | 3949 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 3950 | LIBS="-lnsl $LIBS" |
b7026657 AC |
3951 | cat >conftest.$ac_ext <<_ACEOF |
3952 | /* confdefs.h. */ | |
3953 | _ACEOF | |
3954 | cat confdefs.h >>conftest.$ac_ext | |
3955 | cat >>conftest.$ac_ext <<_ACEOF | |
3956 | /* end confdefs.h. */ | |
3957 | ||
c906108c | 3958 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
3959 | #ifdef __cplusplus |
3960 | extern "C" | |
3961 | #endif | |
c906108c | 3962 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
3963 | builtin and then its argument prototype would still apply. */ |
3964 | char gethostbyname (); | |
3965 | int | |
3966 | main () | |
3967 | { | |
3968 | gethostbyname (); | |
3969 | ; | |
3970 | return 0; | |
3971 | } | |
3972 | _ACEOF | |
3973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3975 | (eval $ac_link) 2>conftest.er1 | |
3976 | ac_status=$? | |
3977 | grep -v '^ *+' conftest.er1 >conftest.err | |
3978 | rm -f conftest.er1 | |
3979 | cat conftest.err >&5 | |
3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3981 | (exit $ac_status); } && | |
20e95c23 DJ |
3982 | { ac_try='test -z "$ac_c_werror_flag" |
3983 | || test ! -s conftest.err' | |
b7026657 AC |
3984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3985 | (eval $ac_try) 2>&5 | |
3986 | ac_status=$? | |
3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3988 | (exit $ac_status); }; } && | |
3989 | { ac_try='test -s conftest$ac_exeext' | |
3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3991 | (eval $ac_try) 2>&5 | |
3992 | ac_status=$? | |
3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3994 | (exit $ac_status); }; }; then | |
3995 | ac_cv_lib_nsl_gethostbyname=yes | |
3996 | else | |
3997 | echo "$as_me: failed program was:" >&5 | |
3998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3999 | ||
4000 | ac_cv_lib_nsl_gethostbyname=no | |
4001 | fi | |
4002 | rm -f conftest.err conftest.$ac_objext \ | |
4003 | conftest$ac_exeext conftest.$ac_ext | |
4004 | LIBS=$ac_check_lib_save_LIBS | |
4005 | fi | |
4006 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
4007 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
4008 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
4009 | cat >>confdefs.h <<_ACEOF | |
4010 | #define HAVE_LIBNSL 1 | |
4011 | _ACEOF | |
c906108c SS |
4012 | |
4013 | LIBS="-lnsl $LIBS" | |
4014 | ||
c906108c SS |
4015 | fi |
4016 | ||
4017 | ||
79e1e459 HPN |
4018 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by |
4019 | # using the same condition. | |
4020 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
4021 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
4022 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | ac_func_search_save_LIBS=$LIBS | |
4026 | ac_cv_search_zlibVersion=no | |
4027 | cat >conftest.$ac_ext <<_ACEOF | |
4028 | /* confdefs.h. */ | |
4029 | _ACEOF | |
4030 | cat confdefs.h >>conftest.$ac_ext | |
4031 | cat >>conftest.$ac_ext <<_ACEOF | |
4032 | /* end confdefs.h. */ | |
4033 | ||
4034 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4035 | #ifdef __cplusplus | |
4036 | extern "C" | |
4037 | #endif | |
4038 | /* We use char because int might match the return type of a gcc2 | |
4039 | builtin and then its argument prototype would still apply. */ | |
4040 | char zlibVersion (); | |
4041 | int | |
4042 | main () | |
4043 | { | |
4044 | zlibVersion (); | |
4045 | ; | |
4046 | return 0; | |
4047 | } | |
4048 | _ACEOF | |
4049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4051 | (eval $ac_link) 2>conftest.er1 | |
4052 | ac_status=$? | |
4053 | grep -v '^ *+' conftest.er1 >conftest.err | |
4054 | rm -f conftest.er1 | |
4055 | cat conftest.err >&5 | |
4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4057 | (exit $ac_status); } && | |
4058 | { ac_try='test -z "$ac_c_werror_flag" | |
4059 | || test ! -s conftest.err' | |
4060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4061 | (eval $ac_try) 2>&5 | |
4062 | ac_status=$? | |
4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4064 | (exit $ac_status); }; } && | |
4065 | { ac_try='test -s conftest$ac_exeext' | |
4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4067 | (eval $ac_try) 2>&5 | |
4068 | ac_status=$? | |
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4070 | (exit $ac_status); }; }; then | |
4071 | ac_cv_search_zlibVersion="none required" | |
4072 | else | |
4073 | echo "$as_me: failed program was:" >&5 | |
4074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4075 | ||
4076 | fi | |
4077 | rm -f conftest.err conftest.$ac_objext \ | |
4078 | conftest$ac_exeext conftest.$ac_ext | |
4079 | if test "$ac_cv_search_zlibVersion" = no; then | |
4080 | for ac_lib in z; do | |
4081 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4082 | cat >conftest.$ac_ext <<_ACEOF | |
4083 | /* confdefs.h. */ | |
4084 | _ACEOF | |
4085 | cat confdefs.h >>conftest.$ac_ext | |
4086 | cat >>conftest.$ac_ext <<_ACEOF | |
4087 | /* end confdefs.h. */ | |
4088 | ||
4089 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4090 | #ifdef __cplusplus | |
4091 | extern "C" | |
4092 | #endif | |
4093 | /* We use char because int might match the return type of a gcc2 | |
4094 | builtin and then its argument prototype would still apply. */ | |
4095 | char zlibVersion (); | |
4096 | int | |
4097 | main () | |
4098 | { | |
4099 | zlibVersion (); | |
4100 | ; | |
4101 | return 0; | |
4102 | } | |
4103 | _ACEOF | |
4104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4106 | (eval $ac_link) 2>conftest.er1 | |
4107 | ac_status=$? | |
4108 | grep -v '^ *+' conftest.er1 >conftest.err | |
4109 | rm -f conftest.er1 | |
4110 | cat conftest.err >&5 | |
4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4112 | (exit $ac_status); } && | |
4113 | { ac_try='test -z "$ac_c_werror_flag" | |
4114 | || test ! -s conftest.err' | |
4115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4116 | (eval $ac_try) 2>&5 | |
4117 | ac_status=$? | |
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4119 | (exit $ac_status); }; } && | |
4120 | { ac_try='test -s conftest$ac_exeext' | |
4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4122 | (eval $ac_try) 2>&5 | |
4123 | ac_status=$? | |
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4125 | (exit $ac_status); }; }; then | |
4126 | ac_cv_search_zlibVersion="-l$ac_lib" | |
4127 | break | |
4128 | else | |
4129 | echo "$as_me: failed program was:" >&5 | |
4130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4131 | ||
4132 | fi | |
4133 | rm -f conftest.err conftest.$ac_objext \ | |
4134 | conftest$ac_exeext conftest.$ac_ext | |
4135 | done | |
4136 | fi | |
4137 | LIBS=$ac_func_search_save_LIBS | |
4138 | fi | |
4139 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
4140 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
4141 | if test "$ac_cv_search_zlibVersion" != no; then | |
4142 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
4143 | ||
4144 | for ac_header in zlib.h | |
4145 | do | |
4146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4152 | fi | |
4153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4155 | else | |
4156 | # Is the header compilable? | |
4157 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4158 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4159 | cat >conftest.$ac_ext <<_ACEOF | |
4160 | /* confdefs.h. */ | |
4161 | _ACEOF | |
4162 | cat confdefs.h >>conftest.$ac_ext | |
4163 | cat >>conftest.$ac_ext <<_ACEOF | |
4164 | /* end confdefs.h. */ | |
4165 | $ac_includes_default | |
4166 | #include <$ac_header> | |
4167 | _ACEOF | |
4168 | rm -f conftest.$ac_objext | |
4169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4170 | (eval $ac_compile) 2>conftest.er1 | |
4171 | ac_status=$? | |
4172 | grep -v '^ *+' conftest.er1 >conftest.err | |
4173 | rm -f conftest.er1 | |
4174 | cat conftest.err >&5 | |
4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4176 | (exit $ac_status); } && | |
4177 | { ac_try='test -z "$ac_c_werror_flag" | |
4178 | || test ! -s conftest.err' | |
4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4180 | (eval $ac_try) 2>&5 | |
4181 | ac_status=$? | |
4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4183 | (exit $ac_status); }; } && | |
4184 | { ac_try='test -s conftest.$ac_objext' | |
4185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4186 | (eval $ac_try) 2>&5 | |
4187 | ac_status=$? | |
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4189 | (exit $ac_status); }; }; then | |
4190 | ac_header_compiler=yes | |
4191 | else | |
4192 | echo "$as_me: failed program was:" >&5 | |
4193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4194 | ||
4195 | ac_header_compiler=no | |
4196 | fi | |
4197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4199 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4200 | ||
4201 | # Is the header present? | |
4202 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4204 | cat >conftest.$ac_ext <<_ACEOF | |
4205 | /* confdefs.h. */ | |
4206 | _ACEOF | |
4207 | cat confdefs.h >>conftest.$ac_ext | |
4208 | cat >>conftest.$ac_ext <<_ACEOF | |
4209 | /* end confdefs.h. */ | |
4210 | #include <$ac_header> | |
4211 | _ACEOF | |
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4214 | ac_status=$? | |
4215 | grep -v '^ *+' conftest.er1 >conftest.err | |
4216 | rm -f conftest.er1 | |
4217 | cat conftest.err >&5 | |
4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4219 | (exit $ac_status); } >/dev/null; then | |
4220 | if test -s conftest.err; then | |
4221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4223 | else | |
4224 | ac_cpp_err= | |
4225 | fi | |
4226 | else | |
4227 | ac_cpp_err=yes | |
4228 | fi | |
4229 | if test -z "$ac_cpp_err"; then | |
4230 | ac_header_preproc=yes | |
4231 | else | |
4232 | echo "$as_me: failed program was:" >&5 | |
4233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4234 | ||
4235 | ac_header_preproc=no | |
4236 | fi | |
4237 | rm -f conftest.err conftest.$ac_ext | |
4238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4239 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4240 | ||
4241 | # So? What about this header? | |
4242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4243 | yes:no: ) | |
4244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4248 | ac_header_preproc=yes | |
4249 | ;; | |
4250 | no:yes:* ) | |
4251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4253 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4254 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4257 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4258 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4263 | ( | |
4264 | cat <<\_ASBOX | |
4265 | ## ------------------------------------------ ## | |
4266 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4267 | ## ------------------------------------------ ## | |
4268 | _ASBOX | |
4269 | ) | | |
4270 | sed "s/^/$as_me: WARNING: /" >&2 | |
4271 | ;; | |
4272 | esac | |
4273 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4277 | else | |
4278 | eval "$as_ac_Header=\$ac_header_preproc" | |
4279 | fi | |
4280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4282 | ||
4283 | fi | |
4284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4285 | cat >>confdefs.h <<_ACEOF | |
4286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4287 | _ACEOF | |
4288 | ||
4289 | fi | |
4290 | ||
4291 | done | |
4292 | ||
4293 | fi | |
4294 | ||
4295 | ||
c906108c SS |
4296 | . ${srcdir}/../../bfd/configure.host |
4297 | ||
4298 | ||
4299 | ||
4300 | USE_MAINTAINER_MODE=no | |
4301 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4302 | if test "${enable_maintainer_mode+set}" = set; then | |
4303 | enableval="$enable_maintainer_mode" | |
4304 | case "${enableval}" in | |
4305 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
4306 | no) MAINT="#" ;; | |
b7026657 AC |
4307 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
4308 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
4309 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
4310 | esac |
4311 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
4312 | echo "Setting maintainer mode" 6>&1 | |
4313 | fi | |
4314 | else | |
4315 | MAINT="#" | |
b7026657 | 4316 | fi; |
c906108c SS |
4317 | |
4318 | ||
4319 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
4320 | if test "${enable_sim_bswap+set}" = set; then | |
4321 | enableval="$enable_sim_bswap" | |
4322 | case "${enableval}" in | |
4323 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
4324 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
4325 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
4326 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
4327 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
4328 | esac |
4329 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
4330 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
4331 | fi | |
4332 | else | |
4333 | sim_bswap="" | |
b7026657 | 4334 | fi; |
c906108c SS |
4335 | |
4336 | ||
4337 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
4338 | if test "${enable_sim_cflags+set}" = set; then | |
4339 | enableval="$enable_sim_cflags" | |
4340 | case "${enableval}" in | |
4341 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
4342 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
4343 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
4344 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
4345 | no) sim_cflags="";; |
4346 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4347 | esac | |
4348 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
4349 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
4350 | fi | |
4351 | else | |
4352 | sim_cflags="" | |
b7026657 | 4353 | fi; |
c906108c SS |
4354 | |
4355 | ||
4356 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
4357 | if test "${enable_sim_debug+set}" = set; then | |
4358 | enableval="$enable_sim_debug" | |
4359 | case "${enableval}" in | |
4360 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
4361 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
4362 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
4363 | esac | |
4364 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
4365 | echo "Setting sim debug = $sim_debug" 6>&1 | |
4366 | fi | |
4367 | else | |
4368 | sim_debug="" | |
b7026657 | 4369 | fi; |
c906108c SS |
4370 | |
4371 | ||
4372 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
4373 | if test "${enable_sim_stdio+set}" = set; then | |
4374 | enableval="$enable_sim_stdio" | |
4375 | case "${enableval}" in | |
4376 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
4377 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
4378 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
4379 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
4380 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
4381 | esac |
4382 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
4383 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
4384 | fi | |
4385 | else | |
4386 | sim_stdio="" | |
b7026657 | 4387 | fi; |
c906108c SS |
4388 | |
4389 | ||
4390 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
4391 | if test "${enable_sim_trace+set}" = set; then | |
4392 | enableval="$enable_sim_trace" | |
4393 | case "${enableval}" in | |
4394 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
4395 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
4396 | [-0-9]*) | |
4397 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
4398 | [a-z]*) | |
4399 | sim_trace="" | |
4400 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4401 | if test x"$sim_trace" = x; then | |
4402 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
4403 | else | |
4404 | sim_trace="${sim_trace}|TRACE_$x" | |
4405 | fi | |
4406 | done | |
4407 | sim_trace="$sim_trace)'" ;; | |
4408 | esac | |
4409 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
4410 | echo "Setting sim trace = $sim_trace" 6>&1 | |
4411 | fi | |
4412 | else | |
4413 | sim_trace="" | |
b7026657 | 4414 | fi; |
c906108c SS |
4415 | |
4416 | ||
4417 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
4418 | if test "${enable_sim_profile+set}" = set; then | |
4419 | enableval="$enable_sim_profile" | |
4420 | case "${enableval}" in | |
4421 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
4422 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
4423 | [-0-9]*) | |
4424 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
4425 | [a-z]*) | |
4426 | sim_profile="" | |
4427 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4428 | if test x"$sim_profile" = x; then | |
4429 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
4430 | else | |
4431 | sim_profile="${sim_profile}|PROFILE_$x" | |
4432 | fi | |
4433 | done | |
4434 | sim_profile="$sim_profile)'" ;; | |
4435 | esac | |
4436 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
4437 | echo "Setting sim profile = $sim_profile" 6>&1 | |
4438 | fi | |
4439 | else | |
eb2d80b4 | 4440 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
b7026657 | 4441 | fi; |
c906108c SS |
4442 | |
4443 | ||
6efef468 JM |
4444 | |
4445 | # Check whether --with-pkgversion or --without-pkgversion was given. | |
4446 | if test "${with_pkgversion+set}" = set; then | |
4447 | withval="$with_pkgversion" | |
4448 | case "$withval" in | |
4449 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
4450 | echo "$as_me: error: package version not specified" >&2;} | |
4451 | { (exit 1); exit 1; }; } ;; | |
4452 | no) PKGVERSION= ;; | |
4453 | *) PKGVERSION="($withval) " ;; | |
4454 | esac | |
4455 | else | |
4456 | PKGVERSION="(GDB) " | |
4457 | ||
4458 | fi; | |
4459 | ||
4460 | ||
4461 | ||
4462 | ||
4463 | # Check whether --with-bugurl or --without-bugurl was given. | |
4464 | if test "${with_bugurl+set}" = set; then | |
4465 | withval="$with_bugurl" | |
4466 | case "$withval" in | |
4467 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
4468 | echo "$as_me: error: bug URL not specified" >&2;} | |
4469 | { (exit 1); exit 1; }; } ;; | |
4470 | no) BUGURL= | |
4471 | ;; | |
4472 | *) BUGURL="$withval" | |
4473 | ;; | |
4474 | esac | |
4475 | else | |
4476 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
4477 | ||
4478 | fi; | |
4479 | case ${BUGURL} in | |
4480 | "") | |
4481 | REPORT_BUGS_TO= | |
4482 | REPORT_BUGS_TEXI= | |
4483 | ;; | |
4484 | *) | |
4485 | REPORT_BUGS_TO="<$BUGURL>" | |
4486 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
4487 | ;; | |
4488 | esac; | |
4489 | ||
4490 | ||
4491 | ||
4492 | ||
4493 | cat >>confdefs.h <<_ACEOF | |
4494 | #define PKGVERSION "$PKGVERSION" | |
4495 | _ACEOF | |
4496 | ||
4497 | ||
4498 | cat >>confdefs.h <<_ACEOF | |
4499 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
4500 | _ACEOF | |
4501 | ||
4502 | ||
b7026657 AC |
4503 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
4504 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4505 | if test "${ac_cv_type_signal+set}" = set; then | |
4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4507 | else |
b7026657 AC |
4508 | cat >conftest.$ac_ext <<_ACEOF |
4509 | /* confdefs.h. */ | |
4510 | _ACEOF | |
4511 | cat confdefs.h >>conftest.$ac_ext | |
4512 | cat >>conftest.$ac_ext <<_ACEOF | |
4513 | /* end confdefs.h. */ | |
c906108c SS |
4514 | #include <sys/types.h> |
4515 | #include <signal.h> | |
4516 | #ifdef signal | |
b7026657 | 4517 | # undef signal |
c906108c SS |
4518 | #endif |
4519 | #ifdef __cplusplus | |
4520 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4521 | #else | |
4522 | void (*signal ()) (); | |
4523 | #endif | |
4524 | ||
b7026657 AC |
4525 | int |
4526 | main () | |
4527 | { | |
c906108c | 4528 | int i; |
b7026657 AC |
4529 | ; |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext | |
4534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4535 | (eval $ac_compile) 2>conftest.er1 | |
4536 | ac_status=$? | |
4537 | grep -v '^ *+' conftest.er1 >conftest.err | |
4538 | rm -f conftest.er1 | |
4539 | cat conftest.err >&5 | |
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4541 | (exit $ac_status); } && | |
20e95c23 DJ |
4542 | { ac_try='test -z "$ac_c_werror_flag" |
4543 | || test ! -s conftest.err' | |
b7026657 AC |
4544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4545 | (eval $ac_try) 2>&5 | |
4546 | ac_status=$? | |
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4548 | (exit $ac_status); }; } && | |
4549 | { ac_try='test -s conftest.$ac_objext' | |
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4551 | (eval $ac_try) 2>&5 | |
4552 | ac_status=$? | |
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4554 | (exit $ac_status); }; }; then | |
c906108c SS |
4555 | ac_cv_type_signal=void |
4556 | else | |
b7026657 AC |
4557 | echo "$as_me: failed program was:" >&5 |
4558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4559 | ||
4560 | ac_cv_type_signal=int | |
c906108c | 4561 | fi |
b7026657 | 4562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4563 | fi |
b7026657 AC |
4564 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
4565 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 4566 | |
b7026657 | 4567 | cat >>confdefs.h <<_ACEOF |
c906108c | 4568 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 4569 | _ACEOF |
cd0fc7c3 SS |
4570 | |
4571 | ||
cd0fc7c3 | 4572 | |
c906108c SS |
4573 | |
4574 | ||
4575 | sim_link_files= | |
4576 | sim_link_links= | |
4577 | ||
4578 | sim_link_links=tconfig.h | |
4579 | if test -f ${srcdir}/tconfig.in | |
4580 | then | |
4581 | sim_link_files=tconfig.in | |
4582 | else | |
4583 | sim_link_files=../common/tconfig.in | |
4584 | fi | |
4585 | ||
4586 | # targ-vals.def points to the libc macro description file. | |
4587 | case "${target}" in | |
4588 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
4589 | esac | |
4590 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
4591 | sim_link_links="${sim_link_links} targ-vals.def" | |
4592 | ||
4593 | ||
c906108c SS |
4594 | # Put a useful copy of CPP_FOR_TARGET in Makefile. |
4595 | # This is only used to build the target values header files. These files are | |
4596 | # shipped with distributions so CPP_FOR_TARGET only needs to work in | |
4597 | # developer's trees. This value is borrowed from ../../Makefile.in. | |
4598 | CPP_FOR_TARGET="\` \ | |
4599 | if test -f \$\${rootme}/../../gcc/Makefile ; then \ | |
4600 | if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \ | |
4601 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \ | |
4602 | else \ | |
4603 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \ | |
4604 | fi; \ | |
4605 | else \ | |
4606 | if test '\$(host_canonical)' = '\$(target_canonical)' ; then \ | |
4607 | echo \$(CC); \ | |
4608 | else \ | |
4609 | t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \ | |
4610 | fi; \ | |
4611 | fi\` -E" | |
4612 | ||
4613 | ||
4614 | # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET. | |
4615 | if test x"${host}" = x"${target}" ; then | |
4616 | TARGET_SUBDIR="." | |
4617 | else | |
4618 | TARGET_SUBDIR=${target_alias} | |
4619 | fi | |
4620 | ||
4621 | ||
4622 | # These aren't all needed yet, but will be eventually. | |
b7026657 AC |
4623 | |
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h | |
c906108c | 4631 | do |
b7026657 AC |
4632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4638 | fi | |
4639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4641 | else | |
4642 | # Is the header compilable? | |
4643 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4644 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4645 | cat >conftest.$ac_ext <<_ACEOF | |
4646 | /* confdefs.h. */ | |
4647 | _ACEOF | |
4648 | cat confdefs.h >>conftest.$ac_ext | |
4649 | cat >>conftest.$ac_ext <<_ACEOF | |
4650 | /* end confdefs.h. */ | |
4651 | $ac_includes_default | |
4652 | #include <$ac_header> | |
4653 | _ACEOF | |
4654 | rm -f conftest.$ac_objext | |
4655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4656 | (eval $ac_compile) 2>conftest.er1 | |
4657 | ac_status=$? | |
4658 | grep -v '^ *+' conftest.er1 >conftest.err | |
4659 | rm -f conftest.er1 | |
4660 | cat conftest.err >&5 | |
4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4662 | (exit $ac_status); } && | |
20e95c23 DJ |
4663 | { ac_try='test -z "$ac_c_werror_flag" |
4664 | || test ! -s conftest.err' | |
b7026657 AC |
4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4666 | (eval $ac_try) 2>&5 | |
4667 | ac_status=$? | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4669 | (exit $ac_status); }; } && | |
4670 | { ac_try='test -s conftest.$ac_objext' | |
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4672 | (eval $ac_try) 2>&5 | |
4673 | ac_status=$? | |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4675 | (exit $ac_status); }; }; then | |
4676 | ac_header_compiler=yes | |
4677 | else | |
4678 | echo "$as_me: failed program was:" >&5 | |
4679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4680 | ||
4681 | ac_header_compiler=no | |
4682 | fi | |
4683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4685 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4686 | ||
4687 | # Is the header present? | |
4688 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4689 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4690 | cat >conftest.$ac_ext <<_ACEOF | |
4691 | /* confdefs.h. */ | |
4692 | _ACEOF | |
4693 | cat confdefs.h >>conftest.$ac_ext | |
4694 | cat >>conftest.$ac_ext <<_ACEOF | |
4695 | /* end confdefs.h. */ | |
4696 | #include <$ac_header> | |
4697 | _ACEOF | |
4698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4700 | ac_status=$? | |
4701 | grep -v '^ *+' conftest.er1 >conftest.err | |
4702 | rm -f conftest.er1 | |
4703 | cat conftest.err >&5 | |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); } >/dev/null; then | |
4706 | if test -s conftest.err; then | |
4707 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4709 | else | |
4710 | ac_cpp_err= | |
4711 | fi | |
4712 | else | |
4713 | ac_cpp_err=yes | |
c906108c | 4714 | fi |
b7026657 AC |
4715 | if test -z "$ac_cpp_err"; then |
4716 | ac_header_preproc=yes | |
4717 | else | |
4718 | echo "$as_me: failed program was:" >&5 | |
4719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4720 | ||
4721 | ac_header_preproc=no | |
c906108c | 4722 | fi |
b7026657 AC |
4723 | rm -f conftest.err conftest.$ac_ext |
4724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4725 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4726 | ||
4727 | # So? What about this header? | |
4728 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4729 | yes:no: ) | |
4730 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4731 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4733 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4734 | ac_header_preproc=yes | |
4735 | ;; | |
4736 | no:yes:* ) | |
4737 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4738 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4739 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4740 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4741 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4742 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4743 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4744 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4745 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4746 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4747 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4748 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4749 | ( | |
4750 | cat <<\_ASBOX | |
4751 | ## ------------------------------------------ ## | |
4752 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4753 | ## ------------------------------------------ ## | |
4754 | _ASBOX | |
4755 | ) | | |
4756 | sed "s/^/$as_me: WARNING: /" >&2 | |
4757 | ;; | |
4758 | esac | |
4759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4763 | else |
b7026657 AC |
4764 | eval "$as_ac_Header=\$ac_header_preproc" |
4765 | fi | |
4766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4768 | ||
c906108c | 4769 | fi |
b7026657 AC |
4770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4771 | cat >>confdefs.h <<_ACEOF | |
4772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4773 | _ACEOF | |
4774 | ||
4775 | fi | |
4776 | ||
c906108c SS |
4777 | done |
4778 | ||
b7026657 AC |
4779 | |
4780 | ||
33aa0cbb PB |
4781 | |
4782 | ||
4783 | ||
4784 | for ac_func in mmap munmap lstat truncate ftruncate | |
764f1408 | 4785 | do |
b7026657 AC |
4786 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4787 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4788 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4789 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4791 | else | |
4792 | cat >conftest.$ac_ext <<_ACEOF | |
4793 | /* confdefs.h. */ | |
4794 | _ACEOF | |
4795 | cat confdefs.h >>conftest.$ac_ext | |
4796 | cat >>conftest.$ac_ext <<_ACEOF | |
4797 | /* end confdefs.h. */ | |
4798 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4800 | #define $ac_func innocuous_$ac_func | |
4801 | ||
764f1408 | 4802 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4803 | which can conflict with char $ac_func (); below. |
4804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4805 | <limits.h> exists even on freestanding compilers. */ | |
764f1408 | 4806 | |
b7026657 AC |
4807 | #ifdef __STDC__ |
4808 | # include <limits.h> | |
4809 | #else | |
4810 | # include <assert.h> | |
4811 | #endif | |
764f1408 | 4812 | |
b7026657 AC |
4813 | #undef $ac_func |
4814 | ||
4815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4816 | #ifdef __cplusplus | |
4817 | extern "C" | |
4818 | { | |
4819 | #endif | |
4820 | /* We use char because int might match the return type of a gcc2 | |
4821 | builtin and then its argument prototype would still apply. */ | |
4822 | char $ac_func (); | |
764f1408 FCE |
4823 | /* The GNU C library defines this for functions which it implements |
4824 | to always fail with ENOSYS. Some functions are actually named | |
4825 | something starting with __ and the normal name is an alias. */ | |
4826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4827 | choke me | |
4828 | #else | |
b7026657 AC |
4829 | char (*f) () = $ac_func; |
4830 | #endif | |
4831 | #ifdef __cplusplus | |
4832 | } | |
764f1408 FCE |
4833 | #endif |
4834 | ||
b7026657 AC |
4835 | int |
4836 | main () | |
4837 | { | |
4838 | return f != $ac_func; | |
4839 | ; | |
4840 | return 0; | |
4841 | } | |
4842 | _ACEOF | |
4843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4845 | (eval $ac_link) 2>conftest.er1 | |
4846 | ac_status=$? | |
4847 | grep -v '^ *+' conftest.er1 >conftest.err | |
4848 | rm -f conftest.er1 | |
4849 | cat conftest.err >&5 | |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4851 | (exit $ac_status); } && | |
20e95c23 DJ |
4852 | { ac_try='test -z "$ac_c_werror_flag" |
4853 | || test ! -s conftest.err' | |
b7026657 AC |
4854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4855 | (eval $ac_try) 2>&5 | |
4856 | ac_status=$? | |
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 | (exit $ac_status); }; } && | |
4859 | { ac_try='test -s conftest$ac_exeext' | |
4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4861 | (eval $ac_try) 2>&5 | |
4862 | ac_status=$? | |
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4864 | (exit $ac_status); }; }; then | |
4865 | eval "$as_ac_var=yes" | |
4866 | else | |
4867 | echo "$as_me: failed program was:" >&5 | |
4868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4869 | ||
4870 | eval "$as_ac_var=no" | |
4871 | fi | |
4872 | rm -f conftest.err conftest.$ac_objext \ | |
4873 | conftest$ac_exeext conftest.$ac_ext | |
4874 | fi | |
4875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4876 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4877 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4878 | cat >>confdefs.h <<_ACEOF | |
4879 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4880 | _ACEOF | |
764f1408 | 4881 | |
764f1408 FCE |
4882 | fi |
4883 | done | |
4884 | ||
b7026657 AC |
4885 | echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5 |
4886 | echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6 | |
4887 | if test "${ac_struct_stat_st_dev+set}" = set; then | |
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
4889 | else |
4890 | ac_struct_stat_st_dev=no; | |
b7026657 AC |
4891 | cat >conftest.$ac_ext <<_ACEOF |
4892 | /* confdefs.h. */ | |
4893 | _ACEOF | |
4894 | cat confdefs.h >>conftest.$ac_ext | |
4895 | cat >>conftest.$ac_ext <<_ACEOF | |
4896 | /* end confdefs.h. */ | |
697afb65 HPN |
4897 | #ifdef HAVE_SYS_TYPES_H |
4898 | #include <sys/types.h> | |
4899 | #endif | |
4900 | #ifdef HAVE_SYS_STAT_H | |
4901 | #include <sys/stat.h> | |
4902 | #endif | |
b7026657 AC |
4903 | int |
4904 | main () | |
4905 | { | |
697afb65 HPN |
4906 | |
4907 | static struct stat ac_aggr; | |
4908 | if (ac_aggr.st_dev) | |
4909 | return 0; | |
b7026657 AC |
4910 | ; |
4911 | return 0; | |
4912 | } | |
4913 | _ACEOF | |
4914 | rm -f conftest.$ac_objext | |
4915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4916 | (eval $ac_compile) 2>conftest.er1 | |
4917 | ac_status=$? | |
4918 | grep -v '^ *+' conftest.er1 >conftest.err | |
4919 | rm -f conftest.er1 | |
4920 | cat conftest.err >&5 | |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4922 | (exit $ac_status); } && | |
20e95c23 DJ |
4923 | { ac_try='test -z "$ac_c_werror_flag" |
4924 | || test ! -s conftest.err' | |
b7026657 AC |
4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4926 | (eval $ac_try) 2>&5 | |
4927 | ac_status=$? | |
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4929 | (exit $ac_status); }; } && | |
4930 | { ac_try='test -s conftest.$ac_objext' | |
4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4932 | (eval $ac_try) 2>&5 | |
4933 | ac_status=$? | |
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4935 | (exit $ac_status); }; }; then | |
697afb65 HPN |
4936 | ac_struct_stat_st_dev=yes; |
4937 | else | |
b7026657 AC |
4938 | echo "$as_me: failed program was:" >&5 |
4939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4940 | ||
4941 | cat >conftest.$ac_ext <<_ACEOF | |
4942 | /* confdefs.h. */ | |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
697afb65 HPN |
4947 | #ifdef HAVE_SYS_TYPES_H |
4948 | #include <sys/types.h> | |
4949 | #endif | |
4950 | #ifdef HAVE_SYS_STAT_H | |
4951 | #include <sys/stat.h> | |
4952 | #endif | |
b7026657 AC |
4953 | int |
4954 | main () | |
4955 | { | |
697afb65 HPN |
4956 | |
4957 | static struct stat ac_aggr; | |
4958 | if (sizeof ac_aggr.st_dev) | |
4959 | return 0; | |
b7026657 AC |
4960 | ; |
4961 | return 0; | |
4962 | } | |
4963 | _ACEOF | |
4964 | rm -f conftest.$ac_objext | |
4965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4966 | (eval $ac_compile) 2>conftest.er1 | |
4967 | ac_status=$? | |
4968 | grep -v '^ *+' conftest.er1 >conftest.err | |
4969 | rm -f conftest.er1 | |
4970 | cat conftest.err >&5 | |
4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4972 | (exit $ac_status); } && | |
20e95c23 DJ |
4973 | { ac_try='test -z "$ac_c_werror_flag" |
4974 | || test ! -s conftest.err' | |
b7026657 AC |
4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4976 | (eval $ac_try) 2>&5 | |
4977 | ac_status=$? | |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4979 | (exit $ac_status); }; } && | |
4980 | { ac_try='test -s conftest.$ac_objext' | |
4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4982 | (eval $ac_try) 2>&5 | |
4983 | ac_status=$? | |
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 | (exit $ac_status); }; }; then | |
697afb65 HPN |
4986 | ac_struct_stat_st_dev=yes; |
4987 | else | |
b7026657 AC |
4988 | echo "$as_me: failed program was:" >&5 |
4989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4990 | ||
4991 | ac_struct_stat_st_dev=no; | |
697afb65 | 4992 | fi |
b7026657 | 4993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 4994 | fi |
b7026657 AC |
4995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4996 | if test $ac_struct_stat_st_dev = yes; then :; | |
4997 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 4998 | #define HAVE_STRUCT_STAT_ST_DEV 1 |
b7026657 | 4999 | _ACEOF |
697afb65 | 5000 | |
b7026657 | 5001 | else :; |
697afb65 HPN |
5002 | fi |
5003 | fi | |
b7026657 AC |
5004 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5 |
5005 | echo "${ECHO_T}$ac_struct_stat_st_dev" >&6 | |
697afb65 | 5006 | |
b7026657 AC |
5007 | echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5 |
5008 | echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6 | |
5009 | if test "${ac_struct_stat_st_ino+set}" = set; then | |
5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5011 | else |
5012 | ac_struct_stat_st_ino=no; | |
b7026657 AC |
5013 | cat >conftest.$ac_ext <<_ACEOF |
5014 | /* confdefs.h. */ | |
5015 | _ACEOF | |
5016 | cat confdefs.h >>conftest.$ac_ext | |
5017 | cat >>conftest.$ac_ext <<_ACEOF | |
5018 | /* end confdefs.h. */ | |
697afb65 HPN |
5019 | #ifdef HAVE_SYS_TYPES_H |
5020 | #include <sys/types.h> | |
5021 | #endif | |
5022 | #ifdef HAVE_SYS_STAT_H | |
5023 | #include <sys/stat.h> | |
5024 | #endif | |
b7026657 AC |
5025 | int |
5026 | main () | |
5027 | { | |
697afb65 HPN |
5028 | |
5029 | static struct stat ac_aggr; | |
5030 | if (ac_aggr.st_ino) | |
5031 | return 0; | |
b7026657 AC |
5032 | ; |
5033 | return 0; | |
5034 | } | |
5035 | _ACEOF | |
5036 | rm -f conftest.$ac_objext | |
5037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5038 | (eval $ac_compile) 2>conftest.er1 | |
5039 | ac_status=$? | |
5040 | grep -v '^ *+' conftest.er1 >conftest.err | |
5041 | rm -f conftest.er1 | |
5042 | cat conftest.err >&5 | |
5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5044 | (exit $ac_status); } && | |
20e95c23 DJ |
5045 | { ac_try='test -z "$ac_c_werror_flag" |
5046 | || test ! -s conftest.err' | |
b7026657 AC |
5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5048 | (eval $ac_try) 2>&5 | |
5049 | ac_status=$? | |
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5051 | (exit $ac_status); }; } && | |
5052 | { ac_try='test -s conftest.$ac_objext' | |
5053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5054 | (eval $ac_try) 2>&5 | |
5055 | ac_status=$? | |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5058 | ac_struct_stat_st_ino=yes; |
5059 | else | |
b7026657 AC |
5060 | echo "$as_me: failed program was:" >&5 |
5061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5062 | ||
5063 | cat >conftest.$ac_ext <<_ACEOF | |
5064 | /* confdefs.h. */ | |
5065 | _ACEOF | |
5066 | cat confdefs.h >>conftest.$ac_ext | |
5067 | cat >>conftest.$ac_ext <<_ACEOF | |
5068 | /* end confdefs.h. */ | |
697afb65 HPN |
5069 | #ifdef HAVE_SYS_TYPES_H |
5070 | #include <sys/types.h> | |
5071 | #endif | |
5072 | #ifdef HAVE_SYS_STAT_H | |
5073 | #include <sys/stat.h> | |
5074 | #endif | |
b7026657 AC |
5075 | int |
5076 | main () | |
5077 | { | |
697afb65 HPN |
5078 | |
5079 | static struct stat ac_aggr; | |
5080 | if (sizeof ac_aggr.st_ino) | |
5081 | return 0; | |
b7026657 AC |
5082 | ; |
5083 | return 0; | |
5084 | } | |
5085 | _ACEOF | |
5086 | rm -f conftest.$ac_objext | |
5087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5088 | (eval $ac_compile) 2>conftest.er1 | |
5089 | ac_status=$? | |
5090 | grep -v '^ *+' conftest.er1 >conftest.err | |
5091 | rm -f conftest.er1 | |
5092 | cat conftest.err >&5 | |
5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5094 | (exit $ac_status); } && | |
20e95c23 DJ |
5095 | { ac_try='test -z "$ac_c_werror_flag" |
5096 | || test ! -s conftest.err' | |
b7026657 AC |
5097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5098 | (eval $ac_try) 2>&5 | |
5099 | ac_status=$? | |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5101 | (exit $ac_status); }; } && | |
5102 | { ac_try='test -s conftest.$ac_objext' | |
5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5104 | (eval $ac_try) 2>&5 | |
5105 | ac_status=$? | |
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5107 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5108 | ac_struct_stat_st_ino=yes; |
5109 | else | |
b7026657 AC |
5110 | echo "$as_me: failed program was:" >&5 |
5111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5112 | ||
5113 | ac_struct_stat_st_ino=no; | |
697afb65 | 5114 | fi |
b7026657 | 5115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5116 | fi |
b7026657 AC |
5117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5118 | if test $ac_struct_stat_st_ino = yes; then :; | |
5119 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5120 | #define HAVE_STRUCT_STAT_ST_INO 1 |
b7026657 | 5121 | _ACEOF |
697afb65 | 5122 | |
b7026657 | 5123 | else :; |
697afb65 HPN |
5124 | fi |
5125 | fi | |
b7026657 AC |
5126 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5 |
5127 | echo "${ECHO_T}$ac_struct_stat_st_ino" >&6 | |
697afb65 | 5128 | |
b7026657 AC |
5129 | echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5 |
5130 | echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6 | |
5131 | if test "${ac_struct_stat_st_mode+set}" = set; then | |
5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5133 | else |
5134 | ac_struct_stat_st_mode=no; | |
b7026657 AC |
5135 | cat >conftest.$ac_ext <<_ACEOF |
5136 | /* confdefs.h. */ | |
5137 | _ACEOF | |
5138 | cat confdefs.h >>conftest.$ac_ext | |
5139 | cat >>conftest.$ac_ext <<_ACEOF | |
5140 | /* end confdefs.h. */ | |
697afb65 HPN |
5141 | #ifdef HAVE_SYS_TYPES_H |
5142 | #include <sys/types.h> | |
5143 | #endif | |
5144 | #ifdef HAVE_SYS_STAT_H | |
5145 | #include <sys/stat.h> | |
5146 | #endif | |
b7026657 AC |
5147 | int |
5148 | main () | |
5149 | { | |
697afb65 HPN |
5150 | |
5151 | static struct stat ac_aggr; | |
5152 | if (ac_aggr.st_mode) | |
5153 | return 0; | |
b7026657 AC |
5154 | ; |
5155 | return 0; | |
5156 | } | |
5157 | _ACEOF | |
5158 | rm -f conftest.$ac_objext | |
5159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5160 | (eval $ac_compile) 2>conftest.er1 | |
5161 | ac_status=$? | |
5162 | grep -v '^ *+' conftest.er1 >conftest.err | |
5163 | rm -f conftest.er1 | |
5164 | cat conftest.err >&5 | |
5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5166 | (exit $ac_status); } && | |
20e95c23 DJ |
5167 | { ac_try='test -z "$ac_c_werror_flag" |
5168 | || test ! -s conftest.err' | |
b7026657 AC |
5169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5170 | (eval $ac_try) 2>&5 | |
5171 | ac_status=$? | |
5172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5173 | (exit $ac_status); }; } && | |
5174 | { ac_try='test -s conftest.$ac_objext' | |
5175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5176 | (eval $ac_try) 2>&5 | |
5177 | ac_status=$? | |
5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5179 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5180 | ac_struct_stat_st_mode=yes; |
5181 | else | |
b7026657 AC |
5182 | echo "$as_me: failed program was:" >&5 |
5183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5184 | ||
5185 | cat >conftest.$ac_ext <<_ACEOF | |
5186 | /* confdefs.h. */ | |
5187 | _ACEOF | |
5188 | cat confdefs.h >>conftest.$ac_ext | |
5189 | cat >>conftest.$ac_ext <<_ACEOF | |
5190 | /* end confdefs.h. */ | |
697afb65 HPN |
5191 | #ifdef HAVE_SYS_TYPES_H |
5192 | #include <sys/types.h> | |
5193 | #endif | |
5194 | #ifdef HAVE_SYS_STAT_H | |
5195 | #include <sys/stat.h> | |
5196 | #endif | |
b7026657 AC |
5197 | int |
5198 | main () | |
5199 | { | |
697afb65 HPN |
5200 | |
5201 | static struct stat ac_aggr; | |
5202 | if (sizeof ac_aggr.st_mode) | |
5203 | return 0; | |
b7026657 AC |
5204 | ; |
5205 | return 0; | |
5206 | } | |
5207 | _ACEOF | |
5208 | rm -f conftest.$ac_objext | |
5209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5210 | (eval $ac_compile) 2>conftest.er1 | |
5211 | ac_status=$? | |
5212 | grep -v '^ *+' conftest.er1 >conftest.err | |
5213 | rm -f conftest.er1 | |
5214 | cat conftest.err >&5 | |
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5216 | (exit $ac_status); } && | |
20e95c23 DJ |
5217 | { ac_try='test -z "$ac_c_werror_flag" |
5218 | || test ! -s conftest.err' | |
b7026657 AC |
5219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5220 | (eval $ac_try) 2>&5 | |
5221 | ac_status=$? | |
5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5223 | (exit $ac_status); }; } && | |
5224 | { ac_try='test -s conftest.$ac_objext' | |
5225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5226 | (eval $ac_try) 2>&5 | |
5227 | ac_status=$? | |
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5229 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5230 | ac_struct_stat_st_mode=yes; |
5231 | else | |
b7026657 AC |
5232 | echo "$as_me: failed program was:" >&5 |
5233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5234 | ||
5235 | ac_struct_stat_st_mode=no; | |
697afb65 | 5236 | fi |
b7026657 | 5237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5238 | fi |
b7026657 AC |
5239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5240 | if test $ac_struct_stat_st_mode = yes; then :; | |
5241 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5242 | #define HAVE_STRUCT_STAT_ST_MODE 1 |
b7026657 | 5243 | _ACEOF |
697afb65 | 5244 | |
b7026657 | 5245 | else :; |
697afb65 HPN |
5246 | fi |
5247 | fi | |
b7026657 AC |
5248 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5 |
5249 | echo "${ECHO_T}$ac_struct_stat_st_mode" >&6 | |
697afb65 | 5250 | |
b7026657 AC |
5251 | echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5 |
5252 | echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6 | |
5253 | if test "${ac_struct_stat_st_nlink+set}" = set; then | |
5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5255 | else |
5256 | ac_struct_stat_st_nlink=no; | |
b7026657 AC |
5257 | cat >conftest.$ac_ext <<_ACEOF |
5258 | /* confdefs.h. */ | |
5259 | _ACEOF | |
5260 | cat confdefs.h >>conftest.$ac_ext | |
5261 | cat >>conftest.$ac_ext <<_ACEOF | |
5262 | /* end confdefs.h. */ | |
697afb65 HPN |
5263 | #ifdef HAVE_SYS_TYPES_H |
5264 | #include <sys/types.h> | |
5265 | #endif | |
5266 | #ifdef HAVE_SYS_STAT_H | |
5267 | #include <sys/stat.h> | |
5268 | #endif | |
b7026657 AC |
5269 | int |
5270 | main () | |
5271 | { | |
697afb65 HPN |
5272 | |
5273 | static struct stat ac_aggr; | |
5274 | if (ac_aggr.st_nlink) | |
5275 | return 0; | |
b7026657 AC |
5276 | ; |
5277 | return 0; | |
5278 | } | |
5279 | _ACEOF | |
5280 | rm -f conftest.$ac_objext | |
5281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5282 | (eval $ac_compile) 2>conftest.er1 | |
5283 | ac_status=$? | |
5284 | grep -v '^ *+' conftest.er1 >conftest.err | |
5285 | rm -f conftest.er1 | |
5286 | cat conftest.err >&5 | |
5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5288 | (exit $ac_status); } && | |
20e95c23 DJ |
5289 | { ac_try='test -z "$ac_c_werror_flag" |
5290 | || test ! -s conftest.err' | |
b7026657 AC |
5291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5292 | (eval $ac_try) 2>&5 | |
5293 | ac_status=$? | |
5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5295 | (exit $ac_status); }; } && | |
5296 | { ac_try='test -s conftest.$ac_objext' | |
5297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5298 | (eval $ac_try) 2>&5 | |
5299 | ac_status=$? | |
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5301 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5302 | ac_struct_stat_st_nlink=yes; |
5303 | else | |
b7026657 AC |
5304 | echo "$as_me: failed program was:" >&5 |
5305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5306 | ||
5307 | cat >conftest.$ac_ext <<_ACEOF | |
5308 | /* confdefs.h. */ | |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
697afb65 HPN |
5313 | #ifdef HAVE_SYS_TYPES_H |
5314 | #include <sys/types.h> | |
5315 | #endif | |
5316 | #ifdef HAVE_SYS_STAT_H | |
5317 | #include <sys/stat.h> | |
5318 | #endif | |
b7026657 AC |
5319 | int |
5320 | main () | |
5321 | { | |
697afb65 HPN |
5322 | |
5323 | static struct stat ac_aggr; | |
5324 | if (sizeof ac_aggr.st_nlink) | |
5325 | return 0; | |
b7026657 AC |
5326 | ; |
5327 | return 0; | |
5328 | } | |
5329 | _ACEOF | |
5330 | rm -f conftest.$ac_objext | |
5331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5332 | (eval $ac_compile) 2>conftest.er1 | |
5333 | ac_status=$? | |
5334 | grep -v '^ *+' conftest.er1 >conftest.err | |
5335 | rm -f conftest.er1 | |
5336 | cat conftest.err >&5 | |
5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5338 | (exit $ac_status); } && | |
20e95c23 DJ |
5339 | { ac_try='test -z "$ac_c_werror_flag" |
5340 | || test ! -s conftest.err' | |
b7026657 AC |
5341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5342 | (eval $ac_try) 2>&5 | |
5343 | ac_status=$? | |
5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5345 | (exit $ac_status); }; } && | |
5346 | { ac_try='test -s conftest.$ac_objext' | |
5347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5348 | (eval $ac_try) 2>&5 | |
5349 | ac_status=$? | |
5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5351 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5352 | ac_struct_stat_st_nlink=yes; |
5353 | else | |
b7026657 AC |
5354 | echo "$as_me: failed program was:" >&5 |
5355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5356 | ||
5357 | ac_struct_stat_st_nlink=no; | |
697afb65 | 5358 | fi |
b7026657 | 5359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5360 | fi |
b7026657 AC |
5361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5362 | if test $ac_struct_stat_st_nlink = yes; then :; | |
5363 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5364 | #define HAVE_STRUCT_STAT_ST_NLINK 1 |
b7026657 | 5365 | _ACEOF |
697afb65 | 5366 | |
b7026657 | 5367 | else :; |
697afb65 HPN |
5368 | fi |
5369 | fi | |
b7026657 AC |
5370 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5 |
5371 | echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6 | |
697afb65 | 5372 | |
b7026657 AC |
5373 | echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5 |
5374 | echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6 | |
5375 | if test "${ac_struct_stat_st_uid+set}" = set; then | |
5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5377 | else |
5378 | ac_struct_stat_st_uid=no; | |
b7026657 AC |
5379 | cat >conftest.$ac_ext <<_ACEOF |
5380 | /* confdefs.h. */ | |
5381 | _ACEOF | |
5382 | cat confdefs.h >>conftest.$ac_ext | |
5383 | cat >>conftest.$ac_ext <<_ACEOF | |
5384 | /* end confdefs.h. */ | |
697afb65 HPN |
5385 | #ifdef HAVE_SYS_TYPES_H |
5386 | #include <sys/types.h> | |
5387 | #endif | |
5388 | #ifdef HAVE_SYS_STAT_H | |
5389 | #include <sys/stat.h> | |
5390 | #endif | |
b7026657 AC |
5391 | int |
5392 | main () | |
5393 | { | |
697afb65 HPN |
5394 | |
5395 | static struct stat ac_aggr; | |
5396 | if (ac_aggr.st_uid) | |
5397 | return 0; | |
b7026657 AC |
5398 | ; |
5399 | return 0; | |
5400 | } | |
5401 | _ACEOF | |
5402 | rm -f conftest.$ac_objext | |
5403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5404 | (eval $ac_compile) 2>conftest.er1 | |
5405 | ac_status=$? | |
5406 | grep -v '^ *+' conftest.er1 >conftest.err | |
5407 | rm -f conftest.er1 | |
5408 | cat conftest.err >&5 | |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5410 | (exit $ac_status); } && | |
20e95c23 DJ |
5411 | { ac_try='test -z "$ac_c_werror_flag" |
5412 | || test ! -s conftest.err' | |
b7026657 AC |
5413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5414 | (eval $ac_try) 2>&5 | |
5415 | ac_status=$? | |
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5417 | (exit $ac_status); }; } && | |
5418 | { ac_try='test -s conftest.$ac_objext' | |
5419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5420 | (eval $ac_try) 2>&5 | |
5421 | ac_status=$? | |
5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5423 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5424 | ac_struct_stat_st_uid=yes; |
5425 | else | |
b7026657 AC |
5426 | echo "$as_me: failed program was:" >&5 |
5427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5428 | ||
5429 | cat >conftest.$ac_ext <<_ACEOF | |
5430 | /* confdefs.h. */ | |
5431 | _ACEOF | |
5432 | cat confdefs.h >>conftest.$ac_ext | |
5433 | cat >>conftest.$ac_ext <<_ACEOF | |
5434 | /* end confdefs.h. */ | |
697afb65 HPN |
5435 | #ifdef HAVE_SYS_TYPES_H |
5436 | #include <sys/types.h> | |
5437 | #endif | |
5438 | #ifdef HAVE_SYS_STAT_H | |
5439 | #include <sys/stat.h> | |
5440 | #endif | |
b7026657 AC |
5441 | int |
5442 | main () | |
5443 | { | |
697afb65 HPN |
5444 | |
5445 | static struct stat ac_aggr; | |
5446 | if (sizeof ac_aggr.st_uid) | |
5447 | return 0; | |
b7026657 AC |
5448 | ; |
5449 | return 0; | |
5450 | } | |
5451 | _ACEOF | |
5452 | rm -f conftest.$ac_objext | |
5453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5454 | (eval $ac_compile) 2>conftest.er1 | |
5455 | ac_status=$? | |
5456 | grep -v '^ *+' conftest.er1 >conftest.err | |
5457 | rm -f conftest.er1 | |
5458 | cat conftest.err >&5 | |
5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5460 | (exit $ac_status); } && | |
20e95c23 DJ |
5461 | { ac_try='test -z "$ac_c_werror_flag" |
5462 | || test ! -s conftest.err' | |
b7026657 AC |
5463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5464 | (eval $ac_try) 2>&5 | |
5465 | ac_status=$? | |
5466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5467 | (exit $ac_status); }; } && | |
5468 | { ac_try='test -s conftest.$ac_objext' | |
5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5470 | (eval $ac_try) 2>&5 | |
5471 | ac_status=$? | |
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5473 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5474 | ac_struct_stat_st_uid=yes; |
5475 | else | |
b7026657 AC |
5476 | echo "$as_me: failed program was:" >&5 |
5477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5478 | ||
5479 | ac_struct_stat_st_uid=no; | |
697afb65 | 5480 | fi |
b7026657 | 5481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5482 | fi |
b7026657 AC |
5483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5484 | if test $ac_struct_stat_st_uid = yes; then :; | |
5485 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5486 | #define HAVE_STRUCT_STAT_ST_UID 1 |
b7026657 | 5487 | _ACEOF |
697afb65 | 5488 | |
b7026657 | 5489 | else :; |
697afb65 HPN |
5490 | fi |
5491 | fi | |
b7026657 AC |
5492 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5 |
5493 | echo "${ECHO_T}$ac_struct_stat_st_uid" >&6 | |
697afb65 | 5494 | |
b7026657 AC |
5495 | echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5 |
5496 | echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6 | |
5497 | if test "${ac_struct_stat_st_gid+set}" = set; then | |
5498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5499 | else |
5500 | ac_struct_stat_st_gid=no; | |
b7026657 AC |
5501 | cat >conftest.$ac_ext <<_ACEOF |
5502 | /* confdefs.h. */ | |
5503 | _ACEOF | |
5504 | cat confdefs.h >>conftest.$ac_ext | |
5505 | cat >>conftest.$ac_ext <<_ACEOF | |
5506 | /* end confdefs.h. */ | |
697afb65 HPN |
5507 | #ifdef HAVE_SYS_TYPES_H |
5508 | #include <sys/types.h> | |
5509 | #endif | |
5510 | #ifdef HAVE_SYS_STAT_H | |
5511 | #include <sys/stat.h> | |
5512 | #endif | |
b7026657 AC |
5513 | int |
5514 | main () | |
5515 | { | |
697afb65 HPN |
5516 | |
5517 | static struct stat ac_aggr; | |
5518 | if (ac_aggr.st_gid) | |
5519 | return 0; | |
b7026657 AC |
5520 | ; |
5521 | return 0; | |
5522 | } | |
5523 | _ACEOF | |
5524 | rm -f conftest.$ac_objext | |
5525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5526 | (eval $ac_compile) 2>conftest.er1 | |
5527 | ac_status=$? | |
5528 | grep -v '^ *+' conftest.er1 >conftest.err | |
5529 | rm -f conftest.er1 | |
5530 | cat conftest.err >&5 | |
5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5532 | (exit $ac_status); } && | |
20e95c23 DJ |
5533 | { ac_try='test -z "$ac_c_werror_flag" |
5534 | || test ! -s conftest.err' | |
b7026657 AC |
5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5536 | (eval $ac_try) 2>&5 | |
5537 | ac_status=$? | |
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5539 | (exit $ac_status); }; } && | |
5540 | { ac_try='test -s conftest.$ac_objext' | |
5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5542 | (eval $ac_try) 2>&5 | |
5543 | ac_status=$? | |
5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5545 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5546 | ac_struct_stat_st_gid=yes; |
5547 | else | |
b7026657 AC |
5548 | echo "$as_me: failed program was:" >&5 |
5549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5550 | ||
5551 | cat >conftest.$ac_ext <<_ACEOF | |
5552 | /* confdefs.h. */ | |
5553 | _ACEOF | |
5554 | cat confdefs.h >>conftest.$ac_ext | |
5555 | cat >>conftest.$ac_ext <<_ACEOF | |
5556 | /* end confdefs.h. */ | |
697afb65 HPN |
5557 | #ifdef HAVE_SYS_TYPES_H |
5558 | #include <sys/types.h> | |
5559 | #endif | |
5560 | #ifdef HAVE_SYS_STAT_H | |
5561 | #include <sys/stat.h> | |
5562 | #endif | |
b7026657 AC |
5563 | int |
5564 | main () | |
5565 | { | |
697afb65 HPN |
5566 | |
5567 | static struct stat ac_aggr; | |
5568 | if (sizeof ac_aggr.st_gid) | |
5569 | return 0; | |
b7026657 AC |
5570 | ; |
5571 | return 0; | |
5572 | } | |
5573 | _ACEOF | |
5574 | rm -f conftest.$ac_objext | |
5575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5576 | (eval $ac_compile) 2>conftest.er1 | |
5577 | ac_status=$? | |
5578 | grep -v '^ *+' conftest.er1 >conftest.err | |
5579 | rm -f conftest.er1 | |
5580 | cat conftest.err >&5 | |
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 | (exit $ac_status); } && | |
20e95c23 DJ |
5583 | { ac_try='test -z "$ac_c_werror_flag" |
5584 | || test ! -s conftest.err' | |
b7026657 AC |
5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5586 | (eval $ac_try) 2>&5 | |
5587 | ac_status=$? | |
5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5589 | (exit $ac_status); }; } && | |
5590 | { ac_try='test -s conftest.$ac_objext' | |
5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5592 | (eval $ac_try) 2>&5 | |
5593 | ac_status=$? | |
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5595 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5596 | ac_struct_stat_st_gid=yes; |
5597 | else | |
b7026657 AC |
5598 | echo "$as_me: failed program was:" >&5 |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
5601 | ac_struct_stat_st_gid=no; | |
697afb65 | 5602 | fi |
b7026657 | 5603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5604 | fi |
b7026657 AC |
5605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5606 | if test $ac_struct_stat_st_gid = yes; then :; | |
5607 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5608 | #define HAVE_STRUCT_STAT_ST_GID 1 |
b7026657 | 5609 | _ACEOF |
697afb65 | 5610 | |
b7026657 | 5611 | else :; |
697afb65 HPN |
5612 | fi |
5613 | fi | |
b7026657 AC |
5614 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5 |
5615 | echo "${ECHO_T}$ac_struct_stat_st_gid" >&6 | |
697afb65 | 5616 | |
b7026657 AC |
5617 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5618 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
5619 | if test "${ac_struct_stat_st_rdev+set}" = set; then | |
5620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5621 | else |
5622 | ac_struct_stat_st_rdev=no; | |
b7026657 AC |
5623 | cat >conftest.$ac_ext <<_ACEOF |
5624 | /* confdefs.h. */ | |
5625 | _ACEOF | |
5626 | cat confdefs.h >>conftest.$ac_ext | |
5627 | cat >>conftest.$ac_ext <<_ACEOF | |
5628 | /* end confdefs.h. */ | |
697afb65 HPN |
5629 | #ifdef HAVE_SYS_TYPES_H |
5630 | #include <sys/types.h> | |
5631 | #endif | |
5632 | #ifdef HAVE_SYS_STAT_H | |
5633 | #include <sys/stat.h> | |
5634 | #endif | |
b7026657 AC |
5635 | int |
5636 | main () | |
5637 | { | |
697afb65 HPN |
5638 | |
5639 | static struct stat ac_aggr; | |
5640 | if (ac_aggr.st_rdev) | |
5641 | return 0; | |
b7026657 AC |
5642 | ; |
5643 | return 0; | |
5644 | } | |
5645 | _ACEOF | |
5646 | rm -f conftest.$ac_objext | |
5647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5648 | (eval $ac_compile) 2>conftest.er1 | |
5649 | ac_status=$? | |
5650 | grep -v '^ *+' conftest.er1 >conftest.err | |
5651 | rm -f conftest.er1 | |
5652 | cat conftest.err >&5 | |
5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5654 | (exit $ac_status); } && | |
20e95c23 DJ |
5655 | { ac_try='test -z "$ac_c_werror_flag" |
5656 | || test ! -s conftest.err' | |
b7026657 AC |
5657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5658 | (eval $ac_try) 2>&5 | |
5659 | ac_status=$? | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); }; } && | |
5662 | { ac_try='test -s conftest.$ac_objext' | |
5663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5664 | (eval $ac_try) 2>&5 | |
5665 | ac_status=$? | |
5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5667 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5668 | ac_struct_stat_st_rdev=yes; |
5669 | else | |
b7026657 AC |
5670 | echo "$as_me: failed program was:" >&5 |
5671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5672 | ||
5673 | cat >conftest.$ac_ext <<_ACEOF | |
5674 | /* confdefs.h. */ | |
5675 | _ACEOF | |
5676 | cat confdefs.h >>conftest.$ac_ext | |
5677 | cat >>conftest.$ac_ext <<_ACEOF | |
5678 | /* end confdefs.h. */ | |
697afb65 HPN |
5679 | #ifdef HAVE_SYS_TYPES_H |
5680 | #include <sys/types.h> | |
5681 | #endif | |
5682 | #ifdef HAVE_SYS_STAT_H | |
5683 | #include <sys/stat.h> | |
5684 | #endif | |
b7026657 AC |
5685 | int |
5686 | main () | |
5687 | { | |
697afb65 HPN |
5688 | |
5689 | static struct stat ac_aggr; | |
5690 | if (sizeof ac_aggr.st_rdev) | |
5691 | return 0; | |
b7026657 AC |
5692 | ; |
5693 | return 0; | |
5694 | } | |
5695 | _ACEOF | |
5696 | rm -f conftest.$ac_objext | |
5697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5698 | (eval $ac_compile) 2>conftest.er1 | |
5699 | ac_status=$? | |
5700 | grep -v '^ *+' conftest.er1 >conftest.err | |
5701 | rm -f conftest.er1 | |
5702 | cat conftest.err >&5 | |
5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5704 | (exit $ac_status); } && | |
20e95c23 DJ |
5705 | { ac_try='test -z "$ac_c_werror_flag" |
5706 | || test ! -s conftest.err' | |
b7026657 AC |
5707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5708 | (eval $ac_try) 2>&5 | |
5709 | ac_status=$? | |
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5711 | (exit $ac_status); }; } && | |
5712 | { ac_try='test -s conftest.$ac_objext' | |
5713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5714 | (eval $ac_try) 2>&5 | |
5715 | ac_status=$? | |
5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5717 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5718 | ac_struct_stat_st_rdev=yes; |
5719 | else | |
b7026657 AC |
5720 | echo "$as_me: failed program was:" >&5 |
5721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5722 | ||
5723 | ac_struct_stat_st_rdev=no; | |
697afb65 | 5724 | fi |
b7026657 | 5725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5726 | fi |
b7026657 AC |
5727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5728 | if test $ac_struct_stat_st_rdev = yes; then :; | |
5729 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5730 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
b7026657 | 5731 | _ACEOF |
697afb65 | 5732 | |
b7026657 | 5733 | else :; |
697afb65 HPN |
5734 | fi |
5735 | fi | |
b7026657 AC |
5736 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5 |
5737 | echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6 | |
697afb65 | 5738 | |
b7026657 AC |
5739 | echo "$as_me:$LINENO: checking for struct stat.st_size" >&5 |
5740 | echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6 | |
5741 | if test "${ac_struct_stat_st_size+set}" = set; then | |
5742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5743 | else |
5744 | ac_struct_stat_st_size=no; | |
b7026657 AC |
5745 | cat >conftest.$ac_ext <<_ACEOF |
5746 | /* confdefs.h. */ | |
5747 | _ACEOF | |
5748 | cat confdefs.h >>conftest.$ac_ext | |
5749 | cat >>conftest.$ac_ext <<_ACEOF | |
5750 | /* end confdefs.h. */ | |
697afb65 HPN |
5751 | #ifdef HAVE_SYS_TYPES_H |
5752 | #include <sys/types.h> | |
5753 | #endif | |
5754 | #ifdef HAVE_SYS_STAT_H | |
5755 | #include <sys/stat.h> | |
5756 | #endif | |
b7026657 AC |
5757 | int |
5758 | main () | |
5759 | { | |
697afb65 HPN |
5760 | |
5761 | static struct stat ac_aggr; | |
5762 | if (ac_aggr.st_size) | |
5763 | return 0; | |
b7026657 AC |
5764 | ; |
5765 | return 0; | |
5766 | } | |
5767 | _ACEOF | |
5768 | rm -f conftest.$ac_objext | |
5769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5770 | (eval $ac_compile) 2>conftest.er1 | |
5771 | ac_status=$? | |
5772 | grep -v '^ *+' conftest.er1 >conftest.err | |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); } && | |
20e95c23 DJ |
5777 | { ac_try='test -z "$ac_c_werror_flag" |
5778 | || test ! -s conftest.err' | |
b7026657 AC |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5780 | (eval $ac_try) 2>&5 | |
5781 | ac_status=$? | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); }; } && | |
5784 | { ac_try='test -s conftest.$ac_objext' | |
5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5786 | (eval $ac_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5790 | ac_struct_stat_st_size=yes; |
5791 | else | |
b7026657 AC |
5792 | echo "$as_me: failed program was:" >&5 |
5793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5794 | ||
5795 | cat >conftest.$ac_ext <<_ACEOF | |
5796 | /* confdefs.h. */ | |
5797 | _ACEOF | |
5798 | cat confdefs.h >>conftest.$ac_ext | |
5799 | cat >>conftest.$ac_ext <<_ACEOF | |
5800 | /* end confdefs.h. */ | |
697afb65 HPN |
5801 | #ifdef HAVE_SYS_TYPES_H |
5802 | #include <sys/types.h> | |
5803 | #endif | |
5804 | #ifdef HAVE_SYS_STAT_H | |
5805 | #include <sys/stat.h> | |
5806 | #endif | |
b7026657 AC |
5807 | int |
5808 | main () | |
5809 | { | |
697afb65 HPN |
5810 | |
5811 | static struct stat ac_aggr; | |
5812 | if (sizeof ac_aggr.st_size) | |
5813 | return 0; | |
b7026657 AC |
5814 | ; |
5815 | return 0; | |
5816 | } | |
5817 | _ACEOF | |
5818 | rm -f conftest.$ac_objext | |
5819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5820 | (eval $ac_compile) 2>conftest.er1 | |
5821 | ac_status=$? | |
5822 | grep -v '^ *+' conftest.er1 >conftest.err | |
5823 | rm -f conftest.er1 | |
5824 | cat conftest.err >&5 | |
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5826 | (exit $ac_status); } && | |
20e95c23 DJ |
5827 | { ac_try='test -z "$ac_c_werror_flag" |
5828 | || test ! -s conftest.err' | |
b7026657 AC |
5829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5830 | (eval $ac_try) 2>&5 | |
5831 | ac_status=$? | |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); }; } && | |
5834 | { ac_try='test -s conftest.$ac_objext' | |
5835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5836 | (eval $ac_try) 2>&5 | |
5837 | ac_status=$? | |
5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5839 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5840 | ac_struct_stat_st_size=yes; |
5841 | else | |
b7026657 AC |
5842 | echo "$as_me: failed program was:" >&5 |
5843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5844 | ||
5845 | ac_struct_stat_st_size=no; | |
697afb65 | 5846 | fi |
b7026657 | 5847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5848 | fi |
b7026657 AC |
5849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5850 | if test $ac_struct_stat_st_size = yes; then :; | |
5851 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5852 | #define HAVE_STRUCT_STAT_ST_SIZE 1 |
b7026657 | 5853 | _ACEOF |
697afb65 | 5854 | |
b7026657 | 5855 | else :; |
697afb65 HPN |
5856 | fi |
5857 | fi | |
b7026657 AC |
5858 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5 |
5859 | echo "${ECHO_T}$ac_struct_stat_st_size" >&6 | |
697afb65 | 5860 | |
b7026657 AC |
5861 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
5862 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
5863 | if test "${ac_struct_stat_st_blksize+set}" = set; then | |
5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5865 | else |
5866 | ac_struct_stat_st_blksize=no; | |
b7026657 AC |
5867 | cat >conftest.$ac_ext <<_ACEOF |
5868 | /* confdefs.h. */ | |
5869 | _ACEOF | |
5870 | cat confdefs.h >>conftest.$ac_ext | |
5871 | cat >>conftest.$ac_ext <<_ACEOF | |
5872 | /* end confdefs.h. */ | |
697afb65 HPN |
5873 | #ifdef HAVE_SYS_TYPES_H |
5874 | #include <sys/types.h> | |
5875 | #endif | |
5876 | #ifdef HAVE_SYS_STAT_H | |
5877 | #include <sys/stat.h> | |
5878 | #endif | |
b7026657 AC |
5879 | int |
5880 | main () | |
5881 | { | |
697afb65 HPN |
5882 | |
5883 | static struct stat ac_aggr; | |
5884 | if (ac_aggr.st_blksize) | |
5885 | return 0; | |
b7026657 AC |
5886 | ; |
5887 | return 0; | |
5888 | } | |
5889 | _ACEOF | |
5890 | rm -f conftest.$ac_objext | |
5891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5892 | (eval $ac_compile) 2>conftest.er1 | |
5893 | ac_status=$? | |
5894 | grep -v '^ *+' conftest.er1 >conftest.err | |
5895 | rm -f conftest.er1 | |
5896 | cat conftest.err >&5 | |
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5898 | (exit $ac_status); } && | |
20e95c23 DJ |
5899 | { ac_try='test -z "$ac_c_werror_flag" |
5900 | || test ! -s conftest.err' | |
b7026657 AC |
5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5902 | (eval $ac_try) 2>&5 | |
5903 | ac_status=$? | |
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5905 | (exit $ac_status); }; } && | |
5906 | { ac_try='test -s conftest.$ac_objext' | |
5907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5908 | (eval $ac_try) 2>&5 | |
5909 | ac_status=$? | |
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5911 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5912 | ac_struct_stat_st_blksize=yes; |
5913 | else | |
b7026657 AC |
5914 | echo "$as_me: failed program was:" >&5 |
5915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5916 | ||
5917 | cat >conftest.$ac_ext <<_ACEOF | |
5918 | /* confdefs.h. */ | |
5919 | _ACEOF | |
5920 | cat confdefs.h >>conftest.$ac_ext | |
5921 | cat >>conftest.$ac_ext <<_ACEOF | |
5922 | /* end confdefs.h. */ | |
697afb65 HPN |
5923 | #ifdef HAVE_SYS_TYPES_H |
5924 | #include <sys/types.h> | |
5925 | #endif | |
5926 | #ifdef HAVE_SYS_STAT_H | |
5927 | #include <sys/stat.h> | |
5928 | #endif | |
b7026657 AC |
5929 | int |
5930 | main () | |
5931 | { | |
697afb65 HPN |
5932 | |
5933 | static struct stat ac_aggr; | |
5934 | if (sizeof ac_aggr.st_blksize) | |
5935 | return 0; | |
b7026657 AC |
5936 | ; |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | rm -f conftest.$ac_objext | |
5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5942 | (eval $ac_compile) 2>conftest.er1 | |
5943 | ac_status=$? | |
5944 | grep -v '^ *+' conftest.er1 >conftest.err | |
5945 | rm -f conftest.er1 | |
5946 | cat conftest.err >&5 | |
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5948 | (exit $ac_status); } && | |
20e95c23 DJ |
5949 | { ac_try='test -z "$ac_c_werror_flag" |
5950 | || test ! -s conftest.err' | |
b7026657 AC |
5951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5952 | (eval $ac_try) 2>&5 | |
5953 | ac_status=$? | |
5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5955 | (exit $ac_status); }; } && | |
5956 | { ac_try='test -s conftest.$ac_objext' | |
5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5958 | (eval $ac_try) 2>&5 | |
5959 | ac_status=$? | |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; }; then | |
697afb65 HPN |
5962 | ac_struct_stat_st_blksize=yes; |
5963 | else | |
b7026657 AC |
5964 | echo "$as_me: failed program was:" >&5 |
5965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5966 | ||
5967 | ac_struct_stat_st_blksize=no; | |
697afb65 | 5968 | fi |
b7026657 | 5969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 5970 | fi |
b7026657 AC |
5971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5972 | if test $ac_struct_stat_st_blksize = yes; then :; | |
5973 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 5974 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
b7026657 | 5975 | _ACEOF |
697afb65 | 5976 | |
b7026657 | 5977 | else :; |
697afb65 HPN |
5978 | fi |
5979 | fi | |
b7026657 AC |
5980 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5 |
5981 | echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6 | |
697afb65 | 5982 | |
b7026657 AC |
5983 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
5984 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
5985 | if test "${ac_struct_stat_st_blocks+set}" = set; then | |
5986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
5987 | else |
5988 | ac_struct_stat_st_blocks=no; | |
b7026657 AC |
5989 | cat >conftest.$ac_ext <<_ACEOF |
5990 | /* confdefs.h. */ | |
5991 | _ACEOF | |
5992 | cat confdefs.h >>conftest.$ac_ext | |
5993 | cat >>conftest.$ac_ext <<_ACEOF | |
5994 | /* end confdefs.h. */ | |
697afb65 HPN |
5995 | #ifdef HAVE_SYS_TYPES_H |
5996 | #include <sys/types.h> | |
5997 | #endif | |
5998 | #ifdef HAVE_SYS_STAT_H | |
5999 | #include <sys/stat.h> | |
6000 | #endif | |
b7026657 AC |
6001 | int |
6002 | main () | |
6003 | { | |
697afb65 HPN |
6004 | |
6005 | static struct stat ac_aggr; | |
6006 | if (ac_aggr.st_blocks) | |
6007 | return 0; | |
b7026657 AC |
6008 | ; |
6009 | return 0; | |
6010 | } | |
6011 | _ACEOF | |
6012 | rm -f conftest.$ac_objext | |
6013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6014 | (eval $ac_compile) 2>conftest.er1 | |
6015 | ac_status=$? | |
6016 | grep -v '^ *+' conftest.er1 >conftest.err | |
6017 | rm -f conftest.er1 | |
6018 | cat conftest.err >&5 | |
6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6020 | (exit $ac_status); } && | |
20e95c23 DJ |
6021 | { ac_try='test -z "$ac_c_werror_flag" |
6022 | || test ! -s conftest.err' | |
b7026657 AC |
6023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6024 | (eval $ac_try) 2>&5 | |
6025 | ac_status=$? | |
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6027 | (exit $ac_status); }; } && | |
6028 | { ac_try='test -s conftest.$ac_objext' | |
6029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6030 | (eval $ac_try) 2>&5 | |
6031 | ac_status=$? | |
6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6033 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6034 | ac_struct_stat_st_blocks=yes; |
6035 | else | |
b7026657 AC |
6036 | echo "$as_me: failed program was:" >&5 |
6037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6038 | ||
6039 | cat >conftest.$ac_ext <<_ACEOF | |
6040 | /* confdefs.h. */ | |
6041 | _ACEOF | |
6042 | cat confdefs.h >>conftest.$ac_ext | |
6043 | cat >>conftest.$ac_ext <<_ACEOF | |
6044 | /* end confdefs.h. */ | |
697afb65 HPN |
6045 | #ifdef HAVE_SYS_TYPES_H |
6046 | #include <sys/types.h> | |
6047 | #endif | |
6048 | #ifdef HAVE_SYS_STAT_H | |
6049 | #include <sys/stat.h> | |
6050 | #endif | |
b7026657 AC |
6051 | int |
6052 | main () | |
6053 | { | |
697afb65 HPN |
6054 | |
6055 | static struct stat ac_aggr; | |
6056 | if (sizeof ac_aggr.st_blocks) | |
6057 | return 0; | |
b7026657 AC |
6058 | ; |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | rm -f conftest.$ac_objext | |
6063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6064 | (eval $ac_compile) 2>conftest.er1 | |
6065 | ac_status=$? | |
6066 | grep -v '^ *+' conftest.er1 >conftest.err | |
6067 | rm -f conftest.er1 | |
6068 | cat conftest.err >&5 | |
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6070 | (exit $ac_status); } && | |
20e95c23 DJ |
6071 | { ac_try='test -z "$ac_c_werror_flag" |
6072 | || test ! -s conftest.err' | |
b7026657 AC |
6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6074 | (eval $ac_try) 2>&5 | |
6075 | ac_status=$? | |
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6077 | (exit $ac_status); }; } && | |
6078 | { ac_try='test -s conftest.$ac_objext' | |
6079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6080 | (eval $ac_try) 2>&5 | |
6081 | ac_status=$? | |
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6083 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6084 | ac_struct_stat_st_blocks=yes; |
6085 | else | |
b7026657 AC |
6086 | echo "$as_me: failed program was:" >&5 |
6087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6088 | ||
6089 | ac_struct_stat_st_blocks=no; | |
697afb65 | 6090 | fi |
b7026657 | 6091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 6092 | fi |
b7026657 AC |
6093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6094 | if test $ac_struct_stat_st_blocks = yes; then :; | |
6095 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 6096 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
b7026657 | 6097 | _ACEOF |
697afb65 | 6098 | |
b7026657 | 6099 | else :; |
697afb65 HPN |
6100 | fi |
6101 | fi | |
b7026657 AC |
6102 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5 |
6103 | echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6 | |
697afb65 | 6104 | |
b7026657 AC |
6105 | echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5 |
6106 | echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6 | |
6107 | if test "${ac_struct_stat_st_atime+set}" = set; then | |
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
6109 | else |
6110 | ac_struct_stat_st_atime=no; | |
b7026657 AC |
6111 | cat >conftest.$ac_ext <<_ACEOF |
6112 | /* confdefs.h. */ | |
6113 | _ACEOF | |
6114 | cat confdefs.h >>conftest.$ac_ext | |
6115 | cat >>conftest.$ac_ext <<_ACEOF | |
6116 | /* end confdefs.h. */ | |
697afb65 HPN |
6117 | #ifdef HAVE_SYS_TYPES_H |
6118 | #include <sys/types.h> | |
6119 | #endif | |
6120 | #ifdef HAVE_SYS_STAT_H | |
6121 | #include <sys/stat.h> | |
6122 | #endif | |
b7026657 AC |
6123 | int |
6124 | main () | |
6125 | { | |
697afb65 HPN |
6126 | |
6127 | static struct stat ac_aggr; | |
6128 | if (ac_aggr.st_atime) | |
6129 | return 0; | |
b7026657 AC |
6130 | ; |
6131 | return 0; | |
6132 | } | |
6133 | _ACEOF | |
6134 | rm -f conftest.$ac_objext | |
6135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6136 | (eval $ac_compile) 2>conftest.er1 | |
6137 | ac_status=$? | |
6138 | grep -v '^ *+' conftest.er1 >conftest.err | |
6139 | rm -f conftest.er1 | |
6140 | cat conftest.err >&5 | |
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6142 | (exit $ac_status); } && | |
20e95c23 DJ |
6143 | { ac_try='test -z "$ac_c_werror_flag" |
6144 | || test ! -s conftest.err' | |
b7026657 AC |
6145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6146 | (eval $ac_try) 2>&5 | |
6147 | ac_status=$? | |
6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6149 | (exit $ac_status); }; } && | |
6150 | { ac_try='test -s conftest.$ac_objext' | |
6151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6152 | (eval $ac_try) 2>&5 | |
6153 | ac_status=$? | |
6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6155 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6156 | ac_struct_stat_st_atime=yes; |
6157 | else | |
b7026657 AC |
6158 | echo "$as_me: failed program was:" >&5 |
6159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6160 | ||
6161 | cat >conftest.$ac_ext <<_ACEOF | |
6162 | /* confdefs.h. */ | |
6163 | _ACEOF | |
6164 | cat confdefs.h >>conftest.$ac_ext | |
6165 | cat >>conftest.$ac_ext <<_ACEOF | |
6166 | /* end confdefs.h. */ | |
697afb65 HPN |
6167 | #ifdef HAVE_SYS_TYPES_H |
6168 | #include <sys/types.h> | |
6169 | #endif | |
6170 | #ifdef HAVE_SYS_STAT_H | |
6171 | #include <sys/stat.h> | |
6172 | #endif | |
b7026657 AC |
6173 | int |
6174 | main () | |
6175 | { | |
697afb65 HPN |
6176 | |
6177 | static struct stat ac_aggr; | |
6178 | if (sizeof ac_aggr.st_atime) | |
6179 | return 0; | |
b7026657 AC |
6180 | ; |
6181 | return 0; | |
6182 | } | |
6183 | _ACEOF | |
6184 | rm -f conftest.$ac_objext | |
6185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6186 | (eval $ac_compile) 2>conftest.er1 | |
6187 | ac_status=$? | |
6188 | grep -v '^ *+' conftest.er1 >conftest.err | |
6189 | rm -f conftest.er1 | |
6190 | cat conftest.err >&5 | |
6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6192 | (exit $ac_status); } && | |
20e95c23 DJ |
6193 | { ac_try='test -z "$ac_c_werror_flag" |
6194 | || test ! -s conftest.err' | |
b7026657 AC |
6195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6196 | (eval $ac_try) 2>&5 | |
6197 | ac_status=$? | |
6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6199 | (exit $ac_status); }; } && | |
6200 | { ac_try='test -s conftest.$ac_objext' | |
6201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6202 | (eval $ac_try) 2>&5 | |
6203 | ac_status=$? | |
6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6205 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6206 | ac_struct_stat_st_atime=yes; |
6207 | else | |
b7026657 AC |
6208 | echo "$as_me: failed program was:" >&5 |
6209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6210 | ||
6211 | ac_struct_stat_st_atime=no; | |
697afb65 | 6212 | fi |
b7026657 | 6213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 6214 | fi |
b7026657 AC |
6215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6216 | if test $ac_struct_stat_st_atime = yes; then :; | |
6217 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 6218 | #define HAVE_STRUCT_STAT_ST_ATIME 1 |
b7026657 | 6219 | _ACEOF |
697afb65 | 6220 | |
b7026657 | 6221 | else :; |
697afb65 HPN |
6222 | fi |
6223 | fi | |
b7026657 AC |
6224 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5 |
6225 | echo "${ECHO_T}$ac_struct_stat_st_atime" >&6 | |
697afb65 | 6226 | |
b7026657 AC |
6227 | echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5 |
6228 | echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6 | |
6229 | if test "${ac_struct_stat_st_mtime+set}" = set; then | |
6230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
6231 | else |
6232 | ac_struct_stat_st_mtime=no; | |
b7026657 AC |
6233 | cat >conftest.$ac_ext <<_ACEOF |
6234 | /* confdefs.h. */ | |
6235 | _ACEOF | |
6236 | cat confdefs.h >>conftest.$ac_ext | |
6237 | cat >>conftest.$ac_ext <<_ACEOF | |
6238 | /* end confdefs.h. */ | |
697afb65 HPN |
6239 | #ifdef HAVE_SYS_TYPES_H |
6240 | #include <sys/types.h> | |
6241 | #endif | |
6242 | #ifdef HAVE_SYS_STAT_H | |
6243 | #include <sys/stat.h> | |
6244 | #endif | |
b7026657 AC |
6245 | int |
6246 | main () | |
6247 | { | |
697afb65 HPN |
6248 | |
6249 | static struct stat ac_aggr; | |
6250 | if (ac_aggr.st_mtime) | |
6251 | return 0; | |
b7026657 AC |
6252 | ; |
6253 | return 0; | |
6254 | } | |
6255 | _ACEOF | |
6256 | rm -f conftest.$ac_objext | |
6257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6258 | (eval $ac_compile) 2>conftest.er1 | |
6259 | ac_status=$? | |
6260 | grep -v '^ *+' conftest.er1 >conftest.err | |
6261 | rm -f conftest.er1 | |
6262 | cat conftest.err >&5 | |
6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6264 | (exit $ac_status); } && | |
20e95c23 DJ |
6265 | { ac_try='test -z "$ac_c_werror_flag" |
6266 | || test ! -s conftest.err' | |
b7026657 AC |
6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6268 | (eval $ac_try) 2>&5 | |
6269 | ac_status=$? | |
6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6271 | (exit $ac_status); }; } && | |
6272 | { ac_try='test -s conftest.$ac_objext' | |
6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6274 | (eval $ac_try) 2>&5 | |
6275 | ac_status=$? | |
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6277 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6278 | ac_struct_stat_st_mtime=yes; |
6279 | else | |
b7026657 AC |
6280 | echo "$as_me: failed program was:" >&5 |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6282 | ||
6283 | cat >conftest.$ac_ext <<_ACEOF | |
6284 | /* confdefs.h. */ | |
6285 | _ACEOF | |
6286 | cat confdefs.h >>conftest.$ac_ext | |
6287 | cat >>conftest.$ac_ext <<_ACEOF | |
6288 | /* end confdefs.h. */ | |
697afb65 HPN |
6289 | #ifdef HAVE_SYS_TYPES_H |
6290 | #include <sys/types.h> | |
6291 | #endif | |
6292 | #ifdef HAVE_SYS_STAT_H | |
6293 | #include <sys/stat.h> | |
6294 | #endif | |
b7026657 AC |
6295 | int |
6296 | main () | |
6297 | { | |
697afb65 HPN |
6298 | |
6299 | static struct stat ac_aggr; | |
6300 | if (sizeof ac_aggr.st_mtime) | |
6301 | return 0; | |
b7026657 AC |
6302 | ; |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
6307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6308 | (eval $ac_compile) 2>conftest.er1 | |
6309 | ac_status=$? | |
6310 | grep -v '^ *+' conftest.er1 >conftest.err | |
6311 | rm -f conftest.er1 | |
6312 | cat conftest.err >&5 | |
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); } && | |
20e95c23 DJ |
6315 | { ac_try='test -z "$ac_c_werror_flag" |
6316 | || test ! -s conftest.err' | |
b7026657 AC |
6317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6318 | (eval $ac_try) 2>&5 | |
6319 | ac_status=$? | |
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6321 | (exit $ac_status); }; } && | |
6322 | { ac_try='test -s conftest.$ac_objext' | |
6323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6324 | (eval $ac_try) 2>&5 | |
6325 | ac_status=$? | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6328 | ac_struct_stat_st_mtime=yes; |
6329 | else | |
b7026657 AC |
6330 | echo "$as_me: failed program was:" >&5 |
6331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6332 | ||
6333 | ac_struct_stat_st_mtime=no; | |
697afb65 | 6334 | fi |
b7026657 | 6335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 6336 | fi |
b7026657 AC |
6337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6338 | if test $ac_struct_stat_st_mtime = yes; then :; | |
6339 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 6340 | #define HAVE_STRUCT_STAT_ST_MTIME 1 |
b7026657 | 6341 | _ACEOF |
697afb65 | 6342 | |
b7026657 | 6343 | else :; |
697afb65 HPN |
6344 | fi |
6345 | fi | |
b7026657 AC |
6346 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5 |
6347 | echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6 | |
697afb65 | 6348 | |
b7026657 AC |
6349 | echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5 |
6350 | echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6 | |
6351 | if test "${ac_struct_stat_st_ctime+set}" = set; then | |
6352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
6353 | else |
6354 | ac_struct_stat_st_ctime=no; | |
b7026657 AC |
6355 | cat >conftest.$ac_ext <<_ACEOF |
6356 | /* confdefs.h. */ | |
6357 | _ACEOF | |
6358 | cat confdefs.h >>conftest.$ac_ext | |
6359 | cat >>conftest.$ac_ext <<_ACEOF | |
6360 | /* end confdefs.h. */ | |
697afb65 HPN |
6361 | #ifdef HAVE_SYS_TYPES_H |
6362 | #include <sys/types.h> | |
6363 | #endif | |
6364 | #ifdef HAVE_SYS_STAT_H | |
6365 | #include <sys/stat.h> | |
6366 | #endif | |
b7026657 AC |
6367 | int |
6368 | main () | |
6369 | { | |
697afb65 HPN |
6370 | |
6371 | static struct stat ac_aggr; | |
6372 | if (ac_aggr.st_ctime) | |
6373 | return 0; | |
b7026657 AC |
6374 | ; |
6375 | return 0; | |
6376 | } | |
6377 | _ACEOF | |
6378 | rm -f conftest.$ac_objext | |
6379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6380 | (eval $ac_compile) 2>conftest.er1 | |
6381 | ac_status=$? | |
6382 | grep -v '^ *+' conftest.er1 >conftest.err | |
6383 | rm -f conftest.er1 | |
6384 | cat conftest.err >&5 | |
6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6386 | (exit $ac_status); } && | |
20e95c23 DJ |
6387 | { ac_try='test -z "$ac_c_werror_flag" |
6388 | || test ! -s conftest.err' | |
b7026657 AC |
6389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6390 | (eval $ac_try) 2>&5 | |
6391 | ac_status=$? | |
6392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6393 | (exit $ac_status); }; } && | |
6394 | { ac_try='test -s conftest.$ac_objext' | |
6395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6396 | (eval $ac_try) 2>&5 | |
6397 | ac_status=$? | |
6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6399 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6400 | ac_struct_stat_st_ctime=yes; |
6401 | else | |
b7026657 AC |
6402 | echo "$as_me: failed program was:" >&5 |
6403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6404 | ||
6405 | cat >conftest.$ac_ext <<_ACEOF | |
6406 | /* confdefs.h. */ | |
6407 | _ACEOF | |
6408 | cat confdefs.h >>conftest.$ac_ext | |
6409 | cat >>conftest.$ac_ext <<_ACEOF | |
6410 | /* end confdefs.h. */ | |
697afb65 HPN |
6411 | #ifdef HAVE_SYS_TYPES_H |
6412 | #include <sys/types.h> | |
6413 | #endif | |
6414 | #ifdef HAVE_SYS_STAT_H | |
6415 | #include <sys/stat.h> | |
6416 | #endif | |
b7026657 AC |
6417 | int |
6418 | main () | |
6419 | { | |
697afb65 HPN |
6420 | |
6421 | static struct stat ac_aggr; | |
6422 | if (sizeof ac_aggr.st_ctime) | |
6423 | return 0; | |
b7026657 AC |
6424 | ; |
6425 | return 0; | |
6426 | } | |
6427 | _ACEOF | |
6428 | rm -f conftest.$ac_objext | |
6429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6430 | (eval $ac_compile) 2>conftest.er1 | |
6431 | ac_status=$? | |
6432 | grep -v '^ *+' conftest.er1 >conftest.err | |
6433 | rm -f conftest.er1 | |
6434 | cat conftest.err >&5 | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); } && | |
20e95c23 DJ |
6437 | { ac_try='test -z "$ac_c_werror_flag" |
6438 | || test ! -s conftest.err' | |
b7026657 AC |
6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6440 | (eval $ac_try) 2>&5 | |
6441 | ac_status=$? | |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6443 | (exit $ac_status); }; } && | |
6444 | { ac_try='test -s conftest.$ac_objext' | |
6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6446 | (eval $ac_try) 2>&5 | |
6447 | ac_status=$? | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); }; }; then | |
697afb65 HPN |
6450 | ac_struct_stat_st_ctime=yes; |
6451 | else | |
b7026657 AC |
6452 | echo "$as_me: failed program was:" >&5 |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6454 | ||
6455 | ac_struct_stat_st_ctime=no; | |
697afb65 | 6456 | fi |
b7026657 | 6457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 6458 | fi |
b7026657 AC |
6459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6460 | if test $ac_struct_stat_st_ctime = yes; then :; | |
6461 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 6462 | #define HAVE_STRUCT_STAT_ST_CTIME 1 |
b7026657 | 6463 | _ACEOF |
697afb65 | 6464 | |
b7026657 | 6465 | else :; |
697afb65 HPN |
6466 | fi |
6467 | fi | |
b7026657 AC |
6468 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5 |
6469 | echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6 | |
697afb65 | 6470 | |
b7026657 AC |
6471 | ac_config_files="$ac_config_files Makefile" |
6472 | ac_config_commands="$ac_config_commands default" | |
6473 | cat >confcache <<\_ACEOF | |
c906108c SS |
6474 | # This file is a shell script that caches the results of configure |
6475 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
6476 | # scripts and configure runs, see configure's option --config-cache. |
6477 | # It is not useful on other systems. If it contains results you don't | |
6478 | # want to keep, you may remove or edit it. | |
c906108c | 6479 | # |
b7026657 AC |
6480 | # config.status only pays attention to the cache file if you give it |
6481 | # the --recheck option to rerun configure. | |
c906108c | 6482 | # |
b7026657 AC |
6483 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6484 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6485 | # following values. | |
6486 | ||
6487 | _ACEOF | |
6488 | ||
c906108c SS |
6489 | # The following way of writing the cache mishandles newlines in values, |
6490 | # but we know of no workaround that is simple, portable, and efficient. | |
6491 | # So, don't put newlines in cache variables' values. | |
6492 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6493 | # and sets the high bit in the cache file unless we assign to the vars. | |
b7026657 AC |
6494 | { |
6495 | (set) 2>&1 | | |
6496 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6497 | *ac_space=\ *) | |
6498 | # `set' does not quote correctly, so add quotes (double-quote | |
6499 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6500 | sed -n \ | |
6501 | "s/'/'\\\\''/g; | |
6502 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6503 | ;; | |
6504 | *) | |
6505 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6506 | sed -n \ | |
6507 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6508 | ;; | |
6509 | esac; | |
6510 | } | | |
6511 | sed ' | |
6512 | t clear | |
6513 | : clear | |
6514 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6515 | t end | |
6516 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6517 | : end' >>confcache | |
6518 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
c906108c | 6519 | if test -w $cache_file; then |
b7026657 AC |
6520 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6521 | cat confcache >$cache_file | |
c906108c SS |
6522 | else |
6523 | echo "not updating unwritable cache $cache_file" | |
6524 | fi | |
6525 | fi | |
6526 | rm -f confcache | |
6527 | ||
c906108c SS |
6528 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6529 | # Let make expand exec_prefix. | |
6530 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6531 | ||
b7026657 AC |
6532 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
6533 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6534 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6535 | # (actually we leave an empty line to preserve line numbers). | |
c906108c | 6536 | if test "x$srcdir" = x.; then |
b7026657 AC |
6537 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
6538 | s/:*\$(srcdir):*/:/; | |
6539 | s/:*\${srcdir}:*/:/; | |
6540 | s/:*@srcdir@:*/:/; | |
6541 | s/^\([^=]*=[ ]*\):*/\1/; | |
6542 | s/:*$//; | |
6543 | s/^[^=]*=[ ]*$//; | |
6544 | }' | |
c906108c SS |
6545 | fi |
6546 | ||
c906108c SS |
6547 | DEFS=-DHAVE_CONFIG_H |
6548 | ||
b7026657 AC |
6549 | ac_libobjs= |
6550 | ac_ltlibobjs= | |
6551 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6552 | # 1. Remove the extension, and $U if already installed. | |
6553 | ac_i=`echo "$ac_i" | | |
6554 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6555 | # 2. Add them. | |
6556 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6557 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6558 | done | |
6559 | LIBOBJS=$ac_libobjs | |
c906108c | 6560 | |
b7026657 AC |
6561 | LTLIBOBJS=$ac_ltlibobjs |
6562 | ||
6563 | ||
6564 | ||
6565 | : ${CONFIG_STATUS=./config.status} | |
6566 | ac_clean_files_save=$ac_clean_files | |
6567 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6568 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6569 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6570 | cat >$CONFIG_STATUS <<_ACEOF | |
6571 | #! $SHELL | |
6572 | # Generated by $as_me. | |
c906108c | 6573 | # Run this file to recreate the current configuration. |
c906108c | 6574 | # Compiler output produced by configure, useful for debugging |
b7026657 | 6575 | # configure, is in config.log if it exists. |
c906108c | 6576 | |
b7026657 AC |
6577 | debug=false |
6578 | ac_cs_recheck=false | |
6579 | ac_cs_silent=false | |
6580 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6581 | _ACEOF | |
6582 | ||
6583 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6584 | ## --------------------- ## | |
6585 | ## M4sh Initialization. ## | |
6586 | ## --------------------- ## | |
6587 | ||
6588 | # Be Bourne compatible | |
6589 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6590 | emulate sh | |
6591 | NULLCMD=: | |
6592 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6593 | # is contrary to our usage. Disable this feature. | |
6594 | alias -g '${1+"$@"}'='"$@"' | |
6595 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6596 | set -o posix | |
6597 | fi | |
6598 | DUALCASE=1; export DUALCASE # for MKS sh | |
6599 | ||
6600 | # Support unset when possible. | |
6601 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6602 | as_unset=unset | |
6603 | else | |
6604 | as_unset=false | |
6605 | fi | |
6606 | ||
6607 | ||
6608 | # Work around bugs in pre-3.0 UWIN ksh. | |
6609 | $as_unset ENV MAIL MAILPATH | |
6610 | PS1='$ ' | |
6611 | PS2='> ' | |
6612 | PS4='+ ' | |
6613 | ||
6614 | # NLS nuisances. | |
6615 | for as_var in \ | |
6616 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6617 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6618 | LC_TELEPHONE LC_TIME | |
c906108c | 6619 | do |
b7026657 AC |
6620 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6621 | eval $as_var=C; export $as_var | |
6622 | else | |
6623 | $as_unset $as_var | |
6624 | fi | |
c906108c SS |
6625 | done |
6626 | ||
b7026657 AC |
6627 | # Required to use basename. |
6628 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6629 | as_expr=expr | |
6630 | else | |
6631 | as_expr=false | |
6632 | fi | |
c906108c | 6633 | |
b7026657 AC |
6634 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6635 | as_basename=basename | |
6636 | else | |
6637 | as_basename=false | |
6638 | fi | |
c906108c | 6639 | |
c906108c | 6640 | |
b7026657 AC |
6641 | # Name of the executable. |
6642 | as_me=`$as_basename "$0" || | |
6643 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6644 | X"$0" : 'X\(//\)$' \| \ | |
6645 | X"$0" : 'X\(/\)$' \| \ | |
6646 | . : '\(.\)' 2>/dev/null || | |
6647 | echo X/"$0" | | |
6648 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6649 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6650 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6651 | s/.*/./; q'` | |
6652 | ||
6653 | ||
6654 | # PATH needs CR, and LINENO needs CR and PATH. | |
6655 | # Avoid depending upon Character Ranges. | |
6656 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6657 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6658 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6659 | as_cr_digits='0123456789' | |
6660 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6661 | ||
6662 | # The user is always right. | |
6663 | if test "${PATH_SEPARATOR+set}" != set; then | |
6664 | echo "#! /bin/sh" >conf$$.sh | |
6665 | echo "exit 0" >>conf$$.sh | |
6666 | chmod +x conf$$.sh | |
6667 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6668 | PATH_SEPARATOR=';' | |
c906108c | 6669 | else |
b7026657 AC |
6670 | PATH_SEPARATOR=: |
6671 | fi | |
6672 | rm -f conf$$.sh | |
6673 | fi | |
6674 | ||
6675 | ||
6676 | as_lineno_1=$LINENO | |
6677 | as_lineno_2=$LINENO | |
6678 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6679 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6680 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6681 | # Find who we are. Look in the path if we contain no path at all | |
6682 | # relative or not. | |
6683 | case $0 in | |
6684 | *[\\/]* ) as_myself=$0 ;; | |
6685 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6686 | for as_dir in $PATH | |
6687 | do | |
6688 | IFS=$as_save_IFS | |
6689 | test -z "$as_dir" && as_dir=. | |
6690 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6691 | done | |
6692 | ||
6693 | ;; | |
6694 | esac | |
6695 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6696 | # in which case we are not to be found in the path. | |
6697 | if test "x$as_myself" = x; then | |
6698 | as_myself=$0 | |
c906108c | 6699 | fi |
b7026657 AC |
6700 | if test ! -f "$as_myself"; then |
6701 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6702 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6703 | { (exit 1); exit 1; }; } | |
6704 | fi | |
6705 | case $CONFIG_SHELL in | |
6706 | '') | |
6707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6708 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6709 | do | |
6710 | IFS=$as_save_IFS | |
6711 | test -z "$as_dir" && as_dir=. | |
6712 | for as_base in sh bash ksh sh5; do | |
6713 | case $as_dir in | |
6714 | /*) | |
6715 | if ("$as_dir/$as_base" -c ' | |
6716 | as_lineno_1=$LINENO | |
6717 | as_lineno_2=$LINENO | |
6718 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6719 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6720 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6721 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
6722 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6723 | CONFIG_SHELL=$as_dir/$as_base | |
6724 | export CONFIG_SHELL | |
6725 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6726 | fi;; | |
6727 | esac | |
6728 | done | |
6729 | done | |
6730 | ;; | |
6731 | esac | |
6732 | ||
6733 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6734 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6735 | # line-number line before each line; the second 'sed' does the real | |
6736 | # work. The second script uses 'N' to pair each line-number line | |
6737 | # with the numbered line, and appends trailing '-' during | |
6738 | # substitution so that $LINENO is not a special case at line end. | |
6739 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6740 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6741 | sed '=' <$as_myself | | |
6742 | sed ' | |
6743 | N | |
6744 | s,$,-, | |
6745 | : loop | |
6746 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6747 | t loop | |
6748 | s,-$,, | |
6749 | s,^['$as_cr_digits']*\n,, | |
6750 | ' >$as_me.lineno && | |
6751 | chmod +x $as_me.lineno || | |
6752 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6753 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6754 | { (exit 1); exit 1; }; } | |
6755 | ||
6756 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6757 | # (the dirname of $[0] is not the place where we might find the | |
6758 | # original and so on. Autoconf is especially sensible to this). | |
6759 | . ./$as_me.lineno | |
6760 | # Exit status is that of the last command. | |
6761 | exit | |
6762 | } | |
6763 | ||
6764 | ||
6765 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
6766 | *c*,-n*) ECHO_N= ECHO_C=' | |
6767 | ' ECHO_T=' ' ;; | |
6768 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6769 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6770 | esac | |
6771 | ||
6772 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6773 | as_expr=expr | |
6774 | else | |
6775 | as_expr=false | |
6776 | fi | |
6777 | ||
6778 | rm -f conf$$ conf$$.exe conf$$.file | |
6779 | echo >conf$$.file | |
6780 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6781 | # We could just check for DJGPP; but this test a) works b) is more generic | |
6782 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6783 | if test -f conf$$.exe; then | |
6784 | # Don't use ln at all; we don't have any links | |
6785 | as_ln_s='cp -p' | |
c906108c | 6786 | else |
b7026657 | 6787 | as_ln_s='ln -s' |
c906108c | 6788 | fi |
b7026657 AC |
6789 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6790 | as_ln_s=ln | |
6791 | else | |
6792 | as_ln_s='cp -p' | |
6793 | fi | |
6794 | rm -f conf$$ conf$$.exe conf$$.file | |
6795 | ||
6796 | if mkdir -p . 2>/dev/null; then | |
6797 | as_mkdir_p=: | |
6798 | else | |
6799 | test -d ./-p && rmdir ./-p | |
6800 | as_mkdir_p=false | |
6801 | fi | |
6802 | ||
6803 | as_executable_p="test -f" | |
6804 | ||
6805 | # Sed expression to map a string onto a valid CPP name. | |
6806 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6807 | ||
6808 | # Sed expression to map a string onto a valid variable name. | |
6809 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6810 | ||
6811 | ||
6812 | # IFS | |
6813 | # We need space, tab and new line, in precisely that order. | |
6814 | as_nl=' | |
6815 | ' | |
6816 | IFS=" $as_nl" | |
6817 | ||
6818 | # CDPATH. | |
6819 | $as_unset CDPATH | |
6820 | ||
6821 | exec 6>&1 | |
6822 | ||
6823 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6824 | # report actual input values of CONFIG_FILES etc. instead of their | |
6825 | # values after options handling. Logging --version etc. is OK. | |
6826 | exec 5>>config.log | |
6827 | { | |
6828 | echo | |
6829 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6830 | ## Running $as_me. ## | |
6831 | _ASBOX | |
6832 | } >&5 | |
6833 | cat >&5 <<_CSEOF | |
6834 | ||
6835 | This file was extended by $as_me, which was | |
6836 | generated by GNU Autoconf 2.59. Invocation command line was | |
6837 | ||
6838 | CONFIG_FILES = $CONFIG_FILES | |
6839 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6840 | CONFIG_LINKS = $CONFIG_LINKS | |
6841 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6842 | $ $0 $@ | |
6843 | ||
6844 | _CSEOF | |
6845 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6846 | echo >&5 | |
6847 | _ACEOF | |
6848 | ||
6849 | # Files that config.status was made for. | |
6850 | if test -n "$ac_config_files"; then | |
6851 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6852 | fi | |
6853 | ||
6854 | if test -n "$ac_config_headers"; then | |
6855 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6856 | fi | |
6857 | ||
6858 | if test -n "$ac_config_links"; then | |
6859 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
6860 | fi | |
6861 | ||
6862 | if test -n "$ac_config_commands"; then | |
6863 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6864 | fi | |
6865 | ||
6866 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6867 | ||
6868 | ac_cs_usage="\ | |
6869 | \`$as_me' instantiates files from templates according to the | |
6870 | current configuration. | |
6871 | ||
6872 | Usage: $0 [OPTIONS] [FILE]... | |
6873 | ||
6874 | -h, --help print this help, then exit | |
6875 | -V, --version print version number, then exit | |
6876 | -q, --quiet do not print progress messages | |
6877 | -d, --debug don't remove temporary files | |
6878 | --recheck update $as_me by reconfiguring in the same conditions | |
6879 | --file=FILE[:TEMPLATE] | |
6880 | instantiate the configuration file FILE | |
6881 | --header=FILE[:TEMPLATE] | |
6882 | instantiate the configuration header FILE | |
6883 | ||
6884 | Configuration files: | |
6885 | $config_files | |
6886 | ||
6887 | Configuration headers: | |
6888 | $config_headers | |
6889 | ||
6890 | Configuration commands: | |
6891 | $config_commands | |
6892 | ||
6893 | Report bugs to <[email protected]>." | |
6894 | _ACEOF | |
6895 | ||
6896 | cat >>$CONFIG_STATUS <<_ACEOF | |
6897 | ac_cs_version="\\ | |
6898 | config.status | |
6899 | configured by $0, generated by GNU Autoconf 2.59, | |
6900 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6901 | ||
6902 | Copyright (C) 2003 Free Software Foundation, Inc. | |
6903 | This config.status script is free software; the Free Software Foundation | |
6904 | gives unlimited permission to copy, distribute and modify it." | |
6905 | srcdir=$srcdir | |
6906 | INSTALL="$INSTALL" | |
6907 | _ACEOF | |
6908 | ||
6909 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6910 | # If no file are specified by the user, then we need to provide default | |
6911 | # value. By we need to know if files were specified by the user. | |
6912 | ac_need_defaults=: | |
6913 | while test $# != 0 | |
6914 | do | |
6915 | case $1 in | |
6916 | --*=*) | |
6917 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6918 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6919 | ac_shift=: | |
6920 | ;; | |
6921 | -*) | |
6922 | ac_option=$1 | |
6923 | ac_optarg=$2 | |
6924 | ac_shift=shift | |
6925 | ;; | |
6926 | *) # This is not an option, so the user has probably given explicit | |
6927 | # arguments. | |
6928 | ac_option=$1 | |
6929 | ac_need_defaults=false;; | |
6930 | esac | |
6931 | ||
6932 | case $ac_option in | |
6933 | # Handling of the options. | |
6934 | _ACEOF | |
6935 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6936 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6937 | ac_cs_recheck=: ;; | |
6938 | --version | --vers* | -V ) | |
6939 | echo "$ac_cs_version"; exit 0 ;; | |
6940 | --he | --h) | |
6941 | # Conflict between --help and --header | |
6942 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6943 | Try \`$0 --help' for more information." >&5 | |
6944 | echo "$as_me: error: ambiguous option: $1 | |
6945 | Try \`$0 --help' for more information." >&2;} | |
6946 | { (exit 1); exit 1; }; };; | |
6947 | --help | --hel | -h ) | |
6948 | echo "$ac_cs_usage"; exit 0 ;; | |
6949 | --debug | --d* | -d ) | |
6950 | debug=: ;; | |
6951 | --file | --fil | --fi | --f ) | |
6952 | $ac_shift | |
6953 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6954 | ac_need_defaults=false;; | |
6955 | --header | --heade | --head | --hea ) | |
6956 | $ac_shift | |
6957 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6958 | ac_need_defaults=false;; | |
6959 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6960 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6961 | ac_cs_silent=: ;; | |
6962 | ||
6963 | # This is an error. | |
6964 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6965 | Try \`$0 --help' for more information." >&5 | |
6966 | echo "$as_me: error: unrecognized option: $1 | |
6967 | Try \`$0 --help' for more information." >&2;} | |
6968 | { (exit 1); exit 1; }; } ;; | |
6969 | ||
6970 | *) ac_config_targets="$ac_config_targets $1" ;; | |
6971 | ||
6972 | esac | |
6973 | shift | |
c906108c | 6974 | done |
b7026657 AC |
6975 | |
6976 | ac_configure_extra_args= | |
6977 | ||
6978 | if $ac_cs_silent; then | |
6979 | exec 6>/dev/null | |
6980 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6981 | fi | |
6982 | ||
6983 | _ACEOF | |
6984 | cat >>$CONFIG_STATUS <<_ACEOF | |
6985 | if \$ac_cs_recheck; then | |
6986 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
6987 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
c906108c | 6988 | fi |
c906108c | 6989 | |
b7026657 | 6990 | _ACEOF |
c906108c | 6991 | |
b7026657 AC |
6992 | |
6993 | ||
6994 | ||
6995 | ||
6996 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6997 | for ac_config_target in $ac_config_targets | |
6998 | do | |
6999 | case "$ac_config_target" in | |
7000 | # Handling of arguments. | |
7001 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7002 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7003 | "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;; | |
7004 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7005 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7006 | { (exit 1); exit 1; }; };; | |
c906108c | 7007 | esac |
b7026657 | 7008 | done |
c906108c | 7009 | |
b7026657 AC |
7010 | # If the user did not use the arguments to specify the items to instantiate, |
7011 | # then the envvar interface is used. Set only those that are not. | |
7012 | # We use the long form for the default assignment because of an extremely | |
7013 | # bizarre bug on SunOS 4.1.3. | |
7014 | if $ac_need_defaults; then | |
7015 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7016 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7017 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7018 | fi | |
7019 | ||
7020 | # Have a temporary directory for convenience. Make it in the build tree | |
7021 | # simply because there is no reason to put it here, and in addition, | |
7022 | # creating and moving files from /tmp can sometimes cause problems. | |
7023 | # Create a temporary directory, and hook for its removal unless debugging. | |
7024 | $debug || | |
7025 | { | |
7026 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7027 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7028 | } | |
c906108c | 7029 | |
b7026657 AC |
7030 | # Create a (secure) tmp directory for tmp files. |
7031 | ||
7032 | { | |
7033 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7034 | test -n "$tmp" && test -d "$tmp" | |
7035 | } || | |
7036 | { | |
7037 | tmp=./confstat$$-$RANDOM | |
7038 | (umask 077 && mkdir $tmp) | |
7039 | } || | |
7040 | { | |
7041 | echo "$me: cannot create a temporary directory in ." >&2 | |
7042 | { (exit 1); exit 1; } | |
7043 | } | |
7044 | ||
7045 | _ACEOF | |
7046 | ||
7047 | cat >>$CONFIG_STATUS <<_ACEOF | |
7048 | ||
7049 | # | |
7050 | # CONFIG_FILES section. | |
7051 | # | |
7052 | ||
7053 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7054 | # This happens for instance when ./config.status config.h | |
7055 | if test -n "\$CONFIG_FILES"; then | |
7056 | # Protect against being on the right side of a sed subst in config.status. | |
7057 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7058 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7059 | s,@sim_environment@,$sim_environment,;t t | |
7060 | s,@sim_alignment@,$sim_alignment,;t t | |
7061 | s,@sim_assert@,$sim_assert,;t t | |
7062 | s,@sim_bitsize@,$sim_bitsize,;t t | |
7063 | s,@sim_endian@,$sim_endian,;t t | |
7064 | s,@sim_hostendian@,$sim_hostendian,;t t | |
7065 | s,@sim_float@,$sim_float,;t t | |
7066 | s,@sim_scache@,$sim_scache,;t t | |
7067 | s,@sim_default_model@,$sim_default_model,;t t | |
7068 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
7069 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
7070 | s,@sim_hw@,$sim_hw,;t t | |
7071 | s,@sim_inline@,$sim_inline,;t t | |
7072 | s,@sim_packages@,$sim_packages,;t t | |
7073 | s,@sim_regparm@,$sim_regparm,;t t | |
7074 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
7075 | s,@sim_smp@,$sim_smp,;t t | |
7076 | s,@sim_stdcall@,$sim_stdcall,;t t | |
7077 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
7078 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
7079 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
7080 | s,@SHELL@,$SHELL,;t t | |
7081 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7082 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7083 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7084 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7085 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7086 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7087 | s,@exec_prefix@,$exec_prefix,;t t | |
7088 | s,@prefix@,$prefix,;t t | |
7089 | s,@program_transform_name@,$program_transform_name,;t t | |
7090 | s,@bindir@,$bindir,;t t | |
7091 | s,@sbindir@,$sbindir,;t t | |
7092 | s,@libexecdir@,$libexecdir,;t t | |
7093 | s,@datadir@,$datadir,;t t | |
7094 | s,@sysconfdir@,$sysconfdir,;t t | |
7095 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7096 | s,@localstatedir@,$localstatedir,;t t | |
7097 | s,@libdir@,$libdir,;t t | |
7098 | s,@includedir@,$includedir,;t t | |
7099 | s,@oldincludedir@,$oldincludedir,;t t | |
7100 | s,@infodir@,$infodir,;t t | |
7101 | s,@mandir@,$mandir,;t t | |
7102 | s,@build_alias@,$build_alias,;t t | |
7103 | s,@host_alias@,$host_alias,;t t | |
7104 | s,@target_alias@,$target_alias,;t t | |
7105 | s,@DEFS@,$DEFS,;t t | |
7106 | s,@ECHO_C@,$ECHO_C,;t t | |
7107 | s,@ECHO_N@,$ECHO_N,;t t | |
7108 | s,@ECHO_T@,$ECHO_T,;t t | |
7109 | s,@LIBS@,$LIBS,;t t | |
7110 | s,@build@,$build,;t t | |
7111 | s,@build_cpu@,$build_cpu,;t t | |
7112 | s,@build_vendor@,$build_vendor,;t t | |
7113 | s,@build_os@,$build_os,;t t | |
7114 | s,@host@,$host,;t t | |
7115 | s,@host_cpu@,$host_cpu,;t t | |
7116 | s,@host_vendor@,$host_vendor,;t t | |
7117 | s,@host_os@,$host_os,;t t | |
7118 | s,@target@,$target,;t t | |
7119 | s,@target_cpu@,$target_cpu,;t t | |
7120 | s,@target_vendor@,$target_vendor,;t t | |
7121 | s,@target_os@,$target_os,;t t | |
7122 | s,@CC@,$CC,;t t | |
7123 | s,@CFLAGS@,$CFLAGS,;t t | |
7124 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7125 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7126 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7127 | s,@EXEEXT@,$EXEEXT,;t t | |
7128 | s,@OBJEXT@,$OBJEXT,;t t | |
7129 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7130 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7131 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7132 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7133 | s,@HDEFINES@,$HDEFINES,;t t | |
7134 | s,@AR@,$AR,;t t | |
7135 | s,@RANLIB@,$RANLIB,;t t | |
7136 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
2f0122dc DJ |
7137 | s,@USE_NLS@,$USE_NLS,;t t |
7138 | s,@LIBINTL@,$LIBINTL,;t t | |
7139 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
7140 | s,@INCINTL@,$INCINTL,;t t | |
7141 | s,@XGETTEXT@,$XGETTEXT,;t t | |
7142 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7143 | s,@POSUB@,$POSUB,;t t | |
7144 | s,@CATALOGS@,$CATALOGS,;t t | |
7145 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
7146 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7147 | s,@GENCAT@,$GENCAT,;t t | |
7148 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b7026657 AC |
7149 | s,@CPP@,$CPP,;t t |
7150 | s,@EGREP@,$EGREP,;t t | |
b7026657 AC |
7151 | s,@MAINT@,$MAINT,;t t |
7152 | s,@sim_bswap@,$sim_bswap,;t t | |
7153 | s,@sim_cflags@,$sim_cflags,;t t | |
7154 | s,@sim_debug@,$sim_debug,;t t | |
7155 | s,@sim_stdio@,$sim_stdio,;t t | |
7156 | s,@sim_trace@,$sim_trace,;t t | |
7157 | s,@sim_profile@,$sim_profile,;t t | |
6efef468 JM |
7158 | s,@PKGVERSION@,$PKGVERSION,;t t |
7159 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t | |
7160 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
b7026657 AC |
7161 | s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t |
7162 | s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t | |
7163 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7164 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
7165 | CEOF | |
7166 | ||
7167 | _ACEOF | |
7168 | ||
7169 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7170 | # Split the substitutions into bite-sized pieces for seds with | |
7171 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7172 | ac_max_sed_lines=48 | |
7173 | ac_sed_frag=1 # Number of current file. | |
7174 | ac_beg=1 # First line for current file. | |
7175 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7176 | ac_more_lines=: | |
7177 | ac_sed_cmds= | |
7178 | while $ac_more_lines; do | |
7179 | if test $ac_beg -gt 1; then | |
7180 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7181 | else | |
7182 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7183 | fi | |
7184 | if test ! -s $tmp/subs.frag; then | |
7185 | ac_more_lines=false | |
7186 | else | |
7187 | # The purpose of the label and of the branching condition is to | |
7188 | # speed up the sed processing (if there are no `@' at all, there | |
7189 | # is no need to browse any of the substitutions). | |
7190 | # These are the two extra sed commands mentioned above. | |
7191 | (echo ':t | |
7192 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7193 | if test -z "$ac_sed_cmds"; then | |
7194 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7195 | else | |
7196 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7197 | fi | |
7198 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7199 | ac_beg=$ac_end | |
7200 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7201 | fi | |
7202 | done | |
7203 | if test -z "$ac_sed_cmds"; then | |
7204 | ac_sed_cmds=cat | |
c906108c | 7205 | fi |
b7026657 | 7206 | fi # test -n "$CONFIG_FILES" |
c906108c | 7207 | |
b7026657 AC |
7208 | _ACEOF |
7209 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7210 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7211 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7212 | case $ac_file in | |
7213 | - | *:- | *:-:* ) # input from stdin | |
7214 | cat >$tmp/stdin | |
7215 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7216 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7217 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7218 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7219 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
7220 | esac |
7221 | ||
b7026657 AC |
7222 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7223 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7224 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7225 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7226 | X"$ac_file" : 'X\(//\)$' \| \ | |
7227 | X"$ac_file" : 'X\(/\)' \| \ | |
7228 | . : '\(.\)' 2>/dev/null || | |
7229 | echo X"$ac_file" | | |
7230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7231 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7232 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7233 | /^X\(\/\).*/{ s//\1/; q; } | |
7234 | s/.*/./; q'` | |
7235 | { if $as_mkdir_p; then | |
7236 | mkdir -p "$ac_dir" | |
7237 | else | |
7238 | as_dir="$ac_dir" | |
7239 | as_dirs= | |
7240 | while test ! -d "$as_dir"; do | |
7241 | as_dirs="$as_dir $as_dirs" | |
7242 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7243 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7244 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7245 | X"$as_dir" : 'X\(//\)$' \| \ | |
7246 | X"$as_dir" : 'X\(/\)' \| \ | |
7247 | . : '\(.\)' 2>/dev/null || | |
7248 | echo X"$as_dir" | | |
7249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7250 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7251 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7252 | /^X\(\/\).*/{ s//\1/; q; } | |
7253 | s/.*/./; q'` | |
7254 | done | |
7255 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7256 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7257 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7258 | { (exit 1); exit 1; }; }; } | |
7259 | ||
7260 | ac_builddir=. | |
7261 | ||
7262 | if test "$ac_dir" != .; then | |
7263 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7264 | # A "../" for each directory in $ac_dir_suffix. | |
7265 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7266 | else | |
7267 | ac_dir_suffix= ac_top_builddir= | |
7268 | fi | |
c906108c | 7269 | |
b7026657 AC |
7270 | case $srcdir in |
7271 | .) # No --srcdir option. We are building in place. | |
7272 | ac_srcdir=. | |
7273 | if test -z "$ac_top_builddir"; then | |
7274 | ac_top_srcdir=. | |
7275 | else | |
7276 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7277 | fi ;; | |
7278 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7279 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7280 | ac_top_srcdir=$srcdir ;; | |
7281 | *) # Relative path. | |
7282 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7283 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7284 | esac | |
7285 | ||
7286 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7287 | # the directories may not exist. | |
7288 | case `pwd` in | |
7289 | .) ac_abs_builddir="$ac_dir";; | |
7290 | *) | |
7291 | case "$ac_dir" in | |
7292 | .) ac_abs_builddir=`pwd`;; | |
7293 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7294 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7295 | esac;; | |
7296 | esac | |
7297 | case $ac_abs_builddir in | |
7298 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7299 | *) | |
7300 | case ${ac_top_builddir}. in | |
7301 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7302 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7303 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7304 | esac;; | |
7305 | esac | |
7306 | case $ac_abs_builddir in | |
7307 | .) ac_abs_srcdir=$ac_srcdir;; | |
7308 | *) | |
7309 | case $ac_srcdir in | |
7310 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7311 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7312 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7313 | esac;; | |
7314 | esac | |
7315 | case $ac_abs_builddir in | |
7316 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7317 | *) | |
7318 | case $ac_top_srcdir in | |
7319 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7320 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7321 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7322 | esac;; | |
7323 | esac | |
7324 | ||
7325 | ||
7326 | case $INSTALL in | |
7327 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7328 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
7329 | esac |
7330 | ||
20e95c23 DJ |
7331 | if test x"$ac_file" != x-; then |
7332 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7333 | echo "$as_me: creating $ac_file" >&6;} | |
7334 | rm -f "$ac_file" | |
7335 | fi | |
b7026657 AC |
7336 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
7337 | # use $as_me), people would be surprised to read: | |
7338 | # /* config.h. Generated by config.status. */ | |
7339 | if test x"$ac_file" = x-; then | |
7340 | configure_input= | |
7341 | else | |
7342 | configure_input="$ac_file. " | |
7343 | fi | |
7344 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7345 | sed 's,.*/,,'` by configure." | |
7346 | ||
7347 | # First look for the input files in the build tree, otherwise in the | |
7348 | # src tree. | |
7349 | ac_file_inputs=`IFS=: | |
7350 | for f in $ac_file_in; do | |
7351 | case $f in | |
7352 | -) echo $tmp/stdin ;; | |
7353 | [\\/$]*) | |
7354 | # Absolute (can't be DOS-style, as IFS=:) | |
7355 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7356 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7357 | { (exit 1); exit 1; }; } | |
7358 | echo "$f";; | |
7359 | *) # Relative | |
7360 | if test -f "$f"; then | |
7361 | # Build tree | |
7362 | echo "$f" | |
7363 | elif test -f "$srcdir/$f"; then | |
7364 | # Source tree | |
7365 | echo "$srcdir/$f" | |
7366 | else | |
7367 | # /dev/null tree | |
7368 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7369 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7370 | { (exit 1); exit 1; }; } | |
7371 | fi;; | |
7372 | esac | |
7373 | done` || { (exit 1); exit 1; } | |
7374 | _ACEOF | |
7375 | cat >>$CONFIG_STATUS <<_ACEOF | |
7376 | sed "$ac_vpsub | |
7377 | $extrasub | |
7378 | _ACEOF | |
7379 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7380 | :t | |
7381 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7382 | s,@configure_input@,$configure_input,;t t | |
7383 | s,@srcdir@,$ac_srcdir,;t t | |
7384 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7385 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7386 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7387 | s,@builddir@,$ac_builddir,;t t | |
7388 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7389 | s,@top_builddir@,$ac_top_builddir,;t t | |
7390 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7391 | s,@INSTALL@,$ac_INSTALL,;t t | |
7392 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7393 | rm -f $tmp/stdin | |
7394 | if test x"$ac_file" != x-; then | |
7395 | mv $tmp/out $ac_file | |
7396 | else | |
7397 | cat $tmp/out | |
7398 | rm -f $tmp/out | |
7399 | fi | |
7400 | ||
7401 | done | |
7402 | _ACEOF | |
7403 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7404 | ||
7405 | # | |
7406 | # CONFIG_HEADER section. | |
7407 | # | |
c906108c SS |
7408 | |
7409 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7410 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7411 | # | |
7412 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
7413 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7414 | ac_dB='[ ].*$,\1#\2' | |
7415 | ac_dC=' ' | |
7416 | ac_dD=',;t' | |
7417 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7418 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7419 | ac_uB='$,\1#\2define\3' | |
c906108c | 7420 | ac_uC=' ' |
b7026657 AC |
7421 | ac_uD=',;t' |
7422 | ||
7423 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 7424 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
7425 | case $ac_file in |
7426 | - | *:- | *:-:* ) # input from stdin | |
7427 | cat >$tmp/stdin | |
7428 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7429 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7430 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7431 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7432 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
7433 | esac |
7434 | ||
b7026657 AC |
7435 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7436 | echo "$as_me: creating $ac_file" >&6;} | |
7437 | ||
7438 | # First look for the input files in the build tree, otherwise in the | |
7439 | # src tree. | |
7440 | ac_file_inputs=`IFS=: | |
7441 | for f in $ac_file_in; do | |
7442 | case $f in | |
7443 | -) echo $tmp/stdin ;; | |
7444 | [\\/$]*) | |
7445 | # Absolute (can't be DOS-style, as IFS=:) | |
7446 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7447 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7448 | { (exit 1); exit 1; }; } | |
7449 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
7450 | echo "$f";; | |
7451 | *) # Relative | |
7452 | if test -f "$f"; then | |
7453 | # Build tree | |
7454 | echo "$f" | |
7455 | elif test -f "$srcdir/$f"; then | |
7456 | # Source tree | |
7457 | echo "$srcdir/$f" | |
7458 | else | |
7459 | # /dev/null tree | |
7460 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7461 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7462 | { (exit 1); exit 1; }; } | |
7463 | fi;; | |
7464 | esac | |
7465 | done` || { (exit 1); exit 1; } | |
7466 | # Remove the trailing spaces. | |
7467 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7468 | ||
7469 | _ACEOF | |
7470 | ||
7471 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7472 | # `conftest.undefs', that substitutes the proper values into | |
7473 | # config.h.in to produce config.h. The first handles `#define' | |
7474 | # templates, and the second `#undef' templates. | |
7475 | # And first: Protect against being on the right side of a sed subst in | |
7476 | # config.status. Protect against being in an unquoted here document | |
7477 | # in config.status. | |
7478 | rm -f conftest.defines conftest.undefs | |
7479 | # Using a here document instead of a string reduces the quoting nightmare. | |
7480 | # Putting comments in sed scripts is not portable. | |
7481 | # | |
7482 | # `end' is used to avoid that the second main sed command (meant for | |
7483 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7484 | # See the Autoconf documentation for `clear'. | |
7485 | cat >confdef2sed.sed <<\_ACEOF | |
7486 | s/[\\&,]/\\&/g | |
7487 | s,[\\$`],\\&,g | |
7488 | t clear | |
7489 | : clear | |
7490 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7491 | t end | |
7492 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7493 | : end | |
7494 | _ACEOF | |
7495 | # If some macros were called several times there might be several times | |
7496 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7497 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7498 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7499 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7500 | rm -f confdef2sed.sed | |
c906108c SS |
7501 | |
7502 | # This sed command replaces #undef with comments. This is necessary, for | |
7503 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7504 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
7505 | cat >>conftest.undefs <<\_ACEOF |
7506 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7507 | _ACEOF | |
7508 | ||
7509 | # Break up conftest.defines because some shells have a limit on the size | |
7510 | # of here documents, and old seds have small limits too (100 cmds). | |
7511 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7512 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7513 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7514 | echo ' :' >>$CONFIG_STATUS | |
7515 | rm -f conftest.tail | |
7516 | while grep . conftest.defines >/dev/null | |
7517 | do | |
7518 | # Write a limited-size here document to $tmp/defines.sed. | |
7519 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7520 | # Speed up: don't consider the non `#define' lines. | |
7521 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7522 | # Work around the forget-to-reset-the-flag bug. | |
7523 | echo 't clr' >>$CONFIG_STATUS | |
7524 | echo ': clr' >>$CONFIG_STATUS | |
7525 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7526 | echo 'CEOF | |
7527 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7528 | rm -f $tmp/in | |
7529 | mv $tmp/out $tmp/in | |
7530 | ' >>$CONFIG_STATUS | |
7531 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7532 | rm -f conftest.defines | |
7533 | mv conftest.tail conftest.defines | |
7534 | done | |
7535 | rm -f conftest.defines | |
7536 | echo ' fi # grep' >>$CONFIG_STATUS | |
7537 | echo >>$CONFIG_STATUS | |
c906108c | 7538 | |
b7026657 AC |
7539 | # Break up conftest.undefs because some shells have a limit on the size |
7540 | # of here documents, and old seds have small limits too (100 cmds). | |
7541 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 7542 | rm -f conftest.tail |
b7026657 | 7543 | while grep . conftest.undefs >/dev/null |
c906108c | 7544 | do |
b7026657 AC |
7545 | # Write a limited-size here document to $tmp/undefs.sed. |
7546 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7547 | # Speed up: don't consider the non `#undef' | |
7548 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7549 | # Work around the forget-to-reset-the-flag bug. | |
7550 | echo 't clr' >>$CONFIG_STATUS | |
7551 | echo ': clr' >>$CONFIG_STATUS | |
7552 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 7553 | echo 'CEOF |
b7026657 AC |
7554 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7555 | rm -f $tmp/in | |
7556 | mv $tmp/out $tmp/in | |
7557 | ' >>$CONFIG_STATUS | |
7558 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7559 | rm -f conftest.undefs | |
7560 | mv conftest.tail conftest.undefs | |
c906108c | 7561 | done |
b7026657 AC |
7562 | rm -f conftest.undefs |
7563 | ||
7564 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7565 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7566 | # use $as_me), people would be surprised to read: | |
7567 | # /* config.h. Generated by config.status. */ | |
7568 | if test x"$ac_file" = x-; then | |
7569 | echo "/* Generated by configure. */" >$tmp/config.h | |
7570 | else | |
7571 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7572 | fi | |
7573 | cat $tmp/in >>$tmp/config.h | |
7574 | rm -f $tmp/in | |
7575 | if test x"$ac_file" != x-; then | |
7576 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
7577 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7578 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7579 | else | |
7580 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7581 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7582 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7583 | X"$ac_file" : 'X\(//\)$' \| \ | |
7584 | X"$ac_file" : 'X\(/\)' \| \ | |
7585 | . : '\(.\)' 2>/dev/null || | |
7586 | echo X"$ac_file" | | |
7587 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7588 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7589 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7590 | /^X\(\/\).*/{ s//\1/; q; } | |
7591 | s/.*/./; q'` | |
7592 | { if $as_mkdir_p; then | |
7593 | mkdir -p "$ac_dir" | |
c906108c | 7594 | else |
b7026657 AC |
7595 | as_dir="$ac_dir" |
7596 | as_dirs= | |
7597 | while test ! -d "$as_dir"; do | |
7598 | as_dirs="$as_dir $as_dirs" | |
7599 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7600 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7601 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7602 | X"$as_dir" : 'X\(//\)$' \| \ | |
7603 | X"$as_dir" : 'X\(/\)' \| \ | |
7604 | . : '\(.\)' 2>/dev/null || | |
7605 | echo X"$as_dir" | | |
7606 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7607 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7608 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7609 | /^X\(\/\).*/{ s//\1/; q; } | |
7610 | s/.*/./; q'` | |
7611 | done | |
7612 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7613 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7614 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7615 | { (exit 1); exit 1; }; }; } | |
7616 | ||
7617 | rm -f $ac_file | |
7618 | mv $tmp/config.h $ac_file | |
c906108c | 7619 | fi |
b7026657 AC |
7620 | else |
7621 | cat $tmp/config.h | |
7622 | rm -f $tmp/config.h | |
c906108c | 7623 | fi |
b7026657 AC |
7624 | done |
7625 | _ACEOF | |
7626 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7627 | ||
7628 | # | |
7629 | # CONFIG_COMMANDS section. | |
7630 | # | |
7631 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7632 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7633 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7634 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7635 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7636 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7637 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7638 | X"$ac_dest" : 'X\(/\)' \| \ | |
7639 | . : '\(.\)' 2>/dev/null || | |
7640 | echo X"$ac_dest" | | |
7641 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7642 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7643 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7644 | /^X\(\/\).*/{ s//\1/; q; } | |
7645 | s/.*/./; q'` | |
7646 | { if $as_mkdir_p; then | |
7647 | mkdir -p "$ac_dir" | |
7648 | else | |
7649 | as_dir="$ac_dir" | |
7650 | as_dirs= | |
7651 | while test ! -d "$as_dir"; do | |
7652 | as_dirs="$as_dir $as_dirs" | |
7653 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7654 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7655 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7656 | X"$as_dir" : 'X\(//\)$' \| \ | |
7657 | X"$as_dir" : 'X\(/\)' \| \ | |
7658 | . : '\(.\)' 2>/dev/null || | |
7659 | echo X"$as_dir" | | |
7660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7662 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7663 | /^X\(\/\).*/{ s//\1/; q; } | |
7664 | s/.*/./; q'` | |
7665 | done | |
7666 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7667 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7668 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7669 | { (exit 1); exit 1; }; }; } | |
7670 | ||
7671 | ac_builddir=. | |
7672 | ||
7673 | if test "$ac_dir" != .; then | |
7674 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7675 | # A "../" for each directory in $ac_dir_suffix. | |
7676 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7677 | else | |
7678 | ac_dir_suffix= ac_top_builddir= | |
7679 | fi | |
7680 | ||
7681 | case $srcdir in | |
7682 | .) # No --srcdir option. We are building in place. | |
7683 | ac_srcdir=. | |
7684 | if test -z "$ac_top_builddir"; then | |
7685 | ac_top_srcdir=. | |
7686 | else | |
7687 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7688 | fi ;; | |
7689 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7690 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7691 | ac_top_srcdir=$srcdir ;; | |
7692 | *) # Relative path. | |
7693 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7694 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7695 | esac | |
7696 | ||
7697 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7698 | # the directories may not exist. | |
7699 | case `pwd` in | |
7700 | .) ac_abs_builddir="$ac_dir";; | |
7701 | *) | |
7702 | case "$ac_dir" in | |
7703 | .) ac_abs_builddir=`pwd`;; | |
7704 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7705 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7706 | esac;; | |
7707 | esac | |
7708 | case $ac_abs_builddir in | |
7709 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7710 | *) | |
7711 | case ${ac_top_builddir}. in | |
7712 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7713 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7714 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7715 | esac;; | |
7716 | esac | |
7717 | case $ac_abs_builddir in | |
7718 | .) ac_abs_srcdir=$ac_srcdir;; | |
7719 | *) | |
7720 | case $ac_srcdir in | |
7721 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7722 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7723 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7724 | esac;; | |
7725 | esac | |
7726 | case $ac_abs_builddir in | |
7727 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7728 | *) | |
7729 | case $ac_top_srcdir in | |
7730 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7731 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7732 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7733 | esac;; | |
7734 | esac | |
7735 | ||
c906108c | 7736 | |
b7026657 AC |
7737 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
7738 | echo "$as_me: executing $ac_dest commands" >&6;} | |
7739 | case $ac_dest in | |
7740 | default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;; | |
7741 | esac | |
7742 | done | |
7743 | _ACEOF | |
c906108c | 7744 | |
b7026657 AC |
7745 | cat >>$CONFIG_STATUS <<\_ACEOF |
7746 | ||
7747 | { (exit 0); exit 0; } | |
7748 | _ACEOF | |
c906108c | 7749 | chmod +x $CONFIG_STATUS |
b7026657 AC |
7750 | ac_clean_files=$ac_clean_files_save |
7751 | ||
7752 | ||
7753 | # configure is writing to config.log, and then calls config.status. | |
7754 | # config.status does its own redirection, appending to config.log. | |
7755 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7756 | # by configure, so config.status won't be able to write to it; its | |
7757 | # output is simply discarded. So we exec the FD to /dev/null, | |
7758 | # effectively closing config.log, so it can be properly (re)opened and | |
7759 | # appended to by config.status. When coming back to configure, we | |
7760 | # need to make the FD available again. | |
7761 | if test "$no_create" != yes; then | |
7762 | ac_cs_success=: | |
7763 | ac_config_status_args= | |
7764 | test "$silent" = yes && | |
7765 | ac_config_status_args="$ac_config_status_args --quiet" | |
7766 | exec 5>/dev/null | |
7767 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7768 | exec 5>>config.log | |
7769 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7770 | # would make configure fail if this is the last instruction. | |
7771 | $ac_cs_success || { (exit 1); exit 1; } | |
7772 | fi | |
c906108c | 7773 |