]>
Commit | Line | Data |
---|---|---|
ccc6cda3 | 1 | #! /bin/sh |
3185942a | 2 | # From configure.in for Bash 4.0, version 4.009. |
f73dda09 | 3 | # Guess values for system-dependent variables and create Makefiles. |
3185942a | 4 | # Generated by GNU Autoconf 2.63 for bash 4.0-rc1. |
f73dda09 JA |
5 | # |
6 | # Report bugs to <bug-bash@gnu.org>. | |
7 | # | |
3185942a JA |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
f73dda09 JA |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
b80f6443 JA |
12 | ## --------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
ccc6cda3 | 15 | |
3185942a JA |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
b80f6443 JA |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | emulate sh | |
20 | NULLCMD=: | |
3185942a | 21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
0628567a JA |
22 | # is contrary to our usage. Disable this feature. |
23 | alias -g '${1+"$@"}'='"$@"' | |
3185942a JA |
24 | setopt NO_GLOB_SUBST |
25 | else | |
26 | case `(set -o) 2>/dev/null` in | |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
30 | fi | |
31 | ||
32 | ||
33 | ||
34 | ||
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
43 | as_nl=' | |
44 | ' | |
45 | export as_nl | |
46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
57 | else | |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
70 | fi | |
71 | export as_echo_body | |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
b80f6443 JA |
82 | fi |
83 | ||
84 | # Support unset when possible. | |
0628567a | 85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
b80f6443 JA |
86 | as_unset=unset |
87 | else | |
88 | as_unset=false | |
89 | fi | |
90 | ||
0628567a | 91 | |
3185942a JA |
92 | # IFS |
93 | # We need space, tab and new line, in precisely that order. Quoting is | |
94 | # there to prevent editors from complaining about space-tab. | |
95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
96 | # splitting by setting IFS to empty value.) | |
97 | IFS=" "" $as_nl" | |
98 | ||
99 | # Find who we are. Look in the path if we contain no directory separator. | |
100 | case $0 in | |
101 | *[\\/]* ) as_myself=$0 ;; | |
102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
103 | for as_dir in $PATH | |
104 | do | |
105 | IFS=$as_save_IFS | |
106 | test -z "$as_dir" && as_dir=. | |
107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
108 | done | |
109 | IFS=$as_save_IFS | |
110 | ||
111 | ;; | |
112 | esac | |
113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
114 | # in which case we are not to be found in the path. | |
115 | if test "x$as_myself" = x; then | |
116 | as_myself=$0 | |
117 | fi | |
118 | if test ! -f "$as_myself"; then | |
119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
120 | { (exit 1); exit 1; } | |
121 | fi | |
122 | ||
0628567a | 123 | # Work around bugs in pre-3.0 UWIN ksh. |
3185942a JA |
124 | for as_var in ENV MAIL MAILPATH |
125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
126 | done | |
0628567a JA |
127 | PS1='$ ' |
128 | PS2='> ' | |
129 | PS4='+ ' | |
130 | ||
131 | # NLS nuisances. | |
3185942a JA |
132 | LC_ALL=C |
133 | export LC_ALL | |
134 | LANGUAGE=C | |
135 | export LANGUAGE | |
0628567a JA |
136 | |
137 | # Required to use basename. | |
3185942a JA |
138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
0628567a JA |
140 | as_expr=expr |
141 | else | |
142 | as_expr=false | |
143 | fi | |
144 | ||
3185942a | 145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
0628567a JA |
146 | as_basename=basename |
147 | else | |
148 | as_basename=false | |
149 | fi | |
b80f6443 JA |
150 | |
151 | ||
152 | # Name of the executable. | |
3185942a | 153 | as_me=`$as_basename -- "$0" || |
b80f6443 JA |
154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
155 | X"$0" : 'X\(//\)$' \| \ | |
3185942a JA |
156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
157 | $as_echo X/"$0" | | |
158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
159 | s//\1/ | |
160 | q | |
161 | } | |
162 | /^X\/\(\/\/\)$/{ | |
163 | s//\1/ | |
164 | q | |
165 | } | |
166 | /^X\/\(\/\).*/{ | |
167 | s//\1/ | |
168 | q | |
169 | } | |
170 | s/.*/./; q'` | |
b80f6443 | 171 | |
3185942a JA |
172 | # CDPATH. |
173 | $as_unset CDPATH | |
0628567a | 174 | |
ccc6cda3 | 175 | |
3185942a JA |
176 | if test "x$CONFIG_SHELL" = x; then |
177 | if (eval ":") 2>/dev/null; then | |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
b80f6443 | 181 | fi |
ccc6cda3 | 182 | |
3185942a JA |
183 | if test $as_have_required = yes && (eval ": |
184 | (as_func_return () { | |
185 | (exit \$1) | |
186 | } | |
187 | as_func_success () { | |
188 | as_func_return 0 | |
189 | } | |
190 | as_func_failure () { | |
191 | as_func_return 1 | |
192 | } | |
193 | as_func_ret_success () { | |
194 | return 0 | |
195 | } | |
196 | as_func_ret_failure () { | |
197 | return 1 | |
198 | } | |
ccc6cda3 | 199 | |
3185942a JA |
200 | exitcode=0 |
201 | if as_func_success; then | |
202 | : | |
203 | else | |
204 | exitcode=1 | |
205 | echo as_func_success failed. | |
206 | fi | |
ccc6cda3 | 207 | |
3185942a JA |
208 | if as_func_failure; then |
209 | exitcode=1 | |
210 | echo as_func_failure succeeded. | |
211 | fi | |
212 | ||
213 | if as_func_ret_success; then | |
214 | : | |
215 | else | |
216 | exitcode=1 | |
217 | echo as_func_ret_success failed. | |
218 | fi | |
219 | ||
220 | if as_func_ret_failure; then | |
221 | exitcode=1 | |
222 | echo as_func_ret_failure succeeded. | |
223 | fi | |
224 | ||
225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
226 | : | |
227 | else | |
228 | exitcode=1 | |
229 | echo positional parameters were not saved. | |
230 | fi | |
231 | ||
232 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
233 | ||
234 | ( | |
235 | as_lineno_1=\$LINENO | |
236 | as_lineno_2=\$LINENO | |
237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
239 | ") 2> /dev/null; then | |
240 | : | |
241 | else | |
242 | as_candidate_shells= | |
b80f6443 JA |
243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
245 | do | |
246 | IFS=$as_save_IFS | |
247 | test -z "$as_dir" && as_dir=. | |
3185942a | 248 | case $as_dir in |
b80f6443 | 249 | /*) |
3185942a JA |
250 | for as_base in sh bash ksh sh5; do |
251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
252 | done;; | |
253 | esac | |
254 | done | |
255 | IFS=$as_save_IFS | |
256 | ||
257 | ||
258 | for as_shell in $as_candidate_shells $SHELL; do | |
259 | # Try only shells that exist, to save several forks. | |
260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
261 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
263 | emulate sh | |
264 | NULLCMD=: | |
265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
266 | # is contrary to our usage. Disable this feature. | |
267 | alias -g '${1+"$@"}'='"$@"' | |
268 | setopt NO_GLOB_SUBST | |
269 | else | |
270 | case `(set -o) 2>/dev/null` in | |
271 | *posix*) set -o posix ;; | |
272 | esac | |
273 | ||
274 | fi | |
275 | ||
276 | ||
277 | : | |
278 | _ASEOF | |
279 | }; then | |
280 | CONFIG_SHELL=$as_shell | |
281 | as_have_required=yes | |
282 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
284 | emulate sh | |
285 | NULLCMD=: | |
286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
287 | # is contrary to our usage. Disable this feature. | |
288 | alias -g '${1+"$@"}'='"$@"' | |
289 | setopt NO_GLOB_SUBST | |
290 | else | |
291 | case `(set -o) 2>/dev/null` in | |
292 | *posix*) set -o posix ;; | |
293 | esac | |
294 | ||
295 | fi | |
296 | ||
297 | ||
298 | : | |
299 | (as_func_return () { | |
300 | (exit $1) | |
301 | } | |
302 | as_func_success () { | |
303 | as_func_return 0 | |
304 | } | |
305 | as_func_failure () { | |
306 | as_func_return 1 | |
307 | } | |
308 | as_func_ret_success () { | |
309 | return 0 | |
310 | } | |
311 | as_func_ret_failure () { | |
312 | return 1 | |
313 | } | |
314 | ||
315 | exitcode=0 | |
316 | if as_func_success; then | |
317 | : | |
318 | else | |
319 | exitcode=1 | |
320 | echo as_func_success failed. | |
321 | fi | |
322 | ||
323 | if as_func_failure; then | |
324 | exitcode=1 | |
325 | echo as_func_failure succeeded. | |
326 | fi | |
327 | ||
328 | if as_func_ret_success; then | |
329 | : | |
330 | else | |
331 | exitcode=1 | |
332 | echo as_func_ret_success failed. | |
333 | fi | |
334 | ||
335 | if as_func_ret_failure; then | |
336 | exitcode=1 | |
337 | echo as_func_ret_failure succeeded. | |
338 | fi | |
339 | ||
340 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
341 | : | |
342 | else | |
343 | exitcode=1 | |
344 | echo positional parameters were not saved. | |
345 | fi | |
346 | ||
347 | test $exitcode = 0) || { (exit 1); exit 1; } | |
348 | ||
349 | ( | |
b80f6443 JA |
350 | as_lineno_1=$LINENO |
351 | as_lineno_2=$LINENO | |
b80f6443 | 352 | test "x$as_lineno_1" != "x$as_lineno_2" && |
3185942a JA |
353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
354 | ||
355 | _ASEOF | |
356 | }; then | |
357 | break | |
358 | fi | |
359 | ||
360 | fi | |
361 | ||
362 | done | |
363 | ||
364 | if test "x$CONFIG_SHELL" != x; then | |
365 | for as_var in BASH_ENV ENV | |
366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
367 | done | |
368 | export CONFIG_SHELL | |
369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
370 | fi | |
371 | ||
372 | ||
373 | if test $as_have_required = no; then | |
374 | echo This script requires a shell more modern than all the | |
375 | echo shells that I found on your system. Please install a | |
376 | echo modern shell, or manually run the script under such a | |
377 | echo shell if you do have one. | |
378 | { (exit 1); exit 1; } | |
379 | fi | |
380 | ||
381 | ||
382 | fi | |
383 | ||
384 | fi | |
385 | ||
386 | ||
387 | ||
388 | (eval "as_func_return () { | |
389 | (exit \$1) | |
390 | } | |
391 | as_func_success () { | |
392 | as_func_return 0 | |
393 | } | |
394 | as_func_failure () { | |
395 | as_func_return 1 | |
396 | } | |
397 | as_func_ret_success () { | |
398 | return 0 | |
399 | } | |
400 | as_func_ret_failure () { | |
401 | return 1 | |
402 | } | |
403 | ||
404 | exitcode=0 | |
405 | if as_func_success; then | |
406 | : | |
407 | else | |
408 | exitcode=1 | |
409 | echo as_func_success failed. | |
410 | fi | |
411 | ||
412 | if as_func_failure; then | |
413 | exitcode=1 | |
414 | echo as_func_failure succeeded. | |
415 | fi | |
416 | ||
417 | if as_func_ret_success; then | |
418 | : | |
419 | else | |
420 | exitcode=1 | |
421 | echo as_func_ret_success failed. | |
422 | fi | |
423 | ||
424 | if as_func_ret_failure; then | |
425 | exitcode=1 | |
426 | echo as_func_ret_failure succeeded. | |
427 | fi | |
428 | ||
429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
430 | : | |
431 | else | |
432 | exitcode=1 | |
433 | echo positional parameters were not saved. | |
434 | fi | |
435 | ||
436 | test \$exitcode = 0") || { | |
437 | echo No shell found that supports shell functions. | |
438 | echo Please tell bug-autoconf@gnu.org about your system, | |
439 | echo including any error possibly output before this message. | |
440 | echo This can help us improve future autoconf versions. | |
441 | echo Configuration will now proceed without shell functions. | |
442 | } | |
443 | ||
444 | ||
445 | ||
446 | as_lineno_1=$LINENO | |
447 | as_lineno_2=$LINENO | |
448 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
449 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
b80f6443 JA |
450 | |
451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
452 | # uniformly replaced by the line number. The first 'sed' inserts a | |
3185942a JA |
453 | # line-number line after each line using $LINENO; the second 'sed' |
454 | # does the real work. The second script uses 'N' to pair each | |
455 | # line-number line with the line containing $LINENO, and appends | |
456 | # trailing '-' during substitution so that $LINENO is not a special | |
457 | # case at line end. | |
b80f6443 | 458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
3185942a JA |
459 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
460 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
461 | sed -n ' | |
462 | p | |
463 | /[$]LINENO/= | |
464 | ' <$as_myself | | |
b80f6443 | 465 | sed ' |
3185942a JA |
466 | s/[$]LINENO.*/&-/ |
467 | t lineno | |
468 | b | |
469 | :lineno | |
b80f6443 | 470 | N |
3185942a JA |
471 | :loop |
472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b80f6443 | 473 | t loop |
3185942a | 474 | s/-\n.*// |
b80f6443 | 475 | ' >$as_me.lineno && |
3185942a JA |
476 | chmod +x "$as_me.lineno" || |
477 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b80f6443 JA |
478 | { (exit 1); exit 1; }; } |
479 | ||
480 | # Don't try to exec as it changes $[0], causing all sort of problems | |
481 | # (the dirname of $[0] is not the place where we might find the | |
3185942a JA |
482 | # original and so on. Autoconf is especially sensitive to this). |
483 | . "./$as_me.lineno" | |
b80f6443 JA |
484 | # Exit status is that of the last command. |
485 | exit | |
486 | } | |
487 | ||
488 | ||
3185942a JA |
489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
490 | as_dirname=dirname | |
491 | else | |
492 | as_dirname=false | |
493 | fi | |
ccc6cda3 | 494 | |
3185942a JA |
495 | ECHO_C= ECHO_N= ECHO_T= |
496 | case `echo -n x` in | |
497 | -n*) | |
498 | case `echo 'x\c'` in | |
499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
500 | *) ECHO_C='\c';; | |
501 | esac;; | |
502 | *) | |
503 | ECHO_N='-n';; | |
504 | esac | |
505 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f73dda09 JA |
507 | as_expr=expr |
508 | else | |
509 | as_expr=false | |
510 | fi | |
ccc6cda3 | 511 | |
f73dda09 | 512 | rm -f conf$$ conf$$.exe conf$$.file |
3185942a JA |
513 | if test -d conf$$.dir; then |
514 | rm -f conf$$.dir/conf$$.file | |
515 | else | |
516 | rm -f conf$$.dir | |
517 | mkdir conf$$.dir 2>/dev/null | |
518 | fi | |
519 | if (echo >conf$$.file) 2>/dev/null; then | |
520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
f73dda09 | 521 | as_ln_s='ln -s' |
3185942a JA |
522 | # ... but there are two gotchas: |
523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
525 | # In both cases, we have to default to `cp -p'. | |
526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
527 | as_ln_s='cp -p' | |
528 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
529 | as_ln_s=ln | |
530 | else | |
531 | as_ln_s='cp -p' | |
f73dda09 | 532 | fi |
f73dda09 JA |
533 | else |
534 | as_ln_s='cp -p' | |
535 | fi | |
3185942a JA |
536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
537 | rmdir conf$$.dir 2>/dev/null | |
ccc6cda3 | 538 | |
0628567a JA |
539 | if mkdir -p . 2>/dev/null; then |
540 | as_mkdir_p=: | |
541 | else | |
542 | test -d ./-p && rmdir ./-p | |
543 | as_mkdir_p=false | |
544 | fi | |
545 | ||
3185942a JA |
546 | if test -x / >/dev/null 2>&1; then |
547 | as_test_x='test -x' | |
548 | else | |
549 | if ls -dL / >/dev/null 2>&1; then | |
550 | as_ls_L_option=L | |
551 | else | |
552 | as_ls_L_option= | |
553 | fi | |
554 | as_test_x=' | |
555 | eval sh -c '\'' | |
556 | if test -d "$1"; then | |
557 | test -d "$1/."; | |
558 | else | |
559 | case $1 in | |
560 | -*)set "./$1";; | |
561 | esac; | |
562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
563 | ???[sx]*):;;*)false;;esac;fi | |
564 | '\'' sh | |
565 | ' | |
566 | fi | |
567 | as_executable_p=$as_test_x | |
b80f6443 JA |
568 | |
569 | # Sed expression to map a string onto a valid CPP name. | |
0628567a | 570 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 JA |
571 | |
572 | # Sed expression to map a string onto a valid variable name. | |
0628567a | 573 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 | 574 | |
f73dda09 | 575 | |
b80f6443 | 576 | |
3185942a | 577 | exec 7<&0 </dev/null 6>&1 |
f73dda09 JA |
578 | |
579 | # Name of the host. | |
580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
581 | # so uname gets run too. | |
582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
583 | ||
726f6388 | 584 | # |
f73dda09 JA |
585 | # Initializations. |
586 | # | |
ccc6cda3 | 587 | ac_default_prefix=/usr/local |
3185942a | 588 | ac_clean_files= |
0628567a | 589 | ac_config_libobj_dir=. |
3185942a | 590 | LIBOBJS= |
f73dda09 JA |
591 | cross_compiling=no |
592 | subdirs= | |
b80f6443 JA |
593 | MFLAGS= |
594 | MAKEFLAGS= | |
f73dda09 JA |
595 | SHELL=${CONFIG_SHELL-/bin/sh} |
596 | ||
b80f6443 JA |
597 | # Identity of this package. |
598 | PACKAGE_NAME='bash' | |
599 | PACKAGE_TARNAME='bash' | |
3185942a JA |
600 | PACKAGE_VERSION='4.0-rc1' |
601 | PACKAGE_STRING='bash 4.0-rc1' | |
b80f6443 JA |
602 | PACKAGE_BUGREPORT='bug-bash@gnu.org' |
603 | ||
f73dda09 JA |
604 | ac_unique_file="shell.h" |
605 | # Factoring default headers for most tests. | |
606 | ac_includes_default="\ | |
607 | #include <stdio.h> | |
3185942a | 608 | #ifdef HAVE_SYS_TYPES_H |
f73dda09 JA |
609 | # include <sys/types.h> |
610 | #endif | |
3185942a | 611 | #ifdef HAVE_SYS_STAT_H |
f73dda09 JA |
612 | # include <sys/stat.h> |
613 | #endif | |
3185942a | 614 | #ifdef STDC_HEADERS |
f73dda09 JA |
615 | # include <stdlib.h> |
616 | # include <stddef.h> | |
617 | #else | |
3185942a | 618 | # ifdef HAVE_STDLIB_H |
f73dda09 JA |
619 | # include <stdlib.h> |
620 | # endif | |
621 | #endif | |
3185942a JA |
622 | #ifdef HAVE_STRING_H |
623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
f73dda09 JA |
624 | # include <memory.h> |
625 | # endif | |
626 | # include <string.h> | |
627 | #endif | |
3185942a | 628 | #ifdef HAVE_STRINGS_H |
f73dda09 JA |
629 | # include <strings.h> |
630 | #endif | |
3185942a | 631 | #ifdef HAVE_INTTYPES_H |
f73dda09 | 632 | # include <inttypes.h> |
f73dda09 | 633 | #endif |
3185942a JA |
634 | #ifdef HAVE_STDINT_H |
635 | # include <stdint.h> | |
636 | #endif | |
637 | #ifdef HAVE_UNISTD_H | |
f73dda09 JA |
638 | # include <unistd.h> |
639 | #endif" | |
ccc6cda3 | 640 | |
3185942a JA |
641 | ac_header_list= |
642 | ac_func_list= | |
643 | ac_subst_vars='LTLIBOBJS | |
644 | LOCAL_DEFS | |
645 | LOCAL_LDFLAGS | |
646 | LOCAL_CFLAGS | |
647 | LOCAL_LIBS | |
648 | MALLOC_DEBUG | |
649 | DEBUG | |
650 | RELSTATUS | |
651 | BASHVERS | |
652 | ARFLAGS | |
653 | BUILD_DIR | |
654 | incdir | |
655 | PROFILE_FLAGS | |
656 | SHOBJ_STATUS | |
657 | SHOBJ_LIBS | |
658 | SHOBJ_XLDFLAGS | |
659 | SHOBJ_LDFLAGS | |
660 | SHOBJ_LD | |
661 | SHOBJ_CFLAGS | |
662 | SHOBJ_CC | |
663 | JOBS_O | |
664 | TERMCAP_DEP | |
665 | TERMCAP_LIB | |
666 | SIGLIST_O | |
667 | LIBINTL_H | |
668 | INTL_INC | |
669 | INTL_DEP | |
670 | LIBOBJS | |
671 | POSUB | |
672 | LTLIBINTL | |
673 | LIBINTL | |
674 | INTLLIBS | |
675 | INTL_LIBTOOL_SUFFIX_PREFIX | |
676 | INTLOBJS | |
677 | GENCAT | |
678 | INSTOBJEXT | |
679 | DATADIRNAME | |
680 | CATOBJEXT | |
681 | USE_INCLUDED_LIBINTL | |
682 | BUILD_INCLUDED_LIBINTL | |
683 | INTLBISON | |
684 | LTLIBICONV | |
685 | LIBICONV | |
686 | GLIBC21 | |
687 | ALLOCA | |
688 | MSGMERGE | |
689 | XGETTEXT | |
690 | GMSGFMT | |
691 | MSGFMT | |
692 | USE_NLS | |
693 | MKINSTALLDIRS | |
694 | SIZE | |
695 | MAKE_SHELL | |
696 | SET_MAKE | |
697 | YFLAGS | |
698 | YACC | |
699 | RANLIB | |
700 | AR | |
701 | INSTALL_DATA | |
702 | INSTALL_SCRIPT | |
703 | INSTALL_PROGRAM | |
704 | TILDE_LIB | |
705 | HIST_LIBDIR | |
706 | HISTORY_DEP | |
707 | HISTORY_LIB | |
708 | RL_INCLUDE | |
709 | RL_INCLUDEDIR | |
710 | RL_LIBDIR | |
711 | READLINE_DEP | |
712 | READLINE_LIB | |
713 | RL_MINOR | |
714 | RL_MAJOR | |
715 | RL_VERSION | |
716 | LDFLAGS_FOR_BUILD | |
717 | CPPFLAGS_FOR_BUILD | |
718 | CFLAGS_FOR_BUILD | |
719 | STATIC_LD | |
720 | CC_FOR_BUILD | |
721 | SIGNAMES_O | |
722 | SIGNAMES_H | |
723 | CROSS_COMPILE | |
724 | EGREP | |
725 | GREP | |
726 | CPP | |
727 | OBJEXT | |
728 | EXEEXT | |
729 | ac_ct_CC | |
730 | CPPFLAGS | |
731 | LDFLAGS | |
732 | CFLAGS | |
733 | CC | |
734 | HELPSTRINGS | |
735 | HELPINSTALL | |
736 | HELPDIRDEFINE | |
737 | HELPDIR | |
738 | MALLOC_DEP | |
739 | MALLOC_LDFLAGS | |
740 | MALLOC_LIBRARY | |
741 | MALLOC_LIB | |
742 | MALLOC_SRC | |
743 | MALLOC_TARGET | |
744 | PURIFY | |
745 | TESTSCRIPT | |
746 | DEBUGGER_START_FILE | |
747 | lispdir | |
748 | EMACS | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | build_os | |
754 | build_vendor | |
755 | build_cpu | |
756 | build | |
757 | target_alias | |
758 | host_alias | |
759 | build_alias | |
760 | LIBS | |
761 | ECHO_T | |
762 | ECHO_N | |
763 | ECHO_C | |
764 | DEFS | |
765 | mandir | |
766 | localedir | |
767 | libdir | |
768 | psdir | |
769 | pdfdir | |
770 | dvidir | |
771 | htmldir | |
772 | infodir | |
773 | docdir | |
774 | oldincludedir | |
775 | includedir | |
776 | localstatedir | |
777 | sharedstatedir | |
778 | sysconfdir | |
779 | datadir | |
780 | datarootdir | |
781 | libexecdir | |
782 | sbindir | |
783 | bindir | |
784 | program_transform_name | |
785 | prefix | |
786 | exec_prefix | |
787 | PACKAGE_BUGREPORT | |
788 | PACKAGE_STRING | |
789 | PACKAGE_VERSION | |
790 | PACKAGE_TARNAME | |
791 | PACKAGE_NAME | |
792 | PATH_SEPARATOR | |
793 | SHELL' | |
0628567a | 794 | ac_subst_files='' |
3185942a JA |
795 | ac_user_opts=' |
796 | enable_option_checking | |
797 | with_lispdir | |
798 | with_afs | |
799 | with_bash_malloc | |
800 | with_curses | |
801 | with_gnu_malloc | |
802 | with_installed_readline | |
803 | with_purecov | |
804 | with_purify | |
805 | enable_minimal_config | |
806 | enable_alias | |
807 | enable_arith_for_command | |
808 | enable_array_variables | |
809 | enable_bang_history | |
810 | enable_brace_expansion | |
811 | enable_casemod_attributes | |
812 | enable_casemod_expansions | |
813 | enable_command_timing | |
814 | enable_cond_command | |
815 | enable_cond_regexp | |
816 | enable_coprocesses | |
817 | enable_debugger | |
818 | enable_directory_stack | |
819 | enable_disabled_builtins | |
820 | enable_dparen_arithmetic | |
821 | enable_extended_glob | |
822 | enable_help_builtin | |
823 | enable_history | |
824 | enable_job_control | |
825 | enable_multibyte | |
826 | enable_net_redirections | |
827 | enable_process_substitution | |
828 | enable_progcomp | |
829 | enable_prompt_string_decoding | |
830 | enable_readline | |
831 | enable_restricted | |
832 | enable_select | |
833 | enable_separate_helpfiles | |
834 | enable_single_help_strings | |
835 | enable_strict_posix_default | |
836 | enable_usg_echo_default | |
837 | enable_xpg_echo_default | |
838 | enable_mem_scramble | |
839 | enable_profiling | |
840 | enable_static_link | |
841 | enable_largefile | |
842 | enable_nls | |
843 | with_gnu_ld | |
844 | enable_rpath | |
845 | with_libiconv_prefix | |
846 | with_included_gettext | |
847 | with_libintl_prefix | |
848 | ' | |
849 | ac_precious_vars='build_alias | |
850 | host_alias | |
851 | target_alias | |
852 | DEBUGGER_START_FILE | |
853 | CC | |
854 | CFLAGS | |
855 | LDFLAGS | |
856 | LIBS | |
857 | CPPFLAGS | |
858 | CPP | |
859 | YACC | |
860 | YFLAGS' | |
861 | ||
b80f6443 | 862 | |
ccc6cda3 | 863 | # Initialize some variables set by options. |
f73dda09 JA |
864 | ac_init_help= |
865 | ac_init_version=false | |
3185942a JA |
866 | ac_unrecognized_opts= |
867 | ac_unrecognized_sep= | |
ccc6cda3 JA |
868 | # The variables have the same names as the options, with |
869 | # dashes changed to underlines. | |
f73dda09 | 870 | cache_file=/dev/null |
ccc6cda3 | 871 | exec_prefix=NONE |
ccc6cda3 | 872 | no_create= |
ccc6cda3 JA |
873 | no_recursion= |
874 | prefix=NONE | |
875 | program_prefix=NONE | |
876 | program_suffix=NONE | |
877 | program_transform_name=s,x,x, | |
878 | silent= | |
879 | site= | |
880 | srcdir= | |
ccc6cda3 JA |
881 | verbose= |
882 | x_includes=NONE | |
883 | x_libraries=NONE | |
f73dda09 JA |
884 | |
885 | # Installation directory options. | |
886 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
887 | # and all the variables that are supposed to be based on exec_prefix | |
888 | # by default will actually change. | |
889 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
3185942a | 890 | # (The list follows the same order as the GNU Coding Standards.) |
ccc6cda3 JA |
891 | bindir='${exec_prefix}/bin' |
892 | sbindir='${exec_prefix}/sbin' | |
893 | libexecdir='${exec_prefix}/libexec' | |
3185942a JA |
894 | datarootdir='${prefix}/share' |
895 | datadir='${datarootdir}' | |
ccc6cda3 JA |
896 | sysconfdir='${prefix}/etc' |
897 | sharedstatedir='${prefix}/com' | |
898 | localstatedir='${prefix}/var' | |
ccc6cda3 JA |
899 | includedir='${prefix}/include' |
900 | oldincludedir='/usr/include' | |
3185942a JA |
901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
902 | infodir='${datarootdir}/info' | |
903 | htmldir='${docdir}' | |
904 | dvidir='${docdir}' | |
905 | pdfdir='${docdir}' | |
906 | psdir='${docdir}' | |
907 | libdir='${exec_prefix}/lib' | |
908 | localedir='${datarootdir}/locale' | |
909 | mandir='${datarootdir}/man' | |
ccc6cda3 | 910 | |
ccc6cda3 | 911 | ac_prev= |
3185942a | 912 | ac_dashdash= |
ccc6cda3 JA |
913 | for ac_option |
914 | do | |
ccc6cda3 JA |
915 | # If the previous option needs an argument, assign it. |
916 | if test -n "$ac_prev"; then | |
3185942a | 917 | eval $ac_prev=\$ac_option |
ccc6cda3 JA |
918 | ac_prev= |
919 | continue | |
920 | fi | |
921 | ||
3185942a JA |
922 | case $ac_option in |
923 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
924 | *) ac_optarg=yes ;; | |
925 | esac | |
ccc6cda3 JA |
926 | |
927 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
928 | ||
3185942a JA |
929 | case $ac_dashdash$ac_option in |
930 | --) | |
931 | ac_dashdash=yes ;; | |
ccc6cda3 JA |
932 | |
933 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
934 | ac_prev=bindir ;; | |
935 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
f73dda09 | 936 | bindir=$ac_optarg ;; |
ccc6cda3 JA |
937 | |
938 | -build | --build | --buil | --bui | --bu) | |
f73dda09 | 939 | ac_prev=build_alias ;; |
ccc6cda3 | 940 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
f73dda09 | 941 | build_alias=$ac_optarg ;; |
ccc6cda3 JA |
942 | |
943 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
944 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
945 | ac_prev=cache_file ;; | |
946 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
947 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
f73dda09 JA |
948 | cache_file=$ac_optarg ;; |
949 | ||
950 | --config-cache | -C) | |
951 | cache_file=config.cache ;; | |
ccc6cda3 | 952 | |
3185942a | 953 | -datadir | --datadir | --datadi | --datad) |
ccc6cda3 | 954 | ac_prev=datadir ;; |
3185942a | 955 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
f73dda09 | 956 | datadir=$ac_optarg ;; |
ccc6cda3 | 957 | |
3185942a JA |
958 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
959 | | --dataroo | --dataro | --datar) | |
960 | ac_prev=datarootdir ;; | |
961 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
962 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
963 | datarootdir=$ac_optarg ;; | |
964 | ||
ccc6cda3 | 965 | -disable-* | --disable-*) |
3185942a | 966 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ccc6cda3 | 967 | # Reject names that are not valid shell variable names. |
3185942a JA |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
f73dda09 | 970 | { (exit 1); exit 1; }; } |
3185942a JA |
971 | ac_useropt_orig=$ac_useropt |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=no ;; | |
981 | ||
982 | -docdir | --docdir | --docdi | --doc | --do) | |
983 | ac_prev=docdir ;; | |
984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
985 | docdir=$ac_optarg ;; | |
986 | ||
987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
988 | ac_prev=dvidir ;; | |
989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
990 | dvidir=$ac_optarg ;; | |
ccc6cda3 JA |
991 | |
992 | -enable-* | --enable-*) | |
3185942a | 993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ccc6cda3 | 994 | # Reject names that are not valid shell variable names. |
3185942a JA |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
996 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
f73dda09 | 997 | { (exit 1); exit 1; }; } |
3185942a JA |
998 | ac_useropt_orig=$ac_useropt |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
ccc6cda3 | 1006 | esac |
3185942a | 1007 | eval enable_$ac_useropt=\$ac_optarg ;; |
ccc6cda3 JA |
1008 | |
1009 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1010 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1011 | | --exec | --exe | --ex) | |
1012 | ac_prev=exec_prefix ;; | |
1013 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1014 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1015 | | --exec=* | --exe=* | --ex=*) | |
f73dda09 | 1016 | exec_prefix=$ac_optarg ;; |
ccc6cda3 JA |
1017 | |
1018 | -gas | --gas | --ga | --g) | |
1019 | # Obsolete; use --with-gas. | |
1020 | with_gas=yes ;; | |
1021 | ||
f73dda09 JA |
1022 | -help | --help | --hel | --he | -h) |
1023 | ac_init_help=long ;; | |
1024 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1025 | ac_init_help=recursive ;; | |
1026 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1027 | ac_init_help=short ;; | |
ccc6cda3 JA |
1028 | |
1029 | -host | --host | --hos | --ho) | |
f73dda09 | 1030 | ac_prev=host_alias ;; |
ccc6cda3 | 1031 | -host=* | --host=* | --hos=* | --ho=*) |
f73dda09 | 1032 | host_alias=$ac_optarg ;; |
ccc6cda3 | 1033 | |
3185942a JA |
1034 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1035 | ac_prev=htmldir ;; | |
1036 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1037 | | --ht=*) | |
1038 | htmldir=$ac_optarg ;; | |
1039 | ||
ccc6cda3 JA |
1040 | -includedir | --includedir | --includedi | --included | --include \ |
1041 | | --includ | --inclu | --incl | --inc) | |
1042 | ac_prev=includedir ;; | |
1043 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1044 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
f73dda09 | 1045 | includedir=$ac_optarg ;; |
ccc6cda3 JA |
1046 | |
1047 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1048 | ac_prev=infodir ;; | |
1049 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
f73dda09 | 1050 | infodir=$ac_optarg ;; |
ccc6cda3 JA |
1051 | |
1052 | -libdir | --libdir | --libdi | --libd) | |
1053 | ac_prev=libdir ;; | |
1054 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
f73dda09 | 1055 | libdir=$ac_optarg ;; |
ccc6cda3 JA |
1056 | |
1057 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1058 | | --libexe | --libex | --libe) | |
1059 | ac_prev=libexecdir ;; | |
1060 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1061 | | --libexe=* | --libex=* | --libe=*) | |
f73dda09 | 1062 | libexecdir=$ac_optarg ;; |
ccc6cda3 | 1063 | |
3185942a JA |
1064 | -localedir | --localedir | --localedi | --localed | --locale) |
1065 | ac_prev=localedir ;; | |
1066 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1067 | localedir=$ac_optarg ;; | |
1068 | ||
ccc6cda3 | 1069 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
3185942a | 1070 | | --localstate | --localstat | --localsta | --localst | --locals) |
ccc6cda3 JA |
1071 | ac_prev=localstatedir ;; |
1072 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
3185942a | 1073 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
f73dda09 | 1074 | localstatedir=$ac_optarg ;; |
ccc6cda3 JA |
1075 | |
1076 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1077 | ac_prev=mandir ;; | |
1078 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
f73dda09 | 1079 | mandir=$ac_optarg ;; |
ccc6cda3 JA |
1080 | |
1081 | -nfp | --nfp | --nf) | |
1082 | # Obsolete; use --without-fp. | |
1083 | with_fp=no ;; | |
1084 | ||
1085 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b80f6443 | 1086 | | --no-cr | --no-c | -n) |
ccc6cda3 JA |
1087 | no_create=yes ;; |
1088 | ||
1089 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1090 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1091 | no_recursion=yes ;; | |
1092 | ||
1093 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1094 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1095 | | --oldin | --oldi | --old | --ol | --o) | |
1096 | ac_prev=oldincludedir ;; | |
1097 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1098 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1099 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
f73dda09 | 1100 | oldincludedir=$ac_optarg ;; |
ccc6cda3 JA |
1101 | |
1102 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1103 | ac_prev=prefix ;; | |
1104 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
f73dda09 | 1105 | prefix=$ac_optarg ;; |
ccc6cda3 JA |
1106 | |
1107 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1108 | | --program-pre | --program-pr | --program-p) | |
1109 | ac_prev=program_prefix ;; | |
1110 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1111 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
f73dda09 | 1112 | program_prefix=$ac_optarg ;; |
ccc6cda3 JA |
1113 | |
1114 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1115 | | --program-suf | --program-su | --program-s) | |
1116 | ac_prev=program_suffix ;; | |
1117 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1118 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
f73dda09 | 1119 | program_suffix=$ac_optarg ;; |
ccc6cda3 JA |
1120 | |
1121 | -program-transform-name | --program-transform-name \ | |
1122 | | --program-transform-nam | --program-transform-na \ | |
1123 | | --program-transform-n | --program-transform- \ | |
1124 | | --program-transform | --program-transfor \ | |
1125 | | --program-transfo | --program-transf \ | |
1126 | | --program-trans | --program-tran \ | |
1127 | | --progr-tra | --program-tr | --program-t) | |
1128 | ac_prev=program_transform_name ;; | |
1129 | -program-transform-name=* | --program-transform-name=* \ | |
1130 | | --program-transform-nam=* | --program-transform-na=* \ | |
1131 | | --program-transform-n=* | --program-transform-=* \ | |
1132 | | --program-transform=* | --program-transfor=* \ | |
1133 | | --program-transfo=* | --program-transf=* \ | |
1134 | | --program-trans=* | --program-tran=* \ | |
1135 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
f73dda09 | 1136 | program_transform_name=$ac_optarg ;; |
ccc6cda3 | 1137 | |
3185942a JA |
1138 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1139 | ac_prev=pdfdir ;; | |
1140 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1141 | pdfdir=$ac_optarg ;; | |
1142 | ||
1143 | -psdir | --psdir | --psdi | --psd | --ps) | |
1144 | ac_prev=psdir ;; | |
1145 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1146 | psdir=$ac_optarg ;; | |
1147 | ||
ccc6cda3 JA |
1148 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1149 | | -silent | --silent | --silen | --sile | --sil) | |
1150 | silent=yes ;; | |
1151 | ||
1152 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1153 | ac_prev=sbindir ;; | |
1154 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1155 | | --sbi=* | --sb=*) | |
f73dda09 | 1156 | sbindir=$ac_optarg ;; |
ccc6cda3 JA |
1157 | |
1158 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1159 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1160 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1161 | | --sha | --sh) | |
1162 | ac_prev=sharedstatedir ;; | |
1163 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1164 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1165 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1166 | | --sha=* | --sh=*) | |
f73dda09 | 1167 | sharedstatedir=$ac_optarg ;; |
ccc6cda3 JA |
1168 | |
1169 | -site | --site | --sit) | |
1170 | ac_prev=site ;; | |
1171 | -site=* | --site=* | --sit=*) | |
f73dda09 | 1172 | site=$ac_optarg ;; |
ccc6cda3 JA |
1173 | |
1174 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1175 | ac_prev=srcdir ;; | |
1176 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
f73dda09 | 1177 | srcdir=$ac_optarg ;; |
ccc6cda3 JA |
1178 | |
1179 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1180 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1181 | ac_prev=sysconfdir ;; | |
1182 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1183 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
f73dda09 | 1184 | sysconfdir=$ac_optarg ;; |
ccc6cda3 JA |
1185 | |
1186 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
f73dda09 | 1187 | ac_prev=target_alias ;; |
ccc6cda3 | 1188 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
f73dda09 | 1189 | target_alias=$ac_optarg ;; |
ccc6cda3 JA |
1190 | |
1191 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1192 | verbose=yes ;; | |
1193 | ||
f73dda09 JA |
1194 | -version | --version | --versio | --versi | --vers | -V) |
1195 | ac_init_version=: ;; | |
ccc6cda3 JA |
1196 | |
1197 | -with-* | --with-*) | |
3185942a | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ccc6cda3 | 1199 | # Reject names that are not valid shell variable names. |
3185942a JA |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
f73dda09 | 1202 | { (exit 1); exit 1; }; } |
3185942a JA |
1203 | ac_useropt_orig=$ac_useropt |
1204 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1205 | case $ac_user_opts in | |
1206 | *" | |
1207 | "with_$ac_useropt" | |
1208 | "*) ;; | |
1209 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1210 | ac_unrecognized_sep=', ';; | |
ccc6cda3 | 1211 | esac |
3185942a | 1212 | eval with_$ac_useropt=\$ac_optarg ;; |
ccc6cda3 JA |
1213 | |
1214 | -without-* | --without-*) | |
3185942a | 1215 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ccc6cda3 | 1216 | # Reject names that are not valid shell variable names. |
3185942a JA |
1217 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1218 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
f73dda09 | 1219 | { (exit 1); exit 1; }; } |
3185942a JA |
1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
1228 | esac | |
1229 | eval with_$ac_useropt=no ;; | |
ccc6cda3 JA |
1230 | |
1231 | --x) | |
1232 | # Obsolete; use --with-x. | |
1233 | with_x=yes ;; | |
1234 | ||
1235 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1236 | | --x-incl | --x-inc | --x-in | --x-i) | |
1237 | ac_prev=x_includes ;; | |
1238 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1239 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
f73dda09 | 1240 | x_includes=$ac_optarg ;; |
ccc6cda3 JA |
1241 | |
1242 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1243 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1244 | ac_prev=x_libraries ;; | |
1245 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1246 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
f73dda09 | 1247 | x_libraries=$ac_optarg ;; |
ccc6cda3 | 1248 | |
3185942a | 1249 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
f73dda09 JA |
1250 | Try \`$0 --help' for more information." >&2 |
1251 | { (exit 1); exit 1; }; } | |
ccc6cda3 JA |
1252 | ;; |
1253 | ||
f73dda09 JA |
1254 | *=*) |
1255 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1256 | # Reject names that are not valid shell variable names. | |
1257 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
3185942a | 1258 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
f73dda09 | 1259 | { (exit 1); exit 1; }; } |
3185942a | 1260 | eval $ac_envvar=\$ac_optarg |
f73dda09 JA |
1261 | export $ac_envvar ;; |
1262 | ||
ccc6cda3 | 1263 | *) |
f73dda09 | 1264 | # FIXME: should be removed in autoconf 3.0. |
3185942a | 1265 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
f73dda09 | 1266 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
3185942a | 1267 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f73dda09 | 1268 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
ccc6cda3 JA |
1269 | ;; |
1270 | ||
1271 | esac | |
1272 | done | |
1273 | ||
1274 | if test -n "$ac_prev"; then | |
f73dda09 | 1275 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
3185942a | 1276 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
f73dda09 | 1277 | { (exit 1); exit 1; }; } |
ccc6cda3 | 1278 | fi |
ccc6cda3 | 1279 | |
3185942a JA |
1280 | if test -n "$ac_unrecognized_opts"; then |
1281 | case $enable_option_checking in | |
1282 | no) ;; | |
1283 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1284 | { (exit 1); exit 1; }; } ;; | |
1285 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
f73dda09 | 1286 | esac |
3185942a | 1287 | fi |
ccc6cda3 | 1288 | |
3185942a JA |
1289 | # Check all directory arguments for consistency. |
1290 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1291 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1292 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1293 | libdir localedir mandir | |
ccc6cda3 | 1294 | do |
3185942a JA |
1295 | eval ac_val=\$$ac_var |
1296 | # Remove trailing slashes. | |
f73dda09 | 1297 | case $ac_val in |
3185942a JA |
1298 | */ ) |
1299 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1300 | eval $ac_var=\$ac_val;; | |
ccc6cda3 | 1301 | esac |
3185942a JA |
1302 | # Be sure to have absolute directory names. |
1303 | case $ac_val in | |
1304 | [\\/$]* | ?:[\\/]* ) continue;; | |
1305 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1306 | esac | |
1307 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1308 | { (exit 1); exit 1; }; } | |
ccc6cda3 JA |
1309 | done |
1310 | ||
f73dda09 JA |
1311 | # There might be people who depend on the old broken behavior: `$host' |
1312 | # used to hold the argument of --host etc. | |
b80f6443 | 1313 | # FIXME: To remove some day. |
f73dda09 JA |
1314 | build=$build_alias |
1315 | host=$host_alias | |
1316 | target=$target_alias | |
1317 | ||
b80f6443 | 1318 | # FIXME: To remove some day. |
f73dda09 JA |
1319 | if test "x$host_alias" != x; then |
1320 | if test "x$build_alias" = x; then | |
1321 | cross_compiling=maybe | |
3185942a | 1322 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
f73dda09 JA |
1323 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1324 | elif test "x$build_alias" != "x$host_alias"; then | |
1325 | cross_compiling=yes | |
1326 | fi | |
1327 | fi | |
ccc6cda3 | 1328 | |
f73dda09 JA |
1329 | ac_tool_prefix= |
1330 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ccc6cda3 | 1331 | |
f73dda09 | 1332 | test "$silent" = yes && exec 6>/dev/null |
ccc6cda3 | 1333 | |
b80f6443 | 1334 | |
3185942a JA |
1335 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1336 | ac_ls_di=`ls -di .` && | |
1337 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1338 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1339 | { (exit 1); exit 1; }; } | |
1340 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1341 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1342 | { (exit 1); exit 1; }; } | |
1343 | ||
1344 | ||
ccc6cda3 JA |
1345 | # Find the source files, if location was not specified. |
1346 | if test -z "$srcdir"; then | |
1347 | ac_srcdir_defaulted=yes | |
3185942a JA |
1348 | # Try the directory containing this script, then the parent directory. |
1349 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1350 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1351 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1352 | X"$as_myself" : 'X\(//\)$' \| \ | |
1353 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1354 | $as_echo X"$as_myself" | | |
1355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1356 | s//\1/ | |
1357 | q | |
1358 | } | |
1359 | /^X\(\/\/\)[^/].*/{ | |
1360 | s//\1/ | |
1361 | q | |
1362 | } | |
1363 | /^X\(\/\/\)$/{ | |
1364 | s//\1/ | |
1365 | q | |
1366 | } | |
1367 | /^X\(\/\).*/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | s/.*/./; q'` | |
ccc6cda3 | 1372 | srcdir=$ac_confdir |
3185942a | 1373 | if test ! -r "$srcdir/$ac_unique_file"; then |
ccc6cda3 JA |
1374 | srcdir=.. |
1375 | fi | |
1376 | else | |
1377 | ac_srcdir_defaulted=no | |
1378 | fi | |
3185942a JA |
1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
1380 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1381 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
f73dda09 | 1382 | { (exit 1); exit 1; }; } |
ccc6cda3 | 1383 | fi |
3185942a JA |
1384 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1385 | ac_abs_confdir=`( | |
1386 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
0628567a | 1387 | { (exit 1); exit 1; }; } |
3185942a JA |
1388 | pwd)` |
1389 | # When building in place, set srcdir=. | |
1390 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1391 | srcdir=. | |
1392 | fi | |
1393 | # Remove unnecessary trailing slashes from srcdir. | |
1394 | # Double slashes in file names in object file debugging info | |
1395 | # mess up M-x gdb in Emacs. | |
1396 | case $srcdir in | |
1397 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1398 | esac | |
1399 | for ac_var in $ac_precious_vars; do | |
1400 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1401 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1402 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1403 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1404 | done | |
ccc6cda3 | 1405 | |
f73dda09 JA |
1406 | # |
1407 | # Report the --help message. | |
1408 | # | |
1409 | if test "$ac_init_help" = "long"; then | |
1410 | # Omit some internal or obsolete options to make the list less imposing. | |
1411 | # This message is too long to be a string in the A/UX 3.1 sh. | |
b80f6443 | 1412 | cat <<_ACEOF |
3185942a | 1413 | \`configure' configures bash 4.0-rc1 to adapt to many kinds of systems. |
ccc6cda3 | 1414 | |
f73dda09 | 1415 | Usage: $0 [OPTION]... [VAR=VALUE]... |
ccc6cda3 | 1416 | |
f73dda09 JA |
1417 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1418 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1419 | ||
1420 | Defaults for the options are specified in brackets. | |
ccc6cda3 | 1421 | |
f73dda09 JA |
1422 | Configuration: |
1423 | -h, --help display this help and exit | |
1424 | --help=short display options specific to this package | |
1425 | --help=recursive display the short help of all the included packages | |
1426 | -V, --version display version information and exit | |
1427 | -q, --quiet, --silent do not print \`checking...' messages | |
1428 | --cache-file=FILE cache test results in FILE [disabled] | |
1429 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1430 | -n, --no-create do not create output files | |
1431 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
ccc6cda3 | 1432 | |
f73dda09 JA |
1433 | Installation directories: |
1434 | --prefix=PREFIX install architecture-independent files in PREFIX | |
3185942a | 1435 | [$ac_default_prefix] |
f73dda09 | 1436 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
3185942a | 1437 | [PREFIX] |
ccc6cda3 | 1438 | |
f73dda09 JA |
1439 | By default, \`make install' will install all the files in |
1440 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1441 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1442 | for instance \`--prefix=\$HOME'. | |
ccc6cda3 | 1443 | |
f73dda09 | 1444 | For better control, use the options below. |
ccc6cda3 | 1445 | |
f73dda09 | 1446 | Fine tuning of the installation directories: |
3185942a JA |
1447 | --bindir=DIR user executables [EPREFIX/bin] |
1448 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1449 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1450 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1451 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1452 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1453 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1454 | --includedir=DIR C header files [PREFIX/include] | |
1455 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1456 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1457 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1458 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1459 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1460 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1461 | --docdir=DIR documentation root [DATAROOTDIR/doc/bash] | |
1462 | --htmldir=DIR html documentation [DOCDIR] | |
1463 | --dvidir=DIR dvi documentation [DOCDIR] | |
1464 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1465 | --psdir=DIR ps documentation [DOCDIR] | |
b80f6443 | 1466 | _ACEOF |
f73dda09 | 1467 | |
b80f6443 | 1468 | cat <<\_ACEOF |
f73dda09 JA |
1469 | |
1470 | System types: | |
1471 | --build=BUILD configure for building on BUILD [guessed] | |
b80f6443 JA |
1472 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1473 | _ACEOF | |
ccc6cda3 | 1474 | fi |
ccc6cda3 | 1475 | |
f73dda09 JA |
1476 | if test -n "$ac_init_help"; then |
1477 | case $ac_init_help in | |
3185942a | 1478 | short | recursive ) echo "Configuration of bash 4.0-rc1:";; |
f73dda09 | 1479 | esac |
b80f6443 | 1480 | cat <<\_ACEOF |
ccc6cda3 | 1481 | |
f73dda09 | 1482 | Optional Features: |
3185942a | 1483 | --disable-option-checking ignore unrecognized --enable/--with options |
f73dda09 JA |
1484 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1485 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7117c2d2 JA |
1486 | --enable-minimal-config a minimal sh-like configuration |
1487 | --enable-alias enable shell aliases | |
1488 | --enable-arith-for-command | |
1489 | enable arithmetic for command | |
1490 | --enable-array-variables | |
1491 | include shell array variables | |
1492 | --enable-bang-history turn on csh-style history substitution | |
1493 | --enable-brace-expansion | |
1494 | include brace expansion | |
3185942a JA |
1495 | --enable-casemod-attributes |
1496 | include case-modifying variable attributes | |
1497 | --enable-casemod-expansions | |
1498 | include case-modifying word expansions | |
7117c2d2 JA |
1499 | --enable-command-timing enable the time reserved word and command timing |
1500 | --enable-cond-command enable the conditional command | |
3185942a | 1501 | --enable-cond-regexp enable extended regular expression matching in |
b80f6443 | 1502 | conditional commands |
3185942a JA |
1503 | --enable-coprocesses enable coprocess support and the coproc reserved |
1504 | word | |
b80f6443 | 1505 | --enable-debugger enable support for bash debugger |
7117c2d2 JA |
1506 | --enable-directory-stack |
1507 | enable builtins pushd/popd/dirs | |
1508 | --enable-disabled-builtins | |
1509 | allow disabled builtins to still be invoked | |
1510 | --enable-dparen-arithmetic | |
1511 | include ((...)) command | |
1512 | --enable-extended-glob include ksh-style extended pattern matching | |
1513 | --enable-help-builtin include the help builtin | |
1514 | --enable-history turn on command history | |
1515 | --enable-job-control enable job control features | |
b80f6443 | 1516 | --enable-multibyte enable multibyte characters if OS supports them |
7117c2d2 JA |
1517 | --enable-net-redirections |
1518 | enable /dev/tcp/host/port redirection | |
1519 | --enable-process-substitution | |
1520 | enable process substitution | |
1521 | --enable-progcomp enable programmable completion and the complete | |
1522 | builtin | |
1523 | --enable-prompt-string-decoding | |
1524 | turn on escape character decoding in prompts | |
1525 | --enable-readline turn on command line editing | |
1526 | --enable-restricted enable a restricted shell | |
1527 | --enable-select include select command | |
1528 | --enable-separate-helpfiles | |
1529 | use external files for help builtin documentation | |
95732b49 JA |
1530 | --enable-single-help-strings |
1531 | store help documentation as a single string to ease | |
1532 | translation | |
1533 | --enable-strict-posix-default | |
1534 | configure bash to be posix-conformant by default | |
7117c2d2 JA |
1535 | --enable-usg-echo-default |
1536 | a synonym for --enable-xpg-echo-default | |
1537 | --enable-xpg-echo-default | |
1538 | make the echo builtin expand escape sequences by | |
1539 | default | |
1540 | --enable-mem-scramble scramble memory on calls to malloc and free | |
1541 | --enable-profiling allow profiling with gprof | |
1542 | --enable-static-link link bash statically, for use as a root shell | |
f73dda09 | 1543 | --disable-largefile omit support for large files |
b80f6443 JA |
1544 | --disable-nls do not use Native Language Support |
1545 | --disable-rpath do not hardcode runtime library paths | |
f73dda09 JA |
1546 | |
1547 | Optional Packages: | |
1548 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1549 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b80f6443 | 1550 | --with-lispdir override the default lisp directory |
7117c2d2 JA |
1551 | --with-afs if you are running AFS |
1552 | --with-bash-malloc use the Bash version of malloc | |
1553 | --with-curses use the curses library instead of the termcap | |
1554 | library | |
1555 | --with-gnu-malloc synonym for --with-bash-malloc | |
1556 | --with-installed-readline | |
1557 | use a version of the readline library that is | |
1558 | already installed | |
1559 | --with-purecov configure to postprocess with pure coverage | |
1560 | --with-purify configure to postprocess with purify | |
b80f6443 JA |
1561 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1562 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1563 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1564 | --with-included-gettext use the GNU gettext library included here | |
1565 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1566 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
f73dda09 JA |
1567 | |
1568 | Some influential environment variables: | |
b80f6443 JA |
1569 | DEBUGGER_START_FILE |
1570 | location of bash debugger initialization file | |
f73dda09 JA |
1571 | CC C compiler command |
1572 | CFLAGS C compiler flags | |
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1574 | nonstandard directory <lib dir> | |
3185942a JA |
1575 | LIBS libraries to pass to the linker, e.g. -l<library> |
1576 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1577 | you have headers in a nonstandard directory <include dir> | |
f73dda09 | 1578 | CPP C preprocessor |
3185942a JA |
1579 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1580 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1581 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1582 | This script will default YFLAGS to the empty string to avoid a | |
1583 | default value of `-d' given by some make applications. | |
f73dda09 JA |
1584 | |
1585 | Use these variables to override the choices made by `configure' or to help | |
1586 | it to find libraries and programs with nonstandard names/locations. | |
1587 | ||
1588 | Report bugs to <bug-bash@gnu.org>. | |
b80f6443 | 1589 | _ACEOF |
3185942a | 1590 | ac_status=$? |
f73dda09 JA |
1591 | fi |
1592 | ||
1593 | if test "$ac_init_help" = "recursive"; then | |
1594 | # If there are subdirs, report their specific --help. | |
b80f6443 | 1595 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
3185942a JA |
1596 | test -d "$ac_dir" || |
1597 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1598 | continue | |
b80f6443 JA |
1599 | ac_builddir=. |
1600 | ||
3185942a JA |
1601 | case "$ac_dir" in |
1602 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1603 | *) | |
1604 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1605 | # A ".." for each directory in $ac_dir_suffix. | |
1606 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1607 | case $ac_top_builddir_sub in | |
1608 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1609 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1610 | esac ;; | |
1611 | esac | |
1612 | ac_abs_top_builddir=$ac_pwd | |
1613 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1614 | # for backward compatibility: | |
1615 | ac_top_builddir=$ac_top_build_prefix | |
ccc6cda3 | 1616 | |
b80f6443 | 1617 | case $srcdir in |
3185942a | 1618 | .) # We are building in place. |
b80f6443 | 1619 | ac_srcdir=. |
3185942a JA |
1620 | ac_top_srcdir=$ac_top_builddir_sub |
1621 | ac_abs_top_srcdir=$ac_pwd ;; | |
1622 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b80f6443 | 1623 | ac_srcdir=$srcdir$ac_dir_suffix; |
3185942a JA |
1624 | ac_top_srcdir=$srcdir |
1625 | ac_abs_top_srcdir=$srcdir ;; | |
1626 | *) # Relative name. | |
1627 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1628 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1629 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
0628567a | 1630 | esac |
3185942a JA |
1631 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1632 | ||
1633 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1634 | # Check for guested configure. | |
1635 | if test -f "$ac_srcdir/configure.gnu"; then | |
1636 | echo && | |
1637 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1638 | elif test -f "$ac_srcdir/configure"; then | |
1639 | echo && | |
1640 | $SHELL "$ac_srcdir/configure" --help=recursive | |
f73dda09 | 1641 | else |
3185942a JA |
1642 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1643 | fi || ac_status=$? | |
1644 | cd "$ac_pwd" || { ac_status=$?; break; } | |
f73dda09 JA |
1645 | done |
1646 | fi | |
ccc6cda3 | 1647 | |
3185942a | 1648 | test -n "$ac_init_help" && exit $ac_status |
f73dda09 | 1649 | if $ac_init_version; then |
b80f6443 | 1650 | cat <<\_ACEOF |
3185942a JA |
1651 | bash configure 4.0-rc1 |
1652 | generated by GNU Autoconf 2.63 | |
ccc6cda3 | 1653 | |
3185942a JA |
1654 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1655 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
f73dda09 JA |
1656 | This configure script is free software; the Free Software Foundation |
1657 | gives unlimited permission to copy, distribute and modify it. | |
b80f6443 | 1658 | _ACEOF |
3185942a | 1659 | exit |
f73dda09 | 1660 | fi |
3185942a | 1661 | cat >config.log <<_ACEOF |
f73dda09 JA |
1662 | This file contains any messages produced by compilers while |
1663 | running configure, to aid debugging if configure makes a mistake. | |
ccc6cda3 | 1664 | |
3185942a JA |
1665 | It was created by bash $as_me 4.0-rc1, which was |
1666 | generated by GNU Autoconf 2.63. Invocation command line was | |
ccc6cda3 | 1667 | |
f73dda09 | 1668 | $ $0 $@ |
bb70624e | 1669 | |
b80f6443 | 1670 | _ACEOF |
3185942a | 1671 | exec 5>>config.log |
f73dda09 JA |
1672 | { |
1673 | cat <<_ASUNAME | |
b80f6443 JA |
1674 | ## --------- ## |
1675 | ## Platform. ## | |
1676 | ## --------- ## | |
f73dda09 JA |
1677 | |
1678 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1679 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1680 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1681 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1682 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1683 | ||
1684 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1685 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1686 | ||
1687 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1688 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1689 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
3185942a | 1690 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
f73dda09 JA |
1691 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1692 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1693 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1694 | ||
f73dda09 | 1695 | _ASUNAME |
b80f6443 JA |
1696 | |
1697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1698 | for as_dir in $PATH | |
1699 | do | |
1700 | IFS=$as_save_IFS | |
1701 | test -z "$as_dir" && as_dir=. | |
3185942a | 1702 | $as_echo "PATH: $as_dir" |
b80f6443 | 1703 | done |
3185942a | 1704 | IFS=$as_save_IFS |
b80f6443 | 1705 | |
f73dda09 JA |
1706 | } >&5 |
1707 | ||
b80f6443 JA |
1708 | cat >&5 <<_ACEOF |
1709 | ||
1710 | ||
1711 | ## ----------- ## | |
1712 | ## Core tests. ## | |
1713 | ## ----------- ## | |
1714 | ||
1715 | _ACEOF | |
f73dda09 | 1716 | |
f73dda09 JA |
1717 | |
1718 | # Keep a trace of the command line. | |
1719 | # Strip out --no-create and --no-recursion so they do not pile up. | |
0628567a | 1720 | # Strip out --silent because we don't want to record it for future runs. |
f73dda09 | 1721 | # Also quote any args containing shell meta-characters. |
0628567a | 1722 | # Make two passes to allow for proper duplicate-argument suppression. |
f73dda09 | 1723 | ac_configure_args= |
0628567a JA |
1724 | ac_configure_args0= |
1725 | ac_configure_args1= | |
0628567a JA |
1726 | ac_must_keep_next=false |
1727 | for ac_pass in 1 2 | |
f73dda09 | 1728 | do |
0628567a JA |
1729 | for ac_arg |
1730 | do | |
1731 | case $ac_arg in | |
1732 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1733 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1734 | | -silent | --silent | --silen | --sile | --sil) | |
1735 | continue ;; | |
3185942a JA |
1736 | *\'*) |
1737 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
0628567a JA |
1738 | esac |
1739 | case $ac_pass in | |
1740 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1741 | 2) | |
1742 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1743 | if test $ac_must_keep_next = true; then | |
1744 | ac_must_keep_next=false # Got value, back to normal. | |
1745 | else | |
1746 | case $ac_arg in | |
1747 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1748 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1749 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1750 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1751 | case "$ac_configure_args0 " in | |
1752 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1753 | esac | |
1754 | ;; | |
1755 | -* ) ac_must_keep_next=true ;; | |
1756 | esac | |
1757 | fi | |
3185942a | 1758 | ac_configure_args="$ac_configure_args '$ac_arg'" |
0628567a JA |
1759 | ;; |
1760 | esac | |
1761 | done | |
f73dda09 | 1762 | done |
0628567a JA |
1763 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1764 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
f73dda09 JA |
1765 | |
1766 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1767 | # config.log. We remove comments because anyway the quotes in there | |
1768 | # would cause problems or look ugly. | |
3185942a JA |
1769 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1770 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
f73dda09 JA |
1771 | trap 'exit_status=$? |
1772 | # Save into config.log some information that might help in debugging. | |
b80f6443 JA |
1773 | { |
1774 | echo | |
0628567a | 1775 | |
b80f6443 JA |
1776 | cat <<\_ASBOX |
1777 | ## ---------------- ## | |
1778 | ## Cache variables. ## | |
1779 | ## ---------------- ## | |
1780 | _ASBOX | |
1781 | echo | |
1782 | # The following way of writing the cache mishandles newlines in values, | |
3185942a JA |
1783 | ( |
1784 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1785 | eval ac_val=\$$ac_var | |
1786 | case $ac_val in #( | |
1787 | *${as_nl}*) | |
1788 | case $ac_var in #( | |
1789 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1790 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1791 | esac | |
1792 | case $ac_var in #( | |
1793 | _ | IFS | as_nl) ;; #( | |
1794 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1795 | *) $as_unset $ac_var ;; | |
1796 | esac ;; | |
1797 | esac | |
1798 | done | |
f73dda09 | 1799 | (set) 2>&1 | |
3185942a JA |
1800 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1801 | *${as_nl}ac_space=\ *) | |
f73dda09 | 1802 | sed -n \ |
3185942a JA |
1803 | "s/'\''/'\''\\\\'\'''\''/g; |
1804 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1805 | ;; #( | |
f73dda09 | 1806 | *) |
3185942a | 1807 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f73dda09 | 1808 | ;; |
3185942a JA |
1809 | esac | |
1810 | sort | |
1811 | ) | |
b80f6443 | 1812 | echo |
0628567a JA |
1813 | |
1814 | cat <<\_ASBOX | |
1815 | ## ----------------- ## | |
1816 | ## Output variables. ## | |
1817 | ## ----------------- ## | |
1818 | _ASBOX | |
1819 | echo | |
1820 | for ac_var in $ac_subst_vars | |
1821 | do | |
3185942a JA |
1822 | eval ac_val=\$$ac_var |
1823 | case $ac_val in | |
1824 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1825 | esac | |
1826 | $as_echo "$ac_var='\''$ac_val'\''" | |
0628567a JA |
1827 | done | sort |
1828 | echo | |
1829 | ||
1830 | if test -n "$ac_subst_files"; then | |
1831 | cat <<\_ASBOX | |
3185942a JA |
1832 | ## ------------------- ## |
1833 | ## File substitutions. ## | |
1834 | ## ------------------- ## | |
0628567a JA |
1835 | _ASBOX |
1836 | echo | |
1837 | for ac_var in $ac_subst_files | |
1838 | do | |
3185942a JA |
1839 | eval ac_val=\$$ac_var |
1840 | case $ac_val in | |
1841 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1842 | esac | |
1843 | $as_echo "$ac_var='\''$ac_val'\''" | |
0628567a JA |
1844 | done | sort |
1845 | echo | |
1846 | fi | |
1847 | ||
b80f6443 JA |
1848 | if test -s confdefs.h; then |
1849 | cat <<\_ASBOX | |
1850 | ## ----------- ## | |
1851 | ## confdefs.h. ## | |
1852 | ## ----------- ## | |
1853 | _ASBOX | |
1854 | echo | |
3185942a | 1855 | cat confdefs.h |
b80f6443 JA |
1856 | echo |
1857 | fi | |
1858 | test "$ac_signal" != 0 && | |
3185942a JA |
1859 | $as_echo "$as_me: caught signal $ac_signal" |
1860 | $as_echo "$as_me: exit $exit_status" | |
b80f6443 | 1861 | } >&5 |
3185942a JA |
1862 | rm -f core *.core core.conftest.* && |
1863 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
f73dda09 | 1864 | exit $exit_status |
3185942a | 1865 | ' 0 |
f73dda09 JA |
1866 | for ac_signal in 1 2 13 15; do |
1867 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1868 | done | |
1869 | ac_signal=0 | |
1870 | ||
1871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
3185942a | 1872 | rm -f -r conftest* confdefs.h |
f73dda09 | 1873 | |
b80f6443 JA |
1874 | # Predefined preprocessor variables. |
1875 | ||
1876 | cat >>confdefs.h <<_ACEOF | |
1877 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1878 | _ACEOF | |
1879 | ||
1880 | ||
1881 | cat >>confdefs.h <<_ACEOF | |
1882 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1883 | _ACEOF | |
1884 | ||
1885 | ||
1886 | cat >>confdefs.h <<_ACEOF | |
1887 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1888 | _ACEOF | |
1889 | ||
1890 | ||
1891 | cat >>confdefs.h <<_ACEOF | |
1892 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1893 | _ACEOF | |
1894 | ||
1895 | ||
1896 | cat >>confdefs.h <<_ACEOF | |
1897 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1898 | _ACEOF | |
1899 | ||
1900 | ||
f73dda09 | 1901 | # Let the site file select an alternate cache file if it wants to. |
3185942a JA |
1902 | # Prefer an explicitly selected file to automatically selected ones. |
1903 | ac_site_file1=NONE | |
1904 | ac_site_file2=NONE | |
1905 | if test -n "$CONFIG_SITE"; then | |
1906 | ac_site_file1=$CONFIG_SITE | |
1907 | elif test "x$prefix" != xNONE; then | |
1908 | ac_site_file1=$prefix/share/config.site | |
1909 | ac_site_file2=$prefix/etc/config.site | |
1910 | else | |
1911 | ac_site_file1=$ac_default_prefix/share/config.site | |
1912 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1913 | fi | |
1914 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1915 | do | |
1916 | test "x$ac_site_file" = xNONE && continue | |
f73dda09 | 1917 | if test -r "$ac_site_file"; then |
3185942a JA |
1918 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1919 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b80f6443 | 1920 | sed 's/^/| /' "$ac_site_file" >&5 |
f73dda09 JA |
1921 | . "$ac_site_file" |
1922 | fi | |
1923 | done | |
1924 | ||
1925 | if test -r "$cache_file"; then | |
1926 | # Some versions of bash will fail to source /dev/null (special | |
1927 | # files actually), so we avoid doing that. | |
1928 | if test -f "$cache_file"; then | |
3185942a JA |
1929 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1930 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
f73dda09 | 1931 | case $cache_file in |
3185942a JA |
1932 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1933 | *) . "./$cache_file";; | |
f73dda09 JA |
1934 | esac |
1935 | fi | |
1936 | else | |
3185942a JA |
1937 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1938 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
f73dda09 JA |
1939 | >$cache_file |
1940 | fi | |
1941 | ||
3185942a JA |
1942 | ac_header_list="$ac_header_list sys/time.h" |
1943 | ac_header_list="$ac_header_list unistd.h" | |
1944 | ac_func_list="$ac_func_list alarm" | |
1945 | ac_func_list="$ac_func_list fpurge" | |
1946 | ac_func_list="$ac_func_list __fpurge" | |
f73dda09 JA |
1947 | # Check that the precious variables saved in the cache have kept the same |
1948 | # value. | |
1949 | ac_cache_corrupted=false | |
3185942a | 1950 | for ac_var in $ac_precious_vars; do |
f73dda09 JA |
1951 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1952 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3185942a JA |
1953 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1954 | eval ac_new_val=\$ac_env_${ac_var}_value | |
f73dda09 JA |
1955 | case $ac_old_set,$ac_new_set in |
1956 | set,) | |
3185942a JA |
1957 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1958 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
f73dda09 JA |
1959 | ac_cache_corrupted=: ;; |
1960 | ,set) | |
3185942a JA |
1961 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1962 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
f73dda09 JA |
1963 | ac_cache_corrupted=: ;; |
1964 | ,);; | |
1965 | *) | |
1966 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3185942a JA |
1967 | # differences in whitespace do not lead to failure. |
1968 | ac_old_val_w=`echo x $ac_old_val` | |
1969 | ac_new_val_w=`echo x $ac_new_val` | |
1970 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1971 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1972 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1973 | ac_cache_corrupted=: | |
1974 | else | |
1975 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1976 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1977 | eval $ac_var=\$ac_old_val | |
1978 | fi | |
1979 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1980 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1981 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1982 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
f73dda09 JA |
1983 | fi;; |
1984 | esac | |
b80f6443 | 1985 | # Pass precious variables to config.status. |
f73dda09 JA |
1986 | if test "$ac_new_set" = set; then |
1987 | case $ac_new_val in | |
3185942a | 1988 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b80f6443 JA |
1989 | *) ac_arg=$ac_var=$ac_new_val ;; |
1990 | esac | |
1991 | case " $ac_configure_args " in | |
1992 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1993 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
f73dda09 JA |
1994 | esac |
1995 | fi | |
1996 | done | |
1997 | if $ac_cache_corrupted; then | |
3185942a JA |
1998 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2000 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2001 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2002 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2003 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
f73dda09 JA |
2004 | { (exit 1); exit 1; }; } |
2005 | fi | |
2006 | ||
b80f6443 JA |
2007 | |
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | ||
3185942a JA |
2031 | ac_ext=c |
2032 | ac_cpp='$CPP $CPPFLAGS' | |
2033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b80f6443 JA |
2036 | |
2037 | ||
2038 | ||
0628567a | 2039 | |
b80f6443 | 2040 | |
f73dda09 JA |
2041 | |
2042 | ac_aux_dir= | |
3185942a JA |
2043 | for ac_dir in ./support "$srcdir"/./support; do |
2044 | if test -f "$ac_dir/install-sh"; then | |
f73dda09 JA |
2045 | ac_aux_dir=$ac_dir |
2046 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2047 | break | |
3185942a | 2048 | elif test -f "$ac_dir/install.sh"; then |
f73dda09 JA |
2049 | ac_aux_dir=$ac_dir |
2050 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2051 | break | |
3185942a | 2052 | elif test -f "$ac_dir/shtool"; then |
f73dda09 JA |
2053 | ac_aux_dir=$ac_dir |
2054 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2055 | break | |
2056 | fi | |
2057 | done | |
2058 | if test -z "$ac_aux_dir"; then | |
3185942a JA |
2059 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5 |
2060 | $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;} | |
f73dda09 JA |
2061 | { (exit 1); exit 1; }; } |
2062 | fi | |
f73dda09 | 2063 | |
3185942a JA |
2064 | # These three variables are undocumented and unsupported, |
2065 | # and are intended to be withdrawn in a future Autoconf release. | |
2066 | # They can cause serious problems if a builder's source tree is in a directory | |
2067 | # whose full name contains unusual characters. | |
2068 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2069 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2070 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2071 | ||
f73dda09 | 2072 | |
3185942a | 2073 | ac_config_headers="$ac_config_headers config.h" |
b80f6443 | 2074 | |
3185942a JA |
2075 | |
2076 | BASHVERS=4.0 | |
2077 | RELSTATUS=rc1 | |
7117c2d2 JA |
2078 | |
2079 | case "$RELSTATUS" in | |
3185942a | 2080 | alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; |
7117c2d2 JA |
2081 | *) DEBUG= MALLOC_DEBUG= ;; |
2082 | esac | |
f73dda09 JA |
2083 | |
2084 | # Make sure we can run config.sub. | |
3185942a JA |
2085 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2086 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2087 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
f73dda09 JA |
2088 | { (exit 1); exit 1; }; } |
2089 | ||
3185942a JA |
2090 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2091 | $as_echo_n "checking build system type... " >&6; } | |
f73dda09 | 2092 | if test "${ac_cv_build+set}" = set; then |
3185942a JA |
2093 | $as_echo_n "(cached) " >&6 |
2094 | else | |
2095 | ac_build_alias=$build_alias | |
2096 | test "x$ac_build_alias" = x && | |
2097 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2098 | test "x$ac_build_alias" = x && | |
2099 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2100 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
f73dda09 | 2101 | { (exit 1); exit 1; }; } |
3185942a JA |
2102 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2103 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2104 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
f73dda09 JA |
2105 | { (exit 1); exit 1; }; } |
2106 | ||
2107 | fi | |
3185942a JA |
2108 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2109 | $as_echo "$ac_cv_build" >&6; } | |
2110 | case $ac_cv_build in | |
2111 | *-*-*) ;; | |
2112 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2113 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2114 | { (exit 1); exit 1; }; };; | |
2115 | esac | |
f73dda09 | 2116 | build=$ac_cv_build |
3185942a JA |
2117 | ac_save_IFS=$IFS; IFS='-' |
2118 | set x $ac_cv_build | |
2119 | shift | |
2120 | build_cpu=$1 | |
2121 | build_vendor=$2 | |
2122 | shift; shift | |
2123 | # Remember, the first character of IFS is used to create $*, | |
2124 | # except with old shells: | |
2125 | build_os=$* | |
2126 | IFS=$ac_save_IFS | |
2127 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2128 | ||
2129 | ||
2130 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2131 | $as_echo_n "checking host system type... " >&6; } | |
f73dda09 | 2132 | if test "${ac_cv_host+set}" = set; then |
3185942a JA |
2133 | $as_echo_n "(cached) " >&6 |
2134 | else | |
2135 | if test "x$host_alias" = x; then | |
2136 | ac_cv_host=$ac_cv_build | |
2137 | else | |
2138 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2139 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2140 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
f73dda09 | 2141 | { (exit 1); exit 1; }; } |
3185942a | 2142 | fi |
f73dda09 JA |
2143 | |
2144 | fi | |
3185942a JA |
2145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2146 | $as_echo "$ac_cv_host" >&6; } | |
2147 | case $ac_cv_host in | |
2148 | *-*-*) ;; | |
2149 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2150 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2151 | { (exit 1); exit 1; }; };; | |
2152 | esac | |
f73dda09 | 2153 | host=$ac_cv_host |
3185942a JA |
2154 | ac_save_IFS=$IFS; IFS='-' |
2155 | set x $ac_cv_host | |
2156 | shift | |
2157 | host_cpu=$1 | |
2158 | host_vendor=$2 | |
2159 | shift; shift | |
2160 | # Remember, the first character of IFS is used to create $*, | |
2161 | # except with old shells: | |
2162 | host_os=$* | |
2163 | IFS=$ac_save_IFS | |
2164 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
f73dda09 | 2165 | |
b80f6443 JA |
2166 | |
2167 | ||
f73dda09 JA |
2168 | opt_bash_malloc=yes |
2169 | opt_purify=no | |
2170 | opt_purecov=no | |
2171 | opt_afs=no | |
2172 | opt_curses=no | |
2173 | opt_with_installed_readline=no | |
2174 | ||
2175 | #htmldir= | |
2176 | ||
2177 | case "${host_cpu}-${host_os}" in | |
2178 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux | |
2179 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays | |
2180 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines | |
2181 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 | |
2182 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
bb70624e JA |
2183 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment |
2184 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir | |
2185 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF | |
95732b49 | 2186 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here |
7117c2d2 | 2187 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree |
f73dda09 | 2188 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment |
bb70624e JA |
2189 | *-aix*) opt_bash_malloc=no ;; # AIX machines |
2190 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep | |
28ef6c31 JA |
2191 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X |
2192 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) | |
2193 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) | |
bb70624e | 2194 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines |
95732b49 | 2195 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x |
bb70624e JA |
2196 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x |
2197 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins | |
2198 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable | |
28ef6c31 JA |
2199 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment |
2200 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft | |
ccc6cda3 JA |
2201 | esac |
2202 | ||
7117c2d2 JA |
2203 | # memory scrambling on free() |
2204 | case "${host_os}" in | |
2205 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; | |
2206 | *) opt_memscramble=yes ;; | |
2207 | esac | |
2208 | ||
b80f6443 | 2209 | |
3185942a | 2210 | # Check whether --with-lispdir was given. |
b80f6443 | 2211 | if test "${with_lispdir+set}" = set; then |
3185942a JA |
2212 | withval=$with_lispdir; lispdir="$withval" |
2213 | { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 | |
2214 | $as_echo_n "checking where .elc files should go... " >&6; } | |
2215 | { $as_echo "$as_me:$LINENO: result: $lispdir" >&5 | |
2216 | $as_echo "$lispdir" >&6; } | |
b80f6443 JA |
2217 | else |
2218 | ||
2219 | # If set to t, that means we are running in a shell under Emacs. | |
2220 | # If you have an Emacs named "t", then use the full path. | |
2221 | test x"$EMACS" = xt && EMACS= | |
2222 | for ac_prog in emacs xemacs | |
2223 | do | |
2224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2225 | set dummy $ac_prog; ac_word=$2 | |
3185942a JA |
2226 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2227 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 2228 | if test "${ac_cv_prog_EMACS+set}" = set; then |
3185942a | 2229 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
2230 | else |
2231 | if test -n "$EMACS"; then | |
2232 | ac_cv_prog_EMACS="$EMACS" # Let the user override the test. | |
2233 | else | |
2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2235 | for as_dir in $PATH | |
2236 | do | |
2237 | IFS=$as_save_IFS | |
2238 | test -z "$as_dir" && as_dir=. | |
2239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2241 | ac_cv_prog_EMACS="$ac_prog" |
3185942a | 2242 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2243 | break 2 |
2244 | fi | |
2245 | done | |
2246 | done | |
3185942a | 2247 | IFS=$as_save_IFS |
b80f6443 JA |
2248 | |
2249 | fi | |
2250 | fi | |
2251 | EMACS=$ac_cv_prog_EMACS | |
2252 | if test -n "$EMACS"; then | |
3185942a JA |
2253 | { $as_echo "$as_me:$LINENO: result: $EMACS" >&5 |
2254 | $as_echo "$EMACS" >&6; } | |
b80f6443 | 2255 | else |
3185942a JA |
2256 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2257 | $as_echo "no" >&6; } | |
b80f6443 JA |
2258 | fi |
2259 | ||
3185942a | 2260 | |
b80f6443 JA |
2261 | test -n "$EMACS" && break |
2262 | done | |
2263 | test -n "$EMACS" || EMACS="no" | |
2264 | ||
2265 | if test $EMACS != "no"; then | |
2266 | if test x${lispdir+set} != xset; then | |
3185942a JA |
2267 | { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
2268 | $as_echo_n "checking where .elc files should go... " >&6; } | |
b80f6443 | 2269 | if test "${am_cv_lispdir+set}" = set; then |
3185942a | 2270 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
2271 | else |
2272 | am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` | |
2273 | if test -z "$am_cv_lispdir"; then | |
2274 | am_cv_lispdir='${datadir}/emacs/site-lisp' | |
2275 | fi | |
2276 | ||
2277 | fi | |
3185942a JA |
2278 | { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 |
2279 | $as_echo "$am_cv_lispdir" >&6; } | |
b80f6443 JA |
2280 | lispdir="$am_cv_lispdir" |
2281 | fi | |
2282 | fi | |
2283 | ||
3185942a JA |
2284 | fi |
2285 | ||
b80f6443 JA |
2286 | |
2287 | ||
2288 | ||
2289 | ||
2290 | ||
3185942a | 2291 | # Check whether --with-afs was given. |
d166f048 | 2292 | if test "${with_afs+set}" = set; then |
3185942a JA |
2293 | withval=$with_afs; opt_afs=$withval |
2294 | fi | |
d166f048 | 2295 | |
3185942a JA |
2296 | |
2297 | # Check whether --with-bash-malloc was given. | |
bb70624e | 2298 | if test "${with_bash_malloc+set}" = set; then |
3185942a JA |
2299 | withval=$with_bash_malloc; opt_bash_malloc=$withval |
2300 | fi | |
bb70624e | 2301 | |
3185942a JA |
2302 | |
2303 | # Check whether --with-curses was given. | |
d166f048 | 2304 | if test "${with_curses+set}" = set; then |
3185942a JA |
2305 | withval=$with_curses; opt_curses=$withval |
2306 | fi | |
ccc6cda3 | 2307 | |
3185942a JA |
2308 | |
2309 | # Check whether --with-gnu-malloc was given. | |
d166f048 | 2310 | if test "${with_gnu_malloc+set}" = set; then |
3185942a JA |
2311 | withval=$with_gnu_malloc; opt_bash_malloc=$withval |
2312 | fi | |
d166f048 | 2313 | |
3185942a JA |
2314 | |
2315 | # Check whether --with-installed-readline was given. | |
b72432fd | 2316 | if test "${with_installed_readline+set}" = set; then |
3185942a JA |
2317 | withval=$with_installed_readline; opt_with_installed_readline=$withval |
2318 | fi | |
b72432fd | 2319 | |
3185942a JA |
2320 | |
2321 | # Check whether --with-purecov was given. | |
d166f048 | 2322 | if test "${with_purecov+set}" = set; then |
3185942a JA |
2323 | withval=$with_purecov; opt_purecov=$withval |
2324 | fi | |
d166f048 | 2325 | |
3185942a JA |
2326 | |
2327 | # Check whether --with-purify was given. | |
ccc6cda3 | 2328 | if test "${with_purify+set}" = set; then |
3185942a JA |
2329 | withval=$with_purify; opt_purify=$withval |
2330 | fi | |
2331 | ||
ccc6cda3 | 2332 | |
f73dda09 | 2333 | if test "$opt_bash_malloc" = yes; then |
d166f048 JA |
2334 | MALLOC_TARGET=malloc |
2335 | MALLOC_SRC=malloc.c | |
f73dda09 JA |
2336 | |
2337 | MALLOC_LIB='-lmalloc' | |
2338 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
2339 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
2340 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
2341 | ||
b80f6443 | 2342 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2343 | #define USING_BASH_MALLOC 1 |
b80f6443 | 2344 | _ACEOF |
bb70624e | 2345 | |
ccc6cda3 | 2346 | else |
f73dda09 JA |
2347 | MALLOC_LIB= |
2348 | MALLOC_LIBRARY= | |
2349 | MALLOC_LDFLAGS= | |
2350 | MALLOC_DEP= | |
ccc6cda3 JA |
2351 | fi |
2352 | ||
2353 | if test "$opt_purify" = yes; then | |
d166f048 | 2354 | PURIFY="purify " |
b80f6443 | 2355 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 2356 | #define DISABLE_MALLOC_WRAPPERS 1 |
b80f6443 | 2357 | _ACEOF |
7117c2d2 | 2358 | |
ccc6cda3 JA |
2359 | else |
2360 | PURIFY= | |
2361 | fi | |
2362 | ||
d166f048 JA |
2363 | if test "$opt_purecov" = yes; then |
2364 | PURIFY="${PURIFY}purecov" | |
2365 | fi | |
2366 | ||
ccc6cda3 | 2367 | if test "$opt_afs" = yes; then |
b80f6443 | 2368 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2369 | #define AFS 1 |
b80f6443 | 2370 | _ACEOF |
ccc6cda3 JA |
2371 | |
2372 | fi | |
2373 | ||
d166f048 JA |
2374 | if test "$opt_curses" = yes; then |
2375 | prefer_curses=yes | |
2376 | fi | |
2377 | ||
b80f6443 | 2378 | if test -z "${DEBUGGER_START_FILE}"; then |
3185942a | 2379 | DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' |
b80f6443 JA |
2380 | fi |
2381 | ||
ccc6cda3 JA |
2382 | opt_minimal_config=no |
2383 | ||
2384 | opt_job_control=yes | |
2385 | opt_alias=yes | |
2386 | opt_readline=yes | |
2387 | opt_history=yes | |
2388 | opt_bang_history=yes | |
2389 | opt_dirstack=yes | |
2390 | opt_restricted=yes | |
2391 | opt_process_subst=yes | |
2392 | opt_prompt_decoding=yes | |
2393 | opt_select=yes | |
2394 | opt_help=yes | |
2395 | opt_array_variables=yes | |
2396 | opt_dparen_arith=yes | |
cce855bc | 2397 | opt_extended_glob=yes |
ccc6cda3 JA |
2398 | opt_brace_expansion=yes |
2399 | opt_disabled_builtins=no | |
2400 | opt_command_timing=yes | |
bb70624e | 2401 | opt_xpg_echo=no |
95732b49 | 2402 | opt_strict_posix=no |
cce855bc | 2403 | opt_cond_command=yes |
b80f6443 | 2404 | opt_cond_regexp=yes |
3185942a | 2405 | opt_coproc=yes |
bb70624e JA |
2406 | opt_arith_for_command=yes |
2407 | opt_net_redirs=yes | |
2408 | opt_progcomp=yes | |
7117c2d2 | 2409 | opt_separate_help=no |
b80f6443 JA |
2410 | opt_multibyte=yes |
2411 | opt_debugger=yes | |
95732b49 | 2412 | opt_single_longdoc_strings=yes |
3185942a JA |
2413 | opt_casemod_attrs=yes |
2414 | opt_casemod_expansions=yes | |
cce855bc JA |
2415 | |
2416 | opt_static_link=no | |
2417 | opt_profiling=no | |
ccc6cda3 | 2418 | |
3185942a | 2419 | # Check whether --enable-minimal-config was given. |
ccc6cda3 | 2420 | if test "${enable_minimal_config+set}" = set; then |
3185942a JA |
2421 | enableval=$enable_minimal_config; opt_minimal_config=$enableval |
2422 | fi | |
2423 | ||
ccc6cda3 JA |
2424 | |
2425 | if test $opt_minimal_config = yes; then | |
2426 | opt_job_control=no opt_alias=no opt_readline=no | |
2427 | opt_history=no opt_bang_history=no opt_dirstack=no | |
2428 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no | |
2429 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no | |
2430 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no | |
bb70624e | 2431 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no |
7117c2d2 | 2432 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no |
3185942a JA |
2433 | opt_multibyte=yes opt_cond_regexp=no opt_coproc=no |
2434 | opt_casemod_attrs=no opt_casemod_expansions=no | |
ccc6cda3 JA |
2435 | fi |
2436 | ||
3185942a | 2437 | # Check whether --enable-alias was given. |
ccc6cda3 | 2438 | if test "${enable_alias+set}" = set; then |
3185942a JA |
2439 | enableval=$enable_alias; opt_alias=$enableval |
2440 | fi | |
2441 | ||
2442 | # Check whether --enable-arith-for-command was given. | |
bb70624e | 2443 | if test "${enable_arith_for_command+set}" = set; then |
3185942a JA |
2444 | enableval=$enable_arith_for_command; opt_arith_for_command=$enableval |
2445 | fi | |
2446 | ||
2447 | # Check whether --enable-array-variables was given. | |
d166f048 | 2448 | if test "${enable_array_variables+set}" = set; then |
3185942a JA |
2449 | enableval=$enable_array_variables; opt_array_variables=$enableval |
2450 | fi | |
2451 | ||
2452 | # Check whether --enable-bang-history was given. | |
ccc6cda3 | 2453 | if test "${enable_bang_history+set}" = set; then |
3185942a JA |
2454 | enableval=$enable_bang_history; opt_bang_history=$enableval |
2455 | fi | |
2456 | ||
2457 | # Check whether --enable-brace-expansion was given. | |
d166f048 | 2458 | if test "${enable_brace_expansion+set}" = set; then |
3185942a JA |
2459 | enableval=$enable_brace_expansion; opt_brace_expansion=$enableval |
2460 | fi | |
2461 | ||
2462 | # Check whether --enable-casemod-attributes was given. | |
2463 | if test "${enable_casemod_attributes+set}" = set; then | |
2464 | enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval | |
2465 | fi | |
2466 | ||
2467 | # Check whether --enable-casemod-expansions was given. | |
2468 | if test "${enable_casemod_expansions+set}" = set; then | |
2469 | enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval | |
2470 | fi | |
2471 | ||
2472 | # Check whether --enable-command-timing was given. | |
d166f048 | 2473 | if test "${enable_command_timing+set}" = set; then |
3185942a JA |
2474 | enableval=$enable_command_timing; opt_command_timing=$enableval |
2475 | fi | |
2476 | ||
2477 | # Check whether --enable-cond-command was given. | |
cce855bc | 2478 | if test "${enable_cond_command+set}" = set; then |
3185942a JA |
2479 | enableval=$enable_cond_command; opt_cond_command=$enableval |
2480 | fi | |
2481 | ||
2482 | # Check whether --enable-cond-regexp was given. | |
b80f6443 | 2483 | if test "${enable_cond_regexp+set}" = set; then |
3185942a JA |
2484 | enableval=$enable_cond_regexp; opt_cond_regexp=$enableval |
2485 | fi | |
2486 | ||
2487 | # Check whether --enable-coprocesses was given. | |
2488 | if test "${enable_coprocesses+set}" = set; then | |
2489 | enableval=$enable_coprocesses; opt_coproc=$enableval | |
2490 | fi | |
2491 | ||
2492 | # Check whether --enable-debugger was given. | |
b80f6443 | 2493 | if test "${enable_debugger+set}" = set; then |
3185942a JA |
2494 | enableval=$enable_debugger; opt_debugger=$enableval |
2495 | fi | |
2496 | ||
2497 | # Check whether --enable-directory-stack was given. | |
d166f048 | 2498 | if test "${enable_directory_stack+set}" = set; then |
3185942a JA |
2499 | enableval=$enable_directory_stack; opt_dirstack=$enableval |
2500 | fi | |
2501 | ||
2502 | # Check whether --enable-disabled-builtins was given. | |
d166f048 | 2503 | if test "${enable_disabled_builtins+set}" = set; then |
3185942a JA |
2504 | enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval |
2505 | fi | |
2506 | ||
2507 | # Check whether --enable-dparen-arithmetic was given. | |
d166f048 | 2508 | if test "${enable_dparen_arithmetic+set}" = set; then |
3185942a JA |
2509 | enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval |
2510 | fi | |
2511 | ||
2512 | # Check whether --enable-extended-glob was given. | |
cce855bc | 2513 | if test "${enable_extended_glob+set}" = set; then |
3185942a JA |
2514 | enableval=$enable_extended_glob; opt_extended_glob=$enableval |
2515 | fi | |
2516 | ||
2517 | # Check whether --enable-help-builtin was given. | |
ccc6cda3 | 2518 | if test "${enable_help_builtin+set}" = set; then |
3185942a JA |
2519 | enableval=$enable_help_builtin; opt_help=$enableval |
2520 | fi | |
2521 | ||
2522 | # Check whether --enable-history was given. | |
d166f048 | 2523 | if test "${enable_history+set}" = set; then |
3185942a JA |
2524 | enableval=$enable_history; opt_history=$enableval |
2525 | fi | |
2526 | ||
2527 | # Check whether --enable-job-control was given. | |
d166f048 | 2528 | if test "${enable_job_control+set}" = set; then |
3185942a JA |
2529 | enableval=$enable_job_control; opt_job_control=$enableval |
2530 | fi | |
2531 | ||
2532 | # Check whether --enable-multibyte was given. | |
b80f6443 | 2533 | if test "${enable_multibyte+set}" = set; then |
3185942a JA |
2534 | enableval=$enable_multibyte; opt_multibyte=$enableval |
2535 | fi | |
2536 | ||
2537 | # Check whether --enable-net-redirections was given. | |
bb70624e | 2538 | if test "${enable_net_redirections+set}" = set; then |
3185942a JA |
2539 | enableval=$enable_net_redirections; opt_net_redirs=$enableval |
2540 | fi | |
2541 | ||
2542 | # Check whether --enable-process-substitution was given. | |
d166f048 | 2543 | if test "${enable_process_substitution+set}" = set; then |
3185942a JA |
2544 | enableval=$enable_process_substitution; opt_process_subst=$enableval |
2545 | fi | |
2546 | ||
2547 | # Check whether --enable-progcomp was given. | |
bb70624e | 2548 | if test "${enable_progcomp+set}" = set; then |
3185942a JA |
2549 | enableval=$enable_progcomp; opt_progcomp=$enableval |
2550 | fi | |
2551 | ||
2552 | # Check whether --enable-prompt-string-decoding was given. | |
d166f048 | 2553 | if test "${enable_prompt_string_decoding+set}" = set; then |
3185942a JA |
2554 | enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval |
2555 | fi | |
2556 | ||
2557 | # Check whether --enable-readline was given. | |
d166f048 | 2558 | if test "${enable_readline+set}" = set; then |
3185942a JA |
2559 | enableval=$enable_readline; opt_readline=$enableval |
2560 | fi | |
2561 | ||
2562 | # Check whether --enable-restricted was given. | |
d166f048 | 2563 | if test "${enable_restricted+set}" = set; then |
3185942a JA |
2564 | enableval=$enable_restricted; opt_restricted=$enableval |
2565 | fi | |
2566 | ||
2567 | # Check whether --enable-select was given. | |
d166f048 | 2568 | if test "${enable_select+set}" = set; then |
3185942a JA |
2569 | enableval=$enable_select; opt_select=$enableval |
2570 | fi | |
2571 | ||
2572 | # Check whether --enable-separate-helpfiles was given. | |
7117c2d2 | 2573 | if test "${enable_separate_helpfiles+set}" = set; then |
3185942a JA |
2574 | enableval=$enable_separate_helpfiles; opt_separate_help=$enableval |
2575 | fi | |
2576 | ||
2577 | # Check whether --enable-single-help-strings was given. | |
95732b49 | 2578 | if test "${enable_single_help_strings+set}" = set; then |
3185942a JA |
2579 | enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval |
2580 | fi | |
2581 | ||
2582 | # Check whether --enable-strict-posix-default was given. | |
95732b49 | 2583 | if test "${enable_strict_posix_default+set}" = set; then |
3185942a JA |
2584 | enableval=$enable_strict_posix_default; opt_strict_posix=$enableval |
2585 | fi | |
2586 | ||
2587 | # Check whether --enable-usg-echo-default was given. | |
ccc6cda3 | 2588 | if test "${enable_usg_echo_default+set}" = set; then |
3185942a JA |
2589 | enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval |
2590 | fi | |
2591 | ||
2592 | # Check whether --enable-xpg-echo-default was given. | |
bb70624e | 2593 | if test "${enable_xpg_echo_default+set}" = set; then |
3185942a JA |
2594 | enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval |
2595 | fi | |
ccc6cda3 | 2596 | |
3185942a JA |
2597 | |
2598 | # Check whether --enable-mem-scramble was given. | |
7117c2d2 | 2599 | if test "${enable_mem_scramble+set}" = set; then |
3185942a JA |
2600 | enableval=$enable_mem_scramble; opt_memscramble=$enableval |
2601 | fi | |
2602 | ||
2603 | # Check whether --enable-profiling was given. | |
cce855bc | 2604 | if test "${enable_profiling+set}" = set; then |
3185942a JA |
2605 | enableval=$enable_profiling; opt_profiling=$enableval |
2606 | fi | |
2607 | ||
2608 | # Check whether --enable-static-link was given. | |
cce855bc | 2609 | if test "${enable_static_link+set}" = set; then |
3185942a JA |
2610 | enableval=$enable_static_link; opt_static_link=$enableval |
2611 | fi | |
2612 | ||
b72432fd | 2613 | |
b80f6443 JA |
2614 | |
2615 | ||
ccc6cda3 | 2616 | if test $opt_alias = yes; then |
b80f6443 | 2617 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2618 | #define ALIAS 1 |
b80f6443 | 2619 | _ACEOF |
ccc6cda3 | 2620 | |
ccc6cda3 JA |
2621 | fi |
2622 | if test $opt_dirstack = yes; then | |
b80f6443 | 2623 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2624 | #define PUSHD_AND_POPD 1 |
b80f6443 | 2625 | _ACEOF |
ccc6cda3 JA |
2626 | |
2627 | fi | |
2628 | if test $opt_restricted = yes; then | |
b80f6443 | 2629 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2630 | #define RESTRICTED_SHELL 1 |
b80f6443 | 2631 | _ACEOF |
ccc6cda3 JA |
2632 | |
2633 | fi | |
2634 | if test $opt_process_subst = yes; then | |
b80f6443 | 2635 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2636 | #define PROCESS_SUBSTITUTION 1 |
b80f6443 | 2637 | _ACEOF |
ccc6cda3 JA |
2638 | |
2639 | fi | |
2640 | if test $opt_prompt_decoding = yes; then | |
b80f6443 | 2641 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2642 | #define PROMPT_STRING_DECODE 1 |
b80f6443 | 2643 | _ACEOF |
ccc6cda3 JA |
2644 | |
2645 | fi | |
2646 | if test $opt_select = yes; then | |
b80f6443 | 2647 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2648 | #define SELECT_COMMAND 1 |
b80f6443 | 2649 | _ACEOF |
ccc6cda3 JA |
2650 | |
2651 | fi | |
2652 | if test $opt_help = yes; then | |
b80f6443 | 2653 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2654 | #define HELP_BUILTIN 1 |
b80f6443 | 2655 | _ACEOF |
ccc6cda3 JA |
2656 | |
2657 | fi | |
2658 | if test $opt_array_variables = yes; then | |
b80f6443 | 2659 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2660 | #define ARRAY_VARS 1 |
b80f6443 | 2661 | _ACEOF |
ccc6cda3 JA |
2662 | |
2663 | fi | |
2664 | if test $opt_dparen_arith = yes; then | |
b80f6443 | 2665 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2666 | #define DPAREN_ARITHMETIC 1 |
b80f6443 | 2667 | _ACEOF |
ccc6cda3 JA |
2668 | |
2669 | fi | |
2670 | if test $opt_brace_expansion = yes; then | |
b80f6443 | 2671 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2672 | #define BRACE_EXPANSION 1 |
b80f6443 | 2673 | _ACEOF |
ccc6cda3 JA |
2674 | |
2675 | fi | |
2676 | if test $opt_disabled_builtins = yes; then | |
b80f6443 | 2677 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2678 | #define DISABLED_BUILTINS 1 |
b80f6443 | 2679 | _ACEOF |
ccc6cda3 JA |
2680 | |
2681 | fi | |
2682 | if test $opt_command_timing = yes; then | |
b80f6443 | 2683 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2684 | #define COMMAND_TIMING 1 |
b80f6443 | 2685 | _ACEOF |
ccc6cda3 JA |
2686 | |
2687 | fi | |
bb70624e | 2688 | if test $opt_xpg_echo = yes ; then |
b80f6443 | 2689 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2690 | #define DEFAULT_ECHO_TO_XPG 1 |
b80f6443 | 2691 | _ACEOF |
ccc6cda3 | 2692 | |
95732b49 JA |
2693 | fi |
2694 | if test $opt_strict_posix = yes; then | |
2695 | cat >>confdefs.h <<\_ACEOF | |
2696 | #define STRICT_POSIX 1 | |
2697 | _ACEOF | |
2698 | ||
cce855bc JA |
2699 | fi |
2700 | if test $opt_extended_glob = yes ; then | |
b80f6443 | 2701 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 2702 | #define EXTENDED_GLOB 1 |
b80f6443 | 2703 | _ACEOF |
cce855bc JA |
2704 | |
2705 | fi | |
2706 | if test $opt_cond_command = yes ; then | |
b80f6443 | 2707 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 2708 | #define COND_COMMAND 1 |
b80f6443 JA |
2709 | _ACEOF |
2710 | ||
2711 | fi | |
2712 | if test $opt_cond_regexp = yes ; then | |
2713 | cat >>confdefs.h <<\_ACEOF | |
2714 | #define COND_REGEXP 1 | |
2715 | _ACEOF | |
cce855bc | 2716 | |
3185942a JA |
2717 | fi |
2718 | if test $opt_coproc = yes; then | |
2719 | cat >>confdefs.h <<\_ACEOF | |
2720 | #define COPROCESS_SUPPORT 1 | |
2721 | _ACEOF | |
2722 | ||
bb70624e JA |
2723 | fi |
2724 | if test $opt_arith_for_command = yes; then | |
b80f6443 | 2725 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2726 | #define ARITH_FOR_COMMAND 1 |
b80f6443 | 2727 | _ACEOF |
bb70624e JA |
2728 | |
2729 | fi | |
2730 | if test $opt_net_redirs = yes; then | |
b80f6443 | 2731 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2732 | #define NETWORK_REDIRECTIONS 1 |
b80f6443 | 2733 | _ACEOF |
bb70624e JA |
2734 | |
2735 | fi | |
2736 | if test $opt_progcomp = yes; then | |
b80f6443 | 2737 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2738 | #define PROGRAMMABLE_COMPLETION 1 |
b80f6443 JA |
2739 | _ACEOF |
2740 | ||
2741 | fi | |
2742 | if test $opt_multibyte = no; then | |
2743 | cat >>confdefs.h <<\_ACEOF | |
2744 | #define NO_MULTIBYTE_SUPPORT 1 | |
2745 | _ACEOF | |
2746 | ||
2747 | fi | |
2748 | if test $opt_debugger = yes; then | |
2749 | cat >>confdefs.h <<\_ACEOF | |
2750 | #define DEBUGGER 1 | |
2751 | _ACEOF | |
bb70624e | 2752 | |
3185942a JA |
2753 | fi |
2754 | if test $opt_casemod_attrs = yes; then | |
2755 | cat >>confdefs.h <<\_ACEOF | |
2756 | #define CASEMOD_ATTRS 1 | |
2757 | _ACEOF | |
2758 | ||
2759 | fi | |
2760 | if test $opt_casemod_expansions = yes; then | |
2761 | cat >>confdefs.h <<\_ACEOF | |
2762 | #define CASEMOD_EXPANSIONS 1 | |
2763 | _ACEOF | |
2764 | ||
ccc6cda3 JA |
2765 | fi |
2766 | ||
7117c2d2 | 2767 | if test $opt_memscramble = yes; then |
b80f6443 | 2768 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 2769 | #define MEMSCRAMBLE 1 |
b80f6443 | 2770 | _ACEOF |
7117c2d2 JA |
2771 | |
2772 | fi | |
2773 | ||
d166f048 JA |
2774 | if test "$opt_minimal_config" = yes; then |
2775 | TESTSCRIPT=run-minimal | |
2776 | else | |
2777 | TESTSCRIPT=run-all | |
2778 | fi | |
2779 | ||
7117c2d2 JA |
2780 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= |
2781 | if test "$opt_separate_help" != no; then | |
2782 | if test "$opt_separate_help" = "yes" ; then | |
2783 | HELPDIR='${datadir}/bash' | |
2784 | else | |
2785 | HELPDIR=$opt_separate_help | |
2786 | fi | |
2787 | HELPDIRDEFINE='-H ${HELPDIR}' | |
2788 | HELPINSTALL='install-help' | |
2789 | fi | |
95732b49 JA |
2790 | HELPSTRINGS= |
2791 | if test "$opt_single_longdoc_strings" != "yes"; then | |
2792 | HELPSTRINGS='-S' | |
2793 | fi | |
2794 | ||
7117c2d2 | 2795 | |
b80f6443 JA |
2796 | |
2797 | ||
2798 | ||
2799 | ||
2800 | ||
2801 | ||
2802 | ||
2803 | ||
2804 | ||
2805 | ||
2806 | ||
2807 | ||
2808 | ||
2809 | ||
2810 | ||
2811 | ||
f73dda09 | 2812 | echo "" |
7117c2d2 | 2813 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" |
f73dda09 | 2814 | echo "" |
d166f048 | 2815 | |
f73dda09 JA |
2816 | ac_ext=c |
2817 | ac_cpp='$CPP $CPPFLAGS' | |
2818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2821 | if test -n "$ac_tool_prefix"; then | |
2822 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2823 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3185942a JA |
2824 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2825 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2826 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2827 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
2828 | else |
2829 | if test -n "$CC"; then | |
2830 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2831 | else | |
b80f6443 JA |
2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2833 | for as_dir in $PATH | |
2834 | do | |
2835 | IFS=$as_save_IFS | |
2836 | test -z "$as_dir" && as_dir=. | |
2837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2839 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3185942a | 2840 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2841 | break 2 |
2842 | fi | |
2843 | done | |
f73dda09 | 2844 | done |
3185942a | 2845 | IFS=$as_save_IFS |
ccc6cda3 | 2846 | |
f73dda09 JA |
2847 | fi |
2848 | fi | |
2849 | CC=$ac_cv_prog_CC | |
2850 | if test -n "$CC"; then | |
3185942a JA |
2851 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2852 | $as_echo "$CC" >&6; } | |
f73dda09 | 2853 | else |
3185942a JA |
2854 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2855 | $as_echo "no" >&6; } | |
f73dda09 | 2856 | fi |
ccc6cda3 | 2857 | |
3185942a | 2858 | |
f73dda09 JA |
2859 | fi |
2860 | if test -z "$ac_cv_prog_CC"; then | |
2861 | ac_ct_CC=$CC | |
2862 | # Extract the first word of "gcc", so it can be a program name with args. | |
2863 | set dummy gcc; ac_word=$2 | |
3185942a JA |
2864 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2865 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2866 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3185942a | 2867 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
2868 | else |
2869 | if test -n "$ac_ct_CC"; then | |
2870 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2871 | else | |
b80f6443 JA |
2872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2873 | for as_dir in $PATH | |
2874 | do | |
2875 | IFS=$as_save_IFS | |
2876 | test -z "$as_dir" && as_dir=. | |
2877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2879 | ac_cv_prog_ac_ct_CC="gcc" |
3185942a | 2880 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2881 | break 2 |
2882 | fi | |
2883 | done | |
f73dda09 | 2884 | done |
3185942a | 2885 | IFS=$as_save_IFS |
ccc6cda3 | 2886 | |
f73dda09 JA |
2887 | fi |
2888 | fi | |
2889 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2890 | if test -n "$ac_ct_CC"; then | |
3185942a JA |
2891 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2892 | $as_echo "$ac_ct_CC" >&6; } | |
f73dda09 | 2893 | else |
3185942a JA |
2894 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2895 | $as_echo "no" >&6; } | |
f73dda09 | 2896 | fi |
ccc6cda3 | 2897 | |
3185942a JA |
2898 | if test "x$ac_ct_CC" = x; then |
2899 | CC="" | |
2900 | else | |
2901 | case $cross_compiling:$ac_tool_warned in | |
2902 | yes:) | |
2903 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2905 | ac_tool_warned=yes ;; | |
2906 | esac | |
2907 | CC=$ac_ct_CC | |
2908 | fi | |
f73dda09 JA |
2909 | else |
2910 | CC="$ac_cv_prog_CC" | |
2911 | fi | |
bb70624e | 2912 | |
f73dda09 | 2913 | if test -z "$CC"; then |
3185942a JA |
2914 | if test -n "$ac_tool_prefix"; then |
2915 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
f73dda09 | 2916 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3185942a JA |
2917 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2918 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2919 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2920 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
2921 | else |
2922 | if test -n "$CC"; then | |
2923 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2924 | else | |
b80f6443 JA |
2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2926 | for as_dir in $PATH | |
2927 | do | |
2928 | IFS=$as_save_IFS | |
2929 | test -z "$as_dir" && as_dir=. | |
2930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2932 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3185942a | 2933 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2934 | break 2 |
2935 | fi | |
2936 | done | |
f73dda09 | 2937 | done |
3185942a | 2938 | IFS=$as_save_IFS |
f73dda09 | 2939 | |
ccc6cda3 JA |
2940 | fi |
2941 | fi | |
f73dda09 | 2942 | CC=$ac_cv_prog_CC |
ccc6cda3 | 2943 | if test -n "$CC"; then |
3185942a JA |
2944 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2945 | $as_echo "$CC" >&6; } | |
f73dda09 | 2946 | else |
3185942a JA |
2947 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2948 | $as_echo "no" >&6; } | |
f73dda09 JA |
2949 | fi |
2950 | ||
ccc6cda3 | 2951 | |
3185942a | 2952 | fi |
f73dda09 | 2953 | fi |
ccc6cda3 JA |
2954 | if test -z "$CC"; then |
2955 | # Extract the first word of "cc", so it can be a program name with args. | |
2956 | set dummy cc; ac_word=$2 | |
3185942a JA |
2957 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2958 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2959 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2960 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
2961 | else |
2962 | if test -n "$CC"; then | |
2963 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2964 | else | |
ccc6cda3 | 2965 | ac_prog_rejected=no |
b80f6443 JA |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2967 | for as_dir in $PATH | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 JA |
2973 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2974 | ac_prog_rejected=yes | |
2975 | continue | |
2976 | fi | |
2977 | ac_cv_prog_CC="cc" | |
3185942a | 2978 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2979 | break 2 |
2980 | fi | |
2981 | done | |
f73dda09 | 2982 | done |
3185942a | 2983 | IFS=$as_save_IFS |
f73dda09 | 2984 | |
ccc6cda3 JA |
2985 | if test $ac_prog_rejected = yes; then |
2986 | # We found a bogon in the path, so make sure we never use it. | |
2987 | set dummy $ac_cv_prog_CC | |
2988 | shift | |
f73dda09 | 2989 | if test $# != 0; then |
ccc6cda3 JA |
2990 | # We chose a different compiler from the bogus one. |
2991 | # However, it has the same basename, so the bogon will be chosen | |
2992 | # first if we set CC to just the basename; use the full file name. | |
2993 | shift | |
0628567a | 2994 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ccc6cda3 JA |
2995 | fi |
2996 | fi | |
2997 | fi | |
2998 | fi | |
f73dda09 | 2999 | CC=$ac_cv_prog_CC |
ccc6cda3 | 3000 | if test -n "$CC"; then |
3185942a JA |
3001 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3002 | $as_echo "$CC" >&6; } | |
ccc6cda3 | 3003 | else |
3185942a JA |
3004 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3005 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
3006 | fi |
3007 | ||
3185942a | 3008 | |
f73dda09 JA |
3009 | fi |
3010 | if test -z "$CC"; then | |
3011 | if test -n "$ac_tool_prefix"; then | |
3185942a | 3012 | for ac_prog in cl.exe |
f73dda09 JA |
3013 | do |
3014 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3015 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3185942a JA |
3016 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3017 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 3018 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 3019 | $as_echo_n "(cached) " >&6 |
bb70624e JA |
3020 | else |
3021 | if test -n "$CC"; then | |
3022 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3023 | else | |
b80f6443 JA |
3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3025 | for as_dir in $PATH | |
3026 | do | |
3027 | IFS=$as_save_IFS | |
3028 | test -z "$as_dir" && as_dir=. | |
3029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 3030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 3031 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3185942a | 3032 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
3033 | break 2 |
3034 | fi | |
3035 | done | |
f73dda09 | 3036 | done |
3185942a | 3037 | IFS=$as_save_IFS |
f73dda09 | 3038 | |
bb70624e JA |
3039 | fi |
3040 | fi | |
f73dda09 | 3041 | CC=$ac_cv_prog_CC |
bb70624e | 3042 | if test -n "$CC"; then |
3185942a JA |
3043 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3044 | $as_echo "$CC" >&6; } | |
bb70624e | 3045 | else |
3185942a JA |
3046 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3047 | $as_echo "no" >&6; } | |
bb70624e | 3048 | fi |
ccc6cda3 | 3049 | |
3185942a | 3050 | |
f73dda09 JA |
3051 | test -n "$CC" && break |
3052 | done | |
ccc6cda3 | 3053 | fi |
f73dda09 JA |
3054 | if test -z "$CC"; then |
3055 | ac_ct_CC=$CC | |
3185942a | 3056 | for ac_prog in cl.exe |
f73dda09 JA |
3057 | do |
3058 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3059 | set dummy $ac_prog; ac_word=$2 | |
3185942a JA |
3060 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3061 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 3062 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3185942a | 3063 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3064 | else |
3065 | if test -n "$ac_ct_CC"; then | |
3066 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3067 | else | |
b80f6443 JA |
3068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3069 | for as_dir in $PATH | |
3070 | do | |
3071 | IFS=$as_save_IFS | |
3072 | test -z "$as_dir" && as_dir=. | |
3073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 3074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 3075 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3185942a | 3076 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
3077 | break 2 |
3078 | fi | |
3079 | done | |
f73dda09 | 3080 | done |
3185942a | 3081 | IFS=$as_save_IFS |
ccc6cda3 | 3082 | |
ccc6cda3 | 3083 | fi |
ccc6cda3 | 3084 | fi |
f73dda09 JA |
3085 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3086 | if test -n "$ac_ct_CC"; then | |
3185942a JA |
3087 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3088 | $as_echo "$ac_ct_CC" >&6; } | |
f73dda09 | 3089 | else |
3185942a JA |
3090 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3091 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
3092 | fi |
3093 | ||
3185942a | 3094 | |
f73dda09 JA |
3095 | test -n "$ac_ct_CC" && break |
3096 | done | |
ccc6cda3 | 3097 | |
3185942a JA |
3098 | if test "x$ac_ct_CC" = x; then |
3099 | CC="" | |
3100 | else | |
3101 | case $cross_compiling:$ac_tool_warned in | |
3102 | yes:) | |
3103 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3105 | ac_tool_warned=yes ;; | |
3106 | esac | |
3107 | CC=$ac_ct_CC | |
3108 | fi | |
bb70624e JA |
3109 | fi |
3110 | ||
f73dda09 JA |
3111 | fi |
3112 | ||
b80f6443 | 3113 | |
3185942a JA |
3114 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3116 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
0628567a | 3117 | See \`config.log' for more details." >&5 |
3185942a | 3118 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
0628567a | 3119 | See \`config.log' for more details." >&2;} |
3185942a | 3120 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3121 | |
3122 | # Provide some information about the compiler. | |
3185942a JA |
3123 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3124 | set X $ac_compile | |
3125 | ac_compiler=$2 | |
3126 | { (ac_try="$ac_compiler --version >&5" | |
3127 | case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
3131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3132 | $as_echo "$ac_try_echo") >&5 | |
3133 | (eval "$ac_compiler --version >&5") 2>&5 | |
f73dda09 | 3134 | ac_status=$? |
3185942a | 3135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3136 | (exit $ac_status); } |
3185942a JA |
3137 | { (ac_try="$ac_compiler -v >&5" |
3138 | case "(($ac_try" in | |
3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3140 | *) ac_try_echo=$ac_try;; | |
3141 | esac | |
3142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3143 | $as_echo "$ac_try_echo") >&5 | |
3144 | (eval "$ac_compiler -v >&5") 2>&5 | |
f73dda09 | 3145 | ac_status=$? |
3185942a | 3146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3147 | (exit $ac_status); } |
3185942a JA |
3148 | { (ac_try="$ac_compiler -V >&5" |
3149 | case "(($ac_try" in | |
3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3151 | *) ac_try_echo=$ac_try;; | |
3152 | esac | |
3153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3154 | $as_echo "$ac_try_echo") >&5 | |
3155 | (eval "$ac_compiler -V >&5") 2>&5 | |
f73dda09 | 3156 | ac_status=$? |
3185942a | 3157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3158 | (exit $ac_status); } |
3159 | ||
3160 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3161 | /* confdefs.h. */ |
3162 | _ACEOF | |
3163 | cat confdefs.h >>conftest.$ac_ext | |
3164 | cat >>conftest.$ac_ext <<_ACEOF | |
3165 | /* end confdefs.h. */ | |
f73dda09 JA |
3166 | |
3167 | int | |
3168 | main () | |
3169 | { | |
3170 | ||
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | ac_clean_files_save=$ac_clean_files | |
3185942a | 3176 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
f73dda09 JA |
3177 | # Try to create an executable without -o first, disregard a.out. |
3178 | # It will help us diagnose broken compilers, and finding out an intuition | |
3179 | # of exeext. | |
3185942a JA |
3180 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3181 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3182 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3183 | ||
3184 | # The possible output files: | |
3185 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3186 | ||
3187 | ac_rmfiles= | |
3188 | for ac_file in $ac_files | |
3189 | do | |
3190 | case $ac_file in | |
3191 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3192 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3193 | esac | |
3194 | done | |
3195 | rm -f $ac_rmfiles | |
3196 | ||
3197 | if { (ac_try="$ac_link_default" | |
3198 | case "(($ac_try" in | |
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3200 | *) ac_try_echo=$ac_try;; | |
3201 | esac | |
3202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3203 | $as_echo "$ac_try_echo") >&5 | |
3204 | (eval "$ac_link_default") 2>&5 | |
f73dda09 | 3205 | ac_status=$? |
3185942a | 3206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3207 | (exit $ac_status); }; then |
3185942a JA |
3208 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3209 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3210 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3211 | # so that the user can short-circuit this test for compilers unknown to | |
3212 | # Autoconf. | |
3213 | for ac_file in $ac_files '' | |
0628567a JA |
3214 | do |
3215 | test -f "$ac_file" || continue | |
f73dda09 | 3216 | case $ac_file in |
3185942a | 3217 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
0628567a JA |
3218 | ;; |
3219 | [ab].out ) | |
3220 | # We found the default executable, but exeext='' is most | |
3221 | # certainly right. | |
3222 | break;; | |
3223 | *.* ) | |
3185942a JA |
3224 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3225 | then :; else | |
3226 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3227 | fi | |
3228 | # We set ac_cv_exeext here because the later test for it is not | |
3229 | # safe: cross compilers may not add the suffix if given an `-o' | |
3230 | # argument, so we may need to know it at that point already. | |
3231 | # Even if this section looks crufty: it has the advantage of | |
3232 | # actually working. | |
0628567a JA |
3233 | break;; |
3234 | * ) | |
3235 | break;; | |
f73dda09 JA |
3236 | esac |
3237 | done | |
3185942a JA |
3238 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3239 | ||
ccc6cda3 | 3240 | else |
3185942a JA |
3241 | ac_file='' |
3242 | fi | |
3243 | ||
3244 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3245 | $as_echo "$ac_file" >&6; } | |
3246 | if test -z "$ac_file"; then | |
3247 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
3249 | ||
3185942a JA |
3250 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3252 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
0628567a | 3253 | See \`config.log' for more details." >&5 |
3185942a | 3254 | $as_echo "$as_me: error: C compiler cannot create executables |
0628567a | 3255 | See \`config.log' for more details." >&2;} |
3185942a | 3256 | { (exit 77); exit 77; }; }; } |
f73dda09 JA |
3257 | fi |
3258 | ||
3259 | ac_exeext=$ac_cv_exeext | |
f73dda09 | 3260 | |
3185942a | 3261 | # Check that the compiler produces executables we can run. If not, either |
f73dda09 | 3262 | # the compiler is broken, or we cross compile. |
3185942a JA |
3263 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3264 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
f73dda09 JA |
3265 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3266 | # If not cross compiling, check that we can run a simple program. | |
3267 | if test "$cross_compiling" != yes; then | |
3268 | if { ac_try='./$ac_file' | |
3185942a JA |
3269 | { (case "(($ac_try" in |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
3272 | esac | |
3273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3274 | $as_echo "$ac_try_echo") >&5 | |
3275 | (eval "$ac_try") 2>&5 | |
f73dda09 | 3276 | ac_status=$? |
3185942a | 3277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3278 | (exit $ac_status); }; }; then |
3279 | cross_compiling=no | |
3280 | else | |
3281 | if test "$cross_compiling" = maybe; then | |
3282 | cross_compiling=yes | |
3283 | else | |
3185942a JA |
3284 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3285 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3286 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
0628567a JA |
3287 | If you meant to cross compile, use \`--host'. |
3288 | See \`config.log' for more details." >&5 | |
3185942a | 3289 | $as_echo "$as_me: error: cannot run C compiled programs. |
0628567a JA |
3290 | If you meant to cross compile, use \`--host'. |
3291 | See \`config.log' for more details." >&2;} | |
3185942a | 3292 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3293 | fi |
3294 | fi | |
3295 | fi | |
3185942a JA |
3296 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3297 | $as_echo "yes" >&6; } | |
f73dda09 | 3298 | |
3185942a | 3299 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
f73dda09 | 3300 | ac_clean_files=$ac_clean_files_save |
3185942a | 3301 | # Check that the compiler produces executables we can run. If not, either |
f73dda09 | 3302 | # the compiler is broken, or we cross compile. |
3185942a JA |
3303 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3304 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3305 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3306 | $as_echo "$cross_compiling" >&6; } | |
3307 | ||
3308 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3309 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3310 | if { (ac_try="$ac_link" | |
3311 | case "(($ac_try" in | |
3312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3313 | *) ac_try_echo=$ac_try;; | |
3314 | esac | |
3315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3316 | $as_echo "$ac_try_echo") >&5 | |
3317 | (eval "$ac_link") 2>&5 | |
f73dda09 | 3318 | ac_status=$? |
3185942a | 3319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3320 | (exit $ac_status); }; then |
3321 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3322 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3323 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3324 | # `rm'. | |
0628567a JA |
3325 | for ac_file in conftest.exe conftest conftest.*; do |
3326 | test -f "$ac_file" || continue | |
f73dda09 | 3327 | case $ac_file in |
3185942a | 3328 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
f73dda09 | 3329 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
0628567a | 3330 | break;; |
f73dda09 JA |
3331 | * ) break;; |
3332 | esac | |
3333 | done | |
ccc6cda3 | 3334 | else |
3185942a JA |
3335 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3337 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
0628567a | 3338 | See \`config.log' for more details." >&5 |
3185942a | 3339 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
0628567a | 3340 | See \`config.log' for more details." >&2;} |
3185942a | 3341 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3342 | fi |
3343 | ||
3344 | rm -f conftest$ac_cv_exeext | |
3185942a JA |
3345 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3346 | $as_echo "$ac_cv_exeext" >&6; } | |
f73dda09 JA |
3347 | |
3348 | rm -f conftest.$ac_ext | |
3349 | EXEEXT=$ac_cv_exeext | |
3350 | ac_exeext=$EXEEXT | |
3185942a JA |
3351 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3352 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f73dda09 | 3353 | if test "${ac_cv_objext+set}" = set; then |
3185942a | 3354 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3355 | else |
3356 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3357 | /* confdefs.h. */ |
3358 | _ACEOF | |
3359 | cat confdefs.h >>conftest.$ac_ext | |
3360 | cat >>conftest.$ac_ext <<_ACEOF | |
3361 | /* end confdefs.h. */ | |
f73dda09 JA |
3362 | |
3363 | int | |
3364 | main () | |
3365 | { | |
3366 | ||
3367 | ; | |
3368 | return 0; | |
3369 | } | |
3370 | _ACEOF | |
3371 | rm -f conftest.o conftest.obj | |
3185942a JA |
3372 | if { (ac_try="$ac_compile" |
3373 | case "(($ac_try" in | |
3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3375 | *) ac_try_echo=$ac_try;; | |
3376 | esac | |
3377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3378 | $as_echo "$ac_try_echo") >&5 | |
3379 | (eval "$ac_compile") 2>&5 | |
f73dda09 | 3380 | ac_status=$? |
3185942a | 3381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3382 | (exit $ac_status); }; then |
3185942a JA |
3383 | for ac_file in conftest.o conftest.obj conftest.*; do |
3384 | test -f "$ac_file" || continue; | |
f73dda09 | 3385 | case $ac_file in |
3185942a | 3386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
f73dda09 JA |
3387 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3388 | break;; | |
3389 | esac | |
3390 | done | |
3391 | else | |
3185942a | 3392 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3393 | sed 's/^/| /' conftest.$ac_ext >&5 |
3394 | ||
3185942a JA |
3395 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3397 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
0628567a | 3398 | See \`config.log' for more details." >&5 |
3185942a | 3399 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
0628567a | 3400 | See \`config.log' for more details." >&2;} |
3185942a | 3401 | { (exit 1); exit 1; }; }; } |
ccc6cda3 | 3402 | fi |
ccc6cda3 | 3403 | |
f73dda09 | 3404 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ccc6cda3 | 3405 | fi |
3185942a JA |
3406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3407 | $as_echo "$ac_cv_objext" >&6; } | |
f73dda09 JA |
3408 | OBJEXT=$ac_cv_objext |
3409 | ac_objext=$OBJEXT | |
3185942a JA |
3410 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3411 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f73dda09 | 3412 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3185942a | 3413 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3414 | else |
3415 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3416 | /* confdefs.h. */ |
3417 | _ACEOF | |
3418 | cat confdefs.h >>conftest.$ac_ext | |
3419 | cat >>conftest.$ac_ext <<_ACEOF | |
3420 | /* end confdefs.h. */ | |
f73dda09 JA |
3421 | |
3422 | int | |
3423 | main () | |
3424 | { | |
3425 | #ifndef __GNUC__ | |
3426 | choke me | |
3427 | #endif | |
3428 | ||
3429 | ; | |
3430 | return 0; | |
3431 | } | |
3432 | _ACEOF | |
3433 | rm -f conftest.$ac_objext | |
3185942a JA |
3434 | if { (ac_try="$ac_compile" |
3435 | case "(($ac_try" in | |
3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3437 | *) ac_try_echo=$ac_try;; | |
3438 | esac | |
3439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3440 | $as_echo "$ac_try_echo") >&5 | |
3441 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3442 | ac_status=$? |
0628567a JA |
3443 | grep -v '^ *+' conftest.er1 >conftest.err |
3444 | rm -f conftest.er1 | |
3445 | cat conftest.err >&5 | |
3185942a JA |
3446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3447 | (exit $ac_status); } && { | |
3448 | test -z "$ac_c_werror_flag" || | |
3449 | test ! -s conftest.err | |
3450 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
3451 | ac_compiler_gnu=yes |
3452 | else | |
3185942a | 3453 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3454 | sed 's/^/| /' conftest.$ac_ext >&5 |
3455 | ||
3185942a | 3456 | ac_compiler_gnu=no |
f73dda09 | 3457 | fi |
3185942a JA |
3458 | |
3459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
3460 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3461 | ||
3462 | fi | |
3185942a JA |
3463 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3464 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3465 | if test $ac_compiler_gnu = yes; then | |
3466 | GCC=yes | |
3467 | else | |
3468 | GCC= | |
3469 | fi | |
f73dda09 JA |
3470 | ac_test_CFLAGS=${CFLAGS+set} |
3471 | ac_save_CFLAGS=$CFLAGS | |
3185942a JA |
3472 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3473 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f73dda09 | 3474 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3185942a | 3475 | $as_echo_n "(cached) " >&6 |
f73dda09 | 3476 | else |
3185942a JA |
3477 | ac_save_c_werror_flag=$ac_c_werror_flag |
3478 | ac_c_werror_flag=yes | |
3479 | ac_cv_prog_cc_g=no | |
3480 | CFLAGS="-g" | |
3481 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3482 | /* confdefs.h. */ |
3483 | _ACEOF | |
3484 | cat confdefs.h >>conftest.$ac_ext | |
3485 | cat >>conftest.$ac_ext <<_ACEOF | |
3486 | /* end confdefs.h. */ | |
f73dda09 JA |
3487 | |
3488 | int | |
3489 | main () | |
3490 | { | |
ccc6cda3 | 3491 | |
f73dda09 JA |
3492 | ; |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
3496 | rm -f conftest.$ac_objext | |
3185942a JA |
3497 | if { (ac_try="$ac_compile" |
3498 | case "(($ac_try" in | |
3499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3500 | *) ac_try_echo=$ac_try;; | |
3501 | esac | |
3502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3503 | $as_echo "$ac_try_echo") >&5 | |
3504 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3505 | ac_status=$? |
0628567a JA |
3506 | grep -v '^ *+' conftest.er1 >conftest.err |
3507 | rm -f conftest.er1 | |
3508 | cat conftest.err >&5 | |
3185942a JA |
3509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3510 | (exit $ac_status); } && { | |
3511 | test -z "$ac_c_werror_flag" || | |
3512 | test ! -s conftest.err | |
3513 | } && test -s conftest.$ac_objext; then | |
3514 | ac_cv_prog_cc_g=yes | |
3515 | else | |
3516 | $as_echo "$as_me: failed program was:" >&5 | |
3517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3518 | ||
3519 | CFLAGS="" | |
3520 | cat >conftest.$ac_ext <<_ACEOF | |
3521 | /* confdefs.h. */ | |
3522 | _ACEOF | |
3523 | cat confdefs.h >>conftest.$ac_ext | |
3524 | cat >>conftest.$ac_ext <<_ACEOF | |
3525 | /* end confdefs.h. */ | |
3526 | ||
3527 | int | |
3528 | main () | |
3529 | { | |
3530 | ||
3531 | ; | |
3532 | return 0; | |
3533 | } | |
3534 | _ACEOF | |
3535 | rm -f conftest.$ac_objext | |
3536 | if { (ac_try="$ac_compile" | |
3537 | case "(($ac_try" in | |
3538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3539 | *) ac_try_echo=$ac_try;; | |
3540 | esac | |
3541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3542 | $as_echo "$ac_try_echo") >&5 | |
3543 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a | 3544 | ac_status=$? |
3185942a JA |
3545 | grep -v '^ *+' conftest.er1 >conftest.err |
3546 | rm -f conftest.er1 | |
3547 | cat conftest.err >&5 | |
3548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3549 | (exit $ac_status); } && { | |
3550 | test -z "$ac_c_werror_flag" || | |
3551 | test ! -s conftest.err | |
3552 | } && test -s conftest.$ac_objext; then | |
3553 | : | |
3554 | else | |
3555 | $as_echo "$as_me: failed program was:" >&5 | |
3556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3557 | ||
3558 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3559 | CFLAGS="-g" | |
3560 | cat >conftest.$ac_ext <<_ACEOF | |
3561 | /* confdefs.h. */ | |
3562 | _ACEOF | |
3563 | cat confdefs.h >>conftest.$ac_ext | |
3564 | cat >>conftest.$ac_ext <<_ACEOF | |
3565 | /* end confdefs.h. */ | |
3566 | ||
3567 | int | |
3568 | main () | |
3569 | { | |
3570 | ||
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
3576 | if { (ac_try="$ac_compile" | |
3577 | case "(($ac_try" in | |
3578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3579 | *) ac_try_echo=$ac_try;; | |
3580 | esac | |
3581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3582 | $as_echo "$ac_try_echo") >&5 | |
3583 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3584 | ac_status=$? |
3185942a JA |
3585 | grep -v '^ *+' conftest.er1 >conftest.err |
3586 | rm -f conftest.er1 | |
3587 | cat conftest.err >&5 | |
3588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); } && { | |
3590 | test -z "$ac_c_werror_flag" || | |
3591 | test ! -s conftest.err | |
3592 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
3593 | ac_cv_prog_cc_g=yes |
3594 | else | |
3185942a | 3595 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3596 | sed 's/^/| /' conftest.$ac_ext >&5 |
3597 | ||
3185942a JA |
3598 | |
3599 | fi | |
3600 | ||
3601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3602 | fi | |
3603 | ||
3604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 3605 | fi |
3185942a JA |
3606 | |
3607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3608 | ac_c_werror_flag=$ac_save_c_werror_flag | |
f73dda09 | 3609 | fi |
3185942a JA |
3610 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3611 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
bb70624e | 3612 | if test "$ac_test_CFLAGS" = set; then |
f73dda09 | 3613 | CFLAGS=$ac_save_CFLAGS |
bb70624e JA |
3614 | elif test $ac_cv_prog_cc_g = yes; then |
3615 | if test "$GCC" = yes; then | |
ccc6cda3 JA |
3616 | CFLAGS="-g -O2" |
3617 | else | |
bb70624e | 3618 | CFLAGS="-g" |
ccc6cda3 JA |
3619 | fi |
3620 | else | |
bb70624e JA |
3621 | if test "$GCC" = yes; then |
3622 | CFLAGS="-O2" | |
3623 | else | |
3624 | CFLAGS= | |
3625 | fi | |
ccc6cda3 | 3626 | fi |
3185942a JA |
3627 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3628 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3629 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3630 | $as_echo_n "(cached) " >&6 | |
0628567a | 3631 | else |
3185942a | 3632 | ac_cv_prog_cc_c89=no |
0628567a JA |
3633 | ac_save_CC=$CC |
3634 | cat >conftest.$ac_ext <<_ACEOF | |
3635 | /* confdefs.h. */ | |
3636 | _ACEOF | |
3637 | cat confdefs.h >>conftest.$ac_ext | |
3638 | cat >>conftest.$ac_ext <<_ACEOF | |
3639 | /* end confdefs.h. */ | |
3640 | #include <stdarg.h> | |
3641 | #include <stdio.h> | |
3642 | #include <sys/types.h> | |
3643 | #include <sys/stat.h> | |
3644 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3645 | struct buf { int x; }; | |
3646 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3647 | static char *e (p, i) | |
3648 | char **p; | |
3649 | int i; | |
3650 | { | |
3651 | return p[i]; | |
3652 | } | |
3653 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3654 | { | |
3655 | char *s; | |
3656 | va_list v; | |
3657 | va_start (v,p); | |
3658 | s = g (p, va_arg (v,int)); | |
3659 | va_end (v); | |
3660 | return s; | |
3661 | } | |
3662 | ||
3663 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3664 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3665 | These don't provoke an error unfortunately, instead are silently treated | |
3185942a | 3666 | as 'x'. The following induces an error, until -std is added to get |
0628567a JA |
3667 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3668 | array size at least. It's necessary to write '\x00'==0 to get something | |
3185942a | 3669 | that's true only with -std. */ |
0628567a JA |
3670 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3671 | ||
3185942a JA |
3672 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3673 | inside strings and character constants. */ | |
3674 | #define FOO(x) 'x' | |
3675 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3676 | ||
0628567a JA |
3677 | int test (int i, double x); |
3678 | struct s1 {int (*f) (int a);}; | |
3679 | struct s2 {int (*f) (double a);}; | |
3680 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3681 | int argc; | |
3682 | char **argv; | |
3683 | int | |
3684 | main () | |
3685 | { | |
3686 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3687 | ; | |
3688 | return 0; | |
3689 | } | |
3690 | _ACEOF | |
3185942a JA |
3691 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3692 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
0628567a JA |
3693 | do |
3694 | CC="$ac_save_CC $ac_arg" | |
3695 | rm -f conftest.$ac_objext | |
3185942a JA |
3696 | if { (ac_try="$ac_compile" |
3697 | case "(($ac_try" in | |
3698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3699 | *) ac_try_echo=$ac_try;; | |
3700 | esac | |
3701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3702 | $as_echo "$ac_try_echo") >&5 | |
3703 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
3704 | ac_status=$? |
3705 | grep -v '^ *+' conftest.er1 >conftest.err | |
3706 | rm -f conftest.er1 | |
3707 | cat conftest.err >&5 | |
3185942a JA |
3708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3709 | (exit $ac_status); } && { | |
3710 | test -z "$ac_c_werror_flag" || | |
3711 | test ! -s conftest.err | |
3712 | } && test -s conftest.$ac_objext; then | |
3713 | ac_cv_prog_cc_c89=$ac_arg | |
0628567a | 3714 | else |
3185942a | 3715 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
3717 | ||
3185942a | 3718 | |
0628567a | 3719 | fi |
3185942a JA |
3720 | |
3721 | rm -f core conftest.err conftest.$ac_objext | |
3722 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
0628567a | 3723 | done |
3185942a | 3724 | rm -f conftest.$ac_ext |
0628567a JA |
3725 | CC=$ac_save_CC |
3726 | ||
3727 | fi | |
3185942a JA |
3728 | # AC_CACHE_VAL |
3729 | case "x$ac_cv_prog_cc_c89" in | |
3730 | x) | |
3731 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3732 | $as_echo "none needed" >&6; } ;; | |
3733 | xno) | |
3734 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3735 | $as_echo "unsupported" >&6; } ;; | |
0628567a | 3736 | *) |
3185942a JA |
3737 | CC="$CC $ac_cv_prog_cc_c89" |
3738 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3739 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
0628567a JA |
3740 | esac |
3741 | ||
0628567a | 3742 | |
f73dda09 JA |
3743 | ac_ext=c |
3744 | ac_cpp='$CPP $CPPFLAGS' | |
3745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bb70624e | 3748 | |
f73dda09 | 3749 | |
ccc6cda3 | 3750 | |
b80f6443 | 3751 | |
3185942a JA |
3752 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
3753 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | |
b80f6443 | 3754 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
3185942a | 3755 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 3756 | else |
b80f6443 JA |
3757 | ac_check_lib_save_LIBS=$LIBS |
3758 | LIBS="-lcposix $LIBS" | |
3759 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3760 | /* confdefs.h. */ |
3761 | _ACEOF | |
3762 | cat confdefs.h >>conftest.$ac_ext | |
3763 | cat >>conftest.$ac_ext <<_ACEOF | |
3764 | /* end confdefs.h. */ | |
b80f6443 | 3765 | |
3185942a JA |
3766 | /* Override any GCC internal prototype to avoid an error. |
3767 | Use char because int might match the return type of a GCC | |
3768 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
3769 | #ifdef __cplusplus |
3770 | extern "C" | |
3771 | #endif | |
b80f6443 JA |
3772 | char strerror (); |
3773 | int | |
3774 | main () | |
3775 | { | |
3185942a | 3776 | return strerror (); |
b80f6443 JA |
3777 | ; |
3778 | return 0; | |
3779 | } | |
3780 | _ACEOF | |
3781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
3782 | if { (ac_try="$ac_link" |
3783 | case "(($ac_try" in | |
3784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3785 | *) ac_try_echo=$ac_try;; | |
3786 | esac | |
3787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3788 | $as_echo "$ac_try_echo") >&5 | |
3789 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 3790 | ac_status=$? |
0628567a JA |
3791 | grep -v '^ *+' conftest.er1 >conftest.err |
3792 | rm -f conftest.er1 | |
3793 | cat conftest.err >&5 | |
3185942a JA |
3794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3795 | (exit $ac_status); } && { | |
3796 | test -z "$ac_c_werror_flag" || | |
3797 | test ! -s conftest.err | |
3798 | } && test -s conftest$ac_exeext && { | |
3799 | test "$cross_compiling" = yes || | |
3800 | $as_test_x conftest$ac_exeext | |
3801 | }; then | |
b80f6443 JA |
3802 | ac_cv_lib_cposix_strerror=yes |
3803 | else | |
3185942a | 3804 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3805 | sed 's/^/| /' conftest.$ac_ext >&5 |
3806 | ||
3185942a | 3807 | ac_cv_lib_cposix_strerror=no |
b80f6443 | 3808 | fi |
3185942a JA |
3809 | |
3810 | rm -rf conftest.dSYM | |
3811 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 3812 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
3813 | LIBS=$ac_check_lib_save_LIBS |
3814 | fi | |
3185942a JA |
3815 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
3816 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | |
3817 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then | |
b80f6443 | 3818 | LIBS="$LIBS -lcposix" |
ccc6cda3 JA |
3819 | fi |
3820 | ||
b80f6443 JA |
3821 | |
3822 | ||
f73dda09 JA |
3823 | ac_ext=c |
3824 | ac_cpp='$CPP $CPPFLAGS' | |
3825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3185942a JA |
3828 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3829 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
ccc6cda3 JA |
3830 | # On Suns, sometimes $CPP names a directory. |
3831 | if test -n "$CPP" && test -d "$CPP"; then | |
3832 | CPP= | |
3833 | fi | |
3834 | if test -z "$CPP"; then | |
f73dda09 | 3835 | if test "${ac_cv_prog_CPP+set}" = set; then |
3185942a | 3836 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3837 | else |
3838 | # Double quotes because CPP needs to be expanded | |
3839 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3840 | do | |
3841 | ac_preproc_ok=false | |
3842 | for ac_c_preproc_warn_flag in '' yes | |
3843 | do | |
3844 | # Use a header file that comes with gcc, so configuring glibc | |
3845 | # with a fresh cross-compiler works. | |
0628567a JA |
3846 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3847 | # <limits.h> exists even on freestanding compilers. | |
ccc6cda3 | 3848 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f73dda09 JA |
3849 | # not just through cpp. "Syntax error" is here to catch this case. |
3850 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3851 | /* confdefs.h. */ |
3852 | _ACEOF | |
3853 | cat confdefs.h >>conftest.$ac_ext | |
3854 | cat >>conftest.$ac_ext <<_ACEOF | |
3855 | /* end confdefs.h. */ | |
3856 | #ifdef __STDC__ | |
3857 | # include <limits.h> | |
3858 | #else | |
3859 | # include <assert.h> | |
3860 | #endif | |
3861 | Syntax error | |
f73dda09 | 3862 | _ACEOF |
3185942a JA |
3863 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3864 | case "(($ac_try" in | |
3865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3866 | *) ac_try_echo=$ac_try;; | |
3867 | esac | |
3868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3869 | $as_echo "$ac_try_echo") >&5 | |
3870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3871 | ac_status=$? |
0628567a | 3872 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3873 | rm -f conftest.er1 |
3874 | cat conftest.err >&5 | |
3185942a JA |
3875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3876 | (exit $ac_status); } >/dev/null && { | |
3877 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3878 | test ! -s conftest.err | |
3879 | }; then | |
ccc6cda3 JA |
3880 | : |
3881 | else | |
3185942a | 3882 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
3884 | ||
f73dda09 JA |
3885 | # Broken: fails on valid input. |
3886 | continue | |
3887 | fi | |
3185942a | 3888 | |
f73dda09 JA |
3889 | rm -f conftest.err conftest.$ac_ext |
3890 | ||
3185942a | 3891 | # OK, works on sane cases. Now check whether nonexistent headers |
f73dda09 JA |
3892 | # can be detected and how. |
3893 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3894 | /* confdefs.h. */ |
3895 | _ACEOF | |
3896 | cat confdefs.h >>conftest.$ac_ext | |
3897 | cat >>conftest.$ac_ext <<_ACEOF | |
3898 | /* end confdefs.h. */ | |
f73dda09 JA |
3899 | #include <ac_nonexistent.h> |
3900 | _ACEOF | |
3185942a JA |
3901 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3902 | case "(($ac_try" in | |
3903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3904 | *) ac_try_echo=$ac_try;; | |
3905 | esac | |
3906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3907 | $as_echo "$ac_try_echo") >&5 | |
3908 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3909 | ac_status=$? |
0628567a | 3910 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3911 | rm -f conftest.er1 |
3912 | cat conftest.err >&5 | |
3185942a JA |
3913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3914 | (exit $ac_status); } >/dev/null && { | |
3915 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3916 | test ! -s conftest.err | |
3917 | }; then | |
f73dda09 JA |
3918 | # Broken: success on invalid input. |
3919 | continue | |
bb70624e | 3920 | else |
3185942a | 3921 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
3923 | ||
f73dda09 JA |
3924 | # Passes both tests. |
3925 | ac_preproc_ok=: | |
3926 | break | |
3927 | fi | |
3185942a | 3928 | |
f73dda09 JA |
3929 | rm -f conftest.err conftest.$ac_ext |
3930 | ||
3931 | done | |
3932 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3933 | rm -f conftest.err conftest.$ac_ext | |
3934 | if $ac_preproc_ok; then | |
3935 | break | |
3936 | fi | |
3937 | ||
3938 | done | |
3939 | ac_cv_prog_CPP=$CPP | |
3940 | ||
3941 | fi | |
3942 | CPP=$ac_cv_prog_CPP | |
3943 | else | |
3944 | ac_cv_prog_CPP=$CPP | |
3945 | fi | |
3185942a JA |
3946 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3947 | $as_echo "$CPP" >&6; } | |
f73dda09 JA |
3948 | ac_preproc_ok=false |
3949 | for ac_c_preproc_warn_flag in '' yes | |
3950 | do | |
3951 | # Use a header file that comes with gcc, so configuring glibc | |
3952 | # with a fresh cross-compiler works. | |
0628567a JA |
3953 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3954 | # <limits.h> exists even on freestanding compilers. | |
f73dda09 JA |
3955 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3956 | # not just through cpp. "Syntax error" is here to catch this case. | |
3957 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3958 | /* confdefs.h. */ |
3959 | _ACEOF | |
3960 | cat confdefs.h >>conftest.$ac_ext | |
3961 | cat >>conftest.$ac_ext <<_ACEOF | |
3962 | /* end confdefs.h. */ | |
3963 | #ifdef __STDC__ | |
3964 | # include <limits.h> | |
3965 | #else | |
3966 | # include <assert.h> | |
3967 | #endif | |
3968 | Syntax error | |
f73dda09 | 3969 | _ACEOF |
3185942a JA |
3970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3971 | case "(($ac_try" in | |
3972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3973 | *) ac_try_echo=$ac_try;; | |
3974 | esac | |
3975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3976 | $as_echo "$ac_try_echo") >&5 | |
3977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3978 | ac_status=$? |
0628567a | 3979 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3980 | rm -f conftest.er1 |
3981 | cat conftest.err >&5 | |
3185942a JA |
3982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3983 | (exit $ac_status); } >/dev/null && { | |
3984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3985 | test ! -s conftest.err | |
3986 | }; then | |
ccc6cda3 JA |
3987 | : |
3988 | else | |
3185942a | 3989 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3990 | sed 's/^/| /' conftest.$ac_ext >&5 |
3991 | ||
f73dda09 JA |
3992 | # Broken: fails on valid input. |
3993 | continue | |
3994 | fi | |
3185942a | 3995 | |
f73dda09 JA |
3996 | rm -f conftest.err conftest.$ac_ext |
3997 | ||
3185942a | 3998 | # OK, works on sane cases. Now check whether nonexistent headers |
f73dda09 JA |
3999 | # can be detected and how. |
4000 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4001 | /* confdefs.h. */ |
4002 | _ACEOF | |
4003 | cat confdefs.h >>conftest.$ac_ext | |
4004 | cat >>conftest.$ac_ext <<_ACEOF | |
4005 | /* end confdefs.h. */ | |
f73dda09 JA |
4006 | #include <ac_nonexistent.h> |
4007 | _ACEOF | |
3185942a JA |
4008 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4009 | case "(($ac_try" in | |
4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4011 | *) ac_try_echo=$ac_try;; | |
4012 | esac | |
4013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4014 | $as_echo "$ac_try_echo") >&5 | |
4015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 4016 | ac_status=$? |
0628567a | 4017 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
4018 | rm -f conftest.er1 |
4019 | cat conftest.err >&5 | |
3185942a JA |
4020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4021 | (exit $ac_status); } >/dev/null && { | |
4022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4023 | test ! -s conftest.err | |
4024 | }; then | |
f73dda09 JA |
4025 | # Broken: success on invalid input. |
4026 | continue | |
4027 | else | |
3185942a | 4028 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 |
4030 | ||
f73dda09 JA |
4031 | # Passes both tests. |
4032 | ac_preproc_ok=: | |
4033 | break | |
ccc6cda3 | 4034 | fi |
3185942a | 4035 | |
f73dda09 JA |
4036 | rm -f conftest.err conftest.$ac_ext |
4037 | ||
4038 | done | |
4039 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4040 | rm -f conftest.err conftest.$ac_ext | |
4041 | if $ac_preproc_ok; then | |
4042 | : | |
ccc6cda3 | 4043 | else |
3185942a JA |
4044 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4046 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
0628567a | 4047 | See \`config.log' for more details." >&5 |
3185942a | 4048 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
0628567a | 4049 | See \`config.log' for more details." >&2;} |
3185942a | 4050 | { (exit 1); exit 1; }; }; } |
ccc6cda3 | 4051 | fi |
ccc6cda3 | 4052 | |
f73dda09 JA |
4053 | ac_ext=c |
4054 | ac_cpp='$CPP $CPPFLAGS' | |
4055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4058 | ||
b80f6443 | 4059 | |
3185942a JA |
4060 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4061 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4062 | if test "${ac_cv_path_GREP+set}" = set; then | |
4063 | $as_echo_n "(cached) " >&6 | |
4064 | else | |
4065 | if test -z "$GREP"; then | |
4066 | ac_path_GREP_found=false | |
4067 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4069 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
4073 | for ac_prog in grep ggrep; do | |
4074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4075 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4076 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4077 | # Check for GNU ac_path_GREP and select it if it is found. | |
4078 | # Check for GNU $ac_path_GREP | |
4079 | case `"$ac_path_GREP" --version 2>&1` in | |
4080 | *GNU*) | |
4081 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4082 | *) | |
4083 | ac_count=0 | |
4084 | $as_echo_n 0123456789 >"conftest.in" | |
4085 | while : | |
4086 | do | |
4087 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4088 | mv "conftest.tmp" "conftest.in" | |
4089 | cp "conftest.in" "conftest.nl" | |
4090 | $as_echo 'GREP' >> "conftest.nl" | |
4091 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4092 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4093 | ac_count=`expr $ac_count + 1` | |
4094 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4095 | # Best one so far, save it but keep looking for a better one | |
4096 | ac_cv_path_GREP="$ac_path_GREP" | |
4097 | ac_path_GREP_max=$ac_count | |
4098 | fi | |
4099 | # 10*(2^10) chars as input seems more than enough | |
4100 | test $ac_count -gt 10 && break | |
4101 | done | |
4102 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4103 | esac | |
4104 | ||
4105 | $ac_path_GREP_found && break 3 | |
4106 | done | |
4107 | done | |
4108 | done | |
4109 | IFS=$as_save_IFS | |
4110 | if test -z "$ac_cv_path_GREP"; then | |
4111 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4112 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4113 | { (exit 1); exit 1; }; } | |
4114 | fi | |
4115 | else | |
4116 | ac_cv_path_GREP=$GREP | |
4117 | fi | |
4118 | ||
4119 | fi | |
4120 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4121 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4122 | GREP="$ac_cv_path_GREP" | |
4123 | ||
4124 | ||
4125 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4126 | $as_echo_n "checking for egrep... " >&6; } | |
4127 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4128 | $as_echo_n "(cached) " >&6 | |
0628567a | 4129 | else |
3185942a JA |
4130 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4131 | then ac_cv_path_EGREP="$GREP -E" | |
4132 | else | |
4133 | if test -z "$EGREP"; then | |
4134 | ac_path_EGREP_found=false | |
4135 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4137 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
4141 | for ac_prog in egrep; do | |
4142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4143 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4144 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4145 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4146 | # Check for GNU $ac_path_EGREP | |
4147 | case `"$ac_path_EGREP" --version 2>&1` in | |
4148 | *GNU*) | |
4149 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4150 | *) | |
4151 | ac_count=0 | |
4152 | $as_echo_n 0123456789 >"conftest.in" | |
4153 | while : | |
4154 | do | |
4155 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4156 | mv "conftest.tmp" "conftest.in" | |
4157 | cp "conftest.in" "conftest.nl" | |
4158 | $as_echo 'EGREP' >> "conftest.nl" | |
4159 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4160 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4161 | ac_count=`expr $ac_count + 1` | |
4162 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4163 | # Best one so far, save it but keep looking for a better one | |
4164 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4165 | ac_path_EGREP_max=$ac_count | |
0628567a | 4166 | fi |
3185942a JA |
4167 | # 10*(2^10) chars as input seems more than enough |
4168 | test $ac_count -gt 10 && break | |
4169 | done | |
4170 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4171 | esac | |
4172 | ||
4173 | $ac_path_EGREP_found && break 3 | |
4174 | done | |
4175 | done | |
4176 | done | |
4177 | IFS=$as_save_IFS | |
4178 | if test -z "$ac_cv_path_EGREP"; then | |
4179 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4180 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4181 | { (exit 1); exit 1; }; } | |
4182 | fi | |
4183 | else | |
4184 | ac_cv_path_EGREP=$EGREP | |
0628567a | 4185 | fi |
0628567a | 4186 | |
3185942a JA |
4187 | fi |
4188 | fi | |
4189 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4190 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4191 | EGREP="$ac_cv_path_EGREP" | |
0628567a | 4192 | |
3185942a JA |
4193 | |
4194 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4195 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b80f6443 | 4196 | if test "${ac_cv_header_stdc+set}" = set; then |
3185942a | 4197 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 4198 | else |
f73dda09 | 4199 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4200 | /* confdefs.h. */ |
4201 | _ACEOF | |
4202 | cat confdefs.h >>conftest.$ac_ext | |
4203 | cat >>conftest.$ac_ext <<_ACEOF | |
4204 | /* end confdefs.h. */ | |
b80f6443 JA |
4205 | #include <stdlib.h> |
4206 | #include <stdarg.h> | |
4207 | #include <string.h> | |
4208 | #include <float.h> | |
4209 | ||
0628567a JA |
4210 | int |
4211 | main () | |
4212 | { | |
4213 | ||
4214 | ; | |
4215 | return 0; | |
4216 | } | |
b80f6443 | 4217 | _ACEOF |
0628567a | 4218 | rm -f conftest.$ac_objext |
3185942a JA |
4219 | if { (ac_try="$ac_compile" |
4220 | case "(($ac_try" in | |
4221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4222 | *) ac_try_echo=$ac_try;; | |
4223 | esac | |
4224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4225 | $as_echo "$ac_try_echo") >&5 | |
4226 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4227 | ac_status=$? |
0628567a | 4228 | grep -v '^ *+' conftest.er1 >conftest.err |
95732b49 JA |
4229 | rm -f conftest.er1 |
4230 | cat conftest.err >&5 | |
3185942a JA |
4231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4232 | (exit $ac_status); } && { | |
4233 | test -z "$ac_c_werror_flag" || | |
4234 | test ! -s conftest.err | |
4235 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4236 | ac_cv_header_stdc=yes |
4237 | else | |
3185942a | 4238 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4239 | sed 's/^/| /' conftest.$ac_ext >&5 |
4240 | ||
3185942a | 4241 | ac_cv_header_stdc=no |
b80f6443 | 4242 | fi |
3185942a JA |
4243 | |
4244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
4245 | |
4246 | if test $ac_cv_header_stdc = yes; then | |
4247 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4248 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4249 | /* confdefs.h. */ |
4250 | _ACEOF | |
4251 | cat confdefs.h >>conftest.$ac_ext | |
4252 | cat >>conftest.$ac_ext <<_ACEOF | |
4253 | /* end confdefs.h. */ | |
b80f6443 JA |
4254 | #include <string.h> |
4255 | ||
4256 | _ACEOF | |
4257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 4258 | $EGREP "memchr" >/dev/null 2>&1; then |
b80f6443 JA |
4259 | : |
4260 | else | |
4261 | ac_cv_header_stdc=no | |
4262 | fi | |
4263 | rm -f conftest* | |
4264 | ||
4265 | fi | |
4266 | ||
4267 | if test $ac_cv_header_stdc = yes; then | |
4268 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4269 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4270 | /* confdefs.h. */ |
4271 | _ACEOF | |
4272 | cat confdefs.h >>conftest.$ac_ext | |
4273 | cat >>conftest.$ac_ext <<_ACEOF | |
4274 | /* end confdefs.h. */ | |
b80f6443 JA |
4275 | #include <stdlib.h> |
4276 | ||
4277 | _ACEOF | |
4278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 4279 | $EGREP "free" >/dev/null 2>&1; then |
b80f6443 JA |
4280 | : |
4281 | else | |
4282 | ac_cv_header_stdc=no | |
4283 | fi | |
4284 | rm -f conftest* | |
4285 | ||
4286 | fi | |
4287 | ||
4288 | if test $ac_cv_header_stdc = yes; then | |
4289 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4290 | if test "$cross_compiling" = yes; then | |
4291 | : | |
4292 | else | |
4293 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4294 | /* confdefs.h. */ |
4295 | _ACEOF | |
4296 | cat confdefs.h >>conftest.$ac_ext | |
4297 | cat >>conftest.$ac_ext <<_ACEOF | |
4298 | /* end confdefs.h. */ | |
b80f6443 | 4299 | #include <ctype.h> |
3185942a | 4300 | #include <stdlib.h> |
b80f6443 JA |
4301 | #if ((' ' & 0x0FF) == 0x020) |
4302 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4303 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4304 | #else | |
0628567a JA |
4305 | # define ISLOWER(c) \ |
4306 | (('a' <= (c) && (c) <= 'i') \ | |
4307 | || ('j' <= (c) && (c) <= 'r') \ | |
4308 | || ('s' <= (c) && (c) <= 'z')) | |
b80f6443 JA |
4309 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4310 | #endif | |
4311 | ||
4312 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4313 | int | |
4314 | main () | |
4315 | { | |
4316 | int i; | |
4317 | for (i = 0; i < 256; i++) | |
4318 | if (XOR (islower (i), ISLOWER (i)) | |
0628567a | 4319 | || toupper (i) != TOUPPER (i)) |
3185942a JA |
4320 | return 2; |
4321 | return 0; | |
b80f6443 JA |
4322 | } |
4323 | _ACEOF | |
4324 | rm -f conftest$ac_exeext | |
3185942a JA |
4325 | if { (ac_try="$ac_link" |
4326 | case "(($ac_try" in | |
4327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4328 | *) ac_try_echo=$ac_try;; | |
4329 | esac | |
4330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4331 | $as_echo "$ac_try_echo") >&5 | |
4332 | (eval "$ac_link") 2>&5 | |
b80f6443 | 4333 | ac_status=$? |
3185942a | 4334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 4335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
4336 | { (case "(($ac_try" in |
4337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4338 | *) ac_try_echo=$ac_try;; | |
4339 | esac | |
4340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4341 | $as_echo "$ac_try_echo") >&5 | |
4342 | (eval "$ac_try") 2>&5 | |
b80f6443 | 4343 | ac_status=$? |
3185942a | 4344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
4345 | (exit $ac_status); }; }; then |
4346 | : | |
4347 | else | |
3185942a JA |
4348 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4349 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
4351 | ||
b80f6443 JA |
4352 | ( exit $ac_status ) |
4353 | ac_cv_header_stdc=no | |
4354 | fi | |
3185942a JA |
4355 | rm -rf conftest.dSYM |
4356 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 4357 | fi |
3185942a JA |
4358 | |
4359 | ||
b80f6443 JA |
4360 | fi |
4361 | fi | |
3185942a JA |
4362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4363 | $as_echo "$ac_cv_header_stdc" >&6; } | |
b80f6443 JA |
4364 | if test $ac_cv_header_stdc = yes; then |
4365 | ||
4366 | cat >>confdefs.h <<\_ACEOF | |
4367 | #define STDC_HEADERS 1 | |
4368 | _ACEOF | |
4369 | ||
4370 | fi | |
4371 | ||
4372 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | ||
4378 | ||
4379 | ||
4380 | ||
4381 | ||
4382 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
0628567a | 4383 | inttypes.h stdint.h unistd.h |
b80f6443 | 4384 | do |
3185942a JA |
4385 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4386 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4387 | $as_echo_n "checking for $ac_header... " >&6; } | |
4388 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4389 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
4390 | else |
4391 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4392 | /* confdefs.h. */ |
4393 | _ACEOF | |
4394 | cat confdefs.h >>conftest.$ac_ext | |
4395 | cat >>conftest.$ac_ext <<_ACEOF | |
4396 | /* end confdefs.h. */ | |
b80f6443 JA |
4397 | $ac_includes_default |
4398 | ||
4399 | #include <$ac_header> | |
4400 | _ACEOF | |
4401 | rm -f conftest.$ac_objext | |
3185942a JA |
4402 | if { (ac_try="$ac_compile" |
4403 | case "(($ac_try" in | |
4404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4405 | *) ac_try_echo=$ac_try;; | |
4406 | esac | |
4407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4408 | $as_echo "$ac_try_echo") >&5 | |
4409 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4410 | ac_status=$? |
0628567a JA |
4411 | grep -v '^ *+' conftest.er1 >conftest.err |
4412 | rm -f conftest.er1 | |
4413 | cat conftest.err >&5 | |
3185942a JA |
4414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4415 | (exit $ac_status); } && { | |
4416 | test -z "$ac_c_werror_flag" || | |
4417 | test ! -s conftest.err | |
4418 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4419 | eval "$as_ac_Header=yes" |
4420 | else | |
3185942a | 4421 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4422 | sed 's/^/| /' conftest.$ac_ext >&5 |
4423 | ||
3185942a | 4424 | eval "$as_ac_Header=no" |
b80f6443 | 4425 | fi |
3185942a JA |
4426 | |
4427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 4428 | fi |
3185942a JA |
4429 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4430 | $as_echo "$as_val"'` | |
4431 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4432 | $as_echo "$ac_res" >&6; } | |
4433 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4434 | $as_echo "$as_val"'` | |
4435 | if test "x$as_val" = x""yes; then | |
b80f6443 | 4436 | cat >>confdefs.h <<_ACEOF |
3185942a | 4437 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
4438 | _ACEOF |
4439 | ||
4440 | fi | |
4441 | ||
4442 | done | |
4443 | ||
4444 | ||
3185942a JA |
4445 | |
4446 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4447 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4448 | $as_echo_n "checking for minix/config.h... " >&6; } | |
b80f6443 | 4449 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3185942a | 4450 | $as_echo_n "(cached) " >&6 |
b80f6443 | 4451 | fi |
3185942a JA |
4452 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4453 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
b80f6443 JA |
4454 | else |
4455 | # Is the header compilable? | |
3185942a JA |
4456 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4457 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
b80f6443 | 4458 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4459 | /* confdefs.h. */ |
4460 | _ACEOF | |
4461 | cat confdefs.h >>conftest.$ac_ext | |
4462 | cat >>conftest.$ac_ext <<_ACEOF | |
4463 | /* end confdefs.h. */ | |
b80f6443 JA |
4464 | $ac_includes_default |
4465 | #include <minix/config.h> | |
4466 | _ACEOF | |
4467 | rm -f conftest.$ac_objext | |
3185942a JA |
4468 | if { (ac_try="$ac_compile" |
4469 | case "(($ac_try" in | |
4470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4471 | *) ac_try_echo=$ac_try;; | |
4472 | esac | |
4473 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4474 | $as_echo "$ac_try_echo") >&5 | |
4475 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4476 | ac_status=$? |
0628567a JA |
4477 | grep -v '^ *+' conftest.er1 >conftest.err |
4478 | rm -f conftest.er1 | |
4479 | cat conftest.err >&5 | |
3185942a JA |
4480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4481 | (exit $ac_status); } && { | |
4482 | test -z "$ac_c_werror_flag" || | |
4483 | test ! -s conftest.err | |
4484 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4485 | ac_header_compiler=yes |
4486 | else | |
3185942a | 4487 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4488 | sed 's/^/| /' conftest.$ac_ext >&5 |
4489 | ||
3185942a | 4490 | ac_header_compiler=no |
b80f6443 | 4491 | fi |
3185942a JA |
4492 | |
4493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4494 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4495 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
4496 | |
4497 | # Is the header present? | |
3185942a JA |
4498 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4499 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
b80f6443 | 4500 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4501 | /* confdefs.h. */ |
4502 | _ACEOF | |
4503 | cat confdefs.h >>conftest.$ac_ext | |
4504 | cat >>conftest.$ac_ext <<_ACEOF | |
4505 | /* end confdefs.h. */ | |
b80f6443 JA |
4506 | #include <minix/config.h> |
4507 | _ACEOF | |
3185942a JA |
4508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4509 | case "(($ac_try" in | |
4510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4511 | *) ac_try_echo=$ac_try;; | |
4512 | esac | |
4513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4514 | $as_echo "$ac_try_echo") >&5 | |
4515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 4516 | ac_status=$? |
0628567a | 4517 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
4518 | rm -f conftest.er1 |
4519 | cat conftest.err >&5 | |
3185942a JA |
4520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4521 | (exit $ac_status); } >/dev/null && { | |
4522 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4523 | test ! -s conftest.err | |
4524 | }; then | |
b80f6443 | 4525 | ac_header_preproc=yes |
ccc6cda3 | 4526 | else |
3185942a | 4527 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4528 | sed 's/^/| /' conftest.$ac_ext >&5 |
4529 | ||
b80f6443 | 4530 | ac_header_preproc=no |
ccc6cda3 | 4531 | fi |
3185942a | 4532 | |
f73dda09 | 4533 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
4534 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4535 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
4536 | |
4537 | # So? What about this header? | |
0628567a JA |
4538 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4539 | yes:no: ) | |
3185942a JA |
4540 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4541 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4542 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4543 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
0628567a JA |
4544 | ac_header_preproc=yes |
4545 | ;; | |
4546 | no:yes:* ) | |
3185942a JA |
4547 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4548 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4549 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4550 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4551 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4552 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4553 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4554 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4555 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4556 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4557 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4558 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4559 | ( cat <<\_ASBOX | |
0628567a JA |
4560 | ## ------------------------------- ## |
4561 | ## Report this to bug-bash@gnu.org ## | |
4562 | ## ------------------------------- ## | |
4563 | _ASBOX | |
3185942a | 4564 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 4565 | ;; |
b80f6443 | 4566 | esac |
3185942a JA |
4567 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4568 | $as_echo_n "checking for minix/config.h... " >&6; } | |
b80f6443 | 4569 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3185942a | 4570 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
4571 | else |
4572 | ac_cv_header_minix_config_h=$ac_header_preproc | |
ccc6cda3 | 4573 | fi |
3185942a JA |
4574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4575 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
b80f6443 JA |
4576 | |
4577 | fi | |
3185942a | 4578 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
ccc6cda3 JA |
4579 | MINIX=yes |
4580 | else | |
f73dda09 | 4581 | MINIX= |
ccc6cda3 JA |
4582 | fi |
4583 | ||
b80f6443 | 4584 | |
3185942a | 4585 | if test "$MINIX" = yes; then |
f73dda09 | 4586 | |
b80f6443 | 4587 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4588 | #define _POSIX_SOURCE 1 |
b80f6443 JA |
4589 | _ACEOF |
4590 | ||
ccc6cda3 | 4591 | |
b80f6443 | 4592 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4593 | #define _POSIX_1_SOURCE 2 |
b80f6443 JA |
4594 | _ACEOF |
4595 | ||
ccc6cda3 | 4596 | |
b80f6443 | 4597 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4598 | #define _MINIX 1 |
b80f6443 | 4599 | _ACEOF |
ccc6cda3 | 4600 | |
3185942a | 4601 | fi |
ccc6cda3 | 4602 | |
b80f6443 | 4603 | |
3185942a JA |
4604 | |
4605 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4606 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4607 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4608 | $as_echo_n "(cached) " >&6 | |
4609 | else | |
4610 | cat >conftest.$ac_ext <<_ACEOF | |
4611 | /* confdefs.h. */ | |
4612 | _ACEOF | |
4613 | cat confdefs.h >>conftest.$ac_ext | |
4614 | cat >>conftest.$ac_ext <<_ACEOF | |
4615 | /* end confdefs.h. */ | |
4616 | ||
4617 | # define __EXTENSIONS__ 1 | |
4618 | $ac_includes_default | |
4619 | int | |
4620 | main () | |
4621 | { | |
4622 | ||
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
4627 | rm -f conftest.$ac_objext | |
4628 | if { (ac_try="$ac_compile" | |
4629 | case "(($ac_try" in | |
4630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4631 | *) ac_try_echo=$ac_try;; | |
4632 | esac | |
4633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4634 | $as_echo "$ac_try_echo") >&5 | |
4635 | (eval "$ac_compile") 2>conftest.er1 | |
4636 | ac_status=$? | |
4637 | grep -v '^ *+' conftest.er1 >conftest.err | |
4638 | rm -f conftest.er1 | |
4639 | cat conftest.err >&5 | |
4640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); } && { | |
4642 | test -z "$ac_c_werror_flag" || | |
4643 | test ! -s conftest.err | |
4644 | } && test -s conftest.$ac_objext; then | |
4645 | ac_cv_safe_to_define___extensions__=yes | |
4646 | else | |
4647 | $as_echo "$as_me: failed program was:" >&5 | |
4648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4649 | ||
4650 | ac_cv_safe_to_define___extensions__=no | |
4651 | fi | |
4652 | ||
4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4654 | fi | |
4655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4656 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4657 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4658 | cat >>confdefs.h <<\_ACEOF | |
4659 | #define __EXTENSIONS__ 1 | |
4660 | _ACEOF | |
4661 | ||
4662 | cat >>confdefs.h <<\_ACEOF | |
4663 | #define _ALL_SOURCE 1 | |
4664 | _ACEOF | |
4665 | ||
4666 | cat >>confdefs.h <<\_ACEOF | |
4667 | #define _GNU_SOURCE 1 | |
4668 | _ACEOF | |
4669 | ||
4670 | cat >>confdefs.h <<\_ACEOF | |
4671 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4672 | _ACEOF | |
4673 | ||
4674 | cat >>confdefs.h <<\_ACEOF | |
4675 | #define _TANDEM_SOURCE 1 | |
4676 | _ACEOF | |
4677 | ||
4678 | ||
4679 | ||
4680 | # Check whether --enable-largefile was given. | |
f73dda09 | 4681 | if test "${enable_largefile+set}" = set; then |
3185942a JA |
4682 | enableval=$enable_largefile; |
4683 | fi | |
f73dda09 | 4684 | |
f73dda09 | 4685 | if test "$enable_largefile" != no; then |
ccc6cda3 | 4686 | |
3185942a JA |
4687 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
4688 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
f73dda09 | 4689 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
3185942a | 4690 | $as_echo_n "(cached) " >&6 |
bb70624e | 4691 | else |
f73dda09 JA |
4692 | ac_cv_sys_largefile_CC=no |
4693 | if test "$GCC" != yes; then | |
4694 | ac_save_CC=$CC | |
4695 | while :; do | |
3185942a JA |
4696 | # IRIX 6.2 and later do not support large files by default, |
4697 | # so use the C compiler's -n32 option if that helps. | |
0628567a JA |
4698 | cat >conftest.$ac_ext <<_ACEOF |
4699 | /* confdefs.h. */ | |
4700 | _ACEOF | |
4701 | cat confdefs.h >>conftest.$ac_ext | |
4702 | cat >>conftest.$ac_ext <<_ACEOF | |
4703 | /* end confdefs.h. */ | |
f73dda09 JA |
4704 | #include <sys/types.h> |
4705 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4706 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4707 | since some C++ compilers masquerading as C compilers | |
4708 | incorrectly reject 9223372036854775807. */ | |
4709 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4710 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4711 | && LARGE_OFF_T % 2147483647 == 1) | |
4712 | ? 1 : -1]; | |
4713 | int | |
4714 | main () | |
4715 | { | |
bb70624e | 4716 | |
f73dda09 JA |
4717 | ; |
4718 | return 0; | |
4719 | } | |
4720 | _ACEOF | |
3185942a JA |
4721 | rm -f conftest.$ac_objext |
4722 | if { (ac_try="$ac_compile" | |
4723 | case "(($ac_try" in | |
4724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4725 | *) ac_try_echo=$ac_try;; | |
4726 | esac | |
4727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4728 | $as_echo "$ac_try_echo") >&5 | |
4729 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4730 | ac_status=$? |
0628567a JA |
4731 | grep -v '^ *+' conftest.er1 >conftest.err |
4732 | rm -f conftest.er1 | |
4733 | cat conftest.err >&5 | |
3185942a JA |
4734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4735 | (exit $ac_status); } && { | |
4736 | test -z "$ac_c_werror_flag" || | |
4737 | test ! -s conftest.err | |
4738 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 4739 | break |
bb70624e | 4740 | else |
3185942a | 4741 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4742 | sed 's/^/| /' conftest.$ac_ext >&5 |
4743 | ||
3185942a | 4744 | |
f73dda09 | 4745 | fi |
3185942a JA |
4746 | |
4747 | rm -f core conftest.err conftest.$ac_objext | |
4748 | CC="$CC -n32" | |
4749 | rm -f conftest.$ac_objext | |
4750 | if { (ac_try="$ac_compile" | |
4751 | case "(($ac_try" in | |
4752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4753 | *) ac_try_echo=$ac_try;; | |
4754 | esac | |
4755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4756 | $as_echo "$ac_try_echo") >&5 | |
4757 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4758 | ac_status=$? |
0628567a JA |
4759 | grep -v '^ *+' conftest.er1 >conftest.err |
4760 | rm -f conftest.er1 | |
4761 | cat conftest.err >&5 | |
3185942a JA |
4762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4763 | (exit $ac_status); } && { | |
4764 | test -z "$ac_c_werror_flag" || | |
4765 | test ! -s conftest.err | |
4766 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
4767 | ac_cv_sys_largefile_CC=' -n32'; break |
4768 | else | |
3185942a | 4769 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4770 | sed 's/^/| /' conftest.$ac_ext >&5 |
4771 | ||
3185942a | 4772 | |
f73dda09 | 4773 | fi |
3185942a JA |
4774 | |
4775 | rm -f core conftest.err conftest.$ac_objext | |
0628567a | 4776 | break |
f73dda09 JA |
4777 | done |
4778 | CC=$ac_save_CC | |
4779 | rm -f conftest.$ac_ext | |
4780 | fi | |
bb70624e | 4781 | fi |
3185942a JA |
4782 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
4783 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
f73dda09 JA |
4784 | if test "$ac_cv_sys_largefile_CC" != no; then |
4785 | CC=$CC$ac_cv_sys_largefile_CC | |
4786 | fi | |
bb70624e | 4787 | |
3185942a JA |
4788 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4789 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
f73dda09 | 4790 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
3185942a | 4791 | $as_echo_n "(cached) " >&6 |
bb70624e | 4792 | else |
f73dda09 | 4793 | while :; do |
f73dda09 | 4794 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4795 | /* confdefs.h. */ |
4796 | _ACEOF | |
4797 | cat confdefs.h >>conftest.$ac_ext | |
4798 | cat >>conftest.$ac_ext <<_ACEOF | |
4799 | /* end confdefs.h. */ | |
f73dda09 JA |
4800 | #include <sys/types.h> |
4801 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4802 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4803 | since some C++ compilers masquerading as C compilers | |
4804 | incorrectly reject 9223372036854775807. */ | |
4805 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4806 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4807 | && LARGE_OFF_T % 2147483647 == 1) | |
4808 | ? 1 : -1]; | |
4809 | int | |
4810 | main () | |
4811 | { | |
bb70624e | 4812 | |
f73dda09 JA |
4813 | ; |
4814 | return 0; | |
4815 | } | |
4816 | _ACEOF | |
4817 | rm -f conftest.$ac_objext | |
3185942a JA |
4818 | if { (ac_try="$ac_compile" |
4819 | case "(($ac_try" in | |
4820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4821 | *) ac_try_echo=$ac_try;; | |
4822 | esac | |
4823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4824 | $as_echo "$ac_try_echo") >&5 | |
4825 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4826 | ac_status=$? |
0628567a JA |
4827 | grep -v '^ *+' conftest.er1 >conftest.err |
4828 | rm -f conftest.er1 | |
4829 | cat conftest.err >&5 | |
3185942a JA |
4830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4831 | (exit $ac_status); } && { | |
4832 | test -z "$ac_c_werror_flag" || | |
4833 | test ! -s conftest.err | |
4834 | } && test -s conftest.$ac_objext; then | |
4835 | ac_cv_sys_file_offset_bits=no; break | |
bb70624e | 4836 | else |
3185942a | 4837 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4838 | sed 's/^/| /' conftest.$ac_ext >&5 |
4839 | ||
3185942a | 4840 | |
bb70624e | 4841 | fi |
3185942a JA |
4842 | |
4843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 4844 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4845 | /* confdefs.h. */ |
4846 | _ACEOF | |
4847 | cat confdefs.h >>conftest.$ac_ext | |
4848 | cat >>conftest.$ac_ext <<_ACEOF | |
4849 | /* end confdefs.h. */ | |
f73dda09 JA |
4850 | #define _FILE_OFFSET_BITS 64 |
4851 | #include <sys/types.h> | |
4852 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4853 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4854 | since some C++ compilers masquerading as C compilers | |
4855 | incorrectly reject 9223372036854775807. */ | |
4856 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4857 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4858 | && LARGE_OFF_T % 2147483647 == 1) | |
4859 | ? 1 : -1]; | |
4860 | int | |
4861 | main () | |
4862 | { | |
bb70624e | 4863 | |
f73dda09 JA |
4864 | ; |
4865 | return 0; | |
4866 | } | |
4867 | _ACEOF | |
4868 | rm -f conftest.$ac_objext | |
3185942a JA |
4869 | if { (ac_try="$ac_compile" |
4870 | case "(($ac_try" in | |
4871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4872 | *) ac_try_echo=$ac_try;; | |
4873 | esac | |
4874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4875 | $as_echo "$ac_try_echo") >&5 | |
4876 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4877 | ac_status=$? |
0628567a JA |
4878 | grep -v '^ *+' conftest.er1 >conftest.err |
4879 | rm -f conftest.er1 | |
4880 | cat conftest.err >&5 | |
3185942a JA |
4881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4882 | (exit $ac_status); } && { | |
4883 | test -z "$ac_c_werror_flag" || | |
4884 | test ! -s conftest.err | |
4885 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
4886 | ac_cv_sys_file_offset_bits=64; break |
4887 | else | |
3185942a | 4888 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4889 | sed 's/^/| /' conftest.$ac_ext >&5 |
4890 | ||
3185942a | 4891 | |
f73dda09 | 4892 | fi |
3185942a JA |
4893 | |
4894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4895 | ac_cv_sys_file_offset_bits=unknown | |
f73dda09 JA |
4896 | break |
4897 | done | |
4898 | fi | |
3185942a JA |
4899 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
4900 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4901 | case $ac_cv_sys_file_offset_bits in #( | |
4902 | no | unknown) ;; | |
4903 | *) | |
b80f6443 | 4904 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 4905 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
b80f6443 | 4906 | _ACEOF |
3185942a JA |
4907 | ;; |
4908 | esac | |
4909 | rm -rf conftest* | |
4910 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4911 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4912 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
f73dda09 | 4913 | if test "${ac_cv_sys_large_files+set}" = set; then |
3185942a | 4914 | $as_echo_n "(cached) " >&6 |
bb70624e | 4915 | else |
f73dda09 | 4916 | while :; do |
f73dda09 | 4917 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4918 | /* confdefs.h. */ |
4919 | _ACEOF | |
4920 | cat confdefs.h >>conftest.$ac_ext | |
4921 | cat >>conftest.$ac_ext <<_ACEOF | |
4922 | /* end confdefs.h. */ | |
f73dda09 JA |
4923 | #include <sys/types.h> |
4924 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4925 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4926 | since some C++ compilers masquerading as C compilers | |
4927 | incorrectly reject 9223372036854775807. */ | |
4928 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4929 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4930 | && LARGE_OFF_T % 2147483647 == 1) | |
4931 | ? 1 : -1]; | |
4932 | int | |
4933 | main () | |
4934 | { | |
4935 | ||
4936 | ; | |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
4940 | rm -f conftest.$ac_objext | |
3185942a JA |
4941 | if { (ac_try="$ac_compile" |
4942 | case "(($ac_try" in | |
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4944 | *) ac_try_echo=$ac_try;; | |
4945 | esac | |
4946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4947 | $as_echo "$ac_try_echo") >&5 | |
4948 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4949 | ac_status=$? |
0628567a JA |
4950 | grep -v '^ *+' conftest.er1 >conftest.err |
4951 | rm -f conftest.er1 | |
4952 | cat conftest.err >&5 | |
3185942a JA |
4953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4954 | (exit $ac_status); } && { | |
4955 | test -z "$ac_c_werror_flag" || | |
4956 | test ! -s conftest.err | |
4957 | } && test -s conftest.$ac_objext; then | |
4958 | ac_cv_sys_large_files=no; break | |
bb70624e | 4959 | else |
3185942a | 4960 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
4962 | ||
3185942a | 4963 | |
bb70624e | 4964 | fi |
3185942a JA |
4965 | |
4966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 4967 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4968 | /* confdefs.h. */ |
4969 | _ACEOF | |
4970 | cat confdefs.h >>conftest.$ac_ext | |
4971 | cat >>conftest.$ac_ext <<_ACEOF | |
4972 | /* end confdefs.h. */ | |
f73dda09 JA |
4973 | #define _LARGE_FILES 1 |
4974 | #include <sys/types.h> | |
4975 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4976 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4977 | since some C++ compilers masquerading as C compilers | |
4978 | incorrectly reject 9223372036854775807. */ | |
4979 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4980 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4981 | && LARGE_OFF_T % 2147483647 == 1) | |
4982 | ? 1 : -1]; | |
4983 | int | |
4984 | main () | |
4985 | { | |
bb70624e | 4986 | |
f73dda09 JA |
4987 | ; |
4988 | return 0; | |
4989 | } | |
4990 | _ACEOF | |
4991 | rm -f conftest.$ac_objext | |
3185942a JA |
4992 | if { (ac_try="$ac_compile" |
4993 | case "(($ac_try" in | |
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4995 | *) ac_try_echo=$ac_try;; | |
4996 | esac | |
4997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4998 | $as_echo "$ac_try_echo") >&5 | |
4999 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 5000 | ac_status=$? |
0628567a JA |
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
5002 | rm -f conftest.er1 | |
5003 | cat conftest.err >&5 | |
3185942a JA |
5004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5005 | (exit $ac_status); } && { | |
5006 | test -z "$ac_c_werror_flag" || | |
5007 | test ! -s conftest.err | |
5008 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
5009 | ac_cv_sys_large_files=1; break |
5010 | else | |
3185942a | 5011 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5012 | sed 's/^/| /' conftest.$ac_ext >&5 |
5013 | ||
3185942a | 5014 | |
f73dda09 | 5015 | fi |
3185942a JA |
5016 | |
5017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5018 | ac_cv_sys_large_files=unknown | |
f73dda09 JA |
5019 | break |
5020 | done | |
5021 | fi | |
3185942a JA |
5022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5023 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5024 | case $ac_cv_sys_large_files in #( | |
5025 | no | unknown) ;; | |
5026 | *) | |
b80f6443 | 5027 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 5028 | #define _LARGE_FILES $ac_cv_sys_large_files |
b80f6443 | 5029 | _ACEOF |
3185942a JA |
5030 | ;; |
5031 | esac | |
5032 | rm -rf conftest* | |
5033 | fi | |
f73dda09 | 5034 | fi |
cce855bc | 5035 | |
b80f6443 JA |
5036 | |
5037 | ||
0628567a | 5038 | SIGNAMES_O= |
b72432fd JA |
5039 | SIGNAMES_H=lsignames.h |
5040 | ||
b80f6443 JA |
5041 | |
5042 | ||
0628567a | 5043 | CROSS_COMPILE= |
cce855bc JA |
5044 | if test "x$cross_compiling" = "xyes"; then |
5045 | case "${host}" in | |
28ef6c31 | 5046 | *-cygwin*) |
cce855bc | 5047 | cross_cache=${srcdir}/cross-build/cygwin32.cache |
cce855bc | 5048 | ;; |
95732b49 JA |
5049 | *-mingw*) |
5050 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
5051 | ;; | |
b72432fd JA |
5052 | i[3456]86-*-beos*) |
5053 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
b72432fd JA |
5054 | ;; |
5055 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
cce855bc JA |
5056 | ;; |
5057 | esac | |
b72432fd JA |
5058 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then |
5059 | echo "loading cross-build cache file ${cross_cache}" | |
5060 | . ${cross_cache} | |
5061 | fi | |
5062 | unset cross_cache | |
0628567a | 5063 | SIGNAMES_O='signames.o' |
95732b49 JA |
5064 | CROSS_COMPILE='-DCROSS_COMPILING' |
5065 | ||
cce855bc JA |
5066 | fi |
5067 | ||
b80f6443 | 5068 | |
0628567a | 5069 | |
cce855bc JA |
5070 | if test -z "$CC_FOR_BUILD"; then |
5071 | if test "x$cross_compiling" = "xno"; then | |
5072 | CC_FOR_BUILD='$(CC)' | |
5073 | else | |
5074 | CC_FOR_BUILD=gcc | |
5075 | fi | |
5076 | fi | |
5077 | ||
b80f6443 JA |
5078 | |
5079 | ||
ccc6cda3 JA |
5080 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 |
5081 | ||
5082 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2" | |
5083 | ||
cce855bc JA |
5084 | if test "$opt_profiling" = "yes"; then |
5085 | PROFILE_FLAGS=-pg | |
b72432fd JA |
5086 | case "$host_os" in |
5087 | solaris2*) ;; | |
5088 | *) opt_static_link=yes ;; | |
5089 | esac | |
7117c2d2 | 5090 | DEBUG= MALLOC_DEBUG= |
cce855bc JA |
5091 | fi |
5092 | ||
5093 | if test "$opt_static_link" = yes; then | |
f73dda09 JA |
5094 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 |
5095 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then | |
b72432fd | 5096 | STATIC_LD="-static" |
f73dda09 JA |
5097 | case "$host_os" in |
5098 | solaris2*) ;; | |
5099 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental | |
5100 | esac | |
cce855bc JA |
5101 | fi |
5102 | fi | |
5103 | ||
b80f6443 JA |
5104 | if test "X$cross_compiling" = "Xno"; then |
5105 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} | |
5106 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} | |
5107 | else | |
5108 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} | |
5109 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} | |
5110 | fi | |
5111 | ||
7117c2d2 JA |
5112 | test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g" |
5113 | ||
b80f6443 JA |
5114 | |
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
5120 | ||
5121 | ||
5122 | ||
f73dda09 | 5123 | if test $ac_cv_c_compiler_gnu = yes; then |
3185942a JA |
5124 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5125 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
f73dda09 | 5126 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3185942a | 5127 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
5128 | else |
5129 | ac_pattern="Autoconf.*'x'" | |
f73dda09 | 5130 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5131 | /* confdefs.h. */ |
5132 | _ACEOF | |
5133 | cat confdefs.h >>conftest.$ac_ext | |
5134 | cat >>conftest.$ac_ext <<_ACEOF | |
5135 | /* end confdefs.h. */ | |
ccc6cda3 JA |
5136 | #include <sgtty.h> |
5137 | Autoconf TIOCGETP | |
f73dda09 | 5138 | _ACEOF |
ccc6cda3 | 5139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 5140 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
5141 | ac_cv_prog_gcc_traditional=yes |
5142 | else | |
ccc6cda3 JA |
5143 | ac_cv_prog_gcc_traditional=no |
5144 | fi | |
5145 | rm -f conftest* | |
5146 | ||
b80f6443 | 5147 | |
ccc6cda3 | 5148 | if test $ac_cv_prog_gcc_traditional = no; then |
f73dda09 | 5149 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5150 | /* confdefs.h. */ |
5151 | _ACEOF | |
5152 | cat confdefs.h >>conftest.$ac_ext | |
5153 | cat >>conftest.$ac_ext <<_ACEOF | |
5154 | /* end confdefs.h. */ | |
ccc6cda3 JA |
5155 | #include <termio.h> |
5156 | Autoconf TCGETA | |
f73dda09 | 5157 | _ACEOF |
ccc6cda3 | 5158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 5159 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
5160 | ac_cv_prog_gcc_traditional=yes |
5161 | fi | |
5162 | rm -f conftest* | |
5163 | ||
5164 | fi | |
5165 | fi | |
3185942a JA |
5166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5167 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
ccc6cda3 JA |
5168 | if test $ac_cv_prog_gcc_traditional = yes; then |
5169 | CC="$CC -traditional" | |
5170 | fi | |
5171 | fi | |
5172 | ||
b80f6443 JA |
5173 | |
5174 | ||
f73dda09 | 5175 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" |
b72432fd | 5176 | then |
f73dda09 JA |
5177 | # If the user specified --with-installed-readline=PREFIX and PREFIX |
5178 | # is not `yes', set ac_cv_rl_prefix to PREFIX | |
5179 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline | |
b72432fd | 5180 | |
b80f6443 | 5181 | |
bb70624e JA |
5182 | if test "X$bash_cv_termcap_lib" = "X"; then |
5183 | _bash_needmsg=yes | |
5184 | else | |
3185942a JA |
5185 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5186 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
bb70624e JA |
5187 | _bash_needmsg= |
5188 | fi | |
f73dda09 | 5189 | if test "${bash_cv_termcap_lib+set}" = set; then |
3185942a | 5190 | $as_echo_n "(cached) " >&6 |
bb70624e | 5191 | else |
3185942a JA |
5192 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
5193 | $as_echo_n "checking for tgetent... " >&6; } | |
b80f6443 | 5194 | if test "${ac_cv_func_tgetent+set}" = set; then |
3185942a | 5195 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
5196 | else |
5197 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5198 | /* confdefs.h. */ |
5199 | _ACEOF | |
5200 | cat confdefs.h >>conftest.$ac_ext | |
5201 | cat >>conftest.$ac_ext <<_ACEOF | |
5202 | /* end confdefs.h. */ | |
5203 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
5204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5205 | #define tgetent innocuous_tgetent | |
5206 | ||
b80f6443 | 5207 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
5208 | which can conflict with char tgetent (); below. |
5209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5210 | <limits.h> exists even on freestanding compilers. */ | |
5211 | ||
5212 | #ifdef __STDC__ | |
5213 | # include <limits.h> | |
5214 | #else | |
5215 | # include <assert.h> | |
5216 | #endif | |
5217 | ||
5218 | #undef tgetent | |
5219 | ||
3185942a JA |
5220 | /* Override any GCC internal prototype to avoid an error. |
5221 | Use char because int might match the return type of a GCC | |
5222 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
5223 | #ifdef __cplusplus |
5224 | extern "C" | |
b80f6443 | 5225 | #endif |
b80f6443 JA |
5226 | char tgetent (); |
5227 | /* The GNU C library defines this for functions which it implements | |
5228 | to always fail with ENOSYS. Some functions are actually named | |
5229 | something starting with __ and the normal name is an alias. */ | |
3185942a | 5230 | #if defined __stub_tgetent || defined __stub___tgetent |
b80f6443 | 5231 | choke me |
b80f6443 JA |
5232 | #endif |
5233 | ||
0628567a JA |
5234 | int |
5235 | main () | |
5236 | { | |
3185942a | 5237 | return tgetent (); |
b80f6443 JA |
5238 | ; |
5239 | return 0; | |
5240 | } | |
5241 | _ACEOF | |
5242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5243 | if { (ac_try="$ac_link" |
5244 | case "(($ac_try" in | |
5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5246 | *) ac_try_echo=$ac_try;; | |
5247 | esac | |
5248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5249 | $as_echo "$ac_try_echo") >&5 | |
5250 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 5251 | ac_status=$? |
0628567a JA |
5252 | grep -v '^ *+' conftest.er1 >conftest.err |
5253 | rm -f conftest.er1 | |
5254 | cat conftest.err >&5 | |
3185942a JA |
5255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5256 | (exit $ac_status); } && { | |
5257 | test -z "$ac_c_werror_flag" || | |
5258 | test ! -s conftest.err | |
5259 | } && test -s conftest$ac_exeext && { | |
5260 | test "$cross_compiling" = yes || | |
5261 | $as_test_x conftest$ac_exeext | |
5262 | }; then | |
b80f6443 JA |
5263 | ac_cv_func_tgetent=yes |
5264 | else | |
3185942a | 5265 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
5267 | ||
3185942a | 5268 | ac_cv_func_tgetent=no |
b80f6443 | 5269 | fi |
3185942a JA |
5270 | |
5271 | rm -rf conftest.dSYM | |
5272 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5273 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 5274 | fi |
3185942a JA |
5275 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
5276 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
5277 | if test "x$ac_cv_func_tgetent" = x""yes; then | |
b80f6443 JA |
5278 | bash_cv_termcap_lib=libc |
5279 | else | |
3185942a JA |
5280 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5281 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
f73dda09 | 5282 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
3185942a | 5283 | $as_echo_n "(cached) " >&6 |
bb70624e | 5284 | else |
f73dda09 | 5285 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 5286 | LIBS="-ltermcap $LIBS" |
f73dda09 | 5287 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5288 | /* confdefs.h. */ |
5289 | _ACEOF | |
5290 | cat confdefs.h >>conftest.$ac_ext | |
5291 | cat >>conftest.$ac_ext <<_ACEOF | |
5292 | /* end confdefs.h. */ | |
f73dda09 | 5293 | |
3185942a JA |
5294 | /* Override any GCC internal prototype to avoid an error. |
5295 | Use char because int might match the return type of a GCC | |
5296 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5297 | #ifdef __cplusplus |
5298 | extern "C" | |
5299 | #endif | |
f73dda09 JA |
5300 | char tgetent (); |
5301 | int | |
5302 | main () | |
5303 | { | |
3185942a | 5304 | return tgetent (); |
f73dda09 JA |
5305 | ; |
5306 | return 0; | |
5307 | } | |
5308 | _ACEOF | |
5309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5310 | if { (ac_try="$ac_link" |
5311 | case "(($ac_try" in | |
5312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5313 | *) ac_try_echo=$ac_try;; | |
5314 | esac | |
5315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5316 | $as_echo "$ac_try_echo") >&5 | |
5317 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5318 | ac_status=$? |
0628567a JA |
5319 | grep -v '^ *+' conftest.er1 >conftest.err |
5320 | rm -f conftest.er1 | |
5321 | cat conftest.err >&5 | |
3185942a JA |
5322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5323 | (exit $ac_status); } && { | |
5324 | test -z "$ac_c_werror_flag" || | |
5325 | test ! -s conftest.err | |
5326 | } && test -s conftest$ac_exeext && { | |
5327 | test "$cross_compiling" = yes || | |
5328 | $as_test_x conftest$ac_exeext | |
5329 | }; then | |
f73dda09 JA |
5330 | ac_cv_lib_termcap_tgetent=yes |
5331 | else | |
3185942a | 5332 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5333 | sed 's/^/| /' conftest.$ac_ext >&5 |
5334 | ||
3185942a | 5335 | ac_cv_lib_termcap_tgetent=no |
f73dda09 | 5336 | fi |
3185942a JA |
5337 | |
5338 | rm -rf conftest.dSYM | |
5339 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5340 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5341 | LIBS=$ac_check_lib_save_LIBS |
5342 | fi | |
3185942a JA |
5343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5344 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5345 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then | |
bb70624e JA |
5346 | bash_cv_termcap_lib=libtermcap |
5347 | else | |
3185942a JA |
5348 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
5349 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
f73dda09 | 5350 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
3185942a | 5351 | $as_echo_n "(cached) " >&6 |
bb70624e | 5352 | else |
f73dda09 JA |
5353 | ac_check_lib_save_LIBS=$LIBS |
5354 | LIBS="-ltinfo $LIBS" | |
5355 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5356 | /* confdefs.h. */ |
5357 | _ACEOF | |
5358 | cat confdefs.h >>conftest.$ac_ext | |
5359 | cat >>conftest.$ac_ext <<_ACEOF | |
5360 | /* end confdefs.h. */ | |
f73dda09 | 5361 | |
3185942a JA |
5362 | /* Override any GCC internal prototype to avoid an error. |
5363 | Use char because int might match the return type of a GCC | |
5364 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5365 | #ifdef __cplusplus |
5366 | extern "C" | |
5367 | #endif | |
f73dda09 JA |
5368 | char tgetent (); |
5369 | int | |
5370 | main () | |
5371 | { | |
3185942a | 5372 | return tgetent (); |
f73dda09 JA |
5373 | ; |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5378 | if { (ac_try="$ac_link" |
5379 | case "(($ac_try" in | |
5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5381 | *) ac_try_echo=$ac_try;; | |
5382 | esac | |
5383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5384 | $as_echo "$ac_try_echo") >&5 | |
5385 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5386 | ac_status=$? |
0628567a JA |
5387 | grep -v '^ *+' conftest.er1 >conftest.err |
5388 | rm -f conftest.er1 | |
5389 | cat conftest.err >&5 | |
3185942a JA |
5390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5391 | (exit $ac_status); } && { | |
5392 | test -z "$ac_c_werror_flag" || | |
5393 | test ! -s conftest.err | |
5394 | } && test -s conftest$ac_exeext && { | |
5395 | test "$cross_compiling" = yes || | |
5396 | $as_test_x conftest$ac_exeext | |
5397 | }; then | |
f73dda09 JA |
5398 | ac_cv_lib_tinfo_tgetent=yes |
5399 | else | |
3185942a | 5400 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5401 | sed 's/^/| /' conftest.$ac_ext >&5 |
5402 | ||
3185942a | 5403 | ac_cv_lib_tinfo_tgetent=no |
f73dda09 | 5404 | fi |
3185942a JA |
5405 | |
5406 | rm -rf conftest.dSYM | |
5407 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5408 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5409 | LIBS=$ac_check_lib_save_LIBS |
5410 | fi | |
3185942a JA |
5411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5412 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5413 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then | |
7117c2d2 | 5414 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 5415 | else |
3185942a JA |
5416 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
5417 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
f73dda09 | 5418 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
3185942a | 5419 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
5420 | else |
5421 | ac_check_lib_save_LIBS=$LIBS | |
5422 | LIBS="-lcurses $LIBS" | |
5423 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5424 | /* confdefs.h. */ |
5425 | _ACEOF | |
5426 | cat confdefs.h >>conftest.$ac_ext | |
5427 | cat >>conftest.$ac_ext <<_ACEOF | |
5428 | /* end confdefs.h. */ | |
b72432fd | 5429 | |
3185942a JA |
5430 | /* Override any GCC internal prototype to avoid an error. |
5431 | Use char because int might match the return type of a GCC | |
5432 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5433 | #ifdef __cplusplus |
5434 | extern "C" | |
5435 | #endif | |
f73dda09 JA |
5436 | char tgetent (); |
5437 | int | |
5438 | main () | |
5439 | { | |
3185942a | 5440 | return tgetent (); |
f73dda09 JA |
5441 | ; |
5442 | return 0; | |
5443 | } | |
5444 | _ACEOF | |
5445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5446 | if { (ac_try="$ac_link" |
5447 | case "(($ac_try" in | |
5448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5449 | *) ac_try_echo=$ac_try;; | |
5450 | esac | |
5451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5452 | $as_echo "$ac_try_echo") >&5 | |
5453 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5454 | ac_status=$? |
0628567a JA |
5455 | grep -v '^ *+' conftest.er1 >conftest.err |
5456 | rm -f conftest.er1 | |
5457 | cat conftest.err >&5 | |
3185942a JA |
5458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5459 | (exit $ac_status); } && { | |
5460 | test -z "$ac_c_werror_flag" || | |
5461 | test ! -s conftest.err | |
5462 | } && test -s conftest$ac_exeext && { | |
5463 | test "$cross_compiling" = yes || | |
5464 | $as_test_x conftest$ac_exeext | |
5465 | }; then | |
f73dda09 JA |
5466 | ac_cv_lib_curses_tgetent=yes |
5467 | else | |
3185942a | 5468 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5469 | sed 's/^/| /' conftest.$ac_ext >&5 |
5470 | ||
3185942a | 5471 | ac_cv_lib_curses_tgetent=no |
f73dda09 | 5472 | fi |
3185942a JA |
5473 | |
5474 | rm -rf conftest.dSYM | |
5475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5476 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5477 | LIBS=$ac_check_lib_save_LIBS |
5478 | fi | |
3185942a JA |
5479 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
5480 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
5481 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then | |
bb70624e JA |
5482 | bash_cv_termcap_lib=libcurses |
5483 | else | |
3185942a JA |
5484 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
5485 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
f73dda09 | 5486 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
3185942a | 5487 | $as_echo_n "(cached) " >&6 |
bb70624e | 5488 | else |
f73dda09 | 5489 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 5490 | LIBS="-lncurses $LIBS" |
f73dda09 | 5491 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5492 | /* confdefs.h. */ |
5493 | _ACEOF | |
5494 | cat confdefs.h >>conftest.$ac_ext | |
5495 | cat >>conftest.$ac_ext <<_ACEOF | |
5496 | /* end confdefs.h. */ | |
f73dda09 | 5497 | |
3185942a JA |
5498 | /* Override any GCC internal prototype to avoid an error. |
5499 | Use char because int might match the return type of a GCC | |
5500 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5501 | #ifdef __cplusplus |
5502 | extern "C" | |
5503 | #endif | |
f73dda09 JA |
5504 | char tgetent (); |
5505 | int | |
5506 | main () | |
5507 | { | |
3185942a | 5508 | return tgetent (); |
f73dda09 JA |
5509 | ; |
5510 | return 0; | |
5511 | } | |
5512 | _ACEOF | |
5513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5514 | if { (ac_try="$ac_link" |
5515 | case "(($ac_try" in | |
5516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5517 | *) ac_try_echo=$ac_try;; | |
5518 | esac | |
5519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5520 | $as_echo "$ac_try_echo") >&5 | |
5521 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5522 | ac_status=$? |
0628567a JA |
5523 | grep -v '^ *+' conftest.er1 >conftest.err |
5524 | rm -f conftest.er1 | |
5525 | cat conftest.err >&5 | |
3185942a JA |
5526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5527 | (exit $ac_status); } && { | |
5528 | test -z "$ac_c_werror_flag" || | |
5529 | test ! -s conftest.err | |
5530 | } && test -s conftest$ac_exeext && { | |
5531 | test "$cross_compiling" = yes || | |
5532 | $as_test_x conftest$ac_exeext | |
5533 | }; then | |
f73dda09 JA |
5534 | ac_cv_lib_ncurses_tgetent=yes |
5535 | else | |
3185942a | 5536 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5537 | sed 's/^/| /' conftest.$ac_ext >&5 |
5538 | ||
3185942a | 5539 | ac_cv_lib_ncurses_tgetent=no |
f73dda09 | 5540 | fi |
3185942a JA |
5541 | |
5542 | rm -rf conftest.dSYM | |
5543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5544 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5545 | LIBS=$ac_check_lib_save_LIBS |
5546 | fi | |
3185942a JA |
5547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
5548 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5549 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then | |
f73dda09 | 5550 | bash_cv_termcap_lib=libncurses |
bb70624e | 5551 | else |
f73dda09 | 5552 | bash_cv_termcap_lib=gnutermcap |
bb70624e | 5553 | fi |
bb70624e | 5554 | |
bb70624e JA |
5555 | fi |
5556 | ||
5557 | fi | |
5558 | ||
5559 | fi | |
5560 | ||
5561 | fi | |
5562 | ||
b80f6443 JA |
5563 | fi |
5564 | ||
bb70624e | 5565 | if test "X$_bash_needmsg" = "Xyes"; then |
3185942a JA |
5566 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5567 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
bb70624e | 5568 | fi |
3185942a JA |
5569 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
5570 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
bb70624e JA |
5571 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
5572 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5573 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5574 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5575 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5576 | TERMCAP_LIB=-ltermcap | |
5577 | TERMCAP_DEP= | |
f73dda09 JA |
5578 | elif test $bash_cv_termcap_lib = libtinfo; then |
5579 | TERMCAP_LIB=-ltinfo | |
5580 | TERMCAP_DEP= | |
bb70624e JA |
5581 | elif test $bash_cv_termcap_lib = libncurses; then |
5582 | TERMCAP_LIB=-lncurses | |
5583 | TERMCAP_DEP= | |
b80f6443 JA |
5584 | elif test $bash_cv_termcap_lib = libc; then |
5585 | TERMCAP_LIB= | |
5586 | TERMCAP_DEP= | |
bb70624e JA |
5587 | else |
5588 | TERMCAP_LIB=-lcurses | |
5589 | TERMCAP_DEP= | |
5590 | fi | |
5591 | ||
b80f6443 JA |
5592 | |
5593 | ||
5594 | ||
3185942a JA |
5595 | { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5 |
5596 | $as_echo_n "checking version of installed readline library... " >&6; } | |
f73dda09 JA |
5597 | |
5598 | # What a pain in the ass this is. | |
5599 | ||
5600 | # save cpp and ld options | |
5601 | _save_CFLAGS="$CFLAGS" | |
5602 | _save_LDFLAGS="$LDFLAGS" | |
5603 | _save_LIBS="$LIBS" | |
5604 | ||
5605 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This | |
5606 | # allows the caller to do something like $_rl_prefix=$withval if the user | |
5607 | # specifies --with-installed-readline=PREFIX as an argument to configure | |
5608 | ||
5609 | if test -z "$ac_cv_rl_prefix"; then | |
5610 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} | |
5611 | fi | |
5612 | ||
5613 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include | |
5614 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib | |
5615 | ||
5616 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" | |
5617 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" | |
5618 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" | |
5619 | ||
b80f6443 | 5620 | if test "${ac_cv_rl_version+set}" = set; then |
3185942a | 5621 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
5622 | else |
5623 | if test "$cross_compiling" = yes; then | |
f73dda09 JA |
5624 | ac_cv_rl_version='4.2' |
5625 | else | |
5626 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5627 | /* confdefs.h. */ |
5628 | _ACEOF | |
5629 | cat confdefs.h >>conftest.$ac_ext | |
5630 | cat >>conftest.$ac_ext <<_ACEOF | |
5631 | /* end confdefs.h. */ | |
f73dda09 JA |
5632 | |
5633 | #include <stdio.h> | |
5634 | #include <readline/readline.h> | |
5635 | ||
95732b49 JA |
5636 | extern int rl_gnu_readline_p; |
5637 | ||
f73dda09 JA |
5638 | main() |
5639 | { | |
5640 | FILE *fp; | |
5641 | fp = fopen("conftest.rlv", "w"); | |
95732b49 JA |
5642 | if (fp == 0) |
5643 | exit(1); | |
5644 | if (rl_gnu_readline_p != 1) | |
5645 | fprintf(fp, "0.0\n"); | |
5646 | else | |
5647 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | |
f73dda09 JA |
5648 | fclose(fp); |
5649 | exit(0); | |
5650 | } | |
5651 | ||
5652 | _ACEOF | |
5653 | rm -f conftest$ac_exeext | |
3185942a JA |
5654 | if { (ac_try="$ac_link" |
5655 | case "(($ac_try" in | |
5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5657 | *) ac_try_echo=$ac_try;; | |
5658 | esac | |
5659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5660 | $as_echo "$ac_try_echo") >&5 | |
5661 | (eval "$ac_link") 2>&5 | |
f73dda09 | 5662 | ac_status=$? |
3185942a | 5663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 5664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
5665 | { (case "(($ac_try" in |
5666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5667 | *) ac_try_echo=$ac_try;; | |
5668 | esac | |
5669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5670 | $as_echo "$ac_try_echo") >&5 | |
5671 | (eval "$ac_try") 2>&5 | |
f73dda09 | 5672 | ac_status=$? |
3185942a | 5673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5674 | (exit $ac_status); }; }; then |
5675 | ac_cv_rl_version=`cat conftest.rlv` | |
5676 | else | |
3185942a JA |
5677 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5678 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
5679 | sed 's/^/| /' conftest.$ac_ext >&5 |
5680 | ||
b80f6443 | 5681 | ( exit $ac_status ) |
f73dda09 JA |
5682 | ac_cv_rl_version='0.0' |
5683 | fi | |
3185942a JA |
5684 | rm -rf conftest.dSYM |
5685 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 5686 | fi |
3185942a JA |
5687 | |
5688 | ||
b80f6443 JA |
5689 | fi |
5690 | ||
f73dda09 JA |
5691 | |
5692 | CFLAGS="$_save_CFLAGS" | |
5693 | LDFLAGS="$_save_LDFLAGS" | |
5694 | LIBS="$_save_LIBS" | |
5695 | ||
5696 | RL_MAJOR=0 | |
5697 | RL_MINOR=0 | |
5698 | ||
5699 | # ( | |
5700 | case "$ac_cv_rl_version" in | |
5701 | 2*|3*|4*|5*|6*|7*|8*|9*) | |
5702 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` | |
7117c2d2 | 5703 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` |
f73dda09 JA |
5704 | ;; |
5705 | esac | |
5706 | ||
5707 | # ((( | |
5708 | case $RL_MAJOR in | |
5709 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; | |
5710 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; | |
5711 | *) _RL_MAJOR=00 ;; | |
5712 | esac | |
5713 | ||
5714 | # ((( | |
5715 | case $RL_MINOR in | |
5716 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; | |
5717 | [0-9]) _RL_MINOR=0$RL_MINOR ;; | |
5718 | *) _RL_MINOR=00 ;; | |
5719 | esac | |
5720 | ||
5721 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" | |
5722 | ||
5723 | # Readline versions greater than 4.2 have these defines in readline.h | |
5724 | ||
5725 | if test $ac_cv_rl_version = '0.0' ; then | |
3185942a JA |
5726 | { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5 |
5727 | $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} | |
f73dda09 JA |
5728 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then |
5729 | # set these for use by the caller | |
5730 | RL_PREFIX=$ac_cv_rl_prefix | |
5731 | RL_LIBDIR=$ac_cv_rl_libdir | |
5732 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
3185942a JA |
5733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5734 | $as_echo "$ac_cv_rl_version" >&6; } | |
f73dda09 JA |
5735 | else |
5736 | ||
b80f6443 JA |
5737 | |
5738 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5739 | #define RL_READLINE_VERSION $RL_VERSION |
b80f6443 | 5740 | _ACEOF |
f73dda09 | 5741 | |
b80f6443 JA |
5742 | |
5743 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5744 | #define RL_VERSION_MAJOR $RL_MAJOR |
b80f6443 | 5745 | _ACEOF |
f73dda09 | 5746 | |
b80f6443 JA |
5747 | |
5748 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5749 | #define RL_VERSION_MINOR $RL_MINOR |
b80f6443 JA |
5750 | _ACEOF |
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
f73dda09 JA |
5756 | |
5757 | # set these for use by the caller | |
5758 | RL_PREFIX=$ac_cv_rl_prefix | |
5759 | RL_LIBDIR=$ac_cv_rl_libdir | |
5760 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
bb70624e | 5761 | |
3185942a JA |
5762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5763 | $as_echo "$ac_cv_rl_version" >&6; } | |
bb70624e | 5764 | |
f73dda09 | 5765 | fi |
bb70624e | 5766 | |
b80f6443 | 5767 | |
f73dda09 | 5768 | case "$ac_cv_rl_version" in |
b80f6443 | 5769 | 5*|6*|7*|8*|9*) ;; |
f73dda09 | 5770 | *) opt_with_installed_readline=no |
3185942a JA |
5771 | { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5 |
5772 | $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} | |
5773 | { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5 | |
5774 | $as_echo "$as_me: WARNING: using private bash version" >&2;} | |
bb70624e JA |
5775 | ;; |
5776 | esac | |
bb70624e JA |
5777 | fi |
5778 | ||
95732b49 | 5779 | TILDE_LIB=-ltilde |
bb70624e | 5780 | if test $opt_readline = yes; then |
b80f6443 | 5781 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5782 | #define READLINE 1 |
b80f6443 | 5783 | _ACEOF |
bb70624e | 5784 | |
f73dda09 | 5785 | if test "$opt_with_installed_readline" != "no" ; then |
b80f6443 JA |
5786 | case "$opt_with_installed_readline" in |
5787 | yes) RL_INCLUDE= ;; | |
5788 | *) case "$RL_INCLUDEDIR" in | |
5789 | /usr/include) ;; | |
5790 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5791 | esac | |
5792 | ;; | |
f73dda09 | 5793 | esac |
bb70624e | 5794 | READLINE_DEP= |
95732b49 JA |
5795 | READLINE_LIB=-lreadline |
5796 | # section for OS versions that don't allow unresolved symbols | |
5797 | # to be compiled into dynamic libraries. | |
5798 | case "$host_os" in | |
5799 | cygwin*) TILDE_LIB= ;; | |
5800 | esac | |
bb70624e JA |
5801 | else |
5802 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5803 | READLINE_DEP='$(READLINE_LIBRARY)' | |
95732b49 JA |
5804 | # section for OS versions that ship an older/broken version of |
5805 | # readline as a standard dynamic library and don't allow a | |
5806 | # static version specified as -llibname to override the | |
5807 | # dynamic version | |
5808 | case "${host_os}" in | |
f1be666c | 5809 | darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;; |
95732b49 JA |
5810 | *) READLINE_LIB=-lreadline ;; |
5811 | esac | |
bb70624e JA |
5812 | fi |
5813 | else | |
5814 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5815 | READLINE_LIB= READLINE_DEP= | |
5816 | fi | |
5817 | if test $opt_history = yes || test $opt_bang_history = yes; then | |
5818 | if test $opt_history = yes; then | |
b80f6443 | 5819 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5820 | #define HISTORY 1 |
b80f6443 | 5821 | _ACEOF |
bb70624e JA |
5822 | |
5823 | fi | |
5824 | if test $opt_bang_history = yes; then | |
b80f6443 | 5825 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5826 | #define BANG_HISTORY 1 |
b80f6443 | 5827 | _ACEOF |
b72432fd JA |
5828 | |
5829 | fi | |
f73dda09 JA |
5830 | if test "$opt_with_installed_readline" != "no"; then |
5831 | HIST_LIBDIR=$RL_LIBDIR | |
b72432fd | 5832 | HISTORY_DEP= |
95732b49 | 5833 | HISTORY_LIB=-lhistory |
b80f6443 JA |
5834 | case "$opt_with_installed_readline" in |
5835 | yes) RL_INCLUDE= ;; | |
5836 | *) case "$RL_INCLUDEDIR" in | |
5837 | /usr/include) ;; | |
5838 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5839 | esac | |
5840 | ;; | |
f73dda09 | 5841 | esac |
b72432fd JA |
5842 | else |
5843 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5844 | HISTORY_DEP='$(HISTORY_LIBRARY)' | |
95732b49 JA |
5845 | # section for OS versions that ship an older version of |
5846 | # readline as a standard dynamic library and don't allow a | |
5847 | # static version specified as -llibname to override the | |
5848 | # dynamic version | |
5849 | case "${host_os}" in | |
3185942a | 5850 | darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; |
95732b49 JA |
5851 | *) HISTORY_LIB=-lhistory ;; |
5852 | esac | |
b72432fd JA |
5853 | fi |
5854 | else | |
5855 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5856 | HISTORY_LIB= HISTORY_DEP= | |
5857 | fi | |
5858 | ||
b80f6443 JA |
5859 | |
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
95732b49 | 5868 | |
ccc6cda3 JA |
5869 | # Find a good install program. We prefer a C program (faster), |
5870 | # so one script is as good as another. But avoid the broken or | |
5871 | # incompatible versions: | |
5872 | # SysV /etc/install, /usr/sbin/install | |
5873 | # SunOS /usr/etc/install | |
5874 | # IRIX /sbin/install | |
5875 | # AIX /bin/install | |
f73dda09 | 5876 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
bb70624e | 5877 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ccc6cda3 JA |
5878 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5879 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
0628567a | 5880 | # OS/2's system install, which has a completely different semantic |
ccc6cda3 | 5881 | # ./install, which can be erroneously created by make from ./install.sh. |
3185942a JA |
5882 | # Reject install programs that cannot install multiple files. |
5883 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5884 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
ccc6cda3 | 5885 | if test -z "$INSTALL"; then |
f73dda09 | 5886 | if test "${ac_cv_path_install+set}" = set; then |
3185942a | 5887 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 5888 | else |
b80f6443 JA |
5889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5890 | for as_dir in $PATH | |
5891 | do | |
5892 | IFS=$as_save_IFS | |
5893 | test -z "$as_dir" && as_dir=. | |
5894 | # Account for people who put trailing slashes in PATH elements. | |
5895 | case $as_dir/ in | |
5896 | ./ | .// | /cC/* | \ | |
5897 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
0628567a | 5898 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
b80f6443 JA |
5899 | /usr/ucb/* ) ;; |
5900 | *) | |
5901 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5902 | # Don't use installbsd from OSF since it installs stuff as root | |
5903 | # by default. | |
5904 | for ac_prog in ginstall scoinst install; do | |
5905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 5906 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
0628567a JA |
5907 | if test $ac_prog = install && |
5908 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5909 | # AIX install. It has an incompatible calling convention. | |
5910 | : | |
5911 | elif test $ac_prog = install && | |
5912 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5913 | # program-specific install script used by HP pwplus--don't use. | |
5914 | : | |
5915 | else | |
3185942a JA |
5916 | rm -rf conftest.one conftest.two conftest.dir |
5917 | echo one > conftest.one | |
5918 | echo two > conftest.two | |
5919 | mkdir conftest.dir | |
5920 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5921 | test -s conftest.one && test -s conftest.two && | |
5922 | test -s conftest.dir/conftest.one && | |
5923 | test -s conftest.dir/conftest.two | |
5924 | then | |
5925 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5926 | break 3 | |
5927 | fi | |
0628567a JA |
5928 | fi |
5929 | fi | |
ccc6cda3 | 5930 | done |
b80f6443 JA |
5931 | done |
5932 | ;; | |
5933 | esac | |
3185942a | 5934 | |
b80f6443 | 5935 | done |
3185942a | 5936 | IFS=$as_save_IFS |
b80f6443 | 5937 | |
3185942a | 5938 | rm -rf conftest.one conftest.two conftest.dir |
ccc6cda3 JA |
5939 | |
5940 | fi | |
5941 | if test "${ac_cv_path_install+set}" = set; then | |
f73dda09 | 5942 | INSTALL=$ac_cv_path_install |
ccc6cda3 | 5943 | else |
3185942a JA |
5944 | # As a last resort, use the slow shell script. Don't cache a |
5945 | # value for INSTALL within a source directory, because that will | |
ccc6cda3 | 5946 | # break other packages using the cache if that directory is |
3185942a | 5947 | # removed, or if the value is a relative name. |
f73dda09 | 5948 | INSTALL=$ac_install_sh |
ccc6cda3 JA |
5949 | fi |
5950 | fi | |
3185942a JA |
5951 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5952 | $as_echo "$INSTALL" >&6; } | |
ccc6cda3 JA |
5953 | |
5954 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5955 | # It thinks the first close brace ends the variable substitution. | |
5956 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5957 | ||
f73dda09 | 5958 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
bb70624e | 5959 | |
ccc6cda3 JA |
5960 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5961 | ||
5962 | # Extract the first word of "ar", so it can be a program name with args. | |
5963 | set dummy ar; ac_word=$2 | |
3185942a JA |
5964 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5965 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 5966 | if test "${ac_cv_prog_AR+set}" = set; then |
3185942a | 5967 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
5968 | else |
5969 | if test -n "$AR"; then | |
5970 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5971 | else | |
b80f6443 JA |
5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5973 | for as_dir in $PATH | |
5974 | do | |
5975 | IFS=$as_save_IFS | |
5976 | test -z "$as_dir" && as_dir=. | |
5977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 5978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 5979 | ac_cv_prog_AR="" |
3185942a | 5980 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
5981 | break 2 |
5982 | fi | |
5983 | done | |
f73dda09 | 5984 | done |
3185942a | 5985 | IFS=$as_save_IFS |
f73dda09 JA |
5986 | |
5987 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
ccc6cda3 JA |
5988 | fi |
5989 | fi | |
f73dda09 | 5990 | AR=$ac_cv_prog_AR |
ccc6cda3 | 5991 | if test -n "$AR"; then |
3185942a JA |
5992 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
5993 | $as_echo "$AR" >&6; } | |
ccc6cda3 | 5994 | else |
3185942a JA |
5995 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5996 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
5997 | fi |
5998 | ||
3185942a | 5999 | |
b72432fd | 6000 | test -n "$ARFLAGS" || ARFLAGS="cr" |
f73dda09 JA |
6001 | if test -n "$ac_tool_prefix"; then |
6002 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6003 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3185942a JA |
6004 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6005 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 6006 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3185942a | 6007 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
6008 | else |
6009 | if test -n "$RANLIB"; then | |
6010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6011 | else | |
b80f6443 JA |
6012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6013 | for as_dir in $PATH | |
6014 | do | |
6015 | IFS=$as_save_IFS | |
6016 | test -z "$as_dir" && as_dir=. | |
6017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 6018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 6019 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3185942a | 6020 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
6021 | break 2 |
6022 | fi | |
6023 | done | |
f73dda09 | 6024 | done |
3185942a | 6025 | IFS=$as_save_IFS |
f73dda09 | 6026 | |
ccc6cda3 JA |
6027 | fi |
6028 | fi | |
f73dda09 | 6029 | RANLIB=$ac_cv_prog_RANLIB |
ccc6cda3 | 6030 | if test -n "$RANLIB"; then |
3185942a JA |
6031 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6032 | $as_echo "$RANLIB" >&6; } | |
f73dda09 | 6033 | else |
3185942a JA |
6034 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6035 | $as_echo "no" >&6; } | |
f73dda09 JA |
6036 | fi |
6037 | ||
3185942a | 6038 | |
f73dda09 JA |
6039 | fi |
6040 | if test -z "$ac_cv_prog_RANLIB"; then | |
6041 | ac_ct_RANLIB=$RANLIB | |
6042 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6043 | set dummy ranlib; ac_word=$2 | |
3185942a JA |
6044 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6045 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 6046 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3185942a | 6047 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
6048 | else |
6049 | if test -n "$ac_ct_RANLIB"; then | |
6050 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6051 | else | |
b80f6443 JA |
6052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6053 | for as_dir in $PATH | |
6054 | do | |
6055 | IFS=$as_save_IFS | |
6056 | test -z "$as_dir" && as_dir=. | |
6057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 6058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 6059 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3185942a | 6060 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
6061 | break 2 |
6062 | fi | |
6063 | done | |
f73dda09 | 6064 | done |
3185942a | 6065 | IFS=$as_save_IFS |
f73dda09 | 6066 | |
f73dda09 JA |
6067 | fi |
6068 | fi | |
6069 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6070 | if test -n "$ac_ct_RANLIB"; then | |
3185942a JA |
6071 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6072 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ccc6cda3 | 6073 | else |
3185942a JA |
6074 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6075 | $as_echo "no" >&6; } | |
f73dda09 JA |
6076 | fi |
6077 | ||
3185942a JA |
6078 | if test "x$ac_ct_RANLIB" = x; then |
6079 | RANLIB=":" | |
6080 | else | |
6081 | case $cross_compiling:$ac_tool_warned in | |
6082 | yes:) | |
6083 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6084 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6085 | ac_tool_warned=yes ;; | |
6086 | esac | |
6087 | RANLIB=$ac_ct_RANLIB | |
6088 | fi | |
f73dda09 JA |
6089 | else |
6090 | RANLIB="$ac_cv_prog_RANLIB" | |
ccc6cda3 JA |
6091 | fi |
6092 | ||
6093 | for ac_prog in 'bison -y' byacc | |
6094 | do | |
f73dda09 | 6095 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
ccc6cda3 | 6096 | set dummy $ac_prog; ac_word=$2 |
3185942a JA |
6097 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6098 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 6099 | if test "${ac_cv_prog_YACC+set}" = set; then |
3185942a | 6100 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
6101 | else |
6102 | if test -n "$YACC"; then | |
6103 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6104 | else | |
b80f6443 JA |
6105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6106 | for as_dir in $PATH | |
6107 | do | |
6108 | IFS=$as_save_IFS | |
6109 | test -z "$as_dir" && as_dir=. | |
6110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 6111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 6112 | ac_cv_prog_YACC="$ac_prog" |
3185942a | 6113 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
6114 | break 2 |
6115 | fi | |
6116 | done | |
f73dda09 | 6117 | done |
3185942a | 6118 | IFS=$as_save_IFS |
f73dda09 | 6119 | |
ccc6cda3 JA |
6120 | fi |
6121 | fi | |
f73dda09 | 6122 | YACC=$ac_cv_prog_YACC |
ccc6cda3 | 6123 | if test -n "$YACC"; then |
3185942a JA |
6124 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
6125 | $as_echo "$YACC" >&6; } | |
ccc6cda3 | 6126 | else |
3185942a JA |
6127 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6128 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
6129 | fi |
6130 | ||
3185942a | 6131 | |
f73dda09 | 6132 | test -n "$YACC" && break |
ccc6cda3 JA |
6133 | done |
6134 | test -n "$YACC" || YACC="yacc" | |
6135 | ||
3185942a JA |
6136 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6137 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6138 | set x ${MAKE-make} | |
6139 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
6140 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
6141 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 6142 | else |
b80f6443 | 6143 | cat >conftest.make <<\_ACEOF |
3185942a | 6144 | SHELL = /bin/sh |
ccc6cda3 | 6145 | all: |
3185942a | 6146 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b80f6443 | 6147 | _ACEOF |
ccc6cda3 | 6148 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3185942a JA |
6149 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6150 | *@@@%%%=?*=@@@%%%*) | |
6151 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6152 | *) | |
6153 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6154 | esac | |
f73dda09 | 6155 | rm -f conftest.make |
ccc6cda3 | 6156 | fi |
3185942a JA |
6157 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
6158 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6159 | $as_echo "yes" >&6; } | |
ccc6cda3 JA |
6160 | SET_MAKE= |
6161 | else | |
3185942a JA |
6162 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6163 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
6164 | SET_MAKE="MAKE=${MAKE-make}" |
6165 | fi | |
6166 | ||
b80f6443 | 6167 | |
b72432fd | 6168 | case "$host_os" in |
bb70624e | 6169 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; |
b72432fd JA |
6170 | *) MAKE_SHELL=/bin/sh ;; |
6171 | esac | |
6172 | ||
6173 | ||
95732b49 JA |
6174 | if test x$SIZE = x; then |
6175 | if test x$ac_tool_prefix = x; then | |
6176 | SIZE=size | |
6177 | else | |
6178 | SIZE=${ac_tool_prefix}size | |
6179 | save_IFS=$IFS ; IFS=: | |
6180 | size_found=0 | |
6181 | for dir in $PATH; do | |
6182 | if test -x $dir/$SIZE ; then | |
6183 | size_found=1 | |
6184 | break | |
6185 | fi | |
6186 | done | |
6187 | if test $size_found -eq 0; then | |
6188 | SIZE=: | |
6189 | fi | |
6190 | IFS=$save_IFS | |
6191 | fi | |
6192 | fi | |
6193 | ||
6194 | ||
b80f6443 JA |
6195 | cat >>confdefs.h <<\_ACEOF |
6196 | #define _GNU_SOURCE 1 | |
f73dda09 | 6197 | _ACEOF |
ccc6cda3 | 6198 | |
f73dda09 | 6199 | |
3185942a JA |
6200 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6201 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
0628567a | 6202 | if test "${ac_cv_c_const+set}" = set; then |
3185942a | 6203 | $as_echo_n "(cached) " >&6 |
95732b49 | 6204 | else |
0628567a JA |
6205 | cat >conftest.$ac_ext <<_ACEOF |
6206 | /* confdefs.h. */ | |
6207 | _ACEOF | |
6208 | cat confdefs.h >>conftest.$ac_ext | |
6209 | cat >>conftest.$ac_ext <<_ACEOF | |
6210 | /* end confdefs.h. */ | |
6211 | ||
6212 | int | |
6213 | main () | |
f73dda09 JA |
6214 | { |
6215 | /* FIXME: Include the comments suggested by Paul. */ | |
6216 | #ifndef __cplusplus | |
6217 | /* Ultrix mips cc rejects this. */ | |
6218 | typedef int charset[2]; | |
3185942a | 6219 | const charset cs; |
f73dda09 | 6220 | /* SunOS 4.1.1 cc rejects this. */ |
3185942a JA |
6221 | char const *const *pcpcc; |
6222 | char **ppc; | |
f73dda09 JA |
6223 | /* NEC SVR4.0.2 mips cc rejects this. */ |
6224 | struct point {int x, y;}; | |
6225 | static struct point const zero = {0,0}; | |
6226 | /* AIX XL C 1.02.0.0 rejects this. | |
6227 | It does not let you subtract one const X* pointer from another in | |
6228 | an arm of an if-expression whose if-part is not a constant | |
6229 | expression */ | |
6230 | const char *g = "string"; | |
3185942a | 6231 | pcpcc = &g + (g ? g-g : 0); |
f73dda09 | 6232 | /* HPUX 7.0 cc rejects these. */ |
3185942a JA |
6233 | ++pcpcc; |
6234 | ppc = (char**) pcpcc; | |
6235 | pcpcc = (char const *const *) ppc; | |
f73dda09 JA |
6236 | { /* SCO 3.2v4 cc rejects this. */ |
6237 | char *t; | |
6238 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6239 | ||
6240 | *t++ = 0; | |
3185942a | 6241 | if (s) return 0; |
f73dda09 JA |
6242 | } |
6243 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6244 | int x[] = {25, 17}; | |
6245 | const int *foo = &x[0]; | |
6246 | ++foo; | |
6247 | } | |
6248 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6249 | typedef const int *iptr; | |
6250 | iptr p = 0; | |
6251 | ++p; | |
6252 | } | |
6253 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6254 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6255 | struct s { int j; const int *ap[3]; }; | |
6256 | struct s *b; b->j = 5; | |
6257 | } | |
6258 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6259 | const int foo = 10; | |
3185942a | 6260 | if (!foo) return 0; |
f73dda09 | 6261 | } |
3185942a | 6262 | return !cs[0] && !zero.x; |
ccc6cda3 JA |
6263 | #endif |
6264 | ||
f73dda09 JA |
6265 | ; |
6266 | return 0; | |
6267 | } | |
6268 | _ACEOF | |
6269 | rm -f conftest.$ac_objext | |
3185942a JA |
6270 | if { (ac_try="$ac_compile" |
6271 | case "(($ac_try" in | |
6272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6273 | *) ac_try_echo=$ac_try;; | |
6274 | esac | |
6275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6276 | $as_echo "$ac_try_echo") >&5 | |
6277 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6278 | ac_status=$? |
0628567a JA |
6279 | grep -v '^ *+' conftest.er1 >conftest.err |
6280 | rm -f conftest.er1 | |
6281 | cat conftest.err >&5 | |
3185942a JA |
6282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6283 | (exit $ac_status); } && { | |
6284 | test -z "$ac_c_werror_flag" || | |
6285 | test ! -s conftest.err | |
6286 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
6287 | ac_cv_c_const=yes |
6288 | else | |
3185942a | 6289 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6290 | sed 's/^/| /' conftest.$ac_ext >&5 |
6291 | ||
3185942a | 6292 | ac_cv_c_const=no |
f73dda09 | 6293 | fi |
3185942a JA |
6294 | |
6295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 6296 | fi |
3185942a JA |
6297 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
6298 | $as_echo "$ac_cv_c_const" >&6; } | |
f73dda09 JA |
6299 | if test $ac_cv_c_const = no; then |
6300 | ||
b80f6443 | 6301 | cat >>confdefs.h <<\_ACEOF |
3185942a | 6302 | #define const /**/ |
b80f6443 | 6303 | _ACEOF |
ccc6cda3 JA |
6304 | |
6305 | fi | |
6306 | ||
3185942a JA |
6307 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
6308 | $as_echo_n "checking for inline... " >&6; } | |
f73dda09 | 6309 | if test "${ac_cv_c_inline+set}" = set; then |
3185942a | 6310 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6311 | else |
f73dda09 JA |
6312 | ac_cv_c_inline=no |
6313 | for ac_kw in inline __inline__ __inline; do | |
6314 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6315 | /* confdefs.h. */ |
6316 | _ACEOF | |
6317 | cat confdefs.h >>conftest.$ac_ext | |
6318 | cat >>conftest.$ac_ext <<_ACEOF | |
6319 | /* end confdefs.h. */ | |
f73dda09 | 6320 | #ifndef __cplusplus |
0628567a JA |
6321 | typedef int foo_t; |
6322 | static $ac_kw foo_t static_foo () {return 0; } | |
6323 | $ac_kw foo_t foo () {return 0; } | |
ccc6cda3 JA |
6324 | #endif |
6325 | ||
f73dda09 JA |
6326 | _ACEOF |
6327 | rm -f conftest.$ac_objext | |
3185942a JA |
6328 | if { (ac_try="$ac_compile" |
6329 | case "(($ac_try" in | |
6330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6331 | *) ac_try_echo=$ac_try;; | |
6332 | esac | |
6333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6334 | $as_echo "$ac_try_echo") >&5 | |
6335 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6336 | ac_status=$? |
0628567a JA |
6337 | grep -v '^ *+' conftest.er1 >conftest.err |
6338 | rm -f conftest.er1 | |
6339 | cat conftest.err >&5 | |
3185942a JA |
6340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6341 | (exit $ac_status); } && { | |
6342 | test -z "$ac_c_werror_flag" || | |
6343 | test ! -s conftest.err | |
6344 | } && test -s conftest.$ac_objext; then | |
6345 | ac_cv_c_inline=$ac_kw | |
f73dda09 | 6346 | else |
3185942a | 6347 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6348 | sed 's/^/| /' conftest.$ac_ext >&5 |
6349 | ||
3185942a | 6350 | |
f73dda09 | 6351 | fi |
3185942a JA |
6352 | |
6353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6354 | test "$ac_cv_c_inline" != no && break | |
f73dda09 | 6355 | done |
ccc6cda3 JA |
6356 | |
6357 | fi | |
3185942a JA |
6358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
6359 | $as_echo "$ac_cv_c_inline" >&6; } | |
0628567a JA |
6360 | |
6361 | ||
f73dda09 JA |
6362 | case $ac_cv_c_inline in |
6363 | inline | yes) ;; | |
0628567a JA |
6364 | *) |
6365 | case $ac_cv_c_inline in | |
6366 | no) ac_val=;; | |
6367 | *) ac_val=$ac_cv_c_inline;; | |
6368 | esac | |
6369 | cat >>confdefs.h <<_ACEOF | |
6370 | #ifndef __cplusplus | |
6371 | #define inline $ac_val | |
6372 | #endif | |
b80f6443 | 6373 | _ACEOF |
0628567a | 6374 | ;; |
f73dda09 | 6375 | esac |
ccc6cda3 | 6376 | |
3185942a JA |
6377 | |
6378 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
6379 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
f73dda09 | 6380 | if test "${ac_cv_c_bigendian+set}" = set; then |
3185942a | 6381 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6382 | else |
3185942a JA |
6383 | ac_cv_c_bigendian=unknown |
6384 | # See if we're dealing with a universal compiler. | |
6385 | cat >conftest.$ac_ext <<_ACEOF | |
6386 | /* confdefs.h. */ | |
6387 | _ACEOF | |
6388 | cat confdefs.h >>conftest.$ac_ext | |
6389 | cat >>conftest.$ac_ext <<_ACEOF | |
6390 | /* end confdefs.h. */ | |
6391 | #ifndef __APPLE_CC__ | |
6392 | not a universal capable compiler | |
6393 | #endif | |
6394 | typedef int dummy; | |
6395 | ||
6396 | _ACEOF | |
6397 | rm -f conftest.$ac_objext | |
6398 | if { (ac_try="$ac_compile" | |
6399 | case "(($ac_try" in | |
6400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6401 | *) ac_try_echo=$ac_try;; | |
6402 | esac | |
6403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6404 | $as_echo "$ac_try_echo") >&5 | |
6405 | (eval "$ac_compile") 2>conftest.er1 | |
6406 | ac_status=$? | |
6407 | grep -v '^ *+' conftest.er1 >conftest.err | |
6408 | rm -f conftest.er1 | |
6409 | cat conftest.err >&5 | |
6410 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6411 | (exit $ac_status); } && { | |
6412 | test -z "$ac_c_werror_flag" || | |
6413 | test ! -s conftest.err | |
6414 | } && test -s conftest.$ac_objext; then | |
6415 | ||
6416 | # Check for potential -arch flags. It is not universal unless | |
6417 | # there are some -arch flags. Note that *ppc* also matches | |
6418 | # ppc64. This check is also rather less than ideal. | |
6419 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | |
6420 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | |
6421 | esac | |
6422 | else | |
6423 | $as_echo "$as_me: failed program was:" >&5 | |
6424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6425 | ||
6426 | ||
6427 | fi | |
6428 | ||
6429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6430 | if test $ac_cv_c_bigendian = unknown; then | |
6431 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6432 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6433 | /* confdefs.h. */ |
6434 | _ACEOF | |
6435 | cat confdefs.h >>conftest.$ac_ext | |
6436 | cat >>conftest.$ac_ext <<_ACEOF | |
6437 | /* end confdefs.h. */ | |
f73dda09 | 6438 | #include <sys/types.h> |
3185942a | 6439 | #include <sys/param.h> |
ccc6cda3 | 6440 | |
f73dda09 JA |
6441 | int |
6442 | main () | |
6443 | { | |
3185942a JA |
6444 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6445 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6446 | && LITTLE_ENDIAN) | |
6447 | bogus endian macros | |
6448 | #endif | |
ccc6cda3 | 6449 | |
f73dda09 JA |
6450 | ; |
6451 | return 0; | |
6452 | } | |
6453 | _ACEOF | |
6454 | rm -f conftest.$ac_objext | |
3185942a JA |
6455 | if { (ac_try="$ac_compile" |
6456 | case "(($ac_try" in | |
6457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6458 | *) ac_try_echo=$ac_try;; | |
6459 | esac | |
6460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6461 | $as_echo "$ac_try_echo") >&5 | |
6462 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6463 | ac_status=$? |
0628567a JA |
6464 | grep -v '^ *+' conftest.er1 >conftest.err |
6465 | rm -f conftest.er1 | |
6466 | cat conftest.err >&5 | |
3185942a JA |
6467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6468 | (exit $ac_status); } && { | |
6469 | test -z "$ac_c_werror_flag" || | |
6470 | test ! -s conftest.err | |
6471 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6472 | # It does; now see whether it defined to BIG_ENDIAN or not. |
3185942a | 6473 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6474 | /* confdefs.h. */ |
6475 | _ACEOF | |
6476 | cat confdefs.h >>conftest.$ac_ext | |
6477 | cat >>conftest.$ac_ext <<_ACEOF | |
6478 | /* end confdefs.h. */ | |
f73dda09 | 6479 | #include <sys/types.h> |
3185942a | 6480 | #include <sys/param.h> |
ccc6cda3 | 6481 | |
f73dda09 JA |
6482 | int |
6483 | main () | |
6484 | { | |
6485 | #if BYTE_ORDER != BIG_ENDIAN | |
3185942a JA |
6486 | not big endian |
6487 | #endif | |
ccc6cda3 | 6488 | |
f73dda09 JA |
6489 | ; |
6490 | return 0; | |
6491 | } | |
6492 | _ACEOF | |
6493 | rm -f conftest.$ac_objext | |
3185942a JA |
6494 | if { (ac_try="$ac_compile" |
6495 | case "(($ac_try" in | |
6496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6497 | *) ac_try_echo=$ac_try;; | |
6498 | esac | |
6499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6500 | $as_echo "$ac_try_echo") >&5 | |
6501 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6502 | ac_status=$? |
0628567a JA |
6503 | grep -v '^ *+' conftest.er1 >conftest.err |
6504 | rm -f conftest.er1 | |
6505 | cat conftest.err >&5 | |
3185942a JA |
6506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6507 | (exit $ac_status); } && { | |
6508 | test -z "$ac_c_werror_flag" || | |
6509 | test ! -s conftest.err | |
6510 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6511 | ac_cv_c_bigendian=yes |
ccc6cda3 | 6512 | else |
3185942a | 6513 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
6515 | ||
3185942a | 6516 | ac_cv_c_bigendian=no |
ccc6cda3 | 6517 | fi |
3185942a JA |
6518 | |
6519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6520 | else |
3185942a | 6521 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6522 | sed 's/^/| /' conftest.$ac_ext >&5 |
6523 | ||
3185942a JA |
6524 | |
6525 | fi | |
6526 | ||
6527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6528 | fi | |
6529 | if test $ac_cv_c_bigendian = unknown; then | |
6530 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6531 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6532 | /* confdefs.h. */ |
6533 | _ACEOF | |
6534 | cat confdefs.h >>conftest.$ac_ext | |
6535 | cat >>conftest.$ac_ext <<_ACEOF | |
6536 | /* end confdefs.h. */ | |
3185942a JA |
6537 | #include <limits.h> |
6538 | ||
b80f6443 JA |
6539 | int |
6540 | main () | |
6541 | { | |
3185942a JA |
6542 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
6543 | bogus endian macros | |
6544 | #endif | |
6545 | ||
b80f6443 JA |
6546 | ; |
6547 | return 0; | |
6548 | } | |
6549 | _ACEOF | |
6550 | rm -f conftest.$ac_objext | |
3185942a JA |
6551 | if { (ac_try="$ac_compile" |
6552 | case "(($ac_try" in | |
6553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6554 | *) ac_try_echo=$ac_try;; | |
6555 | esac | |
6556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6557 | $as_echo "$ac_try_echo") >&5 | |
6558 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 6559 | ac_status=$? |
0628567a JA |
6560 | grep -v '^ *+' conftest.er1 >conftest.err |
6561 | rm -f conftest.er1 | |
6562 | cat conftest.err >&5 | |
3185942a JA |
6563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6564 | (exit $ac_status); } && { | |
6565 | test -z "$ac_c_werror_flag" || | |
6566 | test ! -s conftest.err | |
6567 | } && test -s conftest.$ac_objext; then | |
6568 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6569 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6570 | /* confdefs.h. */ |
6571 | _ACEOF | |
6572 | cat confdefs.h >>conftest.$ac_ext | |
6573 | cat >>conftest.$ac_ext <<_ACEOF | |
6574 | /* end confdefs.h. */ | |
3185942a JA |
6575 | #include <limits.h> |
6576 | ||
f73dda09 JA |
6577 | int |
6578 | main () | |
ccc6cda3 | 6579 | { |
3185942a JA |
6580 | #ifndef _BIG_ENDIAN |
6581 | not big endian | |
6582 | #endif | |
6583 | ||
6584 | ; | |
6585 | return 0; | |
ccc6cda3 | 6586 | } |
f73dda09 | 6587 | _ACEOF |
3185942a JA |
6588 | rm -f conftest.$ac_objext |
6589 | if { (ac_try="$ac_compile" | |
6590 | case "(($ac_try" in | |
6591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6592 | *) ac_try_echo=$ac_try;; | |
6593 | esac | |
6594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6595 | $as_echo "$ac_try_echo") >&5 | |
6596 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6597 | ac_status=$? |
3185942a JA |
6598 | grep -v '^ *+' conftest.er1 >conftest.err |
6599 | rm -f conftest.er1 | |
6600 | cat conftest.err >&5 | |
6601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6602 | (exit $ac_status); } && { | |
6603 | test -z "$ac_c_werror_flag" || | |
6604 | test ! -s conftest.err | |
6605 | } && test -s conftest.$ac_objext; then | |
6606 | ac_cv_c_bigendian=yes | |
ccc6cda3 | 6607 | else |
3185942a | 6608 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6609 | sed 's/^/| /' conftest.$ac_ext >&5 |
6610 | ||
3185942a | 6611 | ac_cv_c_bigendian=no |
f73dda09 | 6612 | fi |
3185942a JA |
6613 | |
6614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6615 | else | |
6616 | $as_echo "$as_me: failed program was:" >&5 | |
6617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6618 | ||
6619 | ||
ccc6cda3 JA |
6620 | fi |
6621 | ||
3185942a JA |
6622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6623 | fi | |
6624 | if test $ac_cv_c_bigendian = unknown; then | |
6625 | # Compile a test program. | |
6626 | if test "$cross_compiling" = yes; then | |
6627 | # Try to guess by grepping values from an object file. | |
6628 | cat >conftest.$ac_ext <<_ACEOF | |
6629 | /* confdefs.h. */ | |
6630 | _ACEOF | |
6631 | cat confdefs.h >>conftest.$ac_ext | |
6632 | cat >>conftest.$ac_ext <<_ACEOF | |
6633 | /* end confdefs.h. */ | |
6634 | short int ascii_mm[] = | |
6635 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6636 | short int ascii_ii[] = | |
6637 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6638 | int use_ascii (int i) { | |
6639 | return ascii_mm[i] + ascii_ii[i]; | |
6640 | } | |
6641 | short int ebcdic_ii[] = | |
6642 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6643 | short int ebcdic_mm[] = | |
6644 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6645 | int use_ebcdic (int i) { | |
6646 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6647 | } | |
6648 | extern int foo; | |
6649 | ||
6650 | int | |
6651 | main () | |
6652 | { | |
6653 | return use_ascii (foo) == use_ebcdic (foo); | |
6654 | ; | |
6655 | return 0; | |
6656 | } | |
6657 | _ACEOF | |
6658 | rm -f conftest.$ac_objext | |
6659 | if { (ac_try="$ac_compile" | |
6660 | case "(($ac_try" in | |
6661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6662 | *) ac_try_echo=$ac_try;; | |
6663 | esac | |
6664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6665 | $as_echo "$ac_try_echo") >&5 | |
6666 | (eval "$ac_compile") 2>conftest.er1 | |
6667 | ac_status=$? | |
6668 | grep -v '^ *+' conftest.er1 >conftest.err | |
6669 | rm -f conftest.er1 | |
6670 | cat conftest.err >&5 | |
6671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6672 | (exit $ac_status); } && { | |
6673 | test -z "$ac_c_werror_flag" || | |
6674 | test ! -s conftest.err | |
6675 | } && test -s conftest.$ac_objext; then | |
6676 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6677 | ac_cv_c_bigendian=yes | |
6678 | fi | |
6679 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6680 | if test "$ac_cv_c_bigendian" = unknown; then | |
6681 | ac_cv_c_bigendian=no | |
6682 | else | |
6683 | # finding both strings is unlikely to happen, but who knows? | |
6684 | ac_cv_c_bigendian=unknown | |
6685 | fi | |
6686 | fi | |
6687 | else | |
6688 | $as_echo "$as_me: failed program was:" >&5 | |
6689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6690 | ||
6691 | ||
6692 | fi | |
6693 | ||
6694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6695 | else | |
6696 | cat >conftest.$ac_ext <<_ACEOF | |
6697 | /* confdefs.h. */ | |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
6702 | $ac_includes_default | |
6703 | int | |
6704 | main () | |
6705 | { | |
6706 | ||
6707 | /* Are we little or big endian? From Harbison&Steele. */ | |
6708 | union | |
6709 | { | |
6710 | long int l; | |
6711 | char c[sizeof (long int)]; | |
6712 | } u; | |
6713 | u.l = 1; | |
6714 | return u.c[sizeof (long int) - 1] == 1; | |
6715 | ||
6716 | ; | |
6717 | return 0; | |
6718 | } | |
6719 | _ACEOF | |
6720 | rm -f conftest$ac_exeext | |
6721 | if { (ac_try="$ac_link" | |
6722 | case "(($ac_try" in | |
6723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6724 | *) ac_try_echo=$ac_try;; | |
6725 | esac | |
6726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6727 | $as_echo "$ac_try_echo") >&5 | |
6728 | (eval "$ac_link") 2>&5 | |
6729 | ac_status=$? | |
6730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6732 | { (case "(($ac_try" in | |
6733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6734 | *) ac_try_echo=$ac_try;; | |
6735 | esac | |
6736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6737 | $as_echo "$ac_try_echo") >&5 | |
6738 | (eval "$ac_try") 2>&5 | |
6739 | ac_status=$? | |
6740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6741 | (exit $ac_status); }; }; then | |
6742 | ac_cv_c_bigendian=no | |
6743 | else | |
6744 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6745 | $as_echo "$as_me: failed program was:" >&5 | |
6746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6747 | ||
6748 | ( exit $ac_status ) | |
6749 | ac_cv_c_bigendian=yes | |
6750 | fi | |
6751 | rm -rf conftest.dSYM | |
6752 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6753 | fi | |
6754 | ||
6755 | ||
6756 | fi | |
6757 | fi | |
6758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
6759 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6760 | case $ac_cv_c_bigendian in #( | |
6761 | yes) | |
6762 | cat >>confdefs.h <<\_ACEOF | |
f73dda09 | 6763 | #define WORDS_BIGENDIAN 1 |
b80f6443 | 6764 | _ACEOF |
3185942a JA |
6765 | ;; #( |
6766 | no) | |
6767 | ;; #( | |
6768 | universal) | |
6769 | ||
6770 | cat >>confdefs.h <<\_ACEOF | |
6771 | #define AC_APPLE_UNIVERSAL_BUILD 1 | |
6772 | _ACEOF | |
6773 | ||
6774 | ;; #( | |
6775 | *) | |
6776 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
6777 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
6778 | $as_echo "$as_me: error: unknown endianness | |
6779 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
b80f6443 | 6780 | { (exit 1); exit 1; }; } ;; |
3185942a | 6781 | esac |
b80f6443 | 6782 | |
3185942a JA |
6783 | { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 |
6784 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | |
b80f6443 | 6785 | if test "${ac_cv_c_stringize+set}" = set; then |
3185942a | 6786 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6787 | else |
f73dda09 | 6788 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6789 | /* confdefs.h. */ |
6790 | _ACEOF | |
6791 | cat confdefs.h >>conftest.$ac_ext | |
6792 | cat >>conftest.$ac_ext <<_ACEOF | |
6793 | /* end confdefs.h. */ | |
f73dda09 | 6794 | #define x(y) #y |
ccc6cda3 | 6795 | |
f73dda09 JA |
6796 | char *s = x(teststring); |
6797 | _ACEOF | |
6798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 6799 | $EGREP "#teststring" >/dev/null 2>&1; then |
f73dda09 | 6800 | ac_cv_c_stringize=no |
ccc6cda3 | 6801 | else |
f73dda09 | 6802 | ac_cv_c_stringize=yes |
ccc6cda3 | 6803 | fi |
f73dda09 | 6804 | rm -f conftest* |
ccc6cda3 JA |
6805 | |
6806 | fi | |
3185942a JA |
6807 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 |
6808 | $as_echo "$ac_cv_c_stringize" >&6; } | |
f73dda09 | 6809 | if test $ac_cv_c_stringize = yes; then |
ccc6cda3 | 6810 | |
b80f6443 | 6811 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6812 | #define HAVE_STRINGIZE 1 |
b80f6443 | 6813 | _ACEOF |
ccc6cda3 JA |
6814 | |
6815 | fi | |
6816 | ||
3185942a JA |
6817 | |
6818 | ||
6819 | { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 | |
6820 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | |
6821 | if test "${ac_cv_type_long_double_wider+set}" = set; then | |
6822 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 6823 | else |
f73dda09 | 6824 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6825 | /* confdefs.h. */ |
6826 | _ACEOF | |
6827 | cat confdefs.h >>conftest.$ac_ext | |
6828 | cat >>conftest.$ac_ext <<_ACEOF | |
6829 | /* end confdefs.h. */ | |
b80f6443 | 6830 | #include <float.h> |
3185942a JA |
6831 | long double const a[] = |
6832 | { | |
6833 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | |
6834 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | |
6835 | }; | |
6836 | long double | |
6837 | f (long double x) | |
6838 | { | |
6839 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | |
6840 | + (x ? f (x) : 'c')); | |
6841 | } | |
6842 | ||
f73dda09 JA |
6843 | int |
6844 | main () | |
6845 | { | |
3185942a JA |
6846 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
6847 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | |
6848 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | |
6849 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | |
6850 | && (int) LDBL_EPSILON == 0 | |
6851 | )]; | |
b80f6443 JA |
6852 | test_array [0] = 0 |
6853 | ||
6854 | ; | |
6855 | return 0; | |
ccc6cda3 | 6856 | } |
f73dda09 | 6857 | _ACEOF |
b80f6443 | 6858 | rm -f conftest.$ac_objext |
3185942a JA |
6859 | if { (ac_try="$ac_compile" |
6860 | case "(($ac_try" in | |
6861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6862 | *) ac_try_echo=$ac_try;; | |
6863 | esac | |
6864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6865 | $as_echo "$ac_try_echo") >&5 | |
6866 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6867 | ac_status=$? |
0628567a JA |
6868 | grep -v '^ *+' conftest.er1 >conftest.err |
6869 | rm -f conftest.er1 | |
6870 | cat conftest.err >&5 | |
3185942a JA |
6871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6872 | (exit $ac_status); } && { | |
6873 | test -z "$ac_c_werror_flag" || | |
6874 | test ! -s conftest.err | |
6875 | } && test -s conftest.$ac_objext; then | |
6876 | ac_cv_type_long_double_wider=yes | |
ccc6cda3 | 6877 | else |
3185942a | 6878 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6879 | sed 's/^/| /' conftest.$ac_ext >&5 |
6880 | ||
3185942a | 6881 | ac_cv_type_long_double_wider=no |
f73dda09 | 6882 | fi |
3185942a JA |
6883 | |
6884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6885 | fi |
3185942a JA |
6886 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 |
6887 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | |
6888 | if test $ac_cv_type_long_double_wider = yes; then | |
6889 | ||
6890 | cat >>confdefs.h <<\_ACEOF | |
6891 | #define HAVE_LONG_DOUBLE_WIDER 1 | |
6892 | _ACEOF | |
6893 | ||
6894 | fi | |
6895 | ||
6896 | ac_cv_c_long_double=$ac_cv_type_long_double_wider | |
6897 | if test $ac_cv_c_long_double = yes; then | |
ccc6cda3 | 6898 | |
b80f6443 | 6899 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6900 | #define HAVE_LONG_DOUBLE 1 |
b80f6443 | 6901 | _ACEOF |
ccc6cda3 | 6902 | |
3185942a | 6903 | fi |
ccc6cda3 | 6904 | |
3185942a JA |
6905 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
6906 | $as_echo_n "checking for function prototypes... " >&6; } | |
6907 | if test "$ac_cv_prog_cc_c89" != no; then | |
6908 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6909 | $as_echo "yes" >&6; } | |
ccc6cda3 | 6910 | |
b80f6443 | 6911 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6912 | #define PROTOTYPES 1 |
f73dda09 | 6913 | _ACEOF |
ccc6cda3 | 6914 | |
f73dda09 | 6915 | |
b80f6443 JA |
6916 | cat >>confdefs.h <<\_ACEOF |
6917 | #define __PROTOTYPES 1 | |
f73dda09 | 6918 | _ACEOF |
f73dda09 | 6919 | |
f73dda09 | 6920 | else |
3185942a JA |
6921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6922 | $as_echo "no" >&6; } | |
f73dda09 | 6923 | fi |
ccc6cda3 | 6924 | |
ccc6cda3 | 6925 | |
3185942a JA |
6926 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
6927 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
f73dda09 | 6928 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
3185942a | 6929 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6930 | else |
f73dda09 | 6931 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6932 | /* confdefs.h. */ |
6933 | _ACEOF | |
6934 | cat confdefs.h >>conftest.$ac_ext | |
6935 | cat >>conftest.$ac_ext <<_ACEOF | |
6936 | /* end confdefs.h. */ | |
f73dda09 JA |
6937 | $ac_includes_default |
6938 | int | |
ccc6cda3 JA |
6939 | main () |
6940 | { | |
b80f6443 JA |
6941 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
6942 | test_array [0] = 0 | |
6943 | ||
f73dda09 JA |
6944 | ; |
6945 | return 0; | |
ccc6cda3 | 6946 | } |
f73dda09 JA |
6947 | _ACEOF |
6948 | rm -f conftest.$ac_objext | |
3185942a JA |
6949 | if { (ac_try="$ac_compile" |
6950 | case "(($ac_try" in | |
6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6952 | *) ac_try_echo=$ac_try;; | |
6953 | esac | |
6954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6955 | $as_echo "$ac_try_echo") >&5 | |
6956 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6957 | ac_status=$? |
0628567a JA |
6958 | grep -v '^ *+' conftest.er1 >conftest.err |
6959 | rm -f conftest.er1 | |
6960 | cat conftest.err >&5 | |
3185942a JA |
6961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6962 | (exit $ac_status); } && { | |
6963 | test -z "$ac_c_werror_flag" || | |
6964 | test ! -s conftest.err | |
6965 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6966 | ac_cv_c_char_unsigned=no |
ccc6cda3 | 6967 | else |
3185942a | 6968 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6969 | sed 's/^/| /' conftest.$ac_ext >&5 |
6970 | ||
3185942a | 6971 | ac_cv_c_char_unsigned=yes |
ccc6cda3 | 6972 | fi |
3185942a JA |
6973 | |
6974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6975 | fi |
3185942a JA |
6976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
6977 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
f73dda09 | 6978 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
b80f6443 | 6979 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6980 | #define __CHAR_UNSIGNED__ 1 |
b80f6443 | 6981 | _ACEOF |
ccc6cda3 | 6982 | |
ccc6cda3 JA |
6983 | fi |
6984 | ||
ccc6cda3 | 6985 | |
b80f6443 JA |
6986 | |
6987 | MKINSTALLDIRS= | |
6988 | if test -n "$ac_aux_dir"; then | |
6989 | case "$ac_aux_dir" in | |
6990 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
6991 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
6992 | esac | |
6993 | fi | |
6994 | if test -z "$MKINSTALLDIRS"; then | |
6995 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
6996 | fi | |
6997 | ||
6998 | ||
6999 | ||
3185942a JA |
7000 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7001 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7002 | # Check whether --enable-nls was given. | |
b80f6443 | 7003 | if test "${enable_nls+set}" = set; then |
3185942a | 7004 | enableval=$enable_nls; USE_NLS=$enableval |
ccc6cda3 | 7005 | else |
b80f6443 | 7006 | USE_NLS=yes |
3185942a JA |
7007 | fi |
7008 | ||
7009 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7010 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 JA |
7011 | |
7012 | ||
7013 | ||
7014 | ||
7015 | ||
7016 | ||
7017 | # Prepare PATH_SEPARATOR. | |
7018 | # The user is always right. | |
7019 | if test "${PATH_SEPARATOR+set}" != set; then | |
7020 | echo "#! /bin/sh" >conf$$.sh | |
7021 | echo "exit 0" >>conf$$.sh | |
7022 | chmod +x conf$$.sh | |
7023 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7024 | PATH_SEPARATOR=';' | |
7025 | else | |
7026 | PATH_SEPARATOR=: | |
7027 | fi | |
7028 | rm -f conf$$.sh | |
ccc6cda3 | 7029 | fi |
ccc6cda3 | 7030 | |
b80f6443 JA |
7031 | # Find out how to test for executable files. Don't use a zero-byte file, |
7032 | # as systems may use methods other than mode bits to determine executability. | |
7033 | cat >conf$$.file <<_ASEOF | |
7034 | #! /bin/sh | |
7035 | exit 0 | |
7036 | _ASEOF | |
7037 | chmod +x conf$$.file | |
7038 | if test -x conf$$.file >/dev/null 2>&1; then | |
7039 | ac_executable_p="test -x" | |
7040 | else | |
7041 | ac_executable_p="test -f" | |
f73dda09 | 7042 | fi |
b80f6443 | 7043 | rm -f conf$$.file |
ccc6cda3 | 7044 | |
b80f6443 JA |
7045 | # Extract the first word of "msgfmt", so it can be a program name with args. |
7046 | set dummy msgfmt; ac_word=$2 | |
3185942a JA |
7047 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7048 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7049 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
3185942a | 7050 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7051 | else |
b80f6443 JA |
7052 | case "$MSGFMT" in |
7053 | [\\/]* | ?:[\\/]*) | |
7054 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7055 | ;; | |
7056 | *) | |
7057 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7058 | for ac_dir in $PATH; do | |
7059 | IFS="$ac_save_IFS" | |
7060 | test -z "$ac_dir" && ac_dir=. | |
7061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7062 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7063 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
7064 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7065 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7066 | break 2 | |
7067 | fi | |
7068 | fi | |
7069 | done | |
7070 | done | |
7071 | IFS="$ac_save_IFS" | |
7072 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7073 | ;; | |
7074 | esac | |
7075 | fi | |
7076 | MSGFMT="$ac_cv_path_MSGFMT" | |
7077 | if test "$MSGFMT" != ":"; then | |
3185942a JA |
7078 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7079 | $as_echo "$MSGFMT" >&6; } | |
f73dda09 | 7080 | else |
3185942a JA |
7081 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7082 | $as_echo "no" >&6; } | |
f73dda09 | 7083 | fi |
b80f6443 JA |
7084 | |
7085 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7086 | set dummy gmsgfmt; ac_word=$2 | |
3185942a JA |
7087 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7088 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7089 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
3185942a | 7090 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
7091 | else |
7092 | case $GMSGFMT in | |
7093 | [\\/]* | ?:[\\/]*) | |
7094 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7095 | ;; | |
7096 | *) | |
7097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7098 | for as_dir in $PATH | |
7099 | do | |
7100 | IFS=$as_save_IFS | |
7101 | test -z "$as_dir" && as_dir=. | |
7102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 7103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 7104 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
3185942a | 7105 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
7106 | break 2 |
7107 | fi | |
7108 | done | |
7109 | done | |
3185942a | 7110 | IFS=$as_save_IFS |
b80f6443 JA |
7111 | |
7112 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7113 | ;; | |
7114 | esac | |
7115 | fi | |
7116 | GMSGFMT=$ac_cv_path_GMSGFMT | |
b80f6443 | 7117 | if test -n "$GMSGFMT"; then |
3185942a JA |
7118 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7119 | $as_echo "$GMSGFMT" >&6; } | |
b80f6443 | 7120 | else |
3185942a JA |
7121 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7122 | $as_echo "no" >&6; } | |
f73dda09 | 7123 | fi |
b80f6443 JA |
7124 | |
7125 | ||
7126 | ||
3185942a | 7127 | |
b80f6443 JA |
7128 | # Prepare PATH_SEPARATOR. |
7129 | # The user is always right. | |
7130 | if test "${PATH_SEPARATOR+set}" != set; then | |
7131 | echo "#! /bin/sh" >conf$$.sh | |
7132 | echo "exit 0" >>conf$$.sh | |
7133 | chmod +x conf$$.sh | |
7134 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7135 | PATH_SEPARATOR=';' | |
7136 | else | |
7137 | PATH_SEPARATOR=: | |
7138 | fi | |
7139 | rm -f conf$$.sh | |
f73dda09 | 7140 | fi |
ccc6cda3 | 7141 | |
b80f6443 JA |
7142 | # Find out how to test for executable files. Don't use a zero-byte file, |
7143 | # as systems may use methods other than mode bits to determine executability. | |
7144 | cat >conf$$.file <<_ASEOF | |
7145 | #! /bin/sh | |
7146 | exit 0 | |
7147 | _ASEOF | |
7148 | chmod +x conf$$.file | |
7149 | if test -x conf$$.file >/dev/null 2>&1; then | |
7150 | ac_executable_p="test -x" | |
ccc6cda3 | 7151 | else |
b80f6443 JA |
7152 | ac_executable_p="test -f" |
7153 | fi | |
7154 | rm -f conf$$.file | |
7155 | ||
7156 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7157 | set dummy xgettext; ac_word=$2 | |
3185942a JA |
7158 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7159 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7160 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
3185942a | 7161 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7162 | else |
b80f6443 JA |
7163 | case "$XGETTEXT" in |
7164 | [\\/]* | ?:[\\/]*) | |
7165 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7166 | ;; | |
7167 | *) | |
7168 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7169 | for ac_dir in $PATH; do | |
7170 | IFS="$ac_save_IFS" | |
7171 | test -z "$ac_dir" && ac_dir=. | |
7172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7173 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7174 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7175 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7176 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7177 | break 2 | |
7178 | fi | |
7179 | fi | |
7180 | done | |
7181 | done | |
7182 | IFS="$ac_save_IFS" | |
7183 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7184 | ;; | |
7185 | esac | |
7186 | fi | |
7187 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7188 | if test "$XGETTEXT" != ":"; then | |
3185942a JA |
7189 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7190 | $as_echo "$XGETTEXT" >&6; } | |
b80f6443 | 7191 | else |
3185942a JA |
7192 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7193 | $as_echo "no" >&6; } | |
b80f6443 | 7194 | fi |
f73dda09 | 7195 | |
b80f6443 JA |
7196 | rm -f messages.po |
7197 | ||
7198 | ||
7199 | # Prepare PATH_SEPARATOR. | |
7200 | # The user is always right. | |
7201 | if test "${PATH_SEPARATOR+set}" != set; then | |
7202 | echo "#! /bin/sh" >conf$$.sh | |
7203 | echo "exit 0" >>conf$$.sh | |
7204 | chmod +x conf$$.sh | |
7205 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7206 | PATH_SEPARATOR=';' | |
7207 | else | |
7208 | PATH_SEPARATOR=: | |
7209 | fi | |
7210 | rm -f conf$$.sh | |
7211 | fi | |
7212 | ||
7213 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7214 | # as systems may use methods other than mode bits to determine executability. | |
7215 | cat >conf$$.file <<_ASEOF | |
7216 | #! /bin/sh | |
7217 | exit 0 | |
7218 | _ASEOF | |
7219 | chmod +x conf$$.file | |
7220 | if test -x conf$$.file >/dev/null 2>&1; then | |
7221 | ac_executable_p="test -x" | |
7222 | else | |
7223 | ac_executable_p="test -f" | |
7224 | fi | |
7225 | rm -f conf$$.file | |
7226 | ||
7227 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7228 | set dummy msgmerge; ac_word=$2 | |
3185942a JA |
7229 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7230 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7231 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
3185942a | 7232 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
7233 | else |
7234 | case "$MSGMERGE" in | |
7235 | [\\/]* | ?:[\\/]*) | |
7236 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7237 | ;; | |
7238 | *) | |
7239 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7240 | for ac_dir in $PATH; do | |
7241 | IFS="$ac_save_IFS" | |
7242 | test -z "$ac_dir" && ac_dir=. | |
7243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7244 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7245 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
7246 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7247 | break 2 | |
7248 | fi | |
7249 | fi | |
7250 | done | |
7251 | done | |
7252 | IFS="$ac_save_IFS" | |
7253 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7254 | ;; | |
7255 | esac | |
7256 | fi | |
7257 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7258 | if test "$MSGMERGE" != ":"; then | |
3185942a JA |
7259 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
7260 | $as_echo "$MSGMERGE" >&6; } | |
b80f6443 | 7261 | else |
3185942a JA |
7262 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7263 | $as_echo "no" >&6; } | |
b80f6443 JA |
7264 | fi |
7265 | ||
7266 | ||
7267 | if test "$GMSGFMT" != ":"; then | |
7268 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
7269 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7270 | : ; | |
7271 | else | |
7272 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3185942a JA |
7273 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
7274 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
b80f6443 JA |
7275 | GMSGFMT=":" |
7276 | fi | |
7277 | fi | |
7278 | ||
7279 | if test "$XGETTEXT" != ":"; then | |
7280 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7281 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7282 | : ; | |
7283 | else | |
3185942a JA |
7284 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
7285 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
b80f6443 JA |
7286 | XGETTEXT=":" |
7287 | fi | |
7288 | rm -f messages.po | |
7289 | fi | |
7290 | ||
3185942a | 7291 | ac_config_commands="$ac_config_commands default-1" |
b80f6443 JA |
7292 | |
7293 | ||
3185942a JA |
7294 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
7295 | $as_echo_n "checking for off_t... " >&6; } | |
b80f6443 | 7296 | if test "${ac_cv_type_off_t+set}" = set; then |
3185942a | 7297 | $as_echo_n "(cached) " >&6 |
b80f6443 | 7298 | else |
3185942a JA |
7299 | ac_cv_type_off_t=no |
7300 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7301 | /* confdefs.h. */ |
7302 | _ACEOF | |
7303 | cat confdefs.h >>conftest.$ac_ext | |
7304 | cat >>conftest.$ac_ext <<_ACEOF | |
7305 | /* end confdefs.h. */ | |
b80f6443 | 7306 | $ac_includes_default |
f73dda09 JA |
7307 | int |
7308 | main () | |
7309 | { | |
b80f6443 | 7310 | if (sizeof (off_t)) |
3185942a | 7311 | return 0; |
f73dda09 JA |
7312 | ; |
7313 | return 0; | |
7314 | } | |
7315 | _ACEOF | |
b80f6443 | 7316 | rm -f conftest.$ac_objext |
3185942a JA |
7317 | if { (ac_try="$ac_compile" |
7318 | case "(($ac_try" in | |
7319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7320 | *) ac_try_echo=$ac_try;; | |
7321 | esac | |
7322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7323 | $as_echo "$ac_try_echo") >&5 | |
7324 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7325 | ac_status=$? |
0628567a JA |
7326 | grep -v '^ *+' conftest.er1 >conftest.err |
7327 | rm -f conftest.er1 | |
7328 | cat conftest.err >&5 | |
3185942a JA |
7329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7330 | (exit $ac_status); } && { | |
7331 | test -z "$ac_c_werror_flag" || | |
7332 | test ! -s conftest.err | |
7333 | } && test -s conftest.$ac_objext; then | |
7334 | cat >conftest.$ac_ext <<_ACEOF | |
7335 | /* confdefs.h. */ | |
7336 | _ACEOF | |
7337 | cat confdefs.h >>conftest.$ac_ext | |
7338 | cat >>conftest.$ac_ext <<_ACEOF | |
7339 | /* end confdefs.h. */ | |
7340 | $ac_includes_default | |
7341 | int | |
7342 | main () | |
7343 | { | |
7344 | if (sizeof ((off_t))) | |
7345 | return 0; | |
7346 | ; | |
7347 | return 0; | |
7348 | } | |
7349 | _ACEOF | |
7350 | rm -f conftest.$ac_objext | |
7351 | if { (ac_try="$ac_compile" | |
7352 | case "(($ac_try" in | |
7353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7354 | *) ac_try_echo=$ac_try;; | |
7355 | esac | |
7356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7357 | $as_echo "$ac_try_echo") >&5 | |
7358 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7359 | ac_status=$? |
3185942a JA |
7360 | grep -v '^ *+' conftest.er1 >conftest.err |
7361 | rm -f conftest.er1 | |
7362 | cat conftest.err >&5 | |
7363 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); } && { | |
7365 | test -z "$ac_c_werror_flag" || | |
7366 | test ! -s conftest.err | |
7367 | } && test -s conftest.$ac_objext; then | |
7368 | : | |
7369 | else | |
7370 | $as_echo "$as_me: failed program was:" >&5 | |
7371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7372 | ||
7373 | ac_cv_type_off_t=yes | |
7374 | fi | |
7375 | ||
7376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 7377 | else |
3185942a | 7378 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7379 | sed 's/^/| /' conftest.$ac_ext >&5 |
7380 | ||
3185942a | 7381 | |
f73dda09 | 7382 | fi |
3185942a JA |
7383 | |
7384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 7385 | fi |
3185942a JA |
7386 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
7387 | $as_echo "$ac_cv_type_off_t" >&6; } | |
7388 | if test "x$ac_cv_type_off_t" = x""yes; then | |
b80f6443 JA |
7389 | : |
7390 | else | |
7391 | ||
7392 | cat >>confdefs.h <<_ACEOF | |
3185942a | 7393 | #define off_t long int |
b80f6443 | 7394 | _ACEOF |
ccc6cda3 | 7395 | |
f73dda09 | 7396 | fi |
ccc6cda3 | 7397 | |
3185942a JA |
7398 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
7399 | $as_echo_n "checking for size_t... " >&6; } | |
b80f6443 | 7400 | if test "${ac_cv_type_size_t+set}" = set; then |
3185942a | 7401 | $as_echo_n "(cached) " >&6 |
f73dda09 | 7402 | else |
3185942a JA |
7403 | ac_cv_type_size_t=no |
7404 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7405 | /* confdefs.h. */ |
7406 | _ACEOF | |
7407 | cat confdefs.h >>conftest.$ac_ext | |
7408 | cat >>conftest.$ac_ext <<_ACEOF | |
7409 | /* end confdefs.h. */ | |
b80f6443 | 7410 | $ac_includes_default |
f73dda09 JA |
7411 | int |
7412 | main () | |
7413 | { | |
b80f6443 | 7414 | if (sizeof (size_t)) |
3185942a | 7415 | return 0; |
f73dda09 JA |
7416 | ; |
7417 | return 0; | |
7418 | } | |
7419 | _ACEOF | |
7420 | rm -f conftest.$ac_objext | |
3185942a JA |
7421 | if { (ac_try="$ac_compile" |
7422 | case "(($ac_try" in | |
7423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7424 | *) ac_try_echo=$ac_try;; | |
7425 | esac | |
7426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7427 | $as_echo "$ac_try_echo") >&5 | |
7428 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7429 | ac_status=$? |
0628567a JA |
7430 | grep -v '^ *+' conftest.er1 >conftest.err |
7431 | rm -f conftest.er1 | |
7432 | cat conftest.err >&5 | |
3185942a JA |
7433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7434 | (exit $ac_status); } && { | |
7435 | test -z "$ac_c_werror_flag" || | |
7436 | test ! -s conftest.err | |
7437 | } && test -s conftest.$ac_objext; then | |
7438 | cat >conftest.$ac_ext <<_ACEOF | |
7439 | /* confdefs.h. */ | |
7440 | _ACEOF | |
7441 | cat confdefs.h >>conftest.$ac_ext | |
7442 | cat >>conftest.$ac_ext <<_ACEOF | |
7443 | /* end confdefs.h. */ | |
7444 | $ac_includes_default | |
7445 | int | |
7446 | main () | |
7447 | { | |
7448 | if (sizeof ((size_t))) | |
7449 | return 0; | |
7450 | ; | |
7451 | return 0; | |
7452 | } | |
7453 | _ACEOF | |
7454 | rm -f conftest.$ac_objext | |
7455 | if { (ac_try="$ac_compile" | |
7456 | case "(($ac_try" in | |
7457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7458 | *) ac_try_echo=$ac_try;; | |
7459 | esac | |
7460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7461 | $as_echo "$ac_try_echo") >&5 | |
7462 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7463 | ac_status=$? |
3185942a JA |
7464 | grep -v '^ *+' conftest.er1 >conftest.err |
7465 | rm -f conftest.er1 | |
7466 | cat conftest.err >&5 | |
7467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7468 | (exit $ac_status); } && { | |
7469 | test -z "$ac_c_werror_flag" || | |
7470 | test ! -s conftest.err | |
7471 | } && test -s conftest.$ac_objext; then | |
7472 | : | |
7473 | else | |
7474 | $as_echo "$as_me: failed program was:" >&5 | |
7475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7476 | ||
7477 | ac_cv_type_size_t=yes | |
7478 | fi | |
7479 | ||
7480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7481 | else |
3185942a | 7482 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7483 | sed 's/^/| /' conftest.$ac_ext >&5 |
7484 | ||
3185942a | 7485 | |
ccc6cda3 | 7486 | fi |
3185942a JA |
7487 | |
7488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7489 | fi |
3185942a JA |
7490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
7491 | $as_echo "$ac_cv_type_size_t" >&6; } | |
7492 | if test "x$ac_cv_type_size_t" = x""yes; then | |
b80f6443 JA |
7493 | : |
7494 | else | |
ccc6cda3 | 7495 | |
b80f6443 | 7496 | cat >>confdefs.h <<_ACEOF |
3185942a | 7497 | #define size_t unsigned int |
b80f6443 | 7498 | _ACEOF |
ccc6cda3 | 7499 | |
ccc6cda3 JA |
7500 | fi |
7501 | ||
b80f6443 JA |
7502 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
7503 | # for constant arguments. Useless! | |
3185942a JA |
7504 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
7505 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b80f6443 | 7506 | if test "${ac_cv_working_alloca_h+set}" = set; then |
3185942a | 7507 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
7508 | else |
7509 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7510 | /* confdefs.h. */ |
7511 | _ACEOF | |
7512 | cat confdefs.h >>conftest.$ac_ext | |
7513 | cat >>conftest.$ac_ext <<_ACEOF | |
7514 | /* end confdefs.h. */ | |
b80f6443 JA |
7515 | #include <alloca.h> |
7516 | int | |
7517 | main () | |
7518 | { | |
7519 | char *p = (char *) alloca (2 * sizeof (int)); | |
3185942a | 7520 | if (p) return 0; |
b80f6443 JA |
7521 | ; |
7522 | return 0; | |
7523 | } | |
7524 | _ACEOF | |
7525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7526 | if { (ac_try="$ac_link" |
7527 | case "(($ac_try" in | |
7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7529 | *) ac_try_echo=$ac_try;; | |
7530 | esac | |
7531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7532 | $as_echo "$ac_try_echo") >&5 | |
7533 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7534 | ac_status=$? |
0628567a JA |
7535 | grep -v '^ *+' conftest.er1 >conftest.err |
7536 | rm -f conftest.er1 | |
7537 | cat conftest.err >&5 | |
3185942a JA |
7538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7539 | (exit $ac_status); } && { | |
7540 | test -z "$ac_c_werror_flag" || | |
7541 | test ! -s conftest.err | |
7542 | } && test -s conftest$ac_exeext && { | |
7543 | test "$cross_compiling" = yes || | |
7544 | $as_test_x conftest$ac_exeext | |
7545 | }; then | |
b80f6443 | 7546 | ac_cv_working_alloca_h=yes |
ccc6cda3 | 7547 | else |
3185942a | 7548 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7549 | sed 's/^/| /' conftest.$ac_ext >&5 |
7550 | ||
3185942a | 7551 | ac_cv_working_alloca_h=no |
ccc6cda3 | 7552 | fi |
3185942a JA |
7553 | |
7554 | rm -rf conftest.dSYM | |
7555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7556 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 7557 | fi |
3185942a JA |
7558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
7559 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b80f6443 JA |
7560 | if test $ac_cv_working_alloca_h = yes; then |
7561 | ||
7562 | cat >>confdefs.h <<\_ACEOF | |
7563 | #define HAVE_ALLOCA_H 1 | |
7564 | _ACEOF | |
ccc6cda3 JA |
7565 | |
7566 | fi | |
7567 | ||
3185942a JA |
7568 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
7569 | $as_echo_n "checking for alloca... " >&6; } | |
b80f6443 | 7570 | if test "${ac_cv_func_alloca_works+set}" = set; then |
3185942a | 7571 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
7572 | else |
7573 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7574 | /* confdefs.h. */ |
7575 | _ACEOF | |
7576 | cat confdefs.h >>conftest.$ac_ext | |
7577 | cat >>conftest.$ac_ext <<_ACEOF | |
7578 | /* end confdefs.h. */ | |
f73dda09 JA |
7579 | #ifdef __GNUC__ |
7580 | # define alloca __builtin_alloca | |
ccc6cda3 | 7581 | #else |
f73dda09 JA |
7582 | # ifdef _MSC_VER |
7583 | # include <malloc.h> | |
7584 | # define alloca _alloca | |
7585 | # else | |
3185942a | 7586 | # ifdef HAVE_ALLOCA_H |
f73dda09 JA |
7587 | # include <alloca.h> |
7588 | # else | |
7589 | # ifdef _AIX | |
7590 | #pragma alloca | |
7591 | # else | |
7592 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7593 | char *alloca (); | |
7594 | # endif | |
7595 | # endif | |
7596 | # endif | |
7597 | # endif | |
ccc6cda3 JA |
7598 | #endif |
7599 | ||
f73dda09 JA |
7600 | int |
7601 | main () | |
7602 | { | |
7603 | char *p = (char *) alloca (1); | |
3185942a | 7604 | if (p) return 0; |
f73dda09 JA |
7605 | ; |
7606 | return 0; | |
7607 | } | |
7608 | _ACEOF | |
7609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7610 | if { (ac_try="$ac_link" |
7611 | case "(($ac_try" in | |
7612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7613 | *) ac_try_echo=$ac_try;; | |
7614 | esac | |
7615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7616 | $as_echo "$ac_try_echo") >&5 | |
7617 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7618 | ac_status=$? |
0628567a JA |
7619 | grep -v '^ *+' conftest.er1 >conftest.err |
7620 | rm -f conftest.er1 | |
7621 | cat conftest.err >&5 | |
3185942a JA |
7622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7623 | (exit $ac_status); } && { | |
7624 | test -z "$ac_c_werror_flag" || | |
7625 | test ! -s conftest.err | |
7626 | } && test -s conftest$ac_exeext && { | |
7627 | test "$cross_compiling" = yes || | |
7628 | $as_test_x conftest$ac_exeext | |
7629 | }; then | |
f73dda09 | 7630 | ac_cv_func_alloca_works=yes |
ccc6cda3 | 7631 | else |
3185942a | 7632 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7633 | sed 's/^/| /' conftest.$ac_ext >&5 |
7634 | ||
3185942a | 7635 | ac_cv_func_alloca_works=no |
ccc6cda3 | 7636 | fi |
3185942a JA |
7637 | |
7638 | rm -rf conftest.dSYM | |
7639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7640 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 7641 | fi |
3185942a JA |
7642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
7643 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
f73dda09 JA |
7644 | |
7645 | if test $ac_cv_func_alloca_works = yes; then | |
ccc6cda3 | 7646 | |
b80f6443 | 7647 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 7648 | #define HAVE_ALLOCA 1 |
b80f6443 | 7649 | _ACEOF |
f73dda09 | 7650 | |
ccc6cda3 | 7651 | else |
f73dda09 JA |
7652 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
7653 | # that cause trouble. Some versions do not even contain alloca or | |
7654 | # contain a buggy version. If you still want to use their alloca, | |
7655 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
ccc6cda3 | 7656 | |
3185942a | 7657 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ccc6cda3 | 7658 | |
b80f6443 | 7659 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 7660 | #define C_ALLOCA 1 |
b80f6443 | 7661 | _ACEOF |
f73dda09 | 7662 | |
b80f6443 | 7663 | |
3185942a JA |
7664 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
7665 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
f73dda09 | 7666 | if test "${ac_cv_os_cray+set}" = set; then |
3185942a | 7667 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7668 | else |
f73dda09 | 7669 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7670 | /* confdefs.h. */ |
7671 | _ACEOF | |
7672 | cat confdefs.h >>conftest.$ac_ext | |
7673 | cat >>conftest.$ac_ext <<_ACEOF | |
7674 | /* end confdefs.h. */ | |
3185942a | 7675 | #if defined CRAY && ! defined CRAY2 |
f73dda09 JA |
7676 | webecray |
7677 | #else | |
7678 | wenotbecray | |
7679 | #endif | |
ccc6cda3 | 7680 | |
f73dda09 JA |
7681 | _ACEOF |
7682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 7683 | $EGREP "webecray" >/dev/null 2>&1; then |
f73dda09 | 7684 | ac_cv_os_cray=yes |
ccc6cda3 | 7685 | else |
f73dda09 | 7686 | ac_cv_os_cray=no |
ccc6cda3 JA |
7687 | fi |
7688 | rm -f conftest* | |
ccc6cda3 JA |
7689 | |
7690 | fi | |
3185942a JA |
7691 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
7692 | $as_echo "$ac_cv_os_cray" >&6; } | |
f73dda09 JA |
7693 | if test $ac_cv_os_cray = yes; then |
7694 | for ac_func in _getb67 GETB67 getb67; do | |
3185942a JA |
7695 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7696 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7697 | $as_echo_n "checking for $ac_func... " >&6; } | |
7698 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
7699 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 7700 | else |
f73dda09 | 7701 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7702 | /* confdefs.h. */ |
7703 | _ACEOF | |
7704 | cat confdefs.h >>conftest.$ac_ext | |
7705 | cat >>conftest.$ac_ext <<_ACEOF | |
7706 | /* end confdefs.h. */ | |
7707 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7708 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7709 | #define $ac_func innocuous_$ac_func | |
7710 | ||
ccc6cda3 | 7711 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
7712 | which can conflict with char $ac_func (); below. |
7713 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7714 | <limits.h> exists even on freestanding compilers. */ | |
7715 | ||
7716 | #ifdef __STDC__ | |
7717 | # include <limits.h> | |
7718 | #else | |
7719 | # include <assert.h> | |
7720 | #endif | |
7721 | ||
7722 | #undef $ac_func | |
7723 | ||
3185942a JA |
7724 | /* Override any GCC internal prototype to avoid an error. |
7725 | Use char because int might match the return type of a GCC | |
7726 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
7727 | #ifdef __cplusplus |
7728 | extern "C" | |
7729 | #endif | |
f73dda09 | 7730 | char $ac_func (); |
ccc6cda3 JA |
7731 | /* The GNU C library defines this for functions which it implements |
7732 | to always fail with ENOSYS. Some functions are actually named | |
7733 | something starting with __ and the normal name is an alias. */ | |
3185942a | 7734 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ccc6cda3 | 7735 | choke me |
ccc6cda3 JA |
7736 | #endif |
7737 | ||
0628567a JA |
7738 | int |
7739 | main () | |
7740 | { | |
3185942a | 7741 | return $ac_func (); |
f73dda09 JA |
7742 | ; |
7743 | return 0; | |
7744 | } | |
7745 | _ACEOF | |
7746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7747 | if { (ac_try="$ac_link" |
7748 | case "(($ac_try" in | |
7749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7750 | *) ac_try_echo=$ac_try;; | |
7751 | esac | |
7752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7753 | $as_echo "$ac_try_echo") >&5 | |
7754 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7755 | ac_status=$? |
0628567a JA |
7756 | grep -v '^ *+' conftest.er1 >conftest.err |
7757 | rm -f conftest.er1 | |
7758 | cat conftest.err >&5 | |
3185942a JA |
7759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7760 | (exit $ac_status); } && { | |
7761 | test -z "$ac_c_werror_flag" || | |
7762 | test ! -s conftest.err | |
7763 | } && test -s conftest$ac_exeext && { | |
7764 | test "$cross_compiling" = yes || | |
7765 | $as_test_x conftest$ac_exeext | |
7766 | }; then | |
f73dda09 JA |
7767 | eval "$as_ac_var=yes" |
7768 | else | |
3185942a | 7769 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7770 | sed 's/^/| /' conftest.$ac_ext >&5 |
7771 | ||
3185942a | 7772 | eval "$as_ac_var=no" |
f73dda09 | 7773 | fi |
3185942a JA |
7774 | |
7775 | rm -rf conftest.dSYM | |
7776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7777 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 7778 | fi |
3185942a JA |
7779 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7780 | $as_echo "$as_val"'` | |
7781 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7782 | $as_echo "$ac_res" >&6; } | |
7783 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7784 | $as_echo "$as_val"'` | |
7785 | if test "x$as_val" = x""yes; then | |
f73dda09 | 7786 | |
b80f6443 | 7787 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 7788 | #define CRAY_STACKSEG_END $ac_func |
b80f6443 | 7789 | _ACEOF |
ccc6cda3 | 7790 | |
f73dda09 | 7791 | break |
ccc6cda3 | 7792 | fi |
ccc6cda3 | 7793 | |
f73dda09 | 7794 | done |
ccc6cda3 JA |
7795 | fi |
7796 | ||
3185942a JA |
7797 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
7798 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
f73dda09 | 7799 | if test "${ac_cv_c_stack_direction+set}" = set; then |
3185942a | 7800 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7801 | else |
f73dda09 JA |
7802 | if test "$cross_compiling" = yes; then |
7803 | ac_cv_c_stack_direction=0 | |
7804 | else | |
7805 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7806 | /* confdefs.h. */ |
7807 | _ACEOF | |
7808 | cat confdefs.h >>conftest.$ac_ext | |
7809 | cat >>conftest.$ac_ext <<_ACEOF | |
7810 | /* end confdefs.h. */ | |
3185942a | 7811 | $ac_includes_default |
f73dda09 JA |
7812 | int |
7813 | find_stack_direction () | |
7814 | { | |
7815 | static char *addr = 0; | |
7816 | auto char dummy; | |
7817 | if (addr == 0) | |
7818 | { | |
7819 | addr = &dummy; | |
7820 | return find_stack_direction (); | |
7821 | } | |
7822 | else | |
7823 | return (&dummy > addr) ? 1 : -1; | |
7824 | } | |
ccc6cda3 | 7825 | |
f73dda09 JA |
7826 | int |
7827 | main () | |
7828 | { | |
3185942a | 7829 | return find_stack_direction () < 0; |
f73dda09 JA |
7830 | } |
7831 | _ACEOF | |
7832 | rm -f conftest$ac_exeext | |
3185942a JA |
7833 | if { (ac_try="$ac_link" |
7834 | case "(($ac_try" in | |
7835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7836 | *) ac_try_echo=$ac_try;; | |
7837 | esac | |
7838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7839 | $as_echo "$ac_try_echo") >&5 | |
7840 | (eval "$ac_link") 2>&5 | |
f73dda09 | 7841 | ac_status=$? |
3185942a | 7842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 7843 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
7844 | { (case "(($ac_try" in |
7845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7846 | *) ac_try_echo=$ac_try;; | |
7847 | esac | |
7848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7849 | $as_echo "$ac_try_echo") >&5 | |
7850 | (eval "$ac_try") 2>&5 | |
f73dda09 | 7851 | ac_status=$? |
3185942a | 7852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
7853 | (exit $ac_status); }; }; then |
7854 | ac_cv_c_stack_direction=1 | |
ccc6cda3 | 7855 | else |
3185942a JA |
7856 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7857 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
7858 | sed 's/^/| /' conftest.$ac_ext >&5 |
7859 | ||
b80f6443 | 7860 | ( exit $ac_status ) |
f73dda09 | 7861 | ac_cv_c_stack_direction=-1 |
ccc6cda3 | 7862 | fi |
3185942a JA |
7863 | rm -rf conftest.dSYM |
7864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7865 | fi |
3185942a JA |
7866 | |
7867 | ||
f73dda09 | 7868 | fi |
3185942a JA |
7869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7870 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ccc6cda3 | 7871 | |
b80f6443 | 7872 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 7873 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b80f6443 JA |
7874 | _ACEOF |
7875 | ||
ccc6cda3 | 7876 | |
ccc6cda3 JA |
7877 | fi |
7878 | ||
b80f6443 JA |
7879 | |
7880 | ||
7881 | for ac_header in stdlib.h unistd.h | |
7882 | do | |
3185942a JA |
7883 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7884 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7885 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7886 | $as_echo_n "checking for $ac_header... " >&6; } | |
7887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7888 | $as_echo_n "(cached) " >&6 | |
7889 | fi | |
7890 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7891 | $as_echo "$as_val"'` | |
7892 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7893 | $as_echo "$ac_res" >&6; } | |
ccc6cda3 | 7894 | else |
b80f6443 | 7895 | # Is the header compilable? |
3185942a JA |
7896 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7897 | $as_echo_n "checking $ac_header usability... " >&6; } | |
f73dda09 | 7898 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7899 | /* confdefs.h. */ |
7900 | _ACEOF | |
7901 | cat confdefs.h >>conftest.$ac_ext | |
7902 | cat >>conftest.$ac_ext <<_ACEOF | |
7903 | /* end confdefs.h. */ | |
f73dda09 | 7904 | $ac_includes_default |
b80f6443 | 7905 | #include <$ac_header> |
f73dda09 JA |
7906 | _ACEOF |
7907 | rm -f conftest.$ac_objext | |
3185942a JA |
7908 | if { (ac_try="$ac_compile" |
7909 | case "(($ac_try" in | |
7910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7911 | *) ac_try_echo=$ac_try;; | |
7912 | esac | |
7913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7914 | $as_echo "$ac_try_echo") >&5 | |
7915 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7916 | ac_status=$? |
0628567a JA |
7917 | grep -v '^ *+' conftest.er1 >conftest.err |
7918 | rm -f conftest.er1 | |
7919 | cat conftest.err >&5 | |
3185942a JA |
7920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7921 | (exit $ac_status); } && { | |
7922 | test -z "$ac_c_werror_flag" || | |
7923 | test ! -s conftest.err | |
7924 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 7925 | ac_header_compiler=yes |
f73dda09 | 7926 | else |
3185942a | 7927 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7928 | sed 's/^/| /' conftest.$ac_ext >&5 |
7929 | ||
3185942a | 7930 | ac_header_compiler=no |
f73dda09 | 7931 | fi |
3185942a JA |
7932 | |
7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7934 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7935 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
7936 | |
7937 | # Is the header present? | |
3185942a JA |
7938 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7939 | $as_echo_n "checking $ac_header presence... " >&6; } | |
f73dda09 | 7940 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7941 | /* confdefs.h. */ |
7942 | _ACEOF | |
7943 | cat confdefs.h >>conftest.$ac_ext | |
7944 | cat >>conftest.$ac_ext <<_ACEOF | |
7945 | /* end confdefs.h. */ | |
b80f6443 JA |
7946 | #include <$ac_header> |
7947 | _ACEOF | |
3185942a JA |
7948 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7949 | case "(($ac_try" in | |
7950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7951 | *) ac_try_echo=$ac_try;; | |
7952 | esac | |
7953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7954 | $as_echo "$ac_try_echo") >&5 | |
7955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 7956 | ac_status=$? |
0628567a | 7957 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
7958 | rm -f conftest.er1 |
7959 | cat conftest.err >&5 | |
3185942a JA |
7960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7961 | (exit $ac_status); } >/dev/null && { | |
7962 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7963 | test ! -s conftest.err | |
7964 | }; then | |
b80f6443 | 7965 | ac_header_preproc=yes |
f73dda09 | 7966 | else |
3185942a | 7967 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7968 | sed 's/^/| /' conftest.$ac_ext >&5 |
7969 | ||
b80f6443 JA |
7970 | ac_header_preproc=no |
7971 | fi | |
3185942a | 7972 | |
b80f6443 | 7973 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
7974 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7975 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
7976 | |
7977 | # So? What about this header? | |
0628567a JA |
7978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7979 | yes:no: ) | |
3185942a JA |
7980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7981 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7983 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
7984 | ac_header_preproc=yes |
7985 | ;; | |
7986 | no:yes:* ) | |
3185942a JA |
7987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7988 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7990 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7992 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7994 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7996 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7998 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7999 | ( cat <<\_ASBOX | |
0628567a JA |
8000 | ## ------------------------------- ## |
8001 | ## Report this to bug-bash@gnu.org ## | |
8002 | ## ------------------------------- ## | |
8003 | _ASBOX | |
3185942a | 8004 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 8005 | ;; |
b80f6443 | 8006 | esac |
3185942a JA |
8007 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8008 | $as_echo_n "checking for $ac_header... " >&6; } | |
8009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8010 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 8011 | else |
0628567a | 8012 | eval "$as_ac_Header=\$ac_header_preproc" |
ccc6cda3 | 8013 | fi |
3185942a JA |
8014 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8015 | $as_echo "$as_val"'` | |
8016 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8017 | $as_echo "$ac_res" >&6; } | |
f73dda09 | 8018 | |
ccc6cda3 | 8019 | fi |
3185942a JA |
8020 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8021 | $as_echo "$as_val"'` | |
8022 | if test "x$as_val" = x""yes; then | |
b80f6443 | 8023 | cat >>confdefs.h <<_ACEOF |
3185942a | 8024 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 8025 | _ACEOF |
ccc6cda3 | 8026 | |
cce855bc | 8027 | fi |
ccc6cda3 | 8028 | |
b80f6443 JA |
8029 | done |
8030 | ||
8031 | ||
8032 | for ac_func in getpagesize | |
8033 | do | |
3185942a JA |
8034 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8035 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8036 | $as_echo_n "checking for $ac_func... " >&6; } | |
8037 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8038 | $as_echo_n "(cached) " >&6 | |
f73dda09 JA |
8039 | else |
8040 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8041 | /* confdefs.h. */ |
8042 | _ACEOF | |
8043 | cat confdefs.h >>conftest.$ac_ext | |
8044 | cat >>conftest.$ac_ext <<_ACEOF | |
8045 | /* end confdefs.h. */ | |
8046 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8048 | #define $ac_func innocuous_$ac_func | |
8049 | ||
f73dda09 | 8050 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
8051 | which can conflict with char $ac_func (); below. |
8052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8053 | <limits.h> exists even on freestanding compilers. */ | |
8054 | ||
8055 | #ifdef __STDC__ | |
8056 | # include <limits.h> | |
8057 | #else | |
8058 | # include <assert.h> | |
8059 | #endif | |
8060 | ||
8061 | #undef $ac_func | |
8062 | ||
3185942a JA |
8063 | /* Override any GCC internal prototype to avoid an error. |
8064 | Use char because int might match the return type of a GCC | |
8065 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
8066 | #ifdef __cplusplus |
8067 | extern "C" | |
8068 | #endif | |
f73dda09 | 8069 | char $ac_func (); |
f73dda09 JA |
8070 | /* The GNU C library defines this for functions which it implements |
8071 | to always fail with ENOSYS. Some functions are actually named | |
8072 | something starting with __ and the normal name is an alias. */ | |
3185942a | 8073 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 8074 | choke me |
f73dda09 JA |
8075 | #endif |
8076 | ||
0628567a JA |
8077 | int |
8078 | main () | |
8079 | { | |
3185942a | 8080 | return $ac_func (); |
f73dda09 JA |
8081 | ; |
8082 | return 0; | |
8083 | } | |
8084 | _ACEOF | |
8085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
8086 | if { (ac_try="$ac_link" |
8087 | case "(($ac_try" in | |
8088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8089 | *) ac_try_echo=$ac_try;; | |
8090 | esac | |
8091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8092 | $as_echo "$ac_try_echo") >&5 | |
8093 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 8094 | ac_status=$? |
0628567a JA |
8095 | grep -v '^ *+' conftest.er1 >conftest.err |
8096 | rm -f conftest.er1 | |
8097 | cat conftest.err >&5 | |
3185942a JA |
8098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8099 | (exit $ac_status); } && { | |
8100 | test -z "$ac_c_werror_flag" || | |
8101 | test ! -s conftest.err | |
8102 | } && test -s conftest$ac_exeext && { | |
8103 | test "$cross_compiling" = yes || | |
8104 | $as_test_x conftest$ac_exeext | |
8105 | }; then | |
f73dda09 JA |
8106 | eval "$as_ac_var=yes" |
8107 | else | |
3185942a | 8108 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8109 | sed 's/^/| /' conftest.$ac_ext >&5 |
8110 | ||
3185942a | 8111 | eval "$as_ac_var=no" |
f73dda09 | 8112 | fi |
3185942a JA |
8113 | |
8114 | rm -rf conftest.dSYM | |
8115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 8116 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 8117 | fi |
3185942a JA |
8118 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8119 | $as_echo "$as_val"'` | |
8120 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8121 | $as_echo "$ac_res" >&6; } | |
8122 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8123 | $as_echo "$as_val"'` | |
8124 | if test "x$as_val" = x""yes; then | |
b80f6443 | 8125 | cat >>confdefs.h <<_ACEOF |
3185942a | 8126 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 8127 | _ACEOF |
f73dda09 | 8128 | |
b80f6443 JA |
8129 | fi |
8130 | done | |
8131 | ||
3185942a JA |
8132 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8133 | $as_echo_n "checking for working mmap... " >&6; } | |
b80f6443 | 8134 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
3185942a | 8135 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8136 | else |
8137 | if test "$cross_compiling" = yes; then | |
8138 | ac_cv_func_mmap_fixed_mapped=no | |
f73dda09 JA |
8139 | else |
8140 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8141 | /* confdefs.h. */ |
8142 | _ACEOF | |
8143 | cat confdefs.h >>conftest.$ac_ext | |
8144 | cat >>conftest.$ac_ext <<_ACEOF | |
8145 | /* end confdefs.h. */ | |
b80f6443 JA |
8146 | $ac_includes_default |
8147 | /* malloc might have been renamed as rpl_malloc. */ | |
8148 | #undef malloc | |
8149 | ||
8150 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8151 | Here is a matrix of mmap possibilities: | |
8152 | mmap private not fixed | |
8153 | mmap private fixed at somewhere currently unmapped | |
8154 | mmap private fixed at somewhere already mapped | |
8155 | mmap shared not fixed | |
8156 | mmap shared fixed at somewhere currently unmapped | |
8157 | mmap shared fixed at somewhere already mapped | |
8158 | For private mappings, we should verify that changes cannot be read() | |
8159 | back from the file, nor mmap's back from the file at a different | |
8160 | address. (There have been systems where private was not correctly | |
8161 | implemented like the infamous i386 svr4.0, and systems where the | |
8162 | VM page cache was not coherent with the file system buffer cache | |
8163 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8164 | For shared mappings, we should conversely verify that changes get | |
8165 | propagated back to all the places they're supposed to be. | |
8166 | ||
8167 | Grep wants private fixed already mapped. | |
8168 | The main things grep needs to know about mmap are: | |
8169 | * does it exist and is it safe to write into the mmap'd area | |
8170 | * how to use it (BSD variants) */ | |
8171 | ||
8172 | #include <fcntl.h> | |
8173 | #include <sys/mman.h> | |
8174 | ||
3185942a | 8175 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b80f6443 | 8176 | char *malloc (); |
f73dda09 | 8177 | #endif |
b80f6443 JA |
8178 | |
8179 | /* This mess was copied from the GNU getpagesize.h. */ | |
3185942a | 8180 | #ifndef HAVE_GETPAGESIZE |
b80f6443 | 8181 | /* Assume that all systems that can run configure have sys/param.h. */ |
3185942a | 8182 | # ifndef HAVE_SYS_PARAM_H |
b80f6443 JA |
8183 | # define HAVE_SYS_PARAM_H 1 |
8184 | # endif | |
8185 | ||
8186 | # ifdef _SC_PAGESIZE | |
8187 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8188 | # else /* no _SC_PAGESIZE */ | |
3185942a | 8189 | # ifdef HAVE_SYS_PARAM_H |
b80f6443 JA |
8190 | # include <sys/param.h> |
8191 | # ifdef EXEC_PAGESIZE | |
8192 | # define getpagesize() EXEC_PAGESIZE | |
8193 | # else /* no EXEC_PAGESIZE */ | |
8194 | # ifdef NBPG | |
8195 | # define getpagesize() NBPG * CLSIZE | |
8196 | # ifndef CLSIZE | |
8197 | # define CLSIZE 1 | |
8198 | # endif /* no CLSIZE */ | |
8199 | # else /* no NBPG */ | |
8200 | # ifdef NBPC | |
8201 | # define getpagesize() NBPC | |
8202 | # else /* no NBPC */ | |
8203 | # ifdef PAGESIZE | |
8204 | # define getpagesize() PAGESIZE | |
8205 | # endif /* PAGESIZE */ | |
8206 | # endif /* no NBPC */ | |
8207 | # endif /* no NBPG */ | |
8208 | # endif /* no EXEC_PAGESIZE */ | |
8209 | # else /* no HAVE_SYS_PARAM_H */ | |
8210 | # define getpagesize() 8192 /* punt totally */ | |
8211 | # endif /* no HAVE_SYS_PARAM_H */ | |
8212 | # endif /* no _SC_PAGESIZE */ | |
8213 | ||
8214 | #endif /* no HAVE_GETPAGESIZE */ | |
ccc6cda3 | 8215 | |
f73dda09 JA |
8216 | int |
8217 | main () | |
8218 | { | |
b80f6443 JA |
8219 | char *data, *data2, *data3; |
8220 | int i, pagesize; | |
8221 | int fd; | |
f73dda09 | 8222 | |
b80f6443 JA |
8223 | pagesize = getpagesize (); |
8224 | ||
8225 | /* First, make a file with some known garbage in it. */ | |
8226 | data = (char *) malloc (pagesize); | |
8227 | if (!data) | |
3185942a | 8228 | return 1; |
b80f6443 JA |
8229 | for (i = 0; i < pagesize; ++i) |
8230 | *(data + i) = rand (); | |
8231 | umask (0); | |
8232 | fd = creat ("conftest.mmap", 0600); | |
8233 | if (fd < 0) | |
3185942a | 8234 | return 1; |
b80f6443 | 8235 | if (write (fd, data, pagesize) != pagesize) |
3185942a | 8236 | return 1; |
b80f6443 JA |
8237 | close (fd); |
8238 | ||
8239 | /* Next, try to mmap the file at a fixed address which already has | |
8240 | something else allocated at it. If we can, also make sure that | |
8241 | we see the same garbage. */ | |
8242 | fd = open ("conftest.mmap", O_RDWR); | |
8243 | if (fd < 0) | |
3185942a | 8244 | return 1; |
b80f6443 JA |
8245 | data2 = (char *) malloc (2 * pagesize); |
8246 | if (!data2) | |
3185942a JA |
8247 | return 1; |
8248 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b80f6443 | 8249 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
0628567a | 8250 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
3185942a | 8251 | return 1; |
b80f6443 JA |
8252 | for (i = 0; i < pagesize; ++i) |
8253 | if (*(data + i) != *(data2 + i)) | |
3185942a | 8254 | return 1; |
b80f6443 JA |
8255 | |
8256 | /* Finally, make sure that changes to the mapped area do not | |
8257 | percolate back to the file as seen by read(). (This is a bug on | |
8258 | some variants of i386 svr4.0.) */ | |
8259 | for (i = 0; i < pagesize; ++i) | |
8260 | *(data2 + i) = *(data2 + i) + 1; | |
8261 | data3 = (char *) malloc (pagesize); | |
8262 | if (!data3) | |
3185942a | 8263 | return 1; |
b80f6443 | 8264 | if (read (fd, data3, pagesize) != pagesize) |
3185942a | 8265 | return 1; |
b80f6443 JA |
8266 | for (i = 0; i < pagesize; ++i) |
8267 | if (*(data + i) != *(data3 + i)) | |
3185942a | 8268 | return 1; |
b80f6443 | 8269 | close (fd); |
3185942a | 8270 | return 0; |
f73dda09 JA |
8271 | } |
8272 | _ACEOF | |
b80f6443 | 8273 | rm -f conftest$ac_exeext |
3185942a JA |
8274 | if { (ac_try="$ac_link" |
8275 | case "(($ac_try" in | |
8276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8277 | *) ac_try_echo=$ac_try;; | |
8278 | esac | |
8279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8280 | $as_echo "$ac_try_echo") >&5 | |
8281 | (eval "$ac_link") 2>&5 | |
f73dda09 | 8282 | ac_status=$? |
3185942a | 8283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 8284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
8285 | { (case "(($ac_try" in |
8286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8287 | *) ac_try_echo=$ac_try;; | |
8288 | esac | |
8289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8290 | $as_echo "$ac_try_echo") >&5 | |
8291 | (eval "$ac_try") 2>&5 | |
f73dda09 | 8292 | ac_status=$? |
3185942a | 8293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8294 | (exit $ac_status); }; }; then |
b80f6443 | 8295 | ac_cv_func_mmap_fixed_mapped=yes |
f73dda09 | 8296 | else |
3185942a JA |
8297 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8298 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
8300 | ||
b80f6443 JA |
8301 | ( exit $ac_status ) |
8302 | ac_cv_func_mmap_fixed_mapped=no | |
f73dda09 | 8303 | fi |
3185942a JA |
8304 | rm -rf conftest.dSYM |
8305 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 8306 | fi |
3185942a JA |
8307 | |
8308 | ||
b80f6443 | 8309 | fi |
3185942a JA |
8310 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8311 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b80f6443 | 8312 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
f73dda09 | 8313 | |
b80f6443 JA |
8314 | cat >>confdefs.h <<\_ACEOF |
8315 | #define HAVE_MMAP 1 | |
8316 | _ACEOF | |
8317 | ||
8318 | fi | |
8319 | rm -f conftest.mmap | |
8320 | ||
8321 | ||
3185942a JA |
8322 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
8323 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
b80f6443 | 8324 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
3185942a | 8325 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8326 | else |
8327 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8328 | /* confdefs.h. */ |
8329 | _ACEOF | |
8330 | cat confdefs.h >>conftest.$ac_ext | |
8331 | cat >>conftest.$ac_ext <<_ACEOF | |
8332 | /* end confdefs.h. */ | |
b80f6443 JA |
8333 | |
8334 | #include <features.h> | |
8335 | #ifdef __GNU_LIBRARY__ | |
8336 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
8337 | Lucky GNU user | |
8338 | #endif | |
8339 | #endif | |
ccc6cda3 | 8340 | |
b80f6443 JA |
8341 | _ACEOF |
8342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 8343 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
b80f6443 JA |
8344 | ac_cv_gnu_library_2_1=yes |
8345 | else | |
8346 | ac_cv_gnu_library_2_1=no | |
ccc6cda3 | 8347 | fi |
b80f6443 JA |
8348 | rm -f conftest* |
8349 | ||
8350 | ||
f73dda09 | 8351 | |
ccc6cda3 | 8352 | fi |
3185942a JA |
8353 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
8354 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
ccc6cda3 | 8355 | |
b80f6443 JA |
8356 | GLIBC21="$ac_cv_gnu_library_2_1" |
8357 | ||
8358 | ||
8359 | ||
8360 | ||
3185942a JA |
8361 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
8362 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
b80f6443 | 8363 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
3185942a | 8364 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8365 | else |
b80f6443 JA |
8366 | |
8367 | if test "$cross_compiling" = yes; then | |
8368 | ||
8369 | # Guess based on the CPU. | |
8370 | case "$host_cpu" in | |
8371 | alpha* | i3456786 | m68k | s390*) | |
8372 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
8373 | *) | |
8374 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
8375 | esac | |
8376 | ||
ccc6cda3 | 8377 | else |
f73dda09 | 8378 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8379 | /* confdefs.h. */ |
8380 | _ACEOF | |
8381 | cat confdefs.h >>conftest.$ac_ext | |
8382 | cat >>conftest.$ac_ext <<_ACEOF | |
8383 | /* end confdefs.h. */ | |
b80f6443 JA |
8384 | |
8385 | #include <stdlib.h> | |
8386 | #include <signal.h> | |
8387 | ||
8388 | static void | |
8389 | #ifdef __cplusplus | |
8390 | sigfpe_handler (int sig) | |
8391 | #else | |
8392 | sigfpe_handler (sig) int sig; | |
8393 | #endif | |
f73dda09 | 8394 | { |
b80f6443 JA |
8395 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
8396 | exit (sig != SIGFPE); | |
8397 | } | |
8398 | ||
8399 | int x = 1; | |
8400 | int y = 0; | |
8401 | int z; | |
8402 | int nan; | |
8403 | ||
8404 | int main () | |
8405 | { | |
8406 | signal (SIGFPE, sigfpe_handler); | |
8407 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
8408 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
8409 | signal (SIGTRAP, sigfpe_handler); | |
8410 | #endif | |
8411 | /* Linux/SPARC yields signal SIGILL. */ | |
8412 | #if defined (__sparc__) && defined (__linux__) | |
8413 | signal (SIGILL, sigfpe_handler); | |
8414 | #endif | |
8415 | ||
8416 | z = x / y; | |
8417 | nan = y / y; | |
8418 | exit (1); | |
f73dda09 | 8419 | } |
b80f6443 | 8420 | |
f73dda09 JA |
8421 | _ACEOF |
8422 | rm -f conftest$ac_exeext | |
3185942a JA |
8423 | if { (ac_try="$ac_link" |
8424 | case "(($ac_try" in | |
8425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8426 | *) ac_try_echo=$ac_try;; | |
8427 | esac | |
8428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8429 | $as_echo "$ac_try_echo") >&5 | |
8430 | (eval "$ac_link") 2>&5 | |
f73dda09 | 8431 | ac_status=$? |
3185942a | 8432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
8434 | { (case "(($ac_try" in |
8435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8436 | *) ac_try_echo=$ac_try;; | |
8437 | esac | |
8438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8439 | $as_echo "$ac_try_echo") >&5 | |
8440 | (eval "$ac_try") 2>&5 | |
f73dda09 | 8441 | ac_status=$? |
3185942a | 8442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8443 | (exit $ac_status); }; }; then |
b80f6443 | 8444 | gt_cv_int_divbyzero_sigfpe=yes |
ccc6cda3 | 8445 | else |
3185942a JA |
8446 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8447 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
8448 | sed 's/^/| /' conftest.$ac_ext >&5 |
8449 | ||
b80f6443 JA |
8450 | ( exit $ac_status ) |
8451 | gt_cv_int_divbyzero_sigfpe=no | |
ccc6cda3 | 8452 | fi |
3185942a JA |
8453 | rm -rf conftest.dSYM |
8454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
8455 | fi |
8456 | ||
3185942a JA |
8457 | |
8458 | ||
ccc6cda3 | 8459 | fi |
3185942a JA |
8460 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
8461 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
b80f6443 JA |
8462 | case "$gt_cv_int_divbyzero_sigfpe" in |
8463 | *yes) value=1;; | |
8464 | *) value=0;; | |
8465 | esac | |
ccc6cda3 | 8466 | |
b80f6443 JA |
8467 | cat >>confdefs.h <<_ACEOF |
8468 | #define INTDIV0_RAISES_SIGFPE $value | |
8469 | _ACEOF | |
ccc6cda3 | 8470 | |
ccc6cda3 JA |
8471 | |
8472 | ||
3185942a JA |
8473 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8474 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b80f6443 | 8475 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
3185942a | 8476 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8477 | else |
f73dda09 | 8478 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8479 | /* confdefs.h. */ |
8480 | _ACEOF | |
8481 | cat confdefs.h >>conftest.$ac_ext | |
8482 | cat >>conftest.$ac_ext <<_ACEOF | |
8483 | /* end confdefs.h. */ | |
f73dda09 | 8484 | #include <sys/types.h> |
b80f6443 | 8485 | #include <inttypes.h> |
f73dda09 JA |
8486 | int |
8487 | main () | |
8488 | { | |
b80f6443 | 8489 | uintmax_t i = (uintmax_t) -1; |
f73dda09 JA |
8490 | ; |
8491 | return 0; | |
8492 | } | |
8493 | _ACEOF | |
8494 | rm -f conftest.$ac_objext | |
3185942a JA |
8495 | if { (ac_try="$ac_compile" |
8496 | case "(($ac_try" in | |
8497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8498 | *) ac_try_echo=$ac_try;; | |
8499 | esac | |
8500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8501 | $as_echo "$ac_try_echo") >&5 | |
8502 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8503 | ac_status=$? |
0628567a JA |
8504 | grep -v '^ *+' conftest.er1 >conftest.err |
8505 | rm -f conftest.er1 | |
8506 | cat conftest.err >&5 | |
3185942a JA |
8507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8508 | (exit $ac_status); } && { | |
8509 | test -z "$ac_c_werror_flag" || | |
8510 | test ! -s conftest.err | |
8511 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8512 | jm_ac_cv_header_inttypes_h=yes |
ccc6cda3 | 8513 | else |
3185942a | 8514 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
8516 | ||
3185942a | 8517 | jm_ac_cv_header_inttypes_h=no |
ccc6cda3 | 8518 | fi |
3185942a JA |
8519 | |
8520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 8521 | fi |
3185942a JA |
8522 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
8523 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
b80f6443 | 8524 | if test $jm_ac_cv_header_inttypes_h = yes; then |
f73dda09 | 8525 | |
b80f6443 JA |
8526 | cat >>confdefs.h <<_ACEOF |
8527 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
8528 | _ACEOF | |
ccc6cda3 | 8529 | |
b80f6443 JA |
8530 | fi |
8531 | ||
8532 | ||
3185942a JA |
8533 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
8534 | $as_echo_n "checking for stdint.h... " >&6; } | |
b80f6443 | 8535 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
3185942a | 8536 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8537 | else |
f73dda09 | 8538 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8539 | /* confdefs.h. */ |
8540 | _ACEOF | |
8541 | cat confdefs.h >>conftest.$ac_ext | |
8542 | cat >>conftest.$ac_ext <<_ACEOF | |
8543 | /* end confdefs.h. */ | |
b80f6443 JA |
8544 | #include <sys/types.h> |
8545 | #include <stdint.h> | |
f73dda09 JA |
8546 | int |
8547 | main () | |
8548 | { | |
b80f6443 | 8549 | uintmax_t i = (uintmax_t) -1; |
f73dda09 JA |
8550 | ; |
8551 | return 0; | |
8552 | } | |
8553 | _ACEOF | |
b80f6443 | 8554 | rm -f conftest.$ac_objext |
3185942a JA |
8555 | if { (ac_try="$ac_compile" |
8556 | case "(($ac_try" in | |
8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8558 | *) ac_try_echo=$ac_try;; | |
8559 | esac | |
8560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8561 | $as_echo "$ac_try_echo") >&5 | |
8562 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8563 | ac_status=$? |
0628567a JA |
8564 | grep -v '^ *+' conftest.er1 >conftest.err |
8565 | rm -f conftest.er1 | |
8566 | cat conftest.err >&5 | |
3185942a JA |
8567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8568 | (exit $ac_status); } && { | |
8569 | test -z "$ac_c_werror_flag" || | |
8570 | test ! -s conftest.err | |
8571 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8572 | jm_ac_cv_header_stdint_h=yes |
f73dda09 | 8573 | else |
3185942a | 8574 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8575 | sed 's/^/| /' conftest.$ac_ext >&5 |
8576 | ||
3185942a | 8577 | jm_ac_cv_header_stdint_h=no |
f73dda09 | 8578 | fi |
3185942a JA |
8579 | |
8580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 8581 | fi |
3185942a JA |
8582 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
8583 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
b80f6443 | 8584 | if test $jm_ac_cv_header_stdint_h = yes; then |
f73dda09 | 8585 | |
b80f6443 JA |
8586 | cat >>confdefs.h <<_ACEOF |
8587 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
8588 | _ACEOF | |
f73dda09 | 8589 | |
b80f6443 JA |
8590 | fi |
8591 | ||
8592 | ||
3185942a JA |
8593 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
8594 | $as_echo_n "checking for unsigned long long... " >&6; } | |
b80f6443 | 8595 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
3185942a | 8596 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
8597 | else |
8598 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8599 | /* confdefs.h. */ |
8600 | _ACEOF | |
8601 | cat confdefs.h >>conftest.$ac_ext | |
8602 | cat >>conftest.$ac_ext <<_ACEOF | |
8603 | /* end confdefs.h. */ | |
b80f6443 | 8604 | unsigned long long ull = 1; int i = 63; |
f73dda09 JA |
8605 | int |
8606 | main () | |
8607 | { | |
b80f6443 JA |
8608 | unsigned long long ullmax = (unsigned long long) -1; |
8609 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
f73dda09 JA |
8610 | ; |
8611 | return 0; | |
8612 | } | |
8613 | _ACEOF | |
8614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
8615 | if { (ac_try="$ac_link" |
8616 | case "(($ac_try" in | |
8617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8618 | *) ac_try_echo=$ac_try;; | |
8619 | esac | |
8620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8621 | $as_echo "$ac_try_echo") >&5 | |
8622 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 8623 | ac_status=$? |
0628567a JA |
8624 | grep -v '^ *+' conftest.er1 >conftest.err |
8625 | rm -f conftest.er1 | |
8626 | cat conftest.err >&5 | |
3185942a JA |
8627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8628 | (exit $ac_status); } && { | |
8629 | test -z "$ac_c_werror_flag" || | |
8630 | test ! -s conftest.err | |
8631 | } && test -s conftest$ac_exeext && { | |
8632 | test "$cross_compiling" = yes || | |
8633 | $as_test_x conftest$ac_exeext | |
8634 | }; then | |
b80f6443 | 8635 | ac_cv_type_unsigned_long_long=yes |
f73dda09 | 8636 | else |
3185942a | 8637 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8638 | sed 's/^/| /' conftest.$ac_ext >&5 |
8639 | ||
3185942a | 8640 | ac_cv_type_unsigned_long_long=no |
f73dda09 | 8641 | fi |
3185942a JA |
8642 | |
8643 | rm -rf conftest.dSYM | |
8644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 8645 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 8646 | fi |
3185942a JA |
8647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
8648 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
b80f6443 | 8649 | if test $ac_cv_type_unsigned_long_long = yes; then |
f73dda09 | 8650 | |
b80f6443 JA |
8651 | cat >>confdefs.h <<\_ACEOF |
8652 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
8653 | _ACEOF | |
f73dda09 | 8654 | |
b80f6443 | 8655 | fi |
7117c2d2 | 8656 | |
7117c2d2 | 8657 | |
b80f6443 JA |
8658 | |
8659 | ||
8660 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
8661 | ||
8662 | test $ac_cv_type_unsigned_long_long = yes \ | |
8663 | && ac_type='unsigned long long' \ | |
8664 | || ac_type='unsigned long' | |
8665 | ||
8666 | cat >>confdefs.h <<_ACEOF | |
8667 | #define uintmax_t $ac_type | |
7117c2d2 | 8668 | _ACEOF |
7117c2d2 | 8669 | |
b80f6443 | 8670 | else |
7117c2d2 | 8671 | |
b80f6443 JA |
8672 | cat >>confdefs.h <<\_ACEOF |
8673 | #define HAVE_UINTMAX_T 1 | |
8674 | _ACEOF | |
8675 | ||
8676 | fi | |
8677 | ||
8678 | ||
3185942a JA |
8679 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8680 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b80f6443 | 8681 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
3185942a | 8682 | $as_echo_n "(cached) " >&6 |
f73dda09 | 8683 | else |
f73dda09 | 8684 | |
b80f6443 | 8685 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8686 | /* confdefs.h. */ |
8687 | _ACEOF | |
8688 | cat confdefs.h >>conftest.$ac_ext | |
8689 | cat >>conftest.$ac_ext <<_ACEOF | |
8690 | /* end confdefs.h. */ | |
b80f6443 JA |
8691 | #include <sys/types.h> |
8692 | #include <inttypes.h> | |
f73dda09 JA |
8693 | int |
8694 | main () | |
8695 | { | |
f73dda09 JA |
8696 | |
8697 | ; | |
8698 | return 0; | |
8699 | } | |
8700 | _ACEOF | |
b80f6443 | 8701 | rm -f conftest.$ac_objext |
3185942a JA |
8702 | if { (ac_try="$ac_compile" |
8703 | case "(($ac_try" in | |
8704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8705 | *) ac_try_echo=$ac_try;; | |
8706 | esac | |
8707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8708 | $as_echo "$ac_try_echo") >&5 | |
8709 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8710 | ac_status=$? |
0628567a JA |
8711 | grep -v '^ *+' conftest.er1 >conftest.err |
8712 | rm -f conftest.er1 | |
8713 | cat conftest.err >&5 | |
3185942a JA |
8714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8715 | (exit $ac_status); } && { | |
8716 | test -z "$ac_c_werror_flag" || | |
8717 | test ! -s conftest.err | |
8718 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8719 | gt_cv_header_inttypes_h=yes |
f73dda09 | 8720 | else |
3185942a | 8721 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8722 | sed 's/^/| /' conftest.$ac_ext >&5 |
8723 | ||
3185942a | 8724 | gt_cv_header_inttypes_h=no |
f73dda09 | 8725 | fi |
3185942a JA |
8726 | |
8727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 8728 | |
f73dda09 | 8729 | fi |
3185942a JA |
8730 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
8731 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
b80f6443 | 8732 | if test $gt_cv_header_inttypes_h = yes; then |
f73dda09 | 8733 | |
b80f6443 JA |
8734 | cat >>confdefs.h <<_ACEOF |
8735 | #define HAVE_INTTYPES_H 1 | |
8736 | _ACEOF | |
f73dda09 | 8737 | |
b80f6443 | 8738 | fi |
f73dda09 | 8739 | |
b80f6443 JA |
8740 | |
8741 | ||
8742 | if test $gt_cv_header_inttypes_h = yes; then | |
3185942a JA |
8743 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
8744 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
b80f6443 | 8745 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
3185942a | 8746 | $as_echo_n "(cached) " >&6 |
f73dda09 | 8747 | else |
b80f6443 JA |
8748 | |
8749 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8750 | /* confdefs.h. */ |
8751 | _ACEOF | |
8752 | cat confdefs.h >>conftest.$ac_ext | |
8753 | cat >>conftest.$ac_ext <<_ACEOF | |
8754 | /* end confdefs.h. */ | |
b80f6443 JA |
8755 | #include <inttypes.h> |
8756 | #ifdef PRId32 | |
8757 | char *p = PRId32; | |
f73dda09 | 8758 | #endif |
f73dda09 JA |
8759 | |
8760 | int | |
8761 | main () | |
8762 | { | |
f73dda09 JA |
8763 | |
8764 | ; | |
8765 | return 0; | |
8766 | } | |
8767 | _ACEOF | |
b80f6443 | 8768 | rm -f conftest.$ac_objext |
3185942a JA |
8769 | if { (ac_try="$ac_compile" |
8770 | case "(($ac_try" in | |
8771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8772 | *) ac_try_echo=$ac_try;; | |
8773 | esac | |
8774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8775 | $as_echo "$ac_try_echo") >&5 | |
8776 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8777 | ac_status=$? |
0628567a JA |
8778 | grep -v '^ *+' conftest.er1 >conftest.err |
8779 | rm -f conftest.er1 | |
8780 | cat conftest.err >&5 | |
3185942a JA |
8781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8782 | (exit $ac_status); } && { | |
8783 | test -z "$ac_c_werror_flag" || | |
8784 | test ! -s conftest.err | |
8785 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8786 | gt_cv_inttypes_pri_broken=no |
f73dda09 | 8787 | else |
3185942a | 8788 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8789 | sed 's/^/| /' conftest.$ac_ext >&5 |
8790 | ||
3185942a | 8791 | gt_cv_inttypes_pri_broken=yes |
f73dda09 | 8792 | fi |
3185942a JA |
8793 | |
8794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
8795 | |
8796 | fi | |
3185942a JA |
8797 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
8798 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
b80f6443 JA |
8799 | fi |
8800 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
f73dda09 | 8801 | |
b80f6443 JA |
8802 | cat >>confdefs.h <<_ACEOF |
8803 | #define PRI_MACROS_BROKEN 1 | |
8804 | _ACEOF | |
f73dda09 | 8805 | |
b80f6443 | 8806 | fi |
f73dda09 | 8807 | |
b80f6443 JA |
8808 | |
8809 | if test "X$prefix" = "XNONE"; then | |
8810 | acl_final_prefix="$ac_default_prefix" | |
8811 | else | |
8812 | acl_final_prefix="$prefix" | |
8813 | fi | |
8814 | if test "X$exec_prefix" = "XNONE"; then | |
8815 | acl_final_exec_prefix='${prefix}' | |
8816 | else | |
8817 | acl_final_exec_prefix="$exec_prefix" | |
8818 | fi | |
8819 | acl_save_prefix="$prefix" | |
8820 | prefix="$acl_final_prefix" | |
8821 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8822 | prefix="$acl_save_prefix" | |
8823 | ||
8824 | ||
3185942a | 8825 | # Check whether --with-gnu-ld was given. |
b80f6443 | 8826 | if test "${with_gnu_ld+set}" = set; then |
3185942a | 8827 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
f73dda09 | 8828 | else |
b80f6443 | 8829 | with_gnu_ld=no |
3185942a JA |
8830 | fi |
8831 | ||
b80f6443 JA |
8832 | # Prepare PATH_SEPARATOR. |
8833 | # The user is always right. | |
8834 | if test "${PATH_SEPARATOR+set}" != set; then | |
8835 | echo "#! /bin/sh" >conf$$.sh | |
8836 | echo "exit 0" >>conf$$.sh | |
8837 | chmod +x conf$$.sh | |
8838 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8839 | PATH_SEPARATOR=';' | |
8840 | else | |
8841 | PATH_SEPARATOR=: | |
8842 | fi | |
8843 | rm -f conf$$.sh | |
8844 | fi | |
8845 | ac_prog=ld | |
8846 | if test "$GCC" = yes; then | |
8847 | # Check if gcc -print-prog-name=ld gives a path. | |
3185942a JA |
8848 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
8849 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
b80f6443 JA |
8850 | case $host in |
8851 | *-*-mingw*) | |
8852 | # gcc leaves a trailing carriage return which upsets mingw | |
8853 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8854 | *) | |
8855 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
8856 | esac | |
8857 | case $ac_prog in | |
8858 | # Accept absolute paths. | |
8859 | [\\/]* | [A-Za-z]:[\\/]*) | |
8860 | re_direlt='/[^/][^/]*/\.\./' | |
8861 | # Canonicalize the path of ld | |
8862 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
8863 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
8864 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
8865 | done | |
8866 | test -z "$LD" && LD="$ac_prog" | |
8867 | ;; | |
8868 | "") | |
8869 | # If it fails, then pretend we aren't using GCC. | |
8870 | ac_prog=ld | |
8871 | ;; | |
8872 | *) | |
8873 | # If it is relative, then search for the first ld in PATH. | |
8874 | with_gnu_ld=unknown | |
8875 | ;; | |
8876 | esac | |
8877 | elif test "$with_gnu_ld" = yes; then | |
3185942a JA |
8878 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
8879 | $as_echo_n "checking for GNU ld... " >&6; } | |
b80f6443 | 8880 | else |
3185942a JA |
8881 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
8882 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
b80f6443 JA |
8883 | fi |
8884 | if test "${acl_cv_path_LD+set}" = set; then | |
3185942a | 8885 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8886 | else |
8887 | if test -z "$LD"; then | |
8888 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
8889 | for ac_dir in $PATH; do | |
8890 | test -z "$ac_dir" && ac_dir=. | |
8891 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8892 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8893 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8894 | # but apparently some GNU ld's only accept -v. | |
8895 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8896 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
8897 | test "$with_gnu_ld" != no && break | |
8898 | else | |
8899 | test "$with_gnu_ld" != yes && break | |
8900 | fi | |
8901 | fi | |
8902 | done | |
8903 | IFS="$ac_save_ifs" | |
8904 | else | |
8905 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
f73dda09 | 8906 | fi |
f73dda09 | 8907 | fi |
f73dda09 | 8908 | |
b80f6443 JA |
8909 | LD="$acl_cv_path_LD" |
8910 | if test -n "$LD"; then | |
3185942a JA |
8911 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
8912 | $as_echo "$LD" >&6; } | |
f73dda09 | 8913 | else |
3185942a JA |
8914 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8915 | $as_echo "no" >&6; } | |
f73dda09 | 8916 | fi |
3185942a JA |
8917 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
8918 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
b80f6443 | 8919 | { (exit 1); exit 1; }; } |
3185942a JA |
8920 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
8921 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
b80f6443 | 8922 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
3185942a | 8923 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8924 | else |
8925 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
8926 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
8927 | acl_cv_prog_gnu_ld=yes | |
8928 | else | |
8929 | acl_cv_prog_gnu_ld=no | |
8930 | fi | |
8931 | fi | |
3185942a JA |
8932 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
8933 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
b80f6443 JA |
8934 | with_gnu_ld=$acl_cv_prog_gnu_ld |
8935 | ||
8936 | ||
8937 | ||
3185942a JA |
8938 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
8939 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
b80f6443 | 8940 | if test "${acl_cv_rpath+set}" = set; then |
3185942a | 8941 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8942 | else |
8943 | ||
8944 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
8945 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
8946 | . ./conftest.sh | |
8947 | rm -f ./conftest.sh | |
8948 | acl_cv_rpath=done | |
8949 | ||
8950 | fi | |
3185942a JA |
8951 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
8952 | $as_echo "$acl_cv_rpath" >&6; } | |
b80f6443 JA |
8953 | wl="$acl_cv_wl" |
8954 | libext="$acl_cv_libext" | |
8955 | shlibext="$acl_cv_shlibext" | |
8956 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
8957 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
8958 | hardcode_direct="$acl_cv_hardcode_direct" | |
8959 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
3185942a | 8960 | # Check whether --enable-rpath was given. |
b80f6443 | 8961 | if test "${enable_rpath+set}" = set; then |
3185942a | 8962 | enableval=$enable_rpath; : |
b80f6443 JA |
8963 | else |
8964 | enable_rpath=yes | |
3185942a JA |
8965 | fi |
8966 | ||
b80f6443 JA |
8967 | |
8968 | ||
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | use_additional=yes | |
8975 | ||
8976 | acl_save_prefix="$prefix" | |
8977 | prefix="$acl_final_prefix" | |
8978 | acl_save_exec_prefix="$exec_prefix" | |
8979 | exec_prefix="$acl_final_exec_prefix" | |
8980 | ||
8981 | eval additional_includedir=\"$includedir\" | |
8982 | eval additional_libdir=\"$libdir\" | |
8983 | ||
8984 | exec_prefix="$acl_save_exec_prefix" | |
8985 | prefix="$acl_save_prefix" | |
8986 | ||
8987 | ||
3185942a | 8988 | # Check whether --with-libiconv-prefix was given. |
b80f6443 | 8989 | if test "${with_libiconv_prefix+set}" = set; then |
3185942a | 8990 | withval=$with_libiconv_prefix; |
b80f6443 JA |
8991 | if test "X$withval" = "Xno"; then |
8992 | use_additional=no | |
8993 | else | |
8994 | if test "X$withval" = "X"; then | |
8995 | ||
8996 | acl_save_prefix="$prefix" | |
8997 | prefix="$acl_final_prefix" | |
8998 | acl_save_exec_prefix="$exec_prefix" | |
8999 | exec_prefix="$acl_final_exec_prefix" | |
9000 | ||
9001 | eval additional_includedir=\"$includedir\" | |
9002 | eval additional_libdir=\"$libdir\" | |
9003 | ||
9004 | exec_prefix="$acl_save_exec_prefix" | |
9005 | prefix="$acl_save_prefix" | |
9006 | ||
9007 | else | |
9008 | additional_includedir="$withval/include" | |
9009 | additional_libdir="$withval/lib" | |
9010 | fi | |
9011 | fi | |
9012 | ||
3185942a JA |
9013 | fi |
9014 | ||
b80f6443 JA |
9015 | LIBICONV= |
9016 | LTLIBICONV= | |
9017 | INCICONV= | |
9018 | rpathdirs= | |
9019 | ltrpathdirs= | |
9020 | names_already_handled= | |
9021 | names_next_round='iconv ' | |
9022 | while test -n "$names_next_round"; do | |
9023 | names_this_round="$names_next_round" | |
9024 | names_next_round= | |
9025 | for name in $names_this_round; do | |
9026 | already_handled= | |
9027 | for n in $names_already_handled; do | |
9028 | if test "$n" = "$name"; then | |
9029 | already_handled=yes | |
9030 | break | |
9031 | fi | |
9032 | done | |
9033 | if test -z "$already_handled"; then | |
9034 | names_already_handled="$names_already_handled $name" | |
9035 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9036 | eval value=\"\$HAVE_LIB$uppername\" | |
9037 | if test -n "$value"; then | |
9038 | if test "$value" = yes; then | |
9039 | eval value=\"\$LIB$uppername\" | |
9040 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9041 | eval value=\"\$LTLIB$uppername\" | |
9042 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9043 | else | |
9044 | : | |
9045 | fi | |
9046 | else | |
9047 | found_dir= | |
9048 | found_la= | |
9049 | found_so= | |
9050 | found_a= | |
9051 | if test $use_additional = yes; then | |
9052 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
9053 | found_dir="$additional_libdir" | |
9054 | found_so="$additional_libdir/lib$name.$shlibext" | |
9055 | if test -f "$additional_libdir/lib$name.la"; then | |
9056 | found_la="$additional_libdir/lib$name.la" | |
9057 | fi | |
9058 | else | |
9059 | if test -f "$additional_libdir/lib$name.$libext"; then | |
9060 | found_dir="$additional_libdir" | |
9061 | found_a="$additional_libdir/lib$name.$libext" | |
9062 | if test -f "$additional_libdir/lib$name.la"; then | |
9063 | found_la="$additional_libdir/lib$name.la" | |
9064 | fi | |
9065 | fi | |
9066 | fi | |
9067 | fi | |
9068 | if test "X$found_dir" = "X"; then | |
9069 | for x in $LDFLAGS $LTLIBICONV; do | |
9070 | ||
9071 | acl_save_prefix="$prefix" | |
9072 | prefix="$acl_final_prefix" | |
9073 | acl_save_exec_prefix="$exec_prefix" | |
9074 | exec_prefix="$acl_final_exec_prefix" | |
9075 | eval x=\"$x\" | |
9076 | exec_prefix="$acl_save_exec_prefix" | |
9077 | prefix="$acl_save_prefix" | |
9078 | ||
9079 | case "$x" in | |
9080 | -L*) | |
9081 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9082 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9083 | found_dir="$dir" | |
9084 | found_so="$dir/lib$name.$shlibext" | |
9085 | if test -f "$dir/lib$name.la"; then | |
9086 | found_la="$dir/lib$name.la" | |
9087 | fi | |
9088 | else | |
9089 | if test -f "$dir/lib$name.$libext"; then | |
9090 | found_dir="$dir" | |
9091 | found_a="$dir/lib$name.$libext" | |
9092 | if test -f "$dir/lib$name.la"; then | |
9093 | found_la="$dir/lib$name.la" | |
9094 | fi | |
9095 | fi | |
9096 | fi | |
9097 | ;; | |
9098 | esac | |
9099 | if test "X$found_dir" != "X"; then | |
9100 | break | |
9101 | fi | |
9102 | done | |
9103 | fi | |
9104 | if test "X$found_dir" != "X"; then | |
9105 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9106 | if test "X$found_so" != "X"; then | |
9107 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9108 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9109 | else | |
9110 | haveit= | |
9111 | for x in $ltrpathdirs; do | |
9112 | if test "X$x" = "X$found_dir"; then | |
9113 | haveit=yes | |
9114 | break | |
9115 | fi | |
9116 | done | |
9117 | if test -z "$haveit"; then | |
9118 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9119 | fi | |
9120 | if test "$hardcode_direct" = yes; then | |
9121 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9122 | else | |
9123 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9124 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9125 | haveit= | |
9126 | for x in $rpathdirs; do | |
9127 | if test "X$x" = "X$found_dir"; then | |
9128 | haveit=yes | |
9129 | break | |
9130 | fi | |
9131 | done | |
9132 | if test -z "$haveit"; then | |
9133 | rpathdirs="$rpathdirs $found_dir" | |
9134 | fi | |
9135 | else | |
9136 | haveit= | |
9137 | for x in $LDFLAGS $LIBICONV; do | |
9138 | ||
9139 | acl_save_prefix="$prefix" | |
9140 | prefix="$acl_final_prefix" | |
9141 | acl_save_exec_prefix="$exec_prefix" | |
9142 | exec_prefix="$acl_final_exec_prefix" | |
9143 | eval x=\"$x\" | |
9144 | exec_prefix="$acl_save_exec_prefix" | |
9145 | prefix="$acl_save_prefix" | |
9146 | ||
9147 | if test "X$x" = "X-L$found_dir"; then | |
9148 | haveit=yes | |
9149 | break | |
9150 | fi | |
9151 | done | |
9152 | if test -z "$haveit"; then | |
9153 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9154 | fi | |
9155 | if test "$hardcode_minus_L" != no; then | |
9156 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9157 | else | |
9158 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9159 | fi | |
9160 | fi | |
9161 | fi | |
9162 | fi | |
9163 | else | |
9164 | if test "X$found_a" != "X"; then | |
9165 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9166 | else | |
9167 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9168 | fi | |
9169 | fi | |
9170 | additional_includedir= | |
9171 | case "$found_dir" in | |
9172 | */lib | */lib/) | |
9173 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9174 | additional_includedir="$basedir/include" | |
9175 | ;; | |
9176 | esac | |
9177 | if test "X$additional_includedir" != "X"; then | |
9178 | if test "X$additional_includedir" != "X/usr/include"; then | |
9179 | haveit= | |
9180 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9181 | if test -n "$GCC"; then | |
9182 | case $host_os in | |
9183 | linux*) haveit=yes;; | |
9184 | esac | |
9185 | fi | |
9186 | fi | |
9187 | if test -z "$haveit"; then | |
9188 | for x in $CPPFLAGS $INCICONV; do | |
9189 | ||
9190 | acl_save_prefix="$prefix" | |
9191 | prefix="$acl_final_prefix" | |
9192 | acl_save_exec_prefix="$exec_prefix" | |
9193 | exec_prefix="$acl_final_exec_prefix" | |
9194 | eval x=\"$x\" | |
9195 | exec_prefix="$acl_save_exec_prefix" | |
9196 | prefix="$acl_save_prefix" | |
9197 | ||
9198 | if test "X$x" = "X-I$additional_includedir"; then | |
9199 | haveit=yes | |
9200 | break | |
9201 | fi | |
9202 | done | |
9203 | if test -z "$haveit"; then | |
9204 | if test -d "$additional_includedir"; then | |
9205 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9206 | fi | |
9207 | fi | |
9208 | fi | |
9209 | fi | |
9210 | fi | |
9211 | if test -n "$found_la"; then | |
9212 | save_libdir="$libdir" | |
9213 | case "$found_la" in | |
9214 | */* | *\\*) . "$found_la" ;; | |
9215 | *) . "./$found_la" ;; | |
9216 | esac | |
9217 | libdir="$save_libdir" | |
9218 | for dep in $dependency_libs; do | |
9219 | case "$dep" in | |
9220 | -L*) | |
9221 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9222 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9223 | haveit= | |
9224 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9225 | if test -n "$GCC"; then | |
9226 | case $host_os in | |
9227 | linux*) haveit=yes;; | |
9228 | esac | |
9229 | fi | |
9230 | fi | |
9231 | if test -z "$haveit"; then | |
9232 | haveit= | |
9233 | for x in $LDFLAGS $LIBICONV; do | |
9234 | ||
9235 | acl_save_prefix="$prefix" | |
9236 | prefix="$acl_final_prefix" | |
9237 | acl_save_exec_prefix="$exec_prefix" | |
9238 | exec_prefix="$acl_final_exec_prefix" | |
9239 | eval x=\"$x\" | |
9240 | exec_prefix="$acl_save_exec_prefix" | |
9241 | prefix="$acl_save_prefix" | |
9242 | ||
9243 | if test "X$x" = "X-L$additional_libdir"; then | |
9244 | haveit=yes | |
9245 | break | |
9246 | fi | |
9247 | done | |
9248 | if test -z "$haveit"; then | |
9249 | if test -d "$additional_libdir"; then | |
9250 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9251 | fi | |
9252 | fi | |
9253 | haveit= | |
9254 | for x in $LDFLAGS $LTLIBICONV; do | |
9255 | ||
9256 | acl_save_prefix="$prefix" | |
9257 | prefix="$acl_final_prefix" | |
9258 | acl_save_exec_prefix="$exec_prefix" | |
9259 | exec_prefix="$acl_final_exec_prefix" | |
9260 | eval x=\"$x\" | |
9261 | exec_prefix="$acl_save_exec_prefix" | |
9262 | prefix="$acl_save_prefix" | |
9263 | ||
9264 | if test "X$x" = "X-L$additional_libdir"; then | |
9265 | haveit=yes | |
9266 | break | |
9267 | fi | |
9268 | done | |
9269 | if test -z "$haveit"; then | |
9270 | if test -d "$additional_libdir"; then | |
9271 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9272 | fi | |
9273 | fi | |
9274 | fi | |
9275 | fi | |
9276 | ;; | |
9277 | -R*) | |
9278 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9279 | if test "$enable_rpath" != no; then | |
9280 | haveit= | |
9281 | for x in $rpathdirs; do | |
9282 | if test "X$x" = "X$dir"; then | |
9283 | haveit=yes | |
9284 | break | |
9285 | fi | |
9286 | done | |
9287 | if test -z "$haveit"; then | |
9288 | rpathdirs="$rpathdirs $dir" | |
9289 | fi | |
9290 | haveit= | |
9291 | for x in $ltrpathdirs; do | |
9292 | if test "X$x" = "X$dir"; then | |
9293 | haveit=yes | |
9294 | break | |
9295 | fi | |
9296 | done | |
9297 | if test -z "$haveit"; then | |
9298 | ltrpathdirs="$ltrpathdirs $dir" | |
9299 | fi | |
9300 | fi | |
9301 | ;; | |
9302 | -l*) | |
9303 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9304 | ;; | |
9305 | *.la) | |
9306 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9307 | ;; | |
9308 | *) | |
9309 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9310 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9311 | ;; | |
9312 | esac | |
9313 | done | |
9314 | fi | |
9315 | else | |
9316 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9317 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9318 | fi | |
9319 | fi | |
9320 | fi | |
9321 | done | |
9322 | done | |
9323 | if test "X$rpathdirs" != "X"; then | |
9324 | if test -n "$hardcode_libdir_separator"; then | |
9325 | alldirs= | |
9326 | for found_dir in $rpathdirs; do | |
9327 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9328 | done | |
9329 | acl_save_libdir="$libdir" | |
9330 | libdir="$alldirs" | |
9331 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9332 | libdir="$acl_save_libdir" | |
9333 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9334 | else | |
9335 | for found_dir in $rpathdirs; do | |
9336 | acl_save_libdir="$libdir" | |
9337 | libdir="$found_dir" | |
9338 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9339 | libdir="$acl_save_libdir" | |
9340 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9341 | done | |
9342 | fi | |
9343 | fi | |
9344 | if test "X$ltrpathdirs" != "X"; then | |
9345 | for found_dir in $ltrpathdirs; do | |
9346 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9347 | done | |
9348 | fi | |
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
9364 | stdlib.h string.h unistd.h sys/param.h | |
9365 | do | |
3185942a JA |
9366 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9368 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9369 | $as_echo_n "checking for $ac_header... " >&6; } | |
9370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9371 | $as_echo_n "(cached) " >&6 | |
9372 | fi | |
9373 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9374 | $as_echo "$as_val"'` | |
9375 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9376 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
9377 | else |
9378 | # Is the header compilable? | |
3185942a JA |
9379 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9380 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 9381 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
9382 | /* confdefs.h. */ |
9383 | _ACEOF | |
9384 | cat confdefs.h >>conftest.$ac_ext | |
9385 | cat >>conftest.$ac_ext <<_ACEOF | |
9386 | /* end confdefs.h. */ | |
b80f6443 JA |
9387 | $ac_includes_default |
9388 | #include <$ac_header> | |
9389 | _ACEOF | |
9390 | rm -f conftest.$ac_objext | |
3185942a JA |
9391 | if { (ac_try="$ac_compile" |
9392 | case "(($ac_try" in | |
9393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9394 | *) ac_try_echo=$ac_try;; | |
9395 | esac | |
9396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9397 | $as_echo "$ac_try_echo") >&5 | |
9398 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 9399 | ac_status=$? |
0628567a JA |
9400 | grep -v '^ *+' conftest.er1 >conftest.err |
9401 | rm -f conftest.er1 | |
9402 | cat conftest.err >&5 | |
3185942a JA |
9403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9404 | (exit $ac_status); } && { | |
9405 | test -z "$ac_c_werror_flag" || | |
9406 | test ! -s conftest.err | |
9407 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
9408 | ac_header_compiler=yes |
9409 | else | |
3185942a | 9410 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
9412 | ||
3185942a | 9413 | ac_header_compiler=no |
b80f6443 | 9414 | fi |
3185942a JA |
9415 | |
9416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9417 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9418 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
9419 | |
9420 | # Is the header present? | |
3185942a JA |
9421 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9422 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 9423 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
9424 | /* confdefs.h. */ |
9425 | _ACEOF | |
9426 | cat confdefs.h >>conftest.$ac_ext | |
9427 | cat >>conftest.$ac_ext <<_ACEOF | |
9428 | /* end confdefs.h. */ | |
b80f6443 JA |
9429 | #include <$ac_header> |
9430 | _ACEOF | |
3185942a JA |
9431 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9432 | case "(($ac_try" in | |
9433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9434 | *) ac_try_echo=$ac_try;; | |
9435 | esac | |
9436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9437 | $as_echo "$ac_try_echo") >&5 | |
9438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 9439 | ac_status=$? |
0628567a | 9440 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
9441 | rm -f conftest.er1 |
9442 | cat conftest.err >&5 | |
3185942a JA |
9443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9444 | (exit $ac_status); } >/dev/null && { | |
9445 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9446 | test ! -s conftest.err | |
9447 | }; then | |
b80f6443 JA |
9448 | ac_header_preproc=yes |
9449 | else | |
3185942a | 9450 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9451 | sed 's/^/| /' conftest.$ac_ext >&5 |
9452 | ||
b80f6443 JA |
9453 | ac_header_preproc=no |
9454 | fi | |
3185942a | 9455 | |
b80f6443 | 9456 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
9457 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9458 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
9459 | |
9460 | # So? What about this header? | |
0628567a JA |
9461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9462 | yes:no: ) | |
3185942a JA |
9463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9464 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9466 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
9467 | ac_header_preproc=yes |
9468 | ;; | |
9469 | no:yes:* ) | |
3185942a JA |
9470 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9471 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9473 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9475 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9477 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9479 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9481 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9482 | ( cat <<\_ASBOX | |
0628567a JA |
9483 | ## ------------------------------- ## |
9484 | ## Report this to bug-bash@gnu.org ## | |
9485 | ## ------------------------------- ## | |
9486 | _ASBOX | |
3185942a | 9487 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 9488 | ;; |
b80f6443 | 9489 | esac |
3185942a JA |
9490 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9491 | $as_echo_n "checking for $ac_header... " >&6; } | |
9492 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9493 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 9494 | else |
0628567a | 9495 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 9496 | fi |
3185942a JA |
9497 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9498 | $as_echo "$as_val"'` | |
9499 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9500 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
9501 | |
9502 | fi | |
3185942a JA |
9503 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9504 | $as_echo "$as_val"'` | |
9505 | if test "x$as_val" = x""yes; then | |
b80f6443 | 9506 | cat >>confdefs.h <<_ACEOF |
3185942a | 9507 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
9508 | _ACEOF |
9509 | ||
9510 | fi | |
9511 | ||
f73dda09 JA |
9512 | done |
9513 | ||
b80f6443 JA |
9514 | |
9515 | ||
9516 | ||
9517 | ||
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
3185942a | 9534 | |
b80f6443 JA |
9535 | |
9536 | ||
9537 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
3185942a | 9538 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ |
b80f6443 JA |
9539 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ |
9540 | __fsetlocking | |
f73dda09 | 9541 | do |
3185942a JA |
9542 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9543 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9544 | $as_echo_n "checking for $ac_func... " >&6; } | |
9545 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9546 | $as_echo_n "(cached) " >&6 | |
f73dda09 JA |
9547 | else |
9548 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9549 | /* confdefs.h. */ |
9550 | _ACEOF | |
9551 | cat confdefs.h >>conftest.$ac_ext | |
9552 | cat >>conftest.$ac_ext <<_ACEOF | |
9553 | /* end confdefs.h. */ | |
9554 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9555 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9556 | #define $ac_func innocuous_$ac_func | |
9557 | ||
f73dda09 | 9558 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
9559 | which can conflict with char $ac_func (); below. |
9560 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9561 | <limits.h> exists even on freestanding compilers. */ | |
9562 | ||
9563 | #ifdef __STDC__ | |
9564 | # include <limits.h> | |
9565 | #else | |
9566 | # include <assert.h> | |
9567 | #endif | |
9568 | ||
9569 | #undef $ac_func | |
9570 | ||
3185942a JA |
9571 | /* Override any GCC internal prototype to avoid an error. |
9572 | Use char because int might match the return type of a GCC | |
9573 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
9574 | #ifdef __cplusplus |
9575 | extern "C" | |
9576 | #endif | |
f73dda09 | 9577 | char $ac_func (); |
f73dda09 JA |
9578 | /* The GNU C library defines this for functions which it implements |
9579 | to always fail with ENOSYS. Some functions are actually named | |
9580 | something starting with __ and the normal name is an alias. */ | |
3185942a | 9581 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 9582 | choke me |
f73dda09 JA |
9583 | #endif |
9584 | ||
0628567a JA |
9585 | int |
9586 | main () | |
9587 | { | |
3185942a | 9588 | return $ac_func (); |
f73dda09 JA |
9589 | ; |
9590 | return 0; | |
9591 | } | |
9592 | _ACEOF | |
9593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9594 | if { (ac_try="$ac_link" |
9595 | case "(($ac_try" in | |
9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9597 | *) ac_try_echo=$ac_try;; | |
9598 | esac | |
9599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9600 | $as_echo "$ac_try_echo") >&5 | |
9601 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9602 | ac_status=$? |
0628567a JA |
9603 | grep -v '^ *+' conftest.er1 >conftest.err |
9604 | rm -f conftest.er1 | |
9605 | cat conftest.err >&5 | |
3185942a JA |
9606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9607 | (exit $ac_status); } && { | |
9608 | test -z "$ac_c_werror_flag" || | |
9609 | test ! -s conftest.err | |
9610 | } && test -s conftest$ac_exeext && { | |
9611 | test "$cross_compiling" = yes || | |
9612 | $as_test_x conftest$ac_exeext | |
9613 | }; then | |
f73dda09 JA |
9614 | eval "$as_ac_var=yes" |
9615 | else | |
3185942a | 9616 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9617 | sed 's/^/| /' conftest.$ac_ext >&5 |
9618 | ||
3185942a | 9619 | eval "$as_ac_var=no" |
f73dda09 | 9620 | fi |
3185942a JA |
9621 | |
9622 | rm -rf conftest.dSYM | |
9623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9624 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 9625 | fi |
3185942a JA |
9626 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9627 | $as_echo "$as_val"'` | |
9628 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9629 | $as_echo "$ac_res" >&6; } | |
9630 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9631 | $as_echo "$as_val"'` | |
9632 | if test "x$as_val" = x""yes; then | |
b80f6443 | 9633 | cat >>confdefs.h <<_ACEOF |
3185942a | 9634 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 9635 | _ACEOF |
f73dda09 JA |
9636 | |
9637 | fi | |
9638 | done | |
9639 | ||
b80f6443 JA |
9640 | |
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | am_save_CPPFLAGS="$CPPFLAGS" | |
9647 | ||
9648 | for element in $INCICONV; do | |
9649 | haveit= | |
9650 | for x in $CPPFLAGS; do | |
9651 | ||
9652 | acl_save_prefix="$prefix" | |
9653 | prefix="$acl_final_prefix" | |
9654 | acl_save_exec_prefix="$exec_prefix" | |
9655 | exec_prefix="$acl_final_exec_prefix" | |
9656 | eval x=\"$x\" | |
9657 | exec_prefix="$acl_save_exec_prefix" | |
9658 | prefix="$acl_save_prefix" | |
9659 | ||
9660 | if test "X$x" = "X$element"; then | |
9661 | haveit=yes | |
9662 | break | |
9663 | fi | |
9664 | done | |
9665 | if test -z "$haveit"; then | |
9666 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9667 | fi | |
9668 | done | |
9669 | ||
9670 | ||
3185942a JA |
9671 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
9672 | $as_echo_n "checking for iconv... " >&6; } | |
b80f6443 | 9673 | if test "${am_cv_func_iconv+set}" = set; then |
3185942a | 9674 | $as_echo_n "(cached) " >&6 |
f73dda09 | 9675 | else |
f73dda09 | 9676 | |
b80f6443 JA |
9677 | am_cv_func_iconv="no, consider installing GNU libiconv" |
9678 | am_cv_lib_iconv=no | |
9679 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9680 | /* confdefs.h. */ |
9681 | _ACEOF | |
9682 | cat confdefs.h >>conftest.$ac_ext | |
9683 | cat >>conftest.$ac_ext <<_ACEOF | |
9684 | /* end confdefs.h. */ | |
b80f6443 JA |
9685 | #include <stdlib.h> |
9686 | #include <iconv.h> | |
f73dda09 JA |
9687 | int |
9688 | main () | |
9689 | { | |
b80f6443 JA |
9690 | iconv_t cd = iconv_open("",""); |
9691 | iconv(cd,NULL,NULL,NULL,NULL); | |
9692 | iconv_close(cd); | |
f73dda09 JA |
9693 | ; |
9694 | return 0; | |
9695 | } | |
9696 | _ACEOF | |
9697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9698 | if { (ac_try="$ac_link" |
9699 | case "(($ac_try" in | |
9700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9701 | *) ac_try_echo=$ac_try;; | |
9702 | esac | |
9703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9704 | $as_echo "$ac_try_echo") >&5 | |
9705 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9706 | ac_status=$? |
0628567a JA |
9707 | grep -v '^ *+' conftest.er1 >conftest.err |
9708 | rm -f conftest.er1 | |
9709 | cat conftest.err >&5 | |
3185942a JA |
9710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9711 | (exit $ac_status); } && { | |
9712 | test -z "$ac_c_werror_flag" || | |
9713 | test ! -s conftest.err | |
9714 | } && test -s conftest$ac_exeext && { | |
9715 | test "$cross_compiling" = yes || | |
9716 | $as_test_x conftest$ac_exeext | |
9717 | }; then | |
b80f6443 | 9718 | am_cv_func_iconv=yes |
f73dda09 | 9719 | else |
3185942a | 9720 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9721 | sed 's/^/| /' conftest.$ac_ext >&5 |
9722 | ||
3185942a | 9723 | |
f73dda09 | 9724 | fi |
3185942a JA |
9725 | |
9726 | rm -rf conftest.dSYM | |
9727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9728 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
9729 | if test "$am_cv_func_iconv" != yes; then |
9730 | am_save_LIBS="$LIBS" | |
9731 | LIBS="$LIBS $LIBICONV" | |
9732 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9733 | /* confdefs.h. */ |
9734 | _ACEOF | |
9735 | cat confdefs.h >>conftest.$ac_ext | |
9736 | cat >>conftest.$ac_ext <<_ACEOF | |
9737 | /* end confdefs.h. */ | |
b80f6443 JA |
9738 | #include <stdlib.h> |
9739 | #include <iconv.h> | |
f73dda09 JA |
9740 | int |
9741 | main () | |
9742 | { | |
b80f6443 JA |
9743 | iconv_t cd = iconv_open("",""); |
9744 | iconv(cd,NULL,NULL,NULL,NULL); | |
9745 | iconv_close(cd); | |
f73dda09 JA |
9746 | ; |
9747 | return 0; | |
9748 | } | |
9749 | _ACEOF | |
9750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9751 | if { (ac_try="$ac_link" |
9752 | case "(($ac_try" in | |
9753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9754 | *) ac_try_echo=$ac_try;; | |
9755 | esac | |
9756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9757 | $as_echo "$ac_try_echo") >&5 | |
9758 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9759 | ac_status=$? |
0628567a JA |
9760 | grep -v '^ *+' conftest.er1 >conftest.err |
9761 | rm -f conftest.er1 | |
9762 | cat conftest.err >&5 | |
3185942a JA |
9763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9764 | (exit $ac_status); } && { | |
9765 | test -z "$ac_c_werror_flag" || | |
9766 | test ! -s conftest.err | |
9767 | } && test -s conftest$ac_exeext && { | |
9768 | test "$cross_compiling" = yes || | |
9769 | $as_test_x conftest$ac_exeext | |
9770 | }; then | |
b80f6443 JA |
9771 | am_cv_lib_iconv=yes |
9772 | am_cv_func_iconv=yes | |
f73dda09 | 9773 | else |
3185942a | 9774 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9775 | sed 's/^/| /' conftest.$ac_ext >&5 |
9776 | ||
3185942a | 9777 | |
f73dda09 | 9778 | fi |
3185942a JA |
9779 | |
9780 | rm -rf conftest.dSYM | |
9781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9782 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
9783 | LIBS="$am_save_LIBS" |
9784 | fi | |
9785 | ||
f73dda09 | 9786 | fi |
3185942a JA |
9787 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
9788 | $as_echo "$am_cv_func_iconv" >&6; } | |
b80f6443 | 9789 | if test "$am_cv_func_iconv" = yes; then |
f73dda09 | 9790 | |
b80f6443 JA |
9791 | cat >>confdefs.h <<\_ACEOF |
9792 | #define HAVE_ICONV 1 | |
9793 | _ACEOF | |
f73dda09 | 9794 | |
b80f6443 JA |
9795 | fi |
9796 | if test "$am_cv_lib_iconv" = yes; then | |
3185942a JA |
9797 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
9798 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9799 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
9800 | $as_echo "$LIBICONV" >&6; } | |
b80f6443 JA |
9801 | else |
9802 | CPPFLAGS="$am_save_CPPFLAGS" | |
9803 | LIBICONV= | |
9804 | LTLIBICONV= | |
9805 | fi | |
9806 | ||
9807 | ||
9808 | ||
9809 | if test "$am_cv_func_iconv" = yes; then | |
3185942a JA |
9810 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
9811 | $as_echo_n "checking for iconv declaration... " >&6; } | |
b80f6443 | 9812 | if test "${am_cv_proto_iconv+set}" = set; then |
3185942a | 9813 | $as_echo_n "(cached) " >&6 |
f73dda09 | 9814 | else |
b80f6443 JA |
9815 | |
9816 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9817 | /* confdefs.h. */ |
9818 | _ACEOF | |
9819 | cat confdefs.h >>conftest.$ac_ext | |
9820 | cat >>conftest.$ac_ext <<_ACEOF | |
9821 | /* end confdefs.h. */ | |
b80f6443 JA |
9822 | |
9823 | #include <stdlib.h> | |
9824 | #include <iconv.h> | |
9825 | extern | |
f73dda09 | 9826 | #ifdef __cplusplus |
b80f6443 JA |
9827 | "C" |
9828 | #endif | |
9829 | #if defined(__STDC__) || defined(__cplusplus) | |
9830 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9831 | #else | |
9832 | size_t iconv(); | |
f73dda09 | 9833 | #endif |
f73dda09 JA |
9834 | |
9835 | int | |
9836 | main () | |
9837 | { | |
f73dda09 JA |
9838 | |
9839 | ; | |
9840 | return 0; | |
9841 | } | |
9842 | _ACEOF | |
b80f6443 | 9843 | rm -f conftest.$ac_objext |
3185942a JA |
9844 | if { (ac_try="$ac_compile" |
9845 | case "(($ac_try" in | |
9846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9847 | *) ac_try_echo=$ac_try;; | |
9848 | esac | |
9849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9850 | $as_echo "$ac_try_echo") >&5 | |
9851 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 9852 | ac_status=$? |
0628567a JA |
9853 | grep -v '^ *+' conftest.er1 >conftest.err |
9854 | rm -f conftest.er1 | |
9855 | cat conftest.err >&5 | |
3185942a JA |
9856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9857 | (exit $ac_status); } && { | |
9858 | test -z "$ac_c_werror_flag" || | |
9859 | test ! -s conftest.err | |
9860 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 9861 | am_cv_proto_iconv_arg1="" |
f73dda09 | 9862 | else |
3185942a | 9863 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9864 | sed 's/^/| /' conftest.$ac_ext >&5 |
9865 | ||
3185942a | 9866 | am_cv_proto_iconv_arg1="const" |
f73dda09 | 9867 | fi |
3185942a JA |
9868 | |
9869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 9870 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
f73dda09 | 9871 | fi |
f73dda09 | 9872 | |
b80f6443 | 9873 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
3185942a | 9874 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
b80f6443 | 9875 | }$am_cv_proto_iconv" >&5 |
3185942a JA |
9876 | $as_echo "${ac_t:- |
9877 | }$am_cv_proto_iconv" >&6; } | |
f73dda09 | 9878 | |
b80f6443 JA |
9879 | cat >>confdefs.h <<_ACEOF |
9880 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9881 | _ACEOF | |
9882 | ||
9883 | fi | |
9884 | ||
9885 | ||
3185942a JA |
9886 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
9887 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
b80f6443 | 9888 | if test "${am_cv_langinfo_codeset+set}" = set; then |
3185942a | 9889 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
9890 | else |
9891 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9892 | /* confdefs.h. */ |
9893 | _ACEOF | |
9894 | cat confdefs.h >>conftest.$ac_ext | |
9895 | cat >>conftest.$ac_ext <<_ACEOF | |
9896 | /* end confdefs.h. */ | |
b80f6443 | 9897 | #include <langinfo.h> |
f73dda09 JA |
9898 | int |
9899 | main () | |
9900 | { | |
b80f6443 | 9901 | char* cs = nl_langinfo(CODESET); |
f73dda09 JA |
9902 | ; |
9903 | return 0; | |
9904 | } | |
9905 | _ACEOF | |
b80f6443 | 9906 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
9907 | if { (ac_try="$ac_link" |
9908 | case "(($ac_try" in | |
9909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9910 | *) ac_try_echo=$ac_try;; | |
9911 | esac | |
9912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9913 | $as_echo "$ac_try_echo") >&5 | |
9914 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9915 | ac_status=$? |
0628567a JA |
9916 | grep -v '^ *+' conftest.er1 >conftest.err |
9917 | rm -f conftest.er1 | |
9918 | cat conftest.err >&5 | |
3185942a JA |
9919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9920 | (exit $ac_status); } && { | |
9921 | test -z "$ac_c_werror_flag" || | |
9922 | test ! -s conftest.err | |
9923 | } && test -s conftest$ac_exeext && { | |
9924 | test "$cross_compiling" = yes || | |
9925 | $as_test_x conftest$ac_exeext | |
9926 | }; then | |
b80f6443 | 9927 | am_cv_langinfo_codeset=yes |
f73dda09 | 9928 | else |
3185942a | 9929 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
9931 | ||
3185942a | 9932 | am_cv_langinfo_codeset=no |
f73dda09 | 9933 | fi |
3185942a JA |
9934 | |
9935 | rm -rf conftest.dSYM | |
9936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9937 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 9938 | |
f73dda09 | 9939 | fi |
3185942a JA |
9940 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
9941 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
b80f6443 | 9942 | if test $am_cv_langinfo_codeset = yes; then |
f73dda09 | 9943 | |
b80f6443 JA |
9944 | cat >>confdefs.h <<\_ACEOF |
9945 | #define HAVE_LANGINFO_CODESET 1 | |
9946 | _ACEOF | |
f73dda09 | 9947 | |
b80f6443 | 9948 | fi |
f73dda09 | 9949 | |
b80f6443 | 9950 | if test $ac_cv_header_locale_h = yes; then |
f73dda09 | 9951 | |
3185942a JA |
9952 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
9953 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
b80f6443 | 9954 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
3185942a | 9955 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
9956 | else |
9957 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9958 | /* confdefs.h. */ |
9959 | _ACEOF | |
9960 | cat confdefs.h >>conftest.$ac_ext | |
9961 | cat >>conftest.$ac_ext <<_ACEOF | |
9962 | /* end confdefs.h. */ | |
b80f6443 | 9963 | #include <locale.h> |
f73dda09 JA |
9964 | int |
9965 | main () | |
9966 | { | |
b80f6443 | 9967 | return LC_MESSAGES |
f73dda09 JA |
9968 | ; |
9969 | return 0; | |
9970 | } | |
9971 | _ACEOF | |
b80f6443 | 9972 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
9973 | if { (ac_try="$ac_link" |
9974 | case "(($ac_try" in | |
9975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9976 | *) ac_try_echo=$ac_try;; | |
9977 | esac | |
9978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9979 | $as_echo "$ac_try_echo") >&5 | |
9980 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9981 | ac_status=$? |
0628567a JA |
9982 | grep -v '^ *+' conftest.er1 >conftest.err |
9983 | rm -f conftest.er1 | |
9984 | cat conftest.err >&5 | |
3185942a JA |
9985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9986 | (exit $ac_status); } && { | |
9987 | test -z "$ac_c_werror_flag" || | |
9988 | test ! -s conftest.err | |
9989 | } && test -s conftest$ac_exeext && { | |
9990 | test "$cross_compiling" = yes || | |
9991 | $as_test_x conftest$ac_exeext | |
9992 | }; then | |
b80f6443 | 9993 | am_cv_val_LC_MESSAGES=yes |
f73dda09 | 9994 | else |
3185942a | 9995 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9996 | sed 's/^/| /' conftest.$ac_ext >&5 |
9997 | ||
3185942a | 9998 | am_cv_val_LC_MESSAGES=no |
f73dda09 | 9999 | fi |
3185942a JA |
10000 | |
10001 | rm -rf conftest.dSYM | |
10002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10003 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 10004 | fi |
3185942a JA |
10005 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
10006 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
b80f6443 | 10007 | if test $am_cv_val_LC_MESSAGES = yes; then |
f73dda09 | 10008 | |
b80f6443 JA |
10009 | cat >>confdefs.h <<\_ACEOF |
10010 | #define HAVE_LC_MESSAGES 1 | |
10011 | _ACEOF | |
10012 | ||
10013 | fi | |
10014 | ||
10015 | fi | |
f73dda09 | 10016 | |
b80f6443 JA |
10017 | for ac_prog in bison |
10018 | do | |
10019 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10020 | set dummy $ac_prog; ac_word=$2 | |
3185942a JA |
10021 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10022 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 10023 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
3185942a | 10024 | $as_echo_n "(cached) " >&6 |
f73dda09 | 10025 | else |
b80f6443 JA |
10026 | if test -n "$INTLBISON"; then |
10027 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
10028 | else | |
10029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10030 | for as_dir in $PATH | |
10031 | do | |
10032 | IFS=$as_save_IFS | |
10033 | test -z "$as_dir" && as_dir=. | |
10034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 10035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 10036 | ac_cv_prog_INTLBISON="$ac_prog" |
3185942a | 10037 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
10038 | break 2 |
10039 | fi | |
10040 | done | |
10041 | done | |
3185942a | 10042 | IFS=$as_save_IFS |
f73dda09 | 10043 | |
b80f6443 JA |
10044 | fi |
10045 | fi | |
10046 | INTLBISON=$ac_cv_prog_INTLBISON | |
10047 | if test -n "$INTLBISON"; then | |
3185942a JA |
10048 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
10049 | $as_echo "$INTLBISON" >&6; } | |
b80f6443 | 10050 | else |
3185942a JA |
10051 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10052 | $as_echo "no" >&6; } | |
f73dda09 JA |
10053 | fi |
10054 | ||
3185942a | 10055 | |
b80f6443 JA |
10056 | test -n "$INTLBISON" && break |
10057 | done | |
10058 | ||
10059 | if test -z "$INTLBISON"; then | |
10060 | ac_verc_fail=yes | |
10061 | else | |
3185942a JA |
10062 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
10063 | $as_echo_n "checking version of bison... " >&6; } | |
b80f6443 JA |
10064 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
10065 | case $ac_prog_version in | |
10066 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
10067 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
10068 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
10069 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
10070 | esac | |
3185942a JA |
10071 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
10072 | $as_echo "$ac_prog_version" >&6; } | |
b80f6443 JA |
10073 | fi |
10074 | if test $ac_verc_fail = yes; then | |
10075 | INTLBISON=: | |
10076 | fi | |
10077 | ||
10078 | ||
10079 | ||
10080 | ||
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | ||
10087 | ||
10088 | ||
10089 | ||
10090 | ||
10091 | ||
10092 | ||
3185942a JA |
10093 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10094 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
10095 | # Check whether --enable-nls was given. | |
b80f6443 | 10096 | if test "${enable_nls+set}" = set; then |
3185942a | 10097 | enableval=$enable_nls; USE_NLS=$enableval |
b80f6443 JA |
10098 | else |
10099 | USE_NLS=yes | |
3185942a JA |
10100 | fi |
10101 | ||
10102 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10103 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 JA |
10104 | |
10105 | ||
10106 | ||
10107 | ||
10108 | BUILD_INCLUDED_LIBINTL=no | |
10109 | USE_INCLUDED_LIBINTL=no | |
10110 | ||
10111 | LIBINTL= | |
10112 | LTLIBINTL= | |
10113 | POSUB= | |
10114 | ||
10115 | if test "$USE_NLS" = "yes"; then | |
10116 | gt_use_preinstalled_gnugettext=no | |
10117 | ||
3185942a JA |
10118 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
10119 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b80f6443 | 10120 | |
3185942a | 10121 | # Check whether --with-included-gettext was given. |
b80f6443 | 10122 | if test "${with_included_gettext+set}" = set; then |
3185942a | 10123 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
b80f6443 JA |
10124 | else |
10125 | nls_cv_force_use_gnu_gettext=no | |
3185942a JA |
10126 | fi |
10127 | ||
10128 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
10129 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
b80f6443 JA |
10130 | |
10131 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
10132 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
3185942a JA |
10139 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
10140 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
b80f6443 | 10141 | if test "${gt_cv_func_gnugettext2_libc+set}" = set; then |
3185942a | 10142 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
10143 | else |
10144 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10145 | /* confdefs.h. */ |
10146 | _ACEOF | |
10147 | cat confdefs.h >>conftest.$ac_ext | |
10148 | cat >>conftest.$ac_ext <<_ACEOF | |
10149 | /* end confdefs.h. */ | |
b80f6443 JA |
10150 | #include <libintl.h> |
10151 | extern int _nl_msg_cat_cntr; | |
10152 | extern int *_nl_domain_bindings; | |
f73dda09 JA |
10153 | int |
10154 | main () | |
10155 | { | |
b80f6443 JA |
10156 | bindtextdomain ("", ""); |
10157 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | |
f73dda09 JA |
10158 | ; |
10159 | return 0; | |
10160 | } | |
10161 | _ACEOF | |
b80f6443 | 10162 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10163 | if { (ac_try="$ac_link" |
10164 | case "(($ac_try" in | |
10165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10166 | *) ac_try_echo=$ac_try;; | |
10167 | esac | |
10168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10169 | $as_echo "$ac_try_echo") >&5 | |
10170 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10171 | ac_status=$? |
0628567a JA |
10172 | grep -v '^ *+' conftest.er1 >conftest.err |
10173 | rm -f conftest.er1 | |
10174 | cat conftest.err >&5 | |
3185942a JA |
10175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10176 | (exit $ac_status); } && { | |
10177 | test -z "$ac_c_werror_flag" || | |
10178 | test ! -s conftest.err | |
10179 | } && test -s conftest$ac_exeext && { | |
10180 | test "$cross_compiling" = yes || | |
10181 | $as_test_x conftest$ac_exeext | |
10182 | }; then | |
b80f6443 | 10183 | gt_cv_func_gnugettext2_libc=yes |
f73dda09 | 10184 | else |
3185942a | 10185 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10186 | sed 's/^/| /' conftest.$ac_ext >&5 |
10187 | ||
3185942a | 10188 | gt_cv_func_gnugettext2_libc=no |
f73dda09 | 10189 | fi |
3185942a JA |
10190 | |
10191 | rm -rf conftest.dSYM | |
10192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10193 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 10194 | fi |
3185942a JA |
10195 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 |
10196 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
f73dda09 | 10197 | |
b80f6443 | 10198 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then |
f73dda09 | 10199 | |
f73dda09 | 10200 | |
f73dda09 | 10201 | |
b80f6443 JA |
10202 | use_additional=yes |
10203 | ||
10204 | acl_save_prefix="$prefix" | |
10205 | prefix="$acl_final_prefix" | |
10206 | acl_save_exec_prefix="$exec_prefix" | |
10207 | exec_prefix="$acl_final_exec_prefix" | |
10208 | ||
10209 | eval additional_includedir=\"$includedir\" | |
10210 | eval additional_libdir=\"$libdir\" | |
10211 | ||
10212 | exec_prefix="$acl_save_exec_prefix" | |
10213 | prefix="$acl_save_prefix" | |
10214 | ||
10215 | ||
3185942a | 10216 | # Check whether --with-libintl-prefix was given. |
b80f6443 | 10217 | if test "${with_libintl_prefix+set}" = set; then |
3185942a | 10218 | withval=$with_libintl_prefix; |
b80f6443 JA |
10219 | if test "X$withval" = "Xno"; then |
10220 | use_additional=no | |
10221 | else | |
10222 | if test "X$withval" = "X"; then | |
10223 | ||
10224 | acl_save_prefix="$prefix" | |
10225 | prefix="$acl_final_prefix" | |
10226 | acl_save_exec_prefix="$exec_prefix" | |
10227 | exec_prefix="$acl_final_exec_prefix" | |
10228 | ||
10229 | eval additional_includedir=\"$includedir\" | |
10230 | eval additional_libdir=\"$libdir\" | |
10231 | ||
10232 | exec_prefix="$acl_save_exec_prefix" | |
10233 | prefix="$acl_save_prefix" | |
10234 | ||
10235 | else | |
10236 | additional_includedir="$withval/include" | |
10237 | additional_libdir="$withval/lib" | |
10238 | fi | |
10239 | fi | |
10240 | ||
3185942a JA |
10241 | fi |
10242 | ||
b80f6443 JA |
10243 | LIBINTL= |
10244 | LTLIBINTL= | |
10245 | INCINTL= | |
10246 | rpathdirs= | |
10247 | ltrpathdirs= | |
10248 | names_already_handled= | |
10249 | names_next_round='intl ' | |
10250 | while test -n "$names_next_round"; do | |
10251 | names_this_round="$names_next_round" | |
10252 | names_next_round= | |
10253 | for name in $names_this_round; do | |
10254 | already_handled= | |
10255 | for n in $names_already_handled; do | |
10256 | if test "$n" = "$name"; then | |
10257 | already_handled=yes | |
10258 | break | |
10259 | fi | |
10260 | done | |
10261 | if test -z "$already_handled"; then | |
10262 | names_already_handled="$names_already_handled $name" | |
10263 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10264 | eval value=\"\$HAVE_LIB$uppername\" | |
10265 | if test -n "$value"; then | |
10266 | if test "$value" = yes; then | |
10267 | eval value=\"\$LIB$uppername\" | |
10268 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10269 | eval value=\"\$LTLIB$uppername\" | |
10270 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10271 | else | |
10272 | : | |
10273 | fi | |
10274 | else | |
10275 | found_dir= | |
10276 | found_la= | |
10277 | found_so= | |
10278 | found_a= | |
10279 | if test $use_additional = yes; then | |
10280 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10281 | found_dir="$additional_libdir" | |
10282 | found_so="$additional_libdir/lib$name.$shlibext" | |
10283 | if test -f "$additional_libdir/lib$name.la"; then | |
10284 | found_la="$additional_libdir/lib$name.la" | |
10285 | fi | |
10286 | else | |
10287 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10288 | found_dir="$additional_libdir" | |
10289 | found_a="$additional_libdir/lib$name.$libext" | |
10290 | if test -f "$additional_libdir/lib$name.la"; then | |
10291 | found_la="$additional_libdir/lib$name.la" | |
10292 | fi | |
10293 | fi | |
10294 | fi | |
10295 | fi | |
10296 | if test "X$found_dir" = "X"; then | |
10297 | for x in $LDFLAGS $LTLIBINTL; do | |
10298 | ||
10299 | acl_save_prefix="$prefix" | |
10300 | prefix="$acl_final_prefix" | |
10301 | acl_save_exec_prefix="$exec_prefix" | |
10302 | exec_prefix="$acl_final_exec_prefix" | |
10303 | eval x=\"$x\" | |
10304 | exec_prefix="$acl_save_exec_prefix" | |
10305 | prefix="$acl_save_prefix" | |
10306 | ||
10307 | case "$x" in | |
10308 | -L*) | |
10309 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10310 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10311 | found_dir="$dir" | |
10312 | found_so="$dir/lib$name.$shlibext" | |
10313 | if test -f "$dir/lib$name.la"; then | |
10314 | found_la="$dir/lib$name.la" | |
10315 | fi | |
10316 | else | |
10317 | if test -f "$dir/lib$name.$libext"; then | |
10318 | found_dir="$dir" | |
10319 | found_a="$dir/lib$name.$libext" | |
10320 | if test -f "$dir/lib$name.la"; then | |
10321 | found_la="$dir/lib$name.la" | |
10322 | fi | |
10323 | fi | |
10324 | fi | |
10325 | ;; | |
10326 | esac | |
10327 | if test "X$found_dir" != "X"; then | |
10328 | break | |
10329 | fi | |
10330 | done | |
10331 | fi | |
10332 | if test "X$found_dir" != "X"; then | |
10333 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10334 | if test "X$found_so" != "X"; then | |
10335 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10336 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10337 | else | |
10338 | haveit= | |
10339 | for x in $ltrpathdirs; do | |
10340 | if test "X$x" = "X$found_dir"; then | |
10341 | haveit=yes | |
10342 | break | |
10343 | fi | |
10344 | done | |
10345 | if test -z "$haveit"; then | |
10346 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10347 | fi | |
10348 | if test "$hardcode_direct" = yes; then | |
10349 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10350 | else | |
10351 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10352 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10353 | haveit= | |
10354 | for x in $rpathdirs; do | |
10355 | if test "X$x" = "X$found_dir"; then | |
10356 | haveit=yes | |
10357 | break | |
10358 | fi | |
10359 | done | |
10360 | if test -z "$haveit"; then | |
10361 | rpathdirs="$rpathdirs $found_dir" | |
10362 | fi | |
10363 | else | |
10364 | haveit= | |
10365 | for x in $LDFLAGS $LIBINTL; do | |
10366 | ||
10367 | acl_save_prefix="$prefix" | |
10368 | prefix="$acl_final_prefix" | |
10369 | acl_save_exec_prefix="$exec_prefix" | |
10370 | exec_prefix="$acl_final_exec_prefix" | |
10371 | eval x=\"$x\" | |
10372 | exec_prefix="$acl_save_exec_prefix" | |
10373 | prefix="$acl_save_prefix" | |
10374 | ||
10375 | if test "X$x" = "X-L$found_dir"; then | |
10376 | haveit=yes | |
10377 | break | |
10378 | fi | |
10379 | done | |
10380 | if test -z "$haveit"; then | |
10381 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10382 | fi | |
10383 | if test "$hardcode_minus_L" != no; then | |
10384 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10385 | else | |
10386 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10387 | fi | |
10388 | fi | |
10389 | fi | |
10390 | fi | |
10391 | else | |
10392 | if test "X$found_a" != "X"; then | |
10393 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10394 | else | |
10395 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10396 | fi | |
10397 | fi | |
10398 | additional_includedir= | |
10399 | case "$found_dir" in | |
10400 | */lib | */lib/) | |
10401 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10402 | additional_includedir="$basedir/include" | |
10403 | ;; | |
10404 | esac | |
10405 | if test "X$additional_includedir" != "X"; then | |
10406 | if test "X$additional_includedir" != "X/usr/include"; then | |
10407 | haveit= | |
10408 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10409 | if test -n "$GCC"; then | |
10410 | case $host_os in | |
10411 | linux*) haveit=yes;; | |
10412 | esac | |
10413 | fi | |
10414 | fi | |
10415 | if test -z "$haveit"; then | |
10416 | for x in $CPPFLAGS $INCINTL; do | |
10417 | ||
10418 | acl_save_prefix="$prefix" | |
10419 | prefix="$acl_final_prefix" | |
10420 | acl_save_exec_prefix="$exec_prefix" | |
10421 | exec_prefix="$acl_final_exec_prefix" | |
10422 | eval x=\"$x\" | |
10423 | exec_prefix="$acl_save_exec_prefix" | |
10424 | prefix="$acl_save_prefix" | |
10425 | ||
10426 | if test "X$x" = "X-I$additional_includedir"; then | |
10427 | haveit=yes | |
10428 | break | |
10429 | fi | |
10430 | done | |
10431 | if test -z "$haveit"; then | |
10432 | if test -d "$additional_includedir"; then | |
10433 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10434 | fi | |
10435 | fi | |
10436 | fi | |
10437 | fi | |
10438 | fi | |
10439 | if test -n "$found_la"; then | |
10440 | save_libdir="$libdir" | |
10441 | case "$found_la" in | |
10442 | */* | *\\*) . "$found_la" ;; | |
10443 | *) . "./$found_la" ;; | |
10444 | esac | |
10445 | libdir="$save_libdir" | |
10446 | for dep in $dependency_libs; do | |
10447 | case "$dep" in | |
10448 | -L*) | |
10449 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10450 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10451 | haveit= | |
10452 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10453 | if test -n "$GCC"; then | |
10454 | case $host_os in | |
10455 | linux*) haveit=yes;; | |
10456 | esac | |
10457 | fi | |
10458 | fi | |
10459 | if test -z "$haveit"; then | |
10460 | haveit= | |
10461 | for x in $LDFLAGS $LIBINTL; do | |
10462 | ||
10463 | acl_save_prefix="$prefix" | |
10464 | prefix="$acl_final_prefix" | |
10465 | acl_save_exec_prefix="$exec_prefix" | |
10466 | exec_prefix="$acl_final_exec_prefix" | |
10467 | eval x=\"$x\" | |
10468 | exec_prefix="$acl_save_exec_prefix" | |
10469 | prefix="$acl_save_prefix" | |
10470 | ||
10471 | if test "X$x" = "X-L$additional_libdir"; then | |
10472 | haveit=yes | |
10473 | break | |
10474 | fi | |
10475 | done | |
10476 | if test -z "$haveit"; then | |
10477 | if test -d "$additional_libdir"; then | |
10478 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
10479 | fi | |
10480 | fi | |
10481 | haveit= | |
10482 | for x in $LDFLAGS $LTLIBINTL; do | |
10483 | ||
10484 | acl_save_prefix="$prefix" | |
10485 | prefix="$acl_final_prefix" | |
10486 | acl_save_exec_prefix="$exec_prefix" | |
10487 | exec_prefix="$acl_final_exec_prefix" | |
10488 | eval x=\"$x\" | |
10489 | exec_prefix="$acl_save_exec_prefix" | |
10490 | prefix="$acl_save_prefix" | |
10491 | ||
10492 | if test "X$x" = "X-L$additional_libdir"; then | |
10493 | haveit=yes | |
10494 | break | |
10495 | fi | |
10496 | done | |
10497 | if test -z "$haveit"; then | |
10498 | if test -d "$additional_libdir"; then | |
10499 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
10500 | fi | |
10501 | fi | |
10502 | fi | |
10503 | fi | |
10504 | ;; | |
10505 | -R*) | |
10506 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10507 | if test "$enable_rpath" != no; then | |
10508 | haveit= | |
10509 | for x in $rpathdirs; do | |
10510 | if test "X$x" = "X$dir"; then | |
10511 | haveit=yes | |
10512 | break | |
10513 | fi | |
10514 | done | |
10515 | if test -z "$haveit"; then | |
10516 | rpathdirs="$rpathdirs $dir" | |
10517 | fi | |
10518 | haveit= | |
10519 | for x in $ltrpathdirs; do | |
10520 | if test "X$x" = "X$dir"; then | |
10521 | haveit=yes | |
10522 | break | |
10523 | fi | |
10524 | done | |
10525 | if test -z "$haveit"; then | |
10526 | ltrpathdirs="$ltrpathdirs $dir" | |
10527 | fi | |
10528 | fi | |
10529 | ;; | |
10530 | -l*) | |
10531 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10532 | ;; | |
10533 | *.la) | |
10534 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10535 | ;; | |
10536 | *) | |
10537 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10538 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10539 | ;; | |
10540 | esac | |
10541 | done | |
10542 | fi | |
10543 | else | |
10544 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10545 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10546 | fi | |
10547 | fi | |
10548 | fi | |
10549 | done | |
10550 | done | |
10551 | if test "X$rpathdirs" != "X"; then | |
10552 | if test -n "$hardcode_libdir_separator"; then | |
10553 | alldirs= | |
10554 | for found_dir in $rpathdirs; do | |
10555 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10556 | done | |
10557 | acl_save_libdir="$libdir" | |
10558 | libdir="$alldirs" | |
10559 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10560 | libdir="$acl_save_libdir" | |
10561 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10562 | else | |
10563 | for found_dir in $rpathdirs; do | |
10564 | acl_save_libdir="$libdir" | |
10565 | libdir="$found_dir" | |
10566 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10567 | libdir="$acl_save_libdir" | |
10568 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10569 | done | |
10570 | fi | |
10571 | fi | |
10572 | if test "X$ltrpathdirs" != "X"; then | |
10573 | for found_dir in $ltrpathdirs; do | |
10574 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10575 | done | |
10576 | fi | |
10577 | ||
3185942a JA |
10578 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
10579 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
b80f6443 | 10580 | if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then |
3185942a | 10581 | $as_echo_n "(cached) " >&6 |
f73dda09 | 10582 | else |
b80f6443 JA |
10583 | gt_save_CPPFLAGS="$CPPFLAGS" |
10584 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10585 | gt_save_LIBS="$LIBS" | |
10586 | LIBS="$LIBS $LIBINTL" | |
10587 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10588 | /* confdefs.h. */ |
10589 | _ACEOF | |
10590 | cat confdefs.h >>conftest.$ac_ext | |
10591 | cat >>conftest.$ac_ext <<_ACEOF | |
10592 | /* end confdefs.h. */ | |
b80f6443 JA |
10593 | #include <libintl.h> |
10594 | extern int _nl_msg_cat_cntr; | |
10595 | extern | |
10596 | #ifdef __cplusplus | |
10597 | "C" | |
10598 | #endif | |
10599 | const char *_nl_expand_alias (); | |
f73dda09 JA |
10600 | int |
10601 | main () | |
10602 | { | |
b80f6443 JA |
10603 | bindtextdomain ("", ""); |
10604 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
f73dda09 JA |
10605 | ; |
10606 | return 0; | |
10607 | } | |
10608 | _ACEOF | |
b80f6443 | 10609 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10610 | if { (ac_try="$ac_link" |
10611 | case "(($ac_try" in | |
10612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10613 | *) ac_try_echo=$ac_try;; | |
10614 | esac | |
10615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10616 | $as_echo "$ac_try_echo") >&5 | |
10617 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10618 | ac_status=$? |
0628567a JA |
10619 | grep -v '^ *+' conftest.er1 >conftest.err |
10620 | rm -f conftest.er1 | |
10621 | cat conftest.err >&5 | |
3185942a JA |
10622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10623 | (exit $ac_status); } && { | |
10624 | test -z "$ac_c_werror_flag" || | |
10625 | test ! -s conftest.err | |
10626 | } && test -s conftest$ac_exeext && { | |
10627 | test "$cross_compiling" = yes || | |
10628 | $as_test_x conftest$ac_exeext | |
10629 | }; then | |
b80f6443 | 10630 | gt_cv_func_gnugettext2_libintl=yes |
f73dda09 | 10631 | else |
3185942a | 10632 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10633 | sed 's/^/| /' conftest.$ac_ext >&5 |
10634 | ||
3185942a | 10635 | gt_cv_func_gnugettext2_libintl=no |
f73dda09 | 10636 | fi |
3185942a JA |
10637 | |
10638 | rm -rf conftest.dSYM | |
10639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10640 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
10641 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
10642 | LIBS="$LIBS $LIBICONV" | |
10643 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10644 | /* confdefs.h. */ |
10645 | _ACEOF | |
10646 | cat confdefs.h >>conftest.$ac_ext | |
10647 | cat >>conftest.$ac_ext <<_ACEOF | |
10648 | /* end confdefs.h. */ | |
b80f6443 JA |
10649 | #include <libintl.h> |
10650 | extern int _nl_msg_cat_cntr; | |
10651 | extern | |
10652 | #ifdef __cplusplus | |
10653 | "C" | |
10654 | #endif | |
10655 | const char *_nl_expand_alias (); | |
f73dda09 JA |
10656 | int |
10657 | main () | |
10658 | { | |
b80f6443 JA |
10659 | bindtextdomain ("", ""); |
10660 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
f73dda09 JA |
10661 | ; |
10662 | return 0; | |
10663 | } | |
10664 | _ACEOF | |
b80f6443 | 10665 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10666 | if { (ac_try="$ac_link" |
10667 | case "(($ac_try" in | |
10668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10669 | *) ac_try_echo=$ac_try;; | |
10670 | esac | |
10671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10672 | $as_echo "$ac_try_echo") >&5 | |
10673 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10674 | ac_status=$? |
0628567a JA |
10675 | grep -v '^ *+' conftest.er1 >conftest.err |
10676 | rm -f conftest.er1 | |
10677 | cat conftest.err >&5 | |
3185942a JA |
10678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10679 | (exit $ac_status); } && { | |
10680 | test -z "$ac_c_werror_flag" || | |
10681 | test ! -s conftest.err | |
10682 | } && test -s conftest$ac_exeext && { | |
10683 | test "$cross_compiling" = yes || | |
10684 | $as_test_x conftest$ac_exeext | |
10685 | }; then | |
b80f6443 JA |
10686 | LIBINTL="$LIBINTL $LIBICONV" |
10687 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
10688 | gt_cv_func_gnugettext2_libintl=yes | |
10689 | ||
f73dda09 | 10690 | else |
3185942a | 10691 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10692 | sed 's/^/| /' conftest.$ac_ext >&5 |
10693 | ||
3185942a | 10694 | |
f73dda09 | 10695 | fi |
3185942a JA |
10696 | |
10697 | rm -rf conftest.dSYM | |
10698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10699 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
10700 | fi |
10701 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10702 | LIBS="$gt_save_LIBS" | |
10703 | fi | |
3185942a JA |
10704 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 |
10705 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
b80f6443 JA |
10706 | fi |
10707 | ||
10708 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ | |
10709 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
10710 | && test "$PACKAGE" != gettext-runtime \ | |
10711 | && test "$PACKAGE" != gettext-tools; }; then | |
10712 | gt_use_preinstalled_gnugettext=yes | |
10713 | else | |
10714 | LIBINTL= | |
10715 | LTLIBINTL= | |
10716 | INCINTL= | |
10717 | fi | |
10718 | ||
10719 | ||
10720 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
10721 | nls_cv_use_gnu_gettext=yes | |
10722 | fi | |
10723 | fi | |
f73dda09 | 10724 | |
b80f6443 JA |
10725 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
10726 | BUILD_INCLUDED_LIBINTL=yes | |
10727 | USE_INCLUDED_LIBINTL=yes | |
10728 | LIBINTL="lib/intl/libintl.a $LIBICONV" | |
10729 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" | |
10730 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
10731 | fi | |
f73dda09 | 10732 | |
b80f6443 JA |
10733 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10734 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10735 | CATOBJEXT=.gmo | |
10736 | fi | |
f73dda09 | 10737 | |
f73dda09 | 10738 | |
b80f6443 JA |
10739 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10740 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10741 | ||
10742 | cat >>confdefs.h <<\_ACEOF | |
10743 | #define ENABLE_NLS 1 | |
10744 | _ACEOF | |
10745 | ||
10746 | else | |
10747 | USE_NLS=no | |
10748 | fi | |
10749 | fi | |
10750 | ||
3185942a JA |
10751 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
10752 | $as_echo_n "checking whether to use NLS... " >&6; } | |
10753 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10754 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 | 10755 | if test "$USE_NLS" = "yes"; then |
3185942a JA |
10756 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
10757 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
b80f6443 JA |
10758 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
10759 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
10760 | gt_source="external libintl" | |
10761 | else | |
10762 | gt_source="libc" | |
10763 | fi | |
10764 | else | |
10765 | gt_source="included intl directory" | |
10766 | fi | |
3185942a JA |
10767 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
10768 | $as_echo "$gt_source" >&6; } | |
b80f6443 JA |
10769 | fi |
10770 | ||
10771 | if test "$USE_NLS" = "yes"; then | |
10772 | ||
10773 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
10774 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
3185942a JA |
10775 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
10776 | $as_echo_n "checking how to link with libintl... " >&6; } | |
10777 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
10778 | $as_echo "$LIBINTL" >&6; } | |
b80f6443 JA |
10779 | |
10780 | for element in $INCINTL; do | |
10781 | haveit= | |
10782 | for x in $CPPFLAGS; do | |
10783 | ||
10784 | acl_save_prefix="$prefix" | |
10785 | prefix="$acl_final_prefix" | |
10786 | acl_save_exec_prefix="$exec_prefix" | |
10787 | exec_prefix="$acl_final_exec_prefix" | |
10788 | eval x=\"$x\" | |
10789 | exec_prefix="$acl_save_exec_prefix" | |
10790 | prefix="$acl_save_prefix" | |
10791 | ||
10792 | if test "X$x" = "X$element"; then | |
10793 | haveit=yes | |
10794 | break | |
10795 | fi | |
10796 | done | |
10797 | if test -z "$haveit"; then | |
10798 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10799 | fi | |
10800 | done | |
10801 | ||
10802 | fi | |
10803 | ||
10804 | ||
10805 | cat >>confdefs.h <<\_ACEOF | |
10806 | #define HAVE_GETTEXT 1 | |
10807 | _ACEOF | |
10808 | ||
10809 | ||
10810 | cat >>confdefs.h <<\_ACEOF | |
10811 | #define HAVE_DCGETTEXT 1 | |
10812 | _ACEOF | |
10813 | ||
10814 | fi | |
10815 | ||
10816 | POSUB=po | |
10817 | fi | |
10818 | ||
10819 | ||
10820 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
10821 | BUILD_INCLUDED_LIBINTL=yes | |
10822 | fi | |
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | nls_cv_header_intl= | |
10829 | nls_cv_header_libgt= | |
10830 | ||
10831 | DATADIRNAME=share | |
10832 | ||
10833 | ||
10834 | INSTOBJEXT=.mo | |
10835 | ||
10836 | ||
10837 | GENCAT=gencat | |
10838 | ||
10839 | ||
10840 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
10841 | INTLOBJS="\$(GETTOBJS)" | |
10842 | fi | |
10843 | ||
10844 | ||
10845 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
10846 | ||
10847 | ||
10848 | ||
10849 | INTLLIBS="$LIBINTL" | |
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ac_header_dirent=no | |
10863 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
3185942a JA |
10864 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
10865 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
10866 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
10867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10868 | $as_echo_n "(cached) " >&6 | |
7117c2d2 JA |
10869 | else |
10870 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10871 | /* confdefs.h. */ |
10872 | _ACEOF | |
10873 | cat confdefs.h >>conftest.$ac_ext | |
10874 | cat >>conftest.$ac_ext <<_ACEOF | |
10875 | /* end confdefs.h. */ | |
b80f6443 JA |
10876 | #include <sys/types.h> |
10877 | #include <$ac_hdr> | |
10878 | ||
7117c2d2 JA |
10879 | int |
10880 | main () | |
10881 | { | |
b80f6443 JA |
10882 | if ((DIR *) 0) |
10883 | return 0; | |
7117c2d2 JA |
10884 | ; |
10885 | return 0; | |
10886 | } | |
10887 | _ACEOF | |
10888 | rm -f conftest.$ac_objext | |
3185942a JA |
10889 | if { (ac_try="$ac_compile" |
10890 | case "(($ac_try" in | |
10891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10892 | *) ac_try_echo=$ac_try;; | |
10893 | esac | |
10894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10895 | $as_echo "$ac_try_echo") >&5 | |
10896 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 10897 | ac_status=$? |
0628567a JA |
10898 | grep -v '^ *+' conftest.er1 >conftest.err |
10899 | rm -f conftest.er1 | |
10900 | cat conftest.err >&5 | |
3185942a JA |
10901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10902 | (exit $ac_status); } && { | |
10903 | test -z "$ac_c_werror_flag" || | |
10904 | test ! -s conftest.err | |
10905 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 10906 | eval "$as_ac_Header=yes" |
7117c2d2 | 10907 | else |
3185942a | 10908 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10909 | sed 's/^/| /' conftest.$ac_ext >&5 |
10910 | ||
3185942a | 10911 | eval "$as_ac_Header=no" |
7117c2d2 | 10912 | fi |
3185942a JA |
10913 | |
10914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 10915 | fi |
3185942a JA |
10916 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10917 | $as_echo "$as_val"'` | |
10918 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10919 | $as_echo "$ac_res" >&6; } | |
10920 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10921 | $as_echo "$as_val"'` | |
10922 | if test "x$as_val" = x""yes; then | |
b80f6443 | 10923 | cat >>confdefs.h <<_ACEOF |
3185942a | 10924 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
b80f6443 | 10925 | _ACEOF |
7117c2d2 | 10926 | |
b80f6443 | 10927 | ac_header_dirent=$ac_hdr; break |
7117c2d2 JA |
10928 | fi |
10929 | ||
b80f6443 JA |
10930 | done |
10931 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
10932 | if test $ac_header_dirent = dirent.h; then | |
3185942a JA |
10933 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
10934 | $as_echo_n "checking for library containing opendir... " >&6; } | |
b80f6443 | 10935 | if test "${ac_cv_search_opendir+set}" = set; then |
3185942a | 10936 | $as_echo_n "(cached) " >&6 |
f73dda09 | 10937 | else |
b80f6443 | 10938 | ac_func_search_save_LIBS=$LIBS |
b80f6443 | 10939 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
10940 | /* confdefs.h. */ |
10941 | _ACEOF | |
10942 | cat confdefs.h >>conftest.$ac_ext | |
10943 | cat >>conftest.$ac_ext <<_ACEOF | |
10944 | /* end confdefs.h. */ | |
f73dda09 | 10945 | |
3185942a JA |
10946 | /* Override any GCC internal prototype to avoid an error. |
10947 | Use char because int might match the return type of a GCC | |
10948 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
10949 | #ifdef __cplusplus |
10950 | extern "C" | |
f73dda09 | 10951 | #endif |
b80f6443 | 10952 | char opendir (); |
f73dda09 JA |
10953 | int |
10954 | main () | |
10955 | { | |
3185942a | 10956 | return opendir (); |
f73dda09 JA |
10957 | ; |
10958 | return 0; | |
10959 | } | |
10960 | _ACEOF | |
3185942a JA |
10961 | for ac_lib in '' dir; do |
10962 | if test -z "$ac_lib"; then | |
10963 | ac_res="none required" | |
10964 | else | |
10965 | ac_res=-l$ac_lib | |
10966 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10967 | fi | |
10968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10969 | if { (ac_try="$ac_link" | |
10970 | case "(($ac_try" in | |
10971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10972 | *) ac_try_echo=$ac_try;; | |
10973 | esac | |
10974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10975 | $as_echo "$ac_try_echo") >&5 | |
10976 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10977 | ac_status=$? |
0628567a JA |
10978 | grep -v '^ *+' conftest.er1 >conftest.err |
10979 | rm -f conftest.er1 | |
10980 | cat conftest.err >&5 | |
3185942a JA |
10981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10982 | (exit $ac_status); } && { | |
10983 | test -z "$ac_c_werror_flag" || | |
10984 | test ! -s conftest.err | |
10985 | } && test -s conftest$ac_exeext && { | |
10986 | test "$cross_compiling" = yes || | |
10987 | $as_test_x conftest$ac_exeext | |
10988 | }; then | |
10989 | ac_cv_search_opendir=$ac_res | |
f73dda09 | 10990 | else |
3185942a | 10991 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10992 | sed 's/^/| /' conftest.$ac_ext >&5 |
10993 | ||
f73dda09 | 10994 | |
3185942a | 10995 | fi |
0628567a | 10996 | |
3185942a JA |
10997 | rm -rf conftest.dSYM |
10998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10999 | conftest$ac_exeext | |
11000 | if test "${ac_cv_search_opendir+set}" = set; then | |
11001 | break | |
f73dda09 | 11002 | fi |
3185942a JA |
11003 | done |
11004 | if test "${ac_cv_search_opendir+set}" = set; then | |
11005 | : | |
11006 | else | |
11007 | ac_cv_search_opendir=no | |
f73dda09 | 11008 | fi |
3185942a | 11009 | rm conftest.$ac_ext |
b80f6443 JA |
11010 | LIBS=$ac_func_search_save_LIBS |
11011 | fi | |
3185942a JA |
11012 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11013 | $as_echo "$ac_cv_search_opendir" >&6; } | |
11014 | ac_res=$ac_cv_search_opendir | |
11015 | if test "$ac_res" != no; then | |
11016 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f73dda09 JA |
11017 | |
11018 | fi | |
11019 | ||
b80f6443 | 11020 | else |
3185942a JA |
11021 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11022 | $as_echo_n "checking for library containing opendir... " >&6; } | |
b80f6443 | 11023 | if test "${ac_cv_search_opendir+set}" = set; then |
3185942a | 11024 | $as_echo_n "(cached) " >&6 |
f73dda09 | 11025 | else |
b80f6443 | 11026 | ac_func_search_save_LIBS=$LIBS |
b80f6443 | 11027 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11028 | /* confdefs.h. */ |
11029 | _ACEOF | |
11030 | cat confdefs.h >>conftest.$ac_ext | |
11031 | cat >>conftest.$ac_ext <<_ACEOF | |
11032 | /* end confdefs.h. */ | |
f73dda09 | 11033 | |
3185942a JA |
11034 | /* Override any GCC internal prototype to avoid an error. |
11035 | Use char because int might match the return type of a GCC | |
11036 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
11037 | #ifdef __cplusplus |
11038 | extern "C" | |
f73dda09 | 11039 | #endif |
b80f6443 | 11040 | char opendir (); |
f73dda09 JA |
11041 | int |
11042 | main () | |
11043 | { | |
3185942a | 11044 | return opendir (); |
f73dda09 JA |
11045 | ; |
11046 | return 0; | |
11047 | } | |
11048 | _ACEOF | |
3185942a JA |
11049 | for ac_lib in '' x; do |
11050 | if test -z "$ac_lib"; then | |
11051 | ac_res="none required" | |
11052 | else | |
11053 | ac_res=-l$ac_lib | |
11054 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11055 | fi | |
11056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11057 | if { (ac_try="$ac_link" | |
11058 | case "(($ac_try" in | |
11059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11060 | *) ac_try_echo=$ac_try;; | |
11061 | esac | |
11062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11063 | $as_echo "$ac_try_echo") >&5 | |
11064 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 11065 | ac_status=$? |
0628567a JA |
11066 | grep -v '^ *+' conftest.er1 >conftest.err |
11067 | rm -f conftest.er1 | |
11068 | cat conftest.err >&5 | |
3185942a JA |
11069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11070 | (exit $ac_status); } && { | |
11071 | test -z "$ac_c_werror_flag" || | |
11072 | test ! -s conftest.err | |
11073 | } && test -s conftest$ac_exeext && { | |
11074 | test "$cross_compiling" = yes || | |
11075 | $as_test_x conftest$ac_exeext | |
11076 | }; then | |
11077 | ac_cv_search_opendir=$ac_res | |
f73dda09 | 11078 | else |
3185942a | 11079 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11080 | sed 's/^/| /' conftest.$ac_ext >&5 |
11081 | ||
f73dda09 | 11082 | |
3185942a | 11083 | fi |
0628567a | 11084 | |
3185942a JA |
11085 | rm -rf conftest.dSYM |
11086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11087 | conftest$ac_exeext | |
11088 | if test "${ac_cv_search_opendir+set}" = set; then | |
11089 | break | |
f73dda09 | 11090 | fi |
3185942a JA |
11091 | done |
11092 | if test "${ac_cv_search_opendir+set}" = set; then | |
11093 | : | |
11094 | else | |
11095 | ac_cv_search_opendir=no | |
f73dda09 | 11096 | fi |
3185942a | 11097 | rm conftest.$ac_ext |
b80f6443 JA |
11098 | LIBS=$ac_func_search_save_LIBS |
11099 | fi | |
3185942a JA |
11100 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11101 | $as_echo "$ac_cv_search_opendir" >&6; } | |
11102 | ac_res=$ac_cv_search_opendir | |
11103 | if test "$ac_res" != no; then | |
11104 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f73dda09 | 11105 | |
b80f6443 | 11106 | fi |
f73dda09 JA |
11107 | |
11108 | fi | |
11109 | ||
3185942a JA |
11110 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
11111 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
b80f6443 | 11112 | if test "${ac_cv_header_time+set}" = set; then |
3185942a | 11113 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
11114 | else |
11115 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11116 | /* confdefs.h. */ |
11117 | _ACEOF | |
11118 | cat confdefs.h >>conftest.$ac_ext | |
11119 | cat >>conftest.$ac_ext <<_ACEOF | |
11120 | /* end confdefs.h. */ | |
b80f6443 JA |
11121 | #include <sys/types.h> |
11122 | #include <sys/time.h> | |
11123 | #include <time.h> | |
f73dda09 JA |
11124 | |
11125 | int | |
11126 | main () | |
11127 | { | |
b80f6443 JA |
11128 | if ((struct tm *) 0) |
11129 | return 0; | |
f73dda09 JA |
11130 | ; |
11131 | return 0; | |
11132 | } | |
11133 | _ACEOF | |
b80f6443 | 11134 | rm -f conftest.$ac_objext |
3185942a JA |
11135 | if { (ac_try="$ac_compile" |
11136 | case "(($ac_try" in | |
11137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11138 | *) ac_try_echo=$ac_try;; | |
11139 | esac | |
11140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11141 | $as_echo "$ac_try_echo") >&5 | |
11142 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11143 | ac_status=$? |
0628567a JA |
11144 | grep -v '^ *+' conftest.er1 >conftest.err |
11145 | rm -f conftest.er1 | |
11146 | cat conftest.err >&5 | |
3185942a JA |
11147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11148 | (exit $ac_status); } && { | |
11149 | test -z "$ac_c_werror_flag" || | |
11150 | test ! -s conftest.err | |
11151 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11152 | ac_cv_header_time=yes |
f73dda09 | 11153 | else |
3185942a | 11154 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11155 | sed 's/^/| /' conftest.$ac_ext >&5 |
11156 | ||
3185942a | 11157 | ac_cv_header_time=no |
f73dda09 | 11158 | fi |
3185942a JA |
11159 | |
11160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 11161 | fi |
3185942a JA |
11162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
11163 | $as_echo "$ac_cv_header_time" >&6; } | |
b80f6443 | 11164 | if test $ac_cv_header_time = yes; then |
f73dda09 | 11165 | |
b80f6443 JA |
11166 | cat >>confdefs.h <<\_ACEOF |
11167 | #define TIME_WITH_SYS_TIME 1 | |
11168 | _ACEOF | |
f73dda09 JA |
11169 | |
11170 | fi | |
11171 | ||
f73dda09 | 11172 | |
f73dda09 | 11173 | |
b80f6443 JA |
11174 | |
11175 | for ac_header in inttypes.h | |
11176 | do | |
3185942a JA |
11177 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11178 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11179 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11180 | $as_echo_n "checking for $ac_header... " >&6; } | |
11181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11182 | $as_echo_n "(cached) " >&6 | |
11183 | fi | |
11184 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11185 | $as_echo "$as_val"'` | |
11186 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11187 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11188 | else |
11189 | # Is the header compilable? | |
3185942a JA |
11190 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11191 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11192 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11193 | /* confdefs.h. */ |
11194 | _ACEOF | |
11195 | cat confdefs.h >>conftest.$ac_ext | |
11196 | cat >>conftest.$ac_ext <<_ACEOF | |
11197 | /* end confdefs.h. */ | |
b80f6443 JA |
11198 | $ac_includes_default |
11199 | #include <$ac_header> | |
11200 | _ACEOF | |
11201 | rm -f conftest.$ac_objext | |
3185942a JA |
11202 | if { (ac_try="$ac_compile" |
11203 | case "(($ac_try" in | |
11204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11205 | *) ac_try_echo=$ac_try;; | |
11206 | esac | |
11207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11208 | $as_echo "$ac_try_echo") >&5 | |
11209 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11210 | ac_status=$? |
0628567a JA |
11211 | grep -v '^ *+' conftest.er1 >conftest.err |
11212 | rm -f conftest.er1 | |
11213 | cat conftest.err >&5 | |
3185942a JA |
11214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11215 | (exit $ac_status); } && { | |
11216 | test -z "$ac_c_werror_flag" || | |
11217 | test ! -s conftest.err | |
11218 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11219 | ac_header_compiler=yes |
f73dda09 | 11220 | else |
3185942a | 11221 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11222 | sed 's/^/| /' conftest.$ac_ext >&5 |
11223 | ||
3185942a | 11224 | ac_header_compiler=no |
f73dda09 | 11225 | fi |
3185942a JA |
11226 | |
11227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11228 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11229 | $as_echo "$ac_header_compiler" >&6; } | |
f73dda09 | 11230 | |
b80f6443 | 11231 | # Is the header present? |
3185942a JA |
11232 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11233 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11234 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11235 | /* confdefs.h. */ |
11236 | _ACEOF | |
11237 | cat confdefs.h >>conftest.$ac_ext | |
11238 | cat >>conftest.$ac_ext <<_ACEOF | |
11239 | /* end confdefs.h. */ | |
f73dda09 JA |
11240 | #include <$ac_header> |
11241 | _ACEOF | |
3185942a JA |
11242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11243 | case "(($ac_try" in | |
11244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11245 | *) ac_try_echo=$ac_try;; | |
11246 | esac | |
11247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11248 | $as_echo "$ac_try_echo") >&5 | |
11249 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 11250 | ac_status=$? |
0628567a | 11251 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
11252 | rm -f conftest.er1 |
11253 | cat conftest.err >&5 | |
3185942a JA |
11254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11255 | (exit $ac_status); } >/dev/null && { | |
11256 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11257 | test ! -s conftest.err | |
11258 | }; then | |
b80f6443 | 11259 | ac_header_preproc=yes |
f73dda09 | 11260 | else |
3185942a | 11261 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11262 | sed 's/^/| /' conftest.$ac_ext >&5 |
11263 | ||
b80f6443 | 11264 | ac_header_preproc=no |
f73dda09 | 11265 | fi |
3185942a | 11266 | |
f73dda09 | 11267 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11268 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11269 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11270 | |
11271 | # So? What about this header? | |
0628567a JA |
11272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11273 | yes:no: ) | |
3185942a JA |
11274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11275 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11277 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11278 | ac_header_preproc=yes |
11279 | ;; | |
11280 | no:yes:* ) | |
3185942a JA |
11281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11282 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11284 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11286 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11288 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11290 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11292 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11293 | ( cat <<\_ASBOX | |
0628567a JA |
11294 | ## ------------------------------- ## |
11295 | ## Report this to bug-bash@gnu.org ## | |
11296 | ## ------------------------------- ## | |
11297 | _ASBOX | |
3185942a | 11298 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11299 | ;; |
b80f6443 | 11300 | esac |
3185942a JA |
11301 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11302 | $as_echo_n "checking for $ac_header... " >&6; } | |
11303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11304 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11305 | else |
0628567a | 11306 | eval "$as_ac_Header=\$ac_header_preproc" |
f73dda09 | 11307 | fi |
3185942a JA |
11308 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11309 | $as_echo "$as_val"'` | |
11310 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11311 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11312 | |
11313 | fi | |
3185942a JA |
11314 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11315 | $as_echo "$as_val"'` | |
11316 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11317 | cat >>confdefs.h <<_ACEOF |
3185942a | 11318 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 11319 | _ACEOF |
f73dda09 JA |
11320 | |
11321 | fi | |
b80f6443 | 11322 | |
f73dda09 JA |
11323 | done |
11324 | ||
b80f6443 JA |
11325 | |
11326 | ||
11327 | ||
11328 | ||
11329 | ||
11330 | ||
11331 | ||
11332 | ||
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
95732b49 | 11343 | |
b80f6443 JA |
11344 | |
11345 | ||
11346 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ | |
11347 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ | |
95732b49 | 11348 | stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h |
f73dda09 | 11349 | do |
3185942a JA |
11350 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11352 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11353 | $as_echo_n "checking for $ac_header... " >&6; } | |
11354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11355 | $as_echo_n "(cached) " >&6 | |
11356 | fi | |
11357 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11358 | $as_echo "$as_val"'` | |
11359 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11360 | $as_echo "$ac_res" >&6; } | |
f73dda09 | 11361 | else |
b80f6443 | 11362 | # Is the header compilable? |
3185942a JA |
11363 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11364 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11365 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11366 | /* confdefs.h. */ |
11367 | _ACEOF | |
11368 | cat confdefs.h >>conftest.$ac_ext | |
11369 | cat >>conftest.$ac_ext <<_ACEOF | |
11370 | /* end confdefs.h. */ | |
b80f6443 JA |
11371 | $ac_includes_default |
11372 | #include <$ac_header> | |
11373 | _ACEOF | |
11374 | rm -f conftest.$ac_objext | |
3185942a JA |
11375 | if { (ac_try="$ac_compile" |
11376 | case "(($ac_try" in | |
11377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11378 | *) ac_try_echo=$ac_try;; | |
11379 | esac | |
11380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11381 | $as_echo "$ac_try_echo") >&5 | |
11382 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11383 | ac_status=$? |
0628567a JA |
11384 | grep -v '^ *+' conftest.er1 >conftest.err |
11385 | rm -f conftest.er1 | |
11386 | cat conftest.err >&5 | |
3185942a JA |
11387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11388 | (exit $ac_status); } && { | |
11389 | test -z "$ac_c_werror_flag" || | |
11390 | test ! -s conftest.err | |
11391 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11392 | ac_header_compiler=yes |
f73dda09 | 11393 | else |
3185942a | 11394 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11395 | sed 's/^/| /' conftest.$ac_ext >&5 |
11396 | ||
3185942a | 11397 | ac_header_compiler=no |
f73dda09 | 11398 | fi |
3185942a JA |
11399 | |
11400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11401 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11402 | $as_echo "$ac_header_compiler" >&6; } | |
f73dda09 | 11403 | |
b80f6443 | 11404 | # Is the header present? |
3185942a JA |
11405 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11406 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11407 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11408 | /* confdefs.h. */ |
11409 | _ACEOF | |
11410 | cat confdefs.h >>conftest.$ac_ext | |
11411 | cat >>conftest.$ac_ext <<_ACEOF | |
11412 | /* end confdefs.h. */ | |
b80f6443 JA |
11413 | #include <$ac_header> |
11414 | _ACEOF | |
3185942a JA |
11415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11416 | case "(($ac_try" in | |
11417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11418 | *) ac_try_echo=$ac_try;; | |
11419 | esac | |
11420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11421 | $as_echo "$ac_try_echo") >&5 | |
11422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11423 | ac_status=$? |
0628567a | 11424 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11425 | rm -f conftest.er1 |
11426 | cat conftest.err >&5 | |
3185942a JA |
11427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11428 | (exit $ac_status); } >/dev/null && { | |
11429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11430 | test ! -s conftest.err | |
11431 | }; then | |
b80f6443 | 11432 | ac_header_preproc=yes |
7117c2d2 | 11433 | else |
3185942a | 11434 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11435 | sed 's/^/| /' conftest.$ac_ext >&5 |
11436 | ||
b80f6443 JA |
11437 | ac_header_preproc=no |
11438 | fi | |
3185942a | 11439 | |
b80f6443 | 11440 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11441 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11442 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11443 | |
11444 | # So? What about this header? | |
0628567a JA |
11445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11446 | yes:no: ) | |
3185942a JA |
11447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11448 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11450 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11451 | ac_header_preproc=yes |
11452 | ;; | |
11453 | no:yes:* ) | |
3185942a JA |
11454 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11455 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11456 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11457 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11459 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11461 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11463 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11465 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11466 | ( cat <<\_ASBOX | |
0628567a JA |
11467 | ## ------------------------------- ## |
11468 | ## Report this to bug-bash@gnu.org ## | |
11469 | ## ------------------------------- ## | |
11470 | _ASBOX | |
3185942a | 11471 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11472 | ;; |
b80f6443 | 11473 | esac |
3185942a JA |
11474 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11475 | $as_echo_n "checking for $ac_header... " >&6; } | |
11476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11477 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11478 | else |
0628567a | 11479 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11480 | fi |
3185942a JA |
11481 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11482 | $as_echo "$as_val"'` | |
11483 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11484 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11485 | |
11486 | fi | |
3185942a JA |
11487 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11488 | $as_echo "$as_val"'` | |
11489 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11490 | cat >>confdefs.h <<_ACEOF |
3185942a | 11491 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11492 | _ACEOF |
11493 | ||
11494 | fi | |
11495 | ||
11496 | done | |
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
95732b49 | 11510 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ |
b80f6443 JA |
11511 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ |
11512 | sys/time.h sys/times.h sys/types.h sys/wait.h | |
11513 | do | |
3185942a JA |
11514 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11515 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11516 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11517 | $as_echo_n "checking for $ac_header... " >&6; } | |
11518 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11519 | $as_echo_n "(cached) " >&6 | |
11520 | fi | |
11521 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11522 | $as_echo "$as_val"'` | |
11523 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11524 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11525 | else |
11526 | # Is the header compilable? | |
3185942a JA |
11527 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11528 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11529 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11530 | /* confdefs.h. */ |
11531 | _ACEOF | |
11532 | cat confdefs.h >>conftest.$ac_ext | |
11533 | cat >>conftest.$ac_ext <<_ACEOF | |
11534 | /* end confdefs.h. */ | |
b80f6443 JA |
11535 | $ac_includes_default |
11536 | #include <$ac_header> | |
11537 | _ACEOF | |
11538 | rm -f conftest.$ac_objext | |
3185942a JA |
11539 | if { (ac_try="$ac_compile" |
11540 | case "(($ac_try" in | |
11541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11542 | *) ac_try_echo=$ac_try;; | |
11543 | esac | |
11544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11545 | $as_echo "$ac_try_echo") >&5 | |
11546 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 11547 | ac_status=$? |
0628567a JA |
11548 | grep -v '^ *+' conftest.er1 >conftest.err |
11549 | rm -f conftest.er1 | |
11550 | cat conftest.err >&5 | |
3185942a JA |
11551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11552 | (exit $ac_status); } && { | |
11553 | test -z "$ac_c_werror_flag" || | |
11554 | test ! -s conftest.err | |
11555 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
11556 | ac_header_compiler=yes |
11557 | else | |
3185942a | 11558 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11559 | sed 's/^/| /' conftest.$ac_ext >&5 |
11560 | ||
3185942a | 11561 | ac_header_compiler=no |
b80f6443 | 11562 | fi |
3185942a JA |
11563 | |
11564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11565 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11566 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
11567 | |
11568 | # Is the header present? | |
3185942a JA |
11569 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11570 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11571 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11572 | /* confdefs.h. */ |
11573 | _ACEOF | |
11574 | cat confdefs.h >>conftest.$ac_ext | |
11575 | cat >>conftest.$ac_ext <<_ACEOF | |
11576 | /* end confdefs.h. */ | |
b80f6443 JA |
11577 | #include <$ac_header> |
11578 | _ACEOF | |
3185942a JA |
11579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11580 | case "(($ac_try" in | |
11581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11582 | *) ac_try_echo=$ac_try;; | |
11583 | esac | |
11584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11585 | $as_echo "$ac_try_echo") >&5 | |
11586 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11587 | ac_status=$? |
0628567a | 11588 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11589 | rm -f conftest.er1 |
11590 | cat conftest.err >&5 | |
3185942a JA |
11591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11592 | (exit $ac_status); } >/dev/null && { | |
11593 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11594 | test ! -s conftest.err | |
11595 | }; then | |
b80f6443 JA |
11596 | ac_header_preproc=yes |
11597 | else | |
3185942a | 11598 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11599 | sed 's/^/| /' conftest.$ac_ext >&5 |
11600 | ||
b80f6443 JA |
11601 | ac_header_preproc=no |
11602 | fi | |
3185942a | 11603 | |
b80f6443 | 11604 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11605 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11606 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11607 | |
11608 | # So? What about this header? | |
0628567a JA |
11609 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11610 | yes:no: ) | |
3185942a JA |
11611 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11612 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11613 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11614 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11615 | ac_header_preproc=yes |
11616 | ;; | |
11617 | no:yes:* ) | |
3185942a JA |
11618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11619 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11620 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11621 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11622 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11623 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11624 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11625 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11627 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11629 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11630 | ( cat <<\_ASBOX | |
0628567a JA |
11631 | ## ------------------------------- ## |
11632 | ## Report this to bug-bash@gnu.org ## | |
11633 | ## ------------------------------- ## | |
11634 | _ASBOX | |
3185942a | 11635 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11636 | ;; |
b80f6443 | 11637 | esac |
3185942a JA |
11638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11639 | $as_echo_n "checking for $ac_header... " >&6; } | |
11640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11641 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11642 | else |
0628567a | 11643 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11644 | fi |
3185942a JA |
11645 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11646 | $as_echo "$as_val"'` | |
11647 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11648 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11649 | |
11650 | fi | |
3185942a JA |
11651 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11652 | $as_echo "$as_val"'` | |
11653 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11654 | cat >>confdefs.h <<_ACEOF |
3185942a | 11655 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11656 | _ACEOF |
11657 | ||
11658 | fi | |
11659 | ||
11660 | done | |
11661 | ||
11662 | ||
11663 | ||
11664 | for ac_header in netinet/in.h arpa/inet.h | |
11665 | do | |
3185942a JA |
11666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11669 | $as_echo_n "checking for $ac_header... " >&6; } | |
11670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11671 | $as_echo_n "(cached) " >&6 | |
11672 | fi | |
11673 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11674 | $as_echo "$as_val"'` | |
11675 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11676 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11677 | else |
11678 | # Is the header compilable? | |
3185942a JA |
11679 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11680 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11681 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11682 | /* confdefs.h. */ |
11683 | _ACEOF | |
11684 | cat confdefs.h >>conftest.$ac_ext | |
11685 | cat >>conftest.$ac_ext <<_ACEOF | |
11686 | /* end confdefs.h. */ | |
b80f6443 JA |
11687 | $ac_includes_default |
11688 | #include <$ac_header> | |
11689 | _ACEOF | |
11690 | rm -f conftest.$ac_objext | |
3185942a JA |
11691 | if { (ac_try="$ac_compile" |
11692 | case "(($ac_try" in | |
11693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11694 | *) ac_try_echo=$ac_try;; | |
11695 | esac | |
11696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11697 | $as_echo "$ac_try_echo") >&5 | |
11698 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 11699 | ac_status=$? |
0628567a JA |
11700 | grep -v '^ *+' conftest.er1 >conftest.err |
11701 | rm -f conftest.er1 | |
11702 | cat conftest.err >&5 | |
3185942a JA |
11703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11704 | (exit $ac_status); } && { | |
11705 | test -z "$ac_c_werror_flag" || | |
11706 | test ! -s conftest.err | |
11707 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
11708 | ac_header_compiler=yes |
11709 | else | |
3185942a | 11710 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11711 | sed 's/^/| /' conftest.$ac_ext >&5 |
11712 | ||
3185942a | 11713 | ac_header_compiler=no |
b80f6443 | 11714 | fi |
3185942a JA |
11715 | |
11716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11717 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11718 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
11719 | |
11720 | # Is the header present? | |
3185942a JA |
11721 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11722 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11723 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11724 | /* confdefs.h. */ |
11725 | _ACEOF | |
11726 | cat confdefs.h >>conftest.$ac_ext | |
11727 | cat >>conftest.$ac_ext <<_ACEOF | |
11728 | /* end confdefs.h. */ | |
b80f6443 JA |
11729 | #include <$ac_header> |
11730 | _ACEOF | |
3185942a JA |
11731 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11732 | case "(($ac_try" in | |
11733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11734 | *) ac_try_echo=$ac_try;; | |
11735 | esac | |
11736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11737 | $as_echo "$ac_try_echo") >&5 | |
11738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11739 | ac_status=$? |
0628567a | 11740 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11741 | rm -f conftest.er1 |
11742 | cat conftest.err >&5 | |
3185942a JA |
11743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11744 | (exit $ac_status); } >/dev/null && { | |
11745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11746 | test ! -s conftest.err | |
11747 | }; then | |
b80f6443 JA |
11748 | ac_header_preproc=yes |
11749 | else | |
3185942a | 11750 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11751 | sed 's/^/| /' conftest.$ac_ext >&5 |
11752 | ||
b80f6443 JA |
11753 | ac_header_preproc=no |
11754 | fi | |
3185942a | 11755 | |
b80f6443 | 11756 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11757 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11758 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11759 | |
11760 | # So? What about this header? | |
0628567a JA |
11761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11762 | yes:no: ) | |
3185942a JA |
11763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11764 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11767 | ac_header_preproc=yes |
11768 | ;; | |
11769 | no:yes:* ) | |
3185942a JA |
11770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11771 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11773 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11775 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11777 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11781 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11782 | ( cat <<\_ASBOX | |
0628567a JA |
11783 | ## ------------------------------- ## |
11784 | ## Report this to bug-bash@gnu.org ## | |
11785 | ## ------------------------------- ## | |
11786 | _ASBOX | |
3185942a | 11787 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11788 | ;; |
b80f6443 | 11789 | esac |
3185942a JA |
11790 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11791 | $as_echo_n "checking for $ac_header... " >&6; } | |
11792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11793 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11794 | else |
0628567a | 11795 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11796 | fi |
3185942a JA |
11797 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11798 | $as_echo "$as_val"'` | |
11799 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11800 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11801 | |
11802 | fi | |
3185942a JA |
11803 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11804 | $as_echo "$as_val"'` | |
11805 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11806 | cat >>confdefs.h <<_ACEOF |
3185942a | 11807 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11808 | _ACEOF |
11809 | ||
11810 | fi | |
11811 | ||
11812 | done | |
11813 | ||
11814 | ||
3185942a JA |
11815 | { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 |
11816 | $as_echo_n "checking for sys/ptem.h... " >&6; } | |
95732b49 | 11817 | if test "${ac_cv_header_sys_ptem_h+set}" = set; then |
3185942a | 11818 | $as_echo_n "(cached) " >&6 |
95732b49 JA |
11819 | else |
11820 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11821 | /* confdefs.h. */ |
11822 | _ACEOF | |
11823 | cat confdefs.h >>conftest.$ac_ext | |
11824 | cat >>conftest.$ac_ext <<_ACEOF | |
11825 | /* end confdefs.h. */ | |
95732b49 JA |
11826 | |
11827 | #if HAVE_SYS_STREAM_H | |
11828 | # include <sys/stream.h> | |
11829 | #endif | |
11830 | ||
11831 | ||
11832 | #include <sys/ptem.h> | |
11833 | _ACEOF | |
11834 | rm -f conftest.$ac_objext | |
3185942a JA |
11835 | if { (ac_try="$ac_compile" |
11836 | case "(($ac_try" in | |
11837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11838 | *) ac_try_echo=$ac_try;; | |
11839 | esac | |
11840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11841 | $as_echo "$ac_try_echo") >&5 | |
11842 | (eval "$ac_compile") 2>conftest.er1 | |
95732b49 | 11843 | ac_status=$? |
0628567a JA |
11844 | grep -v '^ *+' conftest.er1 >conftest.err |
11845 | rm -f conftest.er1 | |
11846 | cat conftest.err >&5 | |
3185942a JA |
11847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11848 | (exit $ac_status); } && { | |
11849 | test -z "$ac_c_werror_flag" || | |
11850 | test ! -s conftest.err | |
11851 | } && test -s conftest.$ac_objext; then | |
95732b49 JA |
11852 | ac_cv_header_sys_ptem_h=yes |
11853 | else | |
3185942a | 11854 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11855 | sed 's/^/| /' conftest.$ac_ext >&5 |
11856 | ||
3185942a | 11857 | ac_cv_header_sys_ptem_h=no |
95732b49 | 11858 | fi |
3185942a JA |
11859 | |
11860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 11861 | fi |
3185942a JA |
11862 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 |
11863 | $as_echo "$ac_cv_header_sys_ptem_h" >&6; } | |
95732b49 JA |
11864 | |
11865 | ||
11866 | ||
b80f6443 JA |
11867 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
11868 | # for constant arguments. Useless! | |
3185942a JA |
11869 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
11870 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b80f6443 | 11871 | if test "${ac_cv_working_alloca_h+set}" = set; then |
3185942a | 11872 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
11873 | else |
11874 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11875 | /* confdefs.h. */ |
11876 | _ACEOF | |
11877 | cat confdefs.h >>conftest.$ac_ext | |
11878 | cat >>conftest.$ac_ext <<_ACEOF | |
11879 | /* end confdefs.h. */ | |
b80f6443 JA |
11880 | #include <alloca.h> |
11881 | int | |
11882 | main () | |
11883 | { | |
11884 | char *p = (char *) alloca (2 * sizeof (int)); | |
3185942a | 11885 | if (p) return 0; |
b80f6443 JA |
11886 | ; |
11887 | return 0; | |
11888 | } | |
11889 | _ACEOF | |
11890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
11891 | if { (ac_try="$ac_link" |
11892 | case "(($ac_try" in | |
11893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11894 | *) ac_try_echo=$ac_try;; | |
11895 | esac | |
11896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11897 | $as_echo "$ac_try_echo") >&5 | |
11898 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 11899 | ac_status=$? |
0628567a JA |
11900 | grep -v '^ *+' conftest.er1 >conftest.err |
11901 | rm -f conftest.er1 | |
11902 | cat conftest.err >&5 | |
3185942a JA |
11903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11904 | (exit $ac_status); } && { | |
11905 | test -z "$ac_c_werror_flag" || | |
11906 | test ! -s conftest.err | |
11907 | } && test -s conftest$ac_exeext && { | |
11908 | test "$cross_compiling" = yes || | |
11909 | $as_test_x conftest$ac_exeext | |
11910 | }; then | |
b80f6443 JA |
11911 | ac_cv_working_alloca_h=yes |
11912 | else | |
3185942a | 11913 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11914 | sed 's/^/| /' conftest.$ac_ext >&5 |
11915 | ||
3185942a | 11916 | ac_cv_working_alloca_h=no |
b80f6443 | 11917 | fi |
3185942a JA |
11918 | |
11919 | rm -rf conftest.dSYM | |
11920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 11921 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 11922 | fi |
3185942a JA |
11923 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
11924 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b80f6443 JA |
11925 | if test $ac_cv_working_alloca_h = yes; then |
11926 | ||
11927 | cat >>confdefs.h <<\_ACEOF | |
11928 | #define HAVE_ALLOCA_H 1 | |
11929 | _ACEOF | |
11930 | ||
11931 | fi | |
11932 | ||
3185942a JA |
11933 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
11934 | $as_echo_n "checking for alloca... " >&6; } | |
b80f6443 | 11935 | if test "${ac_cv_func_alloca_works+set}" = set; then |
3185942a | 11936 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
11937 | else |
11938 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11939 | /* confdefs.h. */ |
11940 | _ACEOF | |
11941 | cat confdefs.h >>conftest.$ac_ext | |
11942 | cat >>conftest.$ac_ext <<_ACEOF | |
11943 | /* end confdefs.h. */ | |
b80f6443 JA |
11944 | #ifdef __GNUC__ |
11945 | # define alloca __builtin_alloca | |
11946 | #else | |
11947 | # ifdef _MSC_VER | |
11948 | # include <malloc.h> | |
11949 | # define alloca _alloca | |
11950 | # else | |
3185942a | 11951 | # ifdef HAVE_ALLOCA_H |
b80f6443 JA |
11952 | # include <alloca.h> |
11953 | # else | |
11954 | # ifdef _AIX | |
11955 | #pragma alloca | |
11956 | # else | |
11957 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
11958 | char *alloca (); | |
11959 | # endif | |
11960 | # endif | |
11961 | # endif | |
11962 | # endif | |
11963 | #endif | |
11964 | ||
11965 | int | |
11966 | main () | |
11967 | { | |
11968 | char *p = (char *) alloca (1); | |
3185942a | 11969 | if (p) return 0; |
b80f6443 JA |
11970 | ; |
11971 | return 0; | |
11972 | } | |
11973 | _ACEOF | |
11974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
11975 | if { (ac_try="$ac_link" |
11976 | case "(($ac_try" in | |
11977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11978 | *) ac_try_echo=$ac_try;; | |
11979 | esac | |
11980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11981 | $as_echo "$ac_try_echo") >&5 | |
11982 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 11983 | ac_status=$? |
0628567a JA |
11984 | grep -v '^ *+' conftest.er1 >conftest.err |
11985 | rm -f conftest.er1 | |
11986 | cat conftest.err >&5 | |
3185942a JA |
11987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11988 | (exit $ac_status); } && { | |
11989 | test -z "$ac_c_werror_flag" || | |
11990 | test ! -s conftest.err | |
11991 | } && test -s conftest$ac_exeext && { | |
11992 | test "$cross_compiling" = yes || | |
11993 | $as_test_x conftest$ac_exeext | |
11994 | }; then | |
b80f6443 JA |
11995 | ac_cv_func_alloca_works=yes |
11996 | else | |
3185942a | 11997 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11998 | sed 's/^/| /' conftest.$ac_ext >&5 |
11999 | ||
3185942a | 12000 | ac_cv_func_alloca_works=no |
b80f6443 | 12001 | fi |
3185942a JA |
12002 | |
12003 | rm -rf conftest.dSYM | |
12004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12005 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12006 | fi |
3185942a JA |
12007 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
12008 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
b80f6443 JA |
12009 | |
12010 | if test $ac_cv_func_alloca_works = yes; then | |
12011 | ||
12012 | cat >>confdefs.h <<\_ACEOF | |
12013 | #define HAVE_ALLOCA 1 | |
12014 | _ACEOF | |
12015 | ||
12016 | else | |
12017 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12018 | # that cause trouble. Some versions do not even contain alloca or | |
12019 | # contain a buggy version. If you still want to use their alloca, | |
12020 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12021 | ||
3185942a | 12022 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b80f6443 JA |
12023 | |
12024 | cat >>confdefs.h <<\_ACEOF | |
12025 | #define C_ALLOCA 1 | |
12026 | _ACEOF | |
12027 | ||
12028 | ||
3185942a JA |
12029 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
12030 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b80f6443 | 12031 | if test "${ac_cv_os_cray+set}" = set; then |
3185942a | 12032 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12033 | else |
12034 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12035 | /* confdefs.h. */ |
12036 | _ACEOF | |
12037 | cat confdefs.h >>conftest.$ac_ext | |
12038 | cat >>conftest.$ac_ext <<_ACEOF | |
12039 | /* end confdefs.h. */ | |
3185942a | 12040 | #if defined CRAY && ! defined CRAY2 |
b80f6443 JA |
12041 | webecray |
12042 | #else | |
12043 | wenotbecray | |
12044 | #endif | |
12045 | ||
12046 | _ACEOF | |
12047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 12048 | $EGREP "webecray" >/dev/null 2>&1; then |
b80f6443 JA |
12049 | ac_cv_os_cray=yes |
12050 | else | |
12051 | ac_cv_os_cray=no | |
12052 | fi | |
12053 | rm -f conftest* | |
12054 | ||
12055 | fi | |
3185942a JA |
12056 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
12057 | $as_echo "$ac_cv_os_cray" >&6; } | |
b80f6443 JA |
12058 | if test $ac_cv_os_cray = yes; then |
12059 | for ac_func in _getb67 GETB67 getb67; do | |
3185942a JA |
12060 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12061 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12062 | $as_echo_n "checking for $ac_func... " >&6; } | |
12063 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12064 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
12065 | else |
12066 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12067 | /* confdefs.h. */ |
12068 | _ACEOF | |
12069 | cat confdefs.h >>conftest.$ac_ext | |
12070 | cat >>conftest.$ac_ext <<_ACEOF | |
12071 | /* end confdefs.h. */ | |
12072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12074 | #define $ac_func innocuous_$ac_func | |
12075 | ||
b80f6443 | 12076 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12077 | which can conflict with char $ac_func (); below. |
12078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12079 | <limits.h> exists even on freestanding compilers. */ | |
12080 | ||
12081 | #ifdef __STDC__ | |
12082 | # include <limits.h> | |
12083 | #else | |
12084 | # include <assert.h> | |
12085 | #endif | |
12086 | ||
12087 | #undef $ac_func | |
12088 | ||
3185942a JA |
12089 | /* Override any GCC internal prototype to avoid an error. |
12090 | Use char because int might match the return type of a GCC | |
12091 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12092 | #ifdef __cplusplus |
12093 | extern "C" | |
b80f6443 | 12094 | #endif |
b80f6443 JA |
12095 | char $ac_func (); |
12096 | /* The GNU C library defines this for functions which it implements | |
12097 | to always fail with ENOSYS. Some functions are actually named | |
12098 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12099 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 12100 | choke me |
b80f6443 JA |
12101 | #endif |
12102 | ||
0628567a JA |
12103 | int |
12104 | main () | |
12105 | { | |
3185942a | 12106 | return $ac_func (); |
b80f6443 JA |
12107 | ; |
12108 | return 0; | |
12109 | } | |
12110 | _ACEOF | |
12111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12112 | if { (ac_try="$ac_link" |
12113 | case "(($ac_try" in | |
12114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12115 | *) ac_try_echo=$ac_try;; | |
12116 | esac | |
12117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12118 | $as_echo "$ac_try_echo") >&5 | |
12119 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12120 | ac_status=$? |
0628567a JA |
12121 | grep -v '^ *+' conftest.er1 >conftest.err |
12122 | rm -f conftest.er1 | |
12123 | cat conftest.err >&5 | |
3185942a JA |
12124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12125 | (exit $ac_status); } && { | |
12126 | test -z "$ac_c_werror_flag" || | |
12127 | test ! -s conftest.err | |
12128 | } && test -s conftest$ac_exeext && { | |
12129 | test "$cross_compiling" = yes || | |
12130 | $as_test_x conftest$ac_exeext | |
12131 | }; then | |
b80f6443 JA |
12132 | eval "$as_ac_var=yes" |
12133 | else | |
3185942a | 12134 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12135 | sed 's/^/| /' conftest.$ac_ext >&5 |
12136 | ||
3185942a | 12137 | eval "$as_ac_var=no" |
b80f6443 | 12138 | fi |
3185942a JA |
12139 | |
12140 | rm -rf conftest.dSYM | |
12141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12142 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12143 | fi |
3185942a JA |
12144 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12145 | $as_echo "$as_val"'` | |
12146 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12147 | $as_echo "$ac_res" >&6; } | |
12148 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12149 | $as_echo "$as_val"'` | |
12150 | if test "x$as_val" = x""yes; then | |
b80f6443 JA |
12151 | |
12152 | cat >>confdefs.h <<_ACEOF | |
12153 | #define CRAY_STACKSEG_END $ac_func | |
12154 | _ACEOF | |
12155 | ||
12156 | break | |
12157 | fi | |
12158 | ||
12159 | done | |
12160 | fi | |
12161 | ||
3185942a JA |
12162 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
12163 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b80f6443 | 12164 | if test "${ac_cv_c_stack_direction+set}" = set; then |
3185942a | 12165 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12166 | else |
12167 | if test "$cross_compiling" = yes; then | |
12168 | ac_cv_c_stack_direction=0 | |
12169 | else | |
12170 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12171 | /* confdefs.h. */ |
12172 | _ACEOF | |
12173 | cat confdefs.h >>conftest.$ac_ext | |
12174 | cat >>conftest.$ac_ext <<_ACEOF | |
12175 | /* end confdefs.h. */ | |
3185942a | 12176 | $ac_includes_default |
b80f6443 JA |
12177 | int |
12178 | find_stack_direction () | |
12179 | { | |
12180 | static char *addr = 0; | |
12181 | auto char dummy; | |
12182 | if (addr == 0) | |
12183 | { | |
12184 | addr = &dummy; | |
12185 | return find_stack_direction (); | |
12186 | } | |
12187 | else | |
12188 | return (&dummy > addr) ? 1 : -1; | |
12189 | } | |
12190 | ||
12191 | int | |
12192 | main () | |
12193 | { | |
3185942a | 12194 | return find_stack_direction () < 0; |
b80f6443 JA |
12195 | } |
12196 | _ACEOF | |
12197 | rm -f conftest$ac_exeext | |
3185942a JA |
12198 | if { (ac_try="$ac_link" |
12199 | case "(($ac_try" in | |
12200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12201 | *) ac_try_echo=$ac_try;; | |
12202 | esac | |
12203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12204 | $as_echo "$ac_try_echo") >&5 | |
12205 | (eval "$ac_link") 2>&5 | |
b80f6443 | 12206 | ac_status=$? |
3185942a | 12207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 12208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
12209 | { (case "(($ac_try" in |
12210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12211 | *) ac_try_echo=$ac_try;; | |
12212 | esac | |
12213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12214 | $as_echo "$ac_try_echo") >&5 | |
12215 | (eval "$ac_try") 2>&5 | |
b80f6443 | 12216 | ac_status=$? |
3185942a | 12217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
12218 | (exit $ac_status); }; }; then |
12219 | ac_cv_c_stack_direction=1 | |
12220 | else | |
3185942a JA |
12221 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12222 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 |
12224 | ||
b80f6443 JA |
12225 | ( exit $ac_status ) |
12226 | ac_cv_c_stack_direction=-1 | |
12227 | fi | |
3185942a JA |
12228 | rm -rf conftest.dSYM |
12229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12230 | fi |
3185942a JA |
12231 | |
12232 | ||
b80f6443 | 12233 | fi |
3185942a JA |
12234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
12235 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
b80f6443 JA |
12236 | |
12237 | cat >>confdefs.h <<_ACEOF | |
12238 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
12239 | _ACEOF | |
12240 | ||
12241 | ||
12242 | fi | |
12243 | ||
3185942a JA |
12244 | { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
12245 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
b80f6443 | 12246 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
3185942a | 12247 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12248 | else |
12249 | # Use it with a single arg. | |
12250 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12251 | /* confdefs.h. */ |
12252 | _ACEOF | |
12253 | cat confdefs.h >>conftest.$ac_ext | |
12254 | cat >>conftest.$ac_ext <<_ACEOF | |
12255 | /* end confdefs.h. */ | |
b80f6443 JA |
12256 | $ac_includes_default |
12257 | int | |
12258 | main () | |
12259 | { | |
12260 | getpgrp (0); | |
12261 | ; | |
12262 | return 0; | |
12263 | } | |
12264 | _ACEOF | |
12265 | rm -f conftest.$ac_objext | |
3185942a JA |
12266 | if { (ac_try="$ac_compile" |
12267 | case "(($ac_try" in | |
12268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12269 | *) ac_try_echo=$ac_try;; | |
12270 | esac | |
12271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12272 | $as_echo "$ac_try_echo") >&5 | |
12273 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 12274 | ac_status=$? |
0628567a JA |
12275 | grep -v '^ *+' conftest.er1 >conftest.err |
12276 | rm -f conftest.er1 | |
12277 | cat conftest.err >&5 | |
3185942a JA |
12278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12279 | (exit $ac_status); } && { | |
12280 | test -z "$ac_c_werror_flag" || | |
12281 | test ! -s conftest.err | |
12282 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
12283 | ac_cv_func_getpgrp_void=no |
12284 | else | |
3185942a | 12285 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12286 | sed 's/^/| /' conftest.$ac_ext >&5 |
12287 | ||
3185942a | 12288 | ac_cv_func_getpgrp_void=yes |
b80f6443 | 12289 | fi |
3185942a JA |
12290 | |
12291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
12292 | |
12293 | fi | |
3185942a JA |
12294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
12295 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
b80f6443 JA |
12296 | if test $ac_cv_func_getpgrp_void = yes; then |
12297 | ||
12298 | cat >>confdefs.h <<\_ACEOF | |
12299 | #define GETPGRP_VOID 1 | |
12300 | _ACEOF | |
12301 | ||
12302 | fi | |
12303 | ||
b80f6443 | 12304 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then |
3185942a | 12305 | $as_echo_n "(cached) " >&6 |
b80f6443 | 12306 | else |
0628567a | 12307 | ac_cv_func_setvbuf_reversed=no |
0628567a | 12308 | fi |
b80f6443 | 12309 | |
b80f6443 JA |
12310 | |
12311 | ||
12312 | for ac_func in vprintf | |
12313 | do | |
3185942a JA |
12314 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12315 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12316 | $as_echo_n "checking for $ac_func... " >&6; } | |
12317 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12318 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
12319 | else |
12320 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12321 | /* confdefs.h. */ |
12322 | _ACEOF | |
12323 | cat confdefs.h >>conftest.$ac_ext | |
12324 | cat >>conftest.$ac_ext <<_ACEOF | |
12325 | /* end confdefs.h. */ | |
12326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12328 | #define $ac_func innocuous_$ac_func | |
12329 | ||
b80f6443 | 12330 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12331 | which can conflict with char $ac_func (); below. |
12332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12333 | <limits.h> exists even on freestanding compilers. */ | |
12334 | ||
12335 | #ifdef __STDC__ | |
12336 | # include <limits.h> | |
12337 | #else | |
12338 | # include <assert.h> | |
12339 | #endif | |
12340 | ||
12341 | #undef $ac_func | |
12342 | ||
3185942a JA |
12343 | /* Override any GCC internal prototype to avoid an error. |
12344 | Use char because int might match the return type of a GCC | |
12345 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12346 | #ifdef __cplusplus |
12347 | extern "C" | |
b80f6443 | 12348 | #endif |
b80f6443 JA |
12349 | char $ac_func (); |
12350 | /* The GNU C library defines this for functions which it implements | |
12351 | to always fail with ENOSYS. Some functions are actually named | |
12352 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12353 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 12354 | choke me |
b80f6443 JA |
12355 | #endif |
12356 | ||
0628567a JA |
12357 | int |
12358 | main () | |
12359 | { | |
3185942a | 12360 | return $ac_func (); |
b80f6443 JA |
12361 | ; |
12362 | return 0; | |
12363 | } | |
12364 | _ACEOF | |
12365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12366 | if { (ac_try="$ac_link" |
12367 | case "(($ac_try" in | |
12368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12369 | *) ac_try_echo=$ac_try;; | |
12370 | esac | |
12371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12372 | $as_echo "$ac_try_echo") >&5 | |
12373 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12374 | ac_status=$? |
0628567a JA |
12375 | grep -v '^ *+' conftest.er1 >conftest.err |
12376 | rm -f conftest.er1 | |
12377 | cat conftest.err >&5 | |
3185942a JA |
12378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12379 | (exit $ac_status); } && { | |
12380 | test -z "$ac_c_werror_flag" || | |
12381 | test ! -s conftest.err | |
12382 | } && test -s conftest$ac_exeext && { | |
12383 | test "$cross_compiling" = yes || | |
12384 | $as_test_x conftest$ac_exeext | |
12385 | }; then | |
b80f6443 JA |
12386 | eval "$as_ac_var=yes" |
12387 | else | |
3185942a | 12388 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12389 | sed 's/^/| /' conftest.$ac_ext >&5 |
12390 | ||
3185942a | 12391 | eval "$as_ac_var=no" |
b80f6443 | 12392 | fi |
3185942a JA |
12393 | |
12394 | rm -rf conftest.dSYM | |
12395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12396 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12397 | fi |
3185942a JA |
12398 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12399 | $as_echo "$as_val"'` | |
12400 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12401 | $as_echo "$ac_res" >&6; } | |
12402 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12403 | $as_echo "$as_val"'` | |
12404 | if test "x$as_val" = x""yes; then | |
b80f6443 | 12405 | cat >>confdefs.h <<_ACEOF |
3185942a | 12406 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
12407 | _ACEOF |
12408 | ||
3185942a JA |
12409 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
12410 | $as_echo_n "checking for _doprnt... " >&6; } | |
b80f6443 | 12411 | if test "${ac_cv_func__doprnt+set}" = set; then |
3185942a | 12412 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12413 | else |
12414 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12415 | /* confdefs.h. */ |
12416 | _ACEOF | |
12417 | cat confdefs.h >>conftest.$ac_ext | |
12418 | cat >>conftest.$ac_ext <<_ACEOF | |
12419 | /* end confdefs.h. */ | |
12420 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
12421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12422 | #define _doprnt innocuous__doprnt | |
12423 | ||
b80f6443 | 12424 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12425 | which can conflict with char _doprnt (); below. |
12426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12427 | <limits.h> exists even on freestanding compilers. */ | |
12428 | ||
12429 | #ifdef __STDC__ | |
12430 | # include <limits.h> | |
12431 | #else | |
12432 | # include <assert.h> | |
12433 | #endif | |
12434 | ||
12435 | #undef _doprnt | |
12436 | ||
3185942a JA |
12437 | /* Override any GCC internal prototype to avoid an error. |
12438 | Use char because int might match the return type of a GCC | |
12439 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
12440 | #ifdef __cplusplus |
12441 | extern "C" | |
b80f6443 | 12442 | #endif |
b80f6443 JA |
12443 | char _doprnt (); |
12444 | /* The GNU C library defines this for functions which it implements | |
12445 | to always fail with ENOSYS. Some functions are actually named | |
12446 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12447 | #if defined __stub__doprnt || defined __stub____doprnt |
b80f6443 | 12448 | choke me |
b80f6443 JA |
12449 | #endif |
12450 | ||
0628567a JA |
12451 | int |
12452 | main () | |
12453 | { | |
3185942a | 12454 | return _doprnt (); |
b80f6443 JA |
12455 | ; |
12456 | return 0; | |
12457 | } | |
12458 | _ACEOF | |
12459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12460 | if { (ac_try="$ac_link" |
12461 | case "(($ac_try" in | |
12462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12463 | *) ac_try_echo=$ac_try;; | |
12464 | esac | |
12465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12466 | $as_echo "$ac_try_echo") >&5 | |
12467 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12468 | ac_status=$? |
0628567a JA |
12469 | grep -v '^ *+' conftest.er1 >conftest.err |
12470 | rm -f conftest.er1 | |
12471 | cat conftest.err >&5 | |
3185942a JA |
12472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12473 | (exit $ac_status); } && { | |
12474 | test -z "$ac_c_werror_flag" || | |
12475 | test ! -s conftest.err | |
12476 | } && test -s conftest$ac_exeext && { | |
12477 | test "$cross_compiling" = yes || | |
12478 | $as_test_x conftest$ac_exeext | |
12479 | }; then | |
b80f6443 JA |
12480 | ac_cv_func__doprnt=yes |
12481 | else | |
3185942a | 12482 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12483 | sed 's/^/| /' conftest.$ac_ext >&5 |
12484 | ||
3185942a | 12485 | ac_cv_func__doprnt=no |
b80f6443 | 12486 | fi |
3185942a JA |
12487 | |
12488 | rm -rf conftest.dSYM | |
12489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12490 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12491 | fi |
3185942a JA |
12492 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
12493 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
12494 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
b80f6443 JA |
12495 | |
12496 | cat >>confdefs.h <<\_ACEOF | |
12497 | #define HAVE_DOPRNT 1 | |
12498 | _ACEOF | |
12499 | ||
12500 | fi | |
12501 | ||
12502 | fi | |
12503 | done | |
12504 | ||
12505 | ||
3185942a JA |
12506 | { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5 |
12507 | $as_echo_n "checking for working strcoll... " >&6; } | |
b80f6443 | 12508 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
3185942a | 12509 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12510 | else |
12511 | if test "$cross_compiling" = yes; then | |
12512 | ac_cv_func_strcoll_works=no | |
12513 | else | |
12514 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12515 | /* confdefs.h. */ |
12516 | _ACEOF | |
12517 | cat confdefs.h >>conftest.$ac_ext | |
12518 | cat >>conftest.$ac_ext <<_ACEOF | |
12519 | /* end confdefs.h. */ | |
b80f6443 JA |
12520 | $ac_includes_default |
12521 | int | |
12522 | main () | |
12523 | { | |
3185942a | 12524 | return (strcoll ("abc", "def") >= 0 || |
b80f6443 JA |
12525 | strcoll ("ABC", "DEF") >= 0 || |
12526 | strcoll ("123", "456") >= 0) | |
12527 | ; | |
12528 | return 0; | |
12529 | } | |
12530 | _ACEOF | |
12531 | rm -f conftest$ac_exeext | |
3185942a JA |
12532 | if { (ac_try="$ac_link" |
12533 | case "(($ac_try" in | |
12534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12535 | *) ac_try_echo=$ac_try;; | |
12536 | esac | |
12537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12538 | $as_echo "$ac_try_echo") >&5 | |
12539 | (eval "$ac_link") 2>&5 | |
b80f6443 | 12540 | ac_status=$? |
3185942a | 12541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 12542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
12543 | { (case "(($ac_try" in |
12544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12545 | *) ac_try_echo=$ac_try;; | |
12546 | esac | |
12547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12548 | $as_echo "$ac_try_echo") >&5 | |
12549 | (eval "$ac_try") 2>&5 | |
b80f6443 | 12550 | ac_status=$? |
3185942a | 12551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
12552 | (exit $ac_status); }; }; then |
12553 | ac_cv_func_strcoll_works=yes | |
12554 | else | |
3185942a JA |
12555 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12556 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
12557 | sed 's/^/| /' conftest.$ac_ext >&5 |
12558 | ||
b80f6443 JA |
12559 | ( exit $ac_status ) |
12560 | ac_cv_func_strcoll_works=no | |
12561 | fi | |
3185942a JA |
12562 | rm -rf conftest.dSYM |
12563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12564 | fi |
3185942a JA |
12565 | |
12566 | ||
b80f6443 | 12567 | fi |
3185942a JA |
12568 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
12569 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
b80f6443 JA |
12570 | if test $ac_cv_func_strcoll_works = yes; then |
12571 | ||
12572 | cat >>confdefs.h <<\_ACEOF | |
12573 | #define HAVE_STRCOLL 1 | |
12574 | _ACEOF | |
12575 | ||
12576 | fi | |
12577 | ||
12578 | ||
12579 | ||
12580 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then | |
12581 | MALLOC_TARGET=alloca | |
12582 | MALLOC_SRC=alloca.c | |
12583 | ||
12584 | MALLOC_LIB='-lmalloc' | |
12585 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
12586 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
12587 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
12588 | fi | |
12589 | ||
12590 | if test "$ac_cv_func_vprintf" = no; then | |
3185942a JA |
12591 | { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5 |
12592 | $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } | |
b80f6443 | 12593 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
12594 | /* confdefs.h. */ |
12595 | _ACEOF | |
12596 | cat confdefs.h >>conftest.$ac_ext | |
12597 | cat >>conftest.$ac_ext <<_ACEOF | |
12598 | /* end confdefs.h. */ | |
b80f6443 JA |
12599 | #include <stdio.h> |
12600 | ||
12601 | _ACEOF | |
12602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 12603 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then |
b80f6443 JA |
12604 | ac_cv_func_vprintf=yes |
12605 | fi | |
12606 | rm -f conftest* | |
12607 | ||
3185942a JA |
12608 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5 |
12609 | $as_echo "$ac_cv_func_vprintf" >&6; } | |
b80f6443 JA |
12610 | if test $ac_cv_func_vprintf = yes; then |
12611 | cat >>confdefs.h <<\_ACEOF | |
12612 | #define HAVE_VPRINTF 1 | |
12613 | _ACEOF | |
12614 | ||
12615 | fi | |
12616 | fi | |
12617 | ||
12618 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then | |
3185942a | 12619 | case " $LIBOBJS " in |
0628567a | 12620 | *" vprint.$ac_objext "* ) ;; |
3185942a JA |
12621 | *) LIBOBJS="$LIBOBJS vprint.$ac_objext" |
12622 | ;; | |
0628567a JA |
12623 | esac |
12624 | ||
b80f6443 JA |
12625 | fi |
12626 | ||
3185942a JA |
12627 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
12628 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
b80f6443 | 12629 | if test "${ac_cv_type_signal+set}" = set; then |
3185942a | 12630 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12631 | else |
12632 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12633 | /* confdefs.h. */ |
12634 | _ACEOF | |
12635 | cat confdefs.h >>conftest.$ac_ext | |
12636 | cat >>conftest.$ac_ext <<_ACEOF | |
12637 | /* end confdefs.h. */ | |
b80f6443 JA |
12638 | #include <sys/types.h> |
12639 | #include <signal.h> | |
b80f6443 JA |
12640 | |
12641 | int | |
12642 | main () | |
12643 | { | |
3185942a | 12644 | return *(signal (0, 0)) (0) == 1; |
b80f6443 JA |
12645 | ; |
12646 | return 0; | |
12647 | } | |
12648 | _ACEOF | |
12649 | rm -f conftest.$ac_objext | |
3185942a JA |
12650 | if { (ac_try="$ac_compile" |
12651 | case "(($ac_try" in | |
12652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12653 | *) ac_try_echo=$ac_try;; | |
12654 | esac | |
12655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12656 | $as_echo "$ac_try_echo") >&5 | |
12657 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 12658 | ac_status=$? |
0628567a JA |
12659 | grep -v '^ *+' conftest.er1 >conftest.err |
12660 | rm -f conftest.er1 | |
12661 | cat conftest.err >&5 | |
3185942a JA |
12662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12663 | (exit $ac_status); } && { | |
12664 | test -z "$ac_c_werror_flag" || | |
12665 | test ! -s conftest.err | |
12666 | } && test -s conftest.$ac_objext; then | |
12667 | ac_cv_type_signal=int | |
b80f6443 | 12668 | else |
3185942a | 12669 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12670 | sed 's/^/| /' conftest.$ac_ext >&5 |
12671 | ||
3185942a | 12672 | ac_cv_type_signal=void |
b80f6443 | 12673 | fi |
3185942a JA |
12674 | |
12675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12676 | fi |
3185942a JA |
12677 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
12678 | $as_echo "$ac_cv_type_signal" >&6; } | |
b80f6443 JA |
12679 | |
12680 | cat >>confdefs.h <<_ACEOF | |
12681 | #define RETSIGTYPE $ac_cv_type_signal | |
12682 | _ACEOF | |
12683 | ||
12684 | ||
12685 | ||
3185942a JA |
12686 | { $as_echo "$as_me:$LINENO: checking for __setostype" >&5 |
12687 | $as_echo_n "checking for __setostype... " >&6; } | |
b80f6443 | 12688 | if test "${ac_cv_func___setostype+set}" = set; then |
3185942a | 12689 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12690 | else |
12691 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12692 | /* confdefs.h. */ |
12693 | _ACEOF | |
12694 | cat confdefs.h >>conftest.$ac_ext | |
12695 | cat >>conftest.$ac_ext <<_ACEOF | |
12696 | /* end confdefs.h. */ | |
12697 | /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype. | |
12698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12699 | #define __setostype innocuous___setostype | |
12700 | ||
b80f6443 | 12701 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12702 | which can conflict with char __setostype (); below. |
12703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12704 | <limits.h> exists even on freestanding compilers. */ | |
12705 | ||
12706 | #ifdef __STDC__ | |
12707 | # include <limits.h> | |
12708 | #else | |
12709 | # include <assert.h> | |
12710 | #endif | |
12711 | ||
12712 | #undef __setostype | |
12713 | ||
3185942a JA |
12714 | /* Override any GCC internal prototype to avoid an error. |
12715 | Use char because int might match the return type of a GCC | |
12716 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12717 | #ifdef __cplusplus |
12718 | extern "C" | |
b80f6443 | 12719 | #endif |
b80f6443 JA |
12720 | char __setostype (); |
12721 | /* The GNU C library defines this for functions which it implements | |
12722 | to always fail with ENOSYS. Some functions are actually named | |
12723 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12724 | #if defined __stub___setostype || defined __stub_____setostype |
b80f6443 | 12725 | choke me |
b80f6443 JA |
12726 | #endif |
12727 | ||
0628567a JA |
12728 | int |
12729 | main () | |
12730 | { | |
3185942a | 12731 | return __setostype (); |
b80f6443 JA |
12732 | ; |
12733 | return 0; | |
12734 | } | |
12735 | _ACEOF | |
12736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12737 | if { (ac_try="$ac_link" |
12738 | case "(($ac_try" in | |
12739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12740 | *) ac_try_echo=$ac_try;; | |
12741 | esac | |
12742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12743 | $as_echo "$ac_try_echo") >&5 | |
12744 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12745 | ac_status=$? |
0628567a JA |
12746 | grep -v '^ *+' conftest.er1 >conftest.err |
12747 | rm -f conftest.er1 | |
12748 | cat conftest.err >&5 | |
3185942a JA |
12749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12750 | (exit $ac_status); } && { | |
12751 | test -z "$ac_c_werror_flag" || | |
12752 | test ! -s conftest.err | |
12753 | } && test -s conftest$ac_exeext && { | |
12754 | test "$cross_compiling" = yes || | |
12755 | $as_test_x conftest$ac_exeext | |
12756 | }; then | |
b80f6443 JA |
12757 | ac_cv_func___setostype=yes |
12758 | else | |
3185942a | 12759 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12760 | sed 's/^/| /' conftest.$ac_ext >&5 |
12761 | ||
3185942a | 12762 | ac_cv_func___setostype=no |
b80f6443 | 12763 | fi |
3185942a JA |
12764 | |
12765 | rm -rf conftest.dSYM | |
12766 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12767 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12768 | fi |
3185942a JA |
12769 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5 |
12770 | $as_echo "$ac_cv_func___setostype" >&6; } | |
12771 | if test "x$ac_cv_func___setostype" = x""yes; then | |
b80f6443 JA |
12772 | cat >>confdefs.h <<\_ACEOF |
12773 | #define HAVE_SETOSTYPE 1 | |
12774 | _ACEOF | |
12775 | ||
12776 | fi | |
12777 | ||
3185942a JA |
12778 | { $as_echo "$as_me:$LINENO: checking for wait3" >&5 |
12779 | $as_echo_n "checking for wait3... " >&6; } | |
b80f6443 | 12780 | if test "${ac_cv_func_wait3+set}" = set; then |
3185942a | 12781 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12782 | else |
12783 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12784 | /* confdefs.h. */ |
12785 | _ACEOF | |
12786 | cat confdefs.h >>conftest.$ac_ext | |
12787 | cat >>conftest.$ac_ext <<_ACEOF | |
12788 | /* end confdefs.h. */ | |
12789 | /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3. | |
12790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12791 | #define wait3 innocuous_wait3 | |
12792 | ||
b80f6443 | 12793 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12794 | which can conflict with char wait3 (); below. |
12795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12796 | <limits.h> exists even on freestanding compilers. */ | |
12797 | ||
12798 | #ifdef __STDC__ | |
12799 | # include <limits.h> | |
12800 | #else | |
12801 | # include <assert.h> | |
12802 | #endif | |
12803 | ||
12804 | #undef wait3 | |
12805 | ||
3185942a JA |
12806 | /* Override any GCC internal prototype to avoid an error. |
12807 | Use char because int might match the return type of a GCC | |
12808 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12809 | #ifdef __cplusplus |
12810 | extern "C" | |
b80f6443 | 12811 | #endif |
b80f6443 JA |
12812 | char wait3 (); |
12813 | /* The GNU C library defines this for functions which it implements | |
12814 | to always fail with ENOSYS. Some functions are actually named | |
12815 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12816 | #if defined __stub_wait3 || defined __stub___wait3 |
b80f6443 | 12817 | choke me |
b80f6443 JA |
12818 | #endif |
12819 | ||
0628567a JA |
12820 | int |
12821 | main () | |
12822 | { | |
3185942a | 12823 | return wait3 (); |
b80f6443 JA |
12824 | ; |
12825 | return 0; | |
12826 | } | |
12827 | _ACEOF | |
12828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12829 | if { (ac_try="$ac_link" |
12830 | case "(($ac_try" in | |
12831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12832 | *) ac_try_echo=$ac_try;; | |
12833 | esac | |
12834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12835 | $as_echo "$ac_try_echo") >&5 | |
12836 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12837 | ac_status=$? |
0628567a JA |
12838 | grep -v '^ *+' conftest.er1 >conftest.err |
12839 | rm -f conftest.er1 | |
12840 | cat conftest.err >&5 | |
3185942a JA |
12841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12842 | (exit $ac_status); } && { | |
12843 | test -z "$ac_c_werror_flag" || | |
12844 | test ! -s conftest.err | |
12845 | } && test -s conftest$ac_exeext && { | |
12846 | test "$cross_compiling" = yes || | |
12847 | $as_test_x conftest$ac_exeext | |
12848 | }; then | |
b80f6443 JA |
12849 | ac_cv_func_wait3=yes |
12850 | else | |
3185942a | 12851 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12852 | sed 's/^/| /' conftest.$ac_ext >&5 |
12853 | ||
3185942a | 12854 | ac_cv_func_wait3=no |
b80f6443 | 12855 | fi |
3185942a JA |
12856 | |
12857 | rm -rf conftest.dSYM | |
12858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12859 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12860 | fi |
3185942a JA |
12861 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5 |
12862 | $as_echo "$ac_cv_func_wait3" >&6; } | |
12863 | if test "x$ac_cv_func_wait3" = x""yes; then | |
b80f6443 JA |
12864 | cat >>confdefs.h <<\_ACEOF |
12865 | #define HAVE_WAIT3 1 | |
12866 | _ACEOF | |
12867 | ||
12868 | fi | |
12869 | ||
3185942a JA |
12870 | { $as_echo "$as_me:$LINENO: checking for isinf" >&5 |
12871 | $as_echo_n "checking for isinf... " >&6; } | |
b80f6443 | 12872 | if test "${ac_cv_func_isinf+set}" = set; then |
3185942a | 12873 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12874 | else |
12875 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12876 | /* confdefs.h. */ |
12877 | _ACEOF | |
12878 | cat confdefs.h >>conftest.$ac_ext | |
12879 | cat >>conftest.$ac_ext <<_ACEOF | |
12880 | /* end confdefs.h. */ | |
12881 | /* Define isinf to an innocuous variant, in case <limits.h> declares isinf. | |
12882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12883 | #define isinf innocuous_isinf | |
12884 | ||
b80f6443 | 12885 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12886 | which can conflict with char isinf (); below. |
12887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12888 | <limits.h> exists even on freestanding compilers. */ | |
12889 | ||
12890 | #ifdef __STDC__ | |
12891 | # include <limits.h> | |
12892 | #else | |
12893 | # include <assert.h> | |
12894 | #endif | |
12895 | ||
12896 | #undef isinf | |
12897 | ||
3185942a JA |
12898 | /* Override any GCC internal prototype to avoid an error. |
12899 | Use char because int might match the return type of a GCC | |
12900 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12901 | #ifdef __cplusplus |
12902 | extern "C" | |
b80f6443 | 12903 | #endif |
b80f6443 JA |
12904 | char isinf (); |
12905 | /* The GNU C library defines this for functions which it implements | |
12906 | to always fail with ENOSYS. Some functions are actually named | |
12907 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12908 | #if defined __stub_isinf || defined __stub___isinf |
b80f6443 | 12909 | choke me |
b80f6443 JA |
12910 | #endif |
12911 | ||
0628567a JA |
12912 | int |
12913 | main () | |
12914 | { | |
3185942a | 12915 | return isinf (); |
b80f6443 JA |
12916 | ; |
12917 | return 0; | |
12918 | } | |
12919 | _ACEOF | |
12920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12921 | if { (ac_try="$ac_link" |
12922 | case "(($ac_try" in | |
12923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12924 | *) ac_try_echo=$ac_try;; | |
12925 | esac | |
12926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12927 | $as_echo "$ac_try_echo") >&5 | |
12928 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12929 | ac_status=$? |
0628567a JA |
12930 | grep -v '^ *+' conftest.er1 >conftest.err |
12931 | rm -f conftest.er1 | |
12932 | cat conftest.err >&5 | |
3185942a JA |
12933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12934 | (exit $ac_status); } && { | |
12935 | test -z "$ac_c_werror_flag" || | |
12936 | test ! -s conftest.err | |
12937 | } && test -s conftest$ac_exeext && { | |
12938 | test "$cross_compiling" = yes || | |
12939 | $as_test_x conftest$ac_exeext | |
12940 | }; then | |
b80f6443 JA |
12941 | ac_cv_func_isinf=yes |
12942 | else | |
3185942a | 12943 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
12945 | ||
3185942a | 12946 | ac_cv_func_isinf=no |
b80f6443 | 12947 | fi |
3185942a JA |
12948 | |
12949 | rm -rf conftest.dSYM | |
12950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12951 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12952 | fi |
3185942a JA |
12953 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 |
12954 | $as_echo "$ac_cv_func_isinf" >&6; } | |
12955 | if test "x$ac_cv_func_isinf" = x""yes; then | |
b80f6443 JA |
12956 | cat >>confdefs.h <<\_ACEOF |
12957 | #define HAVE_ISINF_IN_LIBC 1 | |
12958 | _ACEOF | |
12959 | ||
12960 | fi | |
12961 | ||
3185942a JA |
12962 | { $as_echo "$as_me:$LINENO: checking for isnan" >&5 |
12963 | $as_echo_n "checking for isnan... " >&6; } | |
0628567a | 12964 | if test "${ac_cv_func_isnan+set}" = set; then |
3185942a | 12965 | $as_echo_n "(cached) " >&6 |
0628567a JA |
12966 | else |
12967 | cat >conftest.$ac_ext <<_ACEOF | |
12968 | /* confdefs.h. */ | |
12969 | _ACEOF | |
12970 | cat confdefs.h >>conftest.$ac_ext | |
12971 | cat >>conftest.$ac_ext <<_ACEOF | |
12972 | /* end confdefs.h. */ | |
12973 | /* Define isnan to an innocuous variant, in case <limits.h> declares isnan. | |
12974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12975 | #define isnan innocuous_isnan | |
12976 | ||
12977 | /* System header to define __stub macros and hopefully few prototypes, | |
12978 | which can conflict with char isnan (); below. | |
12979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12980 | <limits.h> exists even on freestanding compilers. */ | |
12981 | ||
12982 | #ifdef __STDC__ | |
12983 | # include <limits.h> | |
12984 | #else | |
12985 | # include <assert.h> | |
12986 | #endif | |
12987 | ||
12988 | #undef isnan | |
12989 | ||
3185942a JA |
12990 | /* Override any GCC internal prototype to avoid an error. |
12991 | Use char because int might match the return type of a GCC | |
12992 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
12993 | #ifdef __cplusplus |
12994 | extern "C" | |
0628567a | 12995 | #endif |
0628567a JA |
12996 | char isnan (); |
12997 | /* The GNU C library defines this for functions which it implements | |
12998 | to always fail with ENOSYS. Some functions are actually named | |
12999 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13000 | #if defined __stub_isnan || defined __stub___isnan |
0628567a | 13001 | choke me |
0628567a JA |
13002 | #endif |
13003 | ||
13004 | int | |
13005 | main () | |
13006 | { | |
3185942a | 13007 | return isnan (); |
0628567a JA |
13008 | ; |
13009 | return 0; | |
13010 | } | |
13011 | _ACEOF | |
13012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13013 | if { (ac_try="$ac_link" |
13014 | case "(($ac_try" in | |
13015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13016 | *) ac_try_echo=$ac_try;; | |
13017 | esac | |
13018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13019 | $as_echo "$ac_try_echo") >&5 | |
13020 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
13021 | ac_status=$? |
13022 | grep -v '^ *+' conftest.er1 >conftest.err | |
13023 | rm -f conftest.er1 | |
13024 | cat conftest.err >&5 | |
3185942a JA |
13025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13026 | (exit $ac_status); } && { | |
13027 | test -z "$ac_c_werror_flag" || | |
13028 | test ! -s conftest.err | |
13029 | } && test -s conftest$ac_exeext && { | |
13030 | test "$cross_compiling" = yes || | |
13031 | $as_test_x conftest$ac_exeext | |
13032 | }; then | |
0628567a JA |
13033 | ac_cv_func_isnan=yes |
13034 | else | |
3185942a | 13035 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13036 | sed 's/^/| /' conftest.$ac_ext >&5 |
13037 | ||
3185942a | 13038 | ac_cv_func_isnan=no |
0628567a | 13039 | fi |
3185942a JA |
13040 | |
13041 | rm -rf conftest.dSYM | |
13042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
13043 | conftest$ac_exeext conftest.$ac_ext |
13044 | fi | |
3185942a JA |
13045 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5 |
13046 | $as_echo "$ac_cv_func_isnan" >&6; } | |
13047 | if test "x$ac_cv_func_isnan" = x""yes; then | |
0628567a JA |
13048 | cat >>confdefs.h <<\_ACEOF |
13049 | #define HAVE_ISNAN_IN_LIBC 1 | |
13050 | _ACEOF | |
13051 | ||
13052 | fi | |
13053 | ||
b80f6443 | 13054 | |
3185942a JA |
13055 | { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5 |
13056 | $as_echo_n "checking for mkfifo... " >&6; } | |
b80f6443 | 13057 | if test "${ac_cv_func_mkfifo+set}" = set; then |
3185942a | 13058 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
13059 | else |
13060 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13061 | /* confdefs.h. */ |
13062 | _ACEOF | |
13063 | cat confdefs.h >>conftest.$ac_ext | |
13064 | cat >>conftest.$ac_ext <<_ACEOF | |
13065 | /* end confdefs.h. */ | |
13066 | /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo. | |
13067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13068 | #define mkfifo innocuous_mkfifo | |
13069 | ||
b80f6443 | 13070 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13071 | which can conflict with char mkfifo (); below. |
13072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13073 | <limits.h> exists even on freestanding compilers. */ | |
13074 | ||
13075 | #ifdef __STDC__ | |
13076 | # include <limits.h> | |
13077 | #else | |
13078 | # include <assert.h> | |
13079 | #endif | |
13080 | ||
13081 | #undef mkfifo | |
13082 | ||
3185942a JA |
13083 | /* Override any GCC internal prototype to avoid an error. |
13084 | Use char because int might match the return type of a GCC | |
13085 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13086 | #ifdef __cplusplus |
13087 | extern "C" | |
b80f6443 | 13088 | #endif |
b80f6443 JA |
13089 | char mkfifo (); |
13090 | /* The GNU C library defines this for functions which it implements | |
13091 | to always fail with ENOSYS. Some functions are actually named | |
13092 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13093 | #if defined __stub_mkfifo || defined __stub___mkfifo |
b80f6443 | 13094 | choke me |
b80f6443 JA |
13095 | #endif |
13096 | ||
0628567a JA |
13097 | int |
13098 | main () | |
13099 | { | |
3185942a | 13100 | return mkfifo (); |
b80f6443 JA |
13101 | ; |
13102 | return 0; | |
13103 | } | |
13104 | _ACEOF | |
13105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13106 | if { (ac_try="$ac_link" |
13107 | case "(($ac_try" in | |
13108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13109 | *) ac_try_echo=$ac_try;; | |
13110 | esac | |
13111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13112 | $as_echo "$ac_try_echo") >&5 | |
13113 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13114 | ac_status=$? |
0628567a JA |
13115 | grep -v '^ *+' conftest.er1 >conftest.err |
13116 | rm -f conftest.er1 | |
13117 | cat conftest.err >&5 | |
3185942a JA |
13118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13119 | (exit $ac_status); } && { | |
13120 | test -z "$ac_c_werror_flag" || | |
13121 | test ! -s conftest.err | |
13122 | } && test -s conftest$ac_exeext && { | |
13123 | test "$cross_compiling" = yes || | |
13124 | $as_test_x conftest$ac_exeext | |
13125 | }; then | |
b80f6443 JA |
13126 | ac_cv_func_mkfifo=yes |
13127 | else | |
3185942a | 13128 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13129 | sed 's/^/| /' conftest.$ac_ext >&5 |
13130 | ||
3185942a | 13131 | ac_cv_func_mkfifo=no |
b80f6443 | 13132 | fi |
3185942a JA |
13133 | |
13134 | rm -rf conftest.dSYM | |
13135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13136 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13137 | fi |
3185942a JA |
13138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5 |
13139 | $as_echo "$ac_cv_func_mkfifo" >&6; } | |
13140 | if test "x$ac_cv_func_mkfifo" = x""yes; then | |
b80f6443 JA |
13141 | cat >>confdefs.h <<\_ACEOF |
13142 | #define HAVE_MKFIFO 1 | |
13143 | _ACEOF | |
13144 | ||
13145 | else | |
13146 | cat >>confdefs.h <<\_ACEOF | |
13147 | #define MKFIFO_MISSING 1 | |
13148 | _ACEOF | |
13149 | ||
13150 | fi | |
13151 | ||
13152 | ||
13153 | ||
13154 | ||
13155 | ||
13156 | ||
13157 | ||
13158 | ||
13159 | ||
13160 | ||
13161 | ||
13162 | ||
13163 | ||
13164 | ||
13165 | ||
13166 | ||
13167 | ||
13168 | ||
13169 | ||
95732b49 JA |
13170 | |
13171 | ||
13172 | ||
3185942a | 13173 | |
95732b49 | 13174 | |
0628567a JA |
13175 | |
13176 | for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ | |
13177 | getpagesize getpeername getrlimit getrusage gettimeofday \ | |
13178 | kill killpg lstat readlink sbrk select setdtablesize \ | |
3185942a | 13179 | setitimer tcgetpgrp uname ulimit waitpid |
b80f6443 | 13180 | do |
3185942a JA |
13181 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13182 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13183 | $as_echo_n "checking for $ac_func... " >&6; } | |
13184 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13185 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13186 | else |
13187 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13188 | /* confdefs.h. */ |
13189 | _ACEOF | |
13190 | cat confdefs.h >>conftest.$ac_ext | |
13191 | cat >>conftest.$ac_ext <<_ACEOF | |
13192 | /* end confdefs.h. */ | |
13193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13195 | #define $ac_func innocuous_$ac_func | |
13196 | ||
b80f6443 | 13197 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13198 | which can conflict with char $ac_func (); below. |
13199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13200 | <limits.h> exists even on freestanding compilers. */ | |
13201 | ||
13202 | #ifdef __STDC__ | |
13203 | # include <limits.h> | |
13204 | #else | |
13205 | # include <assert.h> | |
13206 | #endif | |
13207 | ||
13208 | #undef $ac_func | |
13209 | ||
3185942a JA |
13210 | /* Override any GCC internal prototype to avoid an error. |
13211 | Use char because int might match the return type of a GCC | |
13212 | builtin and then its argument prototype would still apply. */ | |
95732b49 JA |
13213 | #ifdef __cplusplus |
13214 | extern "C" | |
13215 | #endif | |
95732b49 | 13216 | char $ac_func (); |
95732b49 JA |
13217 | /* The GNU C library defines this for functions which it implements |
13218 | to always fail with ENOSYS. Some functions are actually named | |
13219 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13220 | #if defined __stub_$ac_func || defined __stub___$ac_func |
95732b49 | 13221 | choke me |
b80f6443 | 13222 | #endif |
95732b49 | 13223 | |
0628567a JA |
13224 | int |
13225 | main () | |
13226 | { | |
3185942a | 13227 | return $ac_func (); |
95732b49 JA |
13228 | ; |
13229 | return 0; | |
13230 | } | |
13231 | _ACEOF | |
13232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13233 | if { (ac_try="$ac_link" |
13234 | case "(($ac_try" in | |
13235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13236 | *) ac_try_echo=$ac_try;; | |
13237 | esac | |
13238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13239 | $as_echo "$ac_try_echo") >&5 | |
13240 | (eval "$ac_link") 2>conftest.er1 | |
95732b49 | 13241 | ac_status=$? |
0628567a JA |
13242 | grep -v '^ *+' conftest.er1 >conftest.err |
13243 | rm -f conftest.er1 | |
13244 | cat conftest.err >&5 | |
3185942a JA |
13245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13246 | (exit $ac_status); } && { | |
13247 | test -z "$ac_c_werror_flag" || | |
13248 | test ! -s conftest.err | |
13249 | } && test -s conftest$ac_exeext && { | |
13250 | test "$cross_compiling" = yes || | |
13251 | $as_test_x conftest$ac_exeext | |
13252 | }; then | |
95732b49 JA |
13253 | eval "$as_ac_var=yes" |
13254 | else | |
3185942a | 13255 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 |
13257 | ||
3185942a | 13258 | eval "$as_ac_var=no" |
95732b49 | 13259 | fi |
3185942a JA |
13260 | |
13261 | rm -rf conftest.dSYM | |
13262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13263 | conftest$ac_exeext conftest.$ac_ext |
95732b49 | 13264 | fi |
3185942a JA |
13265 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13266 | $as_echo "$as_val"'` | |
13267 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13268 | $as_echo "$ac_res" >&6; } | |
13269 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13270 | $as_echo "$as_val"'` | |
13271 | if test "x$as_val" = x""yes; then | |
95732b49 | 13272 | cat >>confdefs.h <<_ACEOF |
3185942a | 13273 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
95732b49 JA |
13274 | _ACEOF |
13275 | ||
13276 | fi | |
13277 | done | |
13278 | ||
13279 | ||
13280 | for ac_func in rename | |
13281 | do | |
3185942a JA |
13282 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13283 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13284 | $as_echo_n "checking for $ac_func... " >&6; } | |
13285 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13286 | $as_echo_n "(cached) " >&6 | |
95732b49 JA |
13287 | else |
13288 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13289 | /* confdefs.h. */ |
13290 | _ACEOF | |
13291 | cat confdefs.h >>conftest.$ac_ext | |
13292 | cat >>conftest.$ac_ext <<_ACEOF | |
13293 | /* end confdefs.h. */ | |
13294 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13295 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13296 | #define $ac_func innocuous_$ac_func | |
13297 | ||
95732b49 | 13298 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13299 | which can conflict with char $ac_func (); below. |
13300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13301 | <limits.h> exists even on freestanding compilers. */ | |
13302 | ||
13303 | #ifdef __STDC__ | |
13304 | # include <limits.h> | |
13305 | #else | |
13306 | # include <assert.h> | |
13307 | #endif | |
13308 | ||
13309 | #undef $ac_func | |
13310 | ||
3185942a JA |
13311 | /* Override any GCC internal prototype to avoid an error. |
13312 | Use char because int might match the return type of a GCC | |
13313 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13314 | #ifdef __cplusplus |
13315 | extern "C" | |
b80f6443 | 13316 | #endif |
b80f6443 JA |
13317 | char $ac_func (); |
13318 | /* The GNU C library defines this for functions which it implements | |
13319 | to always fail with ENOSYS. Some functions are actually named | |
13320 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13321 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13322 | choke me |
b80f6443 | 13323 | #endif |
95732b49 | 13324 | |
0628567a JA |
13325 | int |
13326 | main () | |
13327 | { | |
3185942a | 13328 | return $ac_func (); |
95732b49 JA |
13329 | ; |
13330 | return 0; | |
b80f6443 | 13331 | } |
95732b49 JA |
13332 | _ACEOF |
13333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13334 | if { (ac_try="$ac_link" |
13335 | case "(($ac_try" in | |
13336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13337 | *) ac_try_echo=$ac_try;; | |
13338 | esac | |
13339 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13340 | $as_echo "$ac_try_echo") >&5 | |
13341 | (eval "$ac_link") 2>conftest.er1 | |
95732b49 | 13342 | ac_status=$? |
0628567a JA |
13343 | grep -v '^ *+' conftest.er1 >conftest.err |
13344 | rm -f conftest.er1 | |
13345 | cat conftest.err >&5 | |
3185942a JA |
13346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13347 | (exit $ac_status); } && { | |
13348 | test -z "$ac_c_werror_flag" || | |
13349 | test ! -s conftest.err | |
13350 | } && test -s conftest$ac_exeext && { | |
13351 | test "$cross_compiling" = yes || | |
13352 | $as_test_x conftest$ac_exeext | |
13353 | }; then | |
95732b49 JA |
13354 | eval "$as_ac_var=yes" |
13355 | else | |
3185942a | 13356 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13357 | sed 's/^/| /' conftest.$ac_ext >&5 |
13358 | ||
3185942a | 13359 | eval "$as_ac_var=no" |
95732b49 | 13360 | fi |
3185942a JA |
13361 | |
13362 | rm -rf conftest.dSYM | |
13363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13364 | conftest$ac_exeext conftest.$ac_ext |
95732b49 | 13365 | fi |
3185942a JA |
13366 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13367 | $as_echo "$as_val"'` | |
13368 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13369 | $as_echo "$ac_res" >&6; } | |
13370 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13371 | $as_echo "$as_val"'` | |
13372 | if test "x$as_val" = x""yes; then | |
95732b49 | 13373 | cat >>confdefs.h <<_ACEOF |
3185942a | 13374 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
95732b49 JA |
13375 | _ACEOF |
13376 | ||
13377 | else | |
3185942a | 13378 | case " $LIBOBJS " in |
0628567a | 13379 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
13380 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
13381 | ;; | |
0628567a JA |
13382 | esac |
13383 | ||
95732b49 JA |
13384 | fi |
13385 | done | |
13386 | ||
13387 | ||
13388 | ||
13389 | ||
13390 | ||
13391 | ||
13392 | ||
13393 | ||
13394 | ||
13395 | ||
13396 | ||
13397 | ||
13398 | ||
13399 | ||
13400 | ||
13401 | ||
13402 | ||
13403 | ||
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | for ac_func in bcopy bzero confstr fnmatch \ | |
13417 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ | |
13418 | memmove pathconf putenv raise regcomp regexec \ | |
13419 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ | |
13420 | sysconf tcgetattr times ttyname tzset unsetenv | |
13421 | do | |
3185942a JA |
13422 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13423 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13424 | $as_echo_n "checking for $ac_func... " >&6; } | |
13425 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13426 | $as_echo_n "(cached) " >&6 | |
95732b49 JA |
13427 | else |
13428 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13429 | /* confdefs.h. */ |
13430 | _ACEOF | |
13431 | cat confdefs.h >>conftest.$ac_ext | |
13432 | cat >>conftest.$ac_ext <<_ACEOF | |
13433 | /* end confdefs.h. */ | |
13434 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13435 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13436 | #define $ac_func innocuous_$ac_func | |
13437 | ||
95732b49 | 13438 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13439 | which can conflict with char $ac_func (); below. |
13440 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13441 | <limits.h> exists even on freestanding compilers. */ | |
13442 | ||
13443 | #ifdef __STDC__ | |
13444 | # include <limits.h> | |
13445 | #else | |
13446 | # include <assert.h> | |
13447 | #endif | |
13448 | ||
13449 | #undef $ac_func | |
13450 | ||
3185942a JA |
13451 | /* Override any GCC internal prototype to avoid an error. |
13452 | Use char because int might match the return type of a GCC | |
13453 | builtin and then its argument prototype would still apply. */ | |
95732b49 JA |
13454 | #ifdef __cplusplus |
13455 | extern "C" | |
b80f6443 | 13456 | #endif |
95732b49 | 13457 | char $ac_func (); |
95732b49 JA |
13458 | /* The GNU C library defines this for functions which it implements |
13459 | to always fail with ENOSYS. Some functions are actually named | |
13460 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13461 | #if defined __stub_$ac_func || defined __stub___$ac_func |
95732b49 | 13462 | choke me |
95732b49 JA |
13463 | #endif |
13464 | ||
0628567a JA |
13465 | int |
13466 | main () | |
13467 | { | |
3185942a | 13468 | return $ac_func (); |
b80f6443 JA |
13469 | ; |
13470 | return 0; | |
13471 | } | |
13472 | _ACEOF | |
13473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13474 | if { (ac_try="$ac_link" |
13475 | case "(($ac_try" in | |
13476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13477 | *) ac_try_echo=$ac_try;; | |
13478 | esac | |
13479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13480 | $as_echo "$ac_try_echo") >&5 | |
13481 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13482 | ac_status=$? |
0628567a JA |
13483 | grep -v '^ *+' conftest.er1 >conftest.err |
13484 | rm -f conftest.er1 | |
13485 | cat conftest.err >&5 | |
3185942a JA |
13486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13487 | (exit $ac_status); } && { | |
13488 | test -z "$ac_c_werror_flag" || | |
13489 | test ! -s conftest.err | |
13490 | } && test -s conftest$ac_exeext && { | |
13491 | test "$cross_compiling" = yes || | |
13492 | $as_test_x conftest$ac_exeext | |
13493 | }; then | |
b80f6443 JA |
13494 | eval "$as_ac_var=yes" |
13495 | else | |
3185942a | 13496 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13497 | sed 's/^/| /' conftest.$ac_ext >&5 |
13498 | ||
3185942a | 13499 | eval "$as_ac_var=no" |
b80f6443 | 13500 | fi |
3185942a JA |
13501 | |
13502 | rm -rf conftest.dSYM | |
13503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13504 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13505 | fi |
3185942a JA |
13506 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13507 | $as_echo "$as_val"'` | |
13508 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13509 | $as_echo "$ac_res" >&6; } | |
13510 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13511 | $as_echo "$as_val"'` | |
13512 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13513 | cat >>confdefs.h <<_ACEOF |
3185942a | 13514 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13515 | _ACEOF |
13516 | ||
13517 | fi | |
13518 | done | |
13519 | ||
13520 | ||
95732b49 JA |
13521 | |
13522 | ||
13523 | ||
13524 | ||
13525 | for ac_func in vsnprintf snprintf vasprintf asprintf | |
b80f6443 | 13526 | do |
3185942a JA |
13527 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13528 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13529 | $as_echo_n "checking for $ac_func... " >&6; } | |
13530 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13531 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13532 | else |
13533 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13534 | /* confdefs.h. */ |
13535 | _ACEOF | |
13536 | cat confdefs.h >>conftest.$ac_ext | |
13537 | cat >>conftest.$ac_ext <<_ACEOF | |
13538 | /* end confdefs.h. */ | |
13539 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13540 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13541 | #define $ac_func innocuous_$ac_func | |
13542 | ||
b80f6443 | 13543 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13544 | which can conflict with char $ac_func (); below. |
13545 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13546 | <limits.h> exists even on freestanding compilers. */ | |
13547 | ||
13548 | #ifdef __STDC__ | |
13549 | # include <limits.h> | |
13550 | #else | |
13551 | # include <assert.h> | |
13552 | #endif | |
13553 | ||
13554 | #undef $ac_func | |
13555 | ||
3185942a JA |
13556 | /* Override any GCC internal prototype to avoid an error. |
13557 | Use char because int might match the return type of a GCC | |
13558 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13559 | #ifdef __cplusplus |
13560 | extern "C" | |
b80f6443 | 13561 | #endif |
b80f6443 JA |
13562 | char $ac_func (); |
13563 | /* The GNU C library defines this for functions which it implements | |
13564 | to always fail with ENOSYS. Some functions are actually named | |
13565 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13566 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13567 | choke me |
b80f6443 JA |
13568 | #endif |
13569 | ||
0628567a JA |
13570 | int |
13571 | main () | |
13572 | { | |
3185942a | 13573 | return $ac_func (); |
b80f6443 JA |
13574 | ; |
13575 | return 0; | |
13576 | } | |
13577 | _ACEOF | |
13578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13579 | if { (ac_try="$ac_link" |
13580 | case "(($ac_try" in | |
13581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13582 | *) ac_try_echo=$ac_try;; | |
13583 | esac | |
13584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13585 | $as_echo "$ac_try_echo") >&5 | |
13586 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13587 | ac_status=$? |
0628567a JA |
13588 | grep -v '^ *+' conftest.er1 >conftest.err |
13589 | rm -f conftest.er1 | |
13590 | cat conftest.err >&5 | |
3185942a JA |
13591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13592 | (exit $ac_status); } && { | |
13593 | test -z "$ac_c_werror_flag" || | |
13594 | test ! -s conftest.err | |
13595 | } && test -s conftest$ac_exeext && { | |
13596 | test "$cross_compiling" = yes || | |
13597 | $as_test_x conftest$ac_exeext | |
13598 | }; then | |
b80f6443 JA |
13599 | eval "$as_ac_var=yes" |
13600 | else | |
3185942a | 13601 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13602 | sed 's/^/| /' conftest.$ac_ext >&5 |
13603 | ||
3185942a | 13604 | eval "$as_ac_var=no" |
b80f6443 | 13605 | fi |
3185942a JA |
13606 | |
13607 | rm -rf conftest.dSYM | |
13608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13609 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13610 | fi |
3185942a JA |
13611 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13612 | $as_echo "$as_val"'` | |
13613 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13614 | $as_echo "$ac_res" >&6; } | |
13615 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13616 | $as_echo "$as_val"'` | |
13617 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13618 | cat >>confdefs.h <<_ACEOF |
3185942a | 13619 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13620 | _ACEOF |
13621 | ||
b80f6443 JA |
13622 | fi |
13623 | done | |
13624 | ||
13625 | ||
13626 | ||
13627 | ||
13628 | ||
13629 | ||
13630 | ||
95732b49 | 13631 | for ac_func in isascii isblank isgraph isprint isspace isxdigit |
b80f6443 | 13632 | do |
3185942a JA |
13633 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13634 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13635 | $as_echo_n "checking for $ac_func... " >&6; } | |
13636 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13637 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13638 | else |
13639 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13640 | /* confdefs.h. */ |
13641 | _ACEOF | |
13642 | cat confdefs.h >>conftest.$ac_ext | |
13643 | cat >>conftest.$ac_ext <<_ACEOF | |
13644 | /* end confdefs.h. */ | |
13645 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13646 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13647 | #define $ac_func innocuous_$ac_func | |
13648 | ||
b80f6443 | 13649 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13650 | which can conflict with char $ac_func (); below. |
13651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13652 | <limits.h> exists even on freestanding compilers. */ | |
13653 | ||
13654 | #ifdef __STDC__ | |
13655 | # include <limits.h> | |
13656 | #else | |
13657 | # include <assert.h> | |
13658 | #endif | |
13659 | ||
13660 | #undef $ac_func | |
13661 | ||
3185942a JA |
13662 | /* Override any GCC internal prototype to avoid an error. |
13663 | Use char because int might match the return type of a GCC | |
13664 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13665 | #ifdef __cplusplus |
13666 | extern "C" | |
b80f6443 | 13667 | #endif |
b80f6443 JA |
13668 | char $ac_func (); |
13669 | /* The GNU C library defines this for functions which it implements | |
13670 | to always fail with ENOSYS. Some functions are actually named | |
13671 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13672 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13673 | choke me |
b80f6443 JA |
13674 | #endif |
13675 | ||
0628567a JA |
13676 | int |
13677 | main () | |
13678 | { | |
3185942a | 13679 | return $ac_func (); |
b80f6443 JA |
13680 | ; |
13681 | return 0; | |
13682 | } | |
13683 | _ACEOF | |
13684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13685 | if { (ac_try="$ac_link" |
13686 | case "(($ac_try" in | |
13687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13688 | *) ac_try_echo=$ac_try;; | |
13689 | esac | |
13690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13691 | $as_echo "$ac_try_echo") >&5 | |
13692 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13693 | ac_status=$? |
0628567a JA |
13694 | grep -v '^ *+' conftest.er1 >conftest.err |
13695 | rm -f conftest.er1 | |
13696 | cat conftest.err >&5 | |
3185942a JA |
13697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13698 | (exit $ac_status); } && { | |
13699 | test -z "$ac_c_werror_flag" || | |
13700 | test ! -s conftest.err | |
13701 | } && test -s conftest$ac_exeext && { | |
13702 | test "$cross_compiling" = yes || | |
13703 | $as_test_x conftest$ac_exeext | |
13704 | }; then | |
b80f6443 JA |
13705 | eval "$as_ac_var=yes" |
13706 | else | |
3185942a | 13707 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13708 | sed 's/^/| /' conftest.$ac_ext >&5 |
13709 | ||
3185942a | 13710 | eval "$as_ac_var=no" |
b80f6443 | 13711 | fi |
3185942a JA |
13712 | |
13713 | rm -rf conftest.dSYM | |
13714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13715 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13716 | fi |
3185942a JA |
13717 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13718 | $as_echo "$as_val"'` | |
13719 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13720 | $as_echo "$ac_res" >&6; } | |
13721 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13722 | $as_echo "$as_val"'` | |
13723 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13724 | cat >>confdefs.h <<_ACEOF |
3185942a | 13725 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13726 | _ACEOF |
13727 | ||
13728 | fi | |
13729 | done | |
13730 | ||
13731 | ||
13732 | ||
13733 | ||
95732b49 | 13734 | for ac_func in getpwent getpwnam getpwuid |
b80f6443 | 13735 | do |
3185942a JA |
13736 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13737 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13738 | $as_echo_n "checking for $ac_func... " >&6; } | |
13739 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13740 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13741 | else |
13742 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13743 | /* confdefs.h. */ |
13744 | _ACEOF | |
13745 | cat confdefs.h >>conftest.$ac_ext | |
13746 | cat >>conftest.$ac_ext <<_ACEOF | |
13747 | /* end confdefs.h. */ | |
13748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13750 | #define $ac_func innocuous_$ac_func | |
13751 | ||
b80f6443 | 13752 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13753 | which can conflict with char $ac_func (); below. |
13754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13755 | <limits.h> exists even on freestanding compilers. */ | |
13756 | ||
13757 | #ifdef __STDC__ | |
13758 | # include <limits.h> | |
13759 | #else | |
13760 | # include <assert.h> | |
13761 | #endif | |
13762 | ||
13763 | #undef $ac_func | |
13764 | ||
3185942a JA |
13765 | /* Override any GCC internal prototype to avoid an error. |
13766 | Use char because int might match the return type of a GCC | |
13767 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13768 | #ifdef __cplusplus |
13769 | extern "C" | |
b80f6443 | 13770 | #endif |
b80f6443 JA |
13771 | char $ac_func (); |
13772 | /* The GNU C library defines this for functions which it implements | |
13773 | to always fail with ENOSYS. Some functions are actually named | |
13774 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13775 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13776 | choke me |
b80f6443 JA |
13777 | #endif |
13778 | ||
0628567a JA |
13779 | int |
13780 | main () | |
13781 | { | |
3185942a | 13782 | return $ac_func (); |
b80f6443 JA |
13783 | ; |
13784 | return 0; | |
13785 | } | |
13786 | _ACEOF | |
13787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13788 | if { (ac_try="$ac_link" |
13789 | case "(($ac_try" in | |
13790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13791 | *) ac_try_echo=$ac_try;; | |
13792 | esac | |
13793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13794 | $as_echo "$ac_try_echo") >&5 | |
13795 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13796 | ac_status=$? |
0628567a JA |
13797 | grep -v '^ *+' conftest.er1 >conftest.err |
13798 | rm -f conftest.er1 | |
13799 | cat conftest.err >&5 | |
3185942a JA |
13800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13801 | (exit $ac_status); } && { | |
13802 | test -z "$ac_c_werror_flag" || | |
13803 | test ! -s conftest.err | |
13804 | } && test -s conftest$ac_exeext && { | |
13805 | test "$cross_compiling" = yes || | |
13806 | $as_test_x conftest$ac_exeext | |
13807 | }; then | |
b80f6443 JA |
13808 | eval "$as_ac_var=yes" |
13809 | else | |
3185942a | 13810 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13811 | sed 's/^/| /' conftest.$ac_ext >&5 |
13812 | ||
3185942a | 13813 | eval "$as_ac_var=no" |
b80f6443 | 13814 | fi |
3185942a JA |
13815 | |
13816 | rm -rf conftest.dSYM | |
13817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13818 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13819 | fi |
3185942a JA |
13820 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13821 | $as_echo "$as_val"'` | |
13822 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13823 | $as_echo "$ac_res" >&6; } | |
13824 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13825 | $as_echo "$as_val"'` | |
13826 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13827 | cat >>confdefs.h <<_ACEOF |
3185942a | 13828 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13829 | _ACEOF |
13830 | ||
13831 | fi | |
13832 | done | |
13833 | ||
13834 | ||
13835 | ||
13836 | ||
13837 | ||
13838 | ||
13839 | ||
13840 | ||
95732b49 JA |
13841 | |
13842 | for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr | |
b80f6443 | 13843 | do |
3185942a JA |
13844 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13845 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13846 | $as_echo_n "checking for $ac_func... " >&6; } | |
13847 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13848 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13849 | else |
13850 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13851 | /* confdefs.h. */ |
13852 | _ACEOF | |
13853 | cat confdefs.h >>conftest.$ac_ext | |
13854 | cat >>conftest.$ac_ext <<_ACEOF | |
13855 | /* end confdefs.h. */ | |
13856 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13858 | #define $ac_func innocuous_$ac_func | |
13859 | ||
b80f6443 | 13860 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13861 | which can conflict with char $ac_func (); below. |
13862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13863 | <limits.h> exists even on freestanding compilers. */ | |
13864 | ||
13865 | #ifdef __STDC__ | |
13866 | # include <limits.h> | |
13867 | #else | |
13868 | # include <assert.h> | |
13869 | #endif | |
13870 | ||
13871 | #undef $ac_func | |
13872 | ||
3185942a JA |
13873 | /* Override any GCC internal prototype to avoid an error. |
13874 | Use char because int might match the return type of a GCC | |
13875 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13876 | #ifdef __cplusplus |
13877 | extern "C" | |
b80f6443 | 13878 | #endif |
b80f6443 JA |
13879 | char $ac_func (); |
13880 | /* The GNU C library defines this for functions which it implements | |
13881 | to always fail with ENOSYS. Some functions are actually named | |
13882 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13883 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13884 | choke me |
b80f6443 JA |
13885 | #endif |
13886 | ||
0628567a JA |
13887 | int |
13888 | main () | |
13889 | { | |
3185942a | 13890 | return $ac_func (); |
b80f6443 JA |
13891 | ; |
13892 | return 0; | |
13893 | } | |
13894 | _ACEOF | |
13895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13896 | if { (ac_try="$ac_link" |
13897 | case "(($ac_try" in | |
13898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13899 | *) ac_try_echo=$ac_try;; | |
13900 | esac | |
13901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13902 | $as_echo "$ac_try_echo") >&5 | |
13903 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13904 | ac_status=$? |
0628567a JA |
13905 | grep -v '^ *+' conftest.er1 >conftest.err |
13906 | rm -f conftest.er1 | |
13907 | cat conftest.err >&5 | |
3185942a JA |
13908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13909 | (exit $ac_status); } && { | |
13910 | test -z "$ac_c_werror_flag" || | |
13911 | test ! -s conftest.err | |
13912 | } && test -s conftest$ac_exeext && { | |
13913 | test "$cross_compiling" = yes || | |
13914 | $as_test_x conftest$ac_exeext | |
13915 | }; then | |
b80f6443 JA |
13916 | eval "$as_ac_var=yes" |
13917 | else | |
3185942a | 13918 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13919 | sed 's/^/| /' conftest.$ac_ext >&5 |
13920 | ||
3185942a | 13921 | eval "$as_ac_var=no" |
b80f6443 | 13922 | fi |
3185942a JA |
13923 | |
13924 | rm -rf conftest.dSYM | |
13925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13926 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13927 | fi |
3185942a JA |
13928 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13929 | $as_echo "$as_val"'` | |
13930 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13931 | $as_echo "$ac_res" >&6; } | |
13932 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13933 | $as_echo "$as_val"'` | |
13934 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13935 | cat >>confdefs.h <<_ACEOF |
3185942a | 13936 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13937 | _ACEOF |
13938 | ||
13939 | else | |
3185942a | 13940 | case " $LIBOBJS " in |
0628567a | 13941 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
13942 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
13943 | ;; | |
0628567a JA |
13944 | esac |
13945 | ||
b80f6443 JA |
13946 | fi |
13947 | done | |
13948 | ||
13949 | ||
13950 | ||
13951 | ||
13952 | ||
13953 | ||
13954 | ||
13955 | ||
13956 | ||
13957 | for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax | |
13958 | do | |
3185942a JA |
13959 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13960 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13961 | $as_echo_n "checking for $ac_func... " >&6; } | |
13962 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13963 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13964 | else |
13965 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13966 | /* confdefs.h. */ |
13967 | _ACEOF | |
13968 | cat confdefs.h >>conftest.$ac_ext | |
13969 | cat >>conftest.$ac_ext <<_ACEOF | |
13970 | /* end confdefs.h. */ | |
13971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13973 | #define $ac_func innocuous_$ac_func | |
13974 | ||
b80f6443 | 13975 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13976 | which can conflict with char $ac_func (); below. |
13977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13978 | <limits.h> exists even on freestanding compilers. */ | |
13979 | ||
13980 | #ifdef __STDC__ | |
13981 | # include <limits.h> | |
13982 | #else | |
13983 | # include <assert.h> | |
13984 | #endif | |
13985 | ||
13986 | #undef $ac_func | |
13987 | ||
3185942a JA |
13988 | /* Override any GCC internal prototype to avoid an error. |
13989 | Use char because int might match the return type of a GCC | |
13990 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13991 | #ifdef __cplusplus |
13992 | extern "C" | |
b80f6443 | 13993 | #endif |
b80f6443 JA |
13994 | char $ac_func (); |
13995 | /* The GNU C library defines this for functions which it implements | |
13996 | to always fail with ENOSYS. Some functions are actually named | |
13997 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13998 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13999 | choke me |
3185942a JA |
14000 | #endif |
14001 | ||
14002 | int | |
14003 | main () | |
14004 | { | |
14005 | return $ac_func (); | |
14006 | ; | |
14007 | return 0; | |
14008 | } | |
14009 | _ACEOF | |
14010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14011 | if { (ac_try="$ac_link" | |
14012 | case "(($ac_try" in | |
14013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14014 | *) ac_try_echo=$ac_try;; | |
14015 | esac | |
14016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14017 | $as_echo "$ac_try_echo") >&5 | |
14018 | (eval "$ac_link") 2>conftest.er1 | |
14019 | ac_status=$? | |
14020 | grep -v '^ *+' conftest.er1 >conftest.err | |
14021 | rm -f conftest.er1 | |
14022 | cat conftest.err >&5 | |
14023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14024 | (exit $ac_status); } && { | |
14025 | test -z "$ac_c_werror_flag" || | |
14026 | test ! -s conftest.err | |
14027 | } && test -s conftest$ac_exeext && { | |
14028 | test "$cross_compiling" = yes || | |
14029 | $as_test_x conftest$ac_exeext | |
14030 | }; then | |
14031 | eval "$as_ac_var=yes" | |
14032 | else | |
14033 | $as_echo "$as_me: failed program was:" >&5 | |
14034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14035 | ||
14036 | eval "$as_ac_var=no" | |
14037 | fi | |
14038 | ||
14039 | rm -rf conftest.dSYM | |
14040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14041 | conftest$ac_exeext conftest.$ac_ext | |
14042 | fi | |
14043 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
14044 | $as_echo "$as_val"'` | |
14045 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14046 | $as_echo "$ac_res" >&6; } | |
14047 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14048 | $as_echo "$as_val"'` | |
14049 | if test "x$as_val" = x""yes; then | |
14050 | cat >>confdefs.h <<_ACEOF | |
14051 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14052 | _ACEOF | |
14053 | ||
14054 | else | |
14055 | case " $LIBOBJS " in | |
14056 | *" $ac_func.$ac_objext "* ) ;; | |
14057 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
14058 | ;; | |
14059 | esac | |
14060 | ||
14061 | fi | |
14062 | done | |
14063 | ||
14064 | ||
14065 | ||
14066 | for ac_func in fdprintf | |
14067 | do | |
14068 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14069 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14070 | $as_echo_n "checking for $ac_func... " >&6; } | |
14071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
14072 | $as_echo_n "(cached) " >&6 | |
14073 | else | |
14074 | cat >conftest.$ac_ext <<_ACEOF | |
14075 | /* confdefs.h. */ | |
14076 | _ACEOF | |
14077 | cat confdefs.h >>conftest.$ac_ext | |
14078 | cat >>conftest.$ac_ext <<_ACEOF | |
14079 | /* end confdefs.h. */ | |
14080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14082 | #define $ac_func innocuous_$ac_func | |
14083 | ||
14084 | /* System header to define __stub macros and hopefully few prototypes, | |
14085 | which can conflict with char $ac_func (); below. | |
14086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14087 | <limits.h> exists even on freestanding compilers. */ | |
14088 | ||
14089 | #ifdef __STDC__ | |
14090 | # include <limits.h> | |
b80f6443 | 14091 | #else |
3185942a | 14092 | # include <assert.h> |
0628567a | 14093 | #endif |
3185942a JA |
14094 | |
14095 | #undef $ac_func | |
14096 | ||
14097 | /* Override any GCC internal prototype to avoid an error. | |
14098 | Use char because int might match the return type of a GCC | |
14099 | builtin and then its argument prototype would still apply. */ | |
0628567a | 14100 | #ifdef __cplusplus |
3185942a JA |
14101 | extern "C" |
14102 | #endif | |
14103 | char $ac_func (); | |
14104 | /* The GNU C library defines this for functions which it implements | |
14105 | to always fail with ENOSYS. Some functions are actually named | |
14106 | something starting with __ and the normal name is an alias. */ | |
14107 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
14108 | choke me | |
b80f6443 JA |
14109 | #endif |
14110 | ||
0628567a JA |
14111 | int |
14112 | main () | |
14113 | { | |
3185942a | 14114 | return $ac_func (); |
b80f6443 JA |
14115 | ; |
14116 | return 0; | |
14117 | } | |
14118 | _ACEOF | |
14119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14120 | if { (ac_try="$ac_link" |
14121 | case "(($ac_try" in | |
14122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14123 | *) ac_try_echo=$ac_try;; | |
14124 | esac | |
14125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14126 | $as_echo "$ac_try_echo") >&5 | |
14127 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14128 | ac_status=$? |
0628567a JA |
14129 | grep -v '^ *+' conftest.er1 >conftest.err |
14130 | rm -f conftest.er1 | |
14131 | cat conftest.err >&5 | |
3185942a JA |
14132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14133 | (exit $ac_status); } && { | |
14134 | test -z "$ac_c_werror_flag" || | |
14135 | test ! -s conftest.err | |
14136 | } && test -s conftest$ac_exeext && { | |
14137 | test "$cross_compiling" = yes || | |
14138 | $as_test_x conftest$ac_exeext | |
14139 | }; then | |
b80f6443 JA |
14140 | eval "$as_ac_var=yes" |
14141 | else | |
3185942a | 14142 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14143 | sed 's/^/| /' conftest.$ac_ext >&5 |
14144 | ||
3185942a | 14145 | eval "$as_ac_var=no" |
b80f6443 | 14146 | fi |
3185942a JA |
14147 | |
14148 | rm -rf conftest.dSYM | |
14149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14150 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14151 | fi |
3185942a JA |
14152 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14153 | $as_echo "$as_val"'` | |
14154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14155 | $as_echo "$ac_res" >&6; } | |
14156 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14157 | $as_echo "$as_val"'` | |
14158 | if test "x$as_val" = x""yes; then | |
b80f6443 | 14159 | cat >>confdefs.h <<_ACEOF |
3185942a | 14160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
14161 | _ACEOF |
14162 | ||
14163 | else | |
3185942a | 14164 | case " $LIBOBJS " in |
0628567a | 14165 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
14166 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
14167 | ;; | |
0628567a JA |
14168 | esac |
14169 | ||
b80f6443 JA |
14170 | fi |
14171 | done | |
14172 | ||
14173 | ||
14174 | ||
3185942a JA |
14175 | { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5 |
14176 | $as_echo_n "checking whether confstr is declared... " >&6; } | |
b80f6443 | 14177 | if test "${ac_cv_have_decl_confstr+set}" = set; then |
3185942a | 14178 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14179 | else |
14180 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14181 | /* confdefs.h. */ |
14182 | _ACEOF | |
14183 | cat confdefs.h >>conftest.$ac_ext | |
14184 | cat >>conftest.$ac_ext <<_ACEOF | |
14185 | /* end confdefs.h. */ | |
b80f6443 JA |
14186 | $ac_includes_default |
14187 | int | |
14188 | main () | |
14189 | { | |
14190 | #ifndef confstr | |
3185942a | 14191 | (void) confstr; |
b80f6443 JA |
14192 | #endif |
14193 | ||
14194 | ; | |
14195 | return 0; | |
14196 | } | |
14197 | _ACEOF | |
14198 | rm -f conftest.$ac_objext | |
3185942a JA |
14199 | if { (ac_try="$ac_compile" |
14200 | case "(($ac_try" in | |
14201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14202 | *) ac_try_echo=$ac_try;; | |
14203 | esac | |
14204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14205 | $as_echo "$ac_try_echo") >&5 | |
14206 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14207 | ac_status=$? |
0628567a JA |
14208 | grep -v '^ *+' conftest.er1 >conftest.err |
14209 | rm -f conftest.er1 | |
14210 | cat conftest.err >&5 | |
3185942a JA |
14211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14212 | (exit $ac_status); } && { | |
14213 | test -z "$ac_c_werror_flag" || | |
14214 | test ! -s conftest.err | |
14215 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14216 | ac_cv_have_decl_confstr=yes |
14217 | else | |
3185942a | 14218 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14219 | sed 's/^/| /' conftest.$ac_ext >&5 |
14220 | ||
3185942a | 14221 | ac_cv_have_decl_confstr=no |
b80f6443 | 14222 | fi |
3185942a JA |
14223 | |
14224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14225 | fi |
3185942a JA |
14226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5 |
14227 | $as_echo "$ac_cv_have_decl_confstr" >&6; } | |
14228 | if test "x$ac_cv_have_decl_confstr" = x""yes; then | |
b80f6443 JA |
14229 | |
14230 | cat >>confdefs.h <<_ACEOF | |
14231 | #define HAVE_DECL_CONFSTR 1 | |
14232 | _ACEOF | |
14233 | ||
14234 | ||
14235 | else | |
14236 | cat >>confdefs.h <<_ACEOF | |
14237 | #define HAVE_DECL_CONFSTR 0 | |
14238 | _ACEOF | |
14239 | ||
14240 | ||
14241 | fi | |
14242 | ||
14243 | ||
3185942a JA |
14244 | { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5 |
14245 | $as_echo_n "checking whether printf is declared... " >&6; } | |
b80f6443 | 14246 | if test "${ac_cv_have_decl_printf+set}" = set; then |
3185942a | 14247 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14248 | else |
14249 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14250 | /* confdefs.h. */ |
14251 | _ACEOF | |
14252 | cat confdefs.h >>conftest.$ac_ext | |
14253 | cat >>conftest.$ac_ext <<_ACEOF | |
14254 | /* end confdefs.h. */ | |
b80f6443 JA |
14255 | $ac_includes_default |
14256 | int | |
14257 | main () | |
14258 | { | |
14259 | #ifndef printf | |
3185942a | 14260 | (void) printf; |
b80f6443 JA |
14261 | #endif |
14262 | ||
14263 | ; | |
14264 | return 0; | |
14265 | } | |
14266 | _ACEOF | |
14267 | rm -f conftest.$ac_objext | |
3185942a JA |
14268 | if { (ac_try="$ac_compile" |
14269 | case "(($ac_try" in | |
14270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14271 | *) ac_try_echo=$ac_try;; | |
14272 | esac | |
14273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14274 | $as_echo "$ac_try_echo") >&5 | |
14275 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14276 | ac_status=$? |
0628567a JA |
14277 | grep -v '^ *+' conftest.er1 >conftest.err |
14278 | rm -f conftest.er1 | |
14279 | cat conftest.err >&5 | |
3185942a JA |
14280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14281 | (exit $ac_status); } && { | |
14282 | test -z "$ac_c_werror_flag" || | |
14283 | test ! -s conftest.err | |
14284 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14285 | ac_cv_have_decl_printf=yes |
14286 | else | |
3185942a | 14287 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14288 | sed 's/^/| /' conftest.$ac_ext >&5 |
14289 | ||
3185942a | 14290 | ac_cv_have_decl_printf=no |
b80f6443 | 14291 | fi |
3185942a JA |
14292 | |
14293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14294 | fi |
3185942a JA |
14295 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5 |
14296 | $as_echo "$ac_cv_have_decl_printf" >&6; } | |
14297 | if test "x$ac_cv_have_decl_printf" = x""yes; then | |
b80f6443 JA |
14298 | |
14299 | cat >>confdefs.h <<_ACEOF | |
14300 | #define HAVE_DECL_PRINTF 1 | |
14301 | _ACEOF | |
14302 | ||
14303 | ||
14304 | else | |
14305 | cat >>confdefs.h <<_ACEOF | |
14306 | #define HAVE_DECL_PRINTF 0 | |
14307 | _ACEOF | |
14308 | ||
14309 | ||
14310 | fi | |
14311 | ||
14312 | ||
3185942a JA |
14313 | { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 |
14314 | $as_echo_n "checking whether sbrk is declared... " >&6; } | |
b80f6443 | 14315 | if test "${ac_cv_have_decl_sbrk+set}" = set; then |
3185942a | 14316 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14317 | else |
14318 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14319 | /* confdefs.h. */ |
14320 | _ACEOF | |
14321 | cat confdefs.h >>conftest.$ac_ext | |
14322 | cat >>conftest.$ac_ext <<_ACEOF | |
14323 | /* end confdefs.h. */ | |
b80f6443 JA |
14324 | $ac_includes_default |
14325 | int | |
14326 | main () | |
14327 | { | |
14328 | #ifndef sbrk | |
3185942a | 14329 | (void) sbrk; |
b80f6443 JA |
14330 | #endif |
14331 | ||
14332 | ; | |
14333 | return 0; | |
14334 | } | |
14335 | _ACEOF | |
14336 | rm -f conftest.$ac_objext | |
3185942a JA |
14337 | if { (ac_try="$ac_compile" |
14338 | case "(($ac_try" in | |
14339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14340 | *) ac_try_echo=$ac_try;; | |
14341 | esac | |
14342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14343 | $as_echo "$ac_try_echo") >&5 | |
14344 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14345 | ac_status=$? |
0628567a JA |
14346 | grep -v '^ *+' conftest.er1 >conftest.err |
14347 | rm -f conftest.er1 | |
14348 | cat conftest.err >&5 | |
3185942a JA |
14349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14350 | (exit $ac_status); } && { | |
14351 | test -z "$ac_c_werror_flag" || | |
14352 | test ! -s conftest.err | |
14353 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14354 | ac_cv_have_decl_sbrk=yes |
14355 | else | |
3185942a | 14356 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14357 | sed 's/^/| /' conftest.$ac_ext >&5 |
14358 | ||
3185942a | 14359 | ac_cv_have_decl_sbrk=no |
b80f6443 | 14360 | fi |
3185942a JA |
14361 | |
14362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14363 | fi |
3185942a JA |
14364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
14365 | $as_echo "$ac_cv_have_decl_sbrk" >&6; } | |
14366 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then | |
b80f6443 JA |
14367 | |
14368 | cat >>confdefs.h <<_ACEOF | |
14369 | #define HAVE_DECL_SBRK 1 | |
14370 | _ACEOF | |
14371 | ||
14372 | ||
14373 | else | |
14374 | cat >>confdefs.h <<_ACEOF | |
14375 | #define HAVE_DECL_SBRK 0 | |
14376 | _ACEOF | |
14377 | ||
14378 | ||
14379 | fi | |
14380 | ||
14381 | ||
3185942a JA |
14382 | { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5 |
14383 | $as_echo_n "checking whether setregid is declared... " >&6; } | |
0628567a | 14384 | if test "${ac_cv_have_decl_setregid+set}" = set; then |
3185942a | 14385 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14386 | else |
14387 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14388 | /* confdefs.h. */ |
14389 | _ACEOF | |
14390 | cat confdefs.h >>conftest.$ac_ext | |
14391 | cat >>conftest.$ac_ext <<_ACEOF | |
14392 | /* end confdefs.h. */ | |
b80f6443 JA |
14393 | $ac_includes_default |
14394 | int | |
14395 | main () | |
14396 | { | |
0628567a | 14397 | #ifndef setregid |
3185942a | 14398 | (void) setregid; |
b80f6443 JA |
14399 | #endif |
14400 | ||
14401 | ; | |
14402 | return 0; | |
14403 | } | |
14404 | _ACEOF | |
14405 | rm -f conftest.$ac_objext | |
3185942a JA |
14406 | if { (ac_try="$ac_compile" |
14407 | case "(($ac_try" in | |
14408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14409 | *) ac_try_echo=$ac_try;; | |
14410 | esac | |
14411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14412 | $as_echo "$ac_try_echo") >&5 | |
14413 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14414 | ac_status=$? |
0628567a JA |
14415 | grep -v '^ *+' conftest.er1 >conftest.err |
14416 | rm -f conftest.er1 | |
14417 | cat conftest.err >&5 | |
3185942a JA |
14418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14419 | (exit $ac_status); } && { | |
14420 | test -z "$ac_c_werror_flag" || | |
14421 | test ! -s conftest.err | |
14422 | } && test -s conftest.$ac_objext; then | |
0628567a | 14423 | ac_cv_have_decl_setregid=yes |
b80f6443 | 14424 | else |
3185942a | 14425 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14426 | sed 's/^/| /' conftest.$ac_ext >&5 |
14427 | ||
3185942a | 14428 | ac_cv_have_decl_setregid=no |
b80f6443 | 14429 | fi |
3185942a JA |
14430 | |
14431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14432 | fi |
3185942a JA |
14433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5 |
14434 | $as_echo "$ac_cv_have_decl_setregid" >&6; } | |
14435 | if test "x$ac_cv_have_decl_setregid" = x""yes; then | |
b80f6443 JA |
14436 | |
14437 | cat >>confdefs.h <<_ACEOF | |
0628567a | 14438 | #define HAVE_DECL_SETREGID 1 |
b80f6443 JA |
14439 | _ACEOF |
14440 | ||
14441 | ||
14442 | else | |
14443 | cat >>confdefs.h <<_ACEOF | |
0628567a | 14444 | #define HAVE_DECL_SETREGID 0 |
b80f6443 JA |
14445 | _ACEOF |
14446 | ||
14447 | ||
14448 | fi | |
14449 | ||
14450 | ||
3185942a JA |
14451 | { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5 |
14452 | $as_echo_n "checking whether strcpy is declared... " >&6; } | |
0628567a | 14453 | if test "${ac_cv_have_decl_strcpy+set}" = set; then |
3185942a | 14454 | $as_echo_n "(cached) " >&6 |
0628567a | 14455 | else |
b80f6443 | 14456 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
14457 | /* confdefs.h. */ |
14458 | _ACEOF | |
14459 | cat confdefs.h >>conftest.$ac_ext | |
14460 | cat >>conftest.$ac_ext <<_ACEOF | |
14461 | /* end confdefs.h. */ | |
b80f6443 | 14462 | $ac_includes_default |
0628567a JA |
14463 | int |
14464 | main () | |
14465 | { | |
14466 | #ifndef strcpy | |
3185942a | 14467 | (void) strcpy; |
95732b49 | 14468 | #endif |
0628567a JA |
14469 | |
14470 | ; | |
14471 | return 0; | |
14472 | } | |
14473 | _ACEOF | |
14474 | rm -f conftest.$ac_objext | |
3185942a JA |
14475 | if { (ac_try="$ac_compile" |
14476 | case "(($ac_try" in | |
14477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14478 | *) ac_try_echo=$ac_try;; | |
14479 | esac | |
14480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14481 | $as_echo "$ac_try_echo") >&5 | |
14482 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
14483 | ac_status=$? |
14484 | grep -v '^ *+' conftest.er1 >conftest.err | |
14485 | rm -f conftest.er1 | |
14486 | cat conftest.err >&5 | |
3185942a JA |
14487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14488 | (exit $ac_status); } && { | |
14489 | test -z "$ac_c_werror_flag" || | |
14490 | test ! -s conftest.err | |
14491 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
14492 | ac_cv_have_decl_strcpy=yes |
14493 | else | |
3185942a | 14494 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14495 | sed 's/^/| /' conftest.$ac_ext >&5 |
14496 | ||
3185942a | 14497 | ac_cv_have_decl_strcpy=no |
0628567a | 14498 | fi |
3185942a JA |
14499 | |
14500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 14501 | fi |
3185942a JA |
14502 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5 |
14503 | $as_echo "$ac_cv_have_decl_strcpy" >&6; } | |
14504 | if test "x$ac_cv_have_decl_strcpy" = x""yes; then | |
0628567a JA |
14505 | |
14506 | cat >>confdefs.h <<_ACEOF | |
14507 | #define HAVE_DECL_STRCPY 1 | |
14508 | _ACEOF | |
14509 | ||
14510 | ||
14511 | else | |
14512 | cat >>confdefs.h <<_ACEOF | |
14513 | #define HAVE_DECL_STRCPY 0 | |
14514 | _ACEOF | |
14515 | ||
14516 | ||
14517 | fi | |
14518 | ||
14519 | ||
3185942a JA |
14520 | { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5 |
14521 | $as_echo_n "checking whether strsignal is declared... " >&6; } | |
0628567a | 14522 | if test "${ac_cv_have_decl_strsignal+set}" = set; then |
3185942a | 14523 | $as_echo_n "(cached) " >&6 |
0628567a JA |
14524 | else |
14525 | cat >conftest.$ac_ext <<_ACEOF | |
14526 | /* confdefs.h. */ | |
14527 | _ACEOF | |
14528 | cat confdefs.h >>conftest.$ac_ext | |
14529 | cat >>conftest.$ac_ext <<_ACEOF | |
14530 | /* end confdefs.h. */ | |
14531 | $ac_includes_default | |
b80f6443 JA |
14532 | int |
14533 | main () | |
14534 | { | |
14535 | #ifndef strsignal | |
3185942a | 14536 | (void) strsignal; |
b80f6443 JA |
14537 | #endif |
14538 | ||
14539 | ; | |
14540 | return 0; | |
14541 | } | |
14542 | _ACEOF | |
14543 | rm -f conftest.$ac_objext | |
3185942a JA |
14544 | if { (ac_try="$ac_compile" |
14545 | case "(($ac_try" in | |
14546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14547 | *) ac_try_echo=$ac_try;; | |
14548 | esac | |
14549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14550 | $as_echo "$ac_try_echo") >&5 | |
14551 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14552 | ac_status=$? |
0628567a JA |
14553 | grep -v '^ *+' conftest.er1 >conftest.err |
14554 | rm -f conftest.er1 | |
14555 | cat conftest.err >&5 | |
3185942a JA |
14556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14557 | (exit $ac_status); } && { | |
14558 | test -z "$ac_c_werror_flag" || | |
14559 | test ! -s conftest.err | |
14560 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14561 | ac_cv_have_decl_strsignal=yes |
14562 | else | |
3185942a | 14563 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14564 | sed 's/^/| /' conftest.$ac_ext >&5 |
14565 | ||
3185942a | 14566 | ac_cv_have_decl_strsignal=no |
b80f6443 | 14567 | fi |
3185942a JA |
14568 | |
14569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14570 | fi |
3185942a JA |
14571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5 |
14572 | $as_echo "$ac_cv_have_decl_strsignal" >&6; } | |
14573 | if test "x$ac_cv_have_decl_strsignal" = x""yes; then | |
b80f6443 JA |
14574 | |
14575 | cat >>confdefs.h <<_ACEOF | |
14576 | #define HAVE_DECL_STRSIGNAL 1 | |
14577 | _ACEOF | |
14578 | ||
14579 | ||
14580 | else | |
14581 | cat >>confdefs.h <<_ACEOF | |
14582 | #define HAVE_DECL_STRSIGNAL 0 | |
14583 | _ACEOF | |
14584 | ||
14585 | ||
14586 | fi | |
14587 | ||
14588 | ||
14589 | ||
3185942a JA |
14590 | { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5 |
14591 | $as_echo_n "checking whether strtold is declared... " >&6; } | |
b80f6443 | 14592 | if test "${ac_cv_have_decl_strtold+set}" = set; then |
3185942a | 14593 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14594 | else |
14595 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14596 | /* confdefs.h. */ |
14597 | _ACEOF | |
14598 | cat confdefs.h >>conftest.$ac_ext | |
14599 | cat >>conftest.$ac_ext <<_ACEOF | |
14600 | /* end confdefs.h. */ | |
b80f6443 JA |
14601 | $ac_includes_default |
14602 | int | |
14603 | main () | |
14604 | { | |
14605 | #ifndef strtold | |
3185942a | 14606 | (void) strtold; |
b80f6443 JA |
14607 | #endif |
14608 | ||
14609 | ; | |
14610 | return 0; | |
14611 | } | |
14612 | _ACEOF | |
14613 | rm -f conftest.$ac_objext | |
3185942a JA |
14614 | if { (ac_try="$ac_compile" |
14615 | case "(($ac_try" in | |
14616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14617 | *) ac_try_echo=$ac_try;; | |
14618 | esac | |
14619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14620 | $as_echo "$ac_try_echo") >&5 | |
14621 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14622 | ac_status=$? |
0628567a JA |
14623 | grep -v '^ *+' conftest.er1 >conftest.err |
14624 | rm -f conftest.er1 | |
14625 | cat conftest.err >&5 | |
3185942a JA |
14626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14627 | (exit $ac_status); } && { | |
14628 | test -z "$ac_c_werror_flag" || | |
14629 | test ! -s conftest.err | |
14630 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14631 | ac_cv_have_decl_strtold=yes |
14632 | else | |
3185942a | 14633 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14634 | sed 's/^/| /' conftest.$ac_ext >&5 |
14635 | ||
3185942a | 14636 | ac_cv_have_decl_strtold=no |
b80f6443 | 14637 | fi |
3185942a JA |
14638 | |
14639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14640 | fi |
3185942a JA |
14641 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5 |
14642 | $as_echo "$ac_cv_have_decl_strtold" >&6; } | |
14643 | if test "x$ac_cv_have_decl_strtold" = x""yes; then | |
b80f6443 JA |
14644 | |
14645 | cat >>confdefs.h <<_ACEOF | |
14646 | #define HAVE_DECL_STRTOLD 1 | |
14647 | _ACEOF | |
14648 | ||
14649 | ||
3185942a JA |
14650 | { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5 |
14651 | $as_echo_n "checking for broken strtold... " >&6; } | |
b80f6443 | 14652 | if test "${bash_cv_strtold_broken+set}" = set; then |
3185942a | 14653 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14654 | else |
14655 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14656 | /* confdefs.h. */ |
14657 | _ACEOF | |
14658 | cat confdefs.h >>conftest.$ac_ext | |
14659 | cat >>conftest.$ac_ext <<_ACEOF | |
14660 | /* end confdefs.h. */ | |
b80f6443 JA |
14661 | #include <stdlib.h> |
14662 | int | |
14663 | main () | |
14664 | { | |
14665 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} | |
14666 | ; | |
14667 | return 0; | |
14668 | } | |
14669 | _ACEOF | |
14670 | rm -f conftest.$ac_objext | |
3185942a JA |
14671 | if { (ac_try="$ac_compile" |
14672 | case "(($ac_try" in | |
14673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14674 | *) ac_try_echo=$ac_try;; | |
14675 | esac | |
14676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14677 | $as_echo "$ac_try_echo") >&5 | |
14678 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14679 | ac_status=$? |
0628567a JA |
14680 | grep -v '^ *+' conftest.er1 >conftest.err |
14681 | rm -f conftest.er1 | |
14682 | cat conftest.err >&5 | |
3185942a JA |
14683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14684 | (exit $ac_status); } && { | |
14685 | test -z "$ac_c_werror_flag" || | |
14686 | test ! -s conftest.err | |
14687 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14688 | bash_cv_strtold_broken=no |
14689 | else | |
3185942a | 14690 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14691 | sed 's/^/| /' conftest.$ac_ext >&5 |
14692 | ||
3185942a | 14693 | bash_cv_strtold_broken=yes |
b80f6443 | 14694 | fi |
3185942a JA |
14695 | |
14696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
14697 | |
14698 | ||
14699 | fi | |
14700 | ||
3185942a JA |
14701 | { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5 |
14702 | $as_echo "$bash_cv_strtold_broken" >&6; } | |
b80f6443 JA |
14703 | if test "$bash_cv_strtold_broken" = "yes" ; then |
14704 | cat >>confdefs.h <<\_ACEOF | |
14705 | #define STRTOLD_BROKEN 1 | |
14706 | _ACEOF | |
14707 | ||
14708 | fi | |
14709 | ||
14710 | else | |
14711 | cat >>confdefs.h <<_ACEOF | |
14712 | #define HAVE_DECL_STRTOLD 0 | |
14713 | _ACEOF | |
14714 | ||
14715 | ||
14716 | fi | |
14717 | ||
14718 | ||
14719 | ||
14720 | ||
14721 | ||
14722 | ||
14723 | ||
3185942a JA |
14724 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5 |
14725 | $as_echo_n "checking for declaration of strtoimax... " >&6; } | |
b80f6443 | 14726 | if test "${bash_cv_decl_strtoimax+set}" = set; then |
3185942a | 14727 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14728 | else |
14729 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14730 | /* confdefs.h. */ |
14731 | _ACEOF | |
14732 | cat confdefs.h >>conftest.$ac_ext | |
14733 | cat >>conftest.$ac_ext <<_ACEOF | |
14734 | /* end confdefs.h. */ | |
b80f6443 JA |
14735 | |
14736 | #if STDC_HEADERS | |
14737 | # include <stdlib.h> | |
14738 | #endif | |
14739 | #if HAVE_INTTYPES_H | |
14740 | # include <inttypes.h> | |
14741 | #endif | |
14742 | ||
14743 | int | |
14744 | main () | |
14745 | { | |
14746 | return !strtoimax; | |
14747 | ; | |
14748 | return 0; | |
14749 | } | |
14750 | _ACEOF | |
14751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14752 | if { (ac_try="$ac_link" |
14753 | case "(($ac_try" in | |
14754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14755 | *) ac_try_echo=$ac_try;; | |
14756 | esac | |
14757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14758 | $as_echo "$ac_try_echo") >&5 | |
14759 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14760 | ac_status=$? |
0628567a JA |
14761 | grep -v '^ *+' conftest.er1 >conftest.err |
14762 | rm -f conftest.er1 | |
14763 | cat conftest.err >&5 | |
3185942a JA |
14764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14765 | (exit $ac_status); } && { | |
14766 | test -z "$ac_c_werror_flag" || | |
14767 | test ! -s conftest.err | |
14768 | } && test -s conftest$ac_exeext && { | |
14769 | test "$cross_compiling" = yes || | |
14770 | $as_test_x conftest$ac_exeext | |
14771 | }; then | |
b80f6443 JA |
14772 | bash_cv_decl_strtoimax=yes |
14773 | else | |
3185942a | 14774 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14775 | sed 's/^/| /' conftest.$ac_ext >&5 |
14776 | ||
3185942a | 14777 | bash_cv_decl_strtoimax=no |
b80f6443 | 14778 | fi |
3185942a JA |
14779 | |
14780 | rm -rf conftest.dSYM | |
14781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14782 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14783 | fi |
3185942a JA |
14784 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5 |
14785 | $as_echo "$bash_cv_decl_strtoimax" >&6; } | |
b80f6443 JA |
14786 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14787 | if test $bash_cv_decl_strtoimax = yes; then | |
14788 | cat >>confdefs.h <<_ACEOF | |
14789 | #define $bash_tr_func 1 | |
14790 | _ACEOF | |
14791 | ||
14792 | else | |
14793 | cat >>confdefs.h <<_ACEOF | |
14794 | #define $bash_tr_func 0 | |
14795 | _ACEOF | |
14796 | ||
14797 | fi | |
14798 | ||
14799 | ||
14800 | ||
14801 | ||
3185942a JA |
14802 | { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5 |
14803 | $as_echo_n "checking for declaration of strtol... " >&6; } | |
b80f6443 | 14804 | if test "${bash_cv_decl_strtol+set}" = set; then |
3185942a | 14805 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14806 | else |
14807 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14808 | /* confdefs.h. */ |
14809 | _ACEOF | |
14810 | cat confdefs.h >>conftest.$ac_ext | |
14811 | cat >>conftest.$ac_ext <<_ACEOF | |
14812 | /* end confdefs.h. */ | |
b80f6443 JA |
14813 | |
14814 | #if STDC_HEADERS | |
14815 | # include <stdlib.h> | |
14816 | #endif | |
14817 | #if HAVE_INTTYPES_H | |
14818 | # include <inttypes.h> | |
14819 | #endif | |
14820 | ||
14821 | int | |
14822 | main () | |
14823 | { | |
14824 | return !strtol; | |
14825 | ; | |
14826 | return 0; | |
14827 | } | |
14828 | _ACEOF | |
14829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14830 | if { (ac_try="$ac_link" |
14831 | case "(($ac_try" in | |
14832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14833 | *) ac_try_echo=$ac_try;; | |
14834 | esac | |
14835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14836 | $as_echo "$ac_try_echo") >&5 | |
14837 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14838 | ac_status=$? |
0628567a JA |
14839 | grep -v '^ *+' conftest.er1 >conftest.err |
14840 | rm -f conftest.er1 | |
14841 | cat conftest.err >&5 | |
3185942a JA |
14842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14843 | (exit $ac_status); } && { | |
14844 | test -z "$ac_c_werror_flag" || | |
14845 | test ! -s conftest.err | |
14846 | } && test -s conftest$ac_exeext && { | |
14847 | test "$cross_compiling" = yes || | |
14848 | $as_test_x conftest$ac_exeext | |
14849 | }; then | |
b80f6443 JA |
14850 | bash_cv_decl_strtol=yes |
14851 | else | |
3185942a | 14852 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14853 | sed 's/^/| /' conftest.$ac_ext >&5 |
14854 | ||
3185942a | 14855 | bash_cv_decl_strtol=no |
b80f6443 | 14856 | fi |
3185942a JA |
14857 | |
14858 | rm -rf conftest.dSYM | |
14859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14860 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14861 | fi |
3185942a JA |
14862 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5 |
14863 | $as_echo "$bash_cv_decl_strtol" >&6; } | |
b80f6443 JA |
14864 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14865 | if test $bash_cv_decl_strtol = yes; then | |
14866 | cat >>confdefs.h <<_ACEOF | |
14867 | #define $bash_tr_func 1 | |
14868 | _ACEOF | |
14869 | ||
14870 | else | |
14871 | cat >>confdefs.h <<_ACEOF | |
14872 | #define $bash_tr_func 0 | |
14873 | _ACEOF | |
14874 | ||
14875 | fi | |
14876 | ||
14877 | ||
14878 | ||
14879 | ||
3185942a JA |
14880 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5 |
14881 | $as_echo_n "checking for declaration of strtoll... " >&6; } | |
b80f6443 | 14882 | if test "${bash_cv_decl_strtoll+set}" = set; then |
3185942a | 14883 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14884 | else |
14885 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14886 | /* confdefs.h. */ |
14887 | _ACEOF | |
14888 | cat confdefs.h >>conftest.$ac_ext | |
14889 | cat >>conftest.$ac_ext <<_ACEOF | |
14890 | /* end confdefs.h. */ | |
b80f6443 JA |
14891 | |
14892 | #if STDC_HEADERS | |
14893 | # include <stdlib.h> | |
14894 | #endif | |
14895 | #if HAVE_INTTYPES_H | |
14896 | # include <inttypes.h> | |
14897 | #endif | |
14898 | ||
14899 | int | |
14900 | main () | |
14901 | { | |
14902 | return !strtoll; | |
14903 | ; | |
14904 | return 0; | |
14905 | } | |
14906 | _ACEOF | |
14907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14908 | if { (ac_try="$ac_link" |
14909 | case "(($ac_try" in | |
14910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14911 | *) ac_try_echo=$ac_try;; | |
14912 | esac | |
14913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14914 | $as_echo "$ac_try_echo") >&5 | |
14915 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14916 | ac_status=$? |
0628567a JA |
14917 | grep -v '^ *+' conftest.er1 >conftest.err |
14918 | rm -f conftest.er1 | |
14919 | cat conftest.err >&5 | |
3185942a JA |
14920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14921 | (exit $ac_status); } && { | |
14922 | test -z "$ac_c_werror_flag" || | |
14923 | test ! -s conftest.err | |
14924 | } && test -s conftest$ac_exeext && { | |
14925 | test "$cross_compiling" = yes || | |
14926 | $as_test_x conftest$ac_exeext | |
14927 | }; then | |
b80f6443 JA |
14928 | bash_cv_decl_strtoll=yes |
14929 | else | |
3185942a | 14930 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14931 | sed 's/^/| /' conftest.$ac_ext >&5 |
14932 | ||
3185942a | 14933 | bash_cv_decl_strtoll=no |
b80f6443 | 14934 | fi |
3185942a JA |
14935 | |
14936 | rm -rf conftest.dSYM | |
14937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14938 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14939 | fi |
3185942a JA |
14940 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5 |
14941 | $as_echo "$bash_cv_decl_strtoll" >&6; } | |
b80f6443 JA |
14942 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14943 | if test $bash_cv_decl_strtoll = yes; then | |
14944 | cat >>confdefs.h <<_ACEOF | |
14945 | #define $bash_tr_func 1 | |
14946 | _ACEOF | |
14947 | ||
14948 | else | |
14949 | cat >>confdefs.h <<_ACEOF | |
14950 | #define $bash_tr_func 0 | |
14951 | _ACEOF | |
14952 | ||
14953 | fi | |
14954 | ||
14955 | ||
14956 | ||
14957 | ||
3185942a JA |
14958 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5 |
14959 | $as_echo_n "checking for declaration of strtoul... " >&6; } | |
b80f6443 | 14960 | if test "${bash_cv_decl_strtoul+set}" = set; then |
3185942a | 14961 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14962 | else |
14963 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14964 | /* confdefs.h. */ |
14965 | _ACEOF | |
14966 | cat confdefs.h >>conftest.$ac_ext | |
14967 | cat >>conftest.$ac_ext <<_ACEOF | |
14968 | /* end confdefs.h. */ | |
b80f6443 JA |
14969 | |
14970 | #if STDC_HEADERS | |
14971 | # include <stdlib.h> | |
14972 | #endif | |
14973 | #if HAVE_INTTYPES_H | |
14974 | # include <inttypes.h> | |
14975 | #endif | |
14976 | ||
14977 | int | |
14978 | main () | |
14979 | { | |
14980 | return !strtoul; | |
14981 | ; | |
14982 | return 0; | |
14983 | } | |
14984 | _ACEOF | |
14985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14986 | if { (ac_try="$ac_link" |
14987 | case "(($ac_try" in | |
14988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14989 | *) ac_try_echo=$ac_try;; | |
14990 | esac | |
14991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14992 | $as_echo "$ac_try_echo") >&5 | |
14993 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14994 | ac_status=$? |
0628567a JA |
14995 | grep -v '^ *+' conftest.er1 >conftest.err |
14996 | rm -f conftest.er1 | |
14997 | cat conftest.err >&5 | |
3185942a JA |
14998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14999 | (exit $ac_status); } && { | |
15000 | test -z "$ac_c_werror_flag" || | |
15001 | test ! -s conftest.err | |
15002 | } && test -s conftest$ac_exeext && { | |
15003 | test "$cross_compiling" = yes || | |
15004 | $as_test_x conftest$ac_exeext | |
15005 | }; then | |
b80f6443 JA |
15006 | bash_cv_decl_strtoul=yes |
15007 | else | |
3185942a | 15008 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15009 | sed 's/^/| /' conftest.$ac_ext >&5 |
15010 | ||
3185942a | 15011 | bash_cv_decl_strtoul=no |
b80f6443 | 15012 | fi |
3185942a JA |
15013 | |
15014 | rm -rf conftest.dSYM | |
15015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15016 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15017 | fi |
3185942a JA |
15018 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5 |
15019 | $as_echo "$bash_cv_decl_strtoul" >&6; } | |
b80f6443 JA |
15020 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15021 | if test $bash_cv_decl_strtoul = yes; then | |
15022 | cat >>confdefs.h <<_ACEOF | |
15023 | #define $bash_tr_func 1 | |
15024 | _ACEOF | |
15025 | ||
15026 | else | |
15027 | cat >>confdefs.h <<_ACEOF | |
15028 | #define $bash_tr_func 0 | |
15029 | _ACEOF | |
15030 | ||
15031 | fi | |
15032 | ||
15033 | ||
15034 | ||
15035 | ||
3185942a JA |
15036 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5 |
15037 | $as_echo_n "checking for declaration of strtoull... " >&6; } | |
b80f6443 | 15038 | if test "${bash_cv_decl_strtoull+set}" = set; then |
3185942a | 15039 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15040 | else |
15041 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15042 | /* confdefs.h. */ |
15043 | _ACEOF | |
15044 | cat confdefs.h >>conftest.$ac_ext | |
15045 | cat >>conftest.$ac_ext <<_ACEOF | |
15046 | /* end confdefs.h. */ | |
b80f6443 JA |
15047 | |
15048 | #if STDC_HEADERS | |
15049 | # include <stdlib.h> | |
15050 | #endif | |
15051 | #if HAVE_INTTYPES_H | |
15052 | # include <inttypes.h> | |
15053 | #endif | |
15054 | ||
15055 | int | |
15056 | main () | |
15057 | { | |
15058 | return !strtoull; | |
15059 | ; | |
15060 | return 0; | |
15061 | } | |
15062 | _ACEOF | |
15063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15064 | if { (ac_try="$ac_link" |
15065 | case "(($ac_try" in | |
15066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15067 | *) ac_try_echo=$ac_try;; | |
15068 | esac | |
15069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15070 | $as_echo "$ac_try_echo") >&5 | |
15071 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15072 | ac_status=$? |
0628567a JA |
15073 | grep -v '^ *+' conftest.er1 >conftest.err |
15074 | rm -f conftest.er1 | |
15075 | cat conftest.err >&5 | |
3185942a JA |
15076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15077 | (exit $ac_status); } && { | |
15078 | test -z "$ac_c_werror_flag" || | |
15079 | test ! -s conftest.err | |
15080 | } && test -s conftest$ac_exeext && { | |
15081 | test "$cross_compiling" = yes || | |
15082 | $as_test_x conftest$ac_exeext | |
15083 | }; then | |
b80f6443 JA |
15084 | bash_cv_decl_strtoull=yes |
15085 | else | |
3185942a | 15086 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15087 | sed 's/^/| /' conftest.$ac_ext >&5 |
15088 | ||
3185942a | 15089 | bash_cv_decl_strtoull=no |
b80f6443 | 15090 | fi |
3185942a JA |
15091 | |
15092 | rm -rf conftest.dSYM | |
15093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15094 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15095 | fi |
3185942a JA |
15096 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5 |
15097 | $as_echo "$bash_cv_decl_strtoull" >&6; } | |
b80f6443 JA |
15098 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15099 | if test $bash_cv_decl_strtoull = yes; then | |
15100 | cat >>confdefs.h <<_ACEOF | |
15101 | #define $bash_tr_func 1 | |
15102 | _ACEOF | |
15103 | ||
15104 | else | |
15105 | cat >>confdefs.h <<_ACEOF | |
15106 | #define $bash_tr_func 0 | |
15107 | _ACEOF | |
15108 | ||
15109 | fi | |
15110 | ||
15111 | ||
15112 | ||
15113 | ||
3185942a JA |
15114 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5 |
15115 | $as_echo_n "checking for declaration of strtoumax... " >&6; } | |
b80f6443 | 15116 | if test "${bash_cv_decl_strtoumax+set}" = set; then |
3185942a | 15117 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15118 | else |
15119 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15120 | /* confdefs.h. */ |
15121 | _ACEOF | |
15122 | cat confdefs.h >>conftest.$ac_ext | |
15123 | cat >>conftest.$ac_ext <<_ACEOF | |
15124 | /* end confdefs.h. */ | |
b80f6443 JA |
15125 | |
15126 | #if STDC_HEADERS | |
15127 | # include <stdlib.h> | |
15128 | #endif | |
15129 | #if HAVE_INTTYPES_H | |
15130 | # include <inttypes.h> | |
15131 | #endif | |
15132 | ||
15133 | int | |
15134 | main () | |
15135 | { | |
15136 | return !strtoumax; | |
15137 | ; | |
15138 | return 0; | |
15139 | } | |
15140 | _ACEOF | |
15141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15142 | if { (ac_try="$ac_link" |
15143 | case "(($ac_try" in | |
15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15145 | *) ac_try_echo=$ac_try;; | |
15146 | esac | |
15147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15148 | $as_echo "$ac_try_echo") >&5 | |
15149 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15150 | ac_status=$? |
0628567a JA |
15151 | grep -v '^ *+' conftest.er1 >conftest.err |
15152 | rm -f conftest.er1 | |
15153 | cat conftest.err >&5 | |
3185942a JA |
15154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15155 | (exit $ac_status); } && { | |
15156 | test -z "$ac_c_werror_flag" || | |
15157 | test ! -s conftest.err | |
15158 | } && test -s conftest$ac_exeext && { | |
15159 | test "$cross_compiling" = yes || | |
15160 | $as_test_x conftest$ac_exeext | |
15161 | }; then | |
b80f6443 JA |
15162 | bash_cv_decl_strtoumax=yes |
15163 | else | |
3185942a | 15164 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15165 | sed 's/^/| /' conftest.$ac_ext >&5 |
15166 | ||
3185942a | 15167 | bash_cv_decl_strtoumax=no |
b80f6443 | 15168 | fi |
3185942a JA |
15169 | |
15170 | rm -rf conftest.dSYM | |
15171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15172 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15173 | fi |
3185942a JA |
15174 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5 |
15175 | $as_echo "$bash_cv_decl_strtoumax" >&6; } | |
b80f6443 JA |
15176 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15177 | if test $bash_cv_decl_strtoumax = yes; then | |
15178 | cat >>confdefs.h <<_ACEOF | |
15179 | #define $bash_tr_func 1 | |
15180 | _ACEOF | |
15181 | ||
15182 | else | |
15183 | cat >>confdefs.h <<_ACEOF | |
15184 | #define $bash_tr_func 0 | |
15185 | _ACEOF | |
15186 | ||
15187 | fi | |
15188 | ||
15189 | ||
15190 | ||
15191 | ||
0628567a | 15192 | |
3185942a JA |
15193 | |
15194 | for ac_header in $ac_header_list | |
b80f6443 | 15195 | do |
3185942a JA |
15196 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15198 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15199 | $as_echo_n "checking for $ac_header... " >&6; } | |
15200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15201 | $as_echo_n "(cached) " >&6 | |
15202 | fi | |
15203 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15204 | $as_echo "$as_val"'` | |
15205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15206 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15207 | else |
15208 | # Is the header compilable? | |
3185942a JA |
15209 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15210 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 15211 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15212 | /* confdefs.h. */ |
15213 | _ACEOF | |
15214 | cat confdefs.h >>conftest.$ac_ext | |
15215 | cat >>conftest.$ac_ext <<_ACEOF | |
15216 | /* end confdefs.h. */ | |
b80f6443 JA |
15217 | $ac_includes_default |
15218 | #include <$ac_header> | |
15219 | _ACEOF | |
15220 | rm -f conftest.$ac_objext | |
3185942a JA |
15221 | if { (ac_try="$ac_compile" |
15222 | case "(($ac_try" in | |
15223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15224 | *) ac_try_echo=$ac_try;; | |
15225 | esac | |
15226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15227 | $as_echo "$ac_try_echo") >&5 | |
15228 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 15229 | ac_status=$? |
0628567a JA |
15230 | grep -v '^ *+' conftest.er1 >conftest.err |
15231 | rm -f conftest.er1 | |
15232 | cat conftest.err >&5 | |
3185942a JA |
15233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15234 | (exit $ac_status); } && { | |
15235 | test -z "$ac_c_werror_flag" || | |
15236 | test ! -s conftest.err | |
15237 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
15238 | ac_header_compiler=yes |
15239 | else | |
3185942a | 15240 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15241 | sed 's/^/| /' conftest.$ac_ext >&5 |
15242 | ||
3185942a | 15243 | ac_header_compiler=no |
b80f6443 | 15244 | fi |
3185942a JA |
15245 | |
15246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15247 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15248 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
15249 | |
15250 | # Is the header present? | |
3185942a JA |
15251 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15252 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 15253 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15254 | /* confdefs.h. */ |
15255 | _ACEOF | |
15256 | cat confdefs.h >>conftest.$ac_ext | |
15257 | cat >>conftest.$ac_ext <<_ACEOF | |
15258 | /* end confdefs.h. */ | |
b80f6443 JA |
15259 | #include <$ac_header> |
15260 | _ACEOF | |
3185942a JA |
15261 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15262 | case "(($ac_try" in | |
15263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15264 | *) ac_try_echo=$ac_try;; | |
15265 | esac | |
15266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15267 | $as_echo "$ac_try_echo") >&5 | |
15268 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 15269 | ac_status=$? |
0628567a | 15270 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
15271 | rm -f conftest.er1 |
15272 | cat conftest.err >&5 | |
3185942a JA |
15273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15274 | (exit $ac_status); } >/dev/null && { | |
15275 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15276 | test ! -s conftest.err | |
15277 | }; then | |
b80f6443 JA |
15278 | ac_header_preproc=yes |
15279 | else | |
3185942a | 15280 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15281 | sed 's/^/| /' conftest.$ac_ext >&5 |
15282 | ||
b80f6443 JA |
15283 | ac_header_preproc=no |
15284 | fi | |
3185942a | 15285 | |
b80f6443 | 15286 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
15287 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15288 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
15289 | |
15290 | # So? What about this header? | |
0628567a JA |
15291 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15292 | yes:no: ) | |
3185942a JA |
15293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15294 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15296 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
15297 | ac_header_preproc=yes |
15298 | ;; | |
15299 | no:yes:* ) | |
3185942a JA |
15300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15301 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15303 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15305 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15307 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15309 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15311 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15312 | ( cat <<\_ASBOX | |
0628567a JA |
15313 | ## ------------------------------- ## |
15314 | ## Report this to bug-bash@gnu.org ## | |
15315 | ## ------------------------------- ## | |
15316 | _ASBOX | |
3185942a | 15317 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 15318 | ;; |
b80f6443 | 15319 | esac |
3185942a JA |
15320 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15321 | $as_echo_n "checking for $ac_header... " >&6; } | |
15322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15323 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 15324 | else |
0628567a | 15325 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 15326 | fi |
3185942a JA |
15327 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15328 | $as_echo "$as_val"'` | |
15329 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15330 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15331 | |
15332 | fi | |
3185942a JA |
15333 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15334 | $as_echo "$as_val"'` | |
15335 | if test "x$as_val" = x""yes; then | |
b80f6443 | 15336 | cat >>confdefs.h <<_ACEOF |
3185942a | 15337 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
15338 | _ACEOF |
15339 | ||
15340 | fi | |
15341 | ||
15342 | done | |
15343 | ||
15344 | ||
3185942a JA |
15345 | |
15346 | ||
15347 | ||
15348 | ||
15349 | ||
15350 | ||
15351 | ||
15352 | for ac_func in $ac_func_list | |
b80f6443 | 15353 | do |
3185942a JA |
15354 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15355 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15356 | $as_echo_n "checking for $ac_func... " >&6; } | |
15357 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
15358 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
15359 | else |
15360 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15361 | /* confdefs.h. */ |
15362 | _ACEOF | |
15363 | cat confdefs.h >>conftest.$ac_ext | |
15364 | cat >>conftest.$ac_ext <<_ACEOF | |
15365 | /* end confdefs.h. */ | |
15366 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15368 | #define $ac_func innocuous_$ac_func | |
15369 | ||
b80f6443 | 15370 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
15371 | which can conflict with char $ac_func (); below. |
15372 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15373 | <limits.h> exists even on freestanding compilers. */ | |
15374 | ||
15375 | #ifdef __STDC__ | |
15376 | # include <limits.h> | |
15377 | #else | |
15378 | # include <assert.h> | |
15379 | #endif | |
15380 | ||
15381 | #undef $ac_func | |
15382 | ||
3185942a JA |
15383 | /* Override any GCC internal prototype to avoid an error. |
15384 | Use char because int might match the return type of a GCC | |
15385 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
15386 | #ifdef __cplusplus |
15387 | extern "C" | |
b80f6443 | 15388 | #endif |
b80f6443 JA |
15389 | char $ac_func (); |
15390 | /* The GNU C library defines this for functions which it implements | |
15391 | to always fail with ENOSYS. Some functions are actually named | |
15392 | something starting with __ and the normal name is an alias. */ | |
3185942a | 15393 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 15394 | choke me |
b80f6443 JA |
15395 | #endif |
15396 | ||
0628567a JA |
15397 | int |
15398 | main () | |
15399 | { | |
3185942a | 15400 | return $ac_func (); |
b80f6443 JA |
15401 | ; |
15402 | return 0; | |
15403 | } | |
15404 | _ACEOF | |
15405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15406 | if { (ac_try="$ac_link" |
15407 | case "(($ac_try" in | |
15408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15409 | *) ac_try_echo=$ac_try;; | |
15410 | esac | |
15411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15412 | $as_echo "$ac_try_echo") >&5 | |
15413 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15414 | ac_status=$? |
0628567a JA |
15415 | grep -v '^ *+' conftest.er1 >conftest.err |
15416 | rm -f conftest.er1 | |
15417 | cat conftest.err >&5 | |
3185942a JA |
15418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15419 | (exit $ac_status); } && { | |
15420 | test -z "$ac_c_werror_flag" || | |
15421 | test ! -s conftest.err | |
15422 | } && test -s conftest$ac_exeext && { | |
15423 | test "$cross_compiling" = yes || | |
15424 | $as_test_x conftest$ac_exeext | |
15425 | }; then | |
b80f6443 JA |
15426 | eval "$as_ac_var=yes" |
15427 | else | |
3185942a | 15428 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15429 | sed 's/^/| /' conftest.$ac_ext >&5 |
15430 | ||
3185942a | 15431 | eval "$as_ac_var=no" |
b80f6443 | 15432 | fi |
3185942a JA |
15433 | |
15434 | rm -rf conftest.dSYM | |
15435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15436 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15437 | fi |
3185942a JA |
15438 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15439 | $as_echo "$as_val"'` | |
15440 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15441 | $as_echo "$ac_res" >&6; } | |
15442 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15443 | $as_echo "$as_val"'` | |
15444 | if test "x$as_val" = x""yes; then | |
b80f6443 | 15445 | cat >>confdefs.h <<_ACEOF |
3185942a | 15446 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
15447 | _ACEOF |
15448 | ||
15449 | fi | |
15450 | done | |
15451 | ||
3185942a JA |
15452 | |
15453 | ||
15454 | ||
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | ||
15460 | ||
15461 | ||
15462 | ||
15463 | ||
15464 | ||
15465 | ||
15466 | ||
15467 | ||
15468 | { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
15469 | $as_echo_n "checking for working mktime... " >&6; } | |
b80f6443 | 15470 | if test "${ac_cv_func_working_mktime+set}" = set; then |
3185942a | 15471 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15472 | else |
15473 | if test "$cross_compiling" = yes; then | |
15474 | ac_cv_func_working_mktime=no | |
15475 | else | |
15476 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15477 | /* confdefs.h. */ |
15478 | _ACEOF | |
15479 | cat confdefs.h >>conftest.$ac_ext | |
15480 | cat >>conftest.$ac_ext <<_ACEOF | |
15481 | /* end confdefs.h. */ | |
b80f6443 | 15482 | /* Test program from Paul Eggert and Tony Leneis. */ |
3185942a | 15483 | #ifdef TIME_WITH_SYS_TIME |
b80f6443 JA |
15484 | # include <sys/time.h> |
15485 | # include <time.h> | |
15486 | #else | |
3185942a | 15487 | # ifdef HAVE_SYS_TIME_H |
b80f6443 JA |
15488 | # include <sys/time.h> |
15489 | # else | |
15490 | # include <time.h> | |
15491 | # endif | |
15492 | #endif | |
15493 | ||
3185942a JA |
15494 | #include <limits.h> |
15495 | #include <stdlib.h> | |
0628567a | 15496 | |
3185942a | 15497 | #ifdef HAVE_UNISTD_H |
b80f6443 JA |
15498 | # include <unistd.h> |
15499 | #endif | |
15500 | ||
3185942a | 15501 | #ifndef HAVE_ALARM |
b80f6443 JA |
15502 | # define alarm(X) /* empty */ |
15503 | #endif | |
7117c2d2 JA |
15504 | |
15505 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
15506 | #undef putenv | |
15507 | ||
b80f6443 | 15508 | static time_t time_t_max; |
0628567a | 15509 | static time_t time_t_min; |
b80f6443 JA |
15510 | |
15511 | /* Values we'll use to set the TZ environment variable. */ | |
0628567a JA |
15512 | static char *tz_strings[] = { |
15513 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
b80f6443 JA |
15514 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
15515 | }; | |
15516 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
15517 | ||
3185942a | 15518 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
b80f6443 | 15519 | Based on a problem report from Andreas Jaeger. */ |
3185942a | 15520 | static int |
b80f6443 JA |
15521 | spring_forward_gap () |
15522 | { | |
15523 | /* glibc (up to about 1998-10-07) failed this test. */ | |
15524 | struct tm tm; | |
15525 | ||
15526 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15527 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15528 | on systems that don't support the Olson extension, or don't have the | |
15529 | full zoneinfo tables installed. */ | |
15530 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15531 | ||
15532 | tm.tm_year = 98; | |
15533 | tm.tm_mon = 3; | |
15534 | tm.tm_mday = 5; | |
15535 | tm.tm_hour = 2; | |
15536 | tm.tm_min = 0; | |
15537 | tm.tm_sec = 0; | |
15538 | tm.tm_isdst = -1; | |
3185942a | 15539 | return mktime (&tm) != (time_t) -1; |
b80f6443 JA |
15540 | } |
15541 | ||
3185942a | 15542 | static int |
0628567a | 15543 | mktime_test1 (now) |
b80f6443 JA |
15544 | time_t now; |
15545 | { | |
15546 | struct tm *lt; | |
3185942a | 15547 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
0628567a JA |
15548 | } |
15549 | ||
3185942a | 15550 | static int |
0628567a JA |
15551 | mktime_test (now) |
15552 | time_t now; | |
15553 | { | |
3185942a JA |
15554 | return (mktime_test1 (now) |
15555 | && mktime_test1 ((time_t) (time_t_max - now)) | |
15556 | && mktime_test1 ((time_t) (time_t_min + now))); | |
b80f6443 JA |
15557 | } |
15558 | ||
3185942a | 15559 | static int |
b80f6443 JA |
15560 | irix_6_4_bug () |
15561 | { | |
15562 | /* Based on code from Ariel Faigon. */ | |
15563 | struct tm tm; | |
15564 | tm.tm_year = 96; | |
15565 | tm.tm_mon = 3; | |
15566 | tm.tm_mday = 0; | |
15567 | tm.tm_hour = 0; | |
15568 | tm.tm_min = 0; | |
15569 | tm.tm_sec = 0; | |
15570 | tm.tm_isdst = -1; | |
15571 | mktime (&tm); | |
3185942a | 15572 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
b80f6443 JA |
15573 | } |
15574 | ||
3185942a | 15575 | static int |
b80f6443 JA |
15576 | bigtime_test (j) |
15577 | int j; | |
15578 | { | |
15579 | struct tm tm; | |
15580 | time_t now; | |
15581 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
15582 | now = mktime (&tm); | |
15583 | if (now != (time_t) -1) | |
15584 | { | |
15585 | struct tm *lt = localtime (&now); | |
15586 | if (! (lt | |
15587 | && lt->tm_year == tm.tm_year | |
15588 | && lt->tm_mon == tm.tm_mon | |
15589 | && lt->tm_mday == tm.tm_mday | |
15590 | && lt->tm_hour == tm.tm_hour | |
15591 | && lt->tm_min == tm.tm_min | |
15592 | && lt->tm_sec == tm.tm_sec | |
15593 | && lt->tm_yday == tm.tm_yday | |
15594 | && lt->tm_wday == tm.tm_wday | |
15595 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
15596 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
3185942a | 15597 | return 0; |
b80f6443 | 15598 | } |
3185942a | 15599 | return 1; |
b80f6443 JA |
15600 | } |
15601 | ||
3185942a JA |
15602 | static int |
15603 | year_2050_test () | |
b80f6443 | 15604 | { |
3185942a JA |
15605 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, |
15606 | ignoring leap seconds. */ | |
15607 | unsigned long int answer = 2527315200UL; | |
b80f6443 | 15608 | |
3185942a JA |
15609 | struct tm tm; |
15610 | time_t t; | |
15611 | tm.tm_year = 2050 - 1900; | |
15612 | tm.tm_mon = 2 - 1; | |
15613 | tm.tm_mday = 1; | |
15614 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
15615 | tm.tm_isdst = -1; | |
b80f6443 | 15616 | |
3185942a JA |
15617 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
15618 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15619 | on systems that don't support the Olson extension, or don't have the | |
15620 | full zoneinfo tables installed. */ | |
15621 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15622 | ||
15623 | t = mktime (&tm); | |
15624 | ||
15625 | /* Check that the result is either a failure, or close enough | |
15626 | to the correct answer that we can assume the discrepancy is | |
15627 | due to leap seconds. */ | |
15628 | return (t == (time_t) -1 | |
15629 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
15630 | } | |
15631 | ||
15632 | int | |
15633 | main () | |
15634 | { | |
15635 | time_t t, delta; | |
15636 | int i, j; | |
15637 | ||
15638 | /* This test makes some buggy mktime implementations loop. | |
15639 | Give up after 60 seconds; a mktime slower than that | |
15640 | isn't worth using anyway. */ | |
15641 | alarm (60); | |
15642 | ||
15643 | for (;;) | |
15644 | { | |
15645 | t = (time_t_max << 1) + 1; | |
15646 | if (t <= time_t_max) | |
15647 | break; | |
15648 | time_t_max = t; | |
15649 | } | |
15650 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
15651 | ||
15652 | delta = time_t_max / 997; /* a suitable prime number */ | |
15653 | for (i = 0; i < N_STRINGS; i++) | |
b80f6443 JA |
15654 | { |
15655 | if (tz_strings[i]) | |
15656 | putenv (tz_strings[i]); | |
15657 | ||
15658 | for (t = 0; t <= time_t_max - delta; t += delta) | |
3185942a JA |
15659 | if (! mktime_test (t)) |
15660 | return 1; | |
15661 | if (! (mktime_test ((time_t) 1) | |
15662 | && mktime_test ((time_t) (60 * 60)) | |
15663 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
15664 | return 1; | |
15665 | ||
15666 | for (j = 1; ; j <<= 1) | |
15667 | if (! bigtime_test (j)) | |
15668 | return 1; | |
15669 | else if (INT_MAX / 2 < j) | |
15670 | break; | |
15671 | if (! bigtime_test (INT_MAX)) | |
15672 | return 1; | |
b80f6443 | 15673 | } |
3185942a | 15674 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
b80f6443 JA |
15675 | } |
15676 | _ACEOF | |
15677 | rm -f conftest$ac_exeext | |
3185942a JA |
15678 | if { (ac_try="$ac_link" |
15679 | case "(($ac_try" in | |
15680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15681 | *) ac_try_echo=$ac_try;; | |
15682 | esac | |
15683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15684 | $as_echo "$ac_try_echo") >&5 | |
15685 | (eval "$ac_link") 2>&5 | |
b80f6443 | 15686 | ac_status=$? |
3185942a | 15687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 15688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
15689 | { (case "(($ac_try" in |
15690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15691 | *) ac_try_echo=$ac_try;; | |
15692 | esac | |
15693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15694 | $as_echo "$ac_try_echo") >&5 | |
15695 | (eval "$ac_try") 2>&5 | |
b80f6443 | 15696 | ac_status=$? |
3185942a | 15697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
15698 | (exit $ac_status); }; }; then |
15699 | ac_cv_func_working_mktime=yes | |
15700 | else | |
3185942a JA |
15701 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
15702 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
15703 | sed 's/^/| /' conftest.$ac_ext >&5 |
15704 | ||
b80f6443 JA |
15705 | ( exit $ac_status ) |
15706 | ac_cv_func_working_mktime=no | |
15707 | fi | |
3185942a JA |
15708 | rm -rf conftest.dSYM |
15709 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 15710 | fi |
3185942a JA |
15711 | |
15712 | ||
b80f6443 | 15713 | fi |
3185942a JA |
15714 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
15715 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
b80f6443 | 15716 | if test $ac_cv_func_working_mktime = no; then |
3185942a | 15717 | case " $LIBOBJS " in |
0628567a | 15718 | *" mktime.$ac_objext "* ) ;; |
3185942a JA |
15719 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
15720 | ;; | |
0628567a JA |
15721 | esac |
15722 | ||
b80f6443 JA |
15723 | fi |
15724 | ||
15725 | ||
15726 | ||
15727 | ||
15728 | ||
15729 | ||
15730 | ||
15731 | ||
15732 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h | |
15733 | do | |
3185942a JA |
15734 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15736 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15737 | $as_echo_n "checking for $ac_header... " >&6; } | |
15738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15739 | $as_echo_n "(cached) " >&6 | |
15740 | fi | |
15741 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15742 | $as_echo "$as_val"'` | |
15743 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15744 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15745 | else |
15746 | # Is the header compilable? | |
3185942a JA |
15747 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15748 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 15749 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15750 | /* confdefs.h. */ |
15751 | _ACEOF | |
15752 | cat confdefs.h >>conftest.$ac_ext | |
15753 | cat >>conftest.$ac_ext <<_ACEOF | |
15754 | /* end confdefs.h. */ | |
b80f6443 JA |
15755 | $ac_includes_default |
15756 | #include <$ac_header> | |
15757 | _ACEOF | |
15758 | rm -f conftest.$ac_objext | |
3185942a JA |
15759 | if { (ac_try="$ac_compile" |
15760 | case "(($ac_try" in | |
15761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15762 | *) ac_try_echo=$ac_try;; | |
15763 | esac | |
15764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15765 | $as_echo "$ac_try_echo") >&5 | |
15766 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 15767 | ac_status=$? |
0628567a JA |
15768 | grep -v '^ *+' conftest.er1 >conftest.err |
15769 | rm -f conftest.er1 | |
15770 | cat conftest.err >&5 | |
3185942a JA |
15771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15772 | (exit $ac_status); } && { | |
15773 | test -z "$ac_c_werror_flag" || | |
15774 | test ! -s conftest.err | |
15775 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
15776 | ac_header_compiler=yes |
15777 | else | |
3185942a | 15778 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15779 | sed 's/^/| /' conftest.$ac_ext >&5 |
15780 | ||
3185942a | 15781 | ac_header_compiler=no |
b80f6443 | 15782 | fi |
3185942a JA |
15783 | |
15784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15785 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15786 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
15787 | |
15788 | # Is the header present? | |
3185942a JA |
15789 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15790 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 15791 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15792 | /* confdefs.h. */ |
15793 | _ACEOF | |
15794 | cat confdefs.h >>conftest.$ac_ext | |
15795 | cat >>conftest.$ac_ext <<_ACEOF | |
15796 | /* end confdefs.h. */ | |
b80f6443 JA |
15797 | #include <$ac_header> |
15798 | _ACEOF | |
3185942a JA |
15799 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15800 | case "(($ac_try" in | |
15801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15802 | *) ac_try_echo=$ac_try;; | |
15803 | esac | |
15804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15805 | $as_echo "$ac_try_echo") >&5 | |
15806 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 15807 | ac_status=$? |
0628567a | 15808 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
15809 | rm -f conftest.er1 |
15810 | cat conftest.err >&5 | |
3185942a JA |
15811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15812 | (exit $ac_status); } >/dev/null && { | |
15813 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15814 | test ! -s conftest.err | |
15815 | }; then | |
b80f6443 JA |
15816 | ac_header_preproc=yes |
15817 | else | |
3185942a | 15818 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15819 | sed 's/^/| /' conftest.$ac_ext >&5 |
15820 | ||
b80f6443 JA |
15821 | ac_header_preproc=no |
15822 | fi | |
3185942a | 15823 | |
b80f6443 | 15824 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
15825 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15826 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
15827 | |
15828 | # So? What about this header? | |
0628567a JA |
15829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15830 | yes:no: ) | |
3185942a JA |
15831 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15832 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15834 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
15835 | ac_header_preproc=yes |
15836 | ;; | |
15837 | no:yes:* ) | |
3185942a JA |
15838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15839 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15841 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15843 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15844 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15845 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15847 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15849 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15850 | ( cat <<\_ASBOX | |
0628567a JA |
15851 | ## ------------------------------- ## |
15852 | ## Report this to bug-bash@gnu.org ## | |
15853 | ## ------------------------------- ## | |
15854 | _ASBOX | |
3185942a | 15855 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 15856 | ;; |
b80f6443 | 15857 | esac |
3185942a JA |
15858 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15859 | $as_echo_n "checking for $ac_header... " >&6; } | |
15860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15861 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 15862 | else |
0628567a | 15863 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 15864 | fi |
3185942a JA |
15865 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15866 | $as_echo "$as_val"'` | |
15867 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15868 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15869 | |
15870 | fi | |
3185942a JA |
15871 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15872 | $as_echo "$as_val"'` | |
15873 | if test "x$as_val" = x""yes; then | |
b80f6443 | 15874 | cat >>confdefs.h <<_ACEOF |
3185942a | 15875 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
15876 | _ACEOF |
15877 | ||
15878 | fi | |
15879 | ||
15880 | done | |
15881 | ||
15882 | ||
15883 | ||
15884 | ||
15885 | for ac_header in stdlib.h unistd.h | |
15886 | do | |
3185942a JA |
15887 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15889 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15890 | $as_echo_n "checking for $ac_header... " >&6; } | |
15891 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15892 | $as_echo_n "(cached) " >&6 | |
15893 | fi | |
15894 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15895 | $as_echo "$as_val"'` | |
15896 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15897 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15898 | else |
15899 | # Is the header compilable? | |
3185942a JA |
15900 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15901 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 15902 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15903 | /* confdefs.h. */ |
15904 | _ACEOF | |
15905 | cat confdefs.h >>conftest.$ac_ext | |
15906 | cat >>conftest.$ac_ext <<_ACEOF | |
15907 | /* end confdefs.h. */ | |
b80f6443 JA |
15908 | $ac_includes_default |
15909 | #include <$ac_header> | |
15910 | _ACEOF | |
15911 | rm -f conftest.$ac_objext | |
3185942a JA |
15912 | if { (ac_try="$ac_compile" |
15913 | case "(($ac_try" in | |
15914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15915 | *) ac_try_echo=$ac_try;; | |
15916 | esac | |
15917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15918 | $as_echo "$ac_try_echo") >&5 | |
15919 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 15920 | ac_status=$? |
0628567a JA |
15921 | grep -v '^ *+' conftest.er1 >conftest.err |
15922 | rm -f conftest.er1 | |
15923 | cat conftest.err >&5 | |
3185942a JA |
15924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15925 | (exit $ac_status); } && { | |
15926 | test -z "$ac_c_werror_flag" || | |
15927 | test ! -s conftest.err | |
15928 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
15929 | ac_header_compiler=yes |
15930 | else | |
3185942a | 15931 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15932 | sed 's/^/| /' conftest.$ac_ext >&5 |
15933 | ||
3185942a | 15934 | ac_header_compiler=no |
b80f6443 | 15935 | fi |
3185942a JA |
15936 | |
15937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15938 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15939 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
15940 | |
15941 | # Is the header present? | |
3185942a JA |
15942 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15943 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 15944 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15945 | /* confdefs.h. */ |
15946 | _ACEOF | |
15947 | cat confdefs.h >>conftest.$ac_ext | |
15948 | cat >>conftest.$ac_ext <<_ACEOF | |
15949 | /* end confdefs.h. */ | |
b80f6443 JA |
15950 | #include <$ac_header> |
15951 | _ACEOF | |
3185942a JA |
15952 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15953 | case "(($ac_try" in | |
15954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15955 | *) ac_try_echo=$ac_try;; | |
15956 | esac | |
15957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15958 | $as_echo "$ac_try_echo") >&5 | |
15959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 15960 | ac_status=$? |
0628567a | 15961 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
15962 | rm -f conftest.er1 |
15963 | cat conftest.err >&5 | |
3185942a JA |
15964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15965 | (exit $ac_status); } >/dev/null && { | |
15966 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15967 | test ! -s conftest.err | |
15968 | }; then | |
b80f6443 JA |
15969 | ac_header_preproc=yes |
15970 | else | |
3185942a | 15971 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15972 | sed 's/^/| /' conftest.$ac_ext >&5 |
15973 | ||
b80f6443 JA |
15974 | ac_header_preproc=no |
15975 | fi | |
3185942a | 15976 | |
b80f6443 | 15977 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
15978 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15979 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
15980 | |
15981 | # So? What about this header? | |
0628567a JA |
15982 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15983 | yes:no: ) | |
3185942a JA |
15984 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15985 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15986 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15987 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
15988 | ac_header_preproc=yes |
15989 | ;; | |
15990 | no:yes:* ) | |
3185942a JA |
15991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15992 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15994 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15996 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15998 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15999 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16000 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16001 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16002 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16003 | ( cat <<\_ASBOX | |
0628567a JA |
16004 | ## ------------------------------- ## |
16005 | ## Report this to bug-bash@gnu.org ## | |
16006 | ## ------------------------------- ## | |
16007 | _ASBOX | |
3185942a | 16008 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16009 | ;; |
b80f6443 | 16010 | esac |
3185942a JA |
16011 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16012 | $as_echo_n "checking for $ac_header... " >&6; } | |
16013 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16014 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16015 | else |
0628567a | 16016 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 16017 | fi |
3185942a JA |
16018 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16019 | $as_echo "$as_val"'` | |
16020 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16021 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16022 | |
16023 | fi | |
3185942a JA |
16024 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16025 | $as_echo "$as_val"'` | |
16026 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16027 | cat >>confdefs.h <<_ACEOF |
3185942a | 16028 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16029 | _ACEOF |
16030 | ||
16031 | fi | |
16032 | ||
16033 | done | |
16034 | ||
16035 | ||
16036 | for ac_func in getpagesize | |
16037 | do | |
3185942a JA |
16038 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16039 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16040 | $as_echo_n "checking for $ac_func... " >&6; } | |
16041 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16042 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
16043 | else |
16044 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16045 | /* confdefs.h. */ |
16046 | _ACEOF | |
16047 | cat confdefs.h >>conftest.$ac_ext | |
16048 | cat >>conftest.$ac_ext <<_ACEOF | |
16049 | /* end confdefs.h. */ | |
16050 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16051 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16052 | #define $ac_func innocuous_$ac_func | |
16053 | ||
16054 | /* System header to define __stub macros and hopefully few prototypes, | |
16055 | which can conflict with char $ac_func (); below. | |
16056 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16057 | <limits.h> exists even on freestanding compilers. */ | |
16058 | ||
16059 | #ifdef __STDC__ | |
16060 | # include <limits.h> | |
16061 | #else | |
16062 | # include <assert.h> | |
16063 | #endif | |
16064 | ||
16065 | #undef $ac_func | |
16066 | ||
3185942a JA |
16067 | /* Override any GCC internal prototype to avoid an error. |
16068 | Use char because int might match the return type of a GCC | |
16069 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
16070 | #ifdef __cplusplus |
16071 | extern "C" | |
b80f6443 | 16072 | #endif |
b80f6443 JA |
16073 | char $ac_func (); |
16074 | /* The GNU C library defines this for functions which it implements | |
16075 | to always fail with ENOSYS. Some functions are actually named | |
16076 | something starting with __ and the normal name is an alias. */ | |
3185942a | 16077 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 16078 | choke me |
b80f6443 JA |
16079 | #endif |
16080 | ||
0628567a JA |
16081 | int |
16082 | main () | |
16083 | { | |
3185942a | 16084 | return $ac_func (); |
b80f6443 JA |
16085 | ; |
16086 | return 0; | |
16087 | } | |
16088 | _ACEOF | |
16089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
16090 | if { (ac_try="$ac_link" |
16091 | case "(($ac_try" in | |
16092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16093 | *) ac_try_echo=$ac_try;; | |
16094 | esac | |
16095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16096 | $as_echo "$ac_try_echo") >&5 | |
16097 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 16098 | ac_status=$? |
0628567a JA |
16099 | grep -v '^ *+' conftest.er1 >conftest.err |
16100 | rm -f conftest.er1 | |
16101 | cat conftest.err >&5 | |
3185942a JA |
16102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16103 | (exit $ac_status); } && { | |
16104 | test -z "$ac_c_werror_flag" || | |
16105 | test ! -s conftest.err | |
16106 | } && test -s conftest$ac_exeext && { | |
16107 | test "$cross_compiling" = yes || | |
16108 | $as_test_x conftest$ac_exeext | |
16109 | }; then | |
b80f6443 JA |
16110 | eval "$as_ac_var=yes" |
16111 | else | |
3185942a | 16112 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16113 | sed 's/^/| /' conftest.$ac_ext >&5 |
16114 | ||
3185942a | 16115 | eval "$as_ac_var=no" |
b80f6443 | 16116 | fi |
3185942a JA |
16117 | |
16118 | rm -rf conftest.dSYM | |
16119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 16120 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 16121 | fi |
3185942a JA |
16122 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16123 | $as_echo "$as_val"'` | |
16124 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16125 | $as_echo "$ac_res" >&6; } | |
16126 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16127 | $as_echo "$as_val"'` | |
16128 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16129 | cat >>confdefs.h <<_ACEOF |
3185942a | 16130 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
16131 | _ACEOF |
16132 | ||
16133 | fi | |
16134 | done | |
16135 | ||
3185942a JA |
16136 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
16137 | $as_echo_n "checking for working mmap... " >&6; } | |
b80f6443 | 16138 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
3185942a | 16139 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
16140 | else |
16141 | if test "$cross_compiling" = yes; then | |
16142 | ac_cv_func_mmap_fixed_mapped=no | |
16143 | else | |
16144 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16145 | /* confdefs.h. */ |
16146 | _ACEOF | |
16147 | cat confdefs.h >>conftest.$ac_ext | |
16148 | cat >>conftest.$ac_ext <<_ACEOF | |
16149 | /* end confdefs.h. */ | |
b80f6443 JA |
16150 | $ac_includes_default |
16151 | /* malloc might have been renamed as rpl_malloc. */ | |
16152 | #undef malloc | |
16153 | ||
16154 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16155 | Here is a matrix of mmap possibilities: | |
16156 | mmap private not fixed | |
16157 | mmap private fixed at somewhere currently unmapped | |
16158 | mmap private fixed at somewhere already mapped | |
16159 | mmap shared not fixed | |
16160 | mmap shared fixed at somewhere currently unmapped | |
16161 | mmap shared fixed at somewhere already mapped | |
16162 | For private mappings, we should verify that changes cannot be read() | |
16163 | back from the file, nor mmap's back from the file at a different | |
16164 | address. (There have been systems where private was not correctly | |
16165 | implemented like the infamous i386 svr4.0, and systems where the | |
16166 | VM page cache was not coherent with the file system buffer cache | |
16167 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16168 | For shared mappings, we should conversely verify that changes get | |
16169 | propagated back to all the places they're supposed to be. | |
16170 | ||
16171 | Grep wants private fixed already mapped. | |
16172 | The main things grep needs to know about mmap are: | |
16173 | * does it exist and is it safe to write into the mmap'd area | |
16174 | * how to use it (BSD variants) */ | |
16175 | ||
16176 | #include <fcntl.h> | |
16177 | #include <sys/mman.h> | |
16178 | ||
3185942a | 16179 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b80f6443 JA |
16180 | char *malloc (); |
16181 | #endif | |
16182 | ||
16183 | /* This mess was copied from the GNU getpagesize.h. */ | |
3185942a | 16184 | #ifndef HAVE_GETPAGESIZE |
b80f6443 | 16185 | /* Assume that all systems that can run configure have sys/param.h. */ |
3185942a | 16186 | # ifndef HAVE_SYS_PARAM_H |
b80f6443 JA |
16187 | # define HAVE_SYS_PARAM_H 1 |
16188 | # endif | |
16189 | ||
16190 | # ifdef _SC_PAGESIZE | |
16191 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16192 | # else /* no _SC_PAGESIZE */ | |
3185942a | 16193 | # ifdef HAVE_SYS_PARAM_H |
b80f6443 JA |
16194 | # include <sys/param.h> |
16195 | # ifdef EXEC_PAGESIZE | |
16196 | # define getpagesize() EXEC_PAGESIZE | |
16197 | # else /* no EXEC_PAGESIZE */ | |
16198 | # ifdef NBPG | |
16199 | # define getpagesize() NBPG * CLSIZE | |
16200 | # ifndef CLSIZE | |
16201 | # define CLSIZE 1 | |
16202 | # endif /* no CLSIZE */ | |
16203 | # else /* no NBPG */ | |
16204 | # ifdef NBPC | |
16205 | # define getpagesize() NBPC | |
16206 | # else /* no NBPC */ | |
16207 | # ifdef PAGESIZE | |
16208 | # define getpagesize() PAGESIZE | |
16209 | # endif /* PAGESIZE */ | |
16210 | # endif /* no NBPC */ | |
16211 | # endif /* no NBPG */ | |
16212 | # endif /* no EXEC_PAGESIZE */ | |
16213 | # else /* no HAVE_SYS_PARAM_H */ | |
16214 | # define getpagesize() 8192 /* punt totally */ | |
16215 | # endif /* no HAVE_SYS_PARAM_H */ | |
16216 | # endif /* no _SC_PAGESIZE */ | |
16217 | ||
16218 | #endif /* no HAVE_GETPAGESIZE */ | |
16219 | ||
16220 | int | |
16221 | main () | |
16222 | { | |
16223 | char *data, *data2, *data3; | |
16224 | int i, pagesize; | |
16225 | int fd; | |
16226 | ||
16227 | pagesize = getpagesize (); | |
16228 | ||
16229 | /* First, make a file with some known garbage in it. */ | |
16230 | data = (char *) malloc (pagesize); | |
16231 | if (!data) | |
3185942a | 16232 | return 1; |
b80f6443 JA |
16233 | for (i = 0; i < pagesize; ++i) |
16234 | *(data + i) = rand (); | |
16235 | umask (0); | |
16236 | fd = creat ("conftest.mmap", 0600); | |
16237 | if (fd < 0) | |
3185942a | 16238 | return 1; |
b80f6443 | 16239 | if (write (fd, data, pagesize) != pagesize) |
3185942a | 16240 | return 1; |
b80f6443 JA |
16241 | close (fd); |
16242 | ||
16243 | /* Next, try to mmap the file at a fixed address which already has | |
16244 | something else allocated at it. If we can, also make sure that | |
16245 | we see the same garbage. */ | |
16246 | fd = open ("conftest.mmap", O_RDWR); | |
16247 | if (fd < 0) | |
3185942a | 16248 | return 1; |
b80f6443 JA |
16249 | data2 = (char *) malloc (2 * pagesize); |
16250 | if (!data2) | |
3185942a JA |
16251 | return 1; |
16252 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b80f6443 | 16253 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
0628567a | 16254 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
3185942a | 16255 | return 1; |
b80f6443 JA |
16256 | for (i = 0; i < pagesize; ++i) |
16257 | if (*(data + i) != *(data2 + i)) | |
3185942a | 16258 | return 1; |
b80f6443 JA |
16259 | |
16260 | /* Finally, make sure that changes to the mapped area do not | |
16261 | percolate back to the file as seen by read(). (This is a bug on | |
16262 | some variants of i386 svr4.0.) */ | |
16263 | for (i = 0; i < pagesize; ++i) | |
16264 | *(data2 + i) = *(data2 + i) + 1; | |
16265 | data3 = (char *) malloc (pagesize); | |
16266 | if (!data3) | |
3185942a | 16267 | return 1; |
b80f6443 | 16268 | if (read (fd, data3, pagesize) != pagesize) |
3185942a | 16269 | return 1; |
b80f6443 JA |
16270 | for (i = 0; i < pagesize; ++i) |
16271 | if (*(data + i) != *(data3 + i)) | |
3185942a | 16272 | return 1; |
b80f6443 | 16273 | close (fd); |
3185942a | 16274 | return 0; |
b80f6443 JA |
16275 | } |
16276 | _ACEOF | |
16277 | rm -f conftest$ac_exeext | |
3185942a JA |
16278 | if { (ac_try="$ac_link" |
16279 | case "(($ac_try" in | |
16280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16281 | *) ac_try_echo=$ac_try;; | |
16282 | esac | |
16283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16284 | $as_echo "$ac_try_echo") >&5 | |
16285 | (eval "$ac_link") 2>&5 | |
b80f6443 | 16286 | ac_status=$? |
3185942a | 16287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 16288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
16289 | { (case "(($ac_try" in |
16290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16291 | *) ac_try_echo=$ac_try;; | |
16292 | esac | |
16293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16294 | $as_echo "$ac_try_echo") >&5 | |
16295 | (eval "$ac_try") 2>&5 | |
b80f6443 | 16296 | ac_status=$? |
3185942a | 16297 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
16298 | (exit $ac_status); }; }; then |
16299 | ac_cv_func_mmap_fixed_mapped=yes | |
16300 | else | |
3185942a JA |
16301 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
16302 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
16303 | sed 's/^/| /' conftest.$ac_ext >&5 |
16304 | ||
b80f6443 JA |
16305 | ( exit $ac_status ) |
16306 | ac_cv_func_mmap_fixed_mapped=no | |
16307 | fi | |
3185942a JA |
16308 | rm -rf conftest.dSYM |
16309 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 16310 | fi |
3185942a JA |
16311 | |
16312 | ||
b80f6443 | 16313 | fi |
3185942a JA |
16314 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16315 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b80f6443 JA |
16316 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
16317 | ||
16318 | cat >>confdefs.h <<\_ACEOF | |
16319 | #define HAVE_MMAP 1 | |
16320 | _ACEOF | |
16321 | ||
16322 | fi | |
16323 | rm -f conftest.mmap | |
16324 | ||
16325 | ||
16326 | ||
16327 | ||
16328 | ||
16329 | ||
16330 | ||
16331 | ||
16332 | ||
16333 | ||
16334 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ | |
16335 | munmap stpcpy strcspn strdup | |
16336 | do | |
3185942a JA |
16337 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16338 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16339 | $as_echo_n "checking for $ac_func... " >&6; } | |
16340 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16341 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
16342 | else |
16343 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16344 | /* confdefs.h. */ |
16345 | _ACEOF | |
16346 | cat confdefs.h >>conftest.$ac_ext | |
16347 | cat >>conftest.$ac_ext <<_ACEOF | |
16348 | /* end confdefs.h. */ | |
16349 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16351 | #define $ac_func innocuous_$ac_func | |
16352 | ||
b80f6443 | 16353 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
16354 | which can conflict with char $ac_func (); below. |
16355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16356 | <limits.h> exists even on freestanding compilers. */ | |
16357 | ||
16358 | #ifdef __STDC__ | |
16359 | # include <limits.h> | |
16360 | #else | |
16361 | # include <assert.h> | |
16362 | #endif | |
16363 | ||
16364 | #undef $ac_func | |
16365 | ||
3185942a JA |
16366 | /* Override any GCC internal prototype to avoid an error. |
16367 | Use char because int might match the return type of a GCC | |
16368 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
16369 | #ifdef __cplusplus |
16370 | extern "C" | |
b80f6443 | 16371 | #endif |
b80f6443 JA |
16372 | char $ac_func (); |
16373 | /* The GNU C library defines this for functions which it implements | |
16374 | to always fail with ENOSYS. Some functions are actually named | |
16375 | something starting with __ and the normal name is an alias. */ | |
3185942a | 16376 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 16377 | choke me |
b80f6443 JA |
16378 | #endif |
16379 | ||
0628567a JA |
16380 | int |
16381 | main () | |
16382 | { | |
3185942a | 16383 | return $ac_func (); |
b80f6443 JA |
16384 | ; |
16385 | return 0; | |
16386 | } | |
16387 | _ACEOF | |
16388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
16389 | if { (ac_try="$ac_link" |
16390 | case "(($ac_try" in | |
16391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16392 | *) ac_try_echo=$ac_try;; | |
16393 | esac | |
16394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16395 | $as_echo "$ac_try_echo") >&5 | |
16396 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 16397 | ac_status=$? |
0628567a JA |
16398 | grep -v '^ *+' conftest.er1 >conftest.err |
16399 | rm -f conftest.er1 | |
16400 | cat conftest.err >&5 | |
3185942a JA |
16401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16402 | (exit $ac_status); } && { | |
16403 | test -z "$ac_c_werror_flag" || | |
16404 | test ! -s conftest.err | |
16405 | } && test -s conftest$ac_exeext && { | |
16406 | test "$cross_compiling" = yes || | |
16407 | $as_test_x conftest$ac_exeext | |
16408 | }; then | |
b80f6443 JA |
16409 | eval "$as_ac_var=yes" |
16410 | else | |
3185942a | 16411 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16412 | sed 's/^/| /' conftest.$ac_ext >&5 |
16413 | ||
3185942a | 16414 | eval "$as_ac_var=no" |
b80f6443 | 16415 | fi |
3185942a JA |
16416 | |
16417 | rm -rf conftest.dSYM | |
16418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 16419 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 16420 | fi |
3185942a JA |
16421 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16422 | $as_echo "$as_val"'` | |
16423 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16424 | $as_echo "$ac_res" >&6; } | |
16425 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16426 | $as_echo "$as_val"'` | |
16427 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16428 | cat >>confdefs.h <<_ACEOF |
3185942a | 16429 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 16430 | _ACEOF |
7117c2d2 | 16431 | |
b80f6443 JA |
16432 | fi |
16433 | done | |
7117c2d2 | 16434 | |
7117c2d2 | 16435 | |
b80f6443 JA |
16436 | INTL_DEP= INTL_INC= LIBINTL_H= |
16437 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then | |
16438 | INTL_DEP='${INTL_LIBDIR}/libintl.a' | |
16439 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' | |
16440 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' | |
16441 | fi | |
7117c2d2 | 16442 | |
7117c2d2 | 16443 | |
7117c2d2 | 16444 | |
7117c2d2 | 16445 | |
7117c2d2 | 16446 | |
7117c2d2 | 16447 | |
7117c2d2 | 16448 | |
b80f6443 JA |
16449 | for ac_header in wctype.h |
16450 | do | |
3185942a JA |
16451 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16453 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16454 | $as_echo_n "checking for $ac_header... " >&6; } | |
16455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16456 | $as_echo_n "(cached) " >&6 | |
16457 | fi | |
16458 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16459 | $as_echo "$as_val"'` | |
16460 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16461 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16462 | else |
16463 | # Is the header compilable? | |
3185942a JA |
16464 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16465 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16466 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16467 | /* confdefs.h. */ |
16468 | _ACEOF | |
16469 | cat confdefs.h >>conftest.$ac_ext | |
16470 | cat >>conftest.$ac_ext <<_ACEOF | |
16471 | /* end confdefs.h. */ | |
b80f6443 JA |
16472 | $ac_includes_default |
16473 | #include <$ac_header> | |
16474 | _ACEOF | |
16475 | rm -f conftest.$ac_objext | |
3185942a JA |
16476 | if { (ac_try="$ac_compile" |
16477 | case "(($ac_try" in | |
16478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16479 | *) ac_try_echo=$ac_try;; | |
16480 | esac | |
16481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16482 | $as_echo "$ac_try_echo") >&5 | |
16483 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16484 | ac_status=$? |
0628567a JA |
16485 | grep -v '^ *+' conftest.er1 >conftest.err |
16486 | rm -f conftest.er1 | |
16487 | cat conftest.err >&5 | |
3185942a JA |
16488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16489 | (exit $ac_status); } && { | |
16490 | test -z "$ac_c_werror_flag" || | |
16491 | test ! -s conftest.err | |
16492 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16493 | ac_header_compiler=yes |
16494 | else | |
3185942a | 16495 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16496 | sed 's/^/| /' conftest.$ac_ext >&5 |
16497 | ||
3185942a | 16498 | ac_header_compiler=no |
b80f6443 | 16499 | fi |
3185942a JA |
16500 | |
16501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16502 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16503 | $as_echo "$ac_header_compiler" >&6; } | |
7117c2d2 | 16504 | |
b80f6443 | 16505 | # Is the header present? |
3185942a JA |
16506 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16507 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16508 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16509 | /* confdefs.h. */ |
16510 | _ACEOF | |
16511 | cat confdefs.h >>conftest.$ac_ext | |
16512 | cat >>conftest.$ac_ext <<_ACEOF | |
16513 | /* end confdefs.h. */ | |
b80f6443 JA |
16514 | #include <$ac_header> |
16515 | _ACEOF | |
3185942a JA |
16516 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16517 | case "(($ac_try" in | |
16518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16519 | *) ac_try_echo=$ac_try;; | |
16520 | esac | |
16521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16522 | $as_echo "$ac_try_echo") >&5 | |
16523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 16524 | ac_status=$? |
0628567a | 16525 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16526 | rm -f conftest.er1 |
16527 | cat conftest.err >&5 | |
3185942a JA |
16528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16529 | (exit $ac_status); } >/dev/null && { | |
16530 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16531 | test ! -s conftest.err | |
16532 | }; then | |
b80f6443 JA |
16533 | ac_header_preproc=yes |
16534 | else | |
3185942a | 16535 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16536 | sed 's/^/| /' conftest.$ac_ext >&5 |
16537 | ||
b80f6443 JA |
16538 | ac_header_preproc=no |
16539 | fi | |
3185942a | 16540 | |
b80f6443 | 16541 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16542 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16543 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16544 | |
16545 | # So? What about this header? | |
0628567a JA |
16546 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16547 | yes:no: ) | |
3185942a JA |
16548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16549 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16551 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16552 | ac_header_preproc=yes |
16553 | ;; | |
16554 | no:yes:* ) | |
3185942a JA |
16555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16556 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16558 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16560 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16562 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16564 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16566 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16567 | ( cat <<\_ASBOX | |
0628567a JA |
16568 | ## ------------------------------- ## |
16569 | ## Report this to bug-bash@gnu.org ## | |
16570 | ## ------------------------------- ## | |
16571 | _ASBOX | |
3185942a | 16572 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16573 | ;; |
b80f6443 | 16574 | esac |
3185942a JA |
16575 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16576 | $as_echo_n "checking for $ac_header... " >&6; } | |
16577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16578 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16579 | else |
0628567a | 16580 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 16581 | fi |
3185942a JA |
16582 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16583 | $as_echo "$as_val"'` | |
16584 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16585 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16586 | |
16587 | fi | |
3185942a JA |
16588 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16589 | $as_echo "$as_val"'` | |
16590 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16591 | cat >>confdefs.h <<_ACEOF |
3185942a | 16592 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16593 | _ACEOF |
16594 | ||
16595 | fi | |
16596 | ||
16597 | done | |
16598 | ||
16599 | ||
16600 | for ac_header in wchar.h | |
16601 | do | |
3185942a JA |
16602 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16604 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16605 | $as_echo_n "checking for $ac_header... " >&6; } | |
16606 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16607 | $as_echo_n "(cached) " >&6 | |
16608 | fi | |
16609 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16610 | $as_echo "$as_val"'` | |
16611 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16612 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16613 | else |
16614 | # Is the header compilable? | |
3185942a JA |
16615 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16616 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16617 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16618 | /* confdefs.h. */ |
16619 | _ACEOF | |
16620 | cat confdefs.h >>conftest.$ac_ext | |
16621 | cat >>conftest.$ac_ext <<_ACEOF | |
16622 | /* end confdefs.h. */ | |
b80f6443 JA |
16623 | $ac_includes_default |
16624 | #include <$ac_header> | |
16625 | _ACEOF | |
16626 | rm -f conftest.$ac_objext | |
3185942a JA |
16627 | if { (ac_try="$ac_compile" |
16628 | case "(($ac_try" in | |
16629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16630 | *) ac_try_echo=$ac_try;; | |
16631 | esac | |
16632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16633 | $as_echo "$ac_try_echo") >&5 | |
16634 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16635 | ac_status=$? |
0628567a JA |
16636 | grep -v '^ *+' conftest.er1 >conftest.err |
16637 | rm -f conftest.er1 | |
16638 | cat conftest.err >&5 | |
3185942a JA |
16639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16640 | (exit $ac_status); } && { | |
16641 | test -z "$ac_c_werror_flag" || | |
16642 | test ! -s conftest.err | |
16643 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16644 | ac_header_compiler=yes |
16645 | else | |
3185942a | 16646 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16647 | sed 's/^/| /' conftest.$ac_ext >&5 |
16648 | ||
3185942a | 16649 | ac_header_compiler=no |
b80f6443 | 16650 | fi |
3185942a JA |
16651 | |
16652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16653 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16654 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
16655 | |
16656 | # Is the header present? | |
3185942a JA |
16657 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16658 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16659 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16660 | /* confdefs.h. */ |
16661 | _ACEOF | |
16662 | cat confdefs.h >>conftest.$ac_ext | |
16663 | cat >>conftest.$ac_ext <<_ACEOF | |
16664 | /* end confdefs.h. */ | |
b80f6443 JA |
16665 | #include <$ac_header> |
16666 | _ACEOF | |
3185942a JA |
16667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16668 | case "(($ac_try" in | |
16669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16670 | *) ac_try_echo=$ac_try;; | |
16671 | esac | |
16672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16673 | $as_echo "$ac_try_echo") >&5 | |
16674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 16675 | ac_status=$? |
0628567a | 16676 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16677 | rm -f conftest.er1 |
16678 | cat conftest.err >&5 | |
3185942a JA |
16679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16680 | (exit $ac_status); } >/dev/null && { | |
16681 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16682 | test ! -s conftest.err | |
16683 | }; then | |
b80f6443 JA |
16684 | ac_header_preproc=yes |
16685 | else | |
3185942a | 16686 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16687 | sed 's/^/| /' conftest.$ac_ext >&5 |
16688 | ||
b80f6443 JA |
16689 | ac_header_preproc=no |
16690 | fi | |
3185942a | 16691 | |
b80f6443 | 16692 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16693 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16694 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16695 | |
16696 | # So? What about this header? | |
0628567a JA |
16697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16698 | yes:no: ) | |
3185942a JA |
16699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16700 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16702 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16703 | ac_header_preproc=yes |
16704 | ;; | |
16705 | no:yes:* ) | |
3185942a JA |
16706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16707 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16709 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16711 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16713 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16714 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16715 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16717 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16718 | ( cat <<\_ASBOX | |
0628567a JA |
16719 | ## ------------------------------- ## |
16720 | ## Report this to bug-bash@gnu.org ## | |
16721 | ## ------------------------------- ## | |
16722 | _ASBOX | |
3185942a | 16723 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16724 | ;; |
b80f6443 | 16725 | esac |
3185942a JA |
16726 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16727 | $as_echo_n "checking for $ac_header... " >&6; } | |
16728 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16729 | $as_echo_n "(cached) " >&6 | |
7117c2d2 | 16730 | else |
0628567a | 16731 | eval "$as_ac_Header=\$ac_header_preproc" |
7117c2d2 | 16732 | fi |
3185942a JA |
16733 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16734 | $as_echo "$as_val"'` | |
16735 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16736 | $as_echo "$ac_res" >&6; } | |
b80f6443 | 16737 | |
7117c2d2 | 16738 | fi |
3185942a JA |
16739 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16740 | $as_echo "$as_val"'` | |
16741 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16742 | cat >>confdefs.h <<_ACEOF |
3185942a | 16743 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16744 | _ACEOF |
16745 | ||
7117c2d2 JA |
16746 | fi |
16747 | ||
b80f6443 JA |
16748 | done |
16749 | ||
16750 | ||
16751 | for ac_header in langinfo.h | |
7117c2d2 | 16752 | do |
3185942a JA |
16753 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16754 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16755 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16756 | $as_echo_n "checking for $ac_header... " >&6; } | |
16757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16758 | $as_echo_n "(cached) " >&6 | |
16759 | fi | |
16760 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16761 | $as_echo "$as_val"'` | |
16762 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16763 | $as_echo "$ac_res" >&6; } | |
7117c2d2 | 16764 | else |
b80f6443 | 16765 | # Is the header compilable? |
3185942a JA |
16766 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16767 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16768 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16769 | /* confdefs.h. */ |
16770 | _ACEOF | |
16771 | cat confdefs.h >>conftest.$ac_ext | |
16772 | cat >>conftest.$ac_ext <<_ACEOF | |
16773 | /* end confdefs.h. */ | |
b80f6443 JA |
16774 | $ac_includes_default |
16775 | #include <$ac_header> | |
16776 | _ACEOF | |
16777 | rm -f conftest.$ac_objext | |
3185942a JA |
16778 | if { (ac_try="$ac_compile" |
16779 | case "(($ac_try" in | |
16780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16781 | *) ac_try_echo=$ac_try;; | |
16782 | esac | |
16783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16784 | $as_echo "$ac_try_echo") >&5 | |
16785 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16786 | ac_status=$? |
0628567a JA |
16787 | grep -v '^ *+' conftest.er1 >conftest.err |
16788 | rm -f conftest.er1 | |
16789 | cat conftest.err >&5 | |
3185942a JA |
16790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16791 | (exit $ac_status); } && { | |
16792 | test -z "$ac_c_werror_flag" || | |
16793 | test ! -s conftest.err | |
16794 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16795 | ac_header_compiler=yes |
16796 | else | |
3185942a | 16797 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16798 | sed 's/^/| /' conftest.$ac_ext >&5 |
16799 | ||
3185942a | 16800 | ac_header_compiler=no |
b80f6443 | 16801 | fi |
3185942a JA |
16802 | |
16803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16804 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16805 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
16806 | |
16807 | # Is the header present? | |
3185942a JA |
16808 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16809 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16810 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16811 | /* confdefs.h. */ |
16812 | _ACEOF | |
16813 | cat confdefs.h >>conftest.$ac_ext | |
16814 | cat >>conftest.$ac_ext <<_ACEOF | |
16815 | /* end confdefs.h. */ | |
7117c2d2 JA |
16816 | #include <$ac_header> |
16817 | _ACEOF | |
3185942a JA |
16818 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16819 | case "(($ac_try" in | |
16820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16821 | *) ac_try_echo=$ac_try;; | |
16822 | esac | |
16823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16824 | $as_echo "$ac_try_echo") >&5 | |
16825 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7117c2d2 | 16826 | ac_status=$? |
0628567a | 16827 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
16828 | rm -f conftest.er1 |
16829 | cat conftest.err >&5 | |
3185942a JA |
16830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16831 | (exit $ac_status); } >/dev/null && { | |
16832 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16833 | test ! -s conftest.err | |
16834 | }; then | |
b80f6443 | 16835 | ac_header_preproc=yes |
7117c2d2 | 16836 | else |
3185942a | 16837 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16838 | sed 's/^/| /' conftest.$ac_ext >&5 |
16839 | ||
b80f6443 | 16840 | ac_header_preproc=no |
7117c2d2 | 16841 | fi |
3185942a | 16842 | |
7117c2d2 | 16843 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16844 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16845 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16846 | |
16847 | # So? What about this header? | |
0628567a JA |
16848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16849 | yes:no: ) | |
3185942a JA |
16850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16851 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16853 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16854 | ac_header_preproc=yes |
16855 | ;; | |
16856 | no:yes:* ) | |
3185942a JA |
16857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16858 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16860 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16862 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16864 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16866 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16868 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16869 | ( cat <<\_ASBOX | |
0628567a JA |
16870 | ## ------------------------------- ## |
16871 | ## Report this to bug-bash@gnu.org ## | |
16872 | ## ------------------------------- ## | |
16873 | _ASBOX | |
3185942a | 16874 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16875 | ;; |
b80f6443 | 16876 | esac |
3185942a JA |
16877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16878 | $as_echo_n "checking for $ac_header... " >&6; } | |
16879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16880 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16881 | else |
0628567a | 16882 | eval "$as_ac_Header=\$ac_header_preproc" |
7117c2d2 | 16883 | fi |
3185942a JA |
16884 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16885 | $as_echo "$as_val"'` | |
16886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16887 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16888 | |
16889 | fi | |
3185942a JA |
16890 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16891 | $as_echo "$as_val"'` | |
16892 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16893 | cat >>confdefs.h <<_ACEOF |
3185942a | 16894 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 16895 | _ACEOF |
7117c2d2 JA |
16896 | |
16897 | fi | |
b80f6443 | 16898 | |
7117c2d2 JA |
16899 | done |
16900 | ||
b80f6443 | 16901 | |
3185942a JA |
16902 | { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5 |
16903 | $as_echo_n "checking for mbrlen... " >&6; } | |
16904 | if test "${ac_cv_func_mbrlen+set}" = set; then | |
16905 | $as_echo_n "(cached) " >&6 | |
7117c2d2 JA |
16906 | else |
16907 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16908 | /* confdefs.h. */ |
16909 | _ACEOF | |
16910 | cat confdefs.h >>conftest.$ac_ext | |
16911 | cat >>conftest.$ac_ext <<_ACEOF | |
16912 | /* end confdefs.h. */ | |
3185942a | 16913 | /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. |
0628567a | 16914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3185942a | 16915 | #define mbrlen innocuous_mbrlen |
0628567a | 16916 | |
7117c2d2 | 16917 | /* System header to define __stub macros and hopefully few prototypes, |
3185942a | 16918 | which can conflict with char mbrlen (); below. |
0628567a JA |
16919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
16920 | <limits.h> exists even on freestanding compilers. */ | |
16921 | ||
16922 | #ifdef __STDC__ | |
16923 | # include <limits.h> | |
16924 | #else | |
16925 | # include <assert.h> | |
16926 | #endif | |
16927 | ||
3185942a | 16928 | #undef mbrlen |
0628567a | 16929 | |
3185942a JA |
16930 | /* Override any GCC internal prototype to avoid an error. |
16931 | Use char because int might match the return type of a GCC | |
16932 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
16933 | #ifdef __cplusplus |
16934 | extern "C" | |
16935 | #endif | |
3185942a | 16936 | char mbrlen (); |
7117c2d2 JA |
16937 | /* The GNU C library defines this for functions which it implements |
16938 | to always fail with ENOSYS. Some functions are actually named | |
16939 | something starting with __ and the normal name is an alias. */ | |
3185942a | 16940 | #if defined __stub_mbrlen || defined __stub___mbrlen |
7117c2d2 | 16941 | choke me |
7117c2d2 JA |
16942 | #endif |
16943 | ||
0628567a JA |
16944 | int |
16945 | main () | |
16946 | { | |
3185942a | 16947 | return mbrlen (); |
7117c2d2 JA |
16948 | ; |
16949 | return 0; | |
16950 | } | |
16951 | _ACEOF | |
16952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
16953 | if { (ac_try="$ac_link" |
16954 | case "(($ac_try" in | |
16955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16956 | *) ac_try_echo=$ac_try;; | |
16957 | esac | |
16958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16959 | $as_echo "$ac_try_echo") >&5 | |
16960 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 16961 | ac_status=$? |
0628567a JA |
16962 | grep -v '^ *+' conftest.er1 >conftest.err |
16963 | rm -f conftest.er1 | |
16964 | cat conftest.err >&5 | |
3185942a JA |
16965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16966 | (exit $ac_status); } && { | |
16967 | test -z "$ac_c_werror_flag" || | |
16968 | test ! -s conftest.err | |
16969 | } && test -s conftest$ac_exeext && { | |
16970 | test "$cross_compiling" = yes || | |
16971 | $as_test_x conftest$ac_exeext | |
16972 | }; then | |
16973 | ac_cv_func_mbrlen=yes | |
7117c2d2 | 16974 | else |
3185942a | 16975 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16976 | sed 's/^/| /' conftest.$ac_ext >&5 |
16977 | ||
3185942a | 16978 | ac_cv_func_mbrlen=no |
7117c2d2 | 16979 | fi |
3185942a JA |
16980 | |
16981 | rm -rf conftest.dSYM | |
16982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 16983 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 16984 | fi |
3185942a JA |
16985 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 |
16986 | $as_echo "$ac_cv_func_mbrlen" >&6; } | |
16987 | if test "x$ac_cv_func_mbrlen" = x""yes; then | |
b80f6443 | 16988 | cat >>confdefs.h <<\_ACEOF |
3185942a | 16989 | #define HAVE_MBRLEN 1 |
b80f6443 | 16990 | _ACEOF |
7117c2d2 JA |
16991 | |
16992 | fi | |
7117c2d2 | 16993 | |
3185942a JA |
16994 | { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5 |
16995 | $as_echo_n "checking for mbscmp... " >&6; } | |
16996 | if test "${ac_cv_func_mbscmp+set}" = set; then | |
16997 | $as_echo_n "(cached) " >&6 | |
7117c2d2 | 16998 | else |
b80f6443 | 16999 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
17000 | /* confdefs.h. */ |
17001 | _ACEOF | |
17002 | cat confdefs.h >>conftest.$ac_ext | |
17003 | cat >>conftest.$ac_ext <<_ACEOF | |
17004 | /* end confdefs.h. */ | |
3185942a | 17005 | /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp. |
0628567a | 17006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3185942a | 17007 | #define mbscmp innocuous_mbscmp |
0628567a | 17008 | |
b80f6443 | 17009 | /* System header to define __stub macros and hopefully few prototypes, |
3185942a | 17010 | which can conflict with char mbscmp (); below. |
0628567a JA |
17011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17012 | <limits.h> exists even on freestanding compilers. */ | |
17013 | ||
17014 | #ifdef __STDC__ | |
17015 | # include <limits.h> | |
17016 | #else | |
17017 | # include <assert.h> | |
17018 | #endif | |
17019 | ||
3185942a | 17020 | #undef mbscmp |
0628567a | 17021 | |
3185942a JA |
17022 | /* Override any GCC internal prototype to avoid an error. |
17023 | Use char because int might match the return type of a GCC | |
17024 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17025 | #ifdef __cplusplus |
17026 | extern "C" | |
17027 | #endif | |
3185942a | 17028 | char mbscmp (); |
b80f6443 JA |
17029 | /* The GNU C library defines this for functions which it implements |
17030 | to always fail with ENOSYS. Some functions are actually named | |
17031 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17032 | #if defined __stub_mbscmp || defined __stub___mbscmp |
b80f6443 | 17033 | choke me |
3185942a JA |
17034 | #endif |
17035 | ||
17036 | int | |
17037 | main () | |
17038 | { | |
17039 | return mbscmp (); | |
17040 | ; | |
17041 | return 0; | |
17042 | } | |
17043 | _ACEOF | |
17044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17045 | if { (ac_try="$ac_link" | |
17046 | case "(($ac_try" in | |
17047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17048 | *) ac_try_echo=$ac_try;; | |
17049 | esac | |
17050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17051 | $as_echo "$ac_try_echo") >&5 | |
17052 | (eval "$ac_link") 2>conftest.er1 | |
17053 | ac_status=$? | |
17054 | grep -v '^ *+' conftest.er1 >conftest.err | |
17055 | rm -f conftest.er1 | |
17056 | cat conftest.err >&5 | |
17057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17058 | (exit $ac_status); } && { | |
17059 | test -z "$ac_c_werror_flag" || | |
17060 | test ! -s conftest.err | |
17061 | } && test -s conftest$ac_exeext && { | |
17062 | test "$cross_compiling" = yes || | |
17063 | $as_test_x conftest$ac_exeext | |
17064 | }; then | |
17065 | ac_cv_func_mbscmp=yes | |
17066 | else | |
17067 | $as_echo "$as_me: failed program was:" >&5 | |
17068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17069 | ||
17070 | ac_cv_func_mbscmp=no | |
17071 | fi | |
17072 | ||
17073 | rm -rf conftest.dSYM | |
17074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17075 | conftest$ac_exeext conftest.$ac_ext | |
17076 | fi | |
17077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5 | |
17078 | $as_echo "$ac_cv_func_mbscmp" >&6; } | |
17079 | if test "x$ac_cv_func_mbscmp" = x""yes; then | |
17080 | cat >>confdefs.h <<\_ACEOF | |
17081 | #define HAVE_MBSCMP 1 | |
17082 | _ACEOF | |
17083 | ||
17084 | fi | |
17085 | ||
17086 | { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 | |
17087 | $as_echo_n "checking for mbsrtowcs... " >&6; } | |
17088 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then | |
17089 | $as_echo_n "(cached) " >&6 | |
17090 | else | |
17091 | cat >conftest.$ac_ext <<_ACEOF | |
17092 | /* confdefs.h. */ | |
17093 | _ACEOF | |
17094 | cat confdefs.h >>conftest.$ac_ext | |
17095 | cat >>conftest.$ac_ext <<_ACEOF | |
17096 | /* end confdefs.h. */ | |
17097 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. | |
17098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17099 | #define mbsrtowcs innocuous_mbsrtowcs | |
17100 | ||
17101 | /* System header to define __stub macros and hopefully few prototypes, | |
17102 | which can conflict with char mbsrtowcs (); below. | |
17103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17104 | <limits.h> exists even on freestanding compilers. */ | |
17105 | ||
17106 | #ifdef __STDC__ | |
17107 | # include <limits.h> | |
b80f6443 | 17108 | #else |
3185942a | 17109 | # include <assert.h> |
0628567a | 17110 | #endif |
3185942a JA |
17111 | |
17112 | #undef mbsrtowcs | |
17113 | ||
17114 | /* Override any GCC internal prototype to avoid an error. | |
17115 | Use char because int might match the return type of a GCC | |
17116 | builtin and then its argument prototype would still apply. */ | |
0628567a | 17117 | #ifdef __cplusplus |
3185942a JA |
17118 | extern "C" |
17119 | #endif | |
17120 | char mbsrtowcs (); | |
17121 | /* The GNU C library defines this for functions which it implements | |
17122 | to always fail with ENOSYS. Some functions are actually named | |
17123 | something starting with __ and the normal name is an alias. */ | |
17124 | #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs | |
17125 | choke me | |
b80f6443 JA |
17126 | #endif |
17127 | ||
0628567a JA |
17128 | int |
17129 | main () | |
17130 | { | |
3185942a | 17131 | return mbsrtowcs (); |
7117c2d2 JA |
17132 | ; |
17133 | return 0; | |
17134 | } | |
17135 | _ACEOF | |
17136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17137 | if { (ac_try="$ac_link" |
17138 | case "(($ac_try" in | |
17139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17140 | *) ac_try_echo=$ac_try;; | |
17141 | esac | |
17142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17143 | $as_echo "$ac_try_echo") >&5 | |
17144 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 17145 | ac_status=$? |
0628567a JA |
17146 | grep -v '^ *+' conftest.er1 >conftest.err |
17147 | rm -f conftest.er1 | |
17148 | cat conftest.err >&5 | |
3185942a JA |
17149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17150 | (exit $ac_status); } && { | |
17151 | test -z "$ac_c_werror_flag" || | |
17152 | test ! -s conftest.err | |
17153 | } && test -s conftest$ac_exeext && { | |
17154 | test "$cross_compiling" = yes || | |
17155 | $as_test_x conftest$ac_exeext | |
17156 | }; then | |
17157 | ac_cv_func_mbsrtowcs=yes | |
f73dda09 | 17158 | else |
3185942a | 17159 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17160 | sed 's/^/| /' conftest.$ac_ext >&5 |
17161 | ||
3185942a | 17162 | ac_cv_func_mbsrtowcs=no |
f73dda09 | 17163 | fi |
3185942a JA |
17164 | |
17165 | rm -rf conftest.dSYM | |
17166 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17167 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 17168 | fi |
3185942a JA |
17169 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
17170 | $as_echo "$ac_cv_func_mbsrtowcs" >&6; } | |
17171 | if test "x$ac_cv_func_mbsrtowcs" = x""yes; then | |
b80f6443 | 17172 | cat >>confdefs.h <<\_ACEOF |
3185942a | 17173 | #define HAVE_MBSRTOWCS 1 |
b80f6443 | 17174 | _ACEOF |
f73dda09 JA |
17175 | |
17176 | fi | |
17177 | ||
0628567a | 17178 | |
3185942a JA |
17179 | { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5 |
17180 | $as_echo_n "checking for wcrtomb... " >&6; } | |
0628567a | 17181 | if test "${ac_cv_func_wcrtomb+set}" = set; then |
3185942a | 17182 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
17183 | else |
17184 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17185 | /* confdefs.h. */ |
17186 | _ACEOF | |
17187 | cat confdefs.h >>conftest.$ac_ext | |
17188 | cat >>conftest.$ac_ext <<_ACEOF | |
17189 | /* end confdefs.h. */ | |
17190 | /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb. | |
17191 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17192 | #define wcrtomb innocuous_wcrtomb | |
17193 | ||
f73dda09 | 17194 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
17195 | which can conflict with char wcrtomb (); below. |
17196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17197 | <limits.h> exists even on freestanding compilers. */ | |
17198 | ||
17199 | #ifdef __STDC__ | |
17200 | # include <limits.h> | |
17201 | #else | |
17202 | # include <assert.h> | |
17203 | #endif | |
17204 | ||
17205 | #undef wcrtomb | |
17206 | ||
3185942a JA |
17207 | /* Override any GCC internal prototype to avoid an error. |
17208 | Use char because int might match the return type of a GCC | |
17209 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
17210 | #ifdef __cplusplus |
17211 | extern "C" | |
17212 | #endif | |
0628567a | 17213 | char wcrtomb (); |
f73dda09 JA |
17214 | /* The GNU C library defines this for functions which it implements |
17215 | to always fail with ENOSYS. Some functions are actually named | |
17216 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17217 | #if defined __stub_wcrtomb || defined __stub___wcrtomb |
f73dda09 | 17218 | choke me |
f73dda09 JA |
17219 | #endif |
17220 | ||
0628567a JA |
17221 | int |
17222 | main () | |
17223 | { | |
3185942a | 17224 | return wcrtomb (); |
f73dda09 JA |
17225 | ; |
17226 | return 0; | |
17227 | } | |
17228 | _ACEOF | |
17229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17230 | if { (ac_try="$ac_link" |
17231 | case "(($ac_try" in | |
17232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17233 | *) ac_try_echo=$ac_try;; | |
17234 | esac | |
17235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17236 | $as_echo "$ac_try_echo") >&5 | |
17237 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 17238 | ac_status=$? |
0628567a JA |
17239 | grep -v '^ *+' conftest.er1 >conftest.err |
17240 | rm -f conftest.er1 | |
17241 | cat conftest.err >&5 | |
3185942a JA |
17242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17243 | (exit $ac_status); } && { | |
17244 | test -z "$ac_c_werror_flag" || | |
17245 | test ! -s conftest.err | |
17246 | } && test -s conftest$ac_exeext && { | |
17247 | test "$cross_compiling" = yes || | |
17248 | $as_test_x conftest$ac_exeext | |
17249 | }; then | |
0628567a | 17250 | ac_cv_func_wcrtomb=yes |
f73dda09 | 17251 | else |
3185942a | 17252 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17253 | sed 's/^/| /' conftest.$ac_ext >&5 |
17254 | ||
3185942a | 17255 | ac_cv_func_wcrtomb=no |
ccc6cda3 | 17256 | fi |
3185942a JA |
17257 | |
17258 | rm -rf conftest.dSYM | |
17259 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17260 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 17261 | fi |
3185942a JA |
17262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5 |
17263 | $as_echo "$ac_cv_func_wcrtomb" >&6; } | |
17264 | if test "x$ac_cv_func_wcrtomb" = x""yes; then | |
b80f6443 | 17265 | cat >>confdefs.h <<\_ACEOF |
0628567a | 17266 | #define HAVE_WCRTOMB 1 |
7117c2d2 | 17267 | _ACEOF |
7117c2d2 JA |
17268 | |
17269 | fi | |
7117c2d2 | 17270 | |
3185942a JA |
17271 | { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5 |
17272 | $as_echo_n "checking for wcscoll... " >&6; } | |
0628567a | 17273 | if test "${ac_cv_func_wcscoll+set}" = set; then |
3185942a | 17274 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17275 | else |
17276 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17277 | /* confdefs.h. */ |
17278 | _ACEOF | |
17279 | cat confdefs.h >>conftest.$ac_ext | |
17280 | cat >>conftest.$ac_ext <<_ACEOF | |
17281 | /* end confdefs.h. */ | |
17282 | /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll. | |
17283 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17284 | #define wcscoll innocuous_wcscoll | |
17285 | ||
b80f6443 | 17286 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
17287 | which can conflict with char wcscoll (); below. |
17288 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17289 | <limits.h> exists even on freestanding compilers. */ | |
17290 | ||
17291 | #ifdef __STDC__ | |
17292 | # include <limits.h> | |
17293 | #else | |
17294 | # include <assert.h> | |
17295 | #endif | |
17296 | ||
17297 | #undef wcscoll | |
17298 | ||
3185942a JA |
17299 | /* Override any GCC internal prototype to avoid an error. |
17300 | Use char because int might match the return type of a GCC | |
17301 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
17302 | #ifdef __cplusplus |
17303 | extern "C" | |
b80f6443 | 17304 | #endif |
0628567a | 17305 | char wcscoll (); |
b80f6443 JA |
17306 | /* The GNU C library defines this for functions which it implements |
17307 | to always fail with ENOSYS. Some functions are actually named | |
17308 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17309 | #if defined __stub_wcscoll || defined __stub___wcscoll |
b80f6443 | 17310 | choke me |
b80f6443 | 17311 | #endif |
7117c2d2 | 17312 | |
0628567a JA |
17313 | int |
17314 | main () | |
17315 | { | |
3185942a | 17316 | return wcscoll (); |
b80f6443 JA |
17317 | ; |
17318 | return 0; | |
17319 | } | |
7117c2d2 | 17320 | _ACEOF |
b80f6443 | 17321 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
17322 | if { (ac_try="$ac_link" |
17323 | case "(($ac_try" in | |
17324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17325 | *) ac_try_echo=$ac_try;; | |
17326 | esac | |
17327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17328 | $as_echo "$ac_try_echo") >&5 | |
17329 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 17330 | ac_status=$? |
0628567a JA |
17331 | grep -v '^ *+' conftest.er1 >conftest.err |
17332 | rm -f conftest.er1 | |
17333 | cat conftest.err >&5 | |
3185942a JA |
17334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17335 | (exit $ac_status); } && { | |
17336 | test -z "$ac_c_werror_flag" || | |
17337 | test ! -s conftest.err | |
17338 | } && test -s conftest$ac_exeext && { | |
17339 | test "$cross_compiling" = yes || | |
17340 | $as_test_x conftest$ac_exeext | |
17341 | }; then | |
0628567a | 17342 | ac_cv_func_wcscoll=yes |
7117c2d2 | 17343 | else |
3185942a | 17344 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17345 | sed 's/^/| /' conftest.$ac_ext >&5 |
17346 | ||
3185942a | 17347 | ac_cv_func_wcscoll=no |
7117c2d2 | 17348 | fi |
3185942a JA |
17349 | |
17350 | rm -rf conftest.dSYM | |
17351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17352 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 17353 | fi |
3185942a JA |
17354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 |
17355 | $as_echo "$ac_cv_func_wcscoll" >&6; } | |
17356 | if test "x$ac_cv_func_wcscoll" = x""yes; then | |
b80f6443 | 17357 | cat >>confdefs.h <<\_ACEOF |
0628567a | 17358 | #define HAVE_WCSCOLL 1 |
b80f6443 | 17359 | _ACEOF |
7117c2d2 JA |
17360 | |
17361 | fi | |
7117c2d2 | 17362 | |
3185942a JA |
17363 | { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5 |
17364 | $as_echo_n "checking for wcsdup... " >&6; } | |
0628567a | 17365 | if test "${ac_cv_func_wcsdup+set}" = set; then |
3185942a | 17366 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17367 | else |
17368 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17369 | /* confdefs.h. */ |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
17374 | /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. | |
17375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17376 | #define wcsdup innocuous_wcsdup | |
17377 | ||
17378 | /* System header to define __stub macros and hopefully few prototypes, | |
17379 | which can conflict with char wcsdup (); below. | |
17380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17381 | <limits.h> exists even on freestanding compilers. */ | |
17382 | ||
17383 | #ifdef __STDC__ | |
17384 | # include <limits.h> | |
17385 | #else | |
17386 | # include <assert.h> | |
17387 | #endif | |
17388 | ||
17389 | #undef wcsdup | |
17390 | ||
3185942a JA |
17391 | /* Override any GCC internal prototype to avoid an error. |
17392 | Use char because int might match the return type of a GCC | |
17393 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17394 | #ifdef __cplusplus |
17395 | extern "C" | |
17396 | #endif | |
0628567a JA |
17397 | char wcsdup (); |
17398 | /* The GNU C library defines this for functions which it implements | |
17399 | to always fail with ENOSYS. Some functions are actually named | |
17400 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17401 | #if defined __stub_wcsdup || defined __stub___wcsdup |
0628567a | 17402 | choke me |
95732b49 | 17403 | #endif |
0628567a | 17404 | |
95732b49 JA |
17405 | int |
17406 | main () | |
17407 | { | |
3185942a | 17408 | return wcsdup (); |
0628567a JA |
17409 | ; |
17410 | return 0; | |
17411 | } | |
17412 | _ACEOF | |
17413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17414 | if { (ac_try="$ac_link" |
17415 | case "(($ac_try" in | |
17416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17417 | *) ac_try_echo=$ac_try;; | |
17418 | esac | |
17419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17420 | $as_echo "$ac_try_echo") >&5 | |
17421 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
17422 | ac_status=$? |
17423 | grep -v '^ *+' conftest.er1 >conftest.err | |
17424 | rm -f conftest.er1 | |
17425 | cat conftest.err >&5 | |
3185942a JA |
17426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17427 | (exit $ac_status); } && { | |
17428 | test -z "$ac_c_werror_flag" || | |
17429 | test ! -s conftest.err | |
17430 | } && test -s conftest$ac_exeext && { | |
17431 | test "$cross_compiling" = yes || | |
17432 | $as_test_x conftest$ac_exeext | |
17433 | }; then | |
0628567a JA |
17434 | ac_cv_func_wcsdup=yes |
17435 | else | |
3185942a | 17436 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17437 | sed 's/^/| /' conftest.$ac_ext >&5 |
17438 | ||
3185942a | 17439 | ac_cv_func_wcsdup=no |
0628567a | 17440 | fi |
3185942a JA |
17441 | |
17442 | rm -rf conftest.dSYM | |
17443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
17444 | conftest$ac_exeext conftest.$ac_ext |
17445 | fi | |
3185942a JA |
17446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 |
17447 | $as_echo "$ac_cv_func_wcsdup" >&6; } | |
17448 | if test "x$ac_cv_func_wcsdup" = x""yes; then | |
0628567a JA |
17449 | cat >>confdefs.h <<\_ACEOF |
17450 | #define HAVE_WCSDUP 1 | |
17451 | _ACEOF | |
17452 | ||
17453 | fi | |
17454 | ||
3185942a JA |
17455 | { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5 |
17456 | $as_echo_n "checking for wcwidth... " >&6; } | |
0628567a | 17457 | if test "${ac_cv_func_wcwidth+set}" = set; then |
3185942a | 17458 | $as_echo_n "(cached) " >&6 |
0628567a JA |
17459 | else |
17460 | cat >conftest.$ac_ext <<_ACEOF | |
17461 | /* confdefs.h. */ | |
17462 | _ACEOF | |
17463 | cat confdefs.h >>conftest.$ac_ext | |
17464 | cat >>conftest.$ac_ext <<_ACEOF | |
17465 | /* end confdefs.h. */ | |
17466 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. | |
17467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17468 | #define wcwidth innocuous_wcwidth | |
17469 | ||
17470 | /* System header to define __stub macros and hopefully few prototypes, | |
17471 | which can conflict with char wcwidth (); below. | |
17472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17473 | <limits.h> exists even on freestanding compilers. */ | |
17474 | ||
17475 | #ifdef __STDC__ | |
17476 | # include <limits.h> | |
17477 | #else | |
17478 | # include <assert.h> | |
17479 | #endif | |
17480 | ||
17481 | #undef wcwidth | |
17482 | ||
3185942a JA |
17483 | /* Override any GCC internal prototype to avoid an error. |
17484 | Use char because int might match the return type of a GCC | |
17485 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
17486 | #ifdef __cplusplus |
17487 | extern "C" | |
0628567a | 17488 | #endif |
0628567a | 17489 | char wcwidth (); |
7117c2d2 JA |
17490 | /* The GNU C library defines this for functions which it implements |
17491 | to always fail with ENOSYS. Some functions are actually named | |
17492 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17493 | #if defined __stub_wcwidth || defined __stub___wcwidth |
7117c2d2 | 17494 | choke me |
7117c2d2 JA |
17495 | #endif |
17496 | ||
0628567a JA |
17497 | int |
17498 | main () | |
17499 | { | |
3185942a | 17500 | return wcwidth (); |
7117c2d2 JA |
17501 | ; |
17502 | return 0; | |
17503 | } | |
17504 | _ACEOF | |
17505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17506 | if { (ac_try="$ac_link" |
17507 | case "(($ac_try" in | |
17508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17509 | *) ac_try_echo=$ac_try;; | |
17510 | esac | |
17511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17512 | $as_echo "$ac_try_echo") >&5 | |
17513 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 17514 | ac_status=$? |
0628567a JA |
17515 | grep -v '^ *+' conftest.er1 >conftest.err |
17516 | rm -f conftest.er1 | |
17517 | cat conftest.err >&5 | |
3185942a JA |
17518 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17519 | (exit $ac_status); } && { | |
17520 | test -z "$ac_c_werror_flag" || | |
17521 | test ! -s conftest.err | |
17522 | } && test -s conftest$ac_exeext && { | |
17523 | test "$cross_compiling" = yes || | |
17524 | $as_test_x conftest$ac_exeext | |
17525 | }; then | |
b80f6443 | 17526 | ac_cv_func_wcwidth=yes |
7117c2d2 | 17527 | else |
3185942a | 17528 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17529 | sed 's/^/| /' conftest.$ac_ext >&5 |
17530 | ||
3185942a | 17531 | ac_cv_func_wcwidth=no |
7117c2d2 | 17532 | fi |
3185942a JA |
17533 | |
17534 | rm -rf conftest.dSYM | |
17535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17536 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 17537 | fi |
3185942a JA |
17538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
17539 | $as_echo "$ac_cv_func_wcwidth" >&6; } | |
17540 | if test "x$ac_cv_func_wcwidth" = x""yes; then | |
b80f6443 JA |
17541 | cat >>confdefs.h <<\_ACEOF |
17542 | #define HAVE_WCWIDTH 1 | |
17543 | _ACEOF | |
7117c2d2 JA |
17544 | |
17545 | fi | |
17546 | ||
3185942a JA |
17547 | { $as_echo "$as_me:$LINENO: checking for wctype" >&5 |
17548 | $as_echo_n "checking for wctype... " >&6; } | |
0628567a | 17549 | if test "${ac_cv_func_wctype+set}" = set; then |
3185942a | 17550 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17551 | else |
17552 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17553 | /* confdefs.h. */ |
17554 | _ACEOF | |
17555 | cat confdefs.h >>conftest.$ac_ext | |
17556 | cat >>conftest.$ac_ext <<_ACEOF | |
17557 | /* end confdefs.h. */ | |
17558 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
17559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17560 | #define wctype innocuous_wctype | |
17561 | ||
7117c2d2 | 17562 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
17563 | which can conflict with char wctype (); below. |
17564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17565 | <limits.h> exists even on freestanding compilers. */ | |
17566 | ||
17567 | #ifdef __STDC__ | |
17568 | # include <limits.h> | |
17569 | #else | |
17570 | # include <assert.h> | |
17571 | #endif | |
17572 | ||
17573 | #undef wctype | |
17574 | ||
3185942a JA |
17575 | /* Override any GCC internal prototype to avoid an error. |
17576 | Use char because int might match the return type of a GCC | |
17577 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17578 | #ifdef __cplusplus |
17579 | extern "C" | |
17580 | #endif | |
0628567a JA |
17581 | char wctype (); |
17582 | /* The GNU C library defines this for functions which it implements | |
17583 | to always fail with ENOSYS. Some functions are actually named | |
17584 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17585 | #if defined __stub_wctype || defined __stub___wctype |
0628567a | 17586 | choke me |
0628567a JA |
17587 | #endif |
17588 | ||
95732b49 JA |
17589 | int |
17590 | main () | |
17591 | { | |
3185942a | 17592 | return wctype (); |
0628567a JA |
17593 | ; |
17594 | return 0; | |
17595 | } | |
17596 | _ACEOF | |
17597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17598 | if { (ac_try="$ac_link" |
17599 | case "(($ac_try" in | |
17600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17601 | *) ac_try_echo=$ac_try;; | |
17602 | esac | |
17603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17604 | $as_echo "$ac_try_echo") >&5 | |
17605 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
17606 | ac_status=$? |
17607 | grep -v '^ *+' conftest.er1 >conftest.err | |
17608 | rm -f conftest.er1 | |
17609 | cat conftest.err >&5 | |
3185942a JA |
17610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17611 | (exit $ac_status); } && { | |
17612 | test -z "$ac_c_werror_flag" || | |
17613 | test ! -s conftest.err | |
17614 | } && test -s conftest$ac_exeext && { | |
17615 | test "$cross_compiling" = yes || | |
17616 | $as_test_x conftest$ac_exeext | |
17617 | }; then | |
0628567a JA |
17618 | ac_cv_func_wctype=yes |
17619 | else | |
3185942a | 17620 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17621 | sed 's/^/| /' conftest.$ac_ext >&5 |
17622 | ||
3185942a | 17623 | ac_cv_func_wctype=no |
0628567a | 17624 | fi |
3185942a JA |
17625 | |
17626 | rm -rf conftest.dSYM | |
17627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
17628 | conftest$ac_exeext conftest.$ac_ext |
17629 | fi | |
3185942a JA |
17630 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
17631 | $as_echo "$ac_cv_func_wctype" >&6; } | |
17632 | if test "x$ac_cv_func_wctype" = x""yes; then | |
0628567a JA |
17633 | cat >>confdefs.h <<\_ACEOF |
17634 | #define HAVE_WCTYPE 1 | |
17635 | _ACEOF | |
17636 | ||
17637 | fi | |
17638 | ||
17639 | ||
17640 | ||
3185942a JA |
17641 | { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
17642 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
0628567a | 17643 | if test "${ac_cv_func_mbrtowc+set}" = set; then |
3185942a | 17644 | $as_echo_n "(cached) " >&6 |
0628567a JA |
17645 | else |
17646 | cat >conftest.$ac_ext <<_ACEOF | |
17647 | /* confdefs.h. */ | |
17648 | _ACEOF | |
17649 | cat confdefs.h >>conftest.$ac_ext | |
17650 | cat >>conftest.$ac_ext <<_ACEOF | |
17651 | /* end confdefs.h. */ | |
17652 | #include <wchar.h> | |
17653 | int | |
17654 | main () | |
17655 | { | |
3185942a JA |
17656 | wchar_t wc; |
17657 | char const s[] = ""; | |
17658 | size_t n = 1; | |
17659 | mbstate_t state; | |
17660 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
0628567a JA |
17661 | ; |
17662 | return 0; | |
17663 | } | |
17664 | _ACEOF | |
17665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17666 | if { (ac_try="$ac_link" |
17667 | case "(($ac_try" in | |
17668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17669 | *) ac_try_echo=$ac_try;; | |
17670 | esac | |
17671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17672 | $as_echo "$ac_try_echo") >&5 | |
17673 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
17674 | ac_status=$? |
17675 | grep -v '^ *+' conftest.er1 >conftest.err | |
17676 | rm -f conftest.er1 | |
17677 | cat conftest.err >&5 | |
3185942a JA |
17678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17679 | (exit $ac_status); } && { | |
17680 | test -z "$ac_c_werror_flag" || | |
17681 | test ! -s conftest.err | |
17682 | } && test -s conftest$ac_exeext && { | |
17683 | test "$cross_compiling" = yes || | |
17684 | $as_test_x conftest$ac_exeext | |
17685 | }; then | |
0628567a JA |
17686 | ac_cv_func_mbrtowc=yes |
17687 | else | |
3185942a | 17688 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17689 | sed 's/^/| /' conftest.$ac_ext >&5 |
17690 | ||
3185942a | 17691 | ac_cv_func_mbrtowc=no |
0628567a | 17692 | fi |
3185942a JA |
17693 | |
17694 | rm -rf conftest.dSYM | |
17695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
17696 | conftest$ac_exeext conftest.$ac_ext |
17697 | fi | |
3185942a JA |
17698 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
17699 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
0628567a JA |
17700 | if test $ac_cv_func_mbrtowc = yes; then |
17701 | ||
17702 | cat >>confdefs.h <<\_ACEOF | |
17703 | #define HAVE_MBRTOWC 1 | |
17704 | _ACEOF | |
17705 | ||
17706 | fi | |
17707 | ||
17708 | if test $ac_cv_func_mbrtowc = yes; then | |
17709 | cat >>confdefs.h <<\_ACEOF | |
17710 | #define HAVE_MBSTATE_T 1 | |
17711 | _ACEOF | |
17712 | ||
17713 | fi | |
17714 | ||
17715 | ||
17716 | ||
17717 | ||
17718 | ||
17719 | ||
17720 | for ac_func in iswlower iswupper towlower towupper iswctype | |
17721 | do | |
3185942a JA |
17722 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17723 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17724 | $as_echo_n "checking for $ac_func... " >&6; } | |
17725 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
17726 | $as_echo_n "(cached) " >&6 | |
0628567a JA |
17727 | else |
17728 | cat >conftest.$ac_ext <<_ACEOF | |
17729 | /* confdefs.h. */ | |
17730 | _ACEOF | |
17731 | cat confdefs.h >>conftest.$ac_ext | |
17732 | cat >>conftest.$ac_ext <<_ACEOF | |
17733 | /* end confdefs.h. */ | |
17734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17736 | #define $ac_func innocuous_$ac_func | |
17737 | ||
17738 | /* System header to define __stub macros and hopefully few prototypes, | |
17739 | which can conflict with char $ac_func (); below. | |
17740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17741 | <limits.h> exists even on freestanding compilers. */ | |
17742 | ||
17743 | #ifdef __STDC__ | |
17744 | # include <limits.h> | |
17745 | #else | |
17746 | # include <assert.h> | |
17747 | #endif | |
17748 | ||
17749 | #undef $ac_func | |
17750 | ||
3185942a JA |
17751 | /* Override any GCC internal prototype to avoid an error. |
17752 | Use char because int might match the return type of a GCC | |
17753 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
17754 | #ifdef __cplusplus |
17755 | extern "C" | |
0628567a | 17756 | #endif |
0628567a | 17757 | char $ac_func (); |
7117c2d2 JA |
17758 | /* The GNU C library defines this for functions which it implements |
17759 | to always fail with ENOSYS. Some functions are actually named | |
17760 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17761 | #if defined __stub_$ac_func || defined __stub___$ac_func |
7117c2d2 | 17762 | choke me |
7117c2d2 JA |
17763 | #endif |
17764 | ||
0628567a JA |
17765 | int |
17766 | main () | |
17767 | { | |
3185942a | 17768 | return $ac_func (); |
0628567a JA |
17769 | ; |
17770 | return 0; | |
17771 | } | |
17772 | _ACEOF | |
17773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17774 | if { (ac_try="$ac_link" |
17775 | case "(($ac_try" in | |
17776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17777 | *) ac_try_echo=$ac_try;; | |
17778 | esac | |
17779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17780 | $as_echo "$ac_try_echo") >&5 | |
17781 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
17782 | ac_status=$? |
17783 | grep -v '^ *+' conftest.er1 >conftest.err | |
17784 | rm -f conftest.er1 | |
17785 | cat conftest.err >&5 | |
3185942a JA |
17786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17787 | (exit $ac_status); } && { | |
17788 | test -z "$ac_c_werror_flag" || | |
17789 | test ! -s conftest.err | |
17790 | } && test -s conftest$ac_exeext && { | |
17791 | test "$cross_compiling" = yes || | |
17792 | $as_test_x conftest$ac_exeext | |
17793 | }; then | |
0628567a JA |
17794 | eval "$as_ac_var=yes" |
17795 | else | |
3185942a | 17796 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17797 | sed 's/^/| /' conftest.$ac_ext >&5 |
17798 | ||
3185942a | 17799 | eval "$as_ac_var=no" |
0628567a | 17800 | fi |
3185942a JA |
17801 | |
17802 | rm -rf conftest.dSYM | |
17803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
17804 | conftest$ac_exeext conftest.$ac_ext |
17805 | fi | |
3185942a JA |
17806 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17807 | $as_echo "$as_val"'` | |
17808 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17809 | $as_echo "$ac_res" >&6; } | |
17810 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17811 | $as_echo "$as_val"'` | |
17812 | if test "x$as_val" = x""yes; then | |
0628567a | 17813 | cat >>confdefs.h <<_ACEOF |
3185942a | 17814 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0628567a JA |
17815 | _ACEOF |
17816 | ||
17817 | fi | |
17818 | done | |
17819 | ||
17820 | ||
3185942a JA |
17821 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
17822 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
0628567a | 17823 | if test "${bash_cv_langinfo_codeset+set}" = set; then |
3185942a | 17824 | $as_echo_n "(cached) " >&6 |
0628567a JA |
17825 | else |
17826 | cat >conftest.$ac_ext <<_ACEOF | |
17827 | /* confdefs.h. */ | |
17828 | _ACEOF | |
17829 | cat confdefs.h >>conftest.$ac_ext | |
17830 | cat >>conftest.$ac_ext <<_ACEOF | |
17831 | /* end confdefs.h. */ | |
17832 | #include <langinfo.h> | |
17833 | int | |
17834 | main () | |
17835 | { | |
17836 | char* cs = nl_langinfo(CODESET); | |
17837 | ; | |
17838 | return 0; | |
17839 | } | |
17840 | _ACEOF | |
17841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17842 | if { (ac_try="$ac_link" |
17843 | case "(($ac_try" in | |
17844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17845 | *) ac_try_echo=$ac_try;; | |
17846 | esac | |
17847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17848 | $as_echo "$ac_try_echo") >&5 | |
17849 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
17850 | ac_status=$? |
17851 | grep -v '^ *+' conftest.er1 >conftest.err | |
17852 | rm -f conftest.er1 | |
17853 | cat conftest.err >&5 | |
3185942a JA |
17854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17855 | (exit $ac_status); } && { | |
17856 | test -z "$ac_c_werror_flag" || | |
17857 | test ! -s conftest.err | |
17858 | } && test -s conftest$ac_exeext && { | |
17859 | test "$cross_compiling" = yes || | |
17860 | $as_test_x conftest$ac_exeext | |
17861 | }; then | |
0628567a JA |
17862 | bash_cv_langinfo_codeset=yes |
17863 | else | |
3185942a | 17864 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17865 | sed 's/^/| /' conftest.$ac_ext >&5 |
17866 | ||
3185942a | 17867 | bash_cv_langinfo_codeset=no |
0628567a | 17868 | fi |
3185942a JA |
17869 | |
17870 | rm -rf conftest.dSYM | |
17871 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
17872 | conftest$ac_exeext conftest.$ac_ext |
17873 | fi | |
3185942a JA |
17874 | { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
17875 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
0628567a JA |
17876 | if test $bash_cv_langinfo_codeset = yes; then |
17877 | cat >>confdefs.h <<\_ACEOF | |
17878 | #define HAVE_LANGINFO_CODESET 1 | |
17879 | _ACEOF | |
17880 | ||
17881 | fi | |
17882 | ||
3185942a JA |
17883 | { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5 |
17884 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
0628567a | 17885 | if test "${bash_cv_type_wchar_t+set}" = set; then |
3185942a | 17886 | $as_echo_n "(cached) " >&6 |
0628567a JA |
17887 | else |
17888 | cat >conftest.$ac_ext <<_ACEOF | |
17889 | /* confdefs.h. */ | |
17890 | _ACEOF | |
17891 | cat confdefs.h >>conftest.$ac_ext | |
17892 | cat >>conftest.$ac_ext <<_ACEOF | |
17893 | /* end confdefs.h. */ | |
17894 | #include <wchar.h> | |
17895 | ||
17896 | int | |
17897 | main () | |
17898 | { | |
17899 | ||
17900 | wchar_t foo; | |
17901 | foo = 0; | |
17902 | ||
7117c2d2 JA |
17903 | ; |
17904 | return 0; | |
17905 | } | |
17906 | _ACEOF | |
0628567a | 17907 | rm -f conftest.$ac_objext |
3185942a JA |
17908 | if { (ac_try="$ac_compile" |
17909 | case "(($ac_try" in | |
17910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17911 | *) ac_try_echo=$ac_try;; | |
17912 | esac | |
17913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17914 | $as_echo "$ac_try_echo") >&5 | |
17915 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 17916 | ac_status=$? |
0628567a JA |
17917 | grep -v '^ *+' conftest.er1 >conftest.err |
17918 | rm -f conftest.er1 | |
17919 | cat conftest.err >&5 | |
3185942a JA |
17920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17921 | (exit $ac_status); } && { | |
17922 | test -z "$ac_c_werror_flag" || | |
17923 | test ! -s conftest.err | |
17924 | } && test -s conftest.$ac_objext; then | |
0628567a | 17925 | bash_cv_type_wchar_t=yes |
7117c2d2 | 17926 | else |
3185942a | 17927 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17928 | sed 's/^/| /' conftest.$ac_ext >&5 |
17929 | ||
3185942a | 17930 | bash_cv_type_wchar_t=no |
7117c2d2 | 17931 | fi |
3185942a JA |
17932 | |
17933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 17934 | fi |
3185942a JA |
17935 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5 |
17936 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
0628567a JA |
17937 | if test $bash_cv_type_wchar_t = yes; then |
17938 | ||
17939 | cat >>confdefs.h <<\_ACEOF | |
17940 | #define HAVE_WCHAR_T 1 | |
b80f6443 | 17941 | _ACEOF |
7117c2d2 JA |
17942 | |
17943 | fi | |
17944 | ||
3185942a JA |
17945 | { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5 |
17946 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
0628567a | 17947 | if test "${bash_cv_type_wctype_t+set}" = set; then |
3185942a | 17948 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17949 | else |
17950 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17951 | /* confdefs.h. */ |
17952 | _ACEOF | |
17953 | cat confdefs.h >>conftest.$ac_ext | |
17954 | cat >>conftest.$ac_ext <<_ACEOF | |
17955 | /* end confdefs.h. */ | |
17956 | #include <wctype.h> | |
7117c2d2 JA |
17957 | int |
17958 | main () | |
17959 | { | |
b80f6443 | 17960 | |
0628567a JA |
17961 | wctype_t foo; |
17962 | foo = 0; | |
b80f6443 JA |
17963 | |
17964 | ; | |
7117c2d2 JA |
17965 | return 0; |
17966 | } | |
17967 | _ACEOF | |
b80f6443 | 17968 | rm -f conftest.$ac_objext |
3185942a JA |
17969 | if { (ac_try="$ac_compile" |
17970 | case "(($ac_try" in | |
17971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17972 | *) ac_try_echo=$ac_try;; | |
17973 | esac | |
17974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17975 | $as_echo "$ac_try_echo") >&5 | |
17976 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 17977 | ac_status=$? |
0628567a JA |
17978 | grep -v '^ *+' conftest.er1 >conftest.err |
17979 | rm -f conftest.er1 | |
17980 | cat conftest.err >&5 | |
3185942a JA |
17981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17982 | (exit $ac_status); } && { | |
17983 | test -z "$ac_c_werror_flag" || | |
17984 | test ! -s conftest.err | |
17985 | } && test -s conftest.$ac_objext; then | |
0628567a | 17986 | bash_cv_type_wctype_t=yes |
7117c2d2 | 17987 | else |
3185942a | 17988 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17989 | sed 's/^/| /' conftest.$ac_ext >&5 |
17990 | ||
3185942a | 17991 | bash_cv_type_wctype_t=no |
7117c2d2 | 17992 | fi |
3185942a JA |
17993 | |
17994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 17995 | fi |
3185942a JA |
17996 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5 |
17997 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
0628567a JA |
17998 | if test $bash_cv_type_wctype_t = yes; then |
17999 | ||
18000 | cat >>confdefs.h <<\_ACEOF | |
18001 | #define HAVE_WCTYPE_T 1 | |
b80f6443 | 18002 | _ACEOF |
7117c2d2 JA |
18003 | |
18004 | fi | |
18005 | ||
3185942a JA |
18006 | { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5 |
18007 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
0628567a | 18008 | if test "${bash_cv_type_wint_t+set}" = set; then |
3185942a | 18009 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
18010 | else |
18011 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18012 | /* confdefs.h. */ |
18013 | _ACEOF | |
18014 | cat confdefs.h >>conftest.$ac_ext | |
18015 | cat >>conftest.$ac_ext <<_ACEOF | |
18016 | /* end confdefs.h. */ | |
18017 | #include <wctype.h> | |
7117c2d2 JA |
18018 | int |
18019 | main () | |
18020 | { | |
0628567a JA |
18021 | |
18022 | wint_t foo; | |
18023 | foo = 0; | |
18024 | ||
7117c2d2 JA |
18025 | ; |
18026 | return 0; | |
18027 | } | |
18028 | _ACEOF | |
0628567a | 18029 | rm -f conftest.$ac_objext |
3185942a JA |
18030 | if { (ac_try="$ac_compile" |
18031 | case "(($ac_try" in | |
18032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18033 | *) ac_try_echo=$ac_try;; | |
18034 | esac | |
18035 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18036 | $as_echo "$ac_try_echo") >&5 | |
18037 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 18038 | ac_status=$? |
0628567a JA |
18039 | grep -v '^ *+' conftest.er1 >conftest.err |
18040 | rm -f conftest.er1 | |
18041 | cat conftest.err >&5 | |
3185942a JA |
18042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18043 | (exit $ac_status); } && { | |
18044 | test -z "$ac_c_werror_flag" || | |
18045 | test ! -s conftest.err | |
18046 | } && test -s conftest.$ac_objext; then | |
0628567a | 18047 | bash_cv_type_wint_t=yes |
7117c2d2 | 18048 | else |
3185942a | 18049 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18050 | sed 's/^/| /' conftest.$ac_ext >&5 |
18051 | ||
3185942a | 18052 | bash_cv_type_wint_t=no |
7117c2d2 | 18053 | fi |
3185942a JA |
18054 | |
18055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 18056 | fi |
3185942a JA |
18057 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5 |
18058 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
0628567a JA |
18059 | if test $bash_cv_type_wint_t = yes; then |
18060 | ||
18061 | cat >>confdefs.h <<\_ACEOF | |
18062 | #define HAVE_WINT_T 1 | |
b80f6443 | 18063 | _ACEOF |
7117c2d2 JA |
18064 | |
18065 | fi | |
18066 | ||
b80f6443 JA |
18067 | |
18068 | ||
f73dda09 JA |
18069 | if test "$opt_static_link" != yes; then |
18070 | ||
3185942a JA |
18071 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18072 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f73dda09 | 18073 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
3185942a | 18074 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18075 | else |
f73dda09 JA |
18076 | ac_check_lib_save_LIBS=$LIBS |
18077 | LIBS="-ldl $LIBS" | |
18078 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18079 | /* confdefs.h. */ |
18080 | _ACEOF | |
18081 | cat confdefs.h >>conftest.$ac_ext | |
18082 | cat >>conftest.$ac_ext <<_ACEOF | |
18083 | /* end confdefs.h. */ | |
f73dda09 | 18084 | |
3185942a JA |
18085 | /* Override any GCC internal prototype to avoid an error. |
18086 | Use char because int might match the return type of a GCC | |
18087 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18088 | #ifdef __cplusplus |
18089 | extern "C" | |
18090 | #endif | |
f73dda09 JA |
18091 | char dlopen (); |
18092 | int | |
18093 | main () | |
18094 | { | |
3185942a | 18095 | return dlopen (); |
f73dda09 JA |
18096 | ; |
18097 | return 0; | |
18098 | } | |
18099 | _ACEOF | |
18100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18101 | if { (ac_try="$ac_link" |
18102 | case "(($ac_try" in | |
18103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18104 | *) ac_try_echo=$ac_try;; | |
18105 | esac | |
18106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18107 | $as_echo "$ac_try_echo") >&5 | |
18108 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18109 | ac_status=$? |
0628567a JA |
18110 | grep -v '^ *+' conftest.er1 >conftest.err |
18111 | rm -f conftest.er1 | |
18112 | cat conftest.err >&5 | |
3185942a JA |
18113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18114 | (exit $ac_status); } && { | |
18115 | test -z "$ac_c_werror_flag" || | |
18116 | test ! -s conftest.err | |
18117 | } && test -s conftest$ac_exeext && { | |
18118 | test "$cross_compiling" = yes || | |
18119 | $as_test_x conftest$ac_exeext | |
18120 | }; then | |
f73dda09 JA |
18121 | ac_cv_lib_dl_dlopen=yes |
18122 | else | |
3185942a | 18123 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18124 | sed 's/^/| /' conftest.$ac_ext >&5 |
18125 | ||
3185942a | 18126 | ac_cv_lib_dl_dlopen=no |
f73dda09 | 18127 | fi |
3185942a JA |
18128 | |
18129 | rm -rf conftest.dSYM | |
18130 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18131 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18132 | LIBS=$ac_check_lib_save_LIBS |
18133 | fi | |
3185942a JA |
18134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18135 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
18136 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
b80f6443 | 18137 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18138 | #define HAVE_LIBDL 1 |
b80f6443 | 18139 | _ACEOF |
f73dda09 JA |
18140 | |
18141 | LIBS="-ldl $LIBS" | |
18142 | ||
ccc6cda3 | 18143 | fi |
ccc6cda3 | 18144 | |
b80f6443 JA |
18145 | |
18146 | ||
18147 | ||
f73dda09 | 18148 | for ac_func in dlopen dlclose dlsym |
bb70624e | 18149 | do |
3185942a JA |
18150 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18151 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18152 | $as_echo_n "checking for $ac_func... " >&6; } | |
18153 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18154 | $as_echo_n "(cached) " >&6 | |
bb70624e | 18155 | else |
f73dda09 | 18156 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18157 | /* confdefs.h. */ |
18158 | _ACEOF | |
18159 | cat confdefs.h >>conftest.$ac_ext | |
18160 | cat >>conftest.$ac_ext <<_ACEOF | |
18161 | /* end confdefs.h. */ | |
18162 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18164 | #define $ac_func innocuous_$ac_func | |
18165 | ||
f73dda09 | 18166 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
18167 | which can conflict with char $ac_func (); below. |
18168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18169 | <limits.h> exists even on freestanding compilers. */ | |
18170 | ||
18171 | #ifdef __STDC__ | |
18172 | # include <limits.h> | |
18173 | #else | |
18174 | # include <assert.h> | |
18175 | #endif | |
18176 | ||
18177 | #undef $ac_func | |
18178 | ||
3185942a JA |
18179 | /* Override any GCC internal prototype to avoid an error. |
18180 | Use char because int might match the return type of a GCC | |
18181 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18182 | #ifdef __cplusplus |
18183 | extern "C" | |
18184 | #endif | |
f73dda09 | 18185 | char $ac_func (); |
f73dda09 JA |
18186 | /* The GNU C library defines this for functions which it implements |
18187 | to always fail with ENOSYS. Some functions are actually named | |
18188 | something starting with __ and the normal name is an alias. */ | |
3185942a | 18189 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 18190 | choke me |
f73dda09 JA |
18191 | #endif |
18192 | ||
0628567a JA |
18193 | int |
18194 | main () | |
18195 | { | |
3185942a | 18196 | return $ac_func (); |
f73dda09 JA |
18197 | ; |
18198 | return 0; | |
18199 | } | |
18200 | _ACEOF | |
18201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18202 | if { (ac_try="$ac_link" |
18203 | case "(($ac_try" in | |
18204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18205 | *) ac_try_echo=$ac_try;; | |
18206 | esac | |
18207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18208 | $as_echo "$ac_try_echo") >&5 | |
18209 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18210 | ac_status=$? |
0628567a JA |
18211 | grep -v '^ *+' conftest.er1 >conftest.err |
18212 | rm -f conftest.er1 | |
18213 | cat conftest.err >&5 | |
3185942a JA |
18214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18215 | (exit $ac_status); } && { | |
18216 | test -z "$ac_c_werror_flag" || | |
18217 | test ! -s conftest.err | |
18218 | } && test -s conftest$ac_exeext && { | |
18219 | test "$cross_compiling" = yes || | |
18220 | $as_test_x conftest$ac_exeext | |
18221 | }; then | |
f73dda09 JA |
18222 | eval "$as_ac_var=yes" |
18223 | else | |
3185942a | 18224 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
18226 | ||
3185942a | 18227 | eval "$as_ac_var=no" |
f73dda09 | 18228 | fi |
3185942a JA |
18229 | |
18230 | rm -rf conftest.dSYM | |
18231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18232 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 18233 | fi |
3185942a JA |
18234 | ac_res=`eval 'as_val=${'$as_ac_var'} |
18235 | $as_echo "$as_val"'` | |
18236 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18237 | $as_echo "$ac_res" >&6; } | |
18238 | as_val=`eval 'as_val=${'$as_ac_var'} | |
18239 | $as_echo "$as_val"'` | |
18240 | if test "x$as_val" = x""yes; then | |
b80f6443 | 18241 | cat >>confdefs.h <<_ACEOF |
3185942a | 18242 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 18243 | _ACEOF |
f73dda09 | 18244 | |
bb70624e | 18245 | fi |
f73dda09 JA |
18246 | done |
18247 | ||
bb70624e | 18248 | fi |
f73dda09 | 18249 | |
3185942a JA |
18250 | { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
18251 | $as_echo_n "checking whether sys_siglist is declared... " >&6; } | |
0628567a | 18252 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
3185942a | 18253 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
18254 | else |
18255 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18256 | /* confdefs.h. */ |
18257 | _ACEOF | |
18258 | cat confdefs.h >>conftest.$ac_ext | |
18259 | cat >>conftest.$ac_ext <<_ACEOF | |
18260 | /* end confdefs.h. */ | |
95732b49 JA |
18261 | #include <signal.h> |
18262 | /* NetBSD declares sys_siglist in unistd.h. */ | |
3185942a | 18263 | #ifdef HAVE_UNISTD_H |
95732b49 JA |
18264 | # include <unistd.h> |
18265 | #endif | |
18266 | ||
0628567a | 18267 | |
f73dda09 JA |
18268 | int |
18269 | main () | |
18270 | { | |
0628567a | 18271 | #ifndef sys_siglist |
3185942a | 18272 | (void) sys_siglist; |
0628567a JA |
18273 | #endif |
18274 | ||
f73dda09 JA |
18275 | ; |
18276 | return 0; | |
18277 | } | |
18278 | _ACEOF | |
18279 | rm -f conftest.$ac_objext | |
3185942a JA |
18280 | if { (ac_try="$ac_compile" |
18281 | case "(($ac_try" in | |
18282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18283 | *) ac_try_echo=$ac_try;; | |
18284 | esac | |
18285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18286 | $as_echo "$ac_try_echo") >&5 | |
18287 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 18288 | ac_status=$? |
0628567a JA |
18289 | grep -v '^ *+' conftest.er1 >conftest.err |
18290 | rm -f conftest.er1 | |
18291 | cat conftest.err >&5 | |
3185942a JA |
18292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18293 | (exit $ac_status); } && { | |
18294 | test -z "$ac_c_werror_flag" || | |
18295 | test ! -s conftest.err | |
18296 | } && test -s conftest.$ac_objext; then | |
0628567a | 18297 | ac_cv_have_decl_sys_siglist=yes |
bb70624e | 18298 | else |
3185942a | 18299 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18300 | sed 's/^/| /' conftest.$ac_ext >&5 |
18301 | ||
3185942a | 18302 | ac_cv_have_decl_sys_siglist=no |
bb70624e | 18303 | fi |
3185942a JA |
18304 | |
18305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 18306 | fi |
3185942a JA |
18307 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
18308 | $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
18309 | if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then | |
b80f6443 | 18310 | |
0628567a JA |
18311 | cat >>confdefs.h <<_ACEOF |
18312 | #define HAVE_DECL_SYS_SIGLIST 1 | |
18313 | _ACEOF | |
18314 | ||
18315 | ||
18316 | else | |
18317 | cat >>confdefs.h <<_ACEOF | |
18318 | #define HAVE_DECL_SYS_SIGLIST 0 | |
b80f6443 | 18319 | _ACEOF |
bb70624e | 18320 | |
0628567a | 18321 | |
f73dda09 | 18322 | fi |
bb70624e | 18323 | |
b80f6443 | 18324 | |
0628567a JA |
18325 | |
18326 | ||
bb70624e JA |
18327 | if test "$ac_cv_func_inet_aton" != 'yes'; then |
18328 | ||
3185942a JA |
18329 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
18330 | $as_echo_n "checking for inet_aton... " >&6; } | |
f73dda09 | 18331 | if test "${bash_cv_func_inet_aton+set}" = set; then |
3185942a | 18332 | $as_echo_n "(cached) " >&6 |
bb70624e | 18333 | else |
f73dda09 | 18334 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18335 | /* confdefs.h. */ |
18336 | _ACEOF | |
18337 | cat confdefs.h >>conftest.$ac_ext | |
18338 | cat >>conftest.$ac_ext <<_ACEOF | |
18339 | /* end confdefs.h. */ | |
bb70624e JA |
18340 | |
18341 | #include <sys/types.h> | |
18342 | #include <netinet/in.h> | |
18343 | #include <arpa/inet.h> | |
18344 | struct in_addr ap; | |
f73dda09 JA |
18345 | int |
18346 | main () | |
18347 | { | |
18348 | inet_aton("127.0.0.1", &ap); | |
18349 | ; | |
18350 | return 0; | |
18351 | } | |
18352 | _ACEOF | |
18353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18354 | if { (ac_try="$ac_link" |
18355 | case "(($ac_try" in | |
18356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18357 | *) ac_try_echo=$ac_try;; | |
18358 | esac | |
18359 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18360 | $as_echo "$ac_try_echo") >&5 | |
18361 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18362 | ac_status=$? |
0628567a JA |
18363 | grep -v '^ *+' conftest.er1 >conftest.err |
18364 | rm -f conftest.er1 | |
18365 | cat conftest.err >&5 | |
3185942a JA |
18366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18367 | (exit $ac_status); } && { | |
18368 | test -z "$ac_c_werror_flag" || | |
18369 | test ! -s conftest.err | |
18370 | } && test -s conftest$ac_exeext && { | |
18371 | test "$cross_compiling" = yes || | |
18372 | $as_test_x conftest$ac_exeext | |
18373 | }; then | |
bb70624e JA |
18374 | bash_cv_func_inet_aton=yes |
18375 | else | |
3185942a | 18376 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18377 | sed 's/^/| /' conftest.$ac_ext >&5 |
18378 | ||
3185942a | 18379 | bash_cv_func_inet_aton=no |
bb70624e | 18380 | fi |
3185942a JA |
18381 | |
18382 | rm -rf conftest.dSYM | |
18383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18384 | conftest$ac_exeext conftest.$ac_ext |
bb70624e | 18385 | fi |
3185942a JA |
18386 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5 |
18387 | $as_echo "$bash_cv_func_inet_aton" >&6; } | |
bb70624e | 18388 | if test $bash_cv_func_inet_aton = yes; then |
b80f6443 | 18389 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 18390 | #define HAVE_INET_ATON 1 |
b80f6443 | 18391 | _ACEOF |
bb70624e | 18392 | |
f73dda09 | 18393 | else |
3185942a | 18394 | case " $LIBOBJS " in |
0628567a | 18395 | *" inet_aton.$ac_objext "* ) ;; |
3185942a JA |
18396 | *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" |
18397 | ;; | |
0628567a JA |
18398 | esac |
18399 | ||
bb70624e JA |
18400 | fi |
18401 | ||
18402 | fi | |
18403 | ||
18404 | case "$host_os" in | |
f73dda09 | 18405 | irix4*) |
3185942a JA |
18406 | { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5 |
18407 | $as_echo_n "checking for getpwent in -lsun... " >&6; } | |
f73dda09 | 18408 | if test "${ac_cv_lib_sun_getpwent+set}" = set; then |
3185942a | 18409 | $as_echo_n "(cached) " >&6 |
bb70624e | 18410 | else |
f73dda09 | 18411 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 18412 | LIBS="-lsun $LIBS" |
f73dda09 | 18413 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18414 | /* confdefs.h. */ |
18415 | _ACEOF | |
18416 | cat confdefs.h >>conftest.$ac_ext | |
18417 | cat >>conftest.$ac_ext <<_ACEOF | |
18418 | /* end confdefs.h. */ | |
f73dda09 | 18419 | |
3185942a JA |
18420 | /* Override any GCC internal prototype to avoid an error. |
18421 | Use char because int might match the return type of a GCC | |
18422 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18423 | #ifdef __cplusplus |
18424 | extern "C" | |
18425 | #endif | |
f73dda09 JA |
18426 | char getpwent (); |
18427 | int | |
18428 | main () | |
18429 | { | |
3185942a | 18430 | return getpwent (); |
f73dda09 JA |
18431 | ; |
18432 | return 0; | |
18433 | } | |
18434 | _ACEOF | |
18435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18436 | if { (ac_try="$ac_link" |
18437 | case "(($ac_try" in | |
18438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18439 | *) ac_try_echo=$ac_try;; | |
18440 | esac | |
18441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18442 | $as_echo "$ac_try_echo") >&5 | |
18443 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18444 | ac_status=$? |
0628567a JA |
18445 | grep -v '^ *+' conftest.er1 >conftest.err |
18446 | rm -f conftest.er1 | |
18447 | cat conftest.err >&5 | |
3185942a JA |
18448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18449 | (exit $ac_status); } && { | |
18450 | test -z "$ac_c_werror_flag" || | |
18451 | test ! -s conftest.err | |
18452 | } && test -s conftest$ac_exeext && { | |
18453 | test "$cross_compiling" = yes || | |
18454 | $as_test_x conftest$ac_exeext | |
18455 | }; then | |
f73dda09 JA |
18456 | ac_cv_lib_sun_getpwent=yes |
18457 | else | |
3185942a | 18458 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18459 | sed 's/^/| /' conftest.$ac_ext >&5 |
18460 | ||
3185942a | 18461 | ac_cv_lib_sun_getpwent=no |
f73dda09 | 18462 | fi |
3185942a JA |
18463 | |
18464 | rm -rf conftest.dSYM | |
18465 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18466 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18467 | LIBS=$ac_check_lib_save_LIBS |
18468 | fi | |
3185942a JA |
18469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5 |
18470 | $as_echo "$ac_cv_lib_sun_getpwent" >&6; } | |
18471 | if test "x$ac_cv_lib_sun_getpwent" = x""yes; then | |
b80f6443 | 18472 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18473 | #define HAVE_LIBSUN 1 |
b80f6443 | 18474 | _ACEOF |
bb70624e JA |
18475 | |
18476 | LIBS="-lsun $LIBS" | |
18477 | ||
bb70624e JA |
18478 | fi |
18479 | ;; | |
18480 | esac | |
ccc6cda3 | 18481 | |
d166f048 | 18482 | if test "$ac_cv_func_getpeername" = no; then |
f73dda09 | 18483 | |
ccc6cda3 JA |
18484 | if test "X$bash_cv_have_socklib" = "X"; then |
18485 | _bash_needmsg= | |
18486 | else | |
3185942a JA |
18487 | { $as_echo "$as_me:$LINENO: checking for socket library" >&5 |
18488 | $as_echo_n "checking for socket library... " >&6; } | |
ccc6cda3 JA |
18489 | _bash_needmsg=yes |
18490 | fi | |
f73dda09 | 18491 | if test "${bash_cv_have_socklib+set}" = set; then |
3185942a | 18492 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18493 | else |
3185942a JA |
18494 | { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5 |
18495 | $as_echo_n "checking for getpeername in -lsocket... " >&6; } | |
f73dda09 | 18496 | if test "${ac_cv_lib_socket_getpeername+set}" = set; then |
3185942a | 18497 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18498 | else |
f73dda09 | 18499 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 18500 | LIBS="-lsocket -lnsl $LIBS" |
f73dda09 | 18501 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18502 | /* confdefs.h. */ |
18503 | _ACEOF | |
18504 | cat confdefs.h >>conftest.$ac_ext | |
18505 | cat >>conftest.$ac_ext <<_ACEOF | |
18506 | /* end confdefs.h. */ | |
f73dda09 | 18507 | |
3185942a JA |
18508 | /* Override any GCC internal prototype to avoid an error. |
18509 | Use char because int might match the return type of a GCC | |
18510 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18511 | #ifdef __cplusplus |
18512 | extern "C" | |
18513 | #endif | |
f73dda09 JA |
18514 | char getpeername (); |
18515 | int | |
18516 | main () | |
18517 | { | |
3185942a | 18518 | return getpeername (); |
f73dda09 JA |
18519 | ; |
18520 | return 0; | |
18521 | } | |
18522 | _ACEOF | |
18523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18524 | if { (ac_try="$ac_link" |
18525 | case "(($ac_try" in | |
18526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18527 | *) ac_try_echo=$ac_try;; | |
18528 | esac | |
18529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18530 | $as_echo "$ac_try_echo") >&5 | |
18531 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18532 | ac_status=$? |
0628567a JA |
18533 | grep -v '^ *+' conftest.er1 >conftest.err |
18534 | rm -f conftest.er1 | |
18535 | cat conftest.err >&5 | |
3185942a JA |
18536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18537 | (exit $ac_status); } && { | |
18538 | test -z "$ac_c_werror_flag" || | |
18539 | test ! -s conftest.err | |
18540 | } && test -s conftest$ac_exeext && { | |
18541 | test "$cross_compiling" = yes || | |
18542 | $as_test_x conftest$ac_exeext | |
18543 | }; then | |
f73dda09 JA |
18544 | ac_cv_lib_socket_getpeername=yes |
18545 | else | |
3185942a | 18546 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18547 | sed 's/^/| /' conftest.$ac_ext >&5 |
18548 | ||
3185942a | 18549 | ac_cv_lib_socket_getpeername=no |
f73dda09 | 18550 | fi |
3185942a JA |
18551 | |
18552 | rm -rf conftest.dSYM | |
18553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18554 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18555 | LIBS=$ac_check_lib_save_LIBS |
18556 | fi | |
3185942a JA |
18557 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5 |
18558 | $as_echo "$ac_cv_lib_socket_getpeername" >&6; } | |
18559 | if test "x$ac_cv_lib_socket_getpeername" = x""yes; then | |
ccc6cda3 JA |
18560 | bash_cv_have_socklib=yes |
18561 | else | |
f73dda09 | 18562 | bash_cv_have_socklib=no |
ccc6cda3 JA |
18563 | fi |
18564 | ||
18565 | fi | |
18566 | ||
18567 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
18568 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5 |
18569 | $as_echo "$bash_cv_have_socklib" >&6; } | |
ccc6cda3 JA |
18570 | _bash_needmsg= |
18571 | fi | |
18572 | if test $bash_cv_have_socklib = yes; then | |
18573 | # check for libnsl, add it to LIBS if present | |
18574 | if test "X$bash_cv_have_libnsl" = "X"; then | |
18575 | _bash_needmsg= | |
18576 | else | |
3185942a JA |
18577 | { $as_echo "$as_me:$LINENO: checking for libnsl" >&5 |
18578 | $as_echo_n "checking for libnsl... " >&6; } | |
ccc6cda3 JA |
18579 | _bash_needmsg=yes |
18580 | fi | |
f73dda09 | 18581 | if test "${bash_cv_have_libnsl+set}" = set; then |
3185942a | 18582 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18583 | else |
3185942a JA |
18584 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
18585 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | |
f73dda09 | 18586 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
3185942a | 18587 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18588 | else |
f73dda09 | 18589 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 18590 | LIBS="-lnsl $LIBS" |
f73dda09 | 18591 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18592 | /* confdefs.h. */ |
18593 | _ACEOF | |
18594 | cat confdefs.h >>conftest.$ac_ext | |
18595 | cat >>conftest.$ac_ext <<_ACEOF | |
18596 | /* end confdefs.h. */ | |
f73dda09 | 18597 | |
3185942a JA |
18598 | /* Override any GCC internal prototype to avoid an error. |
18599 | Use char because int might match the return type of a GCC | |
18600 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18601 | #ifdef __cplusplus |
18602 | extern "C" | |
18603 | #endif | |
f73dda09 JA |
18604 | char t_open (); |
18605 | int | |
18606 | main () | |
18607 | { | |
3185942a | 18608 | return t_open (); |
f73dda09 JA |
18609 | ; |
18610 | return 0; | |
18611 | } | |
18612 | _ACEOF | |
18613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18614 | if { (ac_try="$ac_link" |
18615 | case "(($ac_try" in | |
18616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18617 | *) ac_try_echo=$ac_try;; | |
18618 | esac | |
18619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18620 | $as_echo "$ac_try_echo") >&5 | |
18621 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18622 | ac_status=$? |
0628567a JA |
18623 | grep -v '^ *+' conftest.er1 >conftest.err |
18624 | rm -f conftest.er1 | |
18625 | cat conftest.err >&5 | |
3185942a JA |
18626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18627 | (exit $ac_status); } && { | |
18628 | test -z "$ac_c_werror_flag" || | |
18629 | test ! -s conftest.err | |
18630 | } && test -s conftest$ac_exeext && { | |
18631 | test "$cross_compiling" = yes || | |
18632 | $as_test_x conftest$ac_exeext | |
18633 | }; then | |
f73dda09 JA |
18634 | ac_cv_lib_nsl_t_open=yes |
18635 | else | |
3185942a | 18636 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18637 | sed 's/^/| /' conftest.$ac_ext >&5 |
18638 | ||
3185942a | 18639 | ac_cv_lib_nsl_t_open=no |
f73dda09 | 18640 | fi |
3185942a JA |
18641 | |
18642 | rm -rf conftest.dSYM | |
18643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18644 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18645 | LIBS=$ac_check_lib_save_LIBS |
18646 | fi | |
3185942a JA |
18647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
18648 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | |
18649 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then | |
ccc6cda3 JA |
18650 | bash_cv_have_libnsl=yes |
18651 | else | |
f73dda09 | 18652 | bash_cv_have_libnsl=no |
ccc6cda3 JA |
18653 | fi |
18654 | ||
18655 | fi | |
18656 | ||
18657 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
18658 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5 |
18659 | $as_echo "$bash_cv_have_libnsl" >&6; } | |
ccc6cda3 JA |
18660 | _bash_needmsg= |
18661 | fi | |
18662 | if test $bash_cv_have_libnsl = yes; then | |
18663 | LIBS="-lsocket -lnsl $LIBS" | |
18664 | else | |
18665 | LIBS="-lsocket $LIBS" | |
18666 | fi | |
b80f6443 | 18667 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 18668 | #define HAVE_LIBSOCKET 1 |
b80f6443 | 18669 | _ACEOF |
ccc6cda3 | 18670 | |
b80f6443 | 18671 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 18672 | #define HAVE_GETPEERNAME 1 |
b80f6443 | 18673 | _ACEOF |
ccc6cda3 JA |
18674 | |
18675 | fi | |
18676 | ||
bb70624e JA |
18677 | fi |
18678 | if test "$ac_cv_func_gethostbyname" = no; then | |
18679 | if test "X$bash_cv_have_gethostbyname" = "X"; then | |
18680 | _bash_needmsg=yes | |
18681 | else | |
3185942a JA |
18682 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
18683 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
bb70624e JA |
18684 | _bash_needmsg= |
18685 | fi | |
f73dda09 | 18686 | if test "${bash_cv_have_gethostbyname+set}" = set; then |
3185942a | 18687 | $as_echo_n "(cached) " >&6 |
bb70624e | 18688 | else |
f73dda09 | 18689 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18690 | /* confdefs.h. */ |
18691 | _ACEOF | |
18692 | cat confdefs.h >>conftest.$ac_ext | |
18693 | cat >>conftest.$ac_ext <<_ACEOF | |
18694 | /* end confdefs.h. */ | |
bb70624e | 18695 | #include <netdb.h> |
f73dda09 JA |
18696 | int |
18697 | main () | |
18698 | { | |
bb70624e JA |
18699 | struct hostent *hp; |
18700 | hp = gethostbyname("localhost"); | |
18701 | ||
f73dda09 JA |
18702 | ; |
18703 | return 0; | |
18704 | } | |
18705 | _ACEOF | |
18706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18707 | if { (ac_try="$ac_link" |
18708 | case "(($ac_try" in | |
18709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18710 | *) ac_try_echo=$ac_try;; | |
18711 | esac | |
18712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18713 | $as_echo "$ac_try_echo") >&5 | |
18714 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18715 | ac_status=$? |
0628567a JA |
18716 | grep -v '^ *+' conftest.er1 >conftest.err |
18717 | rm -f conftest.er1 | |
18718 | cat conftest.err >&5 | |
3185942a JA |
18719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18720 | (exit $ac_status); } && { | |
18721 | test -z "$ac_c_werror_flag" || | |
18722 | test ! -s conftest.err | |
18723 | } && test -s conftest$ac_exeext && { | |
18724 | test "$cross_compiling" = yes || | |
18725 | $as_test_x conftest$ac_exeext | |
18726 | }; then | |
bb70624e JA |
18727 | bash_cv_have_gethostbyname=yes |
18728 | else | |
3185942a | 18729 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18730 | sed 's/^/| /' conftest.$ac_ext >&5 |
18731 | ||
3185942a | 18732 | bash_cv_have_gethostbyname=no |
f73dda09 | 18733 | fi |
3185942a JA |
18734 | |
18735 | rm -rf conftest.dSYM | |
18736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18737 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18738 | |
18739 | fi | |
18740 | ||
18741 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
18742 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
18743 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
f73dda09 | 18744 | fi |
3185942a JA |
18745 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5 |
18746 | $as_echo "$bash_cv_have_gethostbyname" >&6; } | |
f73dda09 | 18747 | if test "$bash_cv_have_gethostbyname" = yes; then |
b80f6443 | 18748 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 18749 | #define HAVE_GETHOSTBYNAME 1 |
b80f6443 | 18750 | _ACEOF |
f73dda09 JA |
18751 | |
18752 | fi | |
18753 | ||
18754 | fi | |
18755 | ||
3185942a JA |
18756 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
18757 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
f73dda09 | 18758 | if test "${ac_cv_type_uid_t+set}" = set; then |
3185942a | 18759 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
18760 | else |
18761 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18762 | /* confdefs.h. */ |
18763 | _ACEOF | |
18764 | cat confdefs.h >>conftest.$ac_ext | |
18765 | cat >>conftest.$ac_ext <<_ACEOF | |
18766 | /* end confdefs.h. */ | |
f73dda09 JA |
18767 | #include <sys/types.h> |
18768 | ||
18769 | _ACEOF | |
18770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 18771 | $EGREP "uid_t" >/dev/null 2>&1; then |
f73dda09 JA |
18772 | ac_cv_type_uid_t=yes |
18773 | else | |
18774 | ac_cv_type_uid_t=no | |
18775 | fi | |
18776 | rm -f conftest* | |
18777 | ||
18778 | fi | |
3185942a JA |
18779 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
18780 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
f73dda09 JA |
18781 | if test $ac_cv_type_uid_t = no; then |
18782 | ||
b80f6443 | 18783 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 18784 | #define uid_t int |
b80f6443 JA |
18785 | _ACEOF |
18786 | ||
f73dda09 | 18787 | |
b80f6443 | 18788 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 18789 | #define gid_t int |
b80f6443 | 18790 | _ACEOF |
f73dda09 JA |
18791 | |
18792 | fi | |
18793 | ||
3185942a JA |
18794 | { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
18795 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
f73dda09 | 18796 | if test "${ac_cv_type_getgroups+set}" = set; then |
3185942a | 18797 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
18798 | else |
18799 | if test "$cross_compiling" = yes; then | |
18800 | ac_cv_type_getgroups=cross | |
18801 | else | |
18802 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18803 | /* confdefs.h. */ |
18804 | _ACEOF | |
18805 | cat confdefs.h >>conftest.$ac_ext | |
18806 | cat >>conftest.$ac_ext <<_ACEOF | |
18807 | /* end confdefs.h. */ | |
f73dda09 | 18808 | /* Thanks to Mike Rendell for this test. */ |
3185942a | 18809 | $ac_includes_default |
f73dda09 JA |
18810 | #define NGID 256 |
18811 | #undef MAX | |
18812 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
18813 | ||
18814 | int | |
18815 | main () | |
18816 | { | |
18817 | gid_t gidset[NGID]; | |
18818 | int i, n; | |
3185942a | 18819 | union { gid_t gval; long int lval; } val; |
f73dda09 JA |
18820 | |
18821 | val.lval = -1; | |
18822 | for (i = 0; i < NGID; i++) | |
18823 | gidset[i] = val.gval; | |
18824 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
0628567a | 18825 | gidset); |
f73dda09 | 18826 | /* Exit non-zero if getgroups seems to require an array of ints. This |
3185942a JA |
18827 | happens when gid_t is short int but getgroups modifies an array |
18828 | of ints. */ | |
18829 | return n > 0 && gidset[n] != val.gval; | |
f73dda09 JA |
18830 | } |
18831 | _ACEOF | |
18832 | rm -f conftest$ac_exeext | |
3185942a JA |
18833 | if { (ac_try="$ac_link" |
18834 | case "(($ac_try" in | |
18835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18836 | *) ac_try_echo=$ac_try;; | |
18837 | esac | |
18838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18839 | $as_echo "$ac_try_echo") >&5 | |
18840 | (eval "$ac_link") 2>&5 | |
f73dda09 | 18841 | ac_status=$? |
3185942a | 18842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 18843 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
18844 | { (case "(($ac_try" in |
18845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18846 | *) ac_try_echo=$ac_try;; | |
18847 | esac | |
18848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18849 | $as_echo "$ac_try_echo") >&5 | |
18850 | (eval "$ac_try") 2>&5 | |
f73dda09 | 18851 | ac_status=$? |
3185942a | 18852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
18853 | (exit $ac_status); }; }; then |
18854 | ac_cv_type_getgroups=gid_t | |
18855 | else | |
3185942a JA |
18856 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
18857 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
18858 | sed 's/^/| /' conftest.$ac_ext >&5 |
18859 | ||
b80f6443 | 18860 | ( exit $ac_status ) |
f73dda09 JA |
18861 | ac_cv_type_getgroups=int |
18862 | fi | |
3185942a JA |
18863 | rm -rf conftest.dSYM |
18864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 18865 | fi |
3185942a JA |
18866 | |
18867 | ||
f73dda09 JA |
18868 | if test $ac_cv_type_getgroups = cross; then |
18869 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18870 | /* confdefs.h. */ |
18871 | _ACEOF | |
18872 | cat confdefs.h >>conftest.$ac_ext | |
18873 | cat >>conftest.$ac_ext <<_ACEOF | |
18874 | /* end confdefs.h. */ | |
f73dda09 JA |
18875 | #include <unistd.h> |
18876 | ||
18877 | _ACEOF | |
18878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 18879 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
f73dda09 JA |
18880 | ac_cv_type_getgroups=gid_t |
18881 | else | |
18882 | ac_cv_type_getgroups=int | |
bb70624e JA |
18883 | fi |
18884 | rm -f conftest* | |
18885 | ||
18886 | fi | |
f73dda09 | 18887 | fi |
3185942a JA |
18888 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
18889 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
f73dda09 | 18890 | |
b80f6443 | 18891 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18892 | #define GETGROUPS_T $ac_cv_type_getgroups |
b80f6443 JA |
18893 | _ACEOF |
18894 | ||
f73dda09 | 18895 | |
3185942a JA |
18896 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
18897 | $as_echo_n "checking for off_t... " >&6; } | |
f73dda09 | 18898 | if test "${ac_cv_type_off_t+set}" = set; then |
3185942a | 18899 | $as_echo_n "(cached) " >&6 |
f73dda09 | 18900 | else |
3185942a JA |
18901 | ac_cv_type_off_t=no |
18902 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18903 | /* confdefs.h. */ |
18904 | _ACEOF | |
18905 | cat confdefs.h >>conftest.$ac_ext | |
18906 | cat >>conftest.$ac_ext <<_ACEOF | |
18907 | /* end confdefs.h. */ | |
f73dda09 JA |
18908 | $ac_includes_default |
18909 | int | |
18910 | main () | |
18911 | { | |
f73dda09 | 18912 | if (sizeof (off_t)) |
3185942a | 18913 | return 0; |
f73dda09 JA |
18914 | ; |
18915 | return 0; | |
18916 | } | |
18917 | _ACEOF | |
18918 | rm -f conftest.$ac_objext | |
3185942a JA |
18919 | if { (ac_try="$ac_compile" |
18920 | case "(($ac_try" in | |
18921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18922 | *) ac_try_echo=$ac_try;; | |
18923 | esac | |
18924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18925 | $as_echo "$ac_try_echo") >&5 | |
18926 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 18927 | ac_status=$? |
0628567a JA |
18928 | grep -v '^ *+' conftest.er1 >conftest.err |
18929 | rm -f conftest.er1 | |
18930 | cat conftest.err >&5 | |
3185942a JA |
18931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18932 | (exit $ac_status); } && { | |
18933 | test -z "$ac_c_werror_flag" || | |
18934 | test ! -s conftest.err | |
18935 | } && test -s conftest.$ac_objext; then | |
18936 | cat >conftest.$ac_ext <<_ACEOF | |
18937 | /* confdefs.h. */ | |
18938 | _ACEOF | |
18939 | cat confdefs.h >>conftest.$ac_ext | |
18940 | cat >>conftest.$ac_ext <<_ACEOF | |
18941 | /* end confdefs.h. */ | |
18942 | $ac_includes_default | |
18943 | int | |
18944 | main () | |
18945 | { | |
18946 | if (sizeof ((off_t))) | |
18947 | return 0; | |
18948 | ; | |
18949 | return 0; | |
18950 | } | |
18951 | _ACEOF | |
18952 | rm -f conftest.$ac_objext | |
18953 | if { (ac_try="$ac_compile" | |
18954 | case "(($ac_try" in | |
18955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18956 | *) ac_try_echo=$ac_try;; | |
18957 | esac | |
18958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18959 | $as_echo "$ac_try_echo") >&5 | |
18960 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 18961 | ac_status=$? |
3185942a JA |
18962 | grep -v '^ *+' conftest.er1 >conftest.err |
18963 | rm -f conftest.er1 | |
18964 | cat conftest.err >&5 | |
18965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18966 | (exit $ac_status); } && { | |
18967 | test -z "$ac_c_werror_flag" || | |
18968 | test ! -s conftest.err | |
18969 | } && test -s conftest.$ac_objext; then | |
18970 | : | |
f73dda09 | 18971 | else |
3185942a | 18972 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18973 | sed 's/^/| /' conftest.$ac_ext >&5 |
18974 | ||
3185942a | 18975 | ac_cv_type_off_t=yes |
f73dda09 | 18976 | fi |
3185942a JA |
18977 | |
18978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18979 | else | |
18980 | $as_echo "$as_me: failed program was:" >&5 | |
18981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18982 | ||
18983 | ||
18984 | fi | |
18985 | ||
18986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 18987 | fi |
3185942a JA |
18988 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
18989 | $as_echo "$ac_cv_type_off_t" >&6; } | |
18990 | if test "x$ac_cv_type_off_t" = x""yes; then | |
f73dda09 JA |
18991 | : |
18992 | else | |
18993 | ||
b80f6443 | 18994 | cat >>confdefs.h <<_ACEOF |
3185942a | 18995 | #define off_t long int |
b80f6443 | 18996 | _ACEOF |
f73dda09 JA |
18997 | |
18998 | fi | |
18999 | ||
3185942a JA |
19000 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
19001 | $as_echo_n "checking for mode_t... " >&6; } | |
f73dda09 | 19002 | if test "${ac_cv_type_mode_t+set}" = set; then |
3185942a | 19003 | $as_echo_n "(cached) " >&6 |
f73dda09 | 19004 | else |
3185942a JA |
19005 | ac_cv_type_mode_t=no |
19006 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19007 | /* confdefs.h. */ |
19008 | _ACEOF | |
19009 | cat confdefs.h >>conftest.$ac_ext | |
19010 | cat >>conftest.$ac_ext <<_ACEOF | |
19011 | /* end confdefs.h. */ | |
f73dda09 JA |
19012 | $ac_includes_default |
19013 | int | |
19014 | main () | |
19015 | { | |
f73dda09 | 19016 | if (sizeof (mode_t)) |
3185942a | 19017 | return 0; |
f73dda09 JA |
19018 | ; |
19019 | return 0; | |
19020 | } | |
19021 | _ACEOF | |
19022 | rm -f conftest.$ac_objext | |
3185942a JA |
19023 | if { (ac_try="$ac_compile" |
19024 | case "(($ac_try" in | |
19025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19026 | *) ac_try_echo=$ac_try;; | |
19027 | esac | |
19028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19029 | $as_echo "$ac_try_echo") >&5 | |
19030 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19031 | ac_status=$? |
0628567a JA |
19032 | grep -v '^ *+' conftest.er1 >conftest.err |
19033 | rm -f conftest.er1 | |
19034 | cat conftest.err >&5 | |
3185942a JA |
19035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19036 | (exit $ac_status); } && { | |
19037 | test -z "$ac_c_werror_flag" || | |
19038 | test ! -s conftest.err | |
19039 | } && test -s conftest.$ac_objext; then | |
19040 | cat >conftest.$ac_ext <<_ACEOF | |
19041 | /* confdefs.h. */ | |
19042 | _ACEOF | |
19043 | cat confdefs.h >>conftest.$ac_ext | |
19044 | cat >>conftest.$ac_ext <<_ACEOF | |
19045 | /* end confdefs.h. */ | |
19046 | $ac_includes_default | |
19047 | int | |
19048 | main () | |
19049 | { | |
19050 | if (sizeof ((mode_t))) | |
19051 | return 0; | |
19052 | ; | |
19053 | return 0; | |
19054 | } | |
19055 | _ACEOF | |
19056 | rm -f conftest.$ac_objext | |
19057 | if { (ac_try="$ac_compile" | |
19058 | case "(($ac_try" in | |
19059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19060 | *) ac_try_echo=$ac_try;; | |
19061 | esac | |
19062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19063 | $as_echo "$ac_try_echo") >&5 | |
19064 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19065 | ac_status=$? |
3185942a JA |
19066 | grep -v '^ *+' conftest.er1 >conftest.err |
19067 | rm -f conftest.er1 | |
19068 | cat conftest.err >&5 | |
19069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19070 | (exit $ac_status); } && { | |
19071 | test -z "$ac_c_werror_flag" || | |
19072 | test ! -s conftest.err | |
19073 | } && test -s conftest.$ac_objext; then | |
19074 | : | |
19075 | else | |
19076 | $as_echo "$as_me: failed program was:" >&5 | |
19077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19078 | ||
19079 | ac_cv_type_mode_t=yes | |
19080 | fi | |
19081 | ||
19082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19083 | else |
3185942a | 19084 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19085 | sed 's/^/| /' conftest.$ac_ext >&5 |
19086 | ||
3185942a | 19087 | |
f73dda09 | 19088 | fi |
3185942a JA |
19089 | |
19090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19091 | fi |
3185942a JA |
19092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
19093 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
19094 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
f73dda09 JA |
19095 | : |
19096 | else | |
bb70624e | 19097 | |
b80f6443 | 19098 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19099 | #define mode_t int |
b80f6443 | 19100 | _ACEOF |
bb70624e JA |
19101 | |
19102 | fi | |
19103 | ||
3185942a JA |
19104 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19105 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
f73dda09 | 19106 | if test "${ac_cv_type_uid_t+set}" = set; then |
3185942a | 19107 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19108 | else |
f73dda09 | 19109 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19110 | /* confdefs.h. */ |
19111 | _ACEOF | |
19112 | cat confdefs.h >>conftest.$ac_ext | |
19113 | cat >>conftest.$ac_ext <<_ACEOF | |
19114 | /* end confdefs.h. */ | |
ccc6cda3 | 19115 | #include <sys/types.h> |
f73dda09 JA |
19116 | |
19117 | _ACEOF | |
ccc6cda3 | 19118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 19119 | $EGREP "uid_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
19120 | ac_cv_type_uid_t=yes |
19121 | else | |
ccc6cda3 JA |
19122 | ac_cv_type_uid_t=no |
19123 | fi | |
19124 | rm -f conftest* | |
19125 | ||
19126 | fi | |
3185942a JA |
19127 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19128 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
ccc6cda3 | 19129 | if test $ac_cv_type_uid_t = no; then |
f73dda09 | 19130 | |
b80f6443 | 19131 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 19132 | #define uid_t int |
b80f6443 | 19133 | _ACEOF |
ccc6cda3 | 19134 | |
b80f6443 JA |
19135 | |
19136 | cat >>confdefs.h <<\_ACEOF | |
ccc6cda3 | 19137 | #define gid_t int |
b80f6443 | 19138 | _ACEOF |
ccc6cda3 JA |
19139 | |
19140 | fi | |
19141 | ||
3185942a JA |
19142 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
19143 | $as_echo_n "checking for pid_t... " >&6; } | |
f73dda09 | 19144 | if test "${ac_cv_type_pid_t+set}" = set; then |
3185942a | 19145 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19146 | else |
3185942a JA |
19147 | ac_cv_type_pid_t=no |
19148 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19149 | /* confdefs.h. */ |
19150 | _ACEOF | |
19151 | cat confdefs.h >>conftest.$ac_ext | |
19152 | cat >>conftest.$ac_ext <<_ACEOF | |
19153 | /* end confdefs.h. */ | |
f73dda09 JA |
19154 | $ac_includes_default |
19155 | int | |
19156 | main () | |
ccc6cda3 | 19157 | { |
f73dda09 | 19158 | if (sizeof (pid_t)) |
3185942a | 19159 | return 0; |
f73dda09 JA |
19160 | ; |
19161 | return 0; | |
ccc6cda3 | 19162 | } |
f73dda09 JA |
19163 | _ACEOF |
19164 | rm -f conftest.$ac_objext | |
3185942a JA |
19165 | if { (ac_try="$ac_compile" |
19166 | case "(($ac_try" in | |
19167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19168 | *) ac_try_echo=$ac_try;; | |
19169 | esac | |
19170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19171 | $as_echo "$ac_try_echo") >&5 | |
19172 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19173 | ac_status=$? |
0628567a JA |
19174 | grep -v '^ *+' conftest.er1 >conftest.err |
19175 | rm -f conftest.er1 | |
19176 | cat conftest.err >&5 | |
3185942a JA |
19177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19178 | (exit $ac_status); } && { | |
19179 | test -z "$ac_c_werror_flag" || | |
19180 | test ! -s conftest.err | |
19181 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 19182 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19183 | /* confdefs.h. */ |
19184 | _ACEOF | |
19185 | cat confdefs.h >>conftest.$ac_ext | |
19186 | cat >>conftest.$ac_ext <<_ACEOF | |
19187 | /* end confdefs.h. */ | |
f73dda09 JA |
19188 | $ac_includes_default |
19189 | int | |
19190 | main () | |
19191 | { | |
3185942a JA |
19192 | if (sizeof ((pid_t))) |
19193 | return 0; | |
f73dda09 JA |
19194 | ; |
19195 | return 0; | |
19196 | } | |
19197 | _ACEOF | |
19198 | rm -f conftest.$ac_objext | |
3185942a JA |
19199 | if { (ac_try="$ac_compile" |
19200 | case "(($ac_try" in | |
19201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19202 | *) ac_try_echo=$ac_try;; | |
19203 | esac | |
19204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19205 | $as_echo "$ac_try_echo") >&5 | |
19206 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19207 | ac_status=$? |
0628567a JA |
19208 | grep -v '^ *+' conftest.er1 >conftest.err |
19209 | rm -f conftest.er1 | |
19210 | cat conftest.err >&5 | |
3185942a JA |
19211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19212 | (exit $ac_status); } && { | |
19213 | test -z "$ac_c_werror_flag" || | |
19214 | test ! -s conftest.err | |
19215 | } && test -s conftest.$ac_objext; then | |
19216 | : | |
19217 | else | |
19218 | $as_echo "$as_me: failed program was:" >&5 | |
19219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19220 | ||
19221 | ac_cv_type_pid_t=yes | |
19222 | fi | |
19223 | ||
19224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19225 | else |
3185942a | 19226 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19227 | sed 's/^/| /' conftest.$ac_ext >&5 |
19228 | ||
3185942a | 19229 | |
ccc6cda3 | 19230 | fi |
3185942a JA |
19231 | |
19232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 19233 | fi |
3185942a JA |
19234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19235 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
19236 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
f73dda09 JA |
19237 | : |
19238 | else | |
ccc6cda3 | 19239 | |
b80f6443 | 19240 | cat >>confdefs.h <<_ACEOF |
3185942a | 19241 | #define pid_t int |
b80f6443 | 19242 | _ACEOF |
ccc6cda3 | 19243 | |
f73dda09 | 19244 | fi |
ccc6cda3 | 19245 | |
3185942a JA |
19246 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
19247 | $as_echo_n "checking for size_t... " >&6; } | |
19248 | if test "${ac_cv_type_size_t+set}" = set; then | |
19249 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 19250 | else |
3185942a JA |
19251 | ac_cv_type_size_t=no |
19252 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19253 | /* confdefs.h. */ |
19254 | _ACEOF | |
19255 | cat confdefs.h >>conftest.$ac_ext | |
19256 | cat >>conftest.$ac_ext <<_ACEOF | |
19257 | /* end confdefs.h. */ | |
f73dda09 JA |
19258 | $ac_includes_default |
19259 | int | |
19260 | main () | |
19261 | { | |
3185942a JA |
19262 | if (sizeof (size_t)) |
19263 | return 0; | |
f73dda09 JA |
19264 | ; |
19265 | return 0; | |
19266 | } | |
19267 | _ACEOF | |
19268 | rm -f conftest.$ac_objext | |
3185942a JA |
19269 | if { (ac_try="$ac_compile" |
19270 | case "(($ac_try" in | |
19271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19272 | *) ac_try_echo=$ac_try;; | |
19273 | esac | |
19274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19275 | $as_echo "$ac_try_echo") >&5 | |
19276 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19277 | ac_status=$? |
0628567a JA |
19278 | grep -v '^ *+' conftest.er1 >conftest.err |
19279 | rm -f conftest.er1 | |
19280 | cat conftest.err >&5 | |
3185942a JA |
19281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19282 | (exit $ac_status); } && { | |
19283 | test -z "$ac_c_werror_flag" || | |
19284 | test ! -s conftest.err | |
19285 | } && test -s conftest.$ac_objext; then | |
19286 | cat >conftest.$ac_ext <<_ACEOF | |
19287 | /* confdefs.h. */ | |
19288 | _ACEOF | |
19289 | cat confdefs.h >>conftest.$ac_ext | |
19290 | cat >>conftest.$ac_ext <<_ACEOF | |
19291 | /* end confdefs.h. */ | |
19292 | $ac_includes_default | |
19293 | int | |
19294 | main () | |
19295 | { | |
19296 | if (sizeof ((size_t))) | |
19297 | return 0; | |
19298 | ; | |
19299 | return 0; | |
19300 | } | |
19301 | _ACEOF | |
19302 | rm -f conftest.$ac_objext | |
19303 | if { (ac_try="$ac_compile" | |
19304 | case "(($ac_try" in | |
19305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19306 | *) ac_try_echo=$ac_try;; | |
19307 | esac | |
19308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19309 | $as_echo "$ac_try_echo") >&5 | |
19310 | (eval "$ac_compile") 2>conftest.er1 | |
19311 | ac_status=$? | |
19312 | grep -v '^ *+' conftest.er1 >conftest.err | |
19313 | rm -f conftest.er1 | |
19314 | cat conftest.err >&5 | |
19315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19316 | (exit $ac_status); } && { | |
19317 | test -z "$ac_c_werror_flag" || | |
19318 | test ! -s conftest.err | |
19319 | } && test -s conftest.$ac_objext; then | |
19320 | : | |
19321 | else | |
19322 | $as_echo "$as_me: failed program was:" >&5 | |
19323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19324 | ||
19325 | ac_cv_type_size_t=yes | |
f73dda09 | 19326 | fi |
3185942a JA |
19327 | |
19328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19329 | else | |
19330 | $as_echo "$as_me: failed program was:" >&5 | |
19331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19332 | ||
19333 | ||
19334 | fi | |
19335 | ||
19336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19337 | fi |
3185942a JA |
19338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
19339 | $as_echo "$ac_cv_type_size_t" >&6; } | |
19340 | if test "x$ac_cv_type_size_t" = x""yes; then | |
f73dda09 | 19341 | : |
ccc6cda3 | 19342 | else |
ccc6cda3 | 19343 | |
b80f6443 | 19344 | cat >>confdefs.h <<_ACEOF |
3185942a | 19345 | #define size_t unsigned int |
b80f6443 | 19346 | _ACEOF |
ccc6cda3 JA |
19347 | |
19348 | fi | |
19349 | ||
3185942a JA |
19350 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
19351 | $as_echo_n "checking for ssize_t... " >&6; } | |
19352 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
19353 | $as_echo_n "(cached) " >&6 | |
f73dda09 | 19354 | else |
3185942a JA |
19355 | ac_cv_type_ssize_t=no |
19356 | cat >conftest.$ac_ext <<_ACEOF | |
19357 | /* confdefs.h. */ | |
19358 | _ACEOF | |
19359 | cat confdefs.h >>conftest.$ac_ext | |
19360 | cat >>conftest.$ac_ext <<_ACEOF | |
19361 | /* end confdefs.h. */ | |
19362 | $ac_includes_default | |
19363 | int | |
19364 | main () | |
19365 | { | |
19366 | if (sizeof (ssize_t)) | |
19367 | return 0; | |
19368 | ; | |
19369 | return 0; | |
19370 | } | |
19371 | _ACEOF | |
19372 | rm -f conftest.$ac_objext | |
19373 | if { (ac_try="$ac_compile" | |
19374 | case "(($ac_try" in | |
19375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19376 | *) ac_try_echo=$ac_try;; | |
19377 | esac | |
19378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19379 | $as_echo "$ac_try_echo") >&5 | |
19380 | (eval "$ac_compile") 2>conftest.er1 | |
19381 | ac_status=$? | |
19382 | grep -v '^ *+' conftest.er1 >conftest.err | |
19383 | rm -f conftest.er1 | |
19384 | cat conftest.err >&5 | |
19385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19386 | (exit $ac_status); } && { | |
19387 | test -z "$ac_c_werror_flag" || | |
19388 | test ! -s conftest.err | |
19389 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 19390 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19391 | /* confdefs.h. */ |
19392 | _ACEOF | |
19393 | cat confdefs.h >>conftest.$ac_ext | |
19394 | cat >>conftest.$ac_ext <<_ACEOF | |
19395 | /* end confdefs.h. */ | |
f73dda09 JA |
19396 | $ac_includes_default |
19397 | int | |
19398 | main () | |
19399 | { | |
3185942a JA |
19400 | if (sizeof ((ssize_t))) |
19401 | return 0; | |
19402 | ; | |
f73dda09 | 19403 | return 0; |
3185942a JA |
19404 | } |
19405 | _ACEOF | |
19406 | rm -f conftest.$ac_objext | |
19407 | if { (ac_try="$ac_compile" | |
19408 | case "(($ac_try" in | |
19409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19410 | *) ac_try_echo=$ac_try;; | |
19411 | esac | |
19412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19413 | $as_echo "$ac_try_echo") >&5 | |
19414 | (eval "$ac_compile") 2>conftest.er1 | |
19415 | ac_status=$? | |
19416 | grep -v '^ *+' conftest.er1 >conftest.err | |
19417 | rm -f conftest.er1 | |
19418 | cat conftest.err >&5 | |
19419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19420 | (exit $ac_status); } && { | |
19421 | test -z "$ac_c_werror_flag" || | |
19422 | test ! -s conftest.err | |
19423 | } && test -s conftest.$ac_objext; then | |
19424 | : | |
19425 | else | |
19426 | $as_echo "$as_me: failed program was:" >&5 | |
19427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19428 | ||
19429 | ac_cv_type_ssize_t=yes | |
19430 | fi | |
19431 | ||
19432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19433 | else | |
19434 | $as_echo "$as_me: failed program was:" >&5 | |
19435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19436 | ||
19437 | ||
19438 | fi | |
19439 | ||
19440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19441 | fi | |
19442 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
19443 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
19444 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
19445 | : | |
19446 | else | |
19447 | ||
19448 | cat >>confdefs.h <<_ACEOF | |
19449 | #define ssize_t int | |
19450 | _ACEOF | |
19451 | ||
19452 | fi | |
19453 | ||
19454 | { $as_echo "$as_me:$LINENO: checking for time_t" >&5 | |
19455 | $as_echo_n "checking for time_t... " >&6; } | |
19456 | if test "${ac_cv_type_time_t+set}" = set; then | |
19457 | $as_echo_n "(cached) " >&6 | |
19458 | else | |
19459 | ac_cv_type_time_t=no | |
19460 | cat >conftest.$ac_ext <<_ACEOF | |
19461 | /* confdefs.h. */ | |
19462 | _ACEOF | |
19463 | cat confdefs.h >>conftest.$ac_ext | |
19464 | cat >>conftest.$ac_ext <<_ACEOF | |
19465 | /* end confdefs.h. */ | |
19466 | $ac_includes_default | |
19467 | int | |
19468 | main () | |
19469 | { | |
f73dda09 | 19470 | if (sizeof (time_t)) |
3185942a | 19471 | return 0; |
f73dda09 JA |
19472 | ; |
19473 | return 0; | |
19474 | } | |
19475 | _ACEOF | |
19476 | rm -f conftest.$ac_objext | |
3185942a JA |
19477 | if { (ac_try="$ac_compile" |
19478 | case "(($ac_try" in | |
19479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19480 | *) ac_try_echo=$ac_try;; | |
19481 | esac | |
19482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19483 | $as_echo "$ac_try_echo") >&5 | |
19484 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19485 | ac_status=$? |
0628567a JA |
19486 | grep -v '^ *+' conftest.er1 >conftest.err |
19487 | rm -f conftest.er1 | |
19488 | cat conftest.err >&5 | |
3185942a JA |
19489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19490 | (exit $ac_status); } && { | |
19491 | test -z "$ac_c_werror_flag" || | |
19492 | test ! -s conftest.err | |
19493 | } && test -s conftest.$ac_objext; then | |
19494 | cat >conftest.$ac_ext <<_ACEOF | |
19495 | /* confdefs.h. */ | |
19496 | _ACEOF | |
19497 | cat confdefs.h >>conftest.$ac_ext | |
19498 | cat >>conftest.$ac_ext <<_ACEOF | |
19499 | /* end confdefs.h. */ | |
19500 | $ac_includes_default | |
19501 | int | |
19502 | main () | |
19503 | { | |
19504 | if (sizeof ((time_t))) | |
19505 | return 0; | |
19506 | ; | |
19507 | return 0; | |
19508 | } | |
19509 | _ACEOF | |
19510 | rm -f conftest.$ac_objext | |
19511 | if { (ac_try="$ac_compile" | |
19512 | case "(($ac_try" in | |
19513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19514 | *) ac_try_echo=$ac_try;; | |
19515 | esac | |
19516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19517 | $as_echo "$ac_try_echo") >&5 | |
19518 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19519 | ac_status=$? |
3185942a JA |
19520 | grep -v '^ *+' conftest.er1 >conftest.err |
19521 | rm -f conftest.er1 | |
19522 | cat conftest.err >&5 | |
19523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19524 | (exit $ac_status); } && { | |
19525 | test -z "$ac_c_werror_flag" || | |
19526 | test ! -s conftest.err | |
19527 | } && test -s conftest.$ac_objext; then | |
19528 | : | |
19529 | else | |
19530 | $as_echo "$as_me: failed program was:" >&5 | |
19531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19532 | ||
19533 | ac_cv_type_time_t=yes | |
19534 | fi | |
19535 | ||
19536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 19537 | else |
3185942a | 19538 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19539 | sed 's/^/| /' conftest.$ac_ext >&5 |
19540 | ||
3185942a | 19541 | |
ccc6cda3 | 19542 | fi |
3185942a JA |
19543 | |
19544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19545 | fi |
3185942a JA |
19546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
19547 | $as_echo "$ac_cv_type_time_t" >&6; } | |
19548 | if test "x$ac_cv_type_time_t" = x""yes; then | |
f73dda09 JA |
19549 | : |
19550 | else | |
19551 | ||
b80f6443 | 19552 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19553 | #define time_t long |
b80f6443 | 19554 | _ACEOF |
ccc6cda3 JA |
19555 | |
19556 | fi | |
19557 | ||
b80f6443 JA |
19558 | |
19559 | ||
3185942a JA |
19560 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
19561 | $as_echo_n "checking for long long... " >&6; } | |
f73dda09 | 19562 | if test "${bash_cv_type_long_long+set}" = set; then |
3185942a | 19563 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19564 | else |
f73dda09 | 19565 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19566 | /* confdefs.h. */ |
19567 | _ACEOF | |
19568 | cat confdefs.h >>conftest.$ac_ext | |
19569 | cat >>conftest.$ac_ext <<_ACEOF | |
19570 | /* end confdefs.h. */ | |
ccc6cda3 | 19571 | |
f73dda09 JA |
19572 | long long ll = 1; int i = 63; |
19573 | int | |
19574 | main () | |
19575 | { | |
19576 | ||
19577 | long long llm = (long long) -1; | |
19578 | return ll << i | ll >> i | llm / ll | llm % ll; | |
19579 | ||
19580 | ; | |
19581 | return 0; | |
19582 | } | |
19583 | _ACEOF | |
19584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19585 | if { (ac_try="$ac_link" |
19586 | case "(($ac_try" in | |
19587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19588 | *) ac_try_echo=$ac_try;; | |
19589 | esac | |
19590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19591 | $as_echo "$ac_try_echo") >&5 | |
19592 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19593 | ac_status=$? |
0628567a JA |
19594 | grep -v '^ *+' conftest.er1 >conftest.err |
19595 | rm -f conftest.er1 | |
19596 | cat conftest.err >&5 | |
3185942a JA |
19597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19598 | (exit $ac_status); } && { | |
19599 | test -z "$ac_c_werror_flag" || | |
19600 | test ! -s conftest.err | |
19601 | } && test -s conftest$ac_exeext && { | |
19602 | test "$cross_compiling" = yes || | |
19603 | $as_test_x conftest$ac_exeext | |
19604 | }; then | |
f73dda09 | 19605 | bash_cv_type_long_long='long long' |
ccc6cda3 | 19606 | else |
3185942a | 19607 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19608 | sed 's/^/| /' conftest.$ac_ext >&5 |
19609 | ||
3185942a | 19610 | bash_cv_type_long_long='long' |
ccc6cda3 | 19611 | fi |
3185942a JA |
19612 | |
19613 | rm -rf conftest.dSYM | |
19614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19615 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 19616 | fi |
3185942a JA |
19617 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5 |
19618 | $as_echo "$bash_cv_type_long_long" >&6; } | |
f73dda09 | 19619 | if test "$bash_cv_type_long_long" = 'long long'; then |
b80f6443 | 19620 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 19621 | #define HAVE_LONG_LONG 1 |
b80f6443 | 19622 | _ACEOF |
ccc6cda3 | 19623 | |
ccc6cda3 JA |
19624 | fi |
19625 | ||
b80f6443 | 19626 | |
3185942a JA |
19627 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
19628 | $as_echo_n "checking for unsigned long long... " >&6; } | |
f73dda09 | 19629 | if test "${bash_cv_type_unsigned_long_long+set}" = set; then |
3185942a | 19630 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
19631 | else |
19632 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19633 | /* confdefs.h. */ |
19634 | _ACEOF | |
19635 | cat confdefs.h >>conftest.$ac_ext | |
19636 | cat >>conftest.$ac_ext <<_ACEOF | |
19637 | /* end confdefs.h. */ | |
f73dda09 JA |
19638 | |
19639 | unsigned long long ull = 1; int i = 63; | |
19640 | int | |
19641 | main () | |
19642 | { | |
19643 | ||
19644 | unsigned long long ullmax = (unsigned long long) -1; | |
19645 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
19646 | ||
19647 | ; | |
19648 | return 0; | |
19649 | } | |
19650 | _ACEOF | |
19651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19652 | if { (ac_try="$ac_link" |
19653 | case "(($ac_try" in | |
19654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19655 | *) ac_try_echo=$ac_try;; | |
19656 | esac | |
19657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19658 | $as_echo "$ac_try_echo") >&5 | |
19659 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19660 | ac_status=$? |
0628567a JA |
19661 | grep -v '^ *+' conftest.er1 >conftest.err |
19662 | rm -f conftest.er1 | |
19663 | cat conftest.err >&5 | |
3185942a JA |
19664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19665 | (exit $ac_status); } && { | |
19666 | test -z "$ac_c_werror_flag" || | |
19667 | test ! -s conftest.err | |
19668 | } && test -s conftest$ac_exeext && { | |
19669 | test "$cross_compiling" = yes || | |
19670 | $as_test_x conftest$ac_exeext | |
19671 | }; then | |
f73dda09 JA |
19672 | bash_cv_type_unsigned_long_long='unsigned long long' |
19673 | else | |
3185942a | 19674 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19675 | sed 's/^/| /' conftest.$ac_ext >&5 |
19676 | ||
3185942a | 19677 | bash_cv_type_unsigned_long_long='unsigned long' |
f73dda09 | 19678 | fi |
3185942a JA |
19679 | |
19680 | rm -rf conftest.dSYM | |
19681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19682 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 19683 | fi |
3185942a JA |
19684 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5 |
19685 | $as_echo "$bash_cv_type_unsigned_long_long" >&6; } | |
f73dda09 | 19686 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then |
b80f6443 | 19687 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 19688 | #define HAVE_UNSIGNED_LONG_LONG 1 |
b80f6443 | 19689 | _ACEOF |
ccc6cda3 JA |
19690 | |
19691 | fi | |
19692 | ||
b80f6443 | 19693 | |
3185942a JA |
19694 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
19695 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
f73dda09 | 19696 | if test "${ac_cv_type_signal+set}" = set; then |
3185942a | 19697 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19698 | else |
f73dda09 | 19699 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19700 | /* confdefs.h. */ |
19701 | _ACEOF | |
19702 | cat confdefs.h >>conftest.$ac_ext | |
19703 | cat >>conftest.$ac_ext <<_ACEOF | |
19704 | /* end confdefs.h. */ | |
ccc6cda3 | 19705 | #include <sys/types.h> |
f73dda09 | 19706 | #include <signal.h> |
f73dda09 JA |
19707 | |
19708 | int | |
19709 | main () | |
19710 | { | |
3185942a | 19711 | return *(signal (0, 0)) (0) == 1; |
f73dda09 JA |
19712 | ; |
19713 | return 0; | |
19714 | } | |
19715 | _ACEOF | |
19716 | rm -f conftest.$ac_objext | |
3185942a JA |
19717 | if { (ac_try="$ac_compile" |
19718 | case "(($ac_try" in | |
19719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19720 | *) ac_try_echo=$ac_try;; | |
19721 | esac | |
19722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19723 | $as_echo "$ac_try_echo") >&5 | |
19724 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19725 | ac_status=$? |
0628567a JA |
19726 | grep -v '^ *+' conftest.er1 >conftest.err |
19727 | rm -f conftest.er1 | |
19728 | cat conftest.err >&5 | |
3185942a JA |
19729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19730 | (exit $ac_status); } && { | |
19731 | test -z "$ac_c_werror_flag" || | |
19732 | test ! -s conftest.err | |
19733 | } && test -s conftest.$ac_objext; then | |
19734 | ac_cv_type_signal=int | |
ccc6cda3 | 19735 | else |
3185942a | 19736 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19737 | sed 's/^/| /' conftest.$ac_ext >&5 |
19738 | ||
3185942a | 19739 | ac_cv_type_signal=void |
ccc6cda3 | 19740 | fi |
3185942a JA |
19741 | |
19742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 19743 | fi |
3185942a JA |
19744 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
19745 | $as_echo "$ac_cv_type_signal" >&6; } | |
f73dda09 | 19746 | |
b80f6443 | 19747 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19748 | #define RETSIGTYPE $ac_cv_type_signal |
b80f6443 JA |
19749 | _ACEOF |
19750 | ||
ccc6cda3 | 19751 | |
b80f6443 | 19752 | |
3185942a JA |
19753 | # The cast to long int works around a bug in the HP C Compiler |
19754 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19755 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19756 | # This bug is HP SR number 8606223364. | |
19757 | { $as_echo "$as_me:$LINENO: checking size of char" >&5 | |
19758 | $as_echo_n "checking size of char... " >&6; } | |
f73dda09 | 19759 | if test "${ac_cv_sizeof_char+set}" = set; then |
3185942a | 19760 | $as_echo_n "(cached) " >&6 |
f73dda09 | 19761 | else |
f73dda09 JA |
19762 | if test "$cross_compiling" = yes; then |
19763 | # Depending upon the size, compute the lo and hi bounds. | |
19764 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19765 | /* confdefs.h. */ |
19766 | _ACEOF | |
19767 | cat confdefs.h >>conftest.$ac_ext | |
19768 | cat >>conftest.$ac_ext <<_ACEOF | |
19769 | /* end confdefs.h. */ | |
f73dda09 JA |
19770 | $ac_includes_default |
19771 | int | |
19772 | main () | |
19773 | { | |
3185942a | 19774 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; |
b80f6443 JA |
19775 | test_array [0] = 0 |
19776 | ||
f73dda09 JA |
19777 | ; |
19778 | return 0; | |
19779 | } | |
19780 | _ACEOF | |
19781 | rm -f conftest.$ac_objext | |
3185942a JA |
19782 | if { (ac_try="$ac_compile" |
19783 | case "(($ac_try" in | |
19784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19785 | *) ac_try_echo=$ac_try;; | |
19786 | esac | |
19787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19788 | $as_echo "$ac_try_echo") >&5 | |
19789 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19790 | ac_status=$? |
0628567a JA |
19791 | grep -v '^ *+' conftest.er1 >conftest.err |
19792 | rm -f conftest.er1 | |
19793 | cat conftest.err >&5 | |
3185942a JA |
19794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19795 | (exit $ac_status); } && { | |
19796 | test -z "$ac_c_werror_flag" || | |
19797 | test ! -s conftest.err | |
19798 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
19799 | ac_lo=0 ac_mid=0 |
19800 | while :; do | |
19801 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19802 | /* confdefs.h. */ |
19803 | _ACEOF | |
19804 | cat confdefs.h >>conftest.$ac_ext | |
19805 | cat >>conftest.$ac_ext <<_ACEOF | |
19806 | /* end confdefs.h. */ | |
f73dda09 JA |
19807 | $ac_includes_default |
19808 | int | |
19809 | main () | |
19810 | { | |
3185942a | 19811 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
b80f6443 JA |
19812 | test_array [0] = 0 |
19813 | ||
f73dda09 JA |
19814 | ; |
19815 | return 0; | |
19816 | } | |
19817 | _ACEOF | |
19818 | rm -f conftest.$ac_objext | |
3185942a JA |
19819 | if { (ac_try="$ac_compile" |
19820 | case "(($ac_try" in | |
19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19822 | *) ac_try_echo=$ac_try;; | |
19823 | esac | |
19824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19825 | $as_echo "$ac_try_echo") >&5 | |
19826 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19827 | ac_status=$? |
0628567a JA |
19828 | grep -v '^ *+' conftest.er1 >conftest.err |
19829 | rm -f conftest.er1 | |
19830 | cat conftest.err >&5 | |
3185942a JA |
19831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19832 | (exit $ac_status); } && { | |
19833 | test -z "$ac_c_werror_flag" || | |
19834 | test ! -s conftest.err | |
19835 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
19836 | ac_hi=$ac_mid; break |
19837 | else | |
3185942a | 19838 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19839 | sed 's/^/| /' conftest.$ac_ext >&5 |
19840 | ||
3185942a JA |
19841 | ac_lo=`expr $ac_mid + 1` |
19842 | if test $ac_lo -le $ac_mid; then | |
19843 | ac_lo= ac_hi= | |
19844 | break | |
19845 | fi | |
19846 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 19847 | fi |
3185942a JA |
19848 | |
19849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
19850 | done |
19851 | else | |
3185942a | 19852 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19853 | sed 's/^/| /' conftest.$ac_ext >&5 |
19854 | ||
3185942a | 19855 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19856 | /* confdefs.h. */ |
19857 | _ACEOF | |
19858 | cat confdefs.h >>conftest.$ac_ext | |
19859 | cat >>conftest.$ac_ext <<_ACEOF | |
19860 | /* end confdefs.h. */ | |
b80f6443 JA |
19861 | $ac_includes_default |
19862 | int | |
19863 | main () | |
19864 | { | |
3185942a | 19865 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; |
b80f6443 JA |
19866 | test_array [0] = 0 |
19867 | ||
19868 | ; | |
19869 | return 0; | |
19870 | } | |
19871 | _ACEOF | |
19872 | rm -f conftest.$ac_objext | |
3185942a JA |
19873 | if { (ac_try="$ac_compile" |
19874 | case "(($ac_try" in | |
19875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19876 | *) ac_try_echo=$ac_try;; | |
19877 | esac | |
19878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19879 | $as_echo "$ac_try_echo") >&5 | |
19880 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 19881 | ac_status=$? |
0628567a JA |
19882 | grep -v '^ *+' conftest.er1 >conftest.err |
19883 | rm -f conftest.er1 | |
19884 | cat conftest.err >&5 | |
3185942a JA |
19885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19886 | (exit $ac_status); } && { | |
19887 | test -z "$ac_c_werror_flag" || | |
19888 | test ! -s conftest.err | |
19889 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 19890 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
19891 | while :; do |
19892 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19893 | /* confdefs.h. */ |
19894 | _ACEOF | |
19895 | cat confdefs.h >>conftest.$ac_ext | |
19896 | cat >>conftest.$ac_ext <<_ACEOF | |
19897 | /* end confdefs.h. */ | |
f73dda09 JA |
19898 | $ac_includes_default |
19899 | int | |
19900 | main () | |
19901 | { | |
3185942a | 19902 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; |
b80f6443 JA |
19903 | test_array [0] = 0 |
19904 | ||
f73dda09 JA |
19905 | ; |
19906 | return 0; | |
19907 | } | |
19908 | _ACEOF | |
19909 | rm -f conftest.$ac_objext | |
3185942a JA |
19910 | if { (ac_try="$ac_compile" |
19911 | case "(($ac_try" in | |
19912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19913 | *) ac_try_echo=$ac_try;; | |
19914 | esac | |
19915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19916 | $as_echo "$ac_try_echo") >&5 | |
19917 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19918 | ac_status=$? |
0628567a JA |
19919 | grep -v '^ *+' conftest.er1 >conftest.err |
19920 | rm -f conftest.er1 | |
19921 | cat conftest.err >&5 | |
3185942a JA |
19922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19923 | (exit $ac_status); } && { | |
19924 | test -z "$ac_c_werror_flag" || | |
19925 | test ! -s conftest.err | |
19926 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
19927 | ac_lo=$ac_mid; break |
19928 | else | |
3185942a | 19929 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19930 | sed 's/^/| /' conftest.$ac_ext >&5 |
19931 | ||
3185942a JA |
19932 | ac_hi=`expr '(' $ac_mid ')' - 1` |
19933 | if test $ac_mid -le $ac_hi; then | |
19934 | ac_lo= ac_hi= | |
19935 | break | |
19936 | fi | |
19937 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 19938 | fi |
3185942a JA |
19939 | |
19940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19941 | done |
b80f6443 | 19942 | else |
3185942a | 19943 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19944 | sed 's/^/| /' conftest.$ac_ext >&5 |
19945 | ||
3185942a | 19946 | ac_lo= ac_hi= |
b80f6443 | 19947 | fi |
3185942a JA |
19948 | |
19949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 19950 | fi |
3185942a JA |
19951 | |
19952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
19953 | # Binary search between lo and hi bounds. |
19954 | while test "x$ac_lo" != "x$ac_hi"; do | |
19955 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19957 | /* confdefs.h. */ |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
f73dda09 JA |
19962 | $ac_includes_default |
19963 | int | |
19964 | main () | |
19965 | { | |
3185942a | 19966 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
b80f6443 JA |
19967 | test_array [0] = 0 |
19968 | ||
f73dda09 JA |
19969 | ; |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext | |
3185942a JA |
19974 | if { (ac_try="$ac_compile" |
19975 | case "(($ac_try" in | |
19976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19977 | *) ac_try_echo=$ac_try;; | |
19978 | esac | |
19979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19980 | $as_echo "$ac_try_echo") >&5 | |
19981 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19982 | ac_status=$? |
0628567a JA |
19983 | grep -v '^ *+' conftest.er1 >conftest.err |
19984 | rm -f conftest.er1 | |
19985 | cat conftest.err >&5 | |
3185942a JA |
19986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19987 | (exit $ac_status); } && { | |
19988 | test -z "$ac_c_werror_flag" || | |
19989 | test ! -s conftest.err | |
19990 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
19991 | ac_hi=$ac_mid |
19992 | else | |
3185942a | 19993 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19994 | sed 's/^/| /' conftest.$ac_ext >&5 |
19995 | ||
3185942a | 19996 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 19997 | fi |
3185942a JA |
19998 | |
19999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20000 | done |
b80f6443 JA |
20001 | case $ac_lo in |
20002 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
3185942a JA |
20003 | '') if test "$ac_cv_type_char" = yes; then |
20004 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20006 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
0628567a | 20007 | See \`config.log' for more details." >&5 |
3185942a | 20008 | $as_echo "$as_me: error: cannot compute sizeof (char) |
0628567a | 20009 | See \`config.log' for more details." >&2;} |
3185942a JA |
20010 | { (exit 77); exit 77; }; }; } |
20011 | else | |
20012 | ac_cv_sizeof_char=0 | |
20013 | fi ;; | |
b80f6443 | 20014 | esac |
f73dda09 JA |
20015 | else |
20016 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20017 | /* confdefs.h. */ |
20018 | _ACEOF | |
20019 | cat confdefs.h >>conftest.$ac_ext | |
20020 | cat >>conftest.$ac_ext <<_ACEOF | |
20021 | /* end confdefs.h. */ | |
f73dda09 | 20022 | $ac_includes_default |
3185942a JA |
20023 | static long int longval () { return (long int) (sizeof (char)); } |
20024 | static unsigned long int ulongval () { return (long int) (sizeof (char)); } | |
b80f6443 JA |
20025 | #include <stdio.h> |
20026 | #include <stdlib.h> | |
f73dda09 JA |
20027 | int |
20028 | main () | |
20029 | { | |
b80f6443 JA |
20030 | |
20031 | FILE *f = fopen ("conftest.val", "w"); | |
20032 | if (! f) | |
3185942a JA |
20033 | return 1; |
20034 | if (((long int) (sizeof (char))) < 0) | |
b80f6443 | 20035 | { |
3185942a JA |
20036 | long int i = longval (); |
20037 | if (i != ((long int) (sizeof (char)))) | |
20038 | return 1; | |
20039 | fprintf (f, "%ld", i); | |
b80f6443 JA |
20040 | } |
20041 | else | |
20042 | { | |
3185942a JA |
20043 | unsigned long int i = ulongval (); |
20044 | if (i != ((long int) (sizeof (char)))) | |
20045 | return 1; | |
20046 | fprintf (f, "%lu", i); | |
b80f6443 | 20047 | } |
3185942a JA |
20048 | /* Do not output a trailing newline, as this causes \r\n confusion |
20049 | on some platforms. */ | |
20050 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 20051 | |
f73dda09 JA |
20052 | ; |
20053 | return 0; | |
20054 | } | |
20055 | _ACEOF | |
20056 | rm -f conftest$ac_exeext | |
3185942a JA |
20057 | if { (ac_try="$ac_link" |
20058 | case "(($ac_try" in | |
20059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20060 | *) ac_try_echo=$ac_try;; | |
20061 | esac | |
20062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20063 | $as_echo "$ac_try_echo") >&5 | |
20064 | (eval "$ac_link") 2>&5 | |
f73dda09 | 20065 | ac_status=$? |
3185942a | 20066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
20068 | { (case "(($ac_try" in |
20069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20070 | *) ac_try_echo=$ac_try;; | |
20071 | esac | |
20072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20073 | $as_echo "$ac_try_echo") >&5 | |
20074 | (eval "$ac_try") 2>&5 | |
f73dda09 | 20075 | ac_status=$? |
3185942a | 20076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20077 | (exit $ac_status); }; }; then |
20078 | ac_cv_sizeof_char=`cat conftest.val` | |
ccc6cda3 | 20079 | else |
3185942a JA |
20080 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20081 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
20082 | sed 's/^/| /' conftest.$ac_ext >&5 |
20083 | ||
b80f6443 | 20084 | ( exit $ac_status ) |
3185942a JA |
20085 | if test "$ac_cv_type_char" = yes; then |
20086 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20088 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
0628567a | 20089 | See \`config.log' for more details." >&5 |
3185942a | 20090 | $as_echo "$as_me: error: cannot compute sizeof (char) |
0628567a | 20091 | See \`config.log' for more details." >&2;} |
3185942a JA |
20092 | { (exit 77); exit 77; }; }; } |
20093 | else | |
20094 | ac_cv_sizeof_char=0 | |
20095 | fi | |
ccc6cda3 | 20096 | fi |
3185942a JA |
20097 | rm -rf conftest.dSYM |
20098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20099 | fi |
20100 | rm -f conftest.val | |
f73dda09 | 20101 | fi |
3185942a JA |
20102 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
20103 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
20104 | ||
20105 | ||
20106 | ||
b80f6443 | 20107 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 20108 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
b80f6443 | 20109 | _ACEOF |
ccc6cda3 | 20110 | |
b80f6443 | 20111 | |
3185942a JA |
20112 | # The cast to long int works around a bug in the HP C Compiler |
20113 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20114 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20115 | # This bug is HP SR number 8606223364. | |
20116 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 | |
20117 | $as_echo_n "checking size of short... " >&6; } | |
20118 | if test "${ac_cv_sizeof_short+set}" = set; then | |
20119 | $as_echo_n "(cached) " >&6 | |
f73dda09 | 20120 | else |
3185942a JA |
20121 | if test "$cross_compiling" = yes; then |
20122 | # Depending upon the size, compute the lo and hi bounds. | |
20123 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20124 | /* confdefs.h. */ |
20125 | _ACEOF | |
20126 | cat confdefs.h >>conftest.$ac_ext | |
20127 | cat >>conftest.$ac_ext <<_ACEOF | |
20128 | /* end confdefs.h. */ | |
f73dda09 JA |
20129 | $ac_includes_default |
20130 | int | |
20131 | main () | |
20132 | { | |
3185942a JA |
20133 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
20134 | test_array [0] = 0 | |
20135 | ||
f73dda09 JA |
20136 | ; |
20137 | return 0; | |
20138 | } | |
20139 | _ACEOF | |
20140 | rm -f conftest.$ac_objext | |
3185942a JA |
20141 | if { (ac_try="$ac_compile" |
20142 | case "(($ac_try" in | |
20143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20144 | *) ac_try_echo=$ac_try;; | |
20145 | esac | |
20146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20147 | $as_echo "$ac_try_echo") >&5 | |
20148 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20149 | ac_status=$? |
0628567a JA |
20150 | grep -v '^ *+' conftest.er1 >conftest.err |
20151 | rm -f conftest.er1 | |
20152 | cat conftest.err >&5 | |
3185942a JA |
20153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20154 | (exit $ac_status); } && { | |
20155 | test -z "$ac_c_werror_flag" || | |
20156 | test ! -s conftest.err | |
20157 | } && test -s conftest.$ac_objext; then | |
20158 | ac_lo=0 ac_mid=0 | |
20159 | while :; do | |
20160 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20161 | /* confdefs.h. */ |
20162 | _ACEOF | |
20163 | cat confdefs.h >>conftest.$ac_ext | |
20164 | cat >>conftest.$ac_ext <<_ACEOF | |
20165 | /* end confdefs.h. */ | |
f73dda09 JA |
20166 | $ac_includes_default |
20167 | int | |
20168 | main () | |
20169 | { | |
3185942a | 20170 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b80f6443 JA |
20171 | test_array [0] = 0 |
20172 | ||
f73dda09 JA |
20173 | ; |
20174 | return 0; | |
20175 | } | |
20176 | _ACEOF | |
20177 | rm -f conftest.$ac_objext | |
3185942a JA |
20178 | if { (ac_try="$ac_compile" |
20179 | case "(($ac_try" in | |
20180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20181 | *) ac_try_echo=$ac_try;; | |
20182 | esac | |
20183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20184 | $as_echo "$ac_try_echo") >&5 | |
20185 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20186 | ac_status=$? |
0628567a JA |
20187 | grep -v '^ *+' conftest.er1 >conftest.err |
20188 | rm -f conftest.er1 | |
20189 | cat conftest.err >&5 | |
3185942a JA |
20190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20191 | (exit $ac_status); } && { | |
20192 | test -z "$ac_c_werror_flag" || | |
20193 | test ! -s conftest.err | |
20194 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20195 | ac_hi=$ac_mid; break |
20196 | else | |
3185942a | 20197 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20198 | sed 's/^/| /' conftest.$ac_ext >&5 |
20199 | ||
3185942a JA |
20200 | ac_lo=`expr $ac_mid + 1` |
20201 | if test $ac_lo -le $ac_mid; then | |
20202 | ac_lo= ac_hi= | |
20203 | break | |
20204 | fi | |
20205 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 20206 | fi |
3185942a JA |
20207 | |
20208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20209 | done |
20210 | else | |
3185942a | 20211 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20212 | sed 's/^/| /' conftest.$ac_ext >&5 |
20213 | ||
3185942a | 20214 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20215 | /* confdefs.h. */ |
20216 | _ACEOF | |
20217 | cat confdefs.h >>conftest.$ac_ext | |
20218 | cat >>conftest.$ac_ext <<_ACEOF | |
20219 | /* end confdefs.h. */ | |
b80f6443 JA |
20220 | $ac_includes_default |
20221 | int | |
20222 | main () | |
20223 | { | |
3185942a | 20224 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
b80f6443 JA |
20225 | test_array [0] = 0 |
20226 | ||
20227 | ; | |
20228 | return 0; | |
20229 | } | |
20230 | _ACEOF | |
20231 | rm -f conftest.$ac_objext | |
3185942a JA |
20232 | if { (ac_try="$ac_compile" |
20233 | case "(($ac_try" in | |
20234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20235 | *) ac_try_echo=$ac_try;; | |
20236 | esac | |
20237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20238 | $as_echo "$ac_try_echo") >&5 | |
20239 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 20240 | ac_status=$? |
0628567a JA |
20241 | grep -v '^ *+' conftest.er1 >conftest.err |
20242 | rm -f conftest.er1 | |
20243 | cat conftest.err >&5 | |
3185942a JA |
20244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20245 | (exit $ac_status); } && { | |
20246 | test -z "$ac_c_werror_flag" || | |
20247 | test ! -s conftest.err | |
20248 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 20249 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
20250 | while :; do |
20251 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20252 | /* confdefs.h. */ |
20253 | _ACEOF | |
20254 | cat confdefs.h >>conftest.$ac_ext | |
20255 | cat >>conftest.$ac_ext <<_ACEOF | |
20256 | /* end confdefs.h. */ | |
f73dda09 JA |
20257 | $ac_includes_default |
20258 | int | |
20259 | main () | |
20260 | { | |
3185942a | 20261 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
b80f6443 JA |
20262 | test_array [0] = 0 |
20263 | ||
f73dda09 JA |
20264 | ; |
20265 | return 0; | |
20266 | } | |
20267 | _ACEOF | |
20268 | rm -f conftest.$ac_objext | |
3185942a JA |
20269 | if { (ac_try="$ac_compile" |
20270 | case "(($ac_try" in | |
20271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20272 | *) ac_try_echo=$ac_try;; | |
20273 | esac | |
20274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20275 | $as_echo "$ac_try_echo") >&5 | |
20276 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20277 | ac_status=$? |
0628567a JA |
20278 | grep -v '^ *+' conftest.er1 >conftest.err |
20279 | rm -f conftest.er1 | |
20280 | cat conftest.err >&5 | |
3185942a JA |
20281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20282 | (exit $ac_status); } && { | |
20283 | test -z "$ac_c_werror_flag" || | |
20284 | test ! -s conftest.err | |
20285 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20286 | ac_lo=$ac_mid; break |
20287 | else | |
3185942a | 20288 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20289 | sed 's/^/| /' conftest.$ac_ext >&5 |
20290 | ||
3185942a JA |
20291 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20292 | if test $ac_mid -le $ac_hi; then | |
20293 | ac_lo= ac_hi= | |
20294 | break | |
20295 | fi | |
20296 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 20297 | fi |
3185942a JA |
20298 | |
20299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20300 | done |
b80f6443 | 20301 | else |
3185942a | 20302 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20303 | sed 's/^/| /' conftest.$ac_ext >&5 |
20304 | ||
3185942a | 20305 | ac_lo= ac_hi= |
b80f6443 | 20306 | fi |
3185942a JA |
20307 | |
20308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20309 | fi |
3185942a JA |
20310 | |
20311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20312 | # Binary search between lo and hi bounds. |
20313 | while test "x$ac_lo" != "x$ac_hi"; do | |
20314 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20315 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20316 | /* confdefs.h. */ |
20317 | _ACEOF | |
20318 | cat confdefs.h >>conftest.$ac_ext | |
20319 | cat >>conftest.$ac_ext <<_ACEOF | |
20320 | /* end confdefs.h. */ | |
f73dda09 JA |
20321 | $ac_includes_default |
20322 | int | |
20323 | main () | |
20324 | { | |
3185942a | 20325 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b80f6443 JA |
20326 | test_array [0] = 0 |
20327 | ||
f73dda09 JA |
20328 | ; |
20329 | return 0; | |
20330 | } | |
20331 | _ACEOF | |
20332 | rm -f conftest.$ac_objext | |
3185942a JA |
20333 | if { (ac_try="$ac_compile" |
20334 | case "(($ac_try" in | |
20335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20336 | *) ac_try_echo=$ac_try;; | |
20337 | esac | |
20338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20339 | $as_echo "$ac_try_echo") >&5 | |
20340 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20341 | ac_status=$? |
0628567a JA |
20342 | grep -v '^ *+' conftest.er1 >conftest.err |
20343 | rm -f conftest.er1 | |
20344 | cat conftest.err >&5 | |
3185942a JA |
20345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20346 | (exit $ac_status); } && { | |
20347 | test -z "$ac_c_werror_flag" || | |
20348 | test ! -s conftest.err | |
20349 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20350 | ac_hi=$ac_mid |
20351 | else | |
3185942a | 20352 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20353 | sed 's/^/| /' conftest.$ac_ext >&5 |
20354 | ||
3185942a | 20355 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 20356 | fi |
3185942a JA |
20357 | |
20358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20359 | done |
b80f6443 JA |
20360 | case $ac_lo in |
20361 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
3185942a JA |
20362 | '') if test "$ac_cv_type_short" = yes; then |
20363 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20365 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
0628567a | 20366 | See \`config.log' for more details." >&5 |
3185942a | 20367 | $as_echo "$as_me: error: cannot compute sizeof (short) |
0628567a | 20368 | See \`config.log' for more details." >&2;} |
3185942a JA |
20369 | { (exit 77); exit 77; }; }; } |
20370 | else | |
20371 | ac_cv_sizeof_short=0 | |
20372 | fi ;; | |
b80f6443 | 20373 | esac |
ccc6cda3 | 20374 | else |
f73dda09 | 20375 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20376 | /* confdefs.h. */ |
20377 | _ACEOF | |
20378 | cat confdefs.h >>conftest.$ac_ext | |
20379 | cat >>conftest.$ac_ext <<_ACEOF | |
20380 | /* end confdefs.h. */ | |
f73dda09 | 20381 | $ac_includes_default |
3185942a JA |
20382 | static long int longval () { return (long int) (sizeof (short)); } |
20383 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } | |
b80f6443 JA |
20384 | #include <stdio.h> |
20385 | #include <stdlib.h> | |
f73dda09 JA |
20386 | int |
20387 | main () | |
20388 | { | |
b80f6443 JA |
20389 | |
20390 | FILE *f = fopen ("conftest.val", "w"); | |
20391 | if (! f) | |
3185942a JA |
20392 | return 1; |
20393 | if (((long int) (sizeof (short))) < 0) | |
b80f6443 | 20394 | { |
3185942a JA |
20395 | long int i = longval (); |
20396 | if (i != ((long int) (sizeof (short)))) | |
20397 | return 1; | |
20398 | fprintf (f, "%ld", i); | |
b80f6443 JA |
20399 | } |
20400 | else | |
20401 | { | |
3185942a JA |
20402 | unsigned long int i = ulongval (); |
20403 | if (i != ((long int) (sizeof (short)))) | |
20404 | return 1; | |
20405 | fprintf (f, "%lu", i); | |
b80f6443 | 20406 | } |
3185942a JA |
20407 | /* Do not output a trailing newline, as this causes \r\n confusion |
20408 | on some platforms. */ | |
20409 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 20410 | |
f73dda09 JA |
20411 | ; |
20412 | return 0; | |
20413 | } | |
20414 | _ACEOF | |
20415 | rm -f conftest$ac_exeext | |
3185942a JA |
20416 | if { (ac_try="$ac_link" |
20417 | case "(($ac_try" in | |
20418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20419 | *) ac_try_echo=$ac_try;; | |
20420 | esac | |
20421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20422 | $as_echo "$ac_try_echo") >&5 | |
20423 | (eval "$ac_link") 2>&5 | |
f73dda09 | 20424 | ac_status=$? |
3185942a | 20425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20426 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
20427 | { (case "(($ac_try" in |
20428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20429 | *) ac_try_echo=$ac_try;; | |
20430 | esac | |
20431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20432 | $as_echo "$ac_try_echo") >&5 | |
20433 | (eval "$ac_try") 2>&5 | |
f73dda09 | 20434 | ac_status=$? |
3185942a | 20435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20436 | (exit $ac_status); }; }; then |
20437 | ac_cv_sizeof_short=`cat conftest.val` | |
ccc6cda3 | 20438 | else |
3185942a JA |
20439 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20440 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 |
20442 | ||
b80f6443 | 20443 | ( exit $ac_status ) |
3185942a JA |
20444 | if test "$ac_cv_type_short" = yes; then |
20445 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20447 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
0628567a | 20448 | See \`config.log' for more details." >&5 |
3185942a | 20449 | $as_echo "$as_me: error: cannot compute sizeof (short) |
0628567a | 20450 | See \`config.log' for more details." >&2;} |
3185942a JA |
20451 | { (exit 77); exit 77; }; }; } |
20452 | else | |
20453 | ac_cv_sizeof_short=0 | |
20454 | fi | |
ccc6cda3 | 20455 | fi |
3185942a JA |
20456 | rm -rf conftest.dSYM |
20457 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20458 | fi |
f73dda09 | 20459 | rm -f conftest.val |
ccc6cda3 | 20460 | fi |
3185942a JA |
20461 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
20462 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ccc6cda3 | 20463 | |
b80f6443 | 20464 | |
3185942a JA |
20465 | |
20466 | cat >>confdefs.h <<_ACEOF | |
20467 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
f73dda09 | 20468 | _ACEOF |
0628567a | 20469 | |
f73dda09 | 20470 | |
3185942a JA |
20471 | # The cast to long int works around a bug in the HP C Compiler |
20472 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20473 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20474 | # This bug is HP SR number 8606223364. | |
20475 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 | |
20476 | $as_echo_n "checking size of int... " >&6; } | |
f73dda09 | 20477 | if test "${ac_cv_sizeof_int+set}" = set; then |
3185942a | 20478 | $as_echo_n "(cached) " >&6 |
f73dda09 | 20479 | else |
f73dda09 JA |
20480 | if test "$cross_compiling" = yes; then |
20481 | # Depending upon the size, compute the lo and hi bounds. | |
20482 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20483 | /* confdefs.h. */ |
20484 | _ACEOF | |
20485 | cat confdefs.h >>conftest.$ac_ext | |
20486 | cat >>conftest.$ac_ext <<_ACEOF | |
20487 | /* end confdefs.h. */ | |
f73dda09 JA |
20488 | $ac_includes_default |
20489 | int | |
20490 | main () | |
20491 | { | |
3185942a | 20492 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
b80f6443 JA |
20493 | test_array [0] = 0 |
20494 | ||
f73dda09 JA |
20495 | ; |
20496 | return 0; | |
20497 | } | |
20498 | _ACEOF | |
20499 | rm -f conftest.$ac_objext | |
3185942a JA |
20500 | if { (ac_try="$ac_compile" |
20501 | case "(($ac_try" in | |
20502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20503 | *) ac_try_echo=$ac_try;; | |
20504 | esac | |
20505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20506 | $as_echo "$ac_try_echo") >&5 | |
20507 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20508 | ac_status=$? |
0628567a JA |
20509 | grep -v '^ *+' conftest.er1 >conftest.err |
20510 | rm -f conftest.er1 | |
20511 | cat conftest.err >&5 | |
3185942a JA |
20512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20513 | (exit $ac_status); } && { | |
20514 | test -z "$ac_c_werror_flag" || | |
20515 | test ! -s conftest.err | |
20516 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20517 | ac_lo=0 ac_mid=0 |
20518 | while :; do | |
20519 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20520 | /* confdefs.h. */ |
20521 | _ACEOF | |
20522 | cat confdefs.h >>conftest.$ac_ext | |
20523 | cat >>conftest.$ac_ext <<_ACEOF | |
20524 | /* end confdefs.h. */ | |
f73dda09 JA |
20525 | $ac_includes_default |
20526 | int | |
20527 | main () | |
20528 | { | |
3185942a | 20529 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b80f6443 JA |
20530 | test_array [0] = 0 |
20531 | ||
f73dda09 JA |
20532 | ; |
20533 | return 0; | |
20534 | } | |
20535 | _ACEOF | |
20536 | rm -f conftest.$ac_objext | |
3185942a JA |
20537 | if { (ac_try="$ac_compile" |
20538 | case "(($ac_try" in | |
20539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20540 | *) ac_try_echo=$ac_try;; | |
20541 | esac | |
20542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20543 | $as_echo "$ac_try_echo") >&5 | |
20544 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20545 | ac_status=$? |
0628567a JA |
20546 | grep -v '^ *+' conftest.er1 >conftest.err |
20547 | rm -f conftest.er1 | |
20548 | cat conftest.err >&5 | |
3185942a JA |
20549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20550 | (exit $ac_status); } && { | |
20551 | test -z "$ac_c_werror_flag" || | |
20552 | test ! -s conftest.err | |
20553 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20554 | ac_hi=$ac_mid; break |
20555 | else | |
3185942a | 20556 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20557 | sed 's/^/| /' conftest.$ac_ext >&5 |
20558 | ||
3185942a JA |
20559 | ac_lo=`expr $ac_mid + 1` |
20560 | if test $ac_lo -le $ac_mid; then | |
20561 | ac_lo= ac_hi= | |
20562 | break | |
20563 | fi | |
20564 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 20565 | fi |
3185942a JA |
20566 | |
20567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20568 | done |
20569 | else | |
3185942a | 20570 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20571 | sed 's/^/| /' conftest.$ac_ext >&5 |
20572 | ||
3185942a | 20573 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20574 | /* confdefs.h. */ |
20575 | _ACEOF | |
20576 | cat confdefs.h >>conftest.$ac_ext | |
20577 | cat >>conftest.$ac_ext <<_ACEOF | |
20578 | /* end confdefs.h. */ | |
b80f6443 JA |
20579 | $ac_includes_default |
20580 | int | |
20581 | main () | |
20582 | { | |
3185942a | 20583 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
b80f6443 JA |
20584 | test_array [0] = 0 |
20585 | ||
20586 | ; | |
20587 | return 0; | |
20588 | } | |
20589 | _ACEOF | |
20590 | rm -f conftest.$ac_objext | |
3185942a JA |
20591 | if { (ac_try="$ac_compile" |
20592 | case "(($ac_try" in | |
20593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20594 | *) ac_try_echo=$ac_try;; | |
20595 | esac | |
20596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20597 | $as_echo "$ac_try_echo") >&5 | |
20598 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 20599 | ac_status=$? |
0628567a JA |
20600 | grep -v '^ *+' conftest.er1 >conftest.err |
20601 | rm -f conftest.er1 | |
20602 | cat conftest.err >&5 | |
3185942a JA |
20603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20604 | (exit $ac_status); } && { | |
20605 | test -z "$ac_c_werror_flag" || | |
20606 | test ! -s conftest.err | |
20607 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 20608 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
20609 | while :; do |
20610 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20611 | /* confdefs.h. */ |
20612 | _ACEOF | |
20613 | cat confdefs.h >>conftest.$ac_ext | |
20614 | cat >>conftest.$ac_ext <<_ACEOF | |
20615 | /* end confdefs.h. */ | |
f73dda09 JA |
20616 | $ac_includes_default |
20617 | int | |
20618 | main () | |
20619 | { | |
3185942a | 20620 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
b80f6443 JA |
20621 | test_array [0] = 0 |
20622 | ||
f73dda09 JA |
20623 | ; |
20624 | return 0; | |
20625 | } | |
20626 | _ACEOF | |
20627 | rm -f conftest.$ac_objext | |
3185942a JA |
20628 | if { (ac_try="$ac_compile" |
20629 | case "(($ac_try" in | |
20630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20631 | *) ac_try_echo=$ac_try;; | |
20632 | esac | |
20633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20634 | $as_echo "$ac_try_echo") >&5 | |
20635 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20636 | ac_status=$? |
0628567a JA |
20637 | grep -v '^ *+' conftest.er1 >conftest.err |
20638 | rm -f conftest.er1 | |
20639 | cat conftest.err >&5 | |
3185942a JA |
20640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20641 | (exit $ac_status); } && { | |
20642 | test -z "$ac_c_werror_flag" || | |
20643 | test ! -s conftest.err | |
20644 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20645 | ac_lo=$ac_mid; break |
20646 | else | |
3185942a | 20647 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20648 | sed 's/^/| /' conftest.$ac_ext >&5 |
20649 | ||
3185942a JA |
20650 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20651 | if test $ac_mid -le $ac_hi; then | |
20652 | ac_lo= ac_hi= | |
20653 | break | |
20654 | fi | |
20655 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 20656 | fi |
3185942a JA |
20657 | |
20658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20659 | done |
b80f6443 | 20660 | else |
3185942a | 20661 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20662 | sed 's/^/| /' conftest.$ac_ext >&5 |
20663 | ||
3185942a | 20664 | ac_lo= ac_hi= |
b80f6443 | 20665 | fi |
3185942a JA |
20666 | |
20667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20668 | fi |
3185942a JA |
20669 | |
20670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20671 | # Binary search between lo and hi bounds. |
20672 | while test "x$ac_lo" != "x$ac_hi"; do | |
20673 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20674 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20675 | /* confdefs.h. */ |
20676 | _ACEOF | |
20677 | cat confdefs.h >>conftest.$ac_ext | |
20678 | cat >>conftest.$ac_ext <<_ACEOF | |
20679 | /* end confdefs.h. */ | |
f73dda09 JA |
20680 | $ac_includes_default |
20681 | int | |
20682 | main () | |
20683 | { | |
3185942a | 20684 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b80f6443 JA |
20685 | test_array [0] = 0 |
20686 | ||
f73dda09 JA |
20687 | ; |
20688 | return 0; | |
20689 | } | |
20690 | _ACEOF | |
20691 | rm -f conftest.$ac_objext | |
3185942a JA |
20692 | if { (ac_try="$ac_compile" |
20693 | case "(($ac_try" in | |
20694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20695 | *) ac_try_echo=$ac_try;; | |
20696 | esac | |
20697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20698 | $as_echo "$ac_try_echo") >&5 | |
20699 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
20700 | ac_status=$? |
20701 | grep -v '^ *+' conftest.er1 >conftest.err | |
20702 | rm -f conftest.er1 | |
20703 | cat conftest.err >&5 | |
3185942a JA |
20704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20705 | (exit $ac_status); } && { | |
20706 | test -z "$ac_c_werror_flag" || | |
20707 | test ! -s conftest.err | |
20708 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20709 | ac_hi=$ac_mid |
20710 | else | |
3185942a | 20711 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20712 | sed 's/^/| /' conftest.$ac_ext >&5 |
20713 | ||
3185942a | 20714 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 20715 | fi |
3185942a JA |
20716 | |
20717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20718 | done |
b80f6443 JA |
20719 | case $ac_lo in |
20720 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
3185942a JA |
20721 | '') if test "$ac_cv_type_int" = yes; then |
20722 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20724 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
0628567a | 20725 | See \`config.log' for more details." >&5 |
3185942a | 20726 | $as_echo "$as_me: error: cannot compute sizeof (int) |
0628567a | 20727 | See \`config.log' for more details." >&2;} |
3185942a JA |
20728 | { (exit 77); exit 77; }; }; } |
20729 | else | |
20730 | ac_cv_sizeof_int=0 | |
20731 | fi ;; | |
b80f6443 | 20732 | esac |
ccc6cda3 | 20733 | else |
f73dda09 | 20734 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20735 | /* confdefs.h. */ |
20736 | _ACEOF | |
20737 | cat confdefs.h >>conftest.$ac_ext | |
20738 | cat >>conftest.$ac_ext <<_ACEOF | |
20739 | /* end confdefs.h. */ | |
f73dda09 | 20740 | $ac_includes_default |
3185942a JA |
20741 | static long int longval () { return (long int) (sizeof (int)); } |
20742 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } | |
b80f6443 JA |
20743 | #include <stdio.h> |
20744 | #include <stdlib.h> | |
f73dda09 JA |
20745 | int |
20746 | main () | |
20747 | { | |
b80f6443 JA |
20748 | |
20749 | FILE *f = fopen ("conftest.val", "w"); | |
20750 | if (! f) | |
3185942a JA |
20751 | return 1; |
20752 | if (((long int) (sizeof (int))) < 0) | |
b80f6443 | 20753 | { |
3185942a JA |
20754 | long int i = longval (); |
20755 | if (i != ((long int) (sizeof (int)))) | |
20756 | return 1; | |
20757 | fprintf (f, "%ld", i); | |
b80f6443 JA |
20758 | } |
20759 | else | |
20760 | { | |
3185942a JA |
20761 | unsigned long int i = ulongval (); |
20762 | if (i != ((long int) (sizeof (int)))) | |
20763 | return 1; | |
20764 | fprintf (f, "%lu", i); | |
b80f6443 | 20765 | } |
3185942a JA |
20766 | /* Do not output a trailing newline, as this causes \r\n confusion |
20767 | on some platforms. */ | |
20768 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 20769 | |
f73dda09 JA |
20770 | ; |
20771 | return 0; | |
20772 | } | |
20773 | _ACEOF | |
20774 | rm -f conftest$ac_exeext | |
3185942a JA |
20775 | if { (ac_try="$ac_link" |
20776 | case "(($ac_try" in | |
20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20778 | *) ac_try_echo=$ac_try;; | |
20779 | esac | |
20780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20781 | $as_echo "$ac_try_echo") >&5 | |
20782 | (eval "$ac_link") 2>&5 | |
f73dda09 | 20783 | ac_status=$? |
3185942a | 20784 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 20785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
20786 | { (case "(($ac_try" in |
20787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20788 | *) ac_try_echo=$ac_try;; | |
20789 | esac | |
20790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20791 | $as_echo "$ac_try_echo") >&5 | |
20792 | (eval "$ac_try") 2>&5 | |
f73dda09 | 20793 | ac_status=$? |
3185942a | 20794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
20795 | (exit $ac_status); }; }; then |
20796 | ac_cv_sizeof_int=`cat conftest.val` | |
ccc6cda3 | 20797 | else |
3185942a JA |
20798 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20799 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
20800 | sed 's/^/| /' conftest.$ac_ext >&5 |
20801 | ||
b80f6443 | 20802 | ( exit $ac_status ) |
3185942a JA |
20803 | if test "$ac_cv_type_int" = yes; then |
20804 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20806 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
0628567a | 20807 | See \`config.log' for more details." >&5 |
3185942a | 20808 | $as_echo "$as_me: error: cannot compute sizeof (int) |
0628567a | 20809 | See \`config.log' for more details." >&2;} |
3185942a JA |
20810 | { (exit 77); exit 77; }; }; } |
20811 | else | |
20812 | ac_cv_sizeof_int=0 | |
20813 | fi | |
ccc6cda3 | 20814 | fi |
3185942a JA |
20815 | rm -rf conftest.dSYM |
20816 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20817 | fi |
f73dda09 | 20818 | rm -f conftest.val |
ccc6cda3 | 20819 | fi |
3185942a JA |
20820 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
20821 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
ccc6cda3 | 20822 | |
b80f6443 | 20823 | |
3185942a JA |
20824 | |
20825 | cat >>confdefs.h <<_ACEOF | |
20826 | #define SIZEOF_INT $ac_cv_sizeof_int | |
f73dda09 | 20827 | _ACEOF |
0628567a | 20828 | |
f73dda09 | 20829 | |
3185942a JA |
20830 | # The cast to long int works around a bug in the HP C Compiler |
20831 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20832 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20833 | # This bug is HP SR number 8606223364. | |
20834 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 | |
20835 | $as_echo_n "checking size of long... " >&6; } | |
f73dda09 | 20836 | if test "${ac_cv_sizeof_long+set}" = set; then |
3185942a | 20837 | $as_echo_n "(cached) " >&6 |
f73dda09 | 20838 | else |
f73dda09 JA |
20839 | if test "$cross_compiling" = yes; then |
20840 | # Depending upon the size, compute the lo and hi bounds. | |
20841 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20842 | /* confdefs.h. */ |
20843 | _ACEOF | |
20844 | cat confdefs.h >>conftest.$ac_ext | |
20845 | cat >>conftest.$ac_ext <<_ACEOF | |
20846 | /* end confdefs.h. */ | |
f73dda09 JA |
20847 | $ac_includes_default |
20848 | int | |
20849 | main () | |
20850 | { | |
3185942a | 20851 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
b80f6443 JA |
20852 | test_array [0] = 0 |
20853 | ||
f73dda09 JA |
20854 | ; |
20855 | return 0; | |
20856 | } | |
20857 | _ACEOF | |
20858 | rm -f conftest.$ac_objext | |
3185942a JA |
20859 | if { (ac_try="$ac_compile" |
20860 | case "(($ac_try" in | |
20861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20862 | *) ac_try_echo=$ac_try;; | |
20863 | esac | |
20864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20865 | $as_echo "$ac_try_echo") >&5 | |
20866 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20867 | ac_status=$? |
0628567a JA |
20868 | grep -v '^ *+' conftest.er1 >conftest.err |
20869 | rm -f conftest.er1 | |
20870 | cat conftest.err >&5 | |
3185942a JA |
20871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20872 | (exit $ac_status); } && { | |
20873 | test -z "$ac_c_werror_flag" || | |
20874 | test ! -s conftest.err | |
20875 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20876 | ac_lo=0 ac_mid=0 |
20877 | while :; do | |
20878 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20879 | /* confdefs.h. */ |
20880 | _ACEOF | |
20881 | cat confdefs.h >>conftest.$ac_ext | |
20882 | cat >>conftest.$ac_ext <<_ACEOF | |
20883 | /* end confdefs.h. */ | |
f73dda09 JA |
20884 | $ac_includes_default |
20885 | int | |
20886 | main () | |
20887 | { | |
3185942a | 20888 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b80f6443 JA |
20889 | test_array [0] = 0 |
20890 | ||
f73dda09 JA |
20891 | ; |
20892 | return 0; | |
20893 | } | |
20894 | _ACEOF | |
20895 | rm -f conftest.$ac_objext | |
3185942a JA |
20896 | if { (ac_try="$ac_compile" |
20897 | case "(($ac_try" in | |
20898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20899 | *) ac_try_echo=$ac_try;; | |
20900 | esac | |
20901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20902 | $as_echo "$ac_try_echo") >&5 | |
20903 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20904 | ac_status=$? |
0628567a JA |
20905 | grep -v '^ *+' conftest.er1 >conftest.err |
20906 | rm -f conftest.er1 | |
20907 | cat conftest.err >&5 | |
3185942a JA |
20908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20909 | (exit $ac_status); } && { | |
20910 | test -z "$ac_c_werror_flag" || | |
20911 | test ! -s conftest.err | |
20912 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20913 | ac_hi=$ac_mid; break |
20914 | else | |
3185942a | 20915 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20916 | sed 's/^/| /' conftest.$ac_ext >&5 |
20917 | ||
3185942a JA |
20918 | ac_lo=`expr $ac_mid + 1` |
20919 | if test $ac_lo -le $ac_mid; then | |
20920 | ac_lo= ac_hi= | |
20921 | break | |
20922 | fi | |
20923 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 20924 | fi |
3185942a JA |
20925 | |
20926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20927 | done |
ccc6cda3 | 20928 | else |
3185942a | 20929 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20930 | sed 's/^/| /' conftest.$ac_ext >&5 |
20931 | ||
3185942a | 20932 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20933 | /* confdefs.h. */ |
20934 | _ACEOF | |
20935 | cat confdefs.h >>conftest.$ac_ext | |
20936 | cat >>conftest.$ac_ext <<_ACEOF | |
20937 | /* end confdefs.h. */ | |
b80f6443 JA |
20938 | $ac_includes_default |
20939 | int | |
20940 | main () | |
20941 | { | |
3185942a | 20942 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
b80f6443 JA |
20943 | test_array [0] = 0 |
20944 | ||
20945 | ; | |
20946 | return 0; | |
20947 | } | |
20948 | _ACEOF | |
20949 | rm -f conftest.$ac_objext | |
3185942a JA |
20950 | if { (ac_try="$ac_compile" |
20951 | case "(($ac_try" in | |
20952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20953 | *) ac_try_echo=$ac_try;; | |
20954 | esac | |
20955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20956 | $as_echo "$ac_try_echo") >&5 | |
20957 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 20958 | ac_status=$? |
0628567a JA |
20959 | grep -v '^ *+' conftest.er1 >conftest.err |
20960 | rm -f conftest.er1 | |
20961 | cat conftest.err >&5 | |
3185942a JA |
20962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20963 | (exit $ac_status); } && { | |
20964 | test -z "$ac_c_werror_flag" || | |
20965 | test ! -s conftest.err | |
20966 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 20967 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
20968 | while :; do |
20969 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20970 | /* confdefs.h. */ |
20971 | _ACEOF | |
20972 | cat confdefs.h >>conftest.$ac_ext | |
20973 | cat >>conftest.$ac_ext <<_ACEOF | |
20974 | /* end confdefs.h. */ | |
f73dda09 JA |
20975 | $ac_includes_default |
20976 | int | |
20977 | main () | |
20978 | { | |
3185942a | 20979 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
b80f6443 JA |
20980 | test_array [0] = 0 |
20981 | ||
f73dda09 JA |
20982 | ; |
20983 | return 0; | |
20984 | } | |
20985 | _ACEOF | |
20986 | rm -f conftest.$ac_objext | |
3185942a JA |
20987 | if { (ac_try="$ac_compile" |
20988 | case "(($ac_try" in | |
20989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20990 | *) ac_try_echo=$ac_try;; | |
20991 | esac | |
20992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20993 | $as_echo "$ac_try_echo") >&5 | |
20994 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20995 | ac_status=$? |
0628567a JA |
20996 | grep -v '^ *+' conftest.er1 >conftest.err |
20997 | rm -f conftest.er1 | |
20998 | cat conftest.err >&5 | |
3185942a JA |
20999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21000 | (exit $ac_status); } && { | |
21001 | test -z "$ac_c_werror_flag" || | |
21002 | test ! -s conftest.err | |
21003 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21004 | ac_lo=$ac_mid; break |
21005 | else | |
3185942a | 21006 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21007 | sed 's/^/| /' conftest.$ac_ext >&5 |
21008 | ||
3185942a JA |
21009 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21010 | if test $ac_mid -le $ac_hi; then | |
21011 | ac_lo= ac_hi= | |
21012 | break | |
21013 | fi | |
21014 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21015 | fi |
3185942a JA |
21016 | |
21017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21018 | done |
b80f6443 | 21019 | else |
3185942a | 21020 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21021 | sed 's/^/| /' conftest.$ac_ext >&5 |
21022 | ||
3185942a | 21023 | ac_lo= ac_hi= |
b80f6443 | 21024 | fi |
3185942a JA |
21025 | |
21026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 21027 | fi |
3185942a JA |
21028 | |
21029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21030 | # Binary search between lo and hi bounds. |
21031 | while test "x$ac_lo" != "x$ac_hi"; do | |
21032 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21033 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21034 | /* confdefs.h. */ |
21035 | _ACEOF | |
21036 | cat confdefs.h >>conftest.$ac_ext | |
21037 | cat >>conftest.$ac_ext <<_ACEOF | |
21038 | /* end confdefs.h. */ | |
f73dda09 JA |
21039 | $ac_includes_default |
21040 | int | |
21041 | main () | |
21042 | { | |
3185942a | 21043 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b80f6443 JA |
21044 | test_array [0] = 0 |
21045 | ||
f73dda09 JA |
21046 | ; |
21047 | return 0; | |
21048 | } | |
21049 | _ACEOF | |
21050 | rm -f conftest.$ac_objext | |
3185942a JA |
21051 | if { (ac_try="$ac_compile" |
21052 | case "(($ac_try" in | |
21053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21054 | *) ac_try_echo=$ac_try;; | |
21055 | esac | |
21056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21057 | $as_echo "$ac_try_echo") >&5 | |
21058 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21059 | ac_status=$? |
0628567a JA |
21060 | grep -v '^ *+' conftest.er1 >conftest.err |
21061 | rm -f conftest.er1 | |
21062 | cat conftest.err >&5 | |
3185942a JA |
21063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21064 | (exit $ac_status); } && { | |
21065 | test -z "$ac_c_werror_flag" || | |
21066 | test ! -s conftest.err | |
21067 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21068 | ac_hi=$ac_mid |
21069 | else | |
3185942a | 21070 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21071 | sed 's/^/| /' conftest.$ac_ext >&5 |
21072 | ||
3185942a | 21073 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 21074 | fi |
3185942a JA |
21075 | |
21076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21077 | done |
b80f6443 JA |
21078 | case $ac_lo in |
21079 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
3185942a JA |
21080 | '') if test "$ac_cv_type_long" = yes; then |
21081 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21083 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
0628567a | 21084 | See \`config.log' for more details." >&5 |
3185942a | 21085 | $as_echo "$as_me: error: cannot compute sizeof (long) |
0628567a | 21086 | See \`config.log' for more details." >&2;} |
3185942a JA |
21087 | { (exit 77); exit 77; }; }; } |
21088 | else | |
21089 | ac_cv_sizeof_long=0 | |
21090 | fi ;; | |
b80f6443 | 21091 | esac |
bb70624e | 21092 | else |
f73dda09 | 21093 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21094 | /* confdefs.h. */ |
21095 | _ACEOF | |
21096 | cat confdefs.h >>conftest.$ac_ext | |
21097 | cat >>conftest.$ac_ext <<_ACEOF | |
21098 | /* end confdefs.h. */ | |
f73dda09 | 21099 | $ac_includes_default |
3185942a JA |
21100 | static long int longval () { return (long int) (sizeof (long)); } |
21101 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } | |
b80f6443 JA |
21102 | #include <stdio.h> |
21103 | #include <stdlib.h> | |
f73dda09 JA |
21104 | int |
21105 | main () | |
bb70624e | 21106 | { |
b80f6443 JA |
21107 | |
21108 | FILE *f = fopen ("conftest.val", "w"); | |
21109 | if (! f) | |
3185942a JA |
21110 | return 1; |
21111 | if (((long int) (sizeof (long))) < 0) | |
b80f6443 | 21112 | { |
3185942a JA |
21113 | long int i = longval (); |
21114 | if (i != ((long int) (sizeof (long)))) | |
21115 | return 1; | |
21116 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21117 | } |
21118 | else | |
21119 | { | |
3185942a JA |
21120 | unsigned long int i = ulongval (); |
21121 | if (i != ((long int) (sizeof (long)))) | |
21122 | return 1; | |
21123 | fprintf (f, "%lu", i); | |
b80f6443 | 21124 | } |
3185942a JA |
21125 | /* Do not output a trailing newline, as this causes \r\n confusion |
21126 | on some platforms. */ | |
21127 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21128 | |
f73dda09 JA |
21129 | ; |
21130 | return 0; | |
bb70624e | 21131 | } |
f73dda09 JA |
21132 | _ACEOF |
21133 | rm -f conftest$ac_exeext | |
3185942a JA |
21134 | if { (ac_try="$ac_link" |
21135 | case "(($ac_try" in | |
21136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21137 | *) ac_try_echo=$ac_try;; | |
21138 | esac | |
21139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21140 | $as_echo "$ac_try_echo") >&5 | |
21141 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21142 | ac_status=$? |
3185942a | 21143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21145 | { (case "(($ac_try" in |
21146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21147 | *) ac_try_echo=$ac_try;; | |
21148 | esac | |
21149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21150 | $as_echo "$ac_try_echo") >&5 | |
21151 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21152 | ac_status=$? |
3185942a | 21153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21154 | (exit $ac_status); }; }; then |
21155 | ac_cv_sizeof_long=`cat conftest.val` | |
bb70624e | 21156 | else |
3185942a JA |
21157 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21158 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21159 | sed 's/^/| /' conftest.$ac_ext >&5 |
21160 | ||
b80f6443 | 21161 | ( exit $ac_status ) |
3185942a JA |
21162 | if test "$ac_cv_type_long" = yes; then |
21163 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21165 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
0628567a | 21166 | See \`config.log' for more details." >&5 |
3185942a | 21167 | $as_echo "$as_me: error: cannot compute sizeof (long) |
0628567a | 21168 | See \`config.log' for more details." >&2;} |
3185942a JA |
21169 | { (exit 77); exit 77; }; }; } |
21170 | else | |
21171 | ac_cv_sizeof_long=0 | |
21172 | fi | |
bb70624e | 21173 | fi |
3185942a JA |
21174 | rm -rf conftest.dSYM |
21175 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 21176 | fi |
f73dda09 | 21177 | rm -f conftest.val |
f73dda09 | 21178 | fi |
3185942a JA |
21179 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
21180 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
bb70624e | 21181 | |
b80f6443 | 21182 | |
3185942a JA |
21183 | |
21184 | cat >>confdefs.h <<_ACEOF | |
21185 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
f73dda09 | 21186 | _ACEOF |
0628567a | 21187 | |
f73dda09 | 21188 | |
3185942a JA |
21189 | # The cast to long int works around a bug in the HP C Compiler |
21190 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21191 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21192 | # This bug is HP SR number 8606223364. | |
21193 | { $as_echo "$as_me:$LINENO: checking size of char *" >&5 | |
21194 | $as_echo_n "checking size of char *... " >&6; } | |
f73dda09 | 21195 | if test "${ac_cv_sizeof_char_p+set}" = set; then |
3185942a | 21196 | $as_echo_n "(cached) " >&6 |
f73dda09 | 21197 | else |
f73dda09 JA |
21198 | if test "$cross_compiling" = yes; then |
21199 | # Depending upon the size, compute the lo and hi bounds. | |
21200 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21201 | /* confdefs.h. */ |
21202 | _ACEOF | |
21203 | cat confdefs.h >>conftest.$ac_ext | |
21204 | cat >>conftest.$ac_ext <<_ACEOF | |
21205 | /* end confdefs.h. */ | |
f73dda09 JA |
21206 | $ac_includes_default |
21207 | int | |
21208 | main () | |
21209 | { | |
3185942a | 21210 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)]; |
b80f6443 JA |
21211 | test_array [0] = 0 |
21212 | ||
f73dda09 JA |
21213 | ; |
21214 | return 0; | |
21215 | } | |
21216 | _ACEOF | |
21217 | rm -f conftest.$ac_objext | |
3185942a JA |
21218 | if { (ac_try="$ac_compile" |
21219 | case "(($ac_try" in | |
21220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21221 | *) ac_try_echo=$ac_try;; | |
21222 | esac | |
21223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21224 | $as_echo "$ac_try_echo") >&5 | |
21225 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21226 | ac_status=$? |
0628567a JA |
21227 | grep -v '^ *+' conftest.er1 >conftest.err |
21228 | rm -f conftest.er1 | |
21229 | cat conftest.err >&5 | |
3185942a JA |
21230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21231 | (exit $ac_status); } && { | |
21232 | test -z "$ac_c_werror_flag" || | |
21233 | test ! -s conftest.err | |
21234 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21235 | ac_lo=0 ac_mid=0 |
21236 | while :; do | |
21237 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21238 | /* confdefs.h. */ |
21239 | _ACEOF | |
21240 | cat confdefs.h >>conftest.$ac_ext | |
21241 | cat >>conftest.$ac_ext <<_ACEOF | |
21242 | /* end confdefs.h. */ | |
f73dda09 JA |
21243 | $ac_includes_default |
21244 | int | |
21245 | main () | |
21246 | { | |
3185942a | 21247 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; |
b80f6443 JA |
21248 | test_array [0] = 0 |
21249 | ||
f73dda09 JA |
21250 | ; |
21251 | return 0; | |
21252 | } | |
21253 | _ACEOF | |
21254 | rm -f conftest.$ac_objext | |
3185942a JA |
21255 | if { (ac_try="$ac_compile" |
21256 | case "(($ac_try" in | |
21257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21258 | *) ac_try_echo=$ac_try;; | |
21259 | esac | |
21260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21261 | $as_echo "$ac_try_echo") >&5 | |
21262 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21263 | ac_status=$? |
0628567a JA |
21264 | grep -v '^ *+' conftest.er1 >conftest.err |
21265 | rm -f conftest.er1 | |
21266 | cat conftest.err >&5 | |
3185942a JA |
21267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21268 | (exit $ac_status); } && { | |
21269 | test -z "$ac_c_werror_flag" || | |
21270 | test ! -s conftest.err | |
21271 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21272 | ac_hi=$ac_mid; break |
21273 | else | |
3185942a | 21274 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21275 | sed 's/^/| /' conftest.$ac_ext >&5 |
21276 | ||
3185942a JA |
21277 | ac_lo=`expr $ac_mid + 1` |
21278 | if test $ac_lo -le $ac_mid; then | |
21279 | ac_lo= ac_hi= | |
21280 | break | |
21281 | fi | |
21282 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 21283 | fi |
3185942a JA |
21284 | |
21285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21286 | done |
21287 | else | |
3185942a | 21288 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21289 | sed 's/^/| /' conftest.$ac_ext >&5 |
21290 | ||
3185942a | 21291 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21292 | /* confdefs.h. */ |
21293 | _ACEOF | |
21294 | cat confdefs.h >>conftest.$ac_ext | |
21295 | cat >>conftest.$ac_ext <<_ACEOF | |
21296 | /* end confdefs.h. */ | |
b80f6443 JA |
21297 | $ac_includes_default |
21298 | int | |
21299 | main () | |
21300 | { | |
3185942a | 21301 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)]; |
b80f6443 JA |
21302 | test_array [0] = 0 |
21303 | ||
21304 | ; | |
21305 | return 0; | |
21306 | } | |
21307 | _ACEOF | |
21308 | rm -f conftest.$ac_objext | |
3185942a JA |
21309 | if { (ac_try="$ac_compile" |
21310 | case "(($ac_try" in | |
21311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21312 | *) ac_try_echo=$ac_try;; | |
21313 | esac | |
21314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21315 | $as_echo "$ac_try_echo") >&5 | |
21316 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 21317 | ac_status=$? |
0628567a JA |
21318 | grep -v '^ *+' conftest.er1 >conftest.err |
21319 | rm -f conftest.er1 | |
21320 | cat conftest.err >&5 | |
3185942a JA |
21321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21322 | (exit $ac_status); } && { | |
21323 | test -z "$ac_c_werror_flag" || | |
21324 | test ! -s conftest.err | |
21325 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 21326 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
21327 | while :; do |
21328 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21329 | /* confdefs.h. */ |
21330 | _ACEOF | |
21331 | cat confdefs.h >>conftest.$ac_ext | |
21332 | cat >>conftest.$ac_ext <<_ACEOF | |
21333 | /* end confdefs.h. */ | |
f73dda09 JA |
21334 | $ac_includes_default |
21335 | int | |
21336 | main () | |
21337 | { | |
3185942a | 21338 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)]; |
b80f6443 JA |
21339 | test_array [0] = 0 |
21340 | ||
f73dda09 JA |
21341 | ; |
21342 | return 0; | |
21343 | } | |
21344 | _ACEOF | |
21345 | rm -f conftest.$ac_objext | |
3185942a JA |
21346 | if { (ac_try="$ac_compile" |
21347 | case "(($ac_try" in | |
21348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21349 | *) ac_try_echo=$ac_try;; | |
21350 | esac | |
21351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21352 | $as_echo "$ac_try_echo") >&5 | |
21353 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21354 | ac_status=$? |
0628567a JA |
21355 | grep -v '^ *+' conftest.er1 >conftest.err |
21356 | rm -f conftest.er1 | |
21357 | cat conftest.err >&5 | |
3185942a JA |
21358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21359 | (exit $ac_status); } && { | |
21360 | test -z "$ac_c_werror_flag" || | |
21361 | test ! -s conftest.err | |
21362 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21363 | ac_lo=$ac_mid; break |
21364 | else | |
3185942a | 21365 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21366 | sed 's/^/| /' conftest.$ac_ext >&5 |
21367 | ||
3185942a JA |
21368 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21369 | if test $ac_mid -le $ac_hi; then | |
21370 | ac_lo= ac_hi= | |
21371 | break | |
21372 | fi | |
21373 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21374 | fi |
3185942a JA |
21375 | |
21376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21377 | done |
b80f6443 | 21378 | else |
3185942a | 21379 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21380 | sed 's/^/| /' conftest.$ac_ext >&5 |
21381 | ||
3185942a | 21382 | ac_lo= ac_hi= |
b80f6443 | 21383 | fi |
3185942a JA |
21384 | |
21385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21386 | fi |
3185942a JA |
21387 | |
21388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21389 | # Binary search between lo and hi bounds. |
21390 | while test "x$ac_lo" != "x$ac_hi"; do | |
21391 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21392 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21393 | /* confdefs.h. */ |
21394 | _ACEOF | |
21395 | cat confdefs.h >>conftest.$ac_ext | |
21396 | cat >>conftest.$ac_ext <<_ACEOF | |
21397 | /* end confdefs.h. */ | |
f73dda09 JA |
21398 | $ac_includes_default |
21399 | int | |
21400 | main () | |
21401 | { | |
3185942a | 21402 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; |
b80f6443 JA |
21403 | test_array [0] = 0 |
21404 | ||
f73dda09 JA |
21405 | ; |
21406 | return 0; | |
21407 | } | |
21408 | _ACEOF | |
21409 | rm -f conftest.$ac_objext | |
3185942a JA |
21410 | if { (ac_try="$ac_compile" |
21411 | case "(($ac_try" in | |
21412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21413 | *) ac_try_echo=$ac_try;; | |
21414 | esac | |
21415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21416 | $as_echo "$ac_try_echo") >&5 | |
21417 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21418 | ac_status=$? |
0628567a JA |
21419 | grep -v '^ *+' conftest.er1 >conftest.err |
21420 | rm -f conftest.er1 | |
21421 | cat conftest.err >&5 | |
3185942a JA |
21422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21423 | (exit $ac_status); } && { | |
21424 | test -z "$ac_c_werror_flag" || | |
21425 | test ! -s conftest.err | |
21426 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21427 | ac_hi=$ac_mid |
21428 | else | |
3185942a | 21429 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21430 | sed 's/^/| /' conftest.$ac_ext >&5 |
21431 | ||
3185942a | 21432 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 21433 | fi |
3185942a JA |
21434 | |
21435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21436 | done |
b80f6443 JA |
21437 | case $ac_lo in |
21438 | ?*) ac_cv_sizeof_char_p=$ac_lo;; | |
3185942a JA |
21439 | '') if test "$ac_cv_type_char_p" = yes; then |
21440 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21442 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) | |
0628567a | 21443 | See \`config.log' for more details." >&5 |
3185942a | 21444 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
0628567a | 21445 | See \`config.log' for more details." >&2;} |
3185942a JA |
21446 | { (exit 77); exit 77; }; }; } |
21447 | else | |
21448 | ac_cv_sizeof_char_p=0 | |
21449 | fi ;; | |
b80f6443 | 21450 | esac |
bb70624e | 21451 | else |
f73dda09 | 21452 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21453 | /* confdefs.h. */ |
21454 | _ACEOF | |
21455 | cat confdefs.h >>conftest.$ac_ext | |
21456 | cat >>conftest.$ac_ext <<_ACEOF | |
21457 | /* end confdefs.h. */ | |
f73dda09 | 21458 | $ac_includes_default |
3185942a JA |
21459 | static long int longval () { return (long int) (sizeof (char *)); } |
21460 | static unsigned long int ulongval () { return (long int) (sizeof (char *)); } | |
b80f6443 JA |
21461 | #include <stdio.h> |
21462 | #include <stdlib.h> | |
f73dda09 JA |
21463 | int |
21464 | main () | |
bb70624e | 21465 | { |
b80f6443 JA |
21466 | |
21467 | FILE *f = fopen ("conftest.val", "w"); | |
21468 | if (! f) | |
3185942a JA |
21469 | return 1; |
21470 | if (((long int) (sizeof (char *))) < 0) | |
b80f6443 | 21471 | { |
3185942a JA |
21472 | long int i = longval (); |
21473 | if (i != ((long int) (sizeof (char *)))) | |
21474 | return 1; | |
21475 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21476 | } |
21477 | else | |
21478 | { | |
3185942a JA |
21479 | unsigned long int i = ulongval (); |
21480 | if (i != ((long int) (sizeof (char *)))) | |
21481 | return 1; | |
21482 | fprintf (f, "%lu", i); | |
b80f6443 | 21483 | } |
3185942a JA |
21484 | /* Do not output a trailing newline, as this causes \r\n confusion |
21485 | on some platforms. */ | |
21486 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21487 | |
f73dda09 JA |
21488 | ; |
21489 | return 0; | |
bb70624e | 21490 | } |
f73dda09 JA |
21491 | _ACEOF |
21492 | rm -f conftest$ac_exeext | |
3185942a JA |
21493 | if { (ac_try="$ac_link" |
21494 | case "(($ac_try" in | |
21495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21496 | *) ac_try_echo=$ac_try;; | |
21497 | esac | |
21498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21499 | $as_echo "$ac_try_echo") >&5 | |
21500 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21501 | ac_status=$? |
3185942a | 21502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21504 | { (case "(($ac_try" in |
21505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21506 | *) ac_try_echo=$ac_try;; | |
21507 | esac | |
21508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21509 | $as_echo "$ac_try_echo") >&5 | |
21510 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21511 | ac_status=$? |
3185942a | 21512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21513 | (exit $ac_status); }; }; then |
21514 | ac_cv_sizeof_char_p=`cat conftest.val` | |
bb70624e | 21515 | else |
3185942a JA |
21516 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21517 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21518 | sed 's/^/| /' conftest.$ac_ext >&5 |
21519 | ||
b80f6443 | 21520 | ( exit $ac_status ) |
3185942a JA |
21521 | if test "$ac_cv_type_char_p" = yes; then |
21522 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21524 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) | |
0628567a | 21525 | See \`config.log' for more details." >&5 |
3185942a | 21526 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
0628567a | 21527 | See \`config.log' for more details." >&2;} |
3185942a JA |
21528 | { (exit 77); exit 77; }; }; } |
21529 | else | |
21530 | ac_cv_sizeof_char_p=0 | |
21531 | fi | |
bb70624e | 21532 | fi |
3185942a JA |
21533 | rm -rf conftest.dSYM |
21534 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 21535 | fi |
f73dda09 | 21536 | rm -f conftest.val |
f73dda09 | 21537 | fi |
3185942a JA |
21538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 |
21539 | $as_echo "$ac_cv_sizeof_char_p" >&6; } | |
bb70624e | 21540 | |
b80f6443 | 21541 | |
3185942a JA |
21542 | |
21543 | cat >>confdefs.h <<_ACEOF | |
21544 | #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p | |
f73dda09 | 21545 | _ACEOF |
0628567a | 21546 | |
f73dda09 | 21547 | |
3185942a JA |
21548 | # The cast to long int works around a bug in the HP C Compiler |
21549 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21550 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21551 | # This bug is HP SR number 8606223364. | |
21552 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 | |
21553 | $as_echo_n "checking size of double... " >&6; } | |
f73dda09 | 21554 | if test "${ac_cv_sizeof_double+set}" = set; then |
3185942a | 21555 | $as_echo_n "(cached) " >&6 |
f73dda09 | 21556 | else |
cce855bc | 21557 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
21558 | # Depending upon the size, compute the lo and hi bounds. |
21559 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21560 | /* confdefs.h. */ |
21561 | _ACEOF | |
21562 | cat confdefs.h >>conftest.$ac_ext | |
21563 | cat >>conftest.$ac_ext <<_ACEOF | |
21564 | /* end confdefs.h. */ | |
f73dda09 JA |
21565 | $ac_includes_default |
21566 | int | |
21567 | main () | |
cce855bc | 21568 | { |
3185942a | 21569 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)]; |
b80f6443 JA |
21570 | test_array [0] = 0 |
21571 | ||
f73dda09 JA |
21572 | ; |
21573 | return 0; | |
cce855bc | 21574 | } |
f73dda09 JA |
21575 | _ACEOF |
21576 | rm -f conftest.$ac_objext | |
3185942a JA |
21577 | if { (ac_try="$ac_compile" |
21578 | case "(($ac_try" in | |
21579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21580 | *) ac_try_echo=$ac_try;; | |
21581 | esac | |
21582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21583 | $as_echo "$ac_try_echo") >&5 | |
21584 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21585 | ac_status=$? |
0628567a JA |
21586 | grep -v '^ *+' conftest.er1 >conftest.err |
21587 | rm -f conftest.er1 | |
21588 | cat conftest.err >&5 | |
3185942a JA |
21589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21590 | (exit $ac_status); } && { | |
21591 | test -z "$ac_c_werror_flag" || | |
21592 | test ! -s conftest.err | |
21593 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21594 | ac_lo=0 ac_mid=0 |
21595 | while :; do | |
21596 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21597 | /* confdefs.h. */ |
21598 | _ACEOF | |
21599 | cat confdefs.h >>conftest.$ac_ext | |
21600 | cat >>conftest.$ac_ext <<_ACEOF | |
21601 | /* end confdefs.h. */ | |
f73dda09 JA |
21602 | $ac_includes_default |
21603 | int | |
21604 | main () | |
21605 | { | |
3185942a | 21606 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
b80f6443 JA |
21607 | test_array [0] = 0 |
21608 | ||
f73dda09 JA |
21609 | ; |
21610 | return 0; | |
21611 | } | |
21612 | _ACEOF | |
21613 | rm -f conftest.$ac_objext | |
3185942a JA |
21614 | if { (ac_try="$ac_compile" |
21615 | case "(($ac_try" in | |
21616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21617 | *) ac_try_echo=$ac_try;; | |
21618 | esac | |
21619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21620 | $as_echo "$ac_try_echo") >&5 | |
21621 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21622 | ac_status=$? |
0628567a JA |
21623 | grep -v '^ *+' conftest.er1 >conftest.err |
21624 | rm -f conftest.er1 | |
21625 | cat conftest.err >&5 | |
3185942a JA |
21626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21627 | (exit $ac_status); } && { | |
21628 | test -z "$ac_c_werror_flag" || | |
21629 | test ! -s conftest.err | |
21630 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21631 | ac_hi=$ac_mid; break |
21632 | else | |
3185942a | 21633 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21634 | sed 's/^/| /' conftest.$ac_ext >&5 |
21635 | ||
3185942a JA |
21636 | ac_lo=`expr $ac_mid + 1` |
21637 | if test $ac_lo -le $ac_mid; then | |
21638 | ac_lo= ac_hi= | |
21639 | break | |
21640 | fi | |
21641 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 21642 | fi |
3185942a JA |
21643 | |
21644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21645 | done |
cce855bc | 21646 | else |
3185942a | 21647 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21648 | sed 's/^/| /' conftest.$ac_ext >&5 |
21649 | ||
3185942a | 21650 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21651 | /* confdefs.h. */ |
21652 | _ACEOF | |
21653 | cat confdefs.h >>conftest.$ac_ext | |
21654 | cat >>conftest.$ac_ext <<_ACEOF | |
21655 | /* end confdefs.h. */ | |
b80f6443 JA |
21656 | $ac_includes_default |
21657 | int | |
21658 | main () | |
21659 | { | |
3185942a | 21660 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)]; |
b80f6443 JA |
21661 | test_array [0] = 0 |
21662 | ||
21663 | ; | |
21664 | return 0; | |
21665 | } | |
21666 | _ACEOF | |
21667 | rm -f conftest.$ac_objext | |
3185942a JA |
21668 | if { (ac_try="$ac_compile" |
21669 | case "(($ac_try" in | |
21670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21671 | *) ac_try_echo=$ac_try;; | |
21672 | esac | |
21673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21674 | $as_echo "$ac_try_echo") >&5 | |
21675 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 21676 | ac_status=$? |
0628567a JA |
21677 | grep -v '^ *+' conftest.er1 >conftest.err |
21678 | rm -f conftest.er1 | |
21679 | cat conftest.err >&5 | |
3185942a JA |
21680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21681 | (exit $ac_status); } && { | |
21682 | test -z "$ac_c_werror_flag" || | |
21683 | test ! -s conftest.err | |
21684 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 21685 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
21686 | while :; do |
21687 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21688 | /* confdefs.h. */ |
21689 | _ACEOF | |
21690 | cat confdefs.h >>conftest.$ac_ext | |
21691 | cat >>conftest.$ac_ext <<_ACEOF | |
21692 | /* end confdefs.h. */ | |
f73dda09 JA |
21693 | $ac_includes_default |
21694 | int | |
21695 | main () | |
21696 | { | |
3185942a | 21697 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)]; |
b80f6443 JA |
21698 | test_array [0] = 0 |
21699 | ||
f73dda09 JA |
21700 | ; |
21701 | return 0; | |
21702 | } | |
21703 | _ACEOF | |
21704 | rm -f conftest.$ac_objext | |
3185942a JA |
21705 | if { (ac_try="$ac_compile" |
21706 | case "(($ac_try" in | |
21707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21708 | *) ac_try_echo=$ac_try;; | |
21709 | esac | |
21710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21711 | $as_echo "$ac_try_echo") >&5 | |
21712 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21713 | ac_status=$? |
0628567a JA |
21714 | grep -v '^ *+' conftest.er1 >conftest.err |
21715 | rm -f conftest.er1 | |
21716 | cat conftest.err >&5 | |
3185942a JA |
21717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21718 | (exit $ac_status); } && { | |
21719 | test -z "$ac_c_werror_flag" || | |
21720 | test ! -s conftest.err | |
21721 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21722 | ac_lo=$ac_mid; break |
21723 | else | |
3185942a | 21724 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21725 | sed 's/^/| /' conftest.$ac_ext >&5 |
21726 | ||
3185942a JA |
21727 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21728 | if test $ac_mid -le $ac_hi; then | |
21729 | ac_lo= ac_hi= | |
21730 | break | |
21731 | fi | |
21732 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21733 | fi |
3185942a JA |
21734 | |
21735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21736 | done |
b80f6443 | 21737 | else |
3185942a | 21738 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21739 | sed 's/^/| /' conftest.$ac_ext >&5 |
21740 | ||
3185942a | 21741 | ac_lo= ac_hi= |
b80f6443 | 21742 | fi |
3185942a JA |
21743 | |
21744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 21745 | fi |
3185942a JA |
21746 | |
21747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21748 | # Binary search between lo and hi bounds. |
21749 | while test "x$ac_lo" != "x$ac_hi"; do | |
21750 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21751 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21752 | /* confdefs.h. */ |
21753 | _ACEOF | |
21754 | cat confdefs.h >>conftest.$ac_ext | |
21755 | cat >>conftest.$ac_ext <<_ACEOF | |
21756 | /* end confdefs.h. */ | |
f73dda09 JA |
21757 | $ac_includes_default |
21758 | int | |
21759 | main () | |
21760 | { | |
3185942a | 21761 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
b80f6443 JA |
21762 | test_array [0] = 0 |
21763 | ||
f73dda09 JA |
21764 | ; |
21765 | return 0; | |
21766 | } | |
21767 | _ACEOF | |
21768 | rm -f conftest.$ac_objext | |
3185942a JA |
21769 | if { (ac_try="$ac_compile" |
21770 | case "(($ac_try" in | |
21771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21772 | *) ac_try_echo=$ac_try;; | |
21773 | esac | |
21774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21775 | $as_echo "$ac_try_echo") >&5 | |
21776 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21777 | ac_status=$? |
0628567a JA |
21778 | grep -v '^ *+' conftest.er1 >conftest.err |
21779 | rm -f conftest.er1 | |
21780 | cat conftest.err >&5 | |
3185942a JA |
21781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21782 | (exit $ac_status); } && { | |
21783 | test -z "$ac_c_werror_flag" || | |
21784 | test ! -s conftest.err | |
21785 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21786 | ac_hi=$ac_mid |
21787 | else | |
3185942a | 21788 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21789 | sed 's/^/| /' conftest.$ac_ext >&5 |
21790 | ||
3185942a | 21791 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 21792 | fi |
3185942a JA |
21793 | |
21794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21795 | done |
b80f6443 JA |
21796 | case $ac_lo in |
21797 | ?*) ac_cv_sizeof_double=$ac_lo;; | |
3185942a JA |
21798 | '') if test "$ac_cv_type_double" = yes; then |
21799 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21801 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) | |
0628567a | 21802 | See \`config.log' for more details." >&5 |
3185942a | 21803 | $as_echo "$as_me: error: cannot compute sizeof (double) |
0628567a | 21804 | See \`config.log' for more details." >&2;} |
3185942a JA |
21805 | { (exit 77); exit 77; }; }; } |
21806 | else | |
21807 | ac_cv_sizeof_double=0 | |
21808 | fi ;; | |
b80f6443 | 21809 | esac |
cce855bc | 21810 | else |
f73dda09 | 21811 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21812 | /* confdefs.h. */ |
21813 | _ACEOF | |
21814 | cat confdefs.h >>conftest.$ac_ext | |
21815 | cat >>conftest.$ac_ext <<_ACEOF | |
21816 | /* end confdefs.h. */ | |
f73dda09 | 21817 | $ac_includes_default |
3185942a JA |
21818 | static long int longval () { return (long int) (sizeof (double)); } |
21819 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } | |
b80f6443 JA |
21820 | #include <stdio.h> |
21821 | #include <stdlib.h> | |
f73dda09 JA |
21822 | int |
21823 | main () | |
cce855bc | 21824 | { |
b80f6443 JA |
21825 | |
21826 | FILE *f = fopen ("conftest.val", "w"); | |
21827 | if (! f) | |
3185942a JA |
21828 | return 1; |
21829 | if (((long int) (sizeof (double))) < 0) | |
b80f6443 | 21830 | { |
3185942a JA |
21831 | long int i = longval (); |
21832 | if (i != ((long int) (sizeof (double)))) | |
21833 | return 1; | |
21834 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21835 | } |
21836 | else | |
21837 | { | |
3185942a JA |
21838 | unsigned long int i = ulongval (); |
21839 | if (i != ((long int) (sizeof (double)))) | |
21840 | return 1; | |
21841 | fprintf (f, "%lu", i); | |
b80f6443 | 21842 | } |
3185942a JA |
21843 | /* Do not output a trailing newline, as this causes \r\n confusion |
21844 | on some platforms. */ | |
21845 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21846 | |
f73dda09 JA |
21847 | ; |
21848 | return 0; | |
cce855bc | 21849 | } |
f73dda09 JA |
21850 | _ACEOF |
21851 | rm -f conftest$ac_exeext | |
3185942a JA |
21852 | if { (ac_try="$ac_link" |
21853 | case "(($ac_try" in | |
21854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21855 | *) ac_try_echo=$ac_try;; | |
21856 | esac | |
21857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21858 | $as_echo "$ac_try_echo") >&5 | |
21859 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21860 | ac_status=$? |
3185942a | 21861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21863 | { (case "(($ac_try" in |
21864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21865 | *) ac_try_echo=$ac_try;; | |
21866 | esac | |
21867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21868 | $as_echo "$ac_try_echo") >&5 | |
21869 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21870 | ac_status=$? |
3185942a | 21871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21872 | (exit $ac_status); }; }; then |
21873 | ac_cv_sizeof_double=`cat conftest.val` | |
cce855bc | 21874 | else |
3185942a JA |
21875 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21876 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21877 | sed 's/^/| /' conftest.$ac_ext >&5 |
21878 | ||
b80f6443 | 21879 | ( exit $ac_status ) |
3185942a JA |
21880 | if test "$ac_cv_type_double" = yes; then |
21881 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21883 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) | |
0628567a | 21884 | See \`config.log' for more details." >&5 |
3185942a | 21885 | $as_echo "$as_me: error: cannot compute sizeof (double) |
0628567a | 21886 | See \`config.log' for more details." >&2;} |
3185942a JA |
21887 | { (exit 77); exit 77; }; }; } |
21888 | else | |
21889 | ac_cv_sizeof_double=0 | |
21890 | fi | |
cce855bc | 21891 | fi |
3185942a JA |
21892 | rm -rf conftest.dSYM |
21893 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 21894 | fi |
f73dda09 | 21895 | rm -f conftest.val |
f73dda09 | 21896 | fi |
3185942a JA |
21897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
21898 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
cce855bc | 21899 | |
b80f6443 | 21900 | |
3185942a JA |
21901 | |
21902 | cat >>confdefs.h <<_ACEOF | |
21903 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
f73dda09 | 21904 | _ACEOF |
0628567a | 21905 | |
f73dda09 | 21906 | |
3185942a JA |
21907 | # The cast to long int works around a bug in the HP C Compiler |
21908 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21909 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21910 | # This bug is HP SR number 8606223364. | |
21911 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 | |
21912 | $as_echo_n "checking size of long long... " >&6; } | |
f73dda09 | 21913 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
3185942a | 21914 | $as_echo_n "(cached) " >&6 |
f73dda09 | 21915 | else |
cce855bc | 21916 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
21917 | # Depending upon the size, compute the lo and hi bounds. |
21918 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21919 | /* confdefs.h. */ |
21920 | _ACEOF | |
21921 | cat confdefs.h >>conftest.$ac_ext | |
21922 | cat >>conftest.$ac_ext <<_ACEOF | |
21923 | /* end confdefs.h. */ | |
f73dda09 JA |
21924 | $ac_includes_default |
21925 | int | |
21926 | main () | |
cce855bc | 21927 | { |
3185942a | 21928 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
b80f6443 JA |
21929 | test_array [0] = 0 |
21930 | ||
f73dda09 JA |
21931 | ; |
21932 | return 0; | |
cce855bc | 21933 | } |
f73dda09 JA |
21934 | _ACEOF |
21935 | rm -f conftest.$ac_objext | |
3185942a JA |
21936 | if { (ac_try="$ac_compile" |
21937 | case "(($ac_try" in | |
21938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21939 | *) ac_try_echo=$ac_try;; | |
21940 | esac | |
21941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21942 | $as_echo "$ac_try_echo") >&5 | |
21943 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21944 | ac_status=$? |
0628567a JA |
21945 | grep -v '^ *+' conftest.er1 >conftest.err |
21946 | rm -f conftest.er1 | |
21947 | cat conftest.err >&5 | |
3185942a JA |
21948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21949 | (exit $ac_status); } && { | |
21950 | test -z "$ac_c_werror_flag" || | |
21951 | test ! -s conftest.err | |
21952 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21953 | ac_lo=0 ac_mid=0 |
21954 | while :; do | |
21955 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21956 | /* confdefs.h. */ |
21957 | _ACEOF | |
21958 | cat confdefs.h >>conftest.$ac_ext | |
21959 | cat >>conftest.$ac_ext <<_ACEOF | |
21960 | /* end confdefs.h. */ | |
f73dda09 JA |
21961 | $ac_includes_default |
21962 | int | |
21963 | main () | |
21964 | { | |
3185942a | 21965 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b80f6443 JA |
21966 | test_array [0] = 0 |
21967 | ||
f73dda09 JA |
21968 | ; |
21969 | return 0; | |
21970 | } | |
21971 | _ACEOF | |
21972 | rm -f conftest.$ac_objext | |
3185942a JA |
21973 | if { (ac_try="$ac_compile" |
21974 | case "(($ac_try" in | |
21975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21976 | *) ac_try_echo=$ac_try;; | |
21977 | esac | |
21978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21979 | $as_echo "$ac_try_echo") >&5 | |
21980 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21981 | ac_status=$? |
0628567a JA |
21982 | grep -v '^ *+' conftest.er1 >conftest.err |
21983 | rm -f conftest.er1 | |
21984 | cat conftest.err >&5 | |
3185942a JA |
21985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21986 | (exit $ac_status); } && { | |
21987 | test -z "$ac_c_werror_flag" || | |
21988 | test ! -s conftest.err | |
21989 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21990 | ac_hi=$ac_mid; break |
21991 | else | |
3185942a | 21992 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21993 | sed 's/^/| /' conftest.$ac_ext >&5 |
21994 | ||
3185942a JA |
21995 | ac_lo=`expr $ac_mid + 1` |
21996 | if test $ac_lo -le $ac_mid; then | |
21997 | ac_lo= ac_hi= | |
21998 | break | |
21999 | fi | |
22000 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 22001 | fi |
3185942a JA |
22002 | |
22003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22004 | done |
cce855bc | 22005 | else |
3185942a | 22006 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22007 | sed 's/^/| /' conftest.$ac_ext >&5 |
22008 | ||
3185942a | 22009 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22010 | /* confdefs.h. */ |
22011 | _ACEOF | |
22012 | cat confdefs.h >>conftest.$ac_ext | |
22013 | cat >>conftest.$ac_ext <<_ACEOF | |
22014 | /* end confdefs.h. */ | |
b80f6443 JA |
22015 | $ac_includes_default |
22016 | int | |
22017 | main () | |
22018 | { | |
3185942a | 22019 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
b80f6443 JA |
22020 | test_array [0] = 0 |
22021 | ||
22022 | ; | |
22023 | return 0; | |
22024 | } | |
22025 | _ACEOF | |
22026 | rm -f conftest.$ac_objext | |
3185942a JA |
22027 | if { (ac_try="$ac_compile" |
22028 | case "(($ac_try" in | |
22029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22030 | *) ac_try_echo=$ac_try;; | |
22031 | esac | |
22032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22033 | $as_echo "$ac_try_echo") >&5 | |
22034 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 22035 | ac_status=$? |
0628567a JA |
22036 | grep -v '^ *+' conftest.er1 >conftest.err |
22037 | rm -f conftest.er1 | |
22038 | cat conftest.err >&5 | |
3185942a JA |
22039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22040 | (exit $ac_status); } && { | |
22041 | test -z "$ac_c_werror_flag" || | |
22042 | test ! -s conftest.err | |
22043 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 22044 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
22045 | while :; do |
22046 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22047 | /* confdefs.h. */ |
22048 | _ACEOF | |
22049 | cat confdefs.h >>conftest.$ac_ext | |
22050 | cat >>conftest.$ac_ext <<_ACEOF | |
22051 | /* end confdefs.h. */ | |
f73dda09 JA |
22052 | $ac_includes_default |
22053 | int | |
22054 | main () | |
22055 | { | |
3185942a | 22056 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
b80f6443 JA |
22057 | test_array [0] = 0 |
22058 | ||
f73dda09 JA |
22059 | ; |
22060 | return 0; | |
22061 | } | |
22062 | _ACEOF | |
22063 | rm -f conftest.$ac_objext | |
3185942a JA |
22064 | if { (ac_try="$ac_compile" |
22065 | case "(($ac_try" in | |
22066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22067 | *) ac_try_echo=$ac_try;; | |
22068 | esac | |
22069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22070 | $as_echo "$ac_try_echo") >&5 | |
22071 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22072 | ac_status=$? |
0628567a JA |
22073 | grep -v '^ *+' conftest.er1 >conftest.err |
22074 | rm -f conftest.er1 | |
22075 | cat conftest.err >&5 | |
3185942a JA |
22076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22077 | (exit $ac_status); } && { | |
22078 | test -z "$ac_c_werror_flag" || | |
22079 | test ! -s conftest.err | |
22080 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22081 | ac_lo=$ac_mid; break |
22082 | else | |
3185942a | 22083 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22084 | sed 's/^/| /' conftest.$ac_ext >&5 |
22085 | ||
3185942a JA |
22086 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22087 | if test $ac_mid -le $ac_hi; then | |
22088 | ac_lo= ac_hi= | |
22089 | break | |
22090 | fi | |
22091 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 22092 | fi |
3185942a JA |
22093 | |
22094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22095 | done |
b80f6443 | 22096 | else |
3185942a | 22097 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22098 | sed 's/^/| /' conftest.$ac_ext >&5 |
22099 | ||
3185942a | 22100 | ac_lo= ac_hi= |
b80f6443 | 22101 | fi |
3185942a JA |
22102 | |
22103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22104 | fi |
3185942a JA |
22105 | |
22106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
22107 | # Binary search between lo and hi bounds. |
22108 | while test "x$ac_lo" != "x$ac_hi"; do | |
22109 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22110 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22111 | /* confdefs.h. */ |
22112 | _ACEOF | |
22113 | cat confdefs.h >>conftest.$ac_ext | |
22114 | cat >>conftest.$ac_ext <<_ACEOF | |
22115 | /* end confdefs.h. */ | |
f73dda09 JA |
22116 | $ac_includes_default |
22117 | int | |
22118 | main () | |
22119 | { | |
3185942a | 22120 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b80f6443 JA |
22121 | test_array [0] = 0 |
22122 | ||
f73dda09 JA |
22123 | ; |
22124 | return 0; | |
22125 | } | |
22126 | _ACEOF | |
22127 | rm -f conftest.$ac_objext | |
3185942a JA |
22128 | if { (ac_try="$ac_compile" |
22129 | case "(($ac_try" in | |
22130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22131 | *) ac_try_echo=$ac_try;; | |
22132 | esac | |
22133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22134 | $as_echo "$ac_try_echo") >&5 | |
22135 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22136 | ac_status=$? |
0628567a JA |
22137 | grep -v '^ *+' conftest.er1 >conftest.err |
22138 | rm -f conftest.er1 | |
22139 | cat conftest.err >&5 | |
3185942a JA |
22140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22141 | (exit $ac_status); } && { | |
22142 | test -z "$ac_c_werror_flag" || | |
22143 | test ! -s conftest.err | |
22144 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22145 | ac_hi=$ac_mid |
22146 | else | |
3185942a | 22147 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22148 | sed 's/^/| /' conftest.$ac_ext >&5 |
22149 | ||
3185942a | 22150 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 22151 | fi |
3185942a JA |
22152 | |
22153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22154 | done |
b80f6443 JA |
22155 | case $ac_lo in |
22156 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
3185942a JA |
22157 | '') if test "$ac_cv_type_long_long" = yes; then |
22158 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22159 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22160 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
0628567a | 22161 | See \`config.log' for more details." >&5 |
3185942a | 22162 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
0628567a | 22163 | See \`config.log' for more details." >&2;} |
3185942a JA |
22164 | { (exit 77); exit 77; }; }; } |
22165 | else | |
22166 | ac_cv_sizeof_long_long=0 | |
22167 | fi ;; | |
b80f6443 | 22168 | esac |
bb70624e | 22169 | else |
f73dda09 | 22170 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22171 | /* confdefs.h. */ |
22172 | _ACEOF | |
22173 | cat confdefs.h >>conftest.$ac_ext | |
22174 | cat >>conftest.$ac_ext <<_ACEOF | |
22175 | /* end confdefs.h. */ | |
f73dda09 | 22176 | $ac_includes_default |
3185942a JA |
22177 | static long int longval () { return (long int) (sizeof (long long)); } |
22178 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } | |
b80f6443 JA |
22179 | #include <stdio.h> |
22180 | #include <stdlib.h> | |
f73dda09 JA |
22181 | int |
22182 | main () | |
bb70624e | 22183 | { |
b80f6443 JA |
22184 | |
22185 | FILE *f = fopen ("conftest.val", "w"); | |
22186 | if (! f) | |
3185942a JA |
22187 | return 1; |
22188 | if (((long int) (sizeof (long long))) < 0) | |
b80f6443 | 22189 | { |
3185942a JA |
22190 | long int i = longval (); |
22191 | if (i != ((long int) (sizeof (long long)))) | |
22192 | return 1; | |
22193 | fprintf (f, "%ld", i); | |
b80f6443 JA |
22194 | } |
22195 | else | |
22196 | { | |
3185942a JA |
22197 | unsigned long int i = ulongval (); |
22198 | if (i != ((long int) (sizeof (long long)))) | |
22199 | return 1; | |
22200 | fprintf (f, "%lu", i); | |
b80f6443 | 22201 | } |
3185942a JA |
22202 | /* Do not output a trailing newline, as this causes \r\n confusion |
22203 | on some platforms. */ | |
22204 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 22205 | |
f73dda09 JA |
22206 | ; |
22207 | return 0; | |
bb70624e | 22208 | } |
f73dda09 JA |
22209 | _ACEOF |
22210 | rm -f conftest$ac_exeext | |
3185942a JA |
22211 | if { (ac_try="$ac_link" |
22212 | case "(($ac_try" in | |
22213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22214 | *) ac_try_echo=$ac_try;; | |
22215 | esac | |
22216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22217 | $as_echo "$ac_try_echo") >&5 | |
22218 | (eval "$ac_link") 2>&5 | |
f73dda09 | 22219 | ac_status=$? |
3185942a | 22220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
22222 | { (case "(($ac_try" in |
22223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22224 | *) ac_try_echo=$ac_try;; | |
22225 | esac | |
22226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22227 | $as_echo "$ac_try_echo") >&5 | |
22228 | (eval "$ac_try") 2>&5 | |
f73dda09 | 22229 | ac_status=$? |
3185942a | 22230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
22231 | (exit $ac_status); }; }; then |
22232 | ac_cv_sizeof_long_long=`cat conftest.val` | |
bb70624e | 22233 | else |
3185942a JA |
22234 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22235 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
22236 | sed 's/^/| /' conftest.$ac_ext >&5 |
22237 | ||
b80f6443 | 22238 | ( exit $ac_status ) |
3185942a JA |
22239 | if test "$ac_cv_type_long_long" = yes; then |
22240 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22242 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
0628567a | 22243 | See \`config.log' for more details." >&5 |
3185942a | 22244 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
0628567a | 22245 | See \`config.log' for more details." >&2;} |
3185942a JA |
22246 | { (exit 77); exit 77; }; }; } |
22247 | else | |
22248 | ac_cv_sizeof_long_long=0 | |
22249 | fi | |
bb70624e | 22250 | fi |
3185942a JA |
22251 | rm -rf conftest.dSYM |
22252 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22253 | fi |
f73dda09 | 22254 | rm -f conftest.val |
f73dda09 | 22255 | fi |
3185942a JA |
22256 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
22257 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
22258 | ||
22259 | ||
22260 | ||
b80f6443 | 22261 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 22262 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
b80f6443 | 22263 | _ACEOF |
bb70624e | 22264 | |
b80f6443 JA |
22265 | |
22266 | ||
3185942a JA |
22267 | { $as_echo "$as_me:$LINENO: checking for u_int" >&5 |
22268 | $as_echo_n "checking for u_int... " >&6; } | |
f73dda09 | 22269 | if test "${ac_cv_type_u_int+set}" = set; then |
3185942a | 22270 | $as_echo_n "(cached) " >&6 |
bb70624e | 22271 | else |
3185942a JA |
22272 | ac_cv_type_u_int=no |
22273 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22274 | /* confdefs.h. */ |
22275 | _ACEOF | |
22276 | cat confdefs.h >>conftest.$ac_ext | |
22277 | cat >>conftest.$ac_ext <<_ACEOF | |
22278 | /* end confdefs.h. */ | |
f73dda09 JA |
22279 | $ac_includes_default |
22280 | int | |
22281 | main () | |
22282 | { | |
f73dda09 | 22283 | if (sizeof (u_int)) |
3185942a | 22284 | return 0; |
f73dda09 JA |
22285 | ; |
22286 | return 0; | |
22287 | } | |
22288 | _ACEOF | |
22289 | rm -f conftest.$ac_objext | |
3185942a JA |
22290 | if { (ac_try="$ac_compile" |
22291 | case "(($ac_try" in | |
22292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22293 | *) ac_try_echo=$ac_try;; | |
22294 | esac | |
22295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22296 | $as_echo "$ac_try_echo") >&5 | |
22297 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22298 | ac_status=$? |
0628567a JA |
22299 | grep -v '^ *+' conftest.er1 >conftest.err |
22300 | rm -f conftest.er1 | |
22301 | cat conftest.err >&5 | |
3185942a JA |
22302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22303 | (exit $ac_status); } && { | |
22304 | test -z "$ac_c_werror_flag" || | |
22305 | test ! -s conftest.err | |
22306 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22307 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22308 | /* confdefs.h. */ |
22309 | _ACEOF | |
22310 | cat confdefs.h >>conftest.$ac_ext | |
22311 | cat >>conftest.$ac_ext <<_ACEOF | |
22312 | /* end confdefs.h. */ | |
f73dda09 JA |
22313 | $ac_includes_default |
22314 | int | |
22315 | main () | |
22316 | { | |
3185942a JA |
22317 | if (sizeof ((u_int))) |
22318 | return 0; | |
f73dda09 JA |
22319 | ; |
22320 | return 0; | |
22321 | } | |
22322 | _ACEOF | |
22323 | rm -f conftest.$ac_objext | |
3185942a JA |
22324 | if { (ac_try="$ac_compile" |
22325 | case "(($ac_try" in | |
22326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22327 | *) ac_try_echo=$ac_try;; | |
22328 | esac | |
22329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22330 | $as_echo "$ac_try_echo") >&5 | |
22331 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22332 | ac_status=$? |
0628567a JA |
22333 | grep -v '^ *+' conftest.er1 >conftest.err |
22334 | rm -f conftest.er1 | |
22335 | cat conftest.err >&5 | |
3185942a JA |
22336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22337 | (exit $ac_status); } && { | |
22338 | test -z "$ac_c_werror_flag" || | |
22339 | test ! -s conftest.err | |
22340 | } && test -s conftest.$ac_objext; then | |
22341 | : | |
22342 | else | |
22343 | $as_echo "$as_me: failed program was:" >&5 | |
22344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22345 | ||
22346 | ac_cv_type_u_int=yes | |
22347 | fi | |
22348 | ||
22349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22350 | else |
3185942a | 22351 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22352 | sed 's/^/| /' conftest.$ac_ext >&5 |
22353 | ||
3185942a | 22354 | |
bb70624e | 22355 | fi |
3185942a JA |
22356 | |
22357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22358 | fi |
3185942a JA |
22359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 |
22360 | $as_echo "$ac_cv_type_u_int" >&6; } | |
22361 | if test "x$ac_cv_type_u_int" = x""yes; then | |
f73dda09 JA |
22362 | : |
22363 | else | |
22364 | ||
b80f6443 | 22365 | cat >>confdefs.h <<_ACEOF |
3185942a | 22366 | #define u_int unsigned int |
b80f6443 | 22367 | _ACEOF |
bb70624e JA |
22368 | |
22369 | fi | |
22370 | ||
3185942a JA |
22371 | { $as_echo "$as_me:$LINENO: checking for u_long" >&5 |
22372 | $as_echo_n "checking for u_long... " >&6; } | |
22373 | if test "${ac_cv_type_u_long+set}" = set; then | |
22374 | $as_echo_n "(cached) " >&6 | |
bb70624e | 22375 | else |
3185942a JA |
22376 | ac_cv_type_u_long=no |
22377 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22378 | /* confdefs.h. */ |
22379 | _ACEOF | |
22380 | cat confdefs.h >>conftest.$ac_ext | |
22381 | cat >>conftest.$ac_ext <<_ACEOF | |
22382 | /* end confdefs.h. */ | |
f73dda09 JA |
22383 | $ac_includes_default |
22384 | int | |
22385 | main () | |
22386 | { | |
3185942a JA |
22387 | if (sizeof (u_long)) |
22388 | return 0; | |
f73dda09 JA |
22389 | ; |
22390 | return 0; | |
22391 | } | |
22392 | _ACEOF | |
22393 | rm -f conftest.$ac_objext | |
3185942a JA |
22394 | if { (ac_try="$ac_compile" |
22395 | case "(($ac_try" in | |
22396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22397 | *) ac_try_echo=$ac_try;; | |
22398 | esac | |
22399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22400 | $as_echo "$ac_try_echo") >&5 | |
22401 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22402 | ac_status=$? |
0628567a JA |
22403 | grep -v '^ *+' conftest.er1 >conftest.err |
22404 | rm -f conftest.er1 | |
22405 | cat conftest.err >&5 | |
3185942a JA |
22406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22407 | (exit $ac_status); } && { | |
22408 | test -z "$ac_c_werror_flag" || | |
22409 | test ! -s conftest.err | |
22410 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22411 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22412 | /* confdefs.h. */ |
22413 | _ACEOF | |
22414 | cat confdefs.h >>conftest.$ac_ext | |
22415 | cat >>conftest.$ac_ext <<_ACEOF | |
22416 | /* end confdefs.h. */ | |
f73dda09 JA |
22417 | $ac_includes_default |
22418 | int | |
22419 | main () | |
22420 | { | |
3185942a JA |
22421 | if (sizeof ((u_long))) |
22422 | return 0; | |
f73dda09 JA |
22423 | ; |
22424 | return 0; | |
22425 | } | |
22426 | _ACEOF | |
22427 | rm -f conftest.$ac_objext | |
3185942a JA |
22428 | if { (ac_try="$ac_compile" |
22429 | case "(($ac_try" in | |
22430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22431 | *) ac_try_echo=$ac_try;; | |
22432 | esac | |
22433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22434 | $as_echo "$ac_try_echo") >&5 | |
22435 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22436 | ac_status=$? |
0628567a JA |
22437 | grep -v '^ *+' conftest.er1 >conftest.err |
22438 | rm -f conftest.er1 | |
22439 | cat conftest.err >&5 | |
3185942a JA |
22440 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22441 | (exit $ac_status); } && { | |
22442 | test -z "$ac_c_werror_flag" || | |
22443 | test ! -s conftest.err | |
22444 | } && test -s conftest.$ac_objext; then | |
22445 | : | |
22446 | else | |
22447 | $as_echo "$as_me: failed program was:" >&5 | |
22448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22449 | ||
22450 | ac_cv_type_u_long=yes | |
22451 | fi | |
22452 | ||
22453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22454 | else |
3185942a | 22455 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22456 | sed 's/^/| /' conftest.$ac_ext >&5 |
22457 | ||
3185942a | 22458 | |
bb70624e | 22459 | fi |
3185942a JA |
22460 | |
22461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22462 | fi |
3185942a JA |
22463 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 |
22464 | $as_echo "$ac_cv_type_u_long" >&6; } | |
22465 | if test "x$ac_cv_type_u_long" = x""yes; then | |
f73dda09 JA |
22466 | : |
22467 | else | |
22468 | ||
b80f6443 | 22469 | cat >>confdefs.h <<_ACEOF |
3185942a | 22470 | #define u_long unsigned long |
b80f6443 | 22471 | _ACEOF |
bb70624e JA |
22472 | |
22473 | fi | |
22474 | ||
3185942a JA |
22475 | |
22476 | ||
22477 | if test "$ac_cv_sizeof_short" = 2; then | |
22478 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 | |
22479 | $as_echo_n "checking for bits16_t... " >&6; } | |
f73dda09 | 22480 | if test "${ac_cv_type_bits16_t+set}" = set; then |
3185942a | 22481 | $as_echo_n "(cached) " >&6 |
b72432fd | 22482 | else |
3185942a JA |
22483 | ac_cv_type_bits16_t=no |
22484 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22485 | /* confdefs.h. */ |
22486 | _ACEOF | |
22487 | cat confdefs.h >>conftest.$ac_ext | |
22488 | cat >>conftest.$ac_ext <<_ACEOF | |
22489 | /* end confdefs.h. */ | |
f73dda09 JA |
22490 | $ac_includes_default |
22491 | int | |
22492 | main () | |
22493 | { | |
f73dda09 | 22494 | if (sizeof (bits16_t)) |
3185942a | 22495 | return 0; |
f73dda09 JA |
22496 | ; |
22497 | return 0; | |
22498 | } | |
22499 | _ACEOF | |
22500 | rm -f conftest.$ac_objext | |
3185942a JA |
22501 | if { (ac_try="$ac_compile" |
22502 | case "(($ac_try" in | |
22503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22504 | *) ac_try_echo=$ac_try;; | |
22505 | esac | |
22506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22507 | $as_echo "$ac_try_echo") >&5 | |
22508 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22509 | ac_status=$? |
0628567a JA |
22510 | grep -v '^ *+' conftest.er1 >conftest.err |
22511 | rm -f conftest.er1 | |
22512 | cat conftest.err >&5 | |
3185942a JA |
22513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22514 | (exit $ac_status); } && { | |
22515 | test -z "$ac_c_werror_flag" || | |
22516 | test ! -s conftest.err | |
22517 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22518 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22519 | /* confdefs.h. */ |
22520 | _ACEOF | |
22521 | cat confdefs.h >>conftest.$ac_ext | |
22522 | cat >>conftest.$ac_ext <<_ACEOF | |
22523 | /* end confdefs.h. */ | |
f73dda09 JA |
22524 | $ac_includes_default |
22525 | int | |
22526 | main () | |
22527 | { | |
3185942a JA |
22528 | if (sizeof ((bits16_t))) |
22529 | return 0; | |
f73dda09 JA |
22530 | ; |
22531 | return 0; | |
22532 | } | |
22533 | _ACEOF | |
22534 | rm -f conftest.$ac_objext | |
3185942a JA |
22535 | if { (ac_try="$ac_compile" |
22536 | case "(($ac_try" in | |
22537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22538 | *) ac_try_echo=$ac_try;; | |
22539 | esac | |
22540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22541 | $as_echo "$ac_try_echo") >&5 | |
22542 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22543 | ac_status=$? |
0628567a JA |
22544 | grep -v '^ *+' conftest.er1 >conftest.err |
22545 | rm -f conftest.er1 | |
22546 | cat conftest.err >&5 | |
3185942a JA |
22547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22548 | (exit $ac_status); } && { | |
22549 | test -z "$ac_c_werror_flag" || | |
22550 | test ! -s conftest.err | |
22551 | } && test -s conftest.$ac_objext; then | |
22552 | : | |
22553 | else | |
22554 | $as_echo "$as_me: failed program was:" >&5 | |
22555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22556 | ||
22557 | ac_cv_type_bits16_t=yes | |
22558 | fi | |
22559 | ||
22560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22561 | else |
3185942a | 22562 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22563 | sed 's/^/| /' conftest.$ac_ext >&5 |
22564 | ||
3185942a | 22565 | |
cce855bc | 22566 | fi |
3185942a JA |
22567 | |
22568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22569 | fi |
3185942a JA |
22570 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
22571 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
22572 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
22573 | : |
22574 | else | |
22575 | ||
b80f6443 | 22576 | cat >>confdefs.h <<_ACEOF |
3185942a | 22577 | #define bits16_t short |
b80f6443 | 22578 | _ACEOF |
cce855bc JA |
22579 | |
22580 | fi | |
22581 | ||
bb70624e | 22582 | elif test "$ac_cv_sizeof_char" = 2; then |
3185942a JA |
22583 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
22584 | $as_echo_n "checking for bits16_t... " >&6; } | |
22585 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
22586 | $as_echo_n "(cached) " >&6 | |
cce855bc | 22587 | else |
3185942a JA |
22588 | ac_cv_type_bits16_t=no |
22589 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22590 | /* confdefs.h. */ |
22591 | _ACEOF | |
22592 | cat confdefs.h >>conftest.$ac_ext | |
22593 | cat >>conftest.$ac_ext <<_ACEOF | |
22594 | /* end confdefs.h. */ | |
f73dda09 JA |
22595 | $ac_includes_default |
22596 | int | |
22597 | main () | |
22598 | { | |
3185942a JA |
22599 | if (sizeof (bits16_t)) |
22600 | return 0; | |
f73dda09 JA |
22601 | ; |
22602 | return 0; | |
22603 | } | |
22604 | _ACEOF | |
22605 | rm -f conftest.$ac_objext | |
3185942a JA |
22606 | if { (ac_try="$ac_compile" |
22607 | case "(($ac_try" in | |
22608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22609 | *) ac_try_echo=$ac_try;; | |
22610 | esac | |
22611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22612 | $as_echo "$ac_try_echo") >&5 | |
22613 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22614 | ac_status=$? |
0628567a JA |
22615 | grep -v '^ *+' conftest.er1 >conftest.err |
22616 | rm -f conftest.er1 | |
22617 | cat conftest.err >&5 | |
3185942a JA |
22618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22619 | (exit $ac_status); } && { | |
22620 | test -z "$ac_c_werror_flag" || | |
22621 | test ! -s conftest.err | |
22622 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22623 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22624 | /* confdefs.h. */ |
22625 | _ACEOF | |
22626 | cat confdefs.h >>conftest.$ac_ext | |
22627 | cat >>conftest.$ac_ext <<_ACEOF | |
22628 | /* end confdefs.h. */ | |
f73dda09 JA |
22629 | $ac_includes_default |
22630 | int | |
22631 | main () | |
22632 | { | |
3185942a JA |
22633 | if (sizeof ((bits16_t))) |
22634 | return 0; | |
f73dda09 JA |
22635 | ; |
22636 | return 0; | |
22637 | } | |
22638 | _ACEOF | |
22639 | rm -f conftest.$ac_objext | |
3185942a JA |
22640 | if { (ac_try="$ac_compile" |
22641 | case "(($ac_try" in | |
22642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22643 | *) ac_try_echo=$ac_try;; | |
22644 | esac | |
22645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22646 | $as_echo "$ac_try_echo") >&5 | |
22647 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22648 | ac_status=$? |
0628567a JA |
22649 | grep -v '^ *+' conftest.er1 >conftest.err |
22650 | rm -f conftest.er1 | |
22651 | cat conftest.err >&5 | |
3185942a JA |
22652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22653 | (exit $ac_status); } && { | |
22654 | test -z "$ac_c_werror_flag" || | |
22655 | test ! -s conftest.err | |
22656 | } && test -s conftest.$ac_objext; then | |
22657 | : | |
22658 | else | |
22659 | $as_echo "$as_me: failed program was:" >&5 | |
22660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22661 | ||
22662 | ac_cv_type_bits16_t=yes | |
22663 | fi | |
22664 | ||
22665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 22666 | else |
3185942a | 22667 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22668 | sed 's/^/| /' conftest.$ac_ext >&5 |
22669 | ||
3185942a | 22670 | |
cce855bc | 22671 | fi |
3185942a JA |
22672 | |
22673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 22674 | fi |
3185942a JA |
22675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
22676 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
22677 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
22678 | : |
22679 | else | |
22680 | ||
b80f6443 | 22681 | cat >>confdefs.h <<_ACEOF |
3185942a | 22682 | #define bits16_t char |
b80f6443 | 22683 | _ACEOF |
cce855bc | 22684 | |
b72432fd JA |
22685 | fi |
22686 | ||
cce855bc | 22687 | else |
3185942a JA |
22688 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
22689 | $as_echo_n "checking for bits16_t... " >&6; } | |
22690 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
22691 | $as_echo_n "(cached) " >&6 | |
22692 | else | |
22693 | ac_cv_type_bits16_t=no | |
22694 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22695 | /* confdefs.h. */ |
22696 | _ACEOF | |
22697 | cat confdefs.h >>conftest.$ac_ext | |
22698 | cat >>conftest.$ac_ext <<_ACEOF | |
22699 | /* end confdefs.h. */ | |
f73dda09 JA |
22700 | $ac_includes_default |
22701 | int | |
22702 | main () | |
22703 | { | |
3185942a JA |
22704 | if (sizeof (bits16_t)) |
22705 | return 0; | |
f73dda09 JA |
22706 | ; |
22707 | return 0; | |
22708 | } | |
22709 | _ACEOF | |
22710 | rm -f conftest.$ac_objext | |
3185942a JA |
22711 | if { (ac_try="$ac_compile" |
22712 | case "(($ac_try" in | |
22713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22714 | *) ac_try_echo=$ac_try;; | |
22715 | esac | |
22716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22717 | $as_echo "$ac_try_echo") >&5 | |
22718 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22719 | ac_status=$? |
0628567a JA |
22720 | grep -v '^ *+' conftest.er1 >conftest.err |
22721 | rm -f conftest.er1 | |
22722 | cat conftest.err >&5 | |
3185942a JA |
22723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22724 | (exit $ac_status); } && { | |
22725 | test -z "$ac_c_werror_flag" || | |
22726 | test ! -s conftest.err | |
22727 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22728 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22729 | /* confdefs.h. */ |
22730 | _ACEOF | |
22731 | cat confdefs.h >>conftest.$ac_ext | |
22732 | cat >>conftest.$ac_ext <<_ACEOF | |
22733 | /* end confdefs.h. */ | |
f73dda09 JA |
22734 | $ac_includes_default |
22735 | int | |
22736 | main () | |
22737 | { | |
3185942a JA |
22738 | if (sizeof ((bits16_t))) |
22739 | return 0; | |
f73dda09 JA |
22740 | ; |
22741 | return 0; | |
22742 | } | |
22743 | _ACEOF | |
22744 | rm -f conftest.$ac_objext | |
3185942a JA |
22745 | if { (ac_try="$ac_compile" |
22746 | case "(($ac_try" in | |
22747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22748 | *) ac_try_echo=$ac_try;; | |
22749 | esac | |
22750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22751 | $as_echo "$ac_try_echo") >&5 | |
22752 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22753 | ac_status=$? |
0628567a JA |
22754 | grep -v '^ *+' conftest.er1 >conftest.err |
22755 | rm -f conftest.er1 | |
22756 | cat conftest.err >&5 | |
3185942a JA |
22757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22758 | (exit $ac_status); } && { | |
22759 | test -z "$ac_c_werror_flag" || | |
22760 | test ! -s conftest.err | |
22761 | } && test -s conftest.$ac_objext; then | |
22762 | : | |
22763 | else | |
22764 | $as_echo "$as_me: failed program was:" >&5 | |
22765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22766 | ||
22767 | ac_cv_type_bits16_t=yes | |
22768 | fi | |
22769 | ||
22770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22771 | else |
3185942a | 22772 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22773 | sed 's/^/| /' conftest.$ac_ext >&5 |
22774 | ||
3185942a | 22775 | |
cce855bc | 22776 | fi |
3185942a JA |
22777 | |
22778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22779 | fi |
3185942a JA |
22780 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
22781 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
22782 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
22783 | : |
22784 | else | |
22785 | ||
b80f6443 | 22786 | cat >>confdefs.h <<_ACEOF |
3185942a | 22787 | #define bits16_t short |
b80f6443 | 22788 | _ACEOF |
cce855bc JA |
22789 | |
22790 | fi | |
22791 | ||
3185942a JA |
22792 | fi |
22793 | ||
22794 | ||
22795 | if test "$ac_cv_sizeof_short" = 2; then | |
22796 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
22797 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
22798 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
22799 | $as_echo_n "(cached) " >&6 | |
cce855bc | 22800 | else |
3185942a JA |
22801 | ac_cv_type_u_bits16_t=no |
22802 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22803 | /* confdefs.h. */ |
22804 | _ACEOF | |
22805 | cat confdefs.h >>conftest.$ac_ext | |
22806 | cat >>conftest.$ac_ext <<_ACEOF | |
22807 | /* end confdefs.h. */ | |
f73dda09 JA |
22808 | $ac_includes_default |
22809 | int | |
22810 | main () | |
22811 | { | |
3185942a JA |
22812 | if (sizeof (u_bits16_t)) |
22813 | return 0; | |
f73dda09 JA |
22814 | ; |
22815 | return 0; | |
22816 | } | |
22817 | _ACEOF | |
22818 | rm -f conftest.$ac_objext | |
3185942a JA |
22819 | if { (ac_try="$ac_compile" |
22820 | case "(($ac_try" in | |
22821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22822 | *) ac_try_echo=$ac_try;; | |
22823 | esac | |
22824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22825 | $as_echo "$ac_try_echo") >&5 | |
22826 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22827 | ac_status=$? |
0628567a JA |
22828 | grep -v '^ *+' conftest.er1 >conftest.err |
22829 | rm -f conftest.er1 | |
22830 | cat conftest.err >&5 | |
3185942a JA |
22831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22832 | (exit $ac_status); } && { | |
22833 | test -z "$ac_c_werror_flag" || | |
22834 | test ! -s conftest.err | |
22835 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 22836 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22837 | /* confdefs.h. */ |
22838 | _ACEOF | |
22839 | cat confdefs.h >>conftest.$ac_ext | |
22840 | cat >>conftest.$ac_ext <<_ACEOF | |
22841 | /* end confdefs.h. */ | |
f73dda09 JA |
22842 | $ac_includes_default |
22843 | int | |
22844 | main () | |
22845 | { | |
3185942a JA |
22846 | if (sizeof ((u_bits16_t))) |
22847 | return 0; | |
f73dda09 JA |
22848 | ; |
22849 | return 0; | |
22850 | } | |
22851 | _ACEOF | |
22852 | rm -f conftest.$ac_objext | |
3185942a JA |
22853 | if { (ac_try="$ac_compile" |
22854 | case "(($ac_try" in | |
22855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22856 | *) ac_try_echo=$ac_try;; | |
22857 | esac | |
22858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22859 | $as_echo "$ac_try_echo") >&5 | |
22860 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22861 | ac_status=$? |
0628567a JA |
22862 | grep -v '^ *+' conftest.er1 >conftest.err |
22863 | rm -f conftest.er1 | |
22864 | cat conftest.err >&5 | |
3185942a JA |
22865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22866 | (exit $ac_status); } && { | |
22867 | test -z "$ac_c_werror_flag" || | |
22868 | test ! -s conftest.err | |
22869 | } && test -s conftest.$ac_objext; then | |
22870 | : | |
22871 | else | |
22872 | $as_echo "$as_me: failed program was:" >&5 | |
22873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22874 | ||
22875 | ac_cv_type_u_bits16_t=yes | |
22876 | fi | |
22877 | ||
22878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 22879 | else |
3185942a | 22880 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22881 | sed 's/^/| /' conftest.$ac_ext >&5 |
22882 | ||
3185942a | 22883 | |
b72432fd | 22884 | fi |
3185942a JA |
22885 | |
22886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22887 | fi |
3185942a JA |
22888 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
22889 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
22890 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
f73dda09 JA |
22891 | : |
22892 | else | |
22893 | ||
b80f6443 | 22894 | cat >>confdefs.h <<_ACEOF |
3185942a | 22895 | #define u_bits16_t unsigned short |
b80f6443 | 22896 | _ACEOF |
cce855bc JA |
22897 | |
22898 | fi | |
22899 | ||
3185942a JA |
22900 | elif test "$ac_cv_sizeof_char" = 2; then |
22901 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
22902 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
22903 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
22904 | $as_echo_n "(cached) " >&6 | |
cce855bc | 22905 | else |
3185942a JA |
22906 | ac_cv_type_u_bits16_t=no |
22907 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22908 | /* confdefs.h. */ |
22909 | _ACEOF | |
22910 | cat confdefs.h >>conftest.$ac_ext | |
22911 | cat >>conftest.$ac_ext <<_ACEOF | |
22912 | /* end confdefs.h. */ | |
f73dda09 JA |
22913 | $ac_includes_default |
22914 | int | |
22915 | main () | |
22916 | { | |
3185942a JA |
22917 | if (sizeof (u_bits16_t)) |
22918 | return 0; | |
f73dda09 JA |
22919 | ; |
22920 | return 0; | |
22921 | } | |
22922 | _ACEOF | |
22923 | rm -f conftest.$ac_objext | |
3185942a JA |
22924 | if { (ac_try="$ac_compile" |
22925 | case "(($ac_try" in | |
22926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22927 | *) ac_try_echo=$ac_try;; | |
22928 | esac | |
22929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22930 | $as_echo "$ac_try_echo") >&5 | |
22931 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22932 | ac_status=$? |
0628567a JA |
22933 | grep -v '^ *+' conftest.er1 >conftest.err |
22934 | rm -f conftest.er1 | |
22935 | cat conftest.err >&5 | |
3185942a JA |
22936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22937 | (exit $ac_status); } && { | |
22938 | test -z "$ac_c_werror_flag" || | |
22939 | test ! -s conftest.err | |
22940 | } && test -s conftest.$ac_objext; then | |
22941 | cat >conftest.$ac_ext <<_ACEOF | |
22942 | /* confdefs.h. */ | |
22943 | _ACEOF | |
22944 | cat confdefs.h >>conftest.$ac_ext | |
22945 | cat >>conftest.$ac_ext <<_ACEOF | |
22946 | /* end confdefs.h. */ | |
22947 | $ac_includes_default | |
22948 | int | |
22949 | main () | |
22950 | { | |
22951 | if (sizeof ((u_bits16_t))) | |
22952 | return 0; | |
22953 | ; | |
22954 | return 0; | |
22955 | } | |
22956 | _ACEOF | |
22957 | rm -f conftest.$ac_objext | |
22958 | if { (ac_try="$ac_compile" | |
22959 | case "(($ac_try" in | |
22960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22961 | *) ac_try_echo=$ac_try;; | |
22962 | esac | |
22963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22964 | $as_echo "$ac_try_echo") >&5 | |
22965 | (eval "$ac_compile") 2>conftest.er1 | |
22966 | ac_status=$? | |
22967 | grep -v '^ *+' conftest.er1 >conftest.err | |
22968 | rm -f conftest.er1 | |
22969 | cat conftest.err >&5 | |
22970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22971 | (exit $ac_status); } && { | |
22972 | test -z "$ac_c_werror_flag" || | |
22973 | test ! -s conftest.err | |
22974 | } && test -s conftest.$ac_objext; then | |
22975 | : | |
22976 | else | |
22977 | $as_echo "$as_me: failed program was:" >&5 | |
22978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22979 | ||
22980 | ac_cv_type_u_bits16_t=yes | |
22981 | fi | |
22982 | ||
22983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22984 | else | |
22985 | $as_echo "$as_me: failed program was:" >&5 | |
22986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22987 | ||
22988 | ||
22989 | fi | |
22990 | ||
22991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22992 | fi | |
22993 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 | |
22994 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
22995 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
22996 | : | |
22997 | else | |
22998 | ||
22999 | cat >>confdefs.h <<_ACEOF | |
23000 | #define u_bits16_t unsigned char | |
23001 | _ACEOF | |
23002 | ||
23003 | fi | |
23004 | ||
23005 | else | |
23006 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
23007 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
23008 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
23009 | $as_echo_n "(cached) " >&6 | |
23010 | else | |
23011 | ac_cv_type_u_bits16_t=no | |
23012 | cat >conftest.$ac_ext <<_ACEOF | |
23013 | /* confdefs.h. */ | |
23014 | _ACEOF | |
23015 | cat confdefs.h >>conftest.$ac_ext | |
23016 | cat >>conftest.$ac_ext <<_ACEOF | |
23017 | /* end confdefs.h. */ | |
23018 | $ac_includes_default | |
23019 | int | |
23020 | main () | |
23021 | { | |
23022 | if (sizeof (u_bits16_t)) | |
23023 | return 0; | |
23024 | ; | |
23025 | return 0; | |
23026 | } | |
23027 | _ACEOF | |
23028 | rm -f conftest.$ac_objext | |
23029 | if { (ac_try="$ac_compile" | |
23030 | case "(($ac_try" in | |
23031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23032 | *) ac_try_echo=$ac_try;; | |
23033 | esac | |
23034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23035 | $as_echo "$ac_try_echo") >&5 | |
23036 | (eval "$ac_compile") 2>conftest.er1 | |
23037 | ac_status=$? | |
23038 | grep -v '^ *+' conftest.er1 >conftest.err | |
23039 | rm -f conftest.er1 | |
23040 | cat conftest.err >&5 | |
23041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23042 | (exit $ac_status); } && { | |
23043 | test -z "$ac_c_werror_flag" || | |
23044 | test ! -s conftest.err | |
23045 | } && test -s conftest.$ac_objext; then | |
23046 | cat >conftest.$ac_ext <<_ACEOF | |
23047 | /* confdefs.h. */ | |
23048 | _ACEOF | |
23049 | cat confdefs.h >>conftest.$ac_ext | |
23050 | cat >>conftest.$ac_ext <<_ACEOF | |
23051 | /* end confdefs.h. */ | |
23052 | $ac_includes_default | |
23053 | int | |
23054 | main () | |
23055 | { | |
23056 | if (sizeof ((u_bits16_t))) | |
23057 | return 0; | |
23058 | ; | |
23059 | return 0; | |
23060 | } | |
23061 | _ACEOF | |
23062 | rm -f conftest.$ac_objext | |
23063 | if { (ac_try="$ac_compile" | |
23064 | case "(($ac_try" in | |
23065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23066 | *) ac_try_echo=$ac_try;; | |
23067 | esac | |
23068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23069 | $as_echo "$ac_try_echo") >&5 | |
23070 | (eval "$ac_compile") 2>conftest.er1 | |
23071 | ac_status=$? | |
23072 | grep -v '^ *+' conftest.er1 >conftest.err | |
23073 | rm -f conftest.er1 | |
23074 | cat conftest.err >&5 | |
23075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23076 | (exit $ac_status); } && { | |
23077 | test -z "$ac_c_werror_flag" || | |
23078 | test ! -s conftest.err | |
23079 | } && test -s conftest.$ac_objext; then | |
23080 | : | |
23081 | else | |
23082 | $as_echo "$as_me: failed program was:" >&5 | |
23083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23084 | ||
23085 | ac_cv_type_u_bits16_t=yes | |
23086 | fi | |
23087 | ||
23088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23089 | else | |
23090 | $as_echo "$as_me: failed program was:" >&5 | |
23091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23092 | ||
23093 | ||
23094 | fi | |
23095 | ||
23096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23097 | fi | |
23098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 | |
23099 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
23100 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
23101 | : | |
23102 | else | |
23103 | ||
23104 | cat >>confdefs.h <<_ACEOF | |
23105 | #define u_bits16_t unsigned short | |
23106 | _ACEOF | |
23107 | ||
23108 | fi | |
23109 | ||
23110 | fi | |
23111 | ||
23112 | ||
23113 | if test "$ac_cv_sizeof_int" = 4; then | |
23114 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
23115 | $as_echo_n "checking for bits32_t... " >&6; } | |
23116 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
23117 | $as_echo_n "(cached) " >&6 | |
23118 | else | |
23119 | ac_cv_type_bits32_t=no | |
23120 | cat >conftest.$ac_ext <<_ACEOF | |
23121 | /* confdefs.h. */ | |
23122 | _ACEOF | |
23123 | cat confdefs.h >>conftest.$ac_ext | |
23124 | cat >>conftest.$ac_ext <<_ACEOF | |
23125 | /* end confdefs.h. */ | |
23126 | $ac_includes_default | |
23127 | int | |
23128 | main () | |
23129 | { | |
23130 | if (sizeof (bits32_t)) | |
23131 | return 0; | |
23132 | ; | |
23133 | return 0; | |
23134 | } | |
23135 | _ACEOF | |
23136 | rm -f conftest.$ac_objext | |
23137 | if { (ac_try="$ac_compile" | |
23138 | case "(($ac_try" in | |
23139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23140 | *) ac_try_echo=$ac_try;; | |
23141 | esac | |
23142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23143 | $as_echo "$ac_try_echo") >&5 | |
23144 | (eval "$ac_compile") 2>conftest.er1 | |
23145 | ac_status=$? | |
23146 | grep -v '^ *+' conftest.er1 >conftest.err | |
23147 | rm -f conftest.er1 | |
23148 | cat conftest.err >&5 | |
23149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23150 | (exit $ac_status); } && { | |
23151 | test -z "$ac_c_werror_flag" || | |
23152 | test ! -s conftest.err | |
23153 | } && test -s conftest.$ac_objext; then | |
23154 | cat >conftest.$ac_ext <<_ACEOF | |
23155 | /* confdefs.h. */ | |
23156 | _ACEOF | |
23157 | cat confdefs.h >>conftest.$ac_ext | |
23158 | cat >>conftest.$ac_ext <<_ACEOF | |
23159 | /* end confdefs.h. */ | |
23160 | $ac_includes_default | |
23161 | int | |
23162 | main () | |
23163 | { | |
23164 | if (sizeof ((bits32_t))) | |
23165 | return 0; | |
23166 | ; | |
23167 | return 0; | |
23168 | } | |
23169 | _ACEOF | |
23170 | rm -f conftest.$ac_objext | |
23171 | if { (ac_try="$ac_compile" | |
23172 | case "(($ac_try" in | |
23173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23174 | *) ac_try_echo=$ac_try;; | |
23175 | esac | |
23176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23177 | $as_echo "$ac_try_echo") >&5 | |
23178 | (eval "$ac_compile") 2>conftest.er1 | |
23179 | ac_status=$? | |
23180 | grep -v '^ *+' conftest.er1 >conftest.err | |
23181 | rm -f conftest.er1 | |
23182 | cat conftest.err >&5 | |
23183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23184 | (exit $ac_status); } && { | |
23185 | test -z "$ac_c_werror_flag" || | |
23186 | test ! -s conftest.err | |
23187 | } && test -s conftest.$ac_objext; then | |
23188 | : | |
23189 | else | |
23190 | $as_echo "$as_me: failed program was:" >&5 | |
23191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23192 | ||
23193 | ac_cv_type_bits32_t=yes | |
23194 | fi | |
23195 | ||
23196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23197 | else | |
23198 | $as_echo "$as_me: failed program was:" >&5 | |
23199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23200 | ||
23201 | ||
23202 | fi | |
23203 | ||
23204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23205 | fi | |
23206 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
23207 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
23208 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
23209 | : | |
23210 | else | |
23211 | ||
23212 | cat >>confdefs.h <<_ACEOF | |
23213 | #define bits32_t int | |
23214 | _ACEOF | |
23215 | ||
23216 | fi | |
23217 | ||
23218 | elif test "$ac_cv_sizeof_long" = 4; then | |
23219 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
23220 | $as_echo_n "checking for bits32_t... " >&6; } | |
23221 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
23222 | $as_echo_n "(cached) " >&6 | |
23223 | else | |
23224 | ac_cv_type_bits32_t=no | |
23225 | cat >conftest.$ac_ext <<_ACEOF | |
23226 | /* confdefs.h. */ | |
23227 | _ACEOF | |
23228 | cat confdefs.h >>conftest.$ac_ext | |
23229 | cat >>conftest.$ac_ext <<_ACEOF | |
23230 | /* end confdefs.h. */ | |
23231 | $ac_includes_default | |
23232 | int | |
23233 | main () | |
23234 | { | |
23235 | if (sizeof (bits32_t)) | |
23236 | return 0; | |
23237 | ; | |
23238 | return 0; | |
23239 | } | |
23240 | _ACEOF | |
23241 | rm -f conftest.$ac_objext | |
23242 | if { (ac_try="$ac_compile" | |
23243 | case "(($ac_try" in | |
23244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23245 | *) ac_try_echo=$ac_try;; | |
23246 | esac | |
23247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23248 | $as_echo "$ac_try_echo") >&5 | |
23249 | (eval "$ac_compile") 2>conftest.er1 | |
23250 | ac_status=$? | |
23251 | grep -v '^ *+' conftest.er1 >conftest.err | |
23252 | rm -f conftest.er1 | |
23253 | cat conftest.err >&5 | |
23254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23255 | (exit $ac_status); } && { | |
23256 | test -z "$ac_c_werror_flag" || | |
23257 | test ! -s conftest.err | |
23258 | } && test -s conftest.$ac_objext; then | |
23259 | cat >conftest.$ac_ext <<_ACEOF | |
23260 | /* confdefs.h. */ | |
23261 | _ACEOF | |
23262 | cat confdefs.h >>conftest.$ac_ext | |
23263 | cat >>conftest.$ac_ext <<_ACEOF | |
23264 | /* end confdefs.h. */ | |
23265 | $ac_includes_default | |
23266 | int | |
23267 | main () | |
23268 | { | |
23269 | if (sizeof ((bits32_t))) | |
23270 | return 0; | |
23271 | ; | |
23272 | return 0; | |
23273 | } | |
23274 | _ACEOF | |
23275 | rm -f conftest.$ac_objext | |
23276 | if { (ac_try="$ac_compile" | |
23277 | case "(($ac_try" in | |
23278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23279 | *) ac_try_echo=$ac_try;; | |
23280 | esac | |
23281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23282 | $as_echo "$ac_try_echo") >&5 | |
23283 | (eval "$ac_compile") 2>conftest.er1 | |
23284 | ac_status=$? | |
23285 | grep -v '^ *+' conftest.er1 >conftest.err | |
23286 | rm -f conftest.er1 | |
23287 | cat conftest.err >&5 | |
23288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23289 | (exit $ac_status); } && { | |
23290 | test -z "$ac_c_werror_flag" || | |
23291 | test ! -s conftest.err | |
23292 | } && test -s conftest.$ac_objext; then | |
23293 | : | |
23294 | else | |
23295 | $as_echo "$as_me: failed program was:" >&5 | |
23296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23297 | ||
23298 | ac_cv_type_bits32_t=yes | |
23299 | fi | |
23300 | ||
23301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23302 | else | |
23303 | $as_echo "$as_me: failed program was:" >&5 | |
23304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23305 | ||
23306 | ||
23307 | fi | |
23308 | ||
23309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23310 | fi | |
23311 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
23312 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
23313 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
23314 | : | |
23315 | else | |
23316 | ||
23317 | cat >>confdefs.h <<_ACEOF | |
23318 | #define bits32_t long | |
23319 | _ACEOF | |
23320 | ||
23321 | fi | |
23322 | ||
23323 | else | |
23324 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
23325 | $as_echo_n "checking for bits32_t... " >&6; } | |
23326 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
23327 | $as_echo_n "(cached) " >&6 | |
23328 | else | |
23329 | ac_cv_type_bits32_t=no | |
23330 | cat >conftest.$ac_ext <<_ACEOF | |
23331 | /* confdefs.h. */ | |
23332 | _ACEOF | |
23333 | cat confdefs.h >>conftest.$ac_ext | |
23334 | cat >>conftest.$ac_ext <<_ACEOF | |
23335 | /* end confdefs.h. */ | |
23336 | $ac_includes_default | |
23337 | int | |
23338 | main () | |
23339 | { | |
23340 | if (sizeof (bits32_t)) | |
23341 | return 0; | |
23342 | ; | |
23343 | return 0; | |
23344 | } | |
23345 | _ACEOF | |
23346 | rm -f conftest.$ac_objext | |
23347 | if { (ac_try="$ac_compile" | |
23348 | case "(($ac_try" in | |
23349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23350 | *) ac_try_echo=$ac_try;; | |
23351 | esac | |
23352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23353 | $as_echo "$ac_try_echo") >&5 | |
23354 | (eval "$ac_compile") 2>conftest.er1 | |
23355 | ac_status=$? | |
23356 | grep -v '^ *+' conftest.er1 >conftest.err | |
23357 | rm -f conftest.er1 | |
23358 | cat conftest.err >&5 | |
23359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23360 | (exit $ac_status); } && { | |
23361 | test -z "$ac_c_werror_flag" || | |
23362 | test ! -s conftest.err | |
23363 | } && test -s conftest.$ac_objext; then | |
23364 | cat >conftest.$ac_ext <<_ACEOF | |
23365 | /* confdefs.h. */ | |
23366 | _ACEOF | |
23367 | cat confdefs.h >>conftest.$ac_ext | |
23368 | cat >>conftest.$ac_ext <<_ACEOF | |
23369 | /* end confdefs.h. */ | |
23370 | $ac_includes_default | |
23371 | int | |
23372 | main () | |
23373 | { | |
23374 | if (sizeof ((bits32_t))) | |
23375 | return 0; | |
23376 | ; | |
23377 | return 0; | |
23378 | } | |
23379 | _ACEOF | |
23380 | rm -f conftest.$ac_objext | |
23381 | if { (ac_try="$ac_compile" | |
23382 | case "(($ac_try" in | |
23383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23384 | *) ac_try_echo=$ac_try;; | |
23385 | esac | |
23386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23387 | $as_echo "$ac_try_echo") >&5 | |
23388 | (eval "$ac_compile") 2>conftest.er1 | |
23389 | ac_status=$? | |
23390 | grep -v '^ *+' conftest.er1 >conftest.err | |
23391 | rm -f conftest.er1 | |
23392 | cat conftest.err >&5 | |
23393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23394 | (exit $ac_status); } && { | |
23395 | test -z "$ac_c_werror_flag" || | |
23396 | test ! -s conftest.err | |
23397 | } && test -s conftest.$ac_objext; then | |
23398 | : | |
23399 | else | |
23400 | $as_echo "$as_me: failed program was:" >&5 | |
23401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23402 | ||
23403 | ac_cv_type_bits32_t=yes | |
23404 | fi | |
23405 | ||
23406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23407 | else | |
23408 | $as_echo "$as_me: failed program was:" >&5 | |
23409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23410 | ||
23411 | ||
23412 | fi | |
23413 | ||
23414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23415 | fi | |
23416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
23417 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
23418 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
23419 | : | |
23420 | else | |
23421 | ||
23422 | cat >>confdefs.h <<_ACEOF | |
23423 | #define bits32_t int | |
23424 | _ACEOF | |
23425 | ||
23426 | fi | |
23427 | ||
23428 | fi | |
23429 | ||
23430 | ||
23431 | if test "$ac_cv_sizeof_int" = 4; then | |
23432 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
23433 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
23434 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
23435 | $as_echo_n "(cached) " >&6 | |
23436 | else | |
23437 | ac_cv_type_u_bits32_t=no | |
23438 | cat >conftest.$ac_ext <<_ACEOF | |
23439 | /* confdefs.h. */ | |
23440 | _ACEOF | |
23441 | cat confdefs.h >>conftest.$ac_ext | |
23442 | cat >>conftest.$ac_ext <<_ACEOF | |
23443 | /* end confdefs.h. */ | |
23444 | $ac_includes_default | |
23445 | int | |
23446 | main () | |
23447 | { | |
23448 | if (sizeof (u_bits32_t)) | |
23449 | return 0; | |
23450 | ; | |
23451 | return 0; | |
23452 | } | |
23453 | _ACEOF | |
23454 | rm -f conftest.$ac_objext | |
23455 | if { (ac_try="$ac_compile" | |
23456 | case "(($ac_try" in | |
23457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23458 | *) ac_try_echo=$ac_try;; | |
23459 | esac | |
23460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23461 | $as_echo "$ac_try_echo") >&5 | |
23462 | (eval "$ac_compile") 2>conftest.er1 | |
23463 | ac_status=$? | |
23464 | grep -v '^ *+' conftest.er1 >conftest.err | |
23465 | rm -f conftest.er1 | |
23466 | cat conftest.err >&5 | |
23467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23468 | (exit $ac_status); } && { | |
23469 | test -z "$ac_c_werror_flag" || | |
23470 | test ! -s conftest.err | |
23471 | } && test -s conftest.$ac_objext; then | |
23472 | cat >conftest.$ac_ext <<_ACEOF | |
23473 | /* confdefs.h. */ | |
23474 | _ACEOF | |
23475 | cat confdefs.h >>conftest.$ac_ext | |
23476 | cat >>conftest.$ac_ext <<_ACEOF | |
23477 | /* end confdefs.h. */ | |
23478 | $ac_includes_default | |
23479 | int | |
23480 | main () | |
23481 | { | |
23482 | if (sizeof ((u_bits32_t))) | |
23483 | return 0; | |
23484 | ; | |
23485 | return 0; | |
23486 | } | |
23487 | _ACEOF | |
23488 | rm -f conftest.$ac_objext | |
23489 | if { (ac_try="$ac_compile" | |
23490 | case "(($ac_try" in | |
23491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23492 | *) ac_try_echo=$ac_try;; | |
23493 | esac | |
23494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23495 | $as_echo "$ac_try_echo") >&5 | |
23496 | (eval "$ac_compile") 2>conftest.er1 | |
23497 | ac_status=$? | |
23498 | grep -v '^ *+' conftest.er1 >conftest.err | |
23499 | rm -f conftest.er1 | |
23500 | cat conftest.err >&5 | |
23501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23502 | (exit $ac_status); } && { | |
23503 | test -z "$ac_c_werror_flag" || | |
23504 | test ! -s conftest.err | |
23505 | } && test -s conftest.$ac_objext; then | |
23506 | : | |
23507 | else | |
23508 | $as_echo "$as_me: failed program was:" >&5 | |
23509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23510 | ||
23511 | ac_cv_type_u_bits32_t=yes | |
23512 | fi | |
23513 | ||
23514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23515 | else | |
23516 | $as_echo "$as_me: failed program was:" >&5 | |
23517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23518 | ||
23519 | ||
23520 | fi | |
23521 | ||
23522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23523 | fi | |
23524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 | |
23525 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
23526 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
23527 | : | |
23528 | else | |
23529 | ||
23530 | cat >>confdefs.h <<_ACEOF | |
23531 | #define u_bits32_t unsigned int | |
b80f6443 | 23532 | _ACEOF |
cce855bc JA |
23533 | |
23534 | fi | |
23535 | ||
3185942a JA |
23536 | elif test "$ac_cv_sizeof_long" = 4; then |
23537 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
23538 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
f73dda09 | 23539 | if test "${ac_cv_type_u_bits32_t+set}" = set; then |
3185942a | 23540 | $as_echo_n "(cached) " >&6 |
cce855bc | 23541 | else |
3185942a JA |
23542 | ac_cv_type_u_bits32_t=no |
23543 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23544 | /* confdefs.h. */ |
23545 | _ACEOF | |
23546 | cat confdefs.h >>conftest.$ac_ext | |
23547 | cat >>conftest.$ac_ext <<_ACEOF | |
23548 | /* end confdefs.h. */ | |
f73dda09 JA |
23549 | $ac_includes_default |
23550 | int | |
23551 | main () | |
23552 | { | |
f73dda09 | 23553 | if (sizeof (u_bits32_t)) |
3185942a JA |
23554 | return 0; |
23555 | ; | |
f73dda09 | 23556 | return 0; |
3185942a JA |
23557 | } |
23558 | _ACEOF | |
23559 | rm -f conftest.$ac_objext | |
23560 | if { (ac_try="$ac_compile" | |
23561 | case "(($ac_try" in | |
23562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23563 | *) ac_try_echo=$ac_try;; | |
23564 | esac | |
23565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23566 | $as_echo "$ac_try_echo") >&5 | |
23567 | (eval "$ac_compile") 2>conftest.er1 | |
23568 | ac_status=$? | |
23569 | grep -v '^ *+' conftest.er1 >conftest.err | |
23570 | rm -f conftest.er1 | |
23571 | cat conftest.err >&5 | |
23572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23573 | (exit $ac_status); } && { | |
23574 | test -z "$ac_c_werror_flag" || | |
23575 | test ! -s conftest.err | |
23576 | } && test -s conftest.$ac_objext; then | |
23577 | cat >conftest.$ac_ext <<_ACEOF | |
23578 | /* confdefs.h. */ | |
23579 | _ACEOF | |
23580 | cat confdefs.h >>conftest.$ac_ext | |
23581 | cat >>conftest.$ac_ext <<_ACEOF | |
23582 | /* end confdefs.h. */ | |
23583 | $ac_includes_default | |
23584 | int | |
23585 | main () | |
23586 | { | |
23587 | if (sizeof ((u_bits32_t))) | |
23588 | return 0; | |
f73dda09 JA |
23589 | ; |
23590 | return 0; | |
23591 | } | |
23592 | _ACEOF | |
23593 | rm -f conftest.$ac_objext | |
3185942a JA |
23594 | if { (ac_try="$ac_compile" |
23595 | case "(($ac_try" in | |
23596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23597 | *) ac_try_echo=$ac_try;; | |
23598 | esac | |
23599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23600 | $as_echo "$ac_try_echo") >&5 | |
23601 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23602 | ac_status=$? |
0628567a JA |
23603 | grep -v '^ *+' conftest.er1 >conftest.err |
23604 | rm -f conftest.er1 | |
23605 | cat conftest.err >&5 | |
3185942a JA |
23606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23607 | (exit $ac_status); } && { | |
23608 | test -z "$ac_c_werror_flag" || | |
23609 | test ! -s conftest.err | |
23610 | } && test -s conftest.$ac_objext; then | |
23611 | : | |
23612 | else | |
23613 | $as_echo "$as_me: failed program was:" >&5 | |
23614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23615 | ||
23616 | ac_cv_type_u_bits32_t=yes | |
23617 | fi | |
23618 | ||
23619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23620 | else | |
23621 | $as_echo "$as_me: failed program was:" >&5 | |
23622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23623 | ||
23624 | ||
23625 | fi | |
23626 | ||
23627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23628 | fi | |
23629 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 | |
23630 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
23631 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
23632 | : | |
23633 | else | |
23634 | ||
23635 | cat >>confdefs.h <<_ACEOF | |
23636 | #define u_bits32_t unsigned long | |
23637 | _ACEOF | |
23638 | ||
23639 | fi | |
23640 | ||
23641 | else | |
23642 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
23643 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
23644 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
23645 | $as_echo_n "(cached) " >&6 | |
23646 | else | |
23647 | ac_cv_type_u_bits32_t=no | |
23648 | cat >conftest.$ac_ext <<_ACEOF | |
23649 | /* confdefs.h. */ | |
23650 | _ACEOF | |
23651 | cat confdefs.h >>conftest.$ac_ext | |
23652 | cat >>conftest.$ac_ext <<_ACEOF | |
23653 | /* end confdefs.h. */ | |
23654 | $ac_includes_default | |
23655 | int | |
23656 | main () | |
23657 | { | |
23658 | if (sizeof (u_bits32_t)) | |
23659 | return 0; | |
23660 | ; | |
23661 | return 0; | |
23662 | } | |
23663 | _ACEOF | |
23664 | rm -f conftest.$ac_objext | |
23665 | if { (ac_try="$ac_compile" | |
23666 | case "(($ac_try" in | |
23667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23668 | *) ac_try_echo=$ac_try;; | |
23669 | esac | |
23670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23671 | $as_echo "$ac_try_echo") >&5 | |
23672 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a | 23673 | ac_status=$? |
3185942a JA |
23674 | grep -v '^ *+' conftest.er1 >conftest.err |
23675 | rm -f conftest.er1 | |
23676 | cat conftest.err >&5 | |
23677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23678 | (exit $ac_status); } && { | |
23679 | test -z "$ac_c_werror_flag" || | |
23680 | test ! -s conftest.err | |
23681 | } && test -s conftest.$ac_objext; then | |
23682 | cat >conftest.$ac_ext <<_ACEOF | |
23683 | /* confdefs.h. */ | |
23684 | _ACEOF | |
23685 | cat confdefs.h >>conftest.$ac_ext | |
23686 | cat >>conftest.$ac_ext <<_ACEOF | |
23687 | /* end confdefs.h. */ | |
23688 | $ac_includes_default | |
23689 | int | |
23690 | main () | |
23691 | { | |
23692 | if (sizeof ((u_bits32_t))) | |
23693 | return 0; | |
23694 | ; | |
23695 | return 0; | |
23696 | } | |
23697 | _ACEOF | |
23698 | rm -f conftest.$ac_objext | |
23699 | if { (ac_try="$ac_compile" | |
23700 | case "(($ac_try" in | |
23701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23702 | *) ac_try_echo=$ac_try;; | |
23703 | esac | |
23704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23705 | $as_echo "$ac_try_echo") >&5 | |
23706 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23707 | ac_status=$? |
3185942a JA |
23708 | grep -v '^ *+' conftest.er1 >conftest.err |
23709 | rm -f conftest.er1 | |
23710 | cat conftest.err >&5 | |
23711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23712 | (exit $ac_status); } && { | |
23713 | test -z "$ac_c_werror_flag" || | |
23714 | test ! -s conftest.err | |
23715 | } && test -s conftest.$ac_objext; then | |
23716 | : | |
23717 | else | |
23718 | $as_echo "$as_me: failed program was:" >&5 | |
23719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23720 | ||
23721 | ac_cv_type_u_bits32_t=yes | |
23722 | fi | |
23723 | ||
23724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 23725 | else |
3185942a | 23726 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23727 | sed 's/^/| /' conftest.$ac_ext >&5 |
23728 | ||
3185942a | 23729 | |
b72432fd | 23730 | fi |
3185942a JA |
23731 | |
23732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 23733 | fi |
3185942a JA |
23734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
23735 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
23736 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
f73dda09 JA |
23737 | : |
23738 | else | |
23739 | ||
b80f6443 | 23740 | cat >>confdefs.h <<_ACEOF |
bb70624e | 23741 | #define u_bits32_t unsigned int |
b80f6443 | 23742 | _ACEOF |
b72432fd JA |
23743 | |
23744 | fi | |
cce855bc | 23745 | |
b72432fd JA |
23746 | fi |
23747 | ||
b80f6443 | 23748 | |
f73dda09 | 23749 | if test "$ac_cv_sizeof_char_p" = 8; then |
3185942a JA |
23750 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
23751 | $as_echo_n "checking for bits64_t... " >&6; } | |
23752 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
23753 | $as_echo_n "(cached) " >&6 | |
23754 | else | |
23755 | ac_cv_type_bits64_t=no | |
23756 | cat >conftest.$ac_ext <<_ACEOF | |
23757 | /* confdefs.h. */ | |
23758 | _ACEOF | |
23759 | cat confdefs.h >>conftest.$ac_ext | |
23760 | cat >>conftest.$ac_ext <<_ACEOF | |
23761 | /* end confdefs.h. */ | |
23762 | $ac_includes_default | |
23763 | int | |
23764 | main () | |
23765 | { | |
23766 | if (sizeof (bits64_t)) | |
23767 | return 0; | |
23768 | ; | |
23769 | return 0; | |
23770 | } | |
23771 | _ACEOF | |
23772 | rm -f conftest.$ac_objext | |
23773 | if { (ac_try="$ac_compile" | |
23774 | case "(($ac_try" in | |
23775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23776 | *) ac_try_echo=$ac_try;; | |
23777 | esac | |
23778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23779 | $as_echo "$ac_try_echo") >&5 | |
23780 | (eval "$ac_compile") 2>conftest.er1 | |
23781 | ac_status=$? | |
23782 | grep -v '^ *+' conftest.er1 >conftest.err | |
23783 | rm -f conftest.er1 | |
23784 | cat conftest.err >&5 | |
23785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23786 | (exit $ac_status); } && { | |
23787 | test -z "$ac_c_werror_flag" || | |
23788 | test ! -s conftest.err | |
23789 | } && test -s conftest.$ac_objext; then | |
23790 | cat >conftest.$ac_ext <<_ACEOF | |
23791 | /* confdefs.h. */ | |
23792 | _ACEOF | |
23793 | cat confdefs.h >>conftest.$ac_ext | |
23794 | cat >>conftest.$ac_ext <<_ACEOF | |
23795 | /* end confdefs.h. */ | |
23796 | $ac_includes_default | |
23797 | int | |
23798 | main () | |
23799 | { | |
23800 | if (sizeof ((bits64_t))) | |
23801 | return 0; | |
23802 | ; | |
23803 | return 0; | |
23804 | } | |
23805 | _ACEOF | |
23806 | rm -f conftest.$ac_objext | |
23807 | if { (ac_try="$ac_compile" | |
23808 | case "(($ac_try" in | |
23809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23810 | *) ac_try_echo=$ac_try;; | |
23811 | esac | |
23812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23813 | $as_echo "$ac_try_echo") >&5 | |
23814 | (eval "$ac_compile") 2>conftest.er1 | |
23815 | ac_status=$? | |
23816 | grep -v '^ *+' conftest.er1 >conftest.err | |
23817 | rm -f conftest.er1 | |
23818 | cat conftest.err >&5 | |
23819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23820 | (exit $ac_status); } && { | |
23821 | test -z "$ac_c_werror_flag" || | |
23822 | test ! -s conftest.err | |
23823 | } && test -s conftest.$ac_objext; then | |
23824 | : | |
23825 | else | |
23826 | $as_echo "$as_me: failed program was:" >&5 | |
23827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23828 | ||
23829 | ac_cv_type_bits64_t=yes | |
23830 | fi | |
23831 | ||
23832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23833 | else | |
23834 | $as_echo "$as_me: failed program was:" >&5 | |
23835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23836 | ||
23837 | ||
23838 | fi | |
23839 | ||
23840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23841 | fi | |
23842 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
23843 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
23844 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
23845 | : | |
23846 | else | |
23847 | ||
23848 | cat >>confdefs.h <<_ACEOF | |
23849 | #define bits64_t char * | |
23850 | _ACEOF | |
23851 | ||
23852 | fi | |
23853 | ||
23854 | elif test "$ac_cv_sizeof_double" = 8; then | |
23855 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
23856 | $as_echo_n "checking for bits64_t... " >&6; } | |
23857 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
23858 | $as_echo_n "(cached) " >&6 | |
23859 | else | |
23860 | ac_cv_type_bits64_t=no | |
23861 | cat >conftest.$ac_ext <<_ACEOF | |
23862 | /* confdefs.h. */ | |
23863 | _ACEOF | |
23864 | cat confdefs.h >>conftest.$ac_ext | |
23865 | cat >>conftest.$ac_ext <<_ACEOF | |
23866 | /* end confdefs.h. */ | |
23867 | $ac_includes_default | |
23868 | int | |
23869 | main () | |
23870 | { | |
23871 | if (sizeof (bits64_t)) | |
23872 | return 0; | |
23873 | ; | |
23874 | return 0; | |
23875 | } | |
23876 | _ACEOF | |
23877 | rm -f conftest.$ac_objext | |
23878 | if { (ac_try="$ac_compile" | |
23879 | case "(($ac_try" in | |
23880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23881 | *) ac_try_echo=$ac_try;; | |
23882 | esac | |
23883 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23884 | $as_echo "$ac_try_echo") >&5 | |
23885 | (eval "$ac_compile") 2>conftest.er1 | |
23886 | ac_status=$? | |
23887 | grep -v '^ *+' conftest.er1 >conftest.err | |
23888 | rm -f conftest.er1 | |
23889 | cat conftest.err >&5 | |
23890 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23891 | (exit $ac_status); } && { | |
23892 | test -z "$ac_c_werror_flag" || | |
23893 | test ! -s conftest.err | |
23894 | } && test -s conftest.$ac_objext; then | |
23895 | cat >conftest.$ac_ext <<_ACEOF | |
23896 | /* confdefs.h. */ | |
23897 | _ACEOF | |
23898 | cat confdefs.h >>conftest.$ac_ext | |
23899 | cat >>conftest.$ac_ext <<_ACEOF | |
23900 | /* end confdefs.h. */ | |
23901 | $ac_includes_default | |
23902 | int | |
23903 | main () | |
23904 | { | |
23905 | if (sizeof ((bits64_t))) | |
23906 | return 0; | |
23907 | ; | |
23908 | return 0; | |
23909 | } | |
23910 | _ACEOF | |
23911 | rm -f conftest.$ac_objext | |
23912 | if { (ac_try="$ac_compile" | |
23913 | case "(($ac_try" in | |
23914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23915 | *) ac_try_echo=$ac_try;; | |
23916 | esac | |
23917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23918 | $as_echo "$ac_try_echo") >&5 | |
23919 | (eval "$ac_compile") 2>conftest.er1 | |
23920 | ac_status=$? | |
23921 | grep -v '^ *+' conftest.er1 >conftest.err | |
23922 | rm -f conftest.er1 | |
23923 | cat conftest.err >&5 | |
23924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23925 | (exit $ac_status); } && { | |
23926 | test -z "$ac_c_werror_flag" || | |
23927 | test ! -s conftest.err | |
23928 | } && test -s conftest.$ac_objext; then | |
23929 | : | |
23930 | else | |
23931 | $as_echo "$as_me: failed program was:" >&5 | |
23932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23933 | ||
23934 | ac_cv_type_bits64_t=yes | |
23935 | fi | |
23936 | ||
23937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23938 | else | |
23939 | $as_echo "$as_me: failed program was:" >&5 | |
23940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23941 | ||
23942 | ||
23943 | fi | |
23944 | ||
23945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23946 | fi | |
23947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
23948 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
23949 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
23950 | : | |
23951 | else | |
23952 | ||
23953 | cat >>confdefs.h <<_ACEOF | |
23954 | #define bits64_t double | |
23955 | _ACEOF | |
23956 | ||
23957 | fi | |
23958 | ||
23959 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then | |
23960 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
23961 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 23962 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 23963 | $as_echo_n "(cached) " >&6 |
cce855bc | 23964 | else |
3185942a JA |
23965 | ac_cv_type_bits64_t=no |
23966 | cat >conftest.$ac_ext <<_ACEOF | |
23967 | /* confdefs.h. */ | |
23968 | _ACEOF | |
23969 | cat confdefs.h >>conftest.$ac_ext | |
23970 | cat >>conftest.$ac_ext <<_ACEOF | |
23971 | /* end confdefs.h. */ | |
23972 | $ac_includes_default | |
23973 | int | |
23974 | main () | |
23975 | { | |
23976 | if (sizeof (bits64_t)) | |
23977 | return 0; | |
23978 | ; | |
23979 | return 0; | |
23980 | } | |
23981 | _ACEOF | |
23982 | rm -f conftest.$ac_objext | |
23983 | if { (ac_try="$ac_compile" | |
23984 | case "(($ac_try" in | |
23985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23986 | *) ac_try_echo=$ac_try;; | |
23987 | esac | |
23988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23989 | $as_echo "$ac_try_echo") >&5 | |
23990 | (eval "$ac_compile") 2>conftest.er1 | |
23991 | ac_status=$? | |
23992 | grep -v '^ *+' conftest.er1 >conftest.err | |
23993 | rm -f conftest.er1 | |
23994 | cat conftest.err >&5 | |
23995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23996 | (exit $ac_status); } && { | |
23997 | test -z "$ac_c_werror_flag" || | |
23998 | test ! -s conftest.err | |
23999 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 24000 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24001 | /* confdefs.h. */ |
24002 | _ACEOF | |
24003 | cat confdefs.h >>conftest.$ac_ext | |
24004 | cat >>conftest.$ac_ext <<_ACEOF | |
24005 | /* end confdefs.h. */ | |
f73dda09 JA |
24006 | $ac_includes_default |
24007 | int | |
24008 | main () | |
24009 | { | |
3185942a JA |
24010 | if (sizeof ((bits64_t))) |
24011 | return 0; | |
f73dda09 JA |
24012 | ; |
24013 | return 0; | |
24014 | } | |
24015 | _ACEOF | |
24016 | rm -f conftest.$ac_objext | |
3185942a JA |
24017 | if { (ac_try="$ac_compile" |
24018 | case "(($ac_try" in | |
24019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24020 | *) ac_try_echo=$ac_try;; | |
24021 | esac | |
24022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24023 | $as_echo "$ac_try_echo") >&5 | |
24024 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24025 | ac_status=$? |
0628567a JA |
24026 | grep -v '^ *+' conftest.er1 >conftest.err |
24027 | rm -f conftest.er1 | |
24028 | cat conftest.err >&5 | |
3185942a JA |
24029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24030 | (exit $ac_status); } && { | |
24031 | test -z "$ac_c_werror_flag" || | |
24032 | test ! -s conftest.err | |
24033 | } && test -s conftest.$ac_objext; then | |
24034 | : | |
24035 | else | |
24036 | $as_echo "$as_me: failed program was:" >&5 | |
24037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24038 | ||
24039 | ac_cv_type_bits64_t=yes | |
24040 | fi | |
24041 | ||
24042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24043 | else |
3185942a | 24044 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24045 | sed 's/^/| /' conftest.$ac_ext >&5 |
24046 | ||
3185942a | 24047 | |
b72432fd | 24048 | fi |
3185942a JA |
24049 | |
24050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24051 | fi |
3185942a JA |
24052 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
24053 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
24054 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
24055 | : |
24056 | else | |
24057 | ||
b80f6443 | 24058 | cat >>confdefs.h <<_ACEOF |
3185942a | 24059 | #define bits64_t long long |
b80f6443 | 24060 | _ACEOF |
b72432fd JA |
24061 | |
24062 | fi | |
24063 | ||
3185942a JA |
24064 | elif test "$ac_cv_sizeof_long" = 8; then |
24065 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
24066 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 24067 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 24068 | $as_echo_n "(cached) " >&6 |
b72432fd | 24069 | else |
3185942a JA |
24070 | ac_cv_type_bits64_t=no |
24071 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24072 | /* confdefs.h. */ |
24073 | _ACEOF | |
24074 | cat confdefs.h >>conftest.$ac_ext | |
24075 | cat >>conftest.$ac_ext <<_ACEOF | |
24076 | /* end confdefs.h. */ | |
f73dda09 JA |
24077 | $ac_includes_default |
24078 | int | |
24079 | main () | |
24080 | { | |
f73dda09 | 24081 | if (sizeof (bits64_t)) |
3185942a | 24082 | return 0; |
f73dda09 JA |
24083 | ; |
24084 | return 0; | |
24085 | } | |
24086 | _ACEOF | |
24087 | rm -f conftest.$ac_objext | |
3185942a JA |
24088 | if { (ac_try="$ac_compile" |
24089 | case "(($ac_try" in | |
24090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24091 | *) ac_try_echo=$ac_try;; | |
24092 | esac | |
24093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24094 | $as_echo "$ac_try_echo") >&5 | |
24095 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24096 | ac_status=$? |
0628567a JA |
24097 | grep -v '^ *+' conftest.er1 >conftest.err |
24098 | rm -f conftest.er1 | |
24099 | cat conftest.err >&5 | |
3185942a JA |
24100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24101 | (exit $ac_status); } && { | |
24102 | test -z "$ac_c_werror_flag" || | |
24103 | test ! -s conftest.err | |
24104 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 24105 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24106 | /* confdefs.h. */ |
24107 | _ACEOF | |
24108 | cat confdefs.h >>conftest.$ac_ext | |
24109 | cat >>conftest.$ac_ext <<_ACEOF | |
24110 | /* end confdefs.h. */ | |
f73dda09 JA |
24111 | $ac_includes_default |
24112 | int | |
24113 | main () | |
24114 | { | |
3185942a JA |
24115 | if (sizeof ((bits64_t))) |
24116 | return 0; | |
f73dda09 JA |
24117 | ; |
24118 | return 0; | |
24119 | } | |
24120 | _ACEOF | |
24121 | rm -f conftest.$ac_objext | |
3185942a JA |
24122 | if { (ac_try="$ac_compile" |
24123 | case "(($ac_try" in | |
24124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24125 | *) ac_try_echo=$ac_try;; | |
24126 | esac | |
24127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24128 | $as_echo "$ac_try_echo") >&5 | |
24129 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24130 | ac_status=$? |
0628567a JA |
24131 | grep -v '^ *+' conftest.er1 >conftest.err |
24132 | rm -f conftest.er1 | |
24133 | cat conftest.err >&5 | |
3185942a JA |
24134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24135 | (exit $ac_status); } && { | |
24136 | test -z "$ac_c_werror_flag" || | |
24137 | test ! -s conftest.err | |
24138 | } && test -s conftest.$ac_objext; then | |
24139 | : | |
24140 | else | |
24141 | $as_echo "$as_me: failed program was:" >&5 | |
24142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24143 | ||
24144 | ac_cv_type_bits64_t=yes | |
24145 | fi | |
24146 | ||
24147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24148 | else |
3185942a | 24149 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24150 | sed 's/^/| /' conftest.$ac_ext >&5 |
24151 | ||
3185942a | 24152 | |
f73dda09 | 24153 | fi |
3185942a JA |
24154 | |
24155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 24156 | fi |
3185942a JA |
24157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
24158 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
24159 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
24160 | : |
24161 | else | |
24162 | ||
b80f6443 | 24163 | cat >>confdefs.h <<_ACEOF |
3185942a | 24164 | #define bits64_t long |
b80f6443 | 24165 | _ACEOF |
f73dda09 | 24166 | |
cce855bc | 24167 | fi |
b72432fd | 24168 | |
3185942a JA |
24169 | else |
24170 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
24171 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 24172 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 24173 | $as_echo_n "(cached) " >&6 |
f73dda09 | 24174 | else |
3185942a JA |
24175 | ac_cv_type_bits64_t=no |
24176 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24177 | /* confdefs.h. */ |
24178 | _ACEOF | |
24179 | cat confdefs.h >>conftest.$ac_ext | |
24180 | cat >>conftest.$ac_ext <<_ACEOF | |
24181 | /* end confdefs.h. */ | |
f73dda09 JA |
24182 | $ac_includes_default |
24183 | int | |
24184 | main () | |
24185 | { | |
f73dda09 | 24186 | if (sizeof (bits64_t)) |
3185942a | 24187 | return 0; |
f73dda09 JA |
24188 | ; |
24189 | return 0; | |
24190 | } | |
24191 | _ACEOF | |
24192 | rm -f conftest.$ac_objext | |
3185942a JA |
24193 | if { (ac_try="$ac_compile" |
24194 | case "(($ac_try" in | |
24195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24196 | *) ac_try_echo=$ac_try;; | |
24197 | esac | |
24198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24199 | $as_echo "$ac_try_echo") >&5 | |
24200 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24201 | ac_status=$? |
0628567a JA |
24202 | grep -v '^ *+' conftest.er1 >conftest.err |
24203 | rm -f conftest.er1 | |
24204 | cat conftest.err >&5 | |
3185942a JA |
24205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24206 | (exit $ac_status); } && { | |
24207 | test -z "$ac_c_werror_flag" || | |
24208 | test ! -s conftest.err | |
24209 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 24210 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24211 | /* confdefs.h. */ |
24212 | _ACEOF | |
24213 | cat confdefs.h >>conftest.$ac_ext | |
24214 | cat >>conftest.$ac_ext <<_ACEOF | |
24215 | /* end confdefs.h. */ | |
f73dda09 JA |
24216 | $ac_includes_default |
24217 | int | |
24218 | main () | |
24219 | { | |
3185942a JA |
24220 | if (sizeof ((bits64_t))) |
24221 | return 0; | |
f73dda09 JA |
24222 | ; |
24223 | return 0; | |
24224 | } | |
24225 | _ACEOF | |
24226 | rm -f conftest.$ac_objext | |
3185942a JA |
24227 | if { (ac_try="$ac_compile" |
24228 | case "(($ac_try" in | |
24229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24230 | *) ac_try_echo=$ac_try;; | |
24231 | esac | |
24232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24233 | $as_echo "$ac_try_echo") >&5 | |
24234 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24235 | ac_status=$? |
0628567a JA |
24236 | grep -v '^ *+' conftest.er1 >conftest.err |
24237 | rm -f conftest.er1 | |
24238 | cat conftest.err >&5 | |
3185942a JA |
24239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24240 | (exit $ac_status); } && { | |
24241 | test -z "$ac_c_werror_flag" || | |
24242 | test ! -s conftest.err | |
24243 | } && test -s conftest.$ac_objext; then | |
24244 | : | |
24245 | else | |
24246 | $as_echo "$as_me: failed program was:" >&5 | |
24247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24248 | ||
24249 | ac_cv_type_bits64_t=yes | |
24250 | fi | |
24251 | ||
24252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24253 | else |
3185942a | 24254 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24255 | sed 's/^/| /' conftest.$ac_ext >&5 |
24256 | ||
3185942a | 24257 | |
b72432fd | 24258 | fi |
3185942a JA |
24259 | |
24260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24261 | fi |
3185942a JA |
24262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
24263 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
24264 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
24265 | : |
24266 | else | |
24267 | ||
b80f6443 | 24268 | cat >>confdefs.h <<_ACEOF |
b72432fd | 24269 | #define bits64_t double |
b80f6443 | 24270 | _ACEOF |
cce855bc JA |
24271 | |
24272 | fi | |
24273 | ||
24274 | fi | |
24275 | ||
b80f6443 JA |
24276 | |
24277 | ||
bb70624e | 24278 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then |
3185942a JA |
24279 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24280 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 24281 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 24282 | $as_echo_n "(cached) " >&6 |
bb70624e | 24283 | else |
3185942a JA |
24284 | ac_cv_type_ptrdiff_t=no |
24285 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24286 | /* confdefs.h. */ |
24287 | _ACEOF | |
24288 | cat confdefs.h >>conftest.$ac_ext | |
24289 | cat >>conftest.$ac_ext <<_ACEOF | |
24290 | /* end confdefs.h. */ | |
f73dda09 JA |
24291 | $ac_includes_default |
24292 | int | |
24293 | main () | |
24294 | { | |
f73dda09 | 24295 | if (sizeof (ptrdiff_t)) |
3185942a | 24296 | return 0; |
f73dda09 JA |
24297 | ; |
24298 | return 0; | |
24299 | } | |
24300 | _ACEOF | |
24301 | rm -f conftest.$ac_objext | |
3185942a JA |
24302 | if { (ac_try="$ac_compile" |
24303 | case "(($ac_try" in | |
24304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24305 | *) ac_try_echo=$ac_try;; | |
24306 | esac | |
24307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24308 | $as_echo "$ac_try_echo") >&5 | |
24309 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
24310 | ac_status=$? |
24311 | grep -v '^ *+' conftest.er1 >conftest.err | |
24312 | rm -f conftest.er1 | |
24313 | cat conftest.err >&5 | |
3185942a JA |
24314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24315 | (exit $ac_status); } && { | |
24316 | test -z "$ac_c_werror_flag" || | |
24317 | test ! -s conftest.err | |
24318 | } && test -s conftest.$ac_objext; then | |
24319 | cat >conftest.$ac_ext <<_ACEOF | |
24320 | /* confdefs.h. */ | |
24321 | _ACEOF | |
24322 | cat confdefs.h >>conftest.$ac_ext | |
24323 | cat >>conftest.$ac_ext <<_ACEOF | |
24324 | /* end confdefs.h. */ | |
24325 | $ac_includes_default | |
24326 | int | |
24327 | main () | |
24328 | { | |
24329 | if (sizeof ((ptrdiff_t))) | |
24330 | return 0; | |
24331 | ; | |
24332 | return 0; | |
24333 | } | |
24334 | _ACEOF | |
24335 | rm -f conftest.$ac_objext | |
24336 | if { (ac_try="$ac_compile" | |
24337 | case "(($ac_try" in | |
24338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24339 | *) ac_try_echo=$ac_try;; | |
24340 | esac | |
24341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24342 | $as_echo "$ac_try_echo") >&5 | |
24343 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24344 | ac_status=$? |
3185942a JA |
24345 | grep -v '^ *+' conftest.er1 >conftest.err |
24346 | rm -f conftest.er1 | |
24347 | cat conftest.err >&5 | |
24348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24349 | (exit $ac_status); } && { | |
24350 | test -z "$ac_c_werror_flag" || | |
24351 | test ! -s conftest.err | |
24352 | } && test -s conftest.$ac_objext; then | |
24353 | : | |
24354 | else | |
24355 | $as_echo "$as_me: failed program was:" >&5 | |
24356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24357 | ||
24358 | ac_cv_type_ptrdiff_t=yes | |
24359 | fi | |
24360 | ||
24361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 24362 | else |
3185942a | 24363 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24364 | sed 's/^/| /' conftest.$ac_ext >&5 |
24365 | ||
3185942a | 24366 | |
bb70624e | 24367 | fi |
3185942a JA |
24368 | |
24369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 24370 | fi |
3185942a JA |
24371 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24372 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
24373 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
24374 | : |
24375 | else | |
24376 | ||
b80f6443 | 24377 | cat >>confdefs.h <<_ACEOF |
bb70624e | 24378 | #define ptrdiff_t int |
b80f6443 | 24379 | _ACEOF |
bb70624e JA |
24380 | |
24381 | fi | |
24382 | ||
24383 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then | |
3185942a JA |
24384 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24385 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 24386 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 24387 | $as_echo_n "(cached) " >&6 |
bb70624e | 24388 | else |
3185942a JA |
24389 | ac_cv_type_ptrdiff_t=no |
24390 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24391 | /* confdefs.h. */ |
24392 | _ACEOF | |
24393 | cat confdefs.h >>conftest.$ac_ext | |
24394 | cat >>conftest.$ac_ext <<_ACEOF | |
24395 | /* end confdefs.h. */ | |
f73dda09 JA |
24396 | $ac_includes_default |
24397 | int | |
24398 | main () | |
24399 | { | |
f73dda09 | 24400 | if (sizeof (ptrdiff_t)) |
3185942a | 24401 | return 0; |
f73dda09 JA |
24402 | ; |
24403 | return 0; | |
24404 | } | |
24405 | _ACEOF | |
24406 | rm -f conftest.$ac_objext | |
3185942a JA |
24407 | if { (ac_try="$ac_compile" |
24408 | case "(($ac_try" in | |
24409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24410 | *) ac_try_echo=$ac_try;; | |
24411 | esac | |
24412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24413 | $as_echo "$ac_try_echo") >&5 | |
24414 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24415 | ac_status=$? |
0628567a JA |
24416 | grep -v '^ *+' conftest.er1 >conftest.err |
24417 | rm -f conftest.er1 | |
24418 | cat conftest.err >&5 | |
3185942a JA |
24419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24420 | (exit $ac_status); } && { | |
24421 | test -z "$ac_c_werror_flag" || | |
24422 | test ! -s conftest.err | |
24423 | } && test -s conftest.$ac_objext; then | |
24424 | cat >conftest.$ac_ext <<_ACEOF | |
24425 | /* confdefs.h. */ | |
24426 | _ACEOF | |
24427 | cat confdefs.h >>conftest.$ac_ext | |
24428 | cat >>conftest.$ac_ext <<_ACEOF | |
24429 | /* end confdefs.h. */ | |
24430 | $ac_includes_default | |
24431 | int | |
24432 | main () | |
24433 | { | |
24434 | if (sizeof ((ptrdiff_t))) | |
24435 | return 0; | |
24436 | ; | |
24437 | return 0; | |
24438 | } | |
24439 | _ACEOF | |
24440 | rm -f conftest.$ac_objext | |
24441 | if { (ac_try="$ac_compile" | |
24442 | case "(($ac_try" in | |
24443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24444 | *) ac_try_echo=$ac_try;; | |
24445 | esac | |
24446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24447 | $as_echo "$ac_try_echo") >&5 | |
24448 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24449 | ac_status=$? |
3185942a JA |
24450 | grep -v '^ *+' conftest.er1 >conftest.err |
24451 | rm -f conftest.er1 | |
24452 | cat conftest.err >&5 | |
24453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24454 | (exit $ac_status); } && { | |
24455 | test -z "$ac_c_werror_flag" || | |
24456 | test ! -s conftest.err | |
24457 | } && test -s conftest.$ac_objext; then | |
24458 | : | |
24459 | else | |
24460 | $as_echo "$as_me: failed program was:" >&5 | |
24461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24462 | ||
24463 | ac_cv_type_ptrdiff_t=yes | |
24464 | fi | |
24465 | ||
24466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 24467 | else |
3185942a | 24468 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24469 | sed 's/^/| /' conftest.$ac_ext >&5 |
24470 | ||
3185942a | 24471 | |
bb70624e | 24472 | fi |
3185942a JA |
24473 | |
24474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 24475 | fi |
3185942a JA |
24476 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24477 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
24478 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
24479 | : |
24480 | else | |
24481 | ||
b80f6443 | 24482 | cat >>confdefs.h <<_ACEOF |
bb70624e | 24483 | #define ptrdiff_t long |
b80f6443 | 24484 | _ACEOF |
bb70624e JA |
24485 | |
24486 | fi | |
24487 | ||
f73dda09 | 24488 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then |
3185942a JA |
24489 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24490 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 24491 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 24492 | $as_echo_n "(cached) " >&6 |
bb70624e | 24493 | else |
3185942a JA |
24494 | ac_cv_type_ptrdiff_t=no |
24495 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24496 | /* confdefs.h. */ |
24497 | _ACEOF | |
24498 | cat confdefs.h >>conftest.$ac_ext | |
24499 | cat >>conftest.$ac_ext <<_ACEOF | |
24500 | /* end confdefs.h. */ | |
f73dda09 JA |
24501 | $ac_includes_default |
24502 | int | |
24503 | main () | |
24504 | { | |
f73dda09 | 24505 | if (sizeof (ptrdiff_t)) |
3185942a | 24506 | return 0; |
f73dda09 JA |
24507 | ; |
24508 | return 0; | |
24509 | } | |
24510 | _ACEOF | |
24511 | rm -f conftest.$ac_objext | |
3185942a JA |
24512 | if { (ac_try="$ac_compile" |
24513 | case "(($ac_try" in | |
24514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24515 | *) ac_try_echo=$ac_try;; | |
24516 | esac | |
24517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24518 | $as_echo "$ac_try_echo") >&5 | |
24519 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24520 | ac_status=$? |
0628567a JA |
24521 | grep -v '^ *+' conftest.er1 >conftest.err |
24522 | rm -f conftest.er1 | |
24523 | cat conftest.err >&5 | |
3185942a JA |
24524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24525 | (exit $ac_status); } && { | |
24526 | test -z "$ac_c_werror_flag" || | |
24527 | test ! -s conftest.err | |
24528 | } && test -s conftest.$ac_objext; then | |
24529 | cat >conftest.$ac_ext <<_ACEOF | |
24530 | /* confdefs.h. */ | |
24531 | _ACEOF | |
24532 | cat confdefs.h >>conftest.$ac_ext | |
24533 | cat >>conftest.$ac_ext <<_ACEOF | |
24534 | /* end confdefs.h. */ | |
24535 | $ac_includes_default | |
24536 | int | |
24537 | main () | |
24538 | { | |
24539 | if (sizeof ((ptrdiff_t))) | |
24540 | return 0; | |
24541 | ; | |
24542 | return 0; | |
24543 | } | |
24544 | _ACEOF | |
24545 | rm -f conftest.$ac_objext | |
24546 | if { (ac_try="$ac_compile" | |
24547 | case "(($ac_try" in | |
24548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24549 | *) ac_try_echo=$ac_try;; | |
24550 | esac | |
24551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24552 | $as_echo "$ac_try_echo") >&5 | |
24553 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24554 | ac_status=$? |
3185942a JA |
24555 | grep -v '^ *+' conftest.er1 >conftest.err |
24556 | rm -f conftest.er1 | |
24557 | cat conftest.err >&5 | |
24558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24559 | (exit $ac_status); } && { | |
24560 | test -z "$ac_c_werror_flag" || | |
24561 | test ! -s conftest.err | |
24562 | } && test -s conftest.$ac_objext; then | |
24563 | : | |
24564 | else | |
24565 | $as_echo "$as_me: failed program was:" >&5 | |
24566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24567 | ||
24568 | ac_cv_type_ptrdiff_t=yes | |
24569 | fi | |
24570 | ||
24571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 24572 | else |
3185942a | 24573 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24574 | sed 's/^/| /' conftest.$ac_ext >&5 |
24575 | ||
3185942a | 24576 | |
f73dda09 | 24577 | fi |
3185942a JA |
24578 | |
24579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 24580 | fi |
3185942a JA |
24581 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24582 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
24583 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
24584 | : |
24585 | else | |
24586 | ||
b80f6443 | 24587 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 24588 | #define ptrdiff_t long long |
b80f6443 | 24589 | _ACEOF |
f73dda09 | 24590 | |
bb70624e | 24591 | fi |
bb70624e | 24592 | |
f73dda09 | 24593 | else |
3185942a JA |
24594 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24595 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 24596 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 24597 | $as_echo_n "(cached) " >&6 |
f73dda09 | 24598 | else |
3185942a JA |
24599 | ac_cv_type_ptrdiff_t=no |
24600 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24601 | /* confdefs.h. */ |
24602 | _ACEOF | |
24603 | cat confdefs.h >>conftest.$ac_ext | |
24604 | cat >>conftest.$ac_ext <<_ACEOF | |
24605 | /* end confdefs.h. */ | |
f73dda09 JA |
24606 | $ac_includes_default |
24607 | int | |
24608 | main () | |
24609 | { | |
f73dda09 | 24610 | if (sizeof (ptrdiff_t)) |
3185942a | 24611 | return 0; |
f73dda09 JA |
24612 | ; |
24613 | return 0; | |
24614 | } | |
24615 | _ACEOF | |
24616 | rm -f conftest.$ac_objext | |
3185942a JA |
24617 | if { (ac_try="$ac_compile" |
24618 | case "(($ac_try" in | |
24619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24620 | *) ac_try_echo=$ac_try;; | |
24621 | esac | |
24622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24623 | $as_echo "$ac_try_echo") >&5 | |
24624 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24625 | ac_status=$? |
0628567a JA |
24626 | grep -v '^ *+' conftest.er1 >conftest.err |
24627 | rm -f conftest.er1 | |
24628 | cat conftest.err >&5 | |
3185942a JA |
24629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24630 | (exit $ac_status); } && { | |
24631 | test -z "$ac_c_werror_flag" || | |
24632 | test ! -s conftest.err | |
24633 | } && test -s conftest.$ac_objext; then | |
24634 | cat >conftest.$ac_ext <<_ACEOF | |
24635 | /* confdefs.h. */ | |
24636 | _ACEOF | |
24637 | cat confdefs.h >>conftest.$ac_ext | |
24638 | cat >>conftest.$ac_ext <<_ACEOF | |
24639 | /* end confdefs.h. */ | |
24640 | $ac_includes_default | |
24641 | int | |
24642 | main () | |
24643 | { | |
24644 | if (sizeof ((ptrdiff_t))) | |
24645 | return 0; | |
24646 | ; | |
24647 | return 0; | |
24648 | } | |
24649 | _ACEOF | |
24650 | rm -f conftest.$ac_objext | |
24651 | if { (ac_try="$ac_compile" | |
24652 | case "(($ac_try" in | |
24653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24654 | *) ac_try_echo=$ac_try;; | |
24655 | esac | |
24656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24657 | $as_echo "$ac_try_echo") >&5 | |
24658 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24659 | ac_status=$? |
3185942a JA |
24660 | grep -v '^ *+' conftest.er1 >conftest.err |
24661 | rm -f conftest.er1 | |
24662 | cat conftest.err >&5 | |
24663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24664 | (exit $ac_status); } && { | |
24665 | test -z "$ac_c_werror_flag" || | |
24666 | test ! -s conftest.err | |
24667 | } && test -s conftest.$ac_objext; then | |
24668 | : | |
24669 | else | |
24670 | $as_echo "$as_me: failed program was:" >&5 | |
24671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24672 | ||
24673 | ac_cv_type_ptrdiff_t=yes | |
24674 | fi | |
24675 | ||
24676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 24677 | else |
3185942a | 24678 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24679 | sed 's/^/| /' conftest.$ac_ext >&5 |
24680 | ||
3185942a | 24681 | |
bb70624e | 24682 | fi |
3185942a JA |
24683 | |
24684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 24685 | fi |
3185942a JA |
24686 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24687 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
24688 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
24689 | : |
24690 | else | |
24691 | ||
b80f6443 | 24692 | cat >>confdefs.h <<_ACEOF |
bb70624e | 24693 | #define ptrdiff_t int |
b80f6443 | 24694 | _ACEOF |
bb70624e JA |
24695 | |
24696 | fi | |
24697 | ||
24698 | fi | |
24699 | ||
b80f6443 | 24700 | |
3185942a JA |
24701 | { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
24702 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
f73dda09 | 24703 | if test "${ac_cv_header_stat_broken+set}" = set; then |
3185942a | 24704 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 24705 | else |
f73dda09 | 24706 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24707 | /* confdefs.h. */ |
24708 | _ACEOF | |
24709 | cat confdefs.h >>conftest.$ac_ext | |
24710 | cat >>conftest.$ac_ext <<_ACEOF | |
24711 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24712 | #include <sys/types.h> |
24713 | #include <sys/stat.h> | |
24714 | ||
3185942a JA |
24715 | #if defined S_ISBLK && defined S_IFDIR |
24716 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
ccc6cda3 JA |
24717 | #endif |
24718 | ||
3185942a JA |
24719 | #if defined S_ISBLK && defined S_IFCHR |
24720 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
ccc6cda3 JA |
24721 | #endif |
24722 | ||
3185942a JA |
24723 | #if defined S_ISLNK && defined S_IFREG |
24724 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
ccc6cda3 JA |
24725 | #endif |
24726 | ||
3185942a JA |
24727 | #if defined S_ISSOCK && defined S_IFREG |
24728 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
f73dda09 JA |
24729 | #endif |
24730 | ||
24731 | _ACEOF | |
3185942a JA |
24732 | rm -f conftest.$ac_objext |
24733 | if { (ac_try="$ac_compile" | |
24734 | case "(($ac_try" in | |
24735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24736 | *) ac_try_echo=$ac_try;; | |
24737 | esac | |
24738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24739 | $as_echo "$ac_try_echo") >&5 | |
24740 | (eval "$ac_compile") 2>conftest.er1 | |
24741 | ac_status=$? | |
24742 | grep -v '^ *+' conftest.er1 >conftest.err | |
24743 | rm -f conftest.er1 | |
24744 | cat conftest.err >&5 | |
24745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24746 | (exit $ac_status); } && { | |
24747 | test -z "$ac_c_werror_flag" || | |
24748 | test ! -s conftest.err | |
24749 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 24750 | ac_cv_header_stat_broken=no |
3185942a JA |
24751 | else |
24752 | $as_echo "$as_me: failed program was:" >&5 | |
24753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24754 | ||
24755 | ac_cv_header_stat_broken=yes | |
ccc6cda3 | 24756 | fi |
ccc6cda3 | 24757 | |
3185942a | 24758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 24759 | fi |
3185942a JA |
24760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
24761 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
f73dda09 | 24762 | if test $ac_cv_header_stat_broken = yes; then |
ccc6cda3 | 24763 | |
b80f6443 | 24764 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 24765 | #define STAT_MACROS_BROKEN 1 |
b80f6443 | 24766 | _ACEOF |
ccc6cda3 JA |
24767 | |
24768 | fi | |
24769 | ||
b80f6443 | 24770 | |
3185942a JA |
24771 | { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5 |
24772 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } | |
f73dda09 | 24773 | if test "${ac_cv_sys_interpreter+set}" = set; then |
3185942a | 24774 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
24775 | else |
24776 | echo '#! /bin/cat | |
24777 | exit 69 | |
f73dda09 | 24778 | ' >conftest |
ccc6cda3 | 24779 | chmod u+x conftest |
3185942a | 24780 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
ccc6cda3 JA |
24781 | if test $? -ne 69; then |
24782 | ac_cv_sys_interpreter=yes | |
24783 | else | |
24784 | ac_cv_sys_interpreter=no | |
24785 | fi | |
24786 | rm -f conftest | |
24787 | fi | |
3185942a JA |
24788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 |
24789 | $as_echo "$ac_cv_sys_interpreter" >&6; } | |
f73dda09 | 24790 | interpval=$ac_cv_sys_interpreter |
ccc6cda3 JA |
24791 | |
24792 | if test $ac_cv_sys_interpreter = yes; then | |
b80f6443 | 24793 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24794 | #define HAVE_HASH_BANG_EXEC 1 |
b80f6443 | 24795 | _ACEOF |
ccc6cda3 | 24796 | |
ccc6cda3 JA |
24797 | fi |
24798 | ||
ccc6cda3 | 24799 | if test "$ac_cv_func_lstat" = "no"; then |
3185942a JA |
24800 | { $as_echo "$as_me:$LINENO: checking for lstat" >&5 |
24801 | $as_echo_n "checking for lstat... " >&6; } | |
f73dda09 | 24802 | if test "${bash_cv_func_lstat+set}" = set; then |
3185942a | 24803 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 24804 | else |
f73dda09 | 24805 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24806 | /* confdefs.h. */ |
24807 | _ACEOF | |
24808 | cat confdefs.h >>conftest.$ac_ext | |
24809 | cat >>conftest.$ac_ext <<_ACEOF | |
24810 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24811 | |
24812 | #include <sys/types.h> | |
24813 | #include <sys/stat.h> | |
24814 | ||
f73dda09 JA |
24815 | int |
24816 | main () | |
24817 | { | |
24818 | lstat(".",(struct stat *)0); | |
24819 | ; | |
24820 | return 0; | |
24821 | } | |
24822 | _ACEOF | |
24823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
24824 | if { (ac_try="$ac_link" |
24825 | case "(($ac_try" in | |
24826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24827 | *) ac_try_echo=$ac_try;; | |
24828 | esac | |
24829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24830 | $as_echo "$ac_try_echo") >&5 | |
24831 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 24832 | ac_status=$? |
0628567a JA |
24833 | grep -v '^ *+' conftest.er1 >conftest.err |
24834 | rm -f conftest.er1 | |
24835 | cat conftest.err >&5 | |
3185942a JA |
24836 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24837 | (exit $ac_status); } && { | |
24838 | test -z "$ac_c_werror_flag" || | |
24839 | test ! -s conftest.err | |
24840 | } && test -s conftest$ac_exeext && { | |
24841 | test "$cross_compiling" = yes || | |
24842 | $as_test_x conftest$ac_exeext | |
24843 | }; then | |
ccc6cda3 JA |
24844 | bash_cv_func_lstat=yes |
24845 | else | |
3185942a | 24846 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24847 | sed 's/^/| /' conftest.$ac_ext >&5 |
24848 | ||
3185942a | 24849 | bash_cv_func_lstat=no |
ccc6cda3 | 24850 | fi |
3185942a JA |
24851 | |
24852 | rm -rf conftest.dSYM | |
24853 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 24854 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 24855 | fi |
3185942a JA |
24856 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
24857 | $as_echo "$bash_cv_func_lstat" >&6; } | |
ccc6cda3 | 24858 | if test $bash_cv_func_lstat = yes; then |
b80f6443 | 24859 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 24860 | #define HAVE_LSTAT 1 |
b80f6443 JA |
24861 | _ACEOF |
24862 | ||
24863 | fi | |
24864 | ||
24865 | fi | |
24866 | ||
24867 | ||
3185942a JA |
24868 | { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 |
24869 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
b80f6443 | 24870 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then |
3185942a | 24871 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
24872 | else |
24873 | if test "$cross_compiling" = yes; then | |
3185942a JA |
24874 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 |
24875 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
b80f6443 JA |
24876 | bash_cv_func_ctype_nonascii=no |
24877 | ||
24878 | else | |
24879 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24880 | /* confdefs.h. */ |
24881 | _ACEOF | |
24882 | cat confdefs.h >>conftest.$ac_ext | |
24883 | cat >>conftest.$ac_ext <<_ACEOF | |
24884 | /* end confdefs.h. */ | |
b80f6443 JA |
24885 | |
24886 | #ifdef HAVE_LOCALE_H | |
24887 | #include <locale.h> | |
24888 | #endif | |
24889 | #include <stdio.h> | |
24890 | #include <ctype.h> | |
24891 | ||
24892 | main(c, v) | |
24893 | int c; | |
24894 | char *v[]; | |
24895 | { | |
24896 | char *deflocale; | |
24897 | unsigned char x; | |
24898 | int r1, r2; | |
24899 | ||
24900 | #ifdef HAVE_SETLOCALE | |
24901 | /* We take a shot here. If that locale is not known, try the | |
24902 | system default. We try this one because '\342' (226) is | |
24903 | known to be a printable character in that locale. */ | |
24904 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
24905 | if (deflocale == 0) | |
24906 | deflocale = setlocale(LC_ALL, ""); | |
24907 | #endif | |
24908 | ||
24909 | x = '\342'; | |
24910 | r1 = isprint(x); | |
24911 | x -= 128; | |
24912 | r2 = isprint(x); | |
24913 | exit (r1 == 0 || r2 == 0); | |
24914 | } | |
24915 | ||
24916 | _ACEOF | |
24917 | rm -f conftest$ac_exeext | |
3185942a JA |
24918 | if { (ac_try="$ac_link" |
24919 | case "(($ac_try" in | |
24920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24921 | *) ac_try_echo=$ac_try;; | |
24922 | esac | |
24923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24924 | $as_echo "$ac_try_echo") >&5 | |
24925 | (eval "$ac_link") 2>&5 | |
b80f6443 | 24926 | ac_status=$? |
3185942a | 24927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 24928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
24929 | { (case "(($ac_try" in |
24930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24931 | *) ac_try_echo=$ac_try;; | |
24932 | esac | |
24933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24934 | $as_echo "$ac_try_echo") >&5 | |
24935 | (eval "$ac_try") 2>&5 | |
b80f6443 | 24936 | ac_status=$? |
3185942a | 24937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
24938 | (exit $ac_status); }; }; then |
24939 | bash_cv_func_ctype_nonascii=yes | |
24940 | else | |
3185942a JA |
24941 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24942 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
24943 | sed 's/^/| /' conftest.$ac_ext >&5 |
24944 | ||
b80f6443 JA |
24945 | ( exit $ac_status ) |
24946 | bash_cv_func_ctype_nonascii=no | |
24947 | fi | |
3185942a JA |
24948 | rm -rf conftest.dSYM |
24949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 24950 | fi |
3185942a JA |
24951 | |
24952 | ||
b80f6443 JA |
24953 | fi |
24954 | ||
3185942a JA |
24955 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 |
24956 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
b80f6443 JA |
24957 | if test $bash_cv_func_ctype_nonascii = yes; then |
24958 | cat >>confdefs.h <<\_ACEOF | |
24959 | #define CTYPE_NON_ASCII 1 | |
24960 | _ACEOF | |
ccc6cda3 JA |
24961 | |
24962 | fi | |
24963 | ||
3185942a JA |
24964 | { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 |
24965 | $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } | |
f73dda09 | 24966 | if test "${bash_cv_dup2_broken+set}" = set; then |
3185942a | 24967 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
24968 | else |
24969 | if test "$cross_compiling" = yes; then | |
3185942a JA |
24970 | { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 |
24971 | $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 24972 | bash_cv_dup2_broken=no |
ccc6cda3 | 24973 | else |
f73dda09 | 24974 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24975 | /* confdefs.h. */ |
24976 | _ACEOF | |
24977 | cat confdefs.h >>conftest.$ac_ext | |
24978 | cat >>conftest.$ac_ext <<_ACEOF | |
24979 | /* end confdefs.h. */ | |
ccc6cda3 JA |
24980 | |
24981 | #include <sys/types.h> | |
24982 | #include <fcntl.h> | |
24983 | main() | |
24984 | { | |
24985 | int fd1, fd2, fl; | |
24986 | fd1 = open("/dev/null", 2); | |
24987 | if (fcntl(fd1, 2, 1) < 0) | |
24988 | exit(1); | |
24989 | fd2 = dup2(fd1, 1); | |
24990 | if (fd2 < 0) | |
24991 | exit(2); | |
24992 | fl = fcntl(fd2, 1, 0); | |
24993 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ | |
24994 | exit(fl != 1); | |
24995 | } | |
24996 | ||
f73dda09 JA |
24997 | _ACEOF |
24998 | rm -f conftest$ac_exeext | |
3185942a JA |
24999 | if { (ac_try="$ac_link" |
25000 | case "(($ac_try" in | |
25001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25002 | *) ac_try_echo=$ac_try;; | |
25003 | esac | |
25004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25005 | $as_echo "$ac_try_echo") >&5 | |
25006 | (eval "$ac_link") 2>&5 | |
f73dda09 | 25007 | ac_status=$? |
3185942a | 25008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25010 | { (case "(($ac_try" in |
25011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25012 | *) ac_try_echo=$ac_try;; | |
25013 | esac | |
25014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25015 | $as_echo "$ac_try_echo") >&5 | |
25016 | (eval "$ac_try") 2>&5 | |
f73dda09 | 25017 | ac_status=$? |
3185942a | 25018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25019 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25020 | bash_cv_dup2_broken=yes |
25021 | else | |
3185942a JA |
25022 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25023 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
25024 | sed 's/^/| /' conftest.$ac_ext >&5 |
25025 | ||
b80f6443 | 25026 | ( exit $ac_status ) |
f73dda09 | 25027 | bash_cv_dup2_broken=no |
ccc6cda3 | 25028 | fi |
3185942a JA |
25029 | rm -rf conftest.dSYM |
25030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
25031 | fi |
25032 | ||
3185942a JA |
25033 | |
25034 | ||
ccc6cda3 JA |
25035 | fi |
25036 | ||
3185942a JA |
25037 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5 |
25038 | $as_echo "$bash_cv_dup2_broken" >&6; } | |
ccc6cda3 | 25039 | if test $bash_cv_dup2_broken = yes; then |
b80f6443 | 25040 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25041 | #define DUP2_BROKEN 1 |
b80f6443 | 25042 | _ACEOF |
ccc6cda3 JA |
25043 | |
25044 | fi | |
25045 | ||
b80f6443 | 25046 | |
3185942a JA |
25047 | { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5 |
25048 | $as_echo_n "checking whether pgrps need synchronization... " >&6; } | |
f73dda09 | 25049 | if test "${bash_cv_pgrp_pipe+set}" = set; then |
3185942a | 25050 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
25051 | else |
25052 | if test "$cross_compiling" = yes; then | |
3185942a JA |
25053 | { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 |
25054 | $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 25055 | bash_cv_pgrp_pipe=no |
ccc6cda3 | 25056 | else |
f73dda09 | 25057 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25058 | /* confdefs.h. */ |
25059 | _ACEOF | |
25060 | cat confdefs.h >>conftest.$ac_ext | |
25061 | cat >>conftest.$ac_ext <<_ACEOF | |
25062 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25063 | |
25064 | #ifdef HAVE_UNISTD_H | |
25065 | # include <unistd.h> | |
25066 | #endif | |
25067 | main() | |
25068 | { | |
25069 | # ifdef GETPGRP_VOID | |
25070 | # define getpgID() getpgrp() | |
25071 | # else | |
25072 | # define getpgID() getpgrp(0) | |
25073 | # define setpgid(x,y) setpgrp(x,y) | |
25074 | # endif | |
25075 | int pid1, pid2, fds[2]; | |
25076 | int status; | |
25077 | char ok; | |
25078 | ||
25079 | switch (pid1 = fork()) { | |
25080 | case -1: | |
25081 | exit(1); | |
25082 | case 0: | |
25083 | setpgid(0, getpid()); | |
25084 | exit(0); | |
25085 | } | |
25086 | setpgid(pid1, pid1); | |
25087 | ||
25088 | sleep(2); /* let first child die */ | |
25089 | ||
25090 | if (pipe(fds) < 0) | |
25091 | exit(2); | |
25092 | ||
25093 | switch (pid2 = fork()) { | |
25094 | case -1: | |
25095 | exit(3); | |
25096 | case 0: | |
25097 | setpgid(0, pid1); | |
25098 | ok = getpgID() == pid1; | |
25099 | write(fds[1], &ok, 1); | |
25100 | exit(0); | |
25101 | } | |
25102 | setpgid(pid2, pid1); | |
25103 | ||
25104 | close(fds[1]); | |
25105 | if (read(fds[0], &ok, 1) != 1) | |
25106 | exit(4); | |
25107 | wait(&status); | |
25108 | wait(&status); | |
25109 | exit(ok ? 0 : 5); | |
25110 | } | |
25111 | ||
f73dda09 JA |
25112 | _ACEOF |
25113 | rm -f conftest$ac_exeext | |
3185942a JA |
25114 | if { (ac_try="$ac_link" |
25115 | case "(($ac_try" in | |
25116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25117 | *) ac_try_echo=$ac_try;; | |
25118 | esac | |
25119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25120 | $as_echo "$ac_try_echo") >&5 | |
25121 | (eval "$ac_link") 2>&5 | |
f73dda09 | 25122 | ac_status=$? |
3185942a | 25123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25124 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25125 | { (case "(($ac_try" in |
25126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25127 | *) ac_try_echo=$ac_try;; | |
25128 | esac | |
25129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25130 | $as_echo "$ac_try_echo") >&5 | |
25131 | (eval "$ac_try") 2>&5 | |
f73dda09 | 25132 | ac_status=$? |
3185942a | 25133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25134 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25135 | bash_cv_pgrp_pipe=no |
25136 | else | |
3185942a JA |
25137 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25138 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
25139 | sed 's/^/| /' conftest.$ac_ext >&5 |
25140 | ||
b80f6443 | 25141 | ( exit $ac_status ) |
f73dda09 | 25142 | bash_cv_pgrp_pipe=yes |
ccc6cda3 | 25143 | fi |
3185942a JA |
25144 | rm -rf conftest.dSYM |
25145 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
25146 | fi |
25147 | ||
3185942a JA |
25148 | |
25149 | ||
ccc6cda3 JA |
25150 | fi |
25151 | ||
3185942a JA |
25152 | { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5 |
25153 | $as_echo "$bash_cv_pgrp_pipe" >&6; } | |
ccc6cda3 | 25154 | if test $bash_cv_pgrp_pipe = yes; then |
b80f6443 | 25155 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25156 | #define PGRP_PIPE 1 |
b80f6443 | 25157 | _ACEOF |
ccc6cda3 JA |
25158 | |
25159 | fi | |
25160 | ||
b80f6443 | 25161 | |
3185942a JA |
25162 | { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5 |
25163 | $as_echo_n "checking for type of signal functions... " >&6; } | |
f73dda09 | 25164 | if test "${bash_cv_signal_vintage+set}" = set; then |
3185942a | 25165 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25166 | else |
f73dda09 JA |
25167 | |
25168 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25169 | /* confdefs.h. */ |
25170 | _ACEOF | |
25171 | cat confdefs.h >>conftest.$ac_ext | |
25172 | cat >>conftest.$ac_ext <<_ACEOF | |
25173 | /* end confdefs.h. */ | |
d166f048 | 25174 | #include <signal.h> |
f73dda09 JA |
25175 | int |
25176 | main () | |
25177 | { | |
d166f048 JA |
25178 | |
25179 | sigset_t ss; | |
25180 | struct sigaction sa; | |
25181 | sigemptyset(&ss); sigsuspend(&ss); | |
25182 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
25183 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
f73dda09 JA |
25184 | |
25185 | ; | |
25186 | return 0; | |
25187 | } | |
25188 | _ACEOF | |
25189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
25190 | if { (ac_try="$ac_link" |
25191 | case "(($ac_try" in | |
25192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25193 | *) ac_try_echo=$ac_try;; | |
25194 | esac | |
25195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25196 | $as_echo "$ac_try_echo") >&5 | |
25197 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 25198 | ac_status=$? |
0628567a JA |
25199 | grep -v '^ *+' conftest.er1 >conftest.err |
25200 | rm -f conftest.er1 | |
25201 | cat conftest.err >&5 | |
3185942a JA |
25202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25203 | (exit $ac_status); } && { | |
25204 | test -z "$ac_c_werror_flag" || | |
25205 | test ! -s conftest.err | |
25206 | } && test -s conftest$ac_exeext && { | |
25207 | test "$cross_compiling" = yes || | |
25208 | $as_test_x conftest$ac_exeext | |
25209 | }; then | |
d166f048 | 25210 | bash_cv_signal_vintage=posix |
ccc6cda3 | 25211 | else |
3185942a | 25212 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25213 | sed 's/^/| /' conftest.$ac_ext >&5 |
25214 | ||
f73dda09 JA |
25215 | |
25216 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25217 | /* confdefs.h. */ |
25218 | _ACEOF | |
25219 | cat confdefs.h >>conftest.$ac_ext | |
25220 | cat >>conftest.$ac_ext <<_ACEOF | |
25221 | /* end confdefs.h. */ | |
d166f048 | 25222 | #include <signal.h> |
f73dda09 JA |
25223 | int |
25224 | main () | |
25225 | { | |
d166f048 JA |
25226 | |
25227 | int mask = sigmask(SIGINT); | |
25228 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
f73dda09 JA |
25229 | |
25230 | ; | |
25231 | return 0; | |
25232 | } | |
25233 | _ACEOF | |
25234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
25235 | if { (ac_try="$ac_link" |
25236 | case "(($ac_try" in | |
25237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25238 | *) ac_try_echo=$ac_try;; | |
25239 | esac | |
25240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25241 | $as_echo "$ac_try_echo") >&5 | |
25242 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 25243 | ac_status=$? |
0628567a JA |
25244 | grep -v '^ *+' conftest.er1 >conftest.err |
25245 | rm -f conftest.er1 | |
25246 | cat conftest.err >&5 | |
3185942a JA |
25247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25248 | (exit $ac_status); } && { | |
25249 | test -z "$ac_c_werror_flag" || | |
25250 | test ! -s conftest.err | |
25251 | } && test -s conftest$ac_exeext && { | |
25252 | test "$cross_compiling" = yes || | |
25253 | $as_test_x conftest$ac_exeext | |
25254 | }; then | |
d166f048 JA |
25255 | bash_cv_signal_vintage=4.2bsd |
25256 | else | |
3185942a | 25257 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25258 | sed 's/^/| /' conftest.$ac_ext >&5 |
25259 | ||
f73dda09 JA |
25260 | |
25261 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25262 | /* confdefs.h. */ |
25263 | _ACEOF | |
25264 | cat confdefs.h >>conftest.$ac_ext | |
25265 | cat >>conftest.$ac_ext <<_ACEOF | |
25266 | /* end confdefs.h. */ | |
d166f048 JA |
25267 | |
25268 | #include <signal.h> | |
25269 | RETSIGTYPE foo() { } | |
f73dda09 JA |
25270 | int |
25271 | main () | |
25272 | { | |
d166f048 JA |
25273 | |
25274 | int mask = sigmask(SIGINT); | |
25275 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
25276 | sighold(SIGINT); sigpause(SIGINT); | |
f73dda09 JA |
25277 | |
25278 | ; | |
25279 | return 0; | |
25280 | } | |
25281 | _ACEOF | |
25282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
25283 | if { (ac_try="$ac_link" |
25284 | case "(($ac_try" in | |
25285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25286 | *) ac_try_echo=$ac_try;; | |
25287 | esac | |
25288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25289 | $as_echo "$ac_try_echo") >&5 | |
25290 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 25291 | ac_status=$? |
0628567a JA |
25292 | grep -v '^ *+' conftest.er1 >conftest.err |
25293 | rm -f conftest.er1 | |
25294 | cat conftest.err >&5 | |
3185942a JA |
25295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25296 | (exit $ac_status); } && { | |
25297 | test -z "$ac_c_werror_flag" || | |
25298 | test ! -s conftest.err | |
25299 | } && test -s conftest$ac_exeext && { | |
25300 | test "$cross_compiling" = yes || | |
25301 | $as_test_x conftest$ac_exeext | |
25302 | }; then | |
d166f048 JA |
25303 | bash_cv_signal_vintage=svr3 |
25304 | else | |
3185942a | 25305 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25306 | sed 's/^/| /' conftest.$ac_ext >&5 |
25307 | ||
3185942a | 25308 | bash_cv_signal_vintage=v7 |
f73dda09 | 25309 | |
d166f048 | 25310 | fi |
3185942a JA |
25311 | |
25312 | rm -rf conftest.dSYM | |
25313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 25314 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 25315 | |
d166f048 | 25316 | fi |
3185942a JA |
25317 | |
25318 | rm -rf conftest.dSYM | |
25319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 25320 | conftest$ac_exeext conftest.$ac_ext |
d166f048 JA |
25321 | |
25322 | fi | |
3185942a JA |
25323 | |
25324 | rm -rf conftest.dSYM | |
25325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 25326 | conftest$ac_exeext conftest.$ac_ext |
d166f048 JA |
25327 | |
25328 | fi | |
25329 | ||
3185942a JA |
25330 | { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
25331 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
d166f048 | 25332 | if test "$bash_cv_signal_vintage" = posix; then |
b80f6443 | 25333 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25334 | #define HAVE_POSIX_SIGNALS 1 |
b80f6443 | 25335 | _ACEOF |
d166f048 JA |
25336 | |
25337 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
b80f6443 | 25338 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25339 | #define HAVE_BSD_SIGNALS 1 |
b80f6443 | 25340 | _ACEOF |
d166f048 JA |
25341 | |
25342 | elif test "$bash_cv_signal_vintage" = svr3; then | |
b80f6443 | 25343 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25344 | #define HAVE_USG_SIGHOLD 1 |
b80f6443 | 25345 | _ACEOF |
d166f048 JA |
25346 | |
25347 | fi | |
25348 | ||
b80f6443 | 25349 | |
3185942a JA |
25350 | { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5 |
25351 | $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } | |
f73dda09 | 25352 | if test "${bash_cv_sys_errlist+set}" = set; then |
3185942a | 25353 | $as_echo_n "(cached) " >&6 |
cce855bc | 25354 | else |
f73dda09 | 25355 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25356 | /* confdefs.h. */ |
25357 | _ACEOF | |
25358 | cat confdefs.h >>conftest.$ac_ext | |
25359 | cat >>conftest.$ac_ext <<_ACEOF | |
25360 | /* end confdefs.h. */ | |
f73dda09 JA |
25361 | #include <errno.h> |
25362 | int | |
cce855bc JA |
25363 | main () |
25364 | { | |
d166f048 JA |
25365 | extern char *sys_errlist[]; |
25366 | extern int sys_nerr; | |
25367 | char *msg = sys_errlist[sys_nerr - 1]; | |
f73dda09 JA |
25368 | ; |
25369 | return 0; | |
25370 | } | |
25371 | _ACEOF | |
25372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
25373 | if { (ac_try="$ac_link" |
25374 | case "(($ac_try" in | |
25375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25376 | *) ac_try_echo=$ac_try;; | |
25377 | esac | |
25378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25379 | $as_echo "$ac_try_echo") >&5 | |
25380 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 25381 | ac_status=$? |
0628567a JA |
25382 | grep -v '^ *+' conftest.er1 >conftest.err |
25383 | rm -f conftest.er1 | |
25384 | cat conftest.err >&5 | |
3185942a JA |
25385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25386 | (exit $ac_status); } && { | |
25387 | test -z "$ac_c_werror_flag" || | |
25388 | test ! -s conftest.err | |
25389 | } && test -s conftest$ac_exeext && { | |
25390 | test "$cross_compiling" = yes || | |
25391 | $as_test_x conftest$ac_exeext | |
25392 | }; then | |
d166f048 JA |
25393 | bash_cv_sys_errlist=yes |
25394 | else | |
3185942a | 25395 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25396 | sed 's/^/| /' conftest.$ac_ext >&5 |
25397 | ||
3185942a | 25398 | bash_cv_sys_errlist=no |
d166f048 | 25399 | fi |
3185942a JA |
25400 | |
25401 | rm -rf conftest.dSYM | |
25402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 25403 | conftest$ac_exeext conftest.$ac_ext |
d166f048 | 25404 | fi |
3185942a JA |
25405 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5 |
25406 | $as_echo "$bash_cv_sys_errlist" >&6; } | |
d166f048 | 25407 | if test $bash_cv_sys_errlist = yes; then |
b80f6443 | 25408 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 25409 | #define HAVE_SYS_ERRLIST 1 |
b80f6443 | 25410 | _ACEOF |
d166f048 JA |
25411 | |
25412 | fi | |
25413 | ||
b80f6443 | 25414 | |
3185942a JA |
25415 | { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5 |
25416 | $as_echo_n "checking for sys_siglist in system C library... " >&6; } | |
f73dda09 | 25417 | if test "${bash_cv_sys_siglist+set}" = set; then |
3185942a | 25418 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
25419 | else |
25420 | if test "$cross_compiling" = yes; then | |
3185942a JA |
25421 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 |
25422 | $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 25423 | bash_cv_sys_siglist=no |
ccc6cda3 | 25424 | else |
f73dda09 | 25425 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25426 | /* confdefs.h. */ |
25427 | _ACEOF | |
25428 | cat confdefs.h >>conftest.$ac_ext | |
25429 | cat >>conftest.$ac_ext <<_ACEOF | |
25430 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25431 | |
25432 | #include <sys/types.h> | |
25433 | #include <signal.h> | |
25434 | #ifdef HAVE_UNISTD_H | |
25435 | #include <unistd.h> | |
25436 | #endif | |
3185942a | 25437 | #if !HAVE_DECL_SYS_SIGLIST |
ccc6cda3 JA |
25438 | extern char *sys_siglist[]; |
25439 | #endif | |
25440 | main() | |
25441 | { | |
25442 | char *msg = sys_siglist[2]; | |
25443 | exit(msg == 0); | |
25444 | } | |
f73dda09 JA |
25445 | _ACEOF |
25446 | rm -f conftest$ac_exeext | |
3185942a JA |
25447 | if { (ac_try="$ac_link" |
25448 | case "(($ac_try" in | |
25449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25450 | *) ac_try_echo=$ac_try;; | |
25451 | esac | |
25452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25453 | $as_echo "$ac_try_echo") >&5 | |
25454 | (eval "$ac_link") 2>&5 | |
f73dda09 | 25455 | ac_status=$? |
3185942a | 25456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25458 | { (case "(($ac_try" in |
25459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25460 | *) ac_try_echo=$ac_try;; | |
25461 | esac | |
25462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25463 | $as_echo "$ac_try_echo") >&5 | |
25464 | (eval "$ac_try") 2>&5 | |
f73dda09 | 25465 | ac_status=$? |
3185942a | 25466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25467 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25468 | bash_cv_sys_siglist=yes |
25469 | else | |
3185942a JA |
25470 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25471 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
25472 | sed 's/^/| /' conftest.$ac_ext >&5 |
25473 | ||
b80f6443 | 25474 | ( exit $ac_status ) |
f73dda09 | 25475 | bash_cv_sys_siglist=no |
ccc6cda3 | 25476 | fi |
3185942a JA |
25477 | rm -rf conftest.dSYM |
25478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 25479 | fi |
3185942a JA |
25480 | |
25481 | ||
ccc6cda3 | 25482 | fi |
cce855bc | 25483 | |
3185942a JA |
25484 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5 |
25485 | $as_echo "$bash_cv_sys_siglist" >&6; } | |
ccc6cda3 | 25486 | if test $bash_cv_sys_siglist = yes; then |
b80f6443 | 25487 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25488 | #define HAVE_SYS_SIGLIST 1 |
b80f6443 | 25489 | _ACEOF |
ccc6cda3 JA |
25490 | |
25491 | fi | |
25492 | ||
3185942a JA |
25493 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5 |
25494 | $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } | |
f73dda09 | 25495 | if test "${bash_cv_decl_under_sys_siglist+set}" = set; then |
3185942a | 25496 | $as_echo_n "(cached) " >&6 |
e8ce775d | 25497 | else |
f73dda09 | 25498 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25499 | /* confdefs.h. */ |
25500 | _ACEOF | |
25501 | cat confdefs.h >>conftest.$ac_ext | |
25502 | cat >>conftest.$ac_ext <<_ACEOF | |
25503 | /* end confdefs.h. */ | |
e8ce775d JA |
25504 | |
25505 | #include <sys/types.h> | |
25506 | #include <signal.h> | |
25507 | #ifdef HAVE_UNISTD_H | |
25508 | #include <unistd.h> | |
25509 | #endif | |
f73dda09 JA |
25510 | int |
25511 | main () | |
25512 | { | |
25513 | char *msg = _sys_siglist[2]; | |
25514 | ; | |
25515 | return 0; | |
25516 | } | |
25517 | _ACEOF | |
25518 | rm -f conftest.$ac_objext | |
3185942a JA |
25519 | if { (ac_try="$ac_compile" |
25520 | case "(($ac_try" in | |
25521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25522 | *) ac_try_echo=$ac_try;; | |
25523 | esac | |
25524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25525 | $as_echo "$ac_try_echo") >&5 | |
25526 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25527 | ac_status=$? |
0628567a JA |
25528 | grep -v '^ *+' conftest.er1 >conftest.err |
25529 | rm -f conftest.er1 | |
25530 | cat conftest.err >&5 | |
3185942a JA |
25531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25532 | (exit $ac_status); } && { | |
25533 | test -z "$ac_c_werror_flag" || | |
25534 | test ! -s conftest.err | |
25535 | } && test -s conftest.$ac_objext; then | |
e8ce775d JA |
25536 | bash_cv_decl_under_sys_siglist=yes |
25537 | else | |
3185942a | 25538 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25539 | sed 's/^/| /' conftest.$ac_ext >&5 |
25540 | ||
3185942a | 25541 | bash_cv_decl_under_sys_siglist=no |
e8ce775d | 25542 | fi |
3185942a JA |
25543 | |
25544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8ce775d | 25545 | fi |
3185942a JA |
25546 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5 |
25547 | $as_echo "$bash_cv_decl_under_sys_siglist" >&6; } | |
e8ce775d | 25548 | if test $bash_cv_decl_under_sys_siglist = yes; then |
b80f6443 | 25549 | cat >>confdefs.h <<\_ACEOF |
e8ce775d | 25550 | #define UNDER_SYS_SIGLIST_DECLARED 1 |
b80f6443 | 25551 | _ACEOF |
e8ce775d JA |
25552 | |
25553 | fi | |
25554 | ||
b80f6443 | 25555 | |
3185942a JA |
25556 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5 |
25557 | $as_echo_n "checking for _sys_siglist in system C library... " >&6; } | |
f73dda09 | 25558 | if test "${bash_cv_under_sys_siglist+set}" = set; then |
3185942a | 25559 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
25560 | else |
25561 | if test "$cross_compiling" = yes; then | |
3185942a JA |
25562 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 |
25563 | $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 25564 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 25565 | else |
f73dda09 | 25566 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25567 | /* confdefs.h. */ |
25568 | _ACEOF | |
25569 | cat confdefs.h >>conftest.$ac_ext | |
25570 | cat >>conftest.$ac_ext <<_ACEOF | |
25571 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25572 | |
25573 | #include <sys/types.h> | |
25574 | #include <signal.h> | |
25575 | #ifdef HAVE_UNISTD_H | |
25576 | #include <unistd.h> | |
25577 | #endif | |
e8ce775d | 25578 | #ifndef UNDER_SYS_SIGLIST_DECLARED |
ccc6cda3 JA |
25579 | extern char *_sys_siglist[]; |
25580 | #endif | |
25581 | main() | |
25582 | { | |
e8ce775d | 25583 | char *msg = (char *)_sys_siglist[2]; |
ccc6cda3 JA |
25584 | exit(msg == 0); |
25585 | } | |
f73dda09 JA |
25586 | _ACEOF |
25587 | rm -f conftest$ac_exeext | |
3185942a JA |
25588 | if { (ac_try="$ac_link" |
25589 | case "(($ac_try" in | |
25590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25591 | *) ac_try_echo=$ac_try;; | |
25592 | esac | |
25593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25594 | $as_echo "$ac_try_echo") >&5 | |
25595 | (eval "$ac_link") 2>&5 | |
f73dda09 | 25596 | ac_status=$? |
3185942a | 25597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25599 | { (case "(($ac_try" in |
25600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25601 | *) ac_try_echo=$ac_try;; | |
25602 | esac | |
25603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25604 | $as_echo "$ac_try_echo") >&5 | |
25605 | (eval "$ac_try") 2>&5 | |
f73dda09 | 25606 | ac_status=$? |
3185942a | 25607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25608 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25609 | bash_cv_under_sys_siglist=yes |
25610 | else | |
3185942a JA |
25611 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25612 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
25613 | sed 's/^/| /' conftest.$ac_ext >&5 |
25614 | ||
b80f6443 | 25615 | ( exit $ac_status ) |
f73dda09 | 25616 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 25617 | fi |
3185942a JA |
25618 | rm -rf conftest.dSYM |
25619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 25620 | fi |
3185942a JA |
25621 | |
25622 | ||
ccc6cda3 | 25623 | fi |
cce855bc | 25624 | |
3185942a JA |
25625 | { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5 |
25626 | $as_echo "$bash_cv_under_sys_siglist" >&6; } | |
ccc6cda3 | 25627 | if test $bash_cv_under_sys_siglist = yes; then |
b80f6443 | 25628 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25629 | #define HAVE_UNDER_SYS_SIGLIST 1 |
b80f6443 | 25630 | _ACEOF |
ccc6cda3 JA |
25631 | |
25632 | fi | |
25633 | ||
b80f6443 | 25634 | |
3185942a JA |
25635 | { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 |
25636 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
f73dda09 | 25637 | if test "${bash_cv_void_sighandler+set}" = set; then |
3185942a | 25638 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25639 | else |
f73dda09 | 25640 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25641 | /* confdefs.h. */ |
25642 | _ACEOF | |
25643 | cat confdefs.h >>conftest.$ac_ext | |
25644 | cat >>conftest.$ac_ext <<_ACEOF | |
25645 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25646 | #include <sys/types.h> |
25647 | #include <signal.h> | |
25648 | #ifdef signal | |
25649 | #undef signal | |
25650 | #endif | |
25651 | #ifdef __cplusplus | |
25652 | extern "C" | |
25653 | #endif | |
25654 | void (*signal ()) (); | |
f73dda09 JA |
25655 | int |
25656 | main () | |
25657 | { | |
ccc6cda3 | 25658 | int i; |
f73dda09 JA |
25659 | ; |
25660 | return 0; | |
25661 | } | |
25662 | _ACEOF | |
25663 | rm -f conftest.$ac_objext | |
3185942a JA |
25664 | if { (ac_try="$ac_compile" |
25665 | case "(($ac_try" in | |
25666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25667 | *) ac_try_echo=$ac_try;; | |
25668 | esac | |
25669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25670 | $as_echo "$ac_try_echo") >&5 | |
25671 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25672 | ac_status=$? |
0628567a JA |
25673 | grep -v '^ *+' conftest.er1 >conftest.err |
25674 | rm -f conftest.er1 | |
25675 | cat conftest.err >&5 | |
3185942a JA |
25676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25677 | (exit $ac_status); } && { | |
25678 | test -z "$ac_c_werror_flag" || | |
25679 | test ! -s conftest.err | |
25680 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
25681 | bash_cv_void_sighandler=yes |
25682 | else | |
3185942a | 25683 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25684 | sed 's/^/| /' conftest.$ac_ext >&5 |
25685 | ||
3185942a | 25686 | bash_cv_void_sighandler=no |
ccc6cda3 | 25687 | fi |
3185942a JA |
25688 | |
25689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 25690 | fi |
3185942a JA |
25691 | { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
25692 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
ccc6cda3 | 25693 | if test $bash_cv_void_sighandler = yes; then |
b80f6443 | 25694 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25695 | #define VOID_SIGHANDLER 1 |
b80f6443 | 25696 | _ACEOF |
ccc6cda3 JA |
25697 | |
25698 | fi | |
25699 | ||
b80f6443 JA |
25700 | |
25701 | ||
3185942a JA |
25702 | { $as_echo "$as_me:$LINENO: checking for clock_t" >&5 |
25703 | $as_echo_n "checking for clock_t... " >&6; } | |
f73dda09 | 25704 | if test "${bash_cv_type_clock_t+set}" = set; then |
3185942a | 25705 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25706 | else |
f73dda09 | 25707 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25708 | /* confdefs.h. */ |
25709 | _ACEOF | |
25710 | cat confdefs.h >>conftest.$ac_ext | |
25711 | cat >>conftest.$ac_ext <<_ACEOF | |
25712 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25713 | #include <sys/types.h> |
25714 | #if STDC_HEADERS | |
25715 | #include <stdlib.h> | |
f73dda09 JA |
25716 | #include <stddef.h> |
25717 | #endif | |
25718 | #if HAVE_INTTYPES_H | |
25719 | #include <inttypes.h> | |
ccc6cda3 JA |
25720 | #endif |
25721 | #include <sys/times.h> | |
25722 | ||
f73dda09 | 25723 | _ACEOF |
ccc6cda3 | 25724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 25725 | $EGREP "clock_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
25726 | bash_cv_type_clock_t=yes |
25727 | else | |
ccc6cda3 JA |
25728 | bash_cv_type_clock_t=no |
25729 | fi | |
25730 | rm -f conftest* | |
25731 | ||
25732 | fi | |
25733 | ||
3185942a JA |
25734 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5 |
25735 | $as_echo "$bash_cv_type_clock_t" >&6; } | |
ccc6cda3 JA |
25736 | |
25737 | if test $bash_cv_type_clock_t = no; then | |
b80f6443 | 25738 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 25739 | #define clock_t long |
b80f6443 | 25740 | _ACEOF |
ccc6cda3 JA |
25741 | |
25742 | fi | |
25743 | ||
b80f6443 JA |
25744 | |
25745 | ||
3185942a JA |
25746 | { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5 |
25747 | $as_echo_n "checking for sigset_t... " >&6; } | |
f73dda09 | 25748 | if test "${bash_cv_type_sigset_t+set}" = set; then |
3185942a | 25749 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25750 | else |
f73dda09 | 25751 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25752 | /* confdefs.h. */ |
25753 | _ACEOF | |
25754 | cat confdefs.h >>conftest.$ac_ext | |
25755 | cat >>conftest.$ac_ext <<_ACEOF | |
25756 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25757 | #include <sys/types.h> |
25758 | #if STDC_HEADERS | |
25759 | #include <stdlib.h> | |
f73dda09 JA |
25760 | #include <stddef.h> |
25761 | #endif | |
25762 | #if HAVE_INTTYPES_H | |
25763 | #include <inttypes.h> | |
ccc6cda3 JA |
25764 | #endif |
25765 | #include <signal.h> | |
25766 | ||
f73dda09 | 25767 | _ACEOF |
ccc6cda3 | 25768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 25769 | $EGREP "sigset_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
25770 | bash_cv_type_sigset_t=yes |
25771 | else | |
ccc6cda3 JA |
25772 | bash_cv_type_sigset_t=no |
25773 | fi | |
25774 | rm -f conftest* | |
25775 | ||
25776 | fi | |
25777 | ||
3185942a JA |
25778 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5 |
25779 | $as_echo "$bash_cv_type_sigset_t" >&6; } | |
ccc6cda3 JA |
25780 | |
25781 | if test $bash_cv_type_sigset_t = no; then | |
b80f6443 | 25782 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 25783 | #define sigset_t int |
b80f6443 | 25784 | _ACEOF |
ccc6cda3 JA |
25785 | |
25786 | fi | |
25787 | ||
b80f6443 JA |
25788 | |
25789 | ||
3185942a JA |
25790 | { $as_echo "$as_me:$LINENO: checking for quad_t" >&5 |
25791 | $as_echo_n "checking for quad_t... " >&6; } | |
f73dda09 | 25792 | if test "${bash_cv_type_quad_t+set}" = set; then |
3185942a | 25793 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25794 | else |
f73dda09 | 25795 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25796 | /* confdefs.h. */ |
25797 | _ACEOF | |
25798 | cat confdefs.h >>conftest.$ac_ext | |
25799 | cat >>conftest.$ac_ext <<_ACEOF | |
25800 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25801 | #include <sys/types.h> |
25802 | #if STDC_HEADERS | |
25803 | #include <stdlib.h> | |
f73dda09 JA |
25804 | #include <stddef.h> |
25805 | #endif | |
25806 | #if HAVE_INTTYPES_H | |
25807 | #include <inttypes.h> | |
ccc6cda3 JA |
25808 | #endif |
25809 | ||
b80f6443 | 25810 | |
f73dda09 | 25811 | _ACEOF |
ccc6cda3 | 25812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 25813 | $EGREP "quad_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
25814 | bash_cv_type_quad_t=yes |
25815 | else | |
ccc6cda3 JA |
25816 | bash_cv_type_quad_t=no |
25817 | fi | |
25818 | rm -f conftest* | |
25819 | ||
25820 | fi | |
25821 | ||
3185942a JA |
25822 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5 |
25823 | $as_echo "$bash_cv_type_quad_t" >&6; } | |
ccc6cda3 | 25824 | if test $bash_cv_type_quad_t = yes; then |
b80f6443 | 25825 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25826 | #define HAVE_QUAD_T 1 |
b80f6443 | 25827 | _ACEOF |
ccc6cda3 JA |
25828 | |
25829 | fi | |
25830 | if test $bash_cv_type_quad_t = no; then | |
b80f6443 | 25831 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 25832 | #define quad_t long |
b80f6443 | 25833 | _ACEOF |
ccc6cda3 JA |
25834 | |
25835 | fi | |
25836 | ||
b80f6443 JA |
25837 | |
25838 | ||
3185942a JA |
25839 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
25840 | $as_echo_n "checking for intmax_t... " >&6; } | |
f73dda09 | 25841 | if test "${bash_cv_type_intmax_t+set}" = set; then |
3185942a | 25842 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
25843 | else |
25844 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25845 | /* confdefs.h. */ |
25846 | _ACEOF | |
25847 | cat confdefs.h >>conftest.$ac_ext | |
25848 | cat >>conftest.$ac_ext <<_ACEOF | |
25849 | /* end confdefs.h. */ | |
f73dda09 JA |
25850 | #include <sys/types.h> |
25851 | #if STDC_HEADERS | |
25852 | #include <stdlib.h> | |
25853 | #include <stddef.h> | |
25854 | #endif | |
25855 | #if HAVE_INTTYPES_H | |
25856 | #include <inttypes.h> | |
25857 | #endif | |
25858 | ||
b80f6443 | 25859 | |
f73dda09 JA |
25860 | _ACEOF |
25861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 25862 | $EGREP "intmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
25863 | bash_cv_type_intmax_t=yes |
25864 | else | |
25865 | bash_cv_type_intmax_t=no | |
25866 | fi | |
25867 | rm -f conftest* | |
25868 | ||
25869 | fi | |
25870 | ||
3185942a JA |
25871 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5 |
25872 | $as_echo "$bash_cv_type_intmax_t" >&6; } | |
f73dda09 JA |
25873 | |
25874 | if test $bash_cv_type_intmax_t = no; then | |
b80f6443 | 25875 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 25876 | #define intmax_t $bash_cv_type_long_long |
b80f6443 | 25877 | _ACEOF |
f73dda09 JA |
25878 | |
25879 | fi | |
25880 | ||
b80f6443 JA |
25881 | |
25882 | ||
3185942a JA |
25883 | { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
25884 | $as_echo_n "checking for uintmax_t... " >&6; } | |
f73dda09 | 25885 | if test "${bash_cv_type_uintmax_t+set}" = set; then |
3185942a | 25886 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
25887 | else |
25888 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25889 | /* confdefs.h. */ |
25890 | _ACEOF | |
25891 | cat confdefs.h >>conftest.$ac_ext | |
25892 | cat >>conftest.$ac_ext <<_ACEOF | |
25893 | /* end confdefs.h. */ | |
f73dda09 JA |
25894 | #include <sys/types.h> |
25895 | #if STDC_HEADERS | |
25896 | #include <stdlib.h> | |
25897 | #include <stddef.h> | |
25898 | #endif | |
25899 | #if HAVE_INTTYPES_H | |
25900 | #include <inttypes.h> | |
25901 | #endif | |
25902 | ||
b80f6443 | 25903 | |
f73dda09 JA |
25904 | _ACEOF |
25905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 25906 | $EGREP "uintmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
25907 | bash_cv_type_uintmax_t=yes |
25908 | else | |
25909 | bash_cv_type_uintmax_t=no | |
25910 | fi | |
25911 | rm -f conftest* | |
25912 | ||
25913 | fi | |
25914 | ||
3185942a JA |
25915 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5 |
25916 | $as_echo "$bash_cv_type_uintmax_t" >&6; } | |
f73dda09 JA |
25917 | |
25918 | if test $bash_cv_type_uintmax_t = no; then | |
b80f6443 | 25919 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 25920 | #define uintmax_t $bash_cv_type_unsigned_long_long |
b80f6443 | 25921 | _ACEOF |
f73dda09 JA |
25922 | |
25923 | fi | |
25924 | ||
25925 | if test "$ac_cv_header_sys_socket_h" = "yes"; then | |
25926 | ||
b80f6443 | 25927 | |
3185942a JA |
25928 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
25929 | $as_echo_n "checking for socklen_t... " >&6; } | |
f73dda09 | 25930 | if test "${bash_cv_type_socklen_t+set}" = set; then |
3185942a | 25931 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
25932 | else |
25933 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25934 | /* confdefs.h. */ |
25935 | _ACEOF | |
25936 | cat confdefs.h >>conftest.$ac_ext | |
25937 | cat >>conftest.$ac_ext <<_ACEOF | |
25938 | /* end confdefs.h. */ | |
f73dda09 JA |
25939 | #include <sys/types.h> |
25940 | #if STDC_HEADERS | |
25941 | #include <stdlib.h> | |
25942 | #include <stddef.h> | |
25943 | #endif | |
25944 | #if HAVE_INTTYPES_H | |
25945 | #include <inttypes.h> | |
25946 | #endif | |
25947 | #include <sys/socket.h> | |
25948 | ||
25949 | _ACEOF | |
25950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 25951 | $EGREP "socklen_t" >/dev/null 2>&1; then |
f73dda09 JA |
25952 | bash_cv_type_socklen_t=yes |
25953 | else | |
25954 | bash_cv_type_socklen_t=no | |
25955 | fi | |
25956 | rm -f conftest* | |
25957 | ||
25958 | fi | |
25959 | ||
3185942a JA |
25960 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5 |
25961 | $as_echo "$bash_cv_type_socklen_t" >&6; } | |
f73dda09 | 25962 | if test $bash_cv_type_socklen_t = yes; then |
b80f6443 | 25963 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 25964 | #define HAVE_SOCKLEN_T 1 |
b80f6443 | 25965 | _ACEOF |
f73dda09 JA |
25966 | |
25967 | fi | |
25968 | if test $bash_cv_type_socklen_t = no; then | |
b80f6443 | 25969 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 25970 | #define socklen_t int |
b80f6443 | 25971 | _ACEOF |
f73dda09 JA |
25972 | |
25973 | fi | |
25974 | ||
25975 | fi | |
3185942a JA |
25976 | { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5 |
25977 | $as_echo_n "checking for size and type of struct rlimit fields... " >&6; } | |
f73dda09 | 25978 | if test "${bash_cv_type_rlimit+set}" = set; then |
3185942a | 25979 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25980 | else |
f73dda09 | 25981 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25982 | /* confdefs.h. */ |
25983 | _ACEOF | |
25984 | cat confdefs.h >>conftest.$ac_ext | |
25985 | cat >>conftest.$ac_ext <<_ACEOF | |
25986 | /* end confdefs.h. */ | |
ccc6cda3 | 25987 | #include <sys/types.h> |
cce855bc | 25988 | #include <sys/resource.h> |
f73dda09 JA |
25989 | int |
25990 | main () | |
25991 | { | |
ccc6cda3 | 25992 | rlim_t xxx; |
f73dda09 JA |
25993 | ; |
25994 | return 0; | |
25995 | } | |
25996 | _ACEOF | |
25997 | rm -f conftest.$ac_objext | |
3185942a JA |
25998 | if { (ac_try="$ac_compile" |
25999 | case "(($ac_try" in | |
26000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26001 | *) ac_try_echo=$ac_try;; | |
26002 | esac | |
26003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26004 | $as_echo "$ac_try_echo") >&5 | |
26005 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26006 | ac_status=$? |
0628567a JA |
26007 | grep -v '^ *+' conftest.er1 >conftest.err |
26008 | rm -f conftest.er1 | |
26009 | cat conftest.err >&5 | |
3185942a JA |
26010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26011 | (exit $ac_status); } && { | |
26012 | test -z "$ac_c_werror_flag" || | |
26013 | test ! -s conftest.err | |
26014 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
26015 | bash_cv_type_rlimit=rlim_t |
26016 | else | |
3185942a | 26017 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26018 | sed 's/^/| /' conftest.$ac_ext >&5 |
26019 | ||
f73dda09 | 26020 | |
ccc6cda3 | 26021 | if test "$cross_compiling" = yes; then |
3185942a JA |
26022 | { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 |
26023 | $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} | |
cce855bc | 26024 | bash_cv_type_rlimit=long |
ccc6cda3 | 26025 | else |
f73dda09 | 26026 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26027 | /* confdefs.h. */ |
26028 | _ACEOF | |
26029 | cat confdefs.h >>conftest.$ac_ext | |
26030 | cat >>conftest.$ac_ext <<_ACEOF | |
26031 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26032 | |
26033 | #include <sys/types.h> | |
26034 | #include <sys/time.h> | |
26035 | #include <sys/resource.h> | |
26036 | main() | |
26037 | { | |
26038 | #ifdef HAVE_QUAD_T | |
26039 | struct rlimit rl; | |
26040 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) | |
26041 | exit(0); | |
26042 | #endif | |
26043 | exit(1); | |
26044 | } | |
f73dda09 JA |
26045 | _ACEOF |
26046 | rm -f conftest$ac_exeext | |
3185942a JA |
26047 | if { (ac_try="$ac_link" |
26048 | case "(($ac_try" in | |
26049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26050 | *) ac_try_echo=$ac_try;; | |
26051 | esac | |
26052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26053 | $as_echo "$ac_try_echo") >&5 | |
26054 | (eval "$ac_link") 2>&5 | |
f73dda09 | 26055 | ac_status=$? |
3185942a | 26056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
26058 | { (case "(($ac_try" in |
26059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26060 | *) ac_try_echo=$ac_try;; | |
26061 | esac | |
26062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26063 | $as_echo "$ac_try_echo") >&5 | |
26064 | (eval "$ac_try") 2>&5 | |
f73dda09 | 26065 | ac_status=$? |
3185942a | 26066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26067 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26068 | bash_cv_type_rlimit=quad_t |
26069 | else | |
3185942a JA |
26070 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26071 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
26072 | sed 's/^/| /' conftest.$ac_ext >&5 |
26073 | ||
b80f6443 | 26074 | ( exit $ac_status ) |
f73dda09 | 26075 | bash_cv_type_rlimit=long |
ccc6cda3 | 26076 | fi |
3185942a JA |
26077 | rm -rf conftest.dSYM |
26078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 26079 | fi |
3185942a JA |
26080 | |
26081 | ||
ccc6cda3 | 26082 | fi |
3185942a JA |
26083 | |
26084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
26085 | |
26086 | fi | |
26087 | ||
3185942a JA |
26088 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5 |
26089 | $as_echo "$bash_cv_type_rlimit" >&6; } | |
ccc6cda3 | 26090 | if test $bash_cv_type_rlimit = quad_t; then |
b80f6443 | 26091 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26092 | #define RLIMTYPE quad_t |
b80f6443 | 26093 | _ACEOF |
ccc6cda3 JA |
26094 | |
26095 | elif test $bash_cv_type_rlimit = rlim_t; then | |
b80f6443 | 26096 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26097 | #define RLIMTYPE rlim_t |
b80f6443 | 26098 | _ACEOF |
ccc6cda3 JA |
26099 | |
26100 | fi | |
26101 | ||
b80f6443 JA |
26102 | |
26103 | ||
3185942a JA |
26104 | { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5 |
26105 | $as_echo_n "checking for struct termios.c_line... " >&6; } | |
f73dda09 | 26106 | if test "${ac_cv_member_struct_termios_c_line+set}" = set; then |
3185942a | 26107 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26108 | else |
f73dda09 | 26109 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26110 | /* confdefs.h. */ |
26111 | _ACEOF | |
26112 | cat confdefs.h >>conftest.$ac_ext | |
26113 | cat >>conftest.$ac_ext <<_ACEOF | |
26114 | /* end confdefs.h. */ | |
f73dda09 | 26115 | |
ccc6cda3 JA |
26116 | #include <sys/types.h> |
26117 | #include <termios.h> | |
f73dda09 | 26118 | |
b80f6443 | 26119 | |
f73dda09 JA |
26120 | int |
26121 | main () | |
26122 | { | |
26123 | static struct termios ac_aggr; | |
26124 | if (ac_aggr.c_line) | |
26125 | return 0; | |
26126 | ; | |
26127 | return 0; | |
26128 | } | |
26129 | _ACEOF | |
26130 | rm -f conftest.$ac_objext | |
3185942a JA |
26131 | if { (ac_try="$ac_compile" |
26132 | case "(($ac_try" in | |
26133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26134 | *) ac_try_echo=$ac_try;; | |
26135 | esac | |
26136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26137 | $as_echo "$ac_try_echo") >&5 | |
26138 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
26139 | ac_status=$? |
26140 | grep -v '^ *+' conftest.er1 >conftest.err | |
26141 | rm -f conftest.er1 | |
26142 | cat conftest.err >&5 | |
3185942a JA |
26143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26144 | (exit $ac_status); } && { | |
26145 | test -z "$ac_c_werror_flag" || | |
26146 | test ! -s conftest.err | |
26147 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
26148 | ac_cv_member_struct_termios_c_line=yes |
26149 | else | |
3185942a | 26150 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26151 | sed 's/^/| /' conftest.$ac_ext >&5 |
26152 | ||
3185942a | 26153 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26154 | /* confdefs.h. */ |
26155 | _ACEOF | |
26156 | cat confdefs.h >>conftest.$ac_ext | |
26157 | cat >>conftest.$ac_ext <<_ACEOF | |
26158 | /* end confdefs.h. */ | |
26159 | ||
26160 | #include <sys/types.h> | |
26161 | #include <termios.h> | |
26162 | ||
26163 | ||
26164 | int | |
26165 | main () | |
26166 | { | |
26167 | static struct termios ac_aggr; | |
26168 | if (sizeof ac_aggr.c_line) | |
26169 | return 0; | |
26170 | ; | |
26171 | return 0; | |
26172 | } | |
26173 | _ACEOF | |
26174 | rm -f conftest.$ac_objext | |
3185942a JA |
26175 | if { (ac_try="$ac_compile" |
26176 | case "(($ac_try" in | |
26177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26178 | *) ac_try_echo=$ac_try;; | |
26179 | esac | |
26180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26181 | $as_echo "$ac_try_echo") >&5 | |
26182 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 26183 | ac_status=$? |
0628567a JA |
26184 | grep -v '^ *+' conftest.er1 >conftest.err |
26185 | rm -f conftest.er1 | |
26186 | cat conftest.err >&5 | |
3185942a JA |
26187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26188 | (exit $ac_status); } && { | |
26189 | test -z "$ac_c_werror_flag" || | |
26190 | test ! -s conftest.err | |
26191 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
26192 | ac_cv_member_struct_termios_c_line=yes |
26193 | else | |
3185942a | 26194 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26195 | sed 's/^/| /' conftest.$ac_ext >&5 |
26196 | ||
3185942a | 26197 | ac_cv_member_struct_termios_c_line=no |
f73dda09 | 26198 | fi |
3185942a JA |
26199 | |
26200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 26201 | fi |
3185942a JA |
26202 | |
26203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 26204 | fi |
3185942a JA |
26205 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5 |
26206 | $as_echo "$ac_cv_member_struct_termios_c_line" >&6; } | |
26207 | if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then | |
b80f6443 | 26208 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26209 | #define TERMIOS_LDISC 1 |
b80f6443 | 26210 | _ACEOF |
ccc6cda3 JA |
26211 | |
26212 | fi | |
26213 | ||
b80f6443 JA |
26214 | |
26215 | ||
3185942a JA |
26216 | { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5 |
26217 | $as_echo_n "checking for struct termio.c_line... " >&6; } | |
f73dda09 | 26218 | if test "${ac_cv_member_struct_termio_c_line+set}" = set; then |
3185942a | 26219 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26220 | else |
f73dda09 | 26221 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26222 | /* confdefs.h. */ |
26223 | _ACEOF | |
26224 | cat confdefs.h >>conftest.$ac_ext | |
26225 | cat >>conftest.$ac_ext <<_ACEOF | |
26226 | /* end confdefs.h. */ | |
f73dda09 | 26227 | |
ccc6cda3 JA |
26228 | #include <sys/types.h> |
26229 | #include <termio.h> | |
f73dda09 | 26230 | |
b80f6443 | 26231 | |
f73dda09 JA |
26232 | int |
26233 | main () | |
26234 | { | |
26235 | static struct termio ac_aggr; | |
26236 | if (ac_aggr.c_line) | |
26237 | return 0; | |
26238 | ; | |
26239 | return 0; | |
26240 | } | |
26241 | _ACEOF | |
26242 | rm -f conftest.$ac_objext | |
3185942a JA |
26243 | if { (ac_try="$ac_compile" |
26244 | case "(($ac_try" in | |
26245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26246 | *) ac_try_echo=$ac_try;; | |
26247 | esac | |
26248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26249 | $as_echo "$ac_try_echo") >&5 | |
26250 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
26251 | ac_status=$? |
26252 | grep -v '^ *+' conftest.er1 >conftest.err | |
26253 | rm -f conftest.er1 | |
26254 | cat conftest.err >&5 | |
3185942a JA |
26255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26256 | (exit $ac_status); } && { | |
26257 | test -z "$ac_c_werror_flag" || | |
26258 | test ! -s conftest.err | |
26259 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
26260 | ac_cv_member_struct_termio_c_line=yes |
26261 | else | |
3185942a | 26262 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26263 | sed 's/^/| /' conftest.$ac_ext >&5 |
26264 | ||
3185942a | 26265 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26266 | /* confdefs.h. */ |
26267 | _ACEOF | |
26268 | cat confdefs.h >>conftest.$ac_ext | |
26269 | cat >>conftest.$ac_ext <<_ACEOF | |
26270 | /* end confdefs.h. */ | |
26271 | ||
26272 | #include <sys/types.h> | |
26273 | #include <termio.h> | |
26274 | ||
26275 | ||
26276 | int | |
26277 | main () | |
26278 | { | |
26279 | static struct termio ac_aggr; | |
26280 | if (sizeof ac_aggr.c_line) | |
26281 | return 0; | |
26282 | ; | |
26283 | return 0; | |
26284 | } | |
26285 | _ACEOF | |
26286 | rm -f conftest.$ac_objext | |
3185942a JA |
26287 | if { (ac_try="$ac_compile" |
26288 | case "(($ac_try" in | |
26289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26290 | *) ac_try_echo=$ac_try;; | |
26291 | esac | |
26292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26293 | $as_echo "$ac_try_echo") >&5 | |
26294 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 26295 | ac_status=$? |
0628567a JA |
26296 | grep -v '^ *+' conftest.er1 >conftest.err |
26297 | rm -f conftest.er1 | |
26298 | cat conftest.err >&5 | |
3185942a JA |
26299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26300 | (exit $ac_status); } && { | |
26301 | test -z "$ac_c_werror_flag" || | |
26302 | test ! -s conftest.err | |
26303 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
26304 | ac_cv_member_struct_termio_c_line=yes |
26305 | else | |
3185942a | 26306 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26307 | sed 's/^/| /' conftest.$ac_ext >&5 |
26308 | ||
3185942a | 26309 | ac_cv_member_struct_termio_c_line=no |
f73dda09 | 26310 | fi |
3185942a JA |
26311 | |
26312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 26313 | fi |
3185942a JA |
26314 | |
26315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 26316 | fi |
3185942a JA |
26317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5 |
26318 | $as_echo "$ac_cv_member_struct_termio_c_line" >&6; } | |
26319 | if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then | |
b80f6443 | 26320 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26321 | #define TERMIO_LDISC 1 |
b80f6443 | 26322 | _ACEOF |
ccc6cda3 JA |
26323 | |
26324 | fi | |
26325 | ||
b80f6443 JA |
26326 | |
26327 | ||
3185942a JA |
26328 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 |
26329 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
f73dda09 | 26330 | if test "${bash_cv_dirent_has_dino+set}" = set; then |
3185942a | 26331 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26332 | else |
f73dda09 | 26333 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26334 | /* confdefs.h. */ |
26335 | _ACEOF | |
26336 | cat confdefs.h >>conftest.$ac_ext | |
26337 | cat >>conftest.$ac_ext <<_ACEOF | |
26338 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26339 | |
26340 | #include <stdio.h> | |
26341 | #include <sys/types.h> | |
26342 | #ifdef HAVE_UNISTD_H | |
26343 | # include <unistd.h> | |
26344 | #endif /* HAVE_UNISTD_H */ | |
26345 | #if defined(HAVE_DIRENT_H) | |
26346 | # include <dirent.h> | |
26347 | #else | |
26348 | # define dirent direct | |
26349 | # ifdef HAVE_SYS_NDIR_H | |
26350 | # include <sys/ndir.h> | |
26351 | # endif /* SYSNDIR */ | |
26352 | # ifdef HAVE_SYS_DIR_H | |
26353 | # include <sys/dir.h> | |
26354 | # endif /* SYSDIR */ | |
26355 | # ifdef HAVE_NDIR_H | |
26356 | # include <ndir.h> | |
26357 | # endif | |
26358 | #endif /* HAVE_DIRENT_H */ | |
26359 | ||
f73dda09 JA |
26360 | int |
26361 | main () | |
26362 | { | |
ccc6cda3 JA |
26363 | |
26364 | struct dirent d; int z; z = d.d_ino; | |
26365 | ||
f73dda09 JA |
26366 | ; |
26367 | return 0; | |
26368 | } | |
26369 | _ACEOF | |
26370 | rm -f conftest.$ac_objext | |
3185942a JA |
26371 | if { (ac_try="$ac_compile" |
26372 | case "(($ac_try" in | |
26373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26374 | *) ac_try_echo=$ac_try;; | |
26375 | esac | |
26376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26377 | $as_echo "$ac_try_echo") >&5 | |
26378 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26379 | ac_status=$? |
0628567a JA |
26380 | grep -v '^ *+' conftest.er1 >conftest.err |
26381 | rm -f conftest.er1 | |
26382 | cat conftest.err >&5 | |
3185942a JA |
26383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26384 | (exit $ac_status); } && { | |
26385 | test -z "$ac_c_werror_flag" || | |
26386 | test ! -s conftest.err | |
26387 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
26388 | bash_cv_dirent_has_dino=yes |
26389 | else | |
3185942a | 26390 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26391 | sed 's/^/| /' conftest.$ac_ext >&5 |
26392 | ||
3185942a | 26393 | bash_cv_dirent_has_dino=no |
ccc6cda3 | 26394 | fi |
3185942a JA |
26395 | |
26396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
26397 | fi |
26398 | ||
3185942a JA |
26399 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
26400 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
ccc6cda3 | 26401 | if test $bash_cv_dirent_has_dino = yes; then |
b80f6443 JA |
26402 | cat >>confdefs.h <<\_ACEOF |
26403 | #define HAVE_STRUCT_DIRENT_D_INO 1 | |
26404 | _ACEOF | |
ccc6cda3 JA |
26405 | |
26406 | fi | |
26407 | ||
b80f6443 | 26408 | |
3185942a JA |
26409 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 |
26410 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
f73dda09 | 26411 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then |
3185942a | 26412 | $as_echo_n "(cached) " >&6 |
d166f048 | 26413 | else |
f73dda09 | 26414 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26415 | /* confdefs.h. */ |
26416 | _ACEOF | |
26417 | cat confdefs.h >>conftest.$ac_ext | |
26418 | cat >>conftest.$ac_ext <<_ACEOF | |
26419 | /* end confdefs.h. */ | |
d166f048 JA |
26420 | |
26421 | #include <stdio.h> | |
26422 | #include <sys/types.h> | |
26423 | #ifdef HAVE_UNISTD_H | |
26424 | # include <unistd.h> | |
26425 | #endif /* HAVE_UNISTD_H */ | |
26426 | #if defined(HAVE_DIRENT_H) | |
26427 | # include <dirent.h> | |
26428 | #else | |
26429 | # define dirent direct | |
26430 | # ifdef HAVE_SYS_NDIR_H | |
26431 | # include <sys/ndir.h> | |
26432 | # endif /* SYSNDIR */ | |
26433 | # ifdef HAVE_SYS_DIR_H | |
26434 | # include <sys/dir.h> | |
26435 | # endif /* SYSDIR */ | |
26436 | # ifdef HAVE_NDIR_H | |
26437 | # include <ndir.h> | |
26438 | # endif | |
26439 | #endif /* HAVE_DIRENT_H */ | |
26440 | ||
f73dda09 JA |
26441 | int |
26442 | main () | |
26443 | { | |
d166f048 JA |
26444 | |
26445 | struct dirent d; int z; z = d.d_fileno; | |
26446 | ||
f73dda09 JA |
26447 | ; |
26448 | return 0; | |
26449 | } | |
26450 | _ACEOF | |
26451 | rm -f conftest.$ac_objext | |
3185942a JA |
26452 | if { (ac_try="$ac_compile" |
26453 | case "(($ac_try" in | |
26454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26455 | *) ac_try_echo=$ac_try;; | |
26456 | esac | |
26457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26458 | $as_echo "$ac_try_echo") >&5 | |
26459 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26460 | ac_status=$? |
0628567a JA |
26461 | grep -v '^ *+' conftest.er1 >conftest.err |
26462 | rm -f conftest.er1 | |
26463 | cat conftest.err >&5 | |
3185942a JA |
26464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26465 | (exit $ac_status); } && { | |
26466 | test -z "$ac_c_werror_flag" || | |
26467 | test ! -s conftest.err | |
26468 | } && test -s conftest.$ac_objext; then | |
d166f048 JA |
26469 | bash_cv_dirent_has_d_fileno=yes |
26470 | else | |
3185942a | 26471 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26472 | sed 's/^/| /' conftest.$ac_ext >&5 |
26473 | ||
3185942a | 26474 | bash_cv_dirent_has_d_fileno=no |
d166f048 | 26475 | fi |
3185942a JA |
26476 | |
26477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
26478 | fi |
26479 | ||
3185942a JA |
26480 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
26481 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
d166f048 | 26482 | if test $bash_cv_dirent_has_d_fileno = yes; then |
b80f6443 JA |
26483 | cat >>confdefs.h <<\_ACEOF |
26484 | #define HAVE_STRUCT_DIRENT_D_FILENO 1 | |
26485 | _ACEOF | |
26486 | ||
26487 | fi | |
26488 | ||
26489 | ||
3185942a JA |
26490 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 |
26491 | $as_echo_n "checking for struct dirent.d_namlen... " >&6; } | |
b80f6443 | 26492 | if test "${bash_cv_dirent_has_d_namlen+set}" = set; then |
3185942a | 26493 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
26494 | else |
26495 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26496 | /* confdefs.h. */ |
26497 | _ACEOF | |
26498 | cat confdefs.h >>conftest.$ac_ext | |
26499 | cat >>conftest.$ac_ext <<_ACEOF | |
26500 | /* end confdefs.h. */ | |
b80f6443 JA |
26501 | |
26502 | #include <stdio.h> | |
26503 | #include <sys/types.h> | |
26504 | #ifdef HAVE_UNISTD_H | |
26505 | # include <unistd.h> | |
26506 | #endif /* HAVE_UNISTD_H */ | |
26507 | #if defined(HAVE_DIRENT_H) | |
26508 | # include <dirent.h> | |
26509 | #else | |
26510 | # define dirent direct | |
26511 | # ifdef HAVE_SYS_NDIR_H | |
26512 | # include <sys/ndir.h> | |
26513 | # endif /* SYSNDIR */ | |
26514 | # ifdef HAVE_SYS_DIR_H | |
26515 | # include <sys/dir.h> | |
26516 | # endif /* SYSDIR */ | |
26517 | # ifdef HAVE_NDIR_H | |
26518 | # include <ndir.h> | |
26519 | # endif | |
26520 | #endif /* HAVE_DIRENT_H */ | |
26521 | ||
26522 | int | |
26523 | main () | |
26524 | { | |
26525 | ||
26526 | struct dirent d; int z; z = d.d_namlen; | |
26527 | ||
26528 | ; | |
26529 | return 0; | |
26530 | } | |
26531 | _ACEOF | |
26532 | rm -f conftest.$ac_objext | |
3185942a JA |
26533 | if { (ac_try="$ac_compile" |
26534 | case "(($ac_try" in | |
26535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26536 | *) ac_try_echo=$ac_try;; | |
26537 | esac | |
26538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26539 | $as_echo "$ac_try_echo") >&5 | |
26540 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 26541 | ac_status=$? |
0628567a JA |
26542 | grep -v '^ *+' conftest.er1 >conftest.err |
26543 | rm -f conftest.er1 | |
26544 | cat conftest.err >&5 | |
3185942a JA |
26545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26546 | (exit $ac_status); } && { | |
26547 | test -z "$ac_c_werror_flag" || | |
26548 | test ! -s conftest.err | |
26549 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
26550 | bash_cv_dirent_has_d_namlen=yes |
26551 | else | |
3185942a | 26552 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26553 | sed 's/^/| /' conftest.$ac_ext >&5 |
26554 | ||
3185942a | 26555 | bash_cv_dirent_has_d_namlen=no |
d166f048 | 26556 | fi |
3185942a JA |
26557 | |
26558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
26559 | fi |
26560 | ||
3185942a JA |
26561 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5 |
26562 | $as_echo "$bash_cv_dirent_has_d_namlen" >&6; } | |
b80f6443 JA |
26563 | if test $bash_cv_dirent_has_d_namlen = yes; then |
26564 | cat >>confdefs.h <<\_ACEOF | |
26565 | #define HAVE_STRUCT_DIRENT_D_NAMLEN 1 | |
26566 | _ACEOF | |
d166f048 | 26567 | |
b80f6443 JA |
26568 | fi |
26569 | ||
3185942a JA |
26570 | { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
26571 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
f73dda09 | 26572 | if test "${bash_cv_struct_winsize_header+set}" = set; then |
3185942a | 26573 | $as_echo_n "(cached) " >&6 |
d166f048 | 26574 | else |
f73dda09 | 26575 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26576 | /* confdefs.h. */ |
26577 | _ACEOF | |
26578 | cat confdefs.h >>conftest.$ac_ext | |
26579 | cat >>conftest.$ac_ext <<_ACEOF | |
26580 | /* end confdefs.h. */ | |
d166f048 JA |
26581 | #include <sys/types.h> |
26582 | #include <sys/ioctl.h> | |
f73dda09 JA |
26583 | int |
26584 | main () | |
26585 | { | |
d166f048 | 26586 | struct winsize x; |
f73dda09 JA |
26587 | ; |
26588 | return 0; | |
26589 | } | |
26590 | _ACEOF | |
26591 | rm -f conftest.$ac_objext | |
3185942a JA |
26592 | if { (ac_try="$ac_compile" |
26593 | case "(($ac_try" in | |
26594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26595 | *) ac_try_echo=$ac_try;; | |
26596 | esac | |
26597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26598 | $as_echo "$ac_try_echo") >&5 | |
26599 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26600 | ac_status=$? |
0628567a JA |
26601 | grep -v '^ *+' conftest.er1 >conftest.err |
26602 | rm -f conftest.er1 | |
26603 | cat conftest.err >&5 | |
3185942a JA |
26604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26605 | (exit $ac_status); } && { | |
26606 | test -z "$ac_c_werror_flag" || | |
26607 | test ! -s conftest.err | |
26608 | } && test -s conftest.$ac_objext; then | |
cce855bc JA |
26609 | bash_cv_struct_winsize_header=ioctl_h |
26610 | else | |
3185942a | 26611 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26612 | sed 's/^/| /' conftest.$ac_ext >&5 |
26613 | ||
3185942a | 26614 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26615 | /* confdefs.h. */ |
26616 | _ACEOF | |
26617 | cat confdefs.h >>conftest.$ac_ext | |
26618 | cat >>conftest.$ac_ext <<_ACEOF | |
26619 | /* end confdefs.h. */ | |
cce855bc JA |
26620 | #include <sys/types.h> |
26621 | #include <termios.h> | |
f73dda09 JA |
26622 | int |
26623 | main () | |
26624 | { | |
cce855bc | 26625 | struct winsize x; |
f73dda09 JA |
26626 | ; |
26627 | return 0; | |
26628 | } | |
26629 | _ACEOF | |
26630 | rm -f conftest.$ac_objext | |
3185942a JA |
26631 | if { (ac_try="$ac_compile" |
26632 | case "(($ac_try" in | |
26633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26634 | *) ac_try_echo=$ac_try;; | |
26635 | esac | |
26636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26637 | $as_echo "$ac_try_echo") >&5 | |
26638 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26639 | ac_status=$? |
0628567a JA |
26640 | grep -v '^ *+' conftest.er1 >conftest.err |
26641 | rm -f conftest.er1 | |
26642 | cat conftest.err >&5 | |
3185942a JA |
26643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26644 | (exit $ac_status); } && { | |
26645 | test -z "$ac_c_werror_flag" || | |
26646 | test ! -s conftest.err | |
26647 | } && test -s conftest.$ac_objext; then | |
cce855bc | 26648 | bash_cv_struct_winsize_header=termios_h |
d166f048 | 26649 | else |
3185942a | 26650 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26651 | sed 's/^/| /' conftest.$ac_ext >&5 |
26652 | ||
3185942a | 26653 | bash_cv_struct_winsize_header=other |
cce855bc | 26654 | fi |
3185942a JA |
26655 | |
26656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 26657 | |
d166f048 | 26658 | fi |
3185942a JA |
26659 | |
26660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
26661 | fi |
26662 | ||
cce855bc | 26663 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
3185942a JA |
26664 | { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
26665 | $as_echo "sys/ioctl.h" >&6; } | |
b80f6443 | 26666 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26667 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
b80f6443 | 26668 | _ACEOF |
d166f048 | 26669 | |
cce855bc | 26670 | elif test $bash_cv_struct_winsize_header = termios_h; then |
3185942a JA |
26671 | { $as_echo "$as_me:$LINENO: result: termios.h" >&5 |
26672 | $as_echo "termios.h" >&6; } | |
b80f6443 | 26673 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 26674 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
b80f6443 | 26675 | _ACEOF |
cce855bc JA |
26676 | |
26677 | else | |
3185942a JA |
26678 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
26679 | $as_echo "not found" >&6; } | |
d166f048 JA |
26680 | fi |
26681 | ||
3185942a JA |
26682 | { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5 |
26683 | $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } | |
f73dda09 | 26684 | if test "${bash_cv_struct_timeval+set}" = set; then |
3185942a | 26685 | $as_echo_n "(cached) " >&6 |
bb70624e | 26686 | else |
f73dda09 JA |
26687 | |
26688 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26689 | /* confdefs.h. */ |
26690 | _ACEOF | |
26691 | cat confdefs.h >>conftest.$ac_ext | |
26692 | cat >>conftest.$ac_ext <<_ACEOF | |
26693 | /* end confdefs.h. */ | |
bb70624e | 26694 | #include <sys/time.h> |
f73dda09 JA |
26695 | |
26696 | _ACEOF | |
bb70624e | 26697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 26698 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
26699 | bash_cv_struct_timeval=yes |
26700 | else | |
f73dda09 | 26701 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26702 | /* confdefs.h. */ |
26703 | _ACEOF | |
26704 | cat confdefs.h >>conftest.$ac_ext | |
26705 | cat >>conftest.$ac_ext <<_ACEOF | |
26706 | /* end confdefs.h. */ | |
bb70624e | 26707 | #include <time.h> |
f73dda09 JA |
26708 | |
26709 | _ACEOF | |
bb70624e | 26710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 26711 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
26712 | bash_cv_struct_timeval=yes |
26713 | else | |
bb70624e JA |
26714 | bash_cv_struct_timeval=no |
26715 | fi | |
26716 | rm -f conftest* | |
26717 | ||
26718 | fi | |
26719 | rm -f conftest* | |
26720 | ||
b80f6443 | 26721 | |
bb70624e JA |
26722 | fi |
26723 | ||
3185942a JA |
26724 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5 |
26725 | $as_echo "$bash_cv_struct_timeval" >&6; } | |
bb70624e | 26726 | if test $bash_cv_struct_timeval = yes; then |
b80f6443 | 26727 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 26728 | #define HAVE_TIMEVAL 1 |
b80f6443 | 26729 | _ACEOF |
bb70624e JA |
26730 | |
26731 | fi | |
26732 | ||
3185942a JA |
26733 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
26734 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } | |
f73dda09 | 26735 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
3185942a | 26736 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
26737 | else |
26738 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26739 | /* confdefs.h. */ |
26740 | _ACEOF | |
26741 | cat confdefs.h >>conftest.$ac_ext | |
26742 | cat >>conftest.$ac_ext <<_ACEOF | |
26743 | /* end confdefs.h. */ | |
f73dda09 JA |
26744 | $ac_includes_default |
26745 | int | |
26746 | main () | |
26747 | { | |
26748 | static struct stat ac_aggr; | |
26749 | if (ac_aggr.st_blocks) | |
26750 | return 0; | |
26751 | ; | |
26752 | return 0; | |
26753 | } | |
26754 | _ACEOF | |
26755 | rm -f conftest.$ac_objext | |
3185942a JA |
26756 | if { (ac_try="$ac_compile" |
26757 | case "(($ac_try" in | |
26758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26759 | *) ac_try_echo=$ac_try;; | |
26760 | esac | |
26761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26762 | $as_echo "$ac_try_echo") >&5 | |
26763 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
26764 | ac_status=$? |
26765 | grep -v '^ *+' conftest.er1 >conftest.err | |
26766 | rm -f conftest.er1 | |
26767 | cat conftest.err >&5 | |
3185942a JA |
26768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26769 | (exit $ac_status); } && { | |
26770 | test -z "$ac_c_werror_flag" || | |
26771 | test ! -s conftest.err | |
26772 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
26773 | ac_cv_member_struct_stat_st_blocks=yes |
26774 | else | |
3185942a | 26775 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26776 | sed 's/^/| /' conftest.$ac_ext >&5 |
26777 | ||
3185942a | 26778 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26779 | /* confdefs.h. */ |
26780 | _ACEOF | |
26781 | cat confdefs.h >>conftest.$ac_ext | |
26782 | cat >>conftest.$ac_ext <<_ACEOF | |
26783 | /* end confdefs.h. */ | |
26784 | $ac_includes_default | |
26785 | int | |
26786 | main () | |
26787 | { | |
26788 | static struct stat ac_aggr; | |
26789 | if (sizeof ac_aggr.st_blocks) | |
26790 | return 0; | |
26791 | ; | |
26792 | return 0; | |
26793 | } | |
26794 | _ACEOF | |
26795 | rm -f conftest.$ac_objext | |
3185942a JA |
26796 | if { (ac_try="$ac_compile" |
26797 | case "(($ac_try" in | |
26798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26799 | *) ac_try_echo=$ac_try;; | |
26800 | esac | |
26801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26802 | $as_echo "$ac_try_echo") >&5 | |
26803 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 26804 | ac_status=$? |
0628567a JA |
26805 | grep -v '^ *+' conftest.er1 >conftest.err |
26806 | rm -f conftest.er1 | |
26807 | cat conftest.err >&5 | |
3185942a JA |
26808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26809 | (exit $ac_status); } && { | |
26810 | test -z "$ac_c_werror_flag" || | |
26811 | test ! -s conftest.err | |
26812 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
26813 | ac_cv_member_struct_stat_st_blocks=yes |
26814 | else | |
3185942a | 26815 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26816 | sed 's/^/| /' conftest.$ac_ext >&5 |
26817 | ||
3185942a | 26818 | ac_cv_member_struct_stat_st_blocks=no |
f73dda09 | 26819 | fi |
3185942a JA |
26820 | |
26821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 26822 | fi |
3185942a JA |
26823 | |
26824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 26825 | fi |
3185942a JA |
26826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
26827 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } | |
26828 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then | |
f73dda09 | 26829 | |
b80f6443 | 26830 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 26831 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
b80f6443 JA |
26832 | _ACEOF |
26833 | ||
f73dda09 JA |
26834 | |
26835 | fi | |
d166f048 | 26836 | |
3185942a JA |
26837 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
26838 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
7117c2d2 | 26839 | if test "${ac_cv_struct_tm+set}" = set; then |
3185942a | 26840 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
26841 | else |
26842 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26843 | /* confdefs.h. */ |
26844 | _ACEOF | |
26845 | cat confdefs.h >>conftest.$ac_ext | |
26846 | cat >>conftest.$ac_ext <<_ACEOF | |
26847 | /* end confdefs.h. */ | |
7117c2d2 JA |
26848 | #include <sys/types.h> |
26849 | #include <time.h> | |
26850 | ||
26851 | int | |
26852 | main () | |
26853 | { | |
3185942a JA |
26854 | struct tm tm; |
26855 | int *p = &tm.tm_sec; | |
26856 | return !p; | |
7117c2d2 JA |
26857 | ; |
26858 | return 0; | |
26859 | } | |
26860 | _ACEOF | |
26861 | rm -f conftest.$ac_objext | |
3185942a JA |
26862 | if { (ac_try="$ac_compile" |
26863 | case "(($ac_try" in | |
26864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26865 | *) ac_try_echo=$ac_try;; | |
26866 | esac | |
26867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26868 | $as_echo "$ac_try_echo") >&5 | |
26869 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 26870 | ac_status=$? |
0628567a JA |
26871 | grep -v '^ *+' conftest.er1 >conftest.err |
26872 | rm -f conftest.er1 | |
26873 | cat conftest.err >&5 | |
3185942a JA |
26874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26875 | (exit $ac_status); } && { | |
26876 | test -z "$ac_c_werror_flag" || | |
26877 | test ! -s conftest.err | |
26878 | } && test -s conftest.$ac_objext; then | |
7117c2d2 JA |
26879 | ac_cv_struct_tm=time.h |
26880 | else | |
3185942a | 26881 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26882 | sed 's/^/| /' conftest.$ac_ext >&5 |
26883 | ||
3185942a | 26884 | ac_cv_struct_tm=sys/time.h |
7117c2d2 | 26885 | fi |
3185942a JA |
26886 | |
26887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 26888 | fi |
3185942a JA |
26889 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
26890 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7117c2d2 JA |
26891 | if test $ac_cv_struct_tm = sys/time.h; then |
26892 | ||
b80f6443 | 26893 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 26894 | #define TM_IN_SYS_TIME 1 |
b80f6443 | 26895 | _ACEOF |
7117c2d2 JA |
26896 | |
26897 | fi | |
26898 | ||
3185942a JA |
26899 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
26900 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
7117c2d2 | 26901 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
3185942a | 26902 | $as_echo_n "(cached) " >&6 |
7117c2d2 | 26903 | else |
b80f6443 | 26904 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26905 | /* confdefs.h. */ |
26906 | _ACEOF | |
26907 | cat confdefs.h >>conftest.$ac_ext | |
26908 | cat >>conftest.$ac_ext <<_ACEOF | |
26909 | /* end confdefs.h. */ | |
b80f6443 JA |
26910 | #include <sys/types.h> |
26911 | #include <$ac_cv_struct_tm> | |
26912 | ||
26913 | ||
26914 | int | |
26915 | main () | |
26916 | { | |
26917 | static struct tm ac_aggr; | |
26918 | if (ac_aggr.tm_zone) | |
26919 | return 0; | |
26920 | ; | |
26921 | return 0; | |
26922 | } | |
26923 | _ACEOF | |
26924 | rm -f conftest.$ac_objext | |
3185942a JA |
26925 | if { (ac_try="$ac_compile" |
26926 | case "(($ac_try" in | |
26927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26928 | *) ac_try_echo=$ac_try;; | |
26929 | esac | |
26930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26931 | $as_echo "$ac_try_echo") >&5 | |
26932 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
26933 | ac_status=$? |
26934 | grep -v '^ *+' conftest.er1 >conftest.err | |
26935 | rm -f conftest.er1 | |
26936 | cat conftest.err >&5 | |
3185942a JA |
26937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26938 | (exit $ac_status); } && { | |
26939 | test -z "$ac_c_werror_flag" || | |
26940 | test ! -s conftest.err | |
26941 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
26942 | ac_cv_member_struct_tm_tm_zone=yes |
26943 | else | |
3185942a | 26944 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26945 | sed 's/^/| /' conftest.$ac_ext >&5 |
26946 | ||
3185942a | 26947 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26948 | /* confdefs.h. */ |
26949 | _ACEOF | |
26950 | cat confdefs.h >>conftest.$ac_ext | |
26951 | cat >>conftest.$ac_ext <<_ACEOF | |
26952 | /* end confdefs.h. */ | |
26953 | #include <sys/types.h> | |
26954 | #include <$ac_cv_struct_tm> | |
26955 | ||
26956 | ||
26957 | int | |
26958 | main () | |
26959 | { | |
26960 | static struct tm ac_aggr; | |
26961 | if (sizeof ac_aggr.tm_zone) | |
26962 | return 0; | |
26963 | ; | |
26964 | return 0; | |
26965 | } | |
26966 | _ACEOF | |
26967 | rm -f conftest.$ac_objext | |
3185942a JA |
26968 | if { (ac_try="$ac_compile" |
26969 | case "(($ac_try" in | |
26970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26971 | *) ac_try_echo=$ac_try;; | |
26972 | esac | |
26973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26974 | $as_echo "$ac_try_echo") >&5 | |
26975 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 26976 | ac_status=$? |
0628567a JA |
26977 | grep -v '^ *+' conftest.er1 >conftest.err |
26978 | rm -f conftest.er1 | |
26979 | cat conftest.err >&5 | |
3185942a JA |
26980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26981 | (exit $ac_status); } && { | |
26982 | test -z "$ac_c_werror_flag" || | |
26983 | test ! -s conftest.err | |
26984 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
26985 | ac_cv_member_struct_tm_tm_zone=yes |
26986 | else | |
3185942a | 26987 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26988 | sed 's/^/| /' conftest.$ac_ext >&5 |
26989 | ||
3185942a | 26990 | ac_cv_member_struct_tm_tm_zone=no |
7117c2d2 | 26991 | fi |
3185942a JA |
26992 | |
26993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 26994 | fi |
3185942a JA |
26995 | |
26996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 26997 | fi |
3185942a JA |
26998 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
26999 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
27000 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then | |
7117c2d2 | 27001 | |
b80f6443 | 27002 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 27003 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
b80f6443 JA |
27004 | _ACEOF |
27005 | ||
7117c2d2 JA |
27006 | |
27007 | fi | |
27008 | ||
27009 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
27010 | ||
b80f6443 | 27011 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 27012 | #define HAVE_TM_ZONE 1 |
b80f6443 | 27013 | _ACEOF |
7117c2d2 JA |
27014 | |
27015 | else | |
3185942a JA |
27016 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
27017 | $as_echo_n "checking whether tzname is declared... " >&6; } | |
27018 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
27019 | $as_echo_n "(cached) " >&6 | |
27020 | else | |
27021 | cat >conftest.$ac_ext <<_ACEOF | |
27022 | /* confdefs.h. */ | |
27023 | _ACEOF | |
27024 | cat confdefs.h >>conftest.$ac_ext | |
27025 | cat >>conftest.$ac_ext <<_ACEOF | |
27026 | /* end confdefs.h. */ | |
27027 | #include <time.h> | |
27028 | ||
27029 | int | |
27030 | main () | |
27031 | { | |
27032 | #ifndef tzname | |
27033 | (void) tzname; | |
27034 | #endif | |
27035 | ||
27036 | ; | |
27037 | return 0; | |
27038 | } | |
27039 | _ACEOF | |
27040 | rm -f conftest.$ac_objext | |
27041 | if { (ac_try="$ac_compile" | |
27042 | case "(($ac_try" in | |
27043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27044 | *) ac_try_echo=$ac_try;; | |
27045 | esac | |
27046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27047 | $as_echo "$ac_try_echo") >&5 | |
27048 | (eval "$ac_compile") 2>conftest.er1 | |
27049 | ac_status=$? | |
27050 | grep -v '^ *+' conftest.er1 >conftest.err | |
27051 | rm -f conftest.er1 | |
27052 | cat conftest.err >&5 | |
27053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27054 | (exit $ac_status); } && { | |
27055 | test -z "$ac_c_werror_flag" || | |
27056 | test ! -s conftest.err | |
27057 | } && test -s conftest.$ac_objext; then | |
27058 | ac_cv_have_decl_tzname=yes | |
27059 | else | |
27060 | $as_echo "$as_me: failed program was:" >&5 | |
27061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27062 | ||
27063 | ac_cv_have_decl_tzname=no | |
27064 | fi | |
27065 | ||
27066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27067 | fi | |
27068 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
27069 | $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
27070 | if test "x$ac_cv_have_decl_tzname" = x""yes; then | |
27071 | ||
27072 | cat >>confdefs.h <<_ACEOF | |
27073 | #define HAVE_DECL_TZNAME 1 | |
27074 | _ACEOF | |
27075 | ||
27076 | ||
27077 | else | |
27078 | cat >>confdefs.h <<_ACEOF | |
27079 | #define HAVE_DECL_TZNAME 0 | |
27080 | _ACEOF | |
27081 | ||
27082 | ||
27083 | fi | |
27084 | ||
27085 | ||
27086 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 | |
27087 | $as_echo_n "checking for tzname... " >&6; } | |
7117c2d2 | 27088 | if test "${ac_cv_var_tzname+set}" = set; then |
3185942a | 27089 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
27090 | else |
27091 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27092 | /* confdefs.h. */ |
27093 | _ACEOF | |
27094 | cat confdefs.h >>conftest.$ac_ext | |
27095 | cat >>conftest.$ac_ext <<_ACEOF | |
27096 | /* end confdefs.h. */ | |
7117c2d2 | 27097 | #include <time.h> |
3185942a JA |
27098 | #if !HAVE_DECL_TZNAME |
27099 | extern char *tzname[]; | |
7117c2d2 JA |
27100 | #endif |
27101 | ||
27102 | int | |
27103 | main () | |
27104 | { | |
3185942a | 27105 | return tzname[0][0]; |
7117c2d2 JA |
27106 | ; |
27107 | return 0; | |
27108 | } | |
27109 | _ACEOF | |
27110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
27111 | if { (ac_try="$ac_link" |
27112 | case "(($ac_try" in | |
27113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27114 | *) ac_try_echo=$ac_try;; | |
27115 | esac | |
27116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27117 | $as_echo "$ac_try_echo") >&5 | |
27118 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 27119 | ac_status=$? |
0628567a JA |
27120 | grep -v '^ *+' conftest.er1 >conftest.err |
27121 | rm -f conftest.er1 | |
27122 | cat conftest.err >&5 | |
3185942a JA |
27123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27124 | (exit $ac_status); } && { | |
27125 | test -z "$ac_c_werror_flag" || | |
27126 | test ! -s conftest.err | |
27127 | } && test -s conftest$ac_exeext && { | |
27128 | test "$cross_compiling" = yes || | |
27129 | $as_test_x conftest$ac_exeext | |
27130 | }; then | |
7117c2d2 JA |
27131 | ac_cv_var_tzname=yes |
27132 | else | |
3185942a | 27133 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27134 | sed 's/^/| /' conftest.$ac_ext >&5 |
27135 | ||
3185942a | 27136 | ac_cv_var_tzname=no |
7117c2d2 | 27137 | fi |
3185942a JA |
27138 | |
27139 | rm -rf conftest.dSYM | |
27140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 27141 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 27142 | fi |
3185942a JA |
27143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
27144 | $as_echo "$ac_cv_var_tzname" >&6; } | |
7117c2d2 JA |
27145 | if test $ac_cv_var_tzname = yes; then |
27146 | ||
b80f6443 | 27147 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 27148 | #define HAVE_TZNAME 1 |
b80f6443 | 27149 | _ACEOF |
7117c2d2 JA |
27150 | |
27151 | fi | |
27152 | fi | |
27153 | ||
3185942a JA |
27154 | { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5 |
27155 | $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } | |
b80f6443 | 27156 | if test "${bash_cv_struct_timezone+set}" = set; then |
3185942a | 27157 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
27158 | else |
27159 | ||
27160 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27161 | /* confdefs.h. */ |
27162 | _ACEOF | |
27163 | cat confdefs.h >>conftest.$ac_ext | |
27164 | cat >>conftest.$ac_ext <<_ACEOF | |
27165 | /* end confdefs.h. */ | |
b80f6443 JA |
27166 | #include <sys/time.h> |
27167 | ||
27168 | _ACEOF | |
27169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 27170 | $EGREP "struct timezone" >/dev/null 2>&1; then |
b80f6443 JA |
27171 | bash_cv_struct_timezone=yes |
27172 | else | |
27173 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27174 | /* confdefs.h. */ |
27175 | _ACEOF | |
27176 | cat confdefs.h >>conftest.$ac_ext | |
27177 | cat >>conftest.$ac_ext <<_ACEOF | |
27178 | /* end confdefs.h. */ | |
b80f6443 JA |
27179 | #include <time.h> |
27180 | ||
27181 | _ACEOF | |
27182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 27183 | $EGREP "struct timezone" >/dev/null 2>&1; then |
b80f6443 JA |
27184 | bash_cv_struct_timezone=yes |
27185 | else | |
27186 | bash_cv_struct_timezone=no | |
27187 | fi | |
27188 | rm -f conftest* | |
27189 | ||
27190 | fi | |
27191 | rm -f conftest* | |
27192 | ||
27193 | ||
27194 | fi | |
27195 | ||
3185942a JA |
27196 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5 |
27197 | $as_echo "$bash_cv_struct_timezone" >&6; } | |
b80f6443 JA |
27198 | if test $bash_cv_struct_timezone = yes; then |
27199 | cat >>confdefs.h <<\_ACEOF | |
27200 | #define HAVE_STRUCT_TIMEZONE 1 | |
27201 | _ACEOF | |
27202 | ||
27203 | fi | |
27204 | ||
27205 | ||
3185942a JA |
27206 | { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5 |
27207 | $as_echo_n "checking for the existence of strsignal... " >&6; } | |
f73dda09 | 27208 | if test "${bash_cv_have_strsignal+set}" = set; then |
3185942a | 27209 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 27210 | else |
f73dda09 | 27211 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27212 | /* confdefs.h. */ |
27213 | _ACEOF | |
27214 | cat confdefs.h >>conftest.$ac_ext | |
27215 | cat >>conftest.$ac_ext <<_ACEOF | |
27216 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27217 | #include <sys/types.h> |
27218 | #include <signal.h> | |
f73dda09 JA |
27219 | int |
27220 | main () | |
27221 | { | |
ccc6cda3 | 27222 | char *s = (char *)strsignal(2); |
f73dda09 JA |
27223 | ; |
27224 | return 0; | |
27225 | } | |
27226 | _ACEOF | |
27227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
27228 | if { (ac_try="$ac_link" |
27229 | case "(($ac_try" in | |
27230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27231 | *) ac_try_echo=$ac_try;; | |
27232 | esac | |
27233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27234 | $as_echo "$ac_try_echo") >&5 | |
27235 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 27236 | ac_status=$? |
0628567a JA |
27237 | grep -v '^ *+' conftest.er1 >conftest.err |
27238 | rm -f conftest.er1 | |
27239 | cat conftest.err >&5 | |
3185942a JA |
27240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27241 | (exit $ac_status); } && { | |
27242 | test -z "$ac_c_werror_flag" || | |
27243 | test ! -s conftest.err | |
27244 | } && test -s conftest$ac_exeext && { | |
27245 | test "$cross_compiling" = yes || | |
27246 | $as_test_x conftest$ac_exeext | |
27247 | }; then | |
ccc6cda3 JA |
27248 | bash_cv_have_strsignal=yes |
27249 | else | |
3185942a | 27250 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27251 | sed 's/^/| /' conftest.$ac_ext >&5 |
27252 | ||
3185942a | 27253 | bash_cv_have_strsignal=no |
ccc6cda3 | 27254 | fi |
3185942a JA |
27255 | |
27256 | rm -rf conftest.dSYM | |
27257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 27258 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 JA |
27259 | fi |
27260 | ||
3185942a JA |
27261 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5 |
27262 | $as_echo "$bash_cv_have_strsignal" >&6; } | |
ccc6cda3 | 27263 | if test $bash_cv_have_strsignal = yes; then |
b80f6443 | 27264 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27265 | #define HAVE_STRSIGNAL 1 |
b80f6443 | 27266 | _ACEOF |
ccc6cda3 JA |
27267 | |
27268 | fi | |
27269 | ||
3185942a JA |
27270 | { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5 |
27271 | $as_echo_n "checking if opendir() opens non-directories... " >&6; } | |
f73dda09 | 27272 | if test "${bash_cv_opendir_not_robust+set}" = set; then |
3185942a | 27273 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
27274 | else |
27275 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27276 | { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 |
27277 | $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
27278 | bash_cv_opendir_not_robust=no |
27279 | ||
ccc6cda3 | 27280 | else |
f73dda09 | 27281 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27282 | /* confdefs.h. */ |
27283 | _ACEOF | |
27284 | cat confdefs.h >>conftest.$ac_ext | |
27285 | cat >>conftest.$ac_ext <<_ACEOF | |
27286 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27287 | |
27288 | #include <stdio.h> | |
27289 | #include <sys/types.h> | |
27290 | #include <fcntl.h> | |
27291 | #ifdef HAVE_UNISTD_H | |
27292 | # include <unistd.h> | |
27293 | #endif /* HAVE_UNISTD_H */ | |
27294 | #if defined(HAVE_DIRENT_H) | |
27295 | # include <dirent.h> | |
27296 | #else | |
27297 | # define dirent direct | |
27298 | # ifdef HAVE_SYS_NDIR_H | |
27299 | # include <sys/ndir.h> | |
27300 | # endif /* SYSNDIR */ | |
27301 | # ifdef HAVE_SYS_DIR_H | |
27302 | # include <sys/dir.h> | |
27303 | # endif /* SYSDIR */ | |
27304 | # ifdef HAVE_NDIR_H | |
27305 | # include <ndir.h> | |
27306 | # endif | |
27307 | #endif /* HAVE_DIRENT_H */ | |
27308 | main() | |
27309 | { | |
27310 | DIR *dir; | |
bb70624e | 27311 | int fd, err; |
3185942a | 27312 | err = mkdir("bash-aclocal", 0700); |
bb70624e JA |
27313 | if (err < 0) { |
27314 | perror("mkdir"); | |
27315 | exit(1); | |
27316 | } | |
3185942a JA |
27317 | unlink("bash-aclocal/not_a_directory"); |
27318 | fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); | |
ccc6cda3 JA |
27319 | write(fd, "\n", 1); |
27320 | close(fd); | |
3185942a JA |
27321 | dir = opendir("bash-aclocal/not_a_directory"); |
27322 | unlink("bash-aclocal/not_a_directory"); | |
27323 | rmdir("bash-aclocal"); | |
ccc6cda3 JA |
27324 | exit (dir == 0); |
27325 | } | |
f73dda09 JA |
27326 | _ACEOF |
27327 | rm -f conftest$ac_exeext | |
3185942a JA |
27328 | if { (ac_try="$ac_link" |
27329 | case "(($ac_try" in | |
27330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27331 | *) ac_try_echo=$ac_try;; | |
27332 | esac | |
27333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27334 | $as_echo "$ac_try_echo") >&5 | |
27335 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27336 | ac_status=$? |
3185942a | 27337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27338 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27339 | { (case "(($ac_try" in |
27340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27341 | *) ac_try_echo=$ac_try;; | |
27342 | esac | |
27343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27344 | $as_echo "$ac_try_echo") >&5 | |
27345 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27346 | ac_status=$? |
3185942a | 27347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27348 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
27349 | bash_cv_opendir_not_robust=yes |
27350 | else | |
3185942a JA |
27351 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27352 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27353 | sed 's/^/| /' conftest.$ac_ext >&5 |
27354 | ||
b80f6443 | 27355 | ( exit $ac_status ) |
f73dda09 | 27356 | bash_cv_opendir_not_robust=no |
ccc6cda3 | 27357 | fi |
3185942a JA |
27358 | rm -rf conftest.dSYM |
27359 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27360 | fi |
3185942a JA |
27361 | |
27362 | ||
ccc6cda3 JA |
27363 | fi |
27364 | ||
3185942a JA |
27365 | { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5 |
27366 | $as_echo "$bash_cv_opendir_not_robust" >&6; } | |
ccc6cda3 | 27367 | if test $bash_cv_opendir_not_robust = yes; then |
b80f6443 | 27368 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27369 | #define OPENDIR_NOT_ROBUST 1 |
b80f6443 | 27370 | _ACEOF |
ccc6cda3 JA |
27371 | |
27372 | fi | |
27373 | ||
3185942a JA |
27374 | { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5 |
27375 | $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } | |
f73dda09 | 27376 | if test "${bash_cv_ulimit_maxfds+set}" = set; then |
3185942a | 27377 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
27378 | else |
27379 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27380 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 |
27381 | $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
27382 | bash_cv_ulimit_maxfds=no |
27383 | ||
ccc6cda3 | 27384 | else |
f73dda09 | 27385 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27386 | /* confdefs.h. */ |
27387 | _ACEOF | |
27388 | cat confdefs.h >>conftest.$ac_ext | |
27389 | cat >>conftest.$ac_ext <<_ACEOF | |
27390 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27391 | |
27392 | main() | |
27393 | { | |
27394 | long maxfds = ulimit(4, 0L); | |
27395 | exit (maxfds == -1L); | |
27396 | } | |
27397 | ||
f73dda09 JA |
27398 | _ACEOF |
27399 | rm -f conftest$ac_exeext | |
3185942a JA |
27400 | if { (ac_try="$ac_link" |
27401 | case "(($ac_try" in | |
27402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27403 | *) ac_try_echo=$ac_try;; | |
27404 | esac | |
27405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27406 | $as_echo "$ac_try_echo") >&5 | |
27407 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27408 | ac_status=$? |
3185942a | 27409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27411 | { (case "(($ac_try" in |
27412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27413 | *) ac_try_echo=$ac_try;; | |
27414 | esac | |
27415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27416 | $as_echo "$ac_try_echo") >&5 | |
27417 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27418 | ac_status=$? |
3185942a | 27419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27420 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
27421 | bash_cv_ulimit_maxfds=yes |
27422 | else | |
3185942a JA |
27423 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27424 | $as_echo "$as_me: failed program was:" >&5 | |
27425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27426 | ||
27427 | ( exit $ac_status ) | |
27428 | bash_cv_ulimit_maxfds=no | |
27429 | fi | |
27430 | rm -rf conftest.dSYM | |
27431 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
27432 | fi | |
27433 | ||
27434 | ||
27435 | fi | |
27436 | ||
27437 | { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5 | |
27438 | $as_echo "$bash_cv_ulimit_maxfds" >&6; } | |
27439 | if test $bash_cv_ulimit_maxfds = yes; then | |
27440 | cat >>confdefs.h <<\_ACEOF | |
27441 | #define ULIMIT_MAXFDS 1 | |
27442 | _ACEOF | |
27443 | ||
27444 | fi | |
27445 | ||
27446 | ||
27447 | ||
27448 | ||
27449 | ||
27450 | ||
27451 | ||
27452 | ||
27453 | ||
27454 | ||
27455 | ||
27456 | ||
27457 | ||
27458 | ||
27459 | ||
27460 | ||
27461 | ||
27462 | ||
27463 | { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5 | |
27464 | $as_echo_n "checking whether fpurge is declared... " >&6; } | |
27465 | if test "${ac_cv_have_decl_fpurge+set}" = set; then | |
27466 | $as_echo_n "(cached) " >&6 | |
27467 | else | |
27468 | cat >conftest.$ac_ext <<_ACEOF | |
27469 | /* confdefs.h. */ | |
27470 | _ACEOF | |
27471 | cat confdefs.h >>conftest.$ac_ext | |
27472 | cat >>conftest.$ac_ext <<_ACEOF | |
27473 | /* end confdefs.h. */ | |
27474 | #include <stdio.h> | |
27475 | ||
27476 | int | |
27477 | main () | |
27478 | { | |
27479 | #ifndef fpurge | |
27480 | (void) fpurge; | |
27481 | #endif | |
27482 | ||
27483 | ; | |
27484 | return 0; | |
27485 | } | |
27486 | _ACEOF | |
27487 | rm -f conftest.$ac_objext | |
27488 | if { (ac_try="$ac_compile" | |
27489 | case "(($ac_try" in | |
27490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27491 | *) ac_try_echo=$ac_try;; | |
27492 | esac | |
27493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27494 | $as_echo "$ac_try_echo") >&5 | |
27495 | (eval "$ac_compile") 2>conftest.er1 | |
27496 | ac_status=$? | |
27497 | grep -v '^ *+' conftest.er1 >conftest.err | |
27498 | rm -f conftest.er1 | |
27499 | cat conftest.err >&5 | |
27500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27501 | (exit $ac_status); } && { | |
27502 | test -z "$ac_c_werror_flag" || | |
27503 | test ! -s conftest.err | |
27504 | } && test -s conftest.$ac_objext; then | |
27505 | ac_cv_have_decl_fpurge=yes | |
27506 | else | |
27507 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27508 | sed 's/^/| /' conftest.$ac_ext >&5 |
27509 | ||
3185942a | 27510 | ac_cv_have_decl_fpurge=no |
ccc6cda3 | 27511 | fi |
3185942a JA |
27512 | |
27513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27514 | fi |
3185942a JA |
27515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5 |
27516 | $as_echo "$ac_cv_have_decl_fpurge" >&6; } | |
27517 | if test "x$ac_cv_have_decl_fpurge" = x""yes; then | |
ccc6cda3 | 27518 | |
3185942a JA |
27519 | cat >>confdefs.h <<_ACEOF |
27520 | #define HAVE_DECL_FPURGE 1 | |
27521 | _ACEOF | |
27522 | ||
27523 | ||
27524 | else | |
27525 | cat >>confdefs.h <<_ACEOF | |
27526 | #define HAVE_DECL_FPURGE 0 | |
b80f6443 | 27527 | _ACEOF |
ccc6cda3 | 27528 | |
3185942a | 27529 | |
ccc6cda3 JA |
27530 | fi |
27531 | ||
3185942a JA |
27532 | |
27533 | ||
27534 | { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5 | |
27535 | $as_echo_n "checking to see if getenv can be redefined... " >&6; } | |
f73dda09 | 27536 | if test "${bash_cv_getenv_redef+set}" = set; then |
3185942a | 27537 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
27538 | else |
27539 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27540 | { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 |
27541 | $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} | |
cce855bc JA |
27542 | bash_cv_getenv_redef=yes |
27543 | ||
ccc6cda3 | 27544 | else |
f73dda09 | 27545 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27546 | /* confdefs.h. */ |
27547 | _ACEOF | |
27548 | cat confdefs.h >>conftest.$ac_ext | |
27549 | cat >>conftest.$ac_ext <<_ACEOF | |
27550 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27551 | |
27552 | #ifdef HAVE_UNISTD_H | |
27553 | # include <unistd.h> | |
27554 | #endif | |
27555 | #ifndef __STDC__ | |
27556 | # ifndef const | |
27557 | # define const | |
27558 | # endif | |
27559 | #endif | |
27560 | char * | |
27561 | getenv (name) | |
27562 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) | |
27563 | const char *name; | |
27564 | #else | |
27565 | char const *name; | |
27566 | #endif /* !__linux__ && !__bsdi__ && !convex */ | |
27567 | { | |
27568 | return "42"; | |
27569 | } | |
27570 | main() | |
27571 | { | |
27572 | char *s; | |
27573 | /* The next allows this program to run, but does not allow bash to link | |
27574 | when it redefines getenv. I'm not really interested in figuring out | |
27575 | why not. */ | |
27576 | #if defined (NeXT) | |
27577 | exit(1); | |
27578 | #endif | |
27579 | s = getenv("ABCDE"); | |
27580 | exit(s == 0); /* force optimizer to leave getenv in */ | |
27581 | } | |
27582 | ||
f73dda09 JA |
27583 | _ACEOF |
27584 | rm -f conftest$ac_exeext | |
3185942a JA |
27585 | if { (ac_try="$ac_link" |
27586 | case "(($ac_try" in | |
27587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27588 | *) ac_try_echo=$ac_try;; | |
27589 | esac | |
27590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27591 | $as_echo "$ac_try_echo") >&5 | |
27592 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27593 | ac_status=$? |
3185942a | 27594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27595 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27596 | { (case "(($ac_try" in |
27597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27598 | *) ac_try_echo=$ac_try;; | |
27599 | esac | |
27600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27601 | $as_echo "$ac_try_echo") >&5 | |
27602 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27603 | ac_status=$? |
3185942a | 27604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27605 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
27606 | bash_cv_getenv_redef=yes |
27607 | else | |
3185942a JA |
27608 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27609 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27610 | sed 's/^/| /' conftest.$ac_ext >&5 |
27611 | ||
b80f6443 | 27612 | ( exit $ac_status ) |
f73dda09 | 27613 | bash_cv_getenv_redef=no |
ccc6cda3 | 27614 | fi |
3185942a JA |
27615 | rm -rf conftest.dSYM |
27616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27617 | fi |
3185942a JA |
27618 | |
27619 | ||
ccc6cda3 JA |
27620 | fi |
27621 | ||
3185942a JA |
27622 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5 |
27623 | $as_echo "$bash_cv_getenv_redef" >&6; } | |
ccc6cda3 | 27624 | if test $bash_cv_getenv_redef = yes; then |
b80f6443 | 27625 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27626 | #define CAN_REDEFINE_GETENV 1 |
b80f6443 | 27627 | _ACEOF |
ccc6cda3 JA |
27628 | |
27629 | fi | |
27630 | ||
7117c2d2 | 27631 | if test "$ac_cv_func_getcwd" = "yes"; then |
3185942a JA |
27632 | { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5 |
27633 | $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } | |
b80f6443 | 27634 | if test "${bash_cv_getcwd_malloc+set}" = set; then |
3185942a | 27635 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
27636 | else |
27637 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27638 | { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 |
27639 | $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} | |
b80f6443 | 27640 | bash_cv_getcwd_malloc=no |
cce855bc | 27641 | |
ccc6cda3 | 27642 | else |
f73dda09 | 27643 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27644 | /* confdefs.h. */ |
27645 | _ACEOF | |
27646 | cat confdefs.h >>conftest.$ac_ext | |
27647 | cat >>conftest.$ac_ext <<_ACEOF | |
27648 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27649 | |
27650 | #include <stdio.h> | |
27651 | #ifdef HAVE_UNISTD_H | |
27652 | #include <unistd.h> | |
27653 | #endif | |
27654 | ||
ccc6cda3 JA |
27655 | main() |
27656 | { | |
b80f6443 JA |
27657 | char *xpwd; |
27658 | xpwd = getcwd(0, 0); | |
27659 | exit (xpwd == 0); | |
ccc6cda3 JA |
27660 | } |
27661 | ||
f73dda09 JA |
27662 | _ACEOF |
27663 | rm -f conftest$ac_exeext | |
3185942a JA |
27664 | if { (ac_try="$ac_link" |
27665 | case "(($ac_try" in | |
27666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27667 | *) ac_try_echo=$ac_try;; | |
27668 | esac | |
27669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27670 | $as_echo "$ac_try_echo") >&5 | |
27671 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27672 | ac_status=$? |
3185942a | 27673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27675 | { (case "(($ac_try" in |
27676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27677 | *) ac_try_echo=$ac_try;; | |
27678 | esac | |
27679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27680 | $as_echo "$ac_try_echo") >&5 | |
27681 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27682 | ac_status=$? |
3185942a | 27683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27684 | (exit $ac_status); }; }; then |
b80f6443 | 27685 | bash_cv_getcwd_malloc=yes |
ccc6cda3 | 27686 | else |
3185942a JA |
27687 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27688 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27689 | sed 's/^/| /' conftest.$ac_ext >&5 |
27690 | ||
b80f6443 JA |
27691 | ( exit $ac_status ) |
27692 | bash_cv_getcwd_malloc=no | |
ccc6cda3 | 27693 | fi |
3185942a JA |
27694 | rm -rf conftest.dSYM |
27695 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27696 | fi |
3185942a JA |
27697 | |
27698 | ||
ccc6cda3 JA |
27699 | fi |
27700 | ||
3185942a JA |
27701 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5 |
27702 | $as_echo "$bash_cv_getcwd_malloc" >&6; } | |
b80f6443 JA |
27703 | if test $bash_cv_getcwd_malloc = no; then |
27704 | cat >>confdefs.h <<\_ACEOF | |
ccc6cda3 | 27705 | #define GETCWD_BROKEN 1 |
b80f6443 | 27706 | _ACEOF |
ccc6cda3 | 27707 | |
3185942a | 27708 | case " $LIBOBJS " in |
0628567a | 27709 | *" getcwd.$ac_objext "* ) ;; |
3185942a JA |
27710 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
27711 | ;; | |
0628567a JA |
27712 | esac |
27713 | ||
ccc6cda3 JA |
27714 | fi |
27715 | ||
ccc6cda3 JA |
27716 | fi |
27717 | ||
3185942a JA |
27718 | { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
27719 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
f73dda09 | 27720 | if test "${bash_cv_func_sigsetjmp+set}" = set; then |
3185942a | 27721 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
27722 | else |
27723 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27724 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
27725 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
27726 | bash_cv_func_sigsetjmp=missing |
27727 | ||
ccc6cda3 | 27728 | else |
f73dda09 | 27729 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27730 | /* confdefs.h. */ |
27731 | _ACEOF | |
27732 | cat confdefs.h >>conftest.$ac_ext | |
27733 | cat >>conftest.$ac_ext <<_ACEOF | |
27734 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27735 | |
27736 | #ifdef HAVE_UNISTD_H | |
27737 | #include <unistd.h> | |
27738 | #endif | |
27739 | #include <sys/types.h> | |
27740 | #include <signal.h> | |
27741 | #include <setjmp.h> | |
27742 | ||
27743 | main() | |
27744 | { | |
27745 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
27746 | exit (1); | |
27747 | #else | |
27748 | ||
27749 | int code; | |
27750 | sigset_t set, oset; | |
27751 | sigjmp_buf xx; | |
27752 | ||
27753 | /* get the mask */ | |
27754 | sigemptyset(&set); | |
27755 | sigemptyset(&oset); | |
27756 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
27757 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
27758 | ||
27759 | /* save it */ | |
27760 | code = sigsetjmp(xx, 1); | |
27761 | if (code) | |
27762 | exit(0); /* could get sigmask and compare to oset here. */ | |
27763 | ||
27764 | /* change it */ | |
27765 | sigaddset(&set, SIGINT); | |
27766 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
27767 | ||
27768 | /* and siglongjmp */ | |
27769 | siglongjmp(xx, 10); | |
27770 | exit(1); | |
27771 | #endif | |
27772 | } | |
f73dda09 JA |
27773 | _ACEOF |
27774 | rm -f conftest$ac_exeext | |
3185942a JA |
27775 | if { (ac_try="$ac_link" |
27776 | case "(($ac_try" in | |
27777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27778 | *) ac_try_echo=$ac_try;; | |
27779 | esac | |
27780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27781 | $as_echo "$ac_try_echo") >&5 | |
27782 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27783 | ac_status=$? |
3185942a | 27784 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27786 | { (case "(($ac_try" in |
27787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27788 | *) ac_try_echo=$ac_try;; | |
27789 | esac | |
27790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27791 | $as_echo "$ac_try_echo") >&5 | |
27792 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27793 | ac_status=$? |
3185942a | 27794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27795 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
27796 | bash_cv_func_sigsetjmp=present |
27797 | else | |
3185942a JA |
27798 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27799 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27800 | sed 's/^/| /' conftest.$ac_ext >&5 |
27801 | ||
b80f6443 | 27802 | ( exit $ac_status ) |
f73dda09 | 27803 | bash_cv_func_sigsetjmp=missing |
ccc6cda3 | 27804 | fi |
3185942a JA |
27805 | rm -rf conftest.dSYM |
27806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27807 | fi |
3185942a JA |
27808 | |
27809 | ||
ccc6cda3 JA |
27810 | fi |
27811 | ||
3185942a JA |
27812 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
27813 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
ccc6cda3 | 27814 | if test $bash_cv_func_sigsetjmp = present; then |
b80f6443 | 27815 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27816 | #define HAVE_POSIX_SIGSETJMP 1 |
b80f6443 | 27817 | _ACEOF |
ccc6cda3 JA |
27818 | |
27819 | fi | |
27820 | ||
b80f6443 | 27821 | |
3185942a JA |
27822 | { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 |
27823 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
f73dda09 | 27824 | if test "${bash_cv_func_strcoll_broken+set}" = set; then |
3185942a | 27825 | $as_echo_n "(cached) " >&6 |
d166f048 JA |
27826 | else |
27827 | if test "$cross_compiling" = yes; then | |
3185942a JA |
27828 | { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
27829 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
27830 | bash_cv_func_strcoll_broken=no |
27831 | ||
d166f048 | 27832 | else |
f73dda09 | 27833 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27834 | /* confdefs.h. */ |
27835 | _ACEOF | |
27836 | cat confdefs.h >>conftest.$ac_ext | |
27837 | cat >>conftest.$ac_ext <<_ACEOF | |
27838 | /* end confdefs.h. */ | |
d166f048 JA |
27839 | |
27840 | #include <stdio.h> | |
27841 | #if defined (HAVE_LOCALE_H) | |
27842 | #include <locale.h> | |
27843 | #endif | |
27844 | ||
27845 | main(c, v) | |
27846 | int c; | |
27847 | char *v[]; | |
27848 | { | |
27849 | int r1, r2; | |
27850 | char *deflocale, *defcoll; | |
27851 | ||
27852 | #ifdef HAVE_SETLOCALE | |
27853 | deflocale = setlocale(LC_ALL, ""); | |
27854 | defcoll = setlocale(LC_COLLATE, ""); | |
27855 | #endif | |
27856 | ||
27857 | #ifdef HAVE_STRCOLL | |
27858 | /* These two values are taken from tests/glob-test. */ | |
27859 | r1 = strcoll("abd", "aXd"); | |
27860 | #else | |
27861 | r1 = 0; | |
27862 | #endif | |
27863 | r2 = strcmp("abd", "aXd"); | |
27864 | ||
27865 | /* These two should both be greater than 0. It is permissible for | |
27866 | a system to return different values, as long as the sign is the | |
27867 | same. */ | |
27868 | ||
27869 | /* Exit with 1 (failure) if these two values are both > 0, since | |
27870 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
27871 | in the default locale. */ | |
27872 | exit (r1 > 0 && r2 > 0); | |
27873 | } | |
27874 | ||
f73dda09 JA |
27875 | _ACEOF |
27876 | rm -f conftest$ac_exeext | |
3185942a JA |
27877 | if { (ac_try="$ac_link" |
27878 | case "(($ac_try" in | |
27879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27880 | *) ac_try_echo=$ac_try;; | |
27881 | esac | |
27882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27883 | $as_echo "$ac_try_echo") >&5 | |
27884 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27885 | ac_status=$? |
3185942a | 27886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27887 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27888 | { (case "(($ac_try" in |
27889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27890 | *) ac_try_echo=$ac_try;; | |
27891 | esac | |
27892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27893 | $as_echo "$ac_try_echo") >&5 | |
27894 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27895 | ac_status=$? |
3185942a | 27896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27897 | (exit $ac_status); }; }; then |
d166f048 JA |
27898 | bash_cv_func_strcoll_broken=yes |
27899 | else | |
3185942a JA |
27900 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27901 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27902 | sed 's/^/| /' conftest.$ac_ext >&5 |
27903 | ||
b80f6443 | 27904 | ( exit $ac_status ) |
f73dda09 | 27905 | bash_cv_func_strcoll_broken=no |
d166f048 | 27906 | fi |
3185942a JA |
27907 | rm -rf conftest.dSYM |
27908 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d166f048 | 27909 | fi |
3185942a JA |
27910 | |
27911 | ||
d166f048 JA |
27912 | fi |
27913 | ||
3185942a JA |
27914 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
27915 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
d166f048 | 27916 | if test $bash_cv_func_strcoll_broken = yes; then |
b80f6443 | 27917 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 27918 | #define STRCOLL_BROKEN 1 |
b80f6443 | 27919 | _ACEOF |
d166f048 JA |
27920 | |
27921 | fi | |
27922 | ||
b80f6443 JA |
27923 | |
27924 | ||
7117c2d2 JA |
27925 | if test "$ac_cv_func_putenv" = "yes"; then |
27926 | ||
b80f6443 JA |
27927 | |
27928 | ||
3185942a JA |
27929 | { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5 |
27930 | $as_echo_n "checking for standard-conformant putenv declaration... " >&6; } | |
7117c2d2 | 27931 | if test "${bash_cv_std_putenv+set}" = set; then |
3185942a | 27932 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
27933 | else |
27934 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27935 | /* confdefs.h. */ |
27936 | _ACEOF | |
27937 | cat confdefs.h >>conftest.$ac_ext | |
27938 | cat >>conftest.$ac_ext <<_ACEOF | |
27939 | /* end confdefs.h. */ | |
7117c2d2 JA |
27940 | |
27941 | #if STDC_HEADERS | |
27942 | #include <stdlib.h> | |
27943 | #include <stddef.h> | |
27944 | #endif | |
27945 | #ifndef __STDC__ | |
27946 | # ifndef const | |
27947 | # define const | |
27948 | # endif | |
27949 | #endif | |
27950 | #ifdef PROTOTYPES | |
27951 | extern int putenv (char *); | |
27952 | #else | |
27953 | extern int putenv (); | |
27954 | #endif | |
27955 | ||
27956 | int | |
27957 | main () | |
27958 | { | |
27959 | return (putenv == 0); | |
27960 | ; | |
27961 | return 0; | |
27962 | } | |
27963 | _ACEOF | |
27964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
27965 | if { (ac_try="$ac_link" |
27966 | case "(($ac_try" in | |
27967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27968 | *) ac_try_echo=$ac_try;; | |
27969 | esac | |
27970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27971 | $as_echo "$ac_try_echo") >&5 | |
27972 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 27973 | ac_status=$? |
0628567a JA |
27974 | grep -v '^ *+' conftest.er1 >conftest.err |
27975 | rm -f conftest.er1 | |
27976 | cat conftest.err >&5 | |
3185942a JA |
27977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27978 | (exit $ac_status); } && { | |
27979 | test -z "$ac_c_werror_flag" || | |
27980 | test ! -s conftest.err | |
27981 | } && test -s conftest$ac_exeext && { | |
27982 | test "$cross_compiling" = yes || | |
27983 | $as_test_x conftest$ac_exeext | |
27984 | }; then | |
7117c2d2 JA |
27985 | bash_cv_std_putenv=yes |
27986 | else | |
3185942a | 27987 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27988 | sed 's/^/| /' conftest.$ac_ext >&5 |
27989 | ||
3185942a | 27990 | bash_cv_std_putenv=no |
7117c2d2 JA |
27991 | |
27992 | fi | |
3185942a JA |
27993 | |
27994 | rm -rf conftest.dSYM | |
27995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 27996 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 27997 | fi |
3185942a JA |
27998 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5 |
27999 | $as_echo "$bash_cv_std_putenv" >&6; } | |
7117c2d2 | 28000 | if test $bash_cv_std_putenv = yes; then |
b80f6443 | 28001 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28002 | #define HAVE_STD_PUTENV 1 |
b80f6443 | 28003 | _ACEOF |
7117c2d2 JA |
28004 | |
28005 | fi | |
28006 | ||
28007 | else | |
b80f6443 | 28008 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28009 | #define HAVE_STD_PUTENV 1 |
b80f6443 | 28010 | _ACEOF |
7117c2d2 JA |
28011 | |
28012 | fi | |
28013 | if test "$ac_cv_func_unsetenv" = "yes"; then | |
28014 | ||
b80f6443 JA |
28015 | |
28016 | ||
3185942a JA |
28017 | { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5 |
28018 | $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } | |
7117c2d2 | 28019 | if test "${bash_cv_std_unsetenv+set}" = set; then |
3185942a | 28020 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
28021 | else |
28022 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28023 | /* confdefs.h. */ |
28024 | _ACEOF | |
28025 | cat confdefs.h >>conftest.$ac_ext | |
28026 | cat >>conftest.$ac_ext <<_ACEOF | |
28027 | /* end confdefs.h. */ | |
7117c2d2 JA |
28028 | |
28029 | #if STDC_HEADERS | |
28030 | #include <stdlib.h> | |
28031 | #include <stddef.h> | |
28032 | #endif | |
28033 | #ifndef __STDC__ | |
28034 | # ifndef const | |
28035 | # define const | |
28036 | # endif | |
28037 | #endif | |
28038 | #ifdef PROTOTYPES | |
28039 | extern int unsetenv (const char *); | |
28040 | #else | |
28041 | extern int unsetenv (); | |
28042 | #endif | |
28043 | ||
28044 | int | |
28045 | main () | |
28046 | { | |
28047 | return (unsetenv == 0); | |
28048 | ; | |
28049 | return 0; | |
28050 | } | |
28051 | _ACEOF | |
28052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
28053 | if { (ac_try="$ac_link" |
28054 | case "(($ac_try" in | |
28055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28056 | *) ac_try_echo=$ac_try;; | |
28057 | esac | |
28058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28059 | $as_echo "$ac_try_echo") >&5 | |
28060 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 28061 | ac_status=$? |
0628567a JA |
28062 | grep -v '^ *+' conftest.er1 >conftest.err |
28063 | rm -f conftest.er1 | |
28064 | cat conftest.err >&5 | |
3185942a JA |
28065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28066 | (exit $ac_status); } && { | |
28067 | test -z "$ac_c_werror_flag" || | |
28068 | test ! -s conftest.err | |
28069 | } && test -s conftest$ac_exeext && { | |
28070 | test "$cross_compiling" = yes || | |
28071 | $as_test_x conftest$ac_exeext | |
28072 | }; then | |
7117c2d2 JA |
28073 | bash_cv_std_unsetenv=yes |
28074 | else | |
3185942a | 28075 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28076 | sed 's/^/| /' conftest.$ac_ext >&5 |
28077 | ||
3185942a | 28078 | bash_cv_std_unsetenv=no |
7117c2d2 JA |
28079 | |
28080 | fi | |
3185942a JA |
28081 | |
28082 | rm -rf conftest.dSYM | |
28083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 28084 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 28085 | fi |
3185942a JA |
28086 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5 |
28087 | $as_echo "$bash_cv_std_unsetenv" >&6; } | |
7117c2d2 | 28088 | if test $bash_cv_std_unsetenv = yes; then |
b80f6443 | 28089 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28090 | #define HAVE_STD_UNSETENV 1 |
b80f6443 | 28091 | _ACEOF |
7117c2d2 JA |
28092 | |
28093 | fi | |
28094 | ||
28095 | else | |
b80f6443 | 28096 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28097 | #define HAVE_STD_UNSETENV 1 |
b80f6443 | 28098 | _ACEOF |
7117c2d2 JA |
28099 | |
28100 | fi | |
28101 | ||
3185942a JA |
28102 | { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5 |
28103 | $as_echo_n "checking for printf floating point output in hex notation... " >&6; } | |
f73dda09 | 28104 | if test "${bash_cv_printf_a_format+set}" = set; then |
3185942a | 28105 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
28106 | else |
28107 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28108 | { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 |
28109 | $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} | |
f73dda09 JA |
28110 | bash_cv_printf_a_format=no |
28111 | ||
28112 | else | |
28113 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28114 | /* confdefs.h. */ |
28115 | _ACEOF | |
28116 | cat confdefs.h >>conftest.$ac_ext | |
28117 | cat >>conftest.$ac_ext <<_ACEOF | |
28118 | /* end confdefs.h. */ | |
f73dda09 JA |
28119 | |
28120 | #include <stdio.h> | |
28121 | #include <string.h> | |
28122 | ||
28123 | int | |
28124 | main() | |
28125 | { | |
28126 | double y = 0.0; | |
28127 | char abuf[1024]; | |
28128 | ||
28129 | sprintf(abuf, "%A", y); | |
28130 | exit(strchr(abuf, 'P') == (char *)0); | |
28131 | } | |
28132 | ||
28133 | _ACEOF | |
28134 | rm -f conftest$ac_exeext | |
3185942a JA |
28135 | if { (ac_try="$ac_link" |
28136 | case "(($ac_try" in | |
28137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28138 | *) ac_try_echo=$ac_try;; | |
28139 | esac | |
28140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28141 | $as_echo "$ac_try_echo") >&5 | |
28142 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28143 | ac_status=$? |
3185942a | 28144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28146 | { (case "(($ac_try" in |
28147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28148 | *) ac_try_echo=$ac_try;; | |
28149 | esac | |
28150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28151 | $as_echo "$ac_try_echo") >&5 | |
28152 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28153 | ac_status=$? |
3185942a | 28154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
28155 | (exit $ac_status); }; }; then |
28156 | bash_cv_printf_a_format=yes | |
28157 | else | |
3185942a JA |
28158 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28159 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28160 | sed 's/^/| /' conftest.$ac_ext >&5 |
28161 | ||
b80f6443 | 28162 | ( exit $ac_status ) |
f73dda09 JA |
28163 | bash_cv_printf_a_format=no |
28164 | fi | |
3185942a JA |
28165 | rm -rf conftest.dSYM |
28166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 28167 | fi |
3185942a JA |
28168 | |
28169 | ||
f73dda09 | 28170 | fi |
d166f048 | 28171 | |
3185942a JA |
28172 | { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5 |
28173 | $as_echo "$bash_cv_printf_a_format" >&6; } | |
f73dda09 | 28174 | if test $bash_cv_printf_a_format = yes; then |
b80f6443 | 28175 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 28176 | #define HAVE_PRINTF_A_FORMAT 1 |
b80f6443 | 28177 | _ACEOF |
d166f048 | 28178 | |
f73dda09 | 28179 | fi |
ccc6cda3 | 28180 | |
b80f6443 JA |
28181 | |
28182 | ||
28183 | ||
3185942a JA |
28184 | { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 |
28185 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
f73dda09 | 28186 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then |
3185942a | 28187 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28188 | else |
28189 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28190 | { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
28191 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
28192 | bash_cv_must_reinstall_sighandlers=no |
28193 | ||
ccc6cda3 | 28194 | else |
f73dda09 | 28195 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28196 | /* confdefs.h. */ |
28197 | _ACEOF | |
28198 | cat confdefs.h >>conftest.$ac_ext | |
28199 | cat >>conftest.$ac_ext <<_ACEOF | |
28200 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28201 | |
28202 | #include <signal.h> | |
28203 | #ifdef HAVE_UNISTD_H | |
28204 | #include <unistd.h> | |
28205 | #endif | |
28206 | ||
28207 | typedef RETSIGTYPE sigfunc(); | |
28208 | ||
28209 | int nsigint; | |
28210 | ||
28211 | #ifdef HAVE_POSIX_SIGNALS | |
28212 | sigfunc * | |
28213 | set_signal_handler(sig, handler) | |
28214 | int sig; | |
28215 | sigfunc *handler; | |
28216 | { | |
28217 | struct sigaction act, oact; | |
28218 | act.sa_handler = handler; | |
28219 | act.sa_flags = 0; | |
28220 | sigemptyset (&act.sa_mask); | |
28221 | sigemptyset (&oact.sa_mask); | |
28222 | sigaction (sig, &act, &oact); | |
28223 | return (oact.sa_handler); | |
28224 | } | |
28225 | #else | |
28226 | #define set_signal_handler(s, h) signal(s, h) | |
28227 | #endif | |
28228 | ||
28229 | RETSIGTYPE | |
28230 | sigint(s) | |
28231 | int s; | |
28232 | { | |
28233 | nsigint++; | |
28234 | } | |
28235 | ||
28236 | main() | |
28237 | { | |
28238 | nsigint = 0; | |
28239 | set_signal_handler(SIGINT, sigint); | |
28240 | kill((int)getpid(), SIGINT); | |
28241 | kill((int)getpid(), SIGINT); | |
28242 | exit(nsigint != 2); | |
28243 | } | |
28244 | ||
f73dda09 JA |
28245 | _ACEOF |
28246 | rm -f conftest$ac_exeext | |
3185942a JA |
28247 | if { (ac_try="$ac_link" |
28248 | case "(($ac_try" in | |
28249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28250 | *) ac_try_echo=$ac_try;; | |
28251 | esac | |
28252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28253 | $as_echo "$ac_try_echo") >&5 | |
28254 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28255 | ac_status=$? |
3185942a | 28256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28258 | { (case "(($ac_try" in |
28259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28260 | *) ac_try_echo=$ac_try;; | |
28261 | esac | |
28262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28263 | $as_echo "$ac_try_echo") >&5 | |
28264 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28265 | ac_status=$? |
3185942a | 28266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28267 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
28268 | bash_cv_must_reinstall_sighandlers=no |
28269 | else | |
3185942a JA |
28270 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28271 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28272 | sed 's/^/| /' conftest.$ac_ext >&5 |
28273 | ||
b80f6443 | 28274 | ( exit $ac_status ) |
f73dda09 | 28275 | bash_cv_must_reinstall_sighandlers=yes |
ccc6cda3 | 28276 | fi |
3185942a JA |
28277 | rm -rf conftest.dSYM |
28278 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 28279 | fi |
3185942a JA |
28280 | |
28281 | ||
ccc6cda3 JA |
28282 | fi |
28283 | ||
3185942a JA |
28284 | { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
28285 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
ccc6cda3 | 28286 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
b80f6443 | 28287 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28288 | #define MUST_REINSTALL_SIGHANDLERS 1 |
b80f6443 | 28289 | _ACEOF |
ccc6cda3 JA |
28290 | |
28291 | fi | |
28292 | ||
b80f6443 | 28293 | |
3185942a JA |
28294 | { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5 |
28295 | $as_echo_n "checking for presence of necessary job control definitions... " >&6; } | |
f73dda09 | 28296 | if test "${bash_cv_job_control_missing+set}" = set; then |
3185942a | 28297 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28298 | else |
28299 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28300 | { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 |
28301 | $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
28302 | bash_cv_job_control_missing=missing |
28303 | ||
ccc6cda3 | 28304 | else |
f73dda09 | 28305 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28306 | /* confdefs.h. */ |
28307 | _ACEOF | |
28308 | cat confdefs.h >>conftest.$ac_ext | |
28309 | cat >>conftest.$ac_ext <<_ACEOF | |
28310 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28311 | |
28312 | #include <sys/types.h> | |
28313 | #ifdef HAVE_SYS_WAIT_H | |
28314 | #include <sys/wait.h> | |
28315 | #endif | |
28316 | #ifdef HAVE_UNISTD_H | |
28317 | #include <unistd.h> | |
28318 | #endif | |
28319 | #include <signal.h> | |
28320 | ||
28321 | /* Add more tests in here as appropriate. */ | |
28322 | main() | |
28323 | { | |
28324 | /* signal type */ | |
28325 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) | |
28326 | exit(1); | |
28327 | #endif | |
28328 | ||
28329 | /* signals and tty control. */ | |
28330 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) | |
28331 | exit (1); | |
28332 | #endif | |
28333 | ||
28334 | /* process control */ | |
f73dda09 | 28335 | #if !defined (WNOHANG) || !defined (WUNTRACED) |
ccc6cda3 JA |
28336 | exit(1); |
28337 | #endif | |
28338 | ||
28339 | /* Posix systems have tcgetpgrp and waitpid. */ | |
28340 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) | |
28341 | exit(1); | |
28342 | #endif | |
28343 | ||
28344 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) | |
28345 | exit(1); | |
28346 | #endif | |
28347 | ||
28348 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ | |
28349 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) | |
28350 | exit(1); | |
28351 | #endif | |
28352 | ||
28353 | exit(0); | |
28354 | } | |
f73dda09 JA |
28355 | _ACEOF |
28356 | rm -f conftest$ac_exeext | |
3185942a JA |
28357 | if { (ac_try="$ac_link" |
28358 | case "(($ac_try" in | |
28359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28360 | *) ac_try_echo=$ac_try;; | |
28361 | esac | |
28362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28363 | $as_echo "$ac_try_echo") >&5 | |
28364 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28365 | ac_status=$? |
3185942a | 28366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28368 | { (case "(($ac_try" in |
28369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28370 | *) ac_try_echo=$ac_try;; | |
28371 | esac | |
28372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28373 | $as_echo "$ac_try_echo") >&5 | |
28374 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28375 | ac_status=$? |
3185942a | 28376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28377 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
28378 | bash_cv_job_control_missing=present |
28379 | else | |
3185942a JA |
28380 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28381 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28382 | sed 's/^/| /' conftest.$ac_ext >&5 |
28383 | ||
b80f6443 | 28384 | ( exit $ac_status ) |
f73dda09 | 28385 | bash_cv_job_control_missing=missing |
ccc6cda3 | 28386 | fi |
3185942a JA |
28387 | rm -rf conftest.dSYM |
28388 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 28389 | fi |
3185942a JA |
28390 | |
28391 | ||
ccc6cda3 JA |
28392 | fi |
28393 | ||
3185942a JA |
28394 | { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5 |
28395 | $as_echo "$bash_cv_job_control_missing" >&6; } | |
ccc6cda3 | 28396 | if test $bash_cv_job_control_missing = missing; then |
b80f6443 | 28397 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28398 | #define JOB_CONTROL_MISSING 1 |
b80f6443 | 28399 | _ACEOF |
ccc6cda3 JA |
28400 | |
28401 | fi | |
28402 | ||
3185942a JA |
28403 | { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5 |
28404 | $as_echo_n "checking for presence of named pipes... " >&6; } | |
f73dda09 | 28405 | if test "${bash_cv_sys_named_pipes+set}" = set; then |
3185942a | 28406 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28407 | else |
28408 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28409 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 |
28410 | $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
28411 | bash_cv_sys_named_pipes=missing |
28412 | ||
ccc6cda3 | 28413 | else |
f73dda09 | 28414 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28415 | /* confdefs.h. */ |
28416 | _ACEOF | |
28417 | cat confdefs.h >>conftest.$ac_ext | |
28418 | cat >>conftest.$ac_ext <<_ACEOF | |
28419 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28420 | |
28421 | #include <sys/types.h> | |
28422 | #include <sys/stat.h> | |
28423 | #ifdef HAVE_UNISTD_H | |
28424 | #include <unistd.h> | |
28425 | #endif | |
28426 | ||
28427 | /* Add more tests in here as appropriate. */ | |
28428 | main() | |
28429 | { | |
bb70624e | 28430 | int fd, err; |
ccc6cda3 JA |
28431 | |
28432 | #if defined (HAVE_MKFIFO) | |
28433 | exit (0); | |
28434 | #endif | |
28435 | ||
28436 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) | |
28437 | exit (1); | |
28438 | #endif | |
28439 | ||
28440 | #if defined (NeXT) | |
28441 | exit (1); | |
28442 | #endif | |
3185942a | 28443 | err = mkdir("bash-aclocal", 0700); |
bb70624e JA |
28444 | if (err < 0) { |
28445 | perror ("mkdir"); | |
28446 | exit(1); | |
28447 | } | |
3185942a | 28448 | fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); |
bb70624e | 28449 | if (fd == -1) { |
3185942a | 28450 | rmdir ("bash-aclocal"); |
ccc6cda3 | 28451 | exit (1); |
bb70624e | 28452 | } |
ccc6cda3 | 28453 | close(fd); |
3185942a JA |
28454 | unlink ("bash-aclocal/sh-np-autoconf"); |
28455 | rmdir ("bash-aclocal"); | |
ccc6cda3 JA |
28456 | exit(0); |
28457 | } | |
f73dda09 JA |
28458 | _ACEOF |
28459 | rm -f conftest$ac_exeext | |
3185942a JA |
28460 | if { (ac_try="$ac_link" |
28461 | case "(($ac_try" in | |
28462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28463 | *) ac_try_echo=$ac_try;; | |
28464 | esac | |
28465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28466 | $as_echo "$ac_try_echo") >&5 | |
28467 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28468 | ac_status=$? |
3185942a | 28469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28470 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28471 | { (case "(($ac_try" in |
28472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28473 | *) ac_try_echo=$ac_try;; | |
28474 | esac | |
28475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28476 | $as_echo "$ac_try_echo") >&5 | |
28477 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28478 | ac_status=$? |
3185942a | 28479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28480 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
28481 | bash_cv_sys_named_pipes=present |
28482 | else | |
3185942a JA |
28483 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28484 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28485 | sed 's/^/| /' conftest.$ac_ext >&5 |
28486 | ||
28487 | ( exit $ac_status ) | |
28488 | bash_cv_sys_named_pipes=missing | |
28489 | fi | |
3185942a JA |
28490 | rm -rf conftest.dSYM |
28491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 28492 | fi |
3185942a JA |
28493 | |
28494 | ||
95732b49 | 28495 | fi |
95732b49 | 28496 | |
3185942a JA |
28497 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5 |
28498 | $as_echo "$bash_cv_sys_named_pipes" >&6; } | |
0628567a JA |
28499 | if test $bash_cv_sys_named_pipes = missing; then |
28500 | cat >>confdefs.h <<\_ACEOF | |
28501 | #define NAMED_PIPES_MISSING 1 | |
28502 | _ACEOF | |
28503 | ||
28504 | fi | |
28505 | ||
28506 | ||
3185942a JA |
28507 | { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
28508 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
f73dda09 | 28509 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then |
3185942a | 28510 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
28511 | else |
28512 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28513 | /* confdefs.h. */ |
28514 | _ACEOF | |
28515 | cat confdefs.h >>conftest.$ac_ext | |
28516 | cat >>conftest.$ac_ext <<_ACEOF | |
28517 | /* end confdefs.h. */ | |
f73dda09 JA |
28518 | #include <sys/types.h> |
28519 | #include <termios.h> | |
28520 | #ifdef TIOCGWINSZ | |
28521 | yes | |
28522 | #endif | |
28523 | ||
28524 | _ACEOF | |
28525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 28526 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 JA |
28527 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
28528 | else | |
28529 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
28530 | fi | |
28531 | rm -f conftest* | |
28532 | ||
28533 | fi | |
3185942a JA |
28534 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
28535 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
d166f048 | 28536 | |
f73dda09 | 28537 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
3185942a JA |
28538 | { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
28539 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
f73dda09 | 28540 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then |
3185942a | 28541 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28542 | else |
f73dda09 | 28543 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28544 | /* confdefs.h. */ |
28545 | _ACEOF | |
28546 | cat confdefs.h >>conftest.$ac_ext | |
28547 | cat >>conftest.$ac_ext <<_ACEOF | |
28548 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28549 | #include <sys/types.h> |
28550 | #include <sys/ioctl.h> | |
f73dda09 JA |
28551 | #ifdef TIOCGWINSZ |
28552 | yes | |
28553 | #endif | |
28554 | ||
28555 | _ACEOF | |
28556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 28557 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 | 28558 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
ccc6cda3 | 28559 | else |
f73dda09 | 28560 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
ccc6cda3 JA |
28561 | fi |
28562 | rm -f conftest* | |
f73dda09 | 28563 | |
ccc6cda3 | 28564 | fi |
3185942a JA |
28565 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
28566 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
f73dda09 JA |
28567 | |
28568 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then | |
ccc6cda3 | 28569 | |
b80f6443 | 28570 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28571 | #define GWINSZ_IN_SYS_IOCTL 1 |
b80f6443 | 28572 | _ACEOF |
ccc6cda3 | 28573 | |
f73dda09 | 28574 | fi |
ccc6cda3 JA |
28575 | fi |
28576 | ||
3185942a JA |
28577 | { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
28578 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
f73dda09 | 28579 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then |
3185942a | 28580 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28581 | else |
f73dda09 | 28582 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28583 | /* confdefs.h. */ |
28584 | _ACEOF | |
28585 | cat confdefs.h >>conftest.$ac_ext | |
28586 | cat >>conftest.$ac_ext <<_ACEOF | |
28587 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28588 | #include <sys/types.h> |
28589 | #include <sys/ioctl.h> | |
f73dda09 JA |
28590 | int |
28591 | main () | |
28592 | { | |
ccc6cda3 | 28593 | int x = TIOCSTAT; |
f73dda09 JA |
28594 | ; |
28595 | return 0; | |
28596 | } | |
28597 | _ACEOF | |
28598 | rm -f conftest.$ac_objext | |
3185942a JA |
28599 | if { (ac_try="$ac_compile" |
28600 | case "(($ac_try" in | |
28601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28602 | *) ac_try_echo=$ac_try;; | |
28603 | esac | |
28604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28605 | $as_echo "$ac_try_echo") >&5 | |
28606 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 28607 | ac_status=$? |
0628567a JA |
28608 | grep -v '^ *+' conftest.er1 >conftest.err |
28609 | rm -f conftest.er1 | |
28610 | cat conftest.err >&5 | |
3185942a JA |
28611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28612 | (exit $ac_status); } && { | |
28613 | test -z "$ac_c_werror_flag" || | |
28614 | test ! -s conftest.err | |
28615 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
28616 | bash_cv_tiocstat_in_ioctl=yes |
28617 | else | |
3185942a | 28618 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28619 | sed 's/^/| /' conftest.$ac_ext >&5 |
28620 | ||
3185942a | 28621 | bash_cv_tiocstat_in_ioctl=no |
ccc6cda3 | 28622 | fi |
3185942a JA |
28623 | |
28624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
28625 | fi |
28626 | ||
3185942a JA |
28627 | { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
28628 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
f73dda09 | 28629 | if test $bash_cv_tiocstat_in_ioctl = yes; then |
b80f6443 | 28630 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28631 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
b80f6443 | 28632 | _ACEOF |
ccc6cda3 JA |
28633 | |
28634 | fi | |
28635 | ||
3185942a JA |
28636 | { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
28637 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
f73dda09 | 28638 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then |
3185942a | 28639 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28640 | else |
f73dda09 | 28641 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28642 | /* confdefs.h. */ |
28643 | _ACEOF | |
28644 | cat confdefs.h >>conftest.$ac_ext | |
28645 | cat >>conftest.$ac_ext <<_ACEOF | |
28646 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28647 | #include <sys/types.h> |
28648 | #include <sys/ioctl.h> | |
f73dda09 JA |
28649 | int |
28650 | main () | |
28651 | { | |
ccc6cda3 | 28652 | int x = FIONREAD; |
f73dda09 JA |
28653 | ; |
28654 | return 0; | |
28655 | } | |
28656 | _ACEOF | |
28657 | rm -f conftest.$ac_objext | |
3185942a JA |
28658 | if { (ac_try="$ac_compile" |
28659 | case "(($ac_try" in | |
28660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28661 | *) ac_try_echo=$ac_try;; | |
28662 | esac | |
28663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28664 | $as_echo "$ac_try_echo") >&5 | |
28665 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 28666 | ac_status=$? |
0628567a JA |
28667 | grep -v '^ *+' conftest.er1 >conftest.err |
28668 | rm -f conftest.er1 | |
28669 | cat conftest.err >&5 | |
3185942a JA |
28670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28671 | (exit $ac_status); } && { | |
28672 | test -z "$ac_c_werror_flag" || | |
28673 | test ! -s conftest.err | |
28674 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
28675 | bash_cv_fionread_in_ioctl=yes |
28676 | else | |
3185942a | 28677 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28678 | sed 's/^/| /' conftest.$ac_ext >&5 |
28679 | ||
3185942a | 28680 | bash_cv_fionread_in_ioctl=no |
ccc6cda3 | 28681 | fi |
3185942a JA |
28682 | |
28683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
28684 | fi |
28685 | ||
3185942a JA |
28686 | { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
28687 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
f73dda09 | 28688 | if test $bash_cv_fionread_in_ioctl = yes; then |
b80f6443 | 28689 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28690 | #define FIONREAD_IN_SYS_IOCTL 1 |
b80f6443 | 28691 | _ACEOF |
ccc6cda3 JA |
28692 | |
28693 | fi | |
28694 | ||
b80f6443 | 28695 | |
95732b49 | 28696 | |
3185942a JA |
28697 | { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 |
28698 | $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } | |
95732b49 | 28699 | if test "${bash_cv_wcontinued_broken+set}" = set; then |
3185942a | 28700 | $as_echo_n "(cached) " >&6 |
95732b49 JA |
28701 | else |
28702 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28703 | { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 |
28704 | $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} | |
95732b49 JA |
28705 | bash_cv_wcontinued_broken=no |
28706 | ||
28707 | else | |
28708 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28709 | /* confdefs.h. */ |
28710 | _ACEOF | |
28711 | cat confdefs.h >>conftest.$ac_ext | |
28712 | cat >>conftest.$ac_ext <<_ACEOF | |
28713 | /* end confdefs.h. */ | |
95732b49 JA |
28714 | |
28715 | #include <sys/types.h> | |
28716 | #include <sys/wait.h> | |
28717 | #include <unistd.h> | |
28718 | #include <errno.h> | |
28719 | ||
28720 | #ifndef errno | |
28721 | extern int errno; | |
28722 | #endif | |
28723 | main() | |
28724 | { | |
28725 | int x; | |
28726 | ||
28727 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); | |
28728 | if (x == -1 && errno == EINVAL) | |
28729 | exit (1); | |
28730 | else | |
28731 | exit (0); | |
28732 | } | |
28733 | ||
28734 | _ACEOF | |
28735 | rm -f conftest$ac_exeext | |
3185942a JA |
28736 | if { (ac_try="$ac_link" |
28737 | case "(($ac_try" in | |
28738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28739 | *) ac_try_echo=$ac_try;; | |
28740 | esac | |
28741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28742 | $as_echo "$ac_try_echo") >&5 | |
28743 | (eval "$ac_link") 2>&5 | |
95732b49 | 28744 | ac_status=$? |
3185942a | 28745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
95732b49 | 28746 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28747 | { (case "(($ac_try" in |
28748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28749 | *) ac_try_echo=$ac_try;; | |
28750 | esac | |
28751 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28752 | $as_echo "$ac_try_echo") >&5 | |
28753 | (eval "$ac_try") 2>&5 | |
95732b49 | 28754 | ac_status=$? |
3185942a | 28755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
95732b49 JA |
28756 | (exit $ac_status); }; }; then |
28757 | bash_cv_wcontinued_broken=no | |
28758 | else | |
3185942a JA |
28759 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28760 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28761 | sed 's/^/| /' conftest.$ac_ext >&5 |
28762 | ||
95732b49 JA |
28763 | ( exit $ac_status ) |
28764 | bash_cv_wcontinued_broken=yes | |
28765 | fi | |
3185942a JA |
28766 | rm -rf conftest.dSYM |
28767 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 28768 | fi |
3185942a JA |
28769 | |
28770 | ||
95732b49 JA |
28771 | fi |
28772 | ||
3185942a JA |
28773 | { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5 |
28774 | $as_echo "$bash_cv_wcontinued_broken" >&6; } | |
95732b49 JA |
28775 | if test $bash_cv_wcontinued_broken = yes; then |
28776 | cat >>confdefs.h <<\_ACEOF | |
28777 | #define WCONTINUED_BROKEN 1 | |
28778 | _ACEOF | |
28779 | ||
28780 | fi | |
28781 | ||
28782 | ||
3185942a JA |
28783 | { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
28784 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
f73dda09 | 28785 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then |
3185942a | 28786 | $as_echo_n "(cached) " >&6 |
d166f048 | 28787 | else |
f73dda09 | 28788 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28789 | /* confdefs.h. */ |
28790 | _ACEOF | |
28791 | cat confdefs.h >>conftest.$ac_ext | |
28792 | cat >>conftest.$ac_ext <<_ACEOF | |
28793 | /* end confdefs.h. */ | |
d166f048 | 28794 | #include <sys/types.h> |
f73dda09 JA |
28795 | int |
28796 | main () | |
28797 | { | |
d166f048 | 28798 | speed_t x; |
f73dda09 JA |
28799 | ; |
28800 | return 0; | |
28801 | } | |
28802 | _ACEOF | |
28803 | rm -f conftest.$ac_objext | |
3185942a JA |
28804 | if { (ac_try="$ac_compile" |
28805 | case "(($ac_try" in | |
28806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28807 | *) ac_try_echo=$ac_try;; | |
28808 | esac | |
28809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28810 | $as_echo "$ac_try_echo") >&5 | |
28811 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 28812 | ac_status=$? |
0628567a JA |
28813 | grep -v '^ *+' conftest.er1 >conftest.err |
28814 | rm -f conftest.er1 | |
28815 | cat conftest.err >&5 | |
3185942a JA |
28816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28817 | (exit $ac_status); } && { | |
28818 | test -z "$ac_c_werror_flag" || | |
28819 | test ! -s conftest.err | |
28820 | } && test -s conftest.$ac_objext; then | |
d166f048 JA |
28821 | bash_cv_speed_t_in_sys_types=yes |
28822 | else | |
3185942a | 28823 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28824 | sed 's/^/| /' conftest.$ac_ext >&5 |
28825 | ||
3185942a | 28826 | bash_cv_speed_t_in_sys_types=no |
d166f048 | 28827 | fi |
3185942a JA |
28828 | |
28829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
28830 | fi |
28831 | ||
3185942a JA |
28832 | { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
28833 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
f73dda09 | 28834 | if test $bash_cv_speed_t_in_sys_types = yes; then |
b80f6443 | 28835 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 28836 | #define SPEED_T_IN_SYS_TYPES 1 |
b80f6443 | 28837 | _ACEOF |
d166f048 JA |
28838 | |
28839 | fi | |
28840 | ||
3185942a JA |
28841 | { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 |
28842 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
f73dda09 | 28843 | if test "${bash_cv_getpw_declared+set}" = set; then |
3185942a | 28844 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28845 | else |
f73dda09 | 28846 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28847 | /* confdefs.h. */ |
28848 | _ACEOF | |
28849 | cat confdefs.h >>conftest.$ac_ext | |
28850 | cat >>conftest.$ac_ext <<_ACEOF | |
28851 | /* end confdefs.h. */ | |
28ef6c31 | 28852 | |
ccc6cda3 | 28853 | #include <sys/types.h> |
28ef6c31 JA |
28854 | #ifdef HAVE_UNISTD_H |
28855 | # include <unistd.h> | |
28856 | #endif | |
ccc6cda3 | 28857 | #include <pwd.h> |
28ef6c31 | 28858 | |
f73dda09 | 28859 | _ACEOF |
28ef6c31 | 28860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 28861 | $EGREP "getpwuid" >/dev/null 2>&1; then |
28ef6c31 | 28862 | bash_cv_getpw_declared=yes |
ccc6cda3 | 28863 | else |
28ef6c31 | 28864 | bash_cv_getpw_declared=no |
ccc6cda3 JA |
28865 | fi |
28866 | rm -f conftest* | |
28ef6c31 | 28867 | |
ccc6cda3 JA |
28868 | fi |
28869 | ||
3185942a JA |
28870 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
28871 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
28ef6c31 | 28872 | if test $bash_cv_getpw_declared = yes; then |
b80f6443 | 28873 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28874 | #define HAVE_GETPW_DECLS 1 |
b80f6443 | 28875 | _ACEOF |
ccc6cda3 JA |
28876 | |
28877 | fi | |
28878 | ||
3185942a JA |
28879 | { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5 |
28880 | $as_echo_n "checking for unusable real-time signals due to large values... " >&6; } | |
f73dda09 | 28881 | if test "${bash_cv_unusable_rtsigs+set}" = set; then |
3185942a | 28882 | $as_echo_n "(cached) " >&6 |
28ef6c31 JA |
28883 | else |
28884 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28885 | { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 |
28886 | $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} | |
28ef6c31 JA |
28887 | bash_cv_unusable_rtsigs=yes |
28888 | ||
28889 | else | |
f73dda09 | 28890 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28891 | /* confdefs.h. */ |
28892 | _ACEOF | |
28893 | cat confdefs.h >>conftest.$ac_ext | |
28894 | cat >>conftest.$ac_ext <<_ACEOF | |
28895 | /* end confdefs.h. */ | |
28ef6c31 JA |
28896 | |
28897 | #include <sys/types.h> | |
28898 | #include <signal.h> | |
28899 | ||
28900 | #ifndef NSIG | |
28901 | # define NSIG 64 | |
28902 | #endif | |
28903 | ||
28904 | main () | |
28905 | { | |
28906 | int n_sigs = 2 * NSIG; | |
28907 | #ifdef SIGRTMIN | |
28908 | int rtmin = SIGRTMIN; | |
28909 | #else | |
28910 | int rtmin = 0; | |
28911 | #endif | |
28912 | ||
28913 | exit(rtmin < n_sigs); | |
28914 | } | |
f73dda09 JA |
28915 | _ACEOF |
28916 | rm -f conftest$ac_exeext | |
3185942a JA |
28917 | if { (ac_try="$ac_link" |
28918 | case "(($ac_try" in | |
28919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28920 | *) ac_try_echo=$ac_try;; | |
28921 | esac | |
28922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28923 | $as_echo "$ac_try_echo") >&5 | |
28924 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28925 | ac_status=$? |
3185942a | 28926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28928 | { (case "(($ac_try" in |
28929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28930 | *) ac_try_echo=$ac_try;; | |
28931 | esac | |
28932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28933 | $as_echo "$ac_try_echo") >&5 | |
28934 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28935 | ac_status=$? |
3185942a | 28936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28937 | (exit $ac_status); }; }; then |
28ef6c31 JA |
28938 | bash_cv_unusable_rtsigs=yes |
28939 | else | |
3185942a JA |
28940 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28941 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28942 | sed 's/^/| /' conftest.$ac_ext >&5 |
28943 | ||
b80f6443 | 28944 | ( exit $ac_status ) |
f73dda09 | 28945 | bash_cv_unusable_rtsigs=no |
28ef6c31 | 28946 | fi |
3185942a JA |
28947 | rm -rf conftest.dSYM |
28948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
28ef6c31 | 28949 | fi |
3185942a JA |
28950 | |
28951 | ||
28ef6c31 JA |
28952 | fi |
28953 | ||
3185942a JA |
28954 | { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5 |
28955 | $as_echo "$bash_cv_unusable_rtsigs" >&6; } | |
28ef6c31 | 28956 | if test $bash_cv_unusable_rtsigs = yes; then |
b80f6443 | 28957 | cat >>confdefs.h <<\_ACEOF |
28ef6c31 | 28958 | #define UNUSABLE_RT_SIGNALS 1 |
b80f6443 | 28959 | _ACEOF |
28ef6c31 JA |
28960 | |
28961 | fi | |
28962 | ||
b80f6443 JA |
28963 | |
28964 | ||
28965 | ||
28966 | ||
f73dda09 JA |
28967 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then |
28968 | SIGLIST_O=siglist.o | |
28969 | else | |
28970 | SIGLIST_O= | |
28971 | fi | |
ccc6cda3 | 28972 | |
b80f6443 JA |
28973 | |
28974 | ||
ccc6cda3 | 28975 | case "$host_os" in |
3185942a JA |
28976 | hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 |
28977 | $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } | |
f73dda09 | 28978 | if test "${bash_cv_kernel_rlimit+set}" = set; then |
3185942a | 28979 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28980 | else |
f73dda09 | 28981 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28982 | /* confdefs.h. */ |
28983 | _ACEOF | |
28984 | cat confdefs.h >>conftest.$ac_ext | |
28985 | cat >>conftest.$ac_ext <<_ACEOF | |
28986 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28987 | |
28988 | #include <sys/types.h> | |
28989 | #include <sys/resource.h> | |
28990 | ||
f73dda09 JA |
28991 | int |
28992 | main () | |
28993 | { | |
ccc6cda3 JA |
28994 | |
28995 | int f; | |
28996 | f = RLIMIT_DATA; | |
28997 | ||
f73dda09 JA |
28998 | ; |
28999 | return 0; | |
29000 | } | |
29001 | _ACEOF | |
29002 | rm -f conftest.$ac_objext | |
3185942a JA |
29003 | if { (ac_try="$ac_compile" |
29004 | case "(($ac_try" in | |
29005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29006 | *) ac_try_echo=$ac_try;; | |
29007 | esac | |
29008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29009 | $as_echo "$ac_try_echo") >&5 | |
29010 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 29011 | ac_status=$? |
0628567a JA |
29012 | grep -v '^ *+' conftest.er1 >conftest.err |
29013 | rm -f conftest.er1 | |
29014 | cat conftest.err >&5 | |
3185942a JA |
29015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29016 | (exit $ac_status); } && { | |
29017 | test -z "$ac_c_werror_flag" || | |
29018 | test ! -s conftest.err | |
29019 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
29020 | bash_cv_kernel_rlimit=no |
29021 | else | |
3185942a | 29022 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29023 | sed 's/^/| /' conftest.$ac_ext >&5 |
29024 | ||
3185942a | 29025 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29026 | /* confdefs.h. */ |
29027 | _ACEOF | |
29028 | cat confdefs.h >>conftest.$ac_ext | |
29029 | cat >>conftest.$ac_ext <<_ACEOF | |
29030 | /* end confdefs.h. */ | |
ccc6cda3 | 29031 | |
cce855bc JA |
29032 | #include <sys/types.h> |
29033 | #define _KERNEL | |
29034 | #include <sys/resource.h> | |
29035 | #undef _KERNEL | |
29036 | ||
f73dda09 JA |
29037 | int |
29038 | main () | |
29039 | { | |
ccc6cda3 JA |
29040 | |
29041 | int f; | |
29042 | f = RLIMIT_DATA; | |
cce855bc | 29043 | |
f73dda09 JA |
29044 | ; |
29045 | return 0; | |
29046 | } | |
29047 | _ACEOF | |
29048 | rm -f conftest.$ac_objext | |
3185942a JA |
29049 | if { (ac_try="$ac_compile" |
29050 | case "(($ac_try" in | |
29051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29052 | *) ac_try_echo=$ac_try;; | |
29053 | esac | |
29054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29055 | $as_echo "$ac_try_echo") >&5 | |
29056 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 29057 | ac_status=$? |
0628567a JA |
29058 | grep -v '^ *+' conftest.er1 >conftest.err |
29059 | rm -f conftest.er1 | |
29060 | cat conftest.err >&5 | |
3185942a JA |
29061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29062 | (exit $ac_status); } && { | |
29063 | test -z "$ac_c_werror_flag" || | |
29064 | test ! -s conftest.err | |
29065 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
29066 | bash_cv_kernel_rlimit=yes |
29067 | else | |
3185942a | 29068 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29069 | sed 's/^/| /' conftest.$ac_ext >&5 |
29070 | ||
3185942a | 29071 | bash_cv_kernel_rlimit=no |
ccc6cda3 | 29072 | fi |
3185942a JA |
29073 | |
29074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
29075 | |
29076 | fi | |
3185942a JA |
29077 | |
29078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
29079 | fi |
29080 | ||
3185942a JA |
29081 | { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5 |
29082 | $as_echo "$bash_cv_kernel_rlimit" >&6; } | |
ccc6cda3 | 29083 | if test $bash_cv_kernel_rlimit = yes; then |
b80f6443 | 29084 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29085 | #define RLIMIT_NEEDS_KERNEL 1 |
b80f6443 | 29086 | _ACEOF |
ccc6cda3 JA |
29087 | |
29088 | fi | |
29089 | ;; | |
29090 | esac | |
29091 | ||
29092 | if test "$opt_readline" = yes; then | |
d166f048 JA |
29093 | case "$host_os" in |
29094 | aix*) prefer_curses=yes ;; | |
29095 | esac | |
ccc6cda3 JA |
29096 | |
29097 | if test "X$bash_cv_termcap_lib" = "X"; then | |
29098 | _bash_needmsg=yes | |
29099 | else | |
3185942a JA |
29100 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
29101 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
ccc6cda3 JA |
29102 | _bash_needmsg= |
29103 | fi | |
f73dda09 | 29104 | if test "${bash_cv_termcap_lib+set}" = set; then |
3185942a | 29105 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 29106 | else |
3185942a JA |
29107 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
29108 | $as_echo_n "checking for tgetent... " >&6; } | |
b80f6443 | 29109 | if test "${ac_cv_func_tgetent+set}" = set; then |
3185942a | 29110 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
29111 | else |
29112 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29113 | /* confdefs.h. */ |
29114 | _ACEOF | |
29115 | cat confdefs.h >>conftest.$ac_ext | |
29116 | cat >>conftest.$ac_ext <<_ACEOF | |
29117 | /* end confdefs.h. */ | |
29118 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
29119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29120 | #define tgetent innocuous_tgetent | |
29121 | ||
b80f6443 | 29122 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
29123 | which can conflict with char tgetent (); below. |
29124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29125 | <limits.h> exists even on freestanding compilers. */ | |
29126 | ||
29127 | #ifdef __STDC__ | |
29128 | # include <limits.h> | |
29129 | #else | |
29130 | # include <assert.h> | |
29131 | #endif | |
29132 | ||
29133 | #undef tgetent | |
29134 | ||
3185942a JA |
29135 | /* Override any GCC internal prototype to avoid an error. |
29136 | Use char because int might match the return type of a GCC | |
29137 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
29138 | #ifdef __cplusplus |
29139 | extern "C" | |
b80f6443 | 29140 | #endif |
b80f6443 JA |
29141 | char tgetent (); |
29142 | /* The GNU C library defines this for functions which it implements | |
29143 | to always fail with ENOSYS. Some functions are actually named | |
29144 | something starting with __ and the normal name is an alias. */ | |
3185942a | 29145 | #if defined __stub_tgetent || defined __stub___tgetent |
b80f6443 | 29146 | choke me |
b80f6443 JA |
29147 | #endif |
29148 | ||
0628567a JA |
29149 | int |
29150 | main () | |
29151 | { | |
3185942a | 29152 | return tgetent (); |
b80f6443 JA |
29153 | ; |
29154 | return 0; | |
29155 | } | |
29156 | _ACEOF | |
29157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29158 | if { (ac_try="$ac_link" |
29159 | case "(($ac_try" in | |
29160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29161 | *) ac_try_echo=$ac_try;; | |
29162 | esac | |
29163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29164 | $as_echo "$ac_try_echo") >&5 | |
29165 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 29166 | ac_status=$? |
0628567a JA |
29167 | grep -v '^ *+' conftest.er1 >conftest.err |
29168 | rm -f conftest.er1 | |
29169 | cat conftest.err >&5 | |
3185942a JA |
29170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29171 | (exit $ac_status); } && { | |
29172 | test -z "$ac_c_werror_flag" || | |
29173 | test ! -s conftest.err | |
29174 | } && test -s conftest$ac_exeext && { | |
29175 | test "$cross_compiling" = yes || | |
29176 | $as_test_x conftest$ac_exeext | |
29177 | }; then | |
b80f6443 JA |
29178 | ac_cv_func_tgetent=yes |
29179 | else | |
3185942a | 29180 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29181 | sed 's/^/| /' conftest.$ac_ext >&5 |
29182 | ||
3185942a | 29183 | ac_cv_func_tgetent=no |
b80f6443 | 29184 | fi |
3185942a JA |
29185 | |
29186 | rm -rf conftest.dSYM | |
29187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29188 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 29189 | fi |
3185942a JA |
29190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
29191 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
29192 | if test "x$ac_cv_func_tgetent" = x""yes; then | |
b80f6443 JA |
29193 | bash_cv_termcap_lib=libc |
29194 | else | |
3185942a JA |
29195 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
29196 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
f73dda09 | 29197 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
3185942a | 29198 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 29199 | else |
f73dda09 | 29200 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 29201 | LIBS="-ltermcap $LIBS" |
f73dda09 | 29202 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29203 | /* confdefs.h. */ |
29204 | _ACEOF | |
29205 | cat confdefs.h >>conftest.$ac_ext | |
29206 | cat >>conftest.$ac_ext <<_ACEOF | |
29207 | /* end confdefs.h. */ | |
f73dda09 | 29208 | |
3185942a JA |
29209 | /* Override any GCC internal prototype to avoid an error. |
29210 | Use char because int might match the return type of a GCC | |
29211 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
29212 | #ifdef __cplusplus |
29213 | extern "C" | |
29214 | #endif | |
f73dda09 JA |
29215 | char tgetent (); |
29216 | int | |
29217 | main () | |
29218 | { | |
3185942a | 29219 | return tgetent (); |
f73dda09 JA |
29220 | ; |
29221 | return 0; | |
29222 | } | |
29223 | _ACEOF | |
29224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29225 | if { (ac_try="$ac_link" |
29226 | case "(($ac_try" in | |
29227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29228 | *) ac_try_echo=$ac_try;; | |
29229 | esac | |
29230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29231 | $as_echo "$ac_try_echo") >&5 | |
29232 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 29233 | ac_status=$? |
0628567a JA |
29234 | grep -v '^ *+' conftest.er1 >conftest.err |
29235 | rm -f conftest.er1 | |
29236 | cat conftest.err >&5 | |
3185942a JA |
29237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29238 | (exit $ac_status); } && { | |
29239 | test -z "$ac_c_werror_flag" || | |
29240 | test ! -s conftest.err | |
29241 | } && test -s conftest$ac_exeext && { | |
29242 | test "$cross_compiling" = yes || | |
29243 | $as_test_x conftest$ac_exeext | |
29244 | }; then | |
f73dda09 JA |
29245 | ac_cv_lib_termcap_tgetent=yes |
29246 | else | |
3185942a | 29247 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29248 | sed 's/^/| /' conftest.$ac_ext >&5 |
29249 | ||
3185942a | 29250 | ac_cv_lib_termcap_tgetent=no |
f73dda09 | 29251 | fi |
3185942a JA |
29252 | |
29253 | rm -rf conftest.dSYM | |
29254 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29255 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
29256 | LIBS=$ac_check_lib_save_LIBS |
29257 | fi | |
3185942a JA |
29258 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
29259 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
29260 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then | |
ccc6cda3 JA |
29261 | bash_cv_termcap_lib=libtermcap |
29262 | else | |
3185942a JA |
29263 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
29264 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
f73dda09 | 29265 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
3185942a | 29266 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 29267 | else |
f73dda09 JA |
29268 | ac_check_lib_save_LIBS=$LIBS |
29269 | LIBS="-ltinfo $LIBS" | |
29270 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29271 | /* confdefs.h. */ |
29272 | _ACEOF | |
29273 | cat confdefs.h >>conftest.$ac_ext | |
29274 | cat >>conftest.$ac_ext <<_ACEOF | |
29275 | /* end confdefs.h. */ | |
f73dda09 | 29276 | |
3185942a JA |
29277 | /* Override any GCC internal prototype to avoid an error. |
29278 | Use char because int might match the return type of a GCC | |
29279 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
29280 | #ifdef __cplusplus |
29281 | extern "C" | |
29282 | #endif | |
f73dda09 JA |
29283 | char tgetent (); |
29284 | int | |
29285 | main () | |
29286 | { | |
3185942a | 29287 | return tgetent (); |
f73dda09 JA |
29288 | ; |
29289 | return 0; | |
29290 | } | |
29291 | _ACEOF | |
29292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29293 | if { (ac_try="$ac_link" |
29294 | case "(($ac_try" in | |
29295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29296 | *) ac_try_echo=$ac_try;; | |
29297 | esac | |
29298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29299 | $as_echo "$ac_try_echo") >&5 | |
29300 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 29301 | ac_status=$? |
0628567a JA |
29302 | grep -v '^ *+' conftest.er1 >conftest.err |
29303 | rm -f conftest.er1 | |
29304 | cat conftest.err >&5 | |
3185942a JA |
29305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29306 | (exit $ac_status); } && { | |
29307 | test -z "$ac_c_werror_flag" || | |
29308 | test ! -s conftest.err | |
29309 | } && test -s conftest$ac_exeext && { | |
29310 | test "$cross_compiling" = yes || | |
29311 | $as_test_x conftest$ac_exeext | |
29312 | }; then | |
f73dda09 JA |
29313 | ac_cv_lib_tinfo_tgetent=yes |
29314 | else | |
3185942a | 29315 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29316 | sed 's/^/| /' conftest.$ac_ext >&5 |
29317 | ||
3185942a | 29318 | ac_cv_lib_tinfo_tgetent=no |
f73dda09 | 29319 | fi |
3185942a JA |
29320 | |
29321 | rm -rf conftest.dSYM | |
29322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29323 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
29324 | LIBS=$ac_check_lib_save_LIBS |
29325 | fi | |
3185942a JA |
29326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
29327 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
29328 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then | |
7117c2d2 | 29329 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 29330 | else |
3185942a JA |
29331 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
29332 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
f73dda09 | 29333 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
3185942a | 29334 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
29335 | else |
29336 | ac_check_lib_save_LIBS=$LIBS | |
29337 | LIBS="-lcurses $LIBS" | |
29338 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29339 | /* confdefs.h. */ |
29340 | _ACEOF | |
29341 | cat confdefs.h >>conftest.$ac_ext | |
29342 | cat >>conftest.$ac_ext <<_ACEOF | |
29343 | /* end confdefs.h. */ | |
ccc6cda3 | 29344 | |
3185942a JA |
29345 | /* Override any GCC internal prototype to avoid an error. |
29346 | Use char because int might match the return type of a GCC | |
29347 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
29348 | #ifdef __cplusplus |
29349 | extern "C" | |
29350 | #endif | |
f73dda09 JA |
29351 | char tgetent (); |
29352 | int | |
29353 | main () | |
29354 | { | |
3185942a | 29355 | return tgetent (); |
f73dda09 JA |
29356 | ; |
29357 | return 0; | |
29358 | } | |
29359 | _ACEOF | |
29360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29361 | if { (ac_try="$ac_link" |
29362 | case "(($ac_try" in | |
29363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29364 | *) ac_try_echo=$ac_try;; | |
29365 | esac | |
29366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29367 | $as_echo "$ac_try_echo") >&5 | |
29368 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 29369 | ac_status=$? |
0628567a JA |
29370 | grep -v '^ *+' conftest.er1 >conftest.err |
29371 | rm -f conftest.er1 | |
29372 | cat conftest.err >&5 | |
3185942a JA |
29373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29374 | (exit $ac_status); } && { | |
29375 | test -z "$ac_c_werror_flag" || | |
29376 | test ! -s conftest.err | |
29377 | } && test -s conftest$ac_exeext && { | |
29378 | test "$cross_compiling" = yes || | |
29379 | $as_test_x conftest$ac_exeext | |
29380 | }; then | |
f73dda09 JA |
29381 | ac_cv_lib_curses_tgetent=yes |
29382 | else | |
3185942a | 29383 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29384 | sed 's/^/| /' conftest.$ac_ext >&5 |
29385 | ||
3185942a | 29386 | ac_cv_lib_curses_tgetent=no |
f73dda09 | 29387 | fi |
3185942a JA |
29388 | |
29389 | rm -rf conftest.dSYM | |
29390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29391 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
29392 | LIBS=$ac_check_lib_save_LIBS |
29393 | fi | |
3185942a JA |
29394 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
29395 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
29396 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then | |
ccc6cda3 JA |
29397 | bash_cv_termcap_lib=libcurses |
29398 | else | |
3185942a JA |
29399 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
29400 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
f73dda09 | 29401 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
3185942a | 29402 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 29403 | else |
f73dda09 | 29404 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 29405 | LIBS="-lncurses $LIBS" |
f73dda09 | 29406 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29407 | /* confdefs.h. */ |
29408 | _ACEOF | |
29409 | cat confdefs.h >>conftest.$ac_ext | |
29410 | cat >>conftest.$ac_ext <<_ACEOF | |
29411 | /* end confdefs.h. */ | |
f73dda09 | 29412 | |
3185942a JA |
29413 | /* Override any GCC internal prototype to avoid an error. |
29414 | Use char because int might match the return type of a GCC | |
29415 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
29416 | #ifdef __cplusplus |
29417 | extern "C" | |
29418 | #endif | |
f73dda09 JA |
29419 | char tgetent (); |
29420 | int | |
29421 | main () | |
29422 | { | |
3185942a | 29423 | return tgetent (); |
f73dda09 JA |
29424 | ; |
29425 | return 0; | |
29426 | } | |
29427 | _ACEOF | |
29428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29429 | if { (ac_try="$ac_link" |
29430 | case "(($ac_try" in | |
29431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29432 | *) ac_try_echo=$ac_try;; | |
29433 | esac | |
29434 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29435 | $as_echo "$ac_try_echo") >&5 | |
29436 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 29437 | ac_status=$? |
0628567a JA |
29438 | grep -v '^ *+' conftest.er1 >conftest.err |
29439 | rm -f conftest.er1 | |
29440 | cat conftest.err >&5 | |
3185942a JA |
29441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29442 | (exit $ac_status); } && { | |
29443 | test -z "$ac_c_werror_flag" || | |
29444 | test ! -s conftest.err | |
29445 | } && test -s conftest$ac_exeext && { | |
29446 | test "$cross_compiling" = yes || | |
29447 | $as_test_x conftest$ac_exeext | |
29448 | }; then | |
f73dda09 JA |
29449 | ac_cv_lib_ncurses_tgetent=yes |
29450 | else | |
3185942a | 29451 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29452 | sed 's/^/| /' conftest.$ac_ext >&5 |
29453 | ||
3185942a | 29454 | ac_cv_lib_ncurses_tgetent=no |
f73dda09 | 29455 | fi |
3185942a JA |
29456 | |
29457 | rm -rf conftest.dSYM | |
29458 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29459 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
29460 | LIBS=$ac_check_lib_save_LIBS |
29461 | fi | |
3185942a JA |
29462 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
29463 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
29464 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then | |
f73dda09 | 29465 | bash_cv_termcap_lib=libncurses |
ccc6cda3 | 29466 | else |
f73dda09 | 29467 | bash_cv_termcap_lib=gnutermcap |
ccc6cda3 | 29468 | fi |
ccc6cda3 | 29469 | |
ccc6cda3 JA |
29470 | fi |
29471 | ||
29472 | fi | |
29473 | ||
29474 | fi | |
29475 | ||
29476 | fi | |
29477 | ||
b80f6443 JA |
29478 | fi |
29479 | ||
ccc6cda3 | 29480 | if test "X$_bash_needmsg" = "Xyes"; then |
3185942a JA |
29481 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
29482 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
ccc6cda3 | 29483 | fi |
3185942a JA |
29484 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
29485 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
cce855bc | 29486 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
29487 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
29488 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
29489 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
d166f048 | 29490 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
29491 | TERMCAP_LIB=-ltermcap |
29492 | TERMCAP_DEP= | |
f73dda09 JA |
29493 | elif test $bash_cv_termcap_lib = libtinfo; then |
29494 | TERMCAP_LIB=-ltinfo | |
29495 | TERMCAP_DEP= | |
ccc6cda3 JA |
29496 | elif test $bash_cv_termcap_lib = libncurses; then |
29497 | TERMCAP_LIB=-lncurses | |
29498 | TERMCAP_DEP= | |
b80f6443 JA |
29499 | elif test $bash_cv_termcap_lib = libc; then |
29500 | TERMCAP_LIB= | |
29501 | TERMCAP_DEP= | |
ccc6cda3 JA |
29502 | else |
29503 | TERMCAP_LIB=-lcurses | |
29504 | TERMCAP_DEP= | |
29505 | fi | |
29506 | ||
29507 | fi | |
29508 | ||
b80f6443 JA |
29509 | |
29510 | ||
3185942a JA |
29511 | { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 |
29512 | $as_echo_n "checking whether /dev/fd is available... " >&6; } | |
f73dda09 | 29513 | if test "${bash_cv_dev_fd+set}" = set; then |
3185942a | 29514 | $as_echo_n "(cached) " >&6 |
d166f048 | 29515 | else |
0628567a | 29516 | bash_cv_dev_fd="" |
3185942a | 29517 | if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then |
95732b49 | 29518 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] |
3185942a | 29519 | if (exec test -r /dev/fd/3 3</dev/null) ; then |
95732b49 JA |
29520 | bash_cv_dev_fd=standard |
29521 | else | |
29522 | bash_cv_dev_fd=absent | |
29523 | fi | |
0628567a JA |
29524 | fi |
29525 | if test -z "$bash_cv_dev_fd" ; then | |
3185942a | 29526 | if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then |
0628567a JA |
29527 | bash_cv_dev_fd=whacky |
29528 | else | |
29529 | bash_cv_dev_fd=absent | |
29530 | fi | |
29531 | fi | |
d166f048 JA |
29532 | |
29533 | fi | |
29534 | ||
3185942a JA |
29535 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5 |
29536 | $as_echo "$bash_cv_dev_fd" >&6; } | |
d166f048 | 29537 | if test $bash_cv_dev_fd = "standard"; then |
b80f6443 | 29538 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 29539 | #define HAVE_DEV_FD 1 |
b80f6443 | 29540 | _ACEOF |
d166f048 | 29541 | |
b80f6443 | 29542 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 29543 | #define DEV_FD_PREFIX "/dev/fd/" |
b80f6443 | 29544 | _ACEOF |
d166f048 JA |
29545 | |
29546 | elif test $bash_cv_dev_fd = "whacky"; then | |
b80f6443 | 29547 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 29548 | #define HAVE_DEV_FD 1 |
b80f6443 | 29549 | _ACEOF |
d166f048 | 29550 | |
b80f6443 | 29551 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 29552 | #define DEV_FD_PREFIX "/proc/self/fd/" |
b80f6443 | 29553 | _ACEOF |
d166f048 JA |
29554 | |
29555 | fi | |
29556 | ||
3185942a JA |
29557 | { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5 |
29558 | $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } | |
f73dda09 | 29559 | if test "${bash_cv_dev_stdin+set}" = set; then |
3185942a | 29560 | $as_echo_n "(cached) " >&6 |
bb70624e | 29561 | else |
3185942a | 29562 | if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then |
bb70624e | 29563 | bash_cv_dev_stdin=present |
3185942a | 29564 | elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then |
bb70624e JA |
29565 | bash_cv_dev_stdin=present |
29566 | else | |
29567 | bash_cv_dev_stdin=absent | |
29568 | fi | |
29569 | ||
29570 | fi | |
29571 | ||
3185942a JA |
29572 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5 |
29573 | $as_echo "$bash_cv_dev_stdin" >&6; } | |
bb70624e | 29574 | if test $bash_cv_dev_stdin = "present"; then |
b80f6443 | 29575 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 29576 | #define HAVE_DEV_STDIN 1 |
b80f6443 | 29577 | _ACEOF |
bb70624e JA |
29578 | |
29579 | fi | |
29580 | ||
3185942a JA |
29581 | { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5 |
29582 | $as_echo_n "checking for default mail directory... " >&6; } | |
f73dda09 | 29583 | if test "${bash_cv_mail_dir+set}" = set; then |
3185942a | 29584 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
29585 | else |
29586 | if test -d /var/mail; then | |
29587 | bash_cv_mail_dir=/var/mail | |
ccc6cda3 JA |
29588 | elif test -d /var/spool/mail; then |
29589 | bash_cv_mail_dir=/var/spool/mail | |
7117c2d2 JA |
29590 | elif test -d /usr/mail; then |
29591 | bash_cv_mail_dir=/usr/mail | |
e8ce775d JA |
29592 | elif test -d /usr/spool/mail; then |
29593 | bash_cv_mail_dir=/usr/spool/mail | |
ccc6cda3 JA |
29594 | else |
29595 | bash_cv_mail_dir=unknown | |
29596 | fi | |
29597 | ||
29598 | fi | |
29599 | ||
3185942a JA |
29600 | { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5 |
29601 | $as_echo "$bash_cv_mail_dir" >&6; } | |
b80f6443 JA |
29602 | cat >>confdefs.h <<_ACEOF |
29603 | #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" | |
29604 | _ACEOF | |
29605 | ||
29606 | ||
ccc6cda3 | 29607 | |
ccc6cda3 JA |
29608 | if test "$bash_cv_job_control_missing" = missing; then |
29609 | opt_job_control=no | |
29610 | fi | |
29611 | ||
29612 | if test "$opt_job_control" = yes; then | |
b80f6443 | 29613 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29614 | #define JOB_CONTROL 1 |
b80f6443 | 29615 | _ACEOF |
ccc6cda3 JA |
29616 | |
29617 | JOBS_O=jobs.o | |
29618 | else | |
29619 | JOBS_O=nojobs.o | |
29620 | fi | |
29621 | ||
b80f6443 JA |
29622 | |
29623 | ||
29624 | ||
d166f048 JA |
29625 | LOCAL_DEFS=-DSHELL |
29626 | ||
b80f6443 | 29627 | |
b72432fd | 29628 | case "${host_os}" in |
b80f6443 | 29629 | sysv4.2*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29630 | #define SVR4_2 1 |
b80f6443 | 29631 | _ACEOF |
ccc6cda3 | 29632 | |
b80f6443 | 29633 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29634 | #define SVR4 1 |
b80f6443 | 29635 | _ACEOF |
ccc6cda3 | 29636 | ;; |
b80f6443 | 29637 | sysv4*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29638 | #define SVR4 1 |
b80f6443 | 29639 | _ACEOF |
ccc6cda3 | 29640 | ;; |
b80f6443 | 29641 | sysv5*) cat >>confdefs.h <<\_ACEOF |
b72432fd | 29642 | #define SVR5 1 |
b80f6443 | 29643 | _ACEOF |
b72432fd JA |
29644 | ;; |
29645 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; | |
ccc6cda3 JA |
29646 | hpux*) LOCAL_CFLAGS=-DHPUX ;; |
29647 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; | |
bb70624e JA |
29648 | isc*) LOCAL_CFLAGS=-Disc386 ;; |
29649 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; | |
f73dda09 | 29650 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; |
7117c2d2 JA |
29651 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; |
29652 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; | |
ccc6cda3 | 29653 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; |
d166f048 | 29654 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; |
f1be666c | 29655 | solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; |
3185942a JA |
29656 | solaris2.8*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;; |
29657 | solaris2.9*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;; | |
29658 | solaris2.10*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;; | |
f1be666c | 29659 | solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; |
b72432fd | 29660 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
95732b49 JA |
29661 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
29662 | case "`uname -r`" in | |
29663 | 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF | |
29664 | #define PGRP_PIPE 1 | |
29665 | _ACEOF | |
29666 | ;; | |
29667 | esac ;; | |
29668 | *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; | |
7117c2d2 | 29669 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; |
b72432fd | 29670 | powerux*) LOCAL_LIBS="-lgen" ;; |
b80f6443 | 29671 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
95732b49 | 29672 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; |
b72432fd JA |
29673 | esac |
29674 | ||
29675 | case "${host_os}-${CC}" in | |
29676 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; | |
29677 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; | |
29678 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux | |
ccc6cda3 JA |
29679 | esac |
29680 | ||
bb70624e | 29681 | case "${host_os}" in |
28ef6c31 JA |
29682 | freebsd[3-9]*) |
29683 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then | |
bb70624e JA |
29684 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
29685 | fi ;; | |
28ef6c31 | 29686 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
95732b49 | 29687 | dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
bb70624e JA |
29688 | esac |
29689 | ||
ccc6cda3 JA |
29690 | case "$host_cpu" in |
29691 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it | |
29692 | esac | |
29693 | ||
29694 | case "$host_cpu-$host_os" in | |
29695 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; | |
29696 | esac | |
29697 | ||
29698 | case "$host_cpu-$host_vendor-$host_os" in | |
29699 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; | |
29700 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; | |
29701 | esac | |
29702 | ||
b72432fd JA |
29703 | # |
29704 | # Shared object configuration section. These values are generated by | |
29705 | # ${srcdir}/support/shobj-conf | |
29706 | # | |
29707 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf | |
29708 | then | |
3185942a JA |
29709 | { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5 |
29710 | $as_echo_n "checking shared object configuration for loadable builtins... " >&6; } | |
28ef6c31 | 29711 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` |
f73dda09 | 29712 | |
b80f6443 JA |
29713 | |
29714 | ||
29715 | ||
29716 | ||
29717 | ||
29718 | ||
3185942a JA |
29719 | { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5 |
29720 | $as_echo "$SHOBJ_STATUS" >&6; } | |
b72432fd JA |
29721 | fi |
29722 | ||
ccc6cda3 JA |
29723 | # try to create a directory tree if the source is elsewhere |
29724 | # this should be packaged into a script accessible via ${srcdir}/support | |
29725 | case "$srcdir" in | |
29726 | .) ;; | |
cce855bc | 29727 | *) for d in doc tests support lib examples; do # dirs |
ccc6cda3 JA |
29728 | test -d $d || mkdir $d |
29729 | done | |
cce855bc | 29730 | for ld in readline glob tilde malloc sh termcap; do # libdirs |
ccc6cda3 JA |
29731 | test -d lib/$ld || mkdir lib/$ld |
29732 | done | |
cce855bc | 29733 | test -d examples/loadables || mkdir examples/loadables # loadable builtins |
bb70624e | 29734 | test -d examples/loadables/perl || mkdir examples/loadables/perl |
ccc6cda3 JA |
29735 | ;; |
29736 | esac | |
29737 | ||
29738 | BUILD_DIR=`pwd` | |
95732b49 JA |
29739 | case "$BUILD_DIR" in |
29740 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
29741 | *) ;; | |
29742 | esac | |
ccc6cda3 | 29743 | |
3185942a JA |
29744 | if test -z "$localedir"; then |
29745 | localedir='${datarootdir}/locale' | |
29746 | fi | |
29747 | if test -z "$datarootdir"; then | |
29748 | datarootdir='${prefix}/share' | |
29749 | fi | |
29750 | ||
29751 | ||
29752 | ||
29753 | ||
b80f6443 JA |
29754 | |
29755 | ||
3185942a | 29756 | # Some versions of autoconf don't substitute these automatically |
b80f6443 JA |
29757 | |
29758 | ||
29759 | ||
29760 | ||
29761 | ||
29762 | ||
29763 | ||
29764 | ||
29765 | ||
29766 | ||
29767 | ||
29768 | ||
29769 | ||
29770 | ||
29771 | ||
29772 | ||
29773 | ||
29774 | ||
29775 | ||
29776 | ||
29777 | ||
d166f048 JA |
29778 | #AC_SUBST(ALLOCA_SOURCE) |
29779 | #AC_SUBST(ALLOCA_OBJECT) | |
29780 | ||
3185942a JA |
29781 | ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile" |
29782 | ||
29783 | ac_config_commands="$ac_config_commands default" | |
29784 | ||
f73dda09 | 29785 | cat >confcache <<\_ACEOF |
ccc6cda3 JA |
29786 | # This file is a shell script that caches the results of configure |
29787 | # tests run on this system so they can be shared between configure | |
f73dda09 JA |
29788 | # scripts and configure runs, see configure's option --config-cache. |
29789 | # It is not useful on other systems. If it contains results you don't | |
29790 | # want to keep, you may remove or edit it. | |
726f6388 | 29791 | # |
f73dda09 JA |
29792 | # config.status only pays attention to the cache file if you give it |
29793 | # the --recheck option to rerun configure. | |
ccc6cda3 | 29794 | # |
0628567a | 29795 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
f73dda09 JA |
29796 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
29797 | # following values. | |
29798 | ||
29799 | _ACEOF | |
29800 | ||
ccc6cda3 JA |
29801 | # The following way of writing the cache mishandles newlines in values, |
29802 | # but we know of no workaround that is simple, portable, and efficient. | |
3185942a | 29803 | # So, we kill variables containing newlines. |
ccc6cda3 JA |
29804 | # Ultrix sh set writes to stderr and can't be redirected directly, |
29805 | # and sets the high bit in the cache file unless we assign to the vars. | |
3185942a JA |
29806 | ( |
29807 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
29808 | eval ac_val=\$$ac_var | |
29809 | case $ac_val in #( | |
29810 | *${as_nl}*) | |
29811 | case $ac_var in #( | |
29812 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
29813 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
29814 | esac | |
29815 | case $ac_var in #( | |
29816 | _ | IFS | as_nl) ;; #( | |
29817 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
29818 | *) $as_unset $ac_var ;; | |
29819 | esac ;; | |
29820 | esac | |
29821 | done | |
29822 | ||
f73dda09 | 29823 | (set) 2>&1 | |
3185942a JA |
29824 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
29825 | *${as_nl}ac_space=\ *) | |
f73dda09 JA |
29826 | # `set' does not quote correctly, so add quotes (double-quote |
29827 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
29828 | sed -n \ | |
0628567a JA |
29829 | "s/'/'\\\\''/g; |
29830 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3185942a | 29831 | ;; #( |
f73dda09 JA |
29832 | *) |
29833 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3185942a | 29834 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f73dda09 | 29835 | ;; |
3185942a JA |
29836 | esac | |
29837 | sort | |
29838 | ) | | |
f73dda09 | 29839 | sed ' |
3185942a | 29840 | /^ac_cv_env_/b end |
f73dda09 | 29841 | t clear |
3185942a | 29842 | :clear |
f73dda09 JA |
29843 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
29844 | t end | |
3185942a JA |
29845 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
29846 | :end' >>confcache | |
29847 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
29848 | if test -w "$cache_file"; then | |
29849 | test "x$cache_file" != "x/dev/null" && | |
29850 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
29851 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f73dda09 | 29852 | cat confcache >$cache_file |
ccc6cda3 | 29853 | else |
3185942a JA |
29854 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
29855 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ccc6cda3 JA |
29856 | fi |
29857 | fi | |
29858 | rm -f confcache | |
29859 | ||
ccc6cda3 JA |
29860 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
29861 | # Let make expand exec_prefix. | |
29862 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
29863 | ||
ccc6cda3 JA |
29864 | DEFS=-DHAVE_CONFIG_H |
29865 | ||
0628567a JA |
29866 | ac_libobjs= |
29867 | ac_ltlibobjs= | |
29868 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
29869 | # 1. Remove the extension, and $U if already installed. | |
3185942a JA |
29870 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
29871 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
29872 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
29873 | # will be set to the directory where LIBOBJS objects are built. | |
29874 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
29875 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
0628567a JA |
29876 | done |
29877 | LIBOBJS=$ac_libobjs | |
29878 | ||
29879 | LTLIBOBJS=$ac_ltlibobjs | |
29880 | ||
29881 | ||
b80f6443 | 29882 | |
3185942a | 29883 | |
ccc6cda3 | 29884 | : ${CONFIG_STATUS=./config.status} |
3185942a | 29885 | ac_write_fail=0 |
f73dda09 JA |
29886 | ac_clean_files_save=$ac_clean_files |
29887 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3185942a JA |
29888 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
29889 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
29890 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f73dda09 | 29891 | #! $SHELL |
b80f6443 | 29892 | # Generated by $as_me. |
ccc6cda3 | 29893 | # Run this file to recreate the current configuration. |
ccc6cda3 | 29894 | # Compiler output produced by configure, useful for debugging |
f73dda09 | 29895 | # configure, is in config.log if it exists. |
ccc6cda3 | 29896 | |
f73dda09 | 29897 | debug=false |
0628567a JA |
29898 | ac_cs_recheck=false |
29899 | ac_cs_silent=false | |
f73dda09 | 29900 | SHELL=\${CONFIG_SHELL-$SHELL} |
f73dda09 JA |
29901 | _ACEOF |
29902 | ||
3185942a | 29903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80f6443 JA |
29904 | ## --------------------- ## |
29905 | ## M4sh Initialization. ## | |
29906 | ## --------------------- ## | |
29907 | ||
3185942a JA |
29908 | # Be more Bourne compatible |
29909 | DUALCASE=1; export DUALCASE # for MKS sh | |
f73dda09 JA |
29910 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
29911 | emulate sh | |
29912 | NULLCMD=: | |
3185942a | 29913 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
0628567a JA |
29914 | # is contrary to our usage. Disable this feature. |
29915 | alias -g '${1+"$@"}'='"$@"' | |
3185942a JA |
29916 | setopt NO_GLOB_SUBST |
29917 | else | |
29918 | case `(set -o) 2>/dev/null` in | |
29919 | *posix*) set -o posix ;; | |
29920 | esac | |
29921 | ||
29922 | fi | |
29923 | ||
29924 | ||
29925 | ||
29926 | ||
29927 | # PATH needs CR | |
29928 | # Avoid depending upon Character Ranges. | |
29929 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
29930 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
29931 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
29932 | as_cr_digits='0123456789' | |
29933 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
29934 | ||
29935 | as_nl=' | |
29936 | ' | |
29937 | export as_nl | |
29938 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
29939 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
29940 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
29941 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
29942 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
29943 | as_echo='printf %s\n' | |
29944 | as_echo_n='printf %s' | |
29945 | else | |
29946 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
29947 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
29948 | as_echo_n='/usr/ucb/echo -n' | |
29949 | else | |
29950 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
29951 | as_echo_n_body='eval | |
29952 | arg=$1; | |
29953 | case $arg in | |
29954 | *"$as_nl"*) | |
29955 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
29956 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
29957 | esac; | |
29958 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
29959 | ' | |
29960 | export as_echo_n_body | |
29961 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
29962 | fi | |
29963 | export as_echo_body | |
29964 | as_echo='sh -c $as_echo_body as_echo' | |
29965 | fi | |
29966 | ||
29967 | # The user is always right. | |
29968 | if test "${PATH_SEPARATOR+set}" != set; then | |
29969 | PATH_SEPARATOR=: | |
29970 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
29971 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
29972 | PATH_SEPARATOR=';' | |
29973 | } | |
f73dda09 JA |
29974 | fi |
29975 | ||
b80f6443 | 29976 | # Support unset when possible. |
0628567a | 29977 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
b80f6443 JA |
29978 | as_unset=unset |
29979 | else | |
29980 | as_unset=false | |
29981 | fi | |
29982 | ||
0628567a | 29983 | |
3185942a JA |
29984 | # IFS |
29985 | # We need space, tab and new line, in precisely that order. Quoting is | |
29986 | # there to prevent editors from complaining about space-tab. | |
29987 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
29988 | # splitting by setting IFS to empty value.) | |
29989 | IFS=" "" $as_nl" | |
29990 | ||
29991 | # Find who we are. Look in the path if we contain no directory separator. | |
29992 | case $0 in | |
29993 | *[\\/]* ) as_myself=$0 ;; | |
29994 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29995 | for as_dir in $PATH | |
29996 | do | |
29997 | IFS=$as_save_IFS | |
29998 | test -z "$as_dir" && as_dir=. | |
29999 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
30000 | done | |
30001 | IFS=$as_save_IFS | |
30002 | ||
30003 | ;; | |
30004 | esac | |
30005 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
30006 | # in which case we are not to be found in the path. | |
30007 | if test "x$as_myself" = x; then | |
30008 | as_myself=$0 | |
30009 | fi | |
30010 | if test ! -f "$as_myself"; then | |
30011 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
30012 | { (exit 1); exit 1; } | |
30013 | fi | |
30014 | ||
0628567a | 30015 | # Work around bugs in pre-3.0 UWIN ksh. |
3185942a JA |
30016 | for as_var in ENV MAIL MAILPATH |
30017 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
30018 | done | |
0628567a JA |
30019 | PS1='$ ' |
30020 | PS2='> ' | |
30021 | PS4='+ ' | |
30022 | ||
30023 | # NLS nuisances. | |
3185942a JA |
30024 | LC_ALL=C |
30025 | export LC_ALL | |
30026 | LANGUAGE=C | |
30027 | export LANGUAGE | |
0628567a JA |
30028 | |
30029 | # Required to use basename. | |
3185942a JA |
30030 | if expr a : '\(a\)' >/dev/null 2>&1 && |
30031 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
0628567a JA |
30032 | as_expr=expr |
30033 | else | |
30034 | as_expr=false | |
30035 | fi | |
30036 | ||
3185942a | 30037 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
0628567a JA |
30038 | as_basename=basename |
30039 | else | |
30040 | as_basename=false | |
30041 | fi | |
b80f6443 JA |
30042 | |
30043 | ||
f73dda09 | 30044 | # Name of the executable. |
3185942a | 30045 | as_me=`$as_basename -- "$0" || |
b80f6443 JA |
30046 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
30047 | X"$0" : 'X\(//\)$' \| \ | |
3185942a JA |
30048 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
30049 | $as_echo X/"$0" | | |
30050 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
30051 | s//\1/ | |
30052 | q | |
30053 | } | |
30054 | /^X\/\(\/\/\)$/{ | |
30055 | s//\1/ | |
30056 | q | |
30057 | } | |
30058 | /^X\/\(\/\).*/{ | |
30059 | s//\1/ | |
30060 | q | |
30061 | } | |
30062 | s/.*/./; q'` | |
b80f6443 | 30063 | |
3185942a JA |
30064 | # CDPATH. |
30065 | $as_unset CDPATH | |
b80f6443 JA |
30066 | |
30067 | ||
b80f6443 | 30068 | |
b80f6443 JA |
30069 | as_lineno_1=$LINENO |
30070 | as_lineno_2=$LINENO | |
b80f6443 | 30071 | test "x$as_lineno_1" != "x$as_lineno_2" && |
3185942a | 30072 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b80f6443 JA |
30073 | |
30074 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
30075 | # uniformly replaced by the line number. The first 'sed' inserts a | |
3185942a JA |
30076 | # line-number line after each line using $LINENO; the second 'sed' |
30077 | # does the real work. The second script uses 'N' to pair each | |
30078 | # line-number line with the line containing $LINENO, and appends | |
30079 | # trailing '-' during substitution so that $LINENO is not a special | |
30080 | # case at line end. | |
b80f6443 | 30081 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
3185942a JA |
30082 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
30083 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
30084 | sed -n ' | |
30085 | p | |
30086 | /[$]LINENO/= | |
30087 | ' <$as_myself | | |
b80f6443 | 30088 | sed ' |
3185942a JA |
30089 | s/[$]LINENO.*/&-/ |
30090 | t lineno | |
30091 | b | |
30092 | :lineno | |
b80f6443 | 30093 | N |
3185942a JA |
30094 | :loop |
30095 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b80f6443 | 30096 | t loop |
3185942a | 30097 | s/-\n.*// |
b80f6443 | 30098 | ' >$as_me.lineno && |
3185942a JA |
30099 | chmod +x "$as_me.lineno" || |
30100 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b80f6443 JA |
30101 | { (exit 1); exit 1; }; } |
30102 | ||
30103 | # Don't try to exec as it changes $[0], causing all sort of problems | |
30104 | # (the dirname of $[0] is not the place where we might find the | |
3185942a JA |
30105 | # original and so on. Autoconf is especially sensitive to this). |
30106 | . "./$as_me.lineno" | |
b80f6443 JA |
30107 | # Exit status is that of the last command. |
30108 | exit | |
30109 | } | |
30110 | ||
30111 | ||
3185942a JA |
30112 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
30113 | as_dirname=dirname | |
30114 | else | |
30115 | as_dirname=false | |
30116 | fi | |
f73dda09 | 30117 | |
3185942a JA |
30118 | ECHO_C= ECHO_N= ECHO_T= |
30119 | case `echo -n x` in | |
30120 | -n*) | |
30121 | case `echo 'x\c'` in | |
30122 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
30123 | *) ECHO_C='\c';; | |
30124 | esac;; | |
30125 | *) | |
30126 | ECHO_N='-n';; | |
30127 | esac | |
30128 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
30129 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f73dda09 JA |
30130 | as_expr=expr |
30131 | else | |
30132 | as_expr=false | |
30133 | fi | |
30134 | ||
30135 | rm -f conf$$ conf$$.exe conf$$.file | |
3185942a JA |
30136 | if test -d conf$$.dir; then |
30137 | rm -f conf$$.dir/conf$$.file | |
30138 | else | |
30139 | rm -f conf$$.dir | |
30140 | mkdir conf$$.dir 2>/dev/null | |
30141 | fi | |
30142 | if (echo >conf$$.file) 2>/dev/null; then | |
30143 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
f73dda09 | 30144 | as_ln_s='ln -s' |
3185942a JA |
30145 | # ... but there are two gotchas: |
30146 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
30147 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
30148 | # In both cases, we have to default to `cp -p'. | |
30149 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
30150 | as_ln_s='cp -p' | |
30151 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
30152 | as_ln_s=ln | |
30153 | else | |
30154 | as_ln_s='cp -p' | |
f73dda09 | 30155 | fi |
f73dda09 JA |
30156 | else |
30157 | as_ln_s='cp -p' | |
30158 | fi | |
3185942a JA |
30159 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
30160 | rmdir conf$$.dir 2>/dev/null | |
f73dda09 | 30161 | |
0628567a JA |
30162 | if mkdir -p . 2>/dev/null; then |
30163 | as_mkdir_p=: | |
30164 | else | |
30165 | test -d ./-p && rmdir ./-p | |
30166 | as_mkdir_p=false | |
30167 | fi | |
30168 | ||
3185942a JA |
30169 | if test -x / >/dev/null 2>&1; then |
30170 | as_test_x='test -x' | |
30171 | else | |
30172 | if ls -dL / >/dev/null 2>&1; then | |
30173 | as_ls_L_option=L | |
30174 | else | |
30175 | as_ls_L_option= | |
30176 | fi | |
30177 | as_test_x=' | |
30178 | eval sh -c '\'' | |
30179 | if test -d "$1"; then | |
30180 | test -d "$1/."; | |
30181 | else | |
30182 | case $1 in | |
30183 | -*)set "./$1";; | |
30184 | esac; | |
30185 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
30186 | ???[sx]*):;;*)false;;esac;fi | |
30187 | '\'' sh | |
30188 | ' | |
30189 | fi | |
30190 | as_executable_p=$as_test_x | |
b80f6443 JA |
30191 | |
30192 | # Sed expression to map a string onto a valid CPP name. | |
0628567a | 30193 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 JA |
30194 | |
30195 | # Sed expression to map a string onto a valid variable name. | |
0628567a | 30196 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 | 30197 | |
f73dda09 | 30198 | |
f73dda09 JA |
30199 | exec 6>&1 |
30200 | ||
3185942a | 30201 | # Save the log message, to keep $[0] and so on meaningful, and to |
b80f6443 | 30202 | # report actual input values of CONFIG_FILES etc. instead of their |
3185942a JA |
30203 | # values after options handling. |
30204 | ac_log=" | |
30205 | This file was extended by bash $as_me 4.0-rc1, which was | |
30206 | generated by GNU Autoconf 2.63. Invocation command line was | |
b80f6443 JA |
30207 | |
30208 | CONFIG_FILES = $CONFIG_FILES | |
30209 | CONFIG_HEADERS = $CONFIG_HEADERS | |
30210 | CONFIG_LINKS = $CONFIG_LINKS | |
30211 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
30212 | $ $0 $@ | |
30213 | ||
3185942a JA |
30214 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
30215 | " | |
30216 | ||
f73dda09 JA |
30217 | _ACEOF |
30218 | ||
3185942a JA |
30219 | case $ac_config_files in *" |
30220 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
30221 | esac | |
f73dda09 | 30222 | |
3185942a JA |
30223 | case $ac_config_headers in *" |
30224 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
30225 | esac | |
f73dda09 | 30226 | |
f73dda09 | 30227 | |
3185942a JA |
30228 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
30229 | # Files that config.status was made for. | |
30230 | config_files="$ac_config_files" | |
30231 | config_headers="$ac_config_headers" | |
30232 | config_commands="$ac_config_commands" | |
f73dda09 | 30233 | |
3185942a | 30234 | _ACEOF |
f73dda09 | 30235 | |
3185942a | 30236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f73dda09 JA |
30237 | ac_cs_usage="\ |
30238 | \`$as_me' instantiates files from templates according to the | |
30239 | current configuration. | |
30240 | ||
3185942a | 30241 | Usage: $0 [OPTION]... [FILE]... |
f73dda09 JA |
30242 | |
30243 | -h, --help print this help, then exit | |
3185942a JA |
30244 | -V, --version print version number and configuration settings, then exit |
30245 | -q, --quiet, --silent | |
30246 | do not print progress messages | |
f73dda09 JA |
30247 | -d, --debug don't remove temporary files |
30248 | --recheck update $as_me by reconfiguring in the same conditions | |
3185942a JA |
30249 | --file=FILE[:TEMPLATE] |
30250 | instantiate the configuration file FILE | |
30251 | --header=FILE[:TEMPLATE] | |
30252 | instantiate the configuration header FILE | |
f73dda09 JA |
30253 | |
30254 | Configuration files: | |
30255 | $config_files | |
30256 | ||
30257 | Configuration headers: | |
30258 | $config_headers | |
30259 | ||
30260 | Configuration commands: | |
30261 | $config_commands | |
30262 | ||
30263 | Report bugs to <bug-autoconf@gnu.org>." | |
f73dda09 | 30264 | |
3185942a JA |
30265 | _ACEOF |
30266 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f73dda09 | 30267 | ac_cs_version="\\ |
3185942a JA |
30268 | bash config.status 4.0-rc1 |
30269 | configured by $0, generated by GNU Autoconf 2.63, | |
30270 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
f73dda09 | 30271 | |
3185942a | 30272 | Copyright (C) 2008 Free Software Foundation, Inc. |
f73dda09 JA |
30273 | This config.status script is free software; the Free Software Foundation |
30274 | gives unlimited permission to copy, distribute and modify it." | |
3185942a JA |
30275 | |
30276 | ac_pwd='$ac_pwd' | |
30277 | srcdir='$srcdir' | |
30278 | INSTALL='$INSTALL' | |
30279 | test -n "\$AWK" || AWK=awk | |
b80f6443 | 30280 | _ACEOF |
f73dda09 | 30281 | |
3185942a JA |
30282 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
30283 | # The default lists apply if the user does not specify any file. | |
f73dda09 JA |
30284 | ac_need_defaults=: |
30285 | while test $# != 0 | |
ccc6cda3 | 30286 | do |
f73dda09 JA |
30287 | case $1 in |
30288 | --*=*) | |
3185942a JA |
30289 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
30290 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
0628567a JA |
30291 | ac_shift=: |
30292 | ;; | |
3185942a | 30293 | *) |
0628567a JA |
30294 | ac_option=$1 |
30295 | ac_optarg=$2 | |
30296 | ac_shift=shift | |
f73dda09 | 30297 | ;; |
f73dda09 JA |
30298 | esac |
30299 | ||
0628567a | 30300 | case $ac_option in |
f73dda09 | 30301 | # Handling of the options. |
0628567a JA |
30302 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
30303 | ac_cs_recheck=: ;; | |
3185942a JA |
30304 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
30305 | $as_echo "$ac_cs_version"; exit ;; | |
30306 | --debug | --debu | --deb | --de | --d | -d ) | |
f73dda09 JA |
30307 | debug=: ;; |
30308 | --file | --fil | --fi | --f ) | |
0628567a | 30309 | $ac_shift |
3185942a JA |
30310 | case $ac_optarg in |
30311 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30312 | esac | |
30313 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
f73dda09 JA |
30314 | ac_need_defaults=false;; |
30315 | --header | --heade | --head | --hea ) | |
0628567a | 30316 | $ac_shift |
3185942a JA |
30317 | case $ac_optarg in |
30318 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30319 | esac | |
30320 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
f73dda09 | 30321 | ac_need_defaults=false;; |
3185942a JA |
30322 | --he | --h) |
30323 | # Conflict between --help and --header | |
30324 | { $as_echo "$as_me: error: ambiguous option: $1 | |
30325 | Try \`$0 --help' for more information." >&2 | |
30326 | { (exit 1); exit 1; }; };; | |
30327 | --help | --hel | -h ) | |
30328 | $as_echo "$ac_cs_usage"; exit ;; | |
0628567a JA |
30329 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
30330 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
30331 | ac_cs_silent=: ;; | |
f73dda09 JA |
30332 | |
30333 | # This is an error. | |
3185942a JA |
30334 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
30335 | Try \`$0 --help' for more information." >&2 | |
f73dda09 JA |
30336 | { (exit 1); exit 1; }; } ;; |
30337 | ||
3185942a JA |
30338 | *) ac_config_targets="$ac_config_targets $1" |
30339 | ac_need_defaults=false ;; | |
f73dda09 | 30340 | |
ccc6cda3 | 30341 | esac |
f73dda09 | 30342 | shift |
ccc6cda3 JA |
30343 | done |
30344 | ||
0628567a JA |
30345 | ac_configure_extra_args= |
30346 | ||
30347 | if $ac_cs_silent; then | |
30348 | exec 6>/dev/null | |
30349 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
30350 | fi | |
30351 | ||
30352 | _ACEOF | |
3185942a | 30353 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
0628567a | 30354 | if \$ac_cs_recheck; then |
3185942a JA |
30355 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
30356 | shift | |
30357 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
30358 | CONFIG_SHELL='$SHELL' | |
30359 | export CONFIG_SHELL | |
30360 | exec "\$@" | |
0628567a JA |
30361 | fi |
30362 | ||
b80f6443 | 30363 | _ACEOF |
3185942a JA |
30364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
30365 | exec 5>>config.log | |
30366 | { | |
30367 | echo | |
30368 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
30369 | ## Running $as_me. ## | |
30370 | _ASBOX | |
30371 | $as_echo "$ac_log" | |
30372 | } >&5 | |
b80f6443 | 30373 | |
3185942a JA |
30374 | _ACEOF |
30375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b80f6443 | 30376 | # |
3185942a | 30377 | # INIT-COMMANDS |
b80f6443 | 30378 | # |
b80f6443 JA |
30379 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
30380 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
30381 | # from automake. | |
30382 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
30383 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
30384 | LINGUAS="${LINGUAS-%UNSET%}" | |
f73dda09 | 30385 | |
f73dda09 JA |
30386 | |
30387 | _ACEOF | |
ccc6cda3 | 30388 | |
3185942a | 30389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80f6443 | 30390 | |
3185942a | 30391 | # Handling of arguments. |
f73dda09 JA |
30392 | for ac_config_target in $ac_config_targets |
30393 | do | |
3185942a JA |
30394 | case $ac_config_target in |
30395 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
30396 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
30397 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
30398 | "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; | |
30399 | "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; | |
30400 | "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; | |
30401 | "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; | |
30402 | "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; | |
30403 | "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; | |
30404 | "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; | |
30405 | "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; | |
30406 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
30407 | "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
30408 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
30409 | "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; | |
30410 | "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; | |
30411 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
30412 | ||
30413 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
30414 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
f73dda09 JA |
30415 | { (exit 1); exit 1; }; };; |
30416 | esac | |
30417 | done | |
30418 | ||
3185942a | 30419 | |
f73dda09 JA |
30420 | # If the user did not use the arguments to specify the items to instantiate, |
30421 | # then the envvar interface is used. Set only those that are not. | |
30422 | # We use the long form for the default assignment because of an extremely | |
30423 | # bizarre bug on SunOS 4.1.3. | |
30424 | if $ac_need_defaults; then | |
30425 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
30426 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
30427 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
30428 | fi | |
30429 | ||
0628567a | 30430 | # Have a temporary directory for convenience. Make it in the build tree |
3185942a | 30431 | # simply because there is no reason against having it here, and in addition, |
0628567a | 30432 | # creating and moving files from /tmp can sometimes cause problems. |
3185942a JA |
30433 | # Hook for its removal unless debugging. |
30434 | # Note that there is a small window in which the directory will not be cleaned: | |
30435 | # after its creation but before its name has been assigned to `$tmp'. | |
f73dda09 JA |
30436 | $debug || |
30437 | { | |
3185942a JA |
30438 | tmp= |
30439 | trap 'exit_status=$? | |
30440 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
30441 | ' 0 | |
f73dda09 JA |
30442 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
30443 | } | |
f73dda09 | 30444 | # Create a (secure) tmp directory for tmp files. |
0628567a | 30445 | |
f73dda09 | 30446 | { |
3185942a | 30447 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f73dda09 JA |
30448 | test -n "$tmp" && test -d "$tmp" |
30449 | } || | |
30450 | { | |
3185942a JA |
30451 | tmp=./conf$$-$RANDOM |
30452 | (umask 077 && mkdir "$tmp") | |
f73dda09 JA |
30453 | } || |
30454 | { | |
3185942a | 30455 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
f73dda09 JA |
30456 | { (exit 1); exit 1; } |
30457 | } | |
ccc6cda3 | 30458 | |
3185942a JA |
30459 | # Set up the scripts for CONFIG_FILES section. |
30460 | # No need to generate them if there are no CONFIG_FILES. | |
30461 | # This happens for instance with `./config.status config.h'. | |
30462 | if test -n "$CONFIG_FILES"; then | |
30463 | ||
30464 | ||
30465 | ac_cr='\r' | |
30466 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
30467 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
30468 | ac_cs_awk_cr='\\r' | |
30469 | else | |
30470 | ac_cs_awk_cr=$ac_cr | |
30471 | fi | |
30472 | ||
30473 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
b80f6443 | 30474 | _ACEOF |
ccc6cda3 | 30475 | |
ccc6cda3 | 30476 | |
3185942a JA |
30477 | { |
30478 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
30479 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
30480 | echo "_ACEOF" | |
30481 | } >conf$$subs.sh || | |
30482 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
30483 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
30484 | { (exit 1); exit 1; }; } | |
30485 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
30486 | ac_delim='%!_!# ' | |
30487 | for ac_last_try in false false false false false :; do | |
30488 | . ./conf$$subs.sh || | |
30489 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
30490 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
30491 | { (exit 1); exit 1; }; } | |
f73dda09 | 30492 | |
3185942a JA |
30493 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
30494 | if test $ac_delim_n = $ac_delim_num; then | |
30495 | break | |
30496 | elif $ac_last_try; then | |
30497 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
30498 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
30499 | { (exit 1); exit 1; }; } | |
30500 | else | |
30501 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ccc6cda3 | 30502 | fi |
3185942a JA |
30503 | done |
30504 | rm -f conf$$subs.sh | |
30505 | ||
30506 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30507 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
30508 | _ACEOF | |
30509 | sed -n ' | |
30510 | h | |
30511 | s/^/S["/; s/!.*/"]=/ | |
30512 | p | |
30513 | g | |
30514 | s/^[^!]*!// | |
30515 | :repl | |
30516 | t repl | |
30517 | s/'"$ac_delim"'$// | |
30518 | t delim | |
30519 | :nl | |
30520 | h | |
30521 | s/\(.\{148\}\).*/\1/ | |
30522 | t more1 | |
30523 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
30524 | p | |
30525 | n | |
30526 | b repl | |
30527 | :more1 | |
30528 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
30529 | p | |
30530 | g | |
30531 | s/.\{148\}// | |
30532 | t nl | |
30533 | :delim | |
30534 | h | |
30535 | s/\(.\{148\}\).*/\1/ | |
30536 | t more2 | |
30537 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
30538 | p | |
30539 | b | |
30540 | :more2 | |
30541 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
30542 | p | |
30543 | g | |
30544 | s/.\{148\}// | |
30545 | t delim | |
30546 | ' <conf$$subs.awk | sed ' | |
30547 | /^[^""]/{ | |
30548 | N | |
30549 | s/\n// | |
30550 | } | |
30551 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
30552 | rm -f conf$$subs.awk | |
30553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30554 | _ACAWK | |
30555 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
30556 | for (key in S) S_is_set[key] = 1 | |
30557 | FS = "\a" | |
30558 | ||
30559 | } | |
30560 | { | |
30561 | line = $ 0 | |
30562 | nfields = split(line, field, "@") | |
30563 | substed = 0 | |
30564 | len = length(field[1]) | |
30565 | for (i = 2; i < nfields; i++) { | |
30566 | key = field[i] | |
30567 | keylen = length(key) | |
30568 | if (S_is_set[key]) { | |
30569 | value = S[key] | |
30570 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
30571 | len += length(value) + length(field[++i]) | |
30572 | substed = 1 | |
30573 | } else | |
30574 | len += 1 + keylen | |
30575 | } | |
30576 | ||
30577 | print line | |
30578 | } | |
30579 | ||
30580 | _ACAWK | |
30581 | _ACEOF | |
30582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
30583 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
30584 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
30585 | else | |
30586 | cat | |
30587 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
30588 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
30589 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
30590 | { (exit 1); exit 1; }; } | |
30591 | _ACEOF | |
30592 | ||
30593 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
30594 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
30595 | # trailing colons and then remove the whole line if VPATH becomes empty | |
30596 | # (actually we leave an empty line to preserve line numbers). | |
30597 | if test "x$srcdir" = x.; then | |
30598 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
30599 | s/:*\$(srcdir):*/:/ | |
30600 | s/:*\${srcdir}:*/:/ | |
30601 | s/:*@srcdir@:*/:/ | |
30602 | s/^\([^=]*=[ ]*\):*/\1/ | |
30603 | s/:*$// | |
30604 | s/^[^=]*=[ ]*$// | |
30605 | }' | |
30606 | fi | |
30607 | ||
30608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f73dda09 | 30609 | fi # test -n "$CONFIG_FILES" |
ccc6cda3 | 30610 | |
3185942a JA |
30611 | # Set up the scripts for CONFIG_HEADERS section. |
30612 | # No need to generate them if there are no CONFIG_HEADERS. | |
30613 | # This happens for instance with `./config.status Makefile'. | |
30614 | if test -n "$CONFIG_HEADERS"; then | |
30615 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
30616 | BEGIN { | |
b80f6443 | 30617 | _ACEOF |
3185942a JA |
30618 | |
30619 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
30620 | # here-document in config.status, that substitutes the proper values into | |
30621 | # config.h.in to produce config.h. | |
30622 | ||
30623 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
30624 | # handling of long lines. | |
30625 | ac_delim='%!_!# ' | |
30626 | for ac_last_try in false false :; do | |
30627 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
30628 | if test -z "$ac_t"; then | |
30629 | break | |
30630 | elif $ac_last_try; then | |
30631 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
30632 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
30633 | { (exit 1); exit 1; }; } | |
30634 | else | |
30635 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
30636 | fi | |
30637 | done | |
30638 | ||
30639 | # For the awk script, D is an array of macro values keyed by name, | |
30640 | # likewise P contains macro parameters if any. Preserve backslash | |
30641 | # newline sequences. | |
30642 | ||
30643 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
30644 | sed -n ' | |
30645 | s/.\{148\}/&'"$ac_delim"'/g | |
30646 | t rset | |
30647 | :rset | |
30648 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
30649 | t def | |
30650 | d | |
30651 | :def | |
30652 | s/\\$// | |
30653 | t bsnl | |
30654 | s/["\\]/\\&/g | |
30655 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
30656 | D["\1"]=" \3"/p | |
30657 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
30658 | d | |
30659 | :bsnl | |
30660 | s/["\\]/\\&/g | |
30661 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
30662 | D["\1"]=" \3\\\\\\n"\\/p | |
30663 | t cont | |
30664 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
30665 | t cont | |
30666 | d | |
30667 | :cont | |
30668 | n | |
30669 | s/.\{148\}/&'"$ac_delim"'/g | |
30670 | t clear | |
30671 | :clear | |
30672 | s/\\$// | |
30673 | t bsnlc | |
30674 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
30675 | d | |
30676 | :bsnlc | |
30677 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
30678 | b cont | |
30679 | ' <confdefs.h | sed ' | |
30680 | s/'"$ac_delim"'/"\\\ | |
30681 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
30682 | ||
30683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30684 | for (key in D) D_is_set[key] = 1 | |
30685 | FS = "\a" | |
30686 | } | |
30687 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
30688 | line = \$ 0 | |
30689 | split(line, arg, " ") | |
30690 | if (arg[1] == "#") { | |
30691 | defundef = arg[2] | |
30692 | mac1 = arg[3] | |
30693 | } else { | |
30694 | defundef = substr(arg[1], 2) | |
30695 | mac1 = arg[2] | |
30696 | } | |
30697 | split(mac1, mac2, "(") #) | |
30698 | macro = mac2[1] | |
30699 | prefix = substr(line, 1, index(line, defundef) - 1) | |
30700 | if (D_is_set[macro]) { | |
30701 | # Preserve the white space surrounding the "#". | |
30702 | print prefix "define", macro P[macro] D[macro] | |
30703 | next | |
30704 | } else { | |
30705 | # Replace #undef with comments. This is necessary, for example, | |
30706 | # in the case of _POSIX_SOURCE, which is predefined and required | |
30707 | # on some systems where configure will not decide to define it. | |
30708 | if (defundef == "undef") { | |
30709 | print "/*", prefix defundef, macro, "*/" | |
30710 | next | |
30711 | } | |
30712 | } | |
30713 | } | |
30714 | { print } | |
30715 | _ACAWK | |
30716 | _ACEOF | |
30717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
30718 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
30719 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
30720 | { (exit 1); exit 1; }; } | |
30721 | fi # test -n "$CONFIG_HEADERS" | |
30722 | ||
30723 | ||
30724 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
30725 | shift | |
30726 | for ac_tag | |
30727 | do | |
30728 | case $ac_tag in | |
30729 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
30730 | esac | |
30731 | case $ac_mode$ac_tag in | |
30732 | :[FHL]*:*);; | |
30733 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
30734 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
30735 | { (exit 1); exit 1; }; };; | |
30736 | :[FH]-) ac_tag=-:-;; | |
30737 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
30738 | esac | |
30739 | ac_save_IFS=$IFS | |
30740 | IFS=: | |
30741 | set x $ac_tag | |
30742 | IFS=$ac_save_IFS | |
30743 | shift | |
30744 | ac_file=$1 | |
30745 | shift | |
30746 | ||
30747 | case $ac_mode in | |
30748 | :L) ac_source=$1;; | |
30749 | :[FH]) | |
30750 | ac_file_inputs= | |
30751 | for ac_f | |
30752 | do | |
30753 | case $ac_f in | |
30754 | -) ac_f="$tmp/stdin";; | |
30755 | *) # Look for the file first in the build tree, then in the source tree | |
30756 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
30757 | # because $ac_f cannot contain `:'. | |
30758 | test -f "$ac_f" || | |
30759 | case $ac_f in | |
30760 | [\\/$]*) false;; | |
30761 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
30762 | esac || | |
30763 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
30764 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
30765 | { (exit 1); exit 1; }; };; | |
30766 | esac | |
30767 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
30768 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
30769 | done | |
30770 | ||
30771 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
30772 | # use $as_me), people would be surprised to read: | |
30773 | # /* config.h. Generated by config.status. */ | |
30774 | configure_input='Generated from '` | |
30775 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
30776 | `' by configure.' | |
30777 | if test x"$ac_file" != x-; then | |
30778 | configure_input="$ac_file. $configure_input" | |
30779 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
30780 | $as_echo "$as_me: creating $ac_file" >&6;} | |
30781 | fi | |
30782 | # Neutralize special characters interpreted by sed in replacement strings. | |
30783 | case $configure_input in #( | |
30784 | *\&* | *\|* | *\\* ) | |
30785 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
30786 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
30787 | *) ac_sed_conf_input=$configure_input;; | |
30788 | esac | |
30789 | ||
30790 | case $ac_tag in | |
30791 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
30792 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
30793 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
30794 | { (exit 1); exit 1; }; } ;; | |
30795 | esac | |
30796 | ;; | |
ccc6cda3 JA |
30797 | esac |
30798 | ||
3185942a | 30799 | ac_dir=`$as_dirname -- "$ac_file" || |
b80f6443 | 30800 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
0628567a JA |
30801 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
30802 | X"$ac_file" : 'X\(//\)$' \| \ | |
3185942a JA |
30803 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
30804 | $as_echo X"$ac_file" | | |
30805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
30806 | s//\1/ | |
30807 | q | |
30808 | } | |
30809 | /^X\(\/\/\)[^/].*/{ | |
30810 | s//\1/ | |
30811 | q | |
30812 | } | |
30813 | /^X\(\/\/\)$/{ | |
30814 | s//\1/ | |
30815 | q | |
30816 | } | |
30817 | /^X\(\/\).*/{ | |
30818 | s//\1/ | |
30819 | q | |
30820 | } | |
30821 | s/.*/./; q'` | |
30822 | { as_dir="$ac_dir" | |
30823 | case $as_dir in #( | |
30824 | -*) as_dir=./$as_dir;; | |
30825 | esac | |
30826 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
0628567a | 30827 | as_dirs= |
3185942a JA |
30828 | while :; do |
30829 | case $as_dir in #( | |
30830 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
30831 | *) as_qdir=$as_dir;; | |
30832 | esac | |
30833 | as_dirs="'$as_qdir' $as_dirs" | |
30834 | as_dir=`$as_dirname -- "$as_dir" || | |
0628567a JA |
30835 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
30836 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
30837 | X"$as_dir" : 'X\(//\)$' \| \ | |
3185942a JA |
30838 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
30839 | $as_echo X"$as_dir" | | |
30840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
30841 | s//\1/ | |
30842 | q | |
30843 | } | |
30844 | /^X\(\/\/\)[^/].*/{ | |
30845 | s//\1/ | |
30846 | q | |
30847 | } | |
30848 | /^X\(\/\/\)$/{ | |
30849 | s//\1/ | |
30850 | q | |
30851 | } | |
30852 | /^X\(\/\).*/{ | |
30853 | s//\1/ | |
30854 | q | |
30855 | } | |
30856 | s/.*/./; q'` | |
30857 | test -d "$as_dir" && break | |
0628567a | 30858 | done |
3185942a JA |
30859 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
30860 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
30861 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
0628567a | 30862 | { (exit 1); exit 1; }; }; } |
b80f6443 JA |
30863 | ac_builddir=. |
30864 | ||
3185942a JA |
30865 | case "$ac_dir" in |
30866 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
30867 | *) | |
30868 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
30869 | # A ".." for each directory in $ac_dir_suffix. | |
30870 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
30871 | case $ac_top_builddir_sub in | |
30872 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
30873 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
30874 | esac ;; | |
30875 | esac | |
30876 | ac_abs_top_builddir=$ac_pwd | |
30877 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
30878 | # for backward compatibility: | |
30879 | ac_top_builddir=$ac_top_build_prefix | |
b80f6443 JA |
30880 | |
30881 | case $srcdir in | |
3185942a | 30882 | .) # We are building in place. |
b80f6443 | 30883 | ac_srcdir=. |
3185942a JA |
30884 | ac_top_srcdir=$ac_top_builddir_sub |
30885 | ac_abs_top_srcdir=$ac_pwd ;; | |
30886 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b80f6443 | 30887 | ac_srcdir=$srcdir$ac_dir_suffix; |
3185942a JA |
30888 | ac_top_srcdir=$srcdir |
30889 | ac_abs_top_srcdir=$srcdir ;; | |
30890 | *) # Relative name. | |
30891 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
30892 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
30893 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b80f6443 | 30894 | esac |
3185942a | 30895 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
0628567a | 30896 | |
b80f6443 | 30897 | |
3185942a JA |
30898 | case $ac_mode in |
30899 | :F) | |
30900 | # | |
30901 | # CONFIG_FILE | |
30902 | # | |
ccc6cda3 | 30903 | |
f73dda09 JA |
30904 | case $INSTALL in |
30905 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3185942a | 30906 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ccc6cda3 | 30907 | esac |
3185942a | 30908 | _ACEOF |
ccc6cda3 | 30909 | |
3185942a JA |
30910 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
30911 | # If the template does not know about datarootdir, expand it. | |
30912 | # FIXME: This hack should be removed a few years after 2.60. | |
30913 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
30914 | ||
30915 | ac_sed_dataroot=' | |
30916 | /datarootdir/ { | |
30917 | p | |
30918 | q | |
30919 | } | |
30920 | /@datadir@/p | |
30921 | /@docdir@/p | |
30922 | /@infodir@/p | |
30923 | /@localedir@/p | |
30924 | /@mandir@/p | |
30925 | ' | |
30926 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
30927 | *datarootdir*) ac_datarootdir_seen=yes;; | |
30928 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
30929 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
30930 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
30931 | _ACEOF | |
30932 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30933 | ac_datarootdir_hack=' | |
30934 | s&@datadir@&$datadir&g | |
30935 | s&@docdir@&$docdir&g | |
30936 | s&@infodir@&$infodir&g | |
30937 | s&@localedir@&$localedir&g | |
30938 | s&@mandir@&$mandir&g | |
30939 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
30940 | esac | |
b80f6443 | 30941 | _ACEOF |
3185942a JA |
30942 | |
30943 | # Neutralize VPATH when `$srcdir' = `.'. | |
30944 | # Shell code in configure.ac might set extrasub. | |
30945 | # FIXME: do we really want to maintain this feature? | |
30946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30947 | ac_sed_extra="$ac_vpsub | |
f73dda09 | 30948 | $extrasub |
b80f6443 | 30949 | _ACEOF |
3185942a | 30950 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f73dda09 JA |
30951 | :t |
30952 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3185942a JA |
30953 | s|@configure_input@|$ac_sed_conf_input|;t t |
30954 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
30955 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
30956 | s&@srcdir@&$ac_srcdir&;t t | |
30957 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
30958 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
30959 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
30960 | s&@builddir@&$ac_builddir&;t t | |
30961 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
30962 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
30963 | s&@INSTALL@&$ac_INSTALL&;t t | |
30964 | $ac_datarootdir_hack | |
30965 | " | |
30966 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
30967 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
30968 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
30969 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 30970 | |
3185942a JA |
30971 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
30972 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
30973 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
30974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
30975 | which seems to be undefined. Please make sure it is defined." >&5 | |
30976 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
30977 | which seems to be undefined. Please make sure it is defined." >&2;} | |
ccc6cda3 | 30978 | |
3185942a | 30979 | rm -f "$tmp/stdin" |
f73dda09 | 30980 | case $ac_file in |
3185942a JA |
30981 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
30982 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
30983 | esac \ | |
30984 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
30985 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
f73dda09 | 30986 | { (exit 1); exit 1; }; } |
3185942a JA |
30987 | ;; |
30988 | :H) | |
30989 | # | |
30990 | # CONFIG_HEADER | |
30991 | # | |
f73dda09 | 30992 | if test x"$ac_file" != x-; then |
3185942a JA |
30993 | { |
30994 | $as_echo "/* $configure_input */" \ | |
30995 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
30996 | } >"$tmp/config.h" \ | |
30997 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
30998 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
30999 | { (exit 1); exit 1; }; } | |
31000 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
31001 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
31002 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
f73dda09 | 31003 | else |
3185942a JA |
31004 | rm -f "$ac_file" |
31005 | mv "$tmp/config.h" "$ac_file" \ | |
31006 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31007 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31008 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 31009 | fi |
f73dda09 | 31010 | else |
3185942a JA |
31011 | $as_echo "/* $configure_input */" \ |
31012 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
31013 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
31014 | $as_echo "$as_me: error: could not create -" >&2;} | |
31015 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 31016 | fi |
3185942a | 31017 | ;; |
0628567a | 31018 | |
3185942a JA |
31019 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
31020 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
31021 | ;; | |
31022 | esac | |
b80f6443 | 31023 | |
ccc6cda3 | 31024 | |
3185942a JA |
31025 | case $ac_file$ac_mode in |
31026 | "default-1":C) | |
b80f6443 JA |
31027 | for ac_file in $CONFIG_FILES; do |
31028 | # Support "outfile[:infile[:infile...]]" | |
31029 | case "$ac_file" in | |
31030 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
31031 | esac | |
31032 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
31033 | case "$ac_file" in */Makefile.in) | |
31034 | # Adjust a relative srcdir. | |
31035 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
31036 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
31037 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
31038 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
31039 | # In autoconf-2.50 it is called $srcdir. | |
31040 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
31041 | case "$ac_given_srcdir" in | |
31042 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
31043 | /*) top_srcdir="$ac_given_srcdir" ;; | |
31044 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
31045 | esac | |
31046 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
31047 | rm -f "$ac_dir/POTFILES" | |
31048 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
31049 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
31050 | POMAKEFILEDEPS="POTFILES.in" | |
31051 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
31052 | # on $ac_dir but don't depend on user-specified configuration | |
31053 | # parameters. | |
31054 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
31055 | # The LINGUAS file contains the set of available languages. | |
31056 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
31057 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
31058 | fi | |
31059 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
31060 | # Hide the ALL_LINGUAS assigment from automake. | |
31061 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
31062 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
31063 | else | |
31064 | # The set of available languages was given in configure.in. | |
31065 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
31066 | fi | |
31067 | case "$ac_given_srcdir" in | |
31068 | .) srcdirpre= ;; | |
31069 | *) srcdirpre='$(srcdir)/' ;; | |
31070 | esac | |
31071 | POFILES= | |
31072 | GMOFILES= | |
31073 | UPDATEPOFILES= | |
31074 | DUMMYPOFILES= | |
31075 | for lang in $ALL_LINGUAS; do | |
31076 | POFILES="$POFILES $srcdirpre$lang.po" | |
31077 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
31078 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
31079 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
31080 | done | |
31081 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
31082 | # environment variable. | |
31083 | INST_LINGUAS= | |
31084 | if test -n "$ALL_LINGUAS"; then | |
31085 | for presentlang in $ALL_LINGUAS; do | |
31086 | useit=no | |
31087 | if test "%UNSET%" != "$LINGUAS"; then | |
31088 | desiredlanguages="$LINGUAS" | |
31089 | else | |
31090 | desiredlanguages="$ALL_LINGUAS" | |
31091 | fi | |
31092 | for desiredlang in $desiredlanguages; do | |
31093 | # Use the presentlang catalog if desiredlang is | |
31094 | # a. equal to presentlang, or | |
31095 | # b. a variant of presentlang (because in this case, | |
31096 | # presentlang can be used as a fallback for messages | |
31097 | # which are not translated in the desiredlang catalog). | |
31098 | case "$desiredlang" in | |
31099 | "$presentlang"*) useit=yes;; | |
31100 | esac | |
31101 | done | |
31102 | if test $useit = yes; then | |
31103 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
31104 | fi | |
31105 | done | |
31106 | fi | |
31107 | CATALOGS= | |
31108 | if test -n "$INST_LINGUAS"; then | |
31109 | for lang in $INST_LINGUAS; do | |
31110 | CATALOGS="$CATALOGS $lang.gmo" | |
31111 | done | |
31112 | fi | |
31113 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
31114 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
31115 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
31116 | if test -f "$f"; then | |
31117 | case "$f" in | |
31118 | *.orig | *.bak | *~) ;; | |
31119 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
31120 | esac | |
31121 | fi | |
31122 | done | |
31123 | fi | |
31124 | ;; | |
31125 | esac | |
31126 | done ;; | |
3185942a | 31127 | "default":C) |
ccc6cda3 JA |
31128 | # Makefile uses this timestamp file to record whether config.h is up to date. |
31129 | echo timestamp > stamp-h | |
f73dda09 | 31130 | ;; |
3185942a | 31131 | |
f73dda09 | 31132 | esac |
3185942a | 31133 | done # for ac_tag |
ccc6cda3 | 31134 | |
f73dda09 JA |
31135 | |
31136 | { (exit 0); exit 0; } | |
b80f6443 | 31137 | _ACEOF |
ccc6cda3 | 31138 | chmod +x $CONFIG_STATUS |
f73dda09 JA |
31139 | ac_clean_files=$ac_clean_files_save |
31140 | ||
3185942a JA |
31141 | test $ac_write_fail = 0 || |
31142 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
31143 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
31144 | { (exit 1); exit 1; }; } | |
31145 | ||
b80f6443 | 31146 | |
f73dda09 JA |
31147 | # configure is writing to config.log, and then calls config.status. |
31148 | # config.status does its own redirection, appending to config.log. | |
31149 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
31150 | # by configure, so config.status won't be able to write to it; its | |
31151 | # output is simply discarded. So we exec the FD to /dev/null, | |
31152 | # effectively closing config.log, so it can be properly (re)opened and | |
31153 | # appended to by config.status. When coming back to configure, we | |
31154 | # need to make the FD available again. | |
31155 | if test "$no_create" != yes; then | |
31156 | ac_cs_success=: | |
0628567a JA |
31157 | ac_config_status_args= |
31158 | test "$silent" = yes && | |
31159 | ac_config_status_args="$ac_config_status_args --quiet" | |
f73dda09 | 31160 | exec 5>/dev/null |
0628567a | 31161 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
f73dda09 JA |
31162 | exec 5>>config.log |
31163 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
31164 | # would make configure fail if this is the last instruction. | |
31165 | $ac_cs_success || { (exit 1); exit 1; } | |
31166 | fi | |
3185942a JA |
31167 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
31168 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
31169 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
31170 | fi | |
ccc6cda3 | 31171 |