]>
Commit | Line | Data |
---|---|---|
ccc6cda3 | 1 | #! /bin/sh |
495aee44 | 2 | # From configure.in for Bash 4.2, version 4.037. |
f73dda09 | 3 | # Guess values for system-dependent variables and create Makefiles. |
495aee44 | 4 | # Generated by GNU Autoconf 2.63 for bash 4.2-release. |
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' | |
495aee44 CR |
600 | PACKAGE_VERSION='4.2-release' |
601 | PACKAGE_STRING='bash 4.2-release' | |
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 | |
3185942a JA |
747 | host_os |
748 | host_vendor | |
749 | host_cpu | |
750 | host | |
751 | build_os | |
752 | build_vendor | |
753 | build_cpu | |
754 | build | |
755 | target_alias | |
756 | host_alias | |
757 | build_alias | |
758 | LIBS | |
759 | ECHO_T | |
760 | ECHO_N | |
761 | ECHO_C | |
762 | DEFS | |
763 | mandir | |
764 | localedir | |
765 | libdir | |
766 | psdir | |
767 | pdfdir | |
768 | dvidir | |
769 | htmldir | |
770 | infodir | |
771 | docdir | |
772 | oldincludedir | |
773 | includedir | |
774 | localstatedir | |
775 | sharedstatedir | |
776 | sysconfdir | |
777 | datadir | |
778 | datarootdir | |
779 | libexecdir | |
780 | sbindir | |
781 | bindir | |
782 | program_transform_name | |
783 | prefix | |
784 | exec_prefix | |
785 | PACKAGE_BUGREPORT | |
786 | PACKAGE_STRING | |
787 | PACKAGE_VERSION | |
788 | PACKAGE_TARNAME | |
789 | PACKAGE_NAME | |
790 | PATH_SEPARATOR | |
791 | SHELL' | |
0628567a | 792 | ac_subst_files='' |
3185942a JA |
793 | ac_user_opts=' |
794 | enable_option_checking | |
3185942a JA |
795 | with_afs |
796 | with_bash_malloc | |
797 | with_curses | |
798 | with_gnu_malloc | |
799 | with_installed_readline | |
800 | with_purecov | |
801 | with_purify | |
802 | enable_minimal_config | |
803 | enable_alias | |
804 | enable_arith_for_command | |
805 | enable_array_variables | |
806 | enable_bang_history | |
807 | enable_brace_expansion | |
808 | enable_casemod_attributes | |
809 | enable_casemod_expansions | |
810 | enable_command_timing | |
811 | enable_cond_command | |
812 | enable_cond_regexp | |
813 | enable_coprocesses | |
814 | enable_debugger | |
815 | enable_directory_stack | |
816 | enable_disabled_builtins | |
817 | enable_dparen_arithmetic | |
818 | enable_extended_glob | |
0001803f | 819 | enable_extended_glob_default |
3185942a JA |
820 | enable_help_builtin |
821 | enable_history | |
822 | enable_job_control | |
823 | enable_multibyte | |
824 | enable_net_redirections | |
825 | enable_process_substitution | |
826 | enable_progcomp | |
827 | enable_prompt_string_decoding | |
828 | enable_readline | |
829 | enable_restricted | |
830 | enable_select | |
831 | enable_separate_helpfiles | |
832 | enable_single_help_strings | |
833 | enable_strict_posix_default | |
834 | enable_usg_echo_default | |
835 | enable_xpg_echo_default | |
836 | enable_mem_scramble | |
837 | enable_profiling | |
838 | enable_static_link | |
839 | enable_largefile | |
840 | enable_nls | |
841 | with_gnu_ld | |
842 | enable_rpath | |
843 | with_libiconv_prefix | |
495aee44 | 844 | enable_nls |
3185942a JA |
845 | with_included_gettext |
846 | with_libintl_prefix | |
847 | ' | |
848 | ac_precious_vars='build_alias | |
849 | host_alias | |
850 | target_alias | |
851 | DEBUGGER_START_FILE | |
852 | CC | |
853 | CFLAGS | |
854 | LDFLAGS | |
855 | LIBS | |
856 | CPPFLAGS | |
857 | CPP | |
495aee44 | 858 | CPPFLAGS |
3185942a JA |
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 |
495aee44 | 1413 | \`configure' configures bash 4.2-release 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 | |
495aee44 | 1478 | short | recursive ) echo "Configuration of bash 4.2-release:";; |
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 | |
0001803f CR |
1513 | --enable-extended-glob-default |
1514 | force extended pattern matching to be enabled by | |
1515 | default | |
7117c2d2 JA |
1516 | --enable-help-builtin include the help builtin |
1517 | --enable-history turn on command history | |
1518 | --enable-job-control enable job control features | |
b80f6443 | 1519 | --enable-multibyte enable multibyte characters if OS supports them |
7117c2d2 JA |
1520 | --enable-net-redirections |
1521 | enable /dev/tcp/host/port redirection | |
1522 | --enable-process-substitution | |
1523 | enable process substitution | |
1524 | --enable-progcomp enable programmable completion and the complete | |
1525 | builtin | |
1526 | --enable-prompt-string-decoding | |
1527 | turn on escape character decoding in prompts | |
1528 | --enable-readline turn on command line editing | |
1529 | --enable-restricted enable a restricted shell | |
1530 | --enable-select include select command | |
1531 | --enable-separate-helpfiles | |
1532 | use external files for help builtin documentation | |
95732b49 JA |
1533 | --enable-single-help-strings |
1534 | store help documentation as a single string to ease | |
1535 | translation | |
1536 | --enable-strict-posix-default | |
1537 | configure bash to be posix-conformant by default | |
7117c2d2 JA |
1538 | --enable-usg-echo-default |
1539 | a synonym for --enable-xpg-echo-default | |
1540 | --enable-xpg-echo-default | |
1541 | make the echo builtin expand escape sequences by | |
1542 | default | |
1543 | --enable-mem-scramble scramble memory on calls to malloc and free | |
1544 | --enable-profiling allow profiling with gprof | |
1545 | --enable-static-link link bash statically, for use as a root shell | |
f73dda09 | 1546 | --disable-largefile omit support for large files |
b80f6443 JA |
1547 | --disable-nls do not use Native Language Support |
1548 | --disable-rpath do not hardcode runtime library paths | |
f73dda09 JA |
1549 | |
1550 | Optional Packages: | |
1551 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1552 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
7117c2d2 JA |
1553 | --with-afs if you are running AFS |
1554 | --with-bash-malloc use the Bash version of malloc | |
1555 | --with-curses use the curses library instead of the termcap | |
1556 | library | |
1557 | --with-gnu-malloc synonym for --with-bash-malloc | |
1558 | --with-installed-readline | |
1559 | use a version of the readline library that is | |
1560 | already installed | |
1561 | --with-purecov configure to postprocess with pure coverage | |
1562 | --with-purify configure to postprocess with purify | |
b80f6443 JA |
1563 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1564 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1565 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1566 | --with-included-gettext use the GNU gettext library included here | |
1567 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1568 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
f73dda09 JA |
1569 | |
1570 | Some influential environment variables: | |
b80f6443 JA |
1571 | DEBUGGER_START_FILE |
1572 | location of bash debugger initialization file | |
f73dda09 JA |
1573 | CC C compiler command |
1574 | CFLAGS C compiler flags | |
1575 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1576 | nonstandard directory <lib dir> | |
3185942a JA |
1577 | LIBS libraries to pass to the linker, e.g. -l<library> |
1578 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1579 | you have headers in a nonstandard directory <include dir> | |
f73dda09 | 1580 | CPP C preprocessor |
3185942a JA |
1581 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1582 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1583 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1584 | This script will default YFLAGS to the empty string to avoid a | |
1585 | default value of `-d' given by some make applications. | |
f73dda09 JA |
1586 | |
1587 | Use these variables to override the choices made by `configure' or to help | |
1588 | it to find libraries and programs with nonstandard names/locations. | |
1589 | ||
1590 | Report bugs to <bug-bash@gnu.org>. | |
b80f6443 | 1591 | _ACEOF |
3185942a | 1592 | ac_status=$? |
f73dda09 JA |
1593 | fi |
1594 | ||
1595 | if test "$ac_init_help" = "recursive"; then | |
1596 | # If there are subdirs, report their specific --help. | |
b80f6443 | 1597 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
3185942a JA |
1598 | test -d "$ac_dir" || |
1599 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1600 | continue | |
b80f6443 JA |
1601 | ac_builddir=. |
1602 | ||
3185942a JA |
1603 | case "$ac_dir" in |
1604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1605 | *) | |
1606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1607 | # A ".." for each directory in $ac_dir_suffix. | |
1608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1609 | case $ac_top_builddir_sub in | |
1610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1612 | esac ;; | |
1613 | esac | |
1614 | ac_abs_top_builddir=$ac_pwd | |
1615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1616 | # for backward compatibility: | |
1617 | ac_top_builddir=$ac_top_build_prefix | |
ccc6cda3 | 1618 | |
b80f6443 | 1619 | case $srcdir in |
3185942a | 1620 | .) # We are building in place. |
b80f6443 | 1621 | ac_srcdir=. |
3185942a JA |
1622 | ac_top_srcdir=$ac_top_builddir_sub |
1623 | ac_abs_top_srcdir=$ac_pwd ;; | |
1624 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b80f6443 | 1625 | ac_srcdir=$srcdir$ac_dir_suffix; |
3185942a JA |
1626 | ac_top_srcdir=$srcdir |
1627 | ac_abs_top_srcdir=$srcdir ;; | |
1628 | *) # Relative name. | |
1629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
0628567a | 1632 | esac |
3185942a JA |
1633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1634 | ||
1635 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1636 | # Check for guested configure. | |
1637 | if test -f "$ac_srcdir/configure.gnu"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1640 | elif test -f "$ac_srcdir/configure"; then | |
1641 | echo && | |
1642 | $SHELL "$ac_srcdir/configure" --help=recursive | |
f73dda09 | 1643 | else |
3185942a JA |
1644 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1645 | fi || ac_status=$? | |
1646 | cd "$ac_pwd" || { ac_status=$?; break; } | |
f73dda09 JA |
1647 | done |
1648 | fi | |
ccc6cda3 | 1649 | |
3185942a | 1650 | test -n "$ac_init_help" && exit $ac_status |
f73dda09 | 1651 | if $ac_init_version; then |
b80f6443 | 1652 | cat <<\_ACEOF |
495aee44 | 1653 | bash configure 4.2-release |
3185942a | 1654 | generated by GNU Autoconf 2.63 |
ccc6cda3 | 1655 | |
3185942a JA |
1656 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1657 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
f73dda09 JA |
1658 | This configure script is free software; the Free Software Foundation |
1659 | gives unlimited permission to copy, distribute and modify it. | |
b80f6443 | 1660 | _ACEOF |
3185942a | 1661 | exit |
f73dda09 | 1662 | fi |
3185942a | 1663 | cat >config.log <<_ACEOF |
f73dda09 JA |
1664 | This file contains any messages produced by compilers while |
1665 | running configure, to aid debugging if configure makes a mistake. | |
ccc6cda3 | 1666 | |
495aee44 | 1667 | It was created by bash $as_me 4.2-release, which was |
3185942a | 1668 | generated by GNU Autoconf 2.63. Invocation command line was |
ccc6cda3 | 1669 | |
f73dda09 | 1670 | $ $0 $@ |
bb70624e | 1671 | |
b80f6443 | 1672 | _ACEOF |
3185942a | 1673 | exec 5>>config.log |
f73dda09 JA |
1674 | { |
1675 | cat <<_ASUNAME | |
b80f6443 JA |
1676 | ## --------- ## |
1677 | ## Platform. ## | |
1678 | ## --------- ## | |
f73dda09 JA |
1679 | |
1680 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1681 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1682 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1683 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1684 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1685 | ||
1686 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1687 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1688 | ||
1689 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1690 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1691 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
3185942a | 1692 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
f73dda09 JA |
1693 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1694 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1695 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1696 | ||
f73dda09 | 1697 | _ASUNAME |
b80f6443 JA |
1698 | |
1699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1700 | for as_dir in $PATH | |
1701 | do | |
1702 | IFS=$as_save_IFS | |
1703 | test -z "$as_dir" && as_dir=. | |
3185942a | 1704 | $as_echo "PATH: $as_dir" |
b80f6443 | 1705 | done |
3185942a | 1706 | IFS=$as_save_IFS |
b80f6443 | 1707 | |
f73dda09 JA |
1708 | } >&5 |
1709 | ||
b80f6443 JA |
1710 | cat >&5 <<_ACEOF |
1711 | ||
1712 | ||
1713 | ## ----------- ## | |
1714 | ## Core tests. ## | |
1715 | ## ----------- ## | |
1716 | ||
1717 | _ACEOF | |
f73dda09 | 1718 | |
f73dda09 JA |
1719 | |
1720 | # Keep a trace of the command line. | |
1721 | # Strip out --no-create and --no-recursion so they do not pile up. | |
0628567a | 1722 | # Strip out --silent because we don't want to record it for future runs. |
f73dda09 | 1723 | # Also quote any args containing shell meta-characters. |
0628567a | 1724 | # Make two passes to allow for proper duplicate-argument suppression. |
f73dda09 | 1725 | ac_configure_args= |
0628567a JA |
1726 | ac_configure_args0= |
1727 | ac_configure_args1= | |
0628567a JA |
1728 | ac_must_keep_next=false |
1729 | for ac_pass in 1 2 | |
f73dda09 | 1730 | do |
0628567a JA |
1731 | for ac_arg |
1732 | do | |
1733 | case $ac_arg in | |
1734 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1735 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1736 | | -silent | --silent | --silen | --sile | --sil) | |
1737 | continue ;; | |
3185942a JA |
1738 | *\'*) |
1739 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
0628567a JA |
1740 | esac |
1741 | case $ac_pass in | |
1742 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1743 | 2) | |
1744 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1745 | if test $ac_must_keep_next = true; then | |
1746 | ac_must_keep_next=false # Got value, back to normal. | |
1747 | else | |
1748 | case $ac_arg in | |
1749 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1750 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1751 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1752 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1753 | case "$ac_configure_args0 " in | |
1754 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1755 | esac | |
1756 | ;; | |
1757 | -* ) ac_must_keep_next=true ;; | |
1758 | esac | |
1759 | fi | |
3185942a | 1760 | ac_configure_args="$ac_configure_args '$ac_arg'" |
0628567a JA |
1761 | ;; |
1762 | esac | |
1763 | done | |
f73dda09 | 1764 | done |
0628567a JA |
1765 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1766 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
f73dda09 JA |
1767 | |
1768 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1769 | # config.log. We remove comments because anyway the quotes in there | |
1770 | # would cause problems or look ugly. | |
3185942a JA |
1771 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1772 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
f73dda09 JA |
1773 | trap 'exit_status=$? |
1774 | # Save into config.log some information that might help in debugging. | |
b80f6443 JA |
1775 | { |
1776 | echo | |
0628567a | 1777 | |
b80f6443 JA |
1778 | cat <<\_ASBOX |
1779 | ## ---------------- ## | |
1780 | ## Cache variables. ## | |
1781 | ## ---------------- ## | |
1782 | _ASBOX | |
1783 | echo | |
1784 | # The following way of writing the cache mishandles newlines in values, | |
3185942a JA |
1785 | ( |
1786 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1787 | eval ac_val=\$$ac_var | |
1788 | case $ac_val in #( | |
1789 | *${as_nl}*) | |
1790 | case $ac_var in #( | |
1791 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1792 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1793 | esac | |
1794 | case $ac_var in #( | |
1795 | _ | IFS | as_nl) ;; #( | |
1796 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1797 | *) $as_unset $ac_var ;; | |
1798 | esac ;; | |
1799 | esac | |
1800 | done | |
f73dda09 | 1801 | (set) 2>&1 | |
3185942a JA |
1802 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1803 | *${as_nl}ac_space=\ *) | |
f73dda09 | 1804 | sed -n \ |
3185942a JA |
1805 | "s/'\''/'\''\\\\'\'''\''/g; |
1806 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1807 | ;; #( | |
f73dda09 | 1808 | *) |
3185942a | 1809 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f73dda09 | 1810 | ;; |
3185942a JA |
1811 | esac | |
1812 | sort | |
1813 | ) | |
b80f6443 | 1814 | echo |
0628567a JA |
1815 | |
1816 | cat <<\_ASBOX | |
1817 | ## ----------------- ## | |
1818 | ## Output variables. ## | |
1819 | ## ----------------- ## | |
1820 | _ASBOX | |
1821 | echo | |
1822 | for ac_var in $ac_subst_vars | |
1823 | do | |
3185942a JA |
1824 | eval ac_val=\$$ac_var |
1825 | case $ac_val in | |
1826 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1827 | esac | |
1828 | $as_echo "$ac_var='\''$ac_val'\''" | |
0628567a JA |
1829 | done | sort |
1830 | echo | |
1831 | ||
1832 | if test -n "$ac_subst_files"; then | |
1833 | cat <<\_ASBOX | |
3185942a JA |
1834 | ## ------------------- ## |
1835 | ## File substitutions. ## | |
1836 | ## ------------------- ## | |
0628567a JA |
1837 | _ASBOX |
1838 | echo | |
1839 | for ac_var in $ac_subst_files | |
1840 | do | |
3185942a JA |
1841 | eval ac_val=\$$ac_var |
1842 | case $ac_val in | |
1843 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1844 | esac | |
1845 | $as_echo "$ac_var='\''$ac_val'\''" | |
0628567a JA |
1846 | done | sort |
1847 | echo | |
1848 | fi | |
1849 | ||
b80f6443 JA |
1850 | if test -s confdefs.h; then |
1851 | cat <<\_ASBOX | |
1852 | ## ----------- ## | |
1853 | ## confdefs.h. ## | |
1854 | ## ----------- ## | |
1855 | _ASBOX | |
1856 | echo | |
3185942a | 1857 | cat confdefs.h |
b80f6443 JA |
1858 | echo |
1859 | fi | |
1860 | test "$ac_signal" != 0 && | |
3185942a JA |
1861 | $as_echo "$as_me: caught signal $ac_signal" |
1862 | $as_echo "$as_me: exit $exit_status" | |
b80f6443 | 1863 | } >&5 |
3185942a JA |
1864 | rm -f core *.core core.conftest.* && |
1865 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
f73dda09 | 1866 | exit $exit_status |
3185942a | 1867 | ' 0 |
f73dda09 JA |
1868 | for ac_signal in 1 2 13 15; do |
1869 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1870 | done | |
1871 | ac_signal=0 | |
1872 | ||
1873 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
3185942a | 1874 | rm -f -r conftest* confdefs.h |
f73dda09 | 1875 | |
b80f6443 JA |
1876 | # Predefined preprocessor variables. |
1877 | ||
1878 | cat >>confdefs.h <<_ACEOF | |
1879 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1880 | _ACEOF | |
1881 | ||
1882 | ||
1883 | cat >>confdefs.h <<_ACEOF | |
1884 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1885 | _ACEOF | |
1886 | ||
1887 | ||
1888 | cat >>confdefs.h <<_ACEOF | |
1889 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1890 | _ACEOF | |
1891 | ||
1892 | ||
1893 | cat >>confdefs.h <<_ACEOF | |
1894 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1895 | _ACEOF | |
1896 | ||
1897 | ||
1898 | cat >>confdefs.h <<_ACEOF | |
1899 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1900 | _ACEOF | |
1901 | ||
1902 | ||
f73dda09 | 1903 | # Let the site file select an alternate cache file if it wants to. |
3185942a JA |
1904 | # Prefer an explicitly selected file to automatically selected ones. |
1905 | ac_site_file1=NONE | |
1906 | ac_site_file2=NONE | |
1907 | if test -n "$CONFIG_SITE"; then | |
1908 | ac_site_file1=$CONFIG_SITE | |
1909 | elif test "x$prefix" != xNONE; then | |
1910 | ac_site_file1=$prefix/share/config.site | |
1911 | ac_site_file2=$prefix/etc/config.site | |
1912 | else | |
1913 | ac_site_file1=$ac_default_prefix/share/config.site | |
1914 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1915 | fi | |
1916 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1917 | do | |
1918 | test "x$ac_site_file" = xNONE && continue | |
f73dda09 | 1919 | if test -r "$ac_site_file"; then |
3185942a JA |
1920 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1921 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b80f6443 | 1922 | sed 's/^/| /' "$ac_site_file" >&5 |
f73dda09 JA |
1923 | . "$ac_site_file" |
1924 | fi | |
1925 | done | |
1926 | ||
1927 | if test -r "$cache_file"; then | |
1928 | # Some versions of bash will fail to source /dev/null (special | |
1929 | # files actually), so we avoid doing that. | |
1930 | if test -f "$cache_file"; then | |
3185942a JA |
1931 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1932 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
f73dda09 | 1933 | case $cache_file in |
3185942a JA |
1934 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1935 | *) . "./$cache_file";; | |
f73dda09 JA |
1936 | esac |
1937 | fi | |
1938 | else | |
3185942a JA |
1939 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1940 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
f73dda09 JA |
1941 | >$cache_file |
1942 | fi | |
1943 | ||
3185942a JA |
1944 | ac_header_list="$ac_header_list sys/time.h" |
1945 | ac_header_list="$ac_header_list unistd.h" | |
1946 | ac_func_list="$ac_func_list alarm" | |
1947 | ac_func_list="$ac_func_list fpurge" | |
1948 | ac_func_list="$ac_func_list __fpurge" | |
0001803f CR |
1949 | ac_func_list="$ac_func_list snprintf" |
1950 | ac_func_list="$ac_func_list vsnprintf" | |
f73dda09 JA |
1951 | # Check that the precious variables saved in the cache have kept the same |
1952 | # value. | |
1953 | ac_cache_corrupted=false | |
3185942a | 1954 | for ac_var in $ac_precious_vars; do |
f73dda09 JA |
1955 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1956 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3185942a JA |
1957 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1958 | eval ac_new_val=\$ac_env_${ac_var}_value | |
f73dda09 JA |
1959 | case $ac_old_set,$ac_new_set in |
1960 | set,) | |
3185942a JA |
1961 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1962 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
f73dda09 JA |
1963 | ac_cache_corrupted=: ;; |
1964 | ,set) | |
3185942a JA |
1965 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1966 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
f73dda09 JA |
1967 | ac_cache_corrupted=: ;; |
1968 | ,);; | |
1969 | *) | |
1970 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3185942a JA |
1971 | # differences in whitespace do not lead to failure. |
1972 | ac_old_val_w=`echo x $ac_old_val` | |
1973 | ac_new_val_w=`echo x $ac_new_val` | |
1974 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1975 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1976 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1977 | ac_cache_corrupted=: | |
1978 | else | |
1979 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1980 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1981 | eval $ac_var=\$ac_old_val | |
1982 | fi | |
1983 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1984 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1985 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1986 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
f73dda09 JA |
1987 | fi;; |
1988 | esac | |
b80f6443 | 1989 | # Pass precious variables to config.status. |
f73dda09 JA |
1990 | if test "$ac_new_set" = set; then |
1991 | case $ac_new_val in | |
3185942a | 1992 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b80f6443 JA |
1993 | *) ac_arg=$ac_var=$ac_new_val ;; |
1994 | esac | |
1995 | case " $ac_configure_args " in | |
1996 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1997 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
f73dda09 JA |
1998 | esac |
1999 | fi | |
2000 | done | |
2001 | if $ac_cache_corrupted; then | |
3185942a JA |
2002 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2004 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2005 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2006 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2007 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
f73dda09 JA |
2008 | { (exit 1); exit 1; }; } |
2009 | fi | |
2010 | ||
b80f6443 JA |
2011 | |
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | ||
3185942a JA |
2035 | ac_ext=c |
2036 | ac_cpp='$CPP $CPPFLAGS' | |
2037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b80f6443 JA |
2040 | |
2041 | ||
2042 | ||
0628567a | 2043 | |
b80f6443 | 2044 | |
f73dda09 JA |
2045 | |
2046 | ac_aux_dir= | |
3185942a JA |
2047 | for ac_dir in ./support "$srcdir"/./support; do |
2048 | if 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/install.sh"; then |
f73dda09 JA |
2053 | ac_aux_dir=$ac_dir |
2054 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2055 | break | |
3185942a | 2056 | elif test -f "$ac_dir/shtool"; then |
f73dda09 JA |
2057 | ac_aux_dir=$ac_dir |
2058 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2059 | break | |
2060 | fi | |
2061 | done | |
2062 | if test -z "$ac_aux_dir"; then | |
3185942a JA |
2063 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5 |
2064 | $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;} | |
f73dda09 JA |
2065 | { (exit 1); exit 1; }; } |
2066 | fi | |
f73dda09 | 2067 | |
3185942a JA |
2068 | # These three variables are undocumented and unsupported, |
2069 | # and are intended to be withdrawn in a future Autoconf release. | |
2070 | # They can cause serious problems if a builder's source tree is in a directory | |
2071 | # whose full name contains unusual characters. | |
2072 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2073 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2074 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2075 | ||
f73dda09 | 2076 | |
3185942a | 2077 | ac_config_headers="$ac_config_headers config.h" |
b80f6443 | 2078 | |
3185942a | 2079 | |
495aee44 | 2080 | BASHVERS=4.2 |
17345e5a | 2081 | RELSTATUS=release |
7117c2d2 JA |
2082 | |
2083 | case "$RELSTATUS" in | |
3185942a | 2084 | alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; |
7117c2d2 JA |
2085 | *) DEBUG= MALLOC_DEBUG= ;; |
2086 | esac | |
f73dda09 JA |
2087 | |
2088 | # Make sure we can run config.sub. | |
3185942a JA |
2089 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2090 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2091 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
f73dda09 JA |
2092 | { (exit 1); exit 1; }; } |
2093 | ||
3185942a JA |
2094 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2095 | $as_echo_n "checking build system type... " >&6; } | |
f73dda09 | 2096 | if test "${ac_cv_build+set}" = set; then |
3185942a JA |
2097 | $as_echo_n "(cached) " >&6 |
2098 | else | |
2099 | ac_build_alias=$build_alias | |
2100 | test "x$ac_build_alias" = x && | |
2101 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2102 | test "x$ac_build_alias" = x && | |
2103 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2104 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
f73dda09 | 2105 | { (exit 1); exit 1; }; } |
3185942a JA |
2106 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2107 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2108 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
f73dda09 JA |
2109 | { (exit 1); exit 1; }; } |
2110 | ||
2111 | fi | |
3185942a JA |
2112 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2113 | $as_echo "$ac_cv_build" >&6; } | |
2114 | case $ac_cv_build in | |
2115 | *-*-*) ;; | |
2116 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2117 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2118 | { (exit 1); exit 1; }; };; | |
2119 | esac | |
f73dda09 | 2120 | build=$ac_cv_build |
3185942a JA |
2121 | ac_save_IFS=$IFS; IFS='-' |
2122 | set x $ac_cv_build | |
2123 | shift | |
2124 | build_cpu=$1 | |
2125 | build_vendor=$2 | |
2126 | shift; shift | |
2127 | # Remember, the first character of IFS is used to create $*, | |
2128 | # except with old shells: | |
2129 | build_os=$* | |
2130 | IFS=$ac_save_IFS | |
2131 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2132 | ||
2133 | ||
2134 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2135 | $as_echo_n "checking host system type... " >&6; } | |
f73dda09 | 2136 | if test "${ac_cv_host+set}" = set; then |
3185942a JA |
2137 | $as_echo_n "(cached) " >&6 |
2138 | else | |
2139 | if test "x$host_alias" = x; then | |
2140 | ac_cv_host=$ac_cv_build | |
2141 | else | |
2142 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2143 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2144 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
f73dda09 | 2145 | { (exit 1); exit 1; }; } |
3185942a | 2146 | fi |
f73dda09 JA |
2147 | |
2148 | fi | |
3185942a JA |
2149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2150 | $as_echo "$ac_cv_host" >&6; } | |
2151 | case $ac_cv_host in | |
2152 | *-*-*) ;; | |
2153 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2154 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2155 | { (exit 1); exit 1; }; };; | |
2156 | esac | |
f73dda09 | 2157 | host=$ac_cv_host |
3185942a JA |
2158 | ac_save_IFS=$IFS; IFS='-' |
2159 | set x $ac_cv_host | |
2160 | shift | |
2161 | host_cpu=$1 | |
2162 | host_vendor=$2 | |
2163 | shift; shift | |
2164 | # Remember, the first character of IFS is used to create $*, | |
2165 | # except with old shells: | |
2166 | host_os=$* | |
2167 | IFS=$ac_save_IFS | |
2168 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
f73dda09 | 2169 | |
b80f6443 JA |
2170 | |
2171 | ||
f73dda09 JA |
2172 | opt_bash_malloc=yes |
2173 | opt_purify=no | |
2174 | opt_purecov=no | |
2175 | opt_afs=no | |
2176 | opt_curses=no | |
2177 | opt_with_installed_readline=no | |
2178 | ||
2179 | #htmldir= | |
2180 | ||
2181 | case "${host_cpu}-${host_os}" in | |
2182 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux | |
2183 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays | |
2184 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines | |
2185 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 | |
2186 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
bb70624e JA |
2187 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment |
2188 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir | |
2189 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF | |
95732b49 | 2190 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here |
7117c2d2 | 2191 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree |
f73dda09 | 2192 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment |
bb70624e JA |
2193 | *-aix*) opt_bash_malloc=no ;; # AIX machines |
2194 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep | |
28ef6c31 JA |
2195 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X |
2196 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) | |
2197 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) | |
bb70624e | 2198 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines |
95732b49 | 2199 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x |
bb70624e JA |
2200 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x |
2201 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins | |
2202 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable | |
28ef6c31 JA |
2203 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment |
2204 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft | |
ccc6cda3 JA |
2205 | esac |
2206 | ||
7117c2d2 JA |
2207 | # memory scrambling on free() |
2208 | case "${host_os}" in | |
2209 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; | |
2210 | *) opt_memscramble=yes ;; | |
2211 | esac | |
2212 | ||
b80f6443 | 2213 | |
b80f6443 JA |
2214 | |
2215 | ||
3185942a | 2216 | # Check whether --with-afs was given. |
d166f048 | 2217 | if test "${with_afs+set}" = set; then |
3185942a JA |
2218 | withval=$with_afs; opt_afs=$withval |
2219 | fi | |
d166f048 | 2220 | |
3185942a JA |
2221 | |
2222 | # Check whether --with-bash-malloc was given. | |
bb70624e | 2223 | if test "${with_bash_malloc+set}" = set; then |
3185942a JA |
2224 | withval=$with_bash_malloc; opt_bash_malloc=$withval |
2225 | fi | |
bb70624e | 2226 | |
3185942a JA |
2227 | |
2228 | # Check whether --with-curses was given. | |
d166f048 | 2229 | if test "${with_curses+set}" = set; then |
3185942a JA |
2230 | withval=$with_curses; opt_curses=$withval |
2231 | fi | |
ccc6cda3 | 2232 | |
3185942a JA |
2233 | |
2234 | # Check whether --with-gnu-malloc was given. | |
d166f048 | 2235 | if test "${with_gnu_malloc+set}" = set; then |
3185942a JA |
2236 | withval=$with_gnu_malloc; opt_bash_malloc=$withval |
2237 | fi | |
d166f048 | 2238 | |
3185942a JA |
2239 | |
2240 | # Check whether --with-installed-readline was given. | |
b72432fd | 2241 | if test "${with_installed_readline+set}" = set; then |
3185942a JA |
2242 | withval=$with_installed_readline; opt_with_installed_readline=$withval |
2243 | fi | |
b72432fd | 2244 | |
3185942a JA |
2245 | |
2246 | # Check whether --with-purecov was given. | |
d166f048 | 2247 | if test "${with_purecov+set}" = set; then |
3185942a JA |
2248 | withval=$with_purecov; opt_purecov=$withval |
2249 | fi | |
d166f048 | 2250 | |
3185942a JA |
2251 | |
2252 | # Check whether --with-purify was given. | |
ccc6cda3 | 2253 | if test "${with_purify+set}" = set; then |
3185942a JA |
2254 | withval=$with_purify; opt_purify=$withval |
2255 | fi | |
2256 | ||
ccc6cda3 | 2257 | |
f73dda09 | 2258 | if test "$opt_bash_malloc" = yes; then |
d166f048 JA |
2259 | MALLOC_TARGET=malloc |
2260 | MALLOC_SRC=malloc.c | |
f73dda09 JA |
2261 | |
2262 | MALLOC_LIB='-lmalloc' | |
2263 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
2264 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
2265 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
2266 | ||
b80f6443 | 2267 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2268 | #define USING_BASH_MALLOC 1 |
b80f6443 | 2269 | _ACEOF |
bb70624e | 2270 | |
ccc6cda3 | 2271 | else |
f73dda09 JA |
2272 | MALLOC_LIB= |
2273 | MALLOC_LIBRARY= | |
2274 | MALLOC_LDFLAGS= | |
2275 | MALLOC_DEP= | |
ccc6cda3 JA |
2276 | fi |
2277 | ||
2278 | if test "$opt_purify" = yes; then | |
d166f048 | 2279 | PURIFY="purify " |
b80f6443 | 2280 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 2281 | #define DISABLE_MALLOC_WRAPPERS 1 |
b80f6443 | 2282 | _ACEOF |
7117c2d2 | 2283 | |
ccc6cda3 JA |
2284 | else |
2285 | PURIFY= | |
2286 | fi | |
2287 | ||
d166f048 JA |
2288 | if test "$opt_purecov" = yes; then |
2289 | PURIFY="${PURIFY}purecov" | |
2290 | fi | |
2291 | ||
ccc6cda3 | 2292 | if test "$opt_afs" = yes; then |
b80f6443 | 2293 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2294 | #define AFS 1 |
b80f6443 | 2295 | _ACEOF |
ccc6cda3 JA |
2296 | |
2297 | fi | |
2298 | ||
d166f048 JA |
2299 | if test "$opt_curses" = yes; then |
2300 | prefer_curses=yes | |
2301 | fi | |
2302 | ||
b80f6443 | 2303 | if test -z "${DEBUGGER_START_FILE}"; then |
3185942a | 2304 | DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' |
b80f6443 JA |
2305 | fi |
2306 | ||
ccc6cda3 JA |
2307 | opt_minimal_config=no |
2308 | ||
2309 | opt_job_control=yes | |
2310 | opt_alias=yes | |
2311 | opt_readline=yes | |
2312 | opt_history=yes | |
2313 | opt_bang_history=yes | |
2314 | opt_dirstack=yes | |
2315 | opt_restricted=yes | |
2316 | opt_process_subst=yes | |
2317 | opt_prompt_decoding=yes | |
2318 | opt_select=yes | |
2319 | opt_help=yes | |
2320 | opt_array_variables=yes | |
2321 | opt_dparen_arith=yes | |
cce855bc | 2322 | opt_extended_glob=yes |
ccc6cda3 JA |
2323 | opt_brace_expansion=yes |
2324 | opt_disabled_builtins=no | |
2325 | opt_command_timing=yes | |
bb70624e | 2326 | opt_xpg_echo=no |
95732b49 | 2327 | opt_strict_posix=no |
cce855bc | 2328 | opt_cond_command=yes |
b80f6443 | 2329 | opt_cond_regexp=yes |
3185942a | 2330 | opt_coproc=yes |
bb70624e JA |
2331 | opt_arith_for_command=yes |
2332 | opt_net_redirs=yes | |
2333 | opt_progcomp=yes | |
7117c2d2 | 2334 | opt_separate_help=no |
b80f6443 JA |
2335 | opt_multibyte=yes |
2336 | opt_debugger=yes | |
95732b49 | 2337 | opt_single_longdoc_strings=yes |
3185942a JA |
2338 | opt_casemod_attrs=yes |
2339 | opt_casemod_expansions=yes | |
0001803f | 2340 | opt_extglob_default=no |
cce855bc JA |
2341 | |
2342 | opt_static_link=no | |
2343 | opt_profiling=no | |
ccc6cda3 | 2344 | |
3185942a | 2345 | # Check whether --enable-minimal-config was given. |
ccc6cda3 | 2346 | if test "${enable_minimal_config+set}" = set; then |
3185942a JA |
2347 | enableval=$enable_minimal_config; opt_minimal_config=$enableval |
2348 | fi | |
2349 | ||
ccc6cda3 JA |
2350 | |
2351 | if test $opt_minimal_config = yes; then | |
2352 | opt_job_control=no opt_alias=no opt_readline=no | |
2353 | opt_history=no opt_bang_history=no opt_dirstack=no | |
2354 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no | |
2355 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no | |
2356 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no | |
bb70624e | 2357 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no |
7117c2d2 | 2358 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no |
3185942a | 2359 | opt_multibyte=yes opt_cond_regexp=no opt_coproc=no |
0001803f | 2360 | opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no |
ccc6cda3 JA |
2361 | fi |
2362 | ||
3185942a | 2363 | # Check whether --enable-alias was given. |
ccc6cda3 | 2364 | if test "${enable_alias+set}" = set; then |
3185942a JA |
2365 | enableval=$enable_alias; opt_alias=$enableval |
2366 | fi | |
2367 | ||
2368 | # Check whether --enable-arith-for-command was given. | |
bb70624e | 2369 | if test "${enable_arith_for_command+set}" = set; then |
3185942a JA |
2370 | enableval=$enable_arith_for_command; opt_arith_for_command=$enableval |
2371 | fi | |
2372 | ||
2373 | # Check whether --enable-array-variables was given. | |
d166f048 | 2374 | if test "${enable_array_variables+set}" = set; then |
3185942a JA |
2375 | enableval=$enable_array_variables; opt_array_variables=$enableval |
2376 | fi | |
2377 | ||
2378 | # Check whether --enable-bang-history was given. | |
ccc6cda3 | 2379 | if test "${enable_bang_history+set}" = set; then |
3185942a JA |
2380 | enableval=$enable_bang_history; opt_bang_history=$enableval |
2381 | fi | |
2382 | ||
2383 | # Check whether --enable-brace-expansion was given. | |
d166f048 | 2384 | if test "${enable_brace_expansion+set}" = set; then |
3185942a JA |
2385 | enableval=$enable_brace_expansion; opt_brace_expansion=$enableval |
2386 | fi | |
2387 | ||
2388 | # Check whether --enable-casemod-attributes was given. | |
2389 | if test "${enable_casemod_attributes+set}" = set; then | |
2390 | enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval | |
2391 | fi | |
2392 | ||
2393 | # Check whether --enable-casemod-expansions was given. | |
2394 | if test "${enable_casemod_expansions+set}" = set; then | |
2395 | enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval | |
2396 | fi | |
2397 | ||
2398 | # Check whether --enable-command-timing was given. | |
d166f048 | 2399 | if test "${enable_command_timing+set}" = set; then |
3185942a JA |
2400 | enableval=$enable_command_timing; opt_command_timing=$enableval |
2401 | fi | |
2402 | ||
2403 | # Check whether --enable-cond-command was given. | |
cce855bc | 2404 | if test "${enable_cond_command+set}" = set; then |
3185942a JA |
2405 | enableval=$enable_cond_command; opt_cond_command=$enableval |
2406 | fi | |
2407 | ||
2408 | # Check whether --enable-cond-regexp was given. | |
b80f6443 | 2409 | if test "${enable_cond_regexp+set}" = set; then |
3185942a JA |
2410 | enableval=$enable_cond_regexp; opt_cond_regexp=$enableval |
2411 | fi | |
2412 | ||
2413 | # Check whether --enable-coprocesses was given. | |
2414 | if test "${enable_coprocesses+set}" = set; then | |
2415 | enableval=$enable_coprocesses; opt_coproc=$enableval | |
2416 | fi | |
2417 | ||
2418 | # Check whether --enable-debugger was given. | |
b80f6443 | 2419 | if test "${enable_debugger+set}" = set; then |
3185942a JA |
2420 | enableval=$enable_debugger; opt_debugger=$enableval |
2421 | fi | |
2422 | ||
2423 | # Check whether --enable-directory-stack was given. | |
d166f048 | 2424 | if test "${enable_directory_stack+set}" = set; then |
3185942a JA |
2425 | enableval=$enable_directory_stack; opt_dirstack=$enableval |
2426 | fi | |
2427 | ||
2428 | # Check whether --enable-disabled-builtins was given. | |
d166f048 | 2429 | if test "${enable_disabled_builtins+set}" = set; then |
3185942a JA |
2430 | enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval |
2431 | fi | |
2432 | ||
2433 | # Check whether --enable-dparen-arithmetic was given. | |
d166f048 | 2434 | if test "${enable_dparen_arithmetic+set}" = set; then |
3185942a JA |
2435 | enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval |
2436 | fi | |
2437 | ||
2438 | # Check whether --enable-extended-glob was given. | |
cce855bc | 2439 | if test "${enable_extended_glob+set}" = set; then |
3185942a JA |
2440 | enableval=$enable_extended_glob; opt_extended_glob=$enableval |
2441 | fi | |
2442 | ||
0001803f CR |
2443 | # Check whether --enable-extended-glob-default was given. |
2444 | if test "${enable_extended_glob_default+set}" = set; then | |
2445 | enableval=$enable_extended_glob_default; opt_extglob_default=$enableval | |
2446 | fi | |
2447 | ||
3185942a | 2448 | # Check whether --enable-help-builtin was given. |
ccc6cda3 | 2449 | if test "${enable_help_builtin+set}" = set; then |
3185942a JA |
2450 | enableval=$enable_help_builtin; opt_help=$enableval |
2451 | fi | |
2452 | ||
2453 | # Check whether --enable-history was given. | |
d166f048 | 2454 | if test "${enable_history+set}" = set; then |
3185942a JA |
2455 | enableval=$enable_history; opt_history=$enableval |
2456 | fi | |
2457 | ||
2458 | # Check whether --enable-job-control was given. | |
d166f048 | 2459 | if test "${enable_job_control+set}" = set; then |
3185942a JA |
2460 | enableval=$enable_job_control; opt_job_control=$enableval |
2461 | fi | |
2462 | ||
2463 | # Check whether --enable-multibyte was given. | |
b80f6443 | 2464 | if test "${enable_multibyte+set}" = set; then |
3185942a JA |
2465 | enableval=$enable_multibyte; opt_multibyte=$enableval |
2466 | fi | |
2467 | ||
2468 | # Check whether --enable-net-redirections was given. | |
bb70624e | 2469 | if test "${enable_net_redirections+set}" = set; then |
3185942a JA |
2470 | enableval=$enable_net_redirections; opt_net_redirs=$enableval |
2471 | fi | |
2472 | ||
2473 | # Check whether --enable-process-substitution was given. | |
d166f048 | 2474 | if test "${enable_process_substitution+set}" = set; then |
3185942a JA |
2475 | enableval=$enable_process_substitution; opt_process_subst=$enableval |
2476 | fi | |
2477 | ||
2478 | # Check whether --enable-progcomp was given. | |
bb70624e | 2479 | if test "${enable_progcomp+set}" = set; then |
3185942a JA |
2480 | enableval=$enable_progcomp; opt_progcomp=$enableval |
2481 | fi | |
2482 | ||
2483 | # Check whether --enable-prompt-string-decoding was given. | |
d166f048 | 2484 | if test "${enable_prompt_string_decoding+set}" = set; then |
3185942a JA |
2485 | enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval |
2486 | fi | |
2487 | ||
2488 | # Check whether --enable-readline was given. | |
d166f048 | 2489 | if test "${enable_readline+set}" = set; then |
3185942a JA |
2490 | enableval=$enable_readline; opt_readline=$enableval |
2491 | fi | |
2492 | ||
2493 | # Check whether --enable-restricted was given. | |
d166f048 | 2494 | if test "${enable_restricted+set}" = set; then |
3185942a JA |
2495 | enableval=$enable_restricted; opt_restricted=$enableval |
2496 | fi | |
2497 | ||
2498 | # Check whether --enable-select was given. | |
d166f048 | 2499 | if test "${enable_select+set}" = set; then |
3185942a JA |
2500 | enableval=$enable_select; opt_select=$enableval |
2501 | fi | |
2502 | ||
2503 | # Check whether --enable-separate-helpfiles was given. | |
7117c2d2 | 2504 | if test "${enable_separate_helpfiles+set}" = set; then |
3185942a JA |
2505 | enableval=$enable_separate_helpfiles; opt_separate_help=$enableval |
2506 | fi | |
2507 | ||
2508 | # Check whether --enable-single-help-strings was given. | |
95732b49 | 2509 | if test "${enable_single_help_strings+set}" = set; then |
3185942a JA |
2510 | enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval |
2511 | fi | |
2512 | ||
2513 | # Check whether --enable-strict-posix-default was given. | |
95732b49 | 2514 | if test "${enable_strict_posix_default+set}" = set; then |
3185942a JA |
2515 | enableval=$enable_strict_posix_default; opt_strict_posix=$enableval |
2516 | fi | |
2517 | ||
2518 | # Check whether --enable-usg-echo-default was given. | |
ccc6cda3 | 2519 | if test "${enable_usg_echo_default+set}" = set; then |
3185942a JA |
2520 | enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval |
2521 | fi | |
2522 | ||
2523 | # Check whether --enable-xpg-echo-default was given. | |
bb70624e | 2524 | if test "${enable_xpg_echo_default+set}" = set; then |
3185942a JA |
2525 | enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval |
2526 | fi | |
ccc6cda3 | 2527 | |
3185942a JA |
2528 | |
2529 | # Check whether --enable-mem-scramble was given. | |
7117c2d2 | 2530 | if test "${enable_mem_scramble+set}" = set; then |
3185942a JA |
2531 | enableval=$enable_mem_scramble; opt_memscramble=$enableval |
2532 | fi | |
2533 | ||
2534 | # Check whether --enable-profiling was given. | |
cce855bc | 2535 | if test "${enable_profiling+set}" = set; then |
3185942a JA |
2536 | enableval=$enable_profiling; opt_profiling=$enableval |
2537 | fi | |
2538 | ||
2539 | # Check whether --enable-static-link was given. | |
cce855bc | 2540 | if test "${enable_static_link+set}" = set; then |
3185942a JA |
2541 | enableval=$enable_static_link; opt_static_link=$enableval |
2542 | fi | |
2543 | ||
b72432fd | 2544 | |
b80f6443 JA |
2545 | |
2546 | ||
ccc6cda3 | 2547 | if test $opt_alias = yes; then |
b80f6443 | 2548 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2549 | #define ALIAS 1 |
b80f6443 | 2550 | _ACEOF |
ccc6cda3 | 2551 | |
ccc6cda3 JA |
2552 | fi |
2553 | if test $opt_dirstack = yes; then | |
b80f6443 | 2554 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2555 | #define PUSHD_AND_POPD 1 |
b80f6443 | 2556 | _ACEOF |
ccc6cda3 JA |
2557 | |
2558 | fi | |
2559 | if test $opt_restricted = yes; then | |
b80f6443 | 2560 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2561 | #define RESTRICTED_SHELL 1 |
b80f6443 | 2562 | _ACEOF |
ccc6cda3 JA |
2563 | |
2564 | fi | |
2565 | if test $opt_process_subst = yes; then | |
b80f6443 | 2566 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2567 | #define PROCESS_SUBSTITUTION 1 |
b80f6443 | 2568 | _ACEOF |
ccc6cda3 JA |
2569 | |
2570 | fi | |
2571 | if test $opt_prompt_decoding = yes; then | |
b80f6443 | 2572 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2573 | #define PROMPT_STRING_DECODE 1 |
b80f6443 | 2574 | _ACEOF |
ccc6cda3 JA |
2575 | |
2576 | fi | |
2577 | if test $opt_select = yes; then | |
b80f6443 | 2578 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2579 | #define SELECT_COMMAND 1 |
b80f6443 | 2580 | _ACEOF |
ccc6cda3 JA |
2581 | |
2582 | fi | |
2583 | if test $opt_help = yes; then | |
b80f6443 | 2584 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2585 | #define HELP_BUILTIN 1 |
b80f6443 | 2586 | _ACEOF |
ccc6cda3 JA |
2587 | |
2588 | fi | |
2589 | if test $opt_array_variables = yes; then | |
b80f6443 | 2590 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2591 | #define ARRAY_VARS 1 |
b80f6443 | 2592 | _ACEOF |
ccc6cda3 JA |
2593 | |
2594 | fi | |
2595 | if test $opt_dparen_arith = yes; then | |
b80f6443 | 2596 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2597 | #define DPAREN_ARITHMETIC 1 |
b80f6443 | 2598 | _ACEOF |
ccc6cda3 JA |
2599 | |
2600 | fi | |
2601 | if test $opt_brace_expansion = yes; then | |
b80f6443 | 2602 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2603 | #define BRACE_EXPANSION 1 |
b80f6443 | 2604 | _ACEOF |
ccc6cda3 JA |
2605 | |
2606 | fi | |
2607 | if test $opt_disabled_builtins = yes; then | |
b80f6443 | 2608 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2609 | #define DISABLED_BUILTINS 1 |
b80f6443 | 2610 | _ACEOF |
ccc6cda3 JA |
2611 | |
2612 | fi | |
2613 | if test $opt_command_timing = yes; then | |
b80f6443 | 2614 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 2615 | #define COMMAND_TIMING 1 |
b80f6443 | 2616 | _ACEOF |
ccc6cda3 JA |
2617 | |
2618 | fi | |
bb70624e | 2619 | if test $opt_xpg_echo = yes ; then |
b80f6443 | 2620 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2621 | #define DEFAULT_ECHO_TO_XPG 1 |
b80f6443 | 2622 | _ACEOF |
ccc6cda3 | 2623 | |
95732b49 JA |
2624 | fi |
2625 | if test $opt_strict_posix = yes; then | |
2626 | cat >>confdefs.h <<\_ACEOF | |
2627 | #define STRICT_POSIX 1 | |
2628 | _ACEOF | |
2629 | ||
cce855bc JA |
2630 | fi |
2631 | if test $opt_extended_glob = yes ; then | |
b80f6443 | 2632 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 2633 | #define EXTENDED_GLOB 1 |
b80f6443 | 2634 | _ACEOF |
cce855bc | 2635 | |
0001803f CR |
2636 | fi |
2637 | if test $opt_extglob_default = yes; then | |
2638 | cat >>confdefs.h <<\_ACEOF | |
2639 | #define EXTGLOB_DEFAULT 1 | |
2640 | _ACEOF | |
2641 | ||
2642 | else | |
2643 | cat >>confdefs.h <<\_ACEOF | |
2644 | #define EXTGLOB_DEFAULT 0 | |
2645 | _ACEOF | |
2646 | ||
cce855bc JA |
2647 | fi |
2648 | if test $opt_cond_command = yes ; then | |
b80f6443 | 2649 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 2650 | #define COND_COMMAND 1 |
b80f6443 JA |
2651 | _ACEOF |
2652 | ||
2653 | fi | |
2654 | if test $opt_cond_regexp = yes ; then | |
2655 | cat >>confdefs.h <<\_ACEOF | |
2656 | #define COND_REGEXP 1 | |
2657 | _ACEOF | |
cce855bc | 2658 | |
3185942a JA |
2659 | fi |
2660 | if test $opt_coproc = yes; then | |
2661 | cat >>confdefs.h <<\_ACEOF | |
2662 | #define COPROCESS_SUPPORT 1 | |
2663 | _ACEOF | |
2664 | ||
bb70624e JA |
2665 | fi |
2666 | if test $opt_arith_for_command = yes; then | |
b80f6443 | 2667 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2668 | #define ARITH_FOR_COMMAND 1 |
b80f6443 | 2669 | _ACEOF |
bb70624e JA |
2670 | |
2671 | fi | |
2672 | if test $opt_net_redirs = yes; then | |
b80f6443 | 2673 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2674 | #define NETWORK_REDIRECTIONS 1 |
b80f6443 | 2675 | _ACEOF |
bb70624e JA |
2676 | |
2677 | fi | |
2678 | if test $opt_progcomp = yes; then | |
b80f6443 | 2679 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 2680 | #define PROGRAMMABLE_COMPLETION 1 |
b80f6443 JA |
2681 | _ACEOF |
2682 | ||
2683 | fi | |
2684 | if test $opt_multibyte = no; then | |
2685 | cat >>confdefs.h <<\_ACEOF | |
2686 | #define NO_MULTIBYTE_SUPPORT 1 | |
2687 | _ACEOF | |
2688 | ||
2689 | fi | |
2690 | if test $opt_debugger = yes; then | |
2691 | cat >>confdefs.h <<\_ACEOF | |
2692 | #define DEBUGGER 1 | |
2693 | _ACEOF | |
bb70624e | 2694 | |
3185942a JA |
2695 | fi |
2696 | if test $opt_casemod_attrs = yes; then | |
2697 | cat >>confdefs.h <<\_ACEOF | |
2698 | #define CASEMOD_ATTRS 1 | |
2699 | _ACEOF | |
2700 | ||
2701 | fi | |
2702 | if test $opt_casemod_expansions = yes; then | |
2703 | cat >>confdefs.h <<\_ACEOF | |
2704 | #define CASEMOD_EXPANSIONS 1 | |
2705 | _ACEOF | |
2706 | ||
ccc6cda3 JA |
2707 | fi |
2708 | ||
7117c2d2 | 2709 | if test $opt_memscramble = yes; then |
b80f6443 | 2710 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 2711 | #define MEMSCRAMBLE 1 |
b80f6443 | 2712 | _ACEOF |
7117c2d2 JA |
2713 | |
2714 | fi | |
2715 | ||
d166f048 JA |
2716 | if test "$opt_minimal_config" = yes; then |
2717 | TESTSCRIPT=run-minimal | |
2718 | else | |
2719 | TESTSCRIPT=run-all | |
2720 | fi | |
2721 | ||
7117c2d2 JA |
2722 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= |
2723 | if test "$opt_separate_help" != no; then | |
2724 | if test "$opt_separate_help" = "yes" ; then | |
2725 | HELPDIR='${datadir}/bash' | |
2726 | else | |
2727 | HELPDIR=$opt_separate_help | |
2728 | fi | |
2729 | HELPDIRDEFINE='-H ${HELPDIR}' | |
2730 | HELPINSTALL='install-help' | |
2731 | fi | |
95732b49 JA |
2732 | HELPSTRINGS= |
2733 | if test "$opt_single_longdoc_strings" != "yes"; then | |
2734 | HELPSTRINGS='-S' | |
2735 | fi | |
2736 | ||
7117c2d2 | 2737 | |
b80f6443 JA |
2738 | |
2739 | ||
2740 | ||
2741 | ||
2742 | ||
2743 | ||
2744 | ||
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | ||
2750 | ||
2751 | ||
2752 | ||
2753 | ||
f73dda09 | 2754 | echo "" |
7117c2d2 | 2755 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" |
f73dda09 | 2756 | echo "" |
d166f048 | 2757 | |
f73dda09 JA |
2758 | ac_ext=c |
2759 | ac_cpp='$CPP $CPPFLAGS' | |
2760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2763 | if test -n "$ac_tool_prefix"; then | |
2764 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2765 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3185942a JA |
2766 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2767 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2768 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2769 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
2770 | else |
2771 | if test -n "$CC"; then | |
2772 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2773 | else | |
b80f6443 JA |
2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2775 | for as_dir in $PATH | |
2776 | do | |
2777 | IFS=$as_save_IFS | |
2778 | test -z "$as_dir" && as_dir=. | |
2779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2781 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3185942a | 2782 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2783 | break 2 |
2784 | fi | |
2785 | done | |
f73dda09 | 2786 | done |
3185942a | 2787 | IFS=$as_save_IFS |
ccc6cda3 | 2788 | |
f73dda09 JA |
2789 | fi |
2790 | fi | |
2791 | CC=$ac_cv_prog_CC | |
2792 | if test -n "$CC"; then | |
3185942a JA |
2793 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2794 | $as_echo "$CC" >&6; } | |
f73dda09 | 2795 | else |
3185942a JA |
2796 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2797 | $as_echo "no" >&6; } | |
f73dda09 | 2798 | fi |
ccc6cda3 | 2799 | |
3185942a | 2800 | |
f73dda09 JA |
2801 | fi |
2802 | if test -z "$ac_cv_prog_CC"; then | |
2803 | ac_ct_CC=$CC | |
2804 | # Extract the first word of "gcc", so it can be a program name with args. | |
2805 | set dummy gcc; ac_word=$2 | |
3185942a JA |
2806 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2807 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2808 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3185942a | 2809 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
2810 | else |
2811 | if test -n "$ac_ct_CC"; then | |
2812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2813 | else | |
b80f6443 JA |
2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2815 | for as_dir in $PATH | |
2816 | do | |
2817 | IFS=$as_save_IFS | |
2818 | test -z "$as_dir" && as_dir=. | |
2819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2821 | ac_cv_prog_ac_ct_CC="gcc" |
3185942a | 2822 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2823 | break 2 |
2824 | fi | |
2825 | done | |
f73dda09 | 2826 | done |
3185942a | 2827 | IFS=$as_save_IFS |
ccc6cda3 | 2828 | |
f73dda09 JA |
2829 | fi |
2830 | fi | |
2831 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2832 | if test -n "$ac_ct_CC"; then | |
3185942a JA |
2833 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2834 | $as_echo "$ac_ct_CC" >&6; } | |
f73dda09 | 2835 | else |
3185942a JA |
2836 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2837 | $as_echo "no" >&6; } | |
f73dda09 | 2838 | fi |
ccc6cda3 | 2839 | |
3185942a JA |
2840 | if test "x$ac_ct_CC" = x; then |
2841 | CC="" | |
2842 | else | |
2843 | case $cross_compiling:$ac_tool_warned in | |
2844 | yes:) | |
2845 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2846 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2847 | ac_tool_warned=yes ;; | |
2848 | esac | |
2849 | CC=$ac_ct_CC | |
2850 | fi | |
f73dda09 JA |
2851 | else |
2852 | CC="$ac_cv_prog_CC" | |
2853 | fi | |
bb70624e | 2854 | |
f73dda09 | 2855 | if test -z "$CC"; then |
3185942a JA |
2856 | if test -n "$ac_tool_prefix"; then |
2857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
f73dda09 | 2858 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3185942a JA |
2859 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2860 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2861 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2862 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
2863 | else |
2864 | if test -n "$CC"; then | |
2865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2866 | else | |
b80f6443 JA |
2867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2868 | for as_dir in $PATH | |
2869 | do | |
2870 | IFS=$as_save_IFS | |
2871 | test -z "$as_dir" && as_dir=. | |
2872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 2874 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3185942a | 2875 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2876 | break 2 |
2877 | fi | |
2878 | done | |
f73dda09 | 2879 | done |
3185942a | 2880 | IFS=$as_save_IFS |
f73dda09 | 2881 | |
ccc6cda3 JA |
2882 | fi |
2883 | fi | |
f73dda09 | 2884 | CC=$ac_cv_prog_CC |
ccc6cda3 | 2885 | if test -n "$CC"; then |
3185942a JA |
2886 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2887 | $as_echo "$CC" >&6; } | |
f73dda09 | 2888 | else |
3185942a JA |
2889 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2890 | $as_echo "no" >&6; } | |
f73dda09 JA |
2891 | fi |
2892 | ||
ccc6cda3 | 2893 | |
3185942a | 2894 | fi |
f73dda09 | 2895 | fi |
ccc6cda3 JA |
2896 | if test -z "$CC"; then |
2897 | # Extract the first word of "cc", so it can be a program name with args. | |
2898 | set dummy cc; ac_word=$2 | |
3185942a JA |
2899 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2900 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2901 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2902 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
2903 | else |
2904 | if test -n "$CC"; then | |
2905 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2906 | else | |
ccc6cda3 | 2907 | ac_prog_rejected=no |
b80f6443 JA |
2908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2909 | for as_dir in $PATH | |
2910 | do | |
2911 | IFS=$as_save_IFS | |
2912 | test -z "$as_dir" && as_dir=. | |
2913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 2914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 JA |
2915 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2916 | ac_prog_rejected=yes | |
2917 | continue | |
2918 | fi | |
2919 | ac_cv_prog_CC="cc" | |
3185942a | 2920 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2921 | break 2 |
2922 | fi | |
2923 | done | |
f73dda09 | 2924 | done |
3185942a | 2925 | IFS=$as_save_IFS |
f73dda09 | 2926 | |
ccc6cda3 JA |
2927 | if test $ac_prog_rejected = yes; then |
2928 | # We found a bogon in the path, so make sure we never use it. | |
2929 | set dummy $ac_cv_prog_CC | |
2930 | shift | |
f73dda09 | 2931 | if test $# != 0; then |
ccc6cda3 JA |
2932 | # We chose a different compiler from the bogus one. |
2933 | # However, it has the same basename, so the bogon will be chosen | |
2934 | # first if we set CC to just the basename; use the full file name. | |
2935 | shift | |
0628567a | 2936 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ccc6cda3 JA |
2937 | fi |
2938 | fi | |
2939 | fi | |
2940 | fi | |
f73dda09 | 2941 | CC=$ac_cv_prog_CC |
ccc6cda3 | 2942 | if test -n "$CC"; then |
3185942a JA |
2943 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2944 | $as_echo "$CC" >&6; } | |
ccc6cda3 | 2945 | else |
3185942a JA |
2946 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2947 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
2948 | fi |
2949 | ||
3185942a | 2950 | |
f73dda09 JA |
2951 | fi |
2952 | if test -z "$CC"; then | |
2953 | if test -n "$ac_tool_prefix"; then | |
3185942a | 2954 | for ac_prog in cl.exe |
f73dda09 JA |
2955 | do |
2956 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2957 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3185942a JA |
2958 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2959 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 2960 | if test "${ac_cv_prog_CC+set}" = set; then |
3185942a | 2961 | $as_echo_n "(cached) " >&6 |
bb70624e JA |
2962 | else |
2963 | if test -n "$CC"; then | |
2964 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2965 | else | |
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 | 2973 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3185942a | 2974 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
2975 | break 2 |
2976 | fi | |
2977 | done | |
f73dda09 | 2978 | done |
3185942a | 2979 | IFS=$as_save_IFS |
f73dda09 | 2980 | |
bb70624e JA |
2981 | fi |
2982 | fi | |
f73dda09 | 2983 | CC=$ac_cv_prog_CC |
bb70624e | 2984 | if test -n "$CC"; then |
3185942a JA |
2985 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2986 | $as_echo "$CC" >&6; } | |
bb70624e | 2987 | else |
3185942a JA |
2988 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2989 | $as_echo "no" >&6; } | |
bb70624e | 2990 | fi |
ccc6cda3 | 2991 | |
3185942a | 2992 | |
f73dda09 JA |
2993 | test -n "$CC" && break |
2994 | done | |
ccc6cda3 | 2995 | fi |
f73dda09 JA |
2996 | if test -z "$CC"; then |
2997 | ac_ct_CC=$CC | |
3185942a | 2998 | for ac_prog in cl.exe |
f73dda09 JA |
2999 | do |
3000 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3001 | set dummy $ac_prog; ac_word=$2 | |
3185942a JA |
3002 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3003 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 3004 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3185942a | 3005 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3006 | else |
3007 | if test -n "$ac_ct_CC"; then | |
3008 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3009 | else | |
b80f6443 JA |
3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3011 | for as_dir in $PATH | |
3012 | do | |
3013 | IFS=$as_save_IFS | |
3014 | test -z "$as_dir" && as_dir=. | |
3015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 3016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 3017 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3185942a | 3018 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
3019 | break 2 |
3020 | fi | |
3021 | done | |
f73dda09 | 3022 | done |
3185942a | 3023 | IFS=$as_save_IFS |
ccc6cda3 | 3024 | |
ccc6cda3 | 3025 | fi |
ccc6cda3 | 3026 | fi |
f73dda09 JA |
3027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3028 | if test -n "$ac_ct_CC"; then | |
3185942a JA |
3029 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3030 | $as_echo "$ac_ct_CC" >&6; } | |
f73dda09 | 3031 | else |
3185942a JA |
3032 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3033 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
3034 | fi |
3035 | ||
3185942a | 3036 | |
f73dda09 JA |
3037 | test -n "$ac_ct_CC" && break |
3038 | done | |
ccc6cda3 | 3039 | |
3185942a JA |
3040 | if test "x$ac_ct_CC" = x; then |
3041 | CC="" | |
3042 | else | |
3043 | case $cross_compiling:$ac_tool_warned in | |
3044 | yes:) | |
3045 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3046 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3047 | ac_tool_warned=yes ;; | |
3048 | esac | |
3049 | CC=$ac_ct_CC | |
3050 | fi | |
bb70624e JA |
3051 | fi |
3052 | ||
f73dda09 JA |
3053 | fi |
3054 | ||
b80f6443 | 3055 | |
3185942a JA |
3056 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3058 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
0628567a | 3059 | See \`config.log' for more details." >&5 |
3185942a | 3060 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
0628567a | 3061 | See \`config.log' for more details." >&2;} |
3185942a | 3062 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3063 | |
3064 | # Provide some information about the compiler. | |
3185942a JA |
3065 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3066 | set X $ac_compile | |
3067 | ac_compiler=$2 | |
3068 | { (ac_try="$ac_compiler --version >&5" | |
3069 | case "(($ac_try" in | |
3070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3071 | *) ac_try_echo=$ac_try;; | |
3072 | esac | |
3073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3074 | $as_echo "$ac_try_echo") >&5 | |
3075 | (eval "$ac_compiler --version >&5") 2>&5 | |
f73dda09 | 3076 | ac_status=$? |
3185942a | 3077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3078 | (exit $ac_status); } |
3185942a JA |
3079 | { (ac_try="$ac_compiler -v >&5" |
3080 | case "(($ac_try" in | |
3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3082 | *) ac_try_echo=$ac_try;; | |
3083 | esac | |
3084 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3085 | $as_echo "$ac_try_echo") >&5 | |
3086 | (eval "$ac_compiler -v >&5") 2>&5 | |
f73dda09 | 3087 | ac_status=$? |
3185942a | 3088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3089 | (exit $ac_status); } |
3185942a JA |
3090 | { (ac_try="$ac_compiler -V >&5" |
3091 | case "(($ac_try" in | |
3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3093 | *) ac_try_echo=$ac_try;; | |
3094 | esac | |
3095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3096 | $as_echo "$ac_try_echo") >&5 | |
3097 | (eval "$ac_compiler -V >&5") 2>&5 | |
f73dda09 | 3098 | ac_status=$? |
3185942a | 3099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3100 | (exit $ac_status); } |
3101 | ||
3102 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3103 | /* confdefs.h. */ |
3104 | _ACEOF | |
3105 | cat confdefs.h >>conftest.$ac_ext | |
3106 | cat >>conftest.$ac_ext <<_ACEOF | |
3107 | /* end confdefs.h. */ | |
f73dda09 JA |
3108 | |
3109 | int | |
3110 | main () | |
3111 | { | |
3112 | ||
3113 | ; | |
3114 | return 0; | |
3115 | } | |
3116 | _ACEOF | |
3117 | ac_clean_files_save=$ac_clean_files | |
3185942a | 3118 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
f73dda09 JA |
3119 | # Try to create an executable without -o first, disregard a.out. |
3120 | # It will help us diagnose broken compilers, and finding out an intuition | |
3121 | # of exeext. | |
3185942a JA |
3122 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3123 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3124 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3125 | ||
3126 | # The possible output files: | |
3127 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3128 | ||
3129 | ac_rmfiles= | |
3130 | for ac_file in $ac_files | |
3131 | do | |
3132 | case $ac_file in | |
3133 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3134 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3135 | esac | |
3136 | done | |
3137 | rm -f $ac_rmfiles | |
3138 | ||
3139 | if { (ac_try="$ac_link_default" | |
3140 | case "(($ac_try" in | |
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3142 | *) ac_try_echo=$ac_try;; | |
3143 | esac | |
3144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3145 | $as_echo "$ac_try_echo") >&5 | |
3146 | (eval "$ac_link_default") 2>&5 | |
f73dda09 | 3147 | ac_status=$? |
3185942a | 3148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3149 | (exit $ac_status); }; then |
3185942a JA |
3150 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3151 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3152 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3153 | # so that the user can short-circuit this test for compilers unknown to | |
3154 | # Autoconf. | |
3155 | for ac_file in $ac_files '' | |
0628567a JA |
3156 | do |
3157 | test -f "$ac_file" || continue | |
f73dda09 | 3158 | case $ac_file in |
3185942a | 3159 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
0628567a JA |
3160 | ;; |
3161 | [ab].out ) | |
3162 | # We found the default executable, but exeext='' is most | |
3163 | # certainly right. | |
3164 | break;; | |
3165 | *.* ) | |
3185942a JA |
3166 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3167 | then :; else | |
3168 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3169 | fi | |
3170 | # We set ac_cv_exeext here because the later test for it is not | |
3171 | # safe: cross compilers may not add the suffix if given an `-o' | |
3172 | # argument, so we may need to know it at that point already. | |
3173 | # Even if this section looks crufty: it has the advantage of | |
3174 | # actually working. | |
0628567a JA |
3175 | break;; |
3176 | * ) | |
3177 | break;; | |
f73dda09 JA |
3178 | esac |
3179 | done | |
3185942a JA |
3180 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3181 | ||
ccc6cda3 | 3182 | else |
3185942a JA |
3183 | ac_file='' |
3184 | fi | |
3185 | ||
3186 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3187 | $as_echo "$ac_file" >&6; } | |
3188 | if test -z "$ac_file"; then | |
3189 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
3190 | sed 's/^/| /' conftest.$ac_ext >&5 |
3191 | ||
3185942a JA |
3192 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3194 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
0628567a | 3195 | See \`config.log' for more details." >&5 |
3185942a | 3196 | $as_echo "$as_me: error: C compiler cannot create executables |
0628567a | 3197 | See \`config.log' for more details." >&2;} |
3185942a | 3198 | { (exit 77); exit 77; }; }; } |
f73dda09 JA |
3199 | fi |
3200 | ||
3201 | ac_exeext=$ac_cv_exeext | |
f73dda09 | 3202 | |
3185942a | 3203 | # Check that the compiler produces executables we can run. If not, either |
f73dda09 | 3204 | # the compiler is broken, or we cross compile. |
3185942a JA |
3205 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3206 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
f73dda09 JA |
3207 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3208 | # If not cross compiling, check that we can run a simple program. | |
3209 | if test "$cross_compiling" != yes; then | |
3210 | if { ac_try='./$ac_file' | |
3185942a JA |
3211 | { (case "(($ac_try" in |
3212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3213 | *) ac_try_echo=$ac_try;; | |
3214 | esac | |
3215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3216 | $as_echo "$ac_try_echo") >&5 | |
3217 | (eval "$ac_try") 2>&5 | |
f73dda09 | 3218 | ac_status=$? |
3185942a | 3219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3220 | (exit $ac_status); }; }; then |
3221 | cross_compiling=no | |
3222 | else | |
3223 | if test "$cross_compiling" = maybe; then | |
3224 | cross_compiling=yes | |
3225 | else | |
3185942a JA |
3226 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3227 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3228 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
0628567a JA |
3229 | If you meant to cross compile, use \`--host'. |
3230 | See \`config.log' for more details." >&5 | |
3185942a | 3231 | $as_echo "$as_me: error: cannot run C compiled programs. |
0628567a JA |
3232 | If you meant to cross compile, use \`--host'. |
3233 | See \`config.log' for more details." >&2;} | |
3185942a | 3234 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3235 | fi |
3236 | fi | |
3237 | fi | |
3185942a JA |
3238 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3239 | $as_echo "yes" >&6; } | |
f73dda09 | 3240 | |
3185942a | 3241 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
f73dda09 | 3242 | ac_clean_files=$ac_clean_files_save |
3185942a | 3243 | # Check that the compiler produces executables we can run. If not, either |
f73dda09 | 3244 | # the compiler is broken, or we cross compile. |
3185942a JA |
3245 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3246 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3247 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3248 | $as_echo "$cross_compiling" >&6; } | |
3249 | ||
3250 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3251 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3252 | if { (ac_try="$ac_link" | |
3253 | case "(($ac_try" in | |
3254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3255 | *) ac_try_echo=$ac_try;; | |
3256 | esac | |
3257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3258 | $as_echo "$ac_try_echo") >&5 | |
3259 | (eval "$ac_link") 2>&5 | |
f73dda09 | 3260 | ac_status=$? |
3185942a | 3261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
3262 | (exit $ac_status); }; then |
3263 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3264 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3265 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3266 | # `rm'. | |
0628567a JA |
3267 | for ac_file in conftest.exe conftest conftest.*; do |
3268 | test -f "$ac_file" || continue | |
f73dda09 | 3269 | case $ac_file in |
3185942a | 3270 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
f73dda09 | 3271 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
0628567a | 3272 | break;; |
f73dda09 JA |
3273 | * ) break;; |
3274 | esac | |
3275 | done | |
ccc6cda3 | 3276 | else |
3185942a JA |
3277 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3279 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
0628567a | 3280 | See \`config.log' for more details." >&5 |
3185942a | 3281 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
0628567a | 3282 | See \`config.log' for more details." >&2;} |
3185942a | 3283 | { (exit 1); exit 1; }; }; } |
f73dda09 JA |
3284 | fi |
3285 | ||
3286 | rm -f conftest$ac_cv_exeext | |
3185942a JA |
3287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3288 | $as_echo "$ac_cv_exeext" >&6; } | |
f73dda09 JA |
3289 | |
3290 | rm -f conftest.$ac_ext | |
3291 | EXEEXT=$ac_cv_exeext | |
3292 | ac_exeext=$EXEEXT | |
3185942a JA |
3293 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3294 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f73dda09 | 3295 | if test "${ac_cv_objext+set}" = set; then |
3185942a | 3296 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3297 | else |
3298 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3299 | /* confdefs.h. */ |
3300 | _ACEOF | |
3301 | cat confdefs.h >>conftest.$ac_ext | |
3302 | cat >>conftest.$ac_ext <<_ACEOF | |
3303 | /* end confdefs.h. */ | |
f73dda09 JA |
3304 | |
3305 | int | |
3306 | main () | |
3307 | { | |
3308 | ||
3309 | ; | |
3310 | return 0; | |
3311 | } | |
3312 | _ACEOF | |
3313 | rm -f conftest.o conftest.obj | |
3185942a JA |
3314 | if { (ac_try="$ac_compile" |
3315 | case "(($ac_try" in | |
3316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3317 | *) ac_try_echo=$ac_try;; | |
3318 | esac | |
3319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3320 | $as_echo "$ac_try_echo") >&5 | |
3321 | (eval "$ac_compile") 2>&5 | |
f73dda09 | 3322 | ac_status=$? |
3185942a | 3323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 3324 | (exit $ac_status); }; then |
3185942a JA |
3325 | for ac_file in conftest.o conftest.obj 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 ) ;; |
f73dda09 JA |
3329 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3330 | break;; | |
3331 | esac | |
3332 | done | |
3333 | else | |
3185942a | 3334 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
3336 | ||
3185942a JA |
3337 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3338 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3339 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
0628567a | 3340 | See \`config.log' for more details." >&5 |
3185942a | 3341 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
0628567a | 3342 | See \`config.log' for more details." >&2;} |
3185942a | 3343 | { (exit 1); exit 1; }; }; } |
ccc6cda3 | 3344 | fi |
ccc6cda3 | 3345 | |
f73dda09 | 3346 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ccc6cda3 | 3347 | fi |
3185942a JA |
3348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3349 | $as_echo "$ac_cv_objext" >&6; } | |
f73dda09 JA |
3350 | OBJEXT=$ac_cv_objext |
3351 | ac_objext=$OBJEXT | |
3185942a JA |
3352 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3353 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f73dda09 | 3354 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3185942a | 3355 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3356 | else |
3357 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3358 | /* confdefs.h. */ |
3359 | _ACEOF | |
3360 | cat confdefs.h >>conftest.$ac_ext | |
3361 | cat >>conftest.$ac_ext <<_ACEOF | |
3362 | /* end confdefs.h. */ | |
f73dda09 JA |
3363 | |
3364 | int | |
3365 | main () | |
3366 | { | |
3367 | #ifndef __GNUC__ | |
3368 | choke me | |
3369 | #endif | |
3370 | ||
3371 | ; | |
3372 | return 0; | |
3373 | } | |
3374 | _ACEOF | |
3375 | rm -f conftest.$ac_objext | |
3185942a JA |
3376 | if { (ac_try="$ac_compile" |
3377 | case "(($ac_try" in | |
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3379 | *) ac_try_echo=$ac_try;; | |
3380 | esac | |
3381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3382 | $as_echo "$ac_try_echo") >&5 | |
3383 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3384 | ac_status=$? |
0628567a JA |
3385 | grep -v '^ *+' conftest.er1 >conftest.err |
3386 | rm -f conftest.er1 | |
3387 | cat conftest.err >&5 | |
3185942a JA |
3388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3389 | (exit $ac_status); } && { | |
3390 | test -z "$ac_c_werror_flag" || | |
3391 | test ! -s conftest.err | |
3392 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
3393 | ac_compiler_gnu=yes |
3394 | else | |
3185942a | 3395 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
3397 | ||
3185942a | 3398 | ac_compiler_gnu=no |
f73dda09 | 3399 | fi |
3185942a JA |
3400 | |
3401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
3402 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3403 | ||
3404 | fi | |
3185942a JA |
3405 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3406 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3407 | if test $ac_compiler_gnu = yes; then | |
3408 | GCC=yes | |
3409 | else | |
3410 | GCC= | |
3411 | fi | |
f73dda09 JA |
3412 | ac_test_CFLAGS=${CFLAGS+set} |
3413 | ac_save_CFLAGS=$CFLAGS | |
3185942a JA |
3414 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3415 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f73dda09 | 3416 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3185942a | 3417 | $as_echo_n "(cached) " >&6 |
f73dda09 | 3418 | else |
3185942a JA |
3419 | ac_save_c_werror_flag=$ac_c_werror_flag |
3420 | ac_c_werror_flag=yes | |
3421 | ac_cv_prog_cc_g=no | |
3422 | CFLAGS="-g" | |
3423 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3424 | /* confdefs.h. */ |
3425 | _ACEOF | |
3426 | cat confdefs.h >>conftest.$ac_ext | |
3427 | cat >>conftest.$ac_ext <<_ACEOF | |
3428 | /* end confdefs.h. */ | |
f73dda09 JA |
3429 | |
3430 | int | |
3431 | main () | |
3432 | { | |
ccc6cda3 | 3433 | |
f73dda09 JA |
3434 | ; |
3435 | return 0; | |
3436 | } | |
3437 | _ACEOF | |
3438 | rm -f conftest.$ac_objext | |
3185942a JA |
3439 | if { (ac_try="$ac_compile" |
3440 | case "(($ac_try" in | |
3441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3442 | *) ac_try_echo=$ac_try;; | |
3443 | esac | |
3444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3445 | $as_echo "$ac_try_echo") >&5 | |
3446 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3447 | ac_status=$? |
0628567a JA |
3448 | grep -v '^ *+' conftest.er1 >conftest.err |
3449 | rm -f conftest.er1 | |
3450 | cat conftest.err >&5 | |
3185942a JA |
3451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3452 | (exit $ac_status); } && { | |
3453 | test -z "$ac_c_werror_flag" || | |
3454 | test ! -s conftest.err | |
3455 | } && test -s conftest.$ac_objext; then | |
3456 | ac_cv_prog_cc_g=yes | |
3457 | else | |
3458 | $as_echo "$as_me: failed program was:" >&5 | |
3459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3460 | ||
3461 | CFLAGS="" | |
3462 | cat >conftest.$ac_ext <<_ACEOF | |
3463 | /* confdefs.h. */ | |
3464 | _ACEOF | |
3465 | cat confdefs.h >>conftest.$ac_ext | |
3466 | cat >>conftest.$ac_ext <<_ACEOF | |
3467 | /* end confdefs.h. */ | |
3468 | ||
3469 | int | |
3470 | main () | |
3471 | { | |
3472 | ||
3473 | ; | |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
3477 | rm -f conftest.$ac_objext | |
3478 | if { (ac_try="$ac_compile" | |
3479 | case "(($ac_try" in | |
3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3481 | *) ac_try_echo=$ac_try;; | |
3482 | esac | |
3483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3484 | $as_echo "$ac_try_echo") >&5 | |
3485 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a | 3486 | ac_status=$? |
3185942a JA |
3487 | grep -v '^ *+' conftest.er1 >conftest.err |
3488 | rm -f conftest.er1 | |
3489 | cat conftest.err >&5 | |
3490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3491 | (exit $ac_status); } && { | |
3492 | test -z "$ac_c_werror_flag" || | |
3493 | test ! -s conftest.err | |
3494 | } && test -s conftest.$ac_objext; then | |
3495 | : | |
3496 | else | |
3497 | $as_echo "$as_me: failed program was:" >&5 | |
3498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3499 | ||
3500 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3501 | CFLAGS="-g" | |
3502 | cat >conftest.$ac_ext <<_ACEOF | |
3503 | /* confdefs.h. */ | |
3504 | _ACEOF | |
3505 | cat confdefs.h >>conftest.$ac_ext | |
3506 | cat >>conftest.$ac_ext <<_ACEOF | |
3507 | /* end confdefs.h. */ | |
3508 | ||
3509 | int | |
3510 | main () | |
3511 | { | |
3512 | ||
3513 | ; | |
3514 | return 0; | |
3515 | } | |
3516 | _ACEOF | |
3517 | rm -f conftest.$ac_objext | |
3518 | if { (ac_try="$ac_compile" | |
3519 | case "(($ac_try" in | |
3520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3521 | *) ac_try_echo=$ac_try;; | |
3522 | esac | |
3523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3524 | $as_echo "$ac_try_echo") >&5 | |
3525 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 3526 | ac_status=$? |
3185942a JA |
3527 | grep -v '^ *+' conftest.er1 >conftest.err |
3528 | rm -f conftest.er1 | |
3529 | cat conftest.err >&5 | |
3530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); } && { | |
3532 | test -z "$ac_c_werror_flag" || | |
3533 | test ! -s conftest.err | |
3534 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
3535 | ac_cv_prog_cc_g=yes |
3536 | else | |
3185942a | 3537 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3538 | sed 's/^/| /' conftest.$ac_ext >&5 |
3539 | ||
3185942a JA |
3540 | |
3541 | fi | |
3542 | ||
3543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3544 | fi | |
3545 | ||
3546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 3547 | fi |
3185942a JA |
3548 | |
3549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3550 | ac_c_werror_flag=$ac_save_c_werror_flag | |
f73dda09 | 3551 | fi |
3185942a JA |
3552 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3553 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
bb70624e | 3554 | if test "$ac_test_CFLAGS" = set; then |
f73dda09 | 3555 | CFLAGS=$ac_save_CFLAGS |
bb70624e JA |
3556 | elif test $ac_cv_prog_cc_g = yes; then |
3557 | if test "$GCC" = yes; then | |
ccc6cda3 JA |
3558 | CFLAGS="-g -O2" |
3559 | else | |
bb70624e | 3560 | CFLAGS="-g" |
ccc6cda3 JA |
3561 | fi |
3562 | else | |
bb70624e JA |
3563 | if test "$GCC" = yes; then |
3564 | CFLAGS="-O2" | |
3565 | else | |
3566 | CFLAGS= | |
3567 | fi | |
ccc6cda3 | 3568 | fi |
3185942a JA |
3569 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3570 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3571 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3572 | $as_echo_n "(cached) " >&6 | |
0628567a | 3573 | else |
3185942a | 3574 | ac_cv_prog_cc_c89=no |
0628567a JA |
3575 | ac_save_CC=$CC |
3576 | cat >conftest.$ac_ext <<_ACEOF | |
3577 | /* confdefs.h. */ | |
3578 | _ACEOF | |
3579 | cat confdefs.h >>conftest.$ac_ext | |
3580 | cat >>conftest.$ac_ext <<_ACEOF | |
3581 | /* end confdefs.h. */ | |
3582 | #include <stdarg.h> | |
3583 | #include <stdio.h> | |
3584 | #include <sys/types.h> | |
3585 | #include <sys/stat.h> | |
3586 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3587 | struct buf { int x; }; | |
3588 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3589 | static char *e (p, i) | |
3590 | char **p; | |
3591 | int i; | |
3592 | { | |
3593 | return p[i]; | |
3594 | } | |
3595 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3596 | { | |
3597 | char *s; | |
3598 | va_list v; | |
3599 | va_start (v,p); | |
3600 | s = g (p, va_arg (v,int)); | |
3601 | va_end (v); | |
3602 | return s; | |
3603 | } | |
3604 | ||
3605 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3606 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3607 | These don't provoke an error unfortunately, instead are silently treated | |
3185942a | 3608 | as 'x'. The following induces an error, until -std is added to get |
0628567a JA |
3609 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3610 | array size at least. It's necessary to write '\x00'==0 to get something | |
3185942a | 3611 | that's true only with -std. */ |
0628567a JA |
3612 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3613 | ||
3185942a JA |
3614 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3615 | inside strings and character constants. */ | |
3616 | #define FOO(x) 'x' | |
3617 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3618 | ||
0628567a JA |
3619 | int test (int i, double x); |
3620 | struct s1 {int (*f) (int a);}; | |
3621 | struct s2 {int (*f) (double a);}; | |
3622 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3623 | int argc; | |
3624 | char **argv; | |
3625 | int | |
3626 | main () | |
3627 | { | |
3628 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3629 | ; | |
3630 | return 0; | |
3631 | } | |
3632 | _ACEOF | |
3185942a JA |
3633 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3634 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
0628567a JA |
3635 | do |
3636 | CC="$ac_save_CC $ac_arg" | |
3637 | rm -f conftest.$ac_objext | |
3185942a JA |
3638 | if { (ac_try="$ac_compile" |
3639 | case "(($ac_try" in | |
3640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3641 | *) ac_try_echo=$ac_try;; | |
3642 | esac | |
3643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3644 | $as_echo "$ac_try_echo") >&5 | |
3645 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
3646 | ac_status=$? |
3647 | grep -v '^ *+' conftest.er1 >conftest.err | |
3648 | rm -f conftest.er1 | |
3649 | cat conftest.err >&5 | |
3185942a JA |
3650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3651 | (exit $ac_status); } && { | |
3652 | test -z "$ac_c_werror_flag" || | |
3653 | test ! -s conftest.err | |
3654 | } && test -s conftest.$ac_objext; then | |
3655 | ac_cv_prog_cc_c89=$ac_arg | |
0628567a | 3656 | else |
3185942a | 3657 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3658 | sed 's/^/| /' conftest.$ac_ext >&5 |
3659 | ||
3185942a | 3660 | |
0628567a | 3661 | fi |
3185942a JA |
3662 | |
3663 | rm -f core conftest.err conftest.$ac_objext | |
3664 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
0628567a | 3665 | done |
3185942a | 3666 | rm -f conftest.$ac_ext |
0628567a JA |
3667 | CC=$ac_save_CC |
3668 | ||
3669 | fi | |
3185942a JA |
3670 | # AC_CACHE_VAL |
3671 | case "x$ac_cv_prog_cc_c89" in | |
3672 | x) | |
3673 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3674 | $as_echo "none needed" >&6; } ;; | |
3675 | xno) | |
3676 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3677 | $as_echo "unsupported" >&6; } ;; | |
0628567a | 3678 | *) |
3185942a JA |
3679 | CC="$CC $ac_cv_prog_cc_c89" |
3680 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3681 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
0628567a JA |
3682 | esac |
3683 | ||
0628567a | 3684 | |
f73dda09 JA |
3685 | ac_ext=c |
3686 | ac_cpp='$CPP $CPPFLAGS' | |
3687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bb70624e | 3690 | |
f73dda09 | 3691 | |
ccc6cda3 | 3692 | |
b80f6443 | 3693 | |
3185942a JA |
3694 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
3695 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | |
b80f6443 | 3696 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
3185942a | 3697 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 3698 | else |
b80f6443 JA |
3699 | ac_check_lib_save_LIBS=$LIBS |
3700 | LIBS="-lcposix $LIBS" | |
3701 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3702 | /* confdefs.h. */ |
3703 | _ACEOF | |
3704 | cat confdefs.h >>conftest.$ac_ext | |
3705 | cat >>conftest.$ac_ext <<_ACEOF | |
3706 | /* end confdefs.h. */ | |
b80f6443 | 3707 | |
3185942a JA |
3708 | /* Override any GCC internal prototype to avoid an error. |
3709 | Use char because int might match the return type of a GCC | |
3710 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
3711 | #ifdef __cplusplus |
3712 | extern "C" | |
3713 | #endif | |
b80f6443 JA |
3714 | char strerror (); |
3715 | int | |
3716 | main () | |
3717 | { | |
3185942a | 3718 | return strerror (); |
b80f6443 JA |
3719 | ; |
3720 | return 0; | |
3721 | } | |
3722 | _ACEOF | |
3723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
3724 | if { (ac_try="$ac_link" |
3725 | case "(($ac_try" in | |
3726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3727 | *) ac_try_echo=$ac_try;; | |
3728 | esac | |
3729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3730 | $as_echo "$ac_try_echo") >&5 | |
3731 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 3732 | ac_status=$? |
0628567a JA |
3733 | grep -v '^ *+' conftest.er1 >conftest.err |
3734 | rm -f conftest.er1 | |
3735 | cat conftest.err >&5 | |
3185942a JA |
3736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3737 | (exit $ac_status); } && { | |
3738 | test -z "$ac_c_werror_flag" || | |
3739 | test ! -s conftest.err | |
3740 | } && test -s conftest$ac_exeext && { | |
3741 | test "$cross_compiling" = yes || | |
3742 | $as_test_x conftest$ac_exeext | |
3743 | }; then | |
b80f6443 JA |
3744 | ac_cv_lib_cposix_strerror=yes |
3745 | else | |
3185942a | 3746 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3747 | sed 's/^/| /' conftest.$ac_ext >&5 |
3748 | ||
3185942a | 3749 | ac_cv_lib_cposix_strerror=no |
b80f6443 | 3750 | fi |
3185942a JA |
3751 | |
3752 | rm -rf conftest.dSYM | |
3753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 3754 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
3755 | LIBS=$ac_check_lib_save_LIBS |
3756 | fi | |
3185942a JA |
3757 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
3758 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | |
3759 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then | |
b80f6443 | 3760 | LIBS="$LIBS -lcposix" |
ccc6cda3 JA |
3761 | fi |
3762 | ||
b80f6443 JA |
3763 | |
3764 | ||
f73dda09 JA |
3765 | ac_ext=c |
3766 | ac_cpp='$CPP $CPPFLAGS' | |
3767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3185942a JA |
3770 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3771 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
ccc6cda3 JA |
3772 | # On Suns, sometimes $CPP names a directory. |
3773 | if test -n "$CPP" && test -d "$CPP"; then | |
3774 | CPP= | |
3775 | fi | |
3776 | if test -z "$CPP"; then | |
f73dda09 | 3777 | if test "${ac_cv_prog_CPP+set}" = set; then |
3185942a | 3778 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
3779 | else |
3780 | # Double quotes because CPP needs to be expanded | |
3781 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3782 | do | |
3783 | ac_preproc_ok=false | |
3784 | for ac_c_preproc_warn_flag in '' yes | |
3785 | do | |
3786 | # Use a header file that comes with gcc, so configuring glibc | |
3787 | # with a fresh cross-compiler works. | |
0628567a JA |
3788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3789 | # <limits.h> exists even on freestanding compilers. | |
ccc6cda3 | 3790 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f73dda09 JA |
3791 | # not just through cpp. "Syntax error" is here to catch this case. |
3792 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3793 | /* confdefs.h. */ |
3794 | _ACEOF | |
3795 | cat confdefs.h >>conftest.$ac_ext | |
3796 | cat >>conftest.$ac_ext <<_ACEOF | |
3797 | /* end confdefs.h. */ | |
3798 | #ifdef __STDC__ | |
3799 | # include <limits.h> | |
3800 | #else | |
3801 | # include <assert.h> | |
3802 | #endif | |
3803 | Syntax error | |
f73dda09 | 3804 | _ACEOF |
3185942a JA |
3805 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3806 | case "(($ac_try" in | |
3807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3808 | *) ac_try_echo=$ac_try;; | |
3809 | esac | |
3810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3811 | $as_echo "$ac_try_echo") >&5 | |
3812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3813 | ac_status=$? |
0628567a | 3814 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3815 | rm -f conftest.er1 |
3816 | cat conftest.err >&5 | |
3185942a JA |
3817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3818 | (exit $ac_status); } >/dev/null && { | |
3819 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3820 | test ! -s conftest.err | |
3821 | }; then | |
ccc6cda3 JA |
3822 | : |
3823 | else | |
3185942a | 3824 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
3826 | ||
f73dda09 JA |
3827 | # Broken: fails on valid input. |
3828 | continue | |
3829 | fi | |
3185942a | 3830 | |
f73dda09 JA |
3831 | rm -f conftest.err conftest.$ac_ext |
3832 | ||
3185942a | 3833 | # OK, works on sane cases. Now check whether nonexistent headers |
f73dda09 JA |
3834 | # can be detected and how. |
3835 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3836 | /* confdefs.h. */ |
3837 | _ACEOF | |
3838 | cat confdefs.h >>conftest.$ac_ext | |
3839 | cat >>conftest.$ac_ext <<_ACEOF | |
3840 | /* end confdefs.h. */ | |
f73dda09 JA |
3841 | #include <ac_nonexistent.h> |
3842 | _ACEOF | |
3185942a JA |
3843 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3844 | case "(($ac_try" in | |
3845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3846 | *) ac_try_echo=$ac_try;; | |
3847 | esac | |
3848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3849 | $as_echo "$ac_try_echo") >&5 | |
3850 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3851 | ac_status=$? |
0628567a | 3852 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3853 | rm -f conftest.er1 |
3854 | cat conftest.err >&5 | |
3185942a JA |
3855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3856 | (exit $ac_status); } >/dev/null && { | |
3857 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3858 | test ! -s conftest.err | |
3859 | }; then | |
f73dda09 JA |
3860 | # Broken: success on invalid input. |
3861 | continue | |
bb70624e | 3862 | else |
3185942a | 3863 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3864 | sed 's/^/| /' conftest.$ac_ext >&5 |
3865 | ||
f73dda09 JA |
3866 | # Passes both tests. |
3867 | ac_preproc_ok=: | |
3868 | break | |
3869 | fi | |
3185942a | 3870 | |
f73dda09 JA |
3871 | rm -f conftest.err conftest.$ac_ext |
3872 | ||
3873 | done | |
3874 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3875 | rm -f conftest.err conftest.$ac_ext | |
3876 | if $ac_preproc_ok; then | |
3877 | break | |
3878 | fi | |
3879 | ||
3880 | done | |
3881 | ac_cv_prog_CPP=$CPP | |
3882 | ||
3883 | fi | |
3884 | CPP=$ac_cv_prog_CPP | |
3885 | else | |
3886 | ac_cv_prog_CPP=$CPP | |
3887 | fi | |
3185942a JA |
3888 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3889 | $as_echo "$CPP" >&6; } | |
f73dda09 JA |
3890 | ac_preproc_ok=false |
3891 | for ac_c_preproc_warn_flag in '' yes | |
3892 | do | |
3893 | # Use a header file that comes with gcc, so configuring glibc | |
3894 | # with a fresh cross-compiler works. | |
0628567a JA |
3895 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3896 | # <limits.h> exists even on freestanding compilers. | |
f73dda09 JA |
3897 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3898 | # not just through cpp. "Syntax error" is here to catch this case. | |
3899 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3900 | /* confdefs.h. */ |
3901 | _ACEOF | |
3902 | cat confdefs.h >>conftest.$ac_ext | |
3903 | cat >>conftest.$ac_ext <<_ACEOF | |
3904 | /* end confdefs.h. */ | |
3905 | #ifdef __STDC__ | |
3906 | # include <limits.h> | |
3907 | #else | |
3908 | # include <assert.h> | |
3909 | #endif | |
3910 | Syntax error | |
f73dda09 | 3911 | _ACEOF |
3185942a JA |
3912 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3913 | case "(($ac_try" in | |
3914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3915 | *) ac_try_echo=$ac_try;; | |
3916 | esac | |
3917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3918 | $as_echo "$ac_try_echo") >&5 | |
3919 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3920 | ac_status=$? |
0628567a | 3921 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3922 | rm -f conftest.er1 |
3923 | cat conftest.err >&5 | |
3185942a JA |
3924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3925 | (exit $ac_status); } >/dev/null && { | |
3926 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3927 | test ! -s conftest.err | |
3928 | }; then | |
ccc6cda3 JA |
3929 | : |
3930 | else | |
3185942a | 3931 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3932 | sed 's/^/| /' conftest.$ac_ext >&5 |
3933 | ||
f73dda09 JA |
3934 | # Broken: fails on valid input. |
3935 | continue | |
3936 | fi | |
3185942a | 3937 | |
f73dda09 JA |
3938 | rm -f conftest.err conftest.$ac_ext |
3939 | ||
3185942a | 3940 | # OK, works on sane cases. Now check whether nonexistent headers |
f73dda09 JA |
3941 | # can be detected and how. |
3942 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
3943 | /* confdefs.h. */ |
3944 | _ACEOF | |
3945 | cat confdefs.h >>conftest.$ac_ext | |
3946 | cat >>conftest.$ac_ext <<_ACEOF | |
3947 | /* end confdefs.h. */ | |
f73dda09 JA |
3948 | #include <ac_nonexistent.h> |
3949 | _ACEOF | |
3185942a JA |
3950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3951 | case "(($ac_try" in | |
3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3953 | *) ac_try_echo=$ac_try;; | |
3954 | esac | |
3955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3956 | $as_echo "$ac_try_echo") >&5 | |
3957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 3958 | ac_status=$? |
0628567a | 3959 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
3960 | rm -f conftest.er1 |
3961 | cat conftest.err >&5 | |
3185942a JA |
3962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3963 | (exit $ac_status); } >/dev/null && { | |
3964 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3965 | test ! -s conftest.err | |
3966 | }; then | |
f73dda09 JA |
3967 | # Broken: success on invalid input. |
3968 | continue | |
3969 | else | |
3185942a | 3970 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
3971 | sed 's/^/| /' conftest.$ac_ext >&5 |
3972 | ||
f73dda09 JA |
3973 | # Passes both tests. |
3974 | ac_preproc_ok=: | |
3975 | break | |
ccc6cda3 | 3976 | fi |
3185942a | 3977 | |
f73dda09 JA |
3978 | rm -f conftest.err conftest.$ac_ext |
3979 | ||
3980 | done | |
3981 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3982 | rm -f conftest.err conftest.$ac_ext | |
3983 | if $ac_preproc_ok; then | |
3984 | : | |
ccc6cda3 | 3985 | else |
3185942a JA |
3986 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3987 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3988 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
0628567a | 3989 | See \`config.log' for more details." >&5 |
3185942a | 3990 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
0628567a | 3991 | See \`config.log' for more details." >&2;} |
3185942a | 3992 | { (exit 1); exit 1; }; }; } |
ccc6cda3 | 3993 | fi |
ccc6cda3 | 3994 | |
f73dda09 JA |
3995 | ac_ext=c |
3996 | ac_cpp='$CPP $CPPFLAGS' | |
3997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4000 | ||
b80f6443 | 4001 | |
3185942a JA |
4002 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4003 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4004 | if test "${ac_cv_path_GREP+set}" = set; then | |
4005 | $as_echo_n "(cached) " >&6 | |
4006 | else | |
4007 | if test -z "$GREP"; then | |
4008 | ac_path_GREP_found=false | |
4009 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4011 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4012 | do | |
4013 | IFS=$as_save_IFS | |
4014 | test -z "$as_dir" && as_dir=. | |
4015 | for ac_prog in grep ggrep; do | |
4016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4017 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4018 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4019 | # Check for GNU ac_path_GREP and select it if it is found. | |
4020 | # Check for GNU $ac_path_GREP | |
4021 | case `"$ac_path_GREP" --version 2>&1` in | |
4022 | *GNU*) | |
4023 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4024 | *) | |
4025 | ac_count=0 | |
4026 | $as_echo_n 0123456789 >"conftest.in" | |
4027 | while : | |
4028 | do | |
4029 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4030 | mv "conftest.tmp" "conftest.in" | |
4031 | cp "conftest.in" "conftest.nl" | |
4032 | $as_echo 'GREP' >> "conftest.nl" | |
4033 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4034 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4035 | ac_count=`expr $ac_count + 1` | |
4036 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4037 | # Best one so far, save it but keep looking for a better one | |
4038 | ac_cv_path_GREP="$ac_path_GREP" | |
4039 | ac_path_GREP_max=$ac_count | |
4040 | fi | |
4041 | # 10*(2^10) chars as input seems more than enough | |
4042 | test $ac_count -gt 10 && break | |
4043 | done | |
4044 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4045 | esac | |
4046 | ||
4047 | $ac_path_GREP_found && break 3 | |
4048 | done | |
4049 | done | |
4050 | done | |
4051 | IFS=$as_save_IFS | |
4052 | if test -z "$ac_cv_path_GREP"; then | |
4053 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4054 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4055 | { (exit 1); exit 1; }; } | |
4056 | fi | |
4057 | else | |
4058 | ac_cv_path_GREP=$GREP | |
4059 | fi | |
4060 | ||
4061 | fi | |
4062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4063 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4064 | GREP="$ac_cv_path_GREP" | |
4065 | ||
4066 | ||
4067 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4068 | $as_echo_n "checking for egrep... " >&6; } | |
4069 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4070 | $as_echo_n "(cached) " >&6 | |
0628567a | 4071 | else |
3185942a JA |
4072 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4073 | then ac_cv_path_EGREP="$GREP -E" | |
4074 | else | |
4075 | if test -z "$EGREP"; then | |
4076 | ac_path_EGREP_found=false | |
4077 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4079 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4080 | do | |
4081 | IFS=$as_save_IFS | |
4082 | test -z "$as_dir" && as_dir=. | |
4083 | for ac_prog in egrep; do | |
4084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4085 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4086 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4087 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4088 | # Check for GNU $ac_path_EGREP | |
4089 | case `"$ac_path_EGREP" --version 2>&1` in | |
4090 | *GNU*) | |
4091 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4092 | *) | |
4093 | ac_count=0 | |
4094 | $as_echo_n 0123456789 >"conftest.in" | |
4095 | while : | |
4096 | do | |
4097 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4098 | mv "conftest.tmp" "conftest.in" | |
4099 | cp "conftest.in" "conftest.nl" | |
4100 | $as_echo 'EGREP' >> "conftest.nl" | |
4101 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4102 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4103 | ac_count=`expr $ac_count + 1` | |
4104 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4105 | # Best one so far, save it but keep looking for a better one | |
4106 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4107 | ac_path_EGREP_max=$ac_count | |
0628567a | 4108 | fi |
3185942a JA |
4109 | # 10*(2^10) chars as input seems more than enough |
4110 | test $ac_count -gt 10 && break | |
4111 | done | |
4112 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4113 | esac | |
4114 | ||
4115 | $ac_path_EGREP_found && break 3 | |
4116 | done | |
4117 | done | |
4118 | done | |
4119 | IFS=$as_save_IFS | |
4120 | if test -z "$ac_cv_path_EGREP"; then | |
4121 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4122 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4123 | { (exit 1); exit 1; }; } | |
4124 | fi | |
4125 | else | |
4126 | ac_cv_path_EGREP=$EGREP | |
0628567a | 4127 | fi |
0628567a | 4128 | |
3185942a JA |
4129 | fi |
4130 | fi | |
4131 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4132 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4133 | EGREP="$ac_cv_path_EGREP" | |
0628567a | 4134 | |
3185942a JA |
4135 | |
4136 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4137 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b80f6443 | 4138 | if test "${ac_cv_header_stdc+set}" = set; then |
3185942a | 4139 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 4140 | else |
f73dda09 | 4141 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4142 | /* confdefs.h. */ |
4143 | _ACEOF | |
4144 | cat confdefs.h >>conftest.$ac_ext | |
4145 | cat >>conftest.$ac_ext <<_ACEOF | |
4146 | /* end confdefs.h. */ | |
b80f6443 JA |
4147 | #include <stdlib.h> |
4148 | #include <stdarg.h> | |
4149 | #include <string.h> | |
4150 | #include <float.h> | |
4151 | ||
0628567a JA |
4152 | int |
4153 | main () | |
4154 | { | |
4155 | ||
4156 | ; | |
4157 | return 0; | |
4158 | } | |
b80f6443 | 4159 | _ACEOF |
0628567a | 4160 | rm -f conftest.$ac_objext |
3185942a JA |
4161 | if { (ac_try="$ac_compile" |
4162 | case "(($ac_try" in | |
4163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4164 | *) ac_try_echo=$ac_try;; | |
4165 | esac | |
4166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4167 | $as_echo "$ac_try_echo") >&5 | |
4168 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4169 | ac_status=$? |
0628567a | 4170 | grep -v '^ *+' conftest.er1 >conftest.err |
95732b49 JA |
4171 | rm -f conftest.er1 |
4172 | cat conftest.err >&5 | |
3185942a JA |
4173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4174 | (exit $ac_status); } && { | |
4175 | test -z "$ac_c_werror_flag" || | |
4176 | test ! -s conftest.err | |
4177 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4178 | ac_cv_header_stdc=yes |
4179 | else | |
3185942a | 4180 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4181 | sed 's/^/| /' conftest.$ac_ext >&5 |
4182 | ||
3185942a | 4183 | ac_cv_header_stdc=no |
b80f6443 | 4184 | fi |
3185942a JA |
4185 | |
4186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
4187 | |
4188 | if test $ac_cv_header_stdc = yes; then | |
4189 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4190 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4191 | /* confdefs.h. */ |
4192 | _ACEOF | |
4193 | cat confdefs.h >>conftest.$ac_ext | |
4194 | cat >>conftest.$ac_ext <<_ACEOF | |
4195 | /* end confdefs.h. */ | |
b80f6443 JA |
4196 | #include <string.h> |
4197 | ||
4198 | _ACEOF | |
4199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 4200 | $EGREP "memchr" >/dev/null 2>&1; then |
b80f6443 JA |
4201 | : |
4202 | else | |
4203 | ac_cv_header_stdc=no | |
4204 | fi | |
4205 | rm -f conftest* | |
4206 | ||
4207 | fi | |
4208 | ||
4209 | if test $ac_cv_header_stdc = yes; then | |
4210 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4211 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4212 | /* confdefs.h. */ |
4213 | _ACEOF | |
4214 | cat confdefs.h >>conftest.$ac_ext | |
4215 | cat >>conftest.$ac_ext <<_ACEOF | |
4216 | /* end confdefs.h. */ | |
b80f6443 JA |
4217 | #include <stdlib.h> |
4218 | ||
4219 | _ACEOF | |
4220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 4221 | $EGREP "free" >/dev/null 2>&1; then |
b80f6443 JA |
4222 | : |
4223 | else | |
4224 | ac_cv_header_stdc=no | |
4225 | fi | |
4226 | rm -f conftest* | |
4227 | ||
4228 | fi | |
4229 | ||
4230 | if test $ac_cv_header_stdc = yes; then | |
4231 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4232 | if test "$cross_compiling" = yes; then | |
4233 | : | |
4234 | else | |
4235 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4236 | /* confdefs.h. */ |
4237 | _ACEOF | |
4238 | cat confdefs.h >>conftest.$ac_ext | |
4239 | cat >>conftest.$ac_ext <<_ACEOF | |
4240 | /* end confdefs.h. */ | |
b80f6443 | 4241 | #include <ctype.h> |
3185942a | 4242 | #include <stdlib.h> |
b80f6443 JA |
4243 | #if ((' ' & 0x0FF) == 0x020) |
4244 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4245 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4246 | #else | |
0628567a JA |
4247 | # define ISLOWER(c) \ |
4248 | (('a' <= (c) && (c) <= 'i') \ | |
4249 | || ('j' <= (c) && (c) <= 'r') \ | |
4250 | || ('s' <= (c) && (c) <= 'z')) | |
b80f6443 JA |
4251 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4252 | #endif | |
4253 | ||
4254 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4255 | int | |
4256 | main () | |
4257 | { | |
4258 | int i; | |
4259 | for (i = 0; i < 256; i++) | |
4260 | if (XOR (islower (i), ISLOWER (i)) | |
0628567a | 4261 | || toupper (i) != TOUPPER (i)) |
3185942a JA |
4262 | return 2; |
4263 | return 0; | |
b80f6443 JA |
4264 | } |
4265 | _ACEOF | |
4266 | rm -f conftest$ac_exeext | |
3185942a JA |
4267 | if { (ac_try="$ac_link" |
4268 | case "(($ac_try" in | |
4269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4270 | *) ac_try_echo=$ac_try;; | |
4271 | esac | |
4272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4273 | $as_echo "$ac_try_echo") >&5 | |
4274 | (eval "$ac_link") 2>&5 | |
b80f6443 | 4275 | ac_status=$? |
3185942a | 4276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 4277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
4278 | { (case "(($ac_try" in |
4279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4280 | *) ac_try_echo=$ac_try;; | |
4281 | esac | |
4282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4283 | $as_echo "$ac_try_echo") >&5 | |
4284 | (eval "$ac_try") 2>&5 | |
b80f6443 | 4285 | ac_status=$? |
3185942a | 4286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
4287 | (exit $ac_status); }; }; then |
4288 | : | |
4289 | else | |
3185942a JA |
4290 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4291 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
4293 | ||
b80f6443 JA |
4294 | ( exit $ac_status ) |
4295 | ac_cv_header_stdc=no | |
4296 | fi | |
3185942a JA |
4297 | rm -rf conftest.dSYM |
4298 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 4299 | fi |
3185942a JA |
4300 | |
4301 | ||
b80f6443 JA |
4302 | fi |
4303 | fi | |
3185942a JA |
4304 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4305 | $as_echo "$ac_cv_header_stdc" >&6; } | |
b80f6443 JA |
4306 | if test $ac_cv_header_stdc = yes; then |
4307 | ||
4308 | cat >>confdefs.h <<\_ACEOF | |
4309 | #define STDC_HEADERS 1 | |
4310 | _ACEOF | |
4311 | ||
4312 | fi | |
4313 | ||
4314 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | ||
4321 | ||
4322 | ||
4323 | ||
4324 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
0628567a | 4325 | inttypes.h stdint.h unistd.h |
b80f6443 | 4326 | do |
3185942a JA |
4327 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4328 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4329 | $as_echo_n "checking for $ac_header... " >&6; } | |
4330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4331 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
4332 | else |
4333 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
4334 | /* confdefs.h. */ |
4335 | _ACEOF | |
4336 | cat confdefs.h >>conftest.$ac_ext | |
4337 | cat >>conftest.$ac_ext <<_ACEOF | |
4338 | /* end confdefs.h. */ | |
b80f6443 JA |
4339 | $ac_includes_default |
4340 | ||
4341 | #include <$ac_header> | |
4342 | _ACEOF | |
4343 | rm -f conftest.$ac_objext | |
3185942a JA |
4344 | if { (ac_try="$ac_compile" |
4345 | case "(($ac_try" in | |
4346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | *) ac_try_echo=$ac_try;; | |
4348 | esac | |
4349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4350 | $as_echo "$ac_try_echo") >&5 | |
4351 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4352 | ac_status=$? |
0628567a JA |
4353 | grep -v '^ *+' conftest.er1 >conftest.err |
4354 | rm -f conftest.er1 | |
4355 | cat conftest.err >&5 | |
3185942a JA |
4356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4357 | (exit $ac_status); } && { | |
4358 | test -z "$ac_c_werror_flag" || | |
4359 | test ! -s conftest.err | |
4360 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4361 | eval "$as_ac_Header=yes" |
4362 | else | |
3185942a | 4363 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4364 | sed 's/^/| /' conftest.$ac_ext >&5 |
4365 | ||
3185942a | 4366 | eval "$as_ac_Header=no" |
b80f6443 | 4367 | fi |
3185942a JA |
4368 | |
4369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 4370 | fi |
3185942a JA |
4371 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4372 | $as_echo "$as_val"'` | |
4373 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4374 | $as_echo "$ac_res" >&6; } | |
4375 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4376 | $as_echo "$as_val"'` | |
4377 | if test "x$as_val" = x""yes; then | |
b80f6443 | 4378 | cat >>confdefs.h <<_ACEOF |
3185942a | 4379 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
4380 | _ACEOF |
4381 | ||
4382 | fi | |
4383 | ||
4384 | done | |
4385 | ||
4386 | ||
3185942a JA |
4387 | |
4388 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4389 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4390 | $as_echo_n "checking for minix/config.h... " >&6; } | |
b80f6443 | 4391 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3185942a | 4392 | $as_echo_n "(cached) " >&6 |
b80f6443 | 4393 | fi |
3185942a JA |
4394 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4395 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
b80f6443 JA |
4396 | else |
4397 | # Is the header compilable? | |
3185942a JA |
4398 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4399 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
b80f6443 | 4400 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4401 | /* confdefs.h. */ |
4402 | _ACEOF | |
4403 | cat confdefs.h >>conftest.$ac_ext | |
4404 | cat >>conftest.$ac_ext <<_ACEOF | |
4405 | /* end confdefs.h. */ | |
b80f6443 JA |
4406 | $ac_includes_default |
4407 | #include <minix/config.h> | |
4408 | _ACEOF | |
4409 | rm -f conftest.$ac_objext | |
3185942a JA |
4410 | if { (ac_try="$ac_compile" |
4411 | case "(($ac_try" in | |
4412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4413 | *) ac_try_echo=$ac_try;; | |
4414 | esac | |
4415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4416 | $as_echo "$ac_try_echo") >&5 | |
4417 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 4418 | ac_status=$? |
0628567a JA |
4419 | grep -v '^ *+' conftest.er1 >conftest.err |
4420 | rm -f conftest.er1 | |
4421 | cat conftest.err >&5 | |
3185942a JA |
4422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4423 | (exit $ac_status); } && { | |
4424 | test -z "$ac_c_werror_flag" || | |
4425 | test ! -s conftest.err | |
4426 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
4427 | ac_header_compiler=yes |
4428 | else | |
3185942a | 4429 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
4431 | ||
3185942a | 4432 | ac_header_compiler=no |
b80f6443 | 4433 | fi |
3185942a JA |
4434 | |
4435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4436 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4437 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
4438 | |
4439 | # Is the header present? | |
3185942a JA |
4440 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4441 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
b80f6443 | 4442 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4443 | /* confdefs.h. */ |
4444 | _ACEOF | |
4445 | cat confdefs.h >>conftest.$ac_ext | |
4446 | cat >>conftest.$ac_ext <<_ACEOF | |
4447 | /* end confdefs.h. */ | |
b80f6443 JA |
4448 | #include <minix/config.h> |
4449 | _ACEOF | |
3185942a JA |
4450 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4451 | case "(($ac_try" in | |
4452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4453 | *) ac_try_echo=$ac_try;; | |
4454 | esac | |
4455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4456 | $as_echo "$ac_try_echo") >&5 | |
4457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 4458 | ac_status=$? |
0628567a | 4459 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
4460 | rm -f conftest.er1 |
4461 | cat conftest.err >&5 | |
3185942a JA |
4462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4463 | (exit $ac_status); } >/dev/null && { | |
4464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4465 | test ! -s conftest.err | |
4466 | }; then | |
b80f6443 | 4467 | ac_header_preproc=yes |
ccc6cda3 | 4468 | else |
3185942a | 4469 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4470 | sed 's/^/| /' conftest.$ac_ext >&5 |
4471 | ||
b80f6443 | 4472 | ac_header_preproc=no |
ccc6cda3 | 4473 | fi |
3185942a | 4474 | |
f73dda09 | 4475 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
4476 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4477 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
4478 | |
4479 | # So? What about this header? | |
0628567a JA |
4480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4481 | yes:no: ) | |
3185942a JA |
4482 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4483 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4484 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4485 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
0628567a JA |
4486 | ac_header_preproc=yes |
4487 | ;; | |
4488 | no:yes:* ) | |
3185942a JA |
4489 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4490 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4491 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4492 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4493 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4494 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4495 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4496 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4497 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4498 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4499 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4500 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4501 | ( cat <<\_ASBOX | |
0628567a JA |
4502 | ## ------------------------------- ## |
4503 | ## Report this to bug-bash@gnu.org ## | |
4504 | ## ------------------------------- ## | |
4505 | _ASBOX | |
3185942a | 4506 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 4507 | ;; |
b80f6443 | 4508 | esac |
3185942a JA |
4509 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4510 | $as_echo_n "checking for minix/config.h... " >&6; } | |
b80f6443 | 4511 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3185942a | 4512 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
4513 | else |
4514 | ac_cv_header_minix_config_h=$ac_header_preproc | |
ccc6cda3 | 4515 | fi |
3185942a JA |
4516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4517 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
b80f6443 JA |
4518 | |
4519 | fi | |
3185942a | 4520 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
ccc6cda3 JA |
4521 | MINIX=yes |
4522 | else | |
f73dda09 | 4523 | MINIX= |
ccc6cda3 JA |
4524 | fi |
4525 | ||
b80f6443 | 4526 | |
3185942a | 4527 | if test "$MINIX" = yes; then |
f73dda09 | 4528 | |
b80f6443 | 4529 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4530 | #define _POSIX_SOURCE 1 |
b80f6443 JA |
4531 | _ACEOF |
4532 | ||
ccc6cda3 | 4533 | |
b80f6443 | 4534 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4535 | #define _POSIX_1_SOURCE 2 |
b80f6443 JA |
4536 | _ACEOF |
4537 | ||
ccc6cda3 | 4538 | |
b80f6443 | 4539 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 4540 | #define _MINIX 1 |
b80f6443 | 4541 | _ACEOF |
ccc6cda3 | 4542 | |
3185942a | 4543 | fi |
ccc6cda3 | 4544 | |
b80f6443 | 4545 | |
3185942a JA |
4546 | |
4547 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4548 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4549 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4550 | $as_echo_n "(cached) " >&6 | |
4551 | else | |
4552 | cat >conftest.$ac_ext <<_ACEOF | |
4553 | /* confdefs.h. */ | |
4554 | _ACEOF | |
4555 | cat confdefs.h >>conftest.$ac_ext | |
4556 | cat >>conftest.$ac_ext <<_ACEOF | |
4557 | /* end confdefs.h. */ | |
4558 | ||
4559 | # define __EXTENSIONS__ 1 | |
4560 | $ac_includes_default | |
4561 | int | |
4562 | main () | |
4563 | { | |
4564 | ||
4565 | ; | |
4566 | return 0; | |
4567 | } | |
4568 | _ACEOF | |
4569 | rm -f conftest.$ac_objext | |
4570 | if { (ac_try="$ac_compile" | |
4571 | case "(($ac_try" in | |
4572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4573 | *) ac_try_echo=$ac_try;; | |
4574 | esac | |
4575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4576 | $as_echo "$ac_try_echo") >&5 | |
4577 | (eval "$ac_compile") 2>conftest.er1 | |
4578 | ac_status=$? | |
4579 | grep -v '^ *+' conftest.er1 >conftest.err | |
4580 | rm -f conftest.er1 | |
4581 | cat conftest.err >&5 | |
4582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 | (exit $ac_status); } && { | |
4584 | test -z "$ac_c_werror_flag" || | |
4585 | test ! -s conftest.err | |
4586 | } && test -s conftest.$ac_objext; then | |
4587 | ac_cv_safe_to_define___extensions__=yes | |
4588 | else | |
4589 | $as_echo "$as_me: failed program was:" >&5 | |
4590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4591 | ||
4592 | ac_cv_safe_to_define___extensions__=no | |
4593 | fi | |
4594 | ||
4595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4596 | fi | |
4597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4598 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4599 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4600 | cat >>confdefs.h <<\_ACEOF | |
4601 | #define __EXTENSIONS__ 1 | |
4602 | _ACEOF | |
4603 | ||
4604 | cat >>confdefs.h <<\_ACEOF | |
4605 | #define _ALL_SOURCE 1 | |
4606 | _ACEOF | |
4607 | ||
4608 | cat >>confdefs.h <<\_ACEOF | |
4609 | #define _GNU_SOURCE 1 | |
4610 | _ACEOF | |
4611 | ||
4612 | cat >>confdefs.h <<\_ACEOF | |
4613 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4614 | _ACEOF | |
4615 | ||
4616 | cat >>confdefs.h <<\_ACEOF | |
4617 | #define _TANDEM_SOURCE 1 | |
4618 | _ACEOF | |
4619 | ||
4620 | ||
4621 | ||
4622 | # Check whether --enable-largefile was given. | |
f73dda09 | 4623 | if test "${enable_largefile+set}" = set; then |
3185942a JA |
4624 | enableval=$enable_largefile; |
4625 | fi | |
f73dda09 | 4626 | |
f73dda09 | 4627 | if test "$enable_largefile" != no; then |
ccc6cda3 | 4628 | |
3185942a JA |
4629 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
4630 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
f73dda09 | 4631 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
3185942a | 4632 | $as_echo_n "(cached) " >&6 |
bb70624e | 4633 | else |
f73dda09 JA |
4634 | ac_cv_sys_largefile_CC=no |
4635 | if test "$GCC" != yes; then | |
4636 | ac_save_CC=$CC | |
4637 | while :; do | |
3185942a JA |
4638 | # IRIX 6.2 and later do not support large files by default, |
4639 | # so use the C compiler's -n32 option if that helps. | |
0628567a JA |
4640 | cat >conftest.$ac_ext <<_ACEOF |
4641 | /* confdefs.h. */ | |
4642 | _ACEOF | |
4643 | cat confdefs.h >>conftest.$ac_ext | |
4644 | cat >>conftest.$ac_ext <<_ACEOF | |
4645 | /* end confdefs.h. */ | |
f73dda09 JA |
4646 | #include <sys/types.h> |
4647 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4648 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4649 | since some C++ compilers masquerading as C compilers | |
4650 | incorrectly reject 9223372036854775807. */ | |
4651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4653 | && LARGE_OFF_T % 2147483647 == 1) | |
4654 | ? 1 : -1]; | |
4655 | int | |
4656 | main () | |
4657 | { | |
bb70624e | 4658 | |
f73dda09 JA |
4659 | ; |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
3185942a JA |
4663 | rm -f conftest.$ac_objext |
4664 | if { (ac_try="$ac_compile" | |
4665 | case "(($ac_try" in | |
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4667 | *) ac_try_echo=$ac_try;; | |
4668 | esac | |
4669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4670 | $as_echo "$ac_try_echo") >&5 | |
4671 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4672 | ac_status=$? |
0628567a JA |
4673 | grep -v '^ *+' conftest.er1 >conftest.err |
4674 | rm -f conftest.er1 | |
4675 | cat conftest.err >&5 | |
3185942a JA |
4676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4677 | (exit $ac_status); } && { | |
4678 | test -z "$ac_c_werror_flag" || | |
4679 | test ! -s conftest.err | |
4680 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 4681 | break |
bb70624e | 4682 | else |
3185942a | 4683 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4684 | sed 's/^/| /' conftest.$ac_ext >&5 |
4685 | ||
3185942a | 4686 | |
f73dda09 | 4687 | fi |
3185942a JA |
4688 | |
4689 | rm -f core conftest.err conftest.$ac_objext | |
4690 | CC="$CC -n32" | |
4691 | rm -f conftest.$ac_objext | |
4692 | if { (ac_try="$ac_compile" | |
4693 | case "(($ac_try" in | |
4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4695 | *) ac_try_echo=$ac_try;; | |
4696 | esac | |
4697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4698 | $as_echo "$ac_try_echo") >&5 | |
4699 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4700 | ac_status=$? |
0628567a JA |
4701 | grep -v '^ *+' conftest.er1 >conftest.err |
4702 | rm -f conftest.er1 | |
4703 | cat conftest.err >&5 | |
3185942a JA |
4704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4705 | (exit $ac_status); } && { | |
4706 | test -z "$ac_c_werror_flag" || | |
4707 | test ! -s conftest.err | |
4708 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
4709 | ac_cv_sys_largefile_CC=' -n32'; break |
4710 | else | |
3185942a | 4711 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4712 | sed 's/^/| /' conftest.$ac_ext >&5 |
4713 | ||
3185942a | 4714 | |
f73dda09 | 4715 | fi |
3185942a JA |
4716 | |
4717 | rm -f core conftest.err conftest.$ac_objext | |
0628567a | 4718 | break |
f73dda09 JA |
4719 | done |
4720 | CC=$ac_save_CC | |
4721 | rm -f conftest.$ac_ext | |
4722 | fi | |
bb70624e | 4723 | fi |
3185942a JA |
4724 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
4725 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
f73dda09 JA |
4726 | if test "$ac_cv_sys_largefile_CC" != no; then |
4727 | CC=$CC$ac_cv_sys_largefile_CC | |
4728 | fi | |
bb70624e | 4729 | |
3185942a JA |
4730 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4731 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
f73dda09 | 4732 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
3185942a | 4733 | $as_echo_n "(cached) " >&6 |
bb70624e | 4734 | else |
f73dda09 | 4735 | while :; do |
f73dda09 | 4736 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4737 | /* confdefs.h. */ |
4738 | _ACEOF | |
4739 | cat confdefs.h >>conftest.$ac_ext | |
4740 | cat >>conftest.$ac_ext <<_ACEOF | |
4741 | /* end confdefs.h. */ | |
f73dda09 JA |
4742 | #include <sys/types.h> |
4743 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4744 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4745 | since some C++ compilers masquerading as C compilers | |
4746 | incorrectly reject 9223372036854775807. */ | |
4747 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4748 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4749 | && LARGE_OFF_T % 2147483647 == 1) | |
4750 | ? 1 : -1]; | |
4751 | int | |
4752 | main () | |
4753 | { | |
bb70624e | 4754 | |
f73dda09 JA |
4755 | ; |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
4759 | rm -f conftest.$ac_objext | |
3185942a JA |
4760 | if { (ac_try="$ac_compile" |
4761 | case "(($ac_try" in | |
4762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4763 | *) ac_try_echo=$ac_try;; | |
4764 | esac | |
4765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4766 | $as_echo "$ac_try_echo") >&5 | |
4767 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4768 | ac_status=$? |
0628567a JA |
4769 | grep -v '^ *+' conftest.er1 >conftest.err |
4770 | rm -f conftest.er1 | |
4771 | cat conftest.err >&5 | |
3185942a JA |
4772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4773 | (exit $ac_status); } && { | |
4774 | test -z "$ac_c_werror_flag" || | |
4775 | test ! -s conftest.err | |
4776 | } && test -s conftest.$ac_objext; then | |
4777 | ac_cv_sys_file_offset_bits=no; break | |
bb70624e | 4778 | else |
3185942a | 4779 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4780 | sed 's/^/| /' conftest.$ac_ext >&5 |
4781 | ||
3185942a | 4782 | |
bb70624e | 4783 | fi |
3185942a JA |
4784 | |
4785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 4786 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4787 | /* confdefs.h. */ |
4788 | _ACEOF | |
4789 | cat confdefs.h >>conftest.$ac_ext | |
4790 | cat >>conftest.$ac_ext <<_ACEOF | |
4791 | /* end confdefs.h. */ | |
f73dda09 JA |
4792 | #define _FILE_OFFSET_BITS 64 |
4793 | #include <sys/types.h> | |
4794 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4796 | since some C++ compilers masquerading as C compilers | |
4797 | incorrectly reject 9223372036854775807. */ | |
4798 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4800 | && LARGE_OFF_T % 2147483647 == 1) | |
4801 | ? 1 : -1]; | |
4802 | int | |
4803 | main () | |
4804 | { | |
bb70624e | 4805 | |
f73dda09 JA |
4806 | ; |
4807 | return 0; | |
4808 | } | |
4809 | _ACEOF | |
4810 | rm -f conftest.$ac_objext | |
3185942a JA |
4811 | if { (ac_try="$ac_compile" |
4812 | case "(($ac_try" in | |
4813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4814 | *) ac_try_echo=$ac_try;; | |
4815 | esac | |
4816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4817 | $as_echo "$ac_try_echo") >&5 | |
4818 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4819 | ac_status=$? |
0628567a JA |
4820 | grep -v '^ *+' conftest.er1 >conftest.err |
4821 | rm -f conftest.er1 | |
4822 | cat conftest.err >&5 | |
3185942a JA |
4823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4824 | (exit $ac_status); } && { | |
4825 | test -z "$ac_c_werror_flag" || | |
4826 | test ! -s conftest.err | |
4827 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
4828 | ac_cv_sys_file_offset_bits=64; break |
4829 | else | |
3185942a | 4830 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4831 | sed 's/^/| /' conftest.$ac_ext >&5 |
4832 | ||
3185942a | 4833 | |
f73dda09 | 4834 | fi |
3185942a JA |
4835 | |
4836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4837 | ac_cv_sys_file_offset_bits=unknown | |
f73dda09 JA |
4838 | break |
4839 | done | |
4840 | fi | |
3185942a JA |
4841 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
4842 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4843 | case $ac_cv_sys_file_offset_bits in #( | |
4844 | no | unknown) ;; | |
4845 | *) | |
b80f6443 | 4846 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 4847 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
b80f6443 | 4848 | _ACEOF |
3185942a JA |
4849 | ;; |
4850 | esac | |
4851 | rm -rf conftest* | |
4852 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4853 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4854 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
f73dda09 | 4855 | if test "${ac_cv_sys_large_files+set}" = set; then |
3185942a | 4856 | $as_echo_n "(cached) " >&6 |
bb70624e | 4857 | else |
f73dda09 | 4858 | while :; do |
f73dda09 | 4859 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4860 | /* confdefs.h. */ |
4861 | _ACEOF | |
4862 | cat confdefs.h >>conftest.$ac_ext | |
4863 | cat >>conftest.$ac_ext <<_ACEOF | |
4864 | /* end confdefs.h. */ | |
f73dda09 JA |
4865 | #include <sys/types.h> |
4866 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4867 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4868 | since some C++ compilers masquerading as C compilers | |
4869 | incorrectly reject 9223372036854775807. */ | |
4870 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4871 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4872 | && LARGE_OFF_T % 2147483647 == 1) | |
4873 | ? 1 : -1]; | |
4874 | int | |
4875 | main () | |
4876 | { | |
4877 | ||
4878 | ; | |
4879 | return 0; | |
4880 | } | |
4881 | _ACEOF | |
4882 | rm -f conftest.$ac_objext | |
3185942a JA |
4883 | if { (ac_try="$ac_compile" |
4884 | case "(($ac_try" in | |
4885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4886 | *) ac_try_echo=$ac_try;; | |
4887 | esac | |
4888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4889 | $as_echo "$ac_try_echo") >&5 | |
4890 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4891 | ac_status=$? |
0628567a JA |
4892 | grep -v '^ *+' conftest.er1 >conftest.err |
4893 | rm -f conftest.er1 | |
4894 | cat conftest.err >&5 | |
3185942a JA |
4895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4896 | (exit $ac_status); } && { | |
4897 | test -z "$ac_c_werror_flag" || | |
4898 | test ! -s conftest.err | |
4899 | } && test -s conftest.$ac_objext; then | |
4900 | ac_cv_sys_large_files=no; break | |
bb70624e | 4901 | else |
3185942a | 4902 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4903 | sed 's/^/| /' conftest.$ac_ext >&5 |
4904 | ||
3185942a | 4905 | |
bb70624e | 4906 | fi |
3185942a JA |
4907 | |
4908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 4909 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
4910 | /* confdefs.h. */ |
4911 | _ACEOF | |
4912 | cat confdefs.h >>conftest.$ac_ext | |
4913 | cat >>conftest.$ac_ext <<_ACEOF | |
4914 | /* end confdefs.h. */ | |
f73dda09 JA |
4915 | #define _LARGE_FILES 1 |
4916 | #include <sys/types.h> | |
4917 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4918 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4919 | since some C++ compilers masquerading as C compilers | |
4920 | incorrectly reject 9223372036854775807. */ | |
4921 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4922 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4923 | && LARGE_OFF_T % 2147483647 == 1) | |
4924 | ? 1 : -1]; | |
4925 | int | |
4926 | main () | |
4927 | { | |
bb70624e | 4928 | |
f73dda09 JA |
4929 | ; |
4930 | return 0; | |
4931 | } | |
4932 | _ACEOF | |
4933 | rm -f conftest.$ac_objext | |
3185942a JA |
4934 | if { (ac_try="$ac_compile" |
4935 | case "(($ac_try" in | |
4936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4937 | *) ac_try_echo=$ac_try;; | |
4938 | esac | |
4939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4940 | $as_echo "$ac_try_echo") >&5 | |
4941 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 4942 | ac_status=$? |
0628567a JA |
4943 | grep -v '^ *+' conftest.er1 >conftest.err |
4944 | rm -f conftest.er1 | |
4945 | cat conftest.err >&5 | |
3185942a JA |
4946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4947 | (exit $ac_status); } && { | |
4948 | test -z "$ac_c_werror_flag" || | |
4949 | test ! -s conftest.err | |
4950 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
4951 | ac_cv_sys_large_files=1; break |
4952 | else | |
3185942a | 4953 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
4955 | ||
3185942a | 4956 | |
f73dda09 | 4957 | fi |
3185942a JA |
4958 | |
4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4960 | ac_cv_sys_large_files=unknown | |
f73dda09 JA |
4961 | break |
4962 | done | |
4963 | fi | |
3185942a JA |
4964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
4965 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4966 | case $ac_cv_sys_large_files in #( | |
4967 | no | unknown) ;; | |
4968 | *) | |
b80f6443 | 4969 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 4970 | #define _LARGE_FILES $ac_cv_sys_large_files |
b80f6443 | 4971 | _ACEOF |
3185942a JA |
4972 | ;; |
4973 | esac | |
4974 | rm -rf conftest* | |
4975 | fi | |
f73dda09 | 4976 | fi |
cce855bc | 4977 | |
b80f6443 JA |
4978 | |
4979 | ||
0628567a | 4980 | SIGNAMES_O= |
b72432fd JA |
4981 | SIGNAMES_H=lsignames.h |
4982 | ||
b80f6443 JA |
4983 | |
4984 | ||
0628567a | 4985 | CROSS_COMPILE= |
cce855bc JA |
4986 | if test "x$cross_compiling" = "xyes"; then |
4987 | case "${host}" in | |
28ef6c31 | 4988 | *-cygwin*) |
cce855bc | 4989 | cross_cache=${srcdir}/cross-build/cygwin32.cache |
cce855bc | 4990 | ;; |
95732b49 JA |
4991 | *-mingw*) |
4992 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
4993 | ;; | |
b72432fd JA |
4994 | i[3456]86-*-beos*) |
4995 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
b72432fd JA |
4996 | ;; |
4997 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
cce855bc JA |
4998 | ;; |
4999 | esac | |
b72432fd JA |
5000 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then |
5001 | echo "loading cross-build cache file ${cross_cache}" | |
5002 | . ${cross_cache} | |
5003 | fi | |
5004 | unset cross_cache | |
0628567a | 5005 | SIGNAMES_O='signames.o' |
95732b49 JA |
5006 | CROSS_COMPILE='-DCROSS_COMPILING' |
5007 | ||
cce855bc JA |
5008 | fi |
5009 | ||
b80f6443 | 5010 | |
0628567a | 5011 | |
cce855bc JA |
5012 | if test -z "$CC_FOR_BUILD"; then |
5013 | if test "x$cross_compiling" = "xno"; then | |
5014 | CC_FOR_BUILD='$(CC)' | |
5015 | else | |
5016 | CC_FOR_BUILD=gcc | |
5017 | fi | |
5018 | fi | |
5019 | ||
b80f6443 JA |
5020 | |
5021 | ||
ccc6cda3 JA |
5022 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 |
5023 | ||
5024 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2" | |
5025 | ||
cce855bc JA |
5026 | if test "$opt_profiling" = "yes"; then |
5027 | PROFILE_FLAGS=-pg | |
b72432fd JA |
5028 | case "$host_os" in |
5029 | solaris2*) ;; | |
5030 | *) opt_static_link=yes ;; | |
5031 | esac | |
7117c2d2 | 5032 | DEBUG= MALLOC_DEBUG= |
cce855bc JA |
5033 | fi |
5034 | ||
5035 | if test "$opt_static_link" = yes; then | |
f73dda09 JA |
5036 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 |
5037 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then | |
b72432fd | 5038 | STATIC_LD="-static" |
f73dda09 JA |
5039 | case "$host_os" in |
5040 | solaris2*) ;; | |
5041 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental | |
5042 | esac | |
cce855bc JA |
5043 | fi |
5044 | fi | |
5045 | ||
b80f6443 JA |
5046 | if test "X$cross_compiling" = "Xno"; then |
5047 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} | |
5048 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} | |
5049 | else | |
5050 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} | |
5051 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} | |
5052 | fi | |
5053 | ||
7117c2d2 JA |
5054 | test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g" |
5055 | ||
b80f6443 JA |
5056 | |
5057 | ||
5058 | ||
5059 | ||
5060 | ||
5061 | ||
5062 | ||
5063 | ||
5064 | ||
f73dda09 | 5065 | if test $ac_cv_c_compiler_gnu = yes; then |
3185942a JA |
5066 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5067 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
f73dda09 | 5068 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3185942a | 5069 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
5070 | else |
5071 | ac_pattern="Autoconf.*'x'" | |
f73dda09 | 5072 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5073 | /* confdefs.h. */ |
5074 | _ACEOF | |
5075 | cat confdefs.h >>conftest.$ac_ext | |
5076 | cat >>conftest.$ac_ext <<_ACEOF | |
5077 | /* end confdefs.h. */ | |
ccc6cda3 JA |
5078 | #include <sgtty.h> |
5079 | Autoconf TIOCGETP | |
f73dda09 | 5080 | _ACEOF |
ccc6cda3 | 5081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 5082 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
5083 | ac_cv_prog_gcc_traditional=yes |
5084 | else | |
ccc6cda3 JA |
5085 | ac_cv_prog_gcc_traditional=no |
5086 | fi | |
5087 | rm -f conftest* | |
5088 | ||
b80f6443 | 5089 | |
ccc6cda3 | 5090 | if test $ac_cv_prog_gcc_traditional = no; then |
f73dda09 | 5091 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5092 | /* confdefs.h. */ |
5093 | _ACEOF | |
5094 | cat confdefs.h >>conftest.$ac_ext | |
5095 | cat >>conftest.$ac_ext <<_ACEOF | |
5096 | /* end confdefs.h. */ | |
ccc6cda3 JA |
5097 | #include <termio.h> |
5098 | Autoconf TCGETA | |
f73dda09 | 5099 | _ACEOF |
ccc6cda3 | 5100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 5101 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
ccc6cda3 JA |
5102 | ac_cv_prog_gcc_traditional=yes |
5103 | fi | |
5104 | rm -f conftest* | |
5105 | ||
5106 | fi | |
5107 | fi | |
3185942a JA |
5108 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5109 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
ccc6cda3 JA |
5110 | if test $ac_cv_prog_gcc_traditional = yes; then |
5111 | CC="$CC -traditional" | |
5112 | fi | |
5113 | fi | |
5114 | ||
b80f6443 JA |
5115 | |
5116 | ||
f73dda09 | 5117 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" |
b72432fd | 5118 | then |
f73dda09 JA |
5119 | # If the user specified --with-installed-readline=PREFIX and PREFIX |
5120 | # is not `yes', set ac_cv_rl_prefix to PREFIX | |
5121 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline | |
b72432fd | 5122 | |
b80f6443 | 5123 | |
bb70624e JA |
5124 | if test "X$bash_cv_termcap_lib" = "X"; then |
5125 | _bash_needmsg=yes | |
5126 | else | |
3185942a JA |
5127 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5128 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
bb70624e JA |
5129 | _bash_needmsg= |
5130 | fi | |
f73dda09 | 5131 | if test "${bash_cv_termcap_lib+set}" = set; then |
3185942a | 5132 | $as_echo_n "(cached) " >&6 |
bb70624e | 5133 | else |
3185942a JA |
5134 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
5135 | $as_echo_n "checking for tgetent... " >&6; } | |
b80f6443 | 5136 | if test "${ac_cv_func_tgetent+set}" = set; then |
3185942a | 5137 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
5138 | else |
5139 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5140 | /* confdefs.h. */ |
5141 | _ACEOF | |
5142 | cat confdefs.h >>conftest.$ac_ext | |
5143 | cat >>conftest.$ac_ext <<_ACEOF | |
5144 | /* end confdefs.h. */ | |
5145 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
5146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5147 | #define tgetent innocuous_tgetent | |
5148 | ||
b80f6443 | 5149 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
5150 | which can conflict with char tgetent (); below. |
5151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5152 | <limits.h> exists even on freestanding compilers. */ | |
5153 | ||
5154 | #ifdef __STDC__ | |
5155 | # include <limits.h> | |
5156 | #else | |
5157 | # include <assert.h> | |
5158 | #endif | |
5159 | ||
5160 | #undef tgetent | |
5161 | ||
3185942a JA |
5162 | /* Override any GCC internal prototype to avoid an error. |
5163 | Use char because int might match the return type of a GCC | |
5164 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
5165 | #ifdef __cplusplus |
5166 | extern "C" | |
b80f6443 | 5167 | #endif |
b80f6443 JA |
5168 | char tgetent (); |
5169 | /* The GNU C library defines this for functions which it implements | |
5170 | to always fail with ENOSYS. Some functions are actually named | |
5171 | something starting with __ and the normal name is an alias. */ | |
3185942a | 5172 | #if defined __stub_tgetent || defined __stub___tgetent |
b80f6443 | 5173 | choke me |
b80f6443 JA |
5174 | #endif |
5175 | ||
0628567a JA |
5176 | int |
5177 | main () | |
5178 | { | |
3185942a | 5179 | return tgetent (); |
b80f6443 JA |
5180 | ; |
5181 | return 0; | |
5182 | } | |
5183 | _ACEOF | |
5184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5185 | if { (ac_try="$ac_link" |
5186 | case "(($ac_try" in | |
5187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5188 | *) ac_try_echo=$ac_try;; | |
5189 | esac | |
5190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5191 | $as_echo "$ac_try_echo") >&5 | |
5192 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 5193 | ac_status=$? |
0628567a JA |
5194 | grep -v '^ *+' conftest.er1 >conftest.err |
5195 | rm -f conftest.er1 | |
5196 | cat conftest.err >&5 | |
3185942a JA |
5197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5198 | (exit $ac_status); } && { | |
5199 | test -z "$ac_c_werror_flag" || | |
5200 | test ! -s conftest.err | |
5201 | } && test -s conftest$ac_exeext && { | |
5202 | test "$cross_compiling" = yes || | |
5203 | $as_test_x conftest$ac_exeext | |
5204 | }; then | |
b80f6443 JA |
5205 | ac_cv_func_tgetent=yes |
5206 | else | |
3185942a | 5207 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5208 | sed 's/^/| /' conftest.$ac_ext >&5 |
5209 | ||
3185942a | 5210 | ac_cv_func_tgetent=no |
b80f6443 | 5211 | fi |
3185942a JA |
5212 | |
5213 | rm -rf conftest.dSYM | |
5214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5215 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 5216 | fi |
3185942a JA |
5217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
5218 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
5219 | if test "x$ac_cv_func_tgetent" = x""yes; then | |
b80f6443 JA |
5220 | bash_cv_termcap_lib=libc |
5221 | else | |
3185942a JA |
5222 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5223 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
f73dda09 | 5224 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
3185942a | 5225 | $as_echo_n "(cached) " >&6 |
bb70624e | 5226 | else |
f73dda09 | 5227 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 5228 | LIBS="-ltermcap $LIBS" |
f73dda09 | 5229 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5230 | /* confdefs.h. */ |
5231 | _ACEOF | |
5232 | cat confdefs.h >>conftest.$ac_ext | |
5233 | cat >>conftest.$ac_ext <<_ACEOF | |
5234 | /* end confdefs.h. */ | |
f73dda09 | 5235 | |
3185942a JA |
5236 | /* Override any GCC internal prototype to avoid an error. |
5237 | Use char because int might match the return type of a GCC | |
5238 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5239 | #ifdef __cplusplus |
5240 | extern "C" | |
5241 | #endif | |
f73dda09 JA |
5242 | char tgetent (); |
5243 | int | |
5244 | main () | |
5245 | { | |
3185942a | 5246 | return tgetent (); |
f73dda09 JA |
5247 | ; |
5248 | return 0; | |
5249 | } | |
5250 | _ACEOF | |
5251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5252 | if { (ac_try="$ac_link" |
5253 | case "(($ac_try" in | |
5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5255 | *) ac_try_echo=$ac_try;; | |
5256 | esac | |
5257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5258 | $as_echo "$ac_try_echo") >&5 | |
5259 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5260 | ac_status=$? |
0628567a JA |
5261 | grep -v '^ *+' conftest.er1 >conftest.err |
5262 | rm -f conftest.er1 | |
5263 | cat conftest.err >&5 | |
3185942a JA |
5264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5265 | (exit $ac_status); } && { | |
5266 | test -z "$ac_c_werror_flag" || | |
5267 | test ! -s conftest.err | |
5268 | } && test -s conftest$ac_exeext && { | |
5269 | test "$cross_compiling" = yes || | |
5270 | $as_test_x conftest$ac_exeext | |
5271 | }; then | |
f73dda09 JA |
5272 | ac_cv_lib_termcap_tgetent=yes |
5273 | else | |
3185942a | 5274 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 |
5276 | ||
3185942a | 5277 | ac_cv_lib_termcap_tgetent=no |
f73dda09 | 5278 | fi |
3185942a JA |
5279 | |
5280 | rm -rf conftest.dSYM | |
5281 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5282 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5283 | LIBS=$ac_check_lib_save_LIBS |
5284 | fi | |
3185942a JA |
5285 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5286 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5287 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then | |
bb70624e JA |
5288 | bash_cv_termcap_lib=libtermcap |
5289 | else | |
3185942a JA |
5290 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
5291 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
f73dda09 | 5292 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
3185942a | 5293 | $as_echo_n "(cached) " >&6 |
bb70624e | 5294 | else |
f73dda09 JA |
5295 | ac_check_lib_save_LIBS=$LIBS |
5296 | LIBS="-ltinfo $LIBS" | |
5297 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5298 | /* confdefs.h. */ |
5299 | _ACEOF | |
5300 | cat confdefs.h >>conftest.$ac_ext | |
5301 | cat >>conftest.$ac_ext <<_ACEOF | |
5302 | /* end confdefs.h. */ | |
f73dda09 | 5303 | |
3185942a JA |
5304 | /* Override any GCC internal prototype to avoid an error. |
5305 | Use char because int might match the return type of a GCC | |
5306 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5307 | #ifdef __cplusplus |
5308 | extern "C" | |
5309 | #endif | |
f73dda09 JA |
5310 | char tgetent (); |
5311 | int | |
5312 | main () | |
5313 | { | |
3185942a | 5314 | return tgetent (); |
f73dda09 JA |
5315 | ; |
5316 | return 0; | |
5317 | } | |
5318 | _ACEOF | |
5319 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5320 | if { (ac_try="$ac_link" |
5321 | case "(($ac_try" in | |
5322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5323 | *) ac_try_echo=$ac_try;; | |
5324 | esac | |
5325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5326 | $as_echo "$ac_try_echo") >&5 | |
5327 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5328 | ac_status=$? |
0628567a JA |
5329 | grep -v '^ *+' conftest.er1 >conftest.err |
5330 | rm -f conftest.er1 | |
5331 | cat conftest.err >&5 | |
3185942a JA |
5332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5333 | (exit $ac_status); } && { | |
5334 | test -z "$ac_c_werror_flag" || | |
5335 | test ! -s conftest.err | |
5336 | } && test -s conftest$ac_exeext && { | |
5337 | test "$cross_compiling" = yes || | |
5338 | $as_test_x conftest$ac_exeext | |
5339 | }; then | |
f73dda09 JA |
5340 | ac_cv_lib_tinfo_tgetent=yes |
5341 | else | |
3185942a | 5342 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5343 | sed 's/^/| /' conftest.$ac_ext >&5 |
5344 | ||
3185942a | 5345 | ac_cv_lib_tinfo_tgetent=no |
f73dda09 | 5346 | fi |
3185942a JA |
5347 | |
5348 | rm -rf conftest.dSYM | |
5349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5350 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5351 | LIBS=$ac_check_lib_save_LIBS |
5352 | fi | |
3185942a JA |
5353 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5354 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5355 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then | |
7117c2d2 | 5356 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 5357 | else |
3185942a JA |
5358 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
5359 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
f73dda09 | 5360 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
3185942a | 5361 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
5362 | else |
5363 | ac_check_lib_save_LIBS=$LIBS | |
5364 | LIBS="-lcurses $LIBS" | |
5365 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5366 | /* confdefs.h. */ |
5367 | _ACEOF | |
5368 | cat confdefs.h >>conftest.$ac_ext | |
5369 | cat >>conftest.$ac_ext <<_ACEOF | |
5370 | /* end confdefs.h. */ | |
b72432fd | 5371 | |
3185942a JA |
5372 | /* Override any GCC internal prototype to avoid an error. |
5373 | Use char because int might match the return type of a GCC | |
5374 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5375 | #ifdef __cplusplus |
5376 | extern "C" | |
5377 | #endif | |
f73dda09 JA |
5378 | char tgetent (); |
5379 | int | |
5380 | main () | |
5381 | { | |
3185942a | 5382 | return tgetent (); |
f73dda09 JA |
5383 | ; |
5384 | return 0; | |
5385 | } | |
5386 | _ACEOF | |
5387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5388 | if { (ac_try="$ac_link" |
5389 | case "(($ac_try" in | |
5390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5391 | *) ac_try_echo=$ac_try;; | |
5392 | esac | |
5393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5394 | $as_echo "$ac_try_echo") >&5 | |
5395 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5396 | ac_status=$? |
0628567a JA |
5397 | grep -v '^ *+' conftest.er1 >conftest.err |
5398 | rm -f conftest.er1 | |
5399 | cat conftest.err >&5 | |
3185942a JA |
5400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5401 | (exit $ac_status); } && { | |
5402 | test -z "$ac_c_werror_flag" || | |
5403 | test ! -s conftest.err | |
5404 | } && test -s conftest$ac_exeext && { | |
5405 | test "$cross_compiling" = yes || | |
5406 | $as_test_x conftest$ac_exeext | |
5407 | }; then | |
f73dda09 JA |
5408 | ac_cv_lib_curses_tgetent=yes |
5409 | else | |
3185942a | 5410 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5411 | sed 's/^/| /' conftest.$ac_ext >&5 |
5412 | ||
3185942a | 5413 | ac_cv_lib_curses_tgetent=no |
f73dda09 | 5414 | fi |
3185942a JA |
5415 | |
5416 | rm -rf conftest.dSYM | |
5417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5418 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5419 | LIBS=$ac_check_lib_save_LIBS |
5420 | fi | |
3185942a JA |
5421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
5422 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
5423 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then | |
bb70624e JA |
5424 | bash_cv_termcap_lib=libcurses |
5425 | else | |
3185942a JA |
5426 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
5427 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
f73dda09 | 5428 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
3185942a | 5429 | $as_echo_n "(cached) " >&6 |
bb70624e | 5430 | else |
f73dda09 | 5431 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 5432 | LIBS="-lncurses $LIBS" |
f73dda09 | 5433 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
5434 | /* confdefs.h. */ |
5435 | _ACEOF | |
5436 | cat confdefs.h >>conftest.$ac_ext | |
5437 | cat >>conftest.$ac_ext <<_ACEOF | |
5438 | /* end confdefs.h. */ | |
f73dda09 | 5439 | |
3185942a JA |
5440 | /* Override any GCC internal prototype to avoid an error. |
5441 | Use char because int might match the return type of a GCC | |
5442 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
5443 | #ifdef __cplusplus |
5444 | extern "C" | |
5445 | #endif | |
f73dda09 JA |
5446 | char tgetent (); |
5447 | int | |
5448 | main () | |
5449 | { | |
3185942a | 5450 | return tgetent (); |
f73dda09 JA |
5451 | ; |
5452 | return 0; | |
5453 | } | |
5454 | _ACEOF | |
5455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
5456 | if { (ac_try="$ac_link" |
5457 | case "(($ac_try" in | |
5458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5459 | *) ac_try_echo=$ac_try;; | |
5460 | esac | |
5461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5462 | $as_echo "$ac_try_echo") >&5 | |
5463 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 5464 | ac_status=$? |
0628567a JA |
5465 | grep -v '^ *+' conftest.er1 >conftest.err |
5466 | rm -f conftest.er1 | |
5467 | cat conftest.err >&5 | |
3185942a JA |
5468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5469 | (exit $ac_status); } && { | |
5470 | test -z "$ac_c_werror_flag" || | |
5471 | test ! -s conftest.err | |
5472 | } && test -s conftest$ac_exeext && { | |
5473 | test "$cross_compiling" = yes || | |
5474 | $as_test_x conftest$ac_exeext | |
5475 | }; then | |
f73dda09 JA |
5476 | ac_cv_lib_ncurses_tgetent=yes |
5477 | else | |
3185942a | 5478 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
5479 | sed 's/^/| /' conftest.$ac_ext >&5 |
5480 | ||
3185942a | 5481 | ac_cv_lib_ncurses_tgetent=no |
f73dda09 | 5482 | fi |
3185942a JA |
5483 | |
5484 | rm -rf conftest.dSYM | |
5485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 5486 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
5487 | LIBS=$ac_check_lib_save_LIBS |
5488 | fi | |
3185942a JA |
5489 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
5490 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5491 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then | |
f73dda09 | 5492 | bash_cv_termcap_lib=libncurses |
bb70624e | 5493 | else |
f73dda09 | 5494 | bash_cv_termcap_lib=gnutermcap |
bb70624e | 5495 | fi |
bb70624e | 5496 | |
bb70624e JA |
5497 | fi |
5498 | ||
5499 | fi | |
5500 | ||
5501 | fi | |
5502 | ||
5503 | fi | |
5504 | ||
b80f6443 JA |
5505 | fi |
5506 | ||
bb70624e | 5507 | if test "X$_bash_needmsg" = "Xyes"; then |
3185942a JA |
5508 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5509 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
bb70624e | 5510 | fi |
3185942a JA |
5511 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
5512 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
bb70624e JA |
5513 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
5514 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5515 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5516 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5517 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5518 | TERMCAP_LIB=-ltermcap | |
5519 | TERMCAP_DEP= | |
f73dda09 JA |
5520 | elif test $bash_cv_termcap_lib = libtinfo; then |
5521 | TERMCAP_LIB=-ltinfo | |
5522 | TERMCAP_DEP= | |
bb70624e JA |
5523 | elif test $bash_cv_termcap_lib = libncurses; then |
5524 | TERMCAP_LIB=-lncurses | |
5525 | TERMCAP_DEP= | |
b80f6443 JA |
5526 | elif test $bash_cv_termcap_lib = libc; then |
5527 | TERMCAP_LIB= | |
5528 | TERMCAP_DEP= | |
bb70624e JA |
5529 | else |
5530 | TERMCAP_LIB=-lcurses | |
5531 | TERMCAP_DEP= | |
5532 | fi | |
5533 | ||
b80f6443 JA |
5534 | |
5535 | ||
5536 | ||
3185942a JA |
5537 | { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5 |
5538 | $as_echo_n "checking version of installed readline library... " >&6; } | |
f73dda09 JA |
5539 | |
5540 | # What a pain in the ass this is. | |
5541 | ||
5542 | # save cpp and ld options | |
5543 | _save_CFLAGS="$CFLAGS" | |
5544 | _save_LDFLAGS="$LDFLAGS" | |
5545 | _save_LIBS="$LIBS" | |
5546 | ||
5547 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This | |
5548 | # allows the caller to do something like $_rl_prefix=$withval if the user | |
5549 | # specifies --with-installed-readline=PREFIX as an argument to configure | |
5550 | ||
5551 | if test -z "$ac_cv_rl_prefix"; then | |
5552 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} | |
5553 | fi | |
5554 | ||
5555 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include | |
5556 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib | |
5557 | ||
5558 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" | |
5559 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" | |
5560 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" | |
5561 | ||
b80f6443 | 5562 | if test "${ac_cv_rl_version+set}" = set; then |
3185942a | 5563 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
5564 | else |
5565 | if test "$cross_compiling" = yes; then | |
f73dda09 JA |
5566 | ac_cv_rl_version='4.2' |
5567 | else | |
5568 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
5569 | /* confdefs.h. */ |
5570 | _ACEOF | |
5571 | cat confdefs.h >>conftest.$ac_ext | |
5572 | cat >>conftest.$ac_ext <<_ACEOF | |
5573 | /* end confdefs.h. */ | |
f73dda09 JA |
5574 | |
5575 | #include <stdio.h> | |
5576 | #include <readline/readline.h> | |
5577 | ||
95732b49 JA |
5578 | extern int rl_gnu_readline_p; |
5579 | ||
f73dda09 JA |
5580 | main() |
5581 | { | |
5582 | FILE *fp; | |
5583 | fp = fopen("conftest.rlv", "w"); | |
95732b49 JA |
5584 | if (fp == 0) |
5585 | exit(1); | |
5586 | if (rl_gnu_readline_p != 1) | |
5587 | fprintf(fp, "0.0\n"); | |
5588 | else | |
5589 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | |
f73dda09 JA |
5590 | fclose(fp); |
5591 | exit(0); | |
5592 | } | |
5593 | ||
5594 | _ACEOF | |
5595 | rm -f conftest$ac_exeext | |
3185942a JA |
5596 | if { (ac_try="$ac_link" |
5597 | case "(($ac_try" in | |
5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5599 | *) ac_try_echo=$ac_try;; | |
5600 | esac | |
5601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5602 | $as_echo "$ac_try_echo") >&5 | |
5603 | (eval "$ac_link") 2>&5 | |
f73dda09 | 5604 | ac_status=$? |
3185942a | 5605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 5606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
5607 | { (case "(($ac_try" in |
5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5609 | *) ac_try_echo=$ac_try;; | |
5610 | esac | |
5611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5612 | $as_echo "$ac_try_echo") >&5 | |
5613 | (eval "$ac_try") 2>&5 | |
f73dda09 | 5614 | ac_status=$? |
3185942a | 5615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
5616 | (exit $ac_status); }; }; then |
5617 | ac_cv_rl_version=`cat conftest.rlv` | |
5618 | else | |
3185942a JA |
5619 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5620 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
5621 | sed 's/^/| /' conftest.$ac_ext >&5 |
5622 | ||
b80f6443 | 5623 | ( exit $ac_status ) |
f73dda09 JA |
5624 | ac_cv_rl_version='0.0' |
5625 | fi | |
3185942a JA |
5626 | rm -rf conftest.dSYM |
5627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 5628 | fi |
3185942a JA |
5629 | |
5630 | ||
b80f6443 JA |
5631 | fi |
5632 | ||
f73dda09 JA |
5633 | |
5634 | CFLAGS="$_save_CFLAGS" | |
5635 | LDFLAGS="$_save_LDFLAGS" | |
5636 | LIBS="$_save_LIBS" | |
5637 | ||
5638 | RL_MAJOR=0 | |
5639 | RL_MINOR=0 | |
5640 | ||
5641 | # ( | |
5642 | case "$ac_cv_rl_version" in | |
5643 | 2*|3*|4*|5*|6*|7*|8*|9*) | |
5644 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` | |
7117c2d2 | 5645 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` |
f73dda09 JA |
5646 | ;; |
5647 | esac | |
5648 | ||
5649 | # ((( | |
5650 | case $RL_MAJOR in | |
5651 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; | |
5652 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; | |
5653 | *) _RL_MAJOR=00 ;; | |
5654 | esac | |
5655 | ||
5656 | # ((( | |
5657 | case $RL_MINOR in | |
5658 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; | |
5659 | [0-9]) _RL_MINOR=0$RL_MINOR ;; | |
5660 | *) _RL_MINOR=00 ;; | |
5661 | esac | |
5662 | ||
5663 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" | |
5664 | ||
5665 | # Readline versions greater than 4.2 have these defines in readline.h | |
5666 | ||
5667 | if test $ac_cv_rl_version = '0.0' ; then | |
3185942a JA |
5668 | { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5 |
5669 | $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} | |
f73dda09 JA |
5670 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then |
5671 | # set these for use by the caller | |
5672 | RL_PREFIX=$ac_cv_rl_prefix | |
5673 | RL_LIBDIR=$ac_cv_rl_libdir | |
5674 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
3185942a JA |
5675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5676 | $as_echo "$ac_cv_rl_version" >&6; } | |
f73dda09 JA |
5677 | else |
5678 | ||
b80f6443 JA |
5679 | |
5680 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5681 | #define RL_READLINE_VERSION $RL_VERSION |
b80f6443 | 5682 | _ACEOF |
f73dda09 | 5683 | |
b80f6443 JA |
5684 | |
5685 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5686 | #define RL_VERSION_MAJOR $RL_MAJOR |
b80f6443 | 5687 | _ACEOF |
f73dda09 | 5688 | |
b80f6443 JA |
5689 | |
5690 | cat >>confdefs.h <<_ACEOF | |
f73dda09 | 5691 | #define RL_VERSION_MINOR $RL_MINOR |
b80f6443 JA |
5692 | _ACEOF |
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | ||
f73dda09 JA |
5698 | |
5699 | # set these for use by the caller | |
5700 | RL_PREFIX=$ac_cv_rl_prefix | |
5701 | RL_LIBDIR=$ac_cv_rl_libdir | |
5702 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
bb70624e | 5703 | |
3185942a JA |
5704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5705 | $as_echo "$ac_cv_rl_version" >&6; } | |
bb70624e | 5706 | |
f73dda09 | 5707 | fi |
bb70624e | 5708 | |
b80f6443 | 5709 | |
f73dda09 | 5710 | case "$ac_cv_rl_version" in |
b80f6443 | 5711 | 5*|6*|7*|8*|9*) ;; |
f73dda09 | 5712 | *) opt_with_installed_readline=no |
3185942a JA |
5713 | { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5 |
5714 | $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} | |
5715 | { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5 | |
5716 | $as_echo "$as_me: WARNING: using private bash version" >&2;} | |
bb70624e JA |
5717 | ;; |
5718 | esac | |
bb70624e JA |
5719 | fi |
5720 | ||
95732b49 | 5721 | TILDE_LIB=-ltilde |
bb70624e | 5722 | if test $opt_readline = yes; then |
b80f6443 | 5723 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5724 | #define READLINE 1 |
b80f6443 | 5725 | _ACEOF |
bb70624e | 5726 | |
f73dda09 | 5727 | if test "$opt_with_installed_readline" != "no" ; then |
b80f6443 JA |
5728 | case "$opt_with_installed_readline" in |
5729 | yes) RL_INCLUDE= ;; | |
5730 | *) case "$RL_INCLUDEDIR" in | |
5731 | /usr/include) ;; | |
5732 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5733 | esac | |
5734 | ;; | |
f73dda09 | 5735 | esac |
bb70624e | 5736 | READLINE_DEP= |
95732b49 JA |
5737 | READLINE_LIB=-lreadline |
5738 | # section for OS versions that don't allow unresolved symbols | |
5739 | # to be compiled into dynamic libraries. | |
5740 | case "$host_os" in | |
5741 | cygwin*) TILDE_LIB= ;; | |
5742 | esac | |
bb70624e JA |
5743 | else |
5744 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5745 | READLINE_DEP='$(READLINE_LIBRARY)' | |
95732b49 JA |
5746 | # section for OS versions that ship an older/broken version of |
5747 | # readline as a standard dynamic library and don't allow a | |
5748 | # static version specified as -llibname to override the | |
5749 | # dynamic version | |
5750 | case "${host_os}" in | |
89a92869 | 5751 | darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;; |
95732b49 JA |
5752 | *) READLINE_LIB=-lreadline ;; |
5753 | esac | |
bb70624e JA |
5754 | fi |
5755 | else | |
5756 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5757 | READLINE_LIB= READLINE_DEP= | |
5758 | fi | |
5759 | if test $opt_history = yes || test $opt_bang_history = yes; then | |
5760 | if test $opt_history = yes; then | |
b80f6443 | 5761 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5762 | #define HISTORY 1 |
b80f6443 | 5763 | _ACEOF |
bb70624e JA |
5764 | |
5765 | fi | |
5766 | if test $opt_bang_history = yes; then | |
b80f6443 | 5767 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 5768 | #define BANG_HISTORY 1 |
b80f6443 | 5769 | _ACEOF |
b72432fd JA |
5770 | |
5771 | fi | |
f73dda09 JA |
5772 | if test "$opt_with_installed_readline" != "no"; then |
5773 | HIST_LIBDIR=$RL_LIBDIR | |
b72432fd | 5774 | HISTORY_DEP= |
95732b49 | 5775 | HISTORY_LIB=-lhistory |
b80f6443 JA |
5776 | case "$opt_with_installed_readline" in |
5777 | yes) RL_INCLUDE= ;; | |
5778 | *) case "$RL_INCLUDEDIR" in | |
5779 | /usr/include) ;; | |
5780 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5781 | esac | |
5782 | ;; | |
f73dda09 | 5783 | esac |
b72432fd JA |
5784 | else |
5785 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5786 | HISTORY_DEP='$(HISTORY_LIBRARY)' | |
95732b49 JA |
5787 | # section for OS versions that ship an older version of |
5788 | # readline as a standard dynamic library and don't allow a | |
5789 | # static version specified as -llibname to override the | |
5790 | # dynamic version | |
5791 | case "${host_os}" in | |
89a92869 | 5792 | darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; |
95732b49 JA |
5793 | *) HISTORY_LIB=-lhistory ;; |
5794 | esac | |
b72432fd JA |
5795 | fi |
5796 | else | |
5797 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5798 | HISTORY_LIB= HISTORY_DEP= | |
5799 | fi | |
5800 | ||
b80f6443 JA |
5801 | |
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
95732b49 | 5810 | |
ccc6cda3 JA |
5811 | # Find a good install program. We prefer a C program (faster), |
5812 | # so one script is as good as another. But avoid the broken or | |
5813 | # incompatible versions: | |
5814 | # SysV /etc/install, /usr/sbin/install | |
5815 | # SunOS /usr/etc/install | |
5816 | # IRIX /sbin/install | |
5817 | # AIX /bin/install | |
f73dda09 | 5818 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
bb70624e | 5819 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ccc6cda3 JA |
5820 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5821 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
0628567a | 5822 | # OS/2's system install, which has a completely different semantic |
ccc6cda3 | 5823 | # ./install, which can be erroneously created by make from ./install.sh. |
3185942a JA |
5824 | # Reject install programs that cannot install multiple files. |
5825 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5826 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
ccc6cda3 | 5827 | if test -z "$INSTALL"; then |
f73dda09 | 5828 | if test "${ac_cv_path_install+set}" = set; then |
3185942a | 5829 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 5830 | else |
b80f6443 JA |
5831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5832 | for as_dir in $PATH | |
5833 | do | |
5834 | IFS=$as_save_IFS | |
5835 | test -z "$as_dir" && as_dir=. | |
5836 | # Account for people who put trailing slashes in PATH elements. | |
5837 | case $as_dir/ in | |
5838 | ./ | .// | /cC/* | \ | |
5839 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
0628567a | 5840 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
b80f6443 JA |
5841 | /usr/ucb/* ) ;; |
5842 | *) | |
5843 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5844 | # Don't use installbsd from OSF since it installs stuff as root | |
5845 | # by default. | |
5846 | for ac_prog in ginstall scoinst install; do | |
5847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 5848 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
0628567a JA |
5849 | if test $ac_prog = install && |
5850 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5851 | # AIX install. It has an incompatible calling convention. | |
5852 | : | |
5853 | elif test $ac_prog = install && | |
5854 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5855 | # program-specific install script used by HP pwplus--don't use. | |
5856 | : | |
5857 | else | |
3185942a JA |
5858 | rm -rf conftest.one conftest.two conftest.dir |
5859 | echo one > conftest.one | |
5860 | echo two > conftest.two | |
5861 | mkdir conftest.dir | |
5862 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5863 | test -s conftest.one && test -s conftest.two && | |
5864 | test -s conftest.dir/conftest.one && | |
5865 | test -s conftest.dir/conftest.two | |
5866 | then | |
5867 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5868 | break 3 | |
5869 | fi | |
0628567a JA |
5870 | fi |
5871 | fi | |
ccc6cda3 | 5872 | done |
b80f6443 JA |
5873 | done |
5874 | ;; | |
5875 | esac | |
3185942a | 5876 | |
b80f6443 | 5877 | done |
3185942a | 5878 | IFS=$as_save_IFS |
b80f6443 | 5879 | |
3185942a | 5880 | rm -rf conftest.one conftest.two conftest.dir |
ccc6cda3 JA |
5881 | |
5882 | fi | |
5883 | if test "${ac_cv_path_install+set}" = set; then | |
f73dda09 | 5884 | INSTALL=$ac_cv_path_install |
ccc6cda3 | 5885 | else |
3185942a JA |
5886 | # As a last resort, use the slow shell script. Don't cache a |
5887 | # value for INSTALL within a source directory, because that will | |
ccc6cda3 | 5888 | # break other packages using the cache if that directory is |
3185942a | 5889 | # removed, or if the value is a relative name. |
f73dda09 | 5890 | INSTALL=$ac_install_sh |
ccc6cda3 JA |
5891 | fi |
5892 | fi | |
3185942a JA |
5893 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5894 | $as_echo "$INSTALL" >&6; } | |
ccc6cda3 JA |
5895 | |
5896 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5897 | # It thinks the first close brace ends the variable substitution. | |
5898 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5899 | ||
f73dda09 | 5900 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
bb70624e | 5901 | |
ccc6cda3 JA |
5902 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5903 | ||
5904 | # Extract the first word of "ar", so it can be a program name with args. | |
5905 | set dummy ar; ac_word=$2 | |
3185942a JA |
5906 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5907 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 5908 | if test "${ac_cv_prog_AR+set}" = set; then |
3185942a | 5909 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
5910 | else |
5911 | if test -n "$AR"; then | |
5912 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5913 | else | |
b80f6443 JA |
5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5915 | for as_dir in $PATH | |
5916 | do | |
5917 | IFS=$as_save_IFS | |
5918 | test -z "$as_dir" && as_dir=. | |
5919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 5920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 5921 | ac_cv_prog_AR="" |
3185942a | 5922 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
5923 | break 2 |
5924 | fi | |
5925 | done | |
f73dda09 | 5926 | done |
3185942a | 5927 | IFS=$as_save_IFS |
f73dda09 JA |
5928 | |
5929 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
ccc6cda3 JA |
5930 | fi |
5931 | fi | |
f73dda09 | 5932 | AR=$ac_cv_prog_AR |
ccc6cda3 | 5933 | if test -n "$AR"; then |
3185942a JA |
5934 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
5935 | $as_echo "$AR" >&6; } | |
ccc6cda3 | 5936 | else |
3185942a JA |
5937 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5938 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
5939 | fi |
5940 | ||
3185942a | 5941 | |
b72432fd | 5942 | test -n "$ARFLAGS" || ARFLAGS="cr" |
f73dda09 JA |
5943 | if test -n "$ac_tool_prefix"; then |
5944 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5945 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3185942a JA |
5946 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5947 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 5948 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3185942a | 5949 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
5950 | else |
5951 | if test -n "$RANLIB"; then | |
5952 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5953 | else | |
b80f6443 JA |
5954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5955 | for as_dir in $PATH | |
5956 | do | |
5957 | IFS=$as_save_IFS | |
5958 | test -z "$as_dir" && as_dir=. | |
5959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 5960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 5961 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3185942a | 5962 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
5963 | break 2 |
5964 | fi | |
5965 | done | |
f73dda09 | 5966 | done |
3185942a | 5967 | IFS=$as_save_IFS |
f73dda09 | 5968 | |
ccc6cda3 JA |
5969 | fi |
5970 | fi | |
f73dda09 | 5971 | RANLIB=$ac_cv_prog_RANLIB |
ccc6cda3 | 5972 | if test -n "$RANLIB"; then |
3185942a JA |
5973 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5974 | $as_echo "$RANLIB" >&6; } | |
f73dda09 | 5975 | else |
3185942a JA |
5976 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5977 | $as_echo "no" >&6; } | |
f73dda09 JA |
5978 | fi |
5979 | ||
3185942a | 5980 | |
f73dda09 JA |
5981 | fi |
5982 | if test -z "$ac_cv_prog_RANLIB"; then | |
5983 | ac_ct_RANLIB=$RANLIB | |
5984 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5985 | set dummy ranlib; ac_word=$2 | |
3185942a JA |
5986 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5987 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 5988 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3185942a | 5989 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
5990 | else |
5991 | if test -n "$ac_ct_RANLIB"; then | |
5992 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5993 | else | |
b80f6443 JA |
5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5995 | for as_dir in $PATH | |
5996 | do | |
5997 | IFS=$as_save_IFS | |
5998 | test -z "$as_dir" && as_dir=. | |
5999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 6000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 6001 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3185942a | 6002 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
6003 | break 2 |
6004 | fi | |
6005 | done | |
f73dda09 | 6006 | done |
3185942a | 6007 | IFS=$as_save_IFS |
f73dda09 | 6008 | |
f73dda09 JA |
6009 | fi |
6010 | fi | |
6011 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6012 | if test -n "$ac_ct_RANLIB"; then | |
3185942a JA |
6013 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6014 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ccc6cda3 | 6015 | else |
3185942a JA |
6016 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6017 | $as_echo "no" >&6; } | |
f73dda09 JA |
6018 | fi |
6019 | ||
3185942a JA |
6020 | if test "x$ac_ct_RANLIB" = x; then |
6021 | RANLIB=":" | |
6022 | else | |
6023 | case $cross_compiling:$ac_tool_warned in | |
6024 | yes:) | |
6025 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6026 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6027 | ac_tool_warned=yes ;; | |
6028 | esac | |
6029 | RANLIB=$ac_ct_RANLIB | |
6030 | fi | |
f73dda09 JA |
6031 | else |
6032 | RANLIB="$ac_cv_prog_RANLIB" | |
ccc6cda3 JA |
6033 | fi |
6034 | ||
6035 | for ac_prog in 'bison -y' byacc | |
6036 | do | |
f73dda09 | 6037 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
ccc6cda3 | 6038 | set dummy $ac_prog; ac_word=$2 |
3185942a JA |
6039 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6040 | $as_echo_n "checking for $ac_word... " >&6; } | |
f73dda09 | 6041 | if test "${ac_cv_prog_YACC+set}" = set; then |
3185942a | 6042 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
6043 | else |
6044 | if test -n "$YACC"; then | |
6045 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6046 | else | |
b80f6443 JA |
6047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6048 | for as_dir in $PATH | |
6049 | do | |
6050 | IFS=$as_save_IFS | |
6051 | test -z "$as_dir" && as_dir=. | |
6052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 6053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 6054 | ac_cv_prog_YACC="$ac_prog" |
3185942a | 6055 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
6056 | break 2 |
6057 | fi | |
6058 | done | |
f73dda09 | 6059 | done |
3185942a | 6060 | IFS=$as_save_IFS |
f73dda09 | 6061 | |
ccc6cda3 JA |
6062 | fi |
6063 | fi | |
f73dda09 | 6064 | YACC=$ac_cv_prog_YACC |
ccc6cda3 | 6065 | if test -n "$YACC"; then |
3185942a JA |
6066 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
6067 | $as_echo "$YACC" >&6; } | |
ccc6cda3 | 6068 | else |
3185942a JA |
6069 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6070 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
6071 | fi |
6072 | ||
3185942a | 6073 | |
f73dda09 | 6074 | test -n "$YACC" && break |
ccc6cda3 JA |
6075 | done |
6076 | test -n "$YACC" || YACC="yacc" | |
6077 | ||
3185942a JA |
6078 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6079 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6080 | set x ${MAKE-make} | |
6081 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
6082 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
6083 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 6084 | else |
b80f6443 | 6085 | cat >conftest.make <<\_ACEOF |
3185942a | 6086 | SHELL = /bin/sh |
ccc6cda3 | 6087 | all: |
3185942a | 6088 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b80f6443 | 6089 | _ACEOF |
ccc6cda3 | 6090 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3185942a JA |
6091 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6092 | *@@@%%%=?*=@@@%%%*) | |
6093 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6094 | *) | |
6095 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6096 | esac | |
f73dda09 | 6097 | rm -f conftest.make |
ccc6cda3 | 6098 | fi |
3185942a JA |
6099 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
6100 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6101 | $as_echo "yes" >&6; } | |
ccc6cda3 JA |
6102 | SET_MAKE= |
6103 | else | |
3185942a JA |
6104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6105 | $as_echo "no" >&6; } | |
ccc6cda3 JA |
6106 | SET_MAKE="MAKE=${MAKE-make}" |
6107 | fi | |
6108 | ||
b80f6443 | 6109 | |
b72432fd | 6110 | case "$host_os" in |
bb70624e | 6111 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; |
b72432fd JA |
6112 | *) MAKE_SHELL=/bin/sh ;; |
6113 | esac | |
6114 | ||
6115 | ||
95732b49 JA |
6116 | if test x$SIZE = x; then |
6117 | if test x$ac_tool_prefix = x; then | |
6118 | SIZE=size | |
6119 | else | |
6120 | SIZE=${ac_tool_prefix}size | |
6121 | save_IFS=$IFS ; IFS=: | |
6122 | size_found=0 | |
6123 | for dir in $PATH; do | |
6124 | if test -x $dir/$SIZE ; then | |
6125 | size_found=1 | |
6126 | break | |
6127 | fi | |
6128 | done | |
6129 | if test $size_found -eq 0; then | |
6130 | SIZE=: | |
6131 | fi | |
6132 | IFS=$save_IFS | |
6133 | fi | |
6134 | fi | |
6135 | ||
6136 | ||
b80f6443 JA |
6137 | cat >>confdefs.h <<\_ACEOF |
6138 | #define _GNU_SOURCE 1 | |
f73dda09 | 6139 | _ACEOF |
ccc6cda3 | 6140 | |
f73dda09 | 6141 | |
3185942a JA |
6142 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6143 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
0628567a | 6144 | if test "${ac_cv_c_const+set}" = set; then |
3185942a | 6145 | $as_echo_n "(cached) " >&6 |
95732b49 | 6146 | else |
0628567a JA |
6147 | cat >conftest.$ac_ext <<_ACEOF |
6148 | /* confdefs.h. */ | |
6149 | _ACEOF | |
6150 | cat confdefs.h >>conftest.$ac_ext | |
6151 | cat >>conftest.$ac_ext <<_ACEOF | |
6152 | /* end confdefs.h. */ | |
6153 | ||
6154 | int | |
6155 | main () | |
f73dda09 JA |
6156 | { |
6157 | /* FIXME: Include the comments suggested by Paul. */ | |
6158 | #ifndef __cplusplus | |
6159 | /* Ultrix mips cc rejects this. */ | |
6160 | typedef int charset[2]; | |
3185942a | 6161 | const charset cs; |
f73dda09 | 6162 | /* SunOS 4.1.1 cc rejects this. */ |
3185942a JA |
6163 | char const *const *pcpcc; |
6164 | char **ppc; | |
f73dda09 JA |
6165 | /* NEC SVR4.0.2 mips cc rejects this. */ |
6166 | struct point {int x, y;}; | |
6167 | static struct point const zero = {0,0}; | |
6168 | /* AIX XL C 1.02.0.0 rejects this. | |
6169 | It does not let you subtract one const X* pointer from another in | |
6170 | an arm of an if-expression whose if-part is not a constant | |
6171 | expression */ | |
6172 | const char *g = "string"; | |
3185942a | 6173 | pcpcc = &g + (g ? g-g : 0); |
f73dda09 | 6174 | /* HPUX 7.0 cc rejects these. */ |
3185942a JA |
6175 | ++pcpcc; |
6176 | ppc = (char**) pcpcc; | |
6177 | pcpcc = (char const *const *) ppc; | |
f73dda09 JA |
6178 | { /* SCO 3.2v4 cc rejects this. */ |
6179 | char *t; | |
6180 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6181 | ||
6182 | *t++ = 0; | |
3185942a | 6183 | if (s) return 0; |
f73dda09 JA |
6184 | } |
6185 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6186 | int x[] = {25, 17}; | |
6187 | const int *foo = &x[0]; | |
6188 | ++foo; | |
6189 | } | |
6190 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6191 | typedef const int *iptr; | |
6192 | iptr p = 0; | |
6193 | ++p; | |
6194 | } | |
6195 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6196 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6197 | struct s { int j; const int *ap[3]; }; | |
6198 | struct s *b; b->j = 5; | |
6199 | } | |
6200 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6201 | const int foo = 10; | |
3185942a | 6202 | if (!foo) return 0; |
f73dda09 | 6203 | } |
3185942a | 6204 | return !cs[0] && !zero.x; |
ccc6cda3 JA |
6205 | #endif |
6206 | ||
f73dda09 JA |
6207 | ; |
6208 | return 0; | |
6209 | } | |
6210 | _ACEOF | |
6211 | rm -f conftest.$ac_objext | |
3185942a JA |
6212 | if { (ac_try="$ac_compile" |
6213 | case "(($ac_try" in | |
6214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6215 | *) ac_try_echo=$ac_try;; | |
6216 | esac | |
6217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6218 | $as_echo "$ac_try_echo") >&5 | |
6219 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6220 | ac_status=$? |
0628567a JA |
6221 | grep -v '^ *+' conftest.er1 >conftest.err |
6222 | rm -f conftest.er1 | |
6223 | cat conftest.err >&5 | |
3185942a JA |
6224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6225 | (exit $ac_status); } && { | |
6226 | test -z "$ac_c_werror_flag" || | |
6227 | test ! -s conftest.err | |
6228 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
6229 | ac_cv_c_const=yes |
6230 | else | |
3185942a | 6231 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6232 | sed 's/^/| /' conftest.$ac_ext >&5 |
6233 | ||
3185942a | 6234 | ac_cv_c_const=no |
f73dda09 | 6235 | fi |
3185942a JA |
6236 | |
6237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 6238 | fi |
3185942a JA |
6239 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
6240 | $as_echo "$ac_cv_c_const" >&6; } | |
f73dda09 JA |
6241 | if test $ac_cv_c_const = no; then |
6242 | ||
b80f6443 | 6243 | cat >>confdefs.h <<\_ACEOF |
3185942a | 6244 | #define const /**/ |
b80f6443 | 6245 | _ACEOF |
ccc6cda3 JA |
6246 | |
6247 | fi | |
6248 | ||
3185942a JA |
6249 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
6250 | $as_echo_n "checking for inline... " >&6; } | |
f73dda09 | 6251 | if test "${ac_cv_c_inline+set}" = set; then |
3185942a | 6252 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6253 | else |
f73dda09 JA |
6254 | ac_cv_c_inline=no |
6255 | for ac_kw in inline __inline__ __inline; do | |
6256 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6257 | /* confdefs.h. */ |
6258 | _ACEOF | |
6259 | cat confdefs.h >>conftest.$ac_ext | |
6260 | cat >>conftest.$ac_ext <<_ACEOF | |
6261 | /* end confdefs.h. */ | |
f73dda09 | 6262 | #ifndef __cplusplus |
0628567a JA |
6263 | typedef int foo_t; |
6264 | static $ac_kw foo_t static_foo () {return 0; } | |
6265 | $ac_kw foo_t foo () {return 0; } | |
ccc6cda3 JA |
6266 | #endif |
6267 | ||
f73dda09 JA |
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 | |
6287 | ac_cv_c_inline=$ac_kw | |
f73dda09 | 6288 | else |
3185942a | 6289 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6290 | sed 's/^/| /' conftest.$ac_ext >&5 |
6291 | ||
3185942a | 6292 | |
f73dda09 | 6293 | fi |
3185942a JA |
6294 | |
6295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6296 | test "$ac_cv_c_inline" != no && break | |
f73dda09 | 6297 | done |
ccc6cda3 JA |
6298 | |
6299 | fi | |
3185942a JA |
6300 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
6301 | $as_echo "$ac_cv_c_inline" >&6; } | |
0628567a JA |
6302 | |
6303 | ||
f73dda09 JA |
6304 | case $ac_cv_c_inline in |
6305 | inline | yes) ;; | |
0628567a JA |
6306 | *) |
6307 | case $ac_cv_c_inline in | |
6308 | no) ac_val=;; | |
6309 | *) ac_val=$ac_cv_c_inline;; | |
6310 | esac | |
6311 | cat >>confdefs.h <<_ACEOF | |
6312 | #ifndef __cplusplus | |
6313 | #define inline $ac_val | |
6314 | #endif | |
b80f6443 | 6315 | _ACEOF |
0628567a | 6316 | ;; |
f73dda09 | 6317 | esac |
ccc6cda3 | 6318 | |
3185942a JA |
6319 | |
6320 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
6321 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
f73dda09 | 6322 | if test "${ac_cv_c_bigendian+set}" = set; then |
3185942a | 6323 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6324 | else |
3185942a JA |
6325 | ac_cv_c_bigendian=unknown |
6326 | # See if we're dealing with a universal compiler. | |
6327 | cat >conftest.$ac_ext <<_ACEOF | |
6328 | /* confdefs.h. */ | |
6329 | _ACEOF | |
6330 | cat confdefs.h >>conftest.$ac_ext | |
6331 | cat >>conftest.$ac_ext <<_ACEOF | |
6332 | /* end confdefs.h. */ | |
6333 | #ifndef __APPLE_CC__ | |
6334 | not a universal capable compiler | |
6335 | #endif | |
6336 | typedef int dummy; | |
6337 | ||
6338 | _ACEOF | |
6339 | rm -f conftest.$ac_objext | |
6340 | if { (ac_try="$ac_compile" | |
6341 | case "(($ac_try" in | |
6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6343 | *) ac_try_echo=$ac_try;; | |
6344 | esac | |
6345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6346 | $as_echo "$ac_try_echo") >&5 | |
6347 | (eval "$ac_compile") 2>conftest.er1 | |
6348 | ac_status=$? | |
6349 | grep -v '^ *+' conftest.er1 >conftest.err | |
6350 | rm -f conftest.er1 | |
6351 | cat conftest.err >&5 | |
6352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6353 | (exit $ac_status); } && { | |
6354 | test -z "$ac_c_werror_flag" || | |
6355 | test ! -s conftest.err | |
6356 | } && test -s conftest.$ac_objext; then | |
6357 | ||
6358 | # Check for potential -arch flags. It is not universal unless | |
6359 | # there are some -arch flags. Note that *ppc* also matches | |
6360 | # ppc64. This check is also rather less than ideal. | |
6361 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | |
6362 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | |
6363 | esac | |
6364 | else | |
6365 | $as_echo "$as_me: failed program was:" >&5 | |
6366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6367 | ||
6368 | ||
6369 | fi | |
6370 | ||
6371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6372 | if test $ac_cv_c_bigendian = unknown; then | |
6373 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6375 | /* confdefs.h. */ |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
f73dda09 | 6380 | #include <sys/types.h> |
3185942a | 6381 | #include <sys/param.h> |
ccc6cda3 | 6382 | |
f73dda09 JA |
6383 | int |
6384 | main () | |
6385 | { | |
3185942a JA |
6386 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6387 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6388 | && LITTLE_ENDIAN) | |
6389 | bogus endian macros | |
6390 | #endif | |
ccc6cda3 | 6391 | |
f73dda09 JA |
6392 | ; |
6393 | return 0; | |
6394 | } | |
6395 | _ACEOF | |
6396 | rm -f conftest.$ac_objext | |
3185942a JA |
6397 | if { (ac_try="$ac_compile" |
6398 | case "(($ac_try" in | |
6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6400 | *) ac_try_echo=$ac_try;; | |
6401 | esac | |
6402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6403 | $as_echo "$ac_try_echo") >&5 | |
6404 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6405 | ac_status=$? |
0628567a JA |
6406 | grep -v '^ *+' conftest.er1 >conftest.err |
6407 | rm -f conftest.er1 | |
6408 | cat conftest.err >&5 | |
3185942a JA |
6409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6410 | (exit $ac_status); } && { | |
6411 | test -z "$ac_c_werror_flag" || | |
6412 | test ! -s conftest.err | |
6413 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6414 | # It does; now see whether it defined to BIG_ENDIAN or not. |
3185942a | 6415 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6416 | /* confdefs.h. */ |
6417 | _ACEOF | |
6418 | cat confdefs.h >>conftest.$ac_ext | |
6419 | cat >>conftest.$ac_ext <<_ACEOF | |
6420 | /* end confdefs.h. */ | |
f73dda09 | 6421 | #include <sys/types.h> |
3185942a | 6422 | #include <sys/param.h> |
ccc6cda3 | 6423 | |
f73dda09 JA |
6424 | int |
6425 | main () | |
6426 | { | |
6427 | #if BYTE_ORDER != BIG_ENDIAN | |
3185942a JA |
6428 | not big endian |
6429 | #endif | |
ccc6cda3 | 6430 | |
f73dda09 JA |
6431 | ; |
6432 | return 0; | |
6433 | } | |
6434 | _ACEOF | |
6435 | rm -f conftest.$ac_objext | |
3185942a JA |
6436 | if { (ac_try="$ac_compile" |
6437 | case "(($ac_try" in | |
6438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6439 | *) ac_try_echo=$ac_try;; | |
6440 | esac | |
6441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6442 | $as_echo "$ac_try_echo") >&5 | |
6443 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6444 | ac_status=$? |
0628567a JA |
6445 | grep -v '^ *+' conftest.er1 >conftest.err |
6446 | rm -f conftest.er1 | |
6447 | cat conftest.err >&5 | |
3185942a JA |
6448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6449 | (exit $ac_status); } && { | |
6450 | test -z "$ac_c_werror_flag" || | |
6451 | test ! -s conftest.err | |
6452 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6453 | ac_cv_c_bigendian=yes |
ccc6cda3 | 6454 | else |
3185942a | 6455 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6456 | sed 's/^/| /' conftest.$ac_ext >&5 |
6457 | ||
3185942a | 6458 | ac_cv_c_bigendian=no |
ccc6cda3 | 6459 | fi |
3185942a JA |
6460 | |
6461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6462 | else |
3185942a | 6463 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
6465 | ||
3185942a JA |
6466 | |
6467 | fi | |
6468 | ||
6469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6470 | fi | |
6471 | if test $ac_cv_c_bigendian = unknown; then | |
6472 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
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. */ | |
3185942a JA |
6479 | #include <limits.h> |
6480 | ||
b80f6443 JA |
6481 | int |
6482 | main () | |
6483 | { | |
3185942a JA |
6484 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
6485 | bogus endian macros | |
6486 | #endif | |
6487 | ||
b80f6443 JA |
6488 | ; |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext | |
3185942a JA |
6493 | if { (ac_try="$ac_compile" |
6494 | case "(($ac_try" in | |
6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6496 | *) ac_try_echo=$ac_try;; | |
6497 | esac | |
6498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6499 | $as_echo "$ac_try_echo") >&5 | |
6500 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 6501 | ac_status=$? |
0628567a JA |
6502 | grep -v '^ *+' conftest.er1 >conftest.err |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
3185942a JA |
6505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6506 | (exit $ac_status); } && { | |
6507 | test -z "$ac_c_werror_flag" || | |
6508 | test ! -s conftest.err | |
6509 | } && test -s conftest.$ac_objext; then | |
6510 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6511 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
6512 | /* confdefs.h. */ |
6513 | _ACEOF | |
6514 | cat confdefs.h >>conftest.$ac_ext | |
6515 | cat >>conftest.$ac_ext <<_ACEOF | |
6516 | /* end confdefs.h. */ | |
3185942a JA |
6517 | #include <limits.h> |
6518 | ||
f73dda09 JA |
6519 | int |
6520 | main () | |
ccc6cda3 | 6521 | { |
3185942a JA |
6522 | #ifndef _BIG_ENDIAN |
6523 | not big endian | |
6524 | #endif | |
6525 | ||
6526 | ; | |
6527 | return 0; | |
ccc6cda3 | 6528 | } |
f73dda09 | 6529 | _ACEOF |
3185942a JA |
6530 | rm -f conftest.$ac_objext |
6531 | if { (ac_try="$ac_compile" | |
6532 | case "(($ac_try" in | |
6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6534 | *) ac_try_echo=$ac_try;; | |
6535 | esac | |
6536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6537 | $as_echo "$ac_try_echo") >&5 | |
6538 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6539 | ac_status=$? |
3185942a JA |
6540 | grep -v '^ *+' conftest.er1 >conftest.err |
6541 | rm -f conftest.er1 | |
6542 | cat conftest.err >&5 | |
6543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6544 | (exit $ac_status); } && { | |
6545 | test -z "$ac_c_werror_flag" || | |
6546 | test ! -s conftest.err | |
6547 | } && test -s conftest.$ac_objext; then | |
6548 | ac_cv_c_bigendian=yes | |
ccc6cda3 | 6549 | else |
3185942a | 6550 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6551 | sed 's/^/| /' conftest.$ac_ext >&5 |
6552 | ||
3185942a | 6553 | ac_cv_c_bigendian=no |
f73dda09 | 6554 | fi |
3185942a JA |
6555 | |
6556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6557 | else | |
6558 | $as_echo "$as_me: failed program was:" >&5 | |
6559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6560 | ||
6561 | ||
ccc6cda3 JA |
6562 | fi |
6563 | ||
3185942a JA |
6564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6565 | fi | |
6566 | if test $ac_cv_c_bigendian = unknown; then | |
6567 | # Compile a test program. | |
6568 | if test "$cross_compiling" = yes; then | |
6569 | # Try to guess by grepping values from an object file. | |
6570 | cat >conftest.$ac_ext <<_ACEOF | |
6571 | /* confdefs.h. */ | |
6572 | _ACEOF | |
6573 | cat confdefs.h >>conftest.$ac_ext | |
6574 | cat >>conftest.$ac_ext <<_ACEOF | |
6575 | /* end confdefs.h. */ | |
6576 | short int ascii_mm[] = | |
6577 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6578 | short int ascii_ii[] = | |
6579 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6580 | int use_ascii (int i) { | |
6581 | return ascii_mm[i] + ascii_ii[i]; | |
6582 | } | |
6583 | short int ebcdic_ii[] = | |
6584 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6585 | short int ebcdic_mm[] = | |
6586 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6587 | int use_ebcdic (int i) { | |
6588 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6589 | } | |
6590 | extern int foo; | |
6591 | ||
6592 | int | |
6593 | main () | |
6594 | { | |
6595 | return use_ascii (foo) == use_ebcdic (foo); | |
6596 | ; | |
6597 | return 0; | |
6598 | } | |
6599 | _ACEOF | |
6600 | rm -f conftest.$ac_objext | |
6601 | if { (ac_try="$ac_compile" | |
6602 | case "(($ac_try" in | |
6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6604 | *) ac_try_echo=$ac_try;; | |
6605 | esac | |
6606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6607 | $as_echo "$ac_try_echo") >&5 | |
6608 | (eval "$ac_compile") 2>conftest.er1 | |
6609 | ac_status=$? | |
6610 | grep -v '^ *+' conftest.er1 >conftest.err | |
6611 | rm -f conftest.er1 | |
6612 | cat conftest.err >&5 | |
6613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6614 | (exit $ac_status); } && { | |
6615 | test -z "$ac_c_werror_flag" || | |
6616 | test ! -s conftest.err | |
6617 | } && test -s conftest.$ac_objext; then | |
6618 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6619 | ac_cv_c_bigendian=yes | |
6620 | fi | |
6621 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6622 | if test "$ac_cv_c_bigendian" = unknown; then | |
6623 | ac_cv_c_bigendian=no | |
6624 | else | |
6625 | # finding both strings is unlikely to happen, but who knows? | |
6626 | ac_cv_c_bigendian=unknown | |
6627 | fi | |
6628 | fi | |
6629 | else | |
6630 | $as_echo "$as_me: failed program was:" >&5 | |
6631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6632 | ||
6633 | ||
6634 | fi | |
6635 | ||
6636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6637 | else | |
6638 | cat >conftest.$ac_ext <<_ACEOF | |
6639 | /* confdefs.h. */ | |
6640 | _ACEOF | |
6641 | cat confdefs.h >>conftest.$ac_ext | |
6642 | cat >>conftest.$ac_ext <<_ACEOF | |
6643 | /* end confdefs.h. */ | |
6644 | $ac_includes_default | |
6645 | int | |
6646 | main () | |
6647 | { | |
6648 | ||
6649 | /* Are we little or big endian? From Harbison&Steele. */ | |
6650 | union | |
6651 | { | |
6652 | long int l; | |
6653 | char c[sizeof (long int)]; | |
6654 | } u; | |
6655 | u.l = 1; | |
6656 | return u.c[sizeof (long int) - 1] == 1; | |
6657 | ||
6658 | ; | |
6659 | return 0; | |
6660 | } | |
6661 | _ACEOF | |
6662 | rm -f conftest$ac_exeext | |
6663 | if { (ac_try="$ac_link" | |
6664 | case "(($ac_try" in | |
6665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6666 | *) ac_try_echo=$ac_try;; | |
6667 | esac | |
6668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6669 | $as_echo "$ac_try_echo") >&5 | |
6670 | (eval "$ac_link") 2>&5 | |
6671 | ac_status=$? | |
6672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6674 | { (case "(($ac_try" in | |
6675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6676 | *) ac_try_echo=$ac_try;; | |
6677 | esac | |
6678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6679 | $as_echo "$ac_try_echo") >&5 | |
6680 | (eval "$ac_try") 2>&5 | |
6681 | ac_status=$? | |
6682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6683 | (exit $ac_status); }; }; then | |
6684 | ac_cv_c_bigendian=no | |
6685 | else | |
6686 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6687 | $as_echo "$as_me: failed program was:" >&5 | |
6688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6689 | ||
6690 | ( exit $ac_status ) | |
6691 | ac_cv_c_bigendian=yes | |
6692 | fi | |
6693 | rm -rf conftest.dSYM | |
6694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6695 | fi | |
6696 | ||
6697 | ||
6698 | fi | |
6699 | fi | |
6700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
6701 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6702 | case $ac_cv_c_bigendian in #( | |
6703 | yes) | |
6704 | cat >>confdefs.h <<\_ACEOF | |
f73dda09 | 6705 | #define WORDS_BIGENDIAN 1 |
b80f6443 | 6706 | _ACEOF |
3185942a JA |
6707 | ;; #( |
6708 | no) | |
6709 | ;; #( | |
6710 | universal) | |
6711 | ||
6712 | cat >>confdefs.h <<\_ACEOF | |
6713 | #define AC_APPLE_UNIVERSAL_BUILD 1 | |
6714 | _ACEOF | |
6715 | ||
6716 | ;; #( | |
6717 | *) | |
6718 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
6719 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
6720 | $as_echo "$as_me: error: unknown endianness | |
6721 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
b80f6443 | 6722 | { (exit 1); exit 1; }; } ;; |
3185942a | 6723 | esac |
b80f6443 | 6724 | |
3185942a JA |
6725 | { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 |
6726 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | |
b80f6443 | 6727 | if test "${ac_cv_c_stringize+set}" = set; then |
3185942a | 6728 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6729 | else |
f73dda09 | 6730 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6731 | /* confdefs.h. */ |
6732 | _ACEOF | |
6733 | cat confdefs.h >>conftest.$ac_ext | |
6734 | cat >>conftest.$ac_ext <<_ACEOF | |
6735 | /* end confdefs.h. */ | |
f73dda09 | 6736 | #define x(y) #y |
ccc6cda3 | 6737 | |
f73dda09 JA |
6738 | char *s = x(teststring); |
6739 | _ACEOF | |
6740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 6741 | $EGREP "#teststring" >/dev/null 2>&1; then |
f73dda09 | 6742 | ac_cv_c_stringize=no |
ccc6cda3 | 6743 | else |
f73dda09 | 6744 | ac_cv_c_stringize=yes |
ccc6cda3 | 6745 | fi |
f73dda09 | 6746 | rm -f conftest* |
ccc6cda3 JA |
6747 | |
6748 | fi | |
3185942a JA |
6749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 |
6750 | $as_echo "$ac_cv_c_stringize" >&6; } | |
f73dda09 | 6751 | if test $ac_cv_c_stringize = yes; then |
ccc6cda3 | 6752 | |
b80f6443 | 6753 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6754 | #define HAVE_STRINGIZE 1 |
b80f6443 | 6755 | _ACEOF |
ccc6cda3 JA |
6756 | |
6757 | fi | |
6758 | ||
3185942a JA |
6759 | |
6760 | ||
6761 | { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 | |
6762 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | |
6763 | if test "${ac_cv_type_long_double_wider+set}" = set; then | |
6764 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 6765 | else |
f73dda09 | 6766 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6767 | /* confdefs.h. */ |
6768 | _ACEOF | |
6769 | cat confdefs.h >>conftest.$ac_ext | |
6770 | cat >>conftest.$ac_ext <<_ACEOF | |
6771 | /* end confdefs.h. */ | |
b80f6443 | 6772 | #include <float.h> |
3185942a JA |
6773 | long double const a[] = |
6774 | { | |
6775 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | |
6776 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | |
6777 | }; | |
6778 | long double | |
6779 | f (long double x) | |
6780 | { | |
6781 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | |
6782 | + (x ? f (x) : 'c')); | |
6783 | } | |
6784 | ||
f73dda09 JA |
6785 | int |
6786 | main () | |
6787 | { | |
3185942a JA |
6788 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
6789 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | |
6790 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | |
6791 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | |
6792 | && (int) LDBL_EPSILON == 0 | |
6793 | )]; | |
b80f6443 JA |
6794 | test_array [0] = 0 |
6795 | ||
6796 | ; | |
6797 | return 0; | |
ccc6cda3 | 6798 | } |
f73dda09 | 6799 | _ACEOF |
b80f6443 | 6800 | rm -f conftest.$ac_objext |
3185942a JA |
6801 | if { (ac_try="$ac_compile" |
6802 | case "(($ac_try" in | |
6803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6804 | *) ac_try_echo=$ac_try;; | |
6805 | esac | |
6806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6807 | $as_echo "$ac_try_echo") >&5 | |
6808 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6809 | ac_status=$? |
0628567a JA |
6810 | grep -v '^ *+' conftest.er1 >conftest.err |
6811 | rm -f conftest.er1 | |
6812 | cat conftest.err >&5 | |
3185942a JA |
6813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6814 | (exit $ac_status); } && { | |
6815 | test -z "$ac_c_werror_flag" || | |
6816 | test ! -s conftest.err | |
6817 | } && test -s conftest.$ac_objext; then | |
6818 | ac_cv_type_long_double_wider=yes | |
ccc6cda3 | 6819 | else |
3185942a | 6820 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6821 | sed 's/^/| /' conftest.$ac_ext >&5 |
6822 | ||
3185942a | 6823 | ac_cv_type_long_double_wider=no |
f73dda09 | 6824 | fi |
3185942a JA |
6825 | |
6826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6827 | fi |
3185942a JA |
6828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 |
6829 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | |
6830 | if test $ac_cv_type_long_double_wider = yes; then | |
6831 | ||
6832 | cat >>confdefs.h <<\_ACEOF | |
6833 | #define HAVE_LONG_DOUBLE_WIDER 1 | |
6834 | _ACEOF | |
6835 | ||
6836 | fi | |
6837 | ||
6838 | ac_cv_c_long_double=$ac_cv_type_long_double_wider | |
6839 | if test $ac_cv_c_long_double = yes; then | |
ccc6cda3 | 6840 | |
b80f6443 | 6841 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6842 | #define HAVE_LONG_DOUBLE 1 |
b80f6443 | 6843 | _ACEOF |
ccc6cda3 | 6844 | |
3185942a | 6845 | fi |
ccc6cda3 | 6846 | |
3185942a JA |
6847 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
6848 | $as_echo_n "checking for function prototypes... " >&6; } | |
6849 | if test "$ac_cv_prog_cc_c89" != no; then | |
6850 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
6851 | $as_echo "yes" >&6; } | |
ccc6cda3 | 6852 | |
b80f6443 | 6853 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6854 | #define PROTOTYPES 1 |
f73dda09 | 6855 | _ACEOF |
ccc6cda3 | 6856 | |
f73dda09 | 6857 | |
b80f6443 JA |
6858 | cat >>confdefs.h <<\_ACEOF |
6859 | #define __PROTOTYPES 1 | |
f73dda09 | 6860 | _ACEOF |
f73dda09 | 6861 | |
f73dda09 | 6862 | else |
3185942a JA |
6863 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6864 | $as_echo "no" >&6; } | |
f73dda09 | 6865 | fi |
ccc6cda3 | 6866 | |
ccc6cda3 | 6867 | |
3185942a JA |
6868 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
6869 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
f73dda09 | 6870 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
3185942a | 6871 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 6872 | else |
f73dda09 | 6873 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
6874 | /* confdefs.h. */ |
6875 | _ACEOF | |
6876 | cat confdefs.h >>conftest.$ac_ext | |
6877 | cat >>conftest.$ac_ext <<_ACEOF | |
6878 | /* end confdefs.h. */ | |
f73dda09 JA |
6879 | $ac_includes_default |
6880 | int | |
ccc6cda3 JA |
6881 | main () |
6882 | { | |
b80f6443 JA |
6883 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
6884 | test_array [0] = 0 | |
6885 | ||
f73dda09 JA |
6886 | ; |
6887 | return 0; | |
ccc6cda3 | 6888 | } |
f73dda09 JA |
6889 | _ACEOF |
6890 | rm -f conftest.$ac_objext | |
3185942a JA |
6891 | if { (ac_try="$ac_compile" |
6892 | case "(($ac_try" in | |
6893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6894 | *) ac_try_echo=$ac_try;; | |
6895 | esac | |
6896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6897 | $as_echo "$ac_try_echo") >&5 | |
6898 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 6899 | ac_status=$? |
0628567a JA |
6900 | grep -v '^ *+' conftest.er1 >conftest.err |
6901 | rm -f conftest.er1 | |
6902 | cat conftest.err >&5 | |
3185942a JA |
6903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6904 | (exit $ac_status); } && { | |
6905 | test -z "$ac_c_werror_flag" || | |
6906 | test ! -s conftest.err | |
6907 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 6908 | ac_cv_c_char_unsigned=no |
ccc6cda3 | 6909 | else |
3185942a | 6910 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
6911 | sed 's/^/| /' conftest.$ac_ext >&5 |
6912 | ||
3185942a | 6913 | ac_cv_c_char_unsigned=yes |
ccc6cda3 | 6914 | fi |
3185942a JA |
6915 | |
6916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 6917 | fi |
3185942a JA |
6918 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
6919 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
f73dda09 | 6920 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
b80f6443 | 6921 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 6922 | #define __CHAR_UNSIGNED__ 1 |
b80f6443 | 6923 | _ACEOF |
ccc6cda3 | 6924 | |
ccc6cda3 JA |
6925 | fi |
6926 | ||
17345e5a JA |
6927 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
6928 | $as_echo_n "checking for working volatile... " >&6; } | |
6929 | if test "${ac_cv_c_volatile+set}" = set; then | |
6930 | $as_echo_n "(cached) " >&6 | |
6931 | else | |
6932 | cat >conftest.$ac_ext <<_ACEOF | |
6933 | /* confdefs.h. */ | |
6934 | _ACEOF | |
6935 | cat confdefs.h >>conftest.$ac_ext | |
6936 | cat >>conftest.$ac_ext <<_ACEOF | |
6937 | /* end confdefs.h. */ | |
6938 | ||
6939 | int | |
6940 | main () | |
6941 | { | |
6942 | ||
6943 | volatile int x; | |
6944 | int * volatile y = (int *) 0; | |
6945 | return !x && !y; | |
6946 | ; | |
6947 | return 0; | |
6948 | } | |
6949 | _ACEOF | |
6950 | rm -f conftest.$ac_objext | |
6951 | if { (ac_try="$ac_compile" | |
6952 | case "(($ac_try" in | |
6953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6954 | *) ac_try_echo=$ac_try;; | |
6955 | esac | |
6956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6957 | $as_echo "$ac_try_echo") >&5 | |
6958 | (eval "$ac_compile") 2>conftest.er1 | |
6959 | ac_status=$? | |
6960 | grep -v '^ *+' conftest.er1 >conftest.err | |
6961 | rm -f conftest.er1 | |
6962 | cat conftest.err >&5 | |
6963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6964 | (exit $ac_status); } && { | |
6965 | test -z "$ac_c_werror_flag" || | |
6966 | test ! -s conftest.err | |
6967 | } && test -s conftest.$ac_objext; then | |
6968 | ac_cv_c_volatile=yes | |
6969 | else | |
6970 | $as_echo "$as_me: failed program was:" >&5 | |
6971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6972 | ||
6973 | ac_cv_c_volatile=no | |
6974 | fi | |
6975 | ||
6976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6977 | fi | |
6978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 | |
6979 | $as_echo "$ac_cv_c_volatile" >&6; } | |
6980 | if test $ac_cv_c_volatile = no; then | |
6981 | ||
6982 | cat >>confdefs.h <<\_ACEOF | |
6983 | #define volatile /**/ | |
6984 | _ACEOF | |
6985 | ||
6986 | fi | |
6987 | ||
6988 | { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 | |
6989 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
6990 | if test "${ac_cv_c_restrict+set}" = set; then | |
6991 | $as_echo_n "(cached) " >&6 | |
6992 | else | |
6993 | ac_cv_c_restrict=no | |
6994 | # The order here caters to the fact that C++ does not require restrict. | |
6995 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
6996 | cat >conftest.$ac_ext <<_ACEOF | |
6997 | /* confdefs.h. */ | |
6998 | _ACEOF | |
6999 | cat confdefs.h >>conftest.$ac_ext | |
7000 | cat >>conftest.$ac_ext <<_ACEOF | |
7001 | /* end confdefs.h. */ | |
7002 | typedef int * int_ptr; | |
7003 | int foo (int_ptr $ac_kw ip) { | |
7004 | return ip[0]; | |
7005 | } | |
7006 | int | |
7007 | main () | |
7008 | { | |
7009 | int s[1]; | |
7010 | int * $ac_kw t = s; | |
7011 | t[0] = 0; | |
7012 | return foo(t) | |
7013 | ; | |
7014 | return 0; | |
7015 | } | |
7016 | _ACEOF | |
7017 | rm -f conftest.$ac_objext | |
7018 | if { (ac_try="$ac_compile" | |
7019 | case "(($ac_try" in | |
7020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7021 | *) ac_try_echo=$ac_try;; | |
7022 | esac | |
7023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7024 | $as_echo "$ac_try_echo") >&5 | |
7025 | (eval "$ac_compile") 2>conftest.er1 | |
7026 | ac_status=$? | |
7027 | grep -v '^ *+' conftest.er1 >conftest.err | |
7028 | rm -f conftest.er1 | |
7029 | cat conftest.err >&5 | |
7030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7031 | (exit $ac_status); } && { | |
7032 | test -z "$ac_c_werror_flag" || | |
7033 | test ! -s conftest.err | |
7034 | } && test -s conftest.$ac_objext; then | |
7035 | ac_cv_c_restrict=$ac_kw | |
7036 | else | |
7037 | $as_echo "$as_me: failed program was:" >&5 | |
7038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7039 | ||
7040 | ||
7041 | fi | |
7042 | ||
7043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7044 | test "$ac_cv_c_restrict" != no && break | |
7045 | done | |
7046 | ||
7047 | fi | |
7048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
7049 | $as_echo "$ac_cv_c_restrict" >&6; } | |
7050 | ||
7051 | ||
7052 | case $ac_cv_c_restrict in | |
7053 | restrict) ;; | |
7054 | no) cat >>confdefs.h <<\_ACEOF | |
7055 | #define restrict /**/ | |
7056 | _ACEOF | |
7057 | ;; | |
7058 | *) cat >>confdefs.h <<_ACEOF | |
7059 | #define restrict $ac_cv_c_restrict | |
7060 | _ACEOF | |
7061 | ;; | |
7062 | esac | |
7063 | ||
ccc6cda3 | 7064 | |
b80f6443 JA |
7065 | |
7066 | MKINSTALLDIRS= | |
7067 | if test -n "$ac_aux_dir"; then | |
7068 | case "$ac_aux_dir" in | |
7069 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
7070 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
7071 | esac | |
7072 | fi | |
7073 | if test -z "$MKINSTALLDIRS"; then | |
7074 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7075 | fi | |
7076 | ||
7077 | ||
7078 | ||
3185942a JA |
7079 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7080 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7081 | # Check whether --enable-nls was given. | |
b80f6443 | 7082 | if test "${enable_nls+set}" = set; then |
3185942a | 7083 | enableval=$enable_nls; USE_NLS=$enableval |
ccc6cda3 | 7084 | else |
b80f6443 | 7085 | USE_NLS=yes |
3185942a JA |
7086 | fi |
7087 | ||
7088 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7089 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 JA |
7090 | |
7091 | ||
7092 | ||
7093 | ||
7094 | ||
7095 | ||
7096 | # Prepare PATH_SEPARATOR. | |
7097 | # The user is always right. | |
7098 | if test "${PATH_SEPARATOR+set}" != set; then | |
7099 | echo "#! /bin/sh" >conf$$.sh | |
7100 | echo "exit 0" >>conf$$.sh | |
7101 | chmod +x conf$$.sh | |
7102 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7103 | PATH_SEPARATOR=';' | |
7104 | else | |
7105 | PATH_SEPARATOR=: | |
7106 | fi | |
7107 | rm -f conf$$.sh | |
ccc6cda3 | 7108 | fi |
ccc6cda3 | 7109 | |
b80f6443 JA |
7110 | # Find out how to test for executable files. Don't use a zero-byte file, |
7111 | # as systems may use methods other than mode bits to determine executability. | |
7112 | cat >conf$$.file <<_ASEOF | |
7113 | #! /bin/sh | |
7114 | exit 0 | |
7115 | _ASEOF | |
7116 | chmod +x conf$$.file | |
7117 | if test -x conf$$.file >/dev/null 2>&1; then | |
7118 | ac_executable_p="test -x" | |
7119 | else | |
7120 | ac_executable_p="test -f" | |
f73dda09 | 7121 | fi |
b80f6443 | 7122 | rm -f conf$$.file |
ccc6cda3 | 7123 | |
b80f6443 JA |
7124 | # Extract the first word of "msgfmt", so it can be a program name with args. |
7125 | set dummy msgfmt; ac_word=$2 | |
3185942a JA |
7126 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7127 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7128 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
3185942a | 7129 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7130 | else |
b80f6443 JA |
7131 | case "$MSGFMT" in |
7132 | [\\/]* | ?:[\\/]*) | |
7133 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7134 | ;; | |
7135 | *) | |
7136 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7137 | for ac_dir in $PATH; do | |
7138 | IFS="$ac_save_IFS" | |
7139 | test -z "$ac_dir" && ac_dir=. | |
7140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7141 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7142 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
7143 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7144 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7145 | break 2 | |
7146 | fi | |
7147 | fi | |
7148 | done | |
7149 | done | |
7150 | IFS="$ac_save_IFS" | |
7151 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7152 | ;; | |
7153 | esac | |
7154 | fi | |
7155 | MSGFMT="$ac_cv_path_MSGFMT" | |
7156 | if test "$MSGFMT" != ":"; then | |
3185942a JA |
7157 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7158 | $as_echo "$MSGFMT" >&6; } | |
f73dda09 | 7159 | else |
3185942a JA |
7160 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7161 | $as_echo "no" >&6; } | |
f73dda09 | 7162 | fi |
b80f6443 JA |
7163 | |
7164 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7165 | set dummy gmsgfmt; ac_word=$2 | |
3185942a JA |
7166 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7167 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7168 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
3185942a | 7169 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
7170 | else |
7171 | case $GMSGFMT in | |
7172 | [\\/]* | ?:[\\/]*) | |
7173 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7174 | ;; | |
7175 | *) | |
7176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7177 | for as_dir in $PATH | |
7178 | do | |
7179 | IFS=$as_save_IFS | |
7180 | test -z "$as_dir" && as_dir=. | |
7181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 7182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 7183 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
3185942a | 7184 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
7185 | break 2 |
7186 | fi | |
7187 | done | |
7188 | done | |
3185942a | 7189 | IFS=$as_save_IFS |
b80f6443 JA |
7190 | |
7191 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7192 | ;; | |
7193 | esac | |
7194 | fi | |
7195 | GMSGFMT=$ac_cv_path_GMSGFMT | |
b80f6443 | 7196 | if test -n "$GMSGFMT"; then |
3185942a JA |
7197 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7198 | $as_echo "$GMSGFMT" >&6; } | |
b80f6443 | 7199 | else |
3185942a JA |
7200 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7201 | $as_echo "no" >&6; } | |
f73dda09 | 7202 | fi |
b80f6443 JA |
7203 | |
7204 | ||
7205 | ||
3185942a | 7206 | |
b80f6443 JA |
7207 | # Prepare PATH_SEPARATOR. |
7208 | # The user is always right. | |
7209 | if test "${PATH_SEPARATOR+set}" != set; then | |
7210 | echo "#! /bin/sh" >conf$$.sh | |
7211 | echo "exit 0" >>conf$$.sh | |
7212 | chmod +x conf$$.sh | |
7213 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7214 | PATH_SEPARATOR=';' | |
7215 | else | |
7216 | PATH_SEPARATOR=: | |
7217 | fi | |
7218 | rm -f conf$$.sh | |
f73dda09 | 7219 | fi |
ccc6cda3 | 7220 | |
b80f6443 JA |
7221 | # Find out how to test for executable files. Don't use a zero-byte file, |
7222 | # as systems may use methods other than mode bits to determine executability. | |
7223 | cat >conf$$.file <<_ASEOF | |
7224 | #! /bin/sh | |
7225 | exit 0 | |
7226 | _ASEOF | |
7227 | chmod +x conf$$.file | |
7228 | if test -x conf$$.file >/dev/null 2>&1; then | |
7229 | ac_executable_p="test -x" | |
ccc6cda3 | 7230 | else |
b80f6443 JA |
7231 | ac_executable_p="test -f" |
7232 | fi | |
7233 | rm -f conf$$.file | |
7234 | ||
7235 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7236 | set dummy xgettext; ac_word=$2 | |
3185942a JA |
7237 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7238 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7239 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
3185942a | 7240 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7241 | else |
b80f6443 JA |
7242 | case "$XGETTEXT" in |
7243 | [\\/]* | ?:[\\/]*) | |
7244 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7245 | ;; | |
7246 | *) | |
7247 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7248 | for ac_dir in $PATH; do | |
7249 | IFS="$ac_save_IFS" | |
7250 | test -z "$ac_dir" && ac_dir=. | |
7251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7252 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7253 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7254 | (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 | |
7255 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7256 | break 2 | |
7257 | fi | |
7258 | fi | |
7259 | done | |
7260 | done | |
7261 | IFS="$ac_save_IFS" | |
7262 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7263 | ;; | |
7264 | esac | |
7265 | fi | |
7266 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7267 | if test "$XGETTEXT" != ":"; then | |
3185942a JA |
7268 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7269 | $as_echo "$XGETTEXT" >&6; } | |
b80f6443 | 7270 | else |
3185942a JA |
7271 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7272 | $as_echo "no" >&6; } | |
b80f6443 | 7273 | fi |
f73dda09 | 7274 | |
b80f6443 JA |
7275 | rm -f messages.po |
7276 | ||
7277 | ||
7278 | # Prepare PATH_SEPARATOR. | |
7279 | # The user is always right. | |
7280 | if test "${PATH_SEPARATOR+set}" != set; then | |
7281 | echo "#! /bin/sh" >conf$$.sh | |
7282 | echo "exit 0" >>conf$$.sh | |
7283 | chmod +x conf$$.sh | |
7284 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7285 | PATH_SEPARATOR=';' | |
7286 | else | |
7287 | PATH_SEPARATOR=: | |
7288 | fi | |
7289 | rm -f conf$$.sh | |
7290 | fi | |
7291 | ||
7292 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7293 | # as systems may use methods other than mode bits to determine executability. | |
7294 | cat >conf$$.file <<_ASEOF | |
7295 | #! /bin/sh | |
7296 | exit 0 | |
7297 | _ASEOF | |
7298 | chmod +x conf$$.file | |
7299 | if test -x conf$$.file >/dev/null 2>&1; then | |
7300 | ac_executable_p="test -x" | |
7301 | else | |
7302 | ac_executable_p="test -f" | |
7303 | fi | |
7304 | rm -f conf$$.file | |
7305 | ||
7306 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7307 | set dummy msgmerge; ac_word=$2 | |
3185942a JA |
7308 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7309 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 7310 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
3185942a | 7311 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
7312 | else |
7313 | case "$MSGMERGE" in | |
7314 | [\\/]* | ?:[\\/]*) | |
7315 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7316 | ;; | |
7317 | *) | |
7318 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7319 | for ac_dir in $PATH; do | |
7320 | IFS="$ac_save_IFS" | |
7321 | test -z "$ac_dir" && ac_dir=. | |
7322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7323 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7324 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
7325 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7326 | break 2 | |
7327 | fi | |
7328 | fi | |
7329 | done | |
7330 | done | |
7331 | IFS="$ac_save_IFS" | |
7332 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7333 | ;; | |
7334 | esac | |
7335 | fi | |
7336 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7337 | if test "$MSGMERGE" != ":"; then | |
3185942a JA |
7338 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
7339 | $as_echo "$MSGMERGE" >&6; } | |
b80f6443 | 7340 | else |
3185942a JA |
7341 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7342 | $as_echo "no" >&6; } | |
b80f6443 JA |
7343 | fi |
7344 | ||
7345 | ||
7346 | if test "$GMSGFMT" != ":"; then | |
7347 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
7348 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7349 | : ; | |
7350 | else | |
7351 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3185942a JA |
7352 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
7353 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
b80f6443 JA |
7354 | GMSGFMT=":" |
7355 | fi | |
7356 | fi | |
7357 | ||
7358 | if test "$XGETTEXT" != ":"; then | |
7359 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7360 | (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 | |
7361 | : ; | |
7362 | else | |
3185942a JA |
7363 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
7364 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
b80f6443 JA |
7365 | XGETTEXT=":" |
7366 | fi | |
7367 | rm -f messages.po | |
7368 | fi | |
7369 | ||
3185942a | 7370 | ac_config_commands="$ac_config_commands default-1" |
b80f6443 JA |
7371 | |
7372 | ||
3185942a JA |
7373 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
7374 | $as_echo_n "checking for off_t... " >&6; } | |
b80f6443 | 7375 | if test "${ac_cv_type_off_t+set}" = set; then |
3185942a | 7376 | $as_echo_n "(cached) " >&6 |
b80f6443 | 7377 | else |
3185942a JA |
7378 | ac_cv_type_off_t=no |
7379 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7380 | /* confdefs.h. */ |
7381 | _ACEOF | |
7382 | cat confdefs.h >>conftest.$ac_ext | |
7383 | cat >>conftest.$ac_ext <<_ACEOF | |
7384 | /* end confdefs.h. */ | |
b80f6443 | 7385 | $ac_includes_default |
f73dda09 JA |
7386 | int |
7387 | main () | |
7388 | { | |
b80f6443 | 7389 | if (sizeof (off_t)) |
3185942a | 7390 | return 0; |
f73dda09 JA |
7391 | ; |
7392 | return 0; | |
7393 | } | |
7394 | _ACEOF | |
b80f6443 | 7395 | rm -f conftest.$ac_objext |
3185942a JA |
7396 | if { (ac_try="$ac_compile" |
7397 | case "(($ac_try" in | |
7398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7399 | *) ac_try_echo=$ac_try;; | |
7400 | esac | |
7401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7402 | $as_echo "$ac_try_echo") >&5 | |
7403 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7404 | ac_status=$? |
0628567a JA |
7405 | grep -v '^ *+' conftest.er1 >conftest.err |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
3185942a JA |
7408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7409 | (exit $ac_status); } && { | |
7410 | test -z "$ac_c_werror_flag" || | |
7411 | test ! -s conftest.err | |
7412 | } && test -s conftest.$ac_objext; then | |
7413 | cat >conftest.$ac_ext <<_ACEOF | |
7414 | /* confdefs.h. */ | |
7415 | _ACEOF | |
7416 | cat confdefs.h >>conftest.$ac_ext | |
7417 | cat >>conftest.$ac_ext <<_ACEOF | |
7418 | /* end confdefs.h. */ | |
7419 | $ac_includes_default | |
7420 | int | |
7421 | main () | |
7422 | { | |
7423 | if (sizeof ((off_t))) | |
7424 | return 0; | |
7425 | ; | |
7426 | return 0; | |
7427 | } | |
7428 | _ACEOF | |
7429 | rm -f conftest.$ac_objext | |
7430 | if { (ac_try="$ac_compile" | |
7431 | case "(($ac_try" in | |
7432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7433 | *) ac_try_echo=$ac_try;; | |
7434 | esac | |
7435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7436 | $as_echo "$ac_try_echo") >&5 | |
7437 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7438 | ac_status=$? |
3185942a JA |
7439 | grep -v '^ *+' conftest.er1 >conftest.err |
7440 | rm -f conftest.er1 | |
7441 | cat conftest.err >&5 | |
7442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7443 | (exit $ac_status); } && { | |
7444 | test -z "$ac_c_werror_flag" || | |
7445 | test ! -s conftest.err | |
7446 | } && test -s conftest.$ac_objext; then | |
7447 | : | |
7448 | else | |
7449 | $as_echo "$as_me: failed program was:" >&5 | |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7451 | ||
7452 | ac_cv_type_off_t=yes | |
7453 | fi | |
7454 | ||
7455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 7456 | else |
3185942a | 7457 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7458 | sed 's/^/| /' conftest.$ac_ext >&5 |
7459 | ||
3185942a | 7460 | |
f73dda09 | 7461 | fi |
3185942a JA |
7462 | |
7463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 7464 | fi |
3185942a JA |
7465 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
7466 | $as_echo "$ac_cv_type_off_t" >&6; } | |
7467 | if test "x$ac_cv_type_off_t" = x""yes; then | |
b80f6443 JA |
7468 | : |
7469 | else | |
7470 | ||
7471 | cat >>confdefs.h <<_ACEOF | |
3185942a | 7472 | #define off_t long int |
b80f6443 | 7473 | _ACEOF |
ccc6cda3 | 7474 | |
f73dda09 | 7475 | fi |
ccc6cda3 | 7476 | |
3185942a JA |
7477 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
7478 | $as_echo_n "checking for size_t... " >&6; } | |
b80f6443 | 7479 | if test "${ac_cv_type_size_t+set}" = set; then |
3185942a | 7480 | $as_echo_n "(cached) " >&6 |
f73dda09 | 7481 | else |
3185942a JA |
7482 | ac_cv_type_size_t=no |
7483 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7484 | /* confdefs.h. */ |
7485 | _ACEOF | |
7486 | cat confdefs.h >>conftest.$ac_ext | |
7487 | cat >>conftest.$ac_ext <<_ACEOF | |
7488 | /* end confdefs.h. */ | |
b80f6443 | 7489 | $ac_includes_default |
f73dda09 JA |
7490 | int |
7491 | main () | |
7492 | { | |
b80f6443 | 7493 | if (sizeof (size_t)) |
3185942a | 7494 | return 0; |
f73dda09 JA |
7495 | ; |
7496 | return 0; | |
7497 | } | |
7498 | _ACEOF | |
7499 | rm -f conftest.$ac_objext | |
3185942a JA |
7500 | if { (ac_try="$ac_compile" |
7501 | case "(($ac_try" in | |
7502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7503 | *) ac_try_echo=$ac_try;; | |
7504 | esac | |
7505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7506 | $as_echo "$ac_try_echo") >&5 | |
7507 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7508 | ac_status=$? |
0628567a JA |
7509 | grep -v '^ *+' conftest.er1 >conftest.err |
7510 | rm -f conftest.er1 | |
7511 | cat conftest.err >&5 | |
3185942a JA |
7512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7513 | (exit $ac_status); } && { | |
7514 | test -z "$ac_c_werror_flag" || | |
7515 | test ! -s conftest.err | |
7516 | } && test -s conftest.$ac_objext; then | |
7517 | cat >conftest.$ac_ext <<_ACEOF | |
7518 | /* confdefs.h. */ | |
7519 | _ACEOF | |
7520 | cat confdefs.h >>conftest.$ac_ext | |
7521 | cat >>conftest.$ac_ext <<_ACEOF | |
7522 | /* end confdefs.h. */ | |
7523 | $ac_includes_default | |
7524 | int | |
7525 | main () | |
7526 | { | |
7527 | if (sizeof ((size_t))) | |
7528 | return 0; | |
7529 | ; | |
7530 | return 0; | |
7531 | } | |
7532 | _ACEOF | |
7533 | rm -f conftest.$ac_objext | |
7534 | if { (ac_try="$ac_compile" | |
7535 | case "(($ac_try" in | |
7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7537 | *) ac_try_echo=$ac_try;; | |
7538 | esac | |
7539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7540 | $as_echo "$ac_try_echo") >&5 | |
7541 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7542 | ac_status=$? |
3185942a JA |
7543 | grep -v '^ *+' conftest.er1 >conftest.err |
7544 | rm -f conftest.er1 | |
7545 | cat conftest.err >&5 | |
7546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7547 | (exit $ac_status); } && { | |
7548 | test -z "$ac_c_werror_flag" || | |
7549 | test ! -s conftest.err | |
7550 | } && test -s conftest.$ac_objext; then | |
7551 | : | |
7552 | else | |
7553 | $as_echo "$as_me: failed program was:" >&5 | |
7554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7555 | ||
7556 | ac_cv_type_size_t=yes | |
7557 | fi | |
7558 | ||
7559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7560 | else |
3185942a | 7561 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7562 | sed 's/^/| /' conftest.$ac_ext >&5 |
7563 | ||
3185942a | 7564 | |
ccc6cda3 | 7565 | fi |
3185942a JA |
7566 | |
7567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7568 | fi |
3185942a JA |
7569 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
7570 | $as_echo "$ac_cv_type_size_t" >&6; } | |
7571 | if test "x$ac_cv_type_size_t" = x""yes; then | |
b80f6443 JA |
7572 | : |
7573 | else | |
ccc6cda3 | 7574 | |
b80f6443 | 7575 | cat >>confdefs.h <<_ACEOF |
3185942a | 7576 | #define size_t unsigned int |
b80f6443 | 7577 | _ACEOF |
ccc6cda3 | 7578 | |
ccc6cda3 JA |
7579 | fi |
7580 | ||
b80f6443 JA |
7581 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
7582 | # for constant arguments. Useless! | |
3185942a JA |
7583 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
7584 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b80f6443 | 7585 | if test "${ac_cv_working_alloca_h+set}" = set; then |
3185942a | 7586 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
7587 | else |
7588 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7589 | /* confdefs.h. */ |
7590 | _ACEOF | |
7591 | cat confdefs.h >>conftest.$ac_ext | |
7592 | cat >>conftest.$ac_ext <<_ACEOF | |
7593 | /* end confdefs.h. */ | |
b80f6443 JA |
7594 | #include <alloca.h> |
7595 | int | |
7596 | main () | |
7597 | { | |
7598 | char *p = (char *) alloca (2 * sizeof (int)); | |
3185942a | 7599 | if (p) return 0; |
b80f6443 JA |
7600 | ; |
7601 | return 0; | |
7602 | } | |
7603 | _ACEOF | |
7604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7605 | if { (ac_try="$ac_link" |
7606 | case "(($ac_try" in | |
7607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7608 | *) ac_try_echo=$ac_try;; | |
7609 | esac | |
7610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7611 | $as_echo "$ac_try_echo") >&5 | |
7612 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7613 | ac_status=$? |
0628567a JA |
7614 | grep -v '^ *+' conftest.er1 >conftest.err |
7615 | rm -f conftest.er1 | |
7616 | cat conftest.err >&5 | |
3185942a JA |
7617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7618 | (exit $ac_status); } && { | |
7619 | test -z "$ac_c_werror_flag" || | |
7620 | test ! -s conftest.err | |
7621 | } && test -s conftest$ac_exeext && { | |
7622 | test "$cross_compiling" = yes || | |
7623 | $as_test_x conftest$ac_exeext | |
7624 | }; then | |
b80f6443 | 7625 | ac_cv_working_alloca_h=yes |
ccc6cda3 | 7626 | else |
3185942a | 7627 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7628 | sed 's/^/| /' conftest.$ac_ext >&5 |
7629 | ||
3185942a | 7630 | ac_cv_working_alloca_h=no |
ccc6cda3 | 7631 | fi |
3185942a JA |
7632 | |
7633 | rm -rf conftest.dSYM | |
7634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7635 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 7636 | fi |
3185942a JA |
7637 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
7638 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b80f6443 JA |
7639 | if test $ac_cv_working_alloca_h = yes; then |
7640 | ||
7641 | cat >>confdefs.h <<\_ACEOF | |
7642 | #define HAVE_ALLOCA_H 1 | |
7643 | _ACEOF | |
ccc6cda3 JA |
7644 | |
7645 | fi | |
7646 | ||
3185942a JA |
7647 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
7648 | $as_echo_n "checking for alloca... " >&6; } | |
b80f6443 | 7649 | if test "${ac_cv_func_alloca_works+set}" = set; then |
3185942a | 7650 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
7651 | else |
7652 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7653 | /* confdefs.h. */ |
7654 | _ACEOF | |
7655 | cat confdefs.h >>conftest.$ac_ext | |
7656 | cat >>conftest.$ac_ext <<_ACEOF | |
7657 | /* end confdefs.h. */ | |
f73dda09 JA |
7658 | #ifdef __GNUC__ |
7659 | # define alloca __builtin_alloca | |
ccc6cda3 | 7660 | #else |
f73dda09 JA |
7661 | # ifdef _MSC_VER |
7662 | # include <malloc.h> | |
7663 | # define alloca _alloca | |
7664 | # else | |
3185942a | 7665 | # ifdef HAVE_ALLOCA_H |
f73dda09 JA |
7666 | # include <alloca.h> |
7667 | # else | |
7668 | # ifdef _AIX | |
7669 | #pragma alloca | |
7670 | # else | |
7671 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7672 | char *alloca (); | |
7673 | # endif | |
7674 | # endif | |
7675 | # endif | |
7676 | # endif | |
ccc6cda3 JA |
7677 | #endif |
7678 | ||
f73dda09 JA |
7679 | int |
7680 | main () | |
7681 | { | |
7682 | char *p = (char *) alloca (1); | |
3185942a | 7683 | if (p) return 0; |
f73dda09 JA |
7684 | ; |
7685 | return 0; | |
7686 | } | |
7687 | _ACEOF | |
7688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7689 | if { (ac_try="$ac_link" |
7690 | case "(($ac_try" in | |
7691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7692 | *) ac_try_echo=$ac_try;; | |
7693 | esac | |
7694 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7695 | $as_echo "$ac_try_echo") >&5 | |
7696 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7697 | ac_status=$? |
0628567a JA |
7698 | grep -v '^ *+' conftest.er1 >conftest.err |
7699 | rm -f conftest.er1 | |
7700 | cat conftest.err >&5 | |
3185942a JA |
7701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7702 | (exit $ac_status); } && { | |
7703 | test -z "$ac_c_werror_flag" || | |
7704 | test ! -s conftest.err | |
7705 | } && test -s conftest$ac_exeext && { | |
7706 | test "$cross_compiling" = yes || | |
7707 | $as_test_x conftest$ac_exeext | |
7708 | }; then | |
f73dda09 | 7709 | ac_cv_func_alloca_works=yes |
ccc6cda3 | 7710 | else |
3185942a | 7711 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7712 | sed 's/^/| /' conftest.$ac_ext >&5 |
7713 | ||
3185942a | 7714 | ac_cv_func_alloca_works=no |
ccc6cda3 | 7715 | fi |
3185942a JA |
7716 | |
7717 | rm -rf conftest.dSYM | |
7718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7719 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 7720 | fi |
3185942a JA |
7721 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
7722 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
f73dda09 JA |
7723 | |
7724 | if test $ac_cv_func_alloca_works = yes; then | |
ccc6cda3 | 7725 | |
b80f6443 | 7726 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 7727 | #define HAVE_ALLOCA 1 |
b80f6443 | 7728 | _ACEOF |
f73dda09 | 7729 | |
ccc6cda3 | 7730 | else |
f73dda09 JA |
7731 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
7732 | # that cause trouble. Some versions do not even contain alloca or | |
7733 | # contain a buggy version. If you still want to use their alloca, | |
7734 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
ccc6cda3 | 7735 | |
3185942a | 7736 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ccc6cda3 | 7737 | |
b80f6443 | 7738 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 7739 | #define C_ALLOCA 1 |
b80f6443 | 7740 | _ACEOF |
f73dda09 | 7741 | |
b80f6443 | 7742 | |
3185942a JA |
7743 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
7744 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
f73dda09 | 7745 | if test "${ac_cv_os_cray+set}" = set; then |
3185942a | 7746 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7747 | else |
f73dda09 | 7748 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7749 | /* confdefs.h. */ |
7750 | _ACEOF | |
7751 | cat confdefs.h >>conftest.$ac_ext | |
7752 | cat >>conftest.$ac_ext <<_ACEOF | |
7753 | /* end confdefs.h. */ | |
3185942a | 7754 | #if defined CRAY && ! defined CRAY2 |
f73dda09 JA |
7755 | webecray |
7756 | #else | |
7757 | wenotbecray | |
7758 | #endif | |
ccc6cda3 | 7759 | |
f73dda09 JA |
7760 | _ACEOF |
7761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 7762 | $EGREP "webecray" >/dev/null 2>&1; then |
f73dda09 | 7763 | ac_cv_os_cray=yes |
ccc6cda3 | 7764 | else |
f73dda09 | 7765 | ac_cv_os_cray=no |
ccc6cda3 JA |
7766 | fi |
7767 | rm -f conftest* | |
ccc6cda3 JA |
7768 | |
7769 | fi | |
3185942a JA |
7770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
7771 | $as_echo "$ac_cv_os_cray" >&6; } | |
f73dda09 JA |
7772 | if test $ac_cv_os_cray = yes; then |
7773 | for ac_func in _getb67 GETB67 getb67; do | |
3185942a JA |
7774 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7775 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7776 | $as_echo_n "checking for $ac_func... " >&6; } | |
7777 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
7778 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 7779 | else |
f73dda09 | 7780 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7781 | /* confdefs.h. */ |
7782 | _ACEOF | |
7783 | cat confdefs.h >>conftest.$ac_ext | |
7784 | cat >>conftest.$ac_ext <<_ACEOF | |
7785 | /* end confdefs.h. */ | |
7786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7788 | #define $ac_func innocuous_$ac_func | |
7789 | ||
ccc6cda3 | 7790 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
7791 | which can conflict with char $ac_func (); below. |
7792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7793 | <limits.h> exists even on freestanding compilers. */ | |
7794 | ||
7795 | #ifdef __STDC__ | |
7796 | # include <limits.h> | |
7797 | #else | |
7798 | # include <assert.h> | |
7799 | #endif | |
7800 | ||
7801 | #undef $ac_func | |
7802 | ||
3185942a JA |
7803 | /* Override any GCC internal prototype to avoid an error. |
7804 | Use char because int might match the return type of a GCC | |
7805 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
7806 | #ifdef __cplusplus |
7807 | extern "C" | |
7808 | #endif | |
f73dda09 | 7809 | char $ac_func (); |
ccc6cda3 JA |
7810 | /* The GNU C library defines this for functions which it implements |
7811 | to always fail with ENOSYS. Some functions are actually named | |
7812 | something starting with __ and the normal name is an alias. */ | |
3185942a | 7813 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ccc6cda3 | 7814 | choke me |
ccc6cda3 JA |
7815 | #endif |
7816 | ||
0628567a JA |
7817 | int |
7818 | main () | |
7819 | { | |
3185942a | 7820 | return $ac_func (); |
f73dda09 JA |
7821 | ; |
7822 | return 0; | |
7823 | } | |
7824 | _ACEOF | |
7825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
7826 | if { (ac_try="$ac_link" |
7827 | case "(($ac_try" in | |
7828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7829 | *) ac_try_echo=$ac_try;; | |
7830 | esac | |
7831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7832 | $as_echo "$ac_try_echo") >&5 | |
7833 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 7834 | ac_status=$? |
0628567a JA |
7835 | grep -v '^ *+' conftest.er1 >conftest.err |
7836 | rm -f conftest.er1 | |
7837 | cat conftest.err >&5 | |
3185942a JA |
7838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7839 | (exit $ac_status); } && { | |
7840 | test -z "$ac_c_werror_flag" || | |
7841 | test ! -s conftest.err | |
7842 | } && test -s conftest$ac_exeext && { | |
7843 | test "$cross_compiling" = yes || | |
7844 | $as_test_x conftest$ac_exeext | |
7845 | }; then | |
f73dda09 JA |
7846 | eval "$as_ac_var=yes" |
7847 | else | |
3185942a | 7848 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
7849 | sed 's/^/| /' conftest.$ac_ext >&5 |
7850 | ||
3185942a | 7851 | eval "$as_ac_var=no" |
f73dda09 | 7852 | fi |
3185942a JA |
7853 | |
7854 | rm -rf conftest.dSYM | |
7855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 7856 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 7857 | fi |
3185942a JA |
7858 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7859 | $as_echo "$as_val"'` | |
7860 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7861 | $as_echo "$ac_res" >&6; } | |
7862 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7863 | $as_echo "$as_val"'` | |
7864 | if test "x$as_val" = x""yes; then | |
f73dda09 | 7865 | |
b80f6443 | 7866 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 7867 | #define CRAY_STACKSEG_END $ac_func |
b80f6443 | 7868 | _ACEOF |
ccc6cda3 | 7869 | |
f73dda09 | 7870 | break |
ccc6cda3 | 7871 | fi |
ccc6cda3 | 7872 | |
f73dda09 | 7873 | done |
ccc6cda3 JA |
7874 | fi |
7875 | ||
3185942a JA |
7876 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
7877 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
f73dda09 | 7878 | if test "${ac_cv_c_stack_direction+set}" = set; then |
3185942a | 7879 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 7880 | else |
f73dda09 JA |
7881 | if test "$cross_compiling" = yes; then |
7882 | ac_cv_c_stack_direction=0 | |
7883 | else | |
7884 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
7885 | /* confdefs.h. */ |
7886 | _ACEOF | |
7887 | cat confdefs.h >>conftest.$ac_ext | |
7888 | cat >>conftest.$ac_ext <<_ACEOF | |
7889 | /* end confdefs.h. */ | |
3185942a | 7890 | $ac_includes_default |
f73dda09 JA |
7891 | int |
7892 | find_stack_direction () | |
7893 | { | |
7894 | static char *addr = 0; | |
7895 | auto char dummy; | |
7896 | if (addr == 0) | |
7897 | { | |
7898 | addr = &dummy; | |
7899 | return find_stack_direction (); | |
7900 | } | |
7901 | else | |
7902 | return (&dummy > addr) ? 1 : -1; | |
7903 | } | |
ccc6cda3 | 7904 | |
f73dda09 JA |
7905 | int |
7906 | main () | |
7907 | { | |
3185942a | 7908 | return find_stack_direction () < 0; |
f73dda09 JA |
7909 | } |
7910 | _ACEOF | |
7911 | rm -f conftest$ac_exeext | |
3185942a JA |
7912 | if { (ac_try="$ac_link" |
7913 | case "(($ac_try" in | |
7914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7915 | *) ac_try_echo=$ac_try;; | |
7916 | esac | |
7917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7918 | $as_echo "$ac_try_echo") >&5 | |
7919 | (eval "$ac_link") 2>&5 | |
f73dda09 | 7920 | ac_status=$? |
3185942a | 7921 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 7922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
7923 | { (case "(($ac_try" in |
7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7925 | *) ac_try_echo=$ac_try;; | |
7926 | esac | |
7927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7928 | $as_echo "$ac_try_echo") >&5 | |
7929 | (eval "$ac_try") 2>&5 | |
f73dda09 | 7930 | ac_status=$? |
3185942a | 7931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
7932 | (exit $ac_status); }; }; then |
7933 | ac_cv_c_stack_direction=1 | |
ccc6cda3 | 7934 | else |
3185942a JA |
7935 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7936 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
7937 | sed 's/^/| /' conftest.$ac_ext >&5 |
7938 | ||
b80f6443 | 7939 | ( exit $ac_status ) |
f73dda09 | 7940 | ac_cv_c_stack_direction=-1 |
ccc6cda3 | 7941 | fi |
3185942a JA |
7942 | rm -rf conftest.dSYM |
7943 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 7944 | fi |
3185942a JA |
7945 | |
7946 | ||
f73dda09 | 7947 | fi |
3185942a JA |
7948 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7949 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ccc6cda3 | 7950 | |
b80f6443 | 7951 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 7952 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b80f6443 JA |
7953 | _ACEOF |
7954 | ||
ccc6cda3 | 7955 | |
ccc6cda3 JA |
7956 | fi |
7957 | ||
b80f6443 JA |
7958 | |
7959 | ||
7960 | for ac_header in stdlib.h unistd.h | |
7961 | do | |
3185942a JA |
7962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7964 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7965 | $as_echo_n "checking for $ac_header... " >&6; } | |
7966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7967 | $as_echo_n "(cached) " >&6 | |
7968 | fi | |
7969 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7970 | $as_echo "$as_val"'` | |
7971 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7972 | $as_echo "$ac_res" >&6; } | |
ccc6cda3 | 7973 | else |
b80f6443 | 7974 | # Is the header compilable? |
3185942a JA |
7975 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7976 | $as_echo_n "checking $ac_header usability... " >&6; } | |
f73dda09 | 7977 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
7978 | /* confdefs.h. */ |
7979 | _ACEOF | |
7980 | cat confdefs.h >>conftest.$ac_ext | |
7981 | cat >>conftest.$ac_ext <<_ACEOF | |
7982 | /* end confdefs.h. */ | |
f73dda09 | 7983 | $ac_includes_default |
b80f6443 | 7984 | #include <$ac_header> |
f73dda09 JA |
7985 | _ACEOF |
7986 | rm -f conftest.$ac_objext | |
3185942a JA |
7987 | if { (ac_try="$ac_compile" |
7988 | case "(($ac_try" in | |
7989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7990 | *) ac_try_echo=$ac_try;; | |
7991 | esac | |
7992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7993 | $as_echo "$ac_try_echo") >&5 | |
7994 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 7995 | ac_status=$? |
0628567a JA |
7996 | grep -v '^ *+' conftest.er1 >conftest.err |
7997 | rm -f conftest.er1 | |
7998 | cat conftest.err >&5 | |
3185942a JA |
7999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8000 | (exit $ac_status); } && { | |
8001 | test -z "$ac_c_werror_flag" || | |
8002 | test ! -s conftest.err | |
8003 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8004 | ac_header_compiler=yes |
f73dda09 | 8005 | else |
3185942a | 8006 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
8008 | ||
3185942a | 8009 | ac_header_compiler=no |
f73dda09 | 8010 | fi |
3185942a JA |
8011 | |
8012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8013 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8014 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
8015 | |
8016 | # Is the header present? | |
3185942a JA |
8017 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8018 | $as_echo_n "checking $ac_header presence... " >&6; } | |
f73dda09 | 8019 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8020 | /* confdefs.h. */ |
8021 | _ACEOF | |
8022 | cat confdefs.h >>conftest.$ac_ext | |
8023 | cat >>conftest.$ac_ext <<_ACEOF | |
8024 | /* end confdefs.h. */ | |
b80f6443 JA |
8025 | #include <$ac_header> |
8026 | _ACEOF | |
3185942a JA |
8027 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8028 | case "(($ac_try" in | |
8029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8030 | *) ac_try_echo=$ac_try;; | |
8031 | esac | |
8032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8033 | $as_echo "$ac_try_echo") >&5 | |
8034 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 8035 | ac_status=$? |
0628567a | 8036 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
8037 | rm -f conftest.er1 |
8038 | cat conftest.err >&5 | |
3185942a JA |
8039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8040 | (exit $ac_status); } >/dev/null && { | |
8041 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8042 | test ! -s conftest.err | |
8043 | }; then | |
b80f6443 | 8044 | ac_header_preproc=yes |
f73dda09 | 8045 | else |
3185942a | 8046 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
8048 | ||
b80f6443 JA |
8049 | ac_header_preproc=no |
8050 | fi | |
3185942a | 8051 | |
b80f6443 | 8052 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
8053 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8054 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
8055 | |
8056 | # So? What about this header? | |
0628567a JA |
8057 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8058 | yes:no: ) | |
3185942a JA |
8059 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8060 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8061 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8062 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
8063 | ac_header_preproc=yes |
8064 | ;; | |
8065 | no:yes:* ) | |
3185942a JA |
8066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8067 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8069 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8071 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8073 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8074 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8075 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8076 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8077 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8078 | ( cat <<\_ASBOX | |
0628567a JA |
8079 | ## ------------------------------- ## |
8080 | ## Report this to bug-bash@gnu.org ## | |
8081 | ## ------------------------------- ## | |
8082 | _ASBOX | |
3185942a | 8083 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 8084 | ;; |
b80f6443 | 8085 | esac |
3185942a JA |
8086 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8087 | $as_echo_n "checking for $ac_header... " >&6; } | |
8088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8089 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 8090 | else |
0628567a | 8091 | eval "$as_ac_Header=\$ac_header_preproc" |
ccc6cda3 | 8092 | fi |
3185942a JA |
8093 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8094 | $as_echo "$as_val"'` | |
8095 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8096 | $as_echo "$ac_res" >&6; } | |
f73dda09 | 8097 | |
ccc6cda3 | 8098 | fi |
3185942a JA |
8099 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8100 | $as_echo "$as_val"'` | |
8101 | if test "x$as_val" = x""yes; then | |
b80f6443 | 8102 | cat >>confdefs.h <<_ACEOF |
3185942a | 8103 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 8104 | _ACEOF |
ccc6cda3 | 8105 | |
cce855bc | 8106 | fi |
ccc6cda3 | 8107 | |
b80f6443 JA |
8108 | done |
8109 | ||
8110 | ||
8111 | for ac_func in getpagesize | |
8112 | do | |
3185942a JA |
8113 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8114 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8115 | $as_echo_n "checking for $ac_func... " >&6; } | |
8116 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8117 | $as_echo_n "(cached) " >&6 | |
f73dda09 JA |
8118 | else |
8119 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8120 | /* confdefs.h. */ |
8121 | _ACEOF | |
8122 | cat confdefs.h >>conftest.$ac_ext | |
8123 | cat >>conftest.$ac_ext <<_ACEOF | |
8124 | /* end confdefs.h. */ | |
8125 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8126 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8127 | #define $ac_func innocuous_$ac_func | |
8128 | ||
f73dda09 | 8129 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
8130 | which can conflict with char $ac_func (); below. |
8131 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8132 | <limits.h> exists even on freestanding compilers. */ | |
8133 | ||
8134 | #ifdef __STDC__ | |
8135 | # include <limits.h> | |
8136 | #else | |
8137 | # include <assert.h> | |
8138 | #endif | |
8139 | ||
8140 | #undef $ac_func | |
8141 | ||
3185942a JA |
8142 | /* Override any GCC internal prototype to avoid an error. |
8143 | Use char because int might match the return type of a GCC | |
8144 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
8145 | #ifdef __cplusplus |
8146 | extern "C" | |
8147 | #endif | |
f73dda09 | 8148 | char $ac_func (); |
f73dda09 JA |
8149 | /* The GNU C library defines this for functions which it implements |
8150 | to always fail with ENOSYS. Some functions are actually named | |
8151 | something starting with __ and the normal name is an alias. */ | |
3185942a | 8152 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 8153 | choke me |
f73dda09 JA |
8154 | #endif |
8155 | ||
0628567a JA |
8156 | int |
8157 | main () | |
8158 | { | |
3185942a | 8159 | return $ac_func (); |
f73dda09 JA |
8160 | ; |
8161 | return 0; | |
8162 | } | |
8163 | _ACEOF | |
8164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
8165 | if { (ac_try="$ac_link" |
8166 | case "(($ac_try" in | |
8167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8168 | *) ac_try_echo=$ac_try;; | |
8169 | esac | |
8170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8171 | $as_echo "$ac_try_echo") >&5 | |
8172 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 8173 | ac_status=$? |
0628567a JA |
8174 | grep -v '^ *+' conftest.er1 >conftest.err |
8175 | rm -f conftest.er1 | |
8176 | cat conftest.err >&5 | |
3185942a JA |
8177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8178 | (exit $ac_status); } && { | |
8179 | test -z "$ac_c_werror_flag" || | |
8180 | test ! -s conftest.err | |
8181 | } && test -s conftest$ac_exeext && { | |
8182 | test "$cross_compiling" = yes || | |
8183 | $as_test_x conftest$ac_exeext | |
8184 | }; then | |
f73dda09 JA |
8185 | eval "$as_ac_var=yes" |
8186 | else | |
3185942a | 8187 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8188 | sed 's/^/| /' conftest.$ac_ext >&5 |
8189 | ||
3185942a | 8190 | eval "$as_ac_var=no" |
f73dda09 | 8191 | fi |
3185942a JA |
8192 | |
8193 | rm -rf conftest.dSYM | |
8194 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 8195 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 8196 | fi |
3185942a JA |
8197 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8198 | $as_echo "$as_val"'` | |
8199 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8200 | $as_echo "$ac_res" >&6; } | |
8201 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8202 | $as_echo "$as_val"'` | |
8203 | if test "x$as_val" = x""yes; then | |
b80f6443 | 8204 | cat >>confdefs.h <<_ACEOF |
3185942a | 8205 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 8206 | _ACEOF |
f73dda09 | 8207 | |
b80f6443 JA |
8208 | fi |
8209 | done | |
8210 | ||
3185942a JA |
8211 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8212 | $as_echo_n "checking for working mmap... " >&6; } | |
b80f6443 | 8213 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
3185942a | 8214 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8215 | else |
8216 | if test "$cross_compiling" = yes; then | |
8217 | ac_cv_func_mmap_fixed_mapped=no | |
f73dda09 JA |
8218 | else |
8219 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8220 | /* confdefs.h. */ |
8221 | _ACEOF | |
8222 | cat confdefs.h >>conftest.$ac_ext | |
8223 | cat >>conftest.$ac_ext <<_ACEOF | |
8224 | /* end confdefs.h. */ | |
b80f6443 JA |
8225 | $ac_includes_default |
8226 | /* malloc might have been renamed as rpl_malloc. */ | |
8227 | #undef malloc | |
8228 | ||
8229 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8230 | Here is a matrix of mmap possibilities: | |
8231 | mmap private not fixed | |
8232 | mmap private fixed at somewhere currently unmapped | |
8233 | mmap private fixed at somewhere already mapped | |
8234 | mmap shared not fixed | |
8235 | mmap shared fixed at somewhere currently unmapped | |
8236 | mmap shared fixed at somewhere already mapped | |
8237 | For private mappings, we should verify that changes cannot be read() | |
8238 | back from the file, nor mmap's back from the file at a different | |
8239 | address. (There have been systems where private was not correctly | |
8240 | implemented like the infamous i386 svr4.0, and systems where the | |
8241 | VM page cache was not coherent with the file system buffer cache | |
8242 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8243 | For shared mappings, we should conversely verify that changes get | |
8244 | propagated back to all the places they're supposed to be. | |
8245 | ||
8246 | Grep wants private fixed already mapped. | |
8247 | The main things grep needs to know about mmap are: | |
8248 | * does it exist and is it safe to write into the mmap'd area | |
8249 | * how to use it (BSD variants) */ | |
8250 | ||
8251 | #include <fcntl.h> | |
8252 | #include <sys/mman.h> | |
8253 | ||
3185942a | 8254 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b80f6443 | 8255 | char *malloc (); |
f73dda09 | 8256 | #endif |
b80f6443 JA |
8257 | |
8258 | /* This mess was copied from the GNU getpagesize.h. */ | |
3185942a | 8259 | #ifndef HAVE_GETPAGESIZE |
b80f6443 | 8260 | /* Assume that all systems that can run configure have sys/param.h. */ |
3185942a | 8261 | # ifndef HAVE_SYS_PARAM_H |
b80f6443 JA |
8262 | # define HAVE_SYS_PARAM_H 1 |
8263 | # endif | |
8264 | ||
8265 | # ifdef _SC_PAGESIZE | |
8266 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8267 | # else /* no _SC_PAGESIZE */ | |
3185942a | 8268 | # ifdef HAVE_SYS_PARAM_H |
b80f6443 JA |
8269 | # include <sys/param.h> |
8270 | # ifdef EXEC_PAGESIZE | |
8271 | # define getpagesize() EXEC_PAGESIZE | |
8272 | # else /* no EXEC_PAGESIZE */ | |
8273 | # ifdef NBPG | |
8274 | # define getpagesize() NBPG * CLSIZE | |
8275 | # ifndef CLSIZE | |
8276 | # define CLSIZE 1 | |
8277 | # endif /* no CLSIZE */ | |
8278 | # else /* no NBPG */ | |
8279 | # ifdef NBPC | |
8280 | # define getpagesize() NBPC | |
8281 | # else /* no NBPC */ | |
8282 | # ifdef PAGESIZE | |
8283 | # define getpagesize() PAGESIZE | |
8284 | # endif /* PAGESIZE */ | |
8285 | # endif /* no NBPC */ | |
8286 | # endif /* no NBPG */ | |
8287 | # endif /* no EXEC_PAGESIZE */ | |
8288 | # else /* no HAVE_SYS_PARAM_H */ | |
8289 | # define getpagesize() 8192 /* punt totally */ | |
8290 | # endif /* no HAVE_SYS_PARAM_H */ | |
8291 | # endif /* no _SC_PAGESIZE */ | |
8292 | ||
8293 | #endif /* no HAVE_GETPAGESIZE */ | |
ccc6cda3 | 8294 | |
f73dda09 JA |
8295 | int |
8296 | main () | |
8297 | { | |
b80f6443 JA |
8298 | char *data, *data2, *data3; |
8299 | int i, pagesize; | |
8300 | int fd; | |
f73dda09 | 8301 | |
b80f6443 JA |
8302 | pagesize = getpagesize (); |
8303 | ||
8304 | /* First, make a file with some known garbage in it. */ | |
8305 | data = (char *) malloc (pagesize); | |
8306 | if (!data) | |
3185942a | 8307 | return 1; |
b80f6443 JA |
8308 | for (i = 0; i < pagesize; ++i) |
8309 | *(data + i) = rand (); | |
8310 | umask (0); | |
8311 | fd = creat ("conftest.mmap", 0600); | |
8312 | if (fd < 0) | |
3185942a | 8313 | return 1; |
b80f6443 | 8314 | if (write (fd, data, pagesize) != pagesize) |
3185942a | 8315 | return 1; |
b80f6443 JA |
8316 | close (fd); |
8317 | ||
8318 | /* Next, try to mmap the file at a fixed address which already has | |
8319 | something else allocated at it. If we can, also make sure that | |
8320 | we see the same garbage. */ | |
8321 | fd = open ("conftest.mmap", O_RDWR); | |
8322 | if (fd < 0) | |
3185942a | 8323 | return 1; |
b80f6443 JA |
8324 | data2 = (char *) malloc (2 * pagesize); |
8325 | if (!data2) | |
3185942a JA |
8326 | return 1; |
8327 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b80f6443 | 8328 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
0628567a | 8329 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
3185942a | 8330 | return 1; |
b80f6443 JA |
8331 | for (i = 0; i < pagesize; ++i) |
8332 | if (*(data + i) != *(data2 + i)) | |
3185942a | 8333 | return 1; |
b80f6443 JA |
8334 | |
8335 | /* Finally, make sure that changes to the mapped area do not | |
8336 | percolate back to the file as seen by read(). (This is a bug on | |
8337 | some variants of i386 svr4.0.) */ | |
8338 | for (i = 0; i < pagesize; ++i) | |
8339 | *(data2 + i) = *(data2 + i) + 1; | |
8340 | data3 = (char *) malloc (pagesize); | |
8341 | if (!data3) | |
3185942a | 8342 | return 1; |
b80f6443 | 8343 | if (read (fd, data3, pagesize) != pagesize) |
3185942a | 8344 | return 1; |
b80f6443 JA |
8345 | for (i = 0; i < pagesize; ++i) |
8346 | if (*(data + i) != *(data3 + i)) | |
3185942a | 8347 | return 1; |
b80f6443 | 8348 | close (fd); |
3185942a | 8349 | return 0; |
f73dda09 JA |
8350 | } |
8351 | _ACEOF | |
b80f6443 | 8352 | rm -f conftest$ac_exeext |
3185942a JA |
8353 | if { (ac_try="$ac_link" |
8354 | case "(($ac_try" in | |
8355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8356 | *) ac_try_echo=$ac_try;; | |
8357 | esac | |
8358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8359 | $as_echo "$ac_try_echo") >&5 | |
8360 | (eval "$ac_link") 2>&5 | |
f73dda09 | 8361 | ac_status=$? |
3185942a | 8362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 8363 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
8364 | { (case "(($ac_try" in |
8365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8366 | *) ac_try_echo=$ac_try;; | |
8367 | esac | |
8368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8369 | $as_echo "$ac_try_echo") >&5 | |
8370 | (eval "$ac_try") 2>&5 | |
f73dda09 | 8371 | ac_status=$? |
3185942a | 8372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8373 | (exit $ac_status); }; }; then |
b80f6443 | 8374 | ac_cv_func_mmap_fixed_mapped=yes |
f73dda09 | 8375 | else |
3185942a JA |
8376 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8377 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
8378 | sed 's/^/| /' conftest.$ac_ext >&5 |
8379 | ||
b80f6443 JA |
8380 | ( exit $ac_status ) |
8381 | ac_cv_func_mmap_fixed_mapped=no | |
f73dda09 | 8382 | fi |
3185942a JA |
8383 | rm -rf conftest.dSYM |
8384 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 8385 | fi |
3185942a JA |
8386 | |
8387 | ||
b80f6443 | 8388 | fi |
3185942a JA |
8389 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8390 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b80f6443 | 8391 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
f73dda09 | 8392 | |
b80f6443 JA |
8393 | cat >>confdefs.h <<\_ACEOF |
8394 | #define HAVE_MMAP 1 | |
8395 | _ACEOF | |
8396 | ||
8397 | fi | |
8398 | rm -f conftest.mmap | |
8399 | ||
8400 | ||
3185942a JA |
8401 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
8402 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
b80f6443 | 8403 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
3185942a | 8404 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8405 | else |
8406 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8407 | /* confdefs.h. */ |
8408 | _ACEOF | |
8409 | cat confdefs.h >>conftest.$ac_ext | |
8410 | cat >>conftest.$ac_ext <<_ACEOF | |
8411 | /* end confdefs.h. */ | |
b80f6443 JA |
8412 | |
8413 | #include <features.h> | |
8414 | #ifdef __GNU_LIBRARY__ | |
8415 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
8416 | Lucky GNU user | |
8417 | #endif | |
8418 | #endif | |
ccc6cda3 | 8419 | |
b80f6443 JA |
8420 | _ACEOF |
8421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 8422 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
b80f6443 JA |
8423 | ac_cv_gnu_library_2_1=yes |
8424 | else | |
8425 | ac_cv_gnu_library_2_1=no | |
ccc6cda3 | 8426 | fi |
b80f6443 JA |
8427 | rm -f conftest* |
8428 | ||
8429 | ||
f73dda09 | 8430 | |
ccc6cda3 | 8431 | fi |
3185942a JA |
8432 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
8433 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
ccc6cda3 | 8434 | |
b80f6443 JA |
8435 | GLIBC21="$ac_cv_gnu_library_2_1" |
8436 | ||
8437 | ||
8438 | ||
8439 | ||
3185942a JA |
8440 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
8441 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
b80f6443 | 8442 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
3185942a | 8443 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8444 | else |
b80f6443 JA |
8445 | |
8446 | if test "$cross_compiling" = yes; then | |
8447 | ||
8448 | # Guess based on the CPU. | |
8449 | case "$host_cpu" in | |
8450 | alpha* | i3456786 | m68k | s390*) | |
8451 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
8452 | *) | |
8453 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
8454 | esac | |
8455 | ||
ccc6cda3 | 8456 | else |
f73dda09 | 8457 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8458 | /* confdefs.h. */ |
8459 | _ACEOF | |
8460 | cat confdefs.h >>conftest.$ac_ext | |
8461 | cat >>conftest.$ac_ext <<_ACEOF | |
8462 | /* end confdefs.h. */ | |
b80f6443 JA |
8463 | |
8464 | #include <stdlib.h> | |
8465 | #include <signal.h> | |
8466 | ||
8467 | static void | |
8468 | #ifdef __cplusplus | |
8469 | sigfpe_handler (int sig) | |
8470 | #else | |
8471 | sigfpe_handler (sig) int sig; | |
8472 | #endif | |
f73dda09 | 8473 | { |
b80f6443 JA |
8474 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
8475 | exit (sig != SIGFPE); | |
8476 | } | |
8477 | ||
8478 | int x = 1; | |
8479 | int y = 0; | |
8480 | int z; | |
8481 | int nan; | |
8482 | ||
8483 | int main () | |
8484 | { | |
8485 | signal (SIGFPE, sigfpe_handler); | |
8486 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
8487 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
8488 | signal (SIGTRAP, sigfpe_handler); | |
8489 | #endif | |
8490 | /* Linux/SPARC yields signal SIGILL. */ | |
8491 | #if defined (__sparc__) && defined (__linux__) | |
8492 | signal (SIGILL, sigfpe_handler); | |
8493 | #endif | |
8494 | ||
8495 | z = x / y; | |
8496 | nan = y / y; | |
8497 | exit (1); | |
f73dda09 | 8498 | } |
b80f6443 | 8499 | |
f73dda09 JA |
8500 | _ACEOF |
8501 | rm -f conftest$ac_exeext | |
3185942a JA |
8502 | if { (ac_try="$ac_link" |
8503 | case "(($ac_try" in | |
8504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8505 | *) ac_try_echo=$ac_try;; | |
8506 | esac | |
8507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8508 | $as_echo "$ac_try_echo") >&5 | |
8509 | (eval "$ac_link") 2>&5 | |
f73dda09 | 8510 | ac_status=$? |
3185942a | 8511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
8513 | { (case "(($ac_try" in |
8514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8515 | *) ac_try_echo=$ac_try;; | |
8516 | esac | |
8517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8518 | $as_echo "$ac_try_echo") >&5 | |
8519 | (eval "$ac_try") 2>&5 | |
f73dda09 | 8520 | ac_status=$? |
3185942a | 8521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 8522 | (exit $ac_status); }; }; then |
b80f6443 | 8523 | gt_cv_int_divbyzero_sigfpe=yes |
ccc6cda3 | 8524 | else |
3185942a JA |
8525 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8526 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
8527 | sed 's/^/| /' conftest.$ac_ext >&5 |
8528 | ||
b80f6443 JA |
8529 | ( exit $ac_status ) |
8530 | gt_cv_int_divbyzero_sigfpe=no | |
ccc6cda3 | 8531 | fi |
3185942a JA |
8532 | rm -rf conftest.dSYM |
8533 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
8534 | fi |
8535 | ||
3185942a JA |
8536 | |
8537 | ||
ccc6cda3 | 8538 | fi |
3185942a JA |
8539 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
8540 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
b80f6443 JA |
8541 | case "$gt_cv_int_divbyzero_sigfpe" in |
8542 | *yes) value=1;; | |
8543 | *) value=0;; | |
8544 | esac | |
ccc6cda3 | 8545 | |
b80f6443 JA |
8546 | cat >>confdefs.h <<_ACEOF |
8547 | #define INTDIV0_RAISES_SIGFPE $value | |
8548 | _ACEOF | |
ccc6cda3 | 8549 | |
ccc6cda3 JA |
8550 | |
8551 | ||
3185942a JA |
8552 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8553 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b80f6443 | 8554 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
3185942a | 8555 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8556 | else |
f73dda09 | 8557 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8558 | /* confdefs.h. */ |
8559 | _ACEOF | |
8560 | cat confdefs.h >>conftest.$ac_ext | |
8561 | cat >>conftest.$ac_ext <<_ACEOF | |
8562 | /* end confdefs.h. */ | |
f73dda09 | 8563 | #include <sys/types.h> |
b80f6443 | 8564 | #include <inttypes.h> |
f73dda09 JA |
8565 | int |
8566 | main () | |
8567 | { | |
b80f6443 | 8568 | uintmax_t i = (uintmax_t) -1; |
f73dda09 JA |
8569 | ; |
8570 | return 0; | |
8571 | } | |
8572 | _ACEOF | |
8573 | rm -f conftest.$ac_objext | |
3185942a JA |
8574 | if { (ac_try="$ac_compile" |
8575 | case "(($ac_try" in | |
8576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8577 | *) ac_try_echo=$ac_try;; | |
8578 | esac | |
8579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8580 | $as_echo "$ac_try_echo") >&5 | |
8581 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8582 | ac_status=$? |
0628567a JA |
8583 | grep -v '^ *+' conftest.er1 >conftest.err |
8584 | rm -f conftest.er1 | |
8585 | cat conftest.err >&5 | |
3185942a JA |
8586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8587 | (exit $ac_status); } && { | |
8588 | test -z "$ac_c_werror_flag" || | |
8589 | test ! -s conftest.err | |
8590 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8591 | jm_ac_cv_header_inttypes_h=yes |
ccc6cda3 | 8592 | else |
3185942a | 8593 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
8595 | ||
3185942a | 8596 | jm_ac_cv_header_inttypes_h=no |
ccc6cda3 | 8597 | fi |
3185942a JA |
8598 | |
8599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 8600 | fi |
3185942a JA |
8601 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
8602 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
b80f6443 | 8603 | if test $jm_ac_cv_header_inttypes_h = yes; then |
f73dda09 | 8604 | |
b80f6443 JA |
8605 | cat >>confdefs.h <<_ACEOF |
8606 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
8607 | _ACEOF | |
ccc6cda3 | 8608 | |
b80f6443 JA |
8609 | fi |
8610 | ||
8611 | ||
3185942a JA |
8612 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
8613 | $as_echo_n "checking for stdint.h... " >&6; } | |
b80f6443 | 8614 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
3185942a | 8615 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 8616 | else |
f73dda09 | 8617 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8618 | /* confdefs.h. */ |
8619 | _ACEOF | |
8620 | cat confdefs.h >>conftest.$ac_ext | |
8621 | cat >>conftest.$ac_ext <<_ACEOF | |
8622 | /* end confdefs.h. */ | |
b80f6443 JA |
8623 | #include <sys/types.h> |
8624 | #include <stdint.h> | |
f73dda09 JA |
8625 | int |
8626 | main () | |
8627 | { | |
b80f6443 | 8628 | uintmax_t i = (uintmax_t) -1; |
f73dda09 JA |
8629 | ; |
8630 | return 0; | |
8631 | } | |
8632 | _ACEOF | |
b80f6443 | 8633 | rm -f conftest.$ac_objext |
3185942a JA |
8634 | if { (ac_try="$ac_compile" |
8635 | case "(($ac_try" in | |
8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8637 | *) ac_try_echo=$ac_try;; | |
8638 | esac | |
8639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8640 | $as_echo "$ac_try_echo") >&5 | |
8641 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8642 | ac_status=$? |
0628567a JA |
8643 | grep -v '^ *+' conftest.er1 >conftest.err |
8644 | rm -f conftest.er1 | |
8645 | cat conftest.err >&5 | |
3185942a JA |
8646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8647 | (exit $ac_status); } && { | |
8648 | test -z "$ac_c_werror_flag" || | |
8649 | test ! -s conftest.err | |
8650 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8651 | jm_ac_cv_header_stdint_h=yes |
f73dda09 | 8652 | else |
3185942a | 8653 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8654 | sed 's/^/| /' conftest.$ac_ext >&5 |
8655 | ||
3185942a | 8656 | jm_ac_cv_header_stdint_h=no |
f73dda09 | 8657 | fi |
3185942a JA |
8658 | |
8659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 8660 | fi |
3185942a JA |
8661 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
8662 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
b80f6443 | 8663 | if test $jm_ac_cv_header_stdint_h = yes; then |
f73dda09 | 8664 | |
b80f6443 JA |
8665 | cat >>confdefs.h <<_ACEOF |
8666 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
8667 | _ACEOF | |
f73dda09 | 8668 | |
b80f6443 JA |
8669 | fi |
8670 | ||
8671 | ||
3185942a JA |
8672 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
8673 | $as_echo_n "checking for unsigned long long... " >&6; } | |
b80f6443 | 8674 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
3185942a | 8675 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
8676 | else |
8677 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8678 | /* confdefs.h. */ |
8679 | _ACEOF | |
8680 | cat confdefs.h >>conftest.$ac_ext | |
8681 | cat >>conftest.$ac_ext <<_ACEOF | |
8682 | /* end confdefs.h. */ | |
b80f6443 | 8683 | unsigned long long ull = 1; int i = 63; |
f73dda09 JA |
8684 | int |
8685 | main () | |
8686 | { | |
b80f6443 JA |
8687 | unsigned long long ullmax = (unsigned long long) -1; |
8688 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
f73dda09 JA |
8689 | ; |
8690 | return 0; | |
8691 | } | |
8692 | _ACEOF | |
8693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
8694 | if { (ac_try="$ac_link" |
8695 | case "(($ac_try" in | |
8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8697 | *) ac_try_echo=$ac_try;; | |
8698 | esac | |
8699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8700 | $as_echo "$ac_try_echo") >&5 | |
8701 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 8702 | ac_status=$? |
0628567a JA |
8703 | grep -v '^ *+' conftest.er1 >conftest.err |
8704 | rm -f conftest.er1 | |
8705 | cat conftest.err >&5 | |
3185942a JA |
8706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8707 | (exit $ac_status); } && { | |
8708 | test -z "$ac_c_werror_flag" || | |
8709 | test ! -s conftest.err | |
8710 | } && test -s conftest$ac_exeext && { | |
8711 | test "$cross_compiling" = yes || | |
8712 | $as_test_x conftest$ac_exeext | |
8713 | }; then | |
b80f6443 | 8714 | ac_cv_type_unsigned_long_long=yes |
f73dda09 | 8715 | else |
3185942a | 8716 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
8718 | ||
3185942a | 8719 | ac_cv_type_unsigned_long_long=no |
f73dda09 | 8720 | fi |
3185942a JA |
8721 | |
8722 | rm -rf conftest.dSYM | |
8723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 8724 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 8725 | fi |
3185942a JA |
8726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
8727 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
b80f6443 | 8728 | if test $ac_cv_type_unsigned_long_long = yes; then |
f73dda09 | 8729 | |
b80f6443 JA |
8730 | cat >>confdefs.h <<\_ACEOF |
8731 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
8732 | _ACEOF | |
f73dda09 | 8733 | |
b80f6443 | 8734 | fi |
7117c2d2 | 8735 | |
7117c2d2 | 8736 | |
b80f6443 JA |
8737 | |
8738 | ||
8739 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
8740 | ||
8741 | test $ac_cv_type_unsigned_long_long = yes \ | |
8742 | && ac_type='unsigned long long' \ | |
8743 | || ac_type='unsigned long' | |
8744 | ||
8745 | cat >>confdefs.h <<_ACEOF | |
8746 | #define uintmax_t $ac_type | |
7117c2d2 | 8747 | _ACEOF |
7117c2d2 | 8748 | |
b80f6443 | 8749 | else |
7117c2d2 | 8750 | |
b80f6443 JA |
8751 | cat >>confdefs.h <<\_ACEOF |
8752 | #define HAVE_UINTMAX_T 1 | |
8753 | _ACEOF | |
8754 | ||
8755 | fi | |
8756 | ||
8757 | ||
3185942a JA |
8758 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8759 | $as_echo_n "checking for inttypes.h... " >&6; } | |
b80f6443 | 8760 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
3185942a | 8761 | $as_echo_n "(cached) " >&6 |
f73dda09 | 8762 | else |
f73dda09 | 8763 | |
b80f6443 | 8764 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
8765 | /* confdefs.h. */ |
8766 | _ACEOF | |
8767 | cat confdefs.h >>conftest.$ac_ext | |
8768 | cat >>conftest.$ac_ext <<_ACEOF | |
8769 | /* end confdefs.h. */ | |
b80f6443 JA |
8770 | #include <sys/types.h> |
8771 | #include <inttypes.h> | |
f73dda09 JA |
8772 | int |
8773 | main () | |
8774 | { | |
f73dda09 JA |
8775 | |
8776 | ; | |
8777 | return 0; | |
8778 | } | |
8779 | _ACEOF | |
b80f6443 | 8780 | rm -f conftest.$ac_objext |
3185942a JA |
8781 | if { (ac_try="$ac_compile" |
8782 | case "(($ac_try" in | |
8783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8784 | *) ac_try_echo=$ac_try;; | |
8785 | esac | |
8786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8787 | $as_echo "$ac_try_echo") >&5 | |
8788 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8789 | ac_status=$? |
0628567a JA |
8790 | grep -v '^ *+' conftest.er1 >conftest.err |
8791 | rm -f conftest.er1 | |
8792 | cat conftest.err >&5 | |
3185942a JA |
8793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8794 | (exit $ac_status); } && { | |
8795 | test -z "$ac_c_werror_flag" || | |
8796 | test ! -s conftest.err | |
8797 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8798 | gt_cv_header_inttypes_h=yes |
f73dda09 | 8799 | else |
3185942a | 8800 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8801 | sed 's/^/| /' conftest.$ac_ext >&5 |
8802 | ||
3185942a | 8803 | gt_cv_header_inttypes_h=no |
f73dda09 | 8804 | fi |
3185942a JA |
8805 | |
8806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 8807 | |
f73dda09 | 8808 | fi |
3185942a JA |
8809 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
8810 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
b80f6443 | 8811 | if test $gt_cv_header_inttypes_h = yes; then |
f73dda09 | 8812 | |
b80f6443 JA |
8813 | cat >>confdefs.h <<_ACEOF |
8814 | #define HAVE_INTTYPES_H 1 | |
8815 | _ACEOF | |
f73dda09 | 8816 | |
b80f6443 | 8817 | fi |
f73dda09 | 8818 | |
b80f6443 JA |
8819 | |
8820 | ||
8821 | if test $gt_cv_header_inttypes_h = yes; then | |
3185942a JA |
8822 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
8823 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
b80f6443 | 8824 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
3185942a | 8825 | $as_echo_n "(cached) " >&6 |
f73dda09 | 8826 | else |
b80f6443 JA |
8827 | |
8828 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
8829 | /* confdefs.h. */ |
8830 | _ACEOF | |
8831 | cat confdefs.h >>conftest.$ac_ext | |
8832 | cat >>conftest.$ac_ext <<_ACEOF | |
8833 | /* end confdefs.h. */ | |
b80f6443 JA |
8834 | #include <inttypes.h> |
8835 | #ifdef PRId32 | |
8836 | char *p = PRId32; | |
f73dda09 | 8837 | #endif |
f73dda09 JA |
8838 | |
8839 | int | |
8840 | main () | |
8841 | { | |
f73dda09 JA |
8842 | |
8843 | ; | |
8844 | return 0; | |
8845 | } | |
8846 | _ACEOF | |
b80f6443 | 8847 | rm -f conftest.$ac_objext |
3185942a JA |
8848 | if { (ac_try="$ac_compile" |
8849 | case "(($ac_try" in | |
8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8851 | *) ac_try_echo=$ac_try;; | |
8852 | esac | |
8853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8854 | $as_echo "$ac_try_echo") >&5 | |
8855 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 8856 | ac_status=$? |
0628567a JA |
8857 | grep -v '^ *+' conftest.er1 >conftest.err |
8858 | rm -f conftest.er1 | |
8859 | cat conftest.err >&5 | |
3185942a JA |
8860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8861 | (exit $ac_status); } && { | |
8862 | test -z "$ac_c_werror_flag" || | |
8863 | test ! -s conftest.err | |
8864 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 8865 | gt_cv_inttypes_pri_broken=no |
f73dda09 | 8866 | else |
3185942a | 8867 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
8868 | sed 's/^/| /' conftest.$ac_ext >&5 |
8869 | ||
3185942a | 8870 | gt_cv_inttypes_pri_broken=yes |
f73dda09 | 8871 | fi |
3185942a JA |
8872 | |
8873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
8874 | |
8875 | fi | |
3185942a JA |
8876 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
8877 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
b80f6443 JA |
8878 | fi |
8879 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
f73dda09 | 8880 | |
b80f6443 JA |
8881 | cat >>confdefs.h <<_ACEOF |
8882 | #define PRI_MACROS_BROKEN 1 | |
8883 | _ACEOF | |
f73dda09 | 8884 | |
b80f6443 | 8885 | fi |
f73dda09 | 8886 | |
b80f6443 JA |
8887 | |
8888 | if test "X$prefix" = "XNONE"; then | |
8889 | acl_final_prefix="$ac_default_prefix" | |
8890 | else | |
8891 | acl_final_prefix="$prefix" | |
8892 | fi | |
8893 | if test "X$exec_prefix" = "XNONE"; then | |
8894 | acl_final_exec_prefix='${prefix}' | |
8895 | else | |
8896 | acl_final_exec_prefix="$exec_prefix" | |
8897 | fi | |
8898 | acl_save_prefix="$prefix" | |
8899 | prefix="$acl_final_prefix" | |
8900 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8901 | prefix="$acl_save_prefix" | |
8902 | ||
8903 | ||
3185942a | 8904 | # Check whether --with-gnu-ld was given. |
b80f6443 | 8905 | if test "${with_gnu_ld+set}" = set; then |
3185942a | 8906 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
f73dda09 | 8907 | else |
b80f6443 | 8908 | with_gnu_ld=no |
3185942a JA |
8909 | fi |
8910 | ||
b80f6443 JA |
8911 | # Prepare PATH_SEPARATOR. |
8912 | # The user is always right. | |
8913 | if test "${PATH_SEPARATOR+set}" != set; then | |
8914 | echo "#! /bin/sh" >conf$$.sh | |
8915 | echo "exit 0" >>conf$$.sh | |
8916 | chmod +x conf$$.sh | |
8917 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8918 | PATH_SEPARATOR=';' | |
8919 | else | |
8920 | PATH_SEPARATOR=: | |
8921 | fi | |
8922 | rm -f conf$$.sh | |
8923 | fi | |
8924 | ac_prog=ld | |
8925 | if test "$GCC" = yes; then | |
8926 | # Check if gcc -print-prog-name=ld gives a path. | |
3185942a JA |
8927 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
8928 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
b80f6443 JA |
8929 | case $host in |
8930 | *-*-mingw*) | |
8931 | # gcc leaves a trailing carriage return which upsets mingw | |
8932 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8933 | *) | |
8934 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
8935 | esac | |
8936 | case $ac_prog in | |
8937 | # Accept absolute paths. | |
8938 | [\\/]* | [A-Za-z]:[\\/]*) | |
8939 | re_direlt='/[^/][^/]*/\.\./' | |
8940 | # Canonicalize the path of ld | |
8941 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
8942 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
8943 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
8944 | done | |
8945 | test -z "$LD" && LD="$ac_prog" | |
8946 | ;; | |
8947 | "") | |
8948 | # If it fails, then pretend we aren't using GCC. | |
8949 | ac_prog=ld | |
8950 | ;; | |
8951 | *) | |
8952 | # If it is relative, then search for the first ld in PATH. | |
8953 | with_gnu_ld=unknown | |
8954 | ;; | |
8955 | esac | |
8956 | elif test "$with_gnu_ld" = yes; then | |
3185942a JA |
8957 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
8958 | $as_echo_n "checking for GNU ld... " >&6; } | |
b80f6443 | 8959 | else |
3185942a JA |
8960 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
8961 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
b80f6443 JA |
8962 | fi |
8963 | if test "${acl_cv_path_LD+set}" = set; then | |
3185942a | 8964 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
8965 | else |
8966 | if test -z "$LD"; then | |
8967 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
8968 | for ac_dir in $PATH; do | |
8969 | test -z "$ac_dir" && ac_dir=. | |
8970 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8971 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8972 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8973 | # but apparently some GNU ld's only accept -v. | |
8974 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8975 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
8976 | test "$with_gnu_ld" != no && break | |
8977 | else | |
8978 | test "$with_gnu_ld" != yes && break | |
8979 | fi | |
8980 | fi | |
8981 | done | |
8982 | IFS="$ac_save_ifs" | |
8983 | else | |
8984 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
f73dda09 | 8985 | fi |
f73dda09 | 8986 | fi |
f73dda09 | 8987 | |
b80f6443 JA |
8988 | LD="$acl_cv_path_LD" |
8989 | if test -n "$LD"; then | |
3185942a JA |
8990 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
8991 | $as_echo "$LD" >&6; } | |
f73dda09 | 8992 | else |
3185942a JA |
8993 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8994 | $as_echo "no" >&6; } | |
f73dda09 | 8995 | fi |
3185942a JA |
8996 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
8997 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
b80f6443 | 8998 | { (exit 1); exit 1; }; } |
3185942a JA |
8999 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
9000 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
b80f6443 | 9001 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
3185942a | 9002 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
9003 | else |
9004 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9005 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
9006 | acl_cv_prog_gnu_ld=yes | |
9007 | else | |
9008 | acl_cv_prog_gnu_ld=no | |
9009 | fi | |
9010 | fi | |
3185942a JA |
9011 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
9012 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
b80f6443 JA |
9013 | with_gnu_ld=$acl_cv_prog_gnu_ld |
9014 | ||
9015 | ||
9016 | ||
3185942a JA |
9017 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
9018 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
b80f6443 | 9019 | if test "${acl_cv_rpath+set}" = set; then |
3185942a | 9020 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
9021 | else |
9022 | ||
9023 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
9024 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
9025 | . ./conftest.sh | |
9026 | rm -f ./conftest.sh | |
9027 | acl_cv_rpath=done | |
9028 | ||
9029 | fi | |
3185942a JA |
9030 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
9031 | $as_echo "$acl_cv_rpath" >&6; } | |
b80f6443 JA |
9032 | wl="$acl_cv_wl" |
9033 | libext="$acl_cv_libext" | |
9034 | shlibext="$acl_cv_shlibext" | |
9035 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
9036 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
9037 | hardcode_direct="$acl_cv_hardcode_direct" | |
9038 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
3185942a | 9039 | # Check whether --enable-rpath was given. |
b80f6443 | 9040 | if test "${enable_rpath+set}" = set; then |
3185942a | 9041 | enableval=$enable_rpath; : |
b80f6443 JA |
9042 | else |
9043 | enable_rpath=yes | |
3185942a JA |
9044 | fi |
9045 | ||
b80f6443 JA |
9046 | |
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | use_additional=yes | |
9054 | ||
9055 | acl_save_prefix="$prefix" | |
9056 | prefix="$acl_final_prefix" | |
9057 | acl_save_exec_prefix="$exec_prefix" | |
9058 | exec_prefix="$acl_final_exec_prefix" | |
9059 | ||
9060 | eval additional_includedir=\"$includedir\" | |
9061 | eval additional_libdir=\"$libdir\" | |
9062 | ||
9063 | exec_prefix="$acl_save_exec_prefix" | |
9064 | prefix="$acl_save_prefix" | |
9065 | ||
9066 | ||
3185942a | 9067 | # Check whether --with-libiconv-prefix was given. |
b80f6443 | 9068 | if test "${with_libiconv_prefix+set}" = set; then |
3185942a | 9069 | withval=$with_libiconv_prefix; |
b80f6443 JA |
9070 | if test "X$withval" = "Xno"; then |
9071 | use_additional=no | |
9072 | else | |
9073 | if test "X$withval" = "X"; then | |
9074 | ||
9075 | acl_save_prefix="$prefix" | |
9076 | prefix="$acl_final_prefix" | |
9077 | acl_save_exec_prefix="$exec_prefix" | |
9078 | exec_prefix="$acl_final_exec_prefix" | |
9079 | ||
9080 | eval additional_includedir=\"$includedir\" | |
9081 | eval additional_libdir=\"$libdir\" | |
9082 | ||
9083 | exec_prefix="$acl_save_exec_prefix" | |
9084 | prefix="$acl_save_prefix" | |
9085 | ||
9086 | else | |
9087 | additional_includedir="$withval/include" | |
9088 | additional_libdir="$withval/lib" | |
9089 | fi | |
9090 | fi | |
9091 | ||
3185942a JA |
9092 | fi |
9093 | ||
b80f6443 JA |
9094 | LIBICONV= |
9095 | LTLIBICONV= | |
9096 | INCICONV= | |
9097 | rpathdirs= | |
9098 | ltrpathdirs= | |
9099 | names_already_handled= | |
9100 | names_next_round='iconv ' | |
9101 | while test -n "$names_next_round"; do | |
9102 | names_this_round="$names_next_round" | |
9103 | names_next_round= | |
9104 | for name in $names_this_round; do | |
9105 | already_handled= | |
9106 | for n in $names_already_handled; do | |
9107 | if test "$n" = "$name"; then | |
9108 | already_handled=yes | |
9109 | break | |
9110 | fi | |
9111 | done | |
9112 | if test -z "$already_handled"; then | |
9113 | names_already_handled="$names_already_handled $name" | |
9114 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9115 | eval value=\"\$HAVE_LIB$uppername\" | |
9116 | if test -n "$value"; then | |
9117 | if test "$value" = yes; then | |
9118 | eval value=\"\$LIB$uppername\" | |
9119 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9120 | eval value=\"\$LTLIB$uppername\" | |
9121 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9122 | else | |
9123 | : | |
9124 | fi | |
9125 | else | |
9126 | found_dir= | |
9127 | found_la= | |
9128 | found_so= | |
9129 | found_a= | |
9130 | if test $use_additional = yes; then | |
9131 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
9132 | found_dir="$additional_libdir" | |
9133 | found_so="$additional_libdir/lib$name.$shlibext" | |
9134 | if test -f "$additional_libdir/lib$name.la"; then | |
9135 | found_la="$additional_libdir/lib$name.la" | |
9136 | fi | |
9137 | else | |
9138 | if test -f "$additional_libdir/lib$name.$libext"; then | |
9139 | found_dir="$additional_libdir" | |
9140 | found_a="$additional_libdir/lib$name.$libext" | |
9141 | if test -f "$additional_libdir/lib$name.la"; then | |
9142 | found_la="$additional_libdir/lib$name.la" | |
9143 | fi | |
9144 | fi | |
9145 | fi | |
9146 | fi | |
9147 | if test "X$found_dir" = "X"; then | |
9148 | for x in $LDFLAGS $LTLIBICONV; do | |
9149 | ||
9150 | acl_save_prefix="$prefix" | |
9151 | prefix="$acl_final_prefix" | |
9152 | acl_save_exec_prefix="$exec_prefix" | |
9153 | exec_prefix="$acl_final_exec_prefix" | |
9154 | eval x=\"$x\" | |
9155 | exec_prefix="$acl_save_exec_prefix" | |
9156 | prefix="$acl_save_prefix" | |
9157 | ||
9158 | case "$x" in | |
9159 | -L*) | |
9160 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9161 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9162 | found_dir="$dir" | |
9163 | found_so="$dir/lib$name.$shlibext" | |
9164 | if test -f "$dir/lib$name.la"; then | |
9165 | found_la="$dir/lib$name.la" | |
9166 | fi | |
9167 | else | |
9168 | if test -f "$dir/lib$name.$libext"; then | |
9169 | found_dir="$dir" | |
9170 | found_a="$dir/lib$name.$libext" | |
9171 | if test -f "$dir/lib$name.la"; then | |
9172 | found_la="$dir/lib$name.la" | |
9173 | fi | |
9174 | fi | |
9175 | fi | |
9176 | ;; | |
9177 | esac | |
9178 | if test "X$found_dir" != "X"; then | |
9179 | break | |
9180 | fi | |
9181 | done | |
9182 | fi | |
9183 | if test "X$found_dir" != "X"; then | |
9184 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9185 | if test "X$found_so" != "X"; then | |
9186 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9187 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9188 | else | |
9189 | haveit= | |
9190 | for x in $ltrpathdirs; do | |
9191 | if test "X$x" = "X$found_dir"; then | |
9192 | haveit=yes | |
9193 | break | |
9194 | fi | |
9195 | done | |
9196 | if test -z "$haveit"; then | |
9197 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9198 | fi | |
9199 | if test "$hardcode_direct" = yes; then | |
9200 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9201 | else | |
9202 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9203 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9204 | haveit= | |
9205 | for x in $rpathdirs; do | |
9206 | if test "X$x" = "X$found_dir"; then | |
9207 | haveit=yes | |
9208 | break | |
9209 | fi | |
9210 | done | |
9211 | if test -z "$haveit"; then | |
9212 | rpathdirs="$rpathdirs $found_dir" | |
9213 | fi | |
9214 | else | |
9215 | haveit= | |
9216 | for x in $LDFLAGS $LIBICONV; do | |
9217 | ||
9218 | acl_save_prefix="$prefix" | |
9219 | prefix="$acl_final_prefix" | |
9220 | acl_save_exec_prefix="$exec_prefix" | |
9221 | exec_prefix="$acl_final_exec_prefix" | |
9222 | eval x=\"$x\" | |
9223 | exec_prefix="$acl_save_exec_prefix" | |
9224 | prefix="$acl_save_prefix" | |
9225 | ||
9226 | if test "X$x" = "X-L$found_dir"; then | |
9227 | haveit=yes | |
9228 | break | |
9229 | fi | |
9230 | done | |
9231 | if test -z "$haveit"; then | |
9232 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9233 | fi | |
9234 | if test "$hardcode_minus_L" != no; then | |
9235 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9236 | else | |
9237 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9238 | fi | |
9239 | fi | |
9240 | fi | |
9241 | fi | |
9242 | else | |
9243 | if test "X$found_a" != "X"; then | |
9244 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9245 | else | |
9246 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9247 | fi | |
9248 | fi | |
9249 | additional_includedir= | |
9250 | case "$found_dir" in | |
9251 | */lib | */lib/) | |
9252 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9253 | additional_includedir="$basedir/include" | |
9254 | ;; | |
9255 | esac | |
9256 | if test "X$additional_includedir" != "X"; then | |
9257 | if test "X$additional_includedir" != "X/usr/include"; then | |
9258 | haveit= | |
9259 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9260 | if test -n "$GCC"; then | |
9261 | case $host_os in | |
9262 | linux*) haveit=yes;; | |
9263 | esac | |
9264 | fi | |
9265 | fi | |
9266 | if test -z "$haveit"; then | |
9267 | for x in $CPPFLAGS $INCICONV; do | |
9268 | ||
9269 | acl_save_prefix="$prefix" | |
9270 | prefix="$acl_final_prefix" | |
9271 | acl_save_exec_prefix="$exec_prefix" | |
9272 | exec_prefix="$acl_final_exec_prefix" | |
9273 | eval x=\"$x\" | |
9274 | exec_prefix="$acl_save_exec_prefix" | |
9275 | prefix="$acl_save_prefix" | |
9276 | ||
9277 | if test "X$x" = "X-I$additional_includedir"; then | |
9278 | haveit=yes | |
9279 | break | |
9280 | fi | |
9281 | done | |
9282 | if test -z "$haveit"; then | |
9283 | if test -d "$additional_includedir"; then | |
9284 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9285 | fi | |
9286 | fi | |
9287 | fi | |
9288 | fi | |
9289 | fi | |
9290 | if test -n "$found_la"; then | |
9291 | save_libdir="$libdir" | |
9292 | case "$found_la" in | |
9293 | */* | *\\*) . "$found_la" ;; | |
9294 | *) . "./$found_la" ;; | |
9295 | esac | |
9296 | libdir="$save_libdir" | |
9297 | for dep in $dependency_libs; do | |
9298 | case "$dep" in | |
9299 | -L*) | |
9300 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9301 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9302 | haveit= | |
9303 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9304 | if test -n "$GCC"; then | |
9305 | case $host_os in | |
9306 | linux*) haveit=yes;; | |
9307 | esac | |
9308 | fi | |
9309 | fi | |
9310 | if test -z "$haveit"; then | |
9311 | haveit= | |
9312 | for x in $LDFLAGS $LIBICONV; do | |
9313 | ||
9314 | acl_save_prefix="$prefix" | |
9315 | prefix="$acl_final_prefix" | |
9316 | acl_save_exec_prefix="$exec_prefix" | |
9317 | exec_prefix="$acl_final_exec_prefix" | |
9318 | eval x=\"$x\" | |
9319 | exec_prefix="$acl_save_exec_prefix" | |
9320 | prefix="$acl_save_prefix" | |
9321 | ||
9322 | if test "X$x" = "X-L$additional_libdir"; then | |
9323 | haveit=yes | |
9324 | break | |
9325 | fi | |
9326 | done | |
9327 | if test -z "$haveit"; then | |
9328 | if test -d "$additional_libdir"; then | |
9329 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9330 | fi | |
9331 | fi | |
9332 | haveit= | |
9333 | for x in $LDFLAGS $LTLIBICONV; do | |
9334 | ||
9335 | acl_save_prefix="$prefix" | |
9336 | prefix="$acl_final_prefix" | |
9337 | acl_save_exec_prefix="$exec_prefix" | |
9338 | exec_prefix="$acl_final_exec_prefix" | |
9339 | eval x=\"$x\" | |
9340 | exec_prefix="$acl_save_exec_prefix" | |
9341 | prefix="$acl_save_prefix" | |
9342 | ||
9343 | if test "X$x" = "X-L$additional_libdir"; then | |
9344 | haveit=yes | |
9345 | break | |
9346 | fi | |
9347 | done | |
9348 | if test -z "$haveit"; then | |
9349 | if test -d "$additional_libdir"; then | |
9350 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9351 | fi | |
9352 | fi | |
9353 | fi | |
9354 | fi | |
9355 | ;; | |
9356 | -R*) | |
9357 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9358 | if test "$enable_rpath" != no; then | |
9359 | haveit= | |
9360 | for x in $rpathdirs; do | |
9361 | if test "X$x" = "X$dir"; then | |
9362 | haveit=yes | |
9363 | break | |
9364 | fi | |
9365 | done | |
9366 | if test -z "$haveit"; then | |
9367 | rpathdirs="$rpathdirs $dir" | |
9368 | fi | |
9369 | haveit= | |
9370 | for x in $ltrpathdirs; do | |
9371 | if test "X$x" = "X$dir"; then | |
9372 | haveit=yes | |
9373 | break | |
9374 | fi | |
9375 | done | |
9376 | if test -z "$haveit"; then | |
9377 | ltrpathdirs="$ltrpathdirs $dir" | |
9378 | fi | |
9379 | fi | |
9380 | ;; | |
9381 | -l*) | |
9382 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9383 | ;; | |
9384 | *.la) | |
9385 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9386 | ;; | |
9387 | *) | |
9388 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9389 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9390 | ;; | |
9391 | esac | |
9392 | done | |
9393 | fi | |
9394 | else | |
9395 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9396 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9397 | fi | |
9398 | fi | |
9399 | fi | |
9400 | done | |
9401 | done | |
9402 | if test "X$rpathdirs" != "X"; then | |
9403 | if test -n "$hardcode_libdir_separator"; then | |
9404 | alldirs= | |
9405 | for found_dir in $rpathdirs; do | |
9406 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9407 | done | |
9408 | acl_save_libdir="$libdir" | |
9409 | libdir="$alldirs" | |
9410 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9411 | libdir="$acl_save_libdir" | |
9412 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9413 | else | |
9414 | for found_dir in $rpathdirs; do | |
9415 | acl_save_libdir="$libdir" | |
9416 | libdir="$found_dir" | |
9417 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9418 | libdir="$acl_save_libdir" | |
9419 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9420 | done | |
9421 | fi | |
9422 | fi | |
9423 | if test "X$ltrpathdirs" != "X"; then | |
9424 | for found_dir in $ltrpathdirs; do | |
9425 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9426 | done | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
9443 | stdlib.h string.h unistd.h sys/param.h | |
9444 | do | |
3185942a JA |
9445 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9447 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9448 | $as_echo_n "checking for $ac_header... " >&6; } | |
9449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9450 | $as_echo_n "(cached) " >&6 | |
9451 | fi | |
9452 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9453 | $as_echo "$as_val"'` | |
9454 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9455 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
9456 | else |
9457 | # Is the header compilable? | |
3185942a JA |
9458 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9459 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 9460 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
9461 | /* confdefs.h. */ |
9462 | _ACEOF | |
9463 | cat confdefs.h >>conftest.$ac_ext | |
9464 | cat >>conftest.$ac_ext <<_ACEOF | |
9465 | /* end confdefs.h. */ | |
b80f6443 JA |
9466 | $ac_includes_default |
9467 | #include <$ac_header> | |
9468 | _ACEOF | |
9469 | rm -f conftest.$ac_objext | |
3185942a JA |
9470 | if { (ac_try="$ac_compile" |
9471 | case "(($ac_try" in | |
9472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9473 | *) ac_try_echo=$ac_try;; | |
9474 | esac | |
9475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9476 | $as_echo "$ac_try_echo") >&5 | |
9477 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 9478 | ac_status=$? |
0628567a JA |
9479 | grep -v '^ *+' conftest.er1 >conftest.err |
9480 | rm -f conftest.er1 | |
9481 | cat conftest.err >&5 | |
3185942a JA |
9482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9483 | (exit $ac_status); } && { | |
9484 | test -z "$ac_c_werror_flag" || | |
9485 | test ! -s conftest.err | |
9486 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
9487 | ac_header_compiler=yes |
9488 | else | |
3185942a | 9489 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9490 | sed 's/^/| /' conftest.$ac_ext >&5 |
9491 | ||
3185942a | 9492 | ac_header_compiler=no |
b80f6443 | 9493 | fi |
3185942a JA |
9494 | |
9495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9496 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9497 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
9498 | |
9499 | # Is the header present? | |
3185942a JA |
9500 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9501 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 9502 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
9503 | /* confdefs.h. */ |
9504 | _ACEOF | |
9505 | cat confdefs.h >>conftest.$ac_ext | |
9506 | cat >>conftest.$ac_ext <<_ACEOF | |
9507 | /* end confdefs.h. */ | |
b80f6443 JA |
9508 | #include <$ac_header> |
9509 | _ACEOF | |
3185942a JA |
9510 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9511 | case "(($ac_try" in | |
9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9513 | *) ac_try_echo=$ac_try;; | |
9514 | esac | |
9515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9516 | $as_echo "$ac_try_echo") >&5 | |
9517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 9518 | ac_status=$? |
0628567a | 9519 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
9520 | rm -f conftest.er1 |
9521 | cat conftest.err >&5 | |
3185942a JA |
9522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9523 | (exit $ac_status); } >/dev/null && { | |
9524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9525 | test ! -s conftest.err | |
9526 | }; then | |
b80f6443 JA |
9527 | ac_header_preproc=yes |
9528 | else | |
3185942a | 9529 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9530 | sed 's/^/| /' conftest.$ac_ext >&5 |
9531 | ||
b80f6443 JA |
9532 | ac_header_preproc=no |
9533 | fi | |
3185942a | 9534 | |
b80f6443 | 9535 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
9536 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9537 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
9538 | |
9539 | # So? What about this header? | |
0628567a JA |
9540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9541 | yes:no: ) | |
3185942a JA |
9542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9543 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9545 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
9546 | ac_header_preproc=yes |
9547 | ;; | |
9548 | no:yes:* ) | |
3185942a JA |
9549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9550 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9552 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9554 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9556 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9558 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9560 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9561 | ( cat <<\_ASBOX | |
0628567a JA |
9562 | ## ------------------------------- ## |
9563 | ## Report this to bug-bash@gnu.org ## | |
9564 | ## ------------------------------- ## | |
9565 | _ASBOX | |
3185942a | 9566 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 9567 | ;; |
b80f6443 | 9568 | esac |
3185942a JA |
9569 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9570 | $as_echo_n "checking for $ac_header... " >&6; } | |
9571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9572 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 9573 | else |
0628567a | 9574 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 9575 | fi |
3185942a JA |
9576 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9577 | $as_echo "$as_val"'` | |
9578 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9579 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
9580 | |
9581 | fi | |
3185942a JA |
9582 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9583 | $as_echo "$as_val"'` | |
9584 | if test "x$as_val" = x""yes; then | |
b80f6443 | 9585 | cat >>confdefs.h <<_ACEOF |
3185942a | 9586 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
9587 | _ACEOF |
9588 | ||
9589 | fi | |
9590 | ||
f73dda09 JA |
9591 | done |
9592 | ||
b80f6443 JA |
9593 | |
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
3185942a | 9613 | |
b80f6443 JA |
9614 | |
9615 | ||
9616 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
3185942a | 9617 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ |
b80f6443 JA |
9618 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ |
9619 | __fsetlocking | |
f73dda09 | 9620 | do |
3185942a JA |
9621 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9622 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9623 | $as_echo_n "checking for $ac_func... " >&6; } | |
9624 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9625 | $as_echo_n "(cached) " >&6 | |
f73dda09 JA |
9626 | else |
9627 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9628 | /* confdefs.h. */ |
9629 | _ACEOF | |
9630 | cat confdefs.h >>conftest.$ac_ext | |
9631 | cat >>conftest.$ac_ext <<_ACEOF | |
9632 | /* end confdefs.h. */ | |
9633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9635 | #define $ac_func innocuous_$ac_func | |
9636 | ||
f73dda09 | 9637 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
9638 | which can conflict with char $ac_func (); below. |
9639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9640 | <limits.h> exists even on freestanding compilers. */ | |
9641 | ||
9642 | #ifdef __STDC__ | |
9643 | # include <limits.h> | |
9644 | #else | |
9645 | # include <assert.h> | |
9646 | #endif | |
9647 | ||
9648 | #undef $ac_func | |
9649 | ||
3185942a JA |
9650 | /* Override any GCC internal prototype to avoid an error. |
9651 | Use char because int might match the return type of a GCC | |
9652 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
9653 | #ifdef __cplusplus |
9654 | extern "C" | |
9655 | #endif | |
f73dda09 | 9656 | char $ac_func (); |
f73dda09 JA |
9657 | /* The GNU C library defines this for functions which it implements |
9658 | to always fail with ENOSYS. Some functions are actually named | |
9659 | something starting with __ and the normal name is an alias. */ | |
3185942a | 9660 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 9661 | choke me |
f73dda09 JA |
9662 | #endif |
9663 | ||
0628567a JA |
9664 | int |
9665 | main () | |
9666 | { | |
3185942a | 9667 | return $ac_func (); |
f73dda09 JA |
9668 | ; |
9669 | return 0; | |
9670 | } | |
9671 | _ACEOF | |
9672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9673 | if { (ac_try="$ac_link" |
9674 | case "(($ac_try" in | |
9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9676 | *) ac_try_echo=$ac_try;; | |
9677 | esac | |
9678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9679 | $as_echo "$ac_try_echo") >&5 | |
9680 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9681 | ac_status=$? |
0628567a JA |
9682 | grep -v '^ *+' conftest.er1 >conftest.err |
9683 | rm -f conftest.er1 | |
9684 | cat conftest.err >&5 | |
3185942a JA |
9685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9686 | (exit $ac_status); } && { | |
9687 | test -z "$ac_c_werror_flag" || | |
9688 | test ! -s conftest.err | |
9689 | } && test -s conftest$ac_exeext && { | |
9690 | test "$cross_compiling" = yes || | |
9691 | $as_test_x conftest$ac_exeext | |
9692 | }; then | |
f73dda09 JA |
9693 | eval "$as_ac_var=yes" |
9694 | else | |
3185942a | 9695 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9696 | sed 's/^/| /' conftest.$ac_ext >&5 |
9697 | ||
3185942a | 9698 | eval "$as_ac_var=no" |
f73dda09 | 9699 | fi |
3185942a JA |
9700 | |
9701 | rm -rf conftest.dSYM | |
9702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9703 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 9704 | fi |
3185942a JA |
9705 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9706 | $as_echo "$as_val"'` | |
9707 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9708 | $as_echo "$ac_res" >&6; } | |
9709 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9710 | $as_echo "$as_val"'` | |
9711 | if test "x$as_val" = x""yes; then | |
b80f6443 | 9712 | cat >>confdefs.h <<_ACEOF |
3185942a | 9713 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 9714 | _ACEOF |
f73dda09 JA |
9715 | |
9716 | fi | |
9717 | done | |
9718 | ||
b80f6443 JA |
9719 | |
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | am_save_CPPFLAGS="$CPPFLAGS" | |
9726 | ||
9727 | for element in $INCICONV; do | |
9728 | haveit= | |
9729 | for x in $CPPFLAGS; do | |
9730 | ||
9731 | acl_save_prefix="$prefix" | |
9732 | prefix="$acl_final_prefix" | |
9733 | acl_save_exec_prefix="$exec_prefix" | |
9734 | exec_prefix="$acl_final_exec_prefix" | |
9735 | eval x=\"$x\" | |
9736 | exec_prefix="$acl_save_exec_prefix" | |
9737 | prefix="$acl_save_prefix" | |
9738 | ||
9739 | if test "X$x" = "X$element"; then | |
9740 | haveit=yes | |
9741 | break | |
9742 | fi | |
9743 | done | |
9744 | if test -z "$haveit"; then | |
9745 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9746 | fi | |
9747 | done | |
9748 | ||
9749 | ||
3185942a JA |
9750 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
9751 | $as_echo_n "checking for iconv... " >&6; } | |
b80f6443 | 9752 | if test "${am_cv_func_iconv+set}" = set; then |
3185942a | 9753 | $as_echo_n "(cached) " >&6 |
f73dda09 | 9754 | else |
f73dda09 | 9755 | |
b80f6443 JA |
9756 | am_cv_func_iconv="no, consider installing GNU libiconv" |
9757 | am_cv_lib_iconv=no | |
9758 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9759 | /* confdefs.h. */ |
9760 | _ACEOF | |
9761 | cat confdefs.h >>conftest.$ac_ext | |
9762 | cat >>conftest.$ac_ext <<_ACEOF | |
9763 | /* end confdefs.h. */ | |
b80f6443 JA |
9764 | #include <stdlib.h> |
9765 | #include <iconv.h> | |
f73dda09 JA |
9766 | int |
9767 | main () | |
9768 | { | |
b80f6443 JA |
9769 | iconv_t cd = iconv_open("",""); |
9770 | iconv(cd,NULL,NULL,NULL,NULL); | |
9771 | iconv_close(cd); | |
f73dda09 JA |
9772 | ; |
9773 | return 0; | |
9774 | } | |
9775 | _ACEOF | |
9776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9777 | if { (ac_try="$ac_link" |
9778 | case "(($ac_try" in | |
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9780 | *) ac_try_echo=$ac_try;; | |
9781 | esac | |
9782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9783 | $as_echo "$ac_try_echo") >&5 | |
9784 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9785 | ac_status=$? |
0628567a JA |
9786 | grep -v '^ *+' conftest.er1 >conftest.err |
9787 | rm -f conftest.er1 | |
9788 | cat conftest.err >&5 | |
3185942a JA |
9789 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9790 | (exit $ac_status); } && { | |
9791 | test -z "$ac_c_werror_flag" || | |
9792 | test ! -s conftest.err | |
9793 | } && test -s conftest$ac_exeext && { | |
9794 | test "$cross_compiling" = yes || | |
9795 | $as_test_x conftest$ac_exeext | |
9796 | }; then | |
b80f6443 | 9797 | am_cv_func_iconv=yes |
f73dda09 | 9798 | else |
3185942a | 9799 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9800 | sed 's/^/| /' conftest.$ac_ext >&5 |
9801 | ||
3185942a | 9802 | |
f73dda09 | 9803 | fi |
3185942a JA |
9804 | |
9805 | rm -rf conftest.dSYM | |
9806 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9807 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
9808 | if test "$am_cv_func_iconv" != yes; then |
9809 | am_save_LIBS="$LIBS" | |
9810 | LIBS="$LIBS $LIBICONV" | |
9811 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9812 | /* confdefs.h. */ |
9813 | _ACEOF | |
9814 | cat confdefs.h >>conftest.$ac_ext | |
9815 | cat >>conftest.$ac_ext <<_ACEOF | |
9816 | /* end confdefs.h. */ | |
b80f6443 JA |
9817 | #include <stdlib.h> |
9818 | #include <iconv.h> | |
f73dda09 JA |
9819 | int |
9820 | main () | |
9821 | { | |
b80f6443 JA |
9822 | iconv_t cd = iconv_open("",""); |
9823 | iconv(cd,NULL,NULL,NULL,NULL); | |
9824 | iconv_close(cd); | |
f73dda09 JA |
9825 | ; |
9826 | return 0; | |
9827 | } | |
9828 | _ACEOF | |
9829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
9830 | if { (ac_try="$ac_link" |
9831 | case "(($ac_try" in | |
9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9833 | *) ac_try_echo=$ac_try;; | |
9834 | esac | |
9835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9836 | $as_echo "$ac_try_echo") >&5 | |
9837 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9838 | ac_status=$? |
0628567a JA |
9839 | grep -v '^ *+' conftest.er1 >conftest.err |
9840 | rm -f conftest.er1 | |
9841 | cat conftest.err >&5 | |
3185942a JA |
9842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9843 | (exit $ac_status); } && { | |
9844 | test -z "$ac_c_werror_flag" || | |
9845 | test ! -s conftest.err | |
9846 | } && test -s conftest$ac_exeext && { | |
9847 | test "$cross_compiling" = yes || | |
9848 | $as_test_x conftest$ac_exeext | |
9849 | }; then | |
b80f6443 JA |
9850 | am_cv_lib_iconv=yes |
9851 | am_cv_func_iconv=yes | |
f73dda09 | 9852 | else |
3185942a | 9853 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9854 | sed 's/^/| /' conftest.$ac_ext >&5 |
9855 | ||
3185942a | 9856 | |
f73dda09 | 9857 | fi |
3185942a JA |
9858 | |
9859 | rm -rf conftest.dSYM | |
9860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 9861 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
9862 | LIBS="$am_save_LIBS" |
9863 | fi | |
9864 | ||
f73dda09 | 9865 | fi |
3185942a JA |
9866 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
9867 | $as_echo "$am_cv_func_iconv" >&6; } | |
b80f6443 | 9868 | if test "$am_cv_func_iconv" = yes; then |
f73dda09 | 9869 | |
b80f6443 JA |
9870 | cat >>confdefs.h <<\_ACEOF |
9871 | #define HAVE_ICONV 1 | |
9872 | _ACEOF | |
f73dda09 | 9873 | |
b80f6443 JA |
9874 | fi |
9875 | if test "$am_cv_lib_iconv" = yes; then | |
3185942a JA |
9876 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
9877 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9878 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
9879 | $as_echo "$LIBICONV" >&6; } | |
b80f6443 JA |
9880 | else |
9881 | CPPFLAGS="$am_save_CPPFLAGS" | |
9882 | LIBICONV= | |
9883 | LTLIBICONV= | |
9884 | fi | |
9885 | ||
9886 | ||
9887 | ||
9888 | if test "$am_cv_func_iconv" = yes; then | |
3185942a JA |
9889 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
9890 | $as_echo_n "checking for iconv declaration... " >&6; } | |
b80f6443 | 9891 | if test "${am_cv_proto_iconv+set}" = set; then |
3185942a | 9892 | $as_echo_n "(cached) " >&6 |
f73dda09 | 9893 | else |
b80f6443 JA |
9894 | |
9895 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9896 | /* confdefs.h. */ |
9897 | _ACEOF | |
9898 | cat confdefs.h >>conftest.$ac_ext | |
9899 | cat >>conftest.$ac_ext <<_ACEOF | |
9900 | /* end confdefs.h. */ | |
b80f6443 JA |
9901 | |
9902 | #include <stdlib.h> | |
9903 | #include <iconv.h> | |
9904 | extern | |
f73dda09 | 9905 | #ifdef __cplusplus |
b80f6443 JA |
9906 | "C" |
9907 | #endif | |
9908 | #if defined(__STDC__) || defined(__cplusplus) | |
9909 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9910 | #else | |
9911 | size_t iconv(); | |
f73dda09 | 9912 | #endif |
f73dda09 JA |
9913 | |
9914 | int | |
9915 | main () | |
9916 | { | |
f73dda09 JA |
9917 | |
9918 | ; | |
9919 | return 0; | |
9920 | } | |
9921 | _ACEOF | |
b80f6443 | 9922 | rm -f conftest.$ac_objext |
3185942a JA |
9923 | if { (ac_try="$ac_compile" |
9924 | case "(($ac_try" in | |
9925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9926 | *) ac_try_echo=$ac_try;; | |
9927 | esac | |
9928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9929 | $as_echo "$ac_try_echo") >&5 | |
9930 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 9931 | ac_status=$? |
0628567a JA |
9932 | grep -v '^ *+' conftest.er1 >conftest.err |
9933 | rm -f conftest.er1 | |
9934 | cat conftest.err >&5 | |
3185942a JA |
9935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9936 | (exit $ac_status); } && { | |
9937 | test -z "$ac_c_werror_flag" || | |
9938 | test ! -s conftest.err | |
9939 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 9940 | am_cv_proto_iconv_arg1="" |
f73dda09 | 9941 | else |
3185942a | 9942 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
9943 | sed 's/^/| /' conftest.$ac_ext >&5 |
9944 | ||
3185942a | 9945 | am_cv_proto_iconv_arg1="const" |
f73dda09 | 9946 | fi |
3185942a JA |
9947 | |
9948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 9949 | 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 | 9950 | fi |
f73dda09 | 9951 | |
b80f6443 | 9952 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
3185942a | 9953 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
b80f6443 | 9954 | }$am_cv_proto_iconv" >&5 |
3185942a JA |
9955 | $as_echo "${ac_t:- |
9956 | }$am_cv_proto_iconv" >&6; } | |
f73dda09 | 9957 | |
b80f6443 JA |
9958 | cat >>confdefs.h <<_ACEOF |
9959 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9960 | _ACEOF | |
9961 | ||
9962 | fi | |
9963 | ||
9964 | ||
3185942a JA |
9965 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
9966 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
b80f6443 | 9967 | if test "${am_cv_langinfo_codeset+set}" = set; then |
3185942a | 9968 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
9969 | else |
9970 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
9971 | /* confdefs.h. */ |
9972 | _ACEOF | |
9973 | cat confdefs.h >>conftest.$ac_ext | |
9974 | cat >>conftest.$ac_ext <<_ACEOF | |
9975 | /* end confdefs.h. */ | |
b80f6443 | 9976 | #include <langinfo.h> |
f73dda09 JA |
9977 | int |
9978 | main () | |
9979 | { | |
b80f6443 | 9980 | char* cs = nl_langinfo(CODESET); |
f73dda09 JA |
9981 | ; |
9982 | return 0; | |
9983 | } | |
9984 | _ACEOF | |
b80f6443 | 9985 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
9986 | if { (ac_try="$ac_link" |
9987 | case "(($ac_try" in | |
9988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9989 | *) ac_try_echo=$ac_try;; | |
9990 | esac | |
9991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9992 | $as_echo "$ac_try_echo") >&5 | |
9993 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 9994 | ac_status=$? |
0628567a JA |
9995 | grep -v '^ *+' conftest.er1 >conftest.err |
9996 | rm -f conftest.er1 | |
9997 | cat conftest.err >&5 | |
3185942a JA |
9998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9999 | (exit $ac_status); } && { | |
10000 | test -z "$ac_c_werror_flag" || | |
10001 | test ! -s conftest.err | |
10002 | } && test -s conftest$ac_exeext && { | |
10003 | test "$cross_compiling" = yes || | |
10004 | $as_test_x conftest$ac_exeext | |
10005 | }; then | |
b80f6443 | 10006 | am_cv_langinfo_codeset=yes |
f73dda09 | 10007 | else |
3185942a | 10008 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10009 | sed 's/^/| /' conftest.$ac_ext >&5 |
10010 | ||
3185942a | 10011 | am_cv_langinfo_codeset=no |
f73dda09 | 10012 | fi |
3185942a JA |
10013 | |
10014 | rm -rf conftest.dSYM | |
10015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10016 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 10017 | |
f73dda09 | 10018 | fi |
3185942a JA |
10019 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
10020 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
b80f6443 | 10021 | if test $am_cv_langinfo_codeset = yes; then |
f73dda09 | 10022 | |
b80f6443 JA |
10023 | cat >>confdefs.h <<\_ACEOF |
10024 | #define HAVE_LANGINFO_CODESET 1 | |
10025 | _ACEOF | |
f73dda09 | 10026 | |
b80f6443 | 10027 | fi |
f73dda09 | 10028 | |
b80f6443 | 10029 | if test $ac_cv_header_locale_h = yes; then |
f73dda09 | 10030 | |
3185942a JA |
10031 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
10032 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
b80f6443 | 10033 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
3185942a | 10034 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
10035 | else |
10036 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10037 | /* confdefs.h. */ |
10038 | _ACEOF | |
10039 | cat confdefs.h >>conftest.$ac_ext | |
10040 | cat >>conftest.$ac_ext <<_ACEOF | |
10041 | /* end confdefs.h. */ | |
b80f6443 | 10042 | #include <locale.h> |
f73dda09 JA |
10043 | int |
10044 | main () | |
10045 | { | |
b80f6443 | 10046 | return LC_MESSAGES |
f73dda09 JA |
10047 | ; |
10048 | return 0; | |
10049 | } | |
10050 | _ACEOF | |
b80f6443 | 10051 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10052 | if { (ac_try="$ac_link" |
10053 | case "(($ac_try" in | |
10054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10055 | *) ac_try_echo=$ac_try;; | |
10056 | esac | |
10057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10058 | $as_echo "$ac_try_echo") >&5 | |
10059 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10060 | ac_status=$? |
0628567a JA |
10061 | grep -v '^ *+' conftest.er1 >conftest.err |
10062 | rm -f conftest.er1 | |
10063 | cat conftest.err >&5 | |
3185942a JA |
10064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10065 | (exit $ac_status); } && { | |
10066 | test -z "$ac_c_werror_flag" || | |
10067 | test ! -s conftest.err | |
10068 | } && test -s conftest$ac_exeext && { | |
10069 | test "$cross_compiling" = yes || | |
10070 | $as_test_x conftest$ac_exeext | |
10071 | }; then | |
b80f6443 | 10072 | am_cv_val_LC_MESSAGES=yes |
f73dda09 | 10073 | else |
3185942a | 10074 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10075 | sed 's/^/| /' conftest.$ac_ext >&5 |
10076 | ||
3185942a | 10077 | am_cv_val_LC_MESSAGES=no |
f73dda09 | 10078 | fi |
3185942a JA |
10079 | |
10080 | rm -rf conftest.dSYM | |
10081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10082 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 10083 | fi |
3185942a JA |
10084 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
10085 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
b80f6443 | 10086 | if test $am_cv_val_LC_MESSAGES = yes; then |
f73dda09 | 10087 | |
b80f6443 JA |
10088 | cat >>confdefs.h <<\_ACEOF |
10089 | #define HAVE_LC_MESSAGES 1 | |
10090 | _ACEOF | |
10091 | ||
10092 | fi | |
10093 | ||
10094 | fi | |
f73dda09 | 10095 | |
b80f6443 JA |
10096 | for ac_prog in bison |
10097 | do | |
10098 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10099 | set dummy $ac_prog; ac_word=$2 | |
3185942a JA |
10100 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10101 | $as_echo_n "checking for $ac_word... " >&6; } | |
b80f6443 | 10102 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
3185942a | 10103 | $as_echo_n "(cached) " >&6 |
f73dda09 | 10104 | else |
b80f6443 JA |
10105 | if test -n "$INTLBISON"; then |
10106 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
10107 | else | |
10108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10109 | for as_dir in $PATH | |
10110 | do | |
10111 | IFS=$as_save_IFS | |
10112 | test -z "$as_dir" && as_dir=. | |
10113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3185942a | 10114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b80f6443 | 10115 | ac_cv_prog_INTLBISON="$ac_prog" |
3185942a | 10116 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b80f6443 JA |
10117 | break 2 |
10118 | fi | |
10119 | done | |
10120 | done | |
3185942a | 10121 | IFS=$as_save_IFS |
f73dda09 | 10122 | |
b80f6443 JA |
10123 | fi |
10124 | fi | |
10125 | INTLBISON=$ac_cv_prog_INTLBISON | |
10126 | if test -n "$INTLBISON"; then | |
3185942a JA |
10127 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
10128 | $as_echo "$INTLBISON" >&6; } | |
b80f6443 | 10129 | else |
3185942a JA |
10130 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10131 | $as_echo "no" >&6; } | |
f73dda09 JA |
10132 | fi |
10133 | ||
3185942a | 10134 | |
b80f6443 JA |
10135 | test -n "$INTLBISON" && break |
10136 | done | |
10137 | ||
10138 | if test -z "$INTLBISON"; then | |
10139 | ac_verc_fail=yes | |
10140 | else | |
3185942a JA |
10141 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
10142 | $as_echo_n "checking version of bison... " >&6; } | |
b80f6443 JA |
10143 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
10144 | case $ac_prog_version in | |
10145 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
10146 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
10147 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
10148 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
10149 | esac | |
3185942a JA |
10150 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
10151 | $as_echo "$ac_prog_version" >&6; } | |
b80f6443 JA |
10152 | fi |
10153 | if test $ac_verc_fail = yes; then | |
10154 | INTLBISON=: | |
10155 | fi | |
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
3185942a JA |
10172 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10173 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
10174 | # Check whether --enable-nls was given. | |
b80f6443 | 10175 | if test "${enable_nls+set}" = set; then |
3185942a | 10176 | enableval=$enable_nls; USE_NLS=$enableval |
b80f6443 JA |
10177 | else |
10178 | USE_NLS=yes | |
3185942a JA |
10179 | fi |
10180 | ||
10181 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10182 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 JA |
10183 | |
10184 | ||
10185 | ||
10186 | ||
10187 | BUILD_INCLUDED_LIBINTL=no | |
10188 | USE_INCLUDED_LIBINTL=no | |
10189 | ||
10190 | LIBINTL= | |
10191 | LTLIBINTL= | |
10192 | POSUB= | |
10193 | ||
10194 | if test "$USE_NLS" = "yes"; then | |
10195 | gt_use_preinstalled_gnugettext=no | |
10196 | ||
3185942a JA |
10197 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
10198 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b80f6443 | 10199 | |
3185942a | 10200 | # Check whether --with-included-gettext was given. |
b80f6443 | 10201 | if test "${with_included_gettext+set}" = set; then |
3185942a | 10202 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
b80f6443 JA |
10203 | else |
10204 | nls_cv_force_use_gnu_gettext=no | |
3185942a JA |
10205 | fi |
10206 | ||
10207 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
10208 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
b80f6443 JA |
10209 | |
10210 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
10211 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
3185942a JA |
10218 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
10219 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
b80f6443 | 10220 | if test "${gt_cv_func_gnugettext2_libc+set}" = set; then |
3185942a | 10221 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
10222 | else |
10223 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10224 | /* confdefs.h. */ |
10225 | _ACEOF | |
10226 | cat confdefs.h >>conftest.$ac_ext | |
10227 | cat >>conftest.$ac_ext <<_ACEOF | |
10228 | /* end confdefs.h. */ | |
b80f6443 JA |
10229 | #include <libintl.h> |
10230 | extern int _nl_msg_cat_cntr; | |
10231 | extern int *_nl_domain_bindings; | |
f73dda09 JA |
10232 | int |
10233 | main () | |
10234 | { | |
b80f6443 JA |
10235 | bindtextdomain ("", ""); |
10236 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | |
f73dda09 JA |
10237 | ; |
10238 | return 0; | |
10239 | } | |
10240 | _ACEOF | |
b80f6443 | 10241 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10242 | if { (ac_try="$ac_link" |
10243 | case "(($ac_try" in | |
10244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10245 | *) ac_try_echo=$ac_try;; | |
10246 | esac | |
10247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10248 | $as_echo "$ac_try_echo") >&5 | |
10249 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10250 | ac_status=$? |
0628567a JA |
10251 | grep -v '^ *+' conftest.er1 >conftest.err |
10252 | rm -f conftest.er1 | |
10253 | cat conftest.err >&5 | |
3185942a JA |
10254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10255 | (exit $ac_status); } && { | |
10256 | test -z "$ac_c_werror_flag" || | |
10257 | test ! -s conftest.err | |
10258 | } && test -s conftest$ac_exeext && { | |
10259 | test "$cross_compiling" = yes || | |
10260 | $as_test_x conftest$ac_exeext | |
10261 | }; then | |
b80f6443 | 10262 | gt_cv_func_gnugettext2_libc=yes |
f73dda09 | 10263 | else |
3185942a | 10264 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10265 | sed 's/^/| /' conftest.$ac_ext >&5 |
10266 | ||
3185942a | 10267 | gt_cv_func_gnugettext2_libc=no |
f73dda09 | 10268 | fi |
3185942a JA |
10269 | |
10270 | rm -rf conftest.dSYM | |
10271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10272 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 10273 | fi |
3185942a JA |
10274 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 |
10275 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
f73dda09 | 10276 | |
b80f6443 | 10277 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then |
f73dda09 | 10278 | |
f73dda09 | 10279 | |
f73dda09 | 10280 | |
b80f6443 JA |
10281 | use_additional=yes |
10282 | ||
10283 | acl_save_prefix="$prefix" | |
10284 | prefix="$acl_final_prefix" | |
10285 | acl_save_exec_prefix="$exec_prefix" | |
10286 | exec_prefix="$acl_final_exec_prefix" | |
10287 | ||
10288 | eval additional_includedir=\"$includedir\" | |
10289 | eval additional_libdir=\"$libdir\" | |
10290 | ||
10291 | exec_prefix="$acl_save_exec_prefix" | |
10292 | prefix="$acl_save_prefix" | |
10293 | ||
10294 | ||
3185942a | 10295 | # Check whether --with-libintl-prefix was given. |
b80f6443 | 10296 | if test "${with_libintl_prefix+set}" = set; then |
3185942a | 10297 | withval=$with_libintl_prefix; |
b80f6443 JA |
10298 | if test "X$withval" = "Xno"; then |
10299 | use_additional=no | |
10300 | else | |
10301 | if test "X$withval" = "X"; then | |
10302 | ||
10303 | acl_save_prefix="$prefix" | |
10304 | prefix="$acl_final_prefix" | |
10305 | acl_save_exec_prefix="$exec_prefix" | |
10306 | exec_prefix="$acl_final_exec_prefix" | |
10307 | ||
10308 | eval additional_includedir=\"$includedir\" | |
10309 | eval additional_libdir=\"$libdir\" | |
10310 | ||
10311 | exec_prefix="$acl_save_exec_prefix" | |
10312 | prefix="$acl_save_prefix" | |
10313 | ||
10314 | else | |
10315 | additional_includedir="$withval/include" | |
10316 | additional_libdir="$withval/lib" | |
10317 | fi | |
10318 | fi | |
10319 | ||
3185942a JA |
10320 | fi |
10321 | ||
b80f6443 JA |
10322 | LIBINTL= |
10323 | LTLIBINTL= | |
10324 | INCINTL= | |
10325 | rpathdirs= | |
10326 | ltrpathdirs= | |
10327 | names_already_handled= | |
10328 | names_next_round='intl ' | |
10329 | while test -n "$names_next_round"; do | |
10330 | names_this_round="$names_next_round" | |
10331 | names_next_round= | |
10332 | for name in $names_this_round; do | |
10333 | already_handled= | |
10334 | for n in $names_already_handled; do | |
10335 | if test "$n" = "$name"; then | |
10336 | already_handled=yes | |
10337 | break | |
10338 | fi | |
10339 | done | |
10340 | if test -z "$already_handled"; then | |
10341 | names_already_handled="$names_already_handled $name" | |
10342 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10343 | eval value=\"\$HAVE_LIB$uppername\" | |
10344 | if test -n "$value"; then | |
10345 | if test "$value" = yes; then | |
10346 | eval value=\"\$LIB$uppername\" | |
10347 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10348 | eval value=\"\$LTLIB$uppername\" | |
10349 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10350 | else | |
10351 | : | |
10352 | fi | |
10353 | else | |
10354 | found_dir= | |
10355 | found_la= | |
10356 | found_so= | |
10357 | found_a= | |
10358 | if test $use_additional = yes; then | |
10359 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10360 | found_dir="$additional_libdir" | |
10361 | found_so="$additional_libdir/lib$name.$shlibext" | |
10362 | if test -f "$additional_libdir/lib$name.la"; then | |
10363 | found_la="$additional_libdir/lib$name.la" | |
10364 | fi | |
10365 | else | |
10366 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10367 | found_dir="$additional_libdir" | |
10368 | found_a="$additional_libdir/lib$name.$libext" | |
10369 | if test -f "$additional_libdir/lib$name.la"; then | |
10370 | found_la="$additional_libdir/lib$name.la" | |
10371 | fi | |
10372 | fi | |
10373 | fi | |
10374 | fi | |
10375 | if test "X$found_dir" = "X"; then | |
10376 | for x in $LDFLAGS $LTLIBINTL; do | |
10377 | ||
10378 | acl_save_prefix="$prefix" | |
10379 | prefix="$acl_final_prefix" | |
10380 | acl_save_exec_prefix="$exec_prefix" | |
10381 | exec_prefix="$acl_final_exec_prefix" | |
10382 | eval x=\"$x\" | |
10383 | exec_prefix="$acl_save_exec_prefix" | |
10384 | prefix="$acl_save_prefix" | |
10385 | ||
10386 | case "$x" in | |
10387 | -L*) | |
10388 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10389 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10390 | found_dir="$dir" | |
10391 | found_so="$dir/lib$name.$shlibext" | |
10392 | if test -f "$dir/lib$name.la"; then | |
10393 | found_la="$dir/lib$name.la" | |
10394 | fi | |
10395 | else | |
10396 | if test -f "$dir/lib$name.$libext"; then | |
10397 | found_dir="$dir" | |
10398 | found_a="$dir/lib$name.$libext" | |
10399 | if test -f "$dir/lib$name.la"; then | |
10400 | found_la="$dir/lib$name.la" | |
10401 | fi | |
10402 | fi | |
10403 | fi | |
10404 | ;; | |
10405 | esac | |
10406 | if test "X$found_dir" != "X"; then | |
10407 | break | |
10408 | fi | |
10409 | done | |
10410 | fi | |
10411 | if test "X$found_dir" != "X"; then | |
10412 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10413 | if test "X$found_so" != "X"; then | |
10414 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10415 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10416 | else | |
10417 | haveit= | |
10418 | for x in $ltrpathdirs; do | |
10419 | if test "X$x" = "X$found_dir"; then | |
10420 | haveit=yes | |
10421 | break | |
10422 | fi | |
10423 | done | |
10424 | if test -z "$haveit"; then | |
10425 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10426 | fi | |
10427 | if test "$hardcode_direct" = yes; then | |
10428 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10429 | else | |
10430 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10431 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10432 | haveit= | |
10433 | for x in $rpathdirs; do | |
10434 | if test "X$x" = "X$found_dir"; then | |
10435 | haveit=yes | |
10436 | break | |
10437 | fi | |
10438 | done | |
10439 | if test -z "$haveit"; then | |
10440 | rpathdirs="$rpathdirs $found_dir" | |
10441 | fi | |
10442 | else | |
10443 | haveit= | |
10444 | for x in $LDFLAGS $LIBINTL; do | |
10445 | ||
10446 | acl_save_prefix="$prefix" | |
10447 | prefix="$acl_final_prefix" | |
10448 | acl_save_exec_prefix="$exec_prefix" | |
10449 | exec_prefix="$acl_final_exec_prefix" | |
10450 | eval x=\"$x\" | |
10451 | exec_prefix="$acl_save_exec_prefix" | |
10452 | prefix="$acl_save_prefix" | |
10453 | ||
10454 | if test "X$x" = "X-L$found_dir"; then | |
10455 | haveit=yes | |
10456 | break | |
10457 | fi | |
10458 | done | |
10459 | if test -z "$haveit"; then | |
10460 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10461 | fi | |
10462 | if test "$hardcode_minus_L" != no; then | |
10463 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10464 | else | |
10465 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10466 | fi | |
10467 | fi | |
10468 | fi | |
10469 | fi | |
10470 | else | |
10471 | if test "X$found_a" != "X"; then | |
10472 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10473 | else | |
10474 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10475 | fi | |
10476 | fi | |
10477 | additional_includedir= | |
10478 | case "$found_dir" in | |
10479 | */lib | */lib/) | |
10480 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10481 | additional_includedir="$basedir/include" | |
10482 | ;; | |
10483 | esac | |
10484 | if test "X$additional_includedir" != "X"; then | |
10485 | if test "X$additional_includedir" != "X/usr/include"; then | |
10486 | haveit= | |
10487 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10488 | if test -n "$GCC"; then | |
10489 | case $host_os in | |
10490 | linux*) haveit=yes;; | |
10491 | esac | |
10492 | fi | |
10493 | fi | |
10494 | if test -z "$haveit"; then | |
10495 | for x in $CPPFLAGS $INCINTL; do | |
10496 | ||
10497 | acl_save_prefix="$prefix" | |
10498 | prefix="$acl_final_prefix" | |
10499 | acl_save_exec_prefix="$exec_prefix" | |
10500 | exec_prefix="$acl_final_exec_prefix" | |
10501 | eval x=\"$x\" | |
10502 | exec_prefix="$acl_save_exec_prefix" | |
10503 | prefix="$acl_save_prefix" | |
10504 | ||
10505 | if test "X$x" = "X-I$additional_includedir"; then | |
10506 | haveit=yes | |
10507 | break | |
10508 | fi | |
10509 | done | |
10510 | if test -z "$haveit"; then | |
10511 | if test -d "$additional_includedir"; then | |
10512 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10513 | fi | |
10514 | fi | |
10515 | fi | |
10516 | fi | |
10517 | fi | |
10518 | if test -n "$found_la"; then | |
10519 | save_libdir="$libdir" | |
10520 | case "$found_la" in | |
10521 | */* | *\\*) . "$found_la" ;; | |
10522 | *) . "./$found_la" ;; | |
10523 | esac | |
10524 | libdir="$save_libdir" | |
10525 | for dep in $dependency_libs; do | |
10526 | case "$dep" in | |
10527 | -L*) | |
10528 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10529 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10530 | haveit= | |
10531 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10532 | if test -n "$GCC"; then | |
10533 | case $host_os in | |
10534 | linux*) haveit=yes;; | |
10535 | esac | |
10536 | fi | |
10537 | fi | |
10538 | if test -z "$haveit"; then | |
10539 | haveit= | |
10540 | for x in $LDFLAGS $LIBINTL; do | |
10541 | ||
10542 | acl_save_prefix="$prefix" | |
10543 | prefix="$acl_final_prefix" | |
10544 | acl_save_exec_prefix="$exec_prefix" | |
10545 | exec_prefix="$acl_final_exec_prefix" | |
10546 | eval x=\"$x\" | |
10547 | exec_prefix="$acl_save_exec_prefix" | |
10548 | prefix="$acl_save_prefix" | |
10549 | ||
10550 | if test "X$x" = "X-L$additional_libdir"; then | |
10551 | haveit=yes | |
10552 | break | |
10553 | fi | |
10554 | done | |
10555 | if test -z "$haveit"; then | |
10556 | if test -d "$additional_libdir"; then | |
10557 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
10558 | fi | |
10559 | fi | |
10560 | haveit= | |
10561 | for x in $LDFLAGS $LTLIBINTL; do | |
10562 | ||
10563 | acl_save_prefix="$prefix" | |
10564 | prefix="$acl_final_prefix" | |
10565 | acl_save_exec_prefix="$exec_prefix" | |
10566 | exec_prefix="$acl_final_exec_prefix" | |
10567 | eval x=\"$x\" | |
10568 | exec_prefix="$acl_save_exec_prefix" | |
10569 | prefix="$acl_save_prefix" | |
10570 | ||
10571 | if test "X$x" = "X-L$additional_libdir"; then | |
10572 | haveit=yes | |
10573 | break | |
10574 | fi | |
10575 | done | |
10576 | if test -z "$haveit"; then | |
10577 | if test -d "$additional_libdir"; then | |
10578 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
10579 | fi | |
10580 | fi | |
10581 | fi | |
10582 | fi | |
10583 | ;; | |
10584 | -R*) | |
10585 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10586 | if test "$enable_rpath" != no; then | |
10587 | haveit= | |
10588 | for x in $rpathdirs; do | |
10589 | if test "X$x" = "X$dir"; then | |
10590 | haveit=yes | |
10591 | break | |
10592 | fi | |
10593 | done | |
10594 | if test -z "$haveit"; then | |
10595 | rpathdirs="$rpathdirs $dir" | |
10596 | fi | |
10597 | haveit= | |
10598 | for x in $ltrpathdirs; do | |
10599 | if test "X$x" = "X$dir"; then | |
10600 | haveit=yes | |
10601 | break | |
10602 | fi | |
10603 | done | |
10604 | if test -z "$haveit"; then | |
10605 | ltrpathdirs="$ltrpathdirs $dir" | |
10606 | fi | |
10607 | fi | |
10608 | ;; | |
10609 | -l*) | |
10610 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10611 | ;; | |
10612 | *.la) | |
10613 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10614 | ;; | |
10615 | *) | |
10616 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10617 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10618 | ;; | |
10619 | esac | |
10620 | done | |
10621 | fi | |
10622 | else | |
10623 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10624 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10625 | fi | |
10626 | fi | |
10627 | fi | |
10628 | done | |
10629 | done | |
10630 | if test "X$rpathdirs" != "X"; then | |
10631 | if test -n "$hardcode_libdir_separator"; then | |
10632 | alldirs= | |
10633 | for found_dir in $rpathdirs; do | |
10634 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10635 | done | |
10636 | acl_save_libdir="$libdir" | |
10637 | libdir="$alldirs" | |
10638 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10639 | libdir="$acl_save_libdir" | |
10640 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10641 | else | |
10642 | for found_dir in $rpathdirs; do | |
10643 | acl_save_libdir="$libdir" | |
10644 | libdir="$found_dir" | |
10645 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10646 | libdir="$acl_save_libdir" | |
10647 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10648 | done | |
10649 | fi | |
10650 | fi | |
10651 | if test "X$ltrpathdirs" != "X"; then | |
10652 | for found_dir in $ltrpathdirs; do | |
10653 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10654 | done | |
10655 | fi | |
10656 | ||
3185942a JA |
10657 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
10658 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
b80f6443 | 10659 | if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then |
3185942a | 10660 | $as_echo_n "(cached) " >&6 |
f73dda09 | 10661 | else |
b80f6443 JA |
10662 | gt_save_CPPFLAGS="$CPPFLAGS" |
10663 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10664 | gt_save_LIBS="$LIBS" | |
10665 | LIBS="$LIBS $LIBINTL" | |
10666 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10667 | /* confdefs.h. */ |
10668 | _ACEOF | |
10669 | cat confdefs.h >>conftest.$ac_ext | |
10670 | cat >>conftest.$ac_ext <<_ACEOF | |
10671 | /* end confdefs.h. */ | |
b80f6443 JA |
10672 | #include <libintl.h> |
10673 | extern int _nl_msg_cat_cntr; | |
10674 | extern | |
10675 | #ifdef __cplusplus | |
10676 | "C" | |
10677 | #endif | |
10678 | const char *_nl_expand_alias (); | |
f73dda09 JA |
10679 | int |
10680 | main () | |
10681 | { | |
b80f6443 JA |
10682 | bindtextdomain ("", ""); |
10683 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
f73dda09 JA |
10684 | ; |
10685 | return 0; | |
10686 | } | |
10687 | _ACEOF | |
b80f6443 | 10688 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10689 | if { (ac_try="$ac_link" |
10690 | case "(($ac_try" in | |
10691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10692 | *) ac_try_echo=$ac_try;; | |
10693 | esac | |
10694 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10695 | $as_echo "$ac_try_echo") >&5 | |
10696 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10697 | ac_status=$? |
0628567a JA |
10698 | grep -v '^ *+' conftest.er1 >conftest.err |
10699 | rm -f conftest.er1 | |
10700 | cat conftest.err >&5 | |
3185942a JA |
10701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10702 | (exit $ac_status); } && { | |
10703 | test -z "$ac_c_werror_flag" || | |
10704 | test ! -s conftest.err | |
10705 | } && test -s conftest$ac_exeext && { | |
10706 | test "$cross_compiling" = yes || | |
10707 | $as_test_x conftest$ac_exeext | |
10708 | }; then | |
b80f6443 | 10709 | gt_cv_func_gnugettext2_libintl=yes |
f73dda09 | 10710 | else |
3185942a | 10711 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10712 | sed 's/^/| /' conftest.$ac_ext >&5 |
10713 | ||
3185942a | 10714 | gt_cv_func_gnugettext2_libintl=no |
f73dda09 | 10715 | fi |
3185942a JA |
10716 | |
10717 | rm -rf conftest.dSYM | |
10718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10719 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
10720 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
10721 | LIBS="$LIBS $LIBICONV" | |
10722 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10723 | /* confdefs.h. */ |
10724 | _ACEOF | |
10725 | cat confdefs.h >>conftest.$ac_ext | |
10726 | cat >>conftest.$ac_ext <<_ACEOF | |
10727 | /* end confdefs.h. */ | |
b80f6443 JA |
10728 | #include <libintl.h> |
10729 | extern int _nl_msg_cat_cntr; | |
10730 | extern | |
10731 | #ifdef __cplusplus | |
10732 | "C" | |
10733 | #endif | |
10734 | const char *_nl_expand_alias (); | |
f73dda09 JA |
10735 | int |
10736 | main () | |
10737 | { | |
b80f6443 JA |
10738 | bindtextdomain ("", ""); |
10739 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
f73dda09 JA |
10740 | ; |
10741 | return 0; | |
10742 | } | |
10743 | _ACEOF | |
b80f6443 | 10744 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
10745 | if { (ac_try="$ac_link" |
10746 | case "(($ac_try" in | |
10747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10748 | *) ac_try_echo=$ac_try;; | |
10749 | esac | |
10750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10751 | $as_echo "$ac_try_echo") >&5 | |
10752 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 10753 | ac_status=$? |
0628567a JA |
10754 | grep -v '^ *+' conftest.er1 >conftest.err |
10755 | rm -f conftest.er1 | |
10756 | cat conftest.err >&5 | |
3185942a JA |
10757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10758 | (exit $ac_status); } && { | |
10759 | test -z "$ac_c_werror_flag" || | |
10760 | test ! -s conftest.err | |
10761 | } && test -s conftest$ac_exeext && { | |
10762 | test "$cross_compiling" = yes || | |
10763 | $as_test_x conftest$ac_exeext | |
10764 | }; then | |
b80f6443 JA |
10765 | LIBINTL="$LIBINTL $LIBICONV" |
10766 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
10767 | gt_cv_func_gnugettext2_libintl=yes | |
10768 | ||
f73dda09 | 10769 | else |
3185942a | 10770 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10771 | sed 's/^/| /' conftest.$ac_ext >&5 |
10772 | ||
3185942a | 10773 | |
f73dda09 | 10774 | fi |
3185942a JA |
10775 | |
10776 | rm -rf conftest.dSYM | |
10777 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 10778 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 JA |
10779 | fi |
10780 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10781 | LIBS="$gt_save_LIBS" | |
10782 | fi | |
3185942a JA |
10783 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 |
10784 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
b80f6443 JA |
10785 | fi |
10786 | ||
10787 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ | |
10788 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
10789 | && test "$PACKAGE" != gettext-runtime \ | |
10790 | && test "$PACKAGE" != gettext-tools; }; then | |
10791 | gt_use_preinstalled_gnugettext=yes | |
10792 | else | |
10793 | LIBINTL= | |
10794 | LTLIBINTL= | |
10795 | INCINTL= | |
10796 | fi | |
10797 | ||
10798 | ||
10799 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
10800 | nls_cv_use_gnu_gettext=yes | |
10801 | fi | |
10802 | fi | |
f73dda09 | 10803 | |
b80f6443 JA |
10804 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
10805 | BUILD_INCLUDED_LIBINTL=yes | |
10806 | USE_INCLUDED_LIBINTL=yes | |
10807 | LIBINTL="lib/intl/libintl.a $LIBICONV" | |
10808 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" | |
10809 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
10810 | fi | |
f73dda09 | 10811 | |
b80f6443 JA |
10812 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10813 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10814 | CATOBJEXT=.gmo | |
10815 | fi | |
f73dda09 | 10816 | |
f73dda09 | 10817 | |
b80f6443 JA |
10818 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10819 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10820 | ||
10821 | cat >>confdefs.h <<\_ACEOF | |
10822 | #define ENABLE_NLS 1 | |
10823 | _ACEOF | |
10824 | ||
10825 | else | |
10826 | USE_NLS=no | |
10827 | fi | |
10828 | fi | |
10829 | ||
3185942a JA |
10830 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
10831 | $as_echo_n "checking whether to use NLS... " >&6; } | |
10832 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10833 | $as_echo "$USE_NLS" >&6; } | |
b80f6443 | 10834 | if test "$USE_NLS" = "yes"; then |
3185942a JA |
10835 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
10836 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
b80f6443 JA |
10837 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
10838 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
10839 | gt_source="external libintl" | |
10840 | else | |
10841 | gt_source="libc" | |
10842 | fi | |
10843 | else | |
10844 | gt_source="included intl directory" | |
10845 | fi | |
3185942a JA |
10846 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
10847 | $as_echo "$gt_source" >&6; } | |
b80f6443 JA |
10848 | fi |
10849 | ||
10850 | if test "$USE_NLS" = "yes"; then | |
10851 | ||
10852 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
10853 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
3185942a JA |
10854 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
10855 | $as_echo_n "checking how to link with libintl... " >&6; } | |
10856 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
10857 | $as_echo "$LIBINTL" >&6; } | |
b80f6443 JA |
10858 | |
10859 | for element in $INCINTL; do | |
10860 | haveit= | |
10861 | for x in $CPPFLAGS; do | |
10862 | ||
10863 | acl_save_prefix="$prefix" | |
10864 | prefix="$acl_final_prefix" | |
10865 | acl_save_exec_prefix="$exec_prefix" | |
10866 | exec_prefix="$acl_final_exec_prefix" | |
10867 | eval x=\"$x\" | |
10868 | exec_prefix="$acl_save_exec_prefix" | |
10869 | prefix="$acl_save_prefix" | |
10870 | ||
10871 | if test "X$x" = "X$element"; then | |
10872 | haveit=yes | |
10873 | break | |
10874 | fi | |
10875 | done | |
10876 | if test -z "$haveit"; then | |
10877 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10878 | fi | |
10879 | done | |
10880 | ||
10881 | fi | |
10882 | ||
10883 | ||
10884 | cat >>confdefs.h <<\_ACEOF | |
10885 | #define HAVE_GETTEXT 1 | |
10886 | _ACEOF | |
10887 | ||
10888 | ||
10889 | cat >>confdefs.h <<\_ACEOF | |
10890 | #define HAVE_DCGETTEXT 1 | |
10891 | _ACEOF | |
10892 | ||
10893 | fi | |
10894 | ||
10895 | POSUB=po | |
10896 | fi | |
10897 | ||
10898 | ||
10899 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
10900 | BUILD_INCLUDED_LIBINTL=yes | |
10901 | fi | |
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | nls_cv_header_intl= | |
10908 | nls_cv_header_libgt= | |
10909 | ||
10910 | DATADIRNAME=share | |
10911 | ||
10912 | ||
10913 | INSTOBJEXT=.mo | |
10914 | ||
10915 | ||
10916 | GENCAT=gencat | |
10917 | ||
10918 | ||
10919 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
10920 | INTLOBJS="\$(GETTOBJS)" | |
10921 | fi | |
10922 | ||
10923 | ||
10924 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
10925 | ||
10926 | ||
10927 | ||
10928 | INTLLIBS="$LIBINTL" | |
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ac_header_dirent=no | |
10942 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
3185942a JA |
10943 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
10944 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
10945 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
10946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10947 | $as_echo_n "(cached) " >&6 | |
7117c2d2 JA |
10948 | else |
10949 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
10950 | /* confdefs.h. */ |
10951 | _ACEOF | |
10952 | cat confdefs.h >>conftest.$ac_ext | |
10953 | cat >>conftest.$ac_ext <<_ACEOF | |
10954 | /* end confdefs.h. */ | |
b80f6443 JA |
10955 | #include <sys/types.h> |
10956 | #include <$ac_hdr> | |
10957 | ||
7117c2d2 JA |
10958 | int |
10959 | main () | |
10960 | { | |
b80f6443 JA |
10961 | if ((DIR *) 0) |
10962 | return 0; | |
7117c2d2 JA |
10963 | ; |
10964 | return 0; | |
10965 | } | |
10966 | _ACEOF | |
10967 | rm -f conftest.$ac_objext | |
3185942a JA |
10968 | if { (ac_try="$ac_compile" |
10969 | case "(($ac_try" in | |
10970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10971 | *) ac_try_echo=$ac_try;; | |
10972 | esac | |
10973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10974 | $as_echo "$ac_try_echo") >&5 | |
10975 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 10976 | ac_status=$? |
0628567a JA |
10977 | grep -v '^ *+' conftest.er1 >conftest.err |
10978 | rm -f conftest.er1 | |
10979 | cat conftest.err >&5 | |
3185942a JA |
10980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10981 | (exit $ac_status); } && { | |
10982 | test -z "$ac_c_werror_flag" || | |
10983 | test ! -s conftest.err | |
10984 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 10985 | eval "$as_ac_Header=yes" |
7117c2d2 | 10986 | else |
3185942a | 10987 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
10988 | sed 's/^/| /' conftest.$ac_ext >&5 |
10989 | ||
3185942a | 10990 | eval "$as_ac_Header=no" |
7117c2d2 | 10991 | fi |
3185942a JA |
10992 | |
10993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 10994 | fi |
3185942a JA |
10995 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10996 | $as_echo "$as_val"'` | |
10997 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10998 | $as_echo "$ac_res" >&6; } | |
10999 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11000 | $as_echo "$as_val"'` | |
11001 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11002 | cat >>confdefs.h <<_ACEOF |
3185942a | 11003 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
b80f6443 | 11004 | _ACEOF |
7117c2d2 | 11005 | |
b80f6443 | 11006 | ac_header_dirent=$ac_hdr; break |
7117c2d2 JA |
11007 | fi |
11008 | ||
b80f6443 JA |
11009 | done |
11010 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11011 | if test $ac_header_dirent = dirent.h; then | |
3185942a JA |
11012 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11013 | $as_echo_n "checking for library containing opendir... " >&6; } | |
b80f6443 | 11014 | if test "${ac_cv_search_opendir+set}" = set; then |
3185942a | 11015 | $as_echo_n "(cached) " >&6 |
f73dda09 | 11016 | else |
b80f6443 | 11017 | ac_func_search_save_LIBS=$LIBS |
b80f6443 | 11018 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11019 | /* confdefs.h. */ |
11020 | _ACEOF | |
11021 | cat confdefs.h >>conftest.$ac_ext | |
11022 | cat >>conftest.$ac_ext <<_ACEOF | |
11023 | /* end confdefs.h. */ | |
f73dda09 | 11024 | |
3185942a JA |
11025 | /* Override any GCC internal prototype to avoid an error. |
11026 | Use char because int might match the return type of a GCC | |
11027 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
11028 | #ifdef __cplusplus |
11029 | extern "C" | |
f73dda09 | 11030 | #endif |
b80f6443 | 11031 | char opendir (); |
f73dda09 JA |
11032 | int |
11033 | main () | |
11034 | { | |
3185942a | 11035 | return opendir (); |
f73dda09 JA |
11036 | ; |
11037 | return 0; | |
11038 | } | |
11039 | _ACEOF | |
3185942a JA |
11040 | for ac_lib in '' dir; do |
11041 | if test -z "$ac_lib"; then | |
11042 | ac_res="none required" | |
11043 | else | |
11044 | ac_res=-l$ac_lib | |
11045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11046 | fi | |
11047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11048 | if { (ac_try="$ac_link" | |
11049 | case "(($ac_try" in | |
11050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11051 | *) ac_try_echo=$ac_try;; | |
11052 | esac | |
11053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11054 | $as_echo "$ac_try_echo") >&5 | |
11055 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 11056 | ac_status=$? |
0628567a JA |
11057 | grep -v '^ *+' conftest.er1 >conftest.err |
11058 | rm -f conftest.er1 | |
11059 | cat conftest.err >&5 | |
3185942a JA |
11060 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11061 | (exit $ac_status); } && { | |
11062 | test -z "$ac_c_werror_flag" || | |
11063 | test ! -s conftest.err | |
11064 | } && test -s conftest$ac_exeext && { | |
11065 | test "$cross_compiling" = yes || | |
11066 | $as_test_x conftest$ac_exeext | |
11067 | }; then | |
11068 | ac_cv_search_opendir=$ac_res | |
f73dda09 | 11069 | else |
3185942a | 11070 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11071 | sed 's/^/| /' conftest.$ac_ext >&5 |
11072 | ||
f73dda09 | 11073 | |
3185942a | 11074 | fi |
0628567a | 11075 | |
3185942a JA |
11076 | rm -rf conftest.dSYM |
11077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11078 | conftest$ac_exeext | |
11079 | if test "${ac_cv_search_opendir+set}" = set; then | |
11080 | break | |
f73dda09 | 11081 | fi |
3185942a JA |
11082 | done |
11083 | if test "${ac_cv_search_opendir+set}" = set; then | |
11084 | : | |
11085 | else | |
11086 | ac_cv_search_opendir=no | |
f73dda09 | 11087 | fi |
3185942a | 11088 | rm conftest.$ac_ext |
b80f6443 JA |
11089 | LIBS=$ac_func_search_save_LIBS |
11090 | fi | |
3185942a JA |
11091 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11092 | $as_echo "$ac_cv_search_opendir" >&6; } | |
11093 | ac_res=$ac_cv_search_opendir | |
11094 | if test "$ac_res" != no; then | |
11095 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f73dda09 JA |
11096 | |
11097 | fi | |
11098 | ||
b80f6443 | 11099 | else |
3185942a JA |
11100 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11101 | $as_echo_n "checking for library containing opendir... " >&6; } | |
b80f6443 | 11102 | if test "${ac_cv_search_opendir+set}" = set; then |
3185942a | 11103 | $as_echo_n "(cached) " >&6 |
f73dda09 | 11104 | else |
b80f6443 | 11105 | ac_func_search_save_LIBS=$LIBS |
b80f6443 | 11106 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11107 | /* confdefs.h. */ |
11108 | _ACEOF | |
11109 | cat confdefs.h >>conftest.$ac_ext | |
11110 | cat >>conftest.$ac_ext <<_ACEOF | |
11111 | /* end confdefs.h. */ | |
f73dda09 | 11112 | |
3185942a JA |
11113 | /* Override any GCC internal prototype to avoid an error. |
11114 | Use char because int might match the return type of a GCC | |
11115 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
11116 | #ifdef __cplusplus |
11117 | extern "C" | |
f73dda09 | 11118 | #endif |
b80f6443 | 11119 | char opendir (); |
f73dda09 JA |
11120 | int |
11121 | main () | |
11122 | { | |
3185942a | 11123 | return opendir (); |
f73dda09 JA |
11124 | ; |
11125 | return 0; | |
11126 | } | |
11127 | _ACEOF | |
3185942a JA |
11128 | for ac_lib in '' x; do |
11129 | if test -z "$ac_lib"; then | |
11130 | ac_res="none required" | |
11131 | else | |
11132 | ac_res=-l$ac_lib | |
11133 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11134 | fi | |
11135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11136 | if { (ac_try="$ac_link" | |
11137 | case "(($ac_try" in | |
11138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11139 | *) ac_try_echo=$ac_try;; | |
11140 | esac | |
11141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11142 | $as_echo "$ac_try_echo") >&5 | |
11143 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 11144 | ac_status=$? |
0628567a JA |
11145 | grep -v '^ *+' conftest.er1 >conftest.err |
11146 | rm -f conftest.er1 | |
11147 | cat conftest.err >&5 | |
3185942a JA |
11148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11149 | (exit $ac_status); } && { | |
11150 | test -z "$ac_c_werror_flag" || | |
11151 | test ! -s conftest.err | |
11152 | } && test -s conftest$ac_exeext && { | |
11153 | test "$cross_compiling" = yes || | |
11154 | $as_test_x conftest$ac_exeext | |
11155 | }; then | |
11156 | ac_cv_search_opendir=$ac_res | |
f73dda09 | 11157 | else |
3185942a | 11158 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11159 | sed 's/^/| /' conftest.$ac_ext >&5 |
11160 | ||
f73dda09 | 11161 | |
3185942a | 11162 | fi |
0628567a | 11163 | |
3185942a JA |
11164 | rm -rf conftest.dSYM |
11165 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11166 | conftest$ac_exeext | |
11167 | if test "${ac_cv_search_opendir+set}" = set; then | |
11168 | break | |
f73dda09 | 11169 | fi |
3185942a JA |
11170 | done |
11171 | if test "${ac_cv_search_opendir+set}" = set; then | |
11172 | : | |
11173 | else | |
11174 | ac_cv_search_opendir=no | |
f73dda09 | 11175 | fi |
3185942a | 11176 | rm conftest.$ac_ext |
b80f6443 JA |
11177 | LIBS=$ac_func_search_save_LIBS |
11178 | fi | |
3185942a JA |
11179 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11180 | $as_echo "$ac_cv_search_opendir" >&6; } | |
11181 | ac_res=$ac_cv_search_opendir | |
11182 | if test "$ac_res" != no; then | |
11183 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f73dda09 | 11184 | |
b80f6443 | 11185 | fi |
f73dda09 JA |
11186 | |
11187 | fi | |
11188 | ||
3185942a JA |
11189 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
11190 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
b80f6443 | 11191 | if test "${ac_cv_header_time+set}" = set; then |
3185942a | 11192 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
11193 | else |
11194 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11195 | /* confdefs.h. */ |
11196 | _ACEOF | |
11197 | cat confdefs.h >>conftest.$ac_ext | |
11198 | cat >>conftest.$ac_ext <<_ACEOF | |
11199 | /* end confdefs.h. */ | |
b80f6443 JA |
11200 | #include <sys/types.h> |
11201 | #include <sys/time.h> | |
11202 | #include <time.h> | |
f73dda09 JA |
11203 | |
11204 | int | |
11205 | main () | |
11206 | { | |
b80f6443 JA |
11207 | if ((struct tm *) 0) |
11208 | return 0; | |
f73dda09 JA |
11209 | ; |
11210 | return 0; | |
11211 | } | |
11212 | _ACEOF | |
b80f6443 | 11213 | rm -f conftest.$ac_objext |
3185942a JA |
11214 | if { (ac_try="$ac_compile" |
11215 | case "(($ac_try" in | |
11216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11217 | *) ac_try_echo=$ac_try;; | |
11218 | esac | |
11219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11220 | $as_echo "$ac_try_echo") >&5 | |
11221 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11222 | ac_status=$? |
0628567a JA |
11223 | grep -v '^ *+' conftest.er1 >conftest.err |
11224 | rm -f conftest.er1 | |
11225 | cat conftest.err >&5 | |
3185942a JA |
11226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11227 | (exit $ac_status); } && { | |
11228 | test -z "$ac_c_werror_flag" || | |
11229 | test ! -s conftest.err | |
11230 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11231 | ac_cv_header_time=yes |
f73dda09 | 11232 | else |
3185942a | 11233 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11234 | sed 's/^/| /' conftest.$ac_ext >&5 |
11235 | ||
3185942a | 11236 | ac_cv_header_time=no |
f73dda09 | 11237 | fi |
3185942a JA |
11238 | |
11239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 11240 | fi |
3185942a JA |
11241 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
11242 | $as_echo "$ac_cv_header_time" >&6; } | |
b80f6443 | 11243 | if test $ac_cv_header_time = yes; then |
f73dda09 | 11244 | |
b80f6443 JA |
11245 | cat >>confdefs.h <<\_ACEOF |
11246 | #define TIME_WITH_SYS_TIME 1 | |
11247 | _ACEOF | |
f73dda09 JA |
11248 | |
11249 | fi | |
11250 | ||
f73dda09 | 11251 | |
f73dda09 | 11252 | |
b80f6443 JA |
11253 | |
11254 | for ac_header in inttypes.h | |
11255 | do | |
3185942a JA |
11256 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11259 | $as_echo_n "checking for $ac_header... " >&6; } | |
11260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11261 | $as_echo_n "(cached) " >&6 | |
11262 | fi | |
11263 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11264 | $as_echo "$as_val"'` | |
11265 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11266 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11267 | else |
11268 | # Is the header compilable? | |
3185942a JA |
11269 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11270 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11271 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11272 | /* confdefs.h. */ |
11273 | _ACEOF | |
11274 | cat confdefs.h >>conftest.$ac_ext | |
11275 | cat >>conftest.$ac_ext <<_ACEOF | |
11276 | /* end confdefs.h. */ | |
b80f6443 JA |
11277 | $ac_includes_default |
11278 | #include <$ac_header> | |
11279 | _ACEOF | |
11280 | rm -f conftest.$ac_objext | |
3185942a JA |
11281 | if { (ac_try="$ac_compile" |
11282 | case "(($ac_try" in | |
11283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11284 | *) ac_try_echo=$ac_try;; | |
11285 | esac | |
11286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11287 | $as_echo "$ac_try_echo") >&5 | |
11288 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11289 | ac_status=$? |
0628567a JA |
11290 | grep -v '^ *+' conftest.er1 >conftest.err |
11291 | rm -f conftest.er1 | |
11292 | cat conftest.err >&5 | |
3185942a JA |
11293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11294 | (exit $ac_status); } && { | |
11295 | test -z "$ac_c_werror_flag" || | |
11296 | test ! -s conftest.err | |
11297 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11298 | ac_header_compiler=yes |
f73dda09 | 11299 | else |
3185942a | 11300 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11301 | sed 's/^/| /' conftest.$ac_ext >&5 |
11302 | ||
3185942a | 11303 | ac_header_compiler=no |
f73dda09 | 11304 | fi |
3185942a JA |
11305 | |
11306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11307 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11308 | $as_echo "$ac_header_compiler" >&6; } | |
f73dda09 | 11309 | |
b80f6443 | 11310 | # Is the header present? |
3185942a JA |
11311 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11312 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11313 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11314 | /* confdefs.h. */ |
11315 | _ACEOF | |
11316 | cat confdefs.h >>conftest.$ac_ext | |
11317 | cat >>conftest.$ac_ext <<_ACEOF | |
11318 | /* end confdefs.h. */ | |
f73dda09 JA |
11319 | #include <$ac_header> |
11320 | _ACEOF | |
3185942a JA |
11321 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11322 | case "(($ac_try" in | |
11323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11324 | *) ac_try_echo=$ac_try;; | |
11325 | esac | |
11326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11327 | $as_echo "$ac_try_echo") >&5 | |
11328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 11329 | ac_status=$? |
0628567a | 11330 | grep -v '^ *+' conftest.er1 >conftest.err |
f73dda09 JA |
11331 | rm -f conftest.er1 |
11332 | cat conftest.err >&5 | |
3185942a JA |
11333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11334 | (exit $ac_status); } >/dev/null && { | |
11335 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11336 | test ! -s conftest.err | |
11337 | }; then | |
b80f6443 | 11338 | ac_header_preproc=yes |
f73dda09 | 11339 | else |
3185942a | 11340 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 |
11342 | ||
b80f6443 | 11343 | ac_header_preproc=no |
f73dda09 | 11344 | fi |
3185942a | 11345 | |
f73dda09 | 11346 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11347 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11348 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11349 | |
11350 | # So? What about this header? | |
0628567a JA |
11351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11352 | yes:no: ) | |
3185942a JA |
11353 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11354 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11355 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11356 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11357 | ac_header_preproc=yes |
11358 | ;; | |
11359 | no:yes:* ) | |
3185942a JA |
11360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11361 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11362 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11363 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11364 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11365 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11367 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11369 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11371 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11372 | ( cat <<\_ASBOX | |
0628567a JA |
11373 | ## ------------------------------- ## |
11374 | ## Report this to bug-bash@gnu.org ## | |
11375 | ## ------------------------------- ## | |
11376 | _ASBOX | |
3185942a | 11377 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11378 | ;; |
b80f6443 | 11379 | esac |
3185942a JA |
11380 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11381 | $as_echo_n "checking for $ac_header... " >&6; } | |
11382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11383 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11384 | else |
0628567a | 11385 | eval "$as_ac_Header=\$ac_header_preproc" |
f73dda09 | 11386 | fi |
3185942a JA |
11387 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11388 | $as_echo "$as_val"'` | |
11389 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11390 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11391 | |
11392 | fi | |
3185942a JA |
11393 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11394 | $as_echo "$as_val"'` | |
11395 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11396 | cat >>confdefs.h <<_ACEOF |
3185942a | 11397 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 11398 | _ACEOF |
f73dda09 JA |
11399 | |
11400 | fi | |
b80f6443 | 11401 | |
f73dda09 JA |
11402 | done |
11403 | ||
b80f6443 JA |
11404 | |
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
95732b49 | 11422 | |
0001803f | 11423 | |
495aee44 | 11424 | |
b80f6443 JA |
11425 | |
11426 | ||
11427 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ | |
11428 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ | |
0001803f | 11429 | stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \ |
495aee44 | 11430 | syslog.h ulimit.h |
f73dda09 | 11431 | do |
3185942a JA |
11432 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11434 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11435 | $as_echo_n "checking for $ac_header... " >&6; } | |
11436 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11437 | $as_echo_n "(cached) " >&6 | |
11438 | fi | |
11439 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11440 | $as_echo "$as_val"'` | |
11441 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11442 | $as_echo "$ac_res" >&6; } | |
f73dda09 | 11443 | else |
b80f6443 | 11444 | # Is the header compilable? |
3185942a JA |
11445 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11446 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11447 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11448 | /* confdefs.h. */ |
11449 | _ACEOF | |
11450 | cat confdefs.h >>conftest.$ac_ext | |
11451 | cat >>conftest.$ac_ext <<_ACEOF | |
11452 | /* end confdefs.h. */ | |
b80f6443 JA |
11453 | $ac_includes_default |
11454 | #include <$ac_header> | |
11455 | _ACEOF | |
11456 | rm -f conftest.$ac_objext | |
3185942a JA |
11457 | if { (ac_try="$ac_compile" |
11458 | case "(($ac_try" in | |
11459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11460 | *) ac_try_echo=$ac_try;; | |
11461 | esac | |
11462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11463 | $as_echo "$ac_try_echo") >&5 | |
11464 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 11465 | ac_status=$? |
0628567a JA |
11466 | grep -v '^ *+' conftest.er1 >conftest.err |
11467 | rm -f conftest.er1 | |
11468 | cat conftest.err >&5 | |
3185942a JA |
11469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11470 | (exit $ac_status); } && { | |
11471 | test -z "$ac_c_werror_flag" || | |
11472 | test ! -s conftest.err | |
11473 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 11474 | ac_header_compiler=yes |
f73dda09 | 11475 | else |
3185942a | 11476 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11477 | sed 's/^/| /' conftest.$ac_ext >&5 |
11478 | ||
3185942a | 11479 | ac_header_compiler=no |
f73dda09 | 11480 | fi |
3185942a JA |
11481 | |
11482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11483 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11484 | $as_echo "$ac_header_compiler" >&6; } | |
f73dda09 | 11485 | |
b80f6443 | 11486 | # Is the header present? |
3185942a JA |
11487 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11488 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11489 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11490 | /* confdefs.h. */ |
11491 | _ACEOF | |
11492 | cat confdefs.h >>conftest.$ac_ext | |
11493 | cat >>conftest.$ac_ext <<_ACEOF | |
11494 | /* end confdefs.h. */ | |
b80f6443 JA |
11495 | #include <$ac_header> |
11496 | _ACEOF | |
3185942a JA |
11497 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11498 | case "(($ac_try" in | |
11499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11500 | *) ac_try_echo=$ac_try;; | |
11501 | esac | |
11502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11503 | $as_echo "$ac_try_echo") >&5 | |
11504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11505 | ac_status=$? |
0628567a | 11506 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11507 | rm -f conftest.er1 |
11508 | cat conftest.err >&5 | |
3185942a JA |
11509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11510 | (exit $ac_status); } >/dev/null && { | |
11511 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11512 | test ! -s conftest.err | |
11513 | }; then | |
b80f6443 | 11514 | ac_header_preproc=yes |
7117c2d2 | 11515 | else |
3185942a | 11516 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11517 | sed 's/^/| /' conftest.$ac_ext >&5 |
11518 | ||
b80f6443 JA |
11519 | ac_header_preproc=no |
11520 | fi | |
3185942a | 11521 | |
b80f6443 | 11522 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11523 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11524 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11525 | |
11526 | # So? What about this header? | |
0628567a JA |
11527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11528 | yes:no: ) | |
3185942a JA |
11529 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11530 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11532 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11533 | ac_header_preproc=yes |
11534 | ;; | |
11535 | no:yes:* ) | |
3185942a JA |
11536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11537 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11539 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11541 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11543 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11545 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11547 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11548 | ( cat <<\_ASBOX | |
0628567a JA |
11549 | ## ------------------------------- ## |
11550 | ## Report this to bug-bash@gnu.org ## | |
11551 | ## ------------------------------- ## | |
11552 | _ASBOX | |
3185942a | 11553 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11554 | ;; |
b80f6443 | 11555 | esac |
3185942a JA |
11556 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11557 | $as_echo_n "checking for $ac_header... " >&6; } | |
11558 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11559 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11560 | else |
0628567a | 11561 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11562 | fi |
3185942a JA |
11563 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11564 | $as_echo "$as_val"'` | |
11565 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11566 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11567 | |
11568 | fi | |
3185942a JA |
11569 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11570 | $as_echo "$as_val"'` | |
11571 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11572 | cat >>confdefs.h <<_ACEOF |
3185942a | 11573 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11574 | _ACEOF |
11575 | ||
11576 | fi | |
11577 | ||
11578 | done | |
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
95732b49 | 11592 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ |
b80f6443 JA |
11593 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ |
11594 | sys/time.h sys/times.h sys/types.h sys/wait.h | |
11595 | do | |
3185942a JA |
11596 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11597 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11598 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11599 | $as_echo_n "checking for $ac_header... " >&6; } | |
11600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11601 | $as_echo_n "(cached) " >&6 | |
11602 | fi | |
11603 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11604 | $as_echo "$as_val"'` | |
11605 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11606 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11607 | else |
11608 | # Is the header compilable? | |
3185942a JA |
11609 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11610 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11611 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11612 | /* confdefs.h. */ |
11613 | _ACEOF | |
11614 | cat confdefs.h >>conftest.$ac_ext | |
11615 | cat >>conftest.$ac_ext <<_ACEOF | |
11616 | /* end confdefs.h. */ | |
b80f6443 JA |
11617 | $ac_includes_default |
11618 | #include <$ac_header> | |
11619 | _ACEOF | |
11620 | rm -f conftest.$ac_objext | |
3185942a JA |
11621 | if { (ac_try="$ac_compile" |
11622 | case "(($ac_try" in | |
11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11624 | *) ac_try_echo=$ac_try;; | |
11625 | esac | |
11626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11627 | $as_echo "$ac_try_echo") >&5 | |
11628 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 11629 | ac_status=$? |
0628567a JA |
11630 | grep -v '^ *+' conftest.er1 >conftest.err |
11631 | rm -f conftest.er1 | |
11632 | cat conftest.err >&5 | |
3185942a JA |
11633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11634 | (exit $ac_status); } && { | |
11635 | test -z "$ac_c_werror_flag" || | |
11636 | test ! -s conftest.err | |
11637 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
11638 | ac_header_compiler=yes |
11639 | else | |
3185942a | 11640 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11641 | sed 's/^/| /' conftest.$ac_ext >&5 |
11642 | ||
3185942a | 11643 | ac_header_compiler=no |
b80f6443 | 11644 | fi |
3185942a JA |
11645 | |
11646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11647 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11648 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
11649 | |
11650 | # Is the header present? | |
3185942a JA |
11651 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11652 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11653 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11654 | /* confdefs.h. */ |
11655 | _ACEOF | |
11656 | cat confdefs.h >>conftest.$ac_ext | |
11657 | cat >>conftest.$ac_ext <<_ACEOF | |
11658 | /* end confdefs.h. */ | |
b80f6443 JA |
11659 | #include <$ac_header> |
11660 | _ACEOF | |
3185942a JA |
11661 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11662 | case "(($ac_try" in | |
11663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11664 | *) ac_try_echo=$ac_try;; | |
11665 | esac | |
11666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11667 | $as_echo "$ac_try_echo") >&5 | |
11668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11669 | ac_status=$? |
0628567a | 11670 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11671 | rm -f conftest.er1 |
11672 | cat conftest.err >&5 | |
3185942a JA |
11673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11674 | (exit $ac_status); } >/dev/null && { | |
11675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11676 | test ! -s conftest.err | |
11677 | }; then | |
b80f6443 JA |
11678 | ac_header_preproc=yes |
11679 | else | |
3185942a | 11680 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11681 | sed 's/^/| /' conftest.$ac_ext >&5 |
11682 | ||
b80f6443 JA |
11683 | ac_header_preproc=no |
11684 | fi | |
3185942a | 11685 | |
b80f6443 | 11686 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11687 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11688 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11689 | |
11690 | # So? What about this header? | |
0628567a JA |
11691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11692 | yes:no: ) | |
3185942a JA |
11693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11694 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11696 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11697 | ac_header_preproc=yes |
11698 | ;; | |
11699 | no:yes:* ) | |
3185942a JA |
11700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11701 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11703 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11705 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11707 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11709 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11711 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11712 | ( cat <<\_ASBOX | |
0628567a JA |
11713 | ## ------------------------------- ## |
11714 | ## Report this to bug-bash@gnu.org ## | |
11715 | ## ------------------------------- ## | |
11716 | _ASBOX | |
3185942a | 11717 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11718 | ;; |
b80f6443 | 11719 | esac |
3185942a JA |
11720 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11721 | $as_echo_n "checking for $ac_header... " >&6; } | |
11722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11723 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11724 | else |
0628567a | 11725 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11726 | fi |
3185942a JA |
11727 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11728 | $as_echo "$as_val"'` | |
11729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11730 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11731 | |
11732 | fi | |
3185942a JA |
11733 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11734 | $as_echo "$as_val"'` | |
11735 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11736 | cat >>confdefs.h <<_ACEOF |
3185942a | 11737 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11738 | _ACEOF |
11739 | ||
11740 | fi | |
11741 | ||
11742 | done | |
11743 | ||
11744 | ||
11745 | ||
11746 | for ac_header in netinet/in.h arpa/inet.h | |
11747 | do | |
3185942a JA |
11748 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11750 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11751 | $as_echo_n "checking for $ac_header... " >&6; } | |
11752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11753 | $as_echo_n "(cached) " >&6 | |
11754 | fi | |
11755 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11756 | $as_echo "$as_val"'` | |
11757 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11758 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11759 | else |
11760 | # Is the header compilable? | |
3185942a JA |
11761 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11762 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 11763 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11764 | /* confdefs.h. */ |
11765 | _ACEOF | |
11766 | cat confdefs.h >>conftest.$ac_ext | |
11767 | cat >>conftest.$ac_ext <<_ACEOF | |
11768 | /* end confdefs.h. */ | |
b80f6443 JA |
11769 | $ac_includes_default |
11770 | #include <$ac_header> | |
11771 | _ACEOF | |
11772 | rm -f conftest.$ac_objext | |
3185942a JA |
11773 | if { (ac_try="$ac_compile" |
11774 | case "(($ac_try" in | |
11775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11776 | *) ac_try_echo=$ac_try;; | |
11777 | esac | |
11778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11779 | $as_echo "$ac_try_echo") >&5 | |
11780 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 11781 | ac_status=$? |
0628567a JA |
11782 | grep -v '^ *+' conftest.er1 >conftest.err |
11783 | rm -f conftest.er1 | |
11784 | cat conftest.err >&5 | |
3185942a JA |
11785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11786 | (exit $ac_status); } && { | |
11787 | test -z "$ac_c_werror_flag" || | |
11788 | test ! -s conftest.err | |
11789 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
11790 | ac_header_compiler=yes |
11791 | else | |
3185942a | 11792 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11793 | sed 's/^/| /' conftest.$ac_ext >&5 |
11794 | ||
3185942a | 11795 | ac_header_compiler=no |
b80f6443 | 11796 | fi |
3185942a JA |
11797 | |
11798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11799 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11800 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
11801 | |
11802 | # Is the header present? | |
3185942a JA |
11803 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11804 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 11805 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
11806 | /* confdefs.h. */ |
11807 | _ACEOF | |
11808 | cat confdefs.h >>conftest.$ac_ext | |
11809 | cat >>conftest.$ac_ext <<_ACEOF | |
11810 | /* end confdefs.h. */ | |
b80f6443 JA |
11811 | #include <$ac_header> |
11812 | _ACEOF | |
3185942a JA |
11813 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11814 | case "(($ac_try" in | |
11815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11816 | *) ac_try_echo=$ac_try;; | |
11817 | esac | |
11818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11819 | $as_echo "$ac_try_echo") >&5 | |
11820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 11821 | ac_status=$? |
0628567a | 11822 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
11823 | rm -f conftest.er1 |
11824 | cat conftest.err >&5 | |
3185942a JA |
11825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11826 | (exit $ac_status); } >/dev/null && { | |
11827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11828 | test ! -s conftest.err | |
11829 | }; then | |
b80f6443 JA |
11830 | ac_header_preproc=yes |
11831 | else | |
3185942a | 11832 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11833 | sed 's/^/| /' conftest.$ac_ext >&5 |
11834 | ||
b80f6443 JA |
11835 | ac_header_preproc=no |
11836 | fi | |
3185942a | 11837 | |
b80f6443 | 11838 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
11839 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11840 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
11841 | |
11842 | # So? What about this header? | |
0628567a JA |
11843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11844 | yes:no: ) | |
3185942a JA |
11845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11846 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11848 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
11849 | ac_header_preproc=yes |
11850 | ;; | |
11851 | no:yes:* ) | |
3185942a JA |
11852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11853 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11855 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11857 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11859 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11861 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11863 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11864 | ( cat <<\_ASBOX | |
0628567a JA |
11865 | ## ------------------------------- ## |
11866 | ## Report this to bug-bash@gnu.org ## | |
11867 | ## ------------------------------- ## | |
11868 | _ASBOX | |
3185942a | 11869 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 11870 | ;; |
b80f6443 | 11871 | esac |
3185942a JA |
11872 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11873 | $as_echo_n "checking for $ac_header... " >&6; } | |
11874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11875 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 11876 | else |
0628567a | 11877 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 11878 | fi |
3185942a JA |
11879 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11880 | $as_echo "$as_val"'` | |
11881 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11882 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
11883 | |
11884 | fi | |
3185942a JA |
11885 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11886 | $as_echo "$as_val"'` | |
11887 | if test "x$as_val" = x""yes; then | |
b80f6443 | 11888 | cat >>confdefs.h <<_ACEOF |
3185942a | 11889 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
11890 | _ACEOF |
11891 | ||
11892 | fi | |
11893 | ||
11894 | done | |
11895 | ||
11896 | ||
3185942a JA |
11897 | { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 |
11898 | $as_echo_n "checking for sys/ptem.h... " >&6; } | |
95732b49 | 11899 | if test "${ac_cv_header_sys_ptem_h+set}" = set; then |
3185942a | 11900 | $as_echo_n "(cached) " >&6 |
95732b49 JA |
11901 | else |
11902 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11903 | /* confdefs.h. */ |
11904 | _ACEOF | |
11905 | cat confdefs.h >>conftest.$ac_ext | |
11906 | cat >>conftest.$ac_ext <<_ACEOF | |
11907 | /* end confdefs.h. */ | |
95732b49 JA |
11908 | |
11909 | #if HAVE_SYS_STREAM_H | |
11910 | # include <sys/stream.h> | |
11911 | #endif | |
11912 | ||
11913 | ||
11914 | #include <sys/ptem.h> | |
11915 | _ACEOF | |
11916 | rm -f conftest.$ac_objext | |
3185942a JA |
11917 | if { (ac_try="$ac_compile" |
11918 | case "(($ac_try" in | |
11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11920 | *) ac_try_echo=$ac_try;; | |
11921 | esac | |
11922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11923 | $as_echo "$ac_try_echo") >&5 | |
11924 | (eval "$ac_compile") 2>conftest.er1 | |
95732b49 | 11925 | ac_status=$? |
0628567a JA |
11926 | grep -v '^ *+' conftest.er1 >conftest.err |
11927 | rm -f conftest.er1 | |
11928 | cat conftest.err >&5 | |
3185942a JA |
11929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11930 | (exit $ac_status); } && { | |
11931 | test -z "$ac_c_werror_flag" || | |
11932 | test ! -s conftest.err | |
11933 | } && test -s conftest.$ac_objext; then | |
95732b49 JA |
11934 | ac_cv_header_sys_ptem_h=yes |
11935 | else | |
3185942a | 11936 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11937 | sed 's/^/| /' conftest.$ac_ext >&5 |
11938 | ||
3185942a | 11939 | ac_cv_header_sys_ptem_h=no |
95732b49 | 11940 | fi |
3185942a JA |
11941 | |
11942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 11943 | fi |
3185942a JA |
11944 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 |
11945 | $as_echo "$ac_cv_header_sys_ptem_h" >&6; } | |
95732b49 JA |
11946 | |
11947 | ||
11948 | ||
b80f6443 JA |
11949 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
11950 | # for constant arguments. Useless! | |
3185942a JA |
11951 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
11952 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b80f6443 | 11953 | if test "${ac_cv_working_alloca_h+set}" = set; then |
3185942a | 11954 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
11955 | else |
11956 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
11957 | /* confdefs.h. */ |
11958 | _ACEOF | |
11959 | cat confdefs.h >>conftest.$ac_ext | |
11960 | cat >>conftest.$ac_ext <<_ACEOF | |
11961 | /* end confdefs.h. */ | |
b80f6443 JA |
11962 | #include <alloca.h> |
11963 | int | |
11964 | main () | |
11965 | { | |
11966 | char *p = (char *) alloca (2 * sizeof (int)); | |
3185942a | 11967 | if (p) return 0; |
b80f6443 JA |
11968 | ; |
11969 | return 0; | |
11970 | } | |
11971 | _ACEOF | |
11972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
11973 | if { (ac_try="$ac_link" |
11974 | case "(($ac_try" in | |
11975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11976 | *) ac_try_echo=$ac_try;; | |
11977 | esac | |
11978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11979 | $as_echo "$ac_try_echo") >&5 | |
11980 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 11981 | ac_status=$? |
0628567a JA |
11982 | grep -v '^ *+' conftest.er1 >conftest.err |
11983 | rm -f conftest.er1 | |
11984 | cat conftest.err >&5 | |
3185942a JA |
11985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11986 | (exit $ac_status); } && { | |
11987 | test -z "$ac_c_werror_flag" || | |
11988 | test ! -s conftest.err | |
11989 | } && test -s conftest$ac_exeext && { | |
11990 | test "$cross_compiling" = yes || | |
11991 | $as_test_x conftest$ac_exeext | |
11992 | }; then | |
b80f6443 JA |
11993 | ac_cv_working_alloca_h=yes |
11994 | else | |
3185942a | 11995 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
11996 | sed 's/^/| /' conftest.$ac_ext >&5 |
11997 | ||
3185942a | 11998 | ac_cv_working_alloca_h=no |
b80f6443 | 11999 | fi |
3185942a JA |
12000 | |
12001 | rm -rf conftest.dSYM | |
12002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12003 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12004 | fi |
3185942a JA |
12005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
12006 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
b80f6443 JA |
12007 | if test $ac_cv_working_alloca_h = yes; then |
12008 | ||
12009 | cat >>confdefs.h <<\_ACEOF | |
12010 | #define HAVE_ALLOCA_H 1 | |
12011 | _ACEOF | |
12012 | ||
12013 | fi | |
12014 | ||
3185942a JA |
12015 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
12016 | $as_echo_n "checking for alloca... " >&6; } | |
b80f6443 | 12017 | if test "${ac_cv_func_alloca_works+set}" = set; then |
3185942a | 12018 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12019 | else |
12020 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12021 | /* confdefs.h. */ |
12022 | _ACEOF | |
12023 | cat confdefs.h >>conftest.$ac_ext | |
12024 | cat >>conftest.$ac_ext <<_ACEOF | |
12025 | /* end confdefs.h. */ | |
b80f6443 JA |
12026 | #ifdef __GNUC__ |
12027 | # define alloca __builtin_alloca | |
12028 | #else | |
12029 | # ifdef _MSC_VER | |
12030 | # include <malloc.h> | |
12031 | # define alloca _alloca | |
12032 | # else | |
3185942a | 12033 | # ifdef HAVE_ALLOCA_H |
b80f6443 JA |
12034 | # include <alloca.h> |
12035 | # else | |
12036 | # ifdef _AIX | |
12037 | #pragma alloca | |
12038 | # else | |
12039 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12040 | char *alloca (); | |
12041 | # endif | |
12042 | # endif | |
12043 | # endif | |
12044 | # endif | |
12045 | #endif | |
12046 | ||
12047 | int | |
12048 | main () | |
12049 | { | |
12050 | char *p = (char *) alloca (1); | |
3185942a | 12051 | if (p) return 0; |
b80f6443 JA |
12052 | ; |
12053 | return 0; | |
12054 | } | |
12055 | _ACEOF | |
12056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12057 | if { (ac_try="$ac_link" |
12058 | case "(($ac_try" in | |
12059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12060 | *) ac_try_echo=$ac_try;; | |
12061 | esac | |
12062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12063 | $as_echo "$ac_try_echo") >&5 | |
12064 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12065 | ac_status=$? |
0628567a JA |
12066 | grep -v '^ *+' conftest.er1 >conftest.err |
12067 | rm -f conftest.er1 | |
12068 | cat conftest.err >&5 | |
3185942a JA |
12069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12070 | (exit $ac_status); } && { | |
12071 | test -z "$ac_c_werror_flag" || | |
12072 | test ! -s conftest.err | |
12073 | } && test -s conftest$ac_exeext && { | |
12074 | test "$cross_compiling" = yes || | |
12075 | $as_test_x conftest$ac_exeext | |
12076 | }; then | |
b80f6443 JA |
12077 | ac_cv_func_alloca_works=yes |
12078 | else | |
3185942a | 12079 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12080 | sed 's/^/| /' conftest.$ac_ext >&5 |
12081 | ||
3185942a | 12082 | ac_cv_func_alloca_works=no |
b80f6443 | 12083 | fi |
3185942a JA |
12084 | |
12085 | rm -rf conftest.dSYM | |
12086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12087 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12088 | fi |
3185942a JA |
12089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
12090 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
b80f6443 JA |
12091 | |
12092 | if test $ac_cv_func_alloca_works = yes; then | |
12093 | ||
12094 | cat >>confdefs.h <<\_ACEOF | |
12095 | #define HAVE_ALLOCA 1 | |
12096 | _ACEOF | |
12097 | ||
12098 | else | |
12099 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12100 | # that cause trouble. Some versions do not even contain alloca or | |
12101 | # contain a buggy version. If you still want to use their alloca, | |
12102 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12103 | ||
3185942a | 12104 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b80f6443 JA |
12105 | |
12106 | cat >>confdefs.h <<\_ACEOF | |
12107 | #define C_ALLOCA 1 | |
12108 | _ACEOF | |
12109 | ||
12110 | ||
3185942a JA |
12111 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
12112 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b80f6443 | 12113 | if test "${ac_cv_os_cray+set}" = set; then |
3185942a | 12114 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12115 | else |
12116 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12117 | /* confdefs.h. */ |
12118 | _ACEOF | |
12119 | cat confdefs.h >>conftest.$ac_ext | |
12120 | cat >>conftest.$ac_ext <<_ACEOF | |
12121 | /* end confdefs.h. */ | |
3185942a | 12122 | #if defined CRAY && ! defined CRAY2 |
b80f6443 JA |
12123 | webecray |
12124 | #else | |
12125 | wenotbecray | |
12126 | #endif | |
12127 | ||
12128 | _ACEOF | |
12129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 12130 | $EGREP "webecray" >/dev/null 2>&1; then |
b80f6443 JA |
12131 | ac_cv_os_cray=yes |
12132 | else | |
12133 | ac_cv_os_cray=no | |
12134 | fi | |
12135 | rm -f conftest* | |
12136 | ||
12137 | fi | |
3185942a JA |
12138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
12139 | $as_echo "$ac_cv_os_cray" >&6; } | |
b80f6443 JA |
12140 | if test $ac_cv_os_cray = yes; then |
12141 | for ac_func in _getb67 GETB67 getb67; do | |
3185942a JA |
12142 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12143 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12144 | $as_echo_n "checking for $ac_func... " >&6; } | |
12145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12146 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
12147 | else |
12148 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12149 | /* confdefs.h. */ |
12150 | _ACEOF | |
12151 | cat confdefs.h >>conftest.$ac_ext | |
12152 | cat >>conftest.$ac_ext <<_ACEOF | |
12153 | /* end confdefs.h. */ | |
12154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12156 | #define $ac_func innocuous_$ac_func | |
12157 | ||
b80f6443 | 12158 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12159 | which can conflict with char $ac_func (); below. |
12160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12161 | <limits.h> exists even on freestanding compilers. */ | |
12162 | ||
12163 | #ifdef __STDC__ | |
12164 | # include <limits.h> | |
12165 | #else | |
12166 | # include <assert.h> | |
12167 | #endif | |
12168 | ||
12169 | #undef $ac_func | |
12170 | ||
3185942a JA |
12171 | /* Override any GCC internal prototype to avoid an error. |
12172 | Use char because int might match the return type of a GCC | |
12173 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12174 | #ifdef __cplusplus |
12175 | extern "C" | |
b80f6443 | 12176 | #endif |
b80f6443 JA |
12177 | char $ac_func (); |
12178 | /* The GNU C library defines this for functions which it implements | |
12179 | to always fail with ENOSYS. Some functions are actually named | |
12180 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12181 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 12182 | choke me |
b80f6443 JA |
12183 | #endif |
12184 | ||
0628567a JA |
12185 | int |
12186 | main () | |
12187 | { | |
3185942a | 12188 | return $ac_func (); |
b80f6443 JA |
12189 | ; |
12190 | return 0; | |
12191 | } | |
12192 | _ACEOF | |
12193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12194 | if { (ac_try="$ac_link" |
12195 | case "(($ac_try" in | |
12196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12197 | *) ac_try_echo=$ac_try;; | |
12198 | esac | |
12199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12200 | $as_echo "$ac_try_echo") >&5 | |
12201 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12202 | ac_status=$? |
0628567a JA |
12203 | grep -v '^ *+' conftest.er1 >conftest.err |
12204 | rm -f conftest.er1 | |
12205 | cat conftest.err >&5 | |
3185942a JA |
12206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12207 | (exit $ac_status); } && { | |
12208 | test -z "$ac_c_werror_flag" || | |
12209 | test ! -s conftest.err | |
12210 | } && test -s conftest$ac_exeext && { | |
12211 | test "$cross_compiling" = yes || | |
12212 | $as_test_x conftest$ac_exeext | |
12213 | }; then | |
b80f6443 JA |
12214 | eval "$as_ac_var=yes" |
12215 | else | |
3185942a | 12216 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12217 | sed 's/^/| /' conftest.$ac_ext >&5 |
12218 | ||
3185942a | 12219 | eval "$as_ac_var=no" |
b80f6443 | 12220 | fi |
3185942a JA |
12221 | |
12222 | rm -rf conftest.dSYM | |
12223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12224 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12225 | fi |
3185942a JA |
12226 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12227 | $as_echo "$as_val"'` | |
12228 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12229 | $as_echo "$ac_res" >&6; } | |
12230 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12231 | $as_echo "$as_val"'` | |
12232 | if test "x$as_val" = x""yes; then | |
b80f6443 JA |
12233 | |
12234 | cat >>confdefs.h <<_ACEOF | |
12235 | #define CRAY_STACKSEG_END $ac_func | |
12236 | _ACEOF | |
12237 | ||
12238 | break | |
12239 | fi | |
12240 | ||
12241 | done | |
12242 | fi | |
12243 | ||
3185942a JA |
12244 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
12245 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b80f6443 | 12246 | if test "${ac_cv_c_stack_direction+set}" = set; then |
3185942a | 12247 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12248 | else |
12249 | if test "$cross_compiling" = yes; then | |
12250 | ac_cv_c_stack_direction=0 | |
12251 | else | |
12252 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12253 | /* confdefs.h. */ |
12254 | _ACEOF | |
12255 | cat confdefs.h >>conftest.$ac_ext | |
12256 | cat >>conftest.$ac_ext <<_ACEOF | |
12257 | /* end confdefs.h. */ | |
3185942a | 12258 | $ac_includes_default |
b80f6443 JA |
12259 | int |
12260 | find_stack_direction () | |
12261 | { | |
12262 | static char *addr = 0; | |
12263 | auto char dummy; | |
12264 | if (addr == 0) | |
12265 | { | |
12266 | addr = &dummy; | |
12267 | return find_stack_direction (); | |
12268 | } | |
12269 | else | |
12270 | return (&dummy > addr) ? 1 : -1; | |
12271 | } | |
12272 | ||
12273 | int | |
12274 | main () | |
12275 | { | |
3185942a | 12276 | return find_stack_direction () < 0; |
b80f6443 JA |
12277 | } |
12278 | _ACEOF | |
12279 | rm -f conftest$ac_exeext | |
3185942a JA |
12280 | if { (ac_try="$ac_link" |
12281 | case "(($ac_try" in | |
12282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12283 | *) ac_try_echo=$ac_try;; | |
12284 | esac | |
12285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12286 | $as_echo "$ac_try_echo") >&5 | |
12287 | (eval "$ac_link") 2>&5 | |
b80f6443 | 12288 | ac_status=$? |
3185942a | 12289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 12290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
12291 | { (case "(($ac_try" in |
12292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12293 | *) ac_try_echo=$ac_try;; | |
12294 | esac | |
12295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12296 | $as_echo "$ac_try_echo") >&5 | |
12297 | (eval "$ac_try") 2>&5 | |
b80f6443 | 12298 | ac_status=$? |
3185942a | 12299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
12300 | (exit $ac_status); }; }; then |
12301 | ac_cv_c_stack_direction=1 | |
12302 | else | |
3185942a JA |
12303 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12304 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
12305 | sed 's/^/| /' conftest.$ac_ext >&5 |
12306 | ||
b80f6443 JA |
12307 | ( exit $ac_status ) |
12308 | ac_cv_c_stack_direction=-1 | |
12309 | fi | |
3185942a JA |
12310 | rm -rf conftest.dSYM |
12311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12312 | fi |
3185942a JA |
12313 | |
12314 | ||
b80f6443 | 12315 | fi |
3185942a JA |
12316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
12317 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
b80f6443 JA |
12318 | |
12319 | cat >>confdefs.h <<_ACEOF | |
12320 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
12321 | _ACEOF | |
12322 | ||
12323 | ||
12324 | fi | |
12325 | ||
3185942a JA |
12326 | { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
12327 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
b80f6443 | 12328 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
3185942a | 12329 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12330 | else |
12331 | # Use it with a single arg. | |
12332 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12333 | /* confdefs.h. */ |
12334 | _ACEOF | |
12335 | cat confdefs.h >>conftest.$ac_ext | |
12336 | cat >>conftest.$ac_ext <<_ACEOF | |
12337 | /* end confdefs.h. */ | |
b80f6443 JA |
12338 | $ac_includes_default |
12339 | int | |
12340 | main () | |
12341 | { | |
12342 | getpgrp (0); | |
12343 | ; | |
12344 | return 0; | |
12345 | } | |
12346 | _ACEOF | |
12347 | rm -f conftest.$ac_objext | |
3185942a JA |
12348 | if { (ac_try="$ac_compile" |
12349 | case "(($ac_try" in | |
12350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12351 | *) ac_try_echo=$ac_try;; | |
12352 | esac | |
12353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12354 | $as_echo "$ac_try_echo") >&5 | |
12355 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 12356 | ac_status=$? |
0628567a JA |
12357 | grep -v '^ *+' conftest.er1 >conftest.err |
12358 | rm -f conftest.er1 | |
12359 | cat conftest.err >&5 | |
3185942a JA |
12360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12361 | (exit $ac_status); } && { | |
12362 | test -z "$ac_c_werror_flag" || | |
12363 | test ! -s conftest.err | |
12364 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
12365 | ac_cv_func_getpgrp_void=no |
12366 | else | |
3185942a | 12367 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12368 | sed 's/^/| /' conftest.$ac_ext >&5 |
12369 | ||
3185942a | 12370 | ac_cv_func_getpgrp_void=yes |
b80f6443 | 12371 | fi |
3185942a JA |
12372 | |
12373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
12374 | |
12375 | fi | |
3185942a JA |
12376 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
12377 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
b80f6443 JA |
12378 | if test $ac_cv_func_getpgrp_void = yes; then |
12379 | ||
12380 | cat >>confdefs.h <<\_ACEOF | |
12381 | #define GETPGRP_VOID 1 | |
12382 | _ACEOF | |
12383 | ||
12384 | fi | |
12385 | ||
b80f6443 | 12386 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then |
3185942a | 12387 | $as_echo_n "(cached) " >&6 |
b80f6443 | 12388 | else |
0628567a | 12389 | ac_cv_func_setvbuf_reversed=no |
0628567a | 12390 | fi |
b80f6443 | 12391 | |
b80f6443 JA |
12392 | |
12393 | ||
12394 | for ac_func in vprintf | |
12395 | do | |
3185942a JA |
12396 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12397 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12398 | $as_echo_n "checking for $ac_func... " >&6; } | |
12399 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12400 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
12401 | else |
12402 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12403 | /* confdefs.h. */ |
12404 | _ACEOF | |
12405 | cat confdefs.h >>conftest.$ac_ext | |
12406 | cat >>conftest.$ac_ext <<_ACEOF | |
12407 | /* end confdefs.h. */ | |
12408 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12410 | #define $ac_func innocuous_$ac_func | |
12411 | ||
b80f6443 | 12412 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12413 | which can conflict with char $ac_func (); below. |
12414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12415 | <limits.h> exists even on freestanding compilers. */ | |
12416 | ||
12417 | #ifdef __STDC__ | |
12418 | # include <limits.h> | |
12419 | #else | |
12420 | # include <assert.h> | |
12421 | #endif | |
12422 | ||
12423 | #undef $ac_func | |
12424 | ||
3185942a JA |
12425 | /* Override any GCC internal prototype to avoid an error. |
12426 | Use char because int might match the return type of a GCC | |
12427 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12428 | #ifdef __cplusplus |
12429 | extern "C" | |
b80f6443 | 12430 | #endif |
b80f6443 JA |
12431 | char $ac_func (); |
12432 | /* The GNU C library defines this for functions which it implements | |
12433 | to always fail with ENOSYS. Some functions are actually named | |
12434 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12435 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 12436 | choke me |
b80f6443 JA |
12437 | #endif |
12438 | ||
0628567a JA |
12439 | int |
12440 | main () | |
12441 | { | |
3185942a | 12442 | return $ac_func (); |
b80f6443 JA |
12443 | ; |
12444 | return 0; | |
12445 | } | |
12446 | _ACEOF | |
12447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12448 | if { (ac_try="$ac_link" |
12449 | case "(($ac_try" in | |
12450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12451 | *) ac_try_echo=$ac_try;; | |
12452 | esac | |
12453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12454 | $as_echo "$ac_try_echo") >&5 | |
12455 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12456 | ac_status=$? |
0628567a JA |
12457 | grep -v '^ *+' conftest.er1 >conftest.err |
12458 | rm -f conftest.er1 | |
12459 | cat conftest.err >&5 | |
3185942a JA |
12460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12461 | (exit $ac_status); } && { | |
12462 | test -z "$ac_c_werror_flag" || | |
12463 | test ! -s conftest.err | |
12464 | } && test -s conftest$ac_exeext && { | |
12465 | test "$cross_compiling" = yes || | |
12466 | $as_test_x conftest$ac_exeext | |
12467 | }; then | |
b80f6443 JA |
12468 | eval "$as_ac_var=yes" |
12469 | else | |
3185942a | 12470 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
12472 | ||
3185942a | 12473 | eval "$as_ac_var=no" |
b80f6443 | 12474 | fi |
3185942a JA |
12475 | |
12476 | rm -rf conftest.dSYM | |
12477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12478 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12479 | fi |
3185942a JA |
12480 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12481 | $as_echo "$as_val"'` | |
12482 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12483 | $as_echo "$ac_res" >&6; } | |
12484 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12485 | $as_echo "$as_val"'` | |
12486 | if test "x$as_val" = x""yes; then | |
b80f6443 | 12487 | cat >>confdefs.h <<_ACEOF |
3185942a | 12488 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
12489 | _ACEOF |
12490 | ||
3185942a JA |
12491 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
12492 | $as_echo_n "checking for _doprnt... " >&6; } | |
b80f6443 | 12493 | if test "${ac_cv_func__doprnt+set}" = set; then |
3185942a | 12494 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12495 | else |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12497 | /* confdefs.h. */ |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
12503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12504 | #define _doprnt innocuous__doprnt | |
12505 | ||
b80f6443 | 12506 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12507 | which can conflict with char _doprnt (); below. |
12508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12509 | <limits.h> exists even on freestanding compilers. */ | |
12510 | ||
12511 | #ifdef __STDC__ | |
12512 | # include <limits.h> | |
12513 | #else | |
12514 | # include <assert.h> | |
12515 | #endif | |
12516 | ||
12517 | #undef _doprnt | |
12518 | ||
3185942a JA |
12519 | /* Override any GCC internal prototype to avoid an error. |
12520 | Use char because int might match the return type of a GCC | |
12521 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
12522 | #ifdef __cplusplus |
12523 | extern "C" | |
b80f6443 | 12524 | #endif |
b80f6443 JA |
12525 | char _doprnt (); |
12526 | /* The GNU C library defines this for functions which it implements | |
12527 | to always fail with ENOSYS. Some functions are actually named | |
12528 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12529 | #if defined __stub__doprnt || defined __stub____doprnt |
b80f6443 | 12530 | choke me |
b80f6443 JA |
12531 | #endif |
12532 | ||
0628567a JA |
12533 | int |
12534 | main () | |
12535 | { | |
3185942a | 12536 | return _doprnt (); |
b80f6443 JA |
12537 | ; |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12542 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
b80f6443 | 12550 | ac_status=$? |
0628567a JA |
12551 | grep -v '^ *+' conftest.er1 >conftest.err |
12552 | rm -f conftest.er1 | |
12553 | cat conftest.err >&5 | |
3185942a JA |
12554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12555 | (exit $ac_status); } && { | |
12556 | test -z "$ac_c_werror_flag" || | |
12557 | test ! -s conftest.err | |
12558 | } && test -s conftest$ac_exeext && { | |
12559 | test "$cross_compiling" = yes || | |
12560 | $as_test_x conftest$ac_exeext | |
12561 | }; then | |
b80f6443 JA |
12562 | ac_cv_func__doprnt=yes |
12563 | else | |
3185942a | 12564 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12565 | sed 's/^/| /' conftest.$ac_ext >&5 |
12566 | ||
3185942a | 12567 | ac_cv_func__doprnt=no |
b80f6443 | 12568 | fi |
3185942a JA |
12569 | |
12570 | rm -rf conftest.dSYM | |
12571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12572 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12573 | fi |
3185942a JA |
12574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
12575 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
12576 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
b80f6443 JA |
12577 | |
12578 | cat >>confdefs.h <<\_ACEOF | |
12579 | #define HAVE_DOPRNT 1 | |
12580 | _ACEOF | |
12581 | ||
12582 | fi | |
12583 | ||
12584 | fi | |
12585 | done | |
12586 | ||
12587 | ||
3185942a JA |
12588 | { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5 |
12589 | $as_echo_n "checking for working strcoll... " >&6; } | |
b80f6443 | 12590 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
3185942a | 12591 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12592 | else |
12593 | if test "$cross_compiling" = yes; then | |
12594 | ac_cv_func_strcoll_works=no | |
12595 | else | |
12596 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12597 | /* confdefs.h. */ |
12598 | _ACEOF | |
12599 | cat confdefs.h >>conftest.$ac_ext | |
12600 | cat >>conftest.$ac_ext <<_ACEOF | |
12601 | /* end confdefs.h. */ | |
b80f6443 JA |
12602 | $ac_includes_default |
12603 | int | |
12604 | main () | |
12605 | { | |
3185942a | 12606 | return (strcoll ("abc", "def") >= 0 || |
b80f6443 JA |
12607 | strcoll ("ABC", "DEF") >= 0 || |
12608 | strcoll ("123", "456") >= 0) | |
12609 | ; | |
12610 | return 0; | |
12611 | } | |
12612 | _ACEOF | |
12613 | rm -f conftest$ac_exeext | |
3185942a JA |
12614 | if { (ac_try="$ac_link" |
12615 | case "(($ac_try" in | |
12616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12617 | *) ac_try_echo=$ac_try;; | |
12618 | esac | |
12619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12620 | $as_echo "$ac_try_echo") >&5 | |
12621 | (eval "$ac_link") 2>&5 | |
b80f6443 | 12622 | ac_status=$? |
3185942a | 12623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 12624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
12625 | { (case "(($ac_try" in |
12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12627 | *) ac_try_echo=$ac_try;; | |
12628 | esac | |
12629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12630 | $as_echo "$ac_try_echo") >&5 | |
12631 | (eval "$ac_try") 2>&5 | |
b80f6443 | 12632 | ac_status=$? |
3185942a | 12633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
12634 | (exit $ac_status); }; }; then |
12635 | ac_cv_func_strcoll_works=yes | |
12636 | else | |
3185942a JA |
12637 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12638 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 |
12640 | ||
b80f6443 JA |
12641 | ( exit $ac_status ) |
12642 | ac_cv_func_strcoll_works=no | |
12643 | fi | |
3185942a JA |
12644 | rm -rf conftest.dSYM |
12645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12646 | fi |
3185942a JA |
12647 | |
12648 | ||
b80f6443 | 12649 | fi |
3185942a JA |
12650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
12651 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
b80f6443 JA |
12652 | if test $ac_cv_func_strcoll_works = yes; then |
12653 | ||
12654 | cat >>confdefs.h <<\_ACEOF | |
12655 | #define HAVE_STRCOLL 1 | |
12656 | _ACEOF | |
12657 | ||
12658 | fi | |
12659 | ||
12660 | ||
12661 | ||
12662 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then | |
12663 | MALLOC_TARGET=alloca | |
12664 | MALLOC_SRC=alloca.c | |
12665 | ||
12666 | MALLOC_LIB='-lmalloc' | |
12667 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
12668 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
12669 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
12670 | fi | |
12671 | ||
12672 | if test "$ac_cv_func_vprintf" = no; then | |
3185942a JA |
12673 | { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5 |
12674 | $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } | |
b80f6443 | 12675 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
12676 | /* confdefs.h. */ |
12677 | _ACEOF | |
12678 | cat confdefs.h >>conftest.$ac_ext | |
12679 | cat >>conftest.$ac_ext <<_ACEOF | |
12680 | /* end confdefs.h. */ | |
b80f6443 JA |
12681 | #include <stdio.h> |
12682 | ||
12683 | _ACEOF | |
12684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 12685 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then |
b80f6443 JA |
12686 | ac_cv_func_vprintf=yes |
12687 | fi | |
12688 | rm -f conftest* | |
12689 | ||
3185942a JA |
12690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5 |
12691 | $as_echo "$ac_cv_func_vprintf" >&6; } | |
b80f6443 JA |
12692 | if test $ac_cv_func_vprintf = yes; then |
12693 | cat >>confdefs.h <<\_ACEOF | |
12694 | #define HAVE_VPRINTF 1 | |
12695 | _ACEOF | |
12696 | ||
12697 | fi | |
12698 | fi | |
12699 | ||
12700 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then | |
3185942a | 12701 | case " $LIBOBJS " in |
0628567a | 12702 | *" vprint.$ac_objext "* ) ;; |
3185942a JA |
12703 | *) LIBOBJS="$LIBOBJS vprint.$ac_objext" |
12704 | ;; | |
0628567a JA |
12705 | esac |
12706 | ||
b80f6443 JA |
12707 | fi |
12708 | ||
3185942a JA |
12709 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
12710 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
b80f6443 | 12711 | if test "${ac_cv_type_signal+set}" = set; then |
3185942a | 12712 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12713 | else |
12714 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12715 | /* confdefs.h. */ |
12716 | _ACEOF | |
12717 | cat confdefs.h >>conftest.$ac_ext | |
12718 | cat >>conftest.$ac_ext <<_ACEOF | |
12719 | /* end confdefs.h. */ | |
b80f6443 JA |
12720 | #include <sys/types.h> |
12721 | #include <signal.h> | |
b80f6443 JA |
12722 | |
12723 | int | |
12724 | main () | |
12725 | { | |
3185942a | 12726 | return *(signal (0, 0)) (0) == 1; |
b80f6443 JA |
12727 | ; |
12728 | return 0; | |
12729 | } | |
12730 | _ACEOF | |
12731 | rm -f conftest.$ac_objext | |
3185942a JA |
12732 | if { (ac_try="$ac_compile" |
12733 | case "(($ac_try" in | |
12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12735 | *) ac_try_echo=$ac_try;; | |
12736 | esac | |
12737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12738 | $as_echo "$ac_try_echo") >&5 | |
12739 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 12740 | ac_status=$? |
0628567a JA |
12741 | grep -v '^ *+' conftest.er1 >conftest.err |
12742 | rm -f conftest.er1 | |
12743 | cat conftest.err >&5 | |
3185942a JA |
12744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12745 | (exit $ac_status); } && { | |
12746 | test -z "$ac_c_werror_flag" || | |
12747 | test ! -s conftest.err | |
12748 | } && test -s conftest.$ac_objext; then | |
12749 | ac_cv_type_signal=int | |
b80f6443 | 12750 | else |
3185942a | 12751 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12752 | sed 's/^/| /' conftest.$ac_ext >&5 |
12753 | ||
3185942a | 12754 | ac_cv_type_signal=void |
b80f6443 | 12755 | fi |
3185942a JA |
12756 | |
12757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 12758 | fi |
3185942a JA |
12759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
12760 | $as_echo "$ac_cv_type_signal" >&6; } | |
b80f6443 JA |
12761 | |
12762 | cat >>confdefs.h <<_ACEOF | |
12763 | #define RETSIGTYPE $ac_cv_type_signal | |
12764 | _ACEOF | |
12765 | ||
12766 | ||
12767 | ||
3185942a JA |
12768 | { $as_echo "$as_me:$LINENO: checking for __setostype" >&5 |
12769 | $as_echo_n "checking for __setostype... " >&6; } | |
b80f6443 | 12770 | if test "${ac_cv_func___setostype+set}" = set; then |
3185942a | 12771 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12772 | else |
12773 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12774 | /* confdefs.h. */ |
12775 | _ACEOF | |
12776 | cat confdefs.h >>conftest.$ac_ext | |
12777 | cat >>conftest.$ac_ext <<_ACEOF | |
12778 | /* end confdefs.h. */ | |
12779 | /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype. | |
12780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12781 | #define __setostype innocuous___setostype | |
12782 | ||
b80f6443 | 12783 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12784 | which can conflict with char __setostype (); below. |
12785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12786 | <limits.h> exists even on freestanding compilers. */ | |
12787 | ||
12788 | #ifdef __STDC__ | |
12789 | # include <limits.h> | |
12790 | #else | |
12791 | # include <assert.h> | |
12792 | #endif | |
12793 | ||
12794 | #undef __setostype | |
12795 | ||
3185942a JA |
12796 | /* Override any GCC internal prototype to avoid an error. |
12797 | Use char because int might match the return type of a GCC | |
12798 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12799 | #ifdef __cplusplus |
12800 | extern "C" | |
b80f6443 | 12801 | #endif |
b80f6443 JA |
12802 | char __setostype (); |
12803 | /* The GNU C library defines this for functions which it implements | |
12804 | to always fail with ENOSYS. Some functions are actually named | |
12805 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12806 | #if defined __stub___setostype || defined __stub_____setostype |
b80f6443 | 12807 | choke me |
b80f6443 JA |
12808 | #endif |
12809 | ||
0628567a JA |
12810 | int |
12811 | main () | |
12812 | { | |
3185942a | 12813 | return __setostype (); |
b80f6443 JA |
12814 | ; |
12815 | return 0; | |
12816 | } | |
12817 | _ACEOF | |
12818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12819 | if { (ac_try="$ac_link" |
12820 | case "(($ac_try" in | |
12821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12822 | *) ac_try_echo=$ac_try;; | |
12823 | esac | |
12824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12825 | $as_echo "$ac_try_echo") >&5 | |
12826 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12827 | ac_status=$? |
0628567a JA |
12828 | grep -v '^ *+' conftest.er1 >conftest.err |
12829 | rm -f conftest.er1 | |
12830 | cat conftest.err >&5 | |
3185942a JA |
12831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12832 | (exit $ac_status); } && { | |
12833 | test -z "$ac_c_werror_flag" || | |
12834 | test ! -s conftest.err | |
12835 | } && test -s conftest$ac_exeext && { | |
12836 | test "$cross_compiling" = yes || | |
12837 | $as_test_x conftest$ac_exeext | |
12838 | }; then | |
b80f6443 JA |
12839 | ac_cv_func___setostype=yes |
12840 | else | |
3185942a | 12841 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12842 | sed 's/^/| /' conftest.$ac_ext >&5 |
12843 | ||
3185942a | 12844 | ac_cv_func___setostype=no |
b80f6443 | 12845 | fi |
3185942a JA |
12846 | |
12847 | rm -rf conftest.dSYM | |
12848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12849 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12850 | fi |
3185942a JA |
12851 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5 |
12852 | $as_echo "$ac_cv_func___setostype" >&6; } | |
12853 | if test "x$ac_cv_func___setostype" = x""yes; then | |
b80f6443 JA |
12854 | cat >>confdefs.h <<\_ACEOF |
12855 | #define HAVE_SETOSTYPE 1 | |
12856 | _ACEOF | |
12857 | ||
12858 | fi | |
12859 | ||
3185942a JA |
12860 | { $as_echo "$as_me:$LINENO: checking for wait3" >&5 |
12861 | $as_echo_n "checking for wait3... " >&6; } | |
b80f6443 | 12862 | if test "${ac_cv_func_wait3+set}" = set; then |
3185942a | 12863 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12864 | else |
12865 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12866 | /* confdefs.h. */ |
12867 | _ACEOF | |
12868 | cat confdefs.h >>conftest.$ac_ext | |
12869 | cat >>conftest.$ac_ext <<_ACEOF | |
12870 | /* end confdefs.h. */ | |
12871 | /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3. | |
12872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12873 | #define wait3 innocuous_wait3 | |
12874 | ||
b80f6443 | 12875 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12876 | which can conflict with char wait3 (); below. |
12877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12878 | <limits.h> exists even on freestanding compilers. */ | |
12879 | ||
12880 | #ifdef __STDC__ | |
12881 | # include <limits.h> | |
12882 | #else | |
12883 | # include <assert.h> | |
12884 | #endif | |
12885 | ||
12886 | #undef wait3 | |
12887 | ||
3185942a JA |
12888 | /* Override any GCC internal prototype to avoid an error. |
12889 | Use char because int might match the return type of a GCC | |
12890 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12891 | #ifdef __cplusplus |
12892 | extern "C" | |
b80f6443 | 12893 | #endif |
b80f6443 JA |
12894 | char wait3 (); |
12895 | /* The GNU C library defines this for functions which it implements | |
12896 | to always fail with ENOSYS. Some functions are actually named | |
12897 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12898 | #if defined __stub_wait3 || defined __stub___wait3 |
b80f6443 | 12899 | choke me |
b80f6443 JA |
12900 | #endif |
12901 | ||
0628567a JA |
12902 | int |
12903 | main () | |
12904 | { | |
3185942a | 12905 | return wait3 (); |
b80f6443 JA |
12906 | ; |
12907 | return 0; | |
12908 | } | |
12909 | _ACEOF | |
12910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
12911 | if { (ac_try="$ac_link" |
12912 | case "(($ac_try" in | |
12913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12914 | *) ac_try_echo=$ac_try;; | |
12915 | esac | |
12916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12917 | $as_echo "$ac_try_echo") >&5 | |
12918 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 12919 | ac_status=$? |
0628567a JA |
12920 | grep -v '^ *+' conftest.er1 >conftest.err |
12921 | rm -f conftest.er1 | |
12922 | cat conftest.err >&5 | |
3185942a JA |
12923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12924 | (exit $ac_status); } && { | |
12925 | test -z "$ac_c_werror_flag" || | |
12926 | test ! -s conftest.err | |
12927 | } && test -s conftest$ac_exeext && { | |
12928 | test "$cross_compiling" = yes || | |
12929 | $as_test_x conftest$ac_exeext | |
12930 | }; then | |
b80f6443 JA |
12931 | ac_cv_func_wait3=yes |
12932 | else | |
3185942a | 12933 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
12934 | sed 's/^/| /' conftest.$ac_ext >&5 |
12935 | ||
3185942a | 12936 | ac_cv_func_wait3=no |
b80f6443 | 12937 | fi |
3185942a JA |
12938 | |
12939 | rm -rf conftest.dSYM | |
12940 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 12941 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 12942 | fi |
3185942a JA |
12943 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5 |
12944 | $as_echo "$ac_cv_func_wait3" >&6; } | |
12945 | if test "x$ac_cv_func_wait3" = x""yes; then | |
b80f6443 JA |
12946 | cat >>confdefs.h <<\_ACEOF |
12947 | #define HAVE_WAIT3 1 | |
12948 | _ACEOF | |
12949 | ||
12950 | fi | |
12951 | ||
3185942a JA |
12952 | { $as_echo "$as_me:$LINENO: checking for isinf" >&5 |
12953 | $as_echo_n "checking for isinf... " >&6; } | |
b80f6443 | 12954 | if test "${ac_cv_func_isinf+set}" = set; then |
3185942a | 12955 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
12956 | else |
12957 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
12958 | /* confdefs.h. */ |
12959 | _ACEOF | |
12960 | cat confdefs.h >>conftest.$ac_ext | |
12961 | cat >>conftest.$ac_ext <<_ACEOF | |
12962 | /* end confdefs.h. */ | |
12963 | /* Define isinf to an innocuous variant, in case <limits.h> declares isinf. | |
12964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12965 | #define isinf innocuous_isinf | |
12966 | ||
b80f6443 | 12967 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
12968 | which can conflict with char isinf (); below. |
12969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12970 | <limits.h> exists even on freestanding compilers. */ | |
12971 | ||
12972 | #ifdef __STDC__ | |
12973 | # include <limits.h> | |
12974 | #else | |
12975 | # include <assert.h> | |
12976 | #endif | |
12977 | ||
12978 | #undef isinf | |
12979 | ||
3185942a JA |
12980 | /* Override any GCC internal prototype to avoid an error. |
12981 | Use char because int might match the return type of a GCC | |
12982 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
12983 | #ifdef __cplusplus |
12984 | extern "C" | |
b80f6443 | 12985 | #endif |
b80f6443 JA |
12986 | char isinf (); |
12987 | /* The GNU C library defines this for functions which it implements | |
12988 | to always fail with ENOSYS. Some functions are actually named | |
12989 | something starting with __ and the normal name is an alias. */ | |
3185942a | 12990 | #if defined __stub_isinf || defined __stub___isinf |
b80f6443 | 12991 | choke me |
b80f6443 JA |
12992 | #endif |
12993 | ||
0628567a JA |
12994 | int |
12995 | main () | |
12996 | { | |
3185942a | 12997 | return isinf (); |
b80f6443 JA |
12998 | ; |
12999 | return 0; | |
13000 | } | |
13001 | _ACEOF | |
13002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13003 | if { (ac_try="$ac_link" |
13004 | case "(($ac_try" in | |
13005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13006 | *) ac_try_echo=$ac_try;; | |
13007 | esac | |
13008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13009 | $as_echo "$ac_try_echo") >&5 | |
13010 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13011 | ac_status=$? |
0628567a JA |
13012 | grep -v '^ *+' conftest.er1 >conftest.err |
13013 | rm -f conftest.er1 | |
13014 | cat conftest.err >&5 | |
3185942a JA |
13015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13016 | (exit $ac_status); } && { | |
13017 | test -z "$ac_c_werror_flag" || | |
13018 | test ! -s conftest.err | |
13019 | } && test -s conftest$ac_exeext && { | |
13020 | test "$cross_compiling" = yes || | |
13021 | $as_test_x conftest$ac_exeext | |
13022 | }; then | |
b80f6443 JA |
13023 | ac_cv_func_isinf=yes |
13024 | else | |
3185942a | 13025 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13026 | sed 's/^/| /' conftest.$ac_ext >&5 |
13027 | ||
3185942a | 13028 | ac_cv_func_isinf=no |
b80f6443 | 13029 | fi |
3185942a JA |
13030 | |
13031 | rm -rf conftest.dSYM | |
13032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13033 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13034 | fi |
3185942a JA |
13035 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 |
13036 | $as_echo "$ac_cv_func_isinf" >&6; } | |
13037 | if test "x$ac_cv_func_isinf" = x""yes; then | |
b80f6443 JA |
13038 | cat >>confdefs.h <<\_ACEOF |
13039 | #define HAVE_ISINF_IN_LIBC 1 | |
13040 | _ACEOF | |
13041 | ||
13042 | fi | |
13043 | ||
3185942a JA |
13044 | { $as_echo "$as_me:$LINENO: checking for isnan" >&5 |
13045 | $as_echo_n "checking for isnan... " >&6; } | |
0628567a | 13046 | if test "${ac_cv_func_isnan+set}" = set; then |
3185942a | 13047 | $as_echo_n "(cached) " >&6 |
0628567a JA |
13048 | else |
13049 | cat >conftest.$ac_ext <<_ACEOF | |
13050 | /* confdefs.h. */ | |
13051 | _ACEOF | |
13052 | cat confdefs.h >>conftest.$ac_ext | |
13053 | cat >>conftest.$ac_ext <<_ACEOF | |
13054 | /* end confdefs.h. */ | |
13055 | /* Define isnan to an innocuous variant, in case <limits.h> declares isnan. | |
13056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13057 | #define isnan innocuous_isnan | |
13058 | ||
13059 | /* System header to define __stub macros and hopefully few prototypes, | |
13060 | which can conflict with char isnan (); below. | |
13061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13062 | <limits.h> exists even on freestanding compilers. */ | |
13063 | ||
13064 | #ifdef __STDC__ | |
13065 | # include <limits.h> | |
13066 | #else | |
13067 | # include <assert.h> | |
13068 | #endif | |
13069 | ||
13070 | #undef isnan | |
13071 | ||
3185942a JA |
13072 | /* Override any GCC internal prototype to avoid an error. |
13073 | Use char because int might match the return type of a GCC | |
13074 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
13075 | #ifdef __cplusplus |
13076 | extern "C" | |
0628567a | 13077 | #endif |
0628567a JA |
13078 | char isnan (); |
13079 | /* The GNU C library defines this for functions which it implements | |
13080 | to always fail with ENOSYS. Some functions are actually named | |
13081 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13082 | #if defined __stub_isnan || defined __stub___isnan |
0628567a | 13083 | choke me |
0628567a JA |
13084 | #endif |
13085 | ||
13086 | int | |
13087 | main () | |
13088 | { | |
3185942a | 13089 | return isnan (); |
0628567a JA |
13090 | ; |
13091 | return 0; | |
13092 | } | |
13093 | _ACEOF | |
13094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13095 | if { (ac_try="$ac_link" |
13096 | case "(($ac_try" in | |
13097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13098 | *) ac_try_echo=$ac_try;; | |
13099 | esac | |
13100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13101 | $as_echo "$ac_try_echo") >&5 | |
13102 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
13103 | ac_status=$? |
13104 | grep -v '^ *+' conftest.er1 >conftest.err | |
13105 | rm -f conftest.er1 | |
13106 | cat conftest.err >&5 | |
3185942a JA |
13107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13108 | (exit $ac_status); } && { | |
13109 | test -z "$ac_c_werror_flag" || | |
13110 | test ! -s conftest.err | |
13111 | } && test -s conftest$ac_exeext && { | |
13112 | test "$cross_compiling" = yes || | |
13113 | $as_test_x conftest$ac_exeext | |
13114 | }; then | |
0628567a JA |
13115 | ac_cv_func_isnan=yes |
13116 | else | |
3185942a | 13117 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13118 | sed 's/^/| /' conftest.$ac_ext >&5 |
13119 | ||
3185942a | 13120 | ac_cv_func_isnan=no |
0628567a | 13121 | fi |
3185942a JA |
13122 | |
13123 | rm -rf conftest.dSYM | |
13124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
13125 | conftest$ac_exeext conftest.$ac_ext |
13126 | fi | |
3185942a JA |
13127 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5 |
13128 | $as_echo "$ac_cv_func_isnan" >&6; } | |
13129 | if test "x$ac_cv_func_isnan" = x""yes; then | |
0628567a JA |
13130 | cat >>confdefs.h <<\_ACEOF |
13131 | #define HAVE_ISNAN_IN_LIBC 1 | |
13132 | _ACEOF | |
13133 | ||
13134 | fi | |
13135 | ||
b80f6443 | 13136 | |
3185942a JA |
13137 | { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5 |
13138 | $as_echo_n "checking for mkfifo... " >&6; } | |
b80f6443 | 13139 | if test "${ac_cv_func_mkfifo+set}" = set; then |
3185942a | 13140 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
13141 | else |
13142 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13143 | /* confdefs.h. */ |
13144 | _ACEOF | |
13145 | cat confdefs.h >>conftest.$ac_ext | |
13146 | cat >>conftest.$ac_ext <<_ACEOF | |
13147 | /* end confdefs.h. */ | |
13148 | /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo. | |
13149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13150 | #define mkfifo innocuous_mkfifo | |
13151 | ||
b80f6443 | 13152 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13153 | which can conflict with char mkfifo (); below. |
13154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13155 | <limits.h> exists even on freestanding compilers. */ | |
13156 | ||
13157 | #ifdef __STDC__ | |
13158 | # include <limits.h> | |
13159 | #else | |
13160 | # include <assert.h> | |
13161 | #endif | |
13162 | ||
13163 | #undef mkfifo | |
13164 | ||
3185942a JA |
13165 | /* Override any GCC internal prototype to avoid an error. |
13166 | Use char because int might match the return type of a GCC | |
13167 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13168 | #ifdef __cplusplus |
13169 | extern "C" | |
b80f6443 | 13170 | #endif |
b80f6443 JA |
13171 | char mkfifo (); |
13172 | /* The GNU C library defines this for functions which it implements | |
13173 | to always fail with ENOSYS. Some functions are actually named | |
13174 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13175 | #if defined __stub_mkfifo || defined __stub___mkfifo |
b80f6443 | 13176 | choke me |
b80f6443 JA |
13177 | #endif |
13178 | ||
0628567a JA |
13179 | int |
13180 | main () | |
13181 | { | |
3185942a | 13182 | return mkfifo (); |
b80f6443 JA |
13183 | ; |
13184 | return 0; | |
13185 | } | |
13186 | _ACEOF | |
13187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13188 | if { (ac_try="$ac_link" |
13189 | case "(($ac_try" in | |
13190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13191 | *) ac_try_echo=$ac_try;; | |
13192 | esac | |
13193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13194 | $as_echo "$ac_try_echo") >&5 | |
13195 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13196 | ac_status=$? |
0628567a JA |
13197 | grep -v '^ *+' conftest.er1 >conftest.err |
13198 | rm -f conftest.er1 | |
13199 | cat conftest.err >&5 | |
3185942a JA |
13200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13201 | (exit $ac_status); } && { | |
13202 | test -z "$ac_c_werror_flag" || | |
13203 | test ! -s conftest.err | |
13204 | } && test -s conftest$ac_exeext && { | |
13205 | test "$cross_compiling" = yes || | |
13206 | $as_test_x conftest$ac_exeext | |
13207 | }; then | |
b80f6443 JA |
13208 | ac_cv_func_mkfifo=yes |
13209 | else | |
3185942a | 13210 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13211 | sed 's/^/| /' conftest.$ac_ext >&5 |
13212 | ||
3185942a | 13213 | ac_cv_func_mkfifo=no |
b80f6443 | 13214 | fi |
3185942a JA |
13215 | |
13216 | rm -rf conftest.dSYM | |
13217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13218 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13219 | fi |
3185942a JA |
13220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5 |
13221 | $as_echo "$ac_cv_func_mkfifo" >&6; } | |
13222 | if test "x$ac_cv_func_mkfifo" = x""yes; then | |
b80f6443 JA |
13223 | cat >>confdefs.h <<\_ACEOF |
13224 | #define HAVE_MKFIFO 1 | |
13225 | _ACEOF | |
13226 | ||
13227 | else | |
13228 | cat >>confdefs.h <<\_ACEOF | |
13229 | #define MKFIFO_MISSING 1 | |
13230 | _ACEOF | |
13231 | ||
13232 | fi | |
13233 | ||
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | ||
13240 | ||
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | ||
13246 | ||
13247 | ||
13248 | ||
13249 | ||
13250 | ||
13251 | ||
95732b49 JA |
13252 | |
13253 | ||
13254 | ||
3185942a | 13255 | |
95732b49 | 13256 | |
0628567a JA |
13257 | |
13258 | for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ | |
13259 | getpagesize getpeername getrlimit getrusage gettimeofday \ | |
13260 | kill killpg lstat readlink sbrk select setdtablesize \ | |
3185942a | 13261 | setitimer tcgetpgrp uname ulimit waitpid |
b80f6443 | 13262 | do |
3185942a JA |
13263 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13264 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13265 | $as_echo_n "checking for $ac_func... " >&6; } | |
13266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13267 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13268 | else |
13269 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13270 | /* confdefs.h. */ |
13271 | _ACEOF | |
13272 | cat confdefs.h >>conftest.$ac_ext | |
13273 | cat >>conftest.$ac_ext <<_ACEOF | |
13274 | /* end confdefs.h. */ | |
13275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13277 | #define $ac_func innocuous_$ac_func | |
13278 | ||
b80f6443 | 13279 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13280 | which can conflict with char $ac_func (); below. |
13281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13282 | <limits.h> exists even on freestanding compilers. */ | |
13283 | ||
13284 | #ifdef __STDC__ | |
13285 | # include <limits.h> | |
13286 | #else | |
13287 | # include <assert.h> | |
13288 | #endif | |
13289 | ||
13290 | #undef $ac_func | |
13291 | ||
3185942a JA |
13292 | /* Override any GCC internal prototype to avoid an error. |
13293 | Use char because int might match the return type of a GCC | |
13294 | builtin and then its argument prototype would still apply. */ | |
95732b49 JA |
13295 | #ifdef __cplusplus |
13296 | extern "C" | |
13297 | #endif | |
95732b49 | 13298 | char $ac_func (); |
95732b49 JA |
13299 | /* The GNU C library defines this for functions which it implements |
13300 | to always fail with ENOSYS. Some functions are actually named | |
13301 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13302 | #if defined __stub_$ac_func || defined __stub___$ac_func |
95732b49 | 13303 | choke me |
b80f6443 | 13304 | #endif |
95732b49 | 13305 | |
0628567a JA |
13306 | int |
13307 | main () | |
13308 | { | |
3185942a | 13309 | return $ac_func (); |
95732b49 JA |
13310 | ; |
13311 | return 0; | |
13312 | } | |
13313 | _ACEOF | |
13314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13315 | if { (ac_try="$ac_link" |
13316 | case "(($ac_try" in | |
13317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13318 | *) ac_try_echo=$ac_try;; | |
13319 | esac | |
13320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13321 | $as_echo "$ac_try_echo") >&5 | |
13322 | (eval "$ac_link") 2>conftest.er1 | |
95732b49 | 13323 | ac_status=$? |
0628567a JA |
13324 | grep -v '^ *+' conftest.er1 >conftest.err |
13325 | rm -f conftest.er1 | |
13326 | cat conftest.err >&5 | |
3185942a JA |
13327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13328 | (exit $ac_status); } && { | |
13329 | test -z "$ac_c_werror_flag" || | |
13330 | test ! -s conftest.err | |
13331 | } && test -s conftest$ac_exeext && { | |
13332 | test "$cross_compiling" = yes || | |
13333 | $as_test_x conftest$ac_exeext | |
13334 | }; then | |
95732b49 JA |
13335 | eval "$as_ac_var=yes" |
13336 | else | |
3185942a | 13337 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13338 | sed 's/^/| /' conftest.$ac_ext >&5 |
13339 | ||
3185942a | 13340 | eval "$as_ac_var=no" |
95732b49 | 13341 | fi |
3185942a JA |
13342 | |
13343 | rm -rf conftest.dSYM | |
13344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13345 | conftest$ac_exeext conftest.$ac_ext |
95732b49 | 13346 | fi |
3185942a JA |
13347 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13348 | $as_echo "$as_val"'` | |
13349 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13350 | $as_echo "$ac_res" >&6; } | |
13351 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13352 | $as_echo "$as_val"'` | |
13353 | if test "x$as_val" = x""yes; then | |
95732b49 | 13354 | cat >>confdefs.h <<_ACEOF |
3185942a | 13355 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
95732b49 JA |
13356 | _ACEOF |
13357 | ||
13358 | fi | |
13359 | done | |
13360 | ||
13361 | ||
13362 | for ac_func in rename | |
13363 | do | |
3185942a JA |
13364 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13365 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13366 | $as_echo_n "checking for $ac_func... " >&6; } | |
13367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13368 | $as_echo_n "(cached) " >&6 | |
95732b49 JA |
13369 | else |
13370 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13371 | /* confdefs.h. */ |
13372 | _ACEOF | |
13373 | cat confdefs.h >>conftest.$ac_ext | |
13374 | cat >>conftest.$ac_ext <<_ACEOF | |
13375 | /* end confdefs.h. */ | |
13376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13378 | #define $ac_func innocuous_$ac_func | |
13379 | ||
95732b49 | 13380 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13381 | which can conflict with char $ac_func (); below. |
13382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13383 | <limits.h> exists even on freestanding compilers. */ | |
13384 | ||
13385 | #ifdef __STDC__ | |
13386 | # include <limits.h> | |
13387 | #else | |
13388 | # include <assert.h> | |
13389 | #endif | |
13390 | ||
13391 | #undef $ac_func | |
13392 | ||
3185942a JA |
13393 | /* Override any GCC internal prototype to avoid an error. |
13394 | Use char because int might match the return type of a GCC | |
13395 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13396 | #ifdef __cplusplus |
13397 | extern "C" | |
b80f6443 | 13398 | #endif |
b80f6443 JA |
13399 | char $ac_func (); |
13400 | /* The GNU C library defines this for functions which it implements | |
13401 | to always fail with ENOSYS. Some functions are actually named | |
13402 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13403 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13404 | choke me |
b80f6443 | 13405 | #endif |
95732b49 | 13406 | |
0628567a JA |
13407 | int |
13408 | main () | |
13409 | { | |
3185942a | 13410 | return $ac_func (); |
95732b49 JA |
13411 | ; |
13412 | return 0; | |
b80f6443 | 13413 | } |
95732b49 JA |
13414 | _ACEOF |
13415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13416 | if { (ac_try="$ac_link" |
13417 | case "(($ac_try" in | |
13418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13419 | *) ac_try_echo=$ac_try;; | |
13420 | esac | |
13421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13422 | $as_echo "$ac_try_echo") >&5 | |
13423 | (eval "$ac_link") 2>conftest.er1 | |
95732b49 | 13424 | ac_status=$? |
0628567a JA |
13425 | grep -v '^ *+' conftest.er1 >conftest.err |
13426 | rm -f conftest.er1 | |
13427 | cat conftest.err >&5 | |
3185942a JA |
13428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13429 | (exit $ac_status); } && { | |
13430 | test -z "$ac_c_werror_flag" || | |
13431 | test ! -s conftest.err | |
13432 | } && test -s conftest$ac_exeext && { | |
13433 | test "$cross_compiling" = yes || | |
13434 | $as_test_x conftest$ac_exeext | |
13435 | }; then | |
95732b49 JA |
13436 | eval "$as_ac_var=yes" |
13437 | else | |
3185942a | 13438 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13439 | sed 's/^/| /' conftest.$ac_ext >&5 |
13440 | ||
3185942a | 13441 | eval "$as_ac_var=no" |
95732b49 | 13442 | fi |
3185942a JA |
13443 | |
13444 | rm -rf conftest.dSYM | |
13445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13446 | conftest$ac_exeext conftest.$ac_ext |
95732b49 | 13447 | fi |
3185942a JA |
13448 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13449 | $as_echo "$as_val"'` | |
13450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13451 | $as_echo "$ac_res" >&6; } | |
13452 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13453 | $as_echo "$as_val"'` | |
13454 | if test "x$as_val" = x""yes; then | |
95732b49 | 13455 | cat >>confdefs.h <<_ACEOF |
3185942a | 13456 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
95732b49 JA |
13457 | _ACEOF |
13458 | ||
13459 | else | |
3185942a | 13460 | case " $LIBOBJS " in |
0628567a | 13461 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
13462 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
13463 | ;; | |
0628567a JA |
13464 | esac |
13465 | ||
95732b49 JA |
13466 | fi |
13467 | done | |
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | ||
13474 | ||
13475 | ||
13476 | ||
13477 | ||
13478 | ||
13479 | ||
13480 | ||
13481 | ||
13482 | ||
13483 | ||
13484 | ||
13485 | ||
13486 | ||
13487 | ||
13488 | ||
13489 | ||
13490 | ||
13491 | ||
13492 | ||
13493 | ||
13494 | ||
13495 | ||
0001803f | 13496 | |
95732b49 JA |
13497 | |
13498 | ||
495aee44 CR |
13499 | |
13500 | for ac_func in bcopy bzero confstr faccessat fnmatch \ | |
95732b49 JA |
13501 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ |
13502 | memmove pathconf putenv raise regcomp regexec \ | |
13503 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ | |
0001803f | 13504 | sysconf syslog tcgetattr times ttyname tzset unsetenv |
95732b49 | 13505 | do |
3185942a JA |
13506 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13507 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13508 | $as_echo_n "checking for $ac_func... " >&6; } | |
13509 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13510 | $as_echo_n "(cached) " >&6 | |
95732b49 JA |
13511 | else |
13512 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13513 | /* confdefs.h. */ |
13514 | _ACEOF | |
13515 | cat confdefs.h >>conftest.$ac_ext | |
13516 | cat >>conftest.$ac_ext <<_ACEOF | |
13517 | /* end confdefs.h. */ | |
13518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13520 | #define $ac_func innocuous_$ac_func | |
13521 | ||
95732b49 | 13522 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13523 | which can conflict with char $ac_func (); below. |
13524 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13525 | <limits.h> exists even on freestanding compilers. */ | |
13526 | ||
13527 | #ifdef __STDC__ | |
13528 | # include <limits.h> | |
13529 | #else | |
13530 | # include <assert.h> | |
13531 | #endif | |
13532 | ||
13533 | #undef $ac_func | |
13534 | ||
3185942a JA |
13535 | /* Override any GCC internal prototype to avoid an error. |
13536 | Use char because int might match the return type of a GCC | |
13537 | builtin and then its argument prototype would still apply. */ | |
95732b49 JA |
13538 | #ifdef __cplusplus |
13539 | extern "C" | |
b80f6443 | 13540 | #endif |
95732b49 | 13541 | char $ac_func (); |
95732b49 JA |
13542 | /* The GNU C library defines this for functions which it implements |
13543 | to always fail with ENOSYS. Some functions are actually named | |
13544 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13545 | #if defined __stub_$ac_func || defined __stub___$ac_func |
95732b49 | 13546 | choke me |
95732b49 JA |
13547 | #endif |
13548 | ||
0628567a JA |
13549 | int |
13550 | main () | |
13551 | { | |
3185942a | 13552 | return $ac_func (); |
b80f6443 JA |
13553 | ; |
13554 | return 0; | |
13555 | } | |
13556 | _ACEOF | |
13557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13558 | if { (ac_try="$ac_link" |
13559 | case "(($ac_try" in | |
13560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13561 | *) ac_try_echo=$ac_try;; | |
13562 | esac | |
13563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13564 | $as_echo "$ac_try_echo") >&5 | |
13565 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13566 | ac_status=$? |
0628567a JA |
13567 | grep -v '^ *+' conftest.er1 >conftest.err |
13568 | rm -f conftest.er1 | |
13569 | cat conftest.err >&5 | |
3185942a JA |
13570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13571 | (exit $ac_status); } && { | |
13572 | test -z "$ac_c_werror_flag" || | |
13573 | test ! -s conftest.err | |
13574 | } && test -s conftest$ac_exeext && { | |
13575 | test "$cross_compiling" = yes || | |
13576 | $as_test_x conftest$ac_exeext | |
13577 | }; then | |
b80f6443 JA |
13578 | eval "$as_ac_var=yes" |
13579 | else | |
3185942a | 13580 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13581 | sed 's/^/| /' conftest.$ac_ext >&5 |
13582 | ||
3185942a | 13583 | eval "$as_ac_var=no" |
b80f6443 | 13584 | fi |
3185942a JA |
13585 | |
13586 | rm -rf conftest.dSYM | |
13587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13588 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13589 | fi |
3185942a JA |
13590 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13591 | $as_echo "$as_val"'` | |
13592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13593 | $as_echo "$ac_res" >&6; } | |
13594 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13595 | $as_echo "$as_val"'` | |
13596 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13597 | cat >>confdefs.h <<_ACEOF |
3185942a | 13598 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13599 | _ACEOF |
13600 | ||
13601 | fi | |
13602 | done | |
13603 | ||
13604 | ||
95732b49 JA |
13605 | |
13606 | ||
0001803f | 13607 | for ac_func in vasprintf asprintf |
b80f6443 | 13608 | do |
3185942a JA |
13609 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13610 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13611 | $as_echo_n "checking for $ac_func... " >&6; } | |
13612 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13613 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13614 | else |
13615 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13616 | /* confdefs.h. */ |
13617 | _ACEOF | |
13618 | cat confdefs.h >>conftest.$ac_ext | |
13619 | cat >>conftest.$ac_ext <<_ACEOF | |
13620 | /* end confdefs.h. */ | |
13621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13623 | #define $ac_func innocuous_$ac_func | |
13624 | ||
b80f6443 | 13625 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13626 | which can conflict with char $ac_func (); below. |
13627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13628 | <limits.h> exists even on freestanding compilers. */ | |
13629 | ||
13630 | #ifdef __STDC__ | |
13631 | # include <limits.h> | |
13632 | #else | |
13633 | # include <assert.h> | |
13634 | #endif | |
13635 | ||
13636 | #undef $ac_func | |
13637 | ||
3185942a JA |
13638 | /* Override any GCC internal prototype to avoid an error. |
13639 | Use char because int might match the return type of a GCC | |
13640 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13641 | #ifdef __cplusplus |
13642 | extern "C" | |
b80f6443 | 13643 | #endif |
b80f6443 JA |
13644 | char $ac_func (); |
13645 | /* The GNU C library defines this for functions which it implements | |
13646 | to always fail with ENOSYS. Some functions are actually named | |
13647 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13648 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13649 | choke me |
b80f6443 JA |
13650 | #endif |
13651 | ||
0628567a JA |
13652 | int |
13653 | main () | |
13654 | { | |
3185942a | 13655 | return $ac_func (); |
b80f6443 JA |
13656 | ; |
13657 | return 0; | |
13658 | } | |
13659 | _ACEOF | |
13660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13661 | if { (ac_try="$ac_link" |
13662 | case "(($ac_try" in | |
13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13664 | *) ac_try_echo=$ac_try;; | |
13665 | esac | |
13666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13667 | $as_echo "$ac_try_echo") >&5 | |
13668 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13669 | ac_status=$? |
0628567a JA |
13670 | grep -v '^ *+' conftest.er1 >conftest.err |
13671 | rm -f conftest.er1 | |
13672 | cat conftest.err >&5 | |
3185942a JA |
13673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13674 | (exit $ac_status); } && { | |
13675 | test -z "$ac_c_werror_flag" || | |
13676 | test ! -s conftest.err | |
13677 | } && test -s conftest$ac_exeext && { | |
13678 | test "$cross_compiling" = yes || | |
13679 | $as_test_x conftest$ac_exeext | |
13680 | }; then | |
b80f6443 JA |
13681 | eval "$as_ac_var=yes" |
13682 | else | |
3185942a | 13683 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13684 | sed 's/^/| /' conftest.$ac_ext >&5 |
13685 | ||
3185942a | 13686 | eval "$as_ac_var=no" |
b80f6443 | 13687 | fi |
3185942a JA |
13688 | |
13689 | rm -rf conftest.dSYM | |
13690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13691 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13692 | fi |
3185942a JA |
13693 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13694 | $as_echo "$as_val"'` | |
13695 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13696 | $as_echo "$ac_res" >&6; } | |
13697 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13698 | $as_echo "$as_val"'` | |
13699 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13700 | cat >>confdefs.h <<_ACEOF |
3185942a | 13701 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13702 | _ACEOF |
13703 | ||
b80f6443 JA |
13704 | fi |
13705 | done | |
13706 | ||
13707 | ||
13708 | ||
13709 | ||
13710 | ||
13711 | ||
13712 | ||
95732b49 | 13713 | for ac_func in isascii isblank isgraph isprint isspace isxdigit |
b80f6443 | 13714 | do |
3185942a JA |
13715 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13716 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13717 | $as_echo_n "checking for $ac_func... " >&6; } | |
13718 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13719 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13720 | else |
13721 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13722 | /* confdefs.h. */ |
13723 | _ACEOF | |
13724 | cat confdefs.h >>conftest.$ac_ext | |
13725 | cat >>conftest.$ac_ext <<_ACEOF | |
13726 | /* end confdefs.h. */ | |
13727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13729 | #define $ac_func innocuous_$ac_func | |
13730 | ||
b80f6443 | 13731 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13732 | which can conflict with char $ac_func (); below. |
13733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13734 | <limits.h> exists even on freestanding compilers. */ | |
13735 | ||
13736 | #ifdef __STDC__ | |
13737 | # include <limits.h> | |
13738 | #else | |
13739 | # include <assert.h> | |
13740 | #endif | |
13741 | ||
13742 | #undef $ac_func | |
13743 | ||
3185942a JA |
13744 | /* Override any GCC internal prototype to avoid an error. |
13745 | Use char because int might match the return type of a GCC | |
13746 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13747 | #ifdef __cplusplus |
13748 | extern "C" | |
b80f6443 | 13749 | #endif |
b80f6443 JA |
13750 | char $ac_func (); |
13751 | /* The GNU C library defines this for functions which it implements | |
13752 | to always fail with ENOSYS. Some functions are actually named | |
13753 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13754 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13755 | choke me |
b80f6443 JA |
13756 | #endif |
13757 | ||
0628567a JA |
13758 | int |
13759 | main () | |
13760 | { | |
3185942a | 13761 | return $ac_func (); |
b80f6443 JA |
13762 | ; |
13763 | return 0; | |
13764 | } | |
13765 | _ACEOF | |
13766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13767 | if { (ac_try="$ac_link" |
13768 | case "(($ac_try" in | |
13769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13770 | *) ac_try_echo=$ac_try;; | |
13771 | esac | |
13772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13773 | $as_echo "$ac_try_echo") >&5 | |
13774 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13775 | ac_status=$? |
0628567a JA |
13776 | grep -v '^ *+' conftest.er1 >conftest.err |
13777 | rm -f conftest.er1 | |
13778 | cat conftest.err >&5 | |
3185942a JA |
13779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13780 | (exit $ac_status); } && { | |
13781 | test -z "$ac_c_werror_flag" || | |
13782 | test ! -s conftest.err | |
13783 | } && test -s conftest$ac_exeext && { | |
13784 | test "$cross_compiling" = yes || | |
13785 | $as_test_x conftest$ac_exeext | |
13786 | }; then | |
b80f6443 JA |
13787 | eval "$as_ac_var=yes" |
13788 | else | |
3185942a | 13789 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13790 | sed 's/^/| /' conftest.$ac_ext >&5 |
13791 | ||
3185942a | 13792 | eval "$as_ac_var=no" |
b80f6443 | 13793 | fi |
3185942a JA |
13794 | |
13795 | rm -rf conftest.dSYM | |
13796 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13797 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13798 | fi |
3185942a JA |
13799 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13800 | $as_echo "$as_val"'` | |
13801 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13802 | $as_echo "$ac_res" >&6; } | |
13803 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13804 | $as_echo "$as_val"'` | |
13805 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13806 | cat >>confdefs.h <<_ACEOF |
3185942a | 13807 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13808 | _ACEOF |
13809 | ||
13810 | fi | |
13811 | done | |
13812 | ||
13813 | ||
13814 | ||
13815 | ||
95732b49 | 13816 | for ac_func in getpwent getpwnam getpwuid |
b80f6443 | 13817 | do |
3185942a JA |
13818 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13819 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13820 | $as_echo_n "checking for $ac_func... " >&6; } | |
13821 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13822 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
13823 | else |
13824 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
13825 | /* confdefs.h. */ |
13826 | _ACEOF | |
13827 | cat confdefs.h >>conftest.$ac_ext | |
13828 | cat >>conftest.$ac_ext <<_ACEOF | |
13829 | /* end confdefs.h. */ | |
13830 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13832 | #define $ac_func innocuous_$ac_func | |
13833 | ||
b80f6443 | 13834 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
13835 | which can conflict with char $ac_func (); below. |
13836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13837 | <limits.h> exists even on freestanding compilers. */ | |
13838 | ||
13839 | #ifdef __STDC__ | |
13840 | # include <limits.h> | |
13841 | #else | |
13842 | # include <assert.h> | |
13843 | #endif | |
13844 | ||
13845 | #undef $ac_func | |
13846 | ||
3185942a JA |
13847 | /* Override any GCC internal prototype to avoid an error. |
13848 | Use char because int might match the return type of a GCC | |
13849 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
13850 | #ifdef __cplusplus |
13851 | extern "C" | |
b80f6443 | 13852 | #endif |
b80f6443 JA |
13853 | char $ac_func (); |
13854 | /* The GNU C library defines this for functions which it implements | |
13855 | to always fail with ENOSYS. Some functions are actually named | |
13856 | something starting with __ and the normal name is an alias. */ | |
3185942a | 13857 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 13858 | choke me |
b80f6443 JA |
13859 | #endif |
13860 | ||
0628567a JA |
13861 | int |
13862 | main () | |
13863 | { | |
3185942a | 13864 | return $ac_func (); |
b80f6443 JA |
13865 | ; |
13866 | return 0; | |
13867 | } | |
13868 | _ACEOF | |
13869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
13870 | if { (ac_try="$ac_link" |
13871 | case "(($ac_try" in | |
13872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13873 | *) ac_try_echo=$ac_try;; | |
13874 | esac | |
13875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13876 | $as_echo "$ac_try_echo") >&5 | |
13877 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 13878 | ac_status=$? |
0628567a JA |
13879 | grep -v '^ *+' conftest.er1 >conftest.err |
13880 | rm -f conftest.er1 | |
13881 | cat conftest.err >&5 | |
3185942a JA |
13882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13883 | (exit $ac_status); } && { | |
13884 | test -z "$ac_c_werror_flag" || | |
13885 | test ! -s conftest.err | |
13886 | } && test -s conftest$ac_exeext && { | |
13887 | test "$cross_compiling" = yes || | |
13888 | $as_test_x conftest$ac_exeext | |
13889 | }; then | |
b80f6443 JA |
13890 | eval "$as_ac_var=yes" |
13891 | else | |
3185942a | 13892 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
13893 | sed 's/^/| /' conftest.$ac_ext >&5 |
13894 | ||
3185942a | 13895 | eval "$as_ac_var=no" |
b80f6443 | 13896 | fi |
3185942a JA |
13897 | |
13898 | rm -rf conftest.dSYM | |
13899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 13900 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 13901 | fi |
3185942a JA |
13902 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13903 | $as_echo "$as_val"'` | |
13904 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13905 | $as_echo "$ac_res" >&6; } | |
13906 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13907 | $as_echo "$as_val"'` | |
13908 | if test "x$as_val" = x""yes; then | |
b80f6443 | 13909 | cat >>confdefs.h <<_ACEOF |
3185942a | 13910 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
13911 | _ACEOF |
13912 | ||
13913 | fi | |
13914 | done | |
13915 | ||
13916 | ||
13917 | ||
0001803f CR |
13918 | for ac_func in getcwd memset |
13919 | do | |
13920 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13921 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13922 | $as_echo_n "checking for $ac_func... " >&6; } | |
13923 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13924 | $as_echo_n "(cached) " >&6 | |
13925 | else | |
13926 | cat >conftest.$ac_ext <<_ACEOF | |
13927 | /* confdefs.h. */ | |
13928 | _ACEOF | |
13929 | cat confdefs.h >>conftest.$ac_ext | |
13930 | cat >>conftest.$ac_ext <<_ACEOF | |
13931 | /* end confdefs.h. */ | |
13932 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13934 | #define $ac_func innocuous_$ac_func | |
13935 | ||
13936 | /* System header to define __stub macros and hopefully few prototypes, | |
13937 | which can conflict with char $ac_func (); below. | |
13938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13939 | <limits.h> exists even on freestanding compilers. */ | |
13940 | ||
13941 | #ifdef __STDC__ | |
13942 | # include <limits.h> | |
13943 | #else | |
13944 | # include <assert.h> | |
13945 | #endif | |
13946 | ||
13947 | #undef $ac_func | |
13948 | ||
13949 | /* Override any GCC internal prototype to avoid an error. | |
13950 | Use char because int might match the return type of a GCC | |
13951 | builtin and then its argument prototype would still apply. */ | |
13952 | #ifdef __cplusplus | |
13953 | extern "C" | |
13954 | #endif | |
13955 | char $ac_func (); | |
13956 | /* The GNU C library defines this for functions which it implements | |
13957 | to always fail with ENOSYS. Some functions are actually named | |
13958 | something starting with __ and the normal name is an alias. */ | |
13959 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
13960 | choke me | |
13961 | #endif | |
13962 | ||
13963 | int | |
13964 | main () | |
13965 | { | |
13966 | return $ac_func (); | |
13967 | ; | |
13968 | return 0; | |
13969 | } | |
13970 | _ACEOF | |
13971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13972 | if { (ac_try="$ac_link" | |
13973 | case "(($ac_try" in | |
13974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13975 | *) ac_try_echo=$ac_try;; | |
13976 | esac | |
13977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13978 | $as_echo "$ac_try_echo") >&5 | |
13979 | (eval "$ac_link") 2>conftest.er1 | |
13980 | ac_status=$? | |
13981 | grep -v '^ *+' conftest.er1 >conftest.err | |
13982 | rm -f conftest.er1 | |
13983 | cat conftest.err >&5 | |
13984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13985 | (exit $ac_status); } && { | |
13986 | test -z "$ac_c_werror_flag" || | |
13987 | test ! -s conftest.err | |
13988 | } && test -s conftest$ac_exeext && { | |
13989 | test "$cross_compiling" = yes || | |
13990 | $as_test_x conftest$ac_exeext | |
13991 | }; then | |
13992 | eval "$as_ac_var=yes" | |
13993 | else | |
13994 | $as_echo "$as_me: failed program was:" >&5 | |
13995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13996 | ||
13997 | eval "$as_ac_var=no" | |
13998 | fi | |
13999 | ||
14000 | rm -rf conftest.dSYM | |
14001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14002 | conftest$ac_exeext conftest.$ac_ext | |
14003 | fi | |
14004 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
14005 | $as_echo "$as_val"'` | |
14006 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14007 | $as_echo "$ac_res" >&6; } | |
14008 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14009 | $as_echo "$as_val"'` | |
14010 | if test "x$as_val" = x""yes; then | |
14011 | cat >>confdefs.h <<_ACEOF | |
14012 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14013 | _ACEOF | |
14014 | ||
14015 | else | |
14016 | case " $LIBOBJS " in | |
14017 | *" $ac_func.$ac_objext "* ) ;; | |
14018 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
14019 | ;; | |
14020 | esac | |
14021 | ||
14022 | fi | |
14023 | done | |
14024 | ||
14025 | ||
14026 | ||
b80f6443 JA |
14027 | |
14028 | ||
14029 | ||
14030 | ||
14031 | ||
95732b49 | 14032 | |
0001803f | 14033 | for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr |
b80f6443 | 14034 | do |
3185942a JA |
14035 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14036 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14037 | $as_echo_n "checking for $ac_func... " >&6; } | |
14038 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
14039 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
14040 | else |
14041 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14042 | /* confdefs.h. */ |
14043 | _ACEOF | |
14044 | cat confdefs.h >>conftest.$ac_ext | |
14045 | cat >>conftest.$ac_ext <<_ACEOF | |
14046 | /* end confdefs.h. */ | |
14047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14049 | #define $ac_func innocuous_$ac_func | |
14050 | ||
b80f6443 | 14051 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
14052 | which can conflict with char $ac_func (); below. |
14053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14054 | <limits.h> exists even on freestanding compilers. */ | |
14055 | ||
14056 | #ifdef __STDC__ | |
14057 | # include <limits.h> | |
14058 | #else | |
14059 | # include <assert.h> | |
14060 | #endif | |
14061 | ||
14062 | #undef $ac_func | |
14063 | ||
3185942a JA |
14064 | /* Override any GCC internal prototype to avoid an error. |
14065 | Use char because int might match the return type of a GCC | |
14066 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
14067 | #ifdef __cplusplus |
14068 | extern "C" | |
b80f6443 | 14069 | #endif |
b80f6443 JA |
14070 | char $ac_func (); |
14071 | /* The GNU C library defines this for functions which it implements | |
14072 | to always fail with ENOSYS. Some functions are actually named | |
14073 | something starting with __ and the normal name is an alias. */ | |
3185942a | 14074 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 14075 | choke me |
b80f6443 JA |
14076 | #endif |
14077 | ||
0628567a JA |
14078 | int |
14079 | main () | |
14080 | { | |
3185942a | 14081 | return $ac_func (); |
b80f6443 JA |
14082 | ; |
14083 | return 0; | |
14084 | } | |
14085 | _ACEOF | |
14086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14087 | if { (ac_try="$ac_link" |
14088 | case "(($ac_try" in | |
14089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14090 | *) ac_try_echo=$ac_try;; | |
14091 | esac | |
14092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14093 | $as_echo "$ac_try_echo") >&5 | |
14094 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14095 | ac_status=$? |
0628567a JA |
14096 | grep -v '^ *+' conftest.er1 >conftest.err |
14097 | rm -f conftest.er1 | |
14098 | cat conftest.err >&5 | |
3185942a JA |
14099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14100 | (exit $ac_status); } && { | |
14101 | test -z "$ac_c_werror_flag" || | |
14102 | test ! -s conftest.err | |
14103 | } && test -s conftest$ac_exeext && { | |
14104 | test "$cross_compiling" = yes || | |
14105 | $as_test_x conftest$ac_exeext | |
14106 | }; then | |
b80f6443 JA |
14107 | eval "$as_ac_var=yes" |
14108 | else | |
3185942a | 14109 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14110 | sed 's/^/| /' conftest.$ac_ext >&5 |
14111 | ||
3185942a | 14112 | eval "$as_ac_var=no" |
b80f6443 | 14113 | fi |
3185942a JA |
14114 | |
14115 | rm -rf conftest.dSYM | |
14116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14117 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14118 | fi |
3185942a JA |
14119 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14120 | $as_echo "$as_val"'` | |
14121 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14122 | $as_echo "$ac_res" >&6; } | |
14123 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14124 | $as_echo "$as_val"'` | |
14125 | if test "x$as_val" = x""yes; then | |
b80f6443 | 14126 | cat >>confdefs.h <<_ACEOF |
3185942a | 14127 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
14128 | _ACEOF |
14129 | ||
14130 | else | |
3185942a | 14131 | case " $LIBOBJS " in |
0628567a | 14132 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
14133 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
14134 | ;; | |
0628567a JA |
14135 | esac |
14136 | ||
b80f6443 JA |
14137 | fi |
14138 | done | |
14139 | ||
14140 | ||
14141 | ||
14142 | ||
14143 | ||
14144 | ||
14145 | ||
14146 | ||
14147 | ||
14148 | for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax | |
14149 | do | |
3185942a JA |
14150 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14151 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14152 | $as_echo_n "checking for $ac_func... " >&6; } | |
14153 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
14154 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
14155 | else |
14156 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14157 | /* confdefs.h. */ |
14158 | _ACEOF | |
14159 | cat confdefs.h >>conftest.$ac_ext | |
14160 | cat >>conftest.$ac_ext <<_ACEOF | |
14161 | /* end confdefs.h. */ | |
14162 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14164 | #define $ac_func innocuous_$ac_func | |
14165 | ||
b80f6443 | 14166 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
14167 | which can conflict with char $ac_func (); below. |
14168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14169 | <limits.h> exists even on freestanding compilers. */ | |
14170 | ||
14171 | #ifdef __STDC__ | |
14172 | # include <limits.h> | |
14173 | #else | |
14174 | # include <assert.h> | |
14175 | #endif | |
14176 | ||
14177 | #undef $ac_func | |
14178 | ||
3185942a JA |
14179 | /* Override any GCC internal prototype to avoid an error. |
14180 | Use char because int might match the return type of a GCC | |
14181 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
14182 | #ifdef __cplusplus |
14183 | extern "C" | |
b80f6443 | 14184 | #endif |
b80f6443 JA |
14185 | char $ac_func (); |
14186 | /* The GNU C library defines this for functions which it implements | |
14187 | to always fail with ENOSYS. Some functions are actually named | |
14188 | something starting with __ and the normal name is an alias. */ | |
3185942a | 14189 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 14190 | choke me |
3185942a JA |
14191 | #endif |
14192 | ||
14193 | int | |
14194 | main () | |
14195 | { | |
14196 | return $ac_func (); | |
14197 | ; | |
14198 | return 0; | |
14199 | } | |
14200 | _ACEOF | |
14201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14202 | if { (ac_try="$ac_link" | |
14203 | case "(($ac_try" in | |
14204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14205 | *) ac_try_echo=$ac_try;; | |
14206 | esac | |
14207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14208 | $as_echo "$ac_try_echo") >&5 | |
14209 | (eval "$ac_link") 2>conftest.er1 | |
14210 | ac_status=$? | |
14211 | grep -v '^ *+' conftest.er1 >conftest.err | |
14212 | rm -f conftest.er1 | |
14213 | cat conftest.err >&5 | |
14214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14215 | (exit $ac_status); } && { | |
14216 | test -z "$ac_c_werror_flag" || | |
14217 | test ! -s conftest.err | |
14218 | } && test -s conftest$ac_exeext && { | |
14219 | test "$cross_compiling" = yes || | |
14220 | $as_test_x conftest$ac_exeext | |
14221 | }; then | |
14222 | eval "$as_ac_var=yes" | |
14223 | else | |
14224 | $as_echo "$as_me: failed program was:" >&5 | |
14225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14226 | ||
14227 | eval "$as_ac_var=no" | |
14228 | fi | |
14229 | ||
14230 | rm -rf conftest.dSYM | |
14231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14232 | conftest$ac_exeext conftest.$ac_ext | |
14233 | fi | |
14234 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
14235 | $as_echo "$as_val"'` | |
14236 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14237 | $as_echo "$ac_res" >&6; } | |
14238 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14239 | $as_echo "$as_val"'` | |
14240 | if test "x$as_val" = x""yes; then | |
14241 | cat >>confdefs.h <<_ACEOF | |
14242 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14243 | _ACEOF | |
14244 | ||
14245 | else | |
14246 | case " $LIBOBJS " in | |
14247 | *" $ac_func.$ac_objext "* ) ;; | |
14248 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
14249 | ;; | |
14250 | esac | |
14251 | ||
14252 | fi | |
14253 | done | |
14254 | ||
14255 | ||
14256 | ||
495aee44 CR |
14257 | for ac_func in dprintf |
14258 | do | |
14259 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14260 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14261 | $as_echo_n "checking for $ac_func... " >&6; } | |
14262 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
14263 | $as_echo_n "(cached) " >&6 | |
14264 | else | |
14265 | cat >conftest.$ac_ext <<_ACEOF | |
14266 | /* confdefs.h. */ | |
14267 | _ACEOF | |
14268 | cat confdefs.h >>conftest.$ac_ext | |
14269 | cat >>conftest.$ac_ext <<_ACEOF | |
14270 | /* end confdefs.h. */ | |
14271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14273 | #define $ac_func innocuous_$ac_func | |
14274 | ||
14275 | /* System header to define __stub macros and hopefully few prototypes, | |
14276 | which can conflict with char $ac_func (); below. | |
14277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14278 | <limits.h> exists even on freestanding compilers. */ | |
14279 | ||
14280 | #ifdef __STDC__ | |
14281 | # include <limits.h> | |
14282 | #else | |
14283 | # include <assert.h> | |
14284 | #endif | |
14285 | ||
14286 | #undef $ac_func | |
14287 | ||
14288 | /* Override any GCC internal prototype to avoid an error. | |
14289 | Use char because int might match the return type of a GCC | |
14290 | builtin and then its argument prototype would still apply. */ | |
14291 | #ifdef __cplusplus | |
14292 | extern "C" | |
14293 | #endif | |
14294 | char $ac_func (); | |
14295 | /* The GNU C library defines this for functions which it implements | |
14296 | to always fail with ENOSYS. Some functions are actually named | |
14297 | something starting with __ and the normal name is an alias. */ | |
14298 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
14299 | choke me | |
14300 | #endif | |
14301 | ||
14302 | int | |
14303 | main () | |
14304 | { | |
14305 | return $ac_func (); | |
14306 | ; | |
14307 | return 0; | |
14308 | } | |
14309 | _ACEOF | |
14310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14311 | if { (ac_try="$ac_link" | |
14312 | case "(($ac_try" in | |
14313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14314 | *) ac_try_echo=$ac_try;; | |
14315 | esac | |
14316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14317 | $as_echo "$ac_try_echo") >&5 | |
14318 | (eval "$ac_link") 2>conftest.er1 | |
14319 | ac_status=$? | |
14320 | grep -v '^ *+' conftest.er1 >conftest.err | |
14321 | rm -f conftest.er1 | |
14322 | cat conftest.err >&5 | |
14323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14324 | (exit $ac_status); } && { | |
14325 | test -z "$ac_c_werror_flag" || | |
14326 | test ! -s conftest.err | |
14327 | } && test -s conftest$ac_exeext && { | |
14328 | test "$cross_compiling" = yes || | |
14329 | $as_test_x conftest$ac_exeext | |
14330 | }; then | |
14331 | eval "$as_ac_var=yes" | |
14332 | else | |
14333 | $as_echo "$as_me: failed program was:" >&5 | |
14334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14335 | ||
14336 | eval "$as_ac_var=no" | |
14337 | fi | |
14338 | ||
14339 | rm -rf conftest.dSYM | |
14340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14341 | conftest$ac_exeext conftest.$ac_ext | |
14342 | fi | |
14343 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
14344 | $as_echo "$as_val"'` | |
14345 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14346 | $as_echo "$ac_res" >&6; } | |
14347 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14348 | $as_echo "$as_val"'` | |
14349 | if test "x$as_val" = x""yes; then | |
14350 | cat >>confdefs.h <<_ACEOF | |
14351 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14352 | _ACEOF | |
14353 | ||
14354 | else | |
14355 | case " $LIBOBJS " in | |
14356 | *" $ac_func.$ac_objext "* ) ;; | |
14357 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
14358 | ;; | |
14359 | esac | |
14360 | ||
14361 | fi | |
14362 | done | |
14363 | ||
14364 | ||
14365 | ||
14366 | for ac_func in strchrnul | |
3185942a JA |
14367 | do |
14368 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14369 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14370 | $as_echo_n "checking for $ac_func... " >&6; } | |
14371 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
14372 | $as_echo_n "(cached) " >&6 | |
14373 | else | |
14374 | cat >conftest.$ac_ext <<_ACEOF | |
14375 | /* confdefs.h. */ | |
14376 | _ACEOF | |
14377 | cat confdefs.h >>conftest.$ac_ext | |
14378 | cat >>conftest.$ac_ext <<_ACEOF | |
14379 | /* end confdefs.h. */ | |
14380 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14382 | #define $ac_func innocuous_$ac_func | |
14383 | ||
14384 | /* System header to define __stub macros and hopefully few prototypes, | |
14385 | which can conflict with char $ac_func (); below. | |
14386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14387 | <limits.h> exists even on freestanding compilers. */ | |
14388 | ||
14389 | #ifdef __STDC__ | |
14390 | # include <limits.h> | |
b80f6443 | 14391 | #else |
3185942a | 14392 | # include <assert.h> |
0628567a | 14393 | #endif |
3185942a JA |
14394 | |
14395 | #undef $ac_func | |
14396 | ||
14397 | /* Override any GCC internal prototype to avoid an error. | |
14398 | Use char because int might match the return type of a GCC | |
14399 | builtin and then its argument prototype would still apply. */ | |
0628567a | 14400 | #ifdef __cplusplus |
3185942a JA |
14401 | extern "C" |
14402 | #endif | |
14403 | char $ac_func (); | |
14404 | /* The GNU C library defines this for functions which it implements | |
14405 | to always fail with ENOSYS. Some functions are actually named | |
14406 | something starting with __ and the normal name is an alias. */ | |
14407 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
14408 | choke me | |
b80f6443 JA |
14409 | #endif |
14410 | ||
0628567a JA |
14411 | int |
14412 | main () | |
14413 | { | |
3185942a | 14414 | return $ac_func (); |
b80f6443 JA |
14415 | ; |
14416 | return 0; | |
14417 | } | |
14418 | _ACEOF | |
14419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
14420 | if { (ac_try="$ac_link" |
14421 | case "(($ac_try" in | |
14422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14423 | *) ac_try_echo=$ac_try;; | |
14424 | esac | |
14425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14426 | $as_echo "$ac_try_echo") >&5 | |
14427 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 14428 | ac_status=$? |
0628567a JA |
14429 | grep -v '^ *+' conftest.er1 >conftest.err |
14430 | rm -f conftest.er1 | |
14431 | cat conftest.err >&5 | |
3185942a JA |
14432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14433 | (exit $ac_status); } && { | |
14434 | test -z "$ac_c_werror_flag" || | |
14435 | test ! -s conftest.err | |
14436 | } && test -s conftest$ac_exeext && { | |
14437 | test "$cross_compiling" = yes || | |
14438 | $as_test_x conftest$ac_exeext | |
14439 | }; then | |
b80f6443 JA |
14440 | eval "$as_ac_var=yes" |
14441 | else | |
3185942a | 14442 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14443 | sed 's/^/| /' conftest.$ac_ext >&5 |
14444 | ||
3185942a | 14445 | eval "$as_ac_var=no" |
b80f6443 | 14446 | fi |
3185942a JA |
14447 | |
14448 | rm -rf conftest.dSYM | |
14449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 14450 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 14451 | fi |
3185942a JA |
14452 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14453 | $as_echo "$as_val"'` | |
14454 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14455 | $as_echo "$ac_res" >&6; } | |
14456 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14457 | $as_echo "$as_val"'` | |
14458 | if test "x$as_val" = x""yes; then | |
b80f6443 | 14459 | cat >>confdefs.h <<_ACEOF |
3185942a | 14460 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
14461 | _ACEOF |
14462 | ||
14463 | else | |
3185942a | 14464 | case " $LIBOBJS " in |
0628567a | 14465 | *" $ac_func.$ac_objext "* ) ;; |
3185942a JA |
14466 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
14467 | ;; | |
0628567a JA |
14468 | esac |
14469 | ||
b80f6443 JA |
14470 | fi |
14471 | done | |
14472 | ||
14473 | ||
14474 | ||
3185942a JA |
14475 | { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5 |
14476 | $as_echo_n "checking whether confstr is declared... " >&6; } | |
b80f6443 | 14477 | if test "${ac_cv_have_decl_confstr+set}" = set; then |
3185942a | 14478 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14479 | else |
14480 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14481 | /* confdefs.h. */ |
14482 | _ACEOF | |
14483 | cat confdefs.h >>conftest.$ac_ext | |
14484 | cat >>conftest.$ac_ext <<_ACEOF | |
14485 | /* end confdefs.h. */ | |
b80f6443 JA |
14486 | $ac_includes_default |
14487 | int | |
14488 | main () | |
14489 | { | |
14490 | #ifndef confstr | |
3185942a | 14491 | (void) confstr; |
b80f6443 JA |
14492 | #endif |
14493 | ||
14494 | ; | |
14495 | return 0; | |
14496 | } | |
14497 | _ACEOF | |
14498 | rm -f conftest.$ac_objext | |
3185942a JA |
14499 | if { (ac_try="$ac_compile" |
14500 | case "(($ac_try" in | |
14501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14502 | *) ac_try_echo=$ac_try;; | |
14503 | esac | |
14504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14505 | $as_echo "$ac_try_echo") >&5 | |
14506 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14507 | ac_status=$? |
0628567a JA |
14508 | grep -v '^ *+' conftest.er1 >conftest.err |
14509 | rm -f conftest.er1 | |
14510 | cat conftest.err >&5 | |
3185942a JA |
14511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14512 | (exit $ac_status); } && { | |
14513 | test -z "$ac_c_werror_flag" || | |
14514 | test ! -s conftest.err | |
14515 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14516 | ac_cv_have_decl_confstr=yes |
14517 | else | |
3185942a | 14518 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14519 | sed 's/^/| /' conftest.$ac_ext >&5 |
14520 | ||
3185942a | 14521 | ac_cv_have_decl_confstr=no |
b80f6443 | 14522 | fi |
3185942a JA |
14523 | |
14524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14525 | fi |
3185942a JA |
14526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5 |
14527 | $as_echo "$ac_cv_have_decl_confstr" >&6; } | |
14528 | if test "x$ac_cv_have_decl_confstr" = x""yes; then | |
b80f6443 JA |
14529 | |
14530 | cat >>confdefs.h <<_ACEOF | |
14531 | #define HAVE_DECL_CONFSTR 1 | |
14532 | _ACEOF | |
14533 | ||
14534 | ||
14535 | else | |
14536 | cat >>confdefs.h <<_ACEOF | |
14537 | #define HAVE_DECL_CONFSTR 0 | |
14538 | _ACEOF | |
14539 | ||
14540 | ||
14541 | fi | |
14542 | ||
14543 | ||
3185942a JA |
14544 | { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5 |
14545 | $as_echo_n "checking whether printf is declared... " >&6; } | |
b80f6443 | 14546 | if test "${ac_cv_have_decl_printf+set}" = set; then |
3185942a | 14547 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14548 | else |
14549 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14550 | /* confdefs.h. */ |
14551 | _ACEOF | |
14552 | cat confdefs.h >>conftest.$ac_ext | |
14553 | cat >>conftest.$ac_ext <<_ACEOF | |
14554 | /* end confdefs.h. */ | |
b80f6443 JA |
14555 | $ac_includes_default |
14556 | int | |
14557 | main () | |
14558 | { | |
14559 | #ifndef printf | |
3185942a | 14560 | (void) printf; |
b80f6443 JA |
14561 | #endif |
14562 | ||
14563 | ; | |
14564 | return 0; | |
14565 | } | |
14566 | _ACEOF | |
14567 | rm -f conftest.$ac_objext | |
3185942a JA |
14568 | if { (ac_try="$ac_compile" |
14569 | case "(($ac_try" in | |
14570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14571 | *) ac_try_echo=$ac_try;; | |
14572 | esac | |
14573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14574 | $as_echo "$ac_try_echo") >&5 | |
14575 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14576 | ac_status=$? |
0628567a JA |
14577 | grep -v '^ *+' conftest.er1 >conftest.err |
14578 | rm -f conftest.er1 | |
14579 | cat conftest.err >&5 | |
3185942a JA |
14580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14581 | (exit $ac_status); } && { | |
14582 | test -z "$ac_c_werror_flag" || | |
14583 | test ! -s conftest.err | |
14584 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14585 | ac_cv_have_decl_printf=yes |
14586 | else | |
3185942a | 14587 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14588 | sed 's/^/| /' conftest.$ac_ext >&5 |
14589 | ||
3185942a | 14590 | ac_cv_have_decl_printf=no |
b80f6443 | 14591 | fi |
3185942a JA |
14592 | |
14593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14594 | fi |
3185942a JA |
14595 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5 |
14596 | $as_echo "$ac_cv_have_decl_printf" >&6; } | |
14597 | if test "x$ac_cv_have_decl_printf" = x""yes; then | |
b80f6443 JA |
14598 | |
14599 | cat >>confdefs.h <<_ACEOF | |
14600 | #define HAVE_DECL_PRINTF 1 | |
14601 | _ACEOF | |
14602 | ||
14603 | ||
14604 | else | |
14605 | cat >>confdefs.h <<_ACEOF | |
14606 | #define HAVE_DECL_PRINTF 0 | |
14607 | _ACEOF | |
14608 | ||
14609 | ||
14610 | fi | |
14611 | ||
14612 | ||
3185942a JA |
14613 | { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 |
14614 | $as_echo_n "checking whether sbrk is declared... " >&6; } | |
b80f6443 | 14615 | if test "${ac_cv_have_decl_sbrk+set}" = set; then |
3185942a | 14616 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14617 | else |
14618 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14619 | /* confdefs.h. */ |
14620 | _ACEOF | |
14621 | cat confdefs.h >>conftest.$ac_ext | |
14622 | cat >>conftest.$ac_ext <<_ACEOF | |
14623 | /* end confdefs.h. */ | |
b80f6443 JA |
14624 | $ac_includes_default |
14625 | int | |
14626 | main () | |
14627 | { | |
14628 | #ifndef sbrk | |
3185942a | 14629 | (void) sbrk; |
b80f6443 JA |
14630 | #endif |
14631 | ||
14632 | ; | |
14633 | return 0; | |
14634 | } | |
14635 | _ACEOF | |
14636 | rm -f conftest.$ac_objext | |
3185942a JA |
14637 | if { (ac_try="$ac_compile" |
14638 | case "(($ac_try" in | |
14639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14640 | *) ac_try_echo=$ac_try;; | |
14641 | esac | |
14642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14643 | $as_echo "$ac_try_echo") >&5 | |
14644 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14645 | ac_status=$? |
0628567a JA |
14646 | grep -v '^ *+' conftest.er1 >conftest.err |
14647 | rm -f conftest.er1 | |
14648 | cat conftest.err >&5 | |
3185942a JA |
14649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14650 | (exit $ac_status); } && { | |
14651 | test -z "$ac_c_werror_flag" || | |
14652 | test ! -s conftest.err | |
14653 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14654 | ac_cv_have_decl_sbrk=yes |
14655 | else | |
3185942a | 14656 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14657 | sed 's/^/| /' conftest.$ac_ext >&5 |
14658 | ||
3185942a | 14659 | ac_cv_have_decl_sbrk=no |
b80f6443 | 14660 | fi |
3185942a JA |
14661 | |
14662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14663 | fi |
3185942a JA |
14664 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
14665 | $as_echo "$ac_cv_have_decl_sbrk" >&6; } | |
14666 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then | |
b80f6443 JA |
14667 | |
14668 | cat >>confdefs.h <<_ACEOF | |
14669 | #define HAVE_DECL_SBRK 1 | |
14670 | _ACEOF | |
14671 | ||
14672 | ||
14673 | else | |
14674 | cat >>confdefs.h <<_ACEOF | |
14675 | #define HAVE_DECL_SBRK 0 | |
14676 | _ACEOF | |
14677 | ||
14678 | ||
14679 | fi | |
14680 | ||
14681 | ||
3185942a JA |
14682 | { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5 |
14683 | $as_echo_n "checking whether setregid is declared... " >&6; } | |
0628567a | 14684 | if test "${ac_cv_have_decl_setregid+set}" = set; then |
3185942a | 14685 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14686 | else |
14687 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14688 | /* confdefs.h. */ |
14689 | _ACEOF | |
14690 | cat confdefs.h >>conftest.$ac_ext | |
14691 | cat >>conftest.$ac_ext <<_ACEOF | |
14692 | /* end confdefs.h. */ | |
b80f6443 JA |
14693 | $ac_includes_default |
14694 | int | |
14695 | main () | |
14696 | { | |
0628567a | 14697 | #ifndef setregid |
3185942a | 14698 | (void) setregid; |
b80f6443 JA |
14699 | #endif |
14700 | ||
14701 | ; | |
14702 | return 0; | |
14703 | } | |
14704 | _ACEOF | |
14705 | rm -f conftest.$ac_objext | |
3185942a JA |
14706 | if { (ac_try="$ac_compile" |
14707 | case "(($ac_try" in | |
14708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14709 | *) ac_try_echo=$ac_try;; | |
14710 | esac | |
14711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14712 | $as_echo "$ac_try_echo") >&5 | |
14713 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14714 | ac_status=$? |
0628567a JA |
14715 | grep -v '^ *+' conftest.er1 >conftest.err |
14716 | rm -f conftest.er1 | |
14717 | cat conftest.err >&5 | |
3185942a JA |
14718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14719 | (exit $ac_status); } && { | |
14720 | test -z "$ac_c_werror_flag" || | |
14721 | test ! -s conftest.err | |
14722 | } && test -s conftest.$ac_objext; then | |
0628567a | 14723 | ac_cv_have_decl_setregid=yes |
b80f6443 | 14724 | else |
3185942a | 14725 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14726 | sed 's/^/| /' conftest.$ac_ext >&5 |
14727 | ||
3185942a | 14728 | ac_cv_have_decl_setregid=no |
b80f6443 | 14729 | fi |
3185942a JA |
14730 | |
14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14732 | fi |
3185942a JA |
14733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5 |
14734 | $as_echo "$ac_cv_have_decl_setregid" >&6; } | |
14735 | if test "x$ac_cv_have_decl_setregid" = x""yes; then | |
b80f6443 JA |
14736 | |
14737 | cat >>confdefs.h <<_ACEOF | |
0628567a | 14738 | #define HAVE_DECL_SETREGID 1 |
b80f6443 JA |
14739 | _ACEOF |
14740 | ||
14741 | ||
14742 | else | |
14743 | cat >>confdefs.h <<_ACEOF | |
0628567a | 14744 | #define HAVE_DECL_SETREGID 0 |
b80f6443 JA |
14745 | _ACEOF |
14746 | ||
14747 | ||
14748 | fi | |
14749 | ||
14750 | ||
3185942a JA |
14751 | { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5 |
14752 | $as_echo_n "checking whether strcpy is declared... " >&6; } | |
0628567a | 14753 | if test "${ac_cv_have_decl_strcpy+set}" = set; then |
3185942a | 14754 | $as_echo_n "(cached) " >&6 |
0628567a | 14755 | else |
b80f6443 | 14756 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
14757 | /* confdefs.h. */ |
14758 | _ACEOF | |
14759 | cat confdefs.h >>conftest.$ac_ext | |
14760 | cat >>conftest.$ac_ext <<_ACEOF | |
14761 | /* end confdefs.h. */ | |
b80f6443 | 14762 | $ac_includes_default |
0628567a JA |
14763 | int |
14764 | main () | |
14765 | { | |
14766 | #ifndef strcpy | |
3185942a | 14767 | (void) strcpy; |
95732b49 | 14768 | #endif |
0628567a JA |
14769 | |
14770 | ; | |
14771 | return 0; | |
14772 | } | |
14773 | _ACEOF | |
14774 | rm -f conftest.$ac_objext | |
3185942a JA |
14775 | if { (ac_try="$ac_compile" |
14776 | case "(($ac_try" in | |
14777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14778 | *) ac_try_echo=$ac_try;; | |
14779 | esac | |
14780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14781 | $as_echo "$ac_try_echo") >&5 | |
14782 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
14783 | ac_status=$? |
14784 | grep -v '^ *+' conftest.er1 >conftest.err | |
14785 | rm -f conftest.er1 | |
14786 | cat conftest.err >&5 | |
3185942a JA |
14787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14788 | (exit $ac_status); } && { | |
14789 | test -z "$ac_c_werror_flag" || | |
14790 | test ! -s conftest.err | |
14791 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
14792 | ac_cv_have_decl_strcpy=yes |
14793 | else | |
3185942a | 14794 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14795 | sed 's/^/| /' conftest.$ac_ext >&5 |
14796 | ||
3185942a | 14797 | ac_cv_have_decl_strcpy=no |
0628567a | 14798 | fi |
3185942a JA |
14799 | |
14800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 14801 | fi |
3185942a JA |
14802 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5 |
14803 | $as_echo "$ac_cv_have_decl_strcpy" >&6; } | |
14804 | if test "x$ac_cv_have_decl_strcpy" = x""yes; then | |
0628567a JA |
14805 | |
14806 | cat >>confdefs.h <<_ACEOF | |
14807 | #define HAVE_DECL_STRCPY 1 | |
14808 | _ACEOF | |
14809 | ||
14810 | ||
14811 | else | |
14812 | cat >>confdefs.h <<_ACEOF | |
14813 | #define HAVE_DECL_STRCPY 0 | |
14814 | _ACEOF | |
14815 | ||
14816 | ||
14817 | fi | |
14818 | ||
14819 | ||
3185942a JA |
14820 | { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5 |
14821 | $as_echo_n "checking whether strsignal is declared... " >&6; } | |
0628567a | 14822 | if test "${ac_cv_have_decl_strsignal+set}" = set; then |
3185942a | 14823 | $as_echo_n "(cached) " >&6 |
0628567a JA |
14824 | else |
14825 | cat >conftest.$ac_ext <<_ACEOF | |
14826 | /* confdefs.h. */ | |
14827 | _ACEOF | |
14828 | cat confdefs.h >>conftest.$ac_ext | |
14829 | cat >>conftest.$ac_ext <<_ACEOF | |
14830 | /* end confdefs.h. */ | |
14831 | $ac_includes_default | |
b80f6443 JA |
14832 | int |
14833 | main () | |
14834 | { | |
14835 | #ifndef strsignal | |
3185942a | 14836 | (void) strsignal; |
b80f6443 JA |
14837 | #endif |
14838 | ||
14839 | ; | |
14840 | return 0; | |
14841 | } | |
14842 | _ACEOF | |
14843 | rm -f conftest.$ac_objext | |
3185942a JA |
14844 | if { (ac_try="$ac_compile" |
14845 | case "(($ac_try" in | |
14846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14847 | *) ac_try_echo=$ac_try;; | |
14848 | esac | |
14849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14850 | $as_echo "$ac_try_echo") >&5 | |
14851 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14852 | ac_status=$? |
0628567a JA |
14853 | grep -v '^ *+' conftest.er1 >conftest.err |
14854 | rm -f conftest.er1 | |
14855 | cat conftest.err >&5 | |
3185942a JA |
14856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14857 | (exit $ac_status); } && { | |
14858 | test -z "$ac_c_werror_flag" || | |
14859 | test ! -s conftest.err | |
14860 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14861 | ac_cv_have_decl_strsignal=yes |
14862 | else | |
3185942a | 14863 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14864 | sed 's/^/| /' conftest.$ac_ext >&5 |
14865 | ||
3185942a | 14866 | ac_cv_have_decl_strsignal=no |
b80f6443 | 14867 | fi |
3185942a JA |
14868 | |
14869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14870 | fi |
3185942a JA |
14871 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5 |
14872 | $as_echo "$ac_cv_have_decl_strsignal" >&6; } | |
14873 | if test "x$ac_cv_have_decl_strsignal" = x""yes; then | |
b80f6443 JA |
14874 | |
14875 | cat >>confdefs.h <<_ACEOF | |
14876 | #define HAVE_DECL_STRSIGNAL 1 | |
14877 | _ACEOF | |
14878 | ||
14879 | ||
14880 | else | |
14881 | cat >>confdefs.h <<_ACEOF | |
14882 | #define HAVE_DECL_STRSIGNAL 0 | |
14883 | _ACEOF | |
14884 | ||
14885 | ||
14886 | fi | |
14887 | ||
14888 | ||
14889 | ||
3185942a JA |
14890 | { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5 |
14891 | $as_echo_n "checking whether strtold is declared... " >&6; } | |
b80f6443 | 14892 | if test "${ac_cv_have_decl_strtold+set}" = set; then |
3185942a | 14893 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14894 | else |
14895 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14896 | /* confdefs.h. */ |
14897 | _ACEOF | |
14898 | cat confdefs.h >>conftest.$ac_ext | |
14899 | cat >>conftest.$ac_ext <<_ACEOF | |
14900 | /* end confdefs.h. */ | |
b80f6443 JA |
14901 | $ac_includes_default |
14902 | int | |
14903 | main () | |
14904 | { | |
14905 | #ifndef strtold | |
3185942a | 14906 | (void) strtold; |
b80f6443 JA |
14907 | #endif |
14908 | ||
14909 | ; | |
14910 | return 0; | |
14911 | } | |
14912 | _ACEOF | |
14913 | rm -f conftest.$ac_objext | |
3185942a JA |
14914 | if { (ac_try="$ac_compile" |
14915 | case "(($ac_try" in | |
14916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14917 | *) ac_try_echo=$ac_try;; | |
14918 | esac | |
14919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14920 | $as_echo "$ac_try_echo") >&5 | |
14921 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14922 | ac_status=$? |
0628567a JA |
14923 | grep -v '^ *+' conftest.er1 >conftest.err |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
3185942a JA |
14926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14927 | (exit $ac_status); } && { | |
14928 | test -z "$ac_c_werror_flag" || | |
14929 | test ! -s conftest.err | |
14930 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14931 | ac_cv_have_decl_strtold=yes |
14932 | else | |
3185942a | 14933 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14934 | sed 's/^/| /' conftest.$ac_ext >&5 |
14935 | ||
3185942a | 14936 | ac_cv_have_decl_strtold=no |
b80f6443 | 14937 | fi |
3185942a JA |
14938 | |
14939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 14940 | fi |
3185942a JA |
14941 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5 |
14942 | $as_echo "$ac_cv_have_decl_strtold" >&6; } | |
14943 | if test "x$ac_cv_have_decl_strtold" = x""yes; then | |
b80f6443 JA |
14944 | |
14945 | cat >>confdefs.h <<_ACEOF | |
14946 | #define HAVE_DECL_STRTOLD 1 | |
14947 | _ACEOF | |
14948 | ||
14949 | ||
3185942a JA |
14950 | { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5 |
14951 | $as_echo_n "checking for broken strtold... " >&6; } | |
b80f6443 | 14952 | if test "${bash_cv_strtold_broken+set}" = set; then |
3185942a | 14953 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
14954 | else |
14955 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
14956 | /* confdefs.h. */ |
14957 | _ACEOF | |
14958 | cat confdefs.h >>conftest.$ac_ext | |
14959 | cat >>conftest.$ac_ext <<_ACEOF | |
14960 | /* end confdefs.h. */ | |
b80f6443 JA |
14961 | #include <stdlib.h> |
14962 | int | |
14963 | main () | |
14964 | { | |
14965 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} | |
14966 | ; | |
14967 | return 0; | |
14968 | } | |
14969 | _ACEOF | |
14970 | rm -f conftest.$ac_objext | |
3185942a JA |
14971 | if { (ac_try="$ac_compile" |
14972 | case "(($ac_try" in | |
14973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14974 | *) ac_try_echo=$ac_try;; | |
14975 | esac | |
14976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14977 | $as_echo "$ac_try_echo") >&5 | |
14978 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 14979 | ac_status=$? |
0628567a JA |
14980 | grep -v '^ *+' conftest.er1 >conftest.err |
14981 | rm -f conftest.er1 | |
14982 | cat conftest.err >&5 | |
3185942a JA |
14983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14984 | (exit $ac_status); } && { | |
14985 | test -z "$ac_c_werror_flag" || | |
14986 | test ! -s conftest.err | |
14987 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
14988 | bash_cv_strtold_broken=no |
14989 | else | |
3185942a | 14990 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
14991 | sed 's/^/| /' conftest.$ac_ext >&5 |
14992 | ||
3185942a | 14993 | bash_cv_strtold_broken=yes |
b80f6443 | 14994 | fi |
3185942a JA |
14995 | |
14996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
14997 | |
14998 | ||
14999 | fi | |
15000 | ||
3185942a JA |
15001 | { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5 |
15002 | $as_echo "$bash_cv_strtold_broken" >&6; } | |
b80f6443 JA |
15003 | if test "$bash_cv_strtold_broken" = "yes" ; then |
15004 | cat >>confdefs.h <<\_ACEOF | |
15005 | #define STRTOLD_BROKEN 1 | |
15006 | _ACEOF | |
15007 | ||
15008 | fi | |
15009 | ||
15010 | else | |
15011 | cat >>confdefs.h <<_ACEOF | |
15012 | #define HAVE_DECL_STRTOLD 0 | |
15013 | _ACEOF | |
15014 | ||
15015 | ||
15016 | fi | |
15017 | ||
15018 | ||
15019 | ||
15020 | ||
15021 | ||
15022 | ||
15023 | ||
3185942a JA |
15024 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5 |
15025 | $as_echo_n "checking for declaration of strtoimax... " >&6; } | |
b80f6443 | 15026 | if test "${bash_cv_decl_strtoimax+set}" = set; then |
3185942a | 15027 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15028 | else |
15029 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15030 | /* confdefs.h. */ |
15031 | _ACEOF | |
15032 | cat confdefs.h >>conftest.$ac_ext | |
15033 | cat >>conftest.$ac_ext <<_ACEOF | |
15034 | /* end confdefs.h. */ | |
b80f6443 JA |
15035 | |
15036 | #if STDC_HEADERS | |
15037 | # include <stdlib.h> | |
15038 | #endif | |
15039 | #if HAVE_INTTYPES_H | |
15040 | # include <inttypes.h> | |
15041 | #endif | |
15042 | ||
15043 | int | |
15044 | main () | |
15045 | { | |
15046 | return !strtoimax; | |
15047 | ; | |
15048 | return 0; | |
15049 | } | |
15050 | _ACEOF | |
15051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15052 | if { (ac_try="$ac_link" |
15053 | case "(($ac_try" in | |
15054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15055 | *) ac_try_echo=$ac_try;; | |
15056 | esac | |
15057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15058 | $as_echo "$ac_try_echo") >&5 | |
15059 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15060 | ac_status=$? |
0628567a JA |
15061 | grep -v '^ *+' conftest.er1 >conftest.err |
15062 | rm -f conftest.er1 | |
15063 | cat conftest.err >&5 | |
3185942a JA |
15064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15065 | (exit $ac_status); } && { | |
15066 | test -z "$ac_c_werror_flag" || | |
15067 | test ! -s conftest.err | |
15068 | } && test -s conftest$ac_exeext && { | |
15069 | test "$cross_compiling" = yes || | |
15070 | $as_test_x conftest$ac_exeext | |
15071 | }; then | |
b80f6443 JA |
15072 | bash_cv_decl_strtoimax=yes |
15073 | else | |
3185942a | 15074 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15075 | sed 's/^/| /' conftest.$ac_ext >&5 |
15076 | ||
3185942a | 15077 | bash_cv_decl_strtoimax=no |
b80f6443 | 15078 | fi |
3185942a JA |
15079 | |
15080 | rm -rf conftest.dSYM | |
15081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15082 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15083 | fi |
3185942a JA |
15084 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5 |
15085 | $as_echo "$bash_cv_decl_strtoimax" >&6; } | |
b80f6443 JA |
15086 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15087 | if test $bash_cv_decl_strtoimax = yes; then | |
15088 | cat >>confdefs.h <<_ACEOF | |
15089 | #define $bash_tr_func 1 | |
15090 | _ACEOF | |
15091 | ||
15092 | else | |
15093 | cat >>confdefs.h <<_ACEOF | |
15094 | #define $bash_tr_func 0 | |
15095 | _ACEOF | |
15096 | ||
15097 | fi | |
15098 | ||
15099 | ||
15100 | ||
15101 | ||
3185942a JA |
15102 | { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5 |
15103 | $as_echo_n "checking for declaration of strtol... " >&6; } | |
b80f6443 | 15104 | if test "${bash_cv_decl_strtol+set}" = set; then |
3185942a | 15105 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15106 | else |
15107 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15108 | /* confdefs.h. */ |
15109 | _ACEOF | |
15110 | cat confdefs.h >>conftest.$ac_ext | |
15111 | cat >>conftest.$ac_ext <<_ACEOF | |
15112 | /* end confdefs.h. */ | |
b80f6443 JA |
15113 | |
15114 | #if STDC_HEADERS | |
15115 | # include <stdlib.h> | |
15116 | #endif | |
15117 | #if HAVE_INTTYPES_H | |
15118 | # include <inttypes.h> | |
15119 | #endif | |
15120 | ||
15121 | int | |
15122 | main () | |
15123 | { | |
15124 | return !strtol; | |
15125 | ; | |
15126 | return 0; | |
15127 | } | |
15128 | _ACEOF | |
15129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15130 | if { (ac_try="$ac_link" |
15131 | case "(($ac_try" in | |
15132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15133 | *) ac_try_echo=$ac_try;; | |
15134 | esac | |
15135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15136 | $as_echo "$ac_try_echo") >&5 | |
15137 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15138 | ac_status=$? |
0628567a JA |
15139 | grep -v '^ *+' conftest.er1 >conftest.err |
15140 | rm -f conftest.er1 | |
15141 | cat conftest.err >&5 | |
3185942a JA |
15142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15143 | (exit $ac_status); } && { | |
15144 | test -z "$ac_c_werror_flag" || | |
15145 | test ! -s conftest.err | |
15146 | } && test -s conftest$ac_exeext && { | |
15147 | test "$cross_compiling" = yes || | |
15148 | $as_test_x conftest$ac_exeext | |
15149 | }; then | |
b80f6443 JA |
15150 | bash_cv_decl_strtol=yes |
15151 | else | |
3185942a | 15152 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15153 | sed 's/^/| /' conftest.$ac_ext >&5 |
15154 | ||
3185942a | 15155 | bash_cv_decl_strtol=no |
b80f6443 | 15156 | fi |
3185942a JA |
15157 | |
15158 | rm -rf conftest.dSYM | |
15159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15160 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15161 | fi |
3185942a JA |
15162 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5 |
15163 | $as_echo "$bash_cv_decl_strtol" >&6; } | |
b80f6443 JA |
15164 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15165 | if test $bash_cv_decl_strtol = yes; then | |
15166 | cat >>confdefs.h <<_ACEOF | |
15167 | #define $bash_tr_func 1 | |
15168 | _ACEOF | |
15169 | ||
15170 | else | |
15171 | cat >>confdefs.h <<_ACEOF | |
15172 | #define $bash_tr_func 0 | |
15173 | _ACEOF | |
15174 | ||
15175 | fi | |
15176 | ||
15177 | ||
15178 | ||
15179 | ||
3185942a JA |
15180 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5 |
15181 | $as_echo_n "checking for declaration of strtoll... " >&6; } | |
b80f6443 | 15182 | if test "${bash_cv_decl_strtoll+set}" = set; then |
3185942a | 15183 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15184 | else |
15185 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15186 | /* confdefs.h. */ |
15187 | _ACEOF | |
15188 | cat confdefs.h >>conftest.$ac_ext | |
15189 | cat >>conftest.$ac_ext <<_ACEOF | |
15190 | /* end confdefs.h. */ | |
b80f6443 JA |
15191 | |
15192 | #if STDC_HEADERS | |
15193 | # include <stdlib.h> | |
15194 | #endif | |
15195 | #if HAVE_INTTYPES_H | |
15196 | # include <inttypes.h> | |
15197 | #endif | |
15198 | ||
15199 | int | |
15200 | main () | |
15201 | { | |
15202 | return !strtoll; | |
15203 | ; | |
15204 | return 0; | |
15205 | } | |
15206 | _ACEOF | |
15207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15208 | if { (ac_try="$ac_link" |
15209 | case "(($ac_try" in | |
15210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15211 | *) ac_try_echo=$ac_try;; | |
15212 | esac | |
15213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15214 | $as_echo "$ac_try_echo") >&5 | |
15215 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15216 | ac_status=$? |
0628567a JA |
15217 | grep -v '^ *+' conftest.er1 >conftest.err |
15218 | rm -f conftest.er1 | |
15219 | cat conftest.err >&5 | |
3185942a JA |
15220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15221 | (exit $ac_status); } && { | |
15222 | test -z "$ac_c_werror_flag" || | |
15223 | test ! -s conftest.err | |
15224 | } && test -s conftest$ac_exeext && { | |
15225 | test "$cross_compiling" = yes || | |
15226 | $as_test_x conftest$ac_exeext | |
15227 | }; then | |
b80f6443 JA |
15228 | bash_cv_decl_strtoll=yes |
15229 | else | |
3185942a | 15230 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15231 | sed 's/^/| /' conftest.$ac_ext >&5 |
15232 | ||
3185942a | 15233 | bash_cv_decl_strtoll=no |
b80f6443 | 15234 | fi |
3185942a JA |
15235 | |
15236 | rm -rf conftest.dSYM | |
15237 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15238 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15239 | fi |
3185942a JA |
15240 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5 |
15241 | $as_echo "$bash_cv_decl_strtoll" >&6; } | |
b80f6443 JA |
15242 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15243 | if test $bash_cv_decl_strtoll = yes; then | |
15244 | cat >>confdefs.h <<_ACEOF | |
15245 | #define $bash_tr_func 1 | |
15246 | _ACEOF | |
15247 | ||
15248 | else | |
15249 | cat >>confdefs.h <<_ACEOF | |
15250 | #define $bash_tr_func 0 | |
15251 | _ACEOF | |
15252 | ||
15253 | fi | |
15254 | ||
15255 | ||
15256 | ||
15257 | ||
3185942a JA |
15258 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5 |
15259 | $as_echo_n "checking for declaration of strtoul... " >&6; } | |
b80f6443 | 15260 | if test "${bash_cv_decl_strtoul+set}" = set; then |
3185942a | 15261 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15262 | else |
15263 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15264 | /* confdefs.h. */ |
15265 | _ACEOF | |
15266 | cat confdefs.h >>conftest.$ac_ext | |
15267 | cat >>conftest.$ac_ext <<_ACEOF | |
15268 | /* end confdefs.h. */ | |
b80f6443 JA |
15269 | |
15270 | #if STDC_HEADERS | |
15271 | # include <stdlib.h> | |
15272 | #endif | |
15273 | #if HAVE_INTTYPES_H | |
15274 | # include <inttypes.h> | |
15275 | #endif | |
15276 | ||
15277 | int | |
15278 | main () | |
15279 | { | |
15280 | return !strtoul; | |
15281 | ; | |
15282 | return 0; | |
15283 | } | |
15284 | _ACEOF | |
15285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15286 | if { (ac_try="$ac_link" |
15287 | case "(($ac_try" in | |
15288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15289 | *) ac_try_echo=$ac_try;; | |
15290 | esac | |
15291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15292 | $as_echo "$ac_try_echo") >&5 | |
15293 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15294 | ac_status=$? |
0628567a JA |
15295 | grep -v '^ *+' conftest.er1 >conftest.err |
15296 | rm -f conftest.er1 | |
15297 | cat conftest.err >&5 | |
3185942a JA |
15298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15299 | (exit $ac_status); } && { | |
15300 | test -z "$ac_c_werror_flag" || | |
15301 | test ! -s conftest.err | |
15302 | } && test -s conftest$ac_exeext && { | |
15303 | test "$cross_compiling" = yes || | |
15304 | $as_test_x conftest$ac_exeext | |
15305 | }; then | |
b80f6443 JA |
15306 | bash_cv_decl_strtoul=yes |
15307 | else | |
3185942a | 15308 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15309 | sed 's/^/| /' conftest.$ac_ext >&5 |
15310 | ||
3185942a | 15311 | bash_cv_decl_strtoul=no |
b80f6443 | 15312 | fi |
3185942a JA |
15313 | |
15314 | rm -rf conftest.dSYM | |
15315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15316 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15317 | fi |
3185942a JA |
15318 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5 |
15319 | $as_echo "$bash_cv_decl_strtoul" >&6; } | |
b80f6443 JA |
15320 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15321 | if test $bash_cv_decl_strtoul = yes; then | |
15322 | cat >>confdefs.h <<_ACEOF | |
15323 | #define $bash_tr_func 1 | |
15324 | _ACEOF | |
15325 | ||
15326 | else | |
15327 | cat >>confdefs.h <<_ACEOF | |
15328 | #define $bash_tr_func 0 | |
15329 | _ACEOF | |
15330 | ||
15331 | fi | |
15332 | ||
15333 | ||
15334 | ||
15335 | ||
3185942a JA |
15336 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5 |
15337 | $as_echo_n "checking for declaration of strtoull... " >&6; } | |
b80f6443 | 15338 | if test "${bash_cv_decl_strtoull+set}" = set; then |
3185942a | 15339 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15340 | else |
15341 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15342 | /* confdefs.h. */ |
15343 | _ACEOF | |
15344 | cat confdefs.h >>conftest.$ac_ext | |
15345 | cat >>conftest.$ac_ext <<_ACEOF | |
15346 | /* end confdefs.h. */ | |
b80f6443 JA |
15347 | |
15348 | #if STDC_HEADERS | |
15349 | # include <stdlib.h> | |
15350 | #endif | |
15351 | #if HAVE_INTTYPES_H | |
15352 | # include <inttypes.h> | |
15353 | #endif | |
15354 | ||
15355 | int | |
15356 | main () | |
15357 | { | |
15358 | return !strtoull; | |
15359 | ; | |
15360 | return 0; | |
15361 | } | |
15362 | _ACEOF | |
15363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15364 | if { (ac_try="$ac_link" |
15365 | case "(($ac_try" in | |
15366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15367 | *) ac_try_echo=$ac_try;; | |
15368 | esac | |
15369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15370 | $as_echo "$ac_try_echo") >&5 | |
15371 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15372 | ac_status=$? |
0628567a JA |
15373 | grep -v '^ *+' conftest.er1 >conftest.err |
15374 | rm -f conftest.er1 | |
15375 | cat conftest.err >&5 | |
3185942a JA |
15376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15377 | (exit $ac_status); } && { | |
15378 | test -z "$ac_c_werror_flag" || | |
15379 | test ! -s conftest.err | |
15380 | } && test -s conftest$ac_exeext && { | |
15381 | test "$cross_compiling" = yes || | |
15382 | $as_test_x conftest$ac_exeext | |
15383 | }; then | |
b80f6443 JA |
15384 | bash_cv_decl_strtoull=yes |
15385 | else | |
3185942a | 15386 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15387 | sed 's/^/| /' conftest.$ac_ext >&5 |
15388 | ||
3185942a | 15389 | bash_cv_decl_strtoull=no |
b80f6443 | 15390 | fi |
3185942a JA |
15391 | |
15392 | rm -rf conftest.dSYM | |
15393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15394 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15395 | fi |
3185942a JA |
15396 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5 |
15397 | $as_echo "$bash_cv_decl_strtoull" >&6; } | |
b80f6443 JA |
15398 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15399 | if test $bash_cv_decl_strtoull = yes; then | |
15400 | cat >>confdefs.h <<_ACEOF | |
15401 | #define $bash_tr_func 1 | |
15402 | _ACEOF | |
15403 | ||
15404 | else | |
15405 | cat >>confdefs.h <<_ACEOF | |
15406 | #define $bash_tr_func 0 | |
15407 | _ACEOF | |
15408 | ||
15409 | fi | |
15410 | ||
15411 | ||
15412 | ||
15413 | ||
3185942a JA |
15414 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5 |
15415 | $as_echo_n "checking for declaration of strtoumax... " >&6; } | |
b80f6443 | 15416 | if test "${bash_cv_decl_strtoumax+set}" = set; then |
3185942a | 15417 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15418 | else |
15419 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15420 | /* confdefs.h. */ |
15421 | _ACEOF | |
15422 | cat confdefs.h >>conftest.$ac_ext | |
15423 | cat >>conftest.$ac_ext <<_ACEOF | |
15424 | /* end confdefs.h. */ | |
b80f6443 JA |
15425 | |
15426 | #if STDC_HEADERS | |
15427 | # include <stdlib.h> | |
15428 | #endif | |
15429 | #if HAVE_INTTYPES_H | |
15430 | # include <inttypes.h> | |
15431 | #endif | |
15432 | ||
15433 | int | |
15434 | main () | |
15435 | { | |
15436 | return !strtoumax; | |
15437 | ; | |
15438 | return 0; | |
15439 | } | |
15440 | _ACEOF | |
15441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15442 | if { (ac_try="$ac_link" |
15443 | case "(($ac_try" in | |
15444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15445 | *) ac_try_echo=$ac_try;; | |
15446 | esac | |
15447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15448 | $as_echo "$ac_try_echo") >&5 | |
15449 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15450 | ac_status=$? |
0628567a JA |
15451 | grep -v '^ *+' conftest.er1 >conftest.err |
15452 | rm -f conftest.er1 | |
15453 | cat conftest.err >&5 | |
3185942a JA |
15454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15455 | (exit $ac_status); } && { | |
15456 | test -z "$ac_c_werror_flag" || | |
15457 | test ! -s conftest.err | |
15458 | } && test -s conftest$ac_exeext && { | |
15459 | test "$cross_compiling" = yes || | |
15460 | $as_test_x conftest$ac_exeext | |
15461 | }; then | |
b80f6443 JA |
15462 | bash_cv_decl_strtoumax=yes |
15463 | else | |
3185942a | 15464 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15465 | sed 's/^/| /' conftest.$ac_ext >&5 |
15466 | ||
3185942a | 15467 | bash_cv_decl_strtoumax=no |
b80f6443 | 15468 | fi |
3185942a JA |
15469 | |
15470 | rm -rf conftest.dSYM | |
15471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15472 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15473 | fi |
3185942a JA |
15474 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5 |
15475 | $as_echo "$bash_cv_decl_strtoumax" >&6; } | |
b80f6443 JA |
15476 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15477 | if test $bash_cv_decl_strtoumax = yes; then | |
15478 | cat >>confdefs.h <<_ACEOF | |
15479 | #define $bash_tr_func 1 | |
15480 | _ACEOF | |
15481 | ||
15482 | else | |
15483 | cat >>confdefs.h <<_ACEOF | |
15484 | #define $bash_tr_func 0 | |
15485 | _ACEOF | |
15486 | ||
15487 | fi | |
15488 | ||
15489 | ||
15490 | ||
15491 | ||
0628567a | 15492 | |
3185942a JA |
15493 | |
15494 | for ac_header in $ac_header_list | |
b80f6443 | 15495 | do |
3185942a JA |
15496 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15498 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15499 | $as_echo_n "checking for $ac_header... " >&6; } | |
15500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15501 | $as_echo_n "(cached) " >&6 | |
15502 | fi | |
15503 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15504 | $as_echo "$as_val"'` | |
15505 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15506 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15507 | else |
15508 | # Is the header compilable? | |
3185942a JA |
15509 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15510 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 15511 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15512 | /* confdefs.h. */ |
15513 | _ACEOF | |
15514 | cat confdefs.h >>conftest.$ac_ext | |
15515 | cat >>conftest.$ac_ext <<_ACEOF | |
15516 | /* end confdefs.h. */ | |
b80f6443 JA |
15517 | $ac_includes_default |
15518 | #include <$ac_header> | |
15519 | _ACEOF | |
15520 | rm -f conftest.$ac_objext | |
3185942a JA |
15521 | if { (ac_try="$ac_compile" |
15522 | case "(($ac_try" in | |
15523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15524 | *) ac_try_echo=$ac_try;; | |
15525 | esac | |
15526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15527 | $as_echo "$ac_try_echo") >&5 | |
15528 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 15529 | ac_status=$? |
0628567a JA |
15530 | grep -v '^ *+' conftest.er1 >conftest.err |
15531 | rm -f conftest.er1 | |
15532 | cat conftest.err >&5 | |
3185942a JA |
15533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15534 | (exit $ac_status); } && { | |
15535 | test -z "$ac_c_werror_flag" || | |
15536 | test ! -s conftest.err | |
15537 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
15538 | ac_header_compiler=yes |
15539 | else | |
3185942a | 15540 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15541 | sed 's/^/| /' conftest.$ac_ext >&5 |
15542 | ||
3185942a | 15543 | ac_header_compiler=no |
b80f6443 | 15544 | fi |
3185942a JA |
15545 | |
15546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15547 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15548 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
15549 | |
15550 | # Is the header present? | |
3185942a JA |
15551 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15552 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 15553 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
15554 | /* confdefs.h. */ |
15555 | _ACEOF | |
15556 | cat confdefs.h >>conftest.$ac_ext | |
15557 | cat >>conftest.$ac_ext <<_ACEOF | |
15558 | /* end confdefs.h. */ | |
b80f6443 JA |
15559 | #include <$ac_header> |
15560 | _ACEOF | |
3185942a JA |
15561 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15562 | case "(($ac_try" in | |
15563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15564 | *) ac_try_echo=$ac_try;; | |
15565 | esac | |
15566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15567 | $as_echo "$ac_try_echo") >&5 | |
15568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 15569 | ac_status=$? |
0628567a | 15570 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
15571 | rm -f conftest.er1 |
15572 | cat conftest.err >&5 | |
3185942a JA |
15573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15574 | (exit $ac_status); } >/dev/null && { | |
15575 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15576 | test ! -s conftest.err | |
15577 | }; then | |
b80f6443 JA |
15578 | ac_header_preproc=yes |
15579 | else | |
3185942a | 15580 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15581 | sed 's/^/| /' conftest.$ac_ext >&5 |
15582 | ||
b80f6443 JA |
15583 | ac_header_preproc=no |
15584 | fi | |
3185942a | 15585 | |
b80f6443 | 15586 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
15587 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15588 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
15589 | |
15590 | # So? What about this header? | |
0628567a JA |
15591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15592 | yes:no: ) | |
3185942a JA |
15593 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15594 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15595 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15596 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
15597 | ac_header_preproc=yes |
15598 | ;; | |
15599 | no:yes:* ) | |
3185942a JA |
15600 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15601 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15602 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15603 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15604 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15605 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15606 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15607 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15608 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15609 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15610 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15611 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15612 | ( cat <<\_ASBOX | |
0628567a JA |
15613 | ## ------------------------------- ## |
15614 | ## Report this to bug-bash@gnu.org ## | |
15615 | ## ------------------------------- ## | |
15616 | _ASBOX | |
3185942a | 15617 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 15618 | ;; |
b80f6443 | 15619 | esac |
3185942a JA |
15620 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15621 | $as_echo_n "checking for $ac_header... " >&6; } | |
15622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15623 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 15624 | else |
0628567a | 15625 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 15626 | fi |
3185942a JA |
15627 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15628 | $as_echo "$as_val"'` | |
15629 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15630 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
15631 | |
15632 | fi | |
3185942a JA |
15633 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15634 | $as_echo "$as_val"'` | |
15635 | if test "x$as_val" = x""yes; then | |
b80f6443 | 15636 | cat >>confdefs.h <<_ACEOF |
3185942a | 15637 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
15638 | _ACEOF |
15639 | ||
15640 | fi | |
15641 | ||
15642 | done | |
15643 | ||
15644 | ||
3185942a JA |
15645 | |
15646 | ||
15647 | ||
15648 | ||
15649 | ||
15650 | ||
15651 | ||
15652 | for ac_func in $ac_func_list | |
b80f6443 | 15653 | do |
3185942a JA |
15654 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15655 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15656 | $as_echo_n "checking for $ac_func... " >&6; } | |
15657 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
15658 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
15659 | else |
15660 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15661 | /* confdefs.h. */ |
15662 | _ACEOF | |
15663 | cat confdefs.h >>conftest.$ac_ext | |
15664 | cat >>conftest.$ac_ext <<_ACEOF | |
15665 | /* end confdefs.h. */ | |
15666 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15667 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15668 | #define $ac_func innocuous_$ac_func | |
15669 | ||
b80f6443 | 15670 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
15671 | which can conflict with char $ac_func (); below. |
15672 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15673 | <limits.h> exists even on freestanding compilers. */ | |
15674 | ||
15675 | #ifdef __STDC__ | |
15676 | # include <limits.h> | |
15677 | #else | |
15678 | # include <assert.h> | |
15679 | #endif | |
15680 | ||
15681 | #undef $ac_func | |
15682 | ||
3185942a JA |
15683 | /* Override any GCC internal prototype to avoid an error. |
15684 | Use char because int might match the return type of a GCC | |
15685 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
15686 | #ifdef __cplusplus |
15687 | extern "C" | |
b80f6443 | 15688 | #endif |
b80f6443 JA |
15689 | char $ac_func (); |
15690 | /* The GNU C library defines this for functions which it implements | |
15691 | to always fail with ENOSYS. Some functions are actually named | |
15692 | something starting with __ and the normal name is an alias. */ | |
3185942a | 15693 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 15694 | choke me |
b80f6443 JA |
15695 | #endif |
15696 | ||
0628567a JA |
15697 | int |
15698 | main () | |
15699 | { | |
3185942a | 15700 | return $ac_func (); |
b80f6443 JA |
15701 | ; |
15702 | return 0; | |
15703 | } | |
15704 | _ACEOF | |
15705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
15706 | if { (ac_try="$ac_link" |
15707 | case "(($ac_try" in | |
15708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15709 | *) ac_try_echo=$ac_try;; | |
15710 | esac | |
15711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15712 | $as_echo "$ac_try_echo") >&5 | |
15713 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 15714 | ac_status=$? |
0628567a JA |
15715 | grep -v '^ *+' conftest.er1 >conftest.err |
15716 | rm -f conftest.er1 | |
15717 | cat conftest.err >&5 | |
3185942a JA |
15718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15719 | (exit $ac_status); } && { | |
15720 | test -z "$ac_c_werror_flag" || | |
15721 | test ! -s conftest.err | |
15722 | } && test -s conftest$ac_exeext && { | |
15723 | test "$cross_compiling" = yes || | |
15724 | $as_test_x conftest$ac_exeext | |
15725 | }; then | |
b80f6443 JA |
15726 | eval "$as_ac_var=yes" |
15727 | else | |
3185942a | 15728 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
15729 | sed 's/^/| /' conftest.$ac_ext >&5 |
15730 | ||
3185942a | 15731 | eval "$as_ac_var=no" |
b80f6443 | 15732 | fi |
3185942a JA |
15733 | |
15734 | rm -rf conftest.dSYM | |
15735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 15736 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 15737 | fi |
3185942a JA |
15738 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15739 | $as_echo "$as_val"'` | |
15740 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15741 | $as_echo "$ac_res" >&6; } | |
15742 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15743 | $as_echo "$as_val"'` | |
15744 | if test "x$as_val" = x""yes; then | |
b80f6443 | 15745 | cat >>confdefs.h <<_ACEOF |
3185942a | 15746 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
15747 | _ACEOF |
15748 | ||
15749 | fi | |
15750 | done | |
15751 | ||
3185942a JA |
15752 | |
15753 | ||
15754 | ||
15755 | ||
15756 | ||
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | ||
15767 | ||
15768 | { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
15769 | $as_echo_n "checking for working mktime... " >&6; } | |
b80f6443 | 15770 | if test "${ac_cv_func_working_mktime+set}" = set; then |
3185942a | 15771 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
15772 | else |
15773 | if test "$cross_compiling" = yes; then | |
15774 | ac_cv_func_working_mktime=no | |
15775 | else | |
15776 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
15777 | /* confdefs.h. */ |
15778 | _ACEOF | |
15779 | cat confdefs.h >>conftest.$ac_ext | |
15780 | cat >>conftest.$ac_ext <<_ACEOF | |
15781 | /* end confdefs.h. */ | |
b80f6443 | 15782 | /* Test program from Paul Eggert and Tony Leneis. */ |
3185942a | 15783 | #ifdef TIME_WITH_SYS_TIME |
b80f6443 JA |
15784 | # include <sys/time.h> |
15785 | # include <time.h> | |
15786 | #else | |
3185942a | 15787 | # ifdef HAVE_SYS_TIME_H |
b80f6443 JA |
15788 | # include <sys/time.h> |
15789 | # else | |
15790 | # include <time.h> | |
15791 | # endif | |
15792 | #endif | |
15793 | ||
3185942a JA |
15794 | #include <limits.h> |
15795 | #include <stdlib.h> | |
0628567a | 15796 | |
3185942a | 15797 | #ifdef HAVE_UNISTD_H |
b80f6443 JA |
15798 | # include <unistd.h> |
15799 | #endif | |
15800 | ||
3185942a | 15801 | #ifndef HAVE_ALARM |
b80f6443 JA |
15802 | # define alarm(X) /* empty */ |
15803 | #endif | |
7117c2d2 JA |
15804 | |
15805 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
15806 | #undef putenv | |
15807 | ||
b80f6443 | 15808 | static time_t time_t_max; |
0628567a | 15809 | static time_t time_t_min; |
b80f6443 JA |
15810 | |
15811 | /* Values we'll use to set the TZ environment variable. */ | |
0628567a JA |
15812 | static char *tz_strings[] = { |
15813 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
b80f6443 JA |
15814 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
15815 | }; | |
15816 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
15817 | ||
3185942a | 15818 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
b80f6443 | 15819 | Based on a problem report from Andreas Jaeger. */ |
3185942a | 15820 | static int |
b80f6443 JA |
15821 | spring_forward_gap () |
15822 | { | |
15823 | /* glibc (up to about 1998-10-07) failed this test. */ | |
15824 | struct tm tm; | |
15825 | ||
15826 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15827 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15828 | on systems that don't support the Olson extension, or don't have the | |
15829 | full zoneinfo tables installed. */ | |
15830 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15831 | ||
15832 | tm.tm_year = 98; | |
15833 | tm.tm_mon = 3; | |
15834 | tm.tm_mday = 5; | |
15835 | tm.tm_hour = 2; | |
15836 | tm.tm_min = 0; | |
15837 | tm.tm_sec = 0; | |
15838 | tm.tm_isdst = -1; | |
3185942a | 15839 | return mktime (&tm) != (time_t) -1; |
b80f6443 JA |
15840 | } |
15841 | ||
3185942a | 15842 | static int |
0628567a | 15843 | mktime_test1 (now) |
b80f6443 JA |
15844 | time_t now; |
15845 | { | |
15846 | struct tm *lt; | |
3185942a | 15847 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
0628567a JA |
15848 | } |
15849 | ||
3185942a | 15850 | static int |
0628567a JA |
15851 | mktime_test (now) |
15852 | time_t now; | |
15853 | { | |
3185942a JA |
15854 | return (mktime_test1 (now) |
15855 | && mktime_test1 ((time_t) (time_t_max - now)) | |
15856 | && mktime_test1 ((time_t) (time_t_min + now))); | |
b80f6443 JA |
15857 | } |
15858 | ||
3185942a | 15859 | static int |
b80f6443 JA |
15860 | irix_6_4_bug () |
15861 | { | |
15862 | /* Based on code from Ariel Faigon. */ | |
15863 | struct tm tm; | |
15864 | tm.tm_year = 96; | |
15865 | tm.tm_mon = 3; | |
15866 | tm.tm_mday = 0; | |
15867 | tm.tm_hour = 0; | |
15868 | tm.tm_min = 0; | |
15869 | tm.tm_sec = 0; | |
15870 | tm.tm_isdst = -1; | |
15871 | mktime (&tm); | |
3185942a | 15872 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
b80f6443 JA |
15873 | } |
15874 | ||
3185942a | 15875 | static int |
b80f6443 JA |
15876 | bigtime_test (j) |
15877 | int j; | |
15878 | { | |
15879 | struct tm tm; | |
15880 | time_t now; | |
15881 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
15882 | now = mktime (&tm); | |
15883 | if (now != (time_t) -1) | |
15884 | { | |
15885 | struct tm *lt = localtime (&now); | |
15886 | if (! (lt | |
15887 | && lt->tm_year == tm.tm_year | |
15888 | && lt->tm_mon == tm.tm_mon | |
15889 | && lt->tm_mday == tm.tm_mday | |
15890 | && lt->tm_hour == tm.tm_hour | |
15891 | && lt->tm_min == tm.tm_min | |
15892 | && lt->tm_sec == tm.tm_sec | |
15893 | && lt->tm_yday == tm.tm_yday | |
15894 | && lt->tm_wday == tm.tm_wday | |
15895 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
15896 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
3185942a | 15897 | return 0; |
b80f6443 | 15898 | } |
3185942a | 15899 | return 1; |
b80f6443 JA |
15900 | } |
15901 | ||
3185942a JA |
15902 | static int |
15903 | year_2050_test () | |
b80f6443 | 15904 | { |
3185942a JA |
15905 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, |
15906 | ignoring leap seconds. */ | |
15907 | unsigned long int answer = 2527315200UL; | |
b80f6443 | 15908 | |
3185942a JA |
15909 | struct tm tm; |
15910 | time_t t; | |
15911 | tm.tm_year = 2050 - 1900; | |
15912 | tm.tm_mon = 2 - 1; | |
15913 | tm.tm_mday = 1; | |
15914 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
15915 | tm.tm_isdst = -1; | |
b80f6443 | 15916 | |
3185942a JA |
15917 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
15918 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15919 | on systems that don't support the Olson extension, or don't have the | |
15920 | full zoneinfo tables installed. */ | |
15921 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15922 | ||
15923 | t = mktime (&tm); | |
15924 | ||
15925 | /* Check that the result is either a failure, or close enough | |
15926 | to the correct answer that we can assume the discrepancy is | |
15927 | due to leap seconds. */ | |
15928 | return (t == (time_t) -1 | |
15929 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
15930 | } | |
15931 | ||
15932 | int | |
15933 | main () | |
15934 | { | |
15935 | time_t t, delta; | |
15936 | int i, j; | |
15937 | ||
15938 | /* This test makes some buggy mktime implementations loop. | |
15939 | Give up after 60 seconds; a mktime slower than that | |
15940 | isn't worth using anyway. */ | |
15941 | alarm (60); | |
15942 | ||
15943 | for (;;) | |
15944 | { | |
15945 | t = (time_t_max << 1) + 1; | |
15946 | if (t <= time_t_max) | |
15947 | break; | |
15948 | time_t_max = t; | |
15949 | } | |
15950 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
15951 | ||
15952 | delta = time_t_max / 997; /* a suitable prime number */ | |
15953 | for (i = 0; i < N_STRINGS; i++) | |
b80f6443 JA |
15954 | { |
15955 | if (tz_strings[i]) | |
15956 | putenv (tz_strings[i]); | |
15957 | ||
15958 | for (t = 0; t <= time_t_max - delta; t += delta) | |
3185942a JA |
15959 | if (! mktime_test (t)) |
15960 | return 1; | |
15961 | if (! (mktime_test ((time_t) 1) | |
15962 | && mktime_test ((time_t) (60 * 60)) | |
15963 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
15964 | return 1; | |
15965 | ||
15966 | for (j = 1; ; j <<= 1) | |
15967 | if (! bigtime_test (j)) | |
15968 | return 1; | |
15969 | else if (INT_MAX / 2 < j) | |
15970 | break; | |
15971 | if (! bigtime_test (INT_MAX)) | |
15972 | return 1; | |
b80f6443 | 15973 | } |
3185942a | 15974 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
b80f6443 JA |
15975 | } |
15976 | _ACEOF | |
15977 | rm -f conftest$ac_exeext | |
3185942a JA |
15978 | if { (ac_try="$ac_link" |
15979 | case "(($ac_try" in | |
15980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15981 | *) ac_try_echo=$ac_try;; | |
15982 | esac | |
15983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15984 | $as_echo "$ac_try_echo") >&5 | |
15985 | (eval "$ac_link") 2>&5 | |
b80f6443 | 15986 | ac_status=$? |
3185942a | 15987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 15988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
15989 | { (case "(($ac_try" in |
15990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15991 | *) ac_try_echo=$ac_try;; | |
15992 | esac | |
15993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15994 | $as_echo "$ac_try_echo") >&5 | |
15995 | (eval "$ac_try") 2>&5 | |
b80f6443 | 15996 | ac_status=$? |
3185942a | 15997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
15998 | (exit $ac_status); }; }; then |
15999 | ac_cv_func_working_mktime=yes | |
16000 | else | |
3185942a JA |
16001 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
16002 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
16003 | sed 's/^/| /' conftest.$ac_ext >&5 |
16004 | ||
b80f6443 JA |
16005 | ( exit $ac_status ) |
16006 | ac_cv_func_working_mktime=no | |
16007 | fi | |
3185942a JA |
16008 | rm -rf conftest.dSYM |
16009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 16010 | fi |
3185942a JA |
16011 | |
16012 | ||
b80f6443 | 16013 | fi |
3185942a JA |
16014 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
16015 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
b80f6443 | 16016 | if test $ac_cv_func_working_mktime = no; then |
3185942a | 16017 | case " $LIBOBJS " in |
0628567a | 16018 | *" mktime.$ac_objext "* ) ;; |
3185942a JA |
16019 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
16020 | ;; | |
0628567a JA |
16021 | esac |
16022 | ||
b80f6443 JA |
16023 | fi |
16024 | ||
16025 | ||
16026 | ||
16027 | ||
16028 | ||
16029 | ||
16030 | ||
16031 | ||
16032 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h | |
16033 | do | |
3185942a JA |
16034 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16036 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16037 | $as_echo_n "checking for $ac_header... " >&6; } | |
16038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16039 | $as_echo_n "(cached) " >&6 | |
16040 | fi | |
16041 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16042 | $as_echo "$as_val"'` | |
16043 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16044 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16045 | else |
16046 | # Is the header compilable? | |
3185942a JA |
16047 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16048 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16049 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16050 | /* confdefs.h. */ |
16051 | _ACEOF | |
16052 | cat confdefs.h >>conftest.$ac_ext | |
16053 | cat >>conftest.$ac_ext <<_ACEOF | |
16054 | /* end confdefs.h. */ | |
b80f6443 JA |
16055 | $ac_includes_default |
16056 | #include <$ac_header> | |
16057 | _ACEOF | |
16058 | rm -f conftest.$ac_objext | |
3185942a JA |
16059 | if { (ac_try="$ac_compile" |
16060 | case "(($ac_try" in | |
16061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16062 | *) ac_try_echo=$ac_try;; | |
16063 | esac | |
16064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16065 | $as_echo "$ac_try_echo") >&5 | |
16066 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16067 | ac_status=$? |
0628567a JA |
16068 | grep -v '^ *+' conftest.er1 >conftest.err |
16069 | rm -f conftest.er1 | |
16070 | cat conftest.err >&5 | |
3185942a JA |
16071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16072 | (exit $ac_status); } && { | |
16073 | test -z "$ac_c_werror_flag" || | |
16074 | test ! -s conftest.err | |
16075 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16076 | ac_header_compiler=yes |
16077 | else | |
3185942a | 16078 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16079 | sed 's/^/| /' conftest.$ac_ext >&5 |
16080 | ||
3185942a | 16081 | ac_header_compiler=no |
b80f6443 | 16082 | fi |
3185942a JA |
16083 | |
16084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16085 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16086 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
16087 | |
16088 | # Is the header present? | |
3185942a JA |
16089 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16090 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16091 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16092 | /* confdefs.h. */ |
16093 | _ACEOF | |
16094 | cat confdefs.h >>conftest.$ac_ext | |
16095 | cat >>conftest.$ac_ext <<_ACEOF | |
16096 | /* end confdefs.h. */ | |
b80f6443 JA |
16097 | #include <$ac_header> |
16098 | _ACEOF | |
3185942a JA |
16099 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16100 | case "(($ac_try" in | |
16101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16102 | *) ac_try_echo=$ac_try;; | |
16103 | esac | |
16104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16105 | $as_echo "$ac_try_echo") >&5 | |
16106 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 16107 | ac_status=$? |
0628567a | 16108 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16109 | rm -f conftest.er1 |
16110 | cat conftest.err >&5 | |
3185942a JA |
16111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16112 | (exit $ac_status); } >/dev/null && { | |
16113 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16114 | test ! -s conftest.err | |
16115 | }; then | |
b80f6443 JA |
16116 | ac_header_preproc=yes |
16117 | else | |
3185942a | 16118 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16119 | sed 's/^/| /' conftest.$ac_ext >&5 |
16120 | ||
b80f6443 JA |
16121 | ac_header_preproc=no |
16122 | fi | |
3185942a | 16123 | |
b80f6443 | 16124 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16125 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16126 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16127 | |
16128 | # So? What about this header? | |
0628567a JA |
16129 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16130 | yes:no: ) | |
3185942a JA |
16131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16132 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16134 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16135 | ac_header_preproc=yes |
16136 | ;; | |
16137 | no:yes:* ) | |
3185942a JA |
16138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16139 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16141 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16143 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16145 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16146 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16147 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16148 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16149 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16150 | ( cat <<\_ASBOX | |
0628567a JA |
16151 | ## ------------------------------- ## |
16152 | ## Report this to bug-bash@gnu.org ## | |
16153 | ## ------------------------------- ## | |
16154 | _ASBOX | |
3185942a | 16155 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16156 | ;; |
b80f6443 | 16157 | esac |
3185942a JA |
16158 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16159 | $as_echo_n "checking for $ac_header... " >&6; } | |
16160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16161 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16162 | else |
0628567a | 16163 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 16164 | fi |
3185942a JA |
16165 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16166 | $as_echo "$as_val"'` | |
16167 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16168 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16169 | |
16170 | fi | |
3185942a JA |
16171 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16172 | $as_echo "$as_val"'` | |
16173 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16174 | cat >>confdefs.h <<_ACEOF |
3185942a | 16175 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16176 | _ACEOF |
16177 | ||
16178 | fi | |
16179 | ||
16180 | done | |
16181 | ||
16182 | ||
16183 | ||
16184 | ||
16185 | for ac_header in stdlib.h unistd.h | |
16186 | do | |
3185942a JA |
16187 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16189 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16190 | $as_echo_n "checking for $ac_header... " >&6; } | |
16191 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16192 | $as_echo_n "(cached) " >&6 | |
16193 | fi | |
16194 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16195 | $as_echo "$as_val"'` | |
16196 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16197 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16198 | else |
16199 | # Is the header compilable? | |
3185942a JA |
16200 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16201 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16202 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16203 | /* confdefs.h. */ |
16204 | _ACEOF | |
16205 | cat confdefs.h >>conftest.$ac_ext | |
16206 | cat >>conftest.$ac_ext <<_ACEOF | |
16207 | /* end confdefs.h. */ | |
b80f6443 JA |
16208 | $ac_includes_default |
16209 | #include <$ac_header> | |
16210 | _ACEOF | |
16211 | rm -f conftest.$ac_objext | |
3185942a JA |
16212 | if { (ac_try="$ac_compile" |
16213 | case "(($ac_try" in | |
16214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16215 | *) ac_try_echo=$ac_try;; | |
16216 | esac | |
16217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16218 | $as_echo "$ac_try_echo") >&5 | |
16219 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16220 | ac_status=$? |
0628567a JA |
16221 | grep -v '^ *+' conftest.er1 >conftest.err |
16222 | rm -f conftest.er1 | |
16223 | cat conftest.err >&5 | |
3185942a JA |
16224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16225 | (exit $ac_status); } && { | |
16226 | test -z "$ac_c_werror_flag" || | |
16227 | test ! -s conftest.err | |
16228 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16229 | ac_header_compiler=yes |
16230 | else | |
3185942a | 16231 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16232 | sed 's/^/| /' conftest.$ac_ext >&5 |
16233 | ||
3185942a | 16234 | ac_header_compiler=no |
b80f6443 | 16235 | fi |
3185942a JA |
16236 | |
16237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16238 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16239 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
16240 | |
16241 | # Is the header present? | |
3185942a JA |
16242 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16243 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16244 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16245 | /* confdefs.h. */ |
16246 | _ACEOF | |
16247 | cat confdefs.h >>conftest.$ac_ext | |
16248 | cat >>conftest.$ac_ext <<_ACEOF | |
16249 | /* end confdefs.h. */ | |
b80f6443 JA |
16250 | #include <$ac_header> |
16251 | _ACEOF | |
3185942a JA |
16252 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16253 | case "(($ac_try" in | |
16254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16255 | *) ac_try_echo=$ac_try;; | |
16256 | esac | |
16257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16258 | $as_echo "$ac_try_echo") >&5 | |
16259 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 16260 | ac_status=$? |
0628567a | 16261 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16262 | rm -f conftest.er1 |
16263 | cat conftest.err >&5 | |
3185942a JA |
16264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16265 | (exit $ac_status); } >/dev/null && { | |
16266 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16267 | test ! -s conftest.err | |
16268 | }; then | |
b80f6443 JA |
16269 | ac_header_preproc=yes |
16270 | else | |
3185942a | 16271 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16272 | sed 's/^/| /' conftest.$ac_ext >&5 |
16273 | ||
b80f6443 JA |
16274 | ac_header_preproc=no |
16275 | fi | |
3185942a | 16276 | |
b80f6443 | 16277 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16278 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16279 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16280 | |
16281 | # So? What about this header? | |
0628567a JA |
16282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16283 | yes:no: ) | |
3185942a JA |
16284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16285 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16286 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16287 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16288 | ac_header_preproc=yes |
16289 | ;; | |
16290 | no:yes:* ) | |
3185942a JA |
16291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16292 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16294 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16296 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16298 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16300 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16302 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16303 | ( cat <<\_ASBOX | |
0628567a JA |
16304 | ## ------------------------------- ## |
16305 | ## Report this to bug-bash@gnu.org ## | |
16306 | ## ------------------------------- ## | |
16307 | _ASBOX | |
3185942a | 16308 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16309 | ;; |
b80f6443 | 16310 | esac |
3185942a JA |
16311 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16312 | $as_echo_n "checking for $ac_header... " >&6; } | |
16313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16314 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16315 | else |
0628567a | 16316 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 16317 | fi |
3185942a JA |
16318 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16319 | $as_echo "$as_val"'` | |
16320 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16321 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16322 | |
16323 | fi | |
3185942a JA |
16324 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16325 | $as_echo "$as_val"'` | |
16326 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16327 | cat >>confdefs.h <<_ACEOF |
3185942a | 16328 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16329 | _ACEOF |
16330 | ||
16331 | fi | |
16332 | ||
16333 | done | |
16334 | ||
16335 | ||
16336 | for ac_func in getpagesize | |
16337 | do | |
3185942a JA |
16338 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16339 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16340 | $as_echo_n "checking for $ac_func... " >&6; } | |
16341 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16342 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
16343 | else |
16344 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16345 | /* confdefs.h. */ |
16346 | _ACEOF | |
16347 | cat confdefs.h >>conftest.$ac_ext | |
16348 | cat >>conftest.$ac_ext <<_ACEOF | |
16349 | /* end confdefs.h. */ | |
16350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16352 | #define $ac_func innocuous_$ac_func | |
16353 | ||
16354 | /* System header to define __stub macros and hopefully few prototypes, | |
16355 | which can conflict with char $ac_func (); below. | |
16356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16357 | <limits.h> exists even on freestanding compilers. */ | |
16358 | ||
16359 | #ifdef __STDC__ | |
16360 | # include <limits.h> | |
16361 | #else | |
16362 | # include <assert.h> | |
16363 | #endif | |
16364 | ||
16365 | #undef $ac_func | |
16366 | ||
3185942a JA |
16367 | /* Override any GCC internal prototype to avoid an error. |
16368 | Use char because int might match the return type of a GCC | |
16369 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
16370 | #ifdef __cplusplus |
16371 | extern "C" | |
b80f6443 | 16372 | #endif |
b80f6443 JA |
16373 | char $ac_func (); |
16374 | /* The GNU C library defines this for functions which it implements | |
16375 | to always fail with ENOSYS. Some functions are actually named | |
16376 | something starting with __ and the normal name is an alias. */ | |
3185942a | 16377 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 16378 | choke me |
b80f6443 JA |
16379 | #endif |
16380 | ||
0628567a JA |
16381 | int |
16382 | main () | |
16383 | { | |
3185942a | 16384 | return $ac_func (); |
b80f6443 JA |
16385 | ; |
16386 | return 0; | |
16387 | } | |
16388 | _ACEOF | |
16389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
16390 | if { (ac_try="$ac_link" |
16391 | case "(($ac_try" in | |
16392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16393 | *) ac_try_echo=$ac_try;; | |
16394 | esac | |
16395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16396 | $as_echo "$ac_try_echo") >&5 | |
16397 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 16398 | ac_status=$? |
0628567a JA |
16399 | grep -v '^ *+' conftest.er1 >conftest.err |
16400 | rm -f conftest.er1 | |
16401 | cat conftest.err >&5 | |
3185942a JA |
16402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16403 | (exit $ac_status); } && { | |
16404 | test -z "$ac_c_werror_flag" || | |
16405 | test ! -s conftest.err | |
16406 | } && test -s conftest$ac_exeext && { | |
16407 | test "$cross_compiling" = yes || | |
16408 | $as_test_x conftest$ac_exeext | |
16409 | }; then | |
b80f6443 JA |
16410 | eval "$as_ac_var=yes" |
16411 | else | |
3185942a | 16412 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16413 | sed 's/^/| /' conftest.$ac_ext >&5 |
16414 | ||
3185942a | 16415 | eval "$as_ac_var=no" |
b80f6443 | 16416 | fi |
3185942a JA |
16417 | |
16418 | rm -rf conftest.dSYM | |
16419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 16420 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 16421 | fi |
3185942a JA |
16422 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16423 | $as_echo "$as_val"'` | |
16424 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16425 | $as_echo "$ac_res" >&6; } | |
16426 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16427 | $as_echo "$as_val"'` | |
16428 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16429 | cat >>confdefs.h <<_ACEOF |
3185942a | 16430 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 JA |
16431 | _ACEOF |
16432 | ||
16433 | fi | |
16434 | done | |
16435 | ||
3185942a JA |
16436 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
16437 | $as_echo_n "checking for working mmap... " >&6; } | |
b80f6443 | 16438 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
3185942a | 16439 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
16440 | else |
16441 | if test "$cross_compiling" = yes; then | |
16442 | ac_cv_func_mmap_fixed_mapped=no | |
16443 | else | |
16444 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16445 | /* confdefs.h. */ |
16446 | _ACEOF | |
16447 | cat confdefs.h >>conftest.$ac_ext | |
16448 | cat >>conftest.$ac_ext <<_ACEOF | |
16449 | /* end confdefs.h. */ | |
b80f6443 JA |
16450 | $ac_includes_default |
16451 | /* malloc might have been renamed as rpl_malloc. */ | |
16452 | #undef malloc | |
16453 | ||
16454 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16455 | Here is a matrix of mmap possibilities: | |
16456 | mmap private not fixed | |
16457 | mmap private fixed at somewhere currently unmapped | |
16458 | mmap private fixed at somewhere already mapped | |
16459 | mmap shared not fixed | |
16460 | mmap shared fixed at somewhere currently unmapped | |
16461 | mmap shared fixed at somewhere already mapped | |
16462 | For private mappings, we should verify that changes cannot be read() | |
16463 | back from the file, nor mmap's back from the file at a different | |
16464 | address. (There have been systems where private was not correctly | |
16465 | implemented like the infamous i386 svr4.0, and systems where the | |
16466 | VM page cache was not coherent with the file system buffer cache | |
16467 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16468 | For shared mappings, we should conversely verify that changes get | |
16469 | propagated back to all the places they're supposed to be. | |
16470 | ||
16471 | Grep wants private fixed already mapped. | |
16472 | The main things grep needs to know about mmap are: | |
16473 | * does it exist and is it safe to write into the mmap'd area | |
16474 | * how to use it (BSD variants) */ | |
16475 | ||
16476 | #include <fcntl.h> | |
16477 | #include <sys/mman.h> | |
16478 | ||
3185942a | 16479 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b80f6443 JA |
16480 | char *malloc (); |
16481 | #endif | |
16482 | ||
16483 | /* This mess was copied from the GNU getpagesize.h. */ | |
3185942a | 16484 | #ifndef HAVE_GETPAGESIZE |
b80f6443 | 16485 | /* Assume that all systems that can run configure have sys/param.h. */ |
3185942a | 16486 | # ifndef HAVE_SYS_PARAM_H |
b80f6443 JA |
16487 | # define HAVE_SYS_PARAM_H 1 |
16488 | # endif | |
16489 | ||
16490 | # ifdef _SC_PAGESIZE | |
16491 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16492 | # else /* no _SC_PAGESIZE */ | |
3185942a | 16493 | # ifdef HAVE_SYS_PARAM_H |
b80f6443 JA |
16494 | # include <sys/param.h> |
16495 | # ifdef EXEC_PAGESIZE | |
16496 | # define getpagesize() EXEC_PAGESIZE | |
16497 | # else /* no EXEC_PAGESIZE */ | |
16498 | # ifdef NBPG | |
16499 | # define getpagesize() NBPG * CLSIZE | |
16500 | # ifndef CLSIZE | |
16501 | # define CLSIZE 1 | |
16502 | # endif /* no CLSIZE */ | |
16503 | # else /* no NBPG */ | |
16504 | # ifdef NBPC | |
16505 | # define getpagesize() NBPC | |
16506 | # else /* no NBPC */ | |
16507 | # ifdef PAGESIZE | |
16508 | # define getpagesize() PAGESIZE | |
16509 | # endif /* PAGESIZE */ | |
16510 | # endif /* no NBPC */ | |
16511 | # endif /* no NBPG */ | |
16512 | # endif /* no EXEC_PAGESIZE */ | |
16513 | # else /* no HAVE_SYS_PARAM_H */ | |
16514 | # define getpagesize() 8192 /* punt totally */ | |
16515 | # endif /* no HAVE_SYS_PARAM_H */ | |
16516 | # endif /* no _SC_PAGESIZE */ | |
16517 | ||
16518 | #endif /* no HAVE_GETPAGESIZE */ | |
16519 | ||
16520 | int | |
16521 | main () | |
16522 | { | |
16523 | char *data, *data2, *data3; | |
16524 | int i, pagesize; | |
16525 | int fd; | |
16526 | ||
16527 | pagesize = getpagesize (); | |
16528 | ||
16529 | /* First, make a file with some known garbage in it. */ | |
16530 | data = (char *) malloc (pagesize); | |
16531 | if (!data) | |
3185942a | 16532 | return 1; |
b80f6443 JA |
16533 | for (i = 0; i < pagesize; ++i) |
16534 | *(data + i) = rand (); | |
16535 | umask (0); | |
16536 | fd = creat ("conftest.mmap", 0600); | |
16537 | if (fd < 0) | |
3185942a | 16538 | return 1; |
b80f6443 | 16539 | if (write (fd, data, pagesize) != pagesize) |
3185942a | 16540 | return 1; |
b80f6443 JA |
16541 | close (fd); |
16542 | ||
16543 | /* Next, try to mmap the file at a fixed address which already has | |
16544 | something else allocated at it. If we can, also make sure that | |
16545 | we see the same garbage. */ | |
16546 | fd = open ("conftest.mmap", O_RDWR); | |
16547 | if (fd < 0) | |
3185942a | 16548 | return 1; |
b80f6443 JA |
16549 | data2 = (char *) malloc (2 * pagesize); |
16550 | if (!data2) | |
3185942a JA |
16551 | return 1; |
16552 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b80f6443 | 16553 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
0628567a | 16554 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
3185942a | 16555 | return 1; |
b80f6443 JA |
16556 | for (i = 0; i < pagesize; ++i) |
16557 | if (*(data + i) != *(data2 + i)) | |
3185942a | 16558 | return 1; |
b80f6443 JA |
16559 | |
16560 | /* Finally, make sure that changes to the mapped area do not | |
16561 | percolate back to the file as seen by read(). (This is a bug on | |
16562 | some variants of i386 svr4.0.) */ | |
16563 | for (i = 0; i < pagesize; ++i) | |
16564 | *(data2 + i) = *(data2 + i) + 1; | |
16565 | data3 = (char *) malloc (pagesize); | |
16566 | if (!data3) | |
3185942a | 16567 | return 1; |
b80f6443 | 16568 | if (read (fd, data3, pagesize) != pagesize) |
3185942a | 16569 | return 1; |
b80f6443 JA |
16570 | for (i = 0; i < pagesize; ++i) |
16571 | if (*(data + i) != *(data3 + i)) | |
3185942a | 16572 | return 1; |
b80f6443 | 16573 | close (fd); |
3185942a | 16574 | return 0; |
b80f6443 JA |
16575 | } |
16576 | _ACEOF | |
16577 | rm -f conftest$ac_exeext | |
3185942a JA |
16578 | if { (ac_try="$ac_link" |
16579 | case "(($ac_try" in | |
16580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16581 | *) ac_try_echo=$ac_try;; | |
16582 | esac | |
16583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16584 | $as_echo "$ac_try_echo") >&5 | |
16585 | (eval "$ac_link") 2>&5 | |
b80f6443 | 16586 | ac_status=$? |
3185942a | 16587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 16588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
16589 | { (case "(($ac_try" in |
16590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16591 | *) ac_try_echo=$ac_try;; | |
16592 | esac | |
16593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16594 | $as_echo "$ac_try_echo") >&5 | |
16595 | (eval "$ac_try") 2>&5 | |
b80f6443 | 16596 | ac_status=$? |
3185942a | 16597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
16598 | (exit $ac_status); }; }; then |
16599 | ac_cv_func_mmap_fixed_mapped=yes | |
16600 | else | |
3185942a JA |
16601 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
16602 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
16603 | sed 's/^/| /' conftest.$ac_ext >&5 |
16604 | ||
b80f6443 JA |
16605 | ( exit $ac_status ) |
16606 | ac_cv_func_mmap_fixed_mapped=no | |
16607 | fi | |
3185942a JA |
16608 | rm -rf conftest.dSYM |
16609 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b80f6443 | 16610 | fi |
3185942a JA |
16611 | |
16612 | ||
b80f6443 | 16613 | fi |
3185942a JA |
16614 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16615 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b80f6443 JA |
16616 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
16617 | ||
16618 | cat >>confdefs.h <<\_ACEOF | |
16619 | #define HAVE_MMAP 1 | |
16620 | _ACEOF | |
16621 | ||
16622 | fi | |
16623 | rm -f conftest.mmap | |
16624 | ||
16625 | ||
16626 | ||
16627 | ||
16628 | ||
16629 | ||
16630 | ||
16631 | ||
16632 | ||
16633 | ||
16634 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ | |
16635 | munmap stpcpy strcspn strdup | |
16636 | do | |
3185942a JA |
16637 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16638 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16639 | $as_echo_n "checking for $ac_func... " >&6; } | |
16640 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16641 | $as_echo_n "(cached) " >&6 | |
b80f6443 JA |
16642 | else |
16643 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
16644 | /* confdefs.h. */ |
16645 | _ACEOF | |
16646 | cat confdefs.h >>conftest.$ac_ext | |
16647 | cat >>conftest.$ac_ext <<_ACEOF | |
16648 | /* end confdefs.h. */ | |
16649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16651 | #define $ac_func innocuous_$ac_func | |
16652 | ||
b80f6443 | 16653 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
16654 | which can conflict with char $ac_func (); below. |
16655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16656 | <limits.h> exists even on freestanding compilers. */ | |
16657 | ||
16658 | #ifdef __STDC__ | |
16659 | # include <limits.h> | |
16660 | #else | |
16661 | # include <assert.h> | |
16662 | #endif | |
16663 | ||
16664 | #undef $ac_func | |
16665 | ||
3185942a JA |
16666 | /* Override any GCC internal prototype to avoid an error. |
16667 | Use char because int might match the return type of a GCC | |
16668 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
16669 | #ifdef __cplusplus |
16670 | extern "C" | |
b80f6443 | 16671 | #endif |
b80f6443 JA |
16672 | char $ac_func (); |
16673 | /* The GNU C library defines this for functions which it implements | |
16674 | to always fail with ENOSYS. Some functions are actually named | |
16675 | something starting with __ and the normal name is an alias. */ | |
3185942a | 16676 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 16677 | choke me |
b80f6443 JA |
16678 | #endif |
16679 | ||
0628567a JA |
16680 | int |
16681 | main () | |
16682 | { | |
3185942a | 16683 | return $ac_func (); |
b80f6443 JA |
16684 | ; |
16685 | return 0; | |
16686 | } | |
16687 | _ACEOF | |
16688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
16689 | if { (ac_try="$ac_link" |
16690 | case "(($ac_try" in | |
16691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16692 | *) ac_try_echo=$ac_try;; | |
16693 | esac | |
16694 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16695 | $as_echo "$ac_try_echo") >&5 | |
16696 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 16697 | ac_status=$? |
0628567a JA |
16698 | grep -v '^ *+' conftest.er1 >conftest.err |
16699 | rm -f conftest.er1 | |
16700 | cat conftest.err >&5 | |
3185942a JA |
16701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16702 | (exit $ac_status); } && { | |
16703 | test -z "$ac_c_werror_flag" || | |
16704 | test ! -s conftest.err | |
16705 | } && test -s conftest$ac_exeext && { | |
16706 | test "$cross_compiling" = yes || | |
16707 | $as_test_x conftest$ac_exeext | |
16708 | }; then | |
b80f6443 JA |
16709 | eval "$as_ac_var=yes" |
16710 | else | |
3185942a | 16711 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16712 | sed 's/^/| /' conftest.$ac_ext >&5 |
16713 | ||
3185942a | 16714 | eval "$as_ac_var=no" |
b80f6443 | 16715 | fi |
3185942a JA |
16716 | |
16717 | rm -rf conftest.dSYM | |
16718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 16719 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 16720 | fi |
3185942a JA |
16721 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16722 | $as_echo "$as_val"'` | |
16723 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16724 | $as_echo "$ac_res" >&6; } | |
16725 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16726 | $as_echo "$as_val"'` | |
16727 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16728 | cat >>confdefs.h <<_ACEOF |
3185942a | 16729 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 16730 | _ACEOF |
7117c2d2 | 16731 | |
b80f6443 JA |
16732 | fi |
16733 | done | |
7117c2d2 | 16734 | |
7117c2d2 | 16735 | |
b80f6443 JA |
16736 | INTL_DEP= INTL_INC= LIBINTL_H= |
16737 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then | |
16738 | INTL_DEP='${INTL_LIBDIR}/libintl.a' | |
16739 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' | |
16740 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' | |
16741 | fi | |
7117c2d2 | 16742 | |
7117c2d2 | 16743 | |
7117c2d2 | 16744 | |
7117c2d2 | 16745 | |
7117c2d2 | 16746 | |
7117c2d2 | 16747 | |
7117c2d2 | 16748 | |
b80f6443 JA |
16749 | for ac_header in wctype.h |
16750 | do | |
3185942a JA |
16751 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16753 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16754 | $as_echo_n "checking for $ac_header... " >&6; } | |
16755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16756 | $as_echo_n "(cached) " >&6 | |
16757 | fi | |
16758 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16759 | $as_echo "$as_val"'` | |
16760 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16761 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16762 | else |
16763 | # Is the header compilable? | |
3185942a JA |
16764 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16765 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16766 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16767 | /* confdefs.h. */ |
16768 | _ACEOF | |
16769 | cat confdefs.h >>conftest.$ac_ext | |
16770 | cat >>conftest.$ac_ext <<_ACEOF | |
16771 | /* end confdefs.h. */ | |
b80f6443 JA |
16772 | $ac_includes_default |
16773 | #include <$ac_header> | |
16774 | _ACEOF | |
16775 | rm -f conftest.$ac_objext | |
3185942a JA |
16776 | if { (ac_try="$ac_compile" |
16777 | case "(($ac_try" in | |
16778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16779 | *) ac_try_echo=$ac_try;; | |
16780 | esac | |
16781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16782 | $as_echo "$ac_try_echo") >&5 | |
16783 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16784 | ac_status=$? |
0628567a JA |
16785 | grep -v '^ *+' conftest.er1 >conftest.err |
16786 | rm -f conftest.er1 | |
16787 | cat conftest.err >&5 | |
3185942a JA |
16788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16789 | (exit $ac_status); } && { | |
16790 | test -z "$ac_c_werror_flag" || | |
16791 | test ! -s conftest.err | |
16792 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16793 | ac_header_compiler=yes |
16794 | else | |
3185942a | 16795 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16796 | sed 's/^/| /' conftest.$ac_ext >&5 |
16797 | ||
3185942a | 16798 | ac_header_compiler=no |
b80f6443 | 16799 | fi |
3185942a JA |
16800 | |
16801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16802 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16803 | $as_echo "$ac_header_compiler" >&6; } | |
7117c2d2 | 16804 | |
b80f6443 | 16805 | # Is the header present? |
3185942a JA |
16806 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16807 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16808 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16809 | /* confdefs.h. */ |
16810 | _ACEOF | |
16811 | cat confdefs.h >>conftest.$ac_ext | |
16812 | cat >>conftest.$ac_ext <<_ACEOF | |
16813 | /* end confdefs.h. */ | |
b80f6443 JA |
16814 | #include <$ac_header> |
16815 | _ACEOF | |
3185942a JA |
16816 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16817 | case "(($ac_try" in | |
16818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16819 | *) ac_try_echo=$ac_try;; | |
16820 | esac | |
16821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16822 | $as_echo "$ac_try_echo") >&5 | |
16823 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f73dda09 | 16824 | ac_status=$? |
0628567a | 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16826 | rm -f conftest.er1 |
16827 | cat conftest.err >&5 | |
3185942a JA |
16828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16829 | (exit $ac_status); } >/dev/null && { | |
16830 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16831 | test ! -s conftest.err | |
16832 | }; then | |
b80f6443 JA |
16833 | ac_header_preproc=yes |
16834 | else | |
3185942a | 16835 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16836 | sed 's/^/| /' conftest.$ac_ext >&5 |
16837 | ||
b80f6443 JA |
16838 | ac_header_preproc=no |
16839 | fi | |
3185942a | 16840 | |
b80f6443 | 16841 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16842 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16843 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16844 | |
16845 | # So? What about this header? | |
0628567a JA |
16846 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16847 | yes:no: ) | |
3185942a JA |
16848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16849 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16851 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
16852 | ac_header_preproc=yes |
16853 | ;; | |
16854 | no:yes:* ) | |
3185942a JA |
16855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16856 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16858 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16860 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16862 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16864 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16866 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16867 | ( cat <<\_ASBOX | |
0628567a JA |
16868 | ## ------------------------------- ## |
16869 | ## Report this to bug-bash@gnu.org ## | |
16870 | ## ------------------------------- ## | |
16871 | _ASBOX | |
3185942a | 16872 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 16873 | ;; |
b80f6443 | 16874 | esac |
3185942a JA |
16875 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16876 | $as_echo_n "checking for $ac_header... " >&6; } | |
16877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16878 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 16879 | else |
0628567a | 16880 | eval "$as_ac_Header=\$ac_header_preproc" |
b80f6443 | 16881 | fi |
3185942a JA |
16882 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16883 | $as_echo "$as_val"'` | |
16884 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16885 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16886 | |
16887 | fi | |
3185942a JA |
16888 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16889 | $as_echo "$as_val"'` | |
16890 | if test "x$as_val" = x""yes; then | |
b80f6443 | 16891 | cat >>confdefs.h <<_ACEOF |
3185942a | 16892 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
16893 | _ACEOF |
16894 | ||
16895 | fi | |
16896 | ||
16897 | done | |
16898 | ||
16899 | ||
16900 | for ac_header in wchar.h | |
16901 | do | |
3185942a JA |
16902 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16903 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16904 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16905 | $as_echo_n "checking for $ac_header... " >&6; } | |
16906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16907 | $as_echo_n "(cached) " >&6 | |
16908 | fi | |
16909 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16910 | $as_echo "$as_val"'` | |
16911 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16912 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
16913 | else |
16914 | # Is the header compilable? | |
3185942a JA |
16915 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16916 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 16917 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16918 | /* confdefs.h. */ |
16919 | _ACEOF | |
16920 | cat confdefs.h >>conftest.$ac_ext | |
16921 | cat >>conftest.$ac_ext <<_ACEOF | |
16922 | /* end confdefs.h. */ | |
b80f6443 JA |
16923 | $ac_includes_default |
16924 | #include <$ac_header> | |
16925 | _ACEOF | |
16926 | rm -f conftest.$ac_objext | |
3185942a JA |
16927 | if { (ac_try="$ac_compile" |
16928 | case "(($ac_try" in | |
16929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16930 | *) ac_try_echo=$ac_try;; | |
16931 | esac | |
16932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16933 | $as_echo "$ac_try_echo") >&5 | |
16934 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 16935 | ac_status=$? |
0628567a JA |
16936 | grep -v '^ *+' conftest.er1 >conftest.err |
16937 | rm -f conftest.er1 | |
16938 | cat conftest.err >&5 | |
3185942a JA |
16939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16940 | (exit $ac_status); } && { | |
16941 | test -z "$ac_c_werror_flag" || | |
16942 | test ! -s conftest.err | |
16943 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
16944 | ac_header_compiler=yes |
16945 | else | |
3185942a | 16946 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16947 | sed 's/^/| /' conftest.$ac_ext >&5 |
16948 | ||
3185942a | 16949 | ac_header_compiler=no |
b80f6443 | 16950 | fi |
3185942a JA |
16951 | |
16952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16953 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16954 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
16955 | |
16956 | # Is the header present? | |
3185942a JA |
16957 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16958 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 16959 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
16960 | /* confdefs.h. */ |
16961 | _ACEOF | |
16962 | cat confdefs.h >>conftest.$ac_ext | |
16963 | cat >>conftest.$ac_ext <<_ACEOF | |
16964 | /* end confdefs.h. */ | |
b80f6443 JA |
16965 | #include <$ac_header> |
16966 | _ACEOF | |
3185942a JA |
16967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16968 | case "(($ac_try" in | |
16969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16970 | *) ac_try_echo=$ac_try;; | |
16971 | esac | |
16972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16973 | $as_echo "$ac_try_echo") >&5 | |
16974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b80f6443 | 16975 | ac_status=$? |
0628567a | 16976 | grep -v '^ *+' conftest.er1 >conftest.err |
b80f6443 JA |
16977 | rm -f conftest.er1 |
16978 | cat conftest.err >&5 | |
3185942a JA |
16979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16980 | (exit $ac_status); } >/dev/null && { | |
16981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16982 | test ! -s conftest.err | |
16983 | }; then | |
b80f6443 JA |
16984 | ac_header_preproc=yes |
16985 | else | |
3185942a | 16986 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
16987 | sed 's/^/| /' conftest.$ac_ext >&5 |
16988 | ||
b80f6443 JA |
16989 | ac_header_preproc=no |
16990 | fi | |
3185942a | 16991 | |
b80f6443 | 16992 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
16993 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16994 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
16995 | |
16996 | # So? What about this header? | |
0628567a JA |
16997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16998 | yes:no: ) | |
3185942a JA |
16999 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17000 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17001 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17002 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
17003 | ac_header_preproc=yes |
17004 | ;; | |
17005 | no:yes:* ) | |
3185942a JA |
17006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17007 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17009 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17011 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17013 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17015 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17017 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17018 | ( cat <<\_ASBOX | |
0628567a JA |
17019 | ## ------------------------------- ## |
17020 | ## Report this to bug-bash@gnu.org ## | |
17021 | ## ------------------------------- ## | |
17022 | _ASBOX | |
3185942a | 17023 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 17024 | ;; |
b80f6443 | 17025 | esac |
3185942a JA |
17026 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17027 | $as_echo_n "checking for $ac_header... " >&6; } | |
17028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17029 | $as_echo_n "(cached) " >&6 | |
7117c2d2 | 17030 | else |
0628567a | 17031 | eval "$as_ac_Header=\$ac_header_preproc" |
7117c2d2 | 17032 | fi |
3185942a JA |
17033 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17034 | $as_echo "$as_val"'` | |
17035 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17036 | $as_echo "$ac_res" >&6; } | |
b80f6443 | 17037 | |
7117c2d2 | 17038 | fi |
3185942a JA |
17039 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17040 | $as_echo "$as_val"'` | |
17041 | if test "x$as_val" = x""yes; then | |
b80f6443 | 17042 | cat >>confdefs.h <<_ACEOF |
3185942a | 17043 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 JA |
17044 | _ACEOF |
17045 | ||
7117c2d2 JA |
17046 | fi |
17047 | ||
b80f6443 JA |
17048 | done |
17049 | ||
17050 | ||
17051 | for ac_header in langinfo.h | |
7117c2d2 | 17052 | do |
3185942a JA |
17053 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17055 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17056 | $as_echo_n "checking for $ac_header... " >&6; } | |
17057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17058 | $as_echo_n "(cached) " >&6 | |
17059 | fi | |
17060 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17061 | $as_echo "$as_val"'` | |
17062 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17063 | $as_echo "$ac_res" >&6; } | |
7117c2d2 | 17064 | else |
b80f6443 | 17065 | # Is the header compilable? |
3185942a JA |
17066 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17067 | $as_echo_n "checking $ac_header usability... " >&6; } | |
b80f6443 | 17068 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
17069 | /* confdefs.h. */ |
17070 | _ACEOF | |
17071 | cat confdefs.h >>conftest.$ac_ext | |
17072 | cat >>conftest.$ac_ext <<_ACEOF | |
17073 | /* end confdefs.h. */ | |
b80f6443 JA |
17074 | $ac_includes_default |
17075 | #include <$ac_header> | |
17076 | _ACEOF | |
17077 | rm -f conftest.$ac_objext | |
3185942a JA |
17078 | if { (ac_try="$ac_compile" |
17079 | case "(($ac_try" in | |
17080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17081 | *) ac_try_echo=$ac_try;; | |
17082 | esac | |
17083 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17084 | $as_echo "$ac_try_echo") >&5 | |
17085 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 17086 | ac_status=$? |
0628567a JA |
17087 | grep -v '^ *+' conftest.er1 >conftest.err |
17088 | rm -f conftest.er1 | |
17089 | cat conftest.err >&5 | |
3185942a JA |
17090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17091 | (exit $ac_status); } && { | |
17092 | test -z "$ac_c_werror_flag" || | |
17093 | test ! -s conftest.err | |
17094 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
17095 | ac_header_compiler=yes |
17096 | else | |
3185942a | 17097 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17098 | sed 's/^/| /' conftest.$ac_ext >&5 |
17099 | ||
3185942a | 17100 | ac_header_compiler=no |
b80f6443 | 17101 | fi |
3185942a JA |
17102 | |
17103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17104 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17105 | $as_echo "$ac_header_compiler" >&6; } | |
b80f6443 JA |
17106 | |
17107 | # Is the header present? | |
3185942a JA |
17108 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17109 | $as_echo_n "checking $ac_header presence... " >&6; } | |
b80f6443 | 17110 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
17111 | /* confdefs.h. */ |
17112 | _ACEOF | |
17113 | cat confdefs.h >>conftest.$ac_ext | |
17114 | cat >>conftest.$ac_ext <<_ACEOF | |
17115 | /* end confdefs.h. */ | |
7117c2d2 JA |
17116 | #include <$ac_header> |
17117 | _ACEOF | |
3185942a JA |
17118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17119 | case "(($ac_try" in | |
17120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17121 | *) ac_try_echo=$ac_try;; | |
17122 | esac | |
17123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17124 | $as_echo "$ac_try_echo") >&5 | |
17125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7117c2d2 | 17126 | ac_status=$? |
0628567a | 17127 | grep -v '^ *+' conftest.er1 >conftest.err |
7117c2d2 JA |
17128 | rm -f conftest.er1 |
17129 | cat conftest.err >&5 | |
3185942a JA |
17130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17131 | (exit $ac_status); } >/dev/null && { | |
17132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17133 | test ! -s conftest.err | |
17134 | }; then | |
b80f6443 | 17135 | ac_header_preproc=yes |
7117c2d2 | 17136 | else |
3185942a | 17137 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17138 | sed 's/^/| /' conftest.$ac_ext >&5 |
17139 | ||
b80f6443 | 17140 | ac_header_preproc=no |
7117c2d2 | 17141 | fi |
3185942a | 17142 | |
7117c2d2 | 17143 | rm -f conftest.err conftest.$ac_ext |
3185942a JA |
17144 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17145 | $as_echo "$ac_header_preproc" >&6; } | |
b80f6443 JA |
17146 | |
17147 | # So? What about this header? | |
0628567a JA |
17148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17149 | yes:no: ) | |
3185942a JA |
17150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17151 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17152 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17153 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
0628567a JA |
17154 | ac_header_preproc=yes |
17155 | ;; | |
17156 | no:yes:* ) | |
3185942a JA |
17157 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17158 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17159 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17160 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17161 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17162 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17163 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17164 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17166 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17167 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17168 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17169 | ( cat <<\_ASBOX | |
0628567a JA |
17170 | ## ------------------------------- ## |
17171 | ## Report this to bug-bash@gnu.org ## | |
17172 | ## ------------------------------- ## | |
17173 | _ASBOX | |
3185942a | 17174 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
0628567a | 17175 | ;; |
b80f6443 | 17176 | esac |
3185942a JA |
17177 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17178 | $as_echo_n "checking for $ac_header... " >&6; } | |
17179 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17180 | $as_echo_n "(cached) " >&6 | |
b80f6443 | 17181 | else |
0628567a | 17182 | eval "$as_ac_Header=\$ac_header_preproc" |
7117c2d2 | 17183 | fi |
3185942a JA |
17184 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17185 | $as_echo "$as_val"'` | |
17186 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17187 | $as_echo "$ac_res" >&6; } | |
b80f6443 JA |
17188 | |
17189 | fi | |
3185942a JA |
17190 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17191 | $as_echo "$as_val"'` | |
17192 | if test "x$as_val" = x""yes; then | |
b80f6443 | 17193 | cat >>confdefs.h <<_ACEOF |
3185942a | 17194 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b80f6443 | 17195 | _ACEOF |
7117c2d2 JA |
17196 | |
17197 | fi | |
b80f6443 | 17198 | |
7117c2d2 JA |
17199 | done |
17200 | ||
b80f6443 | 17201 | |
3185942a JA |
17202 | { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5 |
17203 | $as_echo_n "checking for mbrlen... " >&6; } | |
17204 | if test "${ac_cv_func_mbrlen+set}" = set; then | |
17205 | $as_echo_n "(cached) " >&6 | |
7117c2d2 JA |
17206 | else |
17207 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17208 | /* confdefs.h. */ |
17209 | _ACEOF | |
17210 | cat confdefs.h >>conftest.$ac_ext | |
17211 | cat >>conftest.$ac_ext <<_ACEOF | |
17212 | /* end confdefs.h. */ | |
3185942a | 17213 | /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. |
0628567a | 17214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3185942a | 17215 | #define mbrlen innocuous_mbrlen |
0628567a | 17216 | |
7117c2d2 | 17217 | /* System header to define __stub macros and hopefully few prototypes, |
3185942a | 17218 | which can conflict with char mbrlen (); below. |
0628567a JA |
17219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17220 | <limits.h> exists even on freestanding compilers. */ | |
17221 | ||
17222 | #ifdef __STDC__ | |
17223 | # include <limits.h> | |
17224 | #else | |
17225 | # include <assert.h> | |
17226 | #endif | |
17227 | ||
3185942a | 17228 | #undef mbrlen |
0628567a | 17229 | |
3185942a JA |
17230 | /* Override any GCC internal prototype to avoid an error. |
17231 | Use char because int might match the return type of a GCC | |
17232 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17233 | #ifdef __cplusplus |
17234 | extern "C" | |
17235 | #endif | |
3185942a | 17236 | char mbrlen (); |
7117c2d2 JA |
17237 | /* The GNU C library defines this for functions which it implements |
17238 | to always fail with ENOSYS. Some functions are actually named | |
17239 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17240 | #if defined __stub_mbrlen || defined __stub___mbrlen |
7117c2d2 | 17241 | choke me |
7117c2d2 JA |
17242 | #endif |
17243 | ||
0628567a JA |
17244 | int |
17245 | main () | |
17246 | { | |
3185942a | 17247 | return mbrlen (); |
7117c2d2 JA |
17248 | ; |
17249 | return 0; | |
17250 | } | |
17251 | _ACEOF | |
17252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17253 | if { (ac_try="$ac_link" |
17254 | case "(($ac_try" in | |
17255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17256 | *) ac_try_echo=$ac_try;; | |
17257 | esac | |
17258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17259 | $as_echo "$ac_try_echo") >&5 | |
17260 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 17261 | ac_status=$? |
0628567a JA |
17262 | grep -v '^ *+' conftest.er1 >conftest.err |
17263 | rm -f conftest.er1 | |
17264 | cat conftest.err >&5 | |
3185942a JA |
17265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17266 | (exit $ac_status); } && { | |
17267 | test -z "$ac_c_werror_flag" || | |
17268 | test ! -s conftest.err | |
17269 | } && test -s conftest$ac_exeext && { | |
17270 | test "$cross_compiling" = yes || | |
17271 | $as_test_x conftest$ac_exeext | |
17272 | }; then | |
17273 | ac_cv_func_mbrlen=yes | |
7117c2d2 | 17274 | else |
3185942a | 17275 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17276 | sed 's/^/| /' conftest.$ac_ext >&5 |
17277 | ||
3185942a | 17278 | ac_cv_func_mbrlen=no |
7117c2d2 | 17279 | fi |
3185942a JA |
17280 | |
17281 | rm -rf conftest.dSYM | |
17282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17283 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 17284 | fi |
3185942a JA |
17285 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 |
17286 | $as_echo "$ac_cv_func_mbrlen" >&6; } | |
17287 | if test "x$ac_cv_func_mbrlen" = x""yes; then | |
b80f6443 | 17288 | cat >>confdefs.h <<\_ACEOF |
3185942a | 17289 | #define HAVE_MBRLEN 1 |
b80f6443 | 17290 | _ACEOF |
7117c2d2 JA |
17291 | |
17292 | fi | |
7117c2d2 | 17293 | |
0001803f CR |
17294 | { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5 |
17295 | $as_echo_n "checking for mbscasecmp... " >&6; } | |
17296 | if test "${ac_cv_func_mbscasecmp+set}" = set; then | |
3185942a | 17297 | $as_echo_n "(cached) " >&6 |
7117c2d2 | 17298 | else |
b80f6443 | 17299 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
17300 | /* confdefs.h. */ |
17301 | _ACEOF | |
17302 | cat confdefs.h >>conftest.$ac_ext | |
17303 | cat >>conftest.$ac_ext <<_ACEOF | |
17304 | /* end confdefs.h. */ | |
0001803f | 17305 | /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp. |
0628567a | 17306 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
0001803f | 17307 | #define mbscasecmp innocuous_mbscasecmp |
0628567a | 17308 | |
b80f6443 | 17309 | /* System header to define __stub macros and hopefully few prototypes, |
0001803f | 17310 | which can conflict with char mbscasecmp (); below. |
0628567a JA |
17311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17312 | <limits.h> exists even on freestanding compilers. */ | |
17313 | ||
17314 | #ifdef __STDC__ | |
17315 | # include <limits.h> | |
17316 | #else | |
17317 | # include <assert.h> | |
17318 | #endif | |
17319 | ||
0001803f | 17320 | #undef mbscasecmp |
0628567a | 17321 | |
3185942a JA |
17322 | /* Override any GCC internal prototype to avoid an error. |
17323 | Use char because int might match the return type of a GCC | |
17324 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17325 | #ifdef __cplusplus |
17326 | extern "C" | |
17327 | #endif | |
0001803f | 17328 | char mbscasecmp (); |
b80f6443 JA |
17329 | /* The GNU C library defines this for functions which it implements |
17330 | to always fail with ENOSYS. Some functions are actually named | |
17331 | something starting with __ and the normal name is an alias. */ | |
0001803f | 17332 | #if defined __stub_mbscasecmp || defined __stub___mbscasecmp |
b80f6443 | 17333 | choke me |
3185942a JA |
17334 | #endif |
17335 | ||
17336 | int | |
17337 | main () | |
17338 | { | |
0001803f | 17339 | return mbscasecmp (); |
3185942a JA |
17340 | ; |
17341 | return 0; | |
17342 | } | |
17343 | _ACEOF | |
17344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17345 | if { (ac_try="$ac_link" | |
17346 | case "(($ac_try" in | |
17347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17348 | *) ac_try_echo=$ac_try;; | |
17349 | esac | |
17350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17351 | $as_echo "$ac_try_echo") >&5 | |
17352 | (eval "$ac_link") 2>conftest.er1 | |
17353 | ac_status=$? | |
17354 | grep -v '^ *+' conftest.er1 >conftest.err | |
17355 | rm -f conftest.er1 | |
17356 | cat conftest.err >&5 | |
17357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17358 | (exit $ac_status); } && { | |
17359 | test -z "$ac_c_werror_flag" || | |
17360 | test ! -s conftest.err | |
17361 | } && test -s conftest$ac_exeext && { | |
17362 | test "$cross_compiling" = yes || | |
17363 | $as_test_x conftest$ac_exeext | |
17364 | }; then | |
0001803f | 17365 | ac_cv_func_mbscasecmp=yes |
3185942a JA |
17366 | else |
17367 | $as_echo "$as_me: failed program was:" >&5 | |
17368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17369 | ||
0001803f | 17370 | ac_cv_func_mbscasecmp=no |
3185942a JA |
17371 | fi |
17372 | ||
17373 | rm -rf conftest.dSYM | |
17374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17375 | conftest$ac_exeext conftest.$ac_ext | |
17376 | fi | |
0001803f CR |
17377 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5 |
17378 | $as_echo "$ac_cv_func_mbscasecmp" >&6; } | |
17379 | if test "x$ac_cv_func_mbscasecmp" = x""yes; then | |
3185942a JA |
17380 | cat >>confdefs.h <<\_ACEOF |
17381 | #define HAVE_MBSCMP 1 | |
17382 | _ACEOF | |
17383 | ||
17384 | fi | |
17385 | ||
0001803f CR |
17386 | { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5 |
17387 | $as_echo_n "checking for mbscmp... " >&6; } | |
17388 | if test "${ac_cv_func_mbscmp+set}" = set; then | |
3185942a JA |
17389 | $as_echo_n "(cached) " >&6 |
17390 | else | |
17391 | cat >conftest.$ac_ext <<_ACEOF | |
17392 | /* confdefs.h. */ | |
17393 | _ACEOF | |
17394 | cat confdefs.h >>conftest.$ac_ext | |
17395 | cat >>conftest.$ac_ext <<_ACEOF | |
17396 | /* end confdefs.h. */ | |
0001803f | 17397 | /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp. |
3185942a | 17398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
0001803f | 17399 | #define mbscmp innocuous_mbscmp |
3185942a JA |
17400 | |
17401 | /* System header to define __stub macros and hopefully few prototypes, | |
0001803f | 17402 | which can conflict with char mbscmp (); below. |
3185942a JA |
17403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17404 | <limits.h> exists even on freestanding compilers. */ | |
17405 | ||
17406 | #ifdef __STDC__ | |
17407 | # include <limits.h> | |
b80f6443 | 17408 | #else |
3185942a | 17409 | # include <assert.h> |
0628567a | 17410 | #endif |
3185942a | 17411 | |
0001803f | 17412 | #undef mbscmp |
3185942a JA |
17413 | |
17414 | /* Override any GCC internal prototype to avoid an error. | |
17415 | Use char because int might match the return type of a GCC | |
17416 | builtin and then its argument prototype would still apply. */ | |
0628567a | 17417 | #ifdef __cplusplus |
3185942a JA |
17418 | extern "C" |
17419 | #endif | |
0001803f | 17420 | char mbscmp (); |
3185942a JA |
17421 | /* The GNU C library defines this for functions which it implements |
17422 | to always fail with ENOSYS. Some functions are actually named | |
17423 | something starting with __ and the normal name is an alias. */ | |
0001803f | 17424 | #if defined __stub_mbscmp || defined __stub___mbscmp |
3185942a | 17425 | choke me |
b80f6443 JA |
17426 | #endif |
17427 | ||
0628567a JA |
17428 | int |
17429 | main () | |
17430 | { | |
0001803f | 17431 | return mbscmp (); |
7117c2d2 JA |
17432 | ; |
17433 | return 0; | |
17434 | } | |
17435 | _ACEOF | |
17436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17437 | if { (ac_try="$ac_link" |
17438 | case "(($ac_try" in | |
17439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17440 | *) ac_try_echo=$ac_try;; | |
17441 | esac | |
17442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17443 | $as_echo "$ac_try_echo") >&5 | |
17444 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 17445 | ac_status=$? |
0628567a JA |
17446 | grep -v '^ *+' conftest.er1 >conftest.err |
17447 | rm -f conftest.er1 | |
17448 | cat conftest.err >&5 | |
3185942a JA |
17449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17450 | (exit $ac_status); } && { | |
17451 | test -z "$ac_c_werror_flag" || | |
17452 | test ! -s conftest.err | |
17453 | } && test -s conftest$ac_exeext && { | |
17454 | test "$cross_compiling" = yes || | |
17455 | $as_test_x conftest$ac_exeext | |
17456 | }; then | |
0001803f | 17457 | ac_cv_func_mbscmp=yes |
f73dda09 | 17458 | else |
3185942a | 17459 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
17461 | ||
0001803f | 17462 | ac_cv_func_mbscmp=no |
f73dda09 | 17463 | fi |
3185942a JA |
17464 | |
17465 | rm -rf conftest.dSYM | |
17466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17467 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 17468 | fi |
0001803f CR |
17469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5 |
17470 | $as_echo "$ac_cv_func_mbscmp" >&6; } | |
17471 | if test "x$ac_cv_func_mbscmp" = x""yes; then | |
b80f6443 | 17472 | cat >>confdefs.h <<\_ACEOF |
0001803f | 17473 | #define HAVE_MBSCMP 1 |
b80f6443 | 17474 | _ACEOF |
f73dda09 JA |
17475 | |
17476 | fi | |
17477 | ||
495aee44 CR |
17478 | { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5 |
17479 | $as_echo_n "checking for mbsnrtowcs... " >&6; } | |
17480 | if test "${ac_cv_func_mbsnrtowcs+set}" = set; then | |
17481 | $as_echo_n "(cached) " >&6 | |
17482 | else | |
17483 | cat >conftest.$ac_ext <<_ACEOF | |
17484 | /* confdefs.h. */ | |
17485 | _ACEOF | |
17486 | cat confdefs.h >>conftest.$ac_ext | |
17487 | cat >>conftest.$ac_ext <<_ACEOF | |
17488 | /* end confdefs.h. */ | |
17489 | /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs. | |
17490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17491 | #define mbsnrtowcs innocuous_mbsnrtowcs | |
17492 | ||
17493 | /* System header to define __stub macros and hopefully few prototypes, | |
17494 | which can conflict with char mbsnrtowcs (); below. | |
17495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17496 | <limits.h> exists even on freestanding compilers. */ | |
17497 | ||
17498 | #ifdef __STDC__ | |
17499 | # include <limits.h> | |
17500 | #else | |
17501 | # include <assert.h> | |
17502 | #endif | |
17503 | ||
17504 | #undef mbsnrtowcs | |
17505 | ||
17506 | /* Override any GCC internal prototype to avoid an error. | |
17507 | Use char because int might match the return type of a GCC | |
17508 | builtin and then its argument prototype would still apply. */ | |
17509 | #ifdef __cplusplus | |
17510 | extern "C" | |
17511 | #endif | |
17512 | char mbsnrtowcs (); | |
17513 | /* The GNU C library defines this for functions which it implements | |
17514 | to always fail with ENOSYS. Some functions are actually named | |
17515 | something starting with __ and the normal name is an alias. */ | |
17516 | #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs | |
17517 | choke me | |
17518 | #endif | |
17519 | ||
17520 | int | |
17521 | main () | |
17522 | { | |
17523 | return mbsnrtowcs (); | |
17524 | ; | |
17525 | return 0; | |
17526 | } | |
17527 | _ACEOF | |
17528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17529 | if { (ac_try="$ac_link" | |
17530 | case "(($ac_try" in | |
17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17532 | *) ac_try_echo=$ac_try;; | |
17533 | esac | |
17534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17535 | $as_echo "$ac_try_echo") >&5 | |
17536 | (eval "$ac_link") 2>conftest.er1 | |
17537 | ac_status=$? | |
17538 | grep -v '^ *+' conftest.er1 >conftest.err | |
17539 | rm -f conftest.er1 | |
17540 | cat conftest.err >&5 | |
17541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); } && { | |
17543 | test -z "$ac_c_werror_flag" || | |
17544 | test ! -s conftest.err | |
17545 | } && test -s conftest$ac_exeext && { | |
17546 | test "$cross_compiling" = yes || | |
17547 | $as_test_x conftest$ac_exeext | |
17548 | }; then | |
17549 | ac_cv_func_mbsnrtowcs=yes | |
17550 | else | |
17551 | $as_echo "$as_me: failed program was:" >&5 | |
17552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17553 | ||
17554 | ac_cv_func_mbsnrtowcs=no | |
17555 | fi | |
17556 | ||
17557 | rm -rf conftest.dSYM | |
17558 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17559 | conftest$ac_exeext conftest.$ac_ext | |
17560 | fi | |
17561 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5 | |
17562 | $as_echo "$ac_cv_func_mbsnrtowcs" >&6; } | |
17563 | if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then | |
17564 | cat >>confdefs.h <<\_ACEOF | |
17565 | #define HAVE_MBSNRTOWCS 1 | |
17566 | _ACEOF | |
17567 | ||
17568 | fi | |
17569 | ||
0001803f CR |
17570 | { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 |
17571 | $as_echo_n "checking for mbsrtowcs... " >&6; } | |
17572 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then | |
3185942a | 17573 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
17574 | else |
17575 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17576 | /* confdefs.h. */ |
17577 | _ACEOF | |
17578 | cat confdefs.h >>conftest.$ac_ext | |
17579 | cat >>conftest.$ac_ext <<_ACEOF | |
17580 | /* end confdefs.h. */ | |
0001803f | 17581 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. |
0628567a | 17582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
0001803f | 17583 | #define mbsrtowcs innocuous_mbsrtowcs |
0628567a | 17584 | |
f73dda09 | 17585 | /* System header to define __stub macros and hopefully few prototypes, |
0001803f | 17586 | which can conflict with char mbsrtowcs (); below. |
0628567a JA |
17587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17588 | <limits.h> exists even on freestanding compilers. */ | |
17589 | ||
17590 | #ifdef __STDC__ | |
17591 | # include <limits.h> | |
17592 | #else | |
17593 | # include <assert.h> | |
17594 | #endif | |
17595 | ||
0001803f | 17596 | #undef mbsrtowcs |
0628567a | 17597 | |
3185942a JA |
17598 | /* Override any GCC internal prototype to avoid an error. |
17599 | Use char because int might match the return type of a GCC | |
17600 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
17601 | #ifdef __cplusplus |
17602 | extern "C" | |
17603 | #endif | |
0001803f | 17604 | char mbsrtowcs (); |
f73dda09 JA |
17605 | /* The GNU C library defines this for functions which it implements |
17606 | to always fail with ENOSYS. Some functions are actually named | |
17607 | something starting with __ and the normal name is an alias. */ | |
0001803f | 17608 | #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs |
f73dda09 | 17609 | choke me |
f73dda09 JA |
17610 | #endif |
17611 | ||
0628567a JA |
17612 | int |
17613 | main () | |
17614 | { | |
0001803f | 17615 | return mbsrtowcs (); |
f73dda09 JA |
17616 | ; |
17617 | return 0; | |
17618 | } | |
17619 | _ACEOF | |
17620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
17621 | if { (ac_try="$ac_link" |
17622 | case "(($ac_try" in | |
17623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17624 | *) ac_try_echo=$ac_try;; | |
17625 | esac | |
17626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17627 | $as_echo "$ac_try_echo") >&5 | |
17628 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 17629 | ac_status=$? |
0628567a JA |
17630 | grep -v '^ *+' conftest.er1 >conftest.err |
17631 | rm -f conftest.er1 | |
17632 | cat conftest.err >&5 | |
3185942a JA |
17633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17634 | (exit $ac_status); } && { | |
17635 | test -z "$ac_c_werror_flag" || | |
17636 | test ! -s conftest.err | |
17637 | } && test -s conftest$ac_exeext && { | |
17638 | test "$cross_compiling" = yes || | |
17639 | $as_test_x conftest$ac_exeext | |
17640 | }; then | |
0001803f | 17641 | ac_cv_func_mbsrtowcs=yes |
f73dda09 | 17642 | else |
3185942a | 17643 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17644 | sed 's/^/| /' conftest.$ac_ext >&5 |
17645 | ||
0001803f | 17646 | ac_cv_func_mbsrtowcs=no |
ccc6cda3 | 17647 | fi |
3185942a JA |
17648 | |
17649 | rm -rf conftest.dSYM | |
17650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17651 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 17652 | fi |
0001803f CR |
17653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
17654 | $as_echo "$ac_cv_func_mbsrtowcs" >&6; } | |
17655 | if test "x$ac_cv_func_mbsrtowcs" = x""yes; then | |
b80f6443 | 17656 | cat >>confdefs.h <<\_ACEOF |
0001803f | 17657 | #define HAVE_MBSRTOWCS 1 |
7117c2d2 | 17658 | _ACEOF |
7117c2d2 JA |
17659 | |
17660 | fi | |
7117c2d2 | 17661 | |
0001803f CR |
17662 | |
17663 | ||
495aee44 | 17664 | |
0001803f CR |
17665 | for ac_func in mbschr |
17666 | do | |
17667 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17668 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17669 | $as_echo_n "checking for $ac_func... " >&6; } | |
17670 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3185942a | 17671 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17672 | else |
17673 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17674 | /* confdefs.h. */ |
17675 | _ACEOF | |
17676 | cat confdefs.h >>conftest.$ac_ext | |
17677 | cat >>conftest.$ac_ext <<_ACEOF | |
17678 | /* end confdefs.h. */ | |
0001803f | 17679 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
0628567a | 17680 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
0001803f | 17681 | #define $ac_func innocuous_$ac_func |
0628567a | 17682 | |
b80f6443 | 17683 | /* System header to define __stub macros and hopefully few prototypes, |
0001803f | 17684 | which can conflict with char $ac_func (); below. |
0628567a JA |
17685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17686 | <limits.h> exists even on freestanding compilers. */ | |
17687 | ||
17688 | #ifdef __STDC__ | |
17689 | # include <limits.h> | |
17690 | #else | |
17691 | # include <assert.h> | |
17692 | #endif | |
17693 | ||
0001803f | 17694 | #undef $ac_func |
0628567a | 17695 | |
3185942a JA |
17696 | /* Override any GCC internal prototype to avoid an error. |
17697 | Use char because int might match the return type of a GCC | |
17698 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
17699 | #ifdef __cplusplus |
17700 | extern "C" | |
b80f6443 | 17701 | #endif |
0001803f | 17702 | char $ac_func (); |
b80f6443 JA |
17703 | /* The GNU C library defines this for functions which it implements |
17704 | to always fail with ENOSYS. Some functions are actually named | |
17705 | something starting with __ and the normal name is an alias. */ | |
0001803f | 17706 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b80f6443 | 17707 | choke me |
b80f6443 | 17708 | #endif |
7117c2d2 | 17709 | |
0628567a JA |
17710 | int |
17711 | main () | |
17712 | { | |
0001803f | 17713 | return $ac_func (); |
b80f6443 JA |
17714 | ; |
17715 | return 0; | |
17716 | } | |
7117c2d2 | 17717 | _ACEOF |
b80f6443 | 17718 | rm -f conftest.$ac_objext conftest$ac_exeext |
3185942a JA |
17719 | if { (ac_try="$ac_link" |
17720 | case "(($ac_try" in | |
17721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17722 | *) ac_try_echo=$ac_try;; | |
17723 | esac | |
17724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17725 | $as_echo "$ac_try_echo") >&5 | |
17726 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 17727 | ac_status=$? |
0628567a JA |
17728 | grep -v '^ *+' conftest.er1 >conftest.err |
17729 | rm -f conftest.er1 | |
17730 | cat conftest.err >&5 | |
3185942a JA |
17731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17732 | (exit $ac_status); } && { | |
17733 | test -z "$ac_c_werror_flag" || | |
17734 | test ! -s conftest.err | |
17735 | } && test -s conftest$ac_exeext && { | |
17736 | test "$cross_compiling" = yes || | |
17737 | $as_test_x conftest$ac_exeext | |
17738 | }; then | |
0001803f | 17739 | eval "$as_ac_var=yes" |
7117c2d2 | 17740 | else |
3185942a | 17741 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
17742 | sed 's/^/| /' conftest.$ac_ext >&5 |
17743 | ||
0001803f | 17744 | eval "$as_ac_var=no" |
7117c2d2 | 17745 | fi |
3185942a JA |
17746 | |
17747 | rm -rf conftest.dSYM | |
17748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 17749 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 17750 | fi |
0001803f CR |
17751 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17752 | $as_echo "$as_val"'` | |
17753 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17754 | $as_echo "$ac_res" >&6; } | |
17755 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17756 | $as_echo "$as_val"'` | |
17757 | if test "x$as_val" = x""yes; then | |
17758 | cat >>confdefs.h <<_ACEOF | |
17759 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
b80f6443 | 17760 | _ACEOF |
7117c2d2 | 17761 | |
0001803f CR |
17762 | else |
17763 | case " $LIBOBJS " in | |
17764 | *" $ac_func.$ac_objext "* ) ;; | |
17765 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
17766 | ;; | |
17767 | esac | |
17768 | ||
7117c2d2 | 17769 | fi |
0001803f | 17770 | done |
7117c2d2 | 17771 | |
0001803f CR |
17772 | |
17773 | ||
17774 | { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5 | |
17775 | $as_echo_n "checking for wcrtomb... " >&6; } | |
17776 | if test "${ac_cv_func_wcrtomb+set}" = set; then | |
17777 | $as_echo_n "(cached) " >&6 | |
17778 | else | |
17779 | cat >conftest.$ac_ext <<_ACEOF | |
17780 | /* confdefs.h. */ | |
17781 | _ACEOF | |
17782 | cat confdefs.h >>conftest.$ac_ext | |
17783 | cat >>conftest.$ac_ext <<_ACEOF | |
17784 | /* end confdefs.h. */ | |
17785 | /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb. | |
17786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17787 | #define wcrtomb innocuous_wcrtomb | |
17788 | ||
17789 | /* System header to define __stub macros and hopefully few prototypes, | |
17790 | which can conflict with char wcrtomb (); below. | |
17791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17792 | <limits.h> exists even on freestanding compilers. */ | |
17793 | ||
17794 | #ifdef __STDC__ | |
17795 | # include <limits.h> | |
17796 | #else | |
17797 | # include <assert.h> | |
17798 | #endif | |
17799 | ||
17800 | #undef wcrtomb | |
17801 | ||
17802 | /* Override any GCC internal prototype to avoid an error. | |
17803 | Use char because int might match the return type of a GCC | |
17804 | builtin and then its argument prototype would still apply. */ | |
17805 | #ifdef __cplusplus | |
17806 | extern "C" | |
17807 | #endif | |
17808 | char wcrtomb (); | |
17809 | /* The GNU C library defines this for functions which it implements | |
17810 | to always fail with ENOSYS. Some functions are actually named | |
17811 | something starting with __ and the normal name is an alias. */ | |
17812 | #if defined __stub_wcrtomb || defined __stub___wcrtomb | |
17813 | choke me | |
17814 | #endif | |
17815 | ||
17816 | int | |
17817 | main () | |
17818 | { | |
17819 | return wcrtomb (); | |
17820 | ; | |
17821 | return 0; | |
17822 | } | |
17823 | _ACEOF | |
17824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17825 | if { (ac_try="$ac_link" | |
17826 | case "(($ac_try" in | |
17827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17828 | *) ac_try_echo=$ac_try;; | |
17829 | esac | |
17830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17831 | $as_echo "$ac_try_echo") >&5 | |
17832 | (eval "$ac_link") 2>conftest.er1 | |
17833 | ac_status=$? | |
17834 | grep -v '^ *+' conftest.er1 >conftest.err | |
17835 | rm -f conftest.er1 | |
17836 | cat conftest.err >&5 | |
17837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17838 | (exit $ac_status); } && { | |
17839 | test -z "$ac_c_werror_flag" || | |
17840 | test ! -s conftest.err | |
17841 | } && test -s conftest$ac_exeext && { | |
17842 | test "$cross_compiling" = yes || | |
17843 | $as_test_x conftest$ac_exeext | |
17844 | }; then | |
17845 | ac_cv_func_wcrtomb=yes | |
17846 | else | |
17847 | $as_echo "$as_me: failed program was:" >&5 | |
17848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17849 | ||
17850 | ac_cv_func_wcrtomb=no | |
17851 | fi | |
17852 | ||
17853 | rm -rf conftest.dSYM | |
17854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17855 | conftest$ac_exeext conftest.$ac_ext | |
17856 | fi | |
17857 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5 | |
17858 | $as_echo "$ac_cv_func_wcrtomb" >&6; } | |
17859 | if test "x$ac_cv_func_wcrtomb" = x""yes; then | |
17860 | cat >>confdefs.h <<\_ACEOF | |
17861 | #define HAVE_WCRTOMB 1 | |
17862 | _ACEOF | |
17863 | ||
17864 | fi | |
17865 | ||
17866 | { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5 | |
17867 | $as_echo_n "checking for wcscoll... " >&6; } | |
17868 | if test "${ac_cv_func_wcscoll+set}" = set; then | |
17869 | $as_echo_n "(cached) " >&6 | |
17870 | else | |
17871 | cat >conftest.$ac_ext <<_ACEOF | |
17872 | /* confdefs.h. */ | |
17873 | _ACEOF | |
17874 | cat confdefs.h >>conftest.$ac_ext | |
17875 | cat >>conftest.$ac_ext <<_ACEOF | |
17876 | /* end confdefs.h. */ | |
17877 | /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll. | |
17878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17879 | #define wcscoll innocuous_wcscoll | |
17880 | ||
17881 | /* System header to define __stub macros and hopefully few prototypes, | |
17882 | which can conflict with char wcscoll (); below. | |
17883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17884 | <limits.h> exists even on freestanding compilers. */ | |
17885 | ||
17886 | #ifdef __STDC__ | |
17887 | # include <limits.h> | |
17888 | #else | |
17889 | # include <assert.h> | |
17890 | #endif | |
17891 | ||
17892 | #undef wcscoll | |
17893 | ||
17894 | /* Override any GCC internal prototype to avoid an error. | |
17895 | Use char because int might match the return type of a GCC | |
17896 | builtin and then its argument prototype would still apply. */ | |
17897 | #ifdef __cplusplus | |
17898 | extern "C" | |
17899 | #endif | |
17900 | char wcscoll (); | |
17901 | /* The GNU C library defines this for functions which it implements | |
17902 | to always fail with ENOSYS. Some functions are actually named | |
17903 | something starting with __ and the normal name is an alias. */ | |
17904 | #if defined __stub_wcscoll || defined __stub___wcscoll | |
17905 | choke me | |
17906 | #endif | |
17907 | ||
17908 | int | |
17909 | main () | |
17910 | { | |
17911 | return wcscoll (); | |
17912 | ; | |
17913 | return 0; | |
17914 | } | |
17915 | _ACEOF | |
17916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17917 | if { (ac_try="$ac_link" | |
17918 | case "(($ac_try" in | |
17919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17920 | *) ac_try_echo=$ac_try;; | |
17921 | esac | |
17922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17923 | $as_echo "$ac_try_echo") >&5 | |
17924 | (eval "$ac_link") 2>conftest.er1 | |
17925 | ac_status=$? | |
17926 | grep -v '^ *+' conftest.er1 >conftest.err | |
17927 | rm -f conftest.er1 | |
17928 | cat conftest.err >&5 | |
17929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17930 | (exit $ac_status); } && { | |
17931 | test -z "$ac_c_werror_flag" || | |
17932 | test ! -s conftest.err | |
17933 | } && test -s conftest$ac_exeext && { | |
17934 | test "$cross_compiling" = yes || | |
17935 | $as_test_x conftest$ac_exeext | |
17936 | }; then | |
17937 | ac_cv_func_wcscoll=yes | |
17938 | else | |
17939 | $as_echo "$as_me: failed program was:" >&5 | |
17940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17941 | ||
17942 | ac_cv_func_wcscoll=no | |
17943 | fi | |
17944 | ||
17945 | rm -rf conftest.dSYM | |
17946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17947 | conftest$ac_exeext conftest.$ac_ext | |
17948 | fi | |
17949 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 | |
17950 | $as_echo "$ac_cv_func_wcscoll" >&6; } | |
17951 | if test "x$ac_cv_func_wcscoll" = x""yes; then | |
17952 | cat >>confdefs.h <<\_ACEOF | |
17953 | #define HAVE_WCSCOLL 1 | |
17954 | _ACEOF | |
17955 | ||
17956 | fi | |
17957 | ||
17958 | { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5 | |
17959 | $as_echo_n "checking for wcsdup... " >&6; } | |
17960 | if test "${ac_cv_func_wcsdup+set}" = set; then | |
3185942a | 17961 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
17962 | else |
17963 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
17964 | /* confdefs.h. */ |
17965 | _ACEOF | |
17966 | cat confdefs.h >>conftest.$ac_ext | |
17967 | cat >>conftest.$ac_ext <<_ACEOF | |
17968 | /* end confdefs.h. */ | |
17969 | /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. | |
17970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17971 | #define wcsdup innocuous_wcsdup | |
17972 | ||
17973 | /* System header to define __stub macros and hopefully few prototypes, | |
17974 | which can conflict with char wcsdup (); below. | |
17975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17976 | <limits.h> exists even on freestanding compilers. */ | |
17977 | ||
17978 | #ifdef __STDC__ | |
17979 | # include <limits.h> | |
17980 | #else | |
17981 | # include <assert.h> | |
17982 | #endif | |
17983 | ||
17984 | #undef wcsdup | |
17985 | ||
3185942a JA |
17986 | /* Override any GCC internal prototype to avoid an error. |
17987 | Use char because int might match the return type of a GCC | |
17988 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
17989 | #ifdef __cplusplus |
17990 | extern "C" | |
17991 | #endif | |
0628567a JA |
17992 | char wcsdup (); |
17993 | /* The GNU C library defines this for functions which it implements | |
17994 | to always fail with ENOSYS. Some functions are actually named | |
17995 | something starting with __ and the normal name is an alias. */ | |
3185942a | 17996 | #if defined __stub_wcsdup || defined __stub___wcsdup |
0628567a | 17997 | choke me |
95732b49 | 17998 | #endif |
0628567a | 17999 | |
95732b49 JA |
18000 | int |
18001 | main () | |
18002 | { | |
3185942a | 18003 | return wcsdup (); |
0628567a JA |
18004 | ; |
18005 | return 0; | |
18006 | } | |
18007 | _ACEOF | |
18008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18009 | if { (ac_try="$ac_link" |
18010 | case "(($ac_try" in | |
18011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18012 | *) ac_try_echo=$ac_try;; | |
18013 | esac | |
18014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18015 | $as_echo "$ac_try_echo") >&5 | |
18016 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
18017 | ac_status=$? |
18018 | grep -v '^ *+' conftest.er1 >conftest.err | |
18019 | rm -f conftest.er1 | |
18020 | cat conftest.err >&5 | |
3185942a JA |
18021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18022 | (exit $ac_status); } && { | |
18023 | test -z "$ac_c_werror_flag" || | |
18024 | test ! -s conftest.err | |
18025 | } && test -s conftest$ac_exeext && { | |
18026 | test "$cross_compiling" = yes || | |
18027 | $as_test_x conftest$ac_exeext | |
18028 | }; then | |
0628567a JA |
18029 | ac_cv_func_wcsdup=yes |
18030 | else | |
3185942a | 18031 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18032 | sed 's/^/| /' conftest.$ac_ext >&5 |
18033 | ||
3185942a | 18034 | ac_cv_func_wcsdup=no |
0628567a | 18035 | fi |
3185942a JA |
18036 | |
18037 | rm -rf conftest.dSYM | |
18038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
18039 | conftest$ac_exeext conftest.$ac_ext |
18040 | fi | |
3185942a JA |
18041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 |
18042 | $as_echo "$ac_cv_func_wcsdup" >&6; } | |
18043 | if test "x$ac_cv_func_wcsdup" = x""yes; then | |
0628567a JA |
18044 | cat >>confdefs.h <<\_ACEOF |
18045 | #define HAVE_WCSDUP 1 | |
18046 | _ACEOF | |
18047 | ||
18048 | fi | |
18049 | ||
3185942a JA |
18050 | { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5 |
18051 | $as_echo_n "checking for wcwidth... " >&6; } | |
0628567a | 18052 | if test "${ac_cv_func_wcwidth+set}" = set; then |
3185942a | 18053 | $as_echo_n "(cached) " >&6 |
0628567a JA |
18054 | else |
18055 | cat >conftest.$ac_ext <<_ACEOF | |
18056 | /* confdefs.h. */ | |
18057 | _ACEOF | |
18058 | cat confdefs.h >>conftest.$ac_ext | |
18059 | cat >>conftest.$ac_ext <<_ACEOF | |
18060 | /* end confdefs.h. */ | |
18061 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. | |
18062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18063 | #define wcwidth innocuous_wcwidth | |
18064 | ||
18065 | /* System header to define __stub macros and hopefully few prototypes, | |
18066 | which can conflict with char wcwidth (); below. | |
18067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18068 | <limits.h> exists even on freestanding compilers. */ | |
18069 | ||
18070 | #ifdef __STDC__ | |
18071 | # include <limits.h> | |
18072 | #else | |
18073 | # include <assert.h> | |
18074 | #endif | |
18075 | ||
18076 | #undef wcwidth | |
18077 | ||
3185942a JA |
18078 | /* Override any GCC internal prototype to avoid an error. |
18079 | Use char because int might match the return type of a GCC | |
18080 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
18081 | #ifdef __cplusplus |
18082 | extern "C" | |
0628567a | 18083 | #endif |
0628567a | 18084 | char wcwidth (); |
7117c2d2 JA |
18085 | /* The GNU C library defines this for functions which it implements |
18086 | to always fail with ENOSYS. Some functions are actually named | |
18087 | something starting with __ and the normal name is an alias. */ | |
3185942a | 18088 | #if defined __stub_wcwidth || defined __stub___wcwidth |
7117c2d2 | 18089 | choke me |
7117c2d2 JA |
18090 | #endif |
18091 | ||
0628567a JA |
18092 | int |
18093 | main () | |
18094 | { | |
3185942a | 18095 | return wcwidth (); |
7117c2d2 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 | |
7117c2d2 | 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 | |
b80f6443 | 18121 | ac_cv_func_wcwidth=yes |
7117c2d2 | 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_func_wcwidth=no |
7117c2d2 | 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 |
7117c2d2 | 18132 | fi |
3185942a JA |
18133 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
18134 | $as_echo "$ac_cv_func_wcwidth" >&6; } | |
18135 | if test "x$ac_cv_func_wcwidth" = x""yes; then | |
b80f6443 JA |
18136 | cat >>confdefs.h <<\_ACEOF |
18137 | #define HAVE_WCWIDTH 1 | |
18138 | _ACEOF | |
7117c2d2 JA |
18139 | |
18140 | fi | |
18141 | ||
3185942a JA |
18142 | { $as_echo "$as_me:$LINENO: checking for wctype" >&5 |
18143 | $as_echo_n "checking for wctype... " >&6; } | |
0628567a | 18144 | if test "${ac_cv_func_wctype+set}" = set; then |
3185942a | 18145 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
18146 | else |
18147 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18148 | /* confdefs.h. */ |
18149 | _ACEOF | |
18150 | cat confdefs.h >>conftest.$ac_ext | |
18151 | cat >>conftest.$ac_ext <<_ACEOF | |
18152 | /* end confdefs.h. */ | |
18153 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
18154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18155 | #define wctype innocuous_wctype | |
18156 | ||
7117c2d2 | 18157 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
18158 | which can conflict with char wctype (); below. |
18159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18160 | <limits.h> exists even on freestanding compilers. */ | |
18161 | ||
18162 | #ifdef __STDC__ | |
18163 | # include <limits.h> | |
18164 | #else | |
18165 | # include <assert.h> | |
18166 | #endif | |
18167 | ||
18168 | #undef wctype | |
18169 | ||
3185942a JA |
18170 | /* Override any GCC internal prototype to avoid an error. |
18171 | Use char because int might match the return type of a GCC | |
18172 | builtin and then its argument prototype would still apply. */ | |
7117c2d2 JA |
18173 | #ifdef __cplusplus |
18174 | extern "C" | |
18175 | #endif | |
0628567a JA |
18176 | char wctype (); |
18177 | /* The GNU C library defines this for functions which it implements | |
18178 | to always fail with ENOSYS. Some functions are actually named | |
18179 | something starting with __ and the normal name is an alias. */ | |
3185942a | 18180 | #if defined __stub_wctype || defined __stub___wctype |
0628567a | 18181 | choke me |
0628567a JA |
18182 | #endif |
18183 | ||
95732b49 JA |
18184 | int |
18185 | main () | |
18186 | { | |
3185942a | 18187 | return wctype (); |
0628567a JA |
18188 | ; |
18189 | return 0; | |
18190 | } | |
18191 | _ACEOF | |
18192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18193 | if { (ac_try="$ac_link" |
18194 | case "(($ac_try" in | |
18195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18196 | *) ac_try_echo=$ac_try;; | |
18197 | esac | |
18198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18199 | $as_echo "$ac_try_echo") >&5 | |
18200 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
18201 | ac_status=$? |
18202 | grep -v '^ *+' conftest.er1 >conftest.err | |
18203 | rm -f conftest.er1 | |
18204 | cat conftest.err >&5 | |
3185942a JA |
18205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18206 | (exit $ac_status); } && { | |
18207 | test -z "$ac_c_werror_flag" || | |
18208 | test ! -s conftest.err | |
18209 | } && test -s conftest$ac_exeext && { | |
18210 | test "$cross_compiling" = yes || | |
18211 | $as_test_x conftest$ac_exeext | |
18212 | }; then | |
0628567a JA |
18213 | ac_cv_func_wctype=yes |
18214 | else | |
3185942a | 18215 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18216 | sed 's/^/| /' conftest.$ac_ext >&5 |
18217 | ||
3185942a | 18218 | ac_cv_func_wctype=no |
0628567a | 18219 | fi |
3185942a JA |
18220 | |
18221 | rm -rf conftest.dSYM | |
18222 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
18223 | conftest$ac_exeext conftest.$ac_ext |
18224 | fi | |
3185942a JA |
18225 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
18226 | $as_echo "$ac_cv_func_wctype" >&6; } | |
18227 | if test "x$ac_cv_func_wctype" = x""yes; then | |
0628567a JA |
18228 | cat >>confdefs.h <<\_ACEOF |
18229 | #define HAVE_WCTYPE 1 | |
18230 | _ACEOF | |
18231 | ||
18232 | fi | |
18233 | ||
18234 | ||
18235 | ||
495aee44 CR |
18236 | for ac_func in wcswidth |
18237 | do | |
18238 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18239 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18240 | $as_echo_n "checking for $ac_func... " >&6; } | |
18241 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3185942a | 18242 | $as_echo_n "(cached) " >&6 |
0628567a JA |
18243 | else |
18244 | cat >conftest.$ac_ext <<_ACEOF | |
18245 | /* confdefs.h. */ | |
18246 | _ACEOF | |
18247 | cat confdefs.h >>conftest.$ac_ext | |
18248 | cat >>conftest.$ac_ext <<_ACEOF | |
18249 | /* end confdefs.h. */ | |
495aee44 CR |
18250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18252 | #define $ac_func innocuous_$ac_func | |
18253 | ||
18254 | /* System header to define __stub macros and hopefully few prototypes, | |
18255 | which can conflict with char $ac_func (); below. | |
18256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18257 | <limits.h> exists even on freestanding compilers. */ | |
18258 | ||
18259 | #ifdef __STDC__ | |
18260 | # include <limits.h> | |
18261 | #else | |
18262 | # include <assert.h> | |
18263 | #endif | |
18264 | ||
18265 | #undef $ac_func | |
18266 | ||
18267 | /* Override any GCC internal prototype to avoid an error. | |
18268 | Use char because int might match the return type of a GCC | |
18269 | builtin and then its argument prototype would still apply. */ | |
18270 | #ifdef __cplusplus | |
18271 | extern "C" | |
18272 | #endif | |
18273 | char $ac_func (); | |
18274 | /* The GNU C library defines this for functions which it implements | |
18275 | to always fail with ENOSYS. Some functions are actually named | |
18276 | something starting with __ and the normal name is an alias. */ | |
18277 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18278 | choke me | |
18279 | #endif | |
18280 | ||
18281 | int | |
18282 | main () | |
18283 | { | |
18284 | return $ac_func (); | |
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18290 | if { (ac_try="$ac_link" | |
18291 | case "(($ac_try" in | |
18292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18293 | *) ac_try_echo=$ac_try;; | |
18294 | esac | |
18295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18296 | $as_echo "$ac_try_echo") >&5 | |
18297 | (eval "$ac_link") 2>conftest.er1 | |
18298 | ac_status=$? | |
18299 | grep -v '^ *+' conftest.er1 >conftest.err | |
18300 | rm -f conftest.er1 | |
18301 | cat conftest.err >&5 | |
18302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18303 | (exit $ac_status); } && { | |
18304 | test -z "$ac_c_werror_flag" || | |
18305 | test ! -s conftest.err | |
18306 | } && test -s conftest$ac_exeext && { | |
18307 | test "$cross_compiling" = yes || | |
18308 | $as_test_x conftest$ac_exeext | |
18309 | }; then | |
18310 | eval "$as_ac_var=yes" | |
18311 | else | |
18312 | $as_echo "$as_me: failed program was:" >&5 | |
18313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18314 | ||
18315 | eval "$as_ac_var=no" | |
18316 | fi | |
18317 | ||
18318 | rm -rf conftest.dSYM | |
18319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18320 | conftest$ac_exeext conftest.$ac_ext | |
18321 | fi | |
18322 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
18323 | $as_echo "$as_val"'` | |
18324 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18325 | $as_echo "$ac_res" >&6; } | |
18326 | as_val=`eval 'as_val=${'$as_ac_var'} | |
18327 | $as_echo "$as_val"'` | |
18328 | if test "x$as_val" = x""yes; then | |
18329 | cat >>confdefs.h <<_ACEOF | |
18330 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18331 | _ACEOF | |
18332 | ||
18333 | else | |
18334 | case " $LIBOBJS " in | |
18335 | *" $ac_func.$ac_objext "* ) ;; | |
18336 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
18337 | ;; | |
18338 | esac | |
18339 | ||
18340 | fi | |
18341 | done | |
18342 | ||
18343 | ||
18344 | ||
18345 | ||
18346 | { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 | |
18347 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
18348 | if test "${ac_cv_func_mbrtowc+set}" = set; then | |
18349 | $as_echo_n "(cached) " >&6 | |
18350 | else | |
18351 | cat >conftest.$ac_ext <<_ACEOF | |
18352 | /* confdefs.h. */ | |
18353 | _ACEOF | |
18354 | cat confdefs.h >>conftest.$ac_ext | |
18355 | cat >>conftest.$ac_ext <<_ACEOF | |
18356 | /* end confdefs.h. */ | |
18357 | #include <wchar.h> | |
18358 | int | |
18359 | main () | |
18360 | { | |
18361 | wchar_t wc; | |
18362 | char const s[] = ""; | |
18363 | size_t n = 1; | |
18364 | mbstate_t state; | |
18365 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
18366 | ; | |
18367 | return 0; | |
18368 | } | |
0628567a JA |
18369 | _ACEOF |
18370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18371 | if { (ac_try="$ac_link" |
18372 | case "(($ac_try" in | |
18373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18374 | *) ac_try_echo=$ac_try;; | |
18375 | esac | |
18376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18377 | $as_echo "$ac_try_echo") >&5 | |
18378 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
18379 | ac_status=$? |
18380 | grep -v '^ *+' conftest.er1 >conftest.err | |
18381 | rm -f conftest.er1 | |
18382 | cat conftest.err >&5 | |
3185942a JA |
18383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18384 | (exit $ac_status); } && { | |
18385 | test -z "$ac_c_werror_flag" || | |
18386 | test ! -s conftest.err | |
18387 | } && test -s conftest$ac_exeext && { | |
18388 | test "$cross_compiling" = yes || | |
18389 | $as_test_x conftest$ac_exeext | |
18390 | }; then | |
0628567a JA |
18391 | ac_cv_func_mbrtowc=yes |
18392 | else | |
3185942a | 18393 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18394 | sed 's/^/| /' conftest.$ac_ext >&5 |
18395 | ||
3185942a | 18396 | ac_cv_func_mbrtowc=no |
0628567a | 18397 | fi |
3185942a JA |
18398 | |
18399 | rm -rf conftest.dSYM | |
18400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
18401 | conftest$ac_exeext conftest.$ac_ext |
18402 | fi | |
3185942a JA |
18403 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
18404 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
0628567a JA |
18405 | if test $ac_cv_func_mbrtowc = yes; then |
18406 | ||
18407 | cat >>confdefs.h <<\_ACEOF | |
18408 | #define HAVE_MBRTOWC 1 | |
18409 | _ACEOF | |
18410 | ||
18411 | fi | |
18412 | ||
18413 | if test $ac_cv_func_mbrtowc = yes; then | |
18414 | cat >>confdefs.h <<\_ACEOF | |
18415 | #define HAVE_MBSTATE_T 1 | |
18416 | _ACEOF | |
18417 | ||
18418 | fi | |
18419 | ||
18420 | ||
18421 | ||
18422 | ||
18423 | ||
18424 | ||
18425 | for ac_func in iswlower iswupper towlower towupper iswctype | |
18426 | do | |
3185942a JA |
18427 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18428 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18429 | $as_echo_n "checking for $ac_func... " >&6; } | |
18430 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18431 | $as_echo_n "(cached) " >&6 | |
0628567a JA |
18432 | else |
18433 | cat >conftest.$ac_ext <<_ACEOF | |
18434 | /* confdefs.h. */ | |
18435 | _ACEOF | |
18436 | cat confdefs.h >>conftest.$ac_ext | |
18437 | cat >>conftest.$ac_ext <<_ACEOF | |
18438 | /* end confdefs.h. */ | |
18439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18441 | #define $ac_func innocuous_$ac_func | |
18442 | ||
18443 | /* System header to define __stub macros and hopefully few prototypes, | |
18444 | which can conflict with char $ac_func (); below. | |
18445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18446 | <limits.h> exists even on freestanding compilers. */ | |
18447 | ||
18448 | #ifdef __STDC__ | |
18449 | # include <limits.h> | |
18450 | #else | |
18451 | # include <assert.h> | |
18452 | #endif | |
18453 | ||
18454 | #undef $ac_func | |
18455 | ||
3185942a JA |
18456 | /* Override any GCC internal prototype to avoid an error. |
18457 | Use char because int might match the return type of a GCC | |
18458 | builtin and then its argument prototype would still apply. */ | |
0628567a JA |
18459 | #ifdef __cplusplus |
18460 | extern "C" | |
0628567a | 18461 | #endif |
0628567a | 18462 | char $ac_func (); |
7117c2d2 JA |
18463 | /* The GNU C library defines this for functions which it implements |
18464 | to always fail with ENOSYS. Some functions are actually named | |
18465 | something starting with __ and the normal name is an alias. */ | |
3185942a | 18466 | #if defined __stub_$ac_func || defined __stub___$ac_func |
7117c2d2 | 18467 | choke me |
7117c2d2 JA |
18468 | #endif |
18469 | ||
0628567a JA |
18470 | int |
18471 | main () | |
18472 | { | |
3185942a | 18473 | return $ac_func (); |
0628567a JA |
18474 | ; |
18475 | return 0; | |
18476 | } | |
18477 | _ACEOF | |
18478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18479 | if { (ac_try="$ac_link" |
18480 | case "(($ac_try" in | |
18481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18482 | *) ac_try_echo=$ac_try;; | |
18483 | esac | |
18484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18485 | $as_echo "$ac_try_echo") >&5 | |
18486 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
18487 | ac_status=$? |
18488 | grep -v '^ *+' conftest.er1 >conftest.err | |
18489 | rm -f conftest.er1 | |
18490 | cat conftest.err >&5 | |
3185942a JA |
18491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18492 | (exit $ac_status); } && { | |
18493 | test -z "$ac_c_werror_flag" || | |
18494 | test ! -s conftest.err | |
18495 | } && test -s conftest$ac_exeext && { | |
18496 | test "$cross_compiling" = yes || | |
18497 | $as_test_x conftest$ac_exeext | |
18498 | }; then | |
0628567a JA |
18499 | eval "$as_ac_var=yes" |
18500 | else | |
3185942a | 18501 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18502 | sed 's/^/| /' conftest.$ac_ext >&5 |
18503 | ||
3185942a | 18504 | eval "$as_ac_var=no" |
0628567a | 18505 | fi |
3185942a JA |
18506 | |
18507 | rm -rf conftest.dSYM | |
18508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
18509 | conftest$ac_exeext conftest.$ac_ext |
18510 | fi | |
3185942a JA |
18511 | ac_res=`eval 'as_val=${'$as_ac_var'} |
18512 | $as_echo "$as_val"'` | |
18513 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18514 | $as_echo "$ac_res" >&6; } | |
18515 | as_val=`eval 'as_val=${'$as_ac_var'} | |
18516 | $as_echo "$as_val"'` | |
18517 | if test "x$as_val" = x""yes; then | |
0628567a | 18518 | cat >>confdefs.h <<_ACEOF |
3185942a | 18519 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0628567a JA |
18520 | _ACEOF |
18521 | ||
18522 | fi | |
18523 | done | |
18524 | ||
18525 | ||
3185942a JA |
18526 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
18527 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
0628567a | 18528 | if test "${bash_cv_langinfo_codeset+set}" = set; then |
3185942a | 18529 | $as_echo_n "(cached) " >&6 |
0628567a JA |
18530 | else |
18531 | cat >conftest.$ac_ext <<_ACEOF | |
18532 | /* confdefs.h. */ | |
18533 | _ACEOF | |
18534 | cat confdefs.h >>conftest.$ac_ext | |
18535 | cat >>conftest.$ac_ext <<_ACEOF | |
18536 | /* end confdefs.h. */ | |
18537 | #include <langinfo.h> | |
18538 | int | |
18539 | main () | |
18540 | { | |
18541 | char* cs = nl_langinfo(CODESET); | |
18542 | ; | |
18543 | return 0; | |
18544 | } | |
18545 | _ACEOF | |
18546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18547 | if { (ac_try="$ac_link" |
18548 | case "(($ac_try" in | |
18549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18550 | *) ac_try_echo=$ac_try;; | |
18551 | esac | |
18552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18553 | $as_echo "$ac_try_echo") >&5 | |
18554 | (eval "$ac_link") 2>conftest.er1 | |
0628567a JA |
18555 | ac_status=$? |
18556 | grep -v '^ *+' conftest.er1 >conftest.err | |
18557 | rm -f conftest.er1 | |
18558 | cat conftest.err >&5 | |
3185942a JA |
18559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18560 | (exit $ac_status); } && { | |
18561 | test -z "$ac_c_werror_flag" || | |
18562 | test ! -s conftest.err | |
18563 | } && test -s conftest$ac_exeext && { | |
18564 | test "$cross_compiling" = yes || | |
18565 | $as_test_x conftest$ac_exeext | |
18566 | }; then | |
0628567a JA |
18567 | bash_cv_langinfo_codeset=yes |
18568 | else | |
3185942a | 18569 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18570 | sed 's/^/| /' conftest.$ac_ext >&5 |
18571 | ||
3185942a | 18572 | bash_cv_langinfo_codeset=no |
0628567a | 18573 | fi |
3185942a JA |
18574 | |
18575 | rm -rf conftest.dSYM | |
18576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a JA |
18577 | conftest$ac_exeext conftest.$ac_ext |
18578 | fi | |
3185942a JA |
18579 | { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
18580 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
0628567a JA |
18581 | if test $bash_cv_langinfo_codeset = yes; then |
18582 | cat >>confdefs.h <<\_ACEOF | |
18583 | #define HAVE_LANGINFO_CODESET 1 | |
18584 | _ACEOF | |
18585 | ||
18586 | fi | |
18587 | ||
3185942a JA |
18588 | { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5 |
18589 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
0628567a | 18590 | if test "${bash_cv_type_wchar_t+set}" = set; then |
3185942a | 18591 | $as_echo_n "(cached) " >&6 |
0628567a JA |
18592 | else |
18593 | cat >conftest.$ac_ext <<_ACEOF | |
18594 | /* confdefs.h. */ | |
18595 | _ACEOF | |
18596 | cat confdefs.h >>conftest.$ac_ext | |
18597 | cat >>conftest.$ac_ext <<_ACEOF | |
18598 | /* end confdefs.h. */ | |
18599 | #include <wchar.h> | |
18600 | ||
18601 | int | |
18602 | main () | |
18603 | { | |
18604 | ||
18605 | wchar_t foo; | |
18606 | foo = 0; | |
18607 | ||
7117c2d2 JA |
18608 | ; |
18609 | return 0; | |
18610 | } | |
18611 | _ACEOF | |
0628567a | 18612 | rm -f conftest.$ac_objext |
3185942a JA |
18613 | if { (ac_try="$ac_compile" |
18614 | case "(($ac_try" in | |
18615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18616 | *) ac_try_echo=$ac_try;; | |
18617 | esac | |
18618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18619 | $as_echo "$ac_try_echo") >&5 | |
18620 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 18621 | ac_status=$? |
0628567a JA |
18622 | grep -v '^ *+' conftest.er1 >conftest.err |
18623 | rm -f conftest.er1 | |
18624 | cat conftest.err >&5 | |
3185942a JA |
18625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18626 | (exit $ac_status); } && { | |
18627 | test -z "$ac_c_werror_flag" || | |
18628 | test ! -s conftest.err | |
18629 | } && test -s conftest.$ac_objext; then | |
0628567a | 18630 | bash_cv_type_wchar_t=yes |
7117c2d2 | 18631 | else |
3185942a | 18632 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18633 | sed 's/^/| /' conftest.$ac_ext >&5 |
18634 | ||
3185942a | 18635 | bash_cv_type_wchar_t=no |
7117c2d2 | 18636 | fi |
3185942a JA |
18637 | |
18638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 18639 | fi |
3185942a JA |
18640 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5 |
18641 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
0628567a JA |
18642 | if test $bash_cv_type_wchar_t = yes; then |
18643 | ||
18644 | cat >>confdefs.h <<\_ACEOF | |
18645 | #define HAVE_WCHAR_T 1 | |
b80f6443 | 18646 | _ACEOF |
7117c2d2 JA |
18647 | |
18648 | fi | |
18649 | ||
3185942a JA |
18650 | { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5 |
18651 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
0628567a | 18652 | if test "${bash_cv_type_wctype_t+set}" = set; then |
3185942a | 18653 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
18654 | else |
18655 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18656 | /* confdefs.h. */ |
18657 | _ACEOF | |
18658 | cat confdefs.h >>conftest.$ac_ext | |
18659 | cat >>conftest.$ac_ext <<_ACEOF | |
18660 | /* end confdefs.h. */ | |
18661 | #include <wctype.h> | |
7117c2d2 JA |
18662 | int |
18663 | main () | |
18664 | { | |
b80f6443 | 18665 | |
0628567a JA |
18666 | wctype_t foo; |
18667 | foo = 0; | |
b80f6443 JA |
18668 | |
18669 | ; | |
7117c2d2 JA |
18670 | return 0; |
18671 | } | |
18672 | _ACEOF | |
b80f6443 | 18673 | rm -f conftest.$ac_objext |
3185942a JA |
18674 | if { (ac_try="$ac_compile" |
18675 | case "(($ac_try" in | |
18676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18677 | *) ac_try_echo=$ac_try;; | |
18678 | esac | |
18679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18680 | $as_echo "$ac_try_echo") >&5 | |
18681 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 18682 | ac_status=$? |
0628567a JA |
18683 | grep -v '^ *+' conftest.er1 >conftest.err |
18684 | rm -f conftest.er1 | |
18685 | cat conftest.err >&5 | |
3185942a JA |
18686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18687 | (exit $ac_status); } && { | |
18688 | test -z "$ac_c_werror_flag" || | |
18689 | test ! -s conftest.err | |
18690 | } && test -s conftest.$ac_objext; then | |
0628567a | 18691 | bash_cv_type_wctype_t=yes |
7117c2d2 | 18692 | else |
3185942a | 18693 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18694 | sed 's/^/| /' conftest.$ac_ext >&5 |
18695 | ||
3185942a | 18696 | bash_cv_type_wctype_t=no |
7117c2d2 | 18697 | fi |
3185942a JA |
18698 | |
18699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 18700 | fi |
3185942a JA |
18701 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5 |
18702 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
0628567a JA |
18703 | if test $bash_cv_type_wctype_t = yes; then |
18704 | ||
18705 | cat >>confdefs.h <<\_ACEOF | |
18706 | #define HAVE_WCTYPE_T 1 | |
b80f6443 | 18707 | _ACEOF |
7117c2d2 JA |
18708 | |
18709 | fi | |
18710 | ||
3185942a JA |
18711 | { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5 |
18712 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
0628567a | 18713 | if test "${bash_cv_type_wint_t+set}" = set; then |
3185942a | 18714 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
18715 | else |
18716 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18717 | /* confdefs.h. */ |
18718 | _ACEOF | |
18719 | cat confdefs.h >>conftest.$ac_ext | |
18720 | cat >>conftest.$ac_ext <<_ACEOF | |
18721 | /* end confdefs.h. */ | |
18722 | #include <wctype.h> | |
7117c2d2 JA |
18723 | int |
18724 | main () | |
18725 | { | |
0628567a JA |
18726 | |
18727 | wint_t foo; | |
18728 | foo = 0; | |
18729 | ||
7117c2d2 JA |
18730 | ; |
18731 | return 0; | |
18732 | } | |
18733 | _ACEOF | |
0628567a | 18734 | rm -f conftest.$ac_objext |
3185942a JA |
18735 | if { (ac_try="$ac_compile" |
18736 | case "(($ac_try" in | |
18737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18738 | *) ac_try_echo=$ac_try;; | |
18739 | esac | |
18740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18741 | $as_echo "$ac_try_echo") >&5 | |
18742 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 18743 | ac_status=$? |
0628567a JA |
18744 | grep -v '^ *+' conftest.er1 >conftest.err |
18745 | rm -f conftest.er1 | |
18746 | cat conftest.err >&5 | |
3185942a JA |
18747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18748 | (exit $ac_status); } && { | |
18749 | test -z "$ac_c_werror_flag" || | |
18750 | test ! -s conftest.err | |
18751 | } && test -s conftest.$ac_objext; then | |
0628567a | 18752 | bash_cv_type_wint_t=yes |
7117c2d2 | 18753 | else |
3185942a | 18754 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18755 | sed 's/^/| /' conftest.$ac_ext >&5 |
18756 | ||
3185942a | 18757 | bash_cv_type_wint_t=no |
7117c2d2 | 18758 | fi |
3185942a JA |
18759 | |
18760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 18761 | fi |
3185942a JA |
18762 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5 |
18763 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
0628567a JA |
18764 | if test $bash_cv_type_wint_t = yes; then |
18765 | ||
18766 | cat >>confdefs.h <<\_ACEOF | |
18767 | #define HAVE_WINT_T 1 | |
b80f6443 | 18768 | _ACEOF |
7117c2d2 JA |
18769 | |
18770 | fi | |
18771 | ||
0001803f CR |
18772 | if test "$am_cv_func_iconv" = yes; then |
18773 | OLDLIBS="$LIBS" | |
18774 | LIBS="$LIBS $LIBICONV" | |
18775 | ||
18776 | for ac_func in locale_charset | |
18777 | do | |
18778 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18779 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18780 | $as_echo_n "checking for $ac_func... " >&6; } | |
18781 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18782 | $as_echo_n "(cached) " >&6 | |
18783 | else | |
18784 | cat >conftest.$ac_ext <<_ACEOF | |
18785 | /* confdefs.h. */ | |
18786 | _ACEOF | |
18787 | cat confdefs.h >>conftest.$ac_ext | |
18788 | cat >>conftest.$ac_ext <<_ACEOF | |
18789 | /* end confdefs.h. */ | |
18790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18792 | #define $ac_func innocuous_$ac_func | |
18793 | ||
18794 | /* System header to define __stub macros and hopefully few prototypes, | |
18795 | which can conflict with char $ac_func (); below. | |
18796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18797 | <limits.h> exists even on freestanding compilers. */ | |
18798 | ||
18799 | #ifdef __STDC__ | |
18800 | # include <limits.h> | |
18801 | #else | |
18802 | # include <assert.h> | |
18803 | #endif | |
18804 | ||
18805 | #undef $ac_func | |
18806 | ||
18807 | /* Override any GCC internal prototype to avoid an error. | |
18808 | Use char because int might match the return type of a GCC | |
18809 | builtin and then its argument prototype would still apply. */ | |
18810 | #ifdef __cplusplus | |
18811 | extern "C" | |
18812 | #endif | |
18813 | char $ac_func (); | |
18814 | /* The GNU C library defines this for functions which it implements | |
18815 | to always fail with ENOSYS. Some functions are actually named | |
18816 | something starting with __ and the normal name is an alias. */ | |
18817 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18818 | choke me | |
18819 | #endif | |
18820 | ||
18821 | int | |
18822 | main () | |
18823 | { | |
18824 | return $ac_func (); | |
18825 | ; | |
18826 | return 0; | |
18827 | } | |
18828 | _ACEOF | |
18829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18830 | if { (ac_try="$ac_link" | |
18831 | case "(($ac_try" in | |
18832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18833 | *) ac_try_echo=$ac_try;; | |
18834 | esac | |
18835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18836 | $as_echo "$ac_try_echo") >&5 | |
18837 | (eval "$ac_link") 2>conftest.er1 | |
18838 | ac_status=$? | |
18839 | grep -v '^ *+' conftest.er1 >conftest.err | |
18840 | rm -f conftest.er1 | |
18841 | cat conftest.err >&5 | |
18842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18843 | (exit $ac_status); } && { | |
18844 | test -z "$ac_c_werror_flag" || | |
18845 | test ! -s conftest.err | |
18846 | } && test -s conftest$ac_exeext && { | |
18847 | test "$cross_compiling" = yes || | |
18848 | $as_test_x conftest$ac_exeext | |
18849 | }; then | |
18850 | eval "$as_ac_var=yes" | |
18851 | else | |
18852 | $as_echo "$as_me: failed program was:" >&5 | |
18853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18854 | ||
18855 | eval "$as_ac_var=no" | |
18856 | fi | |
18857 | ||
18858 | rm -rf conftest.dSYM | |
18859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18860 | conftest$ac_exeext conftest.$ac_ext | |
18861 | fi | |
18862 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
18863 | $as_echo "$as_val"'` | |
18864 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18865 | $as_echo "$ac_res" >&6; } | |
18866 | as_val=`eval 'as_val=${'$as_ac_var'} | |
18867 | $as_echo "$as_val"'` | |
18868 | if test "x$as_val" = x""yes; then | |
18869 | cat >>confdefs.h <<_ACEOF | |
18870 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18871 | _ACEOF | |
18872 | ||
18873 | fi | |
18874 | done | |
18875 | ||
18876 | LIBS="$OLDLIBS" | |
18877 | fi | |
18878 | ||
b80f6443 JA |
18879 | |
18880 | ||
f73dda09 JA |
18881 | if test "$opt_static_link" != yes; then |
18882 | ||
3185942a JA |
18883 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18884 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f73dda09 | 18885 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
3185942a | 18886 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 18887 | else |
f73dda09 JA |
18888 | ac_check_lib_save_LIBS=$LIBS |
18889 | LIBS="-ldl $LIBS" | |
18890 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
18891 | /* confdefs.h. */ |
18892 | _ACEOF | |
18893 | cat confdefs.h >>conftest.$ac_ext | |
18894 | cat >>conftest.$ac_ext <<_ACEOF | |
18895 | /* end confdefs.h. */ | |
f73dda09 | 18896 | |
3185942a JA |
18897 | /* Override any GCC internal prototype to avoid an error. |
18898 | Use char because int might match the return type of a GCC | |
18899 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18900 | #ifdef __cplusplus |
18901 | extern "C" | |
18902 | #endif | |
f73dda09 JA |
18903 | char dlopen (); |
18904 | int | |
18905 | main () | |
18906 | { | |
3185942a | 18907 | return dlopen (); |
f73dda09 JA |
18908 | ; |
18909 | return 0; | |
18910 | } | |
18911 | _ACEOF | |
18912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
18913 | if { (ac_try="$ac_link" |
18914 | case "(($ac_try" in | |
18915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18916 | *) ac_try_echo=$ac_try;; | |
18917 | esac | |
18918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18919 | $as_echo "$ac_try_echo") >&5 | |
18920 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 18921 | ac_status=$? |
0628567a JA |
18922 | grep -v '^ *+' conftest.er1 >conftest.err |
18923 | rm -f conftest.er1 | |
18924 | cat conftest.err >&5 | |
3185942a JA |
18925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18926 | (exit $ac_status); } && { | |
18927 | test -z "$ac_c_werror_flag" || | |
18928 | test ! -s conftest.err | |
18929 | } && test -s conftest$ac_exeext && { | |
18930 | test "$cross_compiling" = yes || | |
18931 | $as_test_x conftest$ac_exeext | |
18932 | }; then | |
f73dda09 JA |
18933 | ac_cv_lib_dl_dlopen=yes |
18934 | else | |
3185942a | 18935 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
18936 | sed 's/^/| /' conftest.$ac_ext >&5 |
18937 | ||
3185942a | 18938 | ac_cv_lib_dl_dlopen=no |
f73dda09 | 18939 | fi |
3185942a JA |
18940 | |
18941 | rm -rf conftest.dSYM | |
18942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 18943 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
18944 | LIBS=$ac_check_lib_save_LIBS |
18945 | fi | |
3185942a JA |
18946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18947 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
18948 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
b80f6443 | 18949 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 18950 | #define HAVE_LIBDL 1 |
b80f6443 | 18951 | _ACEOF |
f73dda09 JA |
18952 | |
18953 | LIBS="-ldl $LIBS" | |
18954 | ||
ccc6cda3 | 18955 | fi |
ccc6cda3 | 18956 | |
b80f6443 JA |
18957 | |
18958 | ||
18959 | ||
f73dda09 | 18960 | for ac_func in dlopen dlclose dlsym |
bb70624e | 18961 | do |
3185942a JA |
18962 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18963 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18964 | $as_echo_n "checking for $ac_func... " >&6; } | |
18965 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18966 | $as_echo_n "(cached) " >&6 | |
bb70624e | 18967 | else |
f73dda09 | 18968 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
18969 | /* confdefs.h. */ |
18970 | _ACEOF | |
18971 | cat confdefs.h >>conftest.$ac_ext | |
18972 | cat >>conftest.$ac_ext <<_ACEOF | |
18973 | /* end confdefs.h. */ | |
18974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18976 | #define $ac_func innocuous_$ac_func | |
18977 | ||
f73dda09 | 18978 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
18979 | which can conflict with char $ac_func (); below. |
18980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18981 | <limits.h> exists even on freestanding compilers. */ | |
18982 | ||
18983 | #ifdef __STDC__ | |
18984 | # include <limits.h> | |
18985 | #else | |
18986 | # include <assert.h> | |
18987 | #endif | |
18988 | ||
18989 | #undef $ac_func | |
18990 | ||
3185942a JA |
18991 | /* Override any GCC internal prototype to avoid an error. |
18992 | Use char because int might match the return type of a GCC | |
18993 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
18994 | #ifdef __cplusplus |
18995 | extern "C" | |
18996 | #endif | |
f73dda09 | 18997 | char $ac_func (); |
f73dda09 JA |
18998 | /* The GNU C library defines this for functions which it implements |
18999 | to always fail with ENOSYS. Some functions are actually named | |
19000 | something starting with __ and the normal name is an alias. */ | |
3185942a | 19001 | #if defined __stub_$ac_func || defined __stub___$ac_func |
f73dda09 | 19002 | choke me |
f73dda09 JA |
19003 | #endif |
19004 | ||
0628567a JA |
19005 | int |
19006 | main () | |
19007 | { | |
3185942a | 19008 | return $ac_func (); |
f73dda09 JA |
19009 | ; |
19010 | return 0; | |
19011 | } | |
19012 | _ACEOF | |
19013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19014 | if { (ac_try="$ac_link" |
19015 | case "(($ac_try" in | |
19016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19017 | *) ac_try_echo=$ac_try;; | |
19018 | esac | |
19019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19020 | $as_echo "$ac_try_echo") >&5 | |
19021 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19022 | ac_status=$? |
0628567a JA |
19023 | grep -v '^ *+' conftest.er1 >conftest.err |
19024 | rm -f conftest.er1 | |
19025 | cat conftest.err >&5 | |
3185942a JA |
19026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19027 | (exit $ac_status); } && { | |
19028 | test -z "$ac_c_werror_flag" || | |
19029 | test ! -s conftest.err | |
19030 | } && test -s conftest$ac_exeext && { | |
19031 | test "$cross_compiling" = yes || | |
19032 | $as_test_x conftest$ac_exeext | |
19033 | }; then | |
f73dda09 JA |
19034 | eval "$as_ac_var=yes" |
19035 | else | |
3185942a | 19036 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19037 | sed 's/^/| /' conftest.$ac_ext >&5 |
19038 | ||
3185942a | 19039 | eval "$as_ac_var=no" |
f73dda09 | 19040 | fi |
3185942a JA |
19041 | |
19042 | rm -rf conftest.dSYM | |
19043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19044 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 19045 | fi |
3185942a JA |
19046 | ac_res=`eval 'as_val=${'$as_ac_var'} |
19047 | $as_echo "$as_val"'` | |
19048 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19049 | $as_echo "$ac_res" >&6; } | |
19050 | as_val=`eval 'as_val=${'$as_ac_var'} | |
19051 | $as_echo "$as_val"'` | |
19052 | if test "x$as_val" = x""yes; then | |
b80f6443 | 19053 | cat >>confdefs.h <<_ACEOF |
3185942a | 19054 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b80f6443 | 19055 | _ACEOF |
f73dda09 | 19056 | |
bb70624e | 19057 | fi |
f73dda09 JA |
19058 | done |
19059 | ||
bb70624e | 19060 | fi |
f73dda09 | 19061 | |
3185942a JA |
19062 | { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
19063 | $as_echo_n "checking whether sys_siglist is declared... " >&6; } | |
0628567a | 19064 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
3185942a | 19065 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
19066 | else |
19067 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19068 | /* confdefs.h. */ |
19069 | _ACEOF | |
19070 | cat confdefs.h >>conftest.$ac_ext | |
19071 | cat >>conftest.$ac_ext <<_ACEOF | |
19072 | /* end confdefs.h. */ | |
95732b49 JA |
19073 | #include <signal.h> |
19074 | /* NetBSD declares sys_siglist in unistd.h. */ | |
3185942a | 19075 | #ifdef HAVE_UNISTD_H |
95732b49 JA |
19076 | # include <unistd.h> |
19077 | #endif | |
19078 | ||
0628567a | 19079 | |
f73dda09 JA |
19080 | int |
19081 | main () | |
19082 | { | |
0628567a | 19083 | #ifndef sys_siglist |
3185942a | 19084 | (void) sys_siglist; |
0628567a JA |
19085 | #endif |
19086 | ||
f73dda09 JA |
19087 | ; |
19088 | return 0; | |
19089 | } | |
19090 | _ACEOF | |
19091 | rm -f conftest.$ac_objext | |
3185942a JA |
19092 | if { (ac_try="$ac_compile" |
19093 | case "(($ac_try" in | |
19094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19095 | *) ac_try_echo=$ac_try;; | |
19096 | esac | |
19097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19098 | $as_echo "$ac_try_echo") >&5 | |
19099 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19100 | ac_status=$? |
0628567a JA |
19101 | grep -v '^ *+' conftest.er1 >conftest.err |
19102 | rm -f conftest.er1 | |
19103 | cat conftest.err >&5 | |
3185942a JA |
19104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19105 | (exit $ac_status); } && { | |
19106 | test -z "$ac_c_werror_flag" || | |
19107 | test ! -s conftest.err | |
19108 | } && test -s conftest.$ac_objext; then | |
0628567a | 19109 | ac_cv_have_decl_sys_siglist=yes |
bb70624e | 19110 | else |
3185942a | 19111 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19112 | sed 's/^/| /' conftest.$ac_ext >&5 |
19113 | ||
3185942a | 19114 | ac_cv_have_decl_sys_siglist=no |
bb70624e | 19115 | fi |
3185942a JA |
19116 | |
19117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19118 | fi |
3185942a JA |
19119 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
19120 | $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
19121 | if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then | |
b80f6443 | 19122 | |
0628567a JA |
19123 | cat >>confdefs.h <<_ACEOF |
19124 | #define HAVE_DECL_SYS_SIGLIST 1 | |
19125 | _ACEOF | |
19126 | ||
19127 | ||
19128 | else | |
19129 | cat >>confdefs.h <<_ACEOF | |
19130 | #define HAVE_DECL_SYS_SIGLIST 0 | |
b80f6443 | 19131 | _ACEOF |
bb70624e | 19132 | |
0628567a | 19133 | |
f73dda09 | 19134 | fi |
bb70624e | 19135 | |
b80f6443 | 19136 | |
0628567a JA |
19137 | |
19138 | ||
bb70624e JA |
19139 | if test "$ac_cv_func_inet_aton" != 'yes'; then |
19140 | ||
3185942a JA |
19141 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
19142 | $as_echo_n "checking for inet_aton... " >&6; } | |
f73dda09 | 19143 | if test "${bash_cv_func_inet_aton+set}" = set; then |
3185942a | 19144 | $as_echo_n "(cached) " >&6 |
bb70624e | 19145 | else |
f73dda09 | 19146 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19147 | /* confdefs.h. */ |
19148 | _ACEOF | |
19149 | cat confdefs.h >>conftest.$ac_ext | |
19150 | cat >>conftest.$ac_ext <<_ACEOF | |
19151 | /* end confdefs.h. */ | |
bb70624e JA |
19152 | |
19153 | #include <sys/types.h> | |
19154 | #include <netinet/in.h> | |
19155 | #include <arpa/inet.h> | |
19156 | struct in_addr ap; | |
f73dda09 JA |
19157 | int |
19158 | main () | |
19159 | { | |
19160 | inet_aton("127.0.0.1", &ap); | |
19161 | ; | |
19162 | return 0; | |
19163 | } | |
19164 | _ACEOF | |
19165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19166 | if { (ac_try="$ac_link" |
19167 | case "(($ac_try" in | |
19168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19169 | *) ac_try_echo=$ac_try;; | |
19170 | esac | |
19171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19172 | $as_echo "$ac_try_echo") >&5 | |
19173 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19174 | ac_status=$? |
0628567a JA |
19175 | grep -v '^ *+' conftest.er1 >conftest.err |
19176 | rm -f conftest.er1 | |
19177 | cat conftest.err >&5 | |
3185942a JA |
19178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19179 | (exit $ac_status); } && { | |
19180 | test -z "$ac_c_werror_flag" || | |
19181 | test ! -s conftest.err | |
19182 | } && test -s conftest$ac_exeext && { | |
19183 | test "$cross_compiling" = yes || | |
19184 | $as_test_x conftest$ac_exeext | |
19185 | }; then | |
bb70624e JA |
19186 | bash_cv_func_inet_aton=yes |
19187 | else | |
3185942a | 19188 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19189 | sed 's/^/| /' conftest.$ac_ext >&5 |
19190 | ||
3185942a | 19191 | bash_cv_func_inet_aton=no |
bb70624e | 19192 | fi |
3185942a JA |
19193 | |
19194 | rm -rf conftest.dSYM | |
19195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19196 | conftest$ac_exeext conftest.$ac_ext |
bb70624e | 19197 | fi |
3185942a JA |
19198 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5 |
19199 | $as_echo "$bash_cv_func_inet_aton" >&6; } | |
bb70624e | 19200 | if test $bash_cv_func_inet_aton = yes; then |
b80f6443 | 19201 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 19202 | #define HAVE_INET_ATON 1 |
b80f6443 | 19203 | _ACEOF |
bb70624e | 19204 | |
f73dda09 | 19205 | else |
3185942a | 19206 | case " $LIBOBJS " in |
0628567a | 19207 | *" inet_aton.$ac_objext "* ) ;; |
3185942a JA |
19208 | *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" |
19209 | ;; | |
0628567a JA |
19210 | esac |
19211 | ||
bb70624e JA |
19212 | fi |
19213 | ||
19214 | fi | |
19215 | ||
19216 | case "$host_os" in | |
f73dda09 | 19217 | irix4*) |
3185942a JA |
19218 | { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5 |
19219 | $as_echo_n "checking for getpwent in -lsun... " >&6; } | |
f73dda09 | 19220 | if test "${ac_cv_lib_sun_getpwent+set}" = set; then |
3185942a | 19221 | $as_echo_n "(cached) " >&6 |
bb70624e | 19222 | else |
f73dda09 | 19223 | ac_check_lib_save_LIBS=$LIBS |
bb70624e | 19224 | LIBS="-lsun $LIBS" |
f73dda09 | 19225 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19226 | /* confdefs.h. */ |
19227 | _ACEOF | |
19228 | cat confdefs.h >>conftest.$ac_ext | |
19229 | cat >>conftest.$ac_ext <<_ACEOF | |
19230 | /* end confdefs.h. */ | |
f73dda09 | 19231 | |
3185942a JA |
19232 | /* Override any GCC internal prototype to avoid an error. |
19233 | Use char because int might match the return type of a GCC | |
19234 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
19235 | #ifdef __cplusplus |
19236 | extern "C" | |
19237 | #endif | |
f73dda09 JA |
19238 | char getpwent (); |
19239 | int | |
19240 | main () | |
19241 | { | |
3185942a | 19242 | return getpwent (); |
f73dda09 JA |
19243 | ; |
19244 | return 0; | |
19245 | } | |
19246 | _ACEOF | |
19247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19248 | if { (ac_try="$ac_link" |
19249 | case "(($ac_try" in | |
19250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19251 | *) ac_try_echo=$ac_try;; | |
19252 | esac | |
19253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19254 | $as_echo "$ac_try_echo") >&5 | |
19255 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19256 | ac_status=$? |
0628567a JA |
19257 | grep -v '^ *+' conftest.er1 >conftest.err |
19258 | rm -f conftest.er1 | |
19259 | cat conftest.err >&5 | |
3185942a JA |
19260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19261 | (exit $ac_status); } && { | |
19262 | test -z "$ac_c_werror_flag" || | |
19263 | test ! -s conftest.err | |
19264 | } && test -s conftest$ac_exeext && { | |
19265 | test "$cross_compiling" = yes || | |
19266 | $as_test_x conftest$ac_exeext | |
19267 | }; then | |
f73dda09 JA |
19268 | ac_cv_lib_sun_getpwent=yes |
19269 | else | |
3185942a | 19270 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19271 | sed 's/^/| /' conftest.$ac_ext >&5 |
19272 | ||
3185942a | 19273 | ac_cv_lib_sun_getpwent=no |
f73dda09 | 19274 | fi |
3185942a JA |
19275 | |
19276 | rm -rf conftest.dSYM | |
19277 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19278 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
19279 | LIBS=$ac_check_lib_save_LIBS |
19280 | fi | |
3185942a JA |
19281 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5 |
19282 | $as_echo "$ac_cv_lib_sun_getpwent" >&6; } | |
19283 | if test "x$ac_cv_lib_sun_getpwent" = x""yes; then | |
b80f6443 | 19284 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19285 | #define HAVE_LIBSUN 1 |
b80f6443 | 19286 | _ACEOF |
bb70624e JA |
19287 | |
19288 | LIBS="-lsun $LIBS" | |
19289 | ||
bb70624e JA |
19290 | fi |
19291 | ;; | |
19292 | esac | |
ccc6cda3 | 19293 | |
d166f048 | 19294 | if test "$ac_cv_func_getpeername" = no; then |
f73dda09 | 19295 | |
ccc6cda3 JA |
19296 | if test "X$bash_cv_have_socklib" = "X"; then |
19297 | _bash_needmsg= | |
19298 | else | |
3185942a JA |
19299 | { $as_echo "$as_me:$LINENO: checking for socket library" >&5 |
19300 | $as_echo_n "checking for socket library... " >&6; } | |
ccc6cda3 JA |
19301 | _bash_needmsg=yes |
19302 | fi | |
f73dda09 | 19303 | if test "${bash_cv_have_socklib+set}" = set; then |
3185942a | 19304 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19305 | else |
3185942a JA |
19306 | { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5 |
19307 | $as_echo_n "checking for getpeername in -lsocket... " >&6; } | |
f73dda09 | 19308 | if test "${ac_cv_lib_socket_getpeername+set}" = set; then |
3185942a | 19309 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19310 | else |
f73dda09 | 19311 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 19312 | LIBS="-lsocket -lnsl $LIBS" |
f73dda09 | 19313 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19314 | /* confdefs.h. */ |
19315 | _ACEOF | |
19316 | cat confdefs.h >>conftest.$ac_ext | |
19317 | cat >>conftest.$ac_ext <<_ACEOF | |
19318 | /* end confdefs.h. */ | |
f73dda09 | 19319 | |
3185942a JA |
19320 | /* Override any GCC internal prototype to avoid an error. |
19321 | Use char because int might match the return type of a GCC | |
19322 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
19323 | #ifdef __cplusplus |
19324 | extern "C" | |
19325 | #endif | |
f73dda09 JA |
19326 | char getpeername (); |
19327 | int | |
19328 | main () | |
19329 | { | |
3185942a | 19330 | return getpeername (); |
f73dda09 JA |
19331 | ; |
19332 | return 0; | |
19333 | } | |
19334 | _ACEOF | |
19335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19336 | if { (ac_try="$ac_link" |
19337 | case "(($ac_try" in | |
19338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19339 | *) ac_try_echo=$ac_try;; | |
19340 | esac | |
19341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19342 | $as_echo "$ac_try_echo") >&5 | |
19343 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19344 | ac_status=$? |
0628567a JA |
19345 | grep -v '^ *+' conftest.er1 >conftest.err |
19346 | rm -f conftest.er1 | |
19347 | cat conftest.err >&5 | |
3185942a JA |
19348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19349 | (exit $ac_status); } && { | |
19350 | test -z "$ac_c_werror_flag" || | |
19351 | test ! -s conftest.err | |
19352 | } && test -s conftest$ac_exeext && { | |
19353 | test "$cross_compiling" = yes || | |
19354 | $as_test_x conftest$ac_exeext | |
19355 | }; then | |
f73dda09 JA |
19356 | ac_cv_lib_socket_getpeername=yes |
19357 | else | |
3185942a | 19358 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19359 | sed 's/^/| /' conftest.$ac_ext >&5 |
19360 | ||
3185942a | 19361 | ac_cv_lib_socket_getpeername=no |
f73dda09 | 19362 | fi |
3185942a JA |
19363 | |
19364 | rm -rf conftest.dSYM | |
19365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19366 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
19367 | LIBS=$ac_check_lib_save_LIBS |
19368 | fi | |
3185942a JA |
19369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5 |
19370 | $as_echo "$ac_cv_lib_socket_getpeername" >&6; } | |
19371 | if test "x$ac_cv_lib_socket_getpeername" = x""yes; then | |
ccc6cda3 JA |
19372 | bash_cv_have_socklib=yes |
19373 | else | |
f73dda09 | 19374 | bash_cv_have_socklib=no |
ccc6cda3 JA |
19375 | fi |
19376 | ||
19377 | fi | |
19378 | ||
19379 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
19380 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5 |
19381 | $as_echo "$bash_cv_have_socklib" >&6; } | |
ccc6cda3 JA |
19382 | _bash_needmsg= |
19383 | fi | |
19384 | if test $bash_cv_have_socklib = yes; then | |
19385 | # check for libnsl, add it to LIBS if present | |
19386 | if test "X$bash_cv_have_libnsl" = "X"; then | |
19387 | _bash_needmsg= | |
19388 | else | |
3185942a JA |
19389 | { $as_echo "$as_me:$LINENO: checking for libnsl" >&5 |
19390 | $as_echo_n "checking for libnsl... " >&6; } | |
ccc6cda3 JA |
19391 | _bash_needmsg=yes |
19392 | fi | |
f73dda09 | 19393 | if test "${bash_cv_have_libnsl+set}" = set; then |
3185942a | 19394 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19395 | else |
3185942a JA |
19396 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
19397 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | |
f73dda09 | 19398 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
3185942a | 19399 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19400 | else |
f73dda09 | 19401 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 19402 | LIBS="-lnsl $LIBS" |
f73dda09 | 19403 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19404 | /* confdefs.h. */ |
19405 | _ACEOF | |
19406 | cat confdefs.h >>conftest.$ac_ext | |
19407 | cat >>conftest.$ac_ext <<_ACEOF | |
19408 | /* end confdefs.h. */ | |
f73dda09 | 19409 | |
3185942a JA |
19410 | /* Override any GCC internal prototype to avoid an error. |
19411 | Use char because int might match the return type of a GCC | |
19412 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
19413 | #ifdef __cplusplus |
19414 | extern "C" | |
19415 | #endif | |
f73dda09 JA |
19416 | char t_open (); |
19417 | int | |
19418 | main () | |
19419 | { | |
3185942a | 19420 | return t_open (); |
f73dda09 JA |
19421 | ; |
19422 | return 0; | |
19423 | } | |
19424 | _ACEOF | |
19425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19426 | if { (ac_try="$ac_link" |
19427 | case "(($ac_try" in | |
19428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19429 | *) ac_try_echo=$ac_try;; | |
19430 | esac | |
19431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19432 | $as_echo "$ac_try_echo") >&5 | |
19433 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19434 | ac_status=$? |
0628567a JA |
19435 | grep -v '^ *+' conftest.er1 >conftest.err |
19436 | rm -f conftest.er1 | |
19437 | cat conftest.err >&5 | |
3185942a JA |
19438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19439 | (exit $ac_status); } && { | |
19440 | test -z "$ac_c_werror_flag" || | |
19441 | test ! -s conftest.err | |
19442 | } && test -s conftest$ac_exeext && { | |
19443 | test "$cross_compiling" = yes || | |
19444 | $as_test_x conftest$ac_exeext | |
19445 | }; then | |
f73dda09 JA |
19446 | ac_cv_lib_nsl_t_open=yes |
19447 | else | |
3185942a | 19448 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19449 | sed 's/^/| /' conftest.$ac_ext >&5 |
19450 | ||
3185942a | 19451 | ac_cv_lib_nsl_t_open=no |
f73dda09 | 19452 | fi |
3185942a JA |
19453 | |
19454 | rm -rf conftest.dSYM | |
19455 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19456 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
19457 | LIBS=$ac_check_lib_save_LIBS |
19458 | fi | |
3185942a JA |
19459 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
19460 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | |
19461 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then | |
ccc6cda3 JA |
19462 | bash_cv_have_libnsl=yes |
19463 | else | |
f73dda09 | 19464 | bash_cv_have_libnsl=no |
ccc6cda3 JA |
19465 | fi |
19466 | ||
19467 | fi | |
19468 | ||
19469 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
19470 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5 |
19471 | $as_echo "$bash_cv_have_libnsl" >&6; } | |
ccc6cda3 JA |
19472 | _bash_needmsg= |
19473 | fi | |
19474 | if test $bash_cv_have_libnsl = yes; then | |
19475 | LIBS="-lsocket -lnsl $LIBS" | |
19476 | else | |
19477 | LIBS="-lsocket $LIBS" | |
19478 | fi | |
b80f6443 | 19479 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 19480 | #define HAVE_LIBSOCKET 1 |
b80f6443 | 19481 | _ACEOF |
ccc6cda3 | 19482 | |
b80f6443 | 19483 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 19484 | #define HAVE_GETPEERNAME 1 |
b80f6443 | 19485 | _ACEOF |
ccc6cda3 JA |
19486 | |
19487 | fi | |
19488 | ||
bb70624e JA |
19489 | fi |
19490 | if test "$ac_cv_func_gethostbyname" = no; then | |
19491 | if test "X$bash_cv_have_gethostbyname" = "X"; then | |
19492 | _bash_needmsg=yes | |
19493 | else | |
3185942a JA |
19494 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
19495 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
bb70624e JA |
19496 | _bash_needmsg= |
19497 | fi | |
f73dda09 | 19498 | if test "${bash_cv_have_gethostbyname+set}" = set; then |
3185942a | 19499 | $as_echo_n "(cached) " >&6 |
bb70624e | 19500 | else |
f73dda09 | 19501 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19502 | /* confdefs.h. */ |
19503 | _ACEOF | |
19504 | cat confdefs.h >>conftest.$ac_ext | |
19505 | cat >>conftest.$ac_ext <<_ACEOF | |
19506 | /* end confdefs.h. */ | |
bb70624e | 19507 | #include <netdb.h> |
f73dda09 JA |
19508 | int |
19509 | main () | |
19510 | { | |
bb70624e JA |
19511 | struct hostent *hp; |
19512 | hp = gethostbyname("localhost"); | |
19513 | ||
f73dda09 JA |
19514 | ; |
19515 | return 0; | |
19516 | } | |
19517 | _ACEOF | |
19518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
19519 | if { (ac_try="$ac_link" |
19520 | case "(($ac_try" in | |
19521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19522 | *) ac_try_echo=$ac_try;; | |
19523 | esac | |
19524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19525 | $as_echo "$ac_try_echo") >&5 | |
19526 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 19527 | ac_status=$? |
0628567a JA |
19528 | grep -v '^ *+' conftest.er1 >conftest.err |
19529 | rm -f conftest.er1 | |
19530 | cat conftest.err >&5 | |
3185942a JA |
19531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19532 | (exit $ac_status); } && { | |
19533 | test -z "$ac_c_werror_flag" || | |
19534 | test ! -s conftest.err | |
19535 | } && test -s conftest$ac_exeext && { | |
19536 | test "$cross_compiling" = yes || | |
19537 | $as_test_x conftest$ac_exeext | |
19538 | }; then | |
bb70624e JA |
19539 | bash_cv_have_gethostbyname=yes |
19540 | else | |
3185942a | 19541 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19542 | sed 's/^/| /' conftest.$ac_ext >&5 |
19543 | ||
3185942a | 19544 | bash_cv_have_gethostbyname=no |
f73dda09 | 19545 | fi |
3185942a JA |
19546 | |
19547 | rm -rf conftest.dSYM | |
19548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 19549 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
19550 | |
19551 | fi | |
19552 | ||
19553 | if test "X$_bash_needmsg" = Xyes; then | |
3185942a JA |
19554 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
19555 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
f73dda09 | 19556 | fi |
3185942a JA |
19557 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5 |
19558 | $as_echo "$bash_cv_have_gethostbyname" >&6; } | |
f73dda09 | 19559 | if test "$bash_cv_have_gethostbyname" = yes; then |
b80f6443 | 19560 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 19561 | #define HAVE_GETHOSTBYNAME 1 |
b80f6443 | 19562 | _ACEOF |
f73dda09 JA |
19563 | |
19564 | fi | |
19565 | ||
19566 | fi | |
19567 | ||
3185942a JA |
19568 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19569 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
f73dda09 | 19570 | if test "${ac_cv_type_uid_t+set}" = set; then |
3185942a | 19571 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
19572 | else |
19573 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19574 | /* confdefs.h. */ |
19575 | _ACEOF | |
19576 | cat confdefs.h >>conftest.$ac_ext | |
19577 | cat >>conftest.$ac_ext <<_ACEOF | |
19578 | /* end confdefs.h. */ | |
f73dda09 JA |
19579 | #include <sys/types.h> |
19580 | ||
19581 | _ACEOF | |
19582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 19583 | $EGREP "uid_t" >/dev/null 2>&1; then |
f73dda09 JA |
19584 | ac_cv_type_uid_t=yes |
19585 | else | |
19586 | ac_cv_type_uid_t=no | |
19587 | fi | |
19588 | rm -f conftest* | |
19589 | ||
19590 | fi | |
3185942a JA |
19591 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19592 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
f73dda09 JA |
19593 | if test $ac_cv_type_uid_t = no; then |
19594 | ||
b80f6443 | 19595 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 19596 | #define uid_t int |
b80f6443 JA |
19597 | _ACEOF |
19598 | ||
f73dda09 | 19599 | |
b80f6443 | 19600 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 19601 | #define gid_t int |
b80f6443 | 19602 | _ACEOF |
f73dda09 JA |
19603 | |
19604 | fi | |
19605 | ||
3185942a JA |
19606 | { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
19607 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
f73dda09 | 19608 | if test "${ac_cv_type_getgroups+set}" = set; then |
3185942a | 19609 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
19610 | else |
19611 | if test "$cross_compiling" = yes; then | |
19612 | ac_cv_type_getgroups=cross | |
19613 | else | |
19614 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19615 | /* confdefs.h. */ |
19616 | _ACEOF | |
19617 | cat confdefs.h >>conftest.$ac_ext | |
19618 | cat >>conftest.$ac_ext <<_ACEOF | |
19619 | /* end confdefs.h. */ | |
f73dda09 | 19620 | /* Thanks to Mike Rendell for this test. */ |
3185942a | 19621 | $ac_includes_default |
f73dda09 JA |
19622 | #define NGID 256 |
19623 | #undef MAX | |
19624 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
19625 | ||
19626 | int | |
19627 | main () | |
19628 | { | |
19629 | gid_t gidset[NGID]; | |
19630 | int i, n; | |
3185942a | 19631 | union { gid_t gval; long int lval; } val; |
f73dda09 JA |
19632 | |
19633 | val.lval = -1; | |
19634 | for (i = 0; i < NGID; i++) | |
19635 | gidset[i] = val.gval; | |
19636 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
0628567a | 19637 | gidset); |
f73dda09 | 19638 | /* Exit non-zero if getgroups seems to require an array of ints. This |
3185942a JA |
19639 | happens when gid_t is short int but getgroups modifies an array |
19640 | of ints. */ | |
19641 | return n > 0 && gidset[n] != val.gval; | |
f73dda09 JA |
19642 | } |
19643 | _ACEOF | |
19644 | rm -f conftest$ac_exeext | |
3185942a JA |
19645 | if { (ac_try="$ac_link" |
19646 | case "(($ac_try" in | |
19647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19648 | *) ac_try_echo=$ac_try;; | |
19649 | esac | |
19650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19651 | $as_echo "$ac_try_echo") >&5 | |
19652 | (eval "$ac_link") 2>&5 | |
f73dda09 | 19653 | ac_status=$? |
3185942a | 19654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 19655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
19656 | { (case "(($ac_try" in |
19657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19658 | *) ac_try_echo=$ac_try;; | |
19659 | esac | |
19660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19661 | $as_echo "$ac_try_echo") >&5 | |
19662 | (eval "$ac_try") 2>&5 | |
f73dda09 | 19663 | ac_status=$? |
3185942a | 19664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
19665 | (exit $ac_status); }; }; then |
19666 | ac_cv_type_getgroups=gid_t | |
19667 | else | |
3185942a JA |
19668 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
19669 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
19670 | sed 's/^/| /' conftest.$ac_ext >&5 |
19671 | ||
b80f6443 | 19672 | ( exit $ac_status ) |
f73dda09 JA |
19673 | ac_cv_type_getgroups=int |
19674 | fi | |
3185942a JA |
19675 | rm -rf conftest.dSYM |
19676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19677 | fi |
3185942a JA |
19678 | |
19679 | ||
f73dda09 JA |
19680 | if test $ac_cv_type_getgroups = cross; then |
19681 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19682 | /* confdefs.h. */ |
19683 | _ACEOF | |
19684 | cat confdefs.h >>conftest.$ac_ext | |
19685 | cat >>conftest.$ac_ext <<_ACEOF | |
19686 | /* end confdefs.h. */ | |
f73dda09 JA |
19687 | #include <unistd.h> |
19688 | ||
19689 | _ACEOF | |
19690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 19691 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
f73dda09 JA |
19692 | ac_cv_type_getgroups=gid_t |
19693 | else | |
19694 | ac_cv_type_getgroups=int | |
bb70624e JA |
19695 | fi |
19696 | rm -f conftest* | |
19697 | ||
19698 | fi | |
f73dda09 | 19699 | fi |
3185942a JA |
19700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
19701 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
f73dda09 | 19702 | |
b80f6443 | 19703 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19704 | #define GETGROUPS_T $ac_cv_type_getgroups |
b80f6443 JA |
19705 | _ACEOF |
19706 | ||
f73dda09 | 19707 | |
3185942a JA |
19708 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
19709 | $as_echo_n "checking for off_t... " >&6; } | |
f73dda09 | 19710 | if test "${ac_cv_type_off_t+set}" = set; then |
3185942a | 19711 | $as_echo_n "(cached) " >&6 |
f73dda09 | 19712 | else |
3185942a JA |
19713 | ac_cv_type_off_t=no |
19714 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19715 | /* confdefs.h. */ |
19716 | _ACEOF | |
19717 | cat confdefs.h >>conftest.$ac_ext | |
19718 | cat >>conftest.$ac_ext <<_ACEOF | |
19719 | /* end confdefs.h. */ | |
f73dda09 JA |
19720 | $ac_includes_default |
19721 | int | |
19722 | main () | |
19723 | { | |
f73dda09 | 19724 | if (sizeof (off_t)) |
3185942a | 19725 | return 0; |
f73dda09 JA |
19726 | ; |
19727 | return 0; | |
19728 | } | |
19729 | _ACEOF | |
19730 | rm -f conftest.$ac_objext | |
3185942a JA |
19731 | if { (ac_try="$ac_compile" |
19732 | case "(($ac_try" in | |
19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19734 | *) ac_try_echo=$ac_try;; | |
19735 | esac | |
19736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19737 | $as_echo "$ac_try_echo") >&5 | |
19738 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19739 | ac_status=$? |
0628567a JA |
19740 | grep -v '^ *+' conftest.er1 >conftest.err |
19741 | rm -f conftest.er1 | |
19742 | cat conftest.err >&5 | |
3185942a JA |
19743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19744 | (exit $ac_status); } && { | |
19745 | test -z "$ac_c_werror_flag" || | |
19746 | test ! -s conftest.err | |
19747 | } && test -s conftest.$ac_objext; then | |
19748 | cat >conftest.$ac_ext <<_ACEOF | |
19749 | /* confdefs.h. */ | |
19750 | _ACEOF | |
19751 | cat confdefs.h >>conftest.$ac_ext | |
19752 | cat >>conftest.$ac_ext <<_ACEOF | |
19753 | /* end confdefs.h. */ | |
19754 | $ac_includes_default | |
19755 | int | |
19756 | main () | |
19757 | { | |
19758 | if (sizeof ((off_t))) | |
19759 | return 0; | |
19760 | ; | |
19761 | return 0; | |
19762 | } | |
19763 | _ACEOF | |
19764 | rm -f conftest.$ac_objext | |
19765 | if { (ac_try="$ac_compile" | |
19766 | case "(($ac_try" in | |
19767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19768 | *) ac_try_echo=$ac_try;; | |
19769 | esac | |
19770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19771 | $as_echo "$ac_try_echo") >&5 | |
19772 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19773 | ac_status=$? |
3185942a JA |
19774 | grep -v '^ *+' conftest.er1 >conftest.err |
19775 | rm -f conftest.er1 | |
19776 | cat conftest.err >&5 | |
19777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19778 | (exit $ac_status); } && { | |
19779 | test -z "$ac_c_werror_flag" || | |
19780 | test ! -s conftest.err | |
19781 | } && test -s conftest.$ac_objext; then | |
19782 | : | |
f73dda09 | 19783 | else |
3185942a | 19784 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 |
19786 | ||
3185942a | 19787 | ac_cv_type_off_t=yes |
f73dda09 | 19788 | fi |
3185942a JA |
19789 | |
19790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19791 | else | |
19792 | $as_echo "$as_me: failed program was:" >&5 | |
19793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19794 | ||
19795 | ||
19796 | fi | |
19797 | ||
19798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19799 | fi |
3185942a JA |
19800 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
19801 | $as_echo "$ac_cv_type_off_t" >&6; } | |
19802 | if test "x$ac_cv_type_off_t" = x""yes; then | |
f73dda09 JA |
19803 | : |
19804 | else | |
19805 | ||
b80f6443 | 19806 | cat >>confdefs.h <<_ACEOF |
3185942a | 19807 | #define off_t long int |
b80f6443 | 19808 | _ACEOF |
f73dda09 JA |
19809 | |
19810 | fi | |
19811 | ||
3185942a JA |
19812 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
19813 | $as_echo_n "checking for mode_t... " >&6; } | |
f73dda09 | 19814 | if test "${ac_cv_type_mode_t+set}" = set; then |
3185942a | 19815 | $as_echo_n "(cached) " >&6 |
f73dda09 | 19816 | else |
3185942a JA |
19817 | ac_cv_type_mode_t=no |
19818 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19819 | /* confdefs.h. */ |
19820 | _ACEOF | |
19821 | cat confdefs.h >>conftest.$ac_ext | |
19822 | cat >>conftest.$ac_ext <<_ACEOF | |
19823 | /* end confdefs.h. */ | |
f73dda09 JA |
19824 | $ac_includes_default |
19825 | int | |
19826 | main () | |
19827 | { | |
f73dda09 | 19828 | if (sizeof (mode_t)) |
3185942a | 19829 | return 0; |
f73dda09 JA |
19830 | ; |
19831 | return 0; | |
19832 | } | |
19833 | _ACEOF | |
19834 | rm -f conftest.$ac_objext | |
3185942a JA |
19835 | if { (ac_try="$ac_compile" |
19836 | case "(($ac_try" in | |
19837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19838 | *) ac_try_echo=$ac_try;; | |
19839 | esac | |
19840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19841 | $as_echo "$ac_try_echo") >&5 | |
19842 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19843 | ac_status=$? |
0628567a JA |
19844 | grep -v '^ *+' conftest.er1 >conftest.err |
19845 | rm -f conftest.er1 | |
19846 | cat conftest.err >&5 | |
3185942a JA |
19847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19848 | (exit $ac_status); } && { | |
19849 | test -z "$ac_c_werror_flag" || | |
19850 | test ! -s conftest.err | |
19851 | } && test -s conftest.$ac_objext; then | |
19852 | cat >conftest.$ac_ext <<_ACEOF | |
19853 | /* confdefs.h. */ | |
19854 | _ACEOF | |
19855 | cat confdefs.h >>conftest.$ac_ext | |
19856 | cat >>conftest.$ac_ext <<_ACEOF | |
19857 | /* end confdefs.h. */ | |
19858 | $ac_includes_default | |
19859 | int | |
19860 | main () | |
19861 | { | |
19862 | if (sizeof ((mode_t))) | |
19863 | return 0; | |
19864 | ; | |
19865 | return 0; | |
19866 | } | |
19867 | _ACEOF | |
19868 | rm -f conftest.$ac_objext | |
19869 | if { (ac_try="$ac_compile" | |
19870 | case "(($ac_try" in | |
19871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19872 | *) ac_try_echo=$ac_try;; | |
19873 | esac | |
19874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19875 | $as_echo "$ac_try_echo") >&5 | |
19876 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19877 | ac_status=$? |
3185942a JA |
19878 | grep -v '^ *+' conftest.er1 >conftest.err |
19879 | rm -f conftest.er1 | |
19880 | cat conftest.err >&5 | |
19881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19882 | (exit $ac_status); } && { | |
19883 | test -z "$ac_c_werror_flag" || | |
19884 | test ! -s conftest.err | |
19885 | } && test -s conftest.$ac_objext; then | |
19886 | : | |
19887 | else | |
19888 | $as_echo "$as_me: failed program was:" >&5 | |
19889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19890 | ||
19891 | ac_cv_type_mode_t=yes | |
19892 | fi | |
19893 | ||
19894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19895 | else |
3185942a | 19896 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
19897 | sed 's/^/| /' conftest.$ac_ext >&5 |
19898 | ||
3185942a | 19899 | |
f73dda09 | 19900 | fi |
3185942a JA |
19901 | |
19902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 19903 | fi |
3185942a JA |
19904 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
19905 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
19906 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
f73dda09 JA |
19907 | : |
19908 | else | |
bb70624e | 19909 | |
b80f6443 | 19910 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 19911 | #define mode_t int |
b80f6443 | 19912 | _ACEOF |
bb70624e JA |
19913 | |
19914 | fi | |
19915 | ||
3185942a JA |
19916 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19917 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
f73dda09 | 19918 | if test "${ac_cv_type_uid_t+set}" = set; then |
3185942a | 19919 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19920 | else |
f73dda09 | 19921 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19922 | /* confdefs.h. */ |
19923 | _ACEOF | |
19924 | cat confdefs.h >>conftest.$ac_ext | |
19925 | cat >>conftest.$ac_ext <<_ACEOF | |
19926 | /* end confdefs.h. */ | |
ccc6cda3 | 19927 | #include <sys/types.h> |
f73dda09 JA |
19928 | |
19929 | _ACEOF | |
ccc6cda3 | 19930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 19931 | $EGREP "uid_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
19932 | ac_cv_type_uid_t=yes |
19933 | else | |
ccc6cda3 JA |
19934 | ac_cv_type_uid_t=no |
19935 | fi | |
19936 | rm -f conftest* | |
19937 | ||
19938 | fi | |
3185942a JA |
19939 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19940 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
ccc6cda3 | 19941 | if test $ac_cv_type_uid_t = no; then |
f73dda09 | 19942 | |
b80f6443 | 19943 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 19944 | #define uid_t int |
b80f6443 | 19945 | _ACEOF |
ccc6cda3 | 19946 | |
b80f6443 JA |
19947 | |
19948 | cat >>confdefs.h <<\_ACEOF | |
ccc6cda3 | 19949 | #define gid_t int |
b80f6443 | 19950 | _ACEOF |
ccc6cda3 JA |
19951 | |
19952 | fi | |
19953 | ||
3185942a JA |
19954 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
19955 | $as_echo_n "checking for pid_t... " >&6; } | |
f73dda09 | 19956 | if test "${ac_cv_type_pid_t+set}" = set; then |
3185942a | 19957 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 19958 | else |
3185942a JA |
19959 | ac_cv_type_pid_t=no |
19960 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
19961 | /* confdefs.h. */ |
19962 | _ACEOF | |
19963 | cat confdefs.h >>conftest.$ac_ext | |
19964 | cat >>conftest.$ac_ext <<_ACEOF | |
19965 | /* end confdefs.h. */ | |
f73dda09 JA |
19966 | $ac_includes_default |
19967 | int | |
19968 | main () | |
ccc6cda3 | 19969 | { |
f73dda09 | 19970 | if (sizeof (pid_t)) |
3185942a | 19971 | return 0; |
f73dda09 JA |
19972 | ; |
19973 | return 0; | |
ccc6cda3 | 19974 | } |
f73dda09 JA |
19975 | _ACEOF |
19976 | rm -f conftest.$ac_objext | |
3185942a JA |
19977 | if { (ac_try="$ac_compile" |
19978 | case "(($ac_try" in | |
19979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19980 | *) ac_try_echo=$ac_try;; | |
19981 | esac | |
19982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19983 | $as_echo "$ac_try_echo") >&5 | |
19984 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 19985 | ac_status=$? |
0628567a JA |
19986 | grep -v '^ *+' conftest.er1 >conftest.err |
19987 | rm -f conftest.er1 | |
19988 | cat conftest.err >&5 | |
3185942a JA |
19989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19990 | (exit $ac_status); } && { | |
19991 | test -z "$ac_c_werror_flag" || | |
19992 | test ! -s conftest.err | |
19993 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 19994 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
19995 | /* confdefs.h. */ |
19996 | _ACEOF | |
19997 | cat confdefs.h >>conftest.$ac_ext | |
19998 | cat >>conftest.$ac_ext <<_ACEOF | |
19999 | /* end confdefs.h. */ | |
f73dda09 JA |
20000 | $ac_includes_default |
20001 | int | |
20002 | main () | |
20003 | { | |
3185942a JA |
20004 | if (sizeof ((pid_t))) |
20005 | return 0; | |
f73dda09 JA |
20006 | ; |
20007 | return 0; | |
20008 | } | |
20009 | _ACEOF | |
20010 | rm -f conftest.$ac_objext | |
3185942a JA |
20011 | if { (ac_try="$ac_compile" |
20012 | case "(($ac_try" in | |
20013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20014 | *) ac_try_echo=$ac_try;; | |
20015 | esac | |
20016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20017 | $as_echo "$ac_try_echo") >&5 | |
20018 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20019 | ac_status=$? |
0628567a JA |
20020 | grep -v '^ *+' conftest.er1 >conftest.err |
20021 | rm -f conftest.er1 | |
20022 | cat conftest.err >&5 | |
3185942a JA |
20023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20024 | (exit $ac_status); } && { | |
20025 | test -z "$ac_c_werror_flag" || | |
20026 | test ! -s conftest.err | |
20027 | } && test -s conftest.$ac_objext; then | |
20028 | : | |
20029 | else | |
20030 | $as_echo "$as_me: failed program was:" >&5 | |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20032 | ||
20033 | ac_cv_type_pid_t=yes | |
20034 | fi | |
20035 | ||
20036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20037 | else |
3185942a | 20038 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20039 | sed 's/^/| /' conftest.$ac_ext >&5 |
20040 | ||
3185942a | 20041 | |
ccc6cda3 | 20042 | fi |
3185942a JA |
20043 | |
20044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20045 | fi |
3185942a JA |
20046 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
20047 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
20048 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
f73dda09 JA |
20049 | : |
20050 | else | |
ccc6cda3 | 20051 | |
b80f6443 | 20052 | cat >>confdefs.h <<_ACEOF |
3185942a | 20053 | #define pid_t int |
b80f6443 | 20054 | _ACEOF |
ccc6cda3 | 20055 | |
f73dda09 | 20056 | fi |
ccc6cda3 | 20057 | |
3185942a JA |
20058 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
20059 | $as_echo_n "checking for size_t... " >&6; } | |
20060 | if test "${ac_cv_type_size_t+set}" = set; then | |
20061 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 20062 | else |
3185942a JA |
20063 | ac_cv_type_size_t=no |
20064 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20065 | /* confdefs.h. */ |
20066 | _ACEOF | |
20067 | cat confdefs.h >>conftest.$ac_ext | |
20068 | cat >>conftest.$ac_ext <<_ACEOF | |
20069 | /* end confdefs.h. */ | |
f73dda09 JA |
20070 | $ac_includes_default |
20071 | int | |
20072 | main () | |
20073 | { | |
3185942a JA |
20074 | if (sizeof (size_t)) |
20075 | return 0; | |
f73dda09 JA |
20076 | ; |
20077 | return 0; | |
20078 | } | |
20079 | _ACEOF | |
20080 | rm -f conftest.$ac_objext | |
3185942a JA |
20081 | if { (ac_try="$ac_compile" |
20082 | case "(($ac_try" in | |
20083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20084 | *) ac_try_echo=$ac_try;; | |
20085 | esac | |
20086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20087 | $as_echo "$ac_try_echo") >&5 | |
20088 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20089 | ac_status=$? |
0628567a JA |
20090 | grep -v '^ *+' conftest.er1 >conftest.err |
20091 | rm -f conftest.er1 | |
20092 | cat conftest.err >&5 | |
3185942a JA |
20093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20094 | (exit $ac_status); } && { | |
20095 | test -z "$ac_c_werror_flag" || | |
20096 | test ! -s conftest.err | |
20097 | } && test -s conftest.$ac_objext; then | |
20098 | cat >conftest.$ac_ext <<_ACEOF | |
20099 | /* confdefs.h. */ | |
20100 | _ACEOF | |
20101 | cat confdefs.h >>conftest.$ac_ext | |
20102 | cat >>conftest.$ac_ext <<_ACEOF | |
20103 | /* end confdefs.h. */ | |
20104 | $ac_includes_default | |
20105 | int | |
20106 | main () | |
20107 | { | |
20108 | if (sizeof ((size_t))) | |
20109 | return 0; | |
20110 | ; | |
20111 | return 0; | |
20112 | } | |
20113 | _ACEOF | |
20114 | rm -f conftest.$ac_objext | |
20115 | if { (ac_try="$ac_compile" | |
20116 | case "(($ac_try" in | |
20117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20118 | *) ac_try_echo=$ac_try;; | |
20119 | esac | |
20120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20121 | $as_echo "$ac_try_echo") >&5 | |
20122 | (eval "$ac_compile") 2>conftest.er1 | |
20123 | ac_status=$? | |
20124 | grep -v '^ *+' conftest.er1 >conftest.err | |
20125 | rm -f conftest.er1 | |
20126 | cat conftest.err >&5 | |
20127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); } && { | |
20129 | test -z "$ac_c_werror_flag" || | |
20130 | test ! -s conftest.err | |
20131 | } && test -s conftest.$ac_objext; then | |
20132 | : | |
20133 | else | |
20134 | $as_echo "$as_me: failed program was:" >&5 | |
20135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20136 | ||
20137 | ac_cv_type_size_t=yes | |
f73dda09 | 20138 | fi |
3185942a JA |
20139 | |
20140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20141 | else | |
20142 | $as_echo "$as_me: failed program was:" >&5 | |
20143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20144 | ||
20145 | ||
20146 | fi | |
20147 | ||
20148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20149 | fi |
3185942a JA |
20150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
20151 | $as_echo "$ac_cv_type_size_t" >&6; } | |
20152 | if test "x$ac_cv_type_size_t" = x""yes; then | |
f73dda09 | 20153 | : |
ccc6cda3 | 20154 | else |
ccc6cda3 | 20155 | |
b80f6443 | 20156 | cat >>confdefs.h <<_ACEOF |
3185942a | 20157 | #define size_t unsigned int |
b80f6443 | 20158 | _ACEOF |
ccc6cda3 JA |
20159 | |
20160 | fi | |
20161 | ||
3185942a JA |
20162 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
20163 | $as_echo_n "checking for ssize_t... " >&6; } | |
20164 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
20165 | $as_echo_n "(cached) " >&6 | |
f73dda09 | 20166 | else |
3185942a JA |
20167 | ac_cv_type_ssize_t=no |
20168 | cat >conftest.$ac_ext <<_ACEOF | |
20169 | /* confdefs.h. */ | |
20170 | _ACEOF | |
20171 | cat confdefs.h >>conftest.$ac_ext | |
20172 | cat >>conftest.$ac_ext <<_ACEOF | |
20173 | /* end confdefs.h. */ | |
20174 | $ac_includes_default | |
20175 | int | |
20176 | main () | |
20177 | { | |
20178 | if (sizeof (ssize_t)) | |
20179 | return 0; | |
20180 | ; | |
20181 | return 0; | |
20182 | } | |
20183 | _ACEOF | |
20184 | rm -f conftest.$ac_objext | |
20185 | if { (ac_try="$ac_compile" | |
20186 | case "(($ac_try" in | |
20187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20188 | *) ac_try_echo=$ac_try;; | |
20189 | esac | |
20190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20191 | $as_echo "$ac_try_echo") >&5 | |
20192 | (eval "$ac_compile") 2>conftest.er1 | |
20193 | ac_status=$? | |
20194 | grep -v '^ *+' conftest.er1 >conftest.err | |
20195 | rm -f conftest.er1 | |
20196 | cat conftest.err >&5 | |
20197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20198 | (exit $ac_status); } && { | |
20199 | test -z "$ac_c_werror_flag" || | |
20200 | test ! -s conftest.err | |
20201 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 20202 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20203 | /* confdefs.h. */ |
20204 | _ACEOF | |
20205 | cat confdefs.h >>conftest.$ac_ext | |
20206 | cat >>conftest.$ac_ext <<_ACEOF | |
20207 | /* end confdefs.h. */ | |
f73dda09 JA |
20208 | $ac_includes_default |
20209 | int | |
20210 | main () | |
20211 | { | |
3185942a JA |
20212 | if (sizeof ((ssize_t))) |
20213 | return 0; | |
20214 | ; | |
f73dda09 | 20215 | return 0; |
3185942a JA |
20216 | } |
20217 | _ACEOF | |
20218 | rm -f conftest.$ac_objext | |
20219 | if { (ac_try="$ac_compile" | |
20220 | case "(($ac_try" in | |
20221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20222 | *) ac_try_echo=$ac_try;; | |
20223 | esac | |
20224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20225 | $as_echo "$ac_try_echo") >&5 | |
20226 | (eval "$ac_compile") 2>conftest.er1 | |
20227 | ac_status=$? | |
20228 | grep -v '^ *+' conftest.er1 >conftest.err | |
20229 | rm -f conftest.er1 | |
20230 | cat conftest.err >&5 | |
20231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); } && { | |
20233 | test -z "$ac_c_werror_flag" || | |
20234 | test ! -s conftest.err | |
20235 | } && test -s conftest.$ac_objext; then | |
20236 | : | |
20237 | else | |
20238 | $as_echo "$as_me: failed program was:" >&5 | |
20239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20240 | ||
20241 | ac_cv_type_ssize_t=yes | |
20242 | fi | |
20243 | ||
20244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20245 | else | |
20246 | $as_echo "$as_me: failed program was:" >&5 | |
20247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20248 | ||
20249 | ||
20250 | fi | |
20251 | ||
20252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20253 | fi | |
20254 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
20255 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
20256 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
20257 | : | |
20258 | else | |
20259 | ||
20260 | cat >>confdefs.h <<_ACEOF | |
20261 | #define ssize_t int | |
20262 | _ACEOF | |
20263 | ||
20264 | fi | |
20265 | ||
20266 | { $as_echo "$as_me:$LINENO: checking for time_t" >&5 | |
20267 | $as_echo_n "checking for time_t... " >&6; } | |
20268 | if test "${ac_cv_type_time_t+set}" = set; then | |
20269 | $as_echo_n "(cached) " >&6 | |
20270 | else | |
20271 | ac_cv_type_time_t=no | |
20272 | cat >conftest.$ac_ext <<_ACEOF | |
20273 | /* confdefs.h. */ | |
20274 | _ACEOF | |
20275 | cat confdefs.h >>conftest.$ac_ext | |
20276 | cat >>conftest.$ac_ext <<_ACEOF | |
20277 | /* end confdefs.h. */ | |
20278 | $ac_includes_default | |
20279 | int | |
20280 | main () | |
20281 | { | |
f73dda09 | 20282 | if (sizeof (time_t)) |
3185942a | 20283 | return 0; |
f73dda09 JA |
20284 | ; |
20285 | return 0; | |
20286 | } | |
20287 | _ACEOF | |
20288 | rm -f conftest.$ac_objext | |
3185942a JA |
20289 | if { (ac_try="$ac_compile" |
20290 | case "(($ac_try" in | |
20291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20292 | *) ac_try_echo=$ac_try;; | |
20293 | esac | |
20294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20295 | $as_echo "$ac_try_echo") >&5 | |
20296 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20297 | ac_status=$? |
0628567a JA |
20298 | grep -v '^ *+' conftest.er1 >conftest.err |
20299 | rm -f conftest.er1 | |
20300 | cat conftest.err >&5 | |
3185942a JA |
20301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20302 | (exit $ac_status); } && { | |
20303 | test -z "$ac_c_werror_flag" || | |
20304 | test ! -s conftest.err | |
20305 | } && test -s conftest.$ac_objext; then | |
20306 | cat >conftest.$ac_ext <<_ACEOF | |
20307 | /* confdefs.h. */ | |
20308 | _ACEOF | |
20309 | cat confdefs.h >>conftest.$ac_ext | |
20310 | cat >>conftest.$ac_ext <<_ACEOF | |
20311 | /* end confdefs.h. */ | |
20312 | $ac_includes_default | |
20313 | int | |
20314 | main () | |
20315 | { | |
20316 | if (sizeof ((time_t))) | |
20317 | return 0; | |
20318 | ; | |
20319 | return 0; | |
20320 | } | |
20321 | _ACEOF | |
20322 | rm -f conftest.$ac_objext | |
20323 | if { (ac_try="$ac_compile" | |
20324 | case "(($ac_try" in | |
20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20326 | *) ac_try_echo=$ac_try;; | |
20327 | esac | |
20328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20329 | $as_echo "$ac_try_echo") >&5 | |
20330 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20331 | ac_status=$? |
3185942a JA |
20332 | grep -v '^ *+' conftest.er1 >conftest.err |
20333 | rm -f conftest.er1 | |
20334 | cat conftest.err >&5 | |
20335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20336 | (exit $ac_status); } && { | |
20337 | test -z "$ac_c_werror_flag" || | |
20338 | test ! -s conftest.err | |
20339 | } && test -s conftest.$ac_objext; then | |
20340 | : | |
20341 | else | |
20342 | $as_echo "$as_me: failed program was:" >&5 | |
20343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20344 | ||
20345 | ac_cv_type_time_t=yes | |
20346 | fi | |
20347 | ||
20348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20349 | else |
3185942a | 20350 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20351 | sed 's/^/| /' conftest.$ac_ext >&5 |
20352 | ||
3185942a | 20353 | |
ccc6cda3 | 20354 | fi |
3185942a JA |
20355 | |
20356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20357 | fi |
3185942a JA |
20358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
20359 | $as_echo "$ac_cv_type_time_t" >&6; } | |
20360 | if test "x$ac_cv_type_time_t" = x""yes; then | |
f73dda09 JA |
20361 | : |
20362 | else | |
20363 | ||
b80f6443 | 20364 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 20365 | #define time_t long |
b80f6443 | 20366 | _ACEOF |
ccc6cda3 JA |
20367 | |
20368 | fi | |
20369 | ||
b80f6443 JA |
20370 | |
20371 | ||
3185942a JA |
20372 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
20373 | $as_echo_n "checking for long long... " >&6; } | |
f73dda09 | 20374 | if test "${bash_cv_type_long_long+set}" = set; then |
3185942a | 20375 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 20376 | else |
f73dda09 | 20377 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20378 | /* confdefs.h. */ |
20379 | _ACEOF | |
20380 | cat confdefs.h >>conftest.$ac_ext | |
20381 | cat >>conftest.$ac_ext <<_ACEOF | |
20382 | /* end confdefs.h. */ | |
ccc6cda3 | 20383 | |
f73dda09 JA |
20384 | long long ll = 1; int i = 63; |
20385 | int | |
20386 | main () | |
20387 | { | |
20388 | ||
20389 | long long llm = (long long) -1; | |
20390 | return ll << i | ll >> i | llm / ll | llm % ll; | |
20391 | ||
20392 | ; | |
20393 | return 0; | |
20394 | } | |
20395 | _ACEOF | |
20396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
20397 | if { (ac_try="$ac_link" |
20398 | case "(($ac_try" in | |
20399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20400 | *) ac_try_echo=$ac_try;; | |
20401 | esac | |
20402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20403 | $as_echo "$ac_try_echo") >&5 | |
20404 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 20405 | ac_status=$? |
0628567a JA |
20406 | grep -v '^ *+' conftest.er1 >conftest.err |
20407 | rm -f conftest.er1 | |
20408 | cat conftest.err >&5 | |
3185942a JA |
20409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20410 | (exit $ac_status); } && { | |
20411 | test -z "$ac_c_werror_flag" || | |
20412 | test ! -s conftest.err | |
20413 | } && test -s conftest$ac_exeext && { | |
20414 | test "$cross_compiling" = yes || | |
20415 | $as_test_x conftest$ac_exeext | |
20416 | }; then | |
f73dda09 | 20417 | bash_cv_type_long_long='long long' |
ccc6cda3 | 20418 | else |
3185942a | 20419 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20420 | sed 's/^/| /' conftest.$ac_ext >&5 |
20421 | ||
3185942a | 20422 | bash_cv_type_long_long='long' |
ccc6cda3 | 20423 | fi |
3185942a JA |
20424 | |
20425 | rm -rf conftest.dSYM | |
20426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 20427 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 20428 | fi |
3185942a JA |
20429 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5 |
20430 | $as_echo "$bash_cv_type_long_long" >&6; } | |
f73dda09 | 20431 | if test "$bash_cv_type_long_long" = 'long long'; then |
b80f6443 | 20432 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 20433 | #define HAVE_LONG_LONG 1 |
b80f6443 | 20434 | _ACEOF |
ccc6cda3 | 20435 | |
ccc6cda3 JA |
20436 | fi |
20437 | ||
b80f6443 | 20438 | |
3185942a JA |
20439 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
20440 | $as_echo_n "checking for unsigned long long... " >&6; } | |
f73dda09 | 20441 | if test "${bash_cv_type_unsigned_long_long+set}" = set; then |
3185942a | 20442 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
20443 | else |
20444 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20445 | /* confdefs.h. */ |
20446 | _ACEOF | |
20447 | cat confdefs.h >>conftest.$ac_ext | |
20448 | cat >>conftest.$ac_ext <<_ACEOF | |
20449 | /* end confdefs.h. */ | |
f73dda09 JA |
20450 | |
20451 | unsigned long long ull = 1; int i = 63; | |
20452 | int | |
20453 | main () | |
20454 | { | |
20455 | ||
20456 | unsigned long long ullmax = (unsigned long long) -1; | |
20457 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
20458 | ||
20459 | ; | |
20460 | return 0; | |
20461 | } | |
20462 | _ACEOF | |
20463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
20464 | if { (ac_try="$ac_link" |
20465 | case "(($ac_try" in | |
20466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20467 | *) ac_try_echo=$ac_try;; | |
20468 | esac | |
20469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20470 | $as_echo "$ac_try_echo") >&5 | |
20471 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 20472 | ac_status=$? |
0628567a JA |
20473 | grep -v '^ *+' conftest.er1 >conftest.err |
20474 | rm -f conftest.er1 | |
20475 | cat conftest.err >&5 | |
3185942a JA |
20476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20477 | (exit $ac_status); } && { | |
20478 | test -z "$ac_c_werror_flag" || | |
20479 | test ! -s conftest.err | |
20480 | } && test -s conftest$ac_exeext && { | |
20481 | test "$cross_compiling" = yes || | |
20482 | $as_test_x conftest$ac_exeext | |
20483 | }; then | |
f73dda09 JA |
20484 | bash_cv_type_unsigned_long_long='unsigned long long' |
20485 | else | |
3185942a | 20486 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20487 | sed 's/^/| /' conftest.$ac_ext >&5 |
20488 | ||
3185942a | 20489 | bash_cv_type_unsigned_long_long='unsigned long' |
f73dda09 | 20490 | fi |
3185942a JA |
20491 | |
20492 | rm -rf conftest.dSYM | |
20493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 20494 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 20495 | fi |
3185942a JA |
20496 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5 |
20497 | $as_echo "$bash_cv_type_unsigned_long_long" >&6; } | |
f73dda09 | 20498 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then |
b80f6443 | 20499 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 20500 | #define HAVE_UNSIGNED_LONG_LONG 1 |
b80f6443 | 20501 | _ACEOF |
ccc6cda3 JA |
20502 | |
20503 | fi | |
20504 | ||
b80f6443 | 20505 | |
3185942a JA |
20506 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
20507 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
f73dda09 | 20508 | if test "${ac_cv_type_signal+set}" = set; then |
3185942a | 20509 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 20510 | else |
f73dda09 | 20511 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20512 | /* confdefs.h. */ |
20513 | _ACEOF | |
20514 | cat confdefs.h >>conftest.$ac_ext | |
20515 | cat >>conftest.$ac_ext <<_ACEOF | |
20516 | /* end confdefs.h. */ | |
ccc6cda3 | 20517 | #include <sys/types.h> |
f73dda09 | 20518 | #include <signal.h> |
f73dda09 JA |
20519 | |
20520 | int | |
20521 | main () | |
20522 | { | |
3185942a | 20523 | return *(signal (0, 0)) (0) == 1; |
f73dda09 JA |
20524 | ; |
20525 | return 0; | |
20526 | } | |
20527 | _ACEOF | |
20528 | rm -f conftest.$ac_objext | |
3185942a JA |
20529 | if { (ac_try="$ac_compile" |
20530 | case "(($ac_try" in | |
20531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20532 | *) ac_try_echo=$ac_try;; | |
20533 | esac | |
20534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20535 | $as_echo "$ac_try_echo") >&5 | |
20536 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20537 | ac_status=$? |
0628567a JA |
20538 | grep -v '^ *+' conftest.er1 >conftest.err |
20539 | rm -f conftest.er1 | |
20540 | cat conftest.err >&5 | |
3185942a JA |
20541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20542 | (exit $ac_status); } && { | |
20543 | test -z "$ac_c_werror_flag" || | |
20544 | test ! -s conftest.err | |
20545 | } && test -s conftest.$ac_objext; then | |
20546 | ac_cv_type_signal=int | |
ccc6cda3 | 20547 | else |
3185942a | 20548 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20549 | sed 's/^/| /' conftest.$ac_ext >&5 |
20550 | ||
3185942a | 20551 | ac_cv_type_signal=void |
ccc6cda3 | 20552 | fi |
3185942a JA |
20553 | |
20554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20555 | fi |
3185942a JA |
20556 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
20557 | $as_echo "$ac_cv_type_signal" >&6; } | |
f73dda09 | 20558 | |
b80f6443 | 20559 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 20560 | #define RETSIGTYPE $ac_cv_type_signal |
b80f6443 JA |
20561 | _ACEOF |
20562 | ||
ccc6cda3 | 20563 | |
17345e5a JA |
20564 | { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5 |
20565 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
20566 | if test "${ac_cv_have_sig_atomic_t+set}" = set; then | |
20567 | $as_echo_n "(cached) " >&6 | |
20568 | else | |
20569 | cat >conftest.$ac_ext <<_ACEOF | |
20570 | /* confdefs.h. */ | |
20571 | _ACEOF | |
20572 | cat confdefs.h >>conftest.$ac_ext | |
20573 | cat >>conftest.$ac_ext <<_ACEOF | |
20574 | /* end confdefs.h. */ | |
20575 | ||
20576 | #include <signal.h> | |
20577 | ||
20578 | int | |
20579 | main () | |
20580 | { | |
20581 | sig_atomic_t x; | |
20582 | ; | |
20583 | return 0; | |
20584 | } | |
20585 | _ACEOF | |
20586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20587 | if { (ac_try="$ac_link" | |
20588 | case "(($ac_try" in | |
20589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20590 | *) ac_try_echo=$ac_try;; | |
20591 | esac | |
20592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20593 | $as_echo "$ac_try_echo") >&5 | |
20594 | (eval "$ac_link") 2>conftest.er1 | |
20595 | ac_status=$? | |
20596 | grep -v '^ *+' conftest.er1 >conftest.err | |
20597 | rm -f conftest.er1 | |
20598 | cat conftest.err >&5 | |
20599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20600 | (exit $ac_status); } && { | |
20601 | test -z "$ac_c_werror_flag" || | |
20602 | test ! -s conftest.err | |
20603 | } && test -s conftest$ac_exeext && { | |
20604 | test "$cross_compiling" = yes || | |
20605 | $as_test_x conftest$ac_exeext | |
20606 | }; then | |
20607 | ac_cv_have_sig_atomic_t=yes | |
20608 | else | |
20609 | $as_echo "$as_me: failed program was:" >&5 | |
20610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20611 | ||
20612 | ac_cv_have_sig_atomic_t=no | |
20613 | fi | |
20614 | ||
20615 | rm -rf conftest.dSYM | |
20616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20617 | conftest$ac_exeext conftest.$ac_ext | |
20618 | fi | |
20619 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5 | |
20620 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
20621 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
20622 | then | |
20623 | { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | |
20624 | $as_echo_n "checking for sig_atomic_t... " >&6; } | |
20625 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | |
20626 | $as_echo_n "(cached) " >&6 | |
20627 | else | |
20628 | ac_cv_type_sig_atomic_t=no | |
20629 | cat >conftest.$ac_ext <<_ACEOF | |
20630 | /* confdefs.h. */ | |
20631 | _ACEOF | |
20632 | cat confdefs.h >>conftest.$ac_ext | |
20633 | cat >>conftest.$ac_ext <<_ACEOF | |
20634 | /* end confdefs.h. */ | |
20635 | $ac_includes_default | |
20636 | int | |
20637 | main () | |
20638 | { | |
20639 | if (sizeof (sig_atomic_t)) | |
20640 | return 0; | |
20641 | ; | |
20642 | return 0; | |
20643 | } | |
20644 | _ACEOF | |
20645 | rm -f conftest.$ac_objext | |
20646 | if { (ac_try="$ac_compile" | |
20647 | case "(($ac_try" in | |
20648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20649 | *) ac_try_echo=$ac_try;; | |
20650 | esac | |
20651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20652 | $as_echo "$ac_try_echo") >&5 | |
20653 | (eval "$ac_compile") 2>conftest.er1 | |
20654 | ac_status=$? | |
20655 | grep -v '^ *+' conftest.er1 >conftest.err | |
20656 | rm -f conftest.er1 | |
20657 | cat conftest.err >&5 | |
20658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20659 | (exit $ac_status); } && { | |
20660 | test -z "$ac_c_werror_flag" || | |
20661 | test ! -s conftest.err | |
20662 | } && test -s conftest.$ac_objext; then | |
20663 | cat >conftest.$ac_ext <<_ACEOF | |
20664 | /* confdefs.h. */ | |
20665 | _ACEOF | |
20666 | cat confdefs.h >>conftest.$ac_ext | |
20667 | cat >>conftest.$ac_ext <<_ACEOF | |
20668 | /* end confdefs.h. */ | |
20669 | $ac_includes_default | |
20670 | int | |
20671 | main () | |
20672 | { | |
20673 | if (sizeof ((sig_atomic_t))) | |
20674 | return 0; | |
20675 | ; | |
20676 | return 0; | |
20677 | } | |
20678 | _ACEOF | |
20679 | rm -f conftest.$ac_objext | |
20680 | if { (ac_try="$ac_compile" | |
20681 | case "(($ac_try" in | |
20682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20683 | *) ac_try_echo=$ac_try;; | |
20684 | esac | |
20685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20686 | $as_echo "$ac_try_echo") >&5 | |
20687 | (eval "$ac_compile") 2>conftest.er1 | |
20688 | ac_status=$? | |
20689 | grep -v '^ *+' conftest.er1 >conftest.err | |
20690 | rm -f conftest.er1 | |
20691 | cat conftest.err >&5 | |
20692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20693 | (exit $ac_status); } && { | |
20694 | test -z "$ac_c_werror_flag" || | |
20695 | test ! -s conftest.err | |
20696 | } && test -s conftest.$ac_objext; then | |
20697 | : | |
20698 | else | |
20699 | $as_echo "$as_me: failed program was:" >&5 | |
20700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20701 | ||
20702 | ac_cv_type_sig_atomic_t=yes | |
20703 | fi | |
20704 | ||
20705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20706 | else | |
20707 | $as_echo "$as_me: failed program was:" >&5 | |
20708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20709 | ||
20710 | ||
20711 | fi | |
20712 | ||
20713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20714 | fi | |
20715 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | |
20716 | $as_echo "$ac_cv_type_sig_atomic_t" >&6; } | |
20717 | if test "x$ac_cv_type_sig_atomic_t" = x""yes; then | |
20718 | : | |
20719 | else | |
20720 | ||
20721 | cat >>confdefs.h <<_ACEOF | |
20722 | #define sig_atomic_t int | |
20723 | _ACEOF | |
20724 | ||
20725 | fi | |
20726 | ||
20727 | fi | |
20728 | ||
b80f6443 | 20729 | |
3185942a JA |
20730 | # The cast to long int works around a bug in the HP C Compiler |
20731 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20732 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20733 | # This bug is HP SR number 8606223364. | |
20734 | { $as_echo "$as_me:$LINENO: checking size of char" >&5 | |
20735 | $as_echo_n "checking size of char... " >&6; } | |
f73dda09 | 20736 | if test "${ac_cv_sizeof_char+set}" = set; then |
3185942a | 20737 | $as_echo_n "(cached) " >&6 |
f73dda09 | 20738 | else |
f73dda09 JA |
20739 | if test "$cross_compiling" = yes; then |
20740 | # Depending upon the size, compute the lo and hi bounds. | |
20741 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20742 | /* confdefs.h. */ |
20743 | _ACEOF | |
20744 | cat confdefs.h >>conftest.$ac_ext | |
20745 | cat >>conftest.$ac_ext <<_ACEOF | |
20746 | /* end confdefs.h. */ | |
f73dda09 JA |
20747 | $ac_includes_default |
20748 | int | |
20749 | main () | |
20750 | { | |
3185942a | 20751 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; |
b80f6443 JA |
20752 | test_array [0] = 0 |
20753 | ||
f73dda09 JA |
20754 | ; |
20755 | return 0; | |
20756 | } | |
20757 | _ACEOF | |
20758 | rm -f conftest.$ac_objext | |
3185942a JA |
20759 | if { (ac_try="$ac_compile" |
20760 | case "(($ac_try" in | |
20761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20762 | *) ac_try_echo=$ac_try;; | |
20763 | esac | |
20764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20765 | $as_echo "$ac_try_echo") >&5 | |
20766 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20767 | ac_status=$? |
0628567a JA |
20768 | grep -v '^ *+' conftest.er1 >conftest.err |
20769 | rm -f conftest.er1 | |
20770 | cat conftest.err >&5 | |
3185942a JA |
20771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20772 | (exit $ac_status); } && { | |
20773 | test -z "$ac_c_werror_flag" || | |
20774 | test ! -s conftest.err | |
20775 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20776 | ac_lo=0 ac_mid=0 |
20777 | while :; do | |
20778 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20779 | /* confdefs.h. */ |
20780 | _ACEOF | |
20781 | cat confdefs.h >>conftest.$ac_ext | |
20782 | cat >>conftest.$ac_ext <<_ACEOF | |
20783 | /* end confdefs.h. */ | |
f73dda09 JA |
20784 | $ac_includes_default |
20785 | int | |
20786 | main () | |
20787 | { | |
3185942a | 20788 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
b80f6443 JA |
20789 | test_array [0] = 0 |
20790 | ||
f73dda09 JA |
20791 | ; |
20792 | return 0; | |
20793 | } | |
20794 | _ACEOF | |
20795 | rm -f conftest.$ac_objext | |
3185942a JA |
20796 | if { (ac_try="$ac_compile" |
20797 | case "(($ac_try" in | |
20798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20799 | *) ac_try_echo=$ac_try;; | |
20800 | esac | |
20801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20802 | $as_echo "$ac_try_echo") >&5 | |
20803 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20804 | ac_status=$? |
0628567a JA |
20805 | grep -v '^ *+' conftest.er1 >conftest.err |
20806 | rm -f conftest.er1 | |
20807 | cat conftest.err >&5 | |
3185942a JA |
20808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20809 | (exit $ac_status); } && { | |
20810 | test -z "$ac_c_werror_flag" || | |
20811 | test ! -s conftest.err | |
20812 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20813 | ac_hi=$ac_mid; break |
20814 | else | |
3185942a | 20815 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20816 | sed 's/^/| /' conftest.$ac_ext >&5 |
20817 | ||
3185942a JA |
20818 | ac_lo=`expr $ac_mid + 1` |
20819 | if test $ac_lo -le $ac_mid; then | |
20820 | ac_lo= ac_hi= | |
20821 | break | |
20822 | fi | |
20823 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 20824 | fi |
3185942a JA |
20825 | |
20826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20827 | done |
20828 | else | |
3185942a | 20829 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20830 | sed 's/^/| /' conftest.$ac_ext >&5 |
20831 | ||
3185942a | 20832 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
20833 | /* confdefs.h. */ |
20834 | _ACEOF | |
20835 | cat confdefs.h >>conftest.$ac_ext | |
20836 | cat >>conftest.$ac_ext <<_ACEOF | |
20837 | /* end confdefs.h. */ | |
b80f6443 JA |
20838 | $ac_includes_default |
20839 | int | |
20840 | main () | |
20841 | { | |
3185942a | 20842 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; |
b80f6443 JA |
20843 | test_array [0] = 0 |
20844 | ||
20845 | ; | |
20846 | return 0; | |
20847 | } | |
20848 | _ACEOF | |
20849 | rm -f conftest.$ac_objext | |
3185942a JA |
20850 | if { (ac_try="$ac_compile" |
20851 | case "(($ac_try" in | |
20852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20853 | *) ac_try_echo=$ac_try;; | |
20854 | esac | |
20855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20856 | $as_echo "$ac_try_echo") >&5 | |
20857 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 20858 | ac_status=$? |
0628567a JA |
20859 | grep -v '^ *+' conftest.er1 >conftest.err |
20860 | rm -f conftest.er1 | |
20861 | cat conftest.err >&5 | |
3185942a JA |
20862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20863 | (exit $ac_status); } && { | |
20864 | test -z "$ac_c_werror_flag" || | |
20865 | test ! -s conftest.err | |
20866 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 20867 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
20868 | while :; do |
20869 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20870 | /* confdefs.h. */ |
20871 | _ACEOF | |
20872 | cat confdefs.h >>conftest.$ac_ext | |
20873 | cat >>conftest.$ac_ext <<_ACEOF | |
20874 | /* end confdefs.h. */ | |
f73dda09 JA |
20875 | $ac_includes_default |
20876 | int | |
20877 | main () | |
20878 | { | |
3185942a | 20879 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; |
b80f6443 JA |
20880 | test_array [0] = 0 |
20881 | ||
f73dda09 JA |
20882 | ; |
20883 | return 0; | |
20884 | } | |
20885 | _ACEOF | |
20886 | rm -f conftest.$ac_objext | |
3185942a JA |
20887 | if { (ac_try="$ac_compile" |
20888 | case "(($ac_try" in | |
20889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20890 | *) ac_try_echo=$ac_try;; | |
20891 | esac | |
20892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20893 | $as_echo "$ac_try_echo") >&5 | |
20894 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20895 | ac_status=$? |
0628567a JA |
20896 | grep -v '^ *+' conftest.er1 >conftest.err |
20897 | rm -f conftest.er1 | |
20898 | cat conftest.err >&5 | |
3185942a JA |
20899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20900 | (exit $ac_status); } && { | |
20901 | test -z "$ac_c_werror_flag" || | |
20902 | test ! -s conftest.err | |
20903 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20904 | ac_lo=$ac_mid; break |
20905 | else | |
3185942a | 20906 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20907 | sed 's/^/| /' conftest.$ac_ext >&5 |
20908 | ||
3185942a JA |
20909 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20910 | if test $ac_mid -le $ac_hi; then | |
20911 | ac_lo= ac_hi= | |
20912 | break | |
20913 | fi | |
20914 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 20915 | fi |
3185942a JA |
20916 | |
20917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20918 | done |
b80f6443 | 20919 | else |
3185942a | 20920 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20921 | sed 's/^/| /' conftest.$ac_ext >&5 |
20922 | ||
3185942a | 20923 | ac_lo= ac_hi= |
b80f6443 | 20924 | fi |
3185942a JA |
20925 | |
20926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 20927 | fi |
3185942a JA |
20928 | |
20929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
20930 | # Binary search between lo and hi bounds. |
20931 | while test "x$ac_lo" != "x$ac_hi"; do | |
20932 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20933 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20934 | /* confdefs.h. */ |
20935 | _ACEOF | |
20936 | cat confdefs.h >>conftest.$ac_ext | |
20937 | cat >>conftest.$ac_ext <<_ACEOF | |
20938 | /* end confdefs.h. */ | |
f73dda09 JA |
20939 | $ac_includes_default |
20940 | int | |
20941 | main () | |
20942 | { | |
3185942a | 20943 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; |
b80f6443 JA |
20944 | test_array [0] = 0 |
20945 | ||
f73dda09 JA |
20946 | ; |
20947 | return 0; | |
20948 | } | |
20949 | _ACEOF | |
20950 | rm -f conftest.$ac_objext | |
3185942a JA |
20951 | if { (ac_try="$ac_compile" |
20952 | case "(($ac_try" in | |
20953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20954 | *) ac_try_echo=$ac_try;; | |
20955 | esac | |
20956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20957 | $as_echo "$ac_try_echo") >&5 | |
20958 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 20959 | ac_status=$? |
0628567a JA |
20960 | grep -v '^ *+' conftest.er1 >conftest.err |
20961 | rm -f conftest.er1 | |
20962 | cat conftest.err >&5 | |
3185942a JA |
20963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20964 | (exit $ac_status); } && { | |
20965 | test -z "$ac_c_werror_flag" || | |
20966 | test ! -s conftest.err | |
20967 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
20968 | ac_hi=$ac_mid |
20969 | else | |
3185942a | 20970 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
20971 | sed 's/^/| /' conftest.$ac_ext >&5 |
20972 | ||
3185942a | 20973 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 20974 | fi |
3185942a JA |
20975 | |
20976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 20977 | done |
b80f6443 JA |
20978 | case $ac_lo in |
20979 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
3185942a JA |
20980 | '') if test "$ac_cv_type_char" = yes; then |
20981 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20983 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
0628567a | 20984 | See \`config.log' for more details." >&5 |
3185942a | 20985 | $as_echo "$as_me: error: cannot compute sizeof (char) |
0628567a | 20986 | See \`config.log' for more details." >&2;} |
3185942a JA |
20987 | { (exit 77); exit 77; }; }; } |
20988 | else | |
20989 | ac_cv_sizeof_char=0 | |
20990 | fi ;; | |
b80f6443 | 20991 | esac |
f73dda09 JA |
20992 | else |
20993 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
20994 | /* confdefs.h. */ |
20995 | _ACEOF | |
20996 | cat confdefs.h >>conftest.$ac_ext | |
20997 | cat >>conftest.$ac_ext <<_ACEOF | |
20998 | /* end confdefs.h. */ | |
f73dda09 | 20999 | $ac_includes_default |
3185942a JA |
21000 | static long int longval () { return (long int) (sizeof (char)); } |
21001 | static unsigned long int ulongval () { return (long int) (sizeof (char)); } | |
b80f6443 JA |
21002 | #include <stdio.h> |
21003 | #include <stdlib.h> | |
f73dda09 JA |
21004 | int |
21005 | main () | |
21006 | { | |
b80f6443 JA |
21007 | |
21008 | FILE *f = fopen ("conftest.val", "w"); | |
21009 | if (! f) | |
3185942a JA |
21010 | return 1; |
21011 | if (((long int) (sizeof (char))) < 0) | |
b80f6443 | 21012 | { |
3185942a JA |
21013 | long int i = longval (); |
21014 | if (i != ((long int) (sizeof (char)))) | |
21015 | return 1; | |
21016 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21017 | } |
21018 | else | |
21019 | { | |
3185942a JA |
21020 | unsigned long int i = ulongval (); |
21021 | if (i != ((long int) (sizeof (char)))) | |
21022 | return 1; | |
21023 | fprintf (f, "%lu", i); | |
b80f6443 | 21024 | } |
3185942a JA |
21025 | /* Do not output a trailing newline, as this causes \r\n confusion |
21026 | on some platforms. */ | |
21027 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21028 | |
f73dda09 JA |
21029 | ; |
21030 | return 0; | |
21031 | } | |
21032 | _ACEOF | |
21033 | rm -f conftest$ac_exeext | |
3185942a JA |
21034 | if { (ac_try="$ac_link" |
21035 | case "(($ac_try" in | |
21036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21037 | *) ac_try_echo=$ac_try;; | |
21038 | esac | |
21039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21040 | $as_echo "$ac_try_echo") >&5 | |
21041 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21042 | ac_status=$? |
3185942a | 21043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21044 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21045 | { (case "(($ac_try" in |
21046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21047 | *) ac_try_echo=$ac_try;; | |
21048 | esac | |
21049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21050 | $as_echo "$ac_try_echo") >&5 | |
21051 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21052 | ac_status=$? |
3185942a | 21053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21054 | (exit $ac_status); }; }; then |
21055 | ac_cv_sizeof_char=`cat conftest.val` | |
ccc6cda3 | 21056 | else |
3185942a JA |
21057 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21058 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21059 | sed 's/^/| /' conftest.$ac_ext >&5 |
21060 | ||
b80f6443 | 21061 | ( exit $ac_status ) |
3185942a JA |
21062 | if test "$ac_cv_type_char" = yes; then |
21063 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21065 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
0628567a | 21066 | See \`config.log' for more details." >&5 |
3185942a | 21067 | $as_echo "$as_me: error: cannot compute sizeof (char) |
0628567a | 21068 | See \`config.log' for more details." >&2;} |
3185942a JA |
21069 | { (exit 77); exit 77; }; }; } |
21070 | else | |
21071 | ac_cv_sizeof_char=0 | |
21072 | fi | |
ccc6cda3 | 21073 | fi |
3185942a JA |
21074 | rm -rf conftest.dSYM |
21075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21076 | fi |
21077 | rm -f conftest.val | |
f73dda09 | 21078 | fi |
3185942a JA |
21079 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
21080 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
21081 | ||
21082 | ||
21083 | ||
b80f6443 | 21084 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 21085 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
b80f6443 | 21086 | _ACEOF |
ccc6cda3 | 21087 | |
b80f6443 | 21088 | |
3185942a JA |
21089 | # The cast to long int works around a bug in the HP C Compiler |
21090 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21091 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21092 | # This bug is HP SR number 8606223364. | |
21093 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 | |
21094 | $as_echo_n "checking size of short... " >&6; } | |
21095 | if test "${ac_cv_sizeof_short+set}" = set; then | |
21096 | $as_echo_n "(cached) " >&6 | |
f73dda09 | 21097 | else |
3185942a JA |
21098 | if test "$cross_compiling" = yes; then |
21099 | # Depending upon the size, compute the lo and hi bounds. | |
21100 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21101 | /* confdefs.h. */ |
21102 | _ACEOF | |
21103 | cat confdefs.h >>conftest.$ac_ext | |
21104 | cat >>conftest.$ac_ext <<_ACEOF | |
21105 | /* end confdefs.h. */ | |
f73dda09 JA |
21106 | $ac_includes_default |
21107 | int | |
21108 | main () | |
21109 | { | |
3185942a JA |
21110 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
21111 | test_array [0] = 0 | |
21112 | ||
f73dda09 JA |
21113 | ; |
21114 | return 0; | |
21115 | } | |
21116 | _ACEOF | |
21117 | rm -f conftest.$ac_objext | |
3185942a JA |
21118 | if { (ac_try="$ac_compile" |
21119 | case "(($ac_try" in | |
21120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21121 | *) ac_try_echo=$ac_try;; | |
21122 | esac | |
21123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21124 | $as_echo "$ac_try_echo") >&5 | |
21125 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21126 | ac_status=$? |
0628567a JA |
21127 | grep -v '^ *+' conftest.er1 >conftest.err |
21128 | rm -f conftest.er1 | |
21129 | cat conftest.err >&5 | |
3185942a JA |
21130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21131 | (exit $ac_status); } && { | |
21132 | test -z "$ac_c_werror_flag" || | |
21133 | test ! -s conftest.err | |
21134 | } && test -s conftest.$ac_objext; then | |
21135 | ac_lo=0 ac_mid=0 | |
21136 | while :; do | |
21137 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21138 | /* confdefs.h. */ |
21139 | _ACEOF | |
21140 | cat confdefs.h >>conftest.$ac_ext | |
21141 | cat >>conftest.$ac_ext <<_ACEOF | |
21142 | /* end confdefs.h. */ | |
f73dda09 JA |
21143 | $ac_includes_default |
21144 | int | |
21145 | main () | |
21146 | { | |
3185942a | 21147 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b80f6443 JA |
21148 | test_array [0] = 0 |
21149 | ||
f73dda09 JA |
21150 | ; |
21151 | return 0; | |
21152 | } | |
21153 | _ACEOF | |
21154 | rm -f conftest.$ac_objext | |
3185942a JA |
21155 | if { (ac_try="$ac_compile" |
21156 | case "(($ac_try" in | |
21157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21158 | *) ac_try_echo=$ac_try;; | |
21159 | esac | |
21160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21161 | $as_echo "$ac_try_echo") >&5 | |
21162 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21163 | ac_status=$? |
0628567a JA |
21164 | grep -v '^ *+' conftest.er1 >conftest.err |
21165 | rm -f conftest.er1 | |
21166 | cat conftest.err >&5 | |
3185942a JA |
21167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21168 | (exit $ac_status); } && { | |
21169 | test -z "$ac_c_werror_flag" || | |
21170 | test ! -s conftest.err | |
21171 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21172 | ac_hi=$ac_mid; break |
21173 | else | |
3185942a | 21174 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21175 | sed 's/^/| /' conftest.$ac_ext >&5 |
21176 | ||
3185942a JA |
21177 | ac_lo=`expr $ac_mid + 1` |
21178 | if test $ac_lo -le $ac_mid; then | |
21179 | ac_lo= ac_hi= | |
21180 | break | |
21181 | fi | |
21182 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 21183 | fi |
3185942a JA |
21184 | |
21185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21186 | done |
21187 | else | |
3185942a | 21188 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21189 | sed 's/^/| /' conftest.$ac_ext >&5 |
21190 | ||
3185942a | 21191 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21192 | /* confdefs.h. */ |
21193 | _ACEOF | |
21194 | cat confdefs.h >>conftest.$ac_ext | |
21195 | cat >>conftest.$ac_ext <<_ACEOF | |
21196 | /* end confdefs.h. */ | |
b80f6443 JA |
21197 | $ac_includes_default |
21198 | int | |
21199 | main () | |
21200 | { | |
3185942a | 21201 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
b80f6443 JA |
21202 | test_array [0] = 0 |
21203 | ||
21204 | ; | |
21205 | return 0; | |
21206 | } | |
21207 | _ACEOF | |
21208 | rm -f conftest.$ac_objext | |
3185942a JA |
21209 | if { (ac_try="$ac_compile" |
21210 | case "(($ac_try" in | |
21211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21212 | *) ac_try_echo=$ac_try;; | |
21213 | esac | |
21214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21215 | $as_echo "$ac_try_echo") >&5 | |
21216 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 21217 | ac_status=$? |
0628567a JA |
21218 | grep -v '^ *+' conftest.er1 >conftest.err |
21219 | rm -f conftest.er1 | |
21220 | cat conftest.err >&5 | |
3185942a JA |
21221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21222 | (exit $ac_status); } && { | |
21223 | test -z "$ac_c_werror_flag" || | |
21224 | test ! -s conftest.err | |
21225 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 21226 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
21227 | while :; do |
21228 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21229 | /* confdefs.h. */ |
21230 | _ACEOF | |
21231 | cat confdefs.h >>conftest.$ac_ext | |
21232 | cat >>conftest.$ac_ext <<_ACEOF | |
21233 | /* end confdefs.h. */ | |
f73dda09 JA |
21234 | $ac_includes_default |
21235 | int | |
21236 | main () | |
21237 | { | |
3185942a | 21238 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
b80f6443 JA |
21239 | test_array [0] = 0 |
21240 | ||
f73dda09 JA |
21241 | ; |
21242 | return 0; | |
21243 | } | |
21244 | _ACEOF | |
21245 | rm -f conftest.$ac_objext | |
3185942a JA |
21246 | if { (ac_try="$ac_compile" |
21247 | case "(($ac_try" in | |
21248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21249 | *) ac_try_echo=$ac_try;; | |
21250 | esac | |
21251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21252 | $as_echo "$ac_try_echo") >&5 | |
21253 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21254 | ac_status=$? |
0628567a JA |
21255 | grep -v '^ *+' conftest.er1 >conftest.err |
21256 | rm -f conftest.er1 | |
21257 | cat conftest.err >&5 | |
3185942a JA |
21258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21259 | (exit $ac_status); } && { | |
21260 | test -z "$ac_c_werror_flag" || | |
21261 | test ! -s conftest.err | |
21262 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21263 | ac_lo=$ac_mid; break |
21264 | else | |
3185942a | 21265 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21266 | sed 's/^/| /' conftest.$ac_ext >&5 |
21267 | ||
3185942a JA |
21268 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21269 | if test $ac_mid -le $ac_hi; then | |
21270 | ac_lo= ac_hi= | |
21271 | break | |
21272 | fi | |
21273 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21274 | fi |
3185942a JA |
21275 | |
21276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21277 | done |
b80f6443 | 21278 | else |
3185942a | 21279 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21280 | sed 's/^/| /' conftest.$ac_ext >&5 |
21281 | ||
3185942a | 21282 | ac_lo= ac_hi= |
b80f6443 | 21283 | fi |
3185942a JA |
21284 | |
21285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 21286 | fi |
3185942a JA |
21287 | |
21288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21289 | # Binary search between lo and hi bounds. |
21290 | while test "x$ac_lo" != "x$ac_hi"; do | |
21291 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21292 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21293 | /* confdefs.h. */ |
21294 | _ACEOF | |
21295 | cat confdefs.h >>conftest.$ac_ext | |
21296 | cat >>conftest.$ac_ext <<_ACEOF | |
21297 | /* end confdefs.h. */ | |
f73dda09 JA |
21298 | $ac_includes_default |
21299 | int | |
21300 | main () | |
21301 | { | |
3185942a | 21302 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
b80f6443 JA |
21303 | test_array [0] = 0 |
21304 | ||
f73dda09 JA |
21305 | ; |
21306 | return 0; | |
21307 | } | |
21308 | _ACEOF | |
21309 | rm -f conftest.$ac_objext | |
3185942a JA |
21310 | if { (ac_try="$ac_compile" |
21311 | case "(($ac_try" in | |
21312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21313 | *) ac_try_echo=$ac_try;; | |
21314 | esac | |
21315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21316 | $as_echo "$ac_try_echo") >&5 | |
21317 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21318 | ac_status=$? |
0628567a JA |
21319 | grep -v '^ *+' conftest.er1 >conftest.err |
21320 | rm -f conftest.er1 | |
21321 | cat conftest.err >&5 | |
3185942a JA |
21322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21323 | (exit $ac_status); } && { | |
21324 | test -z "$ac_c_werror_flag" || | |
21325 | test ! -s conftest.err | |
21326 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21327 | ac_hi=$ac_mid |
21328 | else | |
3185942a | 21329 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21330 | sed 's/^/| /' conftest.$ac_ext >&5 |
21331 | ||
3185942a | 21332 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 21333 | fi |
3185942a JA |
21334 | |
21335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21336 | done |
b80f6443 JA |
21337 | case $ac_lo in |
21338 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
3185942a JA |
21339 | '') if test "$ac_cv_type_short" = yes; then |
21340 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21342 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
0628567a | 21343 | See \`config.log' for more details." >&5 |
3185942a | 21344 | $as_echo "$as_me: error: cannot compute sizeof (short) |
0628567a | 21345 | See \`config.log' for more details." >&2;} |
3185942a JA |
21346 | { (exit 77); exit 77; }; }; } |
21347 | else | |
21348 | ac_cv_sizeof_short=0 | |
21349 | fi ;; | |
b80f6443 | 21350 | esac |
ccc6cda3 | 21351 | else |
f73dda09 | 21352 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21353 | /* confdefs.h. */ |
21354 | _ACEOF | |
21355 | cat confdefs.h >>conftest.$ac_ext | |
21356 | cat >>conftest.$ac_ext <<_ACEOF | |
21357 | /* end confdefs.h. */ | |
f73dda09 | 21358 | $ac_includes_default |
3185942a JA |
21359 | static long int longval () { return (long int) (sizeof (short)); } |
21360 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } | |
b80f6443 JA |
21361 | #include <stdio.h> |
21362 | #include <stdlib.h> | |
f73dda09 JA |
21363 | int |
21364 | main () | |
21365 | { | |
b80f6443 JA |
21366 | |
21367 | FILE *f = fopen ("conftest.val", "w"); | |
21368 | if (! f) | |
3185942a JA |
21369 | return 1; |
21370 | if (((long int) (sizeof (short))) < 0) | |
b80f6443 | 21371 | { |
3185942a JA |
21372 | long int i = longval (); |
21373 | if (i != ((long int) (sizeof (short)))) | |
21374 | return 1; | |
21375 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21376 | } |
21377 | else | |
21378 | { | |
3185942a JA |
21379 | unsigned long int i = ulongval (); |
21380 | if (i != ((long int) (sizeof (short)))) | |
21381 | return 1; | |
21382 | fprintf (f, "%lu", i); | |
b80f6443 | 21383 | } |
3185942a JA |
21384 | /* Do not output a trailing newline, as this causes \r\n confusion |
21385 | on some platforms. */ | |
21386 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21387 | |
f73dda09 JA |
21388 | ; |
21389 | return 0; | |
21390 | } | |
21391 | _ACEOF | |
21392 | rm -f conftest$ac_exeext | |
3185942a JA |
21393 | if { (ac_try="$ac_link" |
21394 | case "(($ac_try" in | |
21395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21396 | *) ac_try_echo=$ac_try;; | |
21397 | esac | |
21398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21399 | $as_echo "$ac_try_echo") >&5 | |
21400 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21401 | ac_status=$? |
3185942a | 21402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21404 | { (case "(($ac_try" in |
21405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21406 | *) ac_try_echo=$ac_try;; | |
21407 | esac | |
21408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21409 | $as_echo "$ac_try_echo") >&5 | |
21410 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21411 | ac_status=$? |
3185942a | 21412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21413 | (exit $ac_status); }; }; then |
21414 | ac_cv_sizeof_short=`cat conftest.val` | |
ccc6cda3 | 21415 | else |
3185942a JA |
21416 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21417 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21418 | sed 's/^/| /' conftest.$ac_ext >&5 |
21419 | ||
b80f6443 | 21420 | ( exit $ac_status ) |
3185942a JA |
21421 | if test "$ac_cv_type_short" = yes; then |
21422 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21423 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21424 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
0628567a | 21425 | See \`config.log' for more details." >&5 |
3185942a | 21426 | $as_echo "$as_me: error: cannot compute sizeof (short) |
0628567a | 21427 | See \`config.log' for more details." >&2;} |
3185942a JA |
21428 | { (exit 77); exit 77; }; }; } |
21429 | else | |
21430 | ac_cv_sizeof_short=0 | |
21431 | fi | |
ccc6cda3 | 21432 | fi |
3185942a JA |
21433 | rm -rf conftest.dSYM |
21434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 21435 | fi |
f73dda09 | 21436 | rm -f conftest.val |
ccc6cda3 | 21437 | fi |
3185942a JA |
21438 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
21439 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ccc6cda3 | 21440 | |
b80f6443 | 21441 | |
3185942a JA |
21442 | |
21443 | cat >>confdefs.h <<_ACEOF | |
21444 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
f73dda09 | 21445 | _ACEOF |
0628567a | 21446 | |
f73dda09 | 21447 | |
3185942a JA |
21448 | # The cast to long int works around a bug in the HP C Compiler |
21449 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21450 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21451 | # This bug is HP SR number 8606223364. | |
21452 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 | |
21453 | $as_echo_n "checking size of int... " >&6; } | |
f73dda09 | 21454 | if test "${ac_cv_sizeof_int+set}" = set; then |
3185942a | 21455 | $as_echo_n "(cached) " >&6 |
f73dda09 | 21456 | else |
f73dda09 JA |
21457 | if test "$cross_compiling" = yes; then |
21458 | # Depending upon the size, compute the lo and hi bounds. | |
21459 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21460 | /* confdefs.h. */ |
21461 | _ACEOF | |
21462 | cat confdefs.h >>conftest.$ac_ext | |
21463 | cat >>conftest.$ac_ext <<_ACEOF | |
21464 | /* end confdefs.h. */ | |
f73dda09 JA |
21465 | $ac_includes_default |
21466 | int | |
21467 | main () | |
21468 | { | |
3185942a | 21469 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
b80f6443 JA |
21470 | test_array [0] = 0 |
21471 | ||
f73dda09 JA |
21472 | ; |
21473 | return 0; | |
21474 | } | |
21475 | _ACEOF | |
21476 | rm -f conftest.$ac_objext | |
3185942a JA |
21477 | if { (ac_try="$ac_compile" |
21478 | case "(($ac_try" in | |
21479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21480 | *) ac_try_echo=$ac_try;; | |
21481 | esac | |
21482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21483 | $as_echo "$ac_try_echo") >&5 | |
21484 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21485 | ac_status=$? |
0628567a JA |
21486 | grep -v '^ *+' conftest.er1 >conftest.err |
21487 | rm -f conftest.er1 | |
21488 | cat conftest.err >&5 | |
3185942a JA |
21489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21490 | (exit $ac_status); } && { | |
21491 | test -z "$ac_c_werror_flag" || | |
21492 | test ! -s conftest.err | |
21493 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21494 | ac_lo=0 ac_mid=0 |
21495 | while :; do | |
21496 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21497 | /* confdefs.h. */ |
21498 | _ACEOF | |
21499 | cat confdefs.h >>conftest.$ac_ext | |
21500 | cat >>conftest.$ac_ext <<_ACEOF | |
21501 | /* end confdefs.h. */ | |
f73dda09 JA |
21502 | $ac_includes_default |
21503 | int | |
21504 | main () | |
21505 | { | |
3185942a | 21506 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b80f6443 JA |
21507 | test_array [0] = 0 |
21508 | ||
f73dda09 JA |
21509 | ; |
21510 | return 0; | |
21511 | } | |
21512 | _ACEOF | |
21513 | rm -f conftest.$ac_objext | |
3185942a JA |
21514 | if { (ac_try="$ac_compile" |
21515 | case "(($ac_try" in | |
21516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21517 | *) ac_try_echo=$ac_try;; | |
21518 | esac | |
21519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21520 | $as_echo "$ac_try_echo") >&5 | |
21521 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21522 | ac_status=$? |
0628567a JA |
21523 | grep -v '^ *+' conftest.er1 >conftest.err |
21524 | rm -f conftest.er1 | |
21525 | cat conftest.err >&5 | |
3185942a JA |
21526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21527 | (exit $ac_status); } && { | |
21528 | test -z "$ac_c_werror_flag" || | |
21529 | test ! -s conftest.err | |
21530 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21531 | ac_hi=$ac_mid; break |
21532 | else | |
3185942a | 21533 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21534 | sed 's/^/| /' conftest.$ac_ext >&5 |
21535 | ||
3185942a JA |
21536 | ac_lo=`expr $ac_mid + 1` |
21537 | if test $ac_lo -le $ac_mid; then | |
21538 | ac_lo= ac_hi= | |
21539 | break | |
21540 | fi | |
21541 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 21542 | fi |
3185942a JA |
21543 | |
21544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21545 | done |
21546 | else | |
3185942a | 21547 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21548 | sed 's/^/| /' conftest.$ac_ext >&5 |
21549 | ||
3185942a | 21550 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21551 | /* confdefs.h. */ |
21552 | _ACEOF | |
21553 | cat confdefs.h >>conftest.$ac_ext | |
21554 | cat >>conftest.$ac_ext <<_ACEOF | |
21555 | /* end confdefs.h. */ | |
b80f6443 JA |
21556 | $ac_includes_default |
21557 | int | |
21558 | main () | |
21559 | { | |
3185942a | 21560 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
b80f6443 JA |
21561 | test_array [0] = 0 |
21562 | ||
21563 | ; | |
21564 | return 0; | |
21565 | } | |
21566 | _ACEOF | |
21567 | rm -f conftest.$ac_objext | |
3185942a JA |
21568 | if { (ac_try="$ac_compile" |
21569 | case "(($ac_try" in | |
21570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21571 | *) ac_try_echo=$ac_try;; | |
21572 | esac | |
21573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21574 | $as_echo "$ac_try_echo") >&5 | |
21575 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 21576 | ac_status=$? |
0628567a JA |
21577 | grep -v '^ *+' conftest.er1 >conftest.err |
21578 | rm -f conftest.er1 | |
21579 | cat conftest.err >&5 | |
3185942a JA |
21580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21581 | (exit $ac_status); } && { | |
21582 | test -z "$ac_c_werror_flag" || | |
21583 | test ! -s conftest.err | |
21584 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 21585 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
21586 | while :; do |
21587 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21588 | /* confdefs.h. */ |
21589 | _ACEOF | |
21590 | cat confdefs.h >>conftest.$ac_ext | |
21591 | cat >>conftest.$ac_ext <<_ACEOF | |
21592 | /* end confdefs.h. */ | |
f73dda09 JA |
21593 | $ac_includes_default |
21594 | int | |
21595 | main () | |
21596 | { | |
3185942a | 21597 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
b80f6443 JA |
21598 | test_array [0] = 0 |
21599 | ||
f73dda09 JA |
21600 | ; |
21601 | return 0; | |
21602 | } | |
21603 | _ACEOF | |
21604 | rm -f conftest.$ac_objext | |
3185942a JA |
21605 | if { (ac_try="$ac_compile" |
21606 | case "(($ac_try" in | |
21607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21608 | *) ac_try_echo=$ac_try;; | |
21609 | esac | |
21610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21611 | $as_echo "$ac_try_echo") >&5 | |
21612 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21613 | ac_status=$? |
0628567a JA |
21614 | grep -v '^ *+' conftest.er1 >conftest.err |
21615 | rm -f conftest.er1 | |
21616 | cat conftest.err >&5 | |
3185942a JA |
21617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21618 | (exit $ac_status); } && { | |
21619 | test -z "$ac_c_werror_flag" || | |
21620 | test ! -s conftest.err | |
21621 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21622 | ac_lo=$ac_mid; break |
21623 | else | |
3185942a | 21624 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21625 | sed 's/^/| /' conftest.$ac_ext >&5 |
21626 | ||
3185942a JA |
21627 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21628 | if test $ac_mid -le $ac_hi; then | |
21629 | ac_lo= ac_hi= | |
21630 | break | |
21631 | fi | |
21632 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21633 | fi |
3185942a JA |
21634 | |
21635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21636 | done |
b80f6443 | 21637 | else |
3185942a | 21638 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21639 | sed 's/^/| /' conftest.$ac_ext >&5 |
21640 | ||
3185942a | 21641 | ac_lo= ac_hi= |
b80f6443 | 21642 | fi |
3185942a JA |
21643 | |
21644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 21645 | fi |
3185942a JA |
21646 | |
21647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
21648 | # Binary search between lo and hi bounds. |
21649 | while test "x$ac_lo" != "x$ac_hi"; do | |
21650 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21651 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21652 | /* confdefs.h. */ |
21653 | _ACEOF | |
21654 | cat confdefs.h >>conftest.$ac_ext | |
21655 | cat >>conftest.$ac_ext <<_ACEOF | |
21656 | /* end confdefs.h. */ | |
f73dda09 JA |
21657 | $ac_includes_default |
21658 | int | |
21659 | main () | |
21660 | { | |
3185942a | 21661 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
b80f6443 JA |
21662 | test_array [0] = 0 |
21663 | ||
f73dda09 JA |
21664 | ; |
21665 | return 0; | |
21666 | } | |
21667 | _ACEOF | |
21668 | rm -f conftest.$ac_objext | |
3185942a JA |
21669 | if { (ac_try="$ac_compile" |
21670 | case "(($ac_try" in | |
21671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21672 | *) ac_try_echo=$ac_try;; | |
21673 | esac | |
21674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21675 | $as_echo "$ac_try_echo") >&5 | |
21676 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
21677 | ac_status=$? |
21678 | grep -v '^ *+' conftest.er1 >conftest.err | |
21679 | rm -f conftest.er1 | |
21680 | cat conftest.err >&5 | |
3185942a JA |
21681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21682 | (exit $ac_status); } && { | |
21683 | test -z "$ac_c_werror_flag" || | |
21684 | test ! -s conftest.err | |
21685 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21686 | ac_hi=$ac_mid |
21687 | else | |
3185942a | 21688 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21689 | sed 's/^/| /' conftest.$ac_ext >&5 |
21690 | ||
3185942a | 21691 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 21692 | fi |
3185942a JA |
21693 | |
21694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21695 | done |
b80f6443 JA |
21696 | case $ac_lo in |
21697 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
3185942a JA |
21698 | '') if test "$ac_cv_type_int" = yes; then |
21699 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21701 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
0628567a | 21702 | See \`config.log' for more details." >&5 |
3185942a | 21703 | $as_echo "$as_me: error: cannot compute sizeof (int) |
0628567a | 21704 | See \`config.log' for more details." >&2;} |
3185942a JA |
21705 | { (exit 77); exit 77; }; }; } |
21706 | else | |
21707 | ac_cv_sizeof_int=0 | |
21708 | fi ;; | |
b80f6443 | 21709 | esac |
ccc6cda3 | 21710 | else |
f73dda09 | 21711 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21712 | /* confdefs.h. */ |
21713 | _ACEOF | |
21714 | cat confdefs.h >>conftest.$ac_ext | |
21715 | cat >>conftest.$ac_ext <<_ACEOF | |
21716 | /* end confdefs.h. */ | |
f73dda09 | 21717 | $ac_includes_default |
3185942a JA |
21718 | static long int longval () { return (long int) (sizeof (int)); } |
21719 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } | |
b80f6443 JA |
21720 | #include <stdio.h> |
21721 | #include <stdlib.h> | |
f73dda09 JA |
21722 | int |
21723 | main () | |
21724 | { | |
b80f6443 JA |
21725 | |
21726 | FILE *f = fopen ("conftest.val", "w"); | |
21727 | if (! f) | |
3185942a JA |
21728 | return 1; |
21729 | if (((long int) (sizeof (int))) < 0) | |
b80f6443 | 21730 | { |
3185942a JA |
21731 | long int i = longval (); |
21732 | if (i != ((long int) (sizeof (int)))) | |
21733 | return 1; | |
21734 | fprintf (f, "%ld", i); | |
b80f6443 JA |
21735 | } |
21736 | else | |
21737 | { | |
3185942a JA |
21738 | unsigned long int i = ulongval (); |
21739 | if (i != ((long int) (sizeof (int)))) | |
21740 | return 1; | |
21741 | fprintf (f, "%lu", i); | |
b80f6443 | 21742 | } |
3185942a JA |
21743 | /* Do not output a trailing newline, as this causes \r\n confusion |
21744 | on some platforms. */ | |
21745 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 21746 | |
f73dda09 JA |
21747 | ; |
21748 | return 0; | |
21749 | } | |
21750 | _ACEOF | |
21751 | rm -f conftest$ac_exeext | |
3185942a JA |
21752 | if { (ac_try="$ac_link" |
21753 | case "(($ac_try" in | |
21754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21755 | *) ac_try_echo=$ac_try;; | |
21756 | esac | |
21757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21758 | $as_echo "$ac_try_echo") >&5 | |
21759 | (eval "$ac_link") 2>&5 | |
f73dda09 | 21760 | ac_status=$? |
3185942a | 21761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 21762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
21763 | { (case "(($ac_try" in |
21764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21765 | *) ac_try_echo=$ac_try;; | |
21766 | esac | |
21767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21768 | $as_echo "$ac_try_echo") >&5 | |
21769 | (eval "$ac_try") 2>&5 | |
f73dda09 | 21770 | ac_status=$? |
3185942a | 21771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
21772 | (exit $ac_status); }; }; then |
21773 | ac_cv_sizeof_int=`cat conftest.val` | |
ccc6cda3 | 21774 | else |
3185942a JA |
21775 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21776 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
21777 | sed 's/^/| /' conftest.$ac_ext >&5 |
21778 | ||
b80f6443 | 21779 | ( exit $ac_status ) |
3185942a JA |
21780 | if test "$ac_cv_type_int" = yes; then |
21781 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
21782 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21783 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
0628567a | 21784 | See \`config.log' for more details." >&5 |
3185942a | 21785 | $as_echo "$as_me: error: cannot compute sizeof (int) |
0628567a | 21786 | See \`config.log' for more details." >&2;} |
3185942a JA |
21787 | { (exit 77); exit 77; }; }; } |
21788 | else | |
21789 | ac_cv_sizeof_int=0 | |
21790 | fi | |
ccc6cda3 | 21791 | fi |
3185942a JA |
21792 | rm -rf conftest.dSYM |
21793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 21794 | fi |
f73dda09 | 21795 | rm -f conftest.val |
ccc6cda3 | 21796 | fi |
3185942a JA |
21797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
21798 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
ccc6cda3 | 21799 | |
b80f6443 | 21800 | |
3185942a JA |
21801 | |
21802 | cat >>confdefs.h <<_ACEOF | |
21803 | #define SIZEOF_INT $ac_cv_sizeof_int | |
f73dda09 | 21804 | _ACEOF |
0628567a | 21805 | |
f73dda09 | 21806 | |
3185942a JA |
21807 | # The cast to long int works around a bug in the HP C Compiler |
21808 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21809 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21810 | # This bug is HP SR number 8606223364. | |
21811 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 | |
21812 | $as_echo_n "checking size of long... " >&6; } | |
f73dda09 | 21813 | if test "${ac_cv_sizeof_long+set}" = set; then |
3185942a | 21814 | $as_echo_n "(cached) " >&6 |
f73dda09 | 21815 | else |
f73dda09 JA |
21816 | if test "$cross_compiling" = yes; then |
21817 | # Depending upon the size, compute the lo and hi bounds. | |
21818 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21819 | /* confdefs.h. */ |
21820 | _ACEOF | |
21821 | cat confdefs.h >>conftest.$ac_ext | |
21822 | cat >>conftest.$ac_ext <<_ACEOF | |
21823 | /* end confdefs.h. */ | |
f73dda09 JA |
21824 | $ac_includes_default |
21825 | int | |
21826 | main () | |
21827 | { | |
3185942a | 21828 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
b80f6443 JA |
21829 | test_array [0] = 0 |
21830 | ||
f73dda09 JA |
21831 | ; |
21832 | return 0; | |
21833 | } | |
21834 | _ACEOF | |
21835 | rm -f conftest.$ac_objext | |
3185942a JA |
21836 | if { (ac_try="$ac_compile" |
21837 | case "(($ac_try" in | |
21838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21839 | *) ac_try_echo=$ac_try;; | |
21840 | esac | |
21841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21842 | $as_echo "$ac_try_echo") >&5 | |
21843 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21844 | ac_status=$? |
0628567a JA |
21845 | grep -v '^ *+' conftest.er1 >conftest.err |
21846 | rm -f conftest.er1 | |
21847 | cat conftest.err >&5 | |
3185942a JA |
21848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21849 | (exit $ac_status); } && { | |
21850 | test -z "$ac_c_werror_flag" || | |
21851 | test ! -s conftest.err | |
21852 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21853 | ac_lo=0 ac_mid=0 |
21854 | while :; do | |
21855 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21856 | /* confdefs.h. */ |
21857 | _ACEOF | |
21858 | cat confdefs.h >>conftest.$ac_ext | |
21859 | cat >>conftest.$ac_ext <<_ACEOF | |
21860 | /* end confdefs.h. */ | |
f73dda09 JA |
21861 | $ac_includes_default |
21862 | int | |
21863 | main () | |
21864 | { | |
3185942a | 21865 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b80f6443 JA |
21866 | test_array [0] = 0 |
21867 | ||
f73dda09 JA |
21868 | ; |
21869 | return 0; | |
21870 | } | |
21871 | _ACEOF | |
21872 | rm -f conftest.$ac_objext | |
3185942a JA |
21873 | if { (ac_try="$ac_compile" |
21874 | case "(($ac_try" in | |
21875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21876 | *) ac_try_echo=$ac_try;; | |
21877 | esac | |
21878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21879 | $as_echo "$ac_try_echo") >&5 | |
21880 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21881 | ac_status=$? |
0628567a JA |
21882 | grep -v '^ *+' conftest.er1 >conftest.err |
21883 | rm -f conftest.er1 | |
21884 | cat conftest.err >&5 | |
3185942a JA |
21885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21886 | (exit $ac_status); } && { | |
21887 | test -z "$ac_c_werror_flag" || | |
21888 | test ! -s conftest.err | |
21889 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21890 | ac_hi=$ac_mid; break |
21891 | else | |
3185942a | 21892 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21893 | sed 's/^/| /' conftest.$ac_ext >&5 |
21894 | ||
3185942a JA |
21895 | ac_lo=`expr $ac_mid + 1` |
21896 | if test $ac_lo -le $ac_mid; then | |
21897 | ac_lo= ac_hi= | |
21898 | break | |
21899 | fi | |
21900 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 21901 | fi |
3185942a JA |
21902 | |
21903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21904 | done |
ccc6cda3 | 21905 | else |
3185942a | 21906 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21907 | sed 's/^/| /' conftest.$ac_ext >&5 |
21908 | ||
3185942a | 21909 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
21910 | /* confdefs.h. */ |
21911 | _ACEOF | |
21912 | cat confdefs.h >>conftest.$ac_ext | |
21913 | cat >>conftest.$ac_ext <<_ACEOF | |
21914 | /* end confdefs.h. */ | |
b80f6443 JA |
21915 | $ac_includes_default |
21916 | int | |
21917 | main () | |
21918 | { | |
3185942a | 21919 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
b80f6443 JA |
21920 | test_array [0] = 0 |
21921 | ||
21922 | ; | |
21923 | return 0; | |
21924 | } | |
21925 | _ACEOF | |
21926 | rm -f conftest.$ac_objext | |
3185942a JA |
21927 | if { (ac_try="$ac_compile" |
21928 | case "(($ac_try" in | |
21929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21930 | *) ac_try_echo=$ac_try;; | |
21931 | esac | |
21932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21933 | $as_echo "$ac_try_echo") >&5 | |
21934 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 21935 | ac_status=$? |
0628567a JA |
21936 | grep -v '^ *+' conftest.er1 >conftest.err |
21937 | rm -f conftest.er1 | |
21938 | cat conftest.err >&5 | |
3185942a JA |
21939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21940 | (exit $ac_status); } && { | |
21941 | test -z "$ac_c_werror_flag" || | |
21942 | test ! -s conftest.err | |
21943 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 21944 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
21945 | while :; do |
21946 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
21947 | /* confdefs.h. */ |
21948 | _ACEOF | |
21949 | cat confdefs.h >>conftest.$ac_ext | |
21950 | cat >>conftest.$ac_ext <<_ACEOF | |
21951 | /* end confdefs.h. */ | |
f73dda09 JA |
21952 | $ac_includes_default |
21953 | int | |
21954 | main () | |
21955 | { | |
3185942a | 21956 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
b80f6443 JA |
21957 | test_array [0] = 0 |
21958 | ||
f73dda09 JA |
21959 | ; |
21960 | return 0; | |
21961 | } | |
21962 | _ACEOF | |
21963 | rm -f conftest.$ac_objext | |
3185942a JA |
21964 | if { (ac_try="$ac_compile" |
21965 | case "(($ac_try" in | |
21966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21967 | *) ac_try_echo=$ac_try;; | |
21968 | esac | |
21969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21970 | $as_echo "$ac_try_echo") >&5 | |
21971 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 21972 | ac_status=$? |
0628567a JA |
21973 | grep -v '^ *+' conftest.er1 >conftest.err |
21974 | rm -f conftest.er1 | |
21975 | cat conftest.err >&5 | |
3185942a JA |
21976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21977 | (exit $ac_status); } && { | |
21978 | test -z "$ac_c_werror_flag" || | |
21979 | test ! -s conftest.err | |
21980 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
21981 | ac_lo=$ac_mid; break |
21982 | else | |
3185942a | 21983 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21984 | sed 's/^/| /' conftest.$ac_ext >&5 |
21985 | ||
3185942a JA |
21986 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21987 | if test $ac_mid -le $ac_hi; then | |
21988 | ac_lo= ac_hi= | |
21989 | break | |
21990 | fi | |
21991 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 21992 | fi |
3185942a JA |
21993 | |
21994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 21995 | done |
b80f6443 | 21996 | else |
3185942a | 21997 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
21998 | sed 's/^/| /' conftest.$ac_ext >&5 |
21999 | ||
3185942a | 22000 | ac_lo= ac_hi= |
b80f6443 | 22001 | fi |
3185942a JA |
22002 | |
22003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 22004 | fi |
3185942a JA |
22005 | |
22006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
22007 | # Binary search between lo and hi bounds. |
22008 | while test "x$ac_lo" != "x$ac_hi"; do | |
22009 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22010 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22011 | /* confdefs.h. */ |
22012 | _ACEOF | |
22013 | cat confdefs.h >>conftest.$ac_ext | |
22014 | cat >>conftest.$ac_ext <<_ACEOF | |
22015 | /* end confdefs.h. */ | |
f73dda09 JA |
22016 | $ac_includes_default |
22017 | int | |
22018 | main () | |
22019 | { | |
3185942a | 22020 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
b80f6443 JA |
22021 | test_array [0] = 0 |
22022 | ||
f73dda09 JA |
22023 | ; |
22024 | return 0; | |
22025 | } | |
22026 | _ACEOF | |
22027 | rm -f conftest.$ac_objext | |
3185942a JA |
22028 | if { (ac_try="$ac_compile" |
22029 | case "(($ac_try" in | |
22030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22031 | *) ac_try_echo=$ac_try;; | |
22032 | esac | |
22033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22034 | $as_echo "$ac_try_echo") >&5 | |
22035 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22036 | ac_status=$? |
0628567a JA |
22037 | grep -v '^ *+' conftest.er1 >conftest.err |
22038 | rm -f conftest.er1 | |
22039 | cat conftest.err >&5 | |
3185942a JA |
22040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22041 | (exit $ac_status); } && { | |
22042 | test -z "$ac_c_werror_flag" || | |
22043 | test ! -s conftest.err | |
22044 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22045 | ac_hi=$ac_mid |
22046 | else | |
3185942a | 22047 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22048 | sed 's/^/| /' conftest.$ac_ext >&5 |
22049 | ||
3185942a | 22050 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 22051 | fi |
3185942a JA |
22052 | |
22053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22054 | done |
b80f6443 JA |
22055 | case $ac_lo in |
22056 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
3185942a JA |
22057 | '') if test "$ac_cv_type_long" = yes; then |
22058 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22059 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22060 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
0628567a | 22061 | See \`config.log' for more details." >&5 |
3185942a | 22062 | $as_echo "$as_me: error: cannot compute sizeof (long) |
0628567a | 22063 | See \`config.log' for more details." >&2;} |
3185942a JA |
22064 | { (exit 77); exit 77; }; }; } |
22065 | else | |
22066 | ac_cv_sizeof_long=0 | |
22067 | fi ;; | |
b80f6443 | 22068 | esac |
bb70624e | 22069 | else |
f73dda09 | 22070 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22071 | /* confdefs.h. */ |
22072 | _ACEOF | |
22073 | cat confdefs.h >>conftest.$ac_ext | |
22074 | cat >>conftest.$ac_ext <<_ACEOF | |
22075 | /* end confdefs.h. */ | |
f73dda09 | 22076 | $ac_includes_default |
3185942a JA |
22077 | static long int longval () { return (long int) (sizeof (long)); } |
22078 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } | |
b80f6443 JA |
22079 | #include <stdio.h> |
22080 | #include <stdlib.h> | |
f73dda09 JA |
22081 | int |
22082 | main () | |
bb70624e | 22083 | { |
b80f6443 JA |
22084 | |
22085 | FILE *f = fopen ("conftest.val", "w"); | |
22086 | if (! f) | |
3185942a JA |
22087 | return 1; |
22088 | if (((long int) (sizeof (long))) < 0) | |
b80f6443 | 22089 | { |
3185942a JA |
22090 | long int i = longval (); |
22091 | if (i != ((long int) (sizeof (long)))) | |
22092 | return 1; | |
22093 | fprintf (f, "%ld", i); | |
b80f6443 JA |
22094 | } |
22095 | else | |
22096 | { | |
3185942a JA |
22097 | unsigned long int i = ulongval (); |
22098 | if (i != ((long int) (sizeof (long)))) | |
22099 | return 1; | |
22100 | fprintf (f, "%lu", i); | |
b80f6443 | 22101 | } |
3185942a JA |
22102 | /* Do not output a trailing newline, as this causes \r\n confusion |
22103 | on some platforms. */ | |
22104 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 22105 | |
f73dda09 JA |
22106 | ; |
22107 | return 0; | |
bb70624e | 22108 | } |
f73dda09 JA |
22109 | _ACEOF |
22110 | rm -f conftest$ac_exeext | |
3185942a JA |
22111 | if { (ac_try="$ac_link" |
22112 | case "(($ac_try" in | |
22113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22114 | *) ac_try_echo=$ac_try;; | |
22115 | esac | |
22116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22117 | $as_echo "$ac_try_echo") >&5 | |
22118 | (eval "$ac_link") 2>&5 | |
f73dda09 | 22119 | ac_status=$? |
3185942a | 22120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
22122 | { (case "(($ac_try" in |
22123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22124 | *) ac_try_echo=$ac_try;; | |
22125 | esac | |
22126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22127 | $as_echo "$ac_try_echo") >&5 | |
22128 | (eval "$ac_try") 2>&5 | |
f73dda09 | 22129 | ac_status=$? |
3185942a | 22130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
22131 | (exit $ac_status); }; }; then |
22132 | ac_cv_sizeof_long=`cat conftest.val` | |
bb70624e | 22133 | else |
3185942a JA |
22134 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22135 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
22136 | sed 's/^/| /' conftest.$ac_ext >&5 |
22137 | ||
b80f6443 | 22138 | ( exit $ac_status ) |
3185942a JA |
22139 | if test "$ac_cv_type_long" = yes; then |
22140 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22142 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
0628567a | 22143 | See \`config.log' for more details." >&5 |
3185942a | 22144 | $as_echo "$as_me: error: cannot compute sizeof (long) |
0628567a | 22145 | See \`config.log' for more details." >&2;} |
3185942a JA |
22146 | { (exit 77); exit 77; }; }; } |
22147 | else | |
22148 | ac_cv_sizeof_long=0 | |
22149 | fi | |
bb70624e | 22150 | fi |
3185942a JA |
22151 | rm -rf conftest.dSYM |
22152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22153 | fi |
f73dda09 | 22154 | rm -f conftest.val |
f73dda09 | 22155 | fi |
3185942a JA |
22156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
22157 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
bb70624e | 22158 | |
b80f6443 | 22159 | |
3185942a JA |
22160 | |
22161 | cat >>confdefs.h <<_ACEOF | |
22162 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
f73dda09 | 22163 | _ACEOF |
0628567a | 22164 | |
f73dda09 | 22165 | |
3185942a JA |
22166 | # The cast to long int works around a bug in the HP C Compiler |
22167 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22168 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22169 | # This bug is HP SR number 8606223364. | |
22170 | { $as_echo "$as_me:$LINENO: checking size of char *" >&5 | |
22171 | $as_echo_n "checking size of char *... " >&6; } | |
f73dda09 | 22172 | if test "${ac_cv_sizeof_char_p+set}" = set; then |
3185942a | 22173 | $as_echo_n "(cached) " >&6 |
f73dda09 | 22174 | else |
f73dda09 JA |
22175 | if test "$cross_compiling" = yes; then |
22176 | # Depending upon the size, compute the lo and hi bounds. | |
22177 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22178 | /* confdefs.h. */ |
22179 | _ACEOF | |
22180 | cat confdefs.h >>conftest.$ac_ext | |
22181 | cat >>conftest.$ac_ext <<_ACEOF | |
22182 | /* end confdefs.h. */ | |
f73dda09 JA |
22183 | $ac_includes_default |
22184 | int | |
22185 | main () | |
22186 | { | |
3185942a | 22187 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)]; |
b80f6443 JA |
22188 | test_array [0] = 0 |
22189 | ||
f73dda09 JA |
22190 | ; |
22191 | return 0; | |
22192 | } | |
22193 | _ACEOF | |
22194 | rm -f conftest.$ac_objext | |
3185942a JA |
22195 | if { (ac_try="$ac_compile" |
22196 | case "(($ac_try" in | |
22197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22198 | *) ac_try_echo=$ac_try;; | |
22199 | esac | |
22200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22201 | $as_echo "$ac_try_echo") >&5 | |
22202 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22203 | ac_status=$? |
0628567a JA |
22204 | grep -v '^ *+' conftest.er1 >conftest.err |
22205 | rm -f conftest.er1 | |
22206 | cat conftest.err >&5 | |
3185942a JA |
22207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22208 | (exit $ac_status); } && { | |
22209 | test -z "$ac_c_werror_flag" || | |
22210 | test ! -s conftest.err | |
22211 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22212 | ac_lo=0 ac_mid=0 |
22213 | while :; do | |
22214 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22215 | /* confdefs.h. */ |
22216 | _ACEOF | |
22217 | cat confdefs.h >>conftest.$ac_ext | |
22218 | cat >>conftest.$ac_ext <<_ACEOF | |
22219 | /* end confdefs.h. */ | |
f73dda09 JA |
22220 | $ac_includes_default |
22221 | int | |
22222 | main () | |
22223 | { | |
3185942a | 22224 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; |
b80f6443 JA |
22225 | test_array [0] = 0 |
22226 | ||
f73dda09 JA |
22227 | ; |
22228 | return 0; | |
22229 | } | |
22230 | _ACEOF | |
22231 | rm -f conftest.$ac_objext | |
3185942a JA |
22232 | if { (ac_try="$ac_compile" |
22233 | case "(($ac_try" in | |
22234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22235 | *) ac_try_echo=$ac_try;; | |
22236 | esac | |
22237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22238 | $as_echo "$ac_try_echo") >&5 | |
22239 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22240 | ac_status=$? |
0628567a JA |
22241 | grep -v '^ *+' conftest.er1 >conftest.err |
22242 | rm -f conftest.er1 | |
22243 | cat conftest.err >&5 | |
3185942a JA |
22244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22245 | (exit $ac_status); } && { | |
22246 | test -z "$ac_c_werror_flag" || | |
22247 | test ! -s conftest.err | |
22248 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22249 | ac_hi=$ac_mid; break |
22250 | else | |
3185942a | 22251 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22252 | sed 's/^/| /' conftest.$ac_ext >&5 |
22253 | ||
3185942a JA |
22254 | ac_lo=`expr $ac_mid + 1` |
22255 | if test $ac_lo -le $ac_mid; then | |
22256 | ac_lo= ac_hi= | |
22257 | break | |
22258 | fi | |
22259 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 22260 | fi |
3185942a JA |
22261 | |
22262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
22263 | done |
22264 | else | |
3185942a | 22265 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22266 | sed 's/^/| /' conftest.$ac_ext >&5 |
22267 | ||
3185942a | 22268 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22269 | /* confdefs.h. */ |
22270 | _ACEOF | |
22271 | cat confdefs.h >>conftest.$ac_ext | |
22272 | cat >>conftest.$ac_ext <<_ACEOF | |
22273 | /* end confdefs.h. */ | |
b80f6443 JA |
22274 | $ac_includes_default |
22275 | int | |
22276 | main () | |
22277 | { | |
3185942a | 22278 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)]; |
b80f6443 JA |
22279 | test_array [0] = 0 |
22280 | ||
22281 | ; | |
22282 | return 0; | |
22283 | } | |
22284 | _ACEOF | |
22285 | rm -f conftest.$ac_objext | |
3185942a JA |
22286 | if { (ac_try="$ac_compile" |
22287 | case "(($ac_try" in | |
22288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22289 | *) ac_try_echo=$ac_try;; | |
22290 | esac | |
22291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22292 | $as_echo "$ac_try_echo") >&5 | |
22293 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 22294 | ac_status=$? |
0628567a JA |
22295 | grep -v '^ *+' conftest.er1 >conftest.err |
22296 | rm -f conftest.er1 | |
22297 | cat conftest.err >&5 | |
3185942a JA |
22298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22299 | (exit $ac_status); } && { | |
22300 | test -z "$ac_c_werror_flag" || | |
22301 | test ! -s conftest.err | |
22302 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 22303 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
22304 | while :; do |
22305 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22306 | /* confdefs.h. */ |
22307 | _ACEOF | |
22308 | cat confdefs.h >>conftest.$ac_ext | |
22309 | cat >>conftest.$ac_ext <<_ACEOF | |
22310 | /* end confdefs.h. */ | |
f73dda09 JA |
22311 | $ac_includes_default |
22312 | int | |
22313 | main () | |
22314 | { | |
3185942a | 22315 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)]; |
b80f6443 JA |
22316 | test_array [0] = 0 |
22317 | ||
f73dda09 JA |
22318 | ; |
22319 | return 0; | |
22320 | } | |
22321 | _ACEOF | |
22322 | rm -f conftest.$ac_objext | |
3185942a JA |
22323 | if { (ac_try="$ac_compile" |
22324 | case "(($ac_try" in | |
22325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22326 | *) ac_try_echo=$ac_try;; | |
22327 | esac | |
22328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22329 | $as_echo "$ac_try_echo") >&5 | |
22330 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22331 | ac_status=$? |
0628567a JA |
22332 | grep -v '^ *+' conftest.er1 >conftest.err |
22333 | rm -f conftest.er1 | |
22334 | cat conftest.err >&5 | |
3185942a JA |
22335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22336 | (exit $ac_status); } && { | |
22337 | test -z "$ac_c_werror_flag" || | |
22338 | test ! -s conftest.err | |
22339 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22340 | ac_lo=$ac_mid; break |
22341 | else | |
3185942a | 22342 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22343 | sed 's/^/| /' conftest.$ac_ext >&5 |
22344 | ||
3185942a JA |
22345 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22346 | if test $ac_mid -le $ac_hi; then | |
22347 | ac_lo= ac_hi= | |
22348 | break | |
22349 | fi | |
22350 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 22351 | fi |
3185942a JA |
22352 | |
22353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22354 | done |
b80f6443 | 22355 | else |
3185942a | 22356 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22357 | sed 's/^/| /' conftest.$ac_ext >&5 |
22358 | ||
3185942a | 22359 | ac_lo= ac_hi= |
b80f6443 | 22360 | fi |
3185942a JA |
22361 | |
22362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22363 | fi |
3185942a JA |
22364 | |
22365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
22366 | # Binary search between lo and hi bounds. |
22367 | while test "x$ac_lo" != "x$ac_hi"; do | |
22368 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22369 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22370 | /* confdefs.h. */ |
22371 | _ACEOF | |
22372 | cat confdefs.h >>conftest.$ac_ext | |
22373 | cat >>conftest.$ac_ext <<_ACEOF | |
22374 | /* end confdefs.h. */ | |
f73dda09 JA |
22375 | $ac_includes_default |
22376 | int | |
22377 | main () | |
22378 | { | |
3185942a | 22379 | static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; |
b80f6443 JA |
22380 | test_array [0] = 0 |
22381 | ||
f73dda09 JA |
22382 | ; |
22383 | return 0; | |
22384 | } | |
22385 | _ACEOF | |
22386 | rm -f conftest.$ac_objext | |
3185942a JA |
22387 | if { (ac_try="$ac_compile" |
22388 | case "(($ac_try" in | |
22389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22390 | *) ac_try_echo=$ac_try;; | |
22391 | esac | |
22392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22393 | $as_echo "$ac_try_echo") >&5 | |
22394 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22395 | ac_status=$? |
0628567a JA |
22396 | grep -v '^ *+' conftest.er1 >conftest.err |
22397 | rm -f conftest.er1 | |
22398 | cat conftest.err >&5 | |
3185942a JA |
22399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22400 | (exit $ac_status); } && { | |
22401 | test -z "$ac_c_werror_flag" || | |
22402 | test ! -s conftest.err | |
22403 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22404 | ac_hi=$ac_mid |
22405 | else | |
3185942a | 22406 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22407 | sed 's/^/| /' conftest.$ac_ext >&5 |
22408 | ||
3185942a | 22409 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 22410 | fi |
3185942a JA |
22411 | |
22412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22413 | done |
b80f6443 JA |
22414 | case $ac_lo in |
22415 | ?*) ac_cv_sizeof_char_p=$ac_lo;; | |
3185942a JA |
22416 | '') if test "$ac_cv_type_char_p" = yes; then |
22417 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22419 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) | |
0628567a | 22420 | See \`config.log' for more details." >&5 |
3185942a | 22421 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
0628567a | 22422 | See \`config.log' for more details." >&2;} |
3185942a JA |
22423 | { (exit 77); exit 77; }; }; } |
22424 | else | |
22425 | ac_cv_sizeof_char_p=0 | |
22426 | fi ;; | |
b80f6443 | 22427 | esac |
bb70624e | 22428 | else |
f73dda09 | 22429 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22430 | /* confdefs.h. */ |
22431 | _ACEOF | |
22432 | cat confdefs.h >>conftest.$ac_ext | |
22433 | cat >>conftest.$ac_ext <<_ACEOF | |
22434 | /* end confdefs.h. */ | |
f73dda09 | 22435 | $ac_includes_default |
3185942a JA |
22436 | static long int longval () { return (long int) (sizeof (char *)); } |
22437 | static unsigned long int ulongval () { return (long int) (sizeof (char *)); } | |
b80f6443 JA |
22438 | #include <stdio.h> |
22439 | #include <stdlib.h> | |
f73dda09 JA |
22440 | int |
22441 | main () | |
bb70624e | 22442 | { |
b80f6443 JA |
22443 | |
22444 | FILE *f = fopen ("conftest.val", "w"); | |
22445 | if (! f) | |
3185942a JA |
22446 | return 1; |
22447 | if (((long int) (sizeof (char *))) < 0) | |
b80f6443 | 22448 | { |
3185942a JA |
22449 | long int i = longval (); |
22450 | if (i != ((long int) (sizeof (char *)))) | |
22451 | return 1; | |
22452 | fprintf (f, "%ld", i); | |
b80f6443 JA |
22453 | } |
22454 | else | |
22455 | { | |
3185942a JA |
22456 | unsigned long int i = ulongval (); |
22457 | if (i != ((long int) (sizeof (char *)))) | |
22458 | return 1; | |
22459 | fprintf (f, "%lu", i); | |
b80f6443 | 22460 | } |
3185942a JA |
22461 | /* Do not output a trailing newline, as this causes \r\n confusion |
22462 | on some platforms. */ | |
22463 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 22464 | |
f73dda09 JA |
22465 | ; |
22466 | return 0; | |
bb70624e | 22467 | } |
f73dda09 JA |
22468 | _ACEOF |
22469 | rm -f conftest$ac_exeext | |
3185942a JA |
22470 | if { (ac_try="$ac_link" |
22471 | case "(($ac_try" in | |
22472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22473 | *) ac_try_echo=$ac_try;; | |
22474 | esac | |
22475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22476 | $as_echo "$ac_try_echo") >&5 | |
22477 | (eval "$ac_link") 2>&5 | |
f73dda09 | 22478 | ac_status=$? |
3185942a | 22479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
22481 | { (case "(($ac_try" in |
22482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22483 | *) ac_try_echo=$ac_try;; | |
22484 | esac | |
22485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22486 | $as_echo "$ac_try_echo") >&5 | |
22487 | (eval "$ac_try") 2>&5 | |
f73dda09 | 22488 | ac_status=$? |
3185942a | 22489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
22490 | (exit $ac_status); }; }; then |
22491 | ac_cv_sizeof_char_p=`cat conftest.val` | |
bb70624e | 22492 | else |
3185942a JA |
22493 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22494 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
22495 | sed 's/^/| /' conftest.$ac_ext >&5 |
22496 | ||
b80f6443 | 22497 | ( exit $ac_status ) |
3185942a JA |
22498 | if test "$ac_cv_type_char_p" = yes; then |
22499 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22500 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22501 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) | |
0628567a | 22502 | See \`config.log' for more details." >&5 |
3185942a | 22503 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
0628567a | 22504 | See \`config.log' for more details." >&2;} |
3185942a JA |
22505 | { (exit 77); exit 77; }; }; } |
22506 | else | |
22507 | ac_cv_sizeof_char_p=0 | |
22508 | fi | |
bb70624e | 22509 | fi |
3185942a JA |
22510 | rm -rf conftest.dSYM |
22511 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 22512 | fi |
f73dda09 | 22513 | rm -f conftest.val |
f73dda09 | 22514 | fi |
3185942a JA |
22515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 |
22516 | $as_echo "$ac_cv_sizeof_char_p" >&6; } | |
bb70624e | 22517 | |
b80f6443 | 22518 | |
3185942a JA |
22519 | |
22520 | cat >>confdefs.h <<_ACEOF | |
22521 | #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p | |
f73dda09 | 22522 | _ACEOF |
0628567a | 22523 | |
f73dda09 | 22524 | |
3185942a JA |
22525 | # The cast to long int works around a bug in the HP C Compiler |
22526 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22527 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22528 | # This bug is HP SR number 8606223364. | |
22529 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 | |
22530 | $as_echo_n "checking size of double... " >&6; } | |
f73dda09 | 22531 | if test "${ac_cv_sizeof_double+set}" = set; then |
3185942a | 22532 | $as_echo_n "(cached) " >&6 |
f73dda09 | 22533 | else |
cce855bc | 22534 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
22535 | # Depending upon the size, compute the lo and hi bounds. |
22536 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22537 | /* confdefs.h. */ |
22538 | _ACEOF | |
22539 | cat confdefs.h >>conftest.$ac_ext | |
22540 | cat >>conftest.$ac_ext <<_ACEOF | |
22541 | /* end confdefs.h. */ | |
f73dda09 JA |
22542 | $ac_includes_default |
22543 | int | |
22544 | main () | |
cce855bc | 22545 | { |
3185942a | 22546 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)]; |
b80f6443 JA |
22547 | test_array [0] = 0 |
22548 | ||
f73dda09 JA |
22549 | ; |
22550 | return 0; | |
cce855bc | 22551 | } |
f73dda09 JA |
22552 | _ACEOF |
22553 | rm -f conftest.$ac_objext | |
3185942a JA |
22554 | if { (ac_try="$ac_compile" |
22555 | case "(($ac_try" in | |
22556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22557 | *) ac_try_echo=$ac_try;; | |
22558 | esac | |
22559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22560 | $as_echo "$ac_try_echo") >&5 | |
22561 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22562 | ac_status=$? |
0628567a JA |
22563 | grep -v '^ *+' conftest.er1 >conftest.err |
22564 | rm -f conftest.er1 | |
22565 | cat conftest.err >&5 | |
3185942a JA |
22566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22567 | (exit $ac_status); } && { | |
22568 | test -z "$ac_c_werror_flag" || | |
22569 | test ! -s conftest.err | |
22570 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22571 | ac_lo=0 ac_mid=0 |
22572 | while :; do | |
22573 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22574 | /* confdefs.h. */ |
22575 | _ACEOF | |
22576 | cat confdefs.h >>conftest.$ac_ext | |
22577 | cat >>conftest.$ac_ext <<_ACEOF | |
22578 | /* end confdefs.h. */ | |
f73dda09 JA |
22579 | $ac_includes_default |
22580 | int | |
22581 | main () | |
22582 | { | |
3185942a | 22583 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
b80f6443 JA |
22584 | test_array [0] = 0 |
22585 | ||
f73dda09 JA |
22586 | ; |
22587 | return 0; | |
22588 | } | |
22589 | _ACEOF | |
22590 | rm -f conftest.$ac_objext | |
3185942a JA |
22591 | if { (ac_try="$ac_compile" |
22592 | case "(($ac_try" in | |
22593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22594 | *) ac_try_echo=$ac_try;; | |
22595 | esac | |
22596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22597 | $as_echo "$ac_try_echo") >&5 | |
22598 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22599 | ac_status=$? |
0628567a JA |
22600 | grep -v '^ *+' conftest.er1 >conftest.err |
22601 | rm -f conftest.er1 | |
22602 | cat conftest.err >&5 | |
3185942a JA |
22603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22604 | (exit $ac_status); } && { | |
22605 | test -z "$ac_c_werror_flag" || | |
22606 | test ! -s conftest.err | |
22607 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22608 | ac_hi=$ac_mid; break |
22609 | else | |
3185942a | 22610 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22611 | sed 's/^/| /' conftest.$ac_ext >&5 |
22612 | ||
3185942a JA |
22613 | ac_lo=`expr $ac_mid + 1` |
22614 | if test $ac_lo -le $ac_mid; then | |
22615 | ac_lo= ac_hi= | |
22616 | break | |
22617 | fi | |
22618 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 22619 | fi |
3185942a JA |
22620 | |
22621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22622 | done |
cce855bc | 22623 | else |
3185942a | 22624 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22625 | sed 's/^/| /' conftest.$ac_ext >&5 |
22626 | ||
3185942a | 22627 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22628 | /* confdefs.h. */ |
22629 | _ACEOF | |
22630 | cat confdefs.h >>conftest.$ac_ext | |
22631 | cat >>conftest.$ac_ext <<_ACEOF | |
22632 | /* end confdefs.h. */ | |
b80f6443 JA |
22633 | $ac_includes_default |
22634 | int | |
22635 | main () | |
22636 | { | |
3185942a | 22637 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)]; |
b80f6443 JA |
22638 | test_array [0] = 0 |
22639 | ||
22640 | ; | |
22641 | return 0; | |
22642 | } | |
22643 | _ACEOF | |
22644 | rm -f conftest.$ac_objext | |
3185942a JA |
22645 | if { (ac_try="$ac_compile" |
22646 | case "(($ac_try" in | |
22647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22648 | *) ac_try_echo=$ac_try;; | |
22649 | esac | |
22650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22651 | $as_echo "$ac_try_echo") >&5 | |
22652 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 22653 | ac_status=$? |
0628567a JA |
22654 | grep -v '^ *+' conftest.er1 >conftest.err |
22655 | rm -f conftest.er1 | |
22656 | cat conftest.err >&5 | |
3185942a JA |
22657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22658 | (exit $ac_status); } && { | |
22659 | test -z "$ac_c_werror_flag" || | |
22660 | test ! -s conftest.err | |
22661 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 22662 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
22663 | while :; do |
22664 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22665 | /* confdefs.h. */ |
22666 | _ACEOF | |
22667 | cat confdefs.h >>conftest.$ac_ext | |
22668 | cat >>conftest.$ac_ext <<_ACEOF | |
22669 | /* end confdefs.h. */ | |
f73dda09 JA |
22670 | $ac_includes_default |
22671 | int | |
22672 | main () | |
22673 | { | |
3185942a | 22674 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)]; |
b80f6443 JA |
22675 | test_array [0] = 0 |
22676 | ||
f73dda09 JA |
22677 | ; |
22678 | return 0; | |
22679 | } | |
22680 | _ACEOF | |
22681 | rm -f conftest.$ac_objext | |
3185942a JA |
22682 | if { (ac_try="$ac_compile" |
22683 | case "(($ac_try" in | |
22684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22685 | *) ac_try_echo=$ac_try;; | |
22686 | esac | |
22687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22688 | $as_echo "$ac_try_echo") >&5 | |
22689 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22690 | ac_status=$? |
0628567a JA |
22691 | grep -v '^ *+' conftest.er1 >conftest.err |
22692 | rm -f conftest.er1 | |
22693 | cat conftest.err >&5 | |
3185942a JA |
22694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22695 | (exit $ac_status); } && { | |
22696 | test -z "$ac_c_werror_flag" || | |
22697 | test ! -s conftest.err | |
22698 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22699 | ac_lo=$ac_mid; break |
22700 | else | |
3185942a | 22701 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22702 | sed 's/^/| /' conftest.$ac_ext >&5 |
22703 | ||
3185942a JA |
22704 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22705 | if test $ac_mid -le $ac_hi; then | |
22706 | ac_lo= ac_hi= | |
22707 | break | |
22708 | fi | |
22709 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 22710 | fi |
3185942a JA |
22711 | |
22712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22713 | done |
b80f6443 | 22714 | else |
3185942a | 22715 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22716 | sed 's/^/| /' conftest.$ac_ext >&5 |
22717 | ||
3185942a | 22718 | ac_lo= ac_hi= |
b80f6443 | 22719 | fi |
3185942a JA |
22720 | |
22721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22722 | fi |
3185942a JA |
22723 | |
22724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
22725 | # Binary search between lo and hi bounds. |
22726 | while test "x$ac_lo" != "x$ac_hi"; do | |
22727 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
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 | 22738 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
b80f6443 JA |
22739 | test_array [0] = 0 |
22740 | ||
f73dda09 JA |
22741 | ; |
22742 | return 0; | |
22743 | } | |
22744 | _ACEOF | |
22745 | rm -f conftest.$ac_objext | |
3185942a JA |
22746 | if { (ac_try="$ac_compile" |
22747 | case "(($ac_try" in | |
22748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22749 | *) ac_try_echo=$ac_try;; | |
22750 | esac | |
22751 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22752 | $as_echo "$ac_try_echo") >&5 | |
22753 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22754 | ac_status=$? |
0628567a JA |
22755 | grep -v '^ *+' conftest.er1 >conftest.err |
22756 | rm -f conftest.er1 | |
22757 | cat conftest.err >&5 | |
3185942a JA |
22758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22759 | (exit $ac_status); } && { | |
22760 | test -z "$ac_c_werror_flag" || | |
22761 | test ! -s conftest.err | |
22762 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22763 | ac_hi=$ac_mid |
22764 | else | |
3185942a | 22765 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22766 | sed 's/^/| /' conftest.$ac_ext >&5 |
22767 | ||
3185942a | 22768 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 22769 | fi |
3185942a JA |
22770 | |
22771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22772 | done |
b80f6443 JA |
22773 | case $ac_lo in |
22774 | ?*) ac_cv_sizeof_double=$ac_lo;; | |
3185942a JA |
22775 | '') if test "$ac_cv_type_double" = yes; then |
22776 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22778 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) | |
0628567a | 22779 | See \`config.log' for more details." >&5 |
3185942a | 22780 | $as_echo "$as_me: error: cannot compute sizeof (double) |
0628567a | 22781 | See \`config.log' for more details." >&2;} |
3185942a JA |
22782 | { (exit 77); exit 77; }; }; } |
22783 | else | |
22784 | ac_cv_sizeof_double=0 | |
22785 | fi ;; | |
b80f6443 | 22786 | esac |
cce855bc | 22787 | else |
f73dda09 | 22788 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22789 | /* confdefs.h. */ |
22790 | _ACEOF | |
22791 | cat confdefs.h >>conftest.$ac_ext | |
22792 | cat >>conftest.$ac_ext <<_ACEOF | |
22793 | /* end confdefs.h. */ | |
f73dda09 | 22794 | $ac_includes_default |
3185942a JA |
22795 | static long int longval () { return (long int) (sizeof (double)); } |
22796 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } | |
b80f6443 JA |
22797 | #include <stdio.h> |
22798 | #include <stdlib.h> | |
f73dda09 JA |
22799 | int |
22800 | main () | |
cce855bc | 22801 | { |
b80f6443 JA |
22802 | |
22803 | FILE *f = fopen ("conftest.val", "w"); | |
22804 | if (! f) | |
3185942a JA |
22805 | return 1; |
22806 | if (((long int) (sizeof (double))) < 0) | |
b80f6443 | 22807 | { |
3185942a JA |
22808 | long int i = longval (); |
22809 | if (i != ((long int) (sizeof (double)))) | |
22810 | return 1; | |
22811 | fprintf (f, "%ld", i); | |
b80f6443 JA |
22812 | } |
22813 | else | |
22814 | { | |
3185942a JA |
22815 | unsigned long int i = ulongval (); |
22816 | if (i != ((long int) (sizeof (double)))) | |
22817 | return 1; | |
22818 | fprintf (f, "%lu", i); | |
b80f6443 | 22819 | } |
3185942a JA |
22820 | /* Do not output a trailing newline, as this causes \r\n confusion |
22821 | on some platforms. */ | |
22822 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 22823 | |
f73dda09 JA |
22824 | ; |
22825 | return 0; | |
cce855bc | 22826 | } |
f73dda09 JA |
22827 | _ACEOF |
22828 | rm -f conftest$ac_exeext | |
3185942a JA |
22829 | if { (ac_try="$ac_link" |
22830 | case "(($ac_try" in | |
22831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22832 | *) ac_try_echo=$ac_try;; | |
22833 | esac | |
22834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22835 | $as_echo "$ac_try_echo") >&5 | |
22836 | (eval "$ac_link") 2>&5 | |
f73dda09 | 22837 | ac_status=$? |
3185942a | 22838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 22839 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
22840 | { (case "(($ac_try" in |
22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22842 | *) ac_try_echo=$ac_try;; | |
22843 | esac | |
22844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22845 | $as_echo "$ac_try_echo") >&5 | |
22846 | (eval "$ac_try") 2>&5 | |
f73dda09 | 22847 | ac_status=$? |
3185942a | 22848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
22849 | (exit $ac_status); }; }; then |
22850 | ac_cv_sizeof_double=`cat conftest.val` | |
cce855bc | 22851 | else |
3185942a JA |
22852 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22853 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
22854 | sed 's/^/| /' conftest.$ac_ext >&5 |
22855 | ||
b80f6443 | 22856 | ( exit $ac_status ) |
3185942a JA |
22857 | if test "$ac_cv_type_double" = yes; then |
22858 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
22859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22860 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) | |
0628567a | 22861 | See \`config.log' for more details." >&5 |
3185942a | 22862 | $as_echo "$as_me: error: cannot compute sizeof (double) |
0628567a | 22863 | See \`config.log' for more details." >&2;} |
3185942a JA |
22864 | { (exit 77); exit 77; }; }; } |
22865 | else | |
22866 | ac_cv_sizeof_double=0 | |
22867 | fi | |
cce855bc | 22868 | fi |
3185942a JA |
22869 | rm -rf conftest.dSYM |
22870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 22871 | fi |
f73dda09 | 22872 | rm -f conftest.val |
f73dda09 | 22873 | fi |
3185942a JA |
22874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
22875 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
cce855bc | 22876 | |
b80f6443 | 22877 | |
3185942a JA |
22878 | |
22879 | cat >>confdefs.h <<_ACEOF | |
22880 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
f73dda09 | 22881 | _ACEOF |
0628567a | 22882 | |
f73dda09 | 22883 | |
3185942a JA |
22884 | # The cast to long int works around a bug in the HP C Compiler |
22885 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22886 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22887 | # This bug is HP SR number 8606223364. | |
22888 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 | |
22889 | $as_echo_n "checking size of long long... " >&6; } | |
f73dda09 | 22890 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
3185942a | 22891 | $as_echo_n "(cached) " >&6 |
f73dda09 | 22892 | else |
cce855bc | 22893 | if test "$cross_compiling" = yes; then |
f73dda09 JA |
22894 | # Depending upon the size, compute the lo and hi bounds. |
22895 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22896 | /* confdefs.h. */ |
22897 | _ACEOF | |
22898 | cat confdefs.h >>conftest.$ac_ext | |
22899 | cat >>conftest.$ac_ext <<_ACEOF | |
22900 | /* end confdefs.h. */ | |
f73dda09 JA |
22901 | $ac_includes_default |
22902 | int | |
22903 | main () | |
cce855bc | 22904 | { |
3185942a | 22905 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
b80f6443 JA |
22906 | test_array [0] = 0 |
22907 | ||
f73dda09 JA |
22908 | ; |
22909 | return 0; | |
cce855bc | 22910 | } |
f73dda09 JA |
22911 | _ACEOF |
22912 | rm -f conftest.$ac_objext | |
3185942a JA |
22913 | if { (ac_try="$ac_compile" |
22914 | case "(($ac_try" in | |
22915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22916 | *) ac_try_echo=$ac_try;; | |
22917 | esac | |
22918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22919 | $as_echo "$ac_try_echo") >&5 | |
22920 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22921 | ac_status=$? |
0628567a JA |
22922 | grep -v '^ *+' conftest.er1 >conftest.err |
22923 | rm -f conftest.er1 | |
22924 | cat conftest.err >&5 | |
3185942a JA |
22925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22926 | (exit $ac_status); } && { | |
22927 | test -z "$ac_c_werror_flag" || | |
22928 | test ! -s conftest.err | |
22929 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22930 | ac_lo=0 ac_mid=0 |
22931 | while :; do | |
22932 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
22933 | /* confdefs.h. */ |
22934 | _ACEOF | |
22935 | cat confdefs.h >>conftest.$ac_ext | |
22936 | cat >>conftest.$ac_ext <<_ACEOF | |
22937 | /* end confdefs.h. */ | |
f73dda09 JA |
22938 | $ac_includes_default |
22939 | int | |
22940 | main () | |
22941 | { | |
3185942a | 22942 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b80f6443 JA |
22943 | test_array [0] = 0 |
22944 | ||
f73dda09 JA |
22945 | ; |
22946 | return 0; | |
22947 | } | |
22948 | _ACEOF | |
22949 | rm -f conftest.$ac_objext | |
3185942a JA |
22950 | if { (ac_try="$ac_compile" |
22951 | case "(($ac_try" in | |
22952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22953 | *) ac_try_echo=$ac_try;; | |
22954 | esac | |
22955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22956 | $as_echo "$ac_try_echo") >&5 | |
22957 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 22958 | ac_status=$? |
0628567a JA |
22959 | grep -v '^ *+' conftest.er1 >conftest.err |
22960 | rm -f conftest.er1 | |
22961 | cat conftest.err >&5 | |
3185942a JA |
22962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22963 | (exit $ac_status); } && { | |
22964 | test -z "$ac_c_werror_flag" || | |
22965 | test ! -s conftest.err | |
22966 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
22967 | ac_hi=$ac_mid; break |
22968 | else | |
3185942a | 22969 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22970 | sed 's/^/| /' conftest.$ac_ext >&5 |
22971 | ||
3185942a JA |
22972 | ac_lo=`expr $ac_mid + 1` |
22973 | if test $ac_lo -le $ac_mid; then | |
22974 | ac_lo= ac_hi= | |
22975 | break | |
22976 | fi | |
22977 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f73dda09 | 22978 | fi |
3185942a JA |
22979 | |
22980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 22981 | done |
cce855bc | 22982 | else |
3185942a | 22983 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
22984 | sed 's/^/| /' conftest.$ac_ext >&5 |
22985 | ||
3185942a | 22986 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
22987 | /* confdefs.h. */ |
22988 | _ACEOF | |
22989 | cat confdefs.h >>conftest.$ac_ext | |
22990 | cat >>conftest.$ac_ext <<_ACEOF | |
22991 | /* end confdefs.h. */ | |
b80f6443 JA |
22992 | $ac_includes_default |
22993 | int | |
22994 | main () | |
22995 | { | |
3185942a | 22996 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
b80f6443 JA |
22997 | test_array [0] = 0 |
22998 | ||
22999 | ; | |
23000 | return 0; | |
23001 | } | |
23002 | _ACEOF | |
23003 | rm -f conftest.$ac_objext | |
3185942a JA |
23004 | if { (ac_try="$ac_compile" |
23005 | case "(($ac_try" in | |
23006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23007 | *) ac_try_echo=$ac_try;; | |
23008 | esac | |
23009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23010 | $as_echo "$ac_try_echo") >&5 | |
23011 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 23012 | ac_status=$? |
0628567a JA |
23013 | grep -v '^ *+' conftest.er1 >conftest.err |
23014 | rm -f conftest.er1 | |
23015 | cat conftest.err >&5 | |
3185942a JA |
23016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23017 | (exit $ac_status); } && { | |
23018 | test -z "$ac_c_werror_flag" || | |
23019 | test ! -s conftest.err | |
23020 | } && test -s conftest.$ac_objext; then | |
b80f6443 | 23021 | ac_hi=-1 ac_mid=-1 |
f73dda09 JA |
23022 | while :; do |
23023 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23024 | /* confdefs.h. */ |
23025 | _ACEOF | |
23026 | cat confdefs.h >>conftest.$ac_ext | |
23027 | cat >>conftest.$ac_ext <<_ACEOF | |
23028 | /* end confdefs.h. */ | |
f73dda09 JA |
23029 | $ac_includes_default |
23030 | int | |
23031 | main () | |
23032 | { | |
3185942a | 23033 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
b80f6443 JA |
23034 | test_array [0] = 0 |
23035 | ||
f73dda09 JA |
23036 | ; |
23037 | return 0; | |
23038 | } | |
23039 | _ACEOF | |
23040 | rm -f conftest.$ac_objext | |
3185942a JA |
23041 | if { (ac_try="$ac_compile" |
23042 | case "(($ac_try" in | |
23043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23044 | *) ac_try_echo=$ac_try;; | |
23045 | esac | |
23046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23047 | $as_echo "$ac_try_echo") >&5 | |
23048 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23049 | ac_status=$? |
0628567a JA |
23050 | grep -v '^ *+' conftest.er1 >conftest.err |
23051 | rm -f conftest.er1 | |
23052 | cat conftest.err >&5 | |
3185942a JA |
23053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23054 | (exit $ac_status); } && { | |
23055 | test -z "$ac_c_werror_flag" || | |
23056 | test ! -s conftest.err | |
23057 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
23058 | ac_lo=$ac_mid; break |
23059 | else | |
3185942a | 23060 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23061 | sed 's/^/| /' conftest.$ac_ext >&5 |
23062 | ||
3185942a JA |
23063 | ac_hi=`expr '(' $ac_mid ')' - 1` |
23064 | if test $ac_mid -le $ac_hi; then | |
23065 | ac_lo= ac_hi= | |
23066 | break | |
23067 | fi | |
23068 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 23069 | fi |
3185942a JA |
23070 | |
23071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 23072 | done |
b80f6443 | 23073 | else |
3185942a | 23074 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23075 | sed 's/^/| /' conftest.$ac_ext >&5 |
23076 | ||
3185942a | 23077 | ac_lo= ac_hi= |
b80f6443 | 23078 | fi |
3185942a JA |
23079 | |
23080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23081 | fi |
3185942a JA |
23082 | |
23083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 JA |
23084 | # Binary search between lo and hi bounds. |
23085 | while test "x$ac_lo" != "x$ac_hi"; do | |
23086 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
23087 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23088 | /* confdefs.h. */ |
23089 | _ACEOF | |
23090 | cat confdefs.h >>conftest.$ac_ext | |
23091 | cat >>conftest.$ac_ext <<_ACEOF | |
23092 | /* end confdefs.h. */ | |
f73dda09 JA |
23093 | $ac_includes_default |
23094 | int | |
23095 | main () | |
23096 | { | |
3185942a | 23097 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
b80f6443 JA |
23098 | test_array [0] = 0 |
23099 | ||
f73dda09 JA |
23100 | ; |
23101 | return 0; | |
23102 | } | |
23103 | _ACEOF | |
23104 | rm -f conftest.$ac_objext | |
3185942a JA |
23105 | if { (ac_try="$ac_compile" |
23106 | case "(($ac_try" in | |
23107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23108 | *) ac_try_echo=$ac_try;; | |
23109 | esac | |
23110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23111 | $as_echo "$ac_try_echo") >&5 | |
23112 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23113 | ac_status=$? |
0628567a JA |
23114 | grep -v '^ *+' conftest.er1 >conftest.err |
23115 | rm -f conftest.er1 | |
23116 | cat conftest.err >&5 | |
3185942a JA |
23117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23118 | (exit $ac_status); } && { | |
23119 | test -z "$ac_c_werror_flag" || | |
23120 | test ! -s conftest.err | |
23121 | } && test -s conftest.$ac_objext; then | |
f73dda09 JA |
23122 | ac_hi=$ac_mid |
23123 | else | |
3185942a | 23124 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23125 | sed 's/^/| /' conftest.$ac_ext >&5 |
23126 | ||
3185942a | 23127 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f73dda09 | 23128 | fi |
3185942a JA |
23129 | |
23130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 23131 | done |
b80f6443 JA |
23132 | case $ac_lo in |
23133 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
3185942a JA |
23134 | '') if test "$ac_cv_type_long_long" = yes; then |
23135 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
23136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
23137 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
0628567a | 23138 | See \`config.log' for more details." >&5 |
3185942a | 23139 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
0628567a | 23140 | See \`config.log' for more details." >&2;} |
3185942a JA |
23141 | { (exit 77); exit 77; }; }; } |
23142 | else | |
23143 | ac_cv_sizeof_long_long=0 | |
23144 | fi ;; | |
b80f6443 | 23145 | esac |
bb70624e | 23146 | else |
f73dda09 | 23147 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23148 | /* confdefs.h. */ |
23149 | _ACEOF | |
23150 | cat confdefs.h >>conftest.$ac_ext | |
23151 | cat >>conftest.$ac_ext <<_ACEOF | |
23152 | /* end confdefs.h. */ | |
f73dda09 | 23153 | $ac_includes_default |
3185942a JA |
23154 | static long int longval () { return (long int) (sizeof (long long)); } |
23155 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } | |
b80f6443 JA |
23156 | #include <stdio.h> |
23157 | #include <stdlib.h> | |
f73dda09 JA |
23158 | int |
23159 | main () | |
bb70624e | 23160 | { |
b80f6443 JA |
23161 | |
23162 | FILE *f = fopen ("conftest.val", "w"); | |
23163 | if (! f) | |
3185942a JA |
23164 | return 1; |
23165 | if (((long int) (sizeof (long long))) < 0) | |
b80f6443 | 23166 | { |
3185942a JA |
23167 | long int i = longval (); |
23168 | if (i != ((long int) (sizeof (long long)))) | |
23169 | return 1; | |
23170 | fprintf (f, "%ld", i); | |
b80f6443 JA |
23171 | } |
23172 | else | |
23173 | { | |
3185942a JA |
23174 | unsigned long int i = ulongval (); |
23175 | if (i != ((long int) (sizeof (long long)))) | |
23176 | return 1; | |
23177 | fprintf (f, "%lu", i); | |
b80f6443 | 23178 | } |
3185942a JA |
23179 | /* Do not output a trailing newline, as this causes \r\n confusion |
23180 | on some platforms. */ | |
23181 | return ferror (f) || fclose (f) != 0; | |
b80f6443 | 23182 | |
f73dda09 JA |
23183 | ; |
23184 | return 0; | |
bb70624e | 23185 | } |
f73dda09 JA |
23186 | _ACEOF |
23187 | rm -f conftest$ac_exeext | |
3185942a JA |
23188 | if { (ac_try="$ac_link" |
23189 | case "(($ac_try" in | |
23190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23191 | *) ac_try_echo=$ac_try;; | |
23192 | esac | |
23193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23194 | $as_echo "$ac_try_echo") >&5 | |
23195 | (eval "$ac_link") 2>&5 | |
f73dda09 | 23196 | ac_status=$? |
3185942a | 23197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 23198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
23199 | { (case "(($ac_try" in |
23200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23201 | *) ac_try_echo=$ac_try;; | |
23202 | esac | |
23203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23204 | $as_echo "$ac_try_echo") >&5 | |
23205 | (eval "$ac_try") 2>&5 | |
f73dda09 | 23206 | ac_status=$? |
3185942a | 23207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
23208 | (exit $ac_status); }; }; then |
23209 | ac_cv_sizeof_long_long=`cat conftest.val` | |
bb70624e | 23210 | else |
3185942a JA |
23211 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
23212 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
23213 | sed 's/^/| /' conftest.$ac_ext >&5 |
23214 | ||
b80f6443 | 23215 | ( exit $ac_status ) |
3185942a JA |
23216 | if test "$ac_cv_type_long_long" = yes; then |
23217 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
23218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
23219 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
0628567a | 23220 | See \`config.log' for more details." >&5 |
3185942a | 23221 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
0628567a | 23222 | See \`config.log' for more details." >&2;} |
3185942a JA |
23223 | { (exit 77); exit 77; }; }; } |
23224 | else | |
23225 | ac_cv_sizeof_long_long=0 | |
23226 | fi | |
bb70624e | 23227 | fi |
3185942a JA |
23228 | rm -rf conftest.dSYM |
23229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 23230 | fi |
f73dda09 | 23231 | rm -f conftest.val |
f73dda09 | 23232 | fi |
3185942a JA |
23233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
23234 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
23235 | ||
23236 | ||
23237 | ||
b80f6443 | 23238 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 23239 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
b80f6443 | 23240 | _ACEOF |
bb70624e | 23241 | |
b80f6443 JA |
23242 | |
23243 | ||
3185942a JA |
23244 | { $as_echo "$as_me:$LINENO: checking for u_int" >&5 |
23245 | $as_echo_n "checking for u_int... " >&6; } | |
f73dda09 | 23246 | if test "${ac_cv_type_u_int+set}" = set; then |
3185942a | 23247 | $as_echo_n "(cached) " >&6 |
bb70624e | 23248 | else |
3185942a JA |
23249 | ac_cv_type_u_int=no |
23250 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23251 | /* confdefs.h. */ |
23252 | _ACEOF | |
23253 | cat confdefs.h >>conftest.$ac_ext | |
23254 | cat >>conftest.$ac_ext <<_ACEOF | |
23255 | /* end confdefs.h. */ | |
f73dda09 JA |
23256 | $ac_includes_default |
23257 | int | |
23258 | main () | |
23259 | { | |
f73dda09 | 23260 | if (sizeof (u_int)) |
3185942a | 23261 | return 0; |
f73dda09 JA |
23262 | ; |
23263 | return 0; | |
23264 | } | |
23265 | _ACEOF | |
23266 | rm -f conftest.$ac_objext | |
3185942a JA |
23267 | if { (ac_try="$ac_compile" |
23268 | case "(($ac_try" in | |
23269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23270 | *) ac_try_echo=$ac_try;; | |
23271 | esac | |
23272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23273 | $as_echo "$ac_try_echo") >&5 | |
23274 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23275 | ac_status=$? |
0628567a JA |
23276 | grep -v '^ *+' conftest.er1 >conftest.err |
23277 | rm -f conftest.er1 | |
23278 | cat conftest.err >&5 | |
3185942a JA |
23279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23280 | (exit $ac_status); } && { | |
23281 | test -z "$ac_c_werror_flag" || | |
23282 | test ! -s conftest.err | |
23283 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23284 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23285 | /* confdefs.h. */ |
23286 | _ACEOF | |
23287 | cat confdefs.h >>conftest.$ac_ext | |
23288 | cat >>conftest.$ac_ext <<_ACEOF | |
23289 | /* end confdefs.h. */ | |
f73dda09 JA |
23290 | $ac_includes_default |
23291 | int | |
23292 | main () | |
23293 | { | |
3185942a JA |
23294 | if (sizeof ((u_int))) |
23295 | return 0; | |
f73dda09 JA |
23296 | ; |
23297 | return 0; | |
23298 | } | |
23299 | _ACEOF | |
23300 | rm -f conftest.$ac_objext | |
3185942a JA |
23301 | if { (ac_try="$ac_compile" |
23302 | case "(($ac_try" in | |
23303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23304 | *) ac_try_echo=$ac_try;; | |
23305 | esac | |
23306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23307 | $as_echo "$ac_try_echo") >&5 | |
23308 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23309 | ac_status=$? |
0628567a JA |
23310 | grep -v '^ *+' conftest.er1 >conftest.err |
23311 | rm -f conftest.er1 | |
23312 | cat conftest.err >&5 | |
3185942a JA |
23313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23314 | (exit $ac_status); } && { | |
23315 | test -z "$ac_c_werror_flag" || | |
23316 | test ! -s conftest.err | |
23317 | } && test -s conftest.$ac_objext; then | |
23318 | : | |
23319 | else | |
23320 | $as_echo "$as_me: failed program was:" >&5 | |
23321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23322 | ||
23323 | ac_cv_type_u_int=yes | |
23324 | fi | |
23325 | ||
23326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 23327 | else |
3185942a | 23328 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23329 | sed 's/^/| /' conftest.$ac_ext >&5 |
23330 | ||
3185942a | 23331 | |
bb70624e | 23332 | fi |
3185942a JA |
23333 | |
23334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 23335 | fi |
3185942a JA |
23336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 |
23337 | $as_echo "$ac_cv_type_u_int" >&6; } | |
23338 | if test "x$ac_cv_type_u_int" = x""yes; then | |
f73dda09 JA |
23339 | : |
23340 | else | |
23341 | ||
b80f6443 | 23342 | cat >>confdefs.h <<_ACEOF |
3185942a | 23343 | #define u_int unsigned int |
b80f6443 | 23344 | _ACEOF |
bb70624e JA |
23345 | |
23346 | fi | |
23347 | ||
3185942a JA |
23348 | { $as_echo "$as_me:$LINENO: checking for u_long" >&5 |
23349 | $as_echo_n "checking for u_long... " >&6; } | |
23350 | if test "${ac_cv_type_u_long+set}" = set; then | |
23351 | $as_echo_n "(cached) " >&6 | |
bb70624e | 23352 | else |
3185942a JA |
23353 | ac_cv_type_u_long=no |
23354 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23355 | /* confdefs.h. */ |
23356 | _ACEOF | |
23357 | cat confdefs.h >>conftest.$ac_ext | |
23358 | cat >>conftest.$ac_ext <<_ACEOF | |
23359 | /* end confdefs.h. */ | |
f73dda09 JA |
23360 | $ac_includes_default |
23361 | int | |
23362 | main () | |
23363 | { | |
3185942a JA |
23364 | if (sizeof (u_long)) |
23365 | return 0; | |
f73dda09 JA |
23366 | ; |
23367 | return 0; | |
23368 | } | |
23369 | _ACEOF | |
23370 | rm -f conftest.$ac_objext | |
3185942a JA |
23371 | if { (ac_try="$ac_compile" |
23372 | case "(($ac_try" in | |
23373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23374 | *) ac_try_echo=$ac_try;; | |
23375 | esac | |
23376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23377 | $as_echo "$ac_try_echo") >&5 | |
23378 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23379 | ac_status=$? |
0628567a JA |
23380 | grep -v '^ *+' conftest.er1 >conftest.err |
23381 | rm -f conftest.er1 | |
23382 | cat conftest.err >&5 | |
3185942a JA |
23383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23384 | (exit $ac_status); } && { | |
23385 | test -z "$ac_c_werror_flag" || | |
23386 | test ! -s conftest.err | |
23387 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23388 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23389 | /* confdefs.h. */ |
23390 | _ACEOF | |
23391 | cat confdefs.h >>conftest.$ac_ext | |
23392 | cat >>conftest.$ac_ext <<_ACEOF | |
23393 | /* end confdefs.h. */ | |
f73dda09 JA |
23394 | $ac_includes_default |
23395 | int | |
23396 | main () | |
23397 | { | |
3185942a JA |
23398 | if (sizeof ((u_long))) |
23399 | return 0; | |
f73dda09 JA |
23400 | ; |
23401 | return 0; | |
23402 | } | |
23403 | _ACEOF | |
23404 | rm -f conftest.$ac_objext | |
3185942a JA |
23405 | if { (ac_try="$ac_compile" |
23406 | case "(($ac_try" in | |
23407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23408 | *) ac_try_echo=$ac_try;; | |
23409 | esac | |
23410 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23411 | $as_echo "$ac_try_echo") >&5 | |
23412 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23413 | ac_status=$? |
0628567a JA |
23414 | grep -v '^ *+' conftest.er1 >conftest.err |
23415 | rm -f conftest.er1 | |
23416 | cat conftest.err >&5 | |
3185942a JA |
23417 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23418 | (exit $ac_status); } && { | |
23419 | test -z "$ac_c_werror_flag" || | |
23420 | test ! -s conftest.err | |
23421 | } && test -s conftest.$ac_objext; then | |
23422 | : | |
23423 | else | |
23424 | $as_echo "$as_me: failed program was:" >&5 | |
23425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23426 | ||
23427 | ac_cv_type_u_long=yes | |
23428 | fi | |
23429 | ||
23430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 23431 | else |
3185942a | 23432 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23433 | sed 's/^/| /' conftest.$ac_ext >&5 |
23434 | ||
3185942a | 23435 | |
bb70624e | 23436 | fi |
3185942a JA |
23437 | |
23438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 23439 | fi |
3185942a JA |
23440 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 |
23441 | $as_echo "$ac_cv_type_u_long" >&6; } | |
23442 | if test "x$ac_cv_type_u_long" = x""yes; then | |
f73dda09 JA |
23443 | : |
23444 | else | |
23445 | ||
b80f6443 | 23446 | cat >>confdefs.h <<_ACEOF |
3185942a | 23447 | #define u_long unsigned long |
b80f6443 | 23448 | _ACEOF |
bb70624e JA |
23449 | |
23450 | fi | |
23451 | ||
3185942a JA |
23452 | |
23453 | ||
23454 | if test "$ac_cv_sizeof_short" = 2; then | |
23455 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 | |
23456 | $as_echo_n "checking for bits16_t... " >&6; } | |
f73dda09 | 23457 | if test "${ac_cv_type_bits16_t+set}" = set; then |
3185942a | 23458 | $as_echo_n "(cached) " >&6 |
b72432fd | 23459 | else |
3185942a JA |
23460 | ac_cv_type_bits16_t=no |
23461 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23462 | /* confdefs.h. */ |
23463 | _ACEOF | |
23464 | cat confdefs.h >>conftest.$ac_ext | |
23465 | cat >>conftest.$ac_ext <<_ACEOF | |
23466 | /* end confdefs.h. */ | |
f73dda09 JA |
23467 | $ac_includes_default |
23468 | int | |
23469 | main () | |
23470 | { | |
f73dda09 | 23471 | if (sizeof (bits16_t)) |
3185942a | 23472 | return 0; |
f73dda09 JA |
23473 | ; |
23474 | return 0; | |
23475 | } | |
23476 | _ACEOF | |
23477 | rm -f conftest.$ac_objext | |
3185942a JA |
23478 | if { (ac_try="$ac_compile" |
23479 | case "(($ac_try" in | |
23480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23481 | *) ac_try_echo=$ac_try;; | |
23482 | esac | |
23483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23484 | $as_echo "$ac_try_echo") >&5 | |
23485 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23486 | ac_status=$? |
0628567a JA |
23487 | grep -v '^ *+' conftest.er1 >conftest.err |
23488 | rm -f conftest.er1 | |
23489 | cat conftest.err >&5 | |
3185942a JA |
23490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23491 | (exit $ac_status); } && { | |
23492 | test -z "$ac_c_werror_flag" || | |
23493 | test ! -s conftest.err | |
23494 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23495 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23496 | /* confdefs.h. */ |
23497 | _ACEOF | |
23498 | cat confdefs.h >>conftest.$ac_ext | |
23499 | cat >>conftest.$ac_ext <<_ACEOF | |
23500 | /* end confdefs.h. */ | |
f73dda09 JA |
23501 | $ac_includes_default |
23502 | int | |
23503 | main () | |
23504 | { | |
3185942a JA |
23505 | if (sizeof ((bits16_t))) |
23506 | return 0; | |
f73dda09 JA |
23507 | ; |
23508 | return 0; | |
23509 | } | |
23510 | _ACEOF | |
23511 | rm -f conftest.$ac_objext | |
3185942a JA |
23512 | if { (ac_try="$ac_compile" |
23513 | case "(($ac_try" in | |
23514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23515 | *) ac_try_echo=$ac_try;; | |
23516 | esac | |
23517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23518 | $as_echo "$ac_try_echo") >&5 | |
23519 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23520 | ac_status=$? |
0628567a JA |
23521 | grep -v '^ *+' conftest.er1 >conftest.err |
23522 | rm -f conftest.er1 | |
23523 | cat conftest.err >&5 | |
3185942a JA |
23524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23525 | (exit $ac_status); } && { | |
23526 | test -z "$ac_c_werror_flag" || | |
23527 | test ! -s conftest.err | |
23528 | } && test -s conftest.$ac_objext; then | |
23529 | : | |
23530 | else | |
23531 | $as_echo "$as_me: failed program was:" >&5 | |
23532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23533 | ||
23534 | ac_cv_type_bits16_t=yes | |
23535 | fi | |
23536 | ||
23537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23538 | else |
3185942a | 23539 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23540 | sed 's/^/| /' conftest.$ac_ext >&5 |
23541 | ||
3185942a | 23542 | |
cce855bc | 23543 | fi |
3185942a JA |
23544 | |
23545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23546 | fi |
3185942a JA |
23547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
23548 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
23549 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
23550 | : |
23551 | else | |
23552 | ||
b80f6443 | 23553 | cat >>confdefs.h <<_ACEOF |
3185942a | 23554 | #define bits16_t short |
b80f6443 | 23555 | _ACEOF |
cce855bc JA |
23556 | |
23557 | fi | |
23558 | ||
bb70624e | 23559 | elif test "$ac_cv_sizeof_char" = 2; then |
3185942a JA |
23560 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
23561 | $as_echo_n "checking for bits16_t... " >&6; } | |
23562 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
23563 | $as_echo_n "(cached) " >&6 | |
cce855bc | 23564 | else |
3185942a JA |
23565 | ac_cv_type_bits16_t=no |
23566 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23567 | /* confdefs.h. */ |
23568 | _ACEOF | |
23569 | cat confdefs.h >>conftest.$ac_ext | |
23570 | cat >>conftest.$ac_ext <<_ACEOF | |
23571 | /* end confdefs.h. */ | |
f73dda09 JA |
23572 | $ac_includes_default |
23573 | int | |
23574 | main () | |
23575 | { | |
3185942a JA |
23576 | if (sizeof (bits16_t)) |
23577 | return 0; | |
f73dda09 JA |
23578 | ; |
23579 | return 0; | |
23580 | } | |
23581 | _ACEOF | |
23582 | rm -f conftest.$ac_objext | |
3185942a JA |
23583 | if { (ac_try="$ac_compile" |
23584 | case "(($ac_try" in | |
23585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23586 | *) ac_try_echo=$ac_try;; | |
23587 | esac | |
23588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23589 | $as_echo "$ac_try_echo") >&5 | |
23590 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23591 | ac_status=$? |
0628567a JA |
23592 | grep -v '^ *+' conftest.er1 >conftest.err |
23593 | rm -f conftest.er1 | |
23594 | cat conftest.err >&5 | |
3185942a JA |
23595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23596 | (exit $ac_status); } && { | |
23597 | test -z "$ac_c_werror_flag" || | |
23598 | test ! -s conftest.err | |
23599 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23600 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23601 | /* confdefs.h. */ |
23602 | _ACEOF | |
23603 | cat confdefs.h >>conftest.$ac_ext | |
23604 | cat >>conftest.$ac_ext <<_ACEOF | |
23605 | /* end confdefs.h. */ | |
f73dda09 JA |
23606 | $ac_includes_default |
23607 | int | |
23608 | main () | |
23609 | { | |
3185942a JA |
23610 | if (sizeof ((bits16_t))) |
23611 | return 0; | |
f73dda09 JA |
23612 | ; |
23613 | return 0; | |
23614 | } | |
23615 | _ACEOF | |
23616 | rm -f conftest.$ac_objext | |
3185942a JA |
23617 | if { (ac_try="$ac_compile" |
23618 | case "(($ac_try" in | |
23619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23620 | *) ac_try_echo=$ac_try;; | |
23621 | esac | |
23622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23623 | $as_echo "$ac_try_echo") >&5 | |
23624 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23625 | ac_status=$? |
0628567a JA |
23626 | grep -v '^ *+' conftest.er1 >conftest.err |
23627 | rm -f conftest.er1 | |
23628 | cat conftest.err >&5 | |
3185942a JA |
23629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23630 | (exit $ac_status); } && { | |
23631 | test -z "$ac_c_werror_flag" || | |
23632 | test ! -s conftest.err | |
23633 | } && test -s conftest.$ac_objext; then | |
23634 | : | |
23635 | else | |
23636 | $as_echo "$as_me: failed program was:" >&5 | |
23637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23638 | ||
23639 | ac_cv_type_bits16_t=yes | |
23640 | fi | |
23641 | ||
23642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 23643 | else |
3185942a | 23644 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23645 | sed 's/^/| /' conftest.$ac_ext >&5 |
23646 | ||
3185942a | 23647 | |
cce855bc | 23648 | fi |
3185942a JA |
23649 | |
23650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 23651 | fi |
3185942a JA |
23652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
23653 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
23654 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
23655 | : |
23656 | else | |
23657 | ||
b80f6443 | 23658 | cat >>confdefs.h <<_ACEOF |
3185942a | 23659 | #define bits16_t char |
b80f6443 | 23660 | _ACEOF |
cce855bc | 23661 | |
b72432fd JA |
23662 | fi |
23663 | ||
cce855bc | 23664 | else |
3185942a JA |
23665 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
23666 | $as_echo_n "checking for bits16_t... " >&6; } | |
23667 | if test "${ac_cv_type_bits16_t+set}" = set; then | |
23668 | $as_echo_n "(cached) " >&6 | |
23669 | else | |
23670 | ac_cv_type_bits16_t=no | |
23671 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23672 | /* confdefs.h. */ |
23673 | _ACEOF | |
23674 | cat confdefs.h >>conftest.$ac_ext | |
23675 | cat >>conftest.$ac_ext <<_ACEOF | |
23676 | /* end confdefs.h. */ | |
f73dda09 JA |
23677 | $ac_includes_default |
23678 | int | |
23679 | main () | |
23680 | { | |
3185942a JA |
23681 | if (sizeof (bits16_t)) |
23682 | return 0; | |
f73dda09 JA |
23683 | ; |
23684 | return 0; | |
23685 | } | |
23686 | _ACEOF | |
23687 | rm -f conftest.$ac_objext | |
3185942a JA |
23688 | if { (ac_try="$ac_compile" |
23689 | case "(($ac_try" in | |
23690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23691 | *) ac_try_echo=$ac_try;; | |
23692 | esac | |
23693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23694 | $as_echo "$ac_try_echo") >&5 | |
23695 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23696 | ac_status=$? |
0628567a JA |
23697 | grep -v '^ *+' conftest.er1 >conftest.err |
23698 | rm -f conftest.er1 | |
23699 | cat conftest.err >&5 | |
3185942a JA |
23700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23701 | (exit $ac_status); } && { | |
23702 | test -z "$ac_c_werror_flag" || | |
23703 | test ! -s conftest.err | |
23704 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23705 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23706 | /* confdefs.h. */ |
23707 | _ACEOF | |
23708 | cat confdefs.h >>conftest.$ac_ext | |
23709 | cat >>conftest.$ac_ext <<_ACEOF | |
23710 | /* end confdefs.h. */ | |
f73dda09 JA |
23711 | $ac_includes_default |
23712 | int | |
23713 | main () | |
23714 | { | |
3185942a JA |
23715 | if (sizeof ((bits16_t))) |
23716 | return 0; | |
f73dda09 JA |
23717 | ; |
23718 | return 0; | |
23719 | } | |
23720 | _ACEOF | |
23721 | rm -f conftest.$ac_objext | |
3185942a JA |
23722 | if { (ac_try="$ac_compile" |
23723 | case "(($ac_try" in | |
23724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23725 | *) ac_try_echo=$ac_try;; | |
23726 | esac | |
23727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23728 | $as_echo "$ac_try_echo") >&5 | |
23729 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23730 | ac_status=$? |
0628567a JA |
23731 | grep -v '^ *+' conftest.er1 >conftest.err |
23732 | rm -f conftest.er1 | |
23733 | cat conftest.err >&5 | |
3185942a JA |
23734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23735 | (exit $ac_status); } && { | |
23736 | test -z "$ac_c_werror_flag" || | |
23737 | test ! -s conftest.err | |
23738 | } && test -s conftest.$ac_objext; then | |
23739 | : | |
23740 | else | |
23741 | $as_echo "$as_me: failed program was:" >&5 | |
23742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23743 | ||
23744 | ac_cv_type_bits16_t=yes | |
23745 | fi | |
23746 | ||
23747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23748 | else |
3185942a | 23749 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23750 | sed 's/^/| /' conftest.$ac_ext >&5 |
23751 | ||
3185942a | 23752 | |
cce855bc | 23753 | fi |
3185942a JA |
23754 | |
23755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23756 | fi |
3185942a JA |
23757 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
23758 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
23759 | if test "x$ac_cv_type_bits16_t" = x""yes; then | |
f73dda09 JA |
23760 | : |
23761 | else | |
23762 | ||
b80f6443 | 23763 | cat >>confdefs.h <<_ACEOF |
3185942a | 23764 | #define bits16_t short |
b80f6443 | 23765 | _ACEOF |
cce855bc JA |
23766 | |
23767 | fi | |
23768 | ||
3185942a JA |
23769 | fi |
23770 | ||
23771 | ||
23772 | if test "$ac_cv_sizeof_short" = 2; then | |
23773 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
23774 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
23775 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
23776 | $as_echo_n "(cached) " >&6 | |
cce855bc | 23777 | else |
3185942a JA |
23778 | ac_cv_type_u_bits16_t=no |
23779 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23780 | /* confdefs.h. */ |
23781 | _ACEOF | |
23782 | cat confdefs.h >>conftest.$ac_ext | |
23783 | cat >>conftest.$ac_ext <<_ACEOF | |
23784 | /* end confdefs.h. */ | |
f73dda09 JA |
23785 | $ac_includes_default |
23786 | int | |
23787 | main () | |
23788 | { | |
3185942a JA |
23789 | if (sizeof (u_bits16_t)) |
23790 | return 0; | |
f73dda09 JA |
23791 | ; |
23792 | return 0; | |
23793 | } | |
23794 | _ACEOF | |
23795 | rm -f conftest.$ac_objext | |
3185942a JA |
23796 | if { (ac_try="$ac_compile" |
23797 | case "(($ac_try" in | |
23798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23799 | *) ac_try_echo=$ac_try;; | |
23800 | esac | |
23801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23802 | $as_echo "$ac_try_echo") >&5 | |
23803 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23804 | ac_status=$? |
0628567a JA |
23805 | grep -v '^ *+' conftest.er1 >conftest.err |
23806 | rm -f conftest.er1 | |
23807 | cat conftest.err >&5 | |
3185942a JA |
23808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23809 | (exit $ac_status); } && { | |
23810 | test -z "$ac_c_werror_flag" || | |
23811 | test ! -s conftest.err | |
23812 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 23813 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
23814 | /* confdefs.h. */ |
23815 | _ACEOF | |
23816 | cat confdefs.h >>conftest.$ac_ext | |
23817 | cat >>conftest.$ac_ext <<_ACEOF | |
23818 | /* end confdefs.h. */ | |
f73dda09 JA |
23819 | $ac_includes_default |
23820 | int | |
23821 | main () | |
23822 | { | |
3185942a JA |
23823 | if (sizeof ((u_bits16_t))) |
23824 | return 0; | |
f73dda09 JA |
23825 | ; |
23826 | return 0; | |
23827 | } | |
23828 | _ACEOF | |
23829 | rm -f conftest.$ac_objext | |
3185942a JA |
23830 | if { (ac_try="$ac_compile" |
23831 | case "(($ac_try" in | |
23832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23833 | *) ac_try_echo=$ac_try;; | |
23834 | esac | |
23835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23836 | $as_echo "$ac_try_echo") >&5 | |
23837 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23838 | ac_status=$? |
0628567a JA |
23839 | grep -v '^ *+' conftest.er1 >conftest.err |
23840 | rm -f conftest.er1 | |
23841 | cat conftest.err >&5 | |
3185942a JA |
23842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23843 | (exit $ac_status); } && { | |
23844 | test -z "$ac_c_werror_flag" || | |
23845 | test ! -s conftest.err | |
23846 | } && test -s conftest.$ac_objext; then | |
23847 | : | |
23848 | else | |
23849 | $as_echo "$as_me: failed program was:" >&5 | |
23850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23851 | ||
23852 | ac_cv_type_u_bits16_t=yes | |
23853 | fi | |
23854 | ||
23855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 23856 | else |
3185942a | 23857 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
23858 | sed 's/^/| /' conftest.$ac_ext >&5 |
23859 | ||
3185942a | 23860 | |
b72432fd | 23861 | fi |
3185942a JA |
23862 | |
23863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 23864 | fi |
3185942a JA |
23865 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
23866 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
23867 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
f73dda09 JA |
23868 | : |
23869 | else | |
23870 | ||
b80f6443 | 23871 | cat >>confdefs.h <<_ACEOF |
3185942a | 23872 | #define u_bits16_t unsigned short |
b80f6443 | 23873 | _ACEOF |
cce855bc JA |
23874 | |
23875 | fi | |
23876 | ||
3185942a JA |
23877 | elif test "$ac_cv_sizeof_char" = 2; then |
23878 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
23879 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
23880 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
23881 | $as_echo_n "(cached) " >&6 | |
cce855bc | 23882 | else |
3185942a JA |
23883 | ac_cv_type_u_bits16_t=no |
23884 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
23885 | /* confdefs.h. */ |
23886 | _ACEOF | |
23887 | cat confdefs.h >>conftest.$ac_ext | |
23888 | cat >>conftest.$ac_ext <<_ACEOF | |
23889 | /* end confdefs.h. */ | |
f73dda09 JA |
23890 | $ac_includes_default |
23891 | int | |
23892 | main () | |
23893 | { | |
3185942a JA |
23894 | if (sizeof (u_bits16_t)) |
23895 | return 0; | |
f73dda09 JA |
23896 | ; |
23897 | return 0; | |
23898 | } | |
23899 | _ACEOF | |
23900 | rm -f conftest.$ac_objext | |
3185942a JA |
23901 | if { (ac_try="$ac_compile" |
23902 | case "(($ac_try" in | |
23903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23904 | *) ac_try_echo=$ac_try;; | |
23905 | esac | |
23906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23907 | $as_echo "$ac_try_echo") >&5 | |
23908 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 23909 | ac_status=$? |
0628567a JA |
23910 | grep -v '^ *+' conftest.er1 >conftest.err |
23911 | rm -f conftest.er1 | |
23912 | cat conftest.err >&5 | |
3185942a JA |
23913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23914 | (exit $ac_status); } && { | |
23915 | test -z "$ac_c_werror_flag" || | |
23916 | test ! -s conftest.err | |
23917 | } && test -s conftest.$ac_objext; then | |
23918 | cat >conftest.$ac_ext <<_ACEOF | |
23919 | /* confdefs.h. */ | |
23920 | _ACEOF | |
23921 | cat confdefs.h >>conftest.$ac_ext | |
23922 | cat >>conftest.$ac_ext <<_ACEOF | |
23923 | /* end confdefs.h. */ | |
23924 | $ac_includes_default | |
23925 | int | |
23926 | main () | |
23927 | { | |
23928 | if (sizeof ((u_bits16_t))) | |
23929 | return 0; | |
23930 | ; | |
23931 | return 0; | |
23932 | } | |
23933 | _ACEOF | |
23934 | rm -f conftest.$ac_objext | |
23935 | if { (ac_try="$ac_compile" | |
23936 | case "(($ac_try" in | |
23937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23938 | *) ac_try_echo=$ac_try;; | |
23939 | esac | |
23940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23941 | $as_echo "$ac_try_echo") >&5 | |
23942 | (eval "$ac_compile") 2>conftest.er1 | |
23943 | ac_status=$? | |
23944 | grep -v '^ *+' conftest.er1 >conftest.err | |
23945 | rm -f conftest.er1 | |
23946 | cat conftest.err >&5 | |
23947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23948 | (exit $ac_status); } && { | |
23949 | test -z "$ac_c_werror_flag" || | |
23950 | test ! -s conftest.err | |
23951 | } && test -s conftest.$ac_objext; then | |
23952 | : | |
23953 | else | |
23954 | $as_echo "$as_me: failed program was:" >&5 | |
23955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23956 | ||
23957 | ac_cv_type_u_bits16_t=yes | |
23958 | fi | |
23959 | ||
23960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23961 | else | |
23962 | $as_echo "$as_me: failed program was:" >&5 | |
23963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23964 | ||
23965 | ||
23966 | fi | |
23967 | ||
23968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23969 | fi | |
23970 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 | |
23971 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
23972 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
23973 | : | |
23974 | else | |
23975 | ||
23976 | cat >>confdefs.h <<_ACEOF | |
23977 | #define u_bits16_t unsigned char | |
23978 | _ACEOF | |
23979 | ||
23980 | fi | |
23981 | ||
23982 | else | |
23983 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 | |
23984 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
23985 | if test "${ac_cv_type_u_bits16_t+set}" = set; then | |
23986 | $as_echo_n "(cached) " >&6 | |
23987 | else | |
23988 | ac_cv_type_u_bits16_t=no | |
23989 | cat >conftest.$ac_ext <<_ACEOF | |
23990 | /* confdefs.h. */ | |
23991 | _ACEOF | |
23992 | cat confdefs.h >>conftest.$ac_ext | |
23993 | cat >>conftest.$ac_ext <<_ACEOF | |
23994 | /* end confdefs.h. */ | |
23995 | $ac_includes_default | |
23996 | int | |
23997 | main () | |
23998 | { | |
23999 | if (sizeof (u_bits16_t)) | |
24000 | return 0; | |
24001 | ; | |
24002 | return 0; | |
24003 | } | |
24004 | _ACEOF | |
24005 | rm -f conftest.$ac_objext | |
24006 | if { (ac_try="$ac_compile" | |
24007 | case "(($ac_try" in | |
24008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24009 | *) ac_try_echo=$ac_try;; | |
24010 | esac | |
24011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24012 | $as_echo "$ac_try_echo") >&5 | |
24013 | (eval "$ac_compile") 2>conftest.er1 | |
24014 | ac_status=$? | |
24015 | grep -v '^ *+' conftest.er1 >conftest.err | |
24016 | rm -f conftest.er1 | |
24017 | cat conftest.err >&5 | |
24018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24019 | (exit $ac_status); } && { | |
24020 | test -z "$ac_c_werror_flag" || | |
24021 | test ! -s conftest.err | |
24022 | } && test -s conftest.$ac_objext; then | |
24023 | cat >conftest.$ac_ext <<_ACEOF | |
24024 | /* confdefs.h. */ | |
24025 | _ACEOF | |
24026 | cat confdefs.h >>conftest.$ac_ext | |
24027 | cat >>conftest.$ac_ext <<_ACEOF | |
24028 | /* end confdefs.h. */ | |
24029 | $ac_includes_default | |
24030 | int | |
24031 | main () | |
24032 | { | |
24033 | if (sizeof ((u_bits16_t))) | |
24034 | return 0; | |
24035 | ; | |
24036 | return 0; | |
24037 | } | |
24038 | _ACEOF | |
24039 | rm -f conftest.$ac_objext | |
24040 | if { (ac_try="$ac_compile" | |
24041 | case "(($ac_try" in | |
24042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24043 | *) ac_try_echo=$ac_try;; | |
24044 | esac | |
24045 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24046 | $as_echo "$ac_try_echo") >&5 | |
24047 | (eval "$ac_compile") 2>conftest.er1 | |
24048 | ac_status=$? | |
24049 | grep -v '^ *+' conftest.er1 >conftest.err | |
24050 | rm -f conftest.er1 | |
24051 | cat conftest.err >&5 | |
24052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24053 | (exit $ac_status); } && { | |
24054 | test -z "$ac_c_werror_flag" || | |
24055 | test ! -s conftest.err | |
24056 | } && test -s conftest.$ac_objext; then | |
24057 | : | |
24058 | else | |
24059 | $as_echo "$as_me: failed program was:" >&5 | |
24060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24061 | ||
24062 | ac_cv_type_u_bits16_t=yes | |
24063 | fi | |
24064 | ||
24065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24066 | else | |
24067 | $as_echo "$as_me: failed program was:" >&5 | |
24068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24069 | ||
24070 | ||
24071 | fi | |
24072 | ||
24073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24074 | fi | |
24075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 | |
24076 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
24077 | if test "x$ac_cv_type_u_bits16_t" = x""yes; then | |
24078 | : | |
24079 | else | |
24080 | ||
24081 | cat >>confdefs.h <<_ACEOF | |
24082 | #define u_bits16_t unsigned short | |
24083 | _ACEOF | |
24084 | ||
24085 | fi | |
24086 | ||
24087 | fi | |
24088 | ||
24089 | ||
24090 | if test "$ac_cv_sizeof_int" = 4; then | |
24091 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
24092 | $as_echo_n "checking for bits32_t... " >&6; } | |
24093 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
24094 | $as_echo_n "(cached) " >&6 | |
24095 | else | |
24096 | ac_cv_type_bits32_t=no | |
24097 | cat >conftest.$ac_ext <<_ACEOF | |
24098 | /* confdefs.h. */ | |
24099 | _ACEOF | |
24100 | cat confdefs.h >>conftest.$ac_ext | |
24101 | cat >>conftest.$ac_ext <<_ACEOF | |
24102 | /* end confdefs.h. */ | |
24103 | $ac_includes_default | |
24104 | int | |
24105 | main () | |
24106 | { | |
24107 | if (sizeof (bits32_t)) | |
24108 | return 0; | |
24109 | ; | |
24110 | return 0; | |
24111 | } | |
24112 | _ACEOF | |
24113 | rm -f conftest.$ac_objext | |
24114 | if { (ac_try="$ac_compile" | |
24115 | case "(($ac_try" in | |
24116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24117 | *) ac_try_echo=$ac_try;; | |
24118 | esac | |
24119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24120 | $as_echo "$ac_try_echo") >&5 | |
24121 | (eval "$ac_compile") 2>conftest.er1 | |
24122 | ac_status=$? | |
24123 | grep -v '^ *+' conftest.er1 >conftest.err | |
24124 | rm -f conftest.er1 | |
24125 | cat conftest.err >&5 | |
24126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24127 | (exit $ac_status); } && { | |
24128 | test -z "$ac_c_werror_flag" || | |
24129 | test ! -s conftest.err | |
24130 | } && test -s conftest.$ac_objext; then | |
24131 | cat >conftest.$ac_ext <<_ACEOF | |
24132 | /* confdefs.h. */ | |
24133 | _ACEOF | |
24134 | cat confdefs.h >>conftest.$ac_ext | |
24135 | cat >>conftest.$ac_ext <<_ACEOF | |
24136 | /* end confdefs.h. */ | |
24137 | $ac_includes_default | |
24138 | int | |
24139 | main () | |
24140 | { | |
24141 | if (sizeof ((bits32_t))) | |
24142 | return 0; | |
24143 | ; | |
24144 | return 0; | |
24145 | } | |
24146 | _ACEOF | |
24147 | rm -f conftest.$ac_objext | |
24148 | if { (ac_try="$ac_compile" | |
24149 | case "(($ac_try" in | |
24150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24151 | *) ac_try_echo=$ac_try;; | |
24152 | esac | |
24153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24154 | $as_echo "$ac_try_echo") >&5 | |
24155 | (eval "$ac_compile") 2>conftest.er1 | |
24156 | ac_status=$? | |
24157 | grep -v '^ *+' conftest.er1 >conftest.err | |
24158 | rm -f conftest.er1 | |
24159 | cat conftest.err >&5 | |
24160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24161 | (exit $ac_status); } && { | |
24162 | test -z "$ac_c_werror_flag" || | |
24163 | test ! -s conftest.err | |
24164 | } && test -s conftest.$ac_objext; then | |
24165 | : | |
24166 | else | |
24167 | $as_echo "$as_me: failed program was:" >&5 | |
24168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24169 | ||
24170 | ac_cv_type_bits32_t=yes | |
24171 | fi | |
24172 | ||
24173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24174 | else | |
24175 | $as_echo "$as_me: failed program was:" >&5 | |
24176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24177 | ||
24178 | ||
24179 | fi | |
24180 | ||
24181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24182 | fi | |
24183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
24184 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
24185 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
24186 | : | |
24187 | else | |
24188 | ||
24189 | cat >>confdefs.h <<_ACEOF | |
24190 | #define bits32_t int | |
24191 | _ACEOF | |
24192 | ||
24193 | fi | |
24194 | ||
24195 | elif test "$ac_cv_sizeof_long" = 4; then | |
24196 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
24197 | $as_echo_n "checking for bits32_t... " >&6; } | |
24198 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
24199 | $as_echo_n "(cached) " >&6 | |
24200 | else | |
24201 | ac_cv_type_bits32_t=no | |
24202 | cat >conftest.$ac_ext <<_ACEOF | |
24203 | /* confdefs.h. */ | |
24204 | _ACEOF | |
24205 | cat confdefs.h >>conftest.$ac_ext | |
24206 | cat >>conftest.$ac_ext <<_ACEOF | |
24207 | /* end confdefs.h. */ | |
24208 | $ac_includes_default | |
24209 | int | |
24210 | main () | |
24211 | { | |
24212 | if (sizeof (bits32_t)) | |
24213 | return 0; | |
24214 | ; | |
24215 | return 0; | |
24216 | } | |
24217 | _ACEOF | |
24218 | rm -f conftest.$ac_objext | |
24219 | if { (ac_try="$ac_compile" | |
24220 | case "(($ac_try" in | |
24221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24222 | *) ac_try_echo=$ac_try;; | |
24223 | esac | |
24224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24225 | $as_echo "$ac_try_echo") >&5 | |
24226 | (eval "$ac_compile") 2>conftest.er1 | |
24227 | ac_status=$? | |
24228 | grep -v '^ *+' conftest.er1 >conftest.err | |
24229 | rm -f conftest.er1 | |
24230 | cat conftest.err >&5 | |
24231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24232 | (exit $ac_status); } && { | |
24233 | test -z "$ac_c_werror_flag" || | |
24234 | test ! -s conftest.err | |
24235 | } && test -s conftest.$ac_objext; then | |
24236 | cat >conftest.$ac_ext <<_ACEOF | |
24237 | /* confdefs.h. */ | |
24238 | _ACEOF | |
24239 | cat confdefs.h >>conftest.$ac_ext | |
24240 | cat >>conftest.$ac_ext <<_ACEOF | |
24241 | /* end confdefs.h. */ | |
24242 | $ac_includes_default | |
24243 | int | |
24244 | main () | |
24245 | { | |
24246 | if (sizeof ((bits32_t))) | |
24247 | return 0; | |
24248 | ; | |
24249 | return 0; | |
24250 | } | |
24251 | _ACEOF | |
24252 | rm -f conftest.$ac_objext | |
24253 | if { (ac_try="$ac_compile" | |
24254 | case "(($ac_try" in | |
24255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24256 | *) ac_try_echo=$ac_try;; | |
24257 | esac | |
24258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24259 | $as_echo "$ac_try_echo") >&5 | |
24260 | (eval "$ac_compile") 2>conftest.er1 | |
24261 | ac_status=$? | |
24262 | grep -v '^ *+' conftest.er1 >conftest.err | |
24263 | rm -f conftest.er1 | |
24264 | cat conftest.err >&5 | |
24265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24266 | (exit $ac_status); } && { | |
24267 | test -z "$ac_c_werror_flag" || | |
24268 | test ! -s conftest.err | |
24269 | } && test -s conftest.$ac_objext; then | |
24270 | : | |
24271 | else | |
24272 | $as_echo "$as_me: failed program was:" >&5 | |
24273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24274 | ||
24275 | ac_cv_type_bits32_t=yes | |
24276 | fi | |
24277 | ||
24278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24279 | else | |
24280 | $as_echo "$as_me: failed program was:" >&5 | |
24281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24282 | ||
24283 | ||
24284 | fi | |
24285 | ||
24286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24287 | fi | |
24288 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
24289 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
24290 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
24291 | : | |
24292 | else | |
24293 | ||
24294 | cat >>confdefs.h <<_ACEOF | |
24295 | #define bits32_t long | |
24296 | _ACEOF | |
24297 | ||
24298 | fi | |
24299 | ||
24300 | else | |
24301 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 | |
24302 | $as_echo_n "checking for bits32_t... " >&6; } | |
24303 | if test "${ac_cv_type_bits32_t+set}" = set; then | |
24304 | $as_echo_n "(cached) " >&6 | |
24305 | else | |
24306 | ac_cv_type_bits32_t=no | |
24307 | cat >conftest.$ac_ext <<_ACEOF | |
24308 | /* confdefs.h. */ | |
24309 | _ACEOF | |
24310 | cat confdefs.h >>conftest.$ac_ext | |
24311 | cat >>conftest.$ac_ext <<_ACEOF | |
24312 | /* end confdefs.h. */ | |
24313 | $ac_includes_default | |
24314 | int | |
24315 | main () | |
24316 | { | |
24317 | if (sizeof (bits32_t)) | |
24318 | return 0; | |
24319 | ; | |
24320 | return 0; | |
24321 | } | |
24322 | _ACEOF | |
24323 | rm -f conftest.$ac_objext | |
24324 | if { (ac_try="$ac_compile" | |
24325 | case "(($ac_try" in | |
24326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24327 | *) ac_try_echo=$ac_try;; | |
24328 | esac | |
24329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24330 | $as_echo "$ac_try_echo") >&5 | |
24331 | (eval "$ac_compile") 2>conftest.er1 | |
24332 | ac_status=$? | |
24333 | grep -v '^ *+' conftest.er1 >conftest.err | |
24334 | rm -f conftest.er1 | |
24335 | cat conftest.err >&5 | |
24336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24337 | (exit $ac_status); } && { | |
24338 | test -z "$ac_c_werror_flag" || | |
24339 | test ! -s conftest.err | |
24340 | } && test -s conftest.$ac_objext; then | |
24341 | cat >conftest.$ac_ext <<_ACEOF | |
24342 | /* confdefs.h. */ | |
24343 | _ACEOF | |
24344 | cat confdefs.h >>conftest.$ac_ext | |
24345 | cat >>conftest.$ac_ext <<_ACEOF | |
24346 | /* end confdefs.h. */ | |
24347 | $ac_includes_default | |
24348 | int | |
24349 | main () | |
24350 | { | |
24351 | if (sizeof ((bits32_t))) | |
24352 | return 0; | |
24353 | ; | |
24354 | return 0; | |
24355 | } | |
24356 | _ACEOF | |
24357 | rm -f conftest.$ac_objext | |
24358 | if { (ac_try="$ac_compile" | |
24359 | case "(($ac_try" in | |
24360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24361 | *) ac_try_echo=$ac_try;; | |
24362 | esac | |
24363 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24364 | $as_echo "$ac_try_echo") >&5 | |
24365 | (eval "$ac_compile") 2>conftest.er1 | |
24366 | ac_status=$? | |
24367 | grep -v '^ *+' conftest.er1 >conftest.err | |
24368 | rm -f conftest.er1 | |
24369 | cat conftest.err >&5 | |
24370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24371 | (exit $ac_status); } && { | |
24372 | test -z "$ac_c_werror_flag" || | |
24373 | test ! -s conftest.err | |
24374 | } && test -s conftest.$ac_objext; then | |
24375 | : | |
24376 | else | |
24377 | $as_echo "$as_me: failed program was:" >&5 | |
24378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24379 | ||
24380 | ac_cv_type_bits32_t=yes | |
24381 | fi | |
24382 | ||
24383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24384 | else | |
24385 | $as_echo "$as_me: failed program was:" >&5 | |
24386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24387 | ||
24388 | ||
24389 | fi | |
24390 | ||
24391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24392 | fi | |
24393 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
24394 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
24395 | if test "x$ac_cv_type_bits32_t" = x""yes; then | |
24396 | : | |
24397 | else | |
24398 | ||
24399 | cat >>confdefs.h <<_ACEOF | |
24400 | #define bits32_t int | |
24401 | _ACEOF | |
24402 | ||
24403 | fi | |
24404 | ||
24405 | fi | |
24406 | ||
24407 | ||
24408 | if test "$ac_cv_sizeof_int" = 4; then | |
24409 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
24410 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
24411 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
24412 | $as_echo_n "(cached) " >&6 | |
24413 | else | |
24414 | ac_cv_type_u_bits32_t=no | |
24415 | cat >conftest.$ac_ext <<_ACEOF | |
24416 | /* confdefs.h. */ | |
24417 | _ACEOF | |
24418 | cat confdefs.h >>conftest.$ac_ext | |
24419 | cat >>conftest.$ac_ext <<_ACEOF | |
24420 | /* end confdefs.h. */ | |
24421 | $ac_includes_default | |
24422 | int | |
24423 | main () | |
24424 | { | |
24425 | if (sizeof (u_bits32_t)) | |
24426 | return 0; | |
24427 | ; | |
24428 | return 0; | |
24429 | } | |
24430 | _ACEOF | |
24431 | rm -f conftest.$ac_objext | |
24432 | if { (ac_try="$ac_compile" | |
24433 | case "(($ac_try" in | |
24434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24435 | *) ac_try_echo=$ac_try;; | |
24436 | esac | |
24437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24438 | $as_echo "$ac_try_echo") >&5 | |
24439 | (eval "$ac_compile") 2>conftest.er1 | |
24440 | ac_status=$? | |
24441 | grep -v '^ *+' conftest.er1 >conftest.err | |
24442 | rm -f conftest.er1 | |
24443 | cat conftest.err >&5 | |
24444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24445 | (exit $ac_status); } && { | |
24446 | test -z "$ac_c_werror_flag" || | |
24447 | test ! -s conftest.err | |
24448 | } && test -s conftest.$ac_objext; then | |
24449 | cat >conftest.$ac_ext <<_ACEOF | |
24450 | /* confdefs.h. */ | |
24451 | _ACEOF | |
24452 | cat confdefs.h >>conftest.$ac_ext | |
24453 | cat >>conftest.$ac_ext <<_ACEOF | |
24454 | /* end confdefs.h. */ | |
24455 | $ac_includes_default | |
24456 | int | |
24457 | main () | |
24458 | { | |
24459 | if (sizeof ((u_bits32_t))) | |
24460 | return 0; | |
24461 | ; | |
24462 | return 0; | |
24463 | } | |
24464 | _ACEOF | |
24465 | rm -f conftest.$ac_objext | |
24466 | if { (ac_try="$ac_compile" | |
24467 | case "(($ac_try" in | |
24468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24469 | *) ac_try_echo=$ac_try;; | |
24470 | esac | |
24471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24472 | $as_echo "$ac_try_echo") >&5 | |
24473 | (eval "$ac_compile") 2>conftest.er1 | |
24474 | ac_status=$? | |
24475 | grep -v '^ *+' conftest.er1 >conftest.err | |
24476 | rm -f conftest.er1 | |
24477 | cat conftest.err >&5 | |
24478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24479 | (exit $ac_status); } && { | |
24480 | test -z "$ac_c_werror_flag" || | |
24481 | test ! -s conftest.err | |
24482 | } && test -s conftest.$ac_objext; then | |
24483 | : | |
24484 | else | |
24485 | $as_echo "$as_me: failed program was:" >&5 | |
24486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24487 | ||
24488 | ac_cv_type_u_bits32_t=yes | |
24489 | fi | |
24490 | ||
24491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24492 | else | |
24493 | $as_echo "$as_me: failed program was:" >&5 | |
24494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24495 | ||
24496 | ||
24497 | fi | |
24498 | ||
24499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24500 | fi | |
24501 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 | |
24502 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
24503 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
24504 | : | |
24505 | else | |
24506 | ||
24507 | cat >>confdefs.h <<_ACEOF | |
24508 | #define u_bits32_t unsigned int | |
b80f6443 | 24509 | _ACEOF |
cce855bc JA |
24510 | |
24511 | fi | |
24512 | ||
3185942a JA |
24513 | elif test "$ac_cv_sizeof_long" = 4; then |
24514 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
24515 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
f73dda09 | 24516 | if test "${ac_cv_type_u_bits32_t+set}" = set; then |
3185942a | 24517 | $as_echo_n "(cached) " >&6 |
cce855bc | 24518 | else |
3185942a JA |
24519 | ac_cv_type_u_bits32_t=no |
24520 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
24521 | /* confdefs.h. */ |
24522 | _ACEOF | |
24523 | cat confdefs.h >>conftest.$ac_ext | |
24524 | cat >>conftest.$ac_ext <<_ACEOF | |
24525 | /* end confdefs.h. */ | |
f73dda09 JA |
24526 | $ac_includes_default |
24527 | int | |
24528 | main () | |
24529 | { | |
f73dda09 | 24530 | if (sizeof (u_bits32_t)) |
3185942a JA |
24531 | return 0; |
24532 | ; | |
f73dda09 | 24533 | return 0; |
3185942a JA |
24534 | } |
24535 | _ACEOF | |
24536 | rm -f conftest.$ac_objext | |
24537 | if { (ac_try="$ac_compile" | |
24538 | case "(($ac_try" in | |
24539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24540 | *) ac_try_echo=$ac_try;; | |
24541 | esac | |
24542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24543 | $as_echo "$ac_try_echo") >&5 | |
24544 | (eval "$ac_compile") 2>conftest.er1 | |
24545 | ac_status=$? | |
24546 | grep -v '^ *+' conftest.er1 >conftest.err | |
24547 | rm -f conftest.er1 | |
24548 | cat conftest.err >&5 | |
24549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24550 | (exit $ac_status); } && { | |
24551 | test -z "$ac_c_werror_flag" || | |
24552 | test ! -s conftest.err | |
24553 | } && test -s conftest.$ac_objext; then | |
24554 | cat >conftest.$ac_ext <<_ACEOF | |
24555 | /* confdefs.h. */ | |
24556 | _ACEOF | |
24557 | cat confdefs.h >>conftest.$ac_ext | |
24558 | cat >>conftest.$ac_ext <<_ACEOF | |
24559 | /* end confdefs.h. */ | |
24560 | $ac_includes_default | |
24561 | int | |
24562 | main () | |
24563 | { | |
24564 | if (sizeof ((u_bits32_t))) | |
24565 | return 0; | |
f73dda09 JA |
24566 | ; |
24567 | return 0; | |
24568 | } | |
24569 | _ACEOF | |
24570 | rm -f conftest.$ac_objext | |
3185942a JA |
24571 | if { (ac_try="$ac_compile" |
24572 | case "(($ac_try" in | |
24573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24574 | *) ac_try_echo=$ac_try;; | |
24575 | esac | |
24576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24577 | $as_echo "$ac_try_echo") >&5 | |
24578 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24579 | ac_status=$? |
0628567a JA |
24580 | grep -v '^ *+' conftest.er1 >conftest.err |
24581 | rm -f conftest.er1 | |
24582 | cat conftest.err >&5 | |
3185942a JA |
24583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24584 | (exit $ac_status); } && { | |
24585 | test -z "$ac_c_werror_flag" || | |
24586 | test ! -s conftest.err | |
24587 | } && test -s conftest.$ac_objext; then | |
24588 | : | |
24589 | else | |
24590 | $as_echo "$as_me: failed program was:" >&5 | |
24591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24592 | ||
24593 | ac_cv_type_u_bits32_t=yes | |
24594 | fi | |
24595 | ||
24596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24597 | else | |
24598 | $as_echo "$as_me: failed program was:" >&5 | |
24599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24600 | ||
24601 | ||
24602 | fi | |
24603 | ||
24604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24605 | fi | |
24606 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 | |
24607 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
24608 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
24609 | : | |
24610 | else | |
24611 | ||
24612 | cat >>confdefs.h <<_ACEOF | |
24613 | #define u_bits32_t unsigned long | |
24614 | _ACEOF | |
24615 | ||
24616 | fi | |
24617 | ||
24618 | else | |
24619 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 | |
24620 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
24621 | if test "${ac_cv_type_u_bits32_t+set}" = set; then | |
24622 | $as_echo_n "(cached) " >&6 | |
24623 | else | |
24624 | ac_cv_type_u_bits32_t=no | |
24625 | cat >conftest.$ac_ext <<_ACEOF | |
24626 | /* confdefs.h. */ | |
24627 | _ACEOF | |
24628 | cat confdefs.h >>conftest.$ac_ext | |
24629 | cat >>conftest.$ac_ext <<_ACEOF | |
24630 | /* end confdefs.h. */ | |
24631 | $ac_includes_default | |
24632 | int | |
24633 | main () | |
24634 | { | |
24635 | if (sizeof (u_bits32_t)) | |
24636 | return 0; | |
24637 | ; | |
24638 | return 0; | |
24639 | } | |
24640 | _ACEOF | |
24641 | rm -f conftest.$ac_objext | |
24642 | if { (ac_try="$ac_compile" | |
24643 | case "(($ac_try" in | |
24644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24645 | *) ac_try_echo=$ac_try;; | |
24646 | esac | |
24647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24648 | $as_echo "$ac_try_echo") >&5 | |
24649 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a | 24650 | ac_status=$? |
3185942a JA |
24651 | grep -v '^ *+' conftest.er1 >conftest.err |
24652 | rm -f conftest.er1 | |
24653 | cat conftest.err >&5 | |
24654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24655 | (exit $ac_status); } && { | |
24656 | test -z "$ac_c_werror_flag" || | |
24657 | test ! -s conftest.err | |
24658 | } && test -s conftest.$ac_objext; then | |
24659 | cat >conftest.$ac_ext <<_ACEOF | |
24660 | /* confdefs.h. */ | |
24661 | _ACEOF | |
24662 | cat confdefs.h >>conftest.$ac_ext | |
24663 | cat >>conftest.$ac_ext <<_ACEOF | |
24664 | /* end confdefs.h. */ | |
24665 | $ac_includes_default | |
24666 | int | |
24667 | main () | |
24668 | { | |
24669 | if (sizeof ((u_bits32_t))) | |
24670 | return 0; | |
24671 | ; | |
24672 | return 0; | |
24673 | } | |
24674 | _ACEOF | |
24675 | rm -f conftest.$ac_objext | |
24676 | if { (ac_try="$ac_compile" | |
24677 | case "(($ac_try" in | |
24678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24679 | *) ac_try_echo=$ac_try;; | |
24680 | esac | |
24681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24682 | $as_echo "$ac_try_echo") >&5 | |
24683 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 24684 | ac_status=$? |
3185942a JA |
24685 | grep -v '^ *+' conftest.er1 >conftest.err |
24686 | rm -f conftest.er1 | |
24687 | cat conftest.err >&5 | |
24688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24689 | (exit $ac_status); } && { | |
24690 | test -z "$ac_c_werror_flag" || | |
24691 | test ! -s conftest.err | |
24692 | } && test -s conftest.$ac_objext; then | |
24693 | : | |
24694 | else | |
24695 | $as_echo "$as_me: failed program was:" >&5 | |
24696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24697 | ||
24698 | ac_cv_type_u_bits32_t=yes | |
24699 | fi | |
24700 | ||
24701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24702 | else |
3185942a | 24703 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
24704 | sed 's/^/| /' conftest.$ac_ext >&5 |
24705 | ||
3185942a | 24706 | |
b72432fd | 24707 | fi |
3185942a JA |
24708 | |
24709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 24710 | fi |
3185942a JA |
24711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
24712 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
24713 | if test "x$ac_cv_type_u_bits32_t" = x""yes; then | |
f73dda09 JA |
24714 | : |
24715 | else | |
24716 | ||
b80f6443 | 24717 | cat >>confdefs.h <<_ACEOF |
bb70624e | 24718 | #define u_bits32_t unsigned int |
b80f6443 | 24719 | _ACEOF |
b72432fd JA |
24720 | |
24721 | fi | |
cce855bc | 24722 | |
b72432fd JA |
24723 | fi |
24724 | ||
b80f6443 | 24725 | |
f73dda09 | 24726 | if test "$ac_cv_sizeof_char_p" = 8; then |
3185942a JA |
24727 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
24728 | $as_echo_n "checking for bits64_t... " >&6; } | |
24729 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
24730 | $as_echo_n "(cached) " >&6 | |
24731 | else | |
24732 | ac_cv_type_bits64_t=no | |
24733 | cat >conftest.$ac_ext <<_ACEOF | |
24734 | /* confdefs.h. */ | |
24735 | _ACEOF | |
24736 | cat confdefs.h >>conftest.$ac_ext | |
24737 | cat >>conftest.$ac_ext <<_ACEOF | |
24738 | /* end confdefs.h. */ | |
24739 | $ac_includes_default | |
24740 | int | |
24741 | main () | |
24742 | { | |
24743 | if (sizeof (bits64_t)) | |
24744 | return 0; | |
24745 | ; | |
24746 | return 0; | |
24747 | } | |
24748 | _ACEOF | |
24749 | rm -f conftest.$ac_objext | |
24750 | if { (ac_try="$ac_compile" | |
24751 | case "(($ac_try" in | |
24752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24753 | *) ac_try_echo=$ac_try;; | |
24754 | esac | |
24755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24756 | $as_echo "$ac_try_echo") >&5 | |
24757 | (eval "$ac_compile") 2>conftest.er1 | |
24758 | ac_status=$? | |
24759 | grep -v '^ *+' conftest.er1 >conftest.err | |
24760 | rm -f conftest.er1 | |
24761 | cat conftest.err >&5 | |
24762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24763 | (exit $ac_status); } && { | |
24764 | test -z "$ac_c_werror_flag" || | |
24765 | test ! -s conftest.err | |
24766 | } && test -s conftest.$ac_objext; then | |
24767 | cat >conftest.$ac_ext <<_ACEOF | |
24768 | /* confdefs.h. */ | |
24769 | _ACEOF | |
24770 | cat confdefs.h >>conftest.$ac_ext | |
24771 | cat >>conftest.$ac_ext <<_ACEOF | |
24772 | /* end confdefs.h. */ | |
24773 | $ac_includes_default | |
24774 | int | |
24775 | main () | |
24776 | { | |
24777 | if (sizeof ((bits64_t))) | |
24778 | return 0; | |
24779 | ; | |
24780 | return 0; | |
24781 | } | |
24782 | _ACEOF | |
24783 | rm -f conftest.$ac_objext | |
24784 | if { (ac_try="$ac_compile" | |
24785 | case "(($ac_try" in | |
24786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24787 | *) ac_try_echo=$ac_try;; | |
24788 | esac | |
24789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24790 | $as_echo "$ac_try_echo") >&5 | |
24791 | (eval "$ac_compile") 2>conftest.er1 | |
24792 | ac_status=$? | |
24793 | grep -v '^ *+' conftest.er1 >conftest.err | |
24794 | rm -f conftest.er1 | |
24795 | cat conftest.err >&5 | |
24796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24797 | (exit $ac_status); } && { | |
24798 | test -z "$ac_c_werror_flag" || | |
24799 | test ! -s conftest.err | |
24800 | } && test -s conftest.$ac_objext; then | |
24801 | : | |
24802 | else | |
24803 | $as_echo "$as_me: failed program was:" >&5 | |
24804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24805 | ||
24806 | ac_cv_type_bits64_t=yes | |
24807 | fi | |
24808 | ||
24809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24810 | else | |
24811 | $as_echo "$as_me: failed program was:" >&5 | |
24812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24813 | ||
24814 | ||
24815 | fi | |
24816 | ||
24817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24818 | fi | |
24819 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24820 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
24821 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
24822 | : | |
24823 | else | |
24824 | ||
24825 | cat >>confdefs.h <<_ACEOF | |
24826 | #define bits64_t char * | |
24827 | _ACEOF | |
24828 | ||
24829 | fi | |
24830 | ||
24831 | elif test "$ac_cv_sizeof_double" = 8; then | |
24832 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
24833 | $as_echo_n "checking for bits64_t... " >&6; } | |
24834 | if test "${ac_cv_type_bits64_t+set}" = set; then | |
24835 | $as_echo_n "(cached) " >&6 | |
24836 | else | |
24837 | ac_cv_type_bits64_t=no | |
24838 | cat >conftest.$ac_ext <<_ACEOF | |
24839 | /* confdefs.h. */ | |
24840 | _ACEOF | |
24841 | cat confdefs.h >>conftest.$ac_ext | |
24842 | cat >>conftest.$ac_ext <<_ACEOF | |
24843 | /* end confdefs.h. */ | |
24844 | $ac_includes_default | |
24845 | int | |
24846 | main () | |
24847 | { | |
24848 | if (sizeof (bits64_t)) | |
24849 | return 0; | |
24850 | ; | |
24851 | return 0; | |
24852 | } | |
24853 | _ACEOF | |
24854 | rm -f conftest.$ac_objext | |
24855 | if { (ac_try="$ac_compile" | |
24856 | case "(($ac_try" in | |
24857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24858 | *) ac_try_echo=$ac_try;; | |
24859 | esac | |
24860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24861 | $as_echo "$ac_try_echo") >&5 | |
24862 | (eval "$ac_compile") 2>conftest.er1 | |
24863 | ac_status=$? | |
24864 | grep -v '^ *+' conftest.er1 >conftest.err | |
24865 | rm -f conftest.er1 | |
24866 | cat conftest.err >&5 | |
24867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24868 | (exit $ac_status); } && { | |
24869 | test -z "$ac_c_werror_flag" || | |
24870 | test ! -s conftest.err | |
24871 | } && test -s conftest.$ac_objext; then | |
24872 | cat >conftest.$ac_ext <<_ACEOF | |
24873 | /* confdefs.h. */ | |
24874 | _ACEOF | |
24875 | cat confdefs.h >>conftest.$ac_ext | |
24876 | cat >>conftest.$ac_ext <<_ACEOF | |
24877 | /* end confdefs.h. */ | |
24878 | $ac_includes_default | |
24879 | int | |
24880 | main () | |
24881 | { | |
24882 | if (sizeof ((bits64_t))) | |
24883 | return 0; | |
24884 | ; | |
24885 | return 0; | |
24886 | } | |
24887 | _ACEOF | |
24888 | rm -f conftest.$ac_objext | |
24889 | if { (ac_try="$ac_compile" | |
24890 | case "(($ac_try" in | |
24891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24892 | *) ac_try_echo=$ac_try;; | |
24893 | esac | |
24894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24895 | $as_echo "$ac_try_echo") >&5 | |
24896 | (eval "$ac_compile") 2>conftest.er1 | |
24897 | ac_status=$? | |
24898 | grep -v '^ *+' conftest.er1 >conftest.err | |
24899 | rm -f conftest.er1 | |
24900 | cat conftest.err >&5 | |
24901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24902 | (exit $ac_status); } && { | |
24903 | test -z "$ac_c_werror_flag" || | |
24904 | test ! -s conftest.err | |
24905 | } && test -s conftest.$ac_objext; then | |
24906 | : | |
24907 | else | |
24908 | $as_echo "$as_me: failed program was:" >&5 | |
24909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24910 | ||
24911 | ac_cv_type_bits64_t=yes | |
24912 | fi | |
24913 | ||
24914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24915 | else | |
24916 | $as_echo "$as_me: failed program was:" >&5 | |
24917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24918 | ||
24919 | ||
24920 | fi | |
24921 | ||
24922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24923 | fi | |
24924 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24925 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
24926 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
24927 | : | |
24928 | else | |
24929 | ||
24930 | cat >>confdefs.h <<_ACEOF | |
24931 | #define bits64_t double | |
24932 | _ACEOF | |
24933 | ||
24934 | fi | |
24935 | ||
24936 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then | |
24937 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
24938 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 24939 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 24940 | $as_echo_n "(cached) " >&6 |
cce855bc | 24941 | else |
3185942a JA |
24942 | ac_cv_type_bits64_t=no |
24943 | cat >conftest.$ac_ext <<_ACEOF | |
24944 | /* confdefs.h. */ | |
24945 | _ACEOF | |
24946 | cat confdefs.h >>conftest.$ac_ext | |
24947 | cat >>conftest.$ac_ext <<_ACEOF | |
24948 | /* end confdefs.h. */ | |
24949 | $ac_includes_default | |
24950 | int | |
24951 | main () | |
24952 | { | |
24953 | if (sizeof (bits64_t)) | |
24954 | return 0; | |
24955 | ; | |
24956 | return 0; | |
24957 | } | |
24958 | _ACEOF | |
24959 | rm -f conftest.$ac_objext | |
24960 | if { (ac_try="$ac_compile" | |
24961 | case "(($ac_try" in | |
24962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24963 | *) ac_try_echo=$ac_try;; | |
24964 | esac | |
24965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24966 | $as_echo "$ac_try_echo") >&5 | |
24967 | (eval "$ac_compile") 2>conftest.er1 | |
24968 | ac_status=$? | |
24969 | grep -v '^ *+' conftest.er1 >conftest.err | |
24970 | rm -f conftest.er1 | |
24971 | cat conftest.err >&5 | |
24972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24973 | (exit $ac_status); } && { | |
24974 | test -z "$ac_c_werror_flag" || | |
24975 | test ! -s conftest.err | |
24976 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 24977 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
24978 | /* confdefs.h. */ |
24979 | _ACEOF | |
24980 | cat confdefs.h >>conftest.$ac_ext | |
24981 | cat >>conftest.$ac_ext <<_ACEOF | |
24982 | /* end confdefs.h. */ | |
f73dda09 JA |
24983 | $ac_includes_default |
24984 | int | |
24985 | main () | |
24986 | { | |
3185942a JA |
24987 | if (sizeof ((bits64_t))) |
24988 | return 0; | |
f73dda09 JA |
24989 | ; |
24990 | return 0; | |
24991 | } | |
24992 | _ACEOF | |
24993 | rm -f conftest.$ac_objext | |
3185942a JA |
24994 | if { (ac_try="$ac_compile" |
24995 | case "(($ac_try" in | |
24996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24997 | *) ac_try_echo=$ac_try;; | |
24998 | esac | |
24999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25000 | $as_echo "$ac_try_echo") >&5 | |
25001 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25002 | ac_status=$? |
0628567a JA |
25003 | grep -v '^ *+' conftest.er1 >conftest.err |
25004 | rm -f conftest.er1 | |
25005 | cat conftest.err >&5 | |
3185942a JA |
25006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25007 | (exit $ac_status); } && { | |
25008 | test -z "$ac_c_werror_flag" || | |
25009 | test ! -s conftest.err | |
25010 | } && test -s conftest.$ac_objext; then | |
25011 | : | |
25012 | else | |
25013 | $as_echo "$as_me: failed program was:" >&5 | |
25014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25015 | ||
25016 | ac_cv_type_bits64_t=yes | |
25017 | fi | |
25018 | ||
25019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 25020 | else |
3185942a | 25021 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25022 | sed 's/^/| /' conftest.$ac_ext >&5 |
25023 | ||
3185942a | 25024 | |
b72432fd | 25025 | fi |
3185942a JA |
25026 | |
25027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 25028 | fi |
3185942a JA |
25029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
25030 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
25031 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
25032 | : |
25033 | else | |
25034 | ||
b80f6443 | 25035 | cat >>confdefs.h <<_ACEOF |
3185942a | 25036 | #define bits64_t long long |
b80f6443 | 25037 | _ACEOF |
b72432fd JA |
25038 | |
25039 | fi | |
25040 | ||
3185942a JA |
25041 | elif test "$ac_cv_sizeof_long" = 8; then |
25042 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
25043 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 25044 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 25045 | $as_echo_n "(cached) " >&6 |
b72432fd | 25046 | else |
3185942a JA |
25047 | ac_cv_type_bits64_t=no |
25048 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25049 | /* confdefs.h. */ |
25050 | _ACEOF | |
25051 | cat confdefs.h >>conftest.$ac_ext | |
25052 | cat >>conftest.$ac_ext <<_ACEOF | |
25053 | /* end confdefs.h. */ | |
f73dda09 JA |
25054 | $ac_includes_default |
25055 | int | |
25056 | main () | |
25057 | { | |
f73dda09 | 25058 | if (sizeof (bits64_t)) |
3185942a | 25059 | return 0; |
f73dda09 JA |
25060 | ; |
25061 | return 0; | |
25062 | } | |
25063 | _ACEOF | |
25064 | rm -f conftest.$ac_objext | |
3185942a JA |
25065 | if { (ac_try="$ac_compile" |
25066 | case "(($ac_try" in | |
25067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25068 | *) ac_try_echo=$ac_try;; | |
25069 | esac | |
25070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25071 | $as_echo "$ac_try_echo") >&5 | |
25072 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25073 | ac_status=$? |
0628567a JA |
25074 | grep -v '^ *+' conftest.er1 >conftest.err |
25075 | rm -f conftest.er1 | |
25076 | cat conftest.err >&5 | |
3185942a JA |
25077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25078 | (exit $ac_status); } && { | |
25079 | test -z "$ac_c_werror_flag" || | |
25080 | test ! -s conftest.err | |
25081 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 25082 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25083 | /* confdefs.h. */ |
25084 | _ACEOF | |
25085 | cat confdefs.h >>conftest.$ac_ext | |
25086 | cat >>conftest.$ac_ext <<_ACEOF | |
25087 | /* end confdefs.h. */ | |
f73dda09 JA |
25088 | $ac_includes_default |
25089 | int | |
25090 | main () | |
25091 | { | |
3185942a JA |
25092 | if (sizeof ((bits64_t))) |
25093 | return 0; | |
f73dda09 JA |
25094 | ; |
25095 | return 0; | |
25096 | } | |
25097 | _ACEOF | |
25098 | rm -f conftest.$ac_objext | |
3185942a JA |
25099 | if { (ac_try="$ac_compile" |
25100 | case "(($ac_try" in | |
25101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25102 | *) ac_try_echo=$ac_try;; | |
25103 | esac | |
25104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25105 | $as_echo "$ac_try_echo") >&5 | |
25106 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25107 | ac_status=$? |
0628567a JA |
25108 | grep -v '^ *+' conftest.er1 >conftest.err |
25109 | rm -f conftest.er1 | |
25110 | cat conftest.err >&5 | |
3185942a JA |
25111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25112 | (exit $ac_status); } && { | |
25113 | test -z "$ac_c_werror_flag" || | |
25114 | test ! -s conftest.err | |
25115 | } && test -s conftest.$ac_objext; then | |
25116 | : | |
25117 | else | |
25118 | $as_echo "$as_me: failed program was:" >&5 | |
25119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25120 | ||
25121 | ac_cv_type_bits64_t=yes | |
25122 | fi | |
25123 | ||
25124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 25125 | else |
3185942a | 25126 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25127 | sed 's/^/| /' conftest.$ac_ext >&5 |
25128 | ||
3185942a | 25129 | |
f73dda09 | 25130 | fi |
3185942a JA |
25131 | |
25132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 25133 | fi |
3185942a JA |
25134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
25135 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
25136 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
25137 | : |
25138 | else | |
25139 | ||
b80f6443 | 25140 | cat >>confdefs.h <<_ACEOF |
3185942a | 25141 | #define bits64_t long |
b80f6443 | 25142 | _ACEOF |
f73dda09 | 25143 | |
cce855bc | 25144 | fi |
b72432fd | 25145 | |
3185942a JA |
25146 | else |
25147 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 | |
25148 | $as_echo_n "checking for bits64_t... " >&6; } | |
f73dda09 | 25149 | if test "${ac_cv_type_bits64_t+set}" = set; then |
3185942a | 25150 | $as_echo_n "(cached) " >&6 |
f73dda09 | 25151 | else |
3185942a JA |
25152 | ac_cv_type_bits64_t=no |
25153 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25154 | /* confdefs.h. */ |
25155 | _ACEOF | |
25156 | cat confdefs.h >>conftest.$ac_ext | |
25157 | cat >>conftest.$ac_ext <<_ACEOF | |
25158 | /* end confdefs.h. */ | |
f73dda09 JA |
25159 | $ac_includes_default |
25160 | int | |
25161 | main () | |
25162 | { | |
f73dda09 | 25163 | if (sizeof (bits64_t)) |
3185942a | 25164 | return 0; |
f73dda09 JA |
25165 | ; |
25166 | return 0; | |
25167 | } | |
25168 | _ACEOF | |
25169 | rm -f conftest.$ac_objext | |
3185942a JA |
25170 | if { (ac_try="$ac_compile" |
25171 | case "(($ac_try" in | |
25172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25173 | *) ac_try_echo=$ac_try;; | |
25174 | esac | |
25175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25176 | $as_echo "$ac_try_echo") >&5 | |
25177 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25178 | ac_status=$? |
0628567a JA |
25179 | grep -v '^ *+' conftest.er1 >conftest.err |
25180 | rm -f conftest.er1 | |
25181 | cat conftest.err >&5 | |
3185942a JA |
25182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25183 | (exit $ac_status); } && { | |
25184 | test -z "$ac_c_werror_flag" || | |
25185 | test ! -s conftest.err | |
25186 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 25187 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25188 | /* confdefs.h. */ |
25189 | _ACEOF | |
25190 | cat confdefs.h >>conftest.$ac_ext | |
25191 | cat >>conftest.$ac_ext <<_ACEOF | |
25192 | /* end confdefs.h. */ | |
f73dda09 JA |
25193 | $ac_includes_default |
25194 | int | |
25195 | main () | |
25196 | { | |
3185942a JA |
25197 | if (sizeof ((bits64_t))) |
25198 | return 0; | |
f73dda09 JA |
25199 | ; |
25200 | return 0; | |
25201 | } | |
25202 | _ACEOF | |
25203 | rm -f conftest.$ac_objext | |
3185942a JA |
25204 | if { (ac_try="$ac_compile" |
25205 | case "(($ac_try" in | |
25206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25207 | *) ac_try_echo=$ac_try;; | |
25208 | esac | |
25209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25210 | $as_echo "$ac_try_echo") >&5 | |
25211 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25212 | ac_status=$? |
0628567a JA |
25213 | grep -v '^ *+' conftest.er1 >conftest.err |
25214 | rm -f conftest.er1 | |
25215 | cat conftest.err >&5 | |
3185942a JA |
25216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25217 | (exit $ac_status); } && { | |
25218 | test -z "$ac_c_werror_flag" || | |
25219 | test ! -s conftest.err | |
25220 | } && test -s conftest.$ac_objext; then | |
25221 | : | |
25222 | else | |
25223 | $as_echo "$as_me: failed program was:" >&5 | |
25224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25225 | ||
25226 | ac_cv_type_bits64_t=yes | |
25227 | fi | |
25228 | ||
25229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 25230 | else |
3185942a | 25231 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25232 | sed 's/^/| /' conftest.$ac_ext >&5 |
25233 | ||
3185942a | 25234 | |
b72432fd | 25235 | fi |
3185942a JA |
25236 | |
25237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b72432fd | 25238 | fi |
3185942a JA |
25239 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 |
25240 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
25241 | if test "x$ac_cv_type_bits64_t" = x""yes; then | |
f73dda09 JA |
25242 | : |
25243 | else | |
25244 | ||
b80f6443 | 25245 | cat >>confdefs.h <<_ACEOF |
b72432fd | 25246 | #define bits64_t double |
b80f6443 | 25247 | _ACEOF |
cce855bc JA |
25248 | |
25249 | fi | |
25250 | ||
25251 | fi | |
25252 | ||
b80f6443 JA |
25253 | |
25254 | ||
bb70624e | 25255 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then |
3185942a JA |
25256 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
25257 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 25258 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 25259 | $as_echo_n "(cached) " >&6 |
bb70624e | 25260 | else |
3185942a JA |
25261 | ac_cv_type_ptrdiff_t=no |
25262 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25263 | /* confdefs.h. */ |
25264 | _ACEOF | |
25265 | cat confdefs.h >>conftest.$ac_ext | |
25266 | cat >>conftest.$ac_ext <<_ACEOF | |
25267 | /* end confdefs.h. */ | |
f73dda09 JA |
25268 | $ac_includes_default |
25269 | int | |
25270 | main () | |
25271 | { | |
f73dda09 | 25272 | if (sizeof (ptrdiff_t)) |
3185942a | 25273 | return 0; |
f73dda09 JA |
25274 | ; |
25275 | return 0; | |
25276 | } | |
25277 | _ACEOF | |
25278 | rm -f conftest.$ac_objext | |
3185942a JA |
25279 | if { (ac_try="$ac_compile" |
25280 | case "(($ac_try" in | |
25281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25282 | *) ac_try_echo=$ac_try;; | |
25283 | esac | |
25284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25285 | $as_echo "$ac_try_echo") >&5 | |
25286 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
25287 | ac_status=$? |
25288 | grep -v '^ *+' conftest.er1 >conftest.err | |
25289 | rm -f conftest.er1 | |
25290 | cat conftest.err >&5 | |
3185942a JA |
25291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25292 | (exit $ac_status); } && { | |
25293 | test -z "$ac_c_werror_flag" || | |
25294 | test ! -s conftest.err | |
25295 | } && test -s conftest.$ac_objext; then | |
25296 | cat >conftest.$ac_ext <<_ACEOF | |
25297 | /* confdefs.h. */ | |
25298 | _ACEOF | |
25299 | cat confdefs.h >>conftest.$ac_ext | |
25300 | cat >>conftest.$ac_ext <<_ACEOF | |
25301 | /* end confdefs.h. */ | |
25302 | $ac_includes_default | |
25303 | int | |
25304 | main () | |
25305 | { | |
25306 | if (sizeof ((ptrdiff_t))) | |
25307 | return 0; | |
25308 | ; | |
25309 | return 0; | |
25310 | } | |
25311 | _ACEOF | |
25312 | rm -f conftest.$ac_objext | |
25313 | if { (ac_try="$ac_compile" | |
25314 | case "(($ac_try" in | |
25315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25316 | *) ac_try_echo=$ac_try;; | |
25317 | esac | |
25318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25319 | $as_echo "$ac_try_echo") >&5 | |
25320 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25321 | ac_status=$? |
3185942a JA |
25322 | grep -v '^ *+' conftest.er1 >conftest.err |
25323 | rm -f conftest.er1 | |
25324 | cat conftest.err >&5 | |
25325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25326 | (exit $ac_status); } && { | |
25327 | test -z "$ac_c_werror_flag" || | |
25328 | test ! -s conftest.err | |
25329 | } && test -s conftest.$ac_objext; then | |
25330 | : | |
25331 | else | |
25332 | $as_echo "$as_me: failed program was:" >&5 | |
25333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25334 | ||
25335 | ac_cv_type_ptrdiff_t=yes | |
25336 | fi | |
25337 | ||
25338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 25339 | else |
3185942a | 25340 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25341 | sed 's/^/| /' conftest.$ac_ext >&5 |
25342 | ||
3185942a | 25343 | |
bb70624e | 25344 | fi |
3185942a JA |
25345 | |
25346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 25347 | fi |
3185942a JA |
25348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
25349 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
25350 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
25351 | : |
25352 | else | |
25353 | ||
b80f6443 | 25354 | cat >>confdefs.h <<_ACEOF |
bb70624e | 25355 | #define ptrdiff_t int |
b80f6443 | 25356 | _ACEOF |
bb70624e JA |
25357 | |
25358 | fi | |
25359 | ||
25360 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then | |
3185942a JA |
25361 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
25362 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 25363 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 25364 | $as_echo_n "(cached) " >&6 |
bb70624e | 25365 | else |
3185942a JA |
25366 | ac_cv_type_ptrdiff_t=no |
25367 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25368 | /* confdefs.h. */ |
25369 | _ACEOF | |
25370 | cat confdefs.h >>conftest.$ac_ext | |
25371 | cat >>conftest.$ac_ext <<_ACEOF | |
25372 | /* end confdefs.h. */ | |
f73dda09 JA |
25373 | $ac_includes_default |
25374 | int | |
25375 | main () | |
25376 | { | |
f73dda09 | 25377 | if (sizeof (ptrdiff_t)) |
3185942a | 25378 | return 0; |
f73dda09 JA |
25379 | ; |
25380 | return 0; | |
25381 | } | |
25382 | _ACEOF | |
25383 | rm -f conftest.$ac_objext | |
3185942a JA |
25384 | if { (ac_try="$ac_compile" |
25385 | case "(($ac_try" in | |
25386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25387 | *) ac_try_echo=$ac_try;; | |
25388 | esac | |
25389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25390 | $as_echo "$ac_try_echo") >&5 | |
25391 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25392 | ac_status=$? |
0628567a JA |
25393 | grep -v '^ *+' conftest.er1 >conftest.err |
25394 | rm -f conftest.er1 | |
25395 | cat conftest.err >&5 | |
3185942a JA |
25396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25397 | (exit $ac_status); } && { | |
25398 | test -z "$ac_c_werror_flag" || | |
25399 | test ! -s conftest.err | |
25400 | } && test -s conftest.$ac_objext; then | |
25401 | cat >conftest.$ac_ext <<_ACEOF | |
25402 | /* confdefs.h. */ | |
25403 | _ACEOF | |
25404 | cat confdefs.h >>conftest.$ac_ext | |
25405 | cat >>conftest.$ac_ext <<_ACEOF | |
25406 | /* end confdefs.h. */ | |
25407 | $ac_includes_default | |
25408 | int | |
25409 | main () | |
25410 | { | |
25411 | if (sizeof ((ptrdiff_t))) | |
25412 | return 0; | |
25413 | ; | |
25414 | return 0; | |
25415 | } | |
25416 | _ACEOF | |
25417 | rm -f conftest.$ac_objext | |
25418 | if { (ac_try="$ac_compile" | |
25419 | case "(($ac_try" in | |
25420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25421 | *) ac_try_echo=$ac_try;; | |
25422 | esac | |
25423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25424 | $as_echo "$ac_try_echo") >&5 | |
25425 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25426 | ac_status=$? |
3185942a JA |
25427 | grep -v '^ *+' conftest.er1 >conftest.err |
25428 | rm -f conftest.er1 | |
25429 | cat conftest.err >&5 | |
25430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25431 | (exit $ac_status); } && { | |
25432 | test -z "$ac_c_werror_flag" || | |
25433 | test ! -s conftest.err | |
25434 | } && test -s conftest.$ac_objext; then | |
25435 | : | |
25436 | else | |
25437 | $as_echo "$as_me: failed program was:" >&5 | |
25438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25439 | ||
25440 | ac_cv_type_ptrdiff_t=yes | |
25441 | fi | |
25442 | ||
25443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 25444 | else |
3185942a | 25445 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25446 | sed 's/^/| /' conftest.$ac_ext >&5 |
25447 | ||
3185942a | 25448 | |
bb70624e | 25449 | fi |
3185942a JA |
25450 | |
25451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 25452 | fi |
3185942a JA |
25453 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
25454 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
25455 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
25456 | : |
25457 | else | |
25458 | ||
b80f6443 | 25459 | cat >>confdefs.h <<_ACEOF |
bb70624e | 25460 | #define ptrdiff_t long |
b80f6443 | 25461 | _ACEOF |
bb70624e JA |
25462 | |
25463 | fi | |
25464 | ||
f73dda09 | 25465 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then |
3185942a JA |
25466 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
25467 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 25468 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 25469 | $as_echo_n "(cached) " >&6 |
bb70624e | 25470 | else |
3185942a JA |
25471 | ac_cv_type_ptrdiff_t=no |
25472 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25473 | /* confdefs.h. */ |
25474 | _ACEOF | |
25475 | cat confdefs.h >>conftest.$ac_ext | |
25476 | cat >>conftest.$ac_ext <<_ACEOF | |
25477 | /* end confdefs.h. */ | |
f73dda09 JA |
25478 | $ac_includes_default |
25479 | int | |
25480 | main () | |
25481 | { | |
f73dda09 | 25482 | if (sizeof (ptrdiff_t)) |
3185942a | 25483 | return 0; |
f73dda09 JA |
25484 | ; |
25485 | return 0; | |
25486 | } | |
25487 | _ACEOF | |
25488 | rm -f conftest.$ac_objext | |
3185942a JA |
25489 | if { (ac_try="$ac_compile" |
25490 | case "(($ac_try" in | |
25491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25492 | *) ac_try_echo=$ac_try;; | |
25493 | esac | |
25494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25495 | $as_echo "$ac_try_echo") >&5 | |
25496 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25497 | ac_status=$? |
0628567a JA |
25498 | grep -v '^ *+' conftest.er1 >conftest.err |
25499 | rm -f conftest.er1 | |
25500 | cat conftest.err >&5 | |
3185942a JA |
25501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25502 | (exit $ac_status); } && { | |
25503 | test -z "$ac_c_werror_flag" || | |
25504 | test ! -s conftest.err | |
25505 | } && test -s conftest.$ac_objext; then | |
25506 | cat >conftest.$ac_ext <<_ACEOF | |
25507 | /* confdefs.h. */ | |
25508 | _ACEOF | |
25509 | cat confdefs.h >>conftest.$ac_ext | |
25510 | cat >>conftest.$ac_ext <<_ACEOF | |
25511 | /* end confdefs.h. */ | |
25512 | $ac_includes_default | |
25513 | int | |
25514 | main () | |
25515 | { | |
25516 | if (sizeof ((ptrdiff_t))) | |
25517 | return 0; | |
25518 | ; | |
25519 | return 0; | |
25520 | } | |
25521 | _ACEOF | |
25522 | rm -f conftest.$ac_objext | |
25523 | if { (ac_try="$ac_compile" | |
25524 | case "(($ac_try" in | |
25525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25526 | *) ac_try_echo=$ac_try;; | |
25527 | esac | |
25528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25529 | $as_echo "$ac_try_echo") >&5 | |
25530 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25531 | ac_status=$? |
3185942a JA |
25532 | grep -v '^ *+' conftest.er1 >conftest.err |
25533 | rm -f conftest.er1 | |
25534 | cat conftest.err >&5 | |
25535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25536 | (exit $ac_status); } && { | |
25537 | test -z "$ac_c_werror_flag" || | |
25538 | test ! -s conftest.err | |
25539 | } && test -s conftest.$ac_objext; then | |
25540 | : | |
25541 | else | |
25542 | $as_echo "$as_me: failed program was:" >&5 | |
25543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25544 | ||
25545 | ac_cv_type_ptrdiff_t=yes | |
25546 | fi | |
25547 | ||
25548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bb70624e | 25549 | else |
3185942a | 25550 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25551 | sed 's/^/| /' conftest.$ac_ext >&5 |
25552 | ||
3185942a | 25553 | |
f73dda09 | 25554 | fi |
3185942a JA |
25555 | |
25556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 25557 | fi |
3185942a JA |
25558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
25559 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
25560 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
25561 | : |
25562 | else | |
25563 | ||
b80f6443 | 25564 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 25565 | #define ptrdiff_t long long |
b80f6443 | 25566 | _ACEOF |
f73dda09 | 25567 | |
bb70624e | 25568 | fi |
bb70624e | 25569 | |
f73dda09 | 25570 | else |
3185942a JA |
25571 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
25572 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
f73dda09 | 25573 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
3185942a | 25574 | $as_echo_n "(cached) " >&6 |
f73dda09 | 25575 | else |
3185942a JA |
25576 | ac_cv_type_ptrdiff_t=no |
25577 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25578 | /* confdefs.h. */ |
25579 | _ACEOF | |
25580 | cat confdefs.h >>conftest.$ac_ext | |
25581 | cat >>conftest.$ac_ext <<_ACEOF | |
25582 | /* end confdefs.h. */ | |
f73dda09 JA |
25583 | $ac_includes_default |
25584 | int | |
25585 | main () | |
25586 | { | |
f73dda09 | 25587 | if (sizeof (ptrdiff_t)) |
3185942a | 25588 | return 0; |
f73dda09 JA |
25589 | ; |
25590 | return 0; | |
25591 | } | |
25592 | _ACEOF | |
25593 | rm -f conftest.$ac_objext | |
3185942a JA |
25594 | if { (ac_try="$ac_compile" |
25595 | case "(($ac_try" in | |
25596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25597 | *) ac_try_echo=$ac_try;; | |
25598 | esac | |
25599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25600 | $as_echo "$ac_try_echo") >&5 | |
25601 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25602 | ac_status=$? |
0628567a JA |
25603 | grep -v '^ *+' conftest.er1 >conftest.err |
25604 | rm -f conftest.er1 | |
25605 | cat conftest.err >&5 | |
3185942a JA |
25606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25607 | (exit $ac_status); } && { | |
25608 | test -z "$ac_c_werror_flag" || | |
25609 | test ! -s conftest.err | |
25610 | } && test -s conftest.$ac_objext; then | |
25611 | cat >conftest.$ac_ext <<_ACEOF | |
25612 | /* confdefs.h. */ | |
25613 | _ACEOF | |
25614 | cat confdefs.h >>conftest.$ac_ext | |
25615 | cat >>conftest.$ac_ext <<_ACEOF | |
25616 | /* end confdefs.h. */ | |
25617 | $ac_includes_default | |
25618 | int | |
25619 | main () | |
25620 | { | |
25621 | if (sizeof ((ptrdiff_t))) | |
25622 | return 0; | |
25623 | ; | |
25624 | return 0; | |
25625 | } | |
25626 | _ACEOF | |
25627 | rm -f conftest.$ac_objext | |
25628 | if { (ac_try="$ac_compile" | |
25629 | case "(($ac_try" in | |
25630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25631 | *) ac_try_echo=$ac_try;; | |
25632 | esac | |
25633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25634 | $as_echo "$ac_try_echo") >&5 | |
25635 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 25636 | ac_status=$? |
3185942a JA |
25637 | grep -v '^ *+' conftest.er1 >conftest.err |
25638 | rm -f conftest.er1 | |
25639 | cat conftest.err >&5 | |
25640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25641 | (exit $ac_status); } && { | |
25642 | test -z "$ac_c_werror_flag" || | |
25643 | test ! -s conftest.err | |
25644 | } && test -s conftest.$ac_objext; then | |
25645 | : | |
25646 | else | |
25647 | $as_echo "$as_me: failed program was:" >&5 | |
25648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25649 | ||
25650 | ac_cv_type_ptrdiff_t=yes | |
25651 | fi | |
25652 | ||
25653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 25654 | else |
3185942a | 25655 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25656 | sed 's/^/| /' conftest.$ac_ext >&5 |
25657 | ||
3185942a | 25658 | |
bb70624e | 25659 | fi |
3185942a JA |
25660 | |
25661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 25662 | fi |
3185942a JA |
25663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
25664 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
25665 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
f73dda09 JA |
25666 | : |
25667 | else | |
25668 | ||
b80f6443 | 25669 | cat >>confdefs.h <<_ACEOF |
bb70624e | 25670 | #define ptrdiff_t int |
b80f6443 | 25671 | _ACEOF |
bb70624e JA |
25672 | |
25673 | fi | |
25674 | ||
25675 | fi | |
25676 | ||
b80f6443 | 25677 | |
3185942a JA |
25678 | { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
25679 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
f73dda09 | 25680 | if test "${ac_cv_header_stat_broken+set}" = set; then |
3185942a | 25681 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25682 | else |
f73dda09 | 25683 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25684 | /* confdefs.h. */ |
25685 | _ACEOF | |
25686 | cat confdefs.h >>conftest.$ac_ext | |
25687 | cat >>conftest.$ac_ext <<_ACEOF | |
25688 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25689 | #include <sys/types.h> |
25690 | #include <sys/stat.h> | |
25691 | ||
3185942a JA |
25692 | #if defined S_ISBLK && defined S_IFDIR |
25693 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
ccc6cda3 JA |
25694 | #endif |
25695 | ||
3185942a JA |
25696 | #if defined S_ISBLK && defined S_IFCHR |
25697 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
ccc6cda3 JA |
25698 | #endif |
25699 | ||
3185942a JA |
25700 | #if defined S_ISLNK && defined S_IFREG |
25701 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
ccc6cda3 JA |
25702 | #endif |
25703 | ||
3185942a JA |
25704 | #if defined S_ISSOCK && defined S_IFREG |
25705 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
f73dda09 JA |
25706 | #endif |
25707 | ||
25708 | _ACEOF | |
3185942a JA |
25709 | rm -f conftest.$ac_objext |
25710 | if { (ac_try="$ac_compile" | |
25711 | case "(($ac_try" in | |
25712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25713 | *) ac_try_echo=$ac_try;; | |
25714 | esac | |
25715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25716 | $as_echo "$ac_try_echo") >&5 | |
25717 | (eval "$ac_compile") 2>conftest.er1 | |
25718 | ac_status=$? | |
25719 | grep -v '^ *+' conftest.er1 >conftest.err | |
25720 | rm -f conftest.er1 | |
25721 | cat conftest.err >&5 | |
25722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25723 | (exit $ac_status); } && { | |
25724 | test -z "$ac_c_werror_flag" || | |
25725 | test ! -s conftest.err | |
25726 | } && test -s conftest.$ac_objext; then | |
f73dda09 | 25727 | ac_cv_header_stat_broken=no |
3185942a JA |
25728 | else |
25729 | $as_echo "$as_me: failed program was:" >&5 | |
25730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25731 | ||
25732 | ac_cv_header_stat_broken=yes | |
ccc6cda3 | 25733 | fi |
ccc6cda3 | 25734 | |
3185942a | 25735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 | 25736 | fi |
3185942a JA |
25737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
25738 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
f73dda09 | 25739 | if test $ac_cv_header_stat_broken = yes; then |
ccc6cda3 | 25740 | |
b80f6443 | 25741 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 25742 | #define STAT_MACROS_BROKEN 1 |
b80f6443 | 25743 | _ACEOF |
ccc6cda3 JA |
25744 | |
25745 | fi | |
25746 | ||
b80f6443 | 25747 | |
3185942a JA |
25748 | { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5 |
25749 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } | |
f73dda09 | 25750 | if test "${ac_cv_sys_interpreter+set}" = set; then |
3185942a | 25751 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
25752 | else |
25753 | echo '#! /bin/cat | |
25754 | exit 69 | |
f73dda09 | 25755 | ' >conftest |
ccc6cda3 | 25756 | chmod u+x conftest |
3185942a | 25757 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
ccc6cda3 JA |
25758 | if test $? -ne 69; then |
25759 | ac_cv_sys_interpreter=yes | |
25760 | else | |
25761 | ac_cv_sys_interpreter=no | |
25762 | fi | |
25763 | rm -f conftest | |
25764 | fi | |
3185942a JA |
25765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 |
25766 | $as_echo "$ac_cv_sys_interpreter" >&6; } | |
f73dda09 | 25767 | interpval=$ac_cv_sys_interpreter |
ccc6cda3 JA |
25768 | |
25769 | if test $ac_cv_sys_interpreter = yes; then | |
b80f6443 | 25770 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25771 | #define HAVE_HASH_BANG_EXEC 1 |
b80f6443 | 25772 | _ACEOF |
ccc6cda3 | 25773 | |
ccc6cda3 JA |
25774 | fi |
25775 | ||
ccc6cda3 | 25776 | if test "$ac_cv_func_lstat" = "no"; then |
3185942a JA |
25777 | { $as_echo "$as_me:$LINENO: checking for lstat" >&5 |
25778 | $as_echo_n "checking for lstat... " >&6; } | |
f73dda09 | 25779 | if test "${bash_cv_func_lstat+set}" = set; then |
3185942a | 25780 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 25781 | else |
f73dda09 | 25782 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25783 | /* confdefs.h. */ |
25784 | _ACEOF | |
25785 | cat confdefs.h >>conftest.$ac_ext | |
25786 | cat >>conftest.$ac_ext <<_ACEOF | |
25787 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25788 | |
25789 | #include <sys/types.h> | |
25790 | #include <sys/stat.h> | |
25791 | ||
f73dda09 JA |
25792 | int |
25793 | main () | |
25794 | { | |
25795 | lstat(".",(struct stat *)0); | |
25796 | ; | |
25797 | return 0; | |
25798 | } | |
25799 | _ACEOF | |
25800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
25801 | if { (ac_try="$ac_link" |
25802 | case "(($ac_try" in | |
25803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25804 | *) ac_try_echo=$ac_try;; | |
25805 | esac | |
25806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25807 | $as_echo "$ac_try_echo") >&5 | |
25808 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 25809 | ac_status=$? |
0628567a JA |
25810 | grep -v '^ *+' conftest.er1 >conftest.err |
25811 | rm -f conftest.er1 | |
25812 | cat conftest.err >&5 | |
3185942a JA |
25813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25814 | (exit $ac_status); } && { | |
25815 | test -z "$ac_c_werror_flag" || | |
25816 | test ! -s conftest.err | |
25817 | } && test -s conftest$ac_exeext && { | |
25818 | test "$cross_compiling" = yes || | |
25819 | $as_test_x conftest$ac_exeext | |
25820 | }; then | |
ccc6cda3 JA |
25821 | bash_cv_func_lstat=yes |
25822 | else | |
3185942a | 25823 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
25824 | sed 's/^/| /' conftest.$ac_ext >&5 |
25825 | ||
3185942a | 25826 | bash_cv_func_lstat=no |
ccc6cda3 | 25827 | fi |
3185942a JA |
25828 | |
25829 | rm -rf conftest.dSYM | |
25830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 25831 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 | 25832 | fi |
3185942a JA |
25833 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
25834 | $as_echo "$bash_cv_func_lstat" >&6; } | |
ccc6cda3 | 25835 | if test $bash_cv_func_lstat = yes; then |
b80f6443 | 25836 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 25837 | #define HAVE_LSTAT 1 |
b80f6443 JA |
25838 | _ACEOF |
25839 | ||
25840 | fi | |
25841 | ||
25842 | fi | |
25843 | ||
25844 | ||
3185942a JA |
25845 | { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 |
25846 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
b80f6443 | 25847 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then |
3185942a | 25848 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
25849 | else |
25850 | if test "$cross_compiling" = yes; then | |
3185942a JA |
25851 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 |
25852 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
b80f6443 JA |
25853 | bash_cv_func_ctype_nonascii=no |
25854 | ||
25855 | else | |
25856 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
25857 | /* confdefs.h. */ |
25858 | _ACEOF | |
25859 | cat confdefs.h >>conftest.$ac_ext | |
25860 | cat >>conftest.$ac_ext <<_ACEOF | |
25861 | /* end confdefs.h. */ | |
b80f6443 JA |
25862 | |
25863 | #ifdef HAVE_LOCALE_H | |
25864 | #include <locale.h> | |
25865 | #endif | |
25866 | #include <stdio.h> | |
25867 | #include <ctype.h> | |
25868 | ||
25869 | main(c, v) | |
25870 | int c; | |
25871 | char *v[]; | |
25872 | { | |
25873 | char *deflocale; | |
25874 | unsigned char x; | |
25875 | int r1, r2; | |
25876 | ||
25877 | #ifdef HAVE_SETLOCALE | |
25878 | /* We take a shot here. If that locale is not known, try the | |
25879 | system default. We try this one because '\342' (226) is | |
25880 | known to be a printable character in that locale. */ | |
25881 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
25882 | if (deflocale == 0) | |
25883 | deflocale = setlocale(LC_ALL, ""); | |
25884 | #endif | |
25885 | ||
25886 | x = '\342'; | |
25887 | r1 = isprint(x); | |
25888 | x -= 128; | |
25889 | r2 = isprint(x); | |
25890 | exit (r1 == 0 || r2 == 0); | |
25891 | } | |
25892 | ||
25893 | _ACEOF | |
25894 | rm -f conftest$ac_exeext | |
3185942a JA |
25895 | if { (ac_try="$ac_link" |
25896 | case "(($ac_try" in | |
25897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25898 | *) ac_try_echo=$ac_try;; | |
25899 | esac | |
25900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25901 | $as_echo "$ac_try_echo") >&5 | |
25902 | (eval "$ac_link") 2>&5 | |
b80f6443 | 25903 | ac_status=$? |
3185942a | 25904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 | 25905 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25906 | { (case "(($ac_try" in |
25907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25908 | *) ac_try_echo=$ac_try;; | |
25909 | esac | |
25910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25911 | $as_echo "$ac_try_echo") >&5 | |
25912 | (eval "$ac_try") 2>&5 | |
b80f6443 | 25913 | ac_status=$? |
3185942a | 25914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b80f6443 JA |
25915 | (exit $ac_status); }; }; then |
25916 | bash_cv_func_ctype_nonascii=yes | |
25917 | else | |
3185942a JA |
25918 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25919 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
25920 | sed 's/^/| /' conftest.$ac_ext >&5 |
25921 | ||
b80f6443 JA |
25922 | ( exit $ac_status ) |
25923 | bash_cv_func_ctype_nonascii=no | |
25924 | fi | |
3185942a JA |
25925 | rm -rf conftest.dSYM |
25926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 25927 | fi |
3185942a JA |
25928 | |
25929 | ||
b80f6443 JA |
25930 | fi |
25931 | ||
3185942a JA |
25932 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 |
25933 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
b80f6443 JA |
25934 | if test $bash_cv_func_ctype_nonascii = yes; then |
25935 | cat >>confdefs.h <<\_ACEOF | |
25936 | #define CTYPE_NON_ASCII 1 | |
25937 | _ACEOF | |
ccc6cda3 JA |
25938 | |
25939 | fi | |
25940 | ||
3185942a JA |
25941 | { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 |
25942 | $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } | |
f73dda09 | 25943 | if test "${bash_cv_dup2_broken+set}" = set; then |
3185942a | 25944 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
25945 | else |
25946 | if test "$cross_compiling" = yes; then | |
3185942a JA |
25947 | { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 |
25948 | $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 25949 | bash_cv_dup2_broken=no |
ccc6cda3 | 25950 | else |
f73dda09 | 25951 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
25952 | /* confdefs.h. */ |
25953 | _ACEOF | |
25954 | cat confdefs.h >>conftest.$ac_ext | |
25955 | cat >>conftest.$ac_ext <<_ACEOF | |
25956 | /* end confdefs.h. */ | |
ccc6cda3 JA |
25957 | |
25958 | #include <sys/types.h> | |
25959 | #include <fcntl.h> | |
25960 | main() | |
25961 | { | |
25962 | int fd1, fd2, fl; | |
25963 | fd1 = open("/dev/null", 2); | |
25964 | if (fcntl(fd1, 2, 1) < 0) | |
25965 | exit(1); | |
25966 | fd2 = dup2(fd1, 1); | |
25967 | if (fd2 < 0) | |
25968 | exit(2); | |
25969 | fl = fcntl(fd2, 1, 0); | |
25970 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ | |
25971 | exit(fl != 1); | |
25972 | } | |
25973 | ||
f73dda09 JA |
25974 | _ACEOF |
25975 | rm -f conftest$ac_exeext | |
3185942a JA |
25976 | if { (ac_try="$ac_link" |
25977 | case "(($ac_try" in | |
25978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25979 | *) ac_try_echo=$ac_try;; | |
25980 | esac | |
25981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25982 | $as_echo "$ac_try_echo") >&5 | |
25983 | (eval "$ac_link") 2>&5 | |
f73dda09 | 25984 | ac_status=$? |
3185942a | 25985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
25987 | { (case "(($ac_try" in |
25988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25989 | *) ac_try_echo=$ac_try;; | |
25990 | esac | |
25991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25992 | $as_echo "$ac_try_echo") >&5 | |
25993 | (eval "$ac_try") 2>&5 | |
f73dda09 | 25994 | ac_status=$? |
3185942a | 25995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 25996 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
25997 | bash_cv_dup2_broken=yes |
25998 | else | |
3185942a JA |
25999 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26000 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
26001 | sed 's/^/| /' conftest.$ac_ext >&5 |
26002 | ||
b80f6443 | 26003 | ( exit $ac_status ) |
f73dda09 | 26004 | bash_cv_dup2_broken=no |
ccc6cda3 | 26005 | fi |
3185942a JA |
26006 | rm -rf conftest.dSYM |
26007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
26008 | fi |
26009 | ||
3185942a JA |
26010 | |
26011 | ||
ccc6cda3 JA |
26012 | fi |
26013 | ||
3185942a JA |
26014 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5 |
26015 | $as_echo "$bash_cv_dup2_broken" >&6; } | |
ccc6cda3 | 26016 | if test $bash_cv_dup2_broken = yes; then |
b80f6443 | 26017 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26018 | #define DUP2_BROKEN 1 |
b80f6443 | 26019 | _ACEOF |
ccc6cda3 JA |
26020 | |
26021 | fi | |
26022 | ||
b80f6443 | 26023 | |
3185942a JA |
26024 | { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5 |
26025 | $as_echo_n "checking whether pgrps need synchronization... " >&6; } | |
f73dda09 | 26026 | if test "${bash_cv_pgrp_pipe+set}" = set; then |
3185942a | 26027 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
26028 | else |
26029 | if test "$cross_compiling" = yes; then | |
3185942a JA |
26030 | { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 |
26031 | $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 26032 | bash_cv_pgrp_pipe=no |
ccc6cda3 | 26033 | else |
f73dda09 | 26034 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26035 | /* confdefs.h. */ |
26036 | _ACEOF | |
26037 | cat confdefs.h >>conftest.$ac_ext | |
26038 | cat >>conftest.$ac_ext <<_ACEOF | |
26039 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26040 | |
26041 | #ifdef HAVE_UNISTD_H | |
26042 | # include <unistd.h> | |
26043 | #endif | |
26044 | main() | |
26045 | { | |
26046 | # ifdef GETPGRP_VOID | |
26047 | # define getpgID() getpgrp() | |
26048 | # else | |
26049 | # define getpgID() getpgrp(0) | |
26050 | # define setpgid(x,y) setpgrp(x,y) | |
26051 | # endif | |
26052 | int pid1, pid2, fds[2]; | |
26053 | int status; | |
26054 | char ok; | |
26055 | ||
26056 | switch (pid1 = fork()) { | |
26057 | case -1: | |
26058 | exit(1); | |
26059 | case 0: | |
26060 | setpgid(0, getpid()); | |
26061 | exit(0); | |
26062 | } | |
26063 | setpgid(pid1, pid1); | |
26064 | ||
26065 | sleep(2); /* let first child die */ | |
26066 | ||
26067 | if (pipe(fds) < 0) | |
26068 | exit(2); | |
26069 | ||
26070 | switch (pid2 = fork()) { | |
26071 | case -1: | |
26072 | exit(3); | |
26073 | case 0: | |
26074 | setpgid(0, pid1); | |
26075 | ok = getpgID() == pid1; | |
26076 | write(fds[1], &ok, 1); | |
26077 | exit(0); | |
26078 | } | |
26079 | setpgid(pid2, pid1); | |
26080 | ||
26081 | close(fds[1]); | |
26082 | if (read(fds[0], &ok, 1) != 1) | |
26083 | exit(4); | |
26084 | wait(&status); | |
26085 | wait(&status); | |
26086 | exit(ok ? 0 : 5); | |
26087 | } | |
26088 | ||
f73dda09 JA |
26089 | _ACEOF |
26090 | rm -f conftest$ac_exeext | |
3185942a JA |
26091 | if { (ac_try="$ac_link" |
26092 | case "(($ac_try" in | |
26093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26094 | *) ac_try_echo=$ac_try;; | |
26095 | esac | |
26096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26097 | $as_echo "$ac_try_echo") >&5 | |
26098 | (eval "$ac_link") 2>&5 | |
f73dda09 | 26099 | ac_status=$? |
3185942a | 26100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
26102 | { (case "(($ac_try" in |
26103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26104 | *) ac_try_echo=$ac_try;; | |
26105 | esac | |
26106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26107 | $as_echo "$ac_try_echo") >&5 | |
26108 | (eval "$ac_try") 2>&5 | |
f73dda09 | 26109 | ac_status=$? |
3185942a | 26110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26111 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26112 | bash_cv_pgrp_pipe=no |
26113 | else | |
3185942a JA |
26114 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26115 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
26116 | sed 's/^/| /' conftest.$ac_ext >&5 |
26117 | ||
b80f6443 | 26118 | ( exit $ac_status ) |
f73dda09 | 26119 | bash_cv_pgrp_pipe=yes |
ccc6cda3 | 26120 | fi |
3185942a JA |
26121 | rm -rf conftest.dSYM |
26122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
26123 | fi |
26124 | ||
3185942a JA |
26125 | |
26126 | ||
ccc6cda3 JA |
26127 | fi |
26128 | ||
3185942a JA |
26129 | { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5 |
26130 | $as_echo "$bash_cv_pgrp_pipe" >&6; } | |
ccc6cda3 | 26131 | if test $bash_cv_pgrp_pipe = yes; then |
b80f6443 | 26132 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26133 | #define PGRP_PIPE 1 |
b80f6443 | 26134 | _ACEOF |
ccc6cda3 JA |
26135 | |
26136 | fi | |
26137 | ||
b80f6443 | 26138 | |
3185942a JA |
26139 | { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5 |
26140 | $as_echo_n "checking for type of signal functions... " >&6; } | |
f73dda09 | 26141 | if test "${bash_cv_signal_vintage+set}" = set; then |
3185942a | 26142 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26143 | else |
f73dda09 JA |
26144 | |
26145 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26146 | /* confdefs.h. */ |
26147 | _ACEOF | |
26148 | cat confdefs.h >>conftest.$ac_ext | |
26149 | cat >>conftest.$ac_ext <<_ACEOF | |
26150 | /* end confdefs.h. */ | |
d166f048 | 26151 | #include <signal.h> |
f73dda09 JA |
26152 | int |
26153 | main () | |
26154 | { | |
d166f048 JA |
26155 | |
26156 | sigset_t ss; | |
26157 | struct sigaction sa; | |
26158 | sigemptyset(&ss); sigsuspend(&ss); | |
26159 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
26160 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
f73dda09 JA |
26161 | |
26162 | ; | |
26163 | return 0; | |
26164 | } | |
26165 | _ACEOF | |
26166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
26167 | if { (ac_try="$ac_link" |
26168 | case "(($ac_try" in | |
26169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26170 | *) ac_try_echo=$ac_try;; | |
26171 | esac | |
26172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26173 | $as_echo "$ac_try_echo") >&5 | |
26174 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 26175 | ac_status=$? |
0628567a JA |
26176 | grep -v '^ *+' conftest.er1 >conftest.err |
26177 | rm -f conftest.er1 | |
26178 | cat conftest.err >&5 | |
3185942a JA |
26179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26180 | (exit $ac_status); } && { | |
26181 | test -z "$ac_c_werror_flag" || | |
26182 | test ! -s conftest.err | |
26183 | } && test -s conftest$ac_exeext && { | |
26184 | test "$cross_compiling" = yes || | |
26185 | $as_test_x conftest$ac_exeext | |
26186 | }; then | |
d166f048 | 26187 | bash_cv_signal_vintage=posix |
ccc6cda3 | 26188 | else |
3185942a | 26189 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26190 | sed 's/^/| /' conftest.$ac_ext >&5 |
26191 | ||
f73dda09 JA |
26192 | |
26193 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26194 | /* confdefs.h. */ |
26195 | _ACEOF | |
26196 | cat confdefs.h >>conftest.$ac_ext | |
26197 | cat >>conftest.$ac_ext <<_ACEOF | |
26198 | /* end confdefs.h. */ | |
d166f048 | 26199 | #include <signal.h> |
f73dda09 JA |
26200 | int |
26201 | main () | |
26202 | { | |
d166f048 JA |
26203 | |
26204 | int mask = sigmask(SIGINT); | |
26205 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
f73dda09 JA |
26206 | |
26207 | ; | |
26208 | return 0; | |
26209 | } | |
26210 | _ACEOF | |
26211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
26212 | if { (ac_try="$ac_link" |
26213 | case "(($ac_try" in | |
26214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26215 | *) ac_try_echo=$ac_try;; | |
26216 | esac | |
26217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26218 | $as_echo "$ac_try_echo") >&5 | |
26219 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 26220 | ac_status=$? |
0628567a JA |
26221 | grep -v '^ *+' conftest.er1 >conftest.err |
26222 | rm -f conftest.er1 | |
26223 | cat conftest.err >&5 | |
3185942a JA |
26224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26225 | (exit $ac_status); } && { | |
26226 | test -z "$ac_c_werror_flag" || | |
26227 | test ! -s conftest.err | |
26228 | } && test -s conftest$ac_exeext && { | |
26229 | test "$cross_compiling" = yes || | |
26230 | $as_test_x conftest$ac_exeext | |
26231 | }; then | |
d166f048 JA |
26232 | bash_cv_signal_vintage=4.2bsd |
26233 | else | |
3185942a | 26234 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26235 | sed 's/^/| /' conftest.$ac_ext >&5 |
26236 | ||
f73dda09 JA |
26237 | |
26238 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26239 | /* confdefs.h. */ |
26240 | _ACEOF | |
26241 | cat confdefs.h >>conftest.$ac_ext | |
26242 | cat >>conftest.$ac_ext <<_ACEOF | |
26243 | /* end confdefs.h. */ | |
d166f048 JA |
26244 | |
26245 | #include <signal.h> | |
26246 | RETSIGTYPE foo() { } | |
f73dda09 JA |
26247 | int |
26248 | main () | |
26249 | { | |
d166f048 JA |
26250 | |
26251 | int mask = sigmask(SIGINT); | |
26252 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
26253 | sighold(SIGINT); sigpause(SIGINT); | |
f73dda09 JA |
26254 | |
26255 | ; | |
26256 | return 0; | |
26257 | } | |
26258 | _ACEOF | |
26259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
26260 | if { (ac_try="$ac_link" |
26261 | case "(($ac_try" in | |
26262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26263 | *) ac_try_echo=$ac_try;; | |
26264 | esac | |
26265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26266 | $as_echo "$ac_try_echo") >&5 | |
26267 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 26268 | ac_status=$? |
0628567a JA |
26269 | grep -v '^ *+' conftest.er1 >conftest.err |
26270 | rm -f conftest.er1 | |
26271 | cat conftest.err >&5 | |
3185942a JA |
26272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26273 | (exit $ac_status); } && { | |
26274 | test -z "$ac_c_werror_flag" || | |
26275 | test ! -s conftest.err | |
26276 | } && test -s conftest$ac_exeext && { | |
26277 | test "$cross_compiling" = yes || | |
26278 | $as_test_x conftest$ac_exeext | |
26279 | }; then | |
d166f048 JA |
26280 | bash_cv_signal_vintage=svr3 |
26281 | else | |
3185942a | 26282 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26283 | sed 's/^/| /' conftest.$ac_ext >&5 |
26284 | ||
3185942a | 26285 | bash_cv_signal_vintage=v7 |
f73dda09 | 26286 | |
d166f048 | 26287 | fi |
3185942a JA |
26288 | |
26289 | rm -rf conftest.dSYM | |
26290 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 26291 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 | 26292 | |
d166f048 | 26293 | fi |
3185942a JA |
26294 | |
26295 | rm -rf conftest.dSYM | |
26296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 26297 | conftest$ac_exeext conftest.$ac_ext |
d166f048 JA |
26298 | |
26299 | fi | |
3185942a JA |
26300 | |
26301 | rm -rf conftest.dSYM | |
26302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 26303 | conftest$ac_exeext conftest.$ac_ext |
d166f048 JA |
26304 | |
26305 | fi | |
26306 | ||
3185942a JA |
26307 | { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
26308 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
d166f048 | 26309 | if test "$bash_cv_signal_vintage" = posix; then |
b80f6443 | 26310 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26311 | #define HAVE_POSIX_SIGNALS 1 |
b80f6443 | 26312 | _ACEOF |
d166f048 JA |
26313 | |
26314 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
b80f6443 | 26315 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26316 | #define HAVE_BSD_SIGNALS 1 |
b80f6443 | 26317 | _ACEOF |
d166f048 JA |
26318 | |
26319 | elif test "$bash_cv_signal_vintage" = svr3; then | |
b80f6443 | 26320 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26321 | #define HAVE_USG_SIGHOLD 1 |
b80f6443 | 26322 | _ACEOF |
d166f048 JA |
26323 | |
26324 | fi | |
26325 | ||
b80f6443 | 26326 | |
3185942a JA |
26327 | { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5 |
26328 | $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } | |
f73dda09 | 26329 | if test "${bash_cv_sys_errlist+set}" = set; then |
3185942a | 26330 | $as_echo_n "(cached) " >&6 |
cce855bc | 26331 | else |
f73dda09 | 26332 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26333 | /* confdefs.h. */ |
26334 | _ACEOF | |
26335 | cat confdefs.h >>conftest.$ac_ext | |
26336 | cat >>conftest.$ac_ext <<_ACEOF | |
26337 | /* end confdefs.h. */ | |
f73dda09 JA |
26338 | #include <errno.h> |
26339 | int | |
cce855bc JA |
26340 | main () |
26341 | { | |
d166f048 JA |
26342 | extern char *sys_errlist[]; |
26343 | extern int sys_nerr; | |
26344 | char *msg = sys_errlist[sys_nerr - 1]; | |
f73dda09 JA |
26345 | ; |
26346 | return 0; | |
26347 | } | |
26348 | _ACEOF | |
26349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
26350 | if { (ac_try="$ac_link" |
26351 | case "(($ac_try" in | |
26352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26353 | *) ac_try_echo=$ac_try;; | |
26354 | esac | |
26355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26356 | $as_echo "$ac_try_echo") >&5 | |
26357 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 26358 | ac_status=$? |
0628567a JA |
26359 | grep -v '^ *+' conftest.er1 >conftest.err |
26360 | rm -f conftest.er1 | |
26361 | cat conftest.err >&5 | |
3185942a JA |
26362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26363 | (exit $ac_status); } && { | |
26364 | test -z "$ac_c_werror_flag" || | |
26365 | test ! -s conftest.err | |
26366 | } && test -s conftest$ac_exeext && { | |
26367 | test "$cross_compiling" = yes || | |
26368 | $as_test_x conftest$ac_exeext | |
26369 | }; then | |
d166f048 JA |
26370 | bash_cv_sys_errlist=yes |
26371 | else | |
3185942a | 26372 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26373 | sed 's/^/| /' conftest.$ac_ext >&5 |
26374 | ||
3185942a | 26375 | bash_cv_sys_errlist=no |
d166f048 | 26376 | fi |
3185942a JA |
26377 | |
26378 | rm -rf conftest.dSYM | |
26379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 26380 | conftest$ac_exeext conftest.$ac_ext |
d166f048 | 26381 | fi |
3185942a JA |
26382 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5 |
26383 | $as_echo "$bash_cv_sys_errlist" >&6; } | |
d166f048 | 26384 | if test $bash_cv_sys_errlist = yes; then |
b80f6443 | 26385 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 26386 | #define HAVE_SYS_ERRLIST 1 |
b80f6443 | 26387 | _ACEOF |
d166f048 JA |
26388 | |
26389 | fi | |
26390 | ||
b80f6443 | 26391 | |
3185942a JA |
26392 | { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5 |
26393 | $as_echo_n "checking for sys_siglist in system C library... " >&6; } | |
f73dda09 | 26394 | if test "${bash_cv_sys_siglist+set}" = set; then |
3185942a | 26395 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
26396 | else |
26397 | if test "$cross_compiling" = yes; then | |
3185942a JA |
26398 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 |
26399 | $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 26400 | bash_cv_sys_siglist=no |
ccc6cda3 | 26401 | else |
f73dda09 | 26402 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26403 | /* confdefs.h. */ |
26404 | _ACEOF | |
26405 | cat confdefs.h >>conftest.$ac_ext | |
26406 | cat >>conftest.$ac_ext <<_ACEOF | |
26407 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26408 | |
26409 | #include <sys/types.h> | |
26410 | #include <signal.h> | |
26411 | #ifdef HAVE_UNISTD_H | |
26412 | #include <unistd.h> | |
26413 | #endif | |
3185942a | 26414 | #if !HAVE_DECL_SYS_SIGLIST |
ccc6cda3 JA |
26415 | extern char *sys_siglist[]; |
26416 | #endif | |
26417 | main() | |
26418 | { | |
26419 | char *msg = sys_siglist[2]; | |
26420 | exit(msg == 0); | |
26421 | } | |
f73dda09 JA |
26422 | _ACEOF |
26423 | rm -f conftest$ac_exeext | |
3185942a JA |
26424 | if { (ac_try="$ac_link" |
26425 | case "(($ac_try" in | |
26426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26427 | *) ac_try_echo=$ac_try;; | |
26428 | esac | |
26429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26430 | $as_echo "$ac_try_echo") >&5 | |
26431 | (eval "$ac_link") 2>&5 | |
f73dda09 | 26432 | ac_status=$? |
3185942a | 26433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
26435 | { (case "(($ac_try" in |
26436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26437 | *) ac_try_echo=$ac_try;; | |
26438 | esac | |
26439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26440 | $as_echo "$ac_try_echo") >&5 | |
26441 | (eval "$ac_try") 2>&5 | |
f73dda09 | 26442 | ac_status=$? |
3185942a | 26443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26444 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26445 | bash_cv_sys_siglist=yes |
26446 | else | |
3185942a JA |
26447 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26448 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
26449 | sed 's/^/| /' conftest.$ac_ext >&5 |
26450 | ||
b80f6443 | 26451 | ( exit $ac_status ) |
f73dda09 | 26452 | bash_cv_sys_siglist=no |
ccc6cda3 | 26453 | fi |
3185942a JA |
26454 | rm -rf conftest.dSYM |
26455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 26456 | fi |
3185942a JA |
26457 | |
26458 | ||
ccc6cda3 | 26459 | fi |
cce855bc | 26460 | |
3185942a JA |
26461 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5 |
26462 | $as_echo "$bash_cv_sys_siglist" >&6; } | |
ccc6cda3 | 26463 | if test $bash_cv_sys_siglist = yes; then |
b80f6443 | 26464 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26465 | #define HAVE_SYS_SIGLIST 1 |
b80f6443 | 26466 | _ACEOF |
ccc6cda3 JA |
26467 | |
26468 | fi | |
26469 | ||
3185942a JA |
26470 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5 |
26471 | $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } | |
f73dda09 | 26472 | if test "${bash_cv_decl_under_sys_siglist+set}" = set; then |
3185942a | 26473 | $as_echo_n "(cached) " >&6 |
e8ce775d | 26474 | else |
f73dda09 | 26475 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26476 | /* confdefs.h. */ |
26477 | _ACEOF | |
26478 | cat confdefs.h >>conftest.$ac_ext | |
26479 | cat >>conftest.$ac_ext <<_ACEOF | |
26480 | /* end confdefs.h. */ | |
e8ce775d JA |
26481 | |
26482 | #include <sys/types.h> | |
26483 | #include <signal.h> | |
26484 | #ifdef HAVE_UNISTD_H | |
26485 | #include <unistd.h> | |
26486 | #endif | |
f73dda09 JA |
26487 | int |
26488 | main () | |
26489 | { | |
26490 | char *msg = _sys_siglist[2]; | |
26491 | ; | |
26492 | return 0; | |
26493 | } | |
26494 | _ACEOF | |
26495 | rm -f conftest.$ac_objext | |
3185942a JA |
26496 | if { (ac_try="$ac_compile" |
26497 | case "(($ac_try" in | |
26498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26499 | *) ac_try_echo=$ac_try;; | |
26500 | esac | |
26501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26502 | $as_echo "$ac_try_echo") >&5 | |
26503 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26504 | ac_status=$? |
0628567a JA |
26505 | grep -v '^ *+' conftest.er1 >conftest.err |
26506 | rm -f conftest.er1 | |
26507 | cat conftest.err >&5 | |
3185942a JA |
26508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26509 | (exit $ac_status); } && { | |
26510 | test -z "$ac_c_werror_flag" || | |
26511 | test ! -s conftest.err | |
26512 | } && test -s conftest.$ac_objext; then | |
e8ce775d JA |
26513 | bash_cv_decl_under_sys_siglist=yes |
26514 | else | |
3185942a | 26515 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26516 | sed 's/^/| /' conftest.$ac_ext >&5 |
26517 | ||
3185942a | 26518 | bash_cv_decl_under_sys_siglist=no |
e8ce775d | 26519 | fi |
3185942a JA |
26520 | |
26521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8ce775d | 26522 | fi |
3185942a JA |
26523 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5 |
26524 | $as_echo "$bash_cv_decl_under_sys_siglist" >&6; } | |
e8ce775d | 26525 | if test $bash_cv_decl_under_sys_siglist = yes; then |
b80f6443 | 26526 | cat >>confdefs.h <<\_ACEOF |
e8ce775d | 26527 | #define UNDER_SYS_SIGLIST_DECLARED 1 |
b80f6443 | 26528 | _ACEOF |
e8ce775d JA |
26529 | |
26530 | fi | |
26531 | ||
b80f6443 | 26532 | |
3185942a JA |
26533 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5 |
26534 | $as_echo_n "checking for _sys_siglist in system C library... " >&6; } | |
f73dda09 | 26535 | if test "${bash_cv_under_sys_siglist+set}" = set; then |
3185942a | 26536 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
26537 | else |
26538 | if test "$cross_compiling" = yes; then | |
3185942a JA |
26539 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 |
26540 | $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} | |
cce855bc | 26541 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 26542 | else |
f73dda09 | 26543 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26544 | /* confdefs.h. */ |
26545 | _ACEOF | |
26546 | cat confdefs.h >>conftest.$ac_ext | |
26547 | cat >>conftest.$ac_ext <<_ACEOF | |
26548 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26549 | |
26550 | #include <sys/types.h> | |
26551 | #include <signal.h> | |
26552 | #ifdef HAVE_UNISTD_H | |
26553 | #include <unistd.h> | |
26554 | #endif | |
e8ce775d | 26555 | #ifndef UNDER_SYS_SIGLIST_DECLARED |
ccc6cda3 JA |
26556 | extern char *_sys_siglist[]; |
26557 | #endif | |
26558 | main() | |
26559 | { | |
e8ce775d | 26560 | char *msg = (char *)_sys_siglist[2]; |
ccc6cda3 JA |
26561 | exit(msg == 0); |
26562 | } | |
f73dda09 JA |
26563 | _ACEOF |
26564 | rm -f conftest$ac_exeext | |
3185942a JA |
26565 | if { (ac_try="$ac_link" |
26566 | case "(($ac_try" in | |
26567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26568 | *) ac_try_echo=$ac_try;; | |
26569 | esac | |
26570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26571 | $as_echo "$ac_try_echo") >&5 | |
26572 | (eval "$ac_link") 2>&5 | |
f73dda09 | 26573 | ac_status=$? |
3185942a | 26574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
26576 | { (case "(($ac_try" in |
26577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26578 | *) ac_try_echo=$ac_try;; | |
26579 | esac | |
26580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26581 | $as_echo "$ac_try_echo") >&5 | |
26582 | (eval "$ac_try") 2>&5 | |
f73dda09 | 26583 | ac_status=$? |
3185942a | 26584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 26585 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
26586 | bash_cv_under_sys_siglist=yes |
26587 | else | |
3185942a JA |
26588 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26589 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
26590 | sed 's/^/| /' conftest.$ac_ext >&5 |
26591 | ||
b80f6443 | 26592 | ( exit $ac_status ) |
f73dda09 | 26593 | bash_cv_under_sys_siglist=no |
ccc6cda3 | 26594 | fi |
3185942a JA |
26595 | rm -rf conftest.dSYM |
26596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 26597 | fi |
3185942a JA |
26598 | |
26599 | ||
ccc6cda3 | 26600 | fi |
cce855bc | 26601 | |
3185942a JA |
26602 | { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5 |
26603 | $as_echo "$bash_cv_under_sys_siglist" >&6; } | |
ccc6cda3 | 26604 | if test $bash_cv_under_sys_siglist = yes; then |
b80f6443 | 26605 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26606 | #define HAVE_UNDER_SYS_SIGLIST 1 |
b80f6443 | 26607 | _ACEOF |
ccc6cda3 JA |
26608 | |
26609 | fi | |
26610 | ||
b80f6443 | 26611 | |
3185942a JA |
26612 | { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 |
26613 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
f73dda09 | 26614 | if test "${bash_cv_void_sighandler+set}" = set; then |
3185942a | 26615 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26616 | else |
f73dda09 | 26617 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26618 | /* confdefs.h. */ |
26619 | _ACEOF | |
26620 | cat confdefs.h >>conftest.$ac_ext | |
26621 | cat >>conftest.$ac_ext <<_ACEOF | |
26622 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26623 | #include <sys/types.h> |
26624 | #include <signal.h> | |
26625 | #ifdef signal | |
26626 | #undef signal | |
26627 | #endif | |
26628 | #ifdef __cplusplus | |
26629 | extern "C" | |
26630 | #endif | |
26631 | void (*signal ()) (); | |
f73dda09 JA |
26632 | int |
26633 | main () | |
26634 | { | |
ccc6cda3 | 26635 | int i; |
f73dda09 JA |
26636 | ; |
26637 | return 0; | |
26638 | } | |
26639 | _ACEOF | |
26640 | rm -f conftest.$ac_objext | |
3185942a JA |
26641 | if { (ac_try="$ac_compile" |
26642 | case "(($ac_try" in | |
26643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26644 | *) ac_try_echo=$ac_try;; | |
26645 | esac | |
26646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26647 | $as_echo "$ac_try_echo") >&5 | |
26648 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 26649 | ac_status=$? |
0628567a JA |
26650 | grep -v '^ *+' conftest.er1 >conftest.err |
26651 | rm -f conftest.er1 | |
26652 | cat conftest.err >&5 | |
3185942a JA |
26653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26654 | (exit $ac_status); } && { | |
26655 | test -z "$ac_c_werror_flag" || | |
26656 | test ! -s conftest.err | |
26657 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
26658 | bash_cv_void_sighandler=yes |
26659 | else | |
3185942a | 26660 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
26661 | sed 's/^/| /' conftest.$ac_ext >&5 |
26662 | ||
3185942a | 26663 | bash_cv_void_sighandler=no |
ccc6cda3 | 26664 | fi |
3185942a JA |
26665 | |
26666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 26667 | fi |
3185942a JA |
26668 | { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
26669 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
ccc6cda3 | 26670 | if test $bash_cv_void_sighandler = yes; then |
b80f6443 | 26671 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26672 | #define VOID_SIGHANDLER 1 |
b80f6443 | 26673 | _ACEOF |
ccc6cda3 JA |
26674 | |
26675 | fi | |
26676 | ||
b80f6443 JA |
26677 | |
26678 | ||
3185942a JA |
26679 | { $as_echo "$as_me:$LINENO: checking for clock_t" >&5 |
26680 | $as_echo_n "checking for clock_t... " >&6; } | |
f73dda09 | 26681 | if test "${bash_cv_type_clock_t+set}" = set; then |
3185942a | 26682 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26683 | else |
f73dda09 | 26684 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26685 | /* confdefs.h. */ |
26686 | _ACEOF | |
26687 | cat confdefs.h >>conftest.$ac_ext | |
26688 | cat >>conftest.$ac_ext <<_ACEOF | |
26689 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26690 | #include <sys/types.h> |
26691 | #if STDC_HEADERS | |
26692 | #include <stdlib.h> | |
f73dda09 JA |
26693 | #include <stddef.h> |
26694 | #endif | |
26695 | #if HAVE_INTTYPES_H | |
26696 | #include <inttypes.h> | |
ccc6cda3 | 26697 | #endif |
0001803f CR |
26698 | #if HAVE_STDINT_H |
26699 | #include <stdint.h> | |
26700 | #endif | |
ccc6cda3 JA |
26701 | #include <sys/times.h> |
26702 | ||
f73dda09 | 26703 | _ACEOF |
ccc6cda3 | 26704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 26705 | $EGREP "clock_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
26706 | bash_cv_type_clock_t=yes |
26707 | else | |
ccc6cda3 JA |
26708 | bash_cv_type_clock_t=no |
26709 | fi | |
26710 | rm -f conftest* | |
26711 | ||
26712 | fi | |
26713 | ||
3185942a JA |
26714 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5 |
26715 | $as_echo "$bash_cv_type_clock_t" >&6; } | |
ccc6cda3 JA |
26716 | |
26717 | if test $bash_cv_type_clock_t = no; then | |
b80f6443 | 26718 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 26719 | #define clock_t long |
b80f6443 | 26720 | _ACEOF |
ccc6cda3 JA |
26721 | |
26722 | fi | |
26723 | ||
b80f6443 JA |
26724 | |
26725 | ||
3185942a JA |
26726 | { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5 |
26727 | $as_echo_n "checking for sigset_t... " >&6; } | |
f73dda09 | 26728 | if test "${bash_cv_type_sigset_t+set}" = set; then |
3185942a | 26729 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26730 | else |
f73dda09 | 26731 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26732 | /* confdefs.h. */ |
26733 | _ACEOF | |
26734 | cat confdefs.h >>conftest.$ac_ext | |
26735 | cat >>conftest.$ac_ext <<_ACEOF | |
26736 | /* end confdefs.h. */ | |
ccc6cda3 JA |
26737 | #include <sys/types.h> |
26738 | #if STDC_HEADERS | |
26739 | #include <stdlib.h> | |
f73dda09 JA |
26740 | #include <stddef.h> |
26741 | #endif | |
26742 | #if HAVE_INTTYPES_H | |
26743 | #include <inttypes.h> | |
ccc6cda3 | 26744 | #endif |
0001803f CR |
26745 | #if HAVE_STDINT_H |
26746 | #include <stdint.h> | |
26747 | #endif | |
ccc6cda3 JA |
26748 | #include <signal.h> |
26749 | ||
f73dda09 | 26750 | _ACEOF |
ccc6cda3 | 26751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 26752 | $EGREP "sigset_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
26753 | bash_cv_type_sigset_t=yes |
26754 | else | |
ccc6cda3 JA |
26755 | bash_cv_type_sigset_t=no |
26756 | fi | |
26757 | rm -f conftest* | |
26758 | ||
26759 | fi | |
26760 | ||
3185942a JA |
26761 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5 |
26762 | $as_echo "$bash_cv_type_sigset_t" >&6; } | |
ccc6cda3 JA |
26763 | |
26764 | if test $bash_cv_type_sigset_t = no; then | |
b80f6443 | 26765 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 26766 | #define sigset_t int |
b80f6443 | 26767 | _ACEOF |
ccc6cda3 JA |
26768 | |
26769 | fi | |
26770 | ||
b80f6443 JA |
26771 | |
26772 | ||
3185942a JA |
26773 | { $as_echo "$as_me:$LINENO: checking for quad_t" >&5 |
26774 | $as_echo_n "checking for quad_t... " >&6; } | |
f73dda09 | 26775 | if test "${bash_cv_type_quad_t+set}" = set; then |
3185942a | 26776 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26777 | else |
f73dda09 | 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. */ | |
ccc6cda3 JA |
26784 | #include <sys/types.h> |
26785 | #if STDC_HEADERS | |
26786 | #include <stdlib.h> | |
f73dda09 JA |
26787 | #include <stddef.h> |
26788 | #endif | |
26789 | #if HAVE_INTTYPES_H | |
26790 | #include <inttypes.h> | |
ccc6cda3 | 26791 | #endif |
0001803f CR |
26792 | #if HAVE_STDINT_H |
26793 | #include <stdint.h> | |
26794 | #endif | |
ccc6cda3 | 26795 | |
b80f6443 | 26796 | |
f73dda09 | 26797 | _ACEOF |
ccc6cda3 | 26798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 26799 | $EGREP "quad_t" >/dev/null 2>&1; then |
ccc6cda3 JA |
26800 | bash_cv_type_quad_t=yes |
26801 | else | |
ccc6cda3 JA |
26802 | bash_cv_type_quad_t=no |
26803 | fi | |
26804 | rm -f conftest* | |
26805 | ||
26806 | fi | |
26807 | ||
3185942a JA |
26808 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5 |
26809 | $as_echo "$bash_cv_type_quad_t" >&6; } | |
ccc6cda3 | 26810 | if test $bash_cv_type_quad_t = yes; then |
b80f6443 | 26811 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 26812 | #define HAVE_QUAD_T 1 |
b80f6443 | 26813 | _ACEOF |
ccc6cda3 JA |
26814 | |
26815 | fi | |
26816 | if test $bash_cv_type_quad_t = no; then | |
b80f6443 | 26817 | cat >>confdefs.h <<_ACEOF |
ccc6cda3 | 26818 | #define quad_t long |
b80f6443 | 26819 | _ACEOF |
ccc6cda3 JA |
26820 | |
26821 | fi | |
26822 | ||
b80f6443 JA |
26823 | |
26824 | ||
3185942a JA |
26825 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
26826 | $as_echo_n "checking for intmax_t... " >&6; } | |
f73dda09 | 26827 | if test "${bash_cv_type_intmax_t+set}" = set; then |
3185942a | 26828 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
26829 | else |
26830 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26831 | /* confdefs.h. */ |
26832 | _ACEOF | |
26833 | cat confdefs.h >>conftest.$ac_ext | |
26834 | cat >>conftest.$ac_ext <<_ACEOF | |
26835 | /* end confdefs.h. */ | |
f73dda09 JA |
26836 | #include <sys/types.h> |
26837 | #if STDC_HEADERS | |
26838 | #include <stdlib.h> | |
26839 | #include <stddef.h> | |
26840 | #endif | |
26841 | #if HAVE_INTTYPES_H | |
26842 | #include <inttypes.h> | |
26843 | #endif | |
0001803f CR |
26844 | #if HAVE_STDINT_H |
26845 | #include <stdint.h> | |
26846 | #endif | |
f73dda09 | 26847 | |
b80f6443 | 26848 | |
f73dda09 JA |
26849 | _ACEOF |
26850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 26851 | $EGREP "intmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
26852 | bash_cv_type_intmax_t=yes |
26853 | else | |
26854 | bash_cv_type_intmax_t=no | |
26855 | fi | |
26856 | rm -f conftest* | |
26857 | ||
26858 | fi | |
26859 | ||
3185942a JA |
26860 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5 |
26861 | $as_echo "$bash_cv_type_intmax_t" >&6; } | |
f73dda09 JA |
26862 | |
26863 | if test $bash_cv_type_intmax_t = no; then | |
b80f6443 | 26864 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 26865 | #define intmax_t $bash_cv_type_long_long |
b80f6443 | 26866 | _ACEOF |
f73dda09 JA |
26867 | |
26868 | fi | |
26869 | ||
b80f6443 JA |
26870 | |
26871 | ||
3185942a JA |
26872 | { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
26873 | $as_echo_n "checking for uintmax_t... " >&6; } | |
f73dda09 | 26874 | if test "${bash_cv_type_uintmax_t+set}" = set; then |
3185942a | 26875 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
26876 | else |
26877 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26878 | /* confdefs.h. */ |
26879 | _ACEOF | |
26880 | cat confdefs.h >>conftest.$ac_ext | |
26881 | cat >>conftest.$ac_ext <<_ACEOF | |
26882 | /* end confdefs.h. */ | |
f73dda09 JA |
26883 | #include <sys/types.h> |
26884 | #if STDC_HEADERS | |
26885 | #include <stdlib.h> | |
26886 | #include <stddef.h> | |
26887 | #endif | |
26888 | #if HAVE_INTTYPES_H | |
26889 | #include <inttypes.h> | |
26890 | #endif | |
0001803f CR |
26891 | #if HAVE_STDINT_H |
26892 | #include <stdint.h> | |
26893 | #endif | |
f73dda09 | 26894 | |
b80f6443 | 26895 | |
f73dda09 JA |
26896 | _ACEOF |
26897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 26898 | $EGREP "uintmax_t" >/dev/null 2>&1; then |
f73dda09 JA |
26899 | bash_cv_type_uintmax_t=yes |
26900 | else | |
26901 | bash_cv_type_uintmax_t=no | |
26902 | fi | |
26903 | rm -f conftest* | |
26904 | ||
26905 | fi | |
26906 | ||
3185942a JA |
26907 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5 |
26908 | $as_echo "$bash_cv_type_uintmax_t" >&6; } | |
f73dda09 JA |
26909 | |
26910 | if test $bash_cv_type_uintmax_t = no; then | |
b80f6443 | 26911 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 26912 | #define uintmax_t $bash_cv_type_unsigned_long_long |
b80f6443 | 26913 | _ACEOF |
f73dda09 JA |
26914 | |
26915 | fi | |
26916 | ||
26917 | if test "$ac_cv_header_sys_socket_h" = "yes"; then | |
26918 | ||
b80f6443 | 26919 | |
3185942a JA |
26920 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
26921 | $as_echo_n "checking for socklen_t... " >&6; } | |
f73dda09 | 26922 | if test "${bash_cv_type_socklen_t+set}" = set; then |
3185942a | 26923 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
26924 | else |
26925 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
26926 | /* confdefs.h. */ |
26927 | _ACEOF | |
26928 | cat confdefs.h >>conftest.$ac_ext | |
26929 | cat >>conftest.$ac_ext <<_ACEOF | |
26930 | /* end confdefs.h. */ | |
f73dda09 JA |
26931 | #include <sys/types.h> |
26932 | #if STDC_HEADERS | |
26933 | #include <stdlib.h> | |
26934 | #include <stddef.h> | |
26935 | #endif | |
26936 | #if HAVE_INTTYPES_H | |
26937 | #include <inttypes.h> | |
26938 | #endif | |
0001803f CR |
26939 | #if HAVE_STDINT_H |
26940 | #include <stdint.h> | |
26941 | #endif | |
f73dda09 JA |
26942 | #include <sys/socket.h> |
26943 | ||
26944 | _ACEOF | |
26945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 26946 | $EGREP "socklen_t" >/dev/null 2>&1; then |
f73dda09 JA |
26947 | bash_cv_type_socklen_t=yes |
26948 | else | |
26949 | bash_cv_type_socklen_t=no | |
26950 | fi | |
26951 | rm -f conftest* | |
26952 | ||
26953 | fi | |
26954 | ||
3185942a JA |
26955 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5 |
26956 | $as_echo "$bash_cv_type_socklen_t" >&6; } | |
f73dda09 | 26957 | if test $bash_cv_type_socklen_t = yes; then |
b80f6443 | 26958 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 26959 | #define HAVE_SOCKLEN_T 1 |
b80f6443 | 26960 | _ACEOF |
f73dda09 JA |
26961 | |
26962 | fi | |
26963 | if test $bash_cv_type_socklen_t = no; then | |
b80f6443 | 26964 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 26965 | #define socklen_t int |
b80f6443 | 26966 | _ACEOF |
f73dda09 JA |
26967 | |
26968 | fi | |
26969 | ||
26970 | fi | |
3185942a JA |
26971 | { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5 |
26972 | $as_echo_n "checking for size and type of struct rlimit fields... " >&6; } | |
f73dda09 | 26973 | if test "${bash_cv_type_rlimit+set}" = set; then |
3185942a | 26974 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 26975 | else |
f73dda09 | 26976 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
26977 | /* confdefs.h. */ |
26978 | _ACEOF | |
26979 | cat confdefs.h >>conftest.$ac_ext | |
26980 | cat >>conftest.$ac_ext <<_ACEOF | |
26981 | /* end confdefs.h. */ | |
ccc6cda3 | 26982 | #include <sys/types.h> |
cce855bc | 26983 | #include <sys/resource.h> |
f73dda09 JA |
26984 | int |
26985 | main () | |
26986 | { | |
ccc6cda3 | 26987 | rlim_t xxx; |
f73dda09 JA |
26988 | ; |
26989 | return 0; | |
26990 | } | |
26991 | _ACEOF | |
26992 | rm -f conftest.$ac_objext | |
3185942a JA |
26993 | if { (ac_try="$ac_compile" |
26994 | case "(($ac_try" in | |
26995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26996 | *) ac_try_echo=$ac_try;; | |
26997 | esac | |
26998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26999 | $as_echo "$ac_try_echo") >&5 | |
27000 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 27001 | ac_status=$? |
0628567a JA |
27002 | grep -v '^ *+' conftest.er1 >conftest.err |
27003 | rm -f conftest.er1 | |
27004 | cat conftest.err >&5 | |
3185942a JA |
27005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27006 | (exit $ac_status); } && { | |
27007 | test -z "$ac_c_werror_flag" || | |
27008 | test ! -s conftest.err | |
27009 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
27010 | bash_cv_type_rlimit=rlim_t |
27011 | else | |
3185942a | 27012 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27013 | sed 's/^/| /' conftest.$ac_ext >&5 |
27014 | ||
f73dda09 | 27015 | |
ccc6cda3 | 27016 | if test "$cross_compiling" = yes; then |
3185942a JA |
27017 | { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 |
27018 | $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} | |
cce855bc | 27019 | bash_cv_type_rlimit=long |
ccc6cda3 | 27020 | else |
f73dda09 | 27021 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27022 | /* confdefs.h. */ |
27023 | _ACEOF | |
27024 | cat confdefs.h >>conftest.$ac_ext | |
27025 | cat >>conftest.$ac_ext <<_ACEOF | |
27026 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27027 | |
27028 | #include <sys/types.h> | |
27029 | #include <sys/time.h> | |
27030 | #include <sys/resource.h> | |
27031 | main() | |
27032 | { | |
27033 | #ifdef HAVE_QUAD_T | |
27034 | struct rlimit rl; | |
27035 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) | |
27036 | exit(0); | |
27037 | #endif | |
27038 | exit(1); | |
27039 | } | |
f73dda09 JA |
27040 | _ACEOF |
27041 | rm -f conftest$ac_exeext | |
3185942a JA |
27042 | if { (ac_try="$ac_link" |
27043 | case "(($ac_try" in | |
27044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27045 | *) ac_try_echo=$ac_try;; | |
27046 | esac | |
27047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27048 | $as_echo "$ac_try_echo") >&5 | |
27049 | (eval "$ac_link") 2>&5 | |
f73dda09 | 27050 | ac_status=$? |
3185942a | 27051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
27053 | { (case "(($ac_try" in |
27054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27055 | *) ac_try_echo=$ac_try;; | |
27056 | esac | |
27057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27058 | $as_echo "$ac_try_echo") >&5 | |
27059 | (eval "$ac_try") 2>&5 | |
f73dda09 | 27060 | ac_status=$? |
3185942a | 27061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 27062 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
27063 | bash_cv_type_rlimit=quad_t |
27064 | else | |
3185942a JA |
27065 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27066 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
27067 | sed 's/^/| /' conftest.$ac_ext >&5 |
27068 | ||
b80f6443 | 27069 | ( exit $ac_status ) |
f73dda09 | 27070 | bash_cv_type_rlimit=long |
ccc6cda3 | 27071 | fi |
3185942a JA |
27072 | rm -rf conftest.dSYM |
27073 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 27074 | fi |
3185942a JA |
27075 | |
27076 | ||
ccc6cda3 | 27077 | fi |
3185942a JA |
27078 | |
27079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
27080 | |
27081 | fi | |
27082 | ||
3185942a JA |
27083 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5 |
27084 | $as_echo "$bash_cv_type_rlimit" >&6; } | |
ccc6cda3 | 27085 | if test $bash_cv_type_rlimit = quad_t; then |
b80f6443 | 27086 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27087 | #define RLIMTYPE quad_t |
b80f6443 | 27088 | _ACEOF |
ccc6cda3 JA |
27089 | |
27090 | elif test $bash_cv_type_rlimit = rlim_t; then | |
b80f6443 | 27091 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 27092 | #define RLIMTYPE rlim_t |
b80f6443 | 27093 | _ACEOF |
ccc6cda3 JA |
27094 | |
27095 | fi | |
27096 | ||
b80f6443 | 27097 | |
495aee44 CR |
27098 | # The cast to long int works around a bug in the HP C Compiler |
27099 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
27100 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
27101 | # This bug is HP SR number 8606223364. | |
27102 | { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5 | |
27103 | $as_echo_n "checking size of intmax_t... " >&6; } | |
27104 | if test "${ac_cv_sizeof_intmax_t+set}" = set; then | |
3185942a | 27105 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 27106 | else |
495aee44 CR |
27107 | if test "$cross_compiling" = yes; then |
27108 | # Depending upon the size, compute the lo and hi bounds. | |
27109 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27110 | /* confdefs.h. */ |
27111 | _ACEOF | |
27112 | cat confdefs.h >>conftest.$ac_ext | |
27113 | cat >>conftest.$ac_ext <<_ACEOF | |
27114 | /* end confdefs.h. */ | |
495aee44 | 27115 | $ac_includes_default |
f73dda09 JA |
27116 | int |
27117 | main () | |
27118 | { | |
495aee44 CR |
27119 | static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)]; |
27120 | test_array [0] = 0 | |
27121 | ||
f73dda09 JA |
27122 | ; |
27123 | return 0; | |
27124 | } | |
27125 | _ACEOF | |
27126 | rm -f conftest.$ac_objext | |
3185942a JA |
27127 | if { (ac_try="$ac_compile" |
27128 | case "(($ac_try" in | |
27129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27130 | *) ac_try_echo=$ac_try;; | |
27131 | esac | |
27132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27133 | $as_echo "$ac_try_echo") >&5 | |
27134 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
27135 | ac_status=$? |
27136 | grep -v '^ *+' conftest.er1 >conftest.err | |
27137 | rm -f conftest.er1 | |
27138 | cat conftest.err >&5 | |
3185942a JA |
27139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27140 | (exit $ac_status); } && { | |
27141 | test -z "$ac_c_werror_flag" || | |
27142 | test ! -s conftest.err | |
27143 | } && test -s conftest.$ac_objext; then | |
495aee44 CR |
27144 | ac_lo=0 ac_mid=0 |
27145 | while :; do | |
27146 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27147 | /* confdefs.h. */ |
27148 | _ACEOF | |
27149 | cat confdefs.h >>conftest.$ac_ext | |
27150 | cat >>conftest.$ac_ext <<_ACEOF | |
27151 | /* end confdefs.h. */ | |
495aee44 | 27152 | $ac_includes_default |
0628567a JA |
27153 | int |
27154 | main () | |
27155 | { | |
495aee44 CR |
27156 | static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)]; |
27157 | test_array [0] = 0 | |
27158 | ||
0628567a JA |
27159 | ; |
27160 | return 0; | |
27161 | } | |
27162 | _ACEOF | |
27163 | rm -f conftest.$ac_objext | |
3185942a JA |
27164 | if { (ac_try="$ac_compile" |
27165 | case "(($ac_try" in | |
27166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27167 | *) ac_try_echo=$ac_try;; | |
27168 | esac | |
27169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27170 | $as_echo "$ac_try_echo") >&5 | |
27171 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 27172 | ac_status=$? |
0628567a JA |
27173 | grep -v '^ *+' conftest.er1 >conftest.err |
27174 | rm -f conftest.er1 | |
27175 | cat conftest.err >&5 | |
3185942a JA |
27176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27177 | (exit $ac_status); } && { | |
27178 | test -z "$ac_c_werror_flag" || | |
27179 | test ! -s conftest.err | |
27180 | } && test -s conftest.$ac_objext; then | |
495aee44 | 27181 | ac_hi=$ac_mid; break |
b80f6443 | 27182 | else |
3185942a | 27183 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27184 | sed 's/^/| /' conftest.$ac_ext >&5 |
27185 | ||
495aee44 CR |
27186 | ac_lo=`expr $ac_mid + 1` |
27187 | if test $ac_lo -le $ac_mid; then | |
27188 | ac_lo= ac_hi= | |
27189 | break | |
27190 | fi | |
27191 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
0628567a | 27192 | fi |
3185942a JA |
27193 | |
27194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
495aee44 | 27195 | done |
ccc6cda3 | 27196 | else |
495aee44 CR |
27197 | $as_echo "$as_me: failed program was:" >&5 |
27198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27199 | ||
27200 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27201 | /* confdefs.h. */ |
27202 | _ACEOF | |
27203 | cat confdefs.h >>conftest.$ac_ext | |
27204 | cat >>conftest.$ac_ext <<_ACEOF | |
27205 | /* end confdefs.h. */ | |
495aee44 | 27206 | $ac_includes_default |
f73dda09 JA |
27207 | int |
27208 | main () | |
27209 | { | |
495aee44 CR |
27210 | static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)]; |
27211 | test_array [0] = 0 | |
27212 | ||
f73dda09 JA |
27213 | ; |
27214 | return 0; | |
27215 | } | |
27216 | _ACEOF | |
27217 | rm -f conftest.$ac_objext | |
3185942a JA |
27218 | if { (ac_try="$ac_compile" |
27219 | case "(($ac_try" in | |
27220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27221 | *) ac_try_echo=$ac_try;; | |
27222 | esac | |
27223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27224 | $as_echo "$ac_try_echo") >&5 | |
27225 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
27226 | ac_status=$? |
27227 | grep -v '^ *+' conftest.er1 >conftest.err | |
27228 | rm -f conftest.er1 | |
27229 | cat conftest.err >&5 | |
3185942a JA |
27230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27231 | (exit $ac_status); } && { | |
27232 | test -z "$ac_c_werror_flag" || | |
27233 | test ! -s conftest.err | |
27234 | } && test -s conftest.$ac_objext; then | |
495aee44 CR |
27235 | ac_hi=-1 ac_mid=-1 |
27236 | while :; do | |
27237 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27238 | /* confdefs.h. */ |
27239 | _ACEOF | |
27240 | cat confdefs.h >>conftest.$ac_ext | |
27241 | cat >>conftest.$ac_ext <<_ACEOF | |
27242 | /* end confdefs.h. */ | |
495aee44 | 27243 | $ac_includes_default |
0628567a JA |
27244 | int |
27245 | main () | |
27246 | { | |
495aee44 CR |
27247 | static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)]; |
27248 | test_array [0] = 0 | |
27249 | ||
0628567a JA |
27250 | ; |
27251 | return 0; | |
27252 | } | |
27253 | _ACEOF | |
27254 | rm -f conftest.$ac_objext | |
3185942a JA |
27255 | if { (ac_try="$ac_compile" |
27256 | case "(($ac_try" in | |
27257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27258 | *) ac_try_echo=$ac_try;; | |
27259 | esac | |
27260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27261 | $as_echo "$ac_try_echo") >&5 | |
27262 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 27263 | ac_status=$? |
0628567a JA |
27264 | grep -v '^ *+' conftest.er1 >conftest.err |
27265 | rm -f conftest.er1 | |
27266 | cat conftest.err >&5 | |
3185942a JA |
27267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27268 | (exit $ac_status); } && { | |
27269 | test -z "$ac_c_werror_flag" || | |
27270 | test ! -s conftest.err | |
27271 | } && test -s conftest.$ac_objext; then | |
495aee44 | 27272 | ac_lo=$ac_mid; break |
b80f6443 | 27273 | else |
3185942a | 27274 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27275 | sed 's/^/| /' conftest.$ac_ext >&5 |
27276 | ||
495aee44 CR |
27277 | ac_hi=`expr '(' $ac_mid ')' - 1` |
27278 | if test $ac_mid -le $ac_hi; then | |
27279 | ac_lo= ac_hi= | |
27280 | break | |
27281 | fi | |
27282 | ac_mid=`expr 2 '*' $ac_mid` | |
f73dda09 | 27283 | fi |
3185942a JA |
27284 | |
27285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
495aee44 CR |
27286 | done |
27287 | else | |
27288 | $as_echo "$as_me: failed program was:" >&5 | |
27289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3185942a | 27290 | |
495aee44 | 27291 | ac_lo= ac_hi= |
f73dda09 | 27292 | fi |
ccc6cda3 | 27293 | |
495aee44 | 27294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ccc6cda3 JA |
27295 | fi |
27296 | ||
495aee44 CR |
27297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
27298 | # Binary search between lo and hi bounds. | |
27299 | while test "x$ac_lo" != "x$ac_hi"; do | |
27300 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
27301 | cat >conftest.$ac_ext <<_ACEOF | |
27302 | /* confdefs.h. */ | |
27303 | _ACEOF | |
27304 | cat confdefs.h >>conftest.$ac_ext | |
27305 | cat >>conftest.$ac_ext <<_ACEOF | |
27306 | /* end confdefs.h. */ | |
27307 | $ac_includes_default | |
27308 | int | |
27309 | main () | |
27310 | { | |
27311 | static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)]; | |
27312 | test_array [0] = 0 | |
27313 | ||
27314 | ; | |
27315 | return 0; | |
27316 | } | |
27317 | _ACEOF | |
27318 | rm -f conftest.$ac_objext | |
27319 | if { (ac_try="$ac_compile" | |
27320 | case "(($ac_try" in | |
27321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27322 | *) ac_try_echo=$ac_try;; | |
27323 | esac | |
27324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27325 | $as_echo "$ac_try_echo") >&5 | |
27326 | (eval "$ac_compile") 2>conftest.er1 | |
27327 | ac_status=$? | |
27328 | grep -v '^ *+' conftest.er1 >conftest.err | |
27329 | rm -f conftest.er1 | |
27330 | cat conftest.err >&5 | |
27331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27332 | (exit $ac_status); } && { | |
27333 | test -z "$ac_c_werror_flag" || | |
27334 | test ! -s conftest.err | |
27335 | } && test -s conftest.$ac_objext; then | |
27336 | ac_hi=$ac_mid | |
27337 | else | |
27338 | $as_echo "$as_me: failed program was:" >&5 | |
27339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27340 | ||
27341 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
27342 | fi | |
27343 | ||
27344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27345 | done | |
27346 | case $ac_lo in | |
27347 | ?*) ac_cv_sizeof_intmax_t=$ac_lo;; | |
27348 | '') if test "$ac_cv_type_intmax_t" = yes; then | |
27349 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
27350 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
27351 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t) | |
27352 | See \`config.log' for more details." >&5 | |
27353 | $as_echo "$as_me: error: cannot compute sizeof (intmax_t) | |
27354 | See \`config.log' for more details." >&2;} | |
27355 | { (exit 77); exit 77; }; }; } | |
27356 | else | |
27357 | ac_cv_sizeof_intmax_t=0 | |
27358 | fi ;; | |
27359 | esac | |
27360 | else | |
27361 | cat >conftest.$ac_ext <<_ACEOF | |
27362 | /* confdefs.h. */ | |
27363 | _ACEOF | |
27364 | cat confdefs.h >>conftest.$ac_ext | |
27365 | cat >>conftest.$ac_ext <<_ACEOF | |
27366 | /* end confdefs.h. */ | |
27367 | $ac_includes_default | |
27368 | static long int longval () { return (long int) (sizeof (intmax_t)); } | |
27369 | static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); } | |
27370 | #include <stdio.h> | |
27371 | #include <stdlib.h> | |
27372 | int | |
27373 | main () | |
27374 | { | |
27375 | ||
27376 | FILE *f = fopen ("conftest.val", "w"); | |
27377 | if (! f) | |
27378 | return 1; | |
27379 | if (((long int) (sizeof (intmax_t))) < 0) | |
27380 | { | |
27381 | long int i = longval (); | |
27382 | if (i != ((long int) (sizeof (intmax_t)))) | |
27383 | return 1; | |
27384 | fprintf (f, "%ld", i); | |
27385 | } | |
27386 | else | |
27387 | { | |
27388 | unsigned long int i = ulongval (); | |
27389 | if (i != ((long int) (sizeof (intmax_t)))) | |
27390 | return 1; | |
27391 | fprintf (f, "%lu", i); | |
27392 | } | |
27393 | /* Do not output a trailing newline, as this causes \r\n confusion | |
27394 | on some platforms. */ | |
27395 | return ferror (f) || fclose (f) != 0; | |
27396 | ||
27397 | ; | |
27398 | return 0; | |
27399 | } | |
27400 | _ACEOF | |
27401 | rm -f conftest$ac_exeext | |
27402 | if { (ac_try="$ac_link" | |
27403 | case "(($ac_try" in | |
27404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27405 | *) ac_try_echo=$ac_try;; | |
27406 | esac | |
27407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27408 | $as_echo "$ac_try_echo") >&5 | |
27409 | (eval "$ac_link") 2>&5 | |
27410 | ac_status=$? | |
27411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27413 | { (case "(($ac_try" in | |
27414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27415 | *) ac_try_echo=$ac_try;; | |
27416 | esac | |
27417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27418 | $as_echo "$ac_try_echo") >&5 | |
27419 | (eval "$ac_try") 2>&5 | |
27420 | ac_status=$? | |
27421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27422 | (exit $ac_status); }; }; then | |
27423 | ac_cv_sizeof_intmax_t=`cat conftest.val` | |
27424 | else | |
27425 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
27426 | $as_echo "$as_me: failed program was:" >&5 | |
27427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27428 | ||
27429 | ( exit $ac_status ) | |
27430 | if test "$ac_cv_type_intmax_t" = yes; then | |
27431 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
27432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
27433 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t) | |
27434 | See \`config.log' for more details." >&5 | |
27435 | $as_echo "$as_me: error: cannot compute sizeof (intmax_t) | |
27436 | See \`config.log' for more details." >&2;} | |
27437 | { (exit 77); exit 77; }; }; } | |
27438 | else | |
27439 | ac_cv_sizeof_intmax_t=0 | |
27440 | fi | |
27441 | fi | |
27442 | rm -rf conftest.dSYM | |
27443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
27444 | fi | |
27445 | rm -f conftest.val | |
27446 | fi | |
27447 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5 | |
27448 | $as_echo "$ac_cv_sizeof_intmax_t" >&6; } | |
27449 | ||
27450 | ||
27451 | ||
27452 | cat >>confdefs.h <<_ACEOF | |
27453 | #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t | |
27454 | _ACEOF | |
27455 | ||
27456 | ||
27457 | ||
27458 | ||
27459 | { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5 | |
27460 | $as_echo_n "checking for struct termios.c_line... " >&6; } | |
27461 | if test "${ac_cv_member_struct_termios_c_line+set}" = set; then | |
27462 | $as_echo_n "(cached) " >&6 | |
27463 | else | |
27464 | cat >conftest.$ac_ext <<_ACEOF | |
27465 | /* confdefs.h. */ | |
27466 | _ACEOF | |
27467 | cat confdefs.h >>conftest.$ac_ext | |
27468 | cat >>conftest.$ac_ext <<_ACEOF | |
27469 | /* end confdefs.h. */ | |
27470 | ||
27471 | #include <sys/types.h> | |
27472 | #include <termios.h> | |
27473 | ||
27474 | ||
27475 | int | |
27476 | main () | |
27477 | { | |
27478 | static struct termios ac_aggr; | |
27479 | if (ac_aggr.c_line) | |
27480 | return 0; | |
27481 | ; | |
27482 | return 0; | |
27483 | } | |
27484 | _ACEOF | |
27485 | rm -f conftest.$ac_objext | |
27486 | if { (ac_try="$ac_compile" | |
27487 | case "(($ac_try" in | |
27488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27489 | *) ac_try_echo=$ac_try;; | |
27490 | esac | |
27491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27492 | $as_echo "$ac_try_echo") >&5 | |
27493 | (eval "$ac_compile") 2>conftest.er1 | |
27494 | ac_status=$? | |
27495 | grep -v '^ *+' conftest.er1 >conftest.err | |
27496 | rm -f conftest.er1 | |
27497 | cat conftest.err >&5 | |
27498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27499 | (exit $ac_status); } && { | |
27500 | test -z "$ac_c_werror_flag" || | |
27501 | test ! -s conftest.err | |
27502 | } && test -s conftest.$ac_objext; then | |
27503 | ac_cv_member_struct_termios_c_line=yes | |
27504 | else | |
27505 | $as_echo "$as_me: failed program was:" >&5 | |
27506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27507 | ||
27508 | cat >conftest.$ac_ext <<_ACEOF | |
27509 | /* confdefs.h. */ | |
27510 | _ACEOF | |
27511 | cat confdefs.h >>conftest.$ac_ext | |
27512 | cat >>conftest.$ac_ext <<_ACEOF | |
27513 | /* end confdefs.h. */ | |
27514 | ||
27515 | #include <sys/types.h> | |
27516 | #include <termios.h> | |
27517 | ||
27518 | ||
27519 | int | |
27520 | main () | |
27521 | { | |
27522 | static struct termios ac_aggr; | |
27523 | if (sizeof ac_aggr.c_line) | |
27524 | return 0; | |
27525 | ; | |
27526 | return 0; | |
27527 | } | |
27528 | _ACEOF | |
27529 | rm -f conftest.$ac_objext | |
27530 | if { (ac_try="$ac_compile" | |
27531 | case "(($ac_try" in | |
27532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27533 | *) ac_try_echo=$ac_try;; | |
27534 | esac | |
27535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27536 | $as_echo "$ac_try_echo") >&5 | |
27537 | (eval "$ac_compile") 2>conftest.er1 | |
27538 | ac_status=$? | |
27539 | grep -v '^ *+' conftest.er1 >conftest.err | |
27540 | rm -f conftest.er1 | |
27541 | cat conftest.err >&5 | |
27542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27543 | (exit $ac_status); } && { | |
27544 | test -z "$ac_c_werror_flag" || | |
27545 | test ! -s conftest.err | |
27546 | } && test -s conftest.$ac_objext; then | |
27547 | ac_cv_member_struct_termios_c_line=yes | |
27548 | else | |
27549 | $as_echo "$as_me: failed program was:" >&5 | |
27550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27551 | ||
27552 | ac_cv_member_struct_termios_c_line=no | |
27553 | fi | |
27554 | ||
27555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27556 | fi | |
27557 | ||
27558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27559 | fi | |
27560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5 | |
27561 | $as_echo "$ac_cv_member_struct_termios_c_line" >&6; } | |
27562 | if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then | |
27563 | cat >>confdefs.h <<\_ACEOF | |
27564 | #define TERMIOS_LDISC 1 | |
27565 | _ACEOF | |
27566 | ||
27567 | fi | |
27568 | ||
27569 | ||
27570 | ||
27571 | { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5 | |
27572 | $as_echo_n "checking for struct termio.c_line... " >&6; } | |
27573 | if test "${ac_cv_member_struct_termio_c_line+set}" = set; then | |
27574 | $as_echo_n "(cached) " >&6 | |
27575 | else | |
27576 | cat >conftest.$ac_ext <<_ACEOF | |
27577 | /* confdefs.h. */ | |
27578 | _ACEOF | |
27579 | cat confdefs.h >>conftest.$ac_ext | |
27580 | cat >>conftest.$ac_ext <<_ACEOF | |
27581 | /* end confdefs.h. */ | |
27582 | ||
27583 | #include <sys/types.h> | |
27584 | #include <termio.h> | |
27585 | ||
27586 | ||
27587 | int | |
27588 | main () | |
27589 | { | |
27590 | static struct termio ac_aggr; | |
27591 | if (ac_aggr.c_line) | |
27592 | return 0; | |
27593 | ; | |
27594 | return 0; | |
27595 | } | |
27596 | _ACEOF | |
27597 | rm -f conftest.$ac_objext | |
27598 | if { (ac_try="$ac_compile" | |
27599 | case "(($ac_try" in | |
27600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27601 | *) ac_try_echo=$ac_try;; | |
27602 | esac | |
27603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27604 | $as_echo "$ac_try_echo") >&5 | |
27605 | (eval "$ac_compile") 2>conftest.er1 | |
27606 | ac_status=$? | |
27607 | grep -v '^ *+' conftest.er1 >conftest.err | |
27608 | rm -f conftest.er1 | |
27609 | cat conftest.err >&5 | |
27610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27611 | (exit $ac_status); } && { | |
27612 | test -z "$ac_c_werror_flag" || | |
27613 | test ! -s conftest.err | |
27614 | } && test -s conftest.$ac_objext; then | |
27615 | ac_cv_member_struct_termio_c_line=yes | |
27616 | else | |
27617 | $as_echo "$as_me: failed program was:" >&5 | |
27618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27619 | ||
27620 | cat >conftest.$ac_ext <<_ACEOF | |
27621 | /* confdefs.h. */ | |
27622 | _ACEOF | |
27623 | cat confdefs.h >>conftest.$ac_ext | |
27624 | cat >>conftest.$ac_ext <<_ACEOF | |
27625 | /* end confdefs.h. */ | |
27626 | ||
27627 | #include <sys/types.h> | |
27628 | #include <termio.h> | |
27629 | ||
27630 | ||
27631 | int | |
27632 | main () | |
27633 | { | |
27634 | static struct termio ac_aggr; | |
27635 | if (sizeof ac_aggr.c_line) | |
27636 | return 0; | |
27637 | ; | |
27638 | return 0; | |
27639 | } | |
27640 | _ACEOF | |
27641 | rm -f conftest.$ac_objext | |
27642 | if { (ac_try="$ac_compile" | |
27643 | case "(($ac_try" in | |
27644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27645 | *) ac_try_echo=$ac_try;; | |
27646 | esac | |
27647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27648 | $as_echo "$ac_try_echo") >&5 | |
27649 | (eval "$ac_compile") 2>conftest.er1 | |
27650 | ac_status=$? | |
27651 | grep -v '^ *+' conftest.er1 >conftest.err | |
27652 | rm -f conftest.er1 | |
27653 | cat conftest.err >&5 | |
27654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27655 | (exit $ac_status); } && { | |
27656 | test -z "$ac_c_werror_flag" || | |
27657 | test ! -s conftest.err | |
27658 | } && test -s conftest.$ac_objext; then | |
27659 | ac_cv_member_struct_termio_c_line=yes | |
27660 | else | |
27661 | $as_echo "$as_me: failed program was:" >&5 | |
27662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27663 | ||
27664 | ac_cv_member_struct_termio_c_line=no | |
27665 | fi | |
27666 | ||
27667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27668 | fi | |
27669 | ||
27670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27671 | fi | |
27672 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5 | |
27673 | $as_echo "$ac_cv_member_struct_termio_c_line" >&6; } | |
27674 | if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then | |
27675 | cat >>confdefs.h <<\_ACEOF | |
27676 | #define TERMIO_LDISC 1 | |
27677 | _ACEOF | |
27678 | ||
27679 | fi | |
27680 | ||
27681 | ||
27682 | ||
27683 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 | |
27684 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
27685 | if test "${bash_cv_dirent_has_dino+set}" = set; then | |
27686 | $as_echo_n "(cached) " >&6 | |
ccc6cda3 | 27687 | else |
f73dda09 | 27688 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27689 | /* confdefs.h. */ |
27690 | _ACEOF | |
27691 | cat confdefs.h >>conftest.$ac_ext | |
27692 | cat >>conftest.$ac_ext <<_ACEOF | |
27693 | /* end confdefs.h. */ | |
ccc6cda3 JA |
27694 | |
27695 | #include <stdio.h> | |
27696 | #include <sys/types.h> | |
27697 | #ifdef HAVE_UNISTD_H | |
27698 | # include <unistd.h> | |
27699 | #endif /* HAVE_UNISTD_H */ | |
27700 | #if defined(HAVE_DIRENT_H) | |
27701 | # include <dirent.h> | |
27702 | #else | |
27703 | # define dirent direct | |
27704 | # ifdef HAVE_SYS_NDIR_H | |
27705 | # include <sys/ndir.h> | |
27706 | # endif /* SYSNDIR */ | |
27707 | # ifdef HAVE_SYS_DIR_H | |
27708 | # include <sys/dir.h> | |
27709 | # endif /* SYSDIR */ | |
27710 | # ifdef HAVE_NDIR_H | |
27711 | # include <ndir.h> | |
27712 | # endif | |
27713 | #endif /* HAVE_DIRENT_H */ | |
27714 | ||
f73dda09 JA |
27715 | int |
27716 | main () | |
27717 | { | |
ccc6cda3 JA |
27718 | |
27719 | struct dirent d; int z; z = d.d_ino; | |
27720 | ||
f73dda09 JA |
27721 | ; |
27722 | return 0; | |
27723 | } | |
27724 | _ACEOF | |
27725 | rm -f conftest.$ac_objext | |
3185942a JA |
27726 | if { (ac_try="$ac_compile" |
27727 | case "(($ac_try" in | |
27728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27729 | *) ac_try_echo=$ac_try;; | |
27730 | esac | |
27731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27732 | $as_echo "$ac_try_echo") >&5 | |
27733 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 27734 | ac_status=$? |
0628567a JA |
27735 | grep -v '^ *+' conftest.er1 >conftest.err |
27736 | rm -f conftest.er1 | |
27737 | cat conftest.err >&5 | |
3185942a JA |
27738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27739 | (exit $ac_status); } && { | |
27740 | test -z "$ac_c_werror_flag" || | |
27741 | test ! -s conftest.err | |
27742 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
27743 | bash_cv_dirent_has_dino=yes |
27744 | else | |
3185942a | 27745 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27746 | sed 's/^/| /' conftest.$ac_ext >&5 |
27747 | ||
3185942a | 27748 | bash_cv_dirent_has_dino=no |
ccc6cda3 | 27749 | fi |
3185942a JA |
27750 | |
27751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
27752 | fi |
27753 | ||
3185942a JA |
27754 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
27755 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
ccc6cda3 | 27756 | if test $bash_cv_dirent_has_dino = yes; then |
b80f6443 JA |
27757 | cat >>confdefs.h <<\_ACEOF |
27758 | #define HAVE_STRUCT_DIRENT_D_INO 1 | |
27759 | _ACEOF | |
ccc6cda3 JA |
27760 | |
27761 | fi | |
27762 | ||
b80f6443 | 27763 | |
3185942a JA |
27764 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 |
27765 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
f73dda09 | 27766 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then |
3185942a | 27767 | $as_echo_n "(cached) " >&6 |
d166f048 | 27768 | else |
f73dda09 | 27769 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27770 | /* confdefs.h. */ |
27771 | _ACEOF | |
27772 | cat confdefs.h >>conftest.$ac_ext | |
27773 | cat >>conftest.$ac_ext <<_ACEOF | |
27774 | /* end confdefs.h. */ | |
d166f048 JA |
27775 | |
27776 | #include <stdio.h> | |
27777 | #include <sys/types.h> | |
27778 | #ifdef HAVE_UNISTD_H | |
27779 | # include <unistd.h> | |
27780 | #endif /* HAVE_UNISTD_H */ | |
27781 | #if defined(HAVE_DIRENT_H) | |
27782 | # include <dirent.h> | |
27783 | #else | |
27784 | # define dirent direct | |
27785 | # ifdef HAVE_SYS_NDIR_H | |
27786 | # include <sys/ndir.h> | |
27787 | # endif /* SYSNDIR */ | |
27788 | # ifdef HAVE_SYS_DIR_H | |
27789 | # include <sys/dir.h> | |
27790 | # endif /* SYSDIR */ | |
27791 | # ifdef HAVE_NDIR_H | |
27792 | # include <ndir.h> | |
27793 | # endif | |
27794 | #endif /* HAVE_DIRENT_H */ | |
27795 | ||
f73dda09 JA |
27796 | int |
27797 | main () | |
27798 | { | |
d166f048 JA |
27799 | |
27800 | struct dirent d; int z; z = d.d_fileno; | |
27801 | ||
f73dda09 JA |
27802 | ; |
27803 | return 0; | |
27804 | } | |
27805 | _ACEOF | |
27806 | rm -f conftest.$ac_objext | |
3185942a JA |
27807 | if { (ac_try="$ac_compile" |
27808 | case "(($ac_try" in | |
27809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27810 | *) ac_try_echo=$ac_try;; | |
27811 | esac | |
27812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27813 | $as_echo "$ac_try_echo") >&5 | |
27814 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 27815 | ac_status=$? |
0628567a JA |
27816 | grep -v '^ *+' conftest.er1 >conftest.err |
27817 | rm -f conftest.er1 | |
27818 | cat conftest.err >&5 | |
3185942a JA |
27819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27820 | (exit $ac_status); } && { | |
27821 | test -z "$ac_c_werror_flag" || | |
27822 | test ! -s conftest.err | |
27823 | } && test -s conftest.$ac_objext; then | |
d166f048 JA |
27824 | bash_cv_dirent_has_d_fileno=yes |
27825 | else | |
3185942a | 27826 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27827 | sed 's/^/| /' conftest.$ac_ext >&5 |
27828 | ||
3185942a | 27829 | bash_cv_dirent_has_d_fileno=no |
d166f048 | 27830 | fi |
3185942a JA |
27831 | |
27832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
27833 | fi |
27834 | ||
3185942a JA |
27835 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
27836 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
d166f048 | 27837 | if test $bash_cv_dirent_has_d_fileno = yes; then |
b80f6443 JA |
27838 | cat >>confdefs.h <<\_ACEOF |
27839 | #define HAVE_STRUCT_DIRENT_D_FILENO 1 | |
27840 | _ACEOF | |
27841 | ||
27842 | fi | |
27843 | ||
27844 | ||
3185942a JA |
27845 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 |
27846 | $as_echo_n "checking for struct dirent.d_namlen... " >&6; } | |
b80f6443 | 27847 | if test "${bash_cv_dirent_has_d_namlen+set}" = set; then |
3185942a | 27848 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
27849 | else |
27850 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
27851 | /* confdefs.h. */ |
27852 | _ACEOF | |
27853 | cat confdefs.h >>conftest.$ac_ext | |
27854 | cat >>conftest.$ac_ext <<_ACEOF | |
27855 | /* end confdefs.h. */ | |
b80f6443 JA |
27856 | |
27857 | #include <stdio.h> | |
27858 | #include <sys/types.h> | |
27859 | #ifdef HAVE_UNISTD_H | |
27860 | # include <unistd.h> | |
27861 | #endif /* HAVE_UNISTD_H */ | |
27862 | #if defined(HAVE_DIRENT_H) | |
27863 | # include <dirent.h> | |
27864 | #else | |
27865 | # define dirent direct | |
27866 | # ifdef HAVE_SYS_NDIR_H | |
27867 | # include <sys/ndir.h> | |
27868 | # endif /* SYSNDIR */ | |
27869 | # ifdef HAVE_SYS_DIR_H | |
27870 | # include <sys/dir.h> | |
27871 | # endif /* SYSDIR */ | |
27872 | # ifdef HAVE_NDIR_H | |
27873 | # include <ndir.h> | |
27874 | # endif | |
27875 | #endif /* HAVE_DIRENT_H */ | |
27876 | ||
27877 | int | |
27878 | main () | |
27879 | { | |
27880 | ||
27881 | struct dirent d; int z; z = d.d_namlen; | |
27882 | ||
27883 | ; | |
27884 | return 0; | |
27885 | } | |
27886 | _ACEOF | |
27887 | rm -f conftest.$ac_objext | |
3185942a JA |
27888 | if { (ac_try="$ac_compile" |
27889 | case "(($ac_try" in | |
27890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27891 | *) ac_try_echo=$ac_try;; | |
27892 | esac | |
27893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27894 | $as_echo "$ac_try_echo") >&5 | |
27895 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 27896 | ac_status=$? |
0628567a JA |
27897 | grep -v '^ *+' conftest.er1 >conftest.err |
27898 | rm -f conftest.er1 | |
27899 | cat conftest.err >&5 | |
3185942a JA |
27900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27901 | (exit $ac_status); } && { | |
27902 | test -z "$ac_c_werror_flag" || | |
27903 | test ! -s conftest.err | |
27904 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
27905 | bash_cv_dirent_has_d_namlen=yes |
27906 | else | |
3185942a | 27907 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27908 | sed 's/^/| /' conftest.$ac_ext >&5 |
27909 | ||
3185942a | 27910 | bash_cv_dirent_has_d_namlen=no |
d166f048 | 27911 | fi |
3185942a JA |
27912 | |
27913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b80f6443 JA |
27914 | fi |
27915 | ||
3185942a JA |
27916 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5 |
27917 | $as_echo "$bash_cv_dirent_has_d_namlen" >&6; } | |
b80f6443 JA |
27918 | if test $bash_cv_dirent_has_d_namlen = yes; then |
27919 | cat >>confdefs.h <<\_ACEOF | |
27920 | #define HAVE_STRUCT_DIRENT_D_NAMLEN 1 | |
27921 | _ACEOF | |
d166f048 | 27922 | |
b80f6443 JA |
27923 | fi |
27924 | ||
3185942a JA |
27925 | { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
27926 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
f73dda09 | 27927 | if test "${bash_cv_struct_winsize_header+set}" = set; then |
3185942a | 27928 | $as_echo_n "(cached) " >&6 |
d166f048 | 27929 | else |
f73dda09 | 27930 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27931 | /* confdefs.h. */ |
27932 | _ACEOF | |
27933 | cat confdefs.h >>conftest.$ac_ext | |
27934 | cat >>conftest.$ac_ext <<_ACEOF | |
27935 | /* end confdefs.h. */ | |
d166f048 JA |
27936 | #include <sys/types.h> |
27937 | #include <sys/ioctl.h> | |
f73dda09 JA |
27938 | int |
27939 | main () | |
27940 | { | |
d166f048 | 27941 | struct winsize x; |
f73dda09 JA |
27942 | ; |
27943 | return 0; | |
27944 | } | |
27945 | _ACEOF | |
27946 | rm -f conftest.$ac_objext | |
3185942a JA |
27947 | if { (ac_try="$ac_compile" |
27948 | case "(($ac_try" in | |
27949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27950 | *) ac_try_echo=$ac_try;; | |
27951 | esac | |
27952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27953 | $as_echo "$ac_try_echo") >&5 | |
27954 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 27955 | ac_status=$? |
0628567a JA |
27956 | grep -v '^ *+' conftest.er1 >conftest.err |
27957 | rm -f conftest.er1 | |
27958 | cat conftest.err >&5 | |
3185942a JA |
27959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27960 | (exit $ac_status); } && { | |
27961 | test -z "$ac_c_werror_flag" || | |
27962 | test ! -s conftest.err | |
27963 | } && test -s conftest.$ac_objext; then | |
cce855bc JA |
27964 | bash_cv_struct_winsize_header=ioctl_h |
27965 | else | |
3185942a | 27966 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
27967 | sed 's/^/| /' conftest.$ac_ext >&5 |
27968 | ||
3185942a | 27969 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
27970 | /* confdefs.h. */ |
27971 | _ACEOF | |
27972 | cat confdefs.h >>conftest.$ac_ext | |
27973 | cat >>conftest.$ac_ext <<_ACEOF | |
27974 | /* end confdefs.h. */ | |
cce855bc JA |
27975 | #include <sys/types.h> |
27976 | #include <termios.h> | |
f73dda09 JA |
27977 | int |
27978 | main () | |
27979 | { | |
cce855bc | 27980 | struct winsize x; |
f73dda09 JA |
27981 | ; |
27982 | return 0; | |
27983 | } | |
27984 | _ACEOF | |
27985 | rm -f conftest.$ac_objext | |
3185942a JA |
27986 | if { (ac_try="$ac_compile" |
27987 | case "(($ac_try" in | |
27988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27989 | *) ac_try_echo=$ac_try;; | |
27990 | esac | |
27991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
27992 | $as_echo "$ac_try_echo") >&5 | |
27993 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 27994 | ac_status=$? |
0628567a JA |
27995 | grep -v '^ *+' conftest.er1 >conftest.err |
27996 | rm -f conftest.er1 | |
27997 | cat conftest.err >&5 | |
3185942a JA |
27998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27999 | (exit $ac_status); } && { | |
28000 | test -z "$ac_c_werror_flag" || | |
28001 | test ! -s conftest.err | |
28002 | } && test -s conftest.$ac_objext; then | |
cce855bc | 28003 | bash_cv_struct_winsize_header=termios_h |
d166f048 | 28004 | else |
3185942a | 28005 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28006 | sed 's/^/| /' conftest.$ac_ext >&5 |
28007 | ||
3185942a | 28008 | bash_cv_struct_winsize_header=other |
cce855bc | 28009 | fi |
3185942a JA |
28010 | |
28011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cce855bc | 28012 | |
d166f048 | 28013 | fi |
3185942a JA |
28014 | |
28015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
28016 | fi |
28017 | ||
cce855bc | 28018 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
3185942a JA |
28019 | { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
28020 | $as_echo "sys/ioctl.h" >&6; } | |
b80f6443 | 28021 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 28022 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
b80f6443 | 28023 | _ACEOF |
d166f048 | 28024 | |
cce855bc | 28025 | elif test $bash_cv_struct_winsize_header = termios_h; then |
3185942a JA |
28026 | { $as_echo "$as_me:$LINENO: result: termios.h" >&5 |
28027 | $as_echo "termios.h" >&6; } | |
b80f6443 | 28028 | cat >>confdefs.h <<\_ACEOF |
cce855bc | 28029 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
b80f6443 | 28030 | _ACEOF |
cce855bc JA |
28031 | |
28032 | else | |
3185942a JA |
28033 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
28034 | $as_echo "not found" >&6; } | |
d166f048 JA |
28035 | fi |
28036 | ||
3185942a JA |
28037 | { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5 |
28038 | $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } | |
f73dda09 | 28039 | if test "${bash_cv_struct_timeval+set}" = set; then |
3185942a | 28040 | $as_echo_n "(cached) " >&6 |
bb70624e | 28041 | else |
f73dda09 JA |
28042 | |
28043 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28044 | /* confdefs.h. */ |
28045 | _ACEOF | |
28046 | cat confdefs.h >>conftest.$ac_ext | |
28047 | cat >>conftest.$ac_ext <<_ACEOF | |
28048 | /* end confdefs.h. */ | |
bb70624e | 28049 | #include <sys/time.h> |
f73dda09 JA |
28050 | |
28051 | _ACEOF | |
bb70624e | 28052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 28053 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
28054 | bash_cv_struct_timeval=yes |
28055 | else | |
f73dda09 | 28056 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28057 | /* confdefs.h. */ |
28058 | _ACEOF | |
28059 | cat confdefs.h >>conftest.$ac_ext | |
28060 | cat >>conftest.$ac_ext <<_ACEOF | |
28061 | /* end confdefs.h. */ | |
bb70624e | 28062 | #include <time.h> |
f73dda09 JA |
28063 | |
28064 | _ACEOF | |
bb70624e | 28065 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 28066 | $EGREP "struct timeval" >/dev/null 2>&1; then |
bb70624e JA |
28067 | bash_cv_struct_timeval=yes |
28068 | else | |
bb70624e JA |
28069 | bash_cv_struct_timeval=no |
28070 | fi | |
28071 | rm -f conftest* | |
28072 | ||
28073 | fi | |
28074 | rm -f conftest* | |
28075 | ||
b80f6443 | 28076 | |
bb70624e JA |
28077 | fi |
28078 | ||
3185942a JA |
28079 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5 |
28080 | $as_echo "$bash_cv_struct_timeval" >&6; } | |
bb70624e | 28081 | if test $bash_cv_struct_timeval = yes; then |
b80f6443 | 28082 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 28083 | #define HAVE_TIMEVAL 1 |
b80f6443 | 28084 | _ACEOF |
bb70624e JA |
28085 | |
28086 | fi | |
28087 | ||
3185942a JA |
28088 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
28089 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } | |
f73dda09 | 28090 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
3185942a | 28091 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
28092 | else |
28093 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28094 | /* confdefs.h. */ |
28095 | _ACEOF | |
28096 | cat confdefs.h >>conftest.$ac_ext | |
28097 | cat >>conftest.$ac_ext <<_ACEOF | |
28098 | /* end confdefs.h. */ | |
f73dda09 JA |
28099 | $ac_includes_default |
28100 | int | |
28101 | main () | |
28102 | { | |
28103 | static struct stat ac_aggr; | |
28104 | if (ac_aggr.st_blocks) | |
28105 | return 0; | |
28106 | ; | |
28107 | return 0; | |
28108 | } | |
28109 | _ACEOF | |
28110 | rm -f conftest.$ac_objext | |
3185942a JA |
28111 | if { (ac_try="$ac_compile" |
28112 | case "(($ac_try" in | |
28113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28114 | *) ac_try_echo=$ac_try;; | |
28115 | esac | |
28116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28117 | $as_echo "$ac_try_echo") >&5 | |
28118 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
28119 | ac_status=$? |
28120 | grep -v '^ *+' conftest.er1 >conftest.err | |
28121 | rm -f conftest.er1 | |
28122 | cat conftest.err >&5 | |
3185942a JA |
28123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28124 | (exit $ac_status); } && { | |
28125 | test -z "$ac_c_werror_flag" || | |
28126 | test ! -s conftest.err | |
28127 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
28128 | ac_cv_member_struct_stat_st_blocks=yes |
28129 | else | |
3185942a | 28130 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28131 | sed 's/^/| /' conftest.$ac_ext >&5 |
28132 | ||
3185942a | 28133 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28134 | /* confdefs.h. */ |
28135 | _ACEOF | |
28136 | cat confdefs.h >>conftest.$ac_ext | |
28137 | cat >>conftest.$ac_ext <<_ACEOF | |
28138 | /* end confdefs.h. */ | |
28139 | $ac_includes_default | |
28140 | int | |
28141 | main () | |
28142 | { | |
28143 | static struct stat ac_aggr; | |
28144 | if (sizeof ac_aggr.st_blocks) | |
28145 | return 0; | |
28146 | ; | |
28147 | return 0; | |
28148 | } | |
28149 | _ACEOF | |
28150 | rm -f conftest.$ac_objext | |
3185942a JA |
28151 | if { (ac_try="$ac_compile" |
28152 | case "(($ac_try" in | |
28153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28154 | *) ac_try_echo=$ac_try;; | |
28155 | esac | |
28156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28157 | $as_echo "$ac_try_echo") >&5 | |
28158 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 28159 | ac_status=$? |
0628567a JA |
28160 | grep -v '^ *+' conftest.er1 >conftest.err |
28161 | rm -f conftest.er1 | |
28162 | cat conftest.err >&5 | |
3185942a JA |
28163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28164 | (exit $ac_status); } && { | |
28165 | test -z "$ac_c_werror_flag" || | |
28166 | test ! -s conftest.err | |
28167 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
28168 | ac_cv_member_struct_stat_st_blocks=yes |
28169 | else | |
3185942a | 28170 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28171 | sed 's/^/| /' conftest.$ac_ext >&5 |
28172 | ||
3185942a | 28173 | ac_cv_member_struct_stat_st_blocks=no |
f73dda09 | 28174 | fi |
3185942a JA |
28175 | |
28176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 28177 | fi |
3185942a JA |
28178 | |
28179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 28180 | fi |
3185942a JA |
28181 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
28182 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } | |
28183 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then | |
f73dda09 | 28184 | |
b80f6443 | 28185 | cat >>confdefs.h <<_ACEOF |
f73dda09 | 28186 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
b80f6443 JA |
28187 | _ACEOF |
28188 | ||
f73dda09 JA |
28189 | |
28190 | fi | |
d166f048 | 28191 | |
3185942a JA |
28192 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
28193 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
7117c2d2 | 28194 | if test "${ac_cv_struct_tm+set}" = set; then |
3185942a | 28195 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
28196 | else |
28197 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28198 | /* confdefs.h. */ |
28199 | _ACEOF | |
28200 | cat confdefs.h >>conftest.$ac_ext | |
28201 | cat >>conftest.$ac_ext <<_ACEOF | |
28202 | /* end confdefs.h. */ | |
7117c2d2 JA |
28203 | #include <sys/types.h> |
28204 | #include <time.h> | |
28205 | ||
28206 | int | |
28207 | main () | |
28208 | { | |
3185942a JA |
28209 | struct tm tm; |
28210 | int *p = &tm.tm_sec; | |
28211 | return !p; | |
7117c2d2 JA |
28212 | ; |
28213 | return 0; | |
28214 | } | |
28215 | _ACEOF | |
28216 | rm -f conftest.$ac_objext | |
3185942a JA |
28217 | if { (ac_try="$ac_compile" |
28218 | case "(($ac_try" in | |
28219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28220 | *) ac_try_echo=$ac_try;; | |
28221 | esac | |
28222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28223 | $as_echo "$ac_try_echo") >&5 | |
28224 | (eval "$ac_compile") 2>conftest.er1 | |
7117c2d2 | 28225 | ac_status=$? |
0628567a JA |
28226 | grep -v '^ *+' conftest.er1 >conftest.err |
28227 | rm -f conftest.er1 | |
28228 | cat conftest.err >&5 | |
3185942a JA |
28229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28230 | (exit $ac_status); } && { | |
28231 | test -z "$ac_c_werror_flag" || | |
28232 | test ! -s conftest.err | |
28233 | } && test -s conftest.$ac_objext; then | |
7117c2d2 JA |
28234 | ac_cv_struct_tm=time.h |
28235 | else | |
3185942a | 28236 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28237 | sed 's/^/| /' conftest.$ac_ext >&5 |
28238 | ||
3185942a | 28239 | ac_cv_struct_tm=sys/time.h |
7117c2d2 | 28240 | fi |
3185942a JA |
28241 | |
28242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 28243 | fi |
3185942a JA |
28244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
28245 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7117c2d2 JA |
28246 | if test $ac_cv_struct_tm = sys/time.h; then |
28247 | ||
b80f6443 | 28248 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28249 | #define TM_IN_SYS_TIME 1 |
b80f6443 | 28250 | _ACEOF |
7117c2d2 JA |
28251 | |
28252 | fi | |
28253 | ||
3185942a JA |
28254 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
28255 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
7117c2d2 | 28256 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
3185942a | 28257 | $as_echo_n "(cached) " >&6 |
7117c2d2 | 28258 | else |
b80f6443 | 28259 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28260 | /* confdefs.h. */ |
28261 | _ACEOF | |
28262 | cat confdefs.h >>conftest.$ac_ext | |
28263 | cat >>conftest.$ac_ext <<_ACEOF | |
28264 | /* end confdefs.h. */ | |
b80f6443 JA |
28265 | #include <sys/types.h> |
28266 | #include <$ac_cv_struct_tm> | |
28267 | ||
28268 | ||
28269 | int | |
28270 | main () | |
28271 | { | |
28272 | static struct tm ac_aggr; | |
28273 | if (ac_aggr.tm_zone) | |
28274 | return 0; | |
28275 | ; | |
28276 | return 0; | |
28277 | } | |
28278 | _ACEOF | |
28279 | rm -f conftest.$ac_objext | |
3185942a JA |
28280 | if { (ac_try="$ac_compile" |
28281 | case "(($ac_try" in | |
28282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28283 | *) ac_try_echo=$ac_try;; | |
28284 | esac | |
28285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28286 | $as_echo "$ac_try_echo") >&5 | |
28287 | (eval "$ac_compile") 2>conftest.er1 | |
0628567a JA |
28288 | ac_status=$? |
28289 | grep -v '^ *+' conftest.er1 >conftest.err | |
28290 | rm -f conftest.er1 | |
28291 | cat conftest.err >&5 | |
3185942a JA |
28292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28293 | (exit $ac_status); } && { | |
28294 | test -z "$ac_c_werror_flag" || | |
28295 | test ! -s conftest.err | |
28296 | } && test -s conftest.$ac_objext; then | |
0628567a JA |
28297 | ac_cv_member_struct_tm_tm_zone=yes |
28298 | else | |
3185942a | 28299 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28300 | sed 's/^/| /' conftest.$ac_ext >&5 |
28301 | ||
3185942a | 28302 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28303 | /* confdefs.h. */ |
28304 | _ACEOF | |
28305 | cat confdefs.h >>conftest.$ac_ext | |
28306 | cat >>conftest.$ac_ext <<_ACEOF | |
28307 | /* end confdefs.h. */ | |
28308 | #include <sys/types.h> | |
28309 | #include <$ac_cv_struct_tm> | |
28310 | ||
28311 | ||
28312 | int | |
28313 | main () | |
28314 | { | |
28315 | static struct tm ac_aggr; | |
28316 | if (sizeof ac_aggr.tm_zone) | |
28317 | return 0; | |
28318 | ; | |
28319 | return 0; | |
28320 | } | |
28321 | _ACEOF | |
28322 | rm -f conftest.$ac_objext | |
3185942a JA |
28323 | if { (ac_try="$ac_compile" |
28324 | case "(($ac_try" in | |
28325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28326 | *) ac_try_echo=$ac_try;; | |
28327 | esac | |
28328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28329 | $as_echo "$ac_try_echo") >&5 | |
28330 | (eval "$ac_compile") 2>conftest.er1 | |
b80f6443 | 28331 | ac_status=$? |
0628567a JA |
28332 | grep -v '^ *+' conftest.er1 >conftest.err |
28333 | rm -f conftest.er1 | |
28334 | cat conftest.err >&5 | |
3185942a JA |
28335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28336 | (exit $ac_status); } && { | |
28337 | test -z "$ac_c_werror_flag" || | |
28338 | test ! -s conftest.err | |
28339 | } && test -s conftest.$ac_objext; then | |
b80f6443 JA |
28340 | ac_cv_member_struct_tm_tm_zone=yes |
28341 | else | |
3185942a | 28342 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28343 | sed 's/^/| /' conftest.$ac_ext >&5 |
28344 | ||
3185942a | 28345 | ac_cv_member_struct_tm_tm_zone=no |
7117c2d2 | 28346 | fi |
3185942a JA |
28347 | |
28348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0628567a | 28349 | fi |
3185942a JA |
28350 | |
28351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7117c2d2 | 28352 | fi |
3185942a JA |
28353 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
28354 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
28355 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then | |
7117c2d2 | 28356 | |
b80f6443 | 28357 | cat >>confdefs.h <<_ACEOF |
7117c2d2 | 28358 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
b80f6443 JA |
28359 | _ACEOF |
28360 | ||
7117c2d2 JA |
28361 | |
28362 | fi | |
28363 | ||
28364 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
28365 | ||
b80f6443 | 28366 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28367 | #define HAVE_TM_ZONE 1 |
b80f6443 | 28368 | _ACEOF |
7117c2d2 JA |
28369 | |
28370 | else | |
3185942a JA |
28371 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
28372 | $as_echo_n "checking whether tzname is declared... " >&6; } | |
28373 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
28374 | $as_echo_n "(cached) " >&6 | |
28375 | else | |
28376 | cat >conftest.$ac_ext <<_ACEOF | |
28377 | /* confdefs.h. */ | |
28378 | _ACEOF | |
28379 | cat confdefs.h >>conftest.$ac_ext | |
28380 | cat >>conftest.$ac_ext <<_ACEOF | |
28381 | /* end confdefs.h. */ | |
28382 | #include <time.h> | |
28383 | ||
28384 | int | |
28385 | main () | |
28386 | { | |
28387 | #ifndef tzname | |
28388 | (void) tzname; | |
28389 | #endif | |
28390 | ||
28391 | ; | |
28392 | return 0; | |
28393 | } | |
28394 | _ACEOF | |
28395 | rm -f conftest.$ac_objext | |
28396 | if { (ac_try="$ac_compile" | |
28397 | case "(($ac_try" in | |
28398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28399 | *) ac_try_echo=$ac_try;; | |
28400 | esac | |
28401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28402 | $as_echo "$ac_try_echo") >&5 | |
28403 | (eval "$ac_compile") 2>conftest.er1 | |
28404 | ac_status=$? | |
28405 | grep -v '^ *+' conftest.er1 >conftest.err | |
28406 | rm -f conftest.er1 | |
28407 | cat conftest.err >&5 | |
28408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28409 | (exit $ac_status); } && { | |
28410 | test -z "$ac_c_werror_flag" || | |
28411 | test ! -s conftest.err | |
28412 | } && test -s conftest.$ac_objext; then | |
28413 | ac_cv_have_decl_tzname=yes | |
28414 | else | |
28415 | $as_echo "$as_me: failed program was:" >&5 | |
28416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28417 | ||
28418 | ac_cv_have_decl_tzname=no | |
28419 | fi | |
28420 | ||
28421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
28422 | fi | |
28423 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
28424 | $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
28425 | if test "x$ac_cv_have_decl_tzname" = x""yes; then | |
28426 | ||
28427 | cat >>confdefs.h <<_ACEOF | |
28428 | #define HAVE_DECL_TZNAME 1 | |
28429 | _ACEOF | |
28430 | ||
28431 | ||
28432 | else | |
28433 | cat >>confdefs.h <<_ACEOF | |
28434 | #define HAVE_DECL_TZNAME 0 | |
28435 | _ACEOF | |
28436 | ||
28437 | ||
28438 | fi | |
28439 | ||
28440 | ||
28441 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 | |
28442 | $as_echo_n "checking for tzname... " >&6; } | |
7117c2d2 | 28443 | if test "${ac_cv_var_tzname+set}" = set; then |
3185942a | 28444 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
28445 | else |
28446 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28447 | /* confdefs.h. */ |
28448 | _ACEOF | |
28449 | cat confdefs.h >>conftest.$ac_ext | |
28450 | cat >>conftest.$ac_ext <<_ACEOF | |
28451 | /* end confdefs.h. */ | |
7117c2d2 | 28452 | #include <time.h> |
3185942a JA |
28453 | #if !HAVE_DECL_TZNAME |
28454 | extern char *tzname[]; | |
7117c2d2 JA |
28455 | #endif |
28456 | ||
28457 | int | |
28458 | main () | |
28459 | { | |
3185942a | 28460 | return tzname[0][0]; |
7117c2d2 JA |
28461 | ; |
28462 | return 0; | |
28463 | } | |
28464 | _ACEOF | |
28465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
28466 | if { (ac_try="$ac_link" |
28467 | case "(($ac_try" in | |
28468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28469 | *) ac_try_echo=$ac_try;; | |
28470 | esac | |
28471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28472 | $as_echo "$ac_try_echo") >&5 | |
28473 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 28474 | ac_status=$? |
0628567a JA |
28475 | grep -v '^ *+' conftest.er1 >conftest.err |
28476 | rm -f conftest.er1 | |
28477 | cat conftest.err >&5 | |
3185942a JA |
28478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28479 | (exit $ac_status); } && { | |
28480 | test -z "$ac_c_werror_flag" || | |
28481 | test ! -s conftest.err | |
28482 | } && test -s conftest$ac_exeext && { | |
28483 | test "$cross_compiling" = yes || | |
28484 | $as_test_x conftest$ac_exeext | |
28485 | }; then | |
7117c2d2 JA |
28486 | ac_cv_var_tzname=yes |
28487 | else | |
3185942a | 28488 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28489 | sed 's/^/| /' conftest.$ac_ext >&5 |
28490 | ||
3185942a | 28491 | ac_cv_var_tzname=no |
7117c2d2 | 28492 | fi |
3185942a JA |
28493 | |
28494 | rm -rf conftest.dSYM | |
28495 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 28496 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 28497 | fi |
3185942a JA |
28498 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
28499 | $as_echo "$ac_cv_var_tzname" >&6; } | |
7117c2d2 JA |
28500 | if test $ac_cv_var_tzname = yes; then |
28501 | ||
b80f6443 | 28502 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 28503 | #define HAVE_TZNAME 1 |
b80f6443 | 28504 | _ACEOF |
7117c2d2 JA |
28505 | |
28506 | fi | |
28507 | fi | |
28508 | ||
3185942a JA |
28509 | { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5 |
28510 | $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } | |
b80f6443 | 28511 | if test "${bash_cv_struct_timezone+set}" = set; then |
3185942a | 28512 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
28513 | else |
28514 | ||
28515 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28516 | /* confdefs.h. */ |
28517 | _ACEOF | |
28518 | cat confdefs.h >>conftest.$ac_ext | |
28519 | cat >>conftest.$ac_ext <<_ACEOF | |
28520 | /* end confdefs.h. */ | |
b80f6443 JA |
28521 | #include <sys/time.h> |
28522 | ||
28523 | _ACEOF | |
28524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 28525 | $EGREP "struct timezone" >/dev/null 2>&1; then |
b80f6443 JA |
28526 | bash_cv_struct_timezone=yes |
28527 | else | |
28528 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
28529 | /* confdefs.h. */ |
28530 | _ACEOF | |
28531 | cat confdefs.h >>conftest.$ac_ext | |
28532 | cat >>conftest.$ac_ext <<_ACEOF | |
28533 | /* end confdefs.h. */ | |
b80f6443 JA |
28534 | #include <time.h> |
28535 | ||
28536 | _ACEOF | |
28537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 28538 | $EGREP "struct timezone" >/dev/null 2>&1; then |
b80f6443 JA |
28539 | bash_cv_struct_timezone=yes |
28540 | else | |
28541 | bash_cv_struct_timezone=no | |
28542 | fi | |
28543 | rm -f conftest* | |
28544 | ||
28545 | fi | |
28546 | rm -f conftest* | |
28547 | ||
28548 | ||
28549 | fi | |
28550 | ||
3185942a JA |
28551 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5 |
28552 | $as_echo "$bash_cv_struct_timezone" >&6; } | |
b80f6443 JA |
28553 | if test $bash_cv_struct_timezone = yes; then |
28554 | cat >>confdefs.h <<\_ACEOF | |
28555 | #define HAVE_STRUCT_TIMEZONE 1 | |
28556 | _ACEOF | |
28557 | ||
28558 | fi | |
28559 | ||
28560 | ||
495aee44 CR |
28561 | { $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5 |
28562 | $as_echo_n "checking for offset of exit status in return status from wait... " >&6; } | |
28563 | if test "${bash_cv_wexitstatus_offset+set}" = set; then | |
28564 | $as_echo_n "(cached) " >&6 | |
28565 | else | |
28566 | if test "$cross_compiling" = yes; then | |
28567 | { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5 | |
28568 | $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;} | |
28569 | bash_cv_wexitstatus_offset=0 | |
28570 | ||
28571 | else | |
28572 | cat >conftest.$ac_ext <<_ACEOF | |
28573 | ||
28574 | #include <stdlib.h> | |
28575 | #include <unistd.h> | |
28576 | ||
28577 | #include <sys/wait.h> | |
28578 | ||
28579 | main(c, v) | |
28580 | int c; | |
28581 | char **v; | |
28582 | { | |
28583 | pid_t pid, p; | |
28584 | int s, i, n; | |
28585 | ||
28586 | s = 0; | |
28587 | pid = fork(); | |
28588 | if (pid == 0) | |
28589 | exit (42); | |
28590 | ||
28591 | /* wait for the process */ | |
28592 | p = wait(&s); | |
28593 | if (p != pid) | |
28594 | exit (255); | |
28595 | ||
28596 | /* crack s */ | |
28597 | for (i = 0; i < (sizeof(s) - 8); i++) | |
28598 | { | |
28599 | n = (s >> i) & 0xff; | |
28600 | if (n == 42) | |
28601 | exit (i); | |
28602 | } | |
28603 | ||
28604 | exit (254); | |
28605 | } | |
28606 | ||
28607 | _ACEOF | |
28608 | rm -f conftest$ac_exeext | |
28609 | if { (ac_try="$ac_link" | |
28610 | case "(($ac_try" in | |
28611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28612 | *) ac_try_echo=$ac_try;; | |
28613 | esac | |
28614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28615 | $as_echo "$ac_try_echo") >&5 | |
28616 | (eval "$ac_link") 2>&5 | |
28617 | ac_status=$? | |
28618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28619 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28620 | { (case "(($ac_try" in | |
28621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28622 | *) ac_try_echo=$ac_try;; | |
28623 | esac | |
28624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28625 | $as_echo "$ac_try_echo") >&5 | |
28626 | (eval "$ac_try") 2>&5 | |
28627 | ac_status=$? | |
28628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28629 | (exit $ac_status); }; }; then | |
28630 | bash_cv_wexitstatus_offset=0 | |
28631 | else | |
28632 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
28633 | $as_echo "$as_me: failed program was:" >&5 | |
28634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28635 | ||
28636 | ( exit $ac_status ) | |
28637 | bash_cv_wexitstatus_offset=$? | |
28638 | fi | |
28639 | rm -rf conftest.dSYM | |
28640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
28641 | fi | |
28642 | ||
28643 | ||
28644 | fi | |
28645 | ||
28646 | if test "$bash_cv_wexitstatus_offset" -gt 32 ; then | |
28647 | { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5 | |
28648 | $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;} | |
28649 | bash_cv_wexitstatus_offset=0 | |
28650 | fi | |
28651 | { $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5 | |
28652 | $as_echo "$bash_cv_wexitstatus_offset" >&6; } | |
28653 | ||
28654 | cat >>confdefs.h <<_ACEOF | |
28655 | #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset | |
28656 | _ACEOF | |
28657 | ||
28658 | ||
28659 | ||
3185942a JA |
28660 | { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5 |
28661 | $as_echo_n "checking for the existence of strsignal... " >&6; } | |
f73dda09 | 28662 | if test "${bash_cv_have_strsignal+set}" = set; then |
3185942a | 28663 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 28664 | else |
f73dda09 | 28665 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28666 | /* confdefs.h. */ |
28667 | _ACEOF | |
28668 | cat confdefs.h >>conftest.$ac_ext | |
28669 | cat >>conftest.$ac_ext <<_ACEOF | |
28670 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28671 | #include <sys/types.h> |
28672 | #include <signal.h> | |
f73dda09 JA |
28673 | int |
28674 | main () | |
28675 | { | |
ccc6cda3 | 28676 | char *s = (char *)strsignal(2); |
f73dda09 JA |
28677 | ; |
28678 | return 0; | |
28679 | } | |
28680 | _ACEOF | |
28681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
28682 | if { (ac_try="$ac_link" |
28683 | case "(($ac_try" in | |
28684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28685 | *) ac_try_echo=$ac_try;; | |
28686 | esac | |
28687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28688 | $as_echo "$ac_try_echo") >&5 | |
28689 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 28690 | ac_status=$? |
0628567a JA |
28691 | grep -v '^ *+' conftest.er1 >conftest.err |
28692 | rm -f conftest.er1 | |
28693 | cat conftest.err >&5 | |
3185942a JA |
28694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28695 | (exit $ac_status); } && { | |
28696 | test -z "$ac_c_werror_flag" || | |
28697 | test ! -s conftest.err | |
28698 | } && test -s conftest$ac_exeext && { | |
28699 | test "$cross_compiling" = yes || | |
28700 | $as_test_x conftest$ac_exeext | |
28701 | }; then | |
ccc6cda3 JA |
28702 | bash_cv_have_strsignal=yes |
28703 | else | |
3185942a | 28704 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
28705 | sed 's/^/| /' conftest.$ac_ext >&5 |
28706 | ||
3185942a | 28707 | bash_cv_have_strsignal=no |
ccc6cda3 | 28708 | fi |
3185942a JA |
28709 | |
28710 | rm -rf conftest.dSYM | |
28711 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 28712 | conftest$ac_exeext conftest.$ac_ext |
ccc6cda3 JA |
28713 | fi |
28714 | ||
3185942a JA |
28715 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5 |
28716 | $as_echo "$bash_cv_have_strsignal" >&6; } | |
ccc6cda3 | 28717 | if test $bash_cv_have_strsignal = yes; then |
b80f6443 | 28718 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28719 | #define HAVE_STRSIGNAL 1 |
b80f6443 | 28720 | _ACEOF |
ccc6cda3 JA |
28721 | |
28722 | fi | |
28723 | ||
3185942a JA |
28724 | { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5 |
28725 | $as_echo_n "checking if opendir() opens non-directories... " >&6; } | |
f73dda09 | 28726 | if test "${bash_cv_opendir_not_robust+set}" = set; then |
3185942a | 28727 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28728 | else |
28729 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28730 | { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 |
28731 | $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
28732 | bash_cv_opendir_not_robust=no |
28733 | ||
ccc6cda3 | 28734 | else |
f73dda09 | 28735 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28736 | /* confdefs.h. */ |
28737 | _ACEOF | |
28738 | cat confdefs.h >>conftest.$ac_ext | |
28739 | cat >>conftest.$ac_ext <<_ACEOF | |
28740 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28741 | |
28742 | #include <stdio.h> | |
28743 | #include <sys/types.h> | |
28744 | #include <fcntl.h> | |
28745 | #ifdef HAVE_UNISTD_H | |
28746 | # include <unistd.h> | |
28747 | #endif /* HAVE_UNISTD_H */ | |
28748 | #if defined(HAVE_DIRENT_H) | |
28749 | # include <dirent.h> | |
28750 | #else | |
28751 | # define dirent direct | |
28752 | # ifdef HAVE_SYS_NDIR_H | |
28753 | # include <sys/ndir.h> | |
28754 | # endif /* SYSNDIR */ | |
28755 | # ifdef HAVE_SYS_DIR_H | |
28756 | # include <sys/dir.h> | |
28757 | # endif /* SYSDIR */ | |
28758 | # ifdef HAVE_NDIR_H | |
28759 | # include <ndir.h> | |
28760 | # endif | |
28761 | #endif /* HAVE_DIRENT_H */ | |
28762 | main() | |
28763 | { | |
28764 | DIR *dir; | |
bb70624e | 28765 | int fd, err; |
3185942a | 28766 | err = mkdir("bash-aclocal", 0700); |
bb70624e JA |
28767 | if (err < 0) { |
28768 | perror("mkdir"); | |
28769 | exit(1); | |
28770 | } | |
3185942a JA |
28771 | unlink("bash-aclocal/not_a_directory"); |
28772 | fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); | |
ccc6cda3 JA |
28773 | write(fd, "\n", 1); |
28774 | close(fd); | |
3185942a JA |
28775 | dir = opendir("bash-aclocal/not_a_directory"); |
28776 | unlink("bash-aclocal/not_a_directory"); | |
28777 | rmdir("bash-aclocal"); | |
ccc6cda3 JA |
28778 | exit (dir == 0); |
28779 | } | |
f73dda09 JA |
28780 | _ACEOF |
28781 | rm -f conftest$ac_exeext | |
3185942a JA |
28782 | if { (ac_try="$ac_link" |
28783 | case "(($ac_try" in | |
28784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28785 | *) ac_try_echo=$ac_try;; | |
28786 | esac | |
28787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28788 | $as_echo "$ac_try_echo") >&5 | |
28789 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28790 | ac_status=$? |
3185942a | 28791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28793 | { (case "(($ac_try" in |
28794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28795 | *) ac_try_echo=$ac_try;; | |
28796 | esac | |
28797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28798 | $as_echo "$ac_try_echo") >&5 | |
28799 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28800 | ac_status=$? |
3185942a | 28801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28802 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
28803 | bash_cv_opendir_not_robust=yes |
28804 | else | |
3185942a JA |
28805 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28806 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 |
28808 | ||
b80f6443 | 28809 | ( exit $ac_status ) |
f73dda09 | 28810 | bash_cv_opendir_not_robust=no |
ccc6cda3 | 28811 | fi |
3185942a JA |
28812 | rm -rf conftest.dSYM |
28813 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 28814 | fi |
3185942a JA |
28815 | |
28816 | ||
ccc6cda3 JA |
28817 | fi |
28818 | ||
3185942a JA |
28819 | { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5 |
28820 | $as_echo "$bash_cv_opendir_not_robust" >&6; } | |
ccc6cda3 | 28821 | if test $bash_cv_opendir_not_robust = yes; then |
b80f6443 | 28822 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 28823 | #define OPENDIR_NOT_ROBUST 1 |
b80f6443 | 28824 | _ACEOF |
ccc6cda3 JA |
28825 | |
28826 | fi | |
28827 | ||
3185942a JA |
28828 | { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5 |
28829 | $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } | |
f73dda09 | 28830 | if test "${bash_cv_ulimit_maxfds+set}" = set; then |
3185942a | 28831 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28832 | else |
28833 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28834 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 |
28835 | $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
28836 | bash_cv_ulimit_maxfds=no |
28837 | ||
ccc6cda3 | 28838 | else |
f73dda09 | 28839 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
28840 | /* confdefs.h. */ |
28841 | _ACEOF | |
28842 | cat confdefs.h >>conftest.$ac_ext | |
28843 | cat >>conftest.$ac_ext <<_ACEOF | |
28844 | /* end confdefs.h. */ | |
ccc6cda3 JA |
28845 | |
28846 | main() | |
28847 | { | |
28848 | long maxfds = ulimit(4, 0L); | |
28849 | exit (maxfds == -1L); | |
28850 | } | |
28851 | ||
f73dda09 JA |
28852 | _ACEOF |
28853 | rm -f conftest$ac_exeext | |
3185942a JA |
28854 | if { (ac_try="$ac_link" |
28855 | case "(($ac_try" in | |
28856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28857 | *) ac_try_echo=$ac_try;; | |
28858 | esac | |
28859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28860 | $as_echo "$ac_try_echo") >&5 | |
28861 | (eval "$ac_link") 2>&5 | |
f73dda09 | 28862 | ac_status=$? |
3185942a | 28863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
28865 | { (case "(($ac_try" in |
28866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28867 | *) ac_try_echo=$ac_try;; | |
28868 | esac | |
28869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28870 | $as_echo "$ac_try_echo") >&5 | |
28871 | (eval "$ac_try") 2>&5 | |
f73dda09 | 28872 | ac_status=$? |
3185942a | 28873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 28874 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
28875 | bash_cv_ulimit_maxfds=yes |
28876 | else | |
3185942a JA |
28877 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28878 | $as_echo "$as_me: failed program was:" >&5 | |
28879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28880 | ||
28881 | ( exit $ac_status ) | |
28882 | bash_cv_ulimit_maxfds=no | |
28883 | fi | |
28884 | rm -rf conftest.dSYM | |
28885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
28886 | fi | |
28887 | ||
28888 | ||
28889 | fi | |
28890 | ||
28891 | { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5 | |
28892 | $as_echo "$bash_cv_ulimit_maxfds" >&6; } | |
28893 | if test $bash_cv_ulimit_maxfds = yes; then | |
28894 | cat >>confdefs.h <<\_ACEOF | |
28895 | #define ULIMIT_MAXFDS 1 | |
28896 | _ACEOF | |
28897 | ||
28898 | fi | |
28899 | ||
28900 | ||
28901 | ||
28902 | ||
28903 | ||
28904 | ||
28905 | ||
28906 | ||
28907 | ||
28908 | ||
28909 | ||
28910 | ||
28911 | ||
28912 | ||
28913 | ||
28914 | ||
28915 | ||
28916 | ||
28917 | { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5 | |
28918 | $as_echo_n "checking whether fpurge is declared... " >&6; } | |
28919 | if test "${ac_cv_have_decl_fpurge+set}" = set; then | |
28920 | $as_echo_n "(cached) " >&6 | |
28921 | else | |
28922 | cat >conftest.$ac_ext <<_ACEOF | |
28923 | /* confdefs.h. */ | |
28924 | _ACEOF | |
28925 | cat confdefs.h >>conftest.$ac_ext | |
28926 | cat >>conftest.$ac_ext <<_ACEOF | |
28927 | /* end confdefs.h. */ | |
28928 | #include <stdio.h> | |
28929 | ||
28930 | int | |
28931 | main () | |
28932 | { | |
28933 | #ifndef fpurge | |
28934 | (void) fpurge; | |
28935 | #endif | |
28936 | ||
28937 | ; | |
28938 | return 0; | |
28939 | } | |
28940 | _ACEOF | |
28941 | rm -f conftest.$ac_objext | |
28942 | if { (ac_try="$ac_compile" | |
28943 | case "(($ac_try" in | |
28944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28945 | *) ac_try_echo=$ac_try;; | |
28946 | esac | |
28947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
28948 | $as_echo "$ac_try_echo") >&5 | |
28949 | (eval "$ac_compile") 2>conftest.er1 | |
28950 | ac_status=$? | |
28951 | grep -v '^ *+' conftest.er1 >conftest.err | |
28952 | rm -f conftest.er1 | |
28953 | cat conftest.err >&5 | |
28954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28955 | (exit $ac_status); } && { | |
28956 | test -z "$ac_c_werror_flag" || | |
28957 | test ! -s conftest.err | |
28958 | } && test -s conftest.$ac_objext; then | |
28959 | ac_cv_have_decl_fpurge=yes | |
28960 | else | |
28961 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
28962 | sed 's/^/| /' conftest.$ac_ext >&5 |
28963 | ||
3185942a | 28964 | ac_cv_have_decl_fpurge=no |
ccc6cda3 | 28965 | fi |
3185942a JA |
28966 | |
28967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 28968 | fi |
3185942a JA |
28969 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5 |
28970 | $as_echo "$ac_cv_have_decl_fpurge" >&6; } | |
28971 | if test "x$ac_cv_have_decl_fpurge" = x""yes; then | |
ccc6cda3 | 28972 | |
3185942a JA |
28973 | cat >>confdefs.h <<_ACEOF |
28974 | #define HAVE_DECL_FPURGE 1 | |
28975 | _ACEOF | |
28976 | ||
28977 | ||
28978 | else | |
28979 | cat >>confdefs.h <<_ACEOF | |
28980 | #define HAVE_DECL_FPURGE 0 | |
b80f6443 | 28981 | _ACEOF |
ccc6cda3 | 28982 | |
3185942a | 28983 | |
ccc6cda3 JA |
28984 | fi |
28985 | ||
3185942a JA |
28986 | |
28987 | ||
28988 | { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5 | |
28989 | $as_echo_n "checking to see if getenv can be redefined... " >&6; } | |
f73dda09 | 28990 | if test "${bash_cv_getenv_redef+set}" = set; then |
3185942a | 28991 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
28992 | else |
28993 | if test "$cross_compiling" = yes; then | |
3185942a JA |
28994 | { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 |
28995 | $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} | |
cce855bc JA |
28996 | bash_cv_getenv_redef=yes |
28997 | ||
ccc6cda3 | 28998 | else |
f73dda09 | 28999 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29000 | /* confdefs.h. */ |
29001 | _ACEOF | |
29002 | cat confdefs.h >>conftest.$ac_ext | |
29003 | cat >>conftest.$ac_ext <<_ACEOF | |
29004 | /* end confdefs.h. */ | |
ccc6cda3 JA |
29005 | |
29006 | #ifdef HAVE_UNISTD_H | |
29007 | # include <unistd.h> | |
29008 | #endif | |
29009 | #ifndef __STDC__ | |
29010 | # ifndef const | |
29011 | # define const | |
29012 | # endif | |
29013 | #endif | |
29014 | char * | |
29015 | getenv (name) | |
29016 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) | |
29017 | const char *name; | |
29018 | #else | |
29019 | char const *name; | |
29020 | #endif /* !__linux__ && !__bsdi__ && !convex */ | |
29021 | { | |
29022 | return "42"; | |
29023 | } | |
29024 | main() | |
29025 | { | |
29026 | char *s; | |
29027 | /* The next allows this program to run, but does not allow bash to link | |
29028 | when it redefines getenv. I'm not really interested in figuring out | |
29029 | why not. */ | |
29030 | #if defined (NeXT) | |
29031 | exit(1); | |
29032 | #endif | |
29033 | s = getenv("ABCDE"); | |
29034 | exit(s == 0); /* force optimizer to leave getenv in */ | |
29035 | } | |
29036 | ||
f73dda09 JA |
29037 | _ACEOF |
29038 | rm -f conftest$ac_exeext | |
3185942a JA |
29039 | if { (ac_try="$ac_link" |
29040 | case "(($ac_try" in | |
29041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29042 | *) ac_try_echo=$ac_try;; | |
29043 | esac | |
29044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29045 | $as_echo "$ac_try_echo") >&5 | |
29046 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29047 | ac_status=$? |
3185942a | 29048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
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_try") 2>&5 | |
f73dda09 | 29057 | ac_status=$? |
3185942a | 29058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29059 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
29060 | bash_cv_getenv_redef=yes |
29061 | else | |
3185942a JA |
29062 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29063 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29064 | sed 's/^/| /' conftest.$ac_ext >&5 |
29065 | ||
b80f6443 | 29066 | ( exit $ac_status ) |
f73dda09 | 29067 | bash_cv_getenv_redef=no |
ccc6cda3 | 29068 | fi |
3185942a JA |
29069 | rm -rf conftest.dSYM |
29070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 29071 | fi |
3185942a JA |
29072 | |
29073 | ||
ccc6cda3 JA |
29074 | fi |
29075 | ||
3185942a JA |
29076 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5 |
29077 | $as_echo "$bash_cv_getenv_redef" >&6; } | |
ccc6cda3 | 29078 | if test $bash_cv_getenv_redef = yes; then |
b80f6443 | 29079 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29080 | #define CAN_REDEFINE_GETENV 1 |
b80f6443 | 29081 | _ACEOF |
ccc6cda3 JA |
29082 | |
29083 | fi | |
29084 | ||
7117c2d2 | 29085 | if test "$ac_cv_func_getcwd" = "yes"; then |
3185942a JA |
29086 | { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5 |
29087 | $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } | |
b80f6443 | 29088 | if test "${bash_cv_getcwd_malloc+set}" = set; then |
3185942a | 29089 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
29090 | else |
29091 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29092 | { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 |
29093 | $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} | |
b80f6443 | 29094 | bash_cv_getcwd_malloc=no |
cce855bc | 29095 | |
ccc6cda3 | 29096 | else |
f73dda09 | 29097 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29098 | /* confdefs.h. */ |
29099 | _ACEOF | |
29100 | cat confdefs.h >>conftest.$ac_ext | |
29101 | cat >>conftest.$ac_ext <<_ACEOF | |
29102 | /* end confdefs.h. */ | |
ccc6cda3 JA |
29103 | |
29104 | #include <stdio.h> | |
29105 | #ifdef HAVE_UNISTD_H | |
29106 | #include <unistd.h> | |
29107 | #endif | |
29108 | ||
ccc6cda3 JA |
29109 | main() |
29110 | { | |
b80f6443 JA |
29111 | char *xpwd; |
29112 | xpwd = getcwd(0, 0); | |
29113 | exit (xpwd == 0); | |
ccc6cda3 JA |
29114 | } |
29115 | ||
f73dda09 JA |
29116 | _ACEOF |
29117 | rm -f conftest$ac_exeext | |
3185942a JA |
29118 | if { (ac_try="$ac_link" |
29119 | case "(($ac_try" in | |
29120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29121 | *) ac_try_echo=$ac_try;; | |
29122 | esac | |
29123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29124 | $as_echo "$ac_try_echo") >&5 | |
29125 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29126 | ac_status=$? |
3185942a | 29127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
29129 | { (case "(($ac_try" in |
29130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29131 | *) ac_try_echo=$ac_try;; | |
29132 | esac | |
29133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29134 | $as_echo "$ac_try_echo") >&5 | |
29135 | (eval "$ac_try") 2>&5 | |
f73dda09 | 29136 | ac_status=$? |
3185942a | 29137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29138 | (exit $ac_status); }; }; then |
b80f6443 | 29139 | bash_cv_getcwd_malloc=yes |
ccc6cda3 | 29140 | else |
3185942a JA |
29141 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29142 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29143 | sed 's/^/| /' conftest.$ac_ext >&5 |
29144 | ||
b80f6443 JA |
29145 | ( exit $ac_status ) |
29146 | bash_cv_getcwd_malloc=no | |
ccc6cda3 | 29147 | fi |
3185942a JA |
29148 | rm -rf conftest.dSYM |
29149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 29150 | fi |
3185942a JA |
29151 | |
29152 | ||
ccc6cda3 JA |
29153 | fi |
29154 | ||
3185942a JA |
29155 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5 |
29156 | $as_echo "$bash_cv_getcwd_malloc" >&6; } | |
b80f6443 JA |
29157 | if test $bash_cv_getcwd_malloc = no; then |
29158 | cat >>confdefs.h <<\_ACEOF | |
ccc6cda3 | 29159 | #define GETCWD_BROKEN 1 |
b80f6443 | 29160 | _ACEOF |
ccc6cda3 | 29161 | |
3185942a | 29162 | case " $LIBOBJS " in |
0628567a | 29163 | *" getcwd.$ac_objext "* ) ;; |
3185942a JA |
29164 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
29165 | ;; | |
0628567a JA |
29166 | esac |
29167 | ||
ccc6cda3 JA |
29168 | fi |
29169 | ||
ccc6cda3 JA |
29170 | fi |
29171 | ||
3185942a JA |
29172 | { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
29173 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
f73dda09 | 29174 | if test "${bash_cv_func_sigsetjmp+set}" = set; then |
3185942a | 29175 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
29176 | else |
29177 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29178 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
29179 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
29180 | bash_cv_func_sigsetjmp=missing |
29181 | ||
ccc6cda3 | 29182 | else |
f73dda09 | 29183 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29184 | /* confdefs.h. */ |
29185 | _ACEOF | |
29186 | cat confdefs.h >>conftest.$ac_ext | |
29187 | cat >>conftest.$ac_ext <<_ACEOF | |
29188 | /* end confdefs.h. */ | |
ccc6cda3 JA |
29189 | |
29190 | #ifdef HAVE_UNISTD_H | |
29191 | #include <unistd.h> | |
29192 | #endif | |
29193 | #include <sys/types.h> | |
29194 | #include <signal.h> | |
29195 | #include <setjmp.h> | |
29196 | ||
29197 | main() | |
29198 | { | |
29199 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
29200 | exit (1); | |
29201 | #else | |
29202 | ||
29203 | int code; | |
29204 | sigset_t set, oset; | |
29205 | sigjmp_buf xx; | |
29206 | ||
29207 | /* get the mask */ | |
29208 | sigemptyset(&set); | |
29209 | sigemptyset(&oset); | |
29210 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
29211 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
29212 | ||
29213 | /* save it */ | |
29214 | code = sigsetjmp(xx, 1); | |
29215 | if (code) | |
29216 | exit(0); /* could get sigmask and compare to oset here. */ | |
29217 | ||
29218 | /* change it */ | |
29219 | sigaddset(&set, SIGINT); | |
29220 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
29221 | ||
29222 | /* and siglongjmp */ | |
29223 | siglongjmp(xx, 10); | |
29224 | exit(1); | |
29225 | #endif | |
29226 | } | |
f73dda09 JA |
29227 | _ACEOF |
29228 | rm -f conftest$ac_exeext | |
3185942a JA |
29229 | if { (ac_try="$ac_link" |
29230 | case "(($ac_try" in | |
29231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29232 | *) ac_try_echo=$ac_try;; | |
29233 | esac | |
29234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29235 | $as_echo "$ac_try_echo") >&5 | |
29236 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29237 | ac_status=$? |
3185942a | 29238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
29240 | { (case "(($ac_try" in |
29241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29242 | *) ac_try_echo=$ac_try;; | |
29243 | esac | |
29244 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29245 | $as_echo "$ac_try_echo") >&5 | |
29246 | (eval "$ac_try") 2>&5 | |
f73dda09 | 29247 | ac_status=$? |
3185942a | 29248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29249 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
29250 | bash_cv_func_sigsetjmp=present |
29251 | else | |
3185942a JA |
29252 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29253 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29254 | sed 's/^/| /' conftest.$ac_ext >&5 |
29255 | ||
b80f6443 | 29256 | ( exit $ac_status ) |
f73dda09 | 29257 | bash_cv_func_sigsetjmp=missing |
ccc6cda3 | 29258 | fi |
3185942a JA |
29259 | rm -rf conftest.dSYM |
29260 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 29261 | fi |
3185942a JA |
29262 | |
29263 | ||
ccc6cda3 JA |
29264 | fi |
29265 | ||
3185942a JA |
29266 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
29267 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
ccc6cda3 | 29268 | if test $bash_cv_func_sigsetjmp = present; then |
b80f6443 | 29269 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29270 | #define HAVE_POSIX_SIGSETJMP 1 |
b80f6443 | 29271 | _ACEOF |
ccc6cda3 JA |
29272 | |
29273 | fi | |
29274 | ||
b80f6443 | 29275 | |
3185942a JA |
29276 | { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 |
29277 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
f73dda09 | 29278 | if test "${bash_cv_func_strcoll_broken+set}" = set; then |
3185942a | 29279 | $as_echo_n "(cached) " >&6 |
d166f048 JA |
29280 | else |
29281 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29282 | { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
29283 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
29284 | bash_cv_func_strcoll_broken=no |
29285 | ||
d166f048 | 29286 | else |
f73dda09 | 29287 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29288 | /* confdefs.h. */ |
29289 | _ACEOF | |
29290 | cat confdefs.h >>conftest.$ac_ext | |
29291 | cat >>conftest.$ac_ext <<_ACEOF | |
29292 | /* end confdefs.h. */ | |
d166f048 JA |
29293 | |
29294 | #include <stdio.h> | |
29295 | #if defined (HAVE_LOCALE_H) | |
29296 | #include <locale.h> | |
29297 | #endif | |
29298 | ||
29299 | main(c, v) | |
29300 | int c; | |
29301 | char *v[]; | |
29302 | { | |
29303 | int r1, r2; | |
29304 | char *deflocale, *defcoll; | |
29305 | ||
29306 | #ifdef HAVE_SETLOCALE | |
29307 | deflocale = setlocale(LC_ALL, ""); | |
29308 | defcoll = setlocale(LC_COLLATE, ""); | |
29309 | #endif | |
29310 | ||
29311 | #ifdef HAVE_STRCOLL | |
29312 | /* These two values are taken from tests/glob-test. */ | |
29313 | r1 = strcoll("abd", "aXd"); | |
29314 | #else | |
29315 | r1 = 0; | |
29316 | #endif | |
29317 | r2 = strcmp("abd", "aXd"); | |
29318 | ||
29319 | /* These two should both be greater than 0. It is permissible for | |
29320 | a system to return different values, as long as the sign is the | |
29321 | same. */ | |
29322 | ||
29323 | /* Exit with 1 (failure) if these two values are both > 0, since | |
29324 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
29325 | in the default locale. */ | |
29326 | exit (r1 > 0 && r2 > 0); | |
29327 | } | |
29328 | ||
f73dda09 JA |
29329 | _ACEOF |
29330 | rm -f conftest$ac_exeext | |
3185942a JA |
29331 | if { (ac_try="$ac_link" |
29332 | case "(($ac_try" in | |
29333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29334 | *) ac_try_echo=$ac_try;; | |
29335 | esac | |
29336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29337 | $as_echo "$ac_try_echo") >&5 | |
29338 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29339 | ac_status=$? |
3185942a | 29340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
29342 | { (case "(($ac_try" in |
29343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29344 | *) ac_try_echo=$ac_try;; | |
29345 | esac | |
29346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29347 | $as_echo "$ac_try_echo") >&5 | |
29348 | (eval "$ac_try") 2>&5 | |
f73dda09 | 29349 | ac_status=$? |
3185942a | 29350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29351 | (exit $ac_status); }; }; then |
d166f048 JA |
29352 | bash_cv_func_strcoll_broken=yes |
29353 | else | |
3185942a JA |
29354 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29355 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29356 | sed 's/^/| /' conftest.$ac_ext >&5 |
29357 | ||
b80f6443 | 29358 | ( exit $ac_status ) |
f73dda09 | 29359 | bash_cv_func_strcoll_broken=no |
d166f048 | 29360 | fi |
3185942a JA |
29361 | rm -rf conftest.dSYM |
29362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d166f048 | 29363 | fi |
3185942a JA |
29364 | |
29365 | ||
d166f048 JA |
29366 | fi |
29367 | ||
3185942a JA |
29368 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
29369 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
d166f048 | 29370 | if test $bash_cv_func_strcoll_broken = yes; then |
b80f6443 | 29371 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 29372 | #define STRCOLL_BROKEN 1 |
b80f6443 | 29373 | _ACEOF |
d166f048 JA |
29374 | |
29375 | fi | |
29376 | ||
b80f6443 JA |
29377 | |
29378 | ||
0001803f CR |
29379 | |
29380 | ||
29381 | ||
29382 | ||
29383 | ||
29384 | ||
29385 | ||
29386 | if test X$ac_cv_func_snprintf = Xyes; then | |
29387 | { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5 | |
29388 | $as_echo_n "checking for standard-conformant snprintf... " >&6; } | |
29389 | if test "${bash_cv_func_snprintf+set}" = set; then | |
29390 | $as_echo_n "(cached) " >&6 | |
29391 | else | |
29392 | if test "$cross_compiling" = yes; then | |
29393 | { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5 | |
29394 | $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;} | |
29395 | bash_cv_func_snprintf=yes | |
29396 | ||
29397 | else | |
29398 | cat >conftest.$ac_ext <<_ACEOF | |
29399 | /* confdefs.h. */ | |
29400 | _ACEOF | |
29401 | cat confdefs.h >>conftest.$ac_ext | |
29402 | cat >>conftest.$ac_ext <<_ACEOF | |
29403 | /* end confdefs.h. */ | |
29404 | ||
29405 | #include <stdio.h> | |
29406 | ||
29407 | main() | |
29408 | { | |
29409 | int n; | |
29410 | n = snprintf (0, 0, "%s", "0123456"); | |
29411 | exit(n != 7); | |
29412 | } | |
29413 | ||
29414 | _ACEOF | |
29415 | rm -f conftest$ac_exeext | |
29416 | if { (ac_try="$ac_link" | |
29417 | case "(($ac_try" in | |
29418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29419 | *) ac_try_echo=$ac_try;; | |
29420 | esac | |
29421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29422 | $as_echo "$ac_try_echo") >&5 | |
29423 | (eval "$ac_link") 2>&5 | |
29424 | ac_status=$? | |
29425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29426 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
29427 | { (case "(($ac_try" in | |
29428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29429 | *) ac_try_echo=$ac_try;; | |
29430 | esac | |
29431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29432 | $as_echo "$ac_try_echo") >&5 | |
29433 | (eval "$ac_try") 2>&5 | |
29434 | ac_status=$? | |
29435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29436 | (exit $ac_status); }; }; then | |
29437 | bash_cv_func_snprintf=yes | |
29438 | else | |
29439 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
29440 | $as_echo "$as_me: failed program was:" >&5 | |
29441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29442 | ||
29443 | ( exit $ac_status ) | |
29444 | bash_cv_func_snprintf=no | |
29445 | fi | |
29446 | rm -rf conftest.dSYM | |
29447 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
29448 | fi | |
29449 | ||
29450 | ||
29451 | fi | |
29452 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5 | |
29453 | $as_echo "$bash_cv_func_snprintf" >&6; } | |
29454 | if test $bash_cv_func_snprintf = no; then | |
29455 | ac_cv_func_snprintf=no | |
29456 | fi | |
29457 | fi | |
29458 | if test $ac_cv_func_snprintf = no; then | |
29459 | ||
29460 | cat >>confdefs.h <<\_ACEOF | |
29461 | #define HAVE_SNPRINTF 0 | |
29462 | _ACEOF | |
29463 | ||
29464 | fi | |
29465 | ||
29466 | ||
29467 | ||
29468 | ||
29469 | ||
29470 | ||
29471 | ||
29472 | ||
29473 | ||
29474 | ||
29475 | if test X$ac_cv_func_vsnprintf = Xyes; then | |
29476 | { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5 | |
29477 | $as_echo_n "checking for standard-conformant vsnprintf... " >&6; } | |
29478 | if test "${bash_cv_func_vsnprintf+set}" = set; then | |
29479 | $as_echo_n "(cached) " >&6 | |
29480 | else | |
29481 | if test "$cross_compiling" = yes; then | |
29482 | { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5 | |
29483 | $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;} | |
29484 | bash_cv_func_vsnprintf=yes | |
29485 | ||
29486 | else | |
29487 | cat >conftest.$ac_ext <<_ACEOF | |
29488 | /* confdefs.h. */ | |
29489 | _ACEOF | |
29490 | cat confdefs.h >>conftest.$ac_ext | |
29491 | cat >>conftest.$ac_ext <<_ACEOF | |
29492 | /* end confdefs.h. */ | |
29493 | ||
29494 | #if HAVE_STDARG_H | |
29495 | #include <stdarg.h> | |
29496 | #else | |
29497 | #include <varargs.h> | |
29498 | #endif | |
29499 | #include <stdio.h> | |
29500 | #include <stdlib.h> | |
29501 | ||
29502 | static int | |
29503 | #if HAVE_STDARG_H | |
29504 | foo(const char *fmt, ...) | |
29505 | #else | |
29506 | foo(format, va_alist) | |
29507 | const char *format; | |
29508 | va_dcl | |
29509 | #endif | |
29510 | { | |
29511 | va_list args; | |
29512 | int n; | |
29513 | ||
29514 | #if HAVE_STDARG_H | |
29515 | va_start(args, fmt); | |
29516 | #else | |
29517 | va_start(args); | |
29518 | #endif | |
29519 | n = vsnprintf(0, 0, fmt, args); | |
29520 | va_end (args); | |
29521 | return n; | |
29522 | } | |
29523 | ||
29524 | main() | |
29525 | { | |
29526 | int n; | |
29527 | n = foo("%s", "0123456"); | |
29528 | exit(n != 7); | |
29529 | } | |
29530 | ||
29531 | _ACEOF | |
29532 | rm -f conftest$ac_exeext | |
29533 | if { (ac_try="$ac_link" | |
29534 | case "(($ac_try" in | |
29535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29536 | *) ac_try_echo=$ac_try;; | |
29537 | esac | |
29538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29539 | $as_echo "$ac_try_echo") >&5 | |
29540 | (eval "$ac_link") 2>&5 | |
29541 | ac_status=$? | |
29542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
29544 | { (case "(($ac_try" in | |
29545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29546 | *) ac_try_echo=$ac_try;; | |
29547 | esac | |
29548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29549 | $as_echo "$ac_try_echo") >&5 | |
29550 | (eval "$ac_try") 2>&5 | |
29551 | ac_status=$? | |
29552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29553 | (exit $ac_status); }; }; then | |
29554 | bash_cv_func_vsnprintf=yes | |
29555 | else | |
29556 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
29557 | $as_echo "$as_me: failed program was:" >&5 | |
29558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29559 | ||
29560 | ( exit $ac_status ) | |
29561 | bash_cv_func_vsnprintf=no | |
29562 | fi | |
29563 | rm -rf conftest.dSYM | |
29564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
29565 | fi | |
29566 | ||
29567 | ||
29568 | fi | |
29569 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5 | |
29570 | $as_echo "$bash_cv_func_vsnprintf" >&6; } | |
29571 | if test $bash_cv_func_vsnprintf = no; then | |
29572 | ac_cv_func_vsnprintf=no | |
29573 | fi | |
29574 | fi | |
29575 | if test $ac_cv_func_vsnprintf = no; then | |
29576 | ||
29577 | cat >>confdefs.h <<\_ACEOF | |
29578 | #define HAVE_VSNPRINTF 0 | |
29579 | _ACEOF | |
29580 | ||
29581 | fi | |
29582 | ||
29583 | ||
29584 | ||
7117c2d2 JA |
29585 | if test "$ac_cv_func_putenv" = "yes"; then |
29586 | ||
b80f6443 JA |
29587 | |
29588 | ||
3185942a JA |
29589 | { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5 |
29590 | $as_echo_n "checking for standard-conformant putenv declaration... " >&6; } | |
7117c2d2 | 29591 | if test "${bash_cv_std_putenv+set}" = set; then |
3185942a | 29592 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
29593 | else |
29594 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29595 | /* confdefs.h. */ |
29596 | _ACEOF | |
29597 | cat confdefs.h >>conftest.$ac_ext | |
29598 | cat >>conftest.$ac_ext <<_ACEOF | |
29599 | /* end confdefs.h. */ | |
7117c2d2 JA |
29600 | |
29601 | #if STDC_HEADERS | |
29602 | #include <stdlib.h> | |
29603 | #include <stddef.h> | |
29604 | #endif | |
29605 | #ifndef __STDC__ | |
29606 | # ifndef const | |
29607 | # define const | |
29608 | # endif | |
29609 | #endif | |
29610 | #ifdef PROTOTYPES | |
29611 | extern int putenv (char *); | |
29612 | #else | |
29613 | extern int putenv (); | |
29614 | #endif | |
29615 | ||
29616 | int | |
29617 | main () | |
29618 | { | |
29619 | return (putenv == 0); | |
29620 | ; | |
29621 | return 0; | |
29622 | } | |
29623 | _ACEOF | |
29624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29625 | if { (ac_try="$ac_link" |
29626 | case "(($ac_try" in | |
29627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29628 | *) ac_try_echo=$ac_try;; | |
29629 | esac | |
29630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29631 | $as_echo "$ac_try_echo") >&5 | |
29632 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 29633 | ac_status=$? |
0628567a JA |
29634 | grep -v '^ *+' conftest.er1 >conftest.err |
29635 | rm -f conftest.er1 | |
29636 | cat conftest.err >&5 | |
3185942a JA |
29637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29638 | (exit $ac_status); } && { | |
29639 | test -z "$ac_c_werror_flag" || | |
29640 | test ! -s conftest.err | |
29641 | } && test -s conftest$ac_exeext && { | |
29642 | test "$cross_compiling" = yes || | |
29643 | $as_test_x conftest$ac_exeext | |
29644 | }; then | |
7117c2d2 JA |
29645 | bash_cv_std_putenv=yes |
29646 | else | |
3185942a | 29647 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29648 | sed 's/^/| /' conftest.$ac_ext >&5 |
29649 | ||
3185942a | 29650 | bash_cv_std_putenv=no |
7117c2d2 JA |
29651 | |
29652 | fi | |
3185942a JA |
29653 | |
29654 | rm -rf conftest.dSYM | |
29655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29656 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 29657 | fi |
3185942a JA |
29658 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5 |
29659 | $as_echo "$bash_cv_std_putenv" >&6; } | |
7117c2d2 | 29660 | if test $bash_cv_std_putenv = yes; then |
b80f6443 | 29661 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 29662 | #define HAVE_STD_PUTENV 1 |
b80f6443 | 29663 | _ACEOF |
7117c2d2 JA |
29664 | |
29665 | fi | |
29666 | ||
29667 | else | |
b80f6443 | 29668 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 29669 | #define HAVE_STD_PUTENV 1 |
b80f6443 | 29670 | _ACEOF |
7117c2d2 JA |
29671 | |
29672 | fi | |
29673 | if test "$ac_cv_func_unsetenv" = "yes"; then | |
29674 | ||
b80f6443 JA |
29675 | |
29676 | ||
3185942a JA |
29677 | { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5 |
29678 | $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } | |
7117c2d2 | 29679 | if test "${bash_cv_std_unsetenv+set}" = set; then |
3185942a | 29680 | $as_echo_n "(cached) " >&6 |
7117c2d2 JA |
29681 | else |
29682 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29683 | /* confdefs.h. */ |
29684 | _ACEOF | |
29685 | cat confdefs.h >>conftest.$ac_ext | |
29686 | cat >>conftest.$ac_ext <<_ACEOF | |
29687 | /* end confdefs.h. */ | |
7117c2d2 JA |
29688 | |
29689 | #if STDC_HEADERS | |
29690 | #include <stdlib.h> | |
29691 | #include <stddef.h> | |
29692 | #endif | |
29693 | #ifndef __STDC__ | |
29694 | # ifndef const | |
29695 | # define const | |
29696 | # endif | |
29697 | #endif | |
29698 | #ifdef PROTOTYPES | |
29699 | extern int unsetenv (const char *); | |
29700 | #else | |
29701 | extern int unsetenv (); | |
29702 | #endif | |
29703 | ||
29704 | int | |
29705 | main () | |
29706 | { | |
29707 | return (unsetenv == 0); | |
29708 | ; | |
29709 | return 0; | |
29710 | } | |
29711 | _ACEOF | |
29712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
29713 | if { (ac_try="$ac_link" |
29714 | case "(($ac_try" in | |
29715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29716 | *) ac_try_echo=$ac_try;; | |
29717 | esac | |
29718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29719 | $as_echo "$ac_try_echo") >&5 | |
29720 | (eval "$ac_link") 2>conftest.er1 | |
7117c2d2 | 29721 | ac_status=$? |
0628567a JA |
29722 | grep -v '^ *+' conftest.er1 >conftest.err |
29723 | rm -f conftest.er1 | |
29724 | cat conftest.err >&5 | |
3185942a JA |
29725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29726 | (exit $ac_status); } && { | |
29727 | test -z "$ac_c_werror_flag" || | |
29728 | test ! -s conftest.err | |
29729 | } && test -s conftest$ac_exeext && { | |
29730 | test "$cross_compiling" = yes || | |
29731 | $as_test_x conftest$ac_exeext | |
29732 | }; then | |
7117c2d2 JA |
29733 | bash_cv_std_unsetenv=yes |
29734 | else | |
3185942a | 29735 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
29736 | sed 's/^/| /' conftest.$ac_ext >&5 |
29737 | ||
3185942a | 29738 | bash_cv_std_unsetenv=no |
7117c2d2 JA |
29739 | |
29740 | fi | |
3185942a JA |
29741 | |
29742 | rm -rf conftest.dSYM | |
29743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 29744 | conftest$ac_exeext conftest.$ac_ext |
7117c2d2 | 29745 | fi |
3185942a JA |
29746 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5 |
29747 | $as_echo "$bash_cv_std_unsetenv" >&6; } | |
7117c2d2 | 29748 | if test $bash_cv_std_unsetenv = yes; then |
b80f6443 | 29749 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 29750 | #define HAVE_STD_UNSETENV 1 |
b80f6443 | 29751 | _ACEOF |
7117c2d2 JA |
29752 | |
29753 | fi | |
29754 | ||
29755 | else | |
b80f6443 | 29756 | cat >>confdefs.h <<\_ACEOF |
7117c2d2 | 29757 | #define HAVE_STD_UNSETENV 1 |
b80f6443 | 29758 | _ACEOF |
7117c2d2 JA |
29759 | |
29760 | fi | |
29761 | ||
3185942a JA |
29762 | { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5 |
29763 | $as_echo_n "checking for printf floating point output in hex notation... " >&6; } | |
f73dda09 | 29764 | if test "${bash_cv_printf_a_format+set}" = set; then |
3185942a | 29765 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
29766 | else |
29767 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29768 | { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 |
29769 | $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} | |
f73dda09 JA |
29770 | bash_cv_printf_a_format=no |
29771 | ||
29772 | else | |
29773 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
29774 | /* confdefs.h. */ |
29775 | _ACEOF | |
29776 | cat confdefs.h >>conftest.$ac_ext | |
29777 | cat >>conftest.$ac_ext <<_ACEOF | |
29778 | /* end confdefs.h. */ | |
f73dda09 JA |
29779 | |
29780 | #include <stdio.h> | |
29781 | #include <string.h> | |
29782 | ||
29783 | int | |
29784 | main() | |
29785 | { | |
29786 | double y = 0.0; | |
29787 | char abuf[1024]; | |
29788 | ||
29789 | sprintf(abuf, "%A", y); | |
29790 | exit(strchr(abuf, 'P') == (char *)0); | |
29791 | } | |
29792 | ||
29793 | _ACEOF | |
29794 | rm -f conftest$ac_exeext | |
3185942a JA |
29795 | if { (ac_try="$ac_link" |
29796 | case "(($ac_try" in | |
29797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29798 | *) ac_try_echo=$ac_try;; | |
29799 | esac | |
29800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29801 | $as_echo "$ac_try_echo") >&5 | |
29802 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29803 | ac_status=$? |
3185942a | 29804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
29806 | { (case "(($ac_try" in |
29807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29808 | *) ac_try_echo=$ac_try;; | |
29809 | esac | |
29810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29811 | $as_echo "$ac_try_echo") >&5 | |
29812 | (eval "$ac_try") 2>&5 | |
f73dda09 | 29813 | ac_status=$? |
3185942a | 29814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 JA |
29815 | (exit $ac_status); }; }; then |
29816 | bash_cv_printf_a_format=yes | |
29817 | else | |
3185942a JA |
29818 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29819 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29820 | sed 's/^/| /' conftest.$ac_ext >&5 |
29821 | ||
b80f6443 | 29822 | ( exit $ac_status ) |
f73dda09 JA |
29823 | bash_cv_printf_a_format=no |
29824 | fi | |
3185942a JA |
29825 | rm -rf conftest.dSYM |
29826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f73dda09 | 29827 | fi |
3185942a JA |
29828 | |
29829 | ||
f73dda09 | 29830 | fi |
d166f048 | 29831 | |
3185942a JA |
29832 | { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5 |
29833 | $as_echo "$bash_cv_printf_a_format" >&6; } | |
f73dda09 | 29834 | if test $bash_cv_printf_a_format = yes; then |
b80f6443 | 29835 | cat >>confdefs.h <<\_ACEOF |
f73dda09 | 29836 | #define HAVE_PRINTF_A_FORMAT 1 |
b80f6443 | 29837 | _ACEOF |
d166f048 | 29838 | |
f73dda09 | 29839 | fi |
ccc6cda3 | 29840 | |
b80f6443 JA |
29841 | |
29842 | ||
29843 | ||
3185942a JA |
29844 | { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 |
29845 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
f73dda09 | 29846 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then |
3185942a | 29847 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
29848 | else |
29849 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29850 | { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
29851 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
cce855bc JA |
29852 | bash_cv_must_reinstall_sighandlers=no |
29853 | ||
ccc6cda3 | 29854 | else |
f73dda09 | 29855 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29856 | /* confdefs.h. */ |
29857 | _ACEOF | |
29858 | cat confdefs.h >>conftest.$ac_ext | |
29859 | cat >>conftest.$ac_ext <<_ACEOF | |
29860 | /* end confdefs.h. */ | |
ccc6cda3 JA |
29861 | |
29862 | #include <signal.h> | |
29863 | #ifdef HAVE_UNISTD_H | |
29864 | #include <unistd.h> | |
29865 | #endif | |
29866 | ||
29867 | typedef RETSIGTYPE sigfunc(); | |
29868 | ||
29869 | int nsigint; | |
29870 | ||
29871 | #ifdef HAVE_POSIX_SIGNALS | |
29872 | sigfunc * | |
29873 | set_signal_handler(sig, handler) | |
29874 | int sig; | |
29875 | sigfunc *handler; | |
29876 | { | |
29877 | struct sigaction act, oact; | |
29878 | act.sa_handler = handler; | |
29879 | act.sa_flags = 0; | |
29880 | sigemptyset (&act.sa_mask); | |
29881 | sigemptyset (&oact.sa_mask); | |
29882 | sigaction (sig, &act, &oact); | |
29883 | return (oact.sa_handler); | |
29884 | } | |
29885 | #else | |
29886 | #define set_signal_handler(s, h) signal(s, h) | |
29887 | #endif | |
29888 | ||
29889 | RETSIGTYPE | |
29890 | sigint(s) | |
29891 | int s; | |
29892 | { | |
29893 | nsigint++; | |
29894 | } | |
29895 | ||
29896 | main() | |
29897 | { | |
29898 | nsigint = 0; | |
29899 | set_signal_handler(SIGINT, sigint); | |
29900 | kill((int)getpid(), SIGINT); | |
29901 | kill((int)getpid(), SIGINT); | |
29902 | exit(nsigint != 2); | |
29903 | } | |
29904 | ||
f73dda09 JA |
29905 | _ACEOF |
29906 | rm -f conftest$ac_exeext | |
3185942a JA |
29907 | if { (ac_try="$ac_link" |
29908 | case "(($ac_try" in | |
29909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29910 | *) ac_try_echo=$ac_try;; | |
29911 | esac | |
29912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29913 | $as_echo "$ac_try_echo") >&5 | |
29914 | (eval "$ac_link") 2>&5 | |
f73dda09 | 29915 | ac_status=$? |
3185942a | 29916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29917 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
29918 | { (case "(($ac_try" in |
29919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29920 | *) ac_try_echo=$ac_try;; | |
29921 | esac | |
29922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
29923 | $as_echo "$ac_try_echo") >&5 | |
29924 | (eval "$ac_try") 2>&5 | |
f73dda09 | 29925 | ac_status=$? |
3185942a | 29926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 29927 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
29928 | bash_cv_must_reinstall_sighandlers=no |
29929 | else | |
3185942a JA |
29930 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29931 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
29932 | sed 's/^/| /' conftest.$ac_ext >&5 |
29933 | ||
b80f6443 | 29934 | ( exit $ac_status ) |
f73dda09 | 29935 | bash_cv_must_reinstall_sighandlers=yes |
ccc6cda3 | 29936 | fi |
3185942a JA |
29937 | rm -rf conftest.dSYM |
29938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 29939 | fi |
3185942a JA |
29940 | |
29941 | ||
ccc6cda3 JA |
29942 | fi |
29943 | ||
3185942a JA |
29944 | { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
29945 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
ccc6cda3 | 29946 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
b80f6443 | 29947 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 29948 | #define MUST_REINSTALL_SIGHANDLERS 1 |
b80f6443 | 29949 | _ACEOF |
ccc6cda3 JA |
29950 | |
29951 | fi | |
29952 | ||
b80f6443 | 29953 | |
3185942a JA |
29954 | { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5 |
29955 | $as_echo_n "checking for presence of necessary job control definitions... " >&6; } | |
f73dda09 | 29956 | if test "${bash_cv_job_control_missing+set}" = set; then |
3185942a | 29957 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
29958 | else |
29959 | if test "$cross_compiling" = yes; then | |
3185942a JA |
29960 | { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 |
29961 | $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
29962 | bash_cv_job_control_missing=missing |
29963 | ||
ccc6cda3 | 29964 | else |
f73dda09 | 29965 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
29966 | /* confdefs.h. */ |
29967 | _ACEOF | |
29968 | cat confdefs.h >>conftest.$ac_ext | |
29969 | cat >>conftest.$ac_ext <<_ACEOF | |
29970 | /* end confdefs.h. */ | |
ccc6cda3 JA |
29971 | |
29972 | #include <sys/types.h> | |
29973 | #ifdef HAVE_SYS_WAIT_H | |
29974 | #include <sys/wait.h> | |
29975 | #endif | |
29976 | #ifdef HAVE_UNISTD_H | |
29977 | #include <unistd.h> | |
29978 | #endif | |
29979 | #include <signal.h> | |
29980 | ||
29981 | /* Add more tests in here as appropriate. */ | |
29982 | main() | |
29983 | { | |
29984 | /* signal type */ | |
29985 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) | |
29986 | exit(1); | |
29987 | #endif | |
29988 | ||
29989 | /* signals and tty control. */ | |
29990 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) | |
29991 | exit (1); | |
29992 | #endif | |
29993 | ||
29994 | /* process control */ | |
f73dda09 | 29995 | #if !defined (WNOHANG) || !defined (WUNTRACED) |
ccc6cda3 JA |
29996 | exit(1); |
29997 | #endif | |
29998 | ||
29999 | /* Posix systems have tcgetpgrp and waitpid. */ | |
30000 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) | |
30001 | exit(1); | |
30002 | #endif | |
30003 | ||
30004 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) | |
30005 | exit(1); | |
30006 | #endif | |
30007 | ||
30008 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ | |
30009 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) | |
30010 | exit(1); | |
30011 | #endif | |
30012 | ||
30013 | exit(0); | |
30014 | } | |
f73dda09 JA |
30015 | _ACEOF |
30016 | rm -f conftest$ac_exeext | |
3185942a JA |
30017 | if { (ac_try="$ac_link" |
30018 | case "(($ac_try" in | |
30019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30020 | *) ac_try_echo=$ac_try;; | |
30021 | esac | |
30022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30023 | $as_echo "$ac_try_echo") >&5 | |
30024 | (eval "$ac_link") 2>&5 | |
f73dda09 | 30025 | ac_status=$? |
3185942a | 30026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
30028 | { (case "(($ac_try" in |
30029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30030 | *) ac_try_echo=$ac_try;; | |
30031 | esac | |
30032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30033 | $as_echo "$ac_try_echo") >&5 | |
30034 | (eval "$ac_try") 2>&5 | |
f73dda09 | 30035 | ac_status=$? |
3185942a | 30036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30037 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
30038 | bash_cv_job_control_missing=present |
30039 | else | |
3185942a JA |
30040 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
30041 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
30042 | sed 's/^/| /' conftest.$ac_ext >&5 |
30043 | ||
b80f6443 | 30044 | ( exit $ac_status ) |
f73dda09 | 30045 | bash_cv_job_control_missing=missing |
ccc6cda3 | 30046 | fi |
3185942a JA |
30047 | rm -rf conftest.dSYM |
30048 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 | 30049 | fi |
3185942a JA |
30050 | |
30051 | ||
ccc6cda3 JA |
30052 | fi |
30053 | ||
3185942a JA |
30054 | { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5 |
30055 | $as_echo "$bash_cv_job_control_missing" >&6; } | |
ccc6cda3 | 30056 | if test $bash_cv_job_control_missing = missing; then |
b80f6443 | 30057 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30058 | #define JOB_CONTROL_MISSING 1 |
b80f6443 | 30059 | _ACEOF |
ccc6cda3 JA |
30060 | |
30061 | fi | |
30062 | ||
3185942a JA |
30063 | { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5 |
30064 | $as_echo_n "checking for presence of named pipes... " >&6; } | |
f73dda09 | 30065 | if test "${bash_cv_sys_named_pipes+set}" = set; then |
3185942a | 30066 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
30067 | else |
30068 | if test "$cross_compiling" = yes; then | |
3185942a JA |
30069 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 |
30070 | $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} | |
cce855bc JA |
30071 | bash_cv_sys_named_pipes=missing |
30072 | ||
ccc6cda3 | 30073 | else |
f73dda09 | 30074 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30075 | /* confdefs.h. */ |
30076 | _ACEOF | |
30077 | cat confdefs.h >>conftest.$ac_ext | |
30078 | cat >>conftest.$ac_ext <<_ACEOF | |
30079 | /* end confdefs.h. */ | |
ccc6cda3 JA |
30080 | |
30081 | #include <sys/types.h> | |
30082 | #include <sys/stat.h> | |
30083 | #ifdef HAVE_UNISTD_H | |
30084 | #include <unistd.h> | |
30085 | #endif | |
30086 | ||
30087 | /* Add more tests in here as appropriate. */ | |
30088 | main() | |
30089 | { | |
bb70624e | 30090 | int fd, err; |
ccc6cda3 JA |
30091 | |
30092 | #if defined (HAVE_MKFIFO) | |
30093 | exit (0); | |
30094 | #endif | |
30095 | ||
30096 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) | |
30097 | exit (1); | |
30098 | #endif | |
30099 | ||
30100 | #if defined (NeXT) | |
30101 | exit (1); | |
30102 | #endif | |
3185942a | 30103 | err = mkdir("bash-aclocal", 0700); |
bb70624e JA |
30104 | if (err < 0) { |
30105 | perror ("mkdir"); | |
30106 | exit(1); | |
30107 | } | |
3185942a | 30108 | fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); |
bb70624e | 30109 | if (fd == -1) { |
3185942a | 30110 | rmdir ("bash-aclocal"); |
ccc6cda3 | 30111 | exit (1); |
bb70624e | 30112 | } |
ccc6cda3 | 30113 | close(fd); |
3185942a JA |
30114 | unlink ("bash-aclocal/sh-np-autoconf"); |
30115 | rmdir ("bash-aclocal"); | |
ccc6cda3 JA |
30116 | exit(0); |
30117 | } | |
f73dda09 JA |
30118 | _ACEOF |
30119 | rm -f conftest$ac_exeext | |
3185942a JA |
30120 | if { (ac_try="$ac_link" |
30121 | case "(($ac_try" in | |
30122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30123 | *) ac_try_echo=$ac_try;; | |
30124 | esac | |
30125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30126 | $as_echo "$ac_try_echo") >&5 | |
30127 | (eval "$ac_link") 2>&5 | |
f73dda09 | 30128 | ac_status=$? |
3185942a | 30129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
30131 | { (case "(($ac_try" in |
30132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30133 | *) ac_try_echo=$ac_try;; | |
30134 | esac | |
30135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30136 | $as_echo "$ac_try_echo") >&5 | |
30137 | (eval "$ac_try") 2>&5 | |
f73dda09 | 30138 | ac_status=$? |
3185942a | 30139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30140 | (exit $ac_status); }; }; then |
ccc6cda3 JA |
30141 | bash_cv_sys_named_pipes=present |
30142 | else | |
3185942a JA |
30143 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
30144 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
30145 | sed 's/^/| /' conftest.$ac_ext >&5 |
30146 | ||
30147 | ( exit $ac_status ) | |
30148 | bash_cv_sys_named_pipes=missing | |
30149 | fi | |
3185942a JA |
30150 | rm -rf conftest.dSYM |
30151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 30152 | fi |
3185942a JA |
30153 | |
30154 | ||
95732b49 | 30155 | fi |
95732b49 | 30156 | |
3185942a JA |
30157 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5 |
30158 | $as_echo "$bash_cv_sys_named_pipes" >&6; } | |
0628567a JA |
30159 | if test $bash_cv_sys_named_pipes = missing; then |
30160 | cat >>confdefs.h <<\_ACEOF | |
30161 | #define NAMED_PIPES_MISSING 1 | |
30162 | _ACEOF | |
30163 | ||
30164 | fi | |
30165 | ||
30166 | ||
3185942a JA |
30167 | { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
30168 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
f73dda09 | 30169 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then |
3185942a | 30170 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
30171 | else |
30172 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
30173 | /* confdefs.h. */ |
30174 | _ACEOF | |
30175 | cat confdefs.h >>conftest.$ac_ext | |
30176 | cat >>conftest.$ac_ext <<_ACEOF | |
30177 | /* end confdefs.h. */ | |
f73dda09 JA |
30178 | #include <sys/types.h> |
30179 | #include <termios.h> | |
30180 | #ifdef TIOCGWINSZ | |
30181 | yes | |
30182 | #endif | |
30183 | ||
30184 | _ACEOF | |
30185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 30186 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 JA |
30187 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
30188 | else | |
30189 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
30190 | fi | |
30191 | rm -f conftest* | |
30192 | ||
30193 | fi | |
3185942a JA |
30194 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
30195 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
d166f048 | 30196 | |
f73dda09 | 30197 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
3185942a JA |
30198 | { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
30199 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
f73dda09 | 30200 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then |
3185942a | 30201 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30202 | else |
f73dda09 | 30203 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30204 | /* confdefs.h. */ |
30205 | _ACEOF | |
30206 | cat confdefs.h >>conftest.$ac_ext | |
30207 | cat >>conftest.$ac_ext <<_ACEOF | |
30208 | /* end confdefs.h. */ | |
ccc6cda3 JA |
30209 | #include <sys/types.h> |
30210 | #include <sys/ioctl.h> | |
f73dda09 JA |
30211 | #ifdef TIOCGWINSZ |
30212 | yes | |
30213 | #endif | |
30214 | ||
30215 | _ACEOF | |
30216 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0628567a | 30217 | $EGREP "yes" >/dev/null 2>&1; then |
f73dda09 | 30218 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
ccc6cda3 | 30219 | else |
f73dda09 | 30220 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
ccc6cda3 JA |
30221 | fi |
30222 | rm -f conftest* | |
f73dda09 | 30223 | |
ccc6cda3 | 30224 | fi |
3185942a JA |
30225 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
30226 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
f73dda09 JA |
30227 | |
30228 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then | |
ccc6cda3 | 30229 | |
b80f6443 | 30230 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30231 | #define GWINSZ_IN_SYS_IOCTL 1 |
b80f6443 | 30232 | _ACEOF |
ccc6cda3 | 30233 | |
f73dda09 | 30234 | fi |
ccc6cda3 JA |
30235 | fi |
30236 | ||
3185942a JA |
30237 | { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
30238 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
f73dda09 | 30239 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then |
3185942a | 30240 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30241 | else |
f73dda09 | 30242 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30243 | /* confdefs.h. */ |
30244 | _ACEOF | |
30245 | cat confdefs.h >>conftest.$ac_ext | |
30246 | cat >>conftest.$ac_ext <<_ACEOF | |
30247 | /* end confdefs.h. */ | |
ccc6cda3 JA |
30248 | #include <sys/types.h> |
30249 | #include <sys/ioctl.h> | |
f73dda09 JA |
30250 | int |
30251 | main () | |
30252 | { | |
ccc6cda3 | 30253 | int x = TIOCSTAT; |
f73dda09 JA |
30254 | ; |
30255 | return 0; | |
30256 | } | |
30257 | _ACEOF | |
30258 | rm -f conftest.$ac_objext | |
3185942a JA |
30259 | if { (ac_try="$ac_compile" |
30260 | case "(($ac_try" in | |
30261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30262 | *) ac_try_echo=$ac_try;; | |
30263 | esac | |
30264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30265 | $as_echo "$ac_try_echo") >&5 | |
30266 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 30267 | ac_status=$? |
0628567a JA |
30268 | grep -v '^ *+' conftest.er1 >conftest.err |
30269 | rm -f conftest.er1 | |
30270 | cat conftest.err >&5 | |
3185942a JA |
30271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30272 | (exit $ac_status); } && { | |
30273 | test -z "$ac_c_werror_flag" || | |
30274 | test ! -s conftest.err | |
30275 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
30276 | bash_cv_tiocstat_in_ioctl=yes |
30277 | else | |
3185942a | 30278 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30279 | sed 's/^/| /' conftest.$ac_ext >&5 |
30280 | ||
3185942a | 30281 | bash_cv_tiocstat_in_ioctl=no |
ccc6cda3 | 30282 | fi |
3185942a JA |
30283 | |
30284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
30285 | fi |
30286 | ||
3185942a JA |
30287 | { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
30288 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
f73dda09 | 30289 | if test $bash_cv_tiocstat_in_ioctl = yes; then |
b80f6443 | 30290 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30291 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
b80f6443 | 30292 | _ACEOF |
ccc6cda3 JA |
30293 | |
30294 | fi | |
30295 | ||
3185942a JA |
30296 | { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
30297 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
f73dda09 | 30298 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then |
3185942a | 30299 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30300 | else |
f73dda09 | 30301 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30302 | /* confdefs.h. */ |
30303 | _ACEOF | |
30304 | cat confdefs.h >>conftest.$ac_ext | |
30305 | cat >>conftest.$ac_ext <<_ACEOF | |
30306 | /* end confdefs.h. */ | |
ccc6cda3 JA |
30307 | #include <sys/types.h> |
30308 | #include <sys/ioctl.h> | |
f73dda09 JA |
30309 | int |
30310 | main () | |
30311 | { | |
ccc6cda3 | 30312 | int x = FIONREAD; |
f73dda09 JA |
30313 | ; |
30314 | return 0; | |
30315 | } | |
30316 | _ACEOF | |
30317 | rm -f conftest.$ac_objext | |
3185942a JA |
30318 | if { (ac_try="$ac_compile" |
30319 | case "(($ac_try" in | |
30320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30321 | *) ac_try_echo=$ac_try;; | |
30322 | esac | |
30323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30324 | $as_echo "$ac_try_echo") >&5 | |
30325 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 30326 | ac_status=$? |
0628567a JA |
30327 | grep -v '^ *+' conftest.er1 >conftest.err |
30328 | rm -f conftest.er1 | |
30329 | cat conftest.err >&5 | |
3185942a JA |
30330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30331 | (exit $ac_status); } && { | |
30332 | test -z "$ac_c_werror_flag" || | |
30333 | test ! -s conftest.err | |
30334 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
30335 | bash_cv_fionread_in_ioctl=yes |
30336 | else | |
3185942a | 30337 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30338 | sed 's/^/| /' conftest.$ac_ext >&5 |
30339 | ||
3185942a | 30340 | bash_cv_fionread_in_ioctl=no |
ccc6cda3 | 30341 | fi |
3185942a JA |
30342 | |
30343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
30344 | fi |
30345 | ||
3185942a JA |
30346 | { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
30347 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
f73dda09 | 30348 | if test $bash_cv_fionread_in_ioctl = yes; then |
b80f6443 | 30349 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30350 | #define FIONREAD_IN_SYS_IOCTL 1 |
b80f6443 | 30351 | _ACEOF |
ccc6cda3 JA |
30352 | |
30353 | fi | |
30354 | ||
b80f6443 | 30355 | |
95732b49 | 30356 | |
3185942a JA |
30357 | { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 |
30358 | $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } | |
95732b49 | 30359 | if test "${bash_cv_wcontinued_broken+set}" = set; then |
3185942a | 30360 | $as_echo_n "(cached) " >&6 |
95732b49 JA |
30361 | else |
30362 | if test "$cross_compiling" = yes; then | |
3185942a JA |
30363 | { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 |
30364 | $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} | |
95732b49 JA |
30365 | bash_cv_wcontinued_broken=no |
30366 | ||
30367 | else | |
30368 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
30369 | /* confdefs.h. */ |
30370 | _ACEOF | |
30371 | cat confdefs.h >>conftest.$ac_ext | |
30372 | cat >>conftest.$ac_ext <<_ACEOF | |
30373 | /* end confdefs.h. */ | |
95732b49 JA |
30374 | |
30375 | #include <sys/types.h> | |
30376 | #include <sys/wait.h> | |
30377 | #include <unistd.h> | |
30378 | #include <errno.h> | |
30379 | ||
30380 | #ifndef errno | |
30381 | extern int errno; | |
30382 | #endif | |
30383 | main() | |
30384 | { | |
30385 | int x; | |
30386 | ||
30387 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); | |
30388 | if (x == -1 && errno == EINVAL) | |
30389 | exit (1); | |
30390 | else | |
30391 | exit (0); | |
30392 | } | |
30393 | ||
30394 | _ACEOF | |
30395 | rm -f conftest$ac_exeext | |
3185942a JA |
30396 | if { (ac_try="$ac_link" |
30397 | case "(($ac_try" in | |
30398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30399 | *) ac_try_echo=$ac_try;; | |
30400 | esac | |
30401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30402 | $as_echo "$ac_try_echo") >&5 | |
30403 | (eval "$ac_link") 2>&5 | |
95732b49 | 30404 | ac_status=$? |
3185942a | 30405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
95732b49 | 30406 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
30407 | { (case "(($ac_try" in |
30408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30409 | *) ac_try_echo=$ac_try;; | |
30410 | esac | |
30411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30412 | $as_echo "$ac_try_echo") >&5 | |
30413 | (eval "$ac_try") 2>&5 | |
95732b49 | 30414 | ac_status=$? |
3185942a | 30415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
95732b49 JA |
30416 | (exit $ac_status); }; }; then |
30417 | bash_cv_wcontinued_broken=no | |
30418 | else | |
3185942a JA |
30419 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
30420 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
30421 | sed 's/^/| /' conftest.$ac_ext >&5 |
30422 | ||
95732b49 JA |
30423 | ( exit $ac_status ) |
30424 | bash_cv_wcontinued_broken=yes | |
30425 | fi | |
3185942a JA |
30426 | rm -rf conftest.dSYM |
30427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
95732b49 | 30428 | fi |
3185942a JA |
30429 | |
30430 | ||
95732b49 JA |
30431 | fi |
30432 | ||
3185942a JA |
30433 | { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5 |
30434 | $as_echo "$bash_cv_wcontinued_broken" >&6; } | |
95732b49 JA |
30435 | if test $bash_cv_wcontinued_broken = yes; then |
30436 | cat >>confdefs.h <<\_ACEOF | |
30437 | #define WCONTINUED_BROKEN 1 | |
30438 | _ACEOF | |
30439 | ||
30440 | fi | |
30441 | ||
30442 | ||
3185942a JA |
30443 | { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
30444 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
f73dda09 | 30445 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then |
3185942a | 30446 | $as_echo_n "(cached) " >&6 |
d166f048 | 30447 | else |
f73dda09 | 30448 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30449 | /* confdefs.h. */ |
30450 | _ACEOF | |
30451 | cat confdefs.h >>conftest.$ac_ext | |
30452 | cat >>conftest.$ac_ext <<_ACEOF | |
30453 | /* end confdefs.h. */ | |
d166f048 | 30454 | #include <sys/types.h> |
f73dda09 JA |
30455 | int |
30456 | main () | |
30457 | { | |
d166f048 | 30458 | speed_t x; |
f73dda09 JA |
30459 | ; |
30460 | return 0; | |
30461 | } | |
30462 | _ACEOF | |
30463 | rm -f conftest.$ac_objext | |
3185942a JA |
30464 | if { (ac_try="$ac_compile" |
30465 | case "(($ac_try" in | |
30466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30467 | *) ac_try_echo=$ac_try;; | |
30468 | esac | |
30469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30470 | $as_echo "$ac_try_echo") >&5 | |
30471 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 30472 | ac_status=$? |
0628567a JA |
30473 | grep -v '^ *+' conftest.er1 >conftest.err |
30474 | rm -f conftest.er1 | |
30475 | cat conftest.err >&5 | |
3185942a JA |
30476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30477 | (exit $ac_status); } && { | |
30478 | test -z "$ac_c_werror_flag" || | |
30479 | test ! -s conftest.err | |
30480 | } && test -s conftest.$ac_objext; then | |
d166f048 JA |
30481 | bash_cv_speed_t_in_sys_types=yes |
30482 | else | |
3185942a | 30483 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30484 | sed 's/^/| /' conftest.$ac_ext >&5 |
30485 | ||
3185942a | 30486 | bash_cv_speed_t_in_sys_types=no |
d166f048 | 30487 | fi |
3185942a JA |
30488 | |
30489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d166f048 JA |
30490 | fi |
30491 | ||
3185942a JA |
30492 | { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
30493 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
f73dda09 | 30494 | if test $bash_cv_speed_t_in_sys_types = yes; then |
b80f6443 | 30495 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 30496 | #define SPEED_T_IN_SYS_TYPES 1 |
b80f6443 | 30497 | _ACEOF |
d166f048 JA |
30498 | |
30499 | fi | |
30500 | ||
3185942a JA |
30501 | { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 |
30502 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
f73dda09 | 30503 | if test "${bash_cv_getpw_declared+set}" = set; then |
3185942a | 30504 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30505 | else |
f73dda09 | 30506 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30507 | /* confdefs.h. */ |
30508 | _ACEOF | |
30509 | cat confdefs.h >>conftest.$ac_ext | |
30510 | cat >>conftest.$ac_ext <<_ACEOF | |
30511 | /* end confdefs.h. */ | |
28ef6c31 | 30512 | |
ccc6cda3 | 30513 | #include <sys/types.h> |
28ef6c31 JA |
30514 | #ifdef HAVE_UNISTD_H |
30515 | # include <unistd.h> | |
30516 | #endif | |
ccc6cda3 | 30517 | #include <pwd.h> |
28ef6c31 | 30518 | |
f73dda09 | 30519 | _ACEOF |
28ef6c31 | 30520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
0628567a | 30521 | $EGREP "getpwuid" >/dev/null 2>&1; then |
28ef6c31 | 30522 | bash_cv_getpw_declared=yes |
ccc6cda3 | 30523 | else |
28ef6c31 | 30524 | bash_cv_getpw_declared=no |
ccc6cda3 JA |
30525 | fi |
30526 | rm -f conftest* | |
28ef6c31 | 30527 | |
ccc6cda3 JA |
30528 | fi |
30529 | ||
3185942a JA |
30530 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
30531 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
28ef6c31 | 30532 | if test $bash_cv_getpw_declared = yes; then |
b80f6443 | 30533 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30534 | #define HAVE_GETPW_DECLS 1 |
b80f6443 | 30535 | _ACEOF |
ccc6cda3 JA |
30536 | |
30537 | fi | |
30538 | ||
3185942a JA |
30539 | { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5 |
30540 | $as_echo_n "checking for unusable real-time signals due to large values... " >&6; } | |
f73dda09 | 30541 | if test "${bash_cv_unusable_rtsigs+set}" = set; then |
3185942a | 30542 | $as_echo_n "(cached) " >&6 |
28ef6c31 JA |
30543 | else |
30544 | if test "$cross_compiling" = yes; then | |
3185942a JA |
30545 | { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 |
30546 | $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} | |
28ef6c31 JA |
30547 | bash_cv_unusable_rtsigs=yes |
30548 | ||
30549 | else | |
f73dda09 | 30550 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30551 | /* confdefs.h. */ |
30552 | _ACEOF | |
30553 | cat confdefs.h >>conftest.$ac_ext | |
30554 | cat >>conftest.$ac_ext <<_ACEOF | |
30555 | /* end confdefs.h. */ | |
28ef6c31 JA |
30556 | |
30557 | #include <sys/types.h> | |
30558 | #include <signal.h> | |
30559 | ||
30560 | #ifndef NSIG | |
30561 | # define NSIG 64 | |
30562 | #endif | |
30563 | ||
30564 | main () | |
30565 | { | |
30566 | int n_sigs = 2 * NSIG; | |
30567 | #ifdef SIGRTMIN | |
30568 | int rtmin = SIGRTMIN; | |
30569 | #else | |
30570 | int rtmin = 0; | |
30571 | #endif | |
30572 | ||
30573 | exit(rtmin < n_sigs); | |
30574 | } | |
f73dda09 JA |
30575 | _ACEOF |
30576 | rm -f conftest$ac_exeext | |
3185942a JA |
30577 | if { (ac_try="$ac_link" |
30578 | case "(($ac_try" in | |
30579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30580 | *) ac_try_echo=$ac_try;; | |
30581 | esac | |
30582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30583 | $as_echo "$ac_try_echo") >&5 | |
30584 | (eval "$ac_link") 2>&5 | |
f73dda09 | 30585 | ac_status=$? |
3185942a | 30586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3185942a JA |
30588 | { (case "(($ac_try" in |
30589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30590 | *) ac_try_echo=$ac_try;; | |
30591 | esac | |
30592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30593 | $as_echo "$ac_try_echo") >&5 | |
30594 | (eval "$ac_try") 2>&5 | |
f73dda09 | 30595 | ac_status=$? |
3185942a | 30596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f73dda09 | 30597 | (exit $ac_status); }; }; then |
28ef6c31 JA |
30598 | bash_cv_unusable_rtsigs=yes |
30599 | else | |
3185942a JA |
30600 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
30601 | $as_echo "$as_me: failed program was:" >&5 | |
0628567a JA |
30602 | sed 's/^/| /' conftest.$ac_ext >&5 |
30603 | ||
b80f6443 | 30604 | ( exit $ac_status ) |
f73dda09 | 30605 | bash_cv_unusable_rtsigs=no |
28ef6c31 | 30606 | fi |
3185942a JA |
30607 | rm -rf conftest.dSYM |
30608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
28ef6c31 | 30609 | fi |
3185942a JA |
30610 | |
30611 | ||
28ef6c31 JA |
30612 | fi |
30613 | ||
3185942a JA |
30614 | { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5 |
30615 | $as_echo "$bash_cv_unusable_rtsigs" >&6; } | |
28ef6c31 | 30616 | if test $bash_cv_unusable_rtsigs = yes; then |
b80f6443 | 30617 | cat >>confdefs.h <<\_ACEOF |
28ef6c31 | 30618 | #define UNUSABLE_RT_SIGNALS 1 |
b80f6443 | 30619 | _ACEOF |
28ef6c31 JA |
30620 | |
30621 | fi | |
30622 | ||
b80f6443 JA |
30623 | |
30624 | ||
30625 | ||
30626 | ||
f73dda09 JA |
30627 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then |
30628 | SIGLIST_O=siglist.o | |
30629 | else | |
30630 | SIGLIST_O= | |
30631 | fi | |
ccc6cda3 | 30632 | |
b80f6443 JA |
30633 | |
30634 | ||
ccc6cda3 | 30635 | case "$host_os" in |
3185942a JA |
30636 | hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 |
30637 | $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } | |
f73dda09 | 30638 | if test "${bash_cv_kernel_rlimit+set}" = set; then |
3185942a | 30639 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30640 | else |
f73dda09 | 30641 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30642 | /* confdefs.h. */ |
30643 | _ACEOF | |
30644 | cat confdefs.h >>conftest.$ac_ext | |
30645 | cat >>conftest.$ac_ext <<_ACEOF | |
30646 | /* end confdefs.h. */ | |
ccc6cda3 JA |
30647 | |
30648 | #include <sys/types.h> | |
30649 | #include <sys/resource.h> | |
30650 | ||
f73dda09 JA |
30651 | int |
30652 | main () | |
30653 | { | |
ccc6cda3 JA |
30654 | |
30655 | int f; | |
30656 | f = RLIMIT_DATA; | |
30657 | ||
f73dda09 JA |
30658 | ; |
30659 | return 0; | |
30660 | } | |
30661 | _ACEOF | |
30662 | rm -f conftest.$ac_objext | |
3185942a JA |
30663 | if { (ac_try="$ac_compile" |
30664 | case "(($ac_try" in | |
30665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30666 | *) ac_try_echo=$ac_try;; | |
30667 | esac | |
30668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30669 | $as_echo "$ac_try_echo") >&5 | |
30670 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 30671 | ac_status=$? |
0628567a JA |
30672 | grep -v '^ *+' conftest.er1 >conftest.err |
30673 | rm -f conftest.er1 | |
30674 | cat conftest.err >&5 | |
3185942a JA |
30675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30676 | (exit $ac_status); } && { | |
30677 | test -z "$ac_c_werror_flag" || | |
30678 | test ! -s conftest.err | |
30679 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
30680 | bash_cv_kernel_rlimit=no |
30681 | else | |
3185942a | 30682 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30683 | sed 's/^/| /' conftest.$ac_ext >&5 |
30684 | ||
3185942a | 30685 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30686 | /* confdefs.h. */ |
30687 | _ACEOF | |
30688 | cat confdefs.h >>conftest.$ac_ext | |
30689 | cat >>conftest.$ac_ext <<_ACEOF | |
30690 | /* end confdefs.h. */ | |
ccc6cda3 | 30691 | |
cce855bc JA |
30692 | #include <sys/types.h> |
30693 | #define _KERNEL | |
30694 | #include <sys/resource.h> | |
30695 | #undef _KERNEL | |
30696 | ||
f73dda09 JA |
30697 | int |
30698 | main () | |
30699 | { | |
ccc6cda3 JA |
30700 | |
30701 | int f; | |
30702 | f = RLIMIT_DATA; | |
cce855bc | 30703 | |
f73dda09 JA |
30704 | ; |
30705 | return 0; | |
30706 | } | |
30707 | _ACEOF | |
30708 | rm -f conftest.$ac_objext | |
3185942a JA |
30709 | if { (ac_try="$ac_compile" |
30710 | case "(($ac_try" in | |
30711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30712 | *) ac_try_echo=$ac_try;; | |
30713 | esac | |
30714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30715 | $as_echo "$ac_try_echo") >&5 | |
30716 | (eval "$ac_compile") 2>conftest.er1 | |
f73dda09 | 30717 | ac_status=$? |
0628567a JA |
30718 | grep -v '^ *+' conftest.er1 >conftest.err |
30719 | rm -f conftest.er1 | |
30720 | cat conftest.err >&5 | |
3185942a JA |
30721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30722 | (exit $ac_status); } && { | |
30723 | test -z "$ac_c_werror_flag" || | |
30724 | test ! -s conftest.err | |
30725 | } && test -s conftest.$ac_objext; then | |
ccc6cda3 JA |
30726 | bash_cv_kernel_rlimit=yes |
30727 | else | |
3185942a | 30728 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30729 | sed 's/^/| /' conftest.$ac_ext >&5 |
30730 | ||
3185942a | 30731 | bash_cv_kernel_rlimit=no |
ccc6cda3 | 30732 | fi |
3185942a JA |
30733 | |
30734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
30735 | |
30736 | fi | |
3185942a JA |
30737 | |
30738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ccc6cda3 JA |
30739 | fi |
30740 | ||
3185942a JA |
30741 | { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5 |
30742 | $as_echo "$bash_cv_kernel_rlimit" >&6; } | |
ccc6cda3 | 30743 | if test $bash_cv_kernel_rlimit = yes; then |
b80f6443 | 30744 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 30745 | #define RLIMIT_NEEDS_KERNEL 1 |
b80f6443 | 30746 | _ACEOF |
ccc6cda3 JA |
30747 | |
30748 | fi | |
30749 | ;; | |
30750 | esac | |
30751 | ||
30752 | if test "$opt_readline" = yes; then | |
d166f048 JA |
30753 | case "$host_os" in |
30754 | aix*) prefer_curses=yes ;; | |
30755 | esac | |
ccc6cda3 JA |
30756 | |
30757 | if test "X$bash_cv_termcap_lib" = "X"; then | |
30758 | _bash_needmsg=yes | |
30759 | else | |
3185942a JA |
30760 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
30761 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
ccc6cda3 JA |
30762 | _bash_needmsg= |
30763 | fi | |
f73dda09 | 30764 | if test "${bash_cv_termcap_lib+set}" = set; then |
3185942a | 30765 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30766 | else |
3185942a JA |
30767 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
30768 | $as_echo_n "checking for tgetent... " >&6; } | |
b80f6443 | 30769 | if test "${ac_cv_func_tgetent+set}" = set; then |
3185942a | 30770 | $as_echo_n "(cached) " >&6 |
b80f6443 JA |
30771 | else |
30772 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
30773 | /* confdefs.h. */ |
30774 | _ACEOF | |
30775 | cat confdefs.h >>conftest.$ac_ext | |
30776 | cat >>conftest.$ac_ext <<_ACEOF | |
30777 | /* end confdefs.h. */ | |
30778 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. | |
30779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30780 | #define tgetent innocuous_tgetent | |
30781 | ||
b80f6443 | 30782 | /* System header to define __stub macros and hopefully few prototypes, |
0628567a JA |
30783 | which can conflict with char tgetent (); below. |
30784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30785 | <limits.h> exists even on freestanding compilers. */ | |
30786 | ||
30787 | #ifdef __STDC__ | |
30788 | # include <limits.h> | |
30789 | #else | |
30790 | # include <assert.h> | |
30791 | #endif | |
30792 | ||
30793 | #undef tgetent | |
30794 | ||
3185942a JA |
30795 | /* Override any GCC internal prototype to avoid an error. |
30796 | Use char because int might match the return type of a GCC | |
30797 | builtin and then its argument prototype would still apply. */ | |
b80f6443 JA |
30798 | #ifdef __cplusplus |
30799 | extern "C" | |
b80f6443 | 30800 | #endif |
b80f6443 JA |
30801 | char tgetent (); |
30802 | /* The GNU C library defines this for functions which it implements | |
30803 | to always fail with ENOSYS. Some functions are actually named | |
30804 | something starting with __ and the normal name is an alias. */ | |
3185942a | 30805 | #if defined __stub_tgetent || defined __stub___tgetent |
b80f6443 | 30806 | choke me |
b80f6443 JA |
30807 | #endif |
30808 | ||
0628567a JA |
30809 | int |
30810 | main () | |
30811 | { | |
3185942a | 30812 | return tgetent (); |
b80f6443 JA |
30813 | ; |
30814 | return 0; | |
30815 | } | |
30816 | _ACEOF | |
30817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
30818 | if { (ac_try="$ac_link" |
30819 | case "(($ac_try" in | |
30820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30821 | *) ac_try_echo=$ac_try;; | |
30822 | esac | |
30823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30824 | $as_echo "$ac_try_echo") >&5 | |
30825 | (eval "$ac_link") 2>conftest.er1 | |
b80f6443 | 30826 | ac_status=$? |
0628567a JA |
30827 | grep -v '^ *+' conftest.er1 >conftest.err |
30828 | rm -f conftest.er1 | |
30829 | cat conftest.err >&5 | |
3185942a JA |
30830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30831 | (exit $ac_status); } && { | |
30832 | test -z "$ac_c_werror_flag" || | |
30833 | test ! -s conftest.err | |
30834 | } && test -s conftest$ac_exeext && { | |
30835 | test "$cross_compiling" = yes || | |
30836 | $as_test_x conftest$ac_exeext | |
30837 | }; then | |
b80f6443 JA |
30838 | ac_cv_func_tgetent=yes |
30839 | else | |
3185942a | 30840 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30841 | sed 's/^/| /' conftest.$ac_ext >&5 |
30842 | ||
3185942a | 30843 | ac_cv_func_tgetent=no |
b80f6443 | 30844 | fi |
3185942a JA |
30845 | |
30846 | rm -rf conftest.dSYM | |
30847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 30848 | conftest$ac_exeext conftest.$ac_ext |
b80f6443 | 30849 | fi |
3185942a JA |
30850 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
30851 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
30852 | if test "x$ac_cv_func_tgetent" = x""yes; then | |
b80f6443 JA |
30853 | bash_cv_termcap_lib=libc |
30854 | else | |
3185942a JA |
30855 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
30856 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
f73dda09 | 30857 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
3185942a | 30858 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30859 | else |
f73dda09 | 30860 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 30861 | LIBS="-ltermcap $LIBS" |
f73dda09 | 30862 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
30863 | /* confdefs.h. */ |
30864 | _ACEOF | |
30865 | cat confdefs.h >>conftest.$ac_ext | |
30866 | cat >>conftest.$ac_ext <<_ACEOF | |
30867 | /* end confdefs.h. */ | |
f73dda09 | 30868 | |
3185942a JA |
30869 | /* Override any GCC internal prototype to avoid an error. |
30870 | Use char because int might match the return type of a GCC | |
30871 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
30872 | #ifdef __cplusplus |
30873 | extern "C" | |
30874 | #endif | |
f73dda09 JA |
30875 | char tgetent (); |
30876 | int | |
30877 | main () | |
30878 | { | |
3185942a | 30879 | return tgetent (); |
f73dda09 JA |
30880 | ; |
30881 | return 0; | |
30882 | } | |
30883 | _ACEOF | |
30884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
30885 | if { (ac_try="$ac_link" |
30886 | case "(($ac_try" in | |
30887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30888 | *) ac_try_echo=$ac_try;; | |
30889 | esac | |
30890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30891 | $as_echo "$ac_try_echo") >&5 | |
30892 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 30893 | ac_status=$? |
0628567a JA |
30894 | grep -v '^ *+' conftest.er1 >conftest.err |
30895 | rm -f conftest.er1 | |
30896 | cat conftest.err >&5 | |
3185942a JA |
30897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30898 | (exit $ac_status); } && { | |
30899 | test -z "$ac_c_werror_flag" || | |
30900 | test ! -s conftest.err | |
30901 | } && test -s conftest$ac_exeext && { | |
30902 | test "$cross_compiling" = yes || | |
30903 | $as_test_x conftest$ac_exeext | |
30904 | }; then | |
f73dda09 JA |
30905 | ac_cv_lib_termcap_tgetent=yes |
30906 | else | |
3185942a | 30907 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30908 | sed 's/^/| /' conftest.$ac_ext >&5 |
30909 | ||
3185942a | 30910 | ac_cv_lib_termcap_tgetent=no |
f73dda09 | 30911 | fi |
3185942a JA |
30912 | |
30913 | rm -rf conftest.dSYM | |
30914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 30915 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
30916 | LIBS=$ac_check_lib_save_LIBS |
30917 | fi | |
3185942a JA |
30918 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
30919 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
30920 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then | |
ccc6cda3 JA |
30921 | bash_cv_termcap_lib=libtermcap |
30922 | else | |
3185942a JA |
30923 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
30924 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
f73dda09 | 30925 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
3185942a | 30926 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 30927 | else |
f73dda09 JA |
30928 | ac_check_lib_save_LIBS=$LIBS |
30929 | LIBS="-ltinfo $LIBS" | |
30930 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
30931 | /* confdefs.h. */ |
30932 | _ACEOF | |
30933 | cat confdefs.h >>conftest.$ac_ext | |
30934 | cat >>conftest.$ac_ext <<_ACEOF | |
30935 | /* end confdefs.h. */ | |
f73dda09 | 30936 | |
3185942a JA |
30937 | /* Override any GCC internal prototype to avoid an error. |
30938 | Use char because int might match the return type of a GCC | |
30939 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
30940 | #ifdef __cplusplus |
30941 | extern "C" | |
30942 | #endif | |
f73dda09 JA |
30943 | char tgetent (); |
30944 | int | |
30945 | main () | |
30946 | { | |
3185942a | 30947 | return tgetent (); |
f73dda09 JA |
30948 | ; |
30949 | return 0; | |
30950 | } | |
30951 | _ACEOF | |
30952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
30953 | if { (ac_try="$ac_link" |
30954 | case "(($ac_try" in | |
30955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30956 | *) ac_try_echo=$ac_try;; | |
30957 | esac | |
30958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
30959 | $as_echo "$ac_try_echo") >&5 | |
30960 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 30961 | ac_status=$? |
0628567a JA |
30962 | grep -v '^ *+' conftest.er1 >conftest.err |
30963 | rm -f conftest.er1 | |
30964 | cat conftest.err >&5 | |
3185942a JA |
30965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30966 | (exit $ac_status); } && { | |
30967 | test -z "$ac_c_werror_flag" || | |
30968 | test ! -s conftest.err | |
30969 | } && test -s conftest$ac_exeext && { | |
30970 | test "$cross_compiling" = yes || | |
30971 | $as_test_x conftest$ac_exeext | |
30972 | }; then | |
f73dda09 JA |
30973 | ac_cv_lib_tinfo_tgetent=yes |
30974 | else | |
3185942a | 30975 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
30976 | sed 's/^/| /' conftest.$ac_ext >&5 |
30977 | ||
3185942a | 30978 | ac_cv_lib_tinfo_tgetent=no |
f73dda09 | 30979 | fi |
3185942a JA |
30980 | |
30981 | rm -rf conftest.dSYM | |
30982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 30983 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
30984 | LIBS=$ac_check_lib_save_LIBS |
30985 | fi | |
3185942a JA |
30986 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
30987 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
30988 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then | |
7117c2d2 | 30989 | bash_cv_termcap_lib=libtinfo |
f73dda09 | 30990 | else |
3185942a JA |
30991 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
30992 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
f73dda09 | 30993 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
3185942a | 30994 | $as_echo_n "(cached) " >&6 |
f73dda09 JA |
30995 | else |
30996 | ac_check_lib_save_LIBS=$LIBS | |
30997 | LIBS="-lcurses $LIBS" | |
30998 | cat >conftest.$ac_ext <<_ACEOF | |
0628567a JA |
30999 | /* confdefs.h. */ |
31000 | _ACEOF | |
31001 | cat confdefs.h >>conftest.$ac_ext | |
31002 | cat >>conftest.$ac_ext <<_ACEOF | |
31003 | /* end confdefs.h. */ | |
ccc6cda3 | 31004 | |
3185942a JA |
31005 | /* Override any GCC internal prototype to avoid an error. |
31006 | Use char because int might match the return type of a GCC | |
31007 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
31008 | #ifdef __cplusplus |
31009 | extern "C" | |
31010 | #endif | |
f73dda09 JA |
31011 | char tgetent (); |
31012 | int | |
31013 | main () | |
31014 | { | |
3185942a | 31015 | return tgetent (); |
f73dda09 JA |
31016 | ; |
31017 | return 0; | |
31018 | } | |
31019 | _ACEOF | |
31020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
31021 | if { (ac_try="$ac_link" |
31022 | case "(($ac_try" in | |
31023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31024 | *) ac_try_echo=$ac_try;; | |
31025 | esac | |
31026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
31027 | $as_echo "$ac_try_echo") >&5 | |
31028 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 31029 | ac_status=$? |
0628567a JA |
31030 | grep -v '^ *+' conftest.er1 >conftest.err |
31031 | rm -f conftest.er1 | |
31032 | cat conftest.err >&5 | |
3185942a JA |
31033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31034 | (exit $ac_status); } && { | |
31035 | test -z "$ac_c_werror_flag" || | |
31036 | test ! -s conftest.err | |
31037 | } && test -s conftest$ac_exeext && { | |
31038 | test "$cross_compiling" = yes || | |
31039 | $as_test_x conftest$ac_exeext | |
31040 | }; then | |
f73dda09 JA |
31041 | ac_cv_lib_curses_tgetent=yes |
31042 | else | |
3185942a | 31043 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
31044 | sed 's/^/| /' conftest.$ac_ext >&5 |
31045 | ||
3185942a | 31046 | ac_cv_lib_curses_tgetent=no |
f73dda09 | 31047 | fi |
3185942a JA |
31048 | |
31049 | rm -rf conftest.dSYM | |
31050 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 31051 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
31052 | LIBS=$ac_check_lib_save_LIBS |
31053 | fi | |
3185942a JA |
31054 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
31055 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
31056 | if test "x$ac_cv_lib_curses_tgetent" = x""yes; then | |
ccc6cda3 JA |
31057 | bash_cv_termcap_lib=libcurses |
31058 | else | |
3185942a JA |
31059 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
31060 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
f73dda09 | 31061 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
3185942a | 31062 | $as_echo_n "(cached) " >&6 |
ccc6cda3 | 31063 | else |
f73dda09 | 31064 | ac_check_lib_save_LIBS=$LIBS |
ccc6cda3 | 31065 | LIBS="-lncurses $LIBS" |
f73dda09 | 31066 | cat >conftest.$ac_ext <<_ACEOF |
0628567a JA |
31067 | /* confdefs.h. */ |
31068 | _ACEOF | |
31069 | cat confdefs.h >>conftest.$ac_ext | |
31070 | cat >>conftest.$ac_ext <<_ACEOF | |
31071 | /* end confdefs.h. */ | |
f73dda09 | 31072 | |
3185942a JA |
31073 | /* Override any GCC internal prototype to avoid an error. |
31074 | Use char because int might match the return type of a GCC | |
31075 | builtin and then its argument prototype would still apply. */ | |
f73dda09 JA |
31076 | #ifdef __cplusplus |
31077 | extern "C" | |
31078 | #endif | |
f73dda09 JA |
31079 | char tgetent (); |
31080 | int | |
31081 | main () | |
31082 | { | |
3185942a | 31083 | return tgetent (); |
f73dda09 JA |
31084 | ; |
31085 | return 0; | |
31086 | } | |
31087 | _ACEOF | |
31088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3185942a JA |
31089 | if { (ac_try="$ac_link" |
31090 | case "(($ac_try" in | |
31091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31092 | *) ac_try_echo=$ac_try;; | |
31093 | esac | |
31094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
31095 | $as_echo "$ac_try_echo") >&5 | |
31096 | (eval "$ac_link") 2>conftest.er1 | |
f73dda09 | 31097 | ac_status=$? |
0628567a JA |
31098 | grep -v '^ *+' conftest.er1 >conftest.err |
31099 | rm -f conftest.er1 | |
31100 | cat conftest.err >&5 | |
3185942a JA |
31101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31102 | (exit $ac_status); } && { | |
31103 | test -z "$ac_c_werror_flag" || | |
31104 | test ! -s conftest.err | |
31105 | } && test -s conftest$ac_exeext && { | |
31106 | test "$cross_compiling" = yes || | |
31107 | $as_test_x conftest$ac_exeext | |
31108 | }; then | |
f73dda09 JA |
31109 | ac_cv_lib_ncurses_tgetent=yes |
31110 | else | |
3185942a | 31111 | $as_echo "$as_me: failed program was:" >&5 |
0628567a JA |
31112 | sed 's/^/| /' conftest.$ac_ext >&5 |
31113 | ||
3185942a | 31114 | ac_cv_lib_ncurses_tgetent=no |
f73dda09 | 31115 | fi |
3185942a JA |
31116 | |
31117 | rm -rf conftest.dSYM | |
31118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0628567a | 31119 | conftest$ac_exeext conftest.$ac_ext |
f73dda09 JA |
31120 | LIBS=$ac_check_lib_save_LIBS |
31121 | fi | |
3185942a JA |
31122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
31123 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
31124 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then | |
f73dda09 | 31125 | bash_cv_termcap_lib=libncurses |
ccc6cda3 | 31126 | else |
f73dda09 | 31127 | bash_cv_termcap_lib=gnutermcap |
ccc6cda3 | 31128 | fi |
ccc6cda3 | 31129 | |
ccc6cda3 JA |
31130 | fi |
31131 | ||
31132 | fi | |
31133 | ||
31134 | fi | |
31135 | ||
31136 | fi | |
31137 | ||
b80f6443 JA |
31138 | fi |
31139 | ||
ccc6cda3 | 31140 | if test "X$_bash_needmsg" = "Xyes"; then |
3185942a JA |
31141 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
31142 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
ccc6cda3 | 31143 | fi |
3185942a JA |
31144 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
31145 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
cce855bc | 31146 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
31147 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
31148 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
31149 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
d166f048 | 31150 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
ccc6cda3 JA |
31151 | TERMCAP_LIB=-ltermcap |
31152 | TERMCAP_DEP= | |
f73dda09 JA |
31153 | elif test $bash_cv_termcap_lib = libtinfo; then |
31154 | TERMCAP_LIB=-ltinfo | |
31155 | TERMCAP_DEP= | |
ccc6cda3 JA |
31156 | elif test $bash_cv_termcap_lib = libncurses; then |
31157 | TERMCAP_LIB=-lncurses | |
31158 | TERMCAP_DEP= | |
b80f6443 JA |
31159 | elif test $bash_cv_termcap_lib = libc; then |
31160 | TERMCAP_LIB= | |
31161 | TERMCAP_DEP= | |
ccc6cda3 JA |
31162 | else |
31163 | TERMCAP_LIB=-lcurses | |
31164 | TERMCAP_DEP= | |
31165 | fi | |
31166 | ||
31167 | fi | |
31168 | ||
b80f6443 JA |
31169 | |
31170 | ||
3185942a JA |
31171 | { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 |
31172 | $as_echo_n "checking whether /dev/fd is available... " >&6; } | |
f73dda09 | 31173 | if test "${bash_cv_dev_fd+set}" = set; then |
3185942a | 31174 | $as_echo_n "(cached) " >&6 |
d166f048 | 31175 | else |
0628567a | 31176 | bash_cv_dev_fd="" |
3185942a | 31177 | if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then |
95732b49 | 31178 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] |
3185942a | 31179 | if (exec test -r /dev/fd/3 3</dev/null) ; then |
95732b49 JA |
31180 | bash_cv_dev_fd=standard |
31181 | else | |
31182 | bash_cv_dev_fd=absent | |
31183 | fi | |
0628567a JA |
31184 | fi |
31185 | if test -z "$bash_cv_dev_fd" ; then | |
3185942a | 31186 | if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then |
0628567a JA |
31187 | bash_cv_dev_fd=whacky |
31188 | else | |
31189 | bash_cv_dev_fd=absent | |
31190 | fi | |
31191 | fi | |
d166f048 JA |
31192 | |
31193 | fi | |
31194 | ||
3185942a JA |
31195 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5 |
31196 | $as_echo "$bash_cv_dev_fd" >&6; } | |
d166f048 | 31197 | if test $bash_cv_dev_fd = "standard"; then |
b80f6443 | 31198 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 31199 | #define HAVE_DEV_FD 1 |
b80f6443 | 31200 | _ACEOF |
d166f048 | 31201 | |
b80f6443 | 31202 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 31203 | #define DEV_FD_PREFIX "/dev/fd/" |
b80f6443 | 31204 | _ACEOF |
d166f048 JA |
31205 | |
31206 | elif test $bash_cv_dev_fd = "whacky"; then | |
b80f6443 | 31207 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 31208 | #define HAVE_DEV_FD 1 |
b80f6443 | 31209 | _ACEOF |
d166f048 | 31210 | |
b80f6443 | 31211 | cat >>confdefs.h <<\_ACEOF |
d166f048 | 31212 | #define DEV_FD_PREFIX "/proc/self/fd/" |
b80f6443 | 31213 | _ACEOF |
d166f048 JA |
31214 | |
31215 | fi | |
31216 | ||
3185942a JA |
31217 | { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5 |
31218 | $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } | |
f73dda09 | 31219 | if test "${bash_cv_dev_stdin+set}" = set; then |
3185942a | 31220 | $as_echo_n "(cached) " >&6 |
bb70624e | 31221 | else |
3185942a | 31222 | if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then |
bb70624e | 31223 | bash_cv_dev_stdin=present |
3185942a | 31224 | elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then |
bb70624e JA |
31225 | bash_cv_dev_stdin=present |
31226 | else | |
31227 | bash_cv_dev_stdin=absent | |
31228 | fi | |
31229 | ||
31230 | fi | |
31231 | ||
3185942a JA |
31232 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5 |
31233 | $as_echo "$bash_cv_dev_stdin" >&6; } | |
bb70624e | 31234 | if test $bash_cv_dev_stdin = "present"; then |
b80f6443 | 31235 | cat >>confdefs.h <<\_ACEOF |
bb70624e | 31236 | #define HAVE_DEV_STDIN 1 |
b80f6443 | 31237 | _ACEOF |
bb70624e JA |
31238 | |
31239 | fi | |
31240 | ||
3185942a JA |
31241 | { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5 |
31242 | $as_echo_n "checking for default mail directory... " >&6; } | |
f73dda09 | 31243 | if test "${bash_cv_mail_dir+set}" = set; then |
3185942a | 31244 | $as_echo_n "(cached) " >&6 |
ccc6cda3 JA |
31245 | else |
31246 | if test -d /var/mail; then | |
31247 | bash_cv_mail_dir=/var/mail | |
ccc6cda3 JA |
31248 | elif test -d /var/spool/mail; then |
31249 | bash_cv_mail_dir=/var/spool/mail | |
7117c2d2 JA |
31250 | elif test -d /usr/mail; then |
31251 | bash_cv_mail_dir=/usr/mail | |
e8ce775d JA |
31252 | elif test -d /usr/spool/mail; then |
31253 | bash_cv_mail_dir=/usr/spool/mail | |
ccc6cda3 JA |
31254 | else |
31255 | bash_cv_mail_dir=unknown | |
31256 | fi | |
31257 | ||
31258 | fi | |
31259 | ||
3185942a JA |
31260 | { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5 |
31261 | $as_echo "$bash_cv_mail_dir" >&6; } | |
b80f6443 JA |
31262 | cat >>confdefs.h <<_ACEOF |
31263 | #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" | |
31264 | _ACEOF | |
31265 | ||
31266 | ||
ccc6cda3 | 31267 | |
ccc6cda3 JA |
31268 | if test "$bash_cv_job_control_missing" = missing; then |
31269 | opt_job_control=no | |
31270 | fi | |
31271 | ||
31272 | if test "$opt_job_control" = yes; then | |
b80f6443 | 31273 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 31274 | #define JOB_CONTROL 1 |
b80f6443 | 31275 | _ACEOF |
ccc6cda3 JA |
31276 | |
31277 | JOBS_O=jobs.o | |
31278 | else | |
31279 | JOBS_O=nojobs.o | |
31280 | fi | |
31281 | ||
b80f6443 JA |
31282 | |
31283 | ||
31284 | ||
d166f048 JA |
31285 | LOCAL_DEFS=-DSHELL |
31286 | ||
b80f6443 | 31287 | |
b72432fd | 31288 | case "${host_os}" in |
b80f6443 | 31289 | sysv4.2*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 31290 | #define SVR4_2 1 |
b80f6443 | 31291 | _ACEOF |
ccc6cda3 | 31292 | |
b80f6443 | 31293 | cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 31294 | #define SVR4 1 |
b80f6443 | 31295 | _ACEOF |
ccc6cda3 | 31296 | ;; |
b80f6443 | 31297 | sysv4*) cat >>confdefs.h <<\_ACEOF |
ccc6cda3 | 31298 | #define SVR4 1 |
b80f6443 | 31299 | _ACEOF |
ccc6cda3 | 31300 | ;; |
b80f6443 | 31301 | sysv5*) cat >>confdefs.h <<\_ACEOF |
b72432fd | 31302 | #define SVR5 1 |
b80f6443 | 31303 | _ACEOF |
b72432fd JA |
31304 | ;; |
31305 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; | |
ccc6cda3 JA |
31306 | hpux*) LOCAL_CFLAGS=-DHPUX ;; |
31307 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; | |
bb70624e JA |
31308 | isc*) LOCAL_CFLAGS=-Disc386 ;; |
31309 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; | |
f73dda09 | 31310 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; |
7117c2d2 JA |
31311 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; |
31312 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; | |
ccc6cda3 | 31313 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; |
d166f048 | 31314 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; |
f1be666c | 31315 | solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; |
17345e5a JA |
31316 | solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;; |
31317 | solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;; | |
31318 | solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;; | |
f1be666c | 31319 | solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; |
b72432fd | 31320 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
95732b49 JA |
31321 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
31322 | case "`uname -r`" in | |
31323 | 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF | |
31324 | #define PGRP_PIPE 1 | |
31325 | _ACEOF | |
31326 | ;; | |
31327 | esac ;; | |
31328 | *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; | |
7117c2d2 | 31329 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; |
b72432fd | 31330 | powerux*) LOCAL_LIBS="-lgen" ;; |
b80f6443 | 31331 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
0001803f | 31332 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;; |
b72432fd JA |
31333 | esac |
31334 | ||
31335 | case "${host_os}-${CC}" in | |
31336 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; | |
31337 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; | |
31338 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux | |
ccc6cda3 JA |
31339 | esac |
31340 | ||
bb70624e | 31341 | case "${host_os}" in |
28ef6c31 JA |
31342 | freebsd[3-9]*) |
31343 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then | |
bb70624e JA |
31344 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
31345 | fi ;; | |
28ef6c31 | 31346 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
95732b49 | 31347 | dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
bb70624e JA |
31348 | esac |
31349 | ||
ccc6cda3 JA |
31350 | case "$host_cpu" in |
31351 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it | |
31352 | esac | |
31353 | ||
31354 | case "$host_cpu-$host_os" in | |
31355 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; | |
31356 | esac | |
31357 | ||
31358 | case "$host_cpu-$host_vendor-$host_os" in | |
31359 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; | |
31360 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; | |
31361 | esac | |
31362 | ||
b72432fd JA |
31363 | # |
31364 | # Shared object configuration section. These values are generated by | |
31365 | # ${srcdir}/support/shobj-conf | |
31366 | # | |
31367 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf | |
31368 | then | |
3185942a JA |
31369 | { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5 |
31370 | $as_echo_n "checking shared object configuration for loadable builtins... " >&6; } | |
28ef6c31 | 31371 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` |
f73dda09 | 31372 | |
b80f6443 JA |
31373 | |
31374 | ||
31375 | ||
31376 | ||
31377 | ||
31378 | ||
3185942a JA |
31379 | { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5 |
31380 | $as_echo "$SHOBJ_STATUS" >&6; } | |
b72432fd JA |
31381 | fi |
31382 | ||
ccc6cda3 JA |
31383 | # try to create a directory tree if the source is elsewhere |
31384 | # this should be packaged into a script accessible via ${srcdir}/support | |
31385 | case "$srcdir" in | |
31386 | .) ;; | |
cce855bc | 31387 | *) for d in doc tests support lib examples; do # dirs |
ccc6cda3 JA |
31388 | test -d $d || mkdir $d |
31389 | done | |
cce855bc | 31390 | for ld in readline glob tilde malloc sh termcap; do # libdirs |
ccc6cda3 JA |
31391 | test -d lib/$ld || mkdir lib/$ld |
31392 | done | |
cce855bc | 31393 | test -d examples/loadables || mkdir examples/loadables # loadable builtins |
bb70624e | 31394 | test -d examples/loadables/perl || mkdir examples/loadables/perl |
ccc6cda3 JA |
31395 | ;; |
31396 | esac | |
31397 | ||
31398 | BUILD_DIR=`pwd` | |
95732b49 JA |
31399 | case "$BUILD_DIR" in |
31400 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
31401 | *) ;; | |
31402 | esac | |
ccc6cda3 | 31403 | |
3185942a JA |
31404 | if test -z "$localedir"; then |
31405 | localedir='${datarootdir}/locale' | |
31406 | fi | |
31407 | if test -z "$datarootdir"; then | |
31408 | datarootdir='${prefix}/share' | |
31409 | fi | |
31410 | ||
31411 | ||
31412 | ||
31413 | ||
b80f6443 JA |
31414 | |
31415 | ||
3185942a | 31416 | # Some versions of autoconf don't substitute these automatically |
b80f6443 JA |
31417 | |
31418 | ||
31419 | ||
31420 | ||
31421 | ||
31422 | ||
31423 | ||
31424 | ||
31425 | ||
31426 | ||
31427 | ||
31428 | ||
31429 | ||
31430 | ||
31431 | ||
31432 | ||
31433 | ||
31434 | ||
31435 | ||
31436 | ||
31437 | ||
d166f048 JA |
31438 | #AC_SUBST(ALLOCA_SOURCE) |
31439 | #AC_SUBST(ALLOCA_OBJECT) | |
31440 | ||
3185942a JA |
31441 | 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" |
31442 | ||
31443 | ac_config_commands="$ac_config_commands default" | |
31444 | ||
f73dda09 | 31445 | cat >confcache <<\_ACEOF |
ccc6cda3 JA |
31446 | # This file is a shell script that caches the results of configure |
31447 | # tests run on this system so they can be shared between configure | |
f73dda09 JA |
31448 | # scripts and configure runs, see configure's option --config-cache. |
31449 | # It is not useful on other systems. If it contains results you don't | |
31450 | # want to keep, you may remove or edit it. | |
726f6388 | 31451 | # |
f73dda09 JA |
31452 | # config.status only pays attention to the cache file if you give it |
31453 | # the --recheck option to rerun configure. | |
ccc6cda3 | 31454 | # |
0628567a | 31455 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
f73dda09 JA |
31456 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
31457 | # following values. | |
31458 | ||
31459 | _ACEOF | |
31460 | ||
ccc6cda3 JA |
31461 | # The following way of writing the cache mishandles newlines in values, |
31462 | # but we know of no workaround that is simple, portable, and efficient. | |
3185942a | 31463 | # So, we kill variables containing newlines. |
ccc6cda3 JA |
31464 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31465 | # and sets the high bit in the cache file unless we assign to the vars. | |
3185942a JA |
31466 | ( |
31467 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31468 | eval ac_val=\$$ac_var | |
31469 | case $ac_val in #( | |
31470 | *${as_nl}*) | |
31471 | case $ac_var in #( | |
31472 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
31473 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31474 | esac | |
31475 | case $ac_var in #( | |
31476 | _ | IFS | as_nl) ;; #( | |
31477 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31478 | *) $as_unset $ac_var ;; | |
31479 | esac ;; | |
31480 | esac | |
31481 | done | |
31482 | ||
f73dda09 | 31483 | (set) 2>&1 | |
3185942a JA |
31484 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31485 | *${as_nl}ac_space=\ *) | |
f73dda09 JA |
31486 | # `set' does not quote correctly, so add quotes (double-quote |
31487 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31488 | sed -n \ | |
0628567a JA |
31489 | "s/'/'\\\\''/g; |
31490 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3185942a | 31491 | ;; #( |
f73dda09 JA |
31492 | *) |
31493 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3185942a | 31494 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f73dda09 | 31495 | ;; |
3185942a JA |
31496 | esac | |
31497 | sort | |
31498 | ) | | |
f73dda09 | 31499 | sed ' |
3185942a | 31500 | /^ac_cv_env_/b end |
f73dda09 | 31501 | t clear |
3185942a | 31502 | :clear |
f73dda09 JA |
31503 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31504 | t end | |
3185942a JA |
31505 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31506 | :end' >>confcache | |
31507 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31508 | if test -w "$cache_file"; then | |
31509 | test "x$cache_file" != "x/dev/null" && | |
31510 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
31511 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f73dda09 | 31512 | cat confcache >$cache_file |
ccc6cda3 | 31513 | else |
3185942a JA |
31514 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
31515 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ccc6cda3 JA |
31516 | fi |
31517 | fi | |
31518 | rm -f confcache | |
31519 | ||
ccc6cda3 JA |
31520 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
31521 | # Let make expand exec_prefix. | |
31522 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
31523 | ||
ccc6cda3 JA |
31524 | DEFS=-DHAVE_CONFIG_H |
31525 | ||
0628567a JA |
31526 | ac_libobjs= |
31527 | ac_ltlibobjs= | |
31528 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
31529 | # 1. Remove the extension, and $U if already installed. | |
3185942a JA |
31530 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
31531 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
31532 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
31533 | # will be set to the directory where LIBOBJS objects are built. | |
31534 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
31535 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
0628567a JA |
31536 | done |
31537 | LIBOBJS=$ac_libobjs | |
31538 | ||
31539 | LTLIBOBJS=$ac_ltlibobjs | |
31540 | ||
31541 | ||
b80f6443 | 31542 | |
3185942a | 31543 | |
ccc6cda3 | 31544 | : ${CONFIG_STATUS=./config.status} |
3185942a | 31545 | ac_write_fail=0 |
f73dda09 JA |
31546 | ac_clean_files_save=$ac_clean_files |
31547 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3185942a JA |
31548 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
31549 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
31550 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f73dda09 | 31551 | #! $SHELL |
b80f6443 | 31552 | # Generated by $as_me. |
ccc6cda3 | 31553 | # Run this file to recreate the current configuration. |
ccc6cda3 | 31554 | # Compiler output produced by configure, useful for debugging |
f73dda09 | 31555 | # configure, is in config.log if it exists. |
ccc6cda3 | 31556 | |
f73dda09 | 31557 | debug=false |
0628567a JA |
31558 | ac_cs_recheck=false |
31559 | ac_cs_silent=false | |
f73dda09 | 31560 | SHELL=\${CONFIG_SHELL-$SHELL} |
f73dda09 JA |
31561 | _ACEOF |
31562 | ||
3185942a | 31563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80f6443 JA |
31564 | ## --------------------- ## |
31565 | ## M4sh Initialization. ## | |
31566 | ## --------------------- ## | |
31567 | ||
3185942a JA |
31568 | # Be more Bourne compatible |
31569 | DUALCASE=1; export DUALCASE # for MKS sh | |
f73dda09 JA |
31570 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
31571 | emulate sh | |
31572 | NULLCMD=: | |
3185942a | 31573 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
0628567a JA |
31574 | # is contrary to our usage. Disable this feature. |
31575 | alias -g '${1+"$@"}'='"$@"' | |
3185942a JA |
31576 | setopt NO_GLOB_SUBST |
31577 | else | |
31578 | case `(set -o) 2>/dev/null` in | |
31579 | *posix*) set -o posix ;; | |
31580 | esac | |
31581 | ||
31582 | fi | |
31583 | ||
31584 | ||
31585 | ||
31586 | ||
31587 | # PATH needs CR | |
31588 | # Avoid depending upon Character Ranges. | |
31589 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31590 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
31591 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
31592 | as_cr_digits='0123456789' | |
31593 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
31594 | ||
31595 | as_nl=' | |
31596 | ' | |
31597 | export as_nl | |
31598 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
31599 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
31600 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
31601 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
31602 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31603 | as_echo='printf %s\n' | |
31604 | as_echo_n='printf %s' | |
31605 | else | |
31606 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
31607 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
31608 | as_echo_n='/usr/ucb/echo -n' | |
31609 | else | |
31610 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
31611 | as_echo_n_body='eval | |
31612 | arg=$1; | |
31613 | case $arg in | |
31614 | *"$as_nl"*) | |
31615 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
31616 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
31617 | esac; | |
31618 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
31619 | ' | |
31620 | export as_echo_n_body | |
31621 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31622 | fi | |
31623 | export as_echo_body | |
31624 | as_echo='sh -c $as_echo_body as_echo' | |
31625 | fi | |
31626 | ||
31627 | # The user is always right. | |
31628 | if test "${PATH_SEPARATOR+set}" != set; then | |
31629 | PATH_SEPARATOR=: | |
31630 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
31631 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
31632 | PATH_SEPARATOR=';' | |
31633 | } | |
f73dda09 JA |
31634 | fi |
31635 | ||
b80f6443 | 31636 | # Support unset when possible. |
0628567a | 31637 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
b80f6443 JA |
31638 | as_unset=unset |
31639 | else | |
31640 | as_unset=false | |
31641 | fi | |
31642 | ||
0628567a | 31643 | |
3185942a JA |
31644 | # IFS |
31645 | # We need space, tab and new line, in precisely that order. Quoting is | |
31646 | # there to prevent editors from complaining about space-tab. | |
31647 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
31648 | # splitting by setting IFS to empty value.) | |
31649 | IFS=" "" $as_nl" | |
31650 | ||
31651 | # Find who we are. Look in the path if we contain no directory separator. | |
31652 | case $0 in | |
31653 | *[\\/]* ) as_myself=$0 ;; | |
31654 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31655 | for as_dir in $PATH | |
31656 | do | |
31657 | IFS=$as_save_IFS | |
31658 | test -z "$as_dir" && as_dir=. | |
31659 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
31660 | done | |
31661 | IFS=$as_save_IFS | |
31662 | ||
31663 | ;; | |
31664 | esac | |
31665 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
31666 | # in which case we are not to be found in the path. | |
31667 | if test "x$as_myself" = x; then | |
31668 | as_myself=$0 | |
31669 | fi | |
31670 | if test ! -f "$as_myself"; then | |
31671 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
31672 | { (exit 1); exit 1; } | |
31673 | fi | |
31674 | ||
0628567a | 31675 | # Work around bugs in pre-3.0 UWIN ksh. |
3185942a JA |
31676 | for as_var in ENV MAIL MAILPATH |
31677 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
31678 | done | |
0628567a JA |
31679 | PS1='$ ' |
31680 | PS2='> ' | |
31681 | PS4='+ ' | |
31682 | ||
31683 | # NLS nuisances. | |
3185942a JA |
31684 | LC_ALL=C |
31685 | export LC_ALL | |
31686 | LANGUAGE=C | |
31687 | export LANGUAGE | |
0628567a JA |
31688 | |
31689 | # Required to use basename. | |
3185942a JA |
31690 | if expr a : '\(a\)' >/dev/null 2>&1 && |
31691 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
0628567a JA |
31692 | as_expr=expr |
31693 | else | |
31694 | as_expr=false | |
31695 | fi | |
31696 | ||
3185942a | 31697 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
0628567a JA |
31698 | as_basename=basename |
31699 | else | |
31700 | as_basename=false | |
31701 | fi | |
b80f6443 JA |
31702 | |
31703 | ||
f73dda09 | 31704 | # Name of the executable. |
3185942a | 31705 | as_me=`$as_basename -- "$0" || |
b80f6443 JA |
31706 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
31707 | X"$0" : 'X\(//\)$' \| \ | |
3185942a JA |
31708 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
31709 | $as_echo X/"$0" | | |
31710 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
31711 | s//\1/ | |
31712 | q | |
31713 | } | |
31714 | /^X\/\(\/\/\)$/{ | |
31715 | s//\1/ | |
31716 | q | |
31717 | } | |
31718 | /^X\/\(\/\).*/{ | |
31719 | s//\1/ | |
31720 | q | |
31721 | } | |
31722 | s/.*/./; q'` | |
b80f6443 | 31723 | |
3185942a JA |
31724 | # CDPATH. |
31725 | $as_unset CDPATH | |
b80f6443 JA |
31726 | |
31727 | ||
b80f6443 | 31728 | |
b80f6443 JA |
31729 | as_lineno_1=$LINENO |
31730 | as_lineno_2=$LINENO | |
b80f6443 | 31731 | test "x$as_lineno_1" != "x$as_lineno_2" && |
3185942a | 31732 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b80f6443 JA |
31733 | |
31734 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
31735 | # uniformly replaced by the line number. The first 'sed' inserts a | |
3185942a JA |
31736 | # line-number line after each line using $LINENO; the second 'sed' |
31737 | # does the real work. The second script uses 'N' to pair each | |
31738 | # line-number line with the line containing $LINENO, and appends | |
31739 | # trailing '-' during substitution so that $LINENO is not a special | |
31740 | # case at line end. | |
b80f6443 | 31741 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
3185942a JA |
31742 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
31743 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
31744 | sed -n ' | |
31745 | p | |
31746 | /[$]LINENO/= | |
31747 | ' <$as_myself | | |
b80f6443 | 31748 | sed ' |
3185942a JA |
31749 | s/[$]LINENO.*/&-/ |
31750 | t lineno | |
31751 | b | |
31752 | :lineno | |
b80f6443 | 31753 | N |
3185942a JA |
31754 | :loop |
31755 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b80f6443 | 31756 | t loop |
3185942a | 31757 | s/-\n.*// |
b80f6443 | 31758 | ' >$as_me.lineno && |
3185942a JA |
31759 | chmod +x "$as_me.lineno" || |
31760 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b80f6443 JA |
31761 | { (exit 1); exit 1; }; } |
31762 | ||
31763 | # Don't try to exec as it changes $[0], causing all sort of problems | |
31764 | # (the dirname of $[0] is not the place where we might find the | |
3185942a JA |
31765 | # original and so on. Autoconf is especially sensitive to this). |
31766 | . "./$as_me.lineno" | |
b80f6443 JA |
31767 | # Exit status is that of the last command. |
31768 | exit | |
31769 | } | |
31770 | ||
31771 | ||
3185942a JA |
31772 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
31773 | as_dirname=dirname | |
31774 | else | |
31775 | as_dirname=false | |
31776 | fi | |
f73dda09 | 31777 | |
3185942a JA |
31778 | ECHO_C= ECHO_N= ECHO_T= |
31779 | case `echo -n x` in | |
31780 | -n*) | |
31781 | case `echo 'x\c'` in | |
31782 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
31783 | *) ECHO_C='\c';; | |
31784 | esac;; | |
31785 | *) | |
31786 | ECHO_N='-n';; | |
31787 | esac | |
31788 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
31789 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f73dda09 JA |
31790 | as_expr=expr |
31791 | else | |
31792 | as_expr=false | |
31793 | fi | |
31794 | ||
31795 | rm -f conf$$ conf$$.exe conf$$.file | |
3185942a JA |
31796 | if test -d conf$$.dir; then |
31797 | rm -f conf$$.dir/conf$$.file | |
31798 | else | |
31799 | rm -f conf$$.dir | |
31800 | mkdir conf$$.dir 2>/dev/null | |
31801 | fi | |
31802 | if (echo >conf$$.file) 2>/dev/null; then | |
31803 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
f73dda09 | 31804 | as_ln_s='ln -s' |
3185942a JA |
31805 | # ... but there are two gotchas: |
31806 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
31807 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
31808 | # In both cases, we have to default to `cp -p'. | |
31809 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
31810 | as_ln_s='cp -p' | |
31811 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
31812 | as_ln_s=ln | |
31813 | else | |
31814 | as_ln_s='cp -p' | |
f73dda09 | 31815 | fi |
f73dda09 JA |
31816 | else |
31817 | as_ln_s='cp -p' | |
31818 | fi | |
3185942a JA |
31819 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
31820 | rmdir conf$$.dir 2>/dev/null | |
f73dda09 | 31821 | |
0628567a JA |
31822 | if mkdir -p . 2>/dev/null; then |
31823 | as_mkdir_p=: | |
31824 | else | |
31825 | test -d ./-p && rmdir ./-p | |
31826 | as_mkdir_p=false | |
31827 | fi | |
31828 | ||
3185942a JA |
31829 | if test -x / >/dev/null 2>&1; then |
31830 | as_test_x='test -x' | |
31831 | else | |
31832 | if ls -dL / >/dev/null 2>&1; then | |
31833 | as_ls_L_option=L | |
31834 | else | |
31835 | as_ls_L_option= | |
31836 | fi | |
31837 | as_test_x=' | |
31838 | eval sh -c '\'' | |
31839 | if test -d "$1"; then | |
31840 | test -d "$1/."; | |
31841 | else | |
31842 | case $1 in | |
31843 | -*)set "./$1";; | |
31844 | esac; | |
31845 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
31846 | ???[sx]*):;;*)false;;esac;fi | |
31847 | '\'' sh | |
31848 | ' | |
31849 | fi | |
31850 | as_executable_p=$as_test_x | |
b80f6443 JA |
31851 | |
31852 | # Sed expression to map a string onto a valid CPP name. | |
0628567a | 31853 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 JA |
31854 | |
31855 | # Sed expression to map a string onto a valid variable name. | |
0628567a | 31856 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
b80f6443 | 31857 | |
f73dda09 | 31858 | |
f73dda09 JA |
31859 | exec 6>&1 |
31860 | ||
3185942a | 31861 | # Save the log message, to keep $[0] and so on meaningful, and to |
b80f6443 | 31862 | # report actual input values of CONFIG_FILES etc. instead of their |
3185942a JA |
31863 | # values after options handling. |
31864 | ac_log=" | |
495aee44 | 31865 | This file was extended by bash $as_me 4.2-release, which was |
3185942a | 31866 | generated by GNU Autoconf 2.63. Invocation command line was |
b80f6443 JA |
31867 | |
31868 | CONFIG_FILES = $CONFIG_FILES | |
31869 | CONFIG_HEADERS = $CONFIG_HEADERS | |
31870 | CONFIG_LINKS = $CONFIG_LINKS | |
31871 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
31872 | $ $0 $@ | |
31873 | ||
3185942a JA |
31874 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
31875 | " | |
31876 | ||
f73dda09 JA |
31877 | _ACEOF |
31878 | ||
3185942a JA |
31879 | case $ac_config_files in *" |
31880 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
31881 | esac | |
f73dda09 | 31882 | |
3185942a JA |
31883 | case $ac_config_headers in *" |
31884 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
31885 | esac | |
f73dda09 | 31886 | |
f73dda09 | 31887 | |
3185942a JA |
31888 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
31889 | # Files that config.status was made for. | |
31890 | config_files="$ac_config_files" | |
31891 | config_headers="$ac_config_headers" | |
31892 | config_commands="$ac_config_commands" | |
f73dda09 | 31893 | |
3185942a | 31894 | _ACEOF |
f73dda09 | 31895 | |
3185942a | 31896 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f73dda09 JA |
31897 | ac_cs_usage="\ |
31898 | \`$as_me' instantiates files from templates according to the | |
31899 | current configuration. | |
31900 | ||
3185942a | 31901 | Usage: $0 [OPTION]... [FILE]... |
f73dda09 JA |
31902 | |
31903 | -h, --help print this help, then exit | |
3185942a JA |
31904 | -V, --version print version number and configuration settings, then exit |
31905 | -q, --quiet, --silent | |
31906 | do not print progress messages | |
f73dda09 JA |
31907 | -d, --debug don't remove temporary files |
31908 | --recheck update $as_me by reconfiguring in the same conditions | |
3185942a JA |
31909 | --file=FILE[:TEMPLATE] |
31910 | instantiate the configuration file FILE | |
31911 | --header=FILE[:TEMPLATE] | |
31912 | instantiate the configuration header FILE | |
f73dda09 JA |
31913 | |
31914 | Configuration files: | |
31915 | $config_files | |
31916 | ||
31917 | Configuration headers: | |
31918 | $config_headers | |
31919 | ||
31920 | Configuration commands: | |
31921 | $config_commands | |
31922 | ||
31923 | Report bugs to <bug-autoconf@gnu.org>." | |
f73dda09 | 31924 | |
3185942a JA |
31925 | _ACEOF |
31926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f73dda09 | 31927 | ac_cs_version="\\ |
495aee44 | 31928 | bash config.status 4.2-release |
3185942a JA |
31929 | configured by $0, generated by GNU Autoconf 2.63, |
31930 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
f73dda09 | 31931 | |
3185942a | 31932 | Copyright (C) 2008 Free Software Foundation, Inc. |
f73dda09 JA |
31933 | This config.status script is free software; the Free Software Foundation |
31934 | gives unlimited permission to copy, distribute and modify it." | |
3185942a JA |
31935 | |
31936 | ac_pwd='$ac_pwd' | |
31937 | srcdir='$srcdir' | |
31938 | INSTALL='$INSTALL' | |
31939 | test -n "\$AWK" || AWK=awk | |
b80f6443 | 31940 | _ACEOF |
f73dda09 | 31941 | |
3185942a JA |
31942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
31943 | # The default lists apply if the user does not specify any file. | |
f73dda09 JA |
31944 | ac_need_defaults=: |
31945 | while test $# != 0 | |
ccc6cda3 | 31946 | do |
f73dda09 JA |
31947 | case $1 in |
31948 | --*=*) | |
3185942a JA |
31949 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
31950 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
0628567a JA |
31951 | ac_shift=: |
31952 | ;; | |
3185942a | 31953 | *) |
0628567a JA |
31954 | ac_option=$1 |
31955 | ac_optarg=$2 | |
31956 | ac_shift=shift | |
f73dda09 | 31957 | ;; |
f73dda09 JA |
31958 | esac |
31959 | ||
0628567a | 31960 | case $ac_option in |
f73dda09 | 31961 | # Handling of the options. |
0628567a JA |
31962 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
31963 | ac_cs_recheck=: ;; | |
3185942a JA |
31964 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
31965 | $as_echo "$ac_cs_version"; exit ;; | |
31966 | --debug | --debu | --deb | --de | --d | -d ) | |
f73dda09 JA |
31967 | debug=: ;; |
31968 | --file | --fil | --fi | --f ) | |
0628567a | 31969 | $ac_shift |
3185942a JA |
31970 | case $ac_optarg in |
31971 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
31972 | esac | |
31973 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
f73dda09 JA |
31974 | ac_need_defaults=false;; |
31975 | --header | --heade | --head | --hea ) | |
0628567a | 31976 | $ac_shift |
3185942a JA |
31977 | case $ac_optarg in |
31978 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
31979 | esac | |
31980 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
f73dda09 | 31981 | ac_need_defaults=false;; |
3185942a JA |
31982 | --he | --h) |
31983 | # Conflict between --help and --header | |
31984 | { $as_echo "$as_me: error: ambiguous option: $1 | |
31985 | Try \`$0 --help' for more information." >&2 | |
31986 | { (exit 1); exit 1; }; };; | |
31987 | --help | --hel | -h ) | |
31988 | $as_echo "$ac_cs_usage"; exit ;; | |
0628567a JA |
31989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
31990 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
31991 | ac_cs_silent=: ;; | |
f73dda09 JA |
31992 | |
31993 | # This is an error. | |
3185942a JA |
31994 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
31995 | Try \`$0 --help' for more information." >&2 | |
f73dda09 JA |
31996 | { (exit 1); exit 1; }; } ;; |
31997 | ||
3185942a JA |
31998 | *) ac_config_targets="$ac_config_targets $1" |
31999 | ac_need_defaults=false ;; | |
f73dda09 | 32000 | |
ccc6cda3 | 32001 | esac |
f73dda09 | 32002 | shift |
ccc6cda3 JA |
32003 | done |
32004 | ||
0628567a JA |
32005 | ac_configure_extra_args= |
32006 | ||
32007 | if $ac_cs_silent; then | |
32008 | exec 6>/dev/null | |
32009 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
32010 | fi | |
32011 | ||
32012 | _ACEOF | |
3185942a | 32013 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
0628567a | 32014 | if \$ac_cs_recheck; then |
3185942a JA |
32015 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
32016 | shift | |
32017 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
32018 | CONFIG_SHELL='$SHELL' | |
32019 | export CONFIG_SHELL | |
32020 | exec "\$@" | |
0628567a JA |
32021 | fi |
32022 | ||
b80f6443 | 32023 | _ACEOF |
3185942a JA |
32024 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32025 | exec 5>>config.log | |
32026 | { | |
32027 | echo | |
32028 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
32029 | ## Running $as_me. ## | |
32030 | _ASBOX | |
32031 | $as_echo "$ac_log" | |
32032 | } >&5 | |
b80f6443 | 32033 | |
3185942a JA |
32034 | _ACEOF |
32035 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b80f6443 | 32036 | # |
3185942a | 32037 | # INIT-COMMANDS |
b80f6443 | 32038 | # |
b80f6443 JA |
32039 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
32040 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
32041 | # from automake. | |
32042 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
32043 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
32044 | LINGUAS="${LINGUAS-%UNSET%}" | |
f73dda09 | 32045 | |
f73dda09 JA |
32046 | |
32047 | _ACEOF | |
ccc6cda3 | 32048 | |
3185942a | 32049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80f6443 | 32050 | |
3185942a | 32051 | # Handling of arguments. |
f73dda09 JA |
32052 | for ac_config_target in $ac_config_targets |
32053 | do | |
3185942a JA |
32054 | case $ac_config_target in |
32055 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
32056 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
32057 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
32058 | "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; | |
32059 | "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; | |
32060 | "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; | |
32061 | "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; | |
32062 | "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; | |
32063 | "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; | |
32064 | "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; | |
32065 | "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; | |
32066 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
32067 | "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
32068 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
32069 | "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; | |
32070 | "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; | |
32071 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
32072 | ||
32073 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
32074 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
f73dda09 JA |
32075 | { (exit 1); exit 1; }; };; |
32076 | esac | |
32077 | done | |
32078 | ||
3185942a | 32079 | |
f73dda09 JA |
32080 | # If the user did not use the arguments to specify the items to instantiate, |
32081 | # then the envvar interface is used. Set only those that are not. | |
32082 | # We use the long form for the default assignment because of an extremely | |
32083 | # bizarre bug on SunOS 4.1.3. | |
32084 | if $ac_need_defaults; then | |
32085 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
32086 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
32087 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
32088 | fi | |
32089 | ||
0628567a | 32090 | # Have a temporary directory for convenience. Make it in the build tree |
3185942a | 32091 | # simply because there is no reason against having it here, and in addition, |
0628567a | 32092 | # creating and moving files from /tmp can sometimes cause problems. |
3185942a JA |
32093 | # Hook for its removal unless debugging. |
32094 | # Note that there is a small window in which the directory will not be cleaned: | |
32095 | # after its creation but before its name has been assigned to `$tmp'. | |
f73dda09 JA |
32096 | $debug || |
32097 | { | |
3185942a JA |
32098 | tmp= |
32099 | trap 'exit_status=$? | |
32100 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
32101 | ' 0 | |
f73dda09 JA |
32102 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
32103 | } | |
f73dda09 | 32104 | # Create a (secure) tmp directory for tmp files. |
0628567a | 32105 | |
f73dda09 | 32106 | { |
3185942a | 32107 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f73dda09 JA |
32108 | test -n "$tmp" && test -d "$tmp" |
32109 | } || | |
32110 | { | |
3185942a JA |
32111 | tmp=./conf$$-$RANDOM |
32112 | (umask 077 && mkdir "$tmp") | |
f73dda09 JA |
32113 | } || |
32114 | { | |
3185942a | 32115 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
f73dda09 JA |
32116 | { (exit 1); exit 1; } |
32117 | } | |
ccc6cda3 | 32118 | |
3185942a JA |
32119 | # Set up the scripts for CONFIG_FILES section. |
32120 | # No need to generate them if there are no CONFIG_FILES. | |
32121 | # This happens for instance with `./config.status config.h'. | |
32122 | if test -n "$CONFIG_FILES"; then | |
32123 | ||
32124 | ||
32125 | ac_cr='\r' | |
32126 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
32127 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
32128 | ac_cs_awk_cr='\\r' | |
32129 | else | |
32130 | ac_cs_awk_cr=$ac_cr | |
32131 | fi | |
32132 | ||
32133 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
b80f6443 | 32134 | _ACEOF |
ccc6cda3 | 32135 | |
ccc6cda3 | 32136 | |
3185942a JA |
32137 | { |
32138 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
32139 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
32140 | echo "_ACEOF" | |
32141 | } >conf$$subs.sh || | |
32142 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
32143 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
32144 | { (exit 1); exit 1; }; } | |
32145 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
32146 | ac_delim='%!_!# ' | |
32147 | for ac_last_try in false false false false false :; do | |
32148 | . ./conf$$subs.sh || | |
32149 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
32150 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
32151 | { (exit 1); exit 1; }; } | |
f73dda09 | 32152 | |
3185942a JA |
32153 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
32154 | if test $ac_delim_n = $ac_delim_num; then | |
32155 | break | |
32156 | elif $ac_last_try; then | |
32157 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
32158 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
32159 | { (exit 1); exit 1; }; } | |
32160 | else | |
32161 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ccc6cda3 | 32162 | fi |
3185942a JA |
32163 | done |
32164 | rm -f conf$$subs.sh | |
32165 | ||
32166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32167 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
32168 | _ACEOF | |
32169 | sed -n ' | |
32170 | h | |
32171 | s/^/S["/; s/!.*/"]=/ | |
32172 | p | |
32173 | g | |
32174 | s/^[^!]*!// | |
32175 | :repl | |
32176 | t repl | |
32177 | s/'"$ac_delim"'$// | |
32178 | t delim | |
32179 | :nl | |
32180 | h | |
32181 | s/\(.\{148\}\).*/\1/ | |
32182 | t more1 | |
32183 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
32184 | p | |
32185 | n | |
32186 | b repl | |
32187 | :more1 | |
32188 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32189 | p | |
32190 | g | |
32191 | s/.\{148\}// | |
32192 | t nl | |
32193 | :delim | |
32194 | h | |
32195 | s/\(.\{148\}\).*/\1/ | |
32196 | t more2 | |
32197 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
32198 | p | |
32199 | b | |
32200 | :more2 | |
32201 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32202 | p | |
32203 | g | |
32204 | s/.\{148\}// | |
32205 | t delim | |
32206 | ' <conf$$subs.awk | sed ' | |
32207 | /^[^""]/{ | |
32208 | N | |
32209 | s/\n// | |
32210 | } | |
32211 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
32212 | rm -f conf$$subs.awk | |
32213 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32214 | _ACAWK | |
32215 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
32216 | for (key in S) S_is_set[key] = 1 | |
32217 | FS = "\a" | |
32218 | ||
32219 | } | |
32220 | { | |
32221 | line = $ 0 | |
32222 | nfields = split(line, field, "@") | |
32223 | substed = 0 | |
32224 | len = length(field[1]) | |
32225 | for (i = 2; i < nfields; i++) { | |
32226 | key = field[i] | |
32227 | keylen = length(key) | |
32228 | if (S_is_set[key]) { | |
32229 | value = S[key] | |
32230 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
32231 | len += length(value) + length(field[++i]) | |
32232 | substed = 1 | |
32233 | } else | |
32234 | len += 1 + keylen | |
32235 | } | |
32236 | ||
32237 | print line | |
32238 | } | |
32239 | ||
32240 | _ACAWK | |
32241 | _ACEOF | |
32242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32243 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
32244 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
32245 | else | |
32246 | cat | |
32247 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
32248 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
32249 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
32250 | { (exit 1); exit 1; }; } | |
32251 | _ACEOF | |
32252 | ||
32253 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
32254 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
32255 | # trailing colons and then remove the whole line if VPATH becomes empty | |
32256 | # (actually we leave an empty line to preserve line numbers). | |
32257 | if test "x$srcdir" = x.; then | |
32258 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
32259 | s/:*\$(srcdir):*/:/ | |
32260 | s/:*\${srcdir}:*/:/ | |
32261 | s/:*@srcdir@:*/:/ | |
32262 | s/^\([^=]*=[ ]*\):*/\1/ | |
32263 | s/:*$// | |
32264 | s/^[^=]*=[ ]*$// | |
32265 | }' | |
32266 | fi | |
32267 | ||
32268 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f73dda09 | 32269 | fi # test -n "$CONFIG_FILES" |
ccc6cda3 | 32270 | |
3185942a JA |
32271 | # Set up the scripts for CONFIG_HEADERS section. |
32272 | # No need to generate them if there are no CONFIG_HEADERS. | |
32273 | # This happens for instance with `./config.status Makefile'. | |
32274 | if test -n "$CONFIG_HEADERS"; then | |
32275 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
32276 | BEGIN { | |
b80f6443 | 32277 | _ACEOF |
3185942a JA |
32278 | |
32279 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
32280 | # here-document in config.status, that substitutes the proper values into | |
32281 | # config.h.in to produce config.h. | |
32282 | ||
32283 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
32284 | # handling of long lines. | |
32285 | ac_delim='%!_!# ' | |
32286 | for ac_last_try in false false :; do | |
32287 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
32288 | if test -z "$ac_t"; then | |
32289 | break | |
32290 | elif $ac_last_try; then | |
32291 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
32292 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
32293 | { (exit 1); exit 1; }; } | |
32294 | else | |
32295 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32296 | fi | |
32297 | done | |
32298 | ||
32299 | # For the awk script, D is an array of macro values keyed by name, | |
32300 | # likewise P contains macro parameters if any. Preserve backslash | |
32301 | # newline sequences. | |
32302 | ||
32303 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
32304 | sed -n ' | |
32305 | s/.\{148\}/&'"$ac_delim"'/g | |
32306 | t rset | |
32307 | :rset | |
32308 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
32309 | t def | |
32310 | d | |
32311 | :def | |
32312 | s/\\$// | |
32313 | t bsnl | |
32314 | s/["\\]/\\&/g | |
32315 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32316 | D["\1"]=" \3"/p | |
32317 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
32318 | d | |
32319 | :bsnl | |
32320 | s/["\\]/\\&/g | |
32321 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32322 | D["\1"]=" \3\\\\\\n"\\/p | |
32323 | t cont | |
32324 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
32325 | t cont | |
32326 | d | |
32327 | :cont | |
32328 | n | |
32329 | s/.\{148\}/&'"$ac_delim"'/g | |
32330 | t clear | |
32331 | :clear | |
32332 | s/\\$// | |
32333 | t bsnlc | |
32334 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
32335 | d | |
32336 | :bsnlc | |
32337 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
32338 | b cont | |
32339 | ' <confdefs.h | sed ' | |
32340 | s/'"$ac_delim"'/"\\\ | |
32341 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
32342 | ||
32343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32344 | for (key in D) D_is_set[key] = 1 | |
32345 | FS = "\a" | |
32346 | } | |
32347 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
32348 | line = \$ 0 | |
32349 | split(line, arg, " ") | |
32350 | if (arg[1] == "#") { | |
32351 | defundef = arg[2] | |
32352 | mac1 = arg[3] | |
32353 | } else { | |
32354 | defundef = substr(arg[1], 2) | |
32355 | mac1 = arg[2] | |
32356 | } | |
32357 | split(mac1, mac2, "(") #) | |
32358 | macro = mac2[1] | |
32359 | prefix = substr(line, 1, index(line, defundef) - 1) | |
32360 | if (D_is_set[macro]) { | |
32361 | # Preserve the white space surrounding the "#". | |
32362 | print prefix "define", macro P[macro] D[macro] | |
32363 | next | |
32364 | } else { | |
32365 | # Replace #undef with comments. This is necessary, for example, | |
32366 | # in the case of _POSIX_SOURCE, which is predefined and required | |
32367 | # on some systems where configure will not decide to define it. | |
32368 | if (defundef == "undef") { | |
32369 | print "/*", prefix defundef, macro, "*/" | |
32370 | next | |
32371 | } | |
32372 | } | |
32373 | } | |
32374 | { print } | |
32375 | _ACAWK | |
32376 | _ACEOF | |
32377 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32378 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
32379 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
32380 | { (exit 1); exit 1; }; } | |
32381 | fi # test -n "$CONFIG_HEADERS" | |
32382 | ||
32383 | ||
32384 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
32385 | shift | |
32386 | for ac_tag | |
32387 | do | |
32388 | case $ac_tag in | |
32389 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
32390 | esac | |
32391 | case $ac_mode$ac_tag in | |
32392 | :[FHL]*:*);; | |
32393 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
32394 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
32395 | { (exit 1); exit 1; }; };; | |
32396 | :[FH]-) ac_tag=-:-;; | |
32397 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
32398 | esac | |
32399 | ac_save_IFS=$IFS | |
32400 | IFS=: | |
32401 | set x $ac_tag | |
32402 | IFS=$ac_save_IFS | |
32403 | shift | |
32404 | ac_file=$1 | |
32405 | shift | |
32406 | ||
32407 | case $ac_mode in | |
32408 | :L) ac_source=$1;; | |
32409 | :[FH]) | |
32410 | ac_file_inputs= | |
32411 | for ac_f | |
32412 | do | |
32413 | case $ac_f in | |
32414 | -) ac_f="$tmp/stdin";; | |
32415 | *) # Look for the file first in the build tree, then in the source tree | |
32416 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
32417 | # because $ac_f cannot contain `:'. | |
32418 | test -f "$ac_f" || | |
32419 | case $ac_f in | |
32420 | [\\/$]*) false;; | |
32421 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
32422 | esac || | |
32423 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
32424 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
32425 | { (exit 1); exit 1; }; };; | |
32426 | esac | |
32427 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
32428 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
32429 | done | |
32430 | ||
32431 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
32432 | # use $as_me), people would be surprised to read: | |
32433 | # /* config.h. Generated by config.status. */ | |
32434 | configure_input='Generated from '` | |
32435 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
32436 | `' by configure.' | |
32437 | if test x"$ac_file" != x-; then | |
32438 | configure_input="$ac_file. $configure_input" | |
32439 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
32440 | $as_echo "$as_me: creating $ac_file" >&6;} | |
32441 | fi | |
32442 | # Neutralize special characters interpreted by sed in replacement strings. | |
32443 | case $configure_input in #( | |
32444 | *\&* | *\|* | *\\* ) | |
32445 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
32446 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
32447 | *) ac_sed_conf_input=$configure_input;; | |
32448 | esac | |
32449 | ||
32450 | case $ac_tag in | |
32451 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
32452 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
32453 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
32454 | { (exit 1); exit 1; }; } ;; | |
32455 | esac | |
32456 | ;; | |
ccc6cda3 JA |
32457 | esac |
32458 | ||
3185942a | 32459 | ac_dir=`$as_dirname -- "$ac_file" || |
b80f6443 | 32460 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
0628567a JA |
32461 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
32462 | X"$ac_file" : 'X\(//\)$' \| \ | |
3185942a JA |
32463 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
32464 | $as_echo X"$ac_file" | | |
32465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32466 | s//\1/ | |
32467 | q | |
32468 | } | |
32469 | /^X\(\/\/\)[^/].*/{ | |
32470 | s//\1/ | |
32471 | q | |
32472 | } | |
32473 | /^X\(\/\/\)$/{ | |
32474 | s//\1/ | |
32475 | q | |
32476 | } | |
32477 | /^X\(\/\).*/{ | |
32478 | s//\1/ | |
32479 | q | |
32480 | } | |
32481 | s/.*/./; q'` | |
32482 | { as_dir="$ac_dir" | |
32483 | case $as_dir in #( | |
32484 | -*) as_dir=./$as_dir;; | |
32485 | esac | |
32486 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
0628567a | 32487 | as_dirs= |
3185942a JA |
32488 | while :; do |
32489 | case $as_dir in #( | |
32490 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
32491 | *) as_qdir=$as_dir;; | |
32492 | esac | |
32493 | as_dirs="'$as_qdir' $as_dirs" | |
32494 | as_dir=`$as_dirname -- "$as_dir" || | |
0628567a JA |
32495 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
32496 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
32497 | X"$as_dir" : 'X\(//\)$' \| \ | |
3185942a JA |
32498 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
32499 | $as_echo X"$as_dir" | | |
32500 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32501 | s//\1/ | |
32502 | q | |
32503 | } | |
32504 | /^X\(\/\/\)[^/].*/{ | |
32505 | s//\1/ | |
32506 | q | |
32507 | } | |
32508 | /^X\(\/\/\)$/{ | |
32509 | s//\1/ | |
32510 | q | |
32511 | } | |
32512 | /^X\(\/\).*/{ | |
32513 | s//\1/ | |
32514 | q | |
32515 | } | |
32516 | s/.*/./; q'` | |
32517 | test -d "$as_dir" && break | |
0628567a | 32518 | done |
3185942a JA |
32519 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
32520 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
32521 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
0628567a | 32522 | { (exit 1); exit 1; }; }; } |
b80f6443 JA |
32523 | ac_builddir=. |
32524 | ||
3185942a JA |
32525 | case "$ac_dir" in |
32526 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32527 | *) | |
32528 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
32529 | # A ".." for each directory in $ac_dir_suffix. | |
32530 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
32531 | case $ac_top_builddir_sub in | |
32532 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32533 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
32534 | esac ;; | |
32535 | esac | |
32536 | ac_abs_top_builddir=$ac_pwd | |
32537 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
32538 | # for backward compatibility: | |
32539 | ac_top_builddir=$ac_top_build_prefix | |
b80f6443 JA |
32540 | |
32541 | case $srcdir in | |
3185942a | 32542 | .) # We are building in place. |
b80f6443 | 32543 | ac_srcdir=. |
3185942a JA |
32544 | ac_top_srcdir=$ac_top_builddir_sub |
32545 | ac_abs_top_srcdir=$ac_pwd ;; | |
32546 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b80f6443 | 32547 | ac_srcdir=$srcdir$ac_dir_suffix; |
3185942a JA |
32548 | ac_top_srcdir=$srcdir |
32549 | ac_abs_top_srcdir=$srcdir ;; | |
32550 | *) # Relative name. | |
32551 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
32552 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
32553 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b80f6443 | 32554 | esac |
3185942a | 32555 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
0628567a | 32556 | |
b80f6443 | 32557 | |
3185942a JA |
32558 | case $ac_mode in |
32559 | :F) | |
32560 | # | |
32561 | # CONFIG_FILE | |
32562 | # | |
ccc6cda3 | 32563 | |
f73dda09 JA |
32564 | case $INSTALL in |
32565 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3185942a | 32566 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ccc6cda3 | 32567 | esac |
3185942a | 32568 | _ACEOF |
ccc6cda3 | 32569 | |
3185942a JA |
32570 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32571 | # If the template does not know about datarootdir, expand it. | |
32572 | # FIXME: This hack should be removed a few years after 2.60. | |
32573 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
32574 | ||
32575 | ac_sed_dataroot=' | |
32576 | /datarootdir/ { | |
32577 | p | |
32578 | q | |
32579 | } | |
32580 | /@datadir@/p | |
32581 | /@docdir@/p | |
32582 | /@infodir@/p | |
32583 | /@localedir@/p | |
32584 | /@mandir@/p | |
32585 | ' | |
32586 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
32587 | *datarootdir*) ac_datarootdir_seen=yes;; | |
32588 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
32589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
32590 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
32591 | _ACEOF | |
32592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32593 | ac_datarootdir_hack=' | |
32594 | s&@datadir@&$datadir&g | |
32595 | s&@docdir@&$docdir&g | |
32596 | s&@infodir@&$infodir&g | |
32597 | s&@localedir@&$localedir&g | |
32598 | s&@mandir@&$mandir&g | |
32599 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
32600 | esac | |
b80f6443 | 32601 | _ACEOF |
3185942a JA |
32602 | |
32603 | # Neutralize VPATH when `$srcdir' = `.'. | |
32604 | # Shell code in configure.ac might set extrasub. | |
32605 | # FIXME: do we really want to maintain this feature? | |
32606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32607 | ac_sed_extra="$ac_vpsub | |
f73dda09 | 32608 | $extrasub |
b80f6443 | 32609 | _ACEOF |
3185942a | 32610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f73dda09 JA |
32611 | :t |
32612 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3185942a JA |
32613 | s|@configure_input@|$ac_sed_conf_input|;t t |
32614 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
32615 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
32616 | s&@srcdir@&$ac_srcdir&;t t | |
32617 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
32618 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
32619 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
32620 | s&@builddir@&$ac_builddir&;t t | |
32621 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
32622 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
32623 | s&@INSTALL@&$ac_INSTALL&;t t | |
32624 | $ac_datarootdir_hack | |
32625 | " | |
32626 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
32627 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
32628 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
32629 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 32630 | |
3185942a JA |
32631 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
32632 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
32633 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
32634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
32635 | which seems to be undefined. Please make sure it is defined." >&5 | |
32636 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
32637 | which seems to be undefined. Please make sure it is defined." >&2;} | |
ccc6cda3 | 32638 | |
3185942a | 32639 | rm -f "$tmp/stdin" |
f73dda09 | 32640 | case $ac_file in |
3185942a JA |
32641 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
32642 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
32643 | esac \ | |
32644 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
32645 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
f73dda09 | 32646 | { (exit 1); exit 1; }; } |
3185942a JA |
32647 | ;; |
32648 | :H) | |
32649 | # | |
32650 | # CONFIG_HEADER | |
32651 | # | |
f73dda09 | 32652 | if test x"$ac_file" != x-; then |
3185942a JA |
32653 | { |
32654 | $as_echo "/* $configure_input */" \ | |
32655 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
32656 | } >"$tmp/config.h" \ | |
32657 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
32658 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
32659 | { (exit 1); exit 1; }; } | |
32660 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
32661 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
32662 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
f73dda09 | 32663 | else |
3185942a JA |
32664 | rm -f "$ac_file" |
32665 | mv "$tmp/config.h" "$ac_file" \ | |
32666 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
32667 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
32668 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 32669 | fi |
f73dda09 | 32670 | else |
3185942a JA |
32671 | $as_echo "/* $configure_input */" \ |
32672 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
32673 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
32674 | $as_echo "$as_me: error: could not create -" >&2;} | |
32675 | { (exit 1); exit 1; }; } | |
ccc6cda3 | 32676 | fi |
3185942a | 32677 | ;; |
0628567a | 32678 | |
3185942a JA |
32679 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
32680 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
32681 | ;; | |
32682 | esac | |
b80f6443 | 32683 | |
ccc6cda3 | 32684 | |
3185942a JA |
32685 | case $ac_file$ac_mode in |
32686 | "default-1":C) | |
b80f6443 JA |
32687 | for ac_file in $CONFIG_FILES; do |
32688 | # Support "outfile[:infile[:infile...]]" | |
32689 | case "$ac_file" in | |
32690 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
32691 | esac | |
32692 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
32693 | case "$ac_file" in */Makefile.in) | |
32694 | # Adjust a relative srcdir. | |
32695 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
32696 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
32697 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
32698 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
32699 | # In autoconf-2.50 it is called $srcdir. | |
32700 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
32701 | case "$ac_given_srcdir" in | |
32702 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
32703 | /*) top_srcdir="$ac_given_srcdir" ;; | |
32704 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
32705 | esac | |
32706 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
32707 | rm -f "$ac_dir/POTFILES" | |
32708 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
32709 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
32710 | POMAKEFILEDEPS="POTFILES.in" | |
32711 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
32712 | # on $ac_dir but don't depend on user-specified configuration | |
32713 | # parameters. | |
32714 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
32715 | # The LINGUAS file contains the set of available languages. | |
32716 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
32717 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
32718 | fi | |
32719 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
32720 | # Hide the ALL_LINGUAS assigment from automake. | |
32721 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
32722 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
32723 | else | |
32724 | # The set of available languages was given in configure.in. | |
32725 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
32726 | fi | |
32727 | case "$ac_given_srcdir" in | |
32728 | .) srcdirpre= ;; | |
32729 | *) srcdirpre='$(srcdir)/' ;; | |
32730 | esac | |
32731 | POFILES= | |
32732 | GMOFILES= | |
32733 | UPDATEPOFILES= | |
32734 | DUMMYPOFILES= | |
32735 | for lang in $ALL_LINGUAS; do | |
32736 | POFILES="$POFILES $srcdirpre$lang.po" | |
32737 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
32738 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
32739 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
32740 | done | |
32741 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
32742 | # environment variable. | |
32743 | INST_LINGUAS= | |
32744 | if test -n "$ALL_LINGUAS"; then | |
32745 | for presentlang in $ALL_LINGUAS; do | |
32746 | useit=no | |
32747 | if test "%UNSET%" != "$LINGUAS"; then | |
32748 | desiredlanguages="$LINGUAS" | |
32749 | else | |
32750 | desiredlanguages="$ALL_LINGUAS" | |
32751 | fi | |
32752 | for desiredlang in $desiredlanguages; do | |
32753 | # Use the presentlang catalog if desiredlang is | |
32754 | # a. equal to presentlang, or | |
32755 | # b. a variant of presentlang (because in this case, | |
32756 | # presentlang can be used as a fallback for messages | |
32757 | # which are not translated in the desiredlang catalog). | |
32758 | case "$desiredlang" in | |
32759 | "$presentlang"*) useit=yes;; | |
32760 | esac | |
32761 | done | |
32762 | if test $useit = yes; then | |
32763 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
32764 | fi | |
32765 | done | |
32766 | fi | |
32767 | CATALOGS= | |
32768 | if test -n "$INST_LINGUAS"; then | |
32769 | for lang in $INST_LINGUAS; do | |
32770 | CATALOGS="$CATALOGS $lang.gmo" | |
32771 | done | |
32772 | fi | |
32773 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
32774 | 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" | |
32775 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
32776 | if test -f "$f"; then | |
32777 | case "$f" in | |
32778 | *.orig | *.bak | *~) ;; | |
32779 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
32780 | esac | |
32781 | fi | |
32782 | done | |
32783 | fi | |
32784 | ;; | |
32785 | esac | |
32786 | done ;; | |
3185942a | 32787 | "default":C) |
ccc6cda3 JA |
32788 | # Makefile uses this timestamp file to record whether config.h is up to date. |
32789 | echo timestamp > stamp-h | |
f73dda09 | 32790 | ;; |
3185942a | 32791 | |
f73dda09 | 32792 | esac |
3185942a | 32793 | done # for ac_tag |
ccc6cda3 | 32794 | |
f73dda09 JA |
32795 | |
32796 | { (exit 0); exit 0; } | |
b80f6443 | 32797 | _ACEOF |
ccc6cda3 | 32798 | chmod +x $CONFIG_STATUS |
f73dda09 JA |
32799 | ac_clean_files=$ac_clean_files_save |
32800 | ||
3185942a JA |
32801 | test $ac_write_fail = 0 || |
32802 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
32803 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
32804 | { (exit 1); exit 1; }; } | |
32805 | ||
b80f6443 | 32806 | |
f73dda09 JA |
32807 | # configure is writing to config.log, and then calls config.status. |
32808 | # config.status does its own redirection, appending to config.log. | |
32809 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
32810 | # by configure, so config.status won't be able to write to it; its | |
32811 | # output is simply discarded. So we exec the FD to /dev/null, | |
32812 | # effectively closing config.log, so it can be properly (re)opened and | |
32813 | # appended to by config.status. When coming back to configure, we | |
32814 | # need to make the FD available again. | |
32815 | if test "$no_create" != yes; then | |
32816 | ac_cs_success=: | |
0628567a JA |
32817 | ac_config_status_args= |
32818 | test "$silent" = yes && | |
32819 | ac_config_status_args="$ac_config_status_args --quiet" | |
f73dda09 | 32820 | exec 5>/dev/null |
0628567a | 32821 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
f73dda09 JA |
32822 | exec 5>>config.log |
32823 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
32824 | # would make configure fail if this is the last instruction. | |
32825 | $ac_cs_success || { (exit 1); exit 1; } | |
32826 | fi | |
3185942a JA |
32827 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
32828 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
32829 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
32830 | fi | |
ccc6cda3 | 32831 |