]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
29a5deed | 3 | # Generated by GNU Autoconf 2.61. |
50e1e10f | 4 | # |
e1052144 TT |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
50e1e10f TT |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
b0cacab0 TT |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
29a5deed TT |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0cacab0 TT |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
21 | setopt NO_GLOB_SUBST |
22 | else | |
29a5deed TT |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
b0cacab0 | 27 | fi |
29a5deed TT |
28 | |
29 | ||
b0cacab0 | 30 | |
e1052144 TT |
31 | |
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
51 | fi | |
52 | ||
b0cacab0 TT |
53 | # Support unset when possible. |
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
55 | as_unset=unset | |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
e1052144 TT |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
b0cacab0 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
e1052144 TT |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
b0cacab0 TT |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
e1052144 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b0cacab0 TT |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
e1052144 TT |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
e1052144 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
e1052144 | 131 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b0cacab0 | 135 | echo X/"$0" | |
e1052144 TT |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
b0cacab0 | 149 | |
e1052144 TT |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
b0cacab0 | 152 | |
b0cacab0 | 153 | |
e1052144 TT |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
159 | fi | |
160 | ||
161 | if test $as_have_required = yes && (eval ": | |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
177 | ||
178 | exitcode=0 | |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
b0cacab0 TT |
184 | fi |
185 | ||
e1052144 TT |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
b0cacab0 | 190 | |
e1052144 TT |
191 | if as_func_ret_success; then |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
b0cacab0 | 197 | |
e1052144 TT |
198 | if as_func_ret_failure; then |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
b0cacab0 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
29a5deed | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
b0cacab0 TT |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
e1052144 | 226 | case $as_dir in |
b0cacab0 | 227 | /*) |
e1052144 TT |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
e1052144 TT |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
29a5deed TT |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
e1052144 | 252 | fi |
29a5deed | 253 | |
e1052144 TT |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
e1052144 TT |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
29a5deed TT |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
e1052144 | 273 | fi |
29a5deed | 274 | |
e1052144 TT |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
b0cacab0 TT |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
b0cacab0 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
e1052144 TT |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
b0cacab0 TT |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
e1052144 TT |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
b0cacab0 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
e1052144 TT |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
b0cacab0 | 442 | sed ' |
e1052144 TT |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
b0cacab0 | 447 | N |
e1052144 TT |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b0cacab0 | 450 | t loop |
e1052144 | 451 | s/-\n.*// |
b0cacab0 | 452 | ' >$as_me.lineno && |
e1052144 | 453 | chmod +x "$as_me.lineno" || |
b0cacab0 TT |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
e1052144 TT |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
b0cacab0 TT |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
e1052144 TT |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
b0cacab0 TT |
481 | esac |
482 | ||
e1052144 TT |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
b0cacab0 TT |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
e1052144 TT |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b0cacab0 | 505 | as_ln_s='cp -p' |
b0cacab0 TT |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
e1052144 TT |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 TT |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
517 | test -d ./-p && rmdir ./-p | |
518 | as_mkdir_p=false | |
519 | fi | |
520 | ||
29a5deed TT |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
e1052144 | 523 | else |
29a5deed TT |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
e1052144 | 541 | fi |
29a5deed | 542 | as_executable_p=$as_test_x |
b0cacab0 TT |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | ||
547 | # Sed expression to map a string onto a valid variable name. | |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | ||
b0cacab0 | 551 | |
e1052144 | 552 | exec 7<&0 </dev/null 6>&1 |
b0cacab0 TT |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 558 | |
b0cacab0 TT |
559 | # |
560 | # Initializations. | |
561 | # | |
50e1e10f | 562 | ac_default_prefix=/usr/local |
e1052144 | 563 | ac_clean_files= |
b0cacab0 | 564 | ac_config_libobj_dir=. |
e1052144 | 565 | LIBOBJS= |
b0cacab0 TT |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
b0cacab0 TT |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="version.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
29a5deed | 583 | #ifdef HAVE_SYS_TYPES_H |
b0cacab0 TT |
584 | # include <sys/types.h> |
585 | #endif | |
29a5deed | 586 | #ifdef HAVE_SYS_STAT_H |
b0cacab0 TT |
587 | # include <sys/stat.h> |
588 | #endif | |
29a5deed | 589 | #ifdef STDC_HEADERS |
b0cacab0 TT |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
29a5deed | 593 | # ifdef HAVE_STDLIB_H |
b0cacab0 TT |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
29a5deed TT |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b0cacab0 TT |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
29a5deed | 603 | #ifdef HAVE_STRINGS_H |
b0cacab0 TT |
604 | # include <strings.h> |
605 | #endif | |
29a5deed | 606 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 607 | # include <inttypes.h> |
e1052144 | 608 | #endif |
29a5deed | 609 | #ifdef HAVE_STDINT_H |
e1052144 | 610 | # include <stdint.h> |
b0cacab0 | 611 | #endif |
29a5deed | 612 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
e1052144 TT |
616 | ac_subst_vars='SHELL |
617 | PATH_SEPARATOR | |
618 | PACKAGE_NAME | |
619 | PACKAGE_TARNAME | |
620 | PACKAGE_VERSION | |
621 | PACKAGE_STRING | |
622 | PACKAGE_BUGREPORT | |
623 | exec_prefix | |
624 | prefix | |
625 | program_transform_name | |
626 | bindir | |
627 | sbindir | |
628 | libexecdir | |
629 | datarootdir | |
630 | datadir | |
631 | sysconfdir | |
632 | sharedstatedir | |
633 | localstatedir | |
634 | includedir | |
635 | oldincludedir | |
636 | docdir | |
637 | infodir | |
638 | htmldir | |
639 | dvidir | |
640 | pdfdir | |
641 | psdir | |
642 | libdir | |
643 | localedir | |
644 | mandir | |
645 | DEFS | |
646 | ECHO_C | |
647 | ECHO_N | |
648 | ECHO_T | |
649 | LIBS | |
650 | build_alias | |
651 | host_alias | |
652 | target_alias | |
653 | E2FSPROGS_YEAR | |
654 | E2FSPROGS_MONTH | |
655 | E2FSPROGS_DAY | |
656 | E2FSPROGS_VERSION | |
927566a3 | 657 | E2FSPROGS_PKGVER |
e1052144 TT |
658 | build |
659 | build_cpu | |
660 | build_vendor | |
661 | build_os | |
662 | host | |
663 | host_cpu | |
664 | host_vendor | |
665 | host_os | |
666 | CC | |
667 | CFLAGS | |
668 | LDFLAGS | |
669 | CPPFLAGS | |
670 | ac_ct_CC | |
671 | EXEEXT | |
672 | OBJEXT | |
e1052144 | 673 | CPP |
29a5deed | 674 | LD |
e1052144 TT |
675 | GREP |
676 | EGREP | |
677 | LINUX_INCLUDE | |
678 | MAINTAINER_CMT | |
679 | HTREE_CMT | |
680 | ELF_CMT | |
681 | BSDLIB_CMT | |
682 | PROFILE_CMT | |
683 | CHECKER_CMT | |
684 | LIB_EXT | |
685 | STATIC_LIB_EXT | |
686 | PROFILED_LIB_EXT | |
e1052144 TT |
687 | DEBUGFS_CMT |
688 | IMAGER_CMT | |
689 | RESIZER_CMT | |
e1052144 TT |
690 | FSCK_PROG |
691 | FSCK_MAN | |
692 | E2INITRD_PROG | |
693 | E2INITRD_MAN | |
a4ece359 | 694 | PKG_CONFIG |
e1052144 TT |
695 | DEVMAPPER_REQ |
696 | DEVMAPPER_PC_LIBS | |
697 | DEVMAPPER_LIBS | |
698 | STATIC_DEVMAPPER_LIBS | |
a4ece359 | 699 | STATIC_BLKID_DEVMAPPER_LIBS |
5610f992 | 700 | UUIDD_CMT |
e1052144 TT |
701 | GETTEXT_PACKAGE |
702 | PACKAGE | |
703 | VERSION | |
704 | SET_MAKE | |
705 | INSTALL_PROGRAM | |
706 | INSTALL_SCRIPT | |
707 | INSTALL_DATA | |
708 | MKINSTALLDIRS | |
709 | USE_NLS | |
710 | MSGFMT | |
711 | GMSGFMT | |
712 | XGETTEXT | |
713 | MSGMERGE | |
714 | RANLIB | |
715 | ALLOCA | |
716 | GLIBC21 | |
717 | HAVE_POSIX_PRINTF | |
718 | HAVE_ASPRINTF | |
719 | HAVE_SNPRINTF | |
720 | HAVE_WPRINTF | |
721 | LIBICONV | |
722 | LTLIBICONV | |
723 | INTLBISON | |
724 | BUILD_INCLUDED_LIBINTL | |
725 | USE_INCLUDED_LIBINTL | |
726 | CATOBJEXT | |
727 | DATADIRNAME | |
728 | INSTOBJEXT | |
729 | GENCAT | |
730 | INTLOBJS | |
731 | INTL_LIBTOOL_SUFFIX_PREFIX | |
732 | INTLLIBS | |
733 | LIBINTL | |
734 | LTLIBINTL | |
735 | POSUB | |
736 | BINARY_TYPE | |
737 | LN | |
738 | LN_S | |
739 | MV | |
740 | CP | |
741 | RM | |
742 | CHMOD | |
743 | AWK | |
744 | SED | |
745 | PERL | |
746 | LDCONFIG | |
747 | AR | |
748 | STRIP | |
7321d94e | 749 | MAKEINFO |
e1052144 TT |
750 | BUILD_CC |
751 | SIZEOF_SHORT | |
752 | SIZEOF_INT | |
753 | SIZEOF_LONG | |
754 | SIZEOF_LONG_LONG | |
755 | SOCKET_LIB | |
756 | DLOPEN_LIB | |
757 | UNI_DIFF_OPTS | |
758 | LINUX_CMT | |
759 | CYGWIN_CMT | |
760 | UNIX_CMT | |
761 | root_prefix | |
762 | root_bindir | |
763 | root_sbindir | |
764 | root_libdir | |
765 | root_sysconfdir | |
766 | LDFLAG_STATIC | |
767 | SS_DIR | |
768 | ET_DIR | |
769 | DO_TEST_SUITE | |
770 | INTL_FLAGS | |
771 | BUILD_CFLAGS | |
772 | BUILD_LDFLAGS | |
773 | LIBOBJS | |
774 | LTLIBOBJS' | |
775 | ac_subst_files='MCONFIG | |
776 | MAKEFILE_ELF | |
777 | MAKEFILE_BSDLIB | |
778 | MAKEFILE_PROFILE | |
779 | MAKEFILE_CHECKER | |
780 | MAKEFILE_LIBRARY | |
488c75a6 TT |
781 | ASM_TYPES_HEADER |
782 | PUBLIC_CONFIG_HEADER' | |
e1052144 TT |
783 | ac_precious_vars='build_alias |
784 | host_alias | |
785 | target_alias | |
786 | CC | |
787 | CFLAGS | |
788 | LDFLAGS | |
29a5deed | 789 | LIBS |
e1052144 | 790 | CPPFLAGS |
a4ece359 TT |
791 | CPP |
792 | PKG_CONFIG' | |
e1052144 | 793 | |
50e1e10f TT |
794 | |
795 | # Initialize some variables set by options. | |
b0cacab0 TT |
796 | ac_init_help= |
797 | ac_init_version=false | |
50e1e10f TT |
798 | # The variables have the same names as the options, with |
799 | # dashes changed to underlines. | |
b0cacab0 | 800 | cache_file=/dev/null |
50e1e10f | 801 | exec_prefix=NONE |
50e1e10f | 802 | no_create= |
50e1e10f TT |
803 | no_recursion= |
804 | prefix=NONE | |
805 | program_prefix=NONE | |
806 | program_suffix=NONE | |
807 | program_transform_name=s,x,x, | |
808 | silent= | |
809 | site= | |
810 | srcdir= | |
50e1e10f TT |
811 | verbose= |
812 | x_includes=NONE | |
813 | x_libraries=NONE | |
b0cacab0 TT |
814 | |
815 | # Installation directory options. | |
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
817 | # and all the variables that are supposed to be based on exec_prefix | |
818 | # by default will actually change. | |
819 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 820 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
821 | bindir='${exec_prefix}/bin' |
822 | sbindir='${exec_prefix}/sbin' | |
823 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
824 | datarootdir='${prefix}/share' |
825 | datadir='${datarootdir}' | |
21c84b71 TT |
826 | sysconfdir='${prefix}/etc' |
827 | sharedstatedir='${prefix}/com' | |
828 | localstatedir='${prefix}/var' | |
21c84b71 TT |
829 | includedir='${prefix}/include' |
830 | oldincludedir='/usr/include' | |
e1052144 TT |
831 | docdir='${datarootdir}/doc/${PACKAGE}' |
832 | infodir='${datarootdir}/info' | |
833 | htmldir='${docdir}' | |
834 | dvidir='${docdir}' | |
835 | pdfdir='${docdir}' | |
836 | psdir='${docdir}' | |
837 | libdir='${exec_prefix}/lib' | |
838 | localedir='${datarootdir}/locale' | |
839 | mandir='${datarootdir}/man' | |
50e1e10f | 840 | |
50e1e10f | 841 | ac_prev= |
e1052144 | 842 | ac_dashdash= |
50e1e10f TT |
843 | for ac_option |
844 | do | |
50e1e10f TT |
845 | # If the previous option needs an argument, assign it. |
846 | if test -n "$ac_prev"; then | |
e1052144 | 847 | eval $ac_prev=\$ac_option |
50e1e10f TT |
848 | ac_prev= |
849 | continue | |
850 | fi | |
851 | ||
e1052144 TT |
852 | case $ac_option in |
853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
854 | *) ac_optarg=yes ;; | |
855 | esac | |
50e1e10f TT |
856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
e1052144 TT |
859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
50e1e10f | 862 | |
21c84b71 TT |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 866 | bindir=$ac_optarg ;; |
21c84b71 TT |
867 | |
868 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 869 | ac_prev=build_alias ;; |
21c84b71 | 870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 871 | build_alias=$ac_optarg ;; |
50e1e10f TT |
872 | |
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
878 | cache_file=$ac_optarg ;; |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
50e1e10f | 882 | |
e1052144 | 883 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 884 | ac_prev=datadir ;; |
e1052144 | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 886 | datadir=$ac_optarg ;; |
21c84b71 | 887 | |
e1052144 TT |
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
50e1e10f | 895 | -disable-* | --disable-*) |
b0cacab0 | 896 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 897 | # Reject names that are not valid shell variable names. |
29a5deed | 898 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b0cacab0 TT |
899 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
900 | { (exit 1); exit 1; }; } | |
29a5deed | 901 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
e1052144 TT |
902 | eval enable_$ac_feature=no ;; |
903 | ||
904 | -docdir | --docdir | --docdi | --doc | --do) | |
905 | ac_prev=docdir ;; | |
906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
907 | docdir=$ac_optarg ;; | |
908 | ||
909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
910 | ac_prev=dvidir ;; | |
911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
912 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
913 | |
914 | -enable-* | --enable-*) | |
b0cacab0 | 915 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 916 | # Reject names that are not valid shell variable names. |
29a5deed | 917 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b0cacab0 TT |
918 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
919 | { (exit 1); exit 1; }; } | |
29a5deed | 920 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
e1052144 | 921 | eval enable_$ac_feature=\$ac_optarg ;; |
50e1e10f TT |
922 | |
923 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
924 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
925 | | --exec | --exe | --ex) | |
926 | ac_prev=exec_prefix ;; | |
927 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
928 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
929 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 930 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
931 | |
932 | -gas | --gas | --ga | --g) | |
933 | # Obsolete; use --with-gas. | |
934 | with_gas=yes ;; | |
935 | ||
b0cacab0 TT |
936 | -help | --help | --hel | --he | -h) |
937 | ac_init_help=long ;; | |
938 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
939 | ac_init_help=recursive ;; | |
940 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
941 | ac_init_help=short ;; | |
50e1e10f TT |
942 | |
943 | -host | --host | --hos | --ho) | |
b0cacab0 | 944 | ac_prev=host_alias ;; |
50e1e10f | 945 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 946 | host_alias=$ac_optarg ;; |
50e1e10f | 947 | |
e1052144 TT |
948 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
949 | ac_prev=htmldir ;; | |
950 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
951 | | --ht=*) | |
952 | htmldir=$ac_optarg ;; | |
953 | ||
21c84b71 TT |
954 | -includedir | --includedir | --includedi | --included | --include \ |
955 | | --includ | --inclu | --incl | --inc) | |
956 | ac_prev=includedir ;; | |
957 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
958 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 959 | includedir=$ac_optarg ;; |
21c84b71 TT |
960 | |
961 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
962 | ac_prev=infodir ;; | |
963 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 964 | infodir=$ac_optarg ;; |
21c84b71 TT |
965 | |
966 | -libdir | --libdir | --libdi | --libd) | |
967 | ac_prev=libdir ;; | |
968 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 969 | libdir=$ac_optarg ;; |
21c84b71 TT |
970 | |
971 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
972 | | --libexe | --libex | --libe) | |
973 | ac_prev=libexecdir ;; | |
974 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
975 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 976 | libexecdir=$ac_optarg ;; |
21c84b71 | 977 | |
e1052144 TT |
978 | -localedir | --localedir | --localedi | --localed | --locale) |
979 | ac_prev=localedir ;; | |
980 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
981 | localedir=$ac_optarg ;; | |
982 | ||
21c84b71 | 983 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 984 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
985 | ac_prev=localstatedir ;; |
986 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 987 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 988 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
989 | |
990 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
991 | ac_prev=mandir ;; | |
992 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 993 | mandir=$ac_optarg ;; |
21c84b71 | 994 | |
50e1e10f TT |
995 | -nfp | --nfp | --nf) |
996 | # Obsolete; use --without-fp. | |
997 | with_fp=no ;; | |
998 | ||
999 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1000 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1001 | no_create=yes ;; |
1002 | ||
1003 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1004 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1005 | no_recursion=yes ;; | |
1006 | ||
21c84b71 TT |
1007 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1008 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1009 | | --oldin | --oldi | --old | --ol | --o) | |
1010 | ac_prev=oldincludedir ;; | |
1011 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1012 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1013 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1014 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1015 | |
50e1e10f TT |
1016 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1017 | ac_prev=prefix ;; | |
1018 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1019 | prefix=$ac_optarg ;; |
50e1e10f TT |
1020 | |
1021 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1022 | | --program-pre | --program-pr | --program-p) | |
1023 | ac_prev=program_prefix ;; | |
1024 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1025 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1026 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1027 | |
1028 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1029 | | --program-suf | --program-su | --program-s) | |
1030 | ac_prev=program_suffix ;; | |
1031 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1032 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1033 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1034 | |
1035 | -program-transform-name | --program-transform-name \ | |
1036 | | --program-transform-nam | --program-transform-na \ | |
1037 | | --program-transform-n | --program-transform- \ | |
1038 | | --program-transform | --program-transfor \ | |
1039 | | --program-transfo | --program-transf \ | |
1040 | | --program-trans | --program-tran \ | |
1041 | | --progr-tra | --program-tr | --program-t) | |
1042 | ac_prev=program_transform_name ;; | |
1043 | -program-transform-name=* | --program-transform-name=* \ | |
1044 | | --program-transform-nam=* | --program-transform-na=* \ | |
1045 | | --program-transform-n=* | --program-transform-=* \ | |
1046 | | --program-transform=* | --program-transfor=* \ | |
1047 | | --program-transfo=* | --program-transf=* \ | |
1048 | | --program-trans=* | --program-tran=* \ | |
1049 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1050 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1051 | |
e1052144 TT |
1052 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1053 | ac_prev=pdfdir ;; | |
1054 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1055 | pdfdir=$ac_optarg ;; | |
1056 | ||
1057 | -psdir | --psdir | --psdi | --psd | --ps) | |
1058 | ac_prev=psdir ;; | |
1059 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1060 | psdir=$ac_optarg ;; | |
1061 | ||
50e1e10f TT |
1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1063 | | -silent | --silent | --silen | --sile | --sil) | |
1064 | silent=yes ;; | |
1065 | ||
21c84b71 TT |
1066 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1067 | ac_prev=sbindir ;; | |
1068 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1069 | | --sbi=* | --sb=*) | |
b0cacab0 | 1070 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1071 | |
1072 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1073 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1074 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1075 | | --sha | --sh) | |
1076 | ac_prev=sharedstatedir ;; | |
1077 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1078 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1079 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1080 | | --sha=* | --sh=*) | |
b0cacab0 | 1081 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1082 | |
50e1e10f TT |
1083 | -site | --site | --sit) |
1084 | ac_prev=site ;; | |
1085 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1086 | site=$ac_optarg ;; |
50e1e10f TT |
1087 | |
1088 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1089 | ac_prev=srcdir ;; | |
1090 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1091 | srcdir=$ac_optarg ;; |
50e1e10f | 1092 | |
21c84b71 TT |
1093 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1094 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1095 | ac_prev=sysconfdir ;; | |
1096 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1097 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1098 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1099 | |
50e1e10f | 1100 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1101 | ac_prev=target_alias ;; |
50e1e10f | 1102 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1103 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1104 | |
1105 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1106 | verbose=yes ;; | |
1107 | ||
b0cacab0 TT |
1108 | -version | --version | --versio | --versi | --vers | -V) |
1109 | ac_init_version=: ;; | |
50e1e10f TT |
1110 | |
1111 | -with-* | --with-*) | |
b0cacab0 | 1112 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1113 | # Reject names that are not valid shell variable names. |
29a5deed | 1114 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b0cacab0 TT |
1115 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1116 | { (exit 1); exit 1; }; } | |
29a5deed | 1117 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
e1052144 | 1118 | eval with_$ac_package=\$ac_optarg ;; |
50e1e10f TT |
1119 | |
1120 | -without-* | --without-*) | |
b0cacab0 | 1121 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1122 | # Reject names that are not valid shell variable names. |
29a5deed | 1123 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b0cacab0 TT |
1124 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1125 | { (exit 1); exit 1; }; } | |
29a5deed | 1126 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
e1052144 | 1127 | eval with_$ac_package=no ;; |
50e1e10f TT |
1128 | |
1129 | --x) | |
1130 | # Obsolete; use --with-x. | |
1131 | with_x=yes ;; | |
1132 | ||
1133 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1134 | | --x-incl | --x-inc | --x-in | --x-i) | |
1135 | ac_prev=x_includes ;; | |
1136 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1137 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1138 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1139 | |
1140 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1141 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1142 | ac_prev=x_libraries ;; | |
1143 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1144 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1145 | x_libraries=$ac_optarg ;; |
50e1e10f | 1146 | |
b0cacab0 TT |
1147 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1148 | Try \`$0 --help' for more information." >&2 | |
1149 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
1150 | ;; |
1151 | ||
b0cacab0 TT |
1152 | *=*) |
1153 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1154 | # Reject names that are not valid shell variable names. | |
1155 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1156 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1157 | { (exit 1); exit 1; }; } | |
e1052144 | 1158 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1159 | export $ac_envvar ;; |
1160 | ||
21c84b71 | 1161 | *) |
b0cacab0 TT |
1162 | # FIXME: should be removed in autoconf 3.0. |
1163 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1164 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1165 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1166 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
50e1e10f TT |
1167 | ;; |
1168 | ||
1169 | esac | |
1170 | done | |
1171 | ||
1172 | if test -n "$ac_prev"; then | |
b0cacab0 TT |
1173 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1174 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1175 | { (exit 1); exit 1; }; } | |
50e1e10f | 1176 | fi |
50e1e10f | 1177 | |
e1052144 TT |
1178 | # Be sure to have absolute directory names. |
1179 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1180 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1181 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1182 | libdir localedir mandir | |
50e1e10f | 1183 | do |
e1052144 | 1184 | eval ac_val=\$$ac_var |
b0cacab0 | 1185 | case $ac_val in |
e1052144 TT |
1186 | [\\/$]* | ?:[\\/]* ) continue;; |
1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1188 | esac |
e1052144 TT |
1189 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1190 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
1191 | done |
1192 | ||
b0cacab0 TT |
1193 | # There might be people who depend on the old broken behavior: `$host' |
1194 | # used to hold the argument of --host etc. | |
1195 | # FIXME: To remove some day. | |
1196 | build=$build_alias | |
1197 | host=$host_alias | |
1198 | target=$target_alias | |
1199 | ||
1200 | # FIXME: To remove some day. | |
1201 | if test "x$host_alias" != x; then | |
1202 | if test "x$build_alias" = x; then | |
1203 | cross_compiling=maybe | |
1204 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1205 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1206 | elif test "x$build_alias" != "x$host_alias"; then | |
1207 | cross_compiling=yes | |
1208 | fi | |
1209 | fi | |
50e1e10f | 1210 | |
b0cacab0 TT |
1211 | ac_tool_prefix= |
1212 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1213 | ||
1214 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1215 | |
50e1e10f | 1216 | |
e1052144 TT |
1217 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1218 | ac_ls_di=`ls -di .` && | |
1219 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1220 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1221 | { (exit 1); exit 1; }; } | |
1222 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1223 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1224 | { (exit 1); exit 1; }; } | |
1225 | ||
1226 | ||
50e1e10f TT |
1227 | # Find the source files, if location was not specified. |
1228 | if test -z "$srcdir"; then | |
1229 | ac_srcdir_defaulted=yes | |
e1052144 TT |
1230 | # Try the directory containing this script, then the parent directory. |
1231 | ac_confdir=`$as_dirname -- "$0" || | |
b0cacab0 TT |
1232 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1233 | X"$0" : 'X\(//\)[^/]' \| \ | |
1234 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 1235 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b0cacab0 | 1236 | echo X"$0" | |
e1052144 TT |
1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1238 | s//\1/ | |
1239 | q | |
1240 | } | |
1241 | /^X\(\/\/\)[^/].*/{ | |
1242 | s//\1/ | |
1243 | q | |
1244 | } | |
1245 | /^X\(\/\/\)$/{ | |
1246 | s//\1/ | |
1247 | q | |
1248 | } | |
1249 | /^X\(\/\).*/{ | |
1250 | s//\1/ | |
1251 | q | |
1252 | } | |
1253 | s/.*/./; q'` | |
50e1e10f | 1254 | srcdir=$ac_confdir |
e1052144 | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1256 | srcdir=.. |
1257 | fi | |
1258 | else | |
1259 | ac_srcdir_defaulted=no | |
1260 | fi | |
e1052144 TT |
1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1263 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
b0cacab0 | 1264 | { (exit 1); exit 1; }; } |
50e1e10f | 1265 | fi |
e1052144 TT |
1266 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1267 | ac_abs_confdir=`( | |
1268 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
b0cacab0 | 1269 | { (exit 1); exit 1; }; } |
e1052144 TT |
1270 | pwd)` |
1271 | # When building in place, set srcdir=. | |
1272 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1273 | srcdir=. | |
1274 | fi | |
1275 | # Remove unnecessary trailing slashes from srcdir. | |
1276 | # Double slashes in file names in object file debugging info | |
1277 | # mess up M-x gdb in Emacs. | |
1278 | case $srcdir in | |
1279 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1280 | esac | |
1281 | for ac_var in $ac_precious_vars; do | |
1282 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1283 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1284 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1285 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1286 | done | |
b0cacab0 TT |
1287 | |
1288 | # | |
1289 | # Report the --help message. | |
1290 | # | |
1291 | if test "$ac_init_help" = "long"; then | |
1292 | # Omit some internal or obsolete options to make the list less imposing. | |
1293 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1294 | cat <<_ACEOF | |
1295 | \`configure' configures this package to adapt to many kinds of systems. | |
1296 | ||
1297 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1298 | ||
1299 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1300 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1301 | ||
1302 | Defaults for the options are specified in brackets. | |
1303 | ||
1304 | Configuration: | |
1305 | -h, --help display this help and exit | |
1306 | --help=short display options specific to this package | |
1307 | --help=recursive display the short help of all the included packages | |
1308 | -V, --version display version information and exit | |
1309 | -q, --quiet, --silent do not print \`checking...' messages | |
1310 | --cache-file=FILE cache test results in FILE [disabled] | |
1311 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1312 | -n, --no-create do not create output files | |
1313 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1314 | ||
b0cacab0 TT |
1315 | Installation directories: |
1316 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1317 | [$ac_default_prefix] | |
1318 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1319 | [PREFIX] | |
1320 | ||
1321 | By default, \`make install' will install all the files in | |
1322 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1323 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1324 | for instance \`--prefix=\$HOME'. | |
1325 | ||
1326 | For better control, use the options below. | |
1327 | ||
1328 | Fine tuning of the installation directories: | |
1329 | --bindir=DIR user executables [EPREFIX/bin] | |
1330 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1331 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b0cacab0 TT |
1332 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1333 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1334 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1335 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1336 | --includedir=DIR C header files [PREFIX/include] | |
1337 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
e1052144 TT |
1338 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1339 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1340 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1341 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1342 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1343 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1344 | --htmldir=DIR html documentation [DOCDIR] | |
1345 | --dvidir=DIR dvi documentation [DOCDIR] | |
1346 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1347 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1348 | _ACEOF |
1349 | ||
1350 | cat <<\_ACEOF | |
1351 | ||
1352 | System types: | |
1353 | --build=BUILD configure for building on BUILD [guessed] | |
1354 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1355 | _ACEOF | |
1356 | fi | |
1357 | ||
1358 | if test -n "$ac_init_help"; then | |
1359 | ||
1360 | cat <<\_ACEOF | |
1361 | ||
1362 | Optional Features: | |
1363 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1364 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
98919bdb | 1365 | --enable-maintainer-mode enable makefile rules useful for maintainers |
b0cacab0 TT |
1366 | --enable-compression enable EXPERIMENTAL compression support |
1367 | --enable-htree enable EXPERIMENTAL htree directory support | |
b0cacab0 TT |
1368 | --enable-elf-shlibs select ELF shared libraries |
1369 | --enable-bsd-shlibs select BSD shared libraries | |
1370 | --enable-profile build profiling libraries | |
1371 | --enable-checker build checker libraries | |
1372 | --enable-jbd-debug enable journal debugging | |
1373 | --enable-blkid-debug enable blkid debugging | |
1374 | --enable-testio-debug enable the use of the test I/O manager for debugging | |
b0cacab0 TT |
1375 | --disable-debugfs disable support of debugfs program |
1376 | --disable-imager disable support of e2image program | |
1377 | --disable-resizer disable support of e2resize program | |
b0cacab0 TT |
1378 | --enable-fsck build fsck wrapper program |
1379 | --enable-e2initrd-helper build e2initrd-helper program | |
4db2f59a | 1380 | --enable-blkid-devmapper build with device-mapper support |
3249394d | 1381 | --disable-tls disable use of thread local support |
5610f992 | 1382 | --disable-uuidd disable building the uuid daemon |
b0cacab0 TT |
1383 | --disable-nls do not use Native Language Support |
1384 | --disable-rpath do not hardcode runtime library paths | |
1385 | ||
1386 | Optional Packages: | |
1387 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1388 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1389 | --with-diet-libc use diet libc |
b0cacab0 TT |
1390 | --with-cc=COMPILER select compiler to use |
1391 | --with-linker=LINKER select linker to use | |
1392 | --with-ccopts=CCOPTS select compiler command line options | |
1393 | --with-ldopts=LDOPTS select linker command line options | |
1394 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root | |
1395 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1396 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1397 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1398 | --with-included-gettext use the GNU gettext library included here | |
1399 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1400 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1401 | ||
1402 | Some influential environment variables: | |
1403 | CC C compiler command | |
1404 | CFLAGS C compiler flags | |
1405 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1406 | nonstandard directory <lib dir> | |
29a5deed | 1407 | LIBS libraries to pass to the linker, e.g. -l<library> |
e1052144 TT |
1408 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1409 | you have headers in a nonstandard directory <include dir> | |
b0cacab0 | 1410 | CPP C preprocessor |
a4ece359 | 1411 | PKG_CONFIG path to pkg-config utility |
b0cacab0 TT |
1412 | |
1413 | Use these variables to override the choices made by `configure' or to help | |
1414 | it to find libraries and programs with nonstandard names/locations. | |
1415 | ||
1416 | _ACEOF | |
e1052144 | 1417 | ac_status=$? |
b0cacab0 TT |
1418 | fi |
1419 | ||
1420 | if test "$ac_init_help" = "recursive"; then | |
1421 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1422 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
e1052144 | 1423 | test -d "$ac_dir" || continue |
b0cacab0 TT |
1424 | ac_builddir=. |
1425 | ||
e1052144 TT |
1426 | case "$ac_dir" in |
1427 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1428 | *) | |
b0cacab0 | 1429 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
e1052144 TT |
1430 | # A ".." for each directory in $ac_dir_suffix. |
1431 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1432 | case $ac_top_builddir_sub in | |
1433 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1434 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1435 | esac ;; | |
1436 | esac | |
1437 | ac_abs_top_builddir=$ac_pwd | |
1438 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1439 | # for backward compatibility: | |
1440 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1441 | |
1442 | case $srcdir in | |
e1052144 | 1443 | .) # We are building in place. |
b0cacab0 | 1444 | ac_srcdir=. |
e1052144 TT |
1445 | ac_top_srcdir=$ac_top_builddir_sub |
1446 | ac_abs_top_srcdir=$ac_pwd ;; | |
1447 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1448 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1449 | ac_top_srcdir=$srcdir |
1450 | ac_abs_top_srcdir=$srcdir ;; | |
1451 | *) # Relative name. | |
1452 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1453 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1454 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1455 | esac |
e1052144 TT |
1456 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1457 | ||
1458 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1459 | # Check for guested configure. | |
1460 | if test -f "$ac_srcdir/configure.gnu"; then | |
1461 | echo && | |
1462 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1463 | elif test -f "$ac_srcdir/configure"; then | |
1464 | echo && | |
1465 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 TT |
1466 | else |
1467 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
e1052144 TT |
1468 | fi || ac_status=$? |
1469 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1470 | done |
1471 | fi | |
1472 | ||
e1052144 | 1473 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1474 | if $ac_init_version; then |
1475 | cat <<\_ACEOF | |
e1052144 | 1476 | configure |
29a5deed | 1477 | generated by GNU Autoconf 2.61 |
b0cacab0 | 1478 | |
e1052144 TT |
1479 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1480 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b0cacab0 TT |
1481 | This configure script is free software; the Free Software Foundation |
1482 | gives unlimited permission to copy, distribute and modify it. | |
1483 | _ACEOF | |
e1052144 | 1484 | exit |
b0cacab0 | 1485 | fi |
e1052144 | 1486 | cat >config.log <<_ACEOF |
b0cacab0 TT |
1487 | This file contains any messages produced by compilers while |
1488 | running configure, to aid debugging if configure makes a mistake. | |
1489 | ||
1490 | It was created by $as_me, which was | |
29a5deed | 1491 | generated by GNU Autoconf 2.61. Invocation command line was |
b0cacab0 TT |
1492 | |
1493 | $ $0 $@ | |
1494 | ||
1495 | _ACEOF | |
e1052144 | 1496 | exec 5>>config.log |
b0cacab0 TT |
1497 | { |
1498 | cat <<_ASUNAME | |
1499 | ## --------- ## | |
1500 | ## Platform. ## | |
1501 | ## --------- ## | |
1502 | ||
1503 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1504 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1505 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1506 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1507 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1508 | ||
1509 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1510 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1511 | ||
1512 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1513 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1514 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
e1052144 | 1515 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b0cacab0 TT |
1516 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1517 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1518 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1519 | ||
1520 | _ASUNAME | |
1521 | ||
1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1523 | for as_dir in $PATH | |
1524 | do | |
1525 | IFS=$as_save_IFS | |
1526 | test -z "$as_dir" && as_dir=. | |
1527 | echo "PATH: $as_dir" | |
1528 | done | |
e1052144 | 1529 | IFS=$as_save_IFS |
50e1e10f | 1530 | |
b0cacab0 TT |
1531 | } >&5 |
1532 | ||
1533 | cat >&5 <<_ACEOF | |
1534 | ||
1535 | ||
1536 | ## ----------- ## | |
1537 | ## Core tests. ## | |
1538 | ## ----------- ## | |
1539 | ||
1540 | _ACEOF | |
1541 | ||
1542 | ||
1543 | # Keep a trace of the command line. | |
1544 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1545 | # Strip out --silent because we don't want to record it for future runs. | |
1546 | # Also quote any args containing shell meta-characters. | |
1547 | # Make two passes to allow for proper duplicate-argument suppression. | |
1548 | ac_configure_args= | |
1549 | ac_configure_args0= | |
1550 | ac_configure_args1= | |
b0cacab0 TT |
1551 | ac_must_keep_next=false |
1552 | for ac_pass in 1 2 | |
1553 | do | |
1554 | for ac_arg | |
1555 | do | |
1556 | case $ac_arg in | |
1557 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1558 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1559 | | -silent | --silent | --silen | --sile | --sil) | |
1560 | continue ;; | |
e1052144 | 1561 | *\'*) |
b0cacab0 TT |
1562 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1563 | esac | |
1564 | case $ac_pass in | |
1565 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1566 | 2) | |
1567 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1568 | if test $ac_must_keep_next = true; then | |
1569 | ac_must_keep_next=false # Got value, back to normal. | |
1570 | else | |
1571 | case $ac_arg in | |
1572 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1573 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1574 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1575 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1576 | case "$ac_configure_args0 " in | |
1577 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1578 | esac | |
1579 | ;; | |
1580 | -* ) ac_must_keep_next=true ;; | |
1581 | esac | |
1582 | fi | |
e1052144 | 1583 | ac_configure_args="$ac_configure_args '$ac_arg'" |
b0cacab0 TT |
1584 | ;; |
1585 | esac | |
1586 | done | |
1587 | done | |
1588 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1589 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1590 | ||
1591 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1592 | # config.log. We remove comments because anyway the quotes in there | |
1593 | # would cause problems or look ugly. | |
e1052144 TT |
1594 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1595 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b0cacab0 TT |
1596 | trap 'exit_status=$? |
1597 | # Save into config.log some information that might help in debugging. | |
1598 | { | |
1599 | echo | |
1600 | ||
1601 | cat <<\_ASBOX | |
1602 | ## ---------------- ## | |
1603 | ## Cache variables. ## | |
1604 | ## ---------------- ## | |
1605 | _ASBOX | |
1606 | echo | |
1607 | # The following way of writing the cache mishandles newlines in values, | |
e1052144 TT |
1608 | ( |
1609 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1610 | eval ac_val=\$$ac_var | |
1611 | case $ac_val in #( | |
1612 | *${as_nl}*) | |
1613 | case $ac_var in #( | |
1614 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1615 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1616 | esac | |
1617 | case $ac_var in #( | |
1618 | _ | IFS | as_nl) ;; #( | |
1619 | *) $as_unset $ac_var ;; | |
1620 | esac ;; | |
1621 | esac | |
1622 | done | |
b0cacab0 | 1623 | (set) 2>&1 | |
e1052144 TT |
1624 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1625 | *${as_nl}ac_space=\ *) | |
b0cacab0 | 1626 | sed -n \ |
e1052144 TT |
1627 | "s/'\''/'\''\\\\'\'''\''/g; |
1628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1629 | ;; #( | |
b0cacab0 | 1630 | *) |
e1052144 | 1631 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 1632 | ;; |
e1052144 TT |
1633 | esac | |
1634 | sort | |
1635 | ) | |
b0cacab0 TT |
1636 | echo |
1637 | ||
1638 | cat <<\_ASBOX | |
1639 | ## ----------------- ## | |
1640 | ## Output variables. ## | |
1641 | ## ----------------- ## | |
1642 | _ASBOX | |
1643 | echo | |
1644 | for ac_var in $ac_subst_vars | |
1645 | do | |
e1052144 TT |
1646 | eval ac_val=\$$ac_var |
1647 | case $ac_val in | |
1648 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1649 | esac | |
1650 | echo "$ac_var='\''$ac_val'\''" | |
b0cacab0 TT |
1651 | done | sort |
1652 | echo | |
1653 | ||
1654 | if test -n "$ac_subst_files"; then | |
1655 | cat <<\_ASBOX | |
e1052144 TT |
1656 | ## ------------------- ## |
1657 | ## File substitutions. ## | |
1658 | ## ------------------- ## | |
b0cacab0 TT |
1659 | _ASBOX |
1660 | echo | |
1661 | for ac_var in $ac_subst_files | |
1662 | do | |
e1052144 TT |
1663 | eval ac_val=\$$ac_var |
1664 | case $ac_val in | |
1665 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1666 | esac | |
1667 | echo "$ac_var='\''$ac_val'\''" | |
b0cacab0 TT |
1668 | done | sort |
1669 | echo | |
1670 | fi | |
1671 | ||
1672 | if test -s confdefs.h; then | |
1673 | cat <<\_ASBOX | |
1674 | ## ----------- ## | |
1675 | ## confdefs.h. ## | |
1676 | ## ----------- ## | |
1677 | _ASBOX | |
1678 | echo | |
e1052144 | 1679 | cat confdefs.h |
b0cacab0 TT |
1680 | echo |
1681 | fi | |
1682 | test "$ac_signal" != 0 && | |
1683 | echo "$as_me: caught signal $ac_signal" | |
1684 | echo "$as_me: exit $exit_status" | |
1685 | } >&5 | |
e1052144 TT |
1686 | rm -f core *.core core.conftest.* && |
1687 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b0cacab0 | 1688 | exit $exit_status |
e1052144 | 1689 | ' 0 |
b0cacab0 TT |
1690 | for ac_signal in 1 2 13 15; do |
1691 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1692 | done | |
1693 | ac_signal=0 | |
1694 | ||
1695 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
e1052144 | 1696 | rm -f -r conftest* confdefs.h |
b0cacab0 TT |
1697 | |
1698 | # Predefined preprocessor variables. | |
1699 | ||
1700 | cat >>confdefs.h <<_ACEOF | |
1701 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1702 | _ACEOF | |
1703 | ||
1704 | ||
1705 | cat >>confdefs.h <<_ACEOF | |
1706 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1707 | _ACEOF | |
1708 | ||
1709 | ||
1710 | cat >>confdefs.h <<_ACEOF | |
1711 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1712 | _ACEOF | |
1713 | ||
1714 | ||
1715 | cat >>confdefs.h <<_ACEOF | |
1716 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1717 | _ACEOF | |
1718 | ||
1719 | ||
1720 | cat >>confdefs.h <<_ACEOF | |
1721 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1722 | _ACEOF | |
1723 | ||
1724 | ||
1725 | # Let the site file select an alternate cache file if it wants to. | |
50e1e10f | 1726 | # Prefer explicitly selected file to automatically selected ones. |
e1052144 TT |
1727 | if test -n "$CONFIG_SITE"; then |
1728 | set x "$CONFIG_SITE" | |
1729 | elif test "x$prefix" != xNONE; then | |
1730 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1731 | else | |
1732 | set x "$ac_default_prefix/share/config.site" \ | |
1733 | "$ac_default_prefix/etc/config.site" | |
50e1e10f | 1734 | fi |
e1052144 TT |
1735 | shift |
1736 | for ac_site_file | |
1737 | do | |
50e1e10f | 1738 | if test -r "$ac_site_file"; then |
b0cacab0 TT |
1739 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1740 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1741 | sed 's/^/| /' "$ac_site_file" >&5 | |
50e1e10f TT |
1742 | . "$ac_site_file" |
1743 | fi | |
1744 | done | |
1745 | ||
1746 | if test -r "$cache_file"; then | |
b0cacab0 TT |
1747 | # Some versions of bash will fail to source /dev/null (special |
1748 | # files actually), so we avoid doing that. | |
1749 | if test -f "$cache_file"; then | |
1750 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1751 | echo "$as_me: loading cache $cache_file" >&6;} | |
1752 | case $cache_file in | |
e1052144 TT |
1753 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1754 | *) . "./$cache_file";; | |
b0cacab0 TT |
1755 | esac |
1756 | fi | |
50e1e10f | 1757 | else |
b0cacab0 TT |
1758 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1759 | echo "$as_me: creating cache $cache_file" >&6;} | |
1760 | >$cache_file | |
1761 | fi | |
1762 | ||
1763 | # Check that the precious variables saved in the cache have kept the same | |
1764 | # value. | |
1765 | ac_cache_corrupted=false | |
e1052144 | 1766 | for ac_var in $ac_precious_vars; do |
b0cacab0 TT |
1767 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1768 | eval ac_new_set=\$ac_env_${ac_var}_set | |
e1052144 TT |
1769 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1770 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b0cacab0 TT |
1771 | case $ac_old_set,$ac_new_set in |
1772 | set,) | |
1773 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1774 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1775 | ac_cache_corrupted=: ;; | |
1776 | ,set) | |
1777 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1778 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1779 | ac_cache_corrupted=: ;; | |
1780 | ,);; | |
1781 | *) | |
1782 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1783 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1784 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1785 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1786 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1787 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1788 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1789 | ac_cache_corrupted=: | |
1790 | fi;; | |
1791 | esac | |
1792 | # Pass precious variables to config.status. | |
1793 | if test "$ac_new_set" = set; then | |
1794 | case $ac_new_val in | |
e1052144 | 1795 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b0cacab0 TT |
1796 | *) ac_arg=$ac_var=$ac_new_val ;; |
1797 | esac | |
1798 | case " $ac_configure_args " in | |
1799 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1800 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1801 | esac | |
1802 | fi | |
1803 | done | |
1804 | if $ac_cache_corrupted; then | |
1805 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1806 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1807 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1808 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1809 | { (exit 1); exit 1; }; } | |
50e1e10f TT |
1810 | fi |
1811 | ||
b0cacab0 TT |
1812 | |
1813 | ||
1814 | ||
a04eba3f | 1815 | |
07a0db15 | 1816 | |
74becf3c | 1817 | |
93636bde | 1818 | |
93636bde TT |
1819 | |
1820 | ||
1821 | ||
1822 | ||
b0cacab0 TT |
1823 | |
1824 | ||
1825 | ||
1826 | ||
1827 | ||
e1052144 TT |
1828 | ac_ext=c |
1829 | ac_cpp='$CPP $CPPFLAGS' | |
1830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0cacab0 TT |
1833 | |
1834 | ||
1835 | ||
1836 | ac_aux_dir= | |
e1052144 TT |
1837 | for ac_dir in config "$srcdir"/config; do |
1838 | if test -f "$ac_dir/install-sh"; then | |
b0cacab0 TT |
1839 | ac_aux_dir=$ac_dir |
1840 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1841 | break | |
e1052144 | 1842 | elif test -f "$ac_dir/install.sh"; then |
b0cacab0 TT |
1843 | ac_aux_dir=$ac_dir |
1844 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1845 | break | |
e1052144 | 1846 | elif test -f "$ac_dir/shtool"; then |
b0cacab0 TT |
1847 | ac_aux_dir=$ac_dir |
1848 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1849 | break | |
1850 | fi | |
1851 | done | |
1852 | if test -z "$ac_aux_dir"; then | |
e1052144 TT |
1853 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
1854 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
b0cacab0 TT |
1855 | { (exit 1); exit 1; }; } |
1856 | fi | |
e1052144 TT |
1857 | |
1858 | # These three variables are undocumented and unsupported, | |
1859 | # and are intended to be withdrawn in a future Autoconf release. | |
1860 | # They can cause serious problems if a builder's source tree is in a directory | |
1861 | # whose full name contains unusual characters. | |
1862 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1863 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1864 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1865 | ||
b0cacab0 | 1866 | |
93636bde TT |
1867 | MCONFIG=./MCONFIG |
1868 | ||
1869 | BINARY_TYPE=bin | |
1870 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
1871 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
1872 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
1873 | | tr \" " "` | |
1874 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` | |
1875 | MONTH=`echo $DATE | awk -F- '{print $2}'` | |
1876 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
1877 | ||
1878 | if expr $YEAR ">" 1900 > /dev/null ; then | |
1879 | E2FSPROGS_YEAR=$YEAR | |
1880 | elif expr $YEAR ">" 90 >/dev/null ; then | |
1881 | E2FSPROGS_YEAR=19$YEAR | |
1882 | else | |
1883 | E2FSPROGS_YEAR=20$YEAR | |
1884 | fi | |
1885 | ||
1886 | case $MONTH in | |
927566a3 AD |
1887 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
1888 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
1889 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
1890 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
1891 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
1892 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
1893 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
1894 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
1895 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
1896 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
1897 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
1898 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
74becf3c TT |
1899 | *) echo "Unknown month $MONTH??" ;; |
1900 | esac | |
1901 | ||
927566a3 AD |
1902 | base_ver=`echo $E2FSPROGS_VERSION | \ |
1903 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
927566a3 AD |
1904 | |
1905 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
1906 | ||
1907 | case $E2FSPROGS_VERSION in | |
1908 | *-WIP|pre-*) | |
ab06396f | 1909 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
927566a3 AD |
1910 | ;; |
1911 | *) | |
1912 | E2FSPROGS_PKGVER="$base_ver" | |
1913 | ;; | |
1914 | esac | |
1915 | ||
1916 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
74becf3c TT |
1917 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
1918 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | |
1919 | ||
93636bde TT |
1920 | |
1921 | ||
1922 | ||
927566a3 | 1923 | |
fc6d9d51 | 1924 | # Make sure we can run config.sub. |
e1052144 TT |
1925 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1926 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1927 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
b0cacab0 TT |
1928 | { (exit 1); exit 1; }; } |
1929 | ||
e1052144 TT |
1930 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1931 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
b0cacab0 TT |
1932 | if test "${ac_cv_build+set}" = set; then |
1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1934 | else | |
e1052144 TT |
1935 | ac_build_alias=$build_alias |
1936 | test "x$ac_build_alias" = x && | |
1937 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1938 | test "x$ac_build_alias" = x && | |
b0cacab0 TT |
1939 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1940 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1941 | { (exit 1); exit 1; }; } | |
e1052144 TT |
1942 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1943 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1944 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
b0cacab0 TT |
1945 | { (exit 1); exit 1; }; } |
1946 | ||
1947 | fi | |
e1052144 TT |
1948 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1949 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1950 | case $ac_cv_build in | |
1951 | *-*-*) ;; | |
1952 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1953 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1954 | { (exit 1); exit 1; }; };; | |
1955 | esac | |
b0cacab0 | 1956 | build=$ac_cv_build |
e1052144 TT |
1957 | ac_save_IFS=$IFS; IFS='-' |
1958 | set x $ac_cv_build | |
1959 | shift | |
1960 | build_cpu=$1 | |
1961 | build_vendor=$2 | |
1962 | shift; shift | |
1963 | # Remember, the first character of IFS is used to create $*, | |
1964 | # except with old shells: | |
1965 | build_os=$* | |
1966 | IFS=$ac_save_IFS | |
1967 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1968 | ||
1969 | ||
1970 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1971 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
b0cacab0 TT |
1972 | if test "${ac_cv_host+set}" = set; then |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
e1052144 TT |
1975 | if test "x$host_alias" = x; then |
1976 | ac_cv_host=$ac_cv_build | |
1977 | else | |
1978 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1979 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1980 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
b0cacab0 | 1981 | { (exit 1); exit 1; }; } |
e1052144 | 1982 | fi |
b0cacab0 TT |
1983 | |
1984 | fi | |
e1052144 TT |
1985 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1986 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1987 | case $ac_cv_host in | |
1988 | *-*-*) ;; | |
1989 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1990 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1991 | { (exit 1); exit 1; }; };; | |
1992 | esac | |
b0cacab0 | 1993 | host=$ac_cv_host |
e1052144 TT |
1994 | ac_save_IFS=$IFS; IFS='-' |
1995 | set x $ac_cv_host | |
1996 | shift | |
1997 | host_cpu=$1 | |
1998 | host_vendor=$2 | |
1999 | shift; shift | |
2000 | # Remember, the first character of IFS is used to create $*, | |
2001 | # except with old shells: | |
2002 | host_os=$* | |
2003 | IFS=$ac_save_IFS | |
2004 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
93636bde | 2005 | |
93636bde | 2006 | |
eafba6c3 | 2007 | WITH_DIET_LIBC= |
07a0db15 | 2008 | |
e1052144 | 2009 | # Check whether --with-diet-libc was given. |
d21ae6c5 | 2010 | if test "${with_diet_libc+set}" = set; then |
e1052144 | 2011 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
eafba6c3 | 2012 | WITH_DIET_LIBC=yes |
e1052144 TT |
2013 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
2014 | echo "${ECHO_T}CC=$CC" >&6; } | |
2015 | fi | |
2016 | ||
2017 | # Check whether --with-cc was given. | |
21c84b71 | 2018 | if test "${with_cc+set}" = set; then |
e1052144 TT |
2019 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
2020 | echo "${ECHO_T}CC=$withval" >&6; } | |
74becf3c TT |
2021 | CC=$withval |
2022 | else | |
2023 | if test -z "$CC" ; then CC=cc; fi | |
e1052144 TT |
2024 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
2025 | echo "${ECHO_T}CC defaults to $CC" >&6; } | |
2026 | fi | |
2027 | export CC | |
b0cacab0 TT |
2028 | |
2029 | ac_ext=c | |
2030 | ac_cpp='$CPP $CPPFLAGS' | |
2031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2034 | if test -n "$ac_tool_prefix"; then | |
2035 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2036 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
e1052144 TT |
2037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2039 | if test "${ac_cv_prog_CC+set}" = set; then |
2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2041 | else | |
2042 | if test -n "$CC"; then | |
2043 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2044 | else | |
2045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2046 | for as_dir in $PATH | |
2047 | do | |
2048 | IFS=$as_save_IFS | |
2049 | test -z "$as_dir" && as_dir=. | |
2050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2052 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2054 | break 2 | |
2055 | fi | |
2056 | done | |
2057 | done | |
e1052144 | 2058 | IFS=$as_save_IFS |
b0cacab0 TT |
2059 | |
2060 | fi | |
2061 | fi | |
2062 | CC=$ac_cv_prog_CC | |
2063 | if test -n "$CC"; then | |
e1052144 TT |
2064 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2065 | echo "${ECHO_T}$CC" >&6; } | |
b0cacab0 | 2066 | else |
e1052144 TT |
2067 | { echo "$as_me:$LINENO: result: no" >&5 |
2068 | echo "${ECHO_T}no" >&6; } | |
74becf3c | 2069 | fi |
74becf3c | 2070 | |
e1052144 | 2071 | |
b0cacab0 TT |
2072 | fi |
2073 | if test -z "$ac_cv_prog_CC"; then | |
2074 | ac_ct_CC=$CC | |
2075 | # Extract the first word of "gcc", so it can be a program name with args. | |
73ae2d4a | 2076 | set dummy gcc; ac_word=$2 |
e1052144 TT |
2077 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2079 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2081 | else | |
2082 | if test -n "$ac_ct_CC"; then | |
2083 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2084 | else | |
2085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2086 | for as_dir in $PATH | |
2087 | do | |
2088 | IFS=$as_save_IFS | |
2089 | test -z "$as_dir" && as_dir=. | |
2090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2092 | ac_cv_prog_ac_ct_CC="gcc" |
2093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2094 | break 2 | |
2095 | fi | |
2096 | done | |
2097 | done | |
e1052144 | 2098 | IFS=$as_save_IFS |
b0cacab0 TT |
2099 | |
2100 | fi | |
2101 | fi | |
2102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2103 | if test -n "$ac_ct_CC"; then | |
e1052144 TT |
2104 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2105 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b0cacab0 | 2106 | else |
e1052144 TT |
2107 | { echo "$as_me:$LINENO: result: no" >&5 |
2108 | echo "${ECHO_T}no" >&6; } | |
b0cacab0 TT |
2109 | fi |
2110 | ||
e1052144 TT |
2111 | if test "x$ac_ct_CC" = x; then |
2112 | CC="" | |
2113 | else | |
2114 | case $cross_compiling:$ac_tool_warned in | |
2115 | yes:) | |
2116 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2117 | whose name does not start with the host triplet. If you think this | |
2118 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2119 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2120 | whose name does not start with the host triplet. If you think this | |
2121 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2122 | ac_tool_warned=yes ;; | |
2123 | esac | |
2124 | CC=$ac_ct_CC | |
2125 | fi | |
b0cacab0 TT |
2126 | else |
2127 | CC="$ac_cv_prog_CC" | |
2128 | fi | |
2129 | ||
2130 | if test -z "$CC"; then | |
e1052144 TT |
2131 | if test -n "$ac_tool_prefix"; then |
2132 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b0cacab0 | 2133 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
e1052144 TT |
2134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2136 | if test "${ac_cv_prog_CC+set}" = set; then |
2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
2138 | else |
2139 | if test -n "$CC"; then | |
2140 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2141 | else | |
b0cacab0 TT |
2142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2143 | for as_dir in $PATH | |
2144 | do | |
2145 | IFS=$as_save_IFS | |
2146 | test -z "$as_dir" && as_dir=. | |
2147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2149 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2151 | break 2 | |
2152 | fi | |
2153 | done | |
2154 | done | |
e1052144 | 2155 | IFS=$as_save_IFS |
b0cacab0 | 2156 | |
73ae2d4a TT |
2157 | fi |
2158 | fi | |
b0cacab0 | 2159 | CC=$ac_cv_prog_CC |
73ae2d4a | 2160 | if test -n "$CC"; then |
e1052144 TT |
2161 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2162 | echo "${ECHO_T}$CC" >&6; } | |
b0cacab0 | 2163 | else |
e1052144 TT |
2164 | { echo "$as_me:$LINENO: result: no" >&5 |
2165 | echo "${ECHO_T}no" >&6; } | |
b0cacab0 TT |
2166 | fi |
2167 | ||
73ae2d4a | 2168 | |
e1052144 | 2169 | fi |
b0cacab0 | 2170 | fi |
73ae2d4a TT |
2171 | if test -z "$CC"; then |
2172 | # Extract the first word of "cc", so it can be a program name with args. | |
2173 | set dummy cc; ac_word=$2 | |
e1052144 TT |
2174 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2176 | if test "${ac_cv_prog_CC+set}" = set; then |
2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
2178 | else |
2179 | if test -n "$CC"; then | |
2180 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2181 | else | |
73ae2d4a | 2182 | ac_prog_rejected=no |
b0cacab0 TT |
2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2184 | for as_dir in $PATH | |
2185 | do | |
2186 | IFS=$as_save_IFS | |
2187 | test -z "$as_dir" && as_dir=. | |
2188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2190 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2191 | ac_prog_rejected=yes | |
2192 | continue | |
2193 | fi | |
2194 | ac_cv_prog_CC="cc" | |
2195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2196 | break 2 | |
2197 | fi | |
2198 | done | |
2199 | done | |
e1052144 | 2200 | IFS=$as_save_IFS |
b0cacab0 | 2201 | |
73ae2d4a TT |
2202 | if test $ac_prog_rejected = yes; then |
2203 | # We found a bogon in the path, so make sure we never use it. | |
2204 | set dummy $ac_cv_prog_CC | |
2205 | shift | |
b0cacab0 | 2206 | if test $# != 0; then |
73ae2d4a TT |
2207 | # We chose a different compiler from the bogus one. |
2208 | # However, it has the same basename, so the bogon will be chosen | |
2209 | # first if we set CC to just the basename; use the full file name. | |
2210 | shift | |
b0cacab0 | 2211 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
73ae2d4a TT |
2212 | fi |
2213 | fi | |
2214 | fi | |
2215 | fi | |
b0cacab0 | 2216 | CC=$ac_cv_prog_CC |
73ae2d4a | 2217 | if test -n "$CC"; then |
e1052144 TT |
2218 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2219 | echo "${ECHO_T}$CC" >&6; } | |
73ae2d4a | 2220 | else |
e1052144 TT |
2221 | { echo "$as_me:$LINENO: result: no" >&5 |
2222 | echo "${ECHO_T}no" >&6; } | |
73ae2d4a TT |
2223 | fi |
2224 | ||
e1052144 | 2225 | |
b0cacab0 TT |
2226 | fi |
2227 | if test -z "$CC"; then | |
2228 | if test -n "$ac_tool_prefix"; then | |
e1052144 | 2229 | for ac_prog in cl.exe |
b0cacab0 TT |
2230 | do |
2231 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2232 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e1052144 TT |
2233 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2235 | if test "${ac_cv_prog_CC+set}" = set; then |
2236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a TT |
2237 | else |
2238 | if test -n "$CC"; then | |
2239 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2240 | else | |
b0cacab0 TT |
2241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2242 | for as_dir in $PATH | |
2243 | do | |
2244 | IFS=$as_save_IFS | |
2245 | test -z "$as_dir" && as_dir=. | |
2246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2248 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2250 | break 2 | |
2251 | fi | |
2252 | done | |
2253 | done | |
e1052144 | 2254 | IFS=$as_save_IFS |
b0cacab0 | 2255 | |
73ae2d4a TT |
2256 | fi |
2257 | fi | |
b0cacab0 | 2258 | CC=$ac_cv_prog_CC |
73ae2d4a | 2259 | if test -n "$CC"; then |
e1052144 TT |
2260 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2261 | echo "${ECHO_T}$CC" >&6; } | |
73ae2d4a | 2262 | else |
e1052144 TT |
2263 | { echo "$as_me:$LINENO: result: no" >&5 |
2264 | echo "${ECHO_T}no" >&6; } | |
73ae2d4a | 2265 | fi |
b0cacab0 | 2266 | |
e1052144 | 2267 | |
b0cacab0 TT |
2268 | test -n "$CC" && break |
2269 | done | |
2270 | fi | |
2271 | if test -z "$CC"; then | |
2272 | ac_ct_CC=$CC | |
e1052144 | 2273 | for ac_prog in cl.exe |
b0cacab0 TT |
2274 | do |
2275 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2276 | set dummy $ac_prog; ac_word=$2 | |
e1052144 TT |
2277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
2279 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2281 | else | |
2282 | if test -n "$ac_ct_CC"; then | |
2283 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2284 | else | |
2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2286 | for as_dir in $PATH | |
2287 | do | |
2288 | IFS=$as_save_IFS | |
2289 | test -z "$as_dir" && as_dir=. | |
2290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 2291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
2292 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2294 | break 2 | |
93636bde | 2295 | fi |
b0cacab0 TT |
2296 | done |
2297 | done | |
e1052144 | 2298 | IFS=$as_save_IFS |
b0cacab0 TT |
2299 | |
2300 | fi | |
2301 | fi | |
2302 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2303 | if test -n "$ac_ct_CC"; then | |
e1052144 TT |
2304 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2305 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b0cacab0 | 2306 | else |
e1052144 TT |
2307 | { echo "$as_me:$LINENO: result: no" >&5 |
2308 | echo "${ECHO_T}no" >&6; } | |
07a0db15 | 2309 | fi |
73ae2d4a | 2310 | |
e1052144 | 2311 | |
b0cacab0 TT |
2312 | test -n "$ac_ct_CC" && break |
2313 | done | |
73ae2d4a | 2314 | |
e1052144 TT |
2315 | if test "x$ac_ct_CC" = x; then |
2316 | CC="" | |
2317 | else | |
2318 | case $cross_compiling:$ac_tool_warned in | |
2319 | yes:) | |
2320 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2321 | whose name does not start with the host triplet. If you think this | |
2322 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2323 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2324 | whose name does not start with the host triplet. If you think this | |
2325 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2326 | ac_tool_warned=yes ;; | |
2327 | esac | |
2328 | CC=$ac_ct_CC | |
2329 | fi | |
b0cacab0 TT |
2330 | fi |
2331 | ||
2332 | fi | |
2333 | ||
2334 | ||
2335 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2336 | See \`config.log' for more details." >&5 | |
2337 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2338 | See \`config.log' for more details." >&2;} | |
2339 | { (exit 1); exit 1; }; } | |
2340 | ||
2341 | # Provide some information about the compiler. | |
e1052144 | 2342 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b0cacab0 | 2343 | ac_compiler=`set X $ac_compile; echo $2` |
e1052144 TT |
2344 | { (ac_try="$ac_compiler --version >&5" |
2345 | case "(($ac_try" in | |
2346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2347 | *) ac_try_echo=$ac_try;; | |
2348 | esac | |
2349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2350 | (eval "$ac_compiler --version >&5") 2>&5 | |
b0cacab0 TT |
2351 | ac_status=$? |
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2353 | (exit $ac_status); } | |
e1052144 TT |
2354 | { (ac_try="$ac_compiler -v >&5" |
2355 | case "(($ac_try" in | |
2356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2357 | *) ac_try_echo=$ac_try;; | |
2358 | esac | |
2359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2360 | (eval "$ac_compiler -v >&5") 2>&5 | |
b0cacab0 TT |
2361 | ac_status=$? |
2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2363 | (exit $ac_status); } | |
e1052144 TT |
2364 | { (ac_try="$ac_compiler -V >&5" |
2365 | case "(($ac_try" in | |
2366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2367 | *) ac_try_echo=$ac_try;; | |
2368 | esac | |
2369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2370 | (eval "$ac_compiler -V >&5") 2>&5 | |
b0cacab0 TT |
2371 | ac_status=$? |
2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2373 | (exit $ac_status); } | |
2374 | ||
2375 | cat >conftest.$ac_ext <<_ACEOF | |
2376 | /* confdefs.h. */ | |
2377 | _ACEOF | |
2378 | cat confdefs.h >>conftest.$ac_ext | |
2379 | cat >>conftest.$ac_ext <<_ACEOF | |
2380 | /* end confdefs.h. */ | |
2381 | ||
2382 | int | |
2383 | main () | |
2384 | { | |
2385 | ||
2386 | ; | |
2387 | return 0; | |
2388 | } | |
2389 | _ACEOF | |
2390 | ac_clean_files_save=$ac_clean_files | |
2391 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2392 | # Try to create an executable without -o first, disregard a.out. | |
2393 | # It will help us diagnose broken compilers, and finding out an intuition | |
2394 | # of exeext. | |
e1052144 TT |
2395 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2396 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
b0cacab0 | 2397 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
e1052144 TT |
2398 | # |
2399 | # List of possible output files, starting from the most likely. | |
2400 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2401 | # only as a last resort. b.out is created by i960 compilers. | |
2402 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2403 | # | |
2404 | # The IRIX 6 linker writes into existing files which may not be | |
2405 | # executable, retaining their permissions. Remove them first so a | |
2406 | # subsequent execution test works. | |
2407 | ac_rmfiles= | |
2408 | for ac_file in $ac_files | |
2409 | do | |
2410 | case $ac_file in | |
2411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2412 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2413 | esac | |
2414 | done | |
2415 | rm -f $ac_rmfiles | |
2416 | ||
2417 | if { (ac_try="$ac_link_default" | |
2418 | case "(($ac_try" in | |
2419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2420 | *) ac_try_echo=$ac_try;; | |
2421 | esac | |
2422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2423 | (eval "$ac_link_default") 2>&5 | |
b0cacab0 TT |
2424 | ac_status=$? |
2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2426 | (exit $ac_status); }; then | |
e1052144 TT |
2427 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2428 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2429 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2430 | # so that the user can short-circuit this test for compilers unknown to | |
2431 | # Autoconf. | |
29a5deed | 2432 | for ac_file in $ac_files '' |
b0cacab0 TT |
2433 | do |
2434 | test -f "$ac_file" || continue | |
2435 | case $ac_file in | |
e1052144 | 2436 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
b0cacab0 TT |
2437 | ;; |
2438 | [ab].out ) | |
2439 | # We found the default executable, but exeext='' is most | |
2440 | # certainly right. | |
2441 | break;; | |
2442 | *.* ) | |
e1052144 TT |
2443 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2444 | then :; else | |
2445 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2446 | fi | |
2447 | # We set ac_cv_exeext here because the later test for it is not | |
2448 | # safe: cross compilers may not add the suffix if given an `-o' | |
2449 | # argument, so we may need to know it at that point already. | |
2450 | # Even if this section looks crufty: it has the advantage of | |
2451 | # actually working. | |
b0cacab0 TT |
2452 | break;; |
2453 | * ) | |
2454 | break;; | |
2455 | esac | |
2456 | done | |
e1052144 TT |
2457 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2458 | ||
b0cacab0 | 2459 | else |
29a5deed TT |
2460 | ac_file='' |
2461 | fi | |
2462 | ||
2463 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2464 | echo "${ECHO_T}$ac_file" >&6; } | |
2465 | if test -z "$ac_file"; then | |
b0cacab0 TT |
2466 | echo "$as_me: failed program was:" >&5 |
2467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2468 | ||
2469 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2470 | See \`config.log' for more details." >&5 | |
2471 | echo "$as_me: error: C compiler cannot create executables | |
2472 | See \`config.log' for more details." >&2;} | |
2473 | { (exit 77); exit 77; }; } | |
2474 | fi | |
2475 | ||
2476 | ac_exeext=$ac_cv_exeext | |
b0cacab0 | 2477 | |
e1052144 | 2478 | # Check that the compiler produces executables we can run. If not, either |
b0cacab0 | 2479 | # the compiler is broken, or we cross compile. |
e1052144 TT |
2480 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2481 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
b0cacab0 TT |
2482 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2483 | # If not cross compiling, check that we can run a simple program. | |
2484 | if test "$cross_compiling" != yes; then | |
2485 | if { ac_try='./$ac_file' | |
e1052144 TT |
2486 | { (case "(($ac_try" in |
2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2488 | *) ac_try_echo=$ac_try;; | |
2489 | esac | |
2490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2491 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
2492 | ac_status=$? |
2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2494 | (exit $ac_status); }; }; then | |
2495 | cross_compiling=no | |
73ae2d4a | 2496 | else |
b0cacab0 TT |
2497 | if test "$cross_compiling" = maybe; then |
2498 | cross_compiling=yes | |
2499 | else | |
2500 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2501 | If you meant to cross compile, use \`--host'. | |
2502 | See \`config.log' for more details." >&5 | |
2503 | echo "$as_me: error: cannot run C compiled programs. | |
2504 | If you meant to cross compile, use \`--host'. | |
2505 | See \`config.log' for more details." >&2;} | |
2506 | { (exit 1); exit 1; }; } | |
2507 | fi | |
73ae2d4a | 2508 | fi |
b0cacab0 | 2509 | fi |
e1052144 TT |
2510 | { echo "$as_me:$LINENO: result: yes" >&5 |
2511 | echo "${ECHO_T}yes" >&6; } | |
b0cacab0 TT |
2512 | |
2513 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2514 | ac_clean_files=$ac_clean_files_save | |
e1052144 | 2515 | # Check that the compiler produces executables we can run. If not, either |
b0cacab0 | 2516 | # the compiler is broken, or we cross compile. |
e1052144 TT |
2517 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2518 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2519 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2520 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2521 | ||
2522 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2523 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2524 | if { (ac_try="$ac_link" | |
2525 | case "(($ac_try" in | |
2526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2527 | *) ac_try_echo=$ac_try;; | |
2528 | esac | |
2529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2530 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
2531 | ac_status=$? |
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | (exit $ac_status); }; then | |
2534 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2535 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2536 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2537 | # `rm'. | |
2538 | for ac_file in conftest.exe conftest conftest.*; do | |
2539 | test -f "$ac_file" || continue | |
2540 | case $ac_file in | |
e1052144 | 2541 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
b0cacab0 | 2542 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
2543 | break;; |
2544 | * ) break;; | |
2545 | esac | |
2546 | done | |
73ae2d4a | 2547 | else |
b0cacab0 TT |
2548 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2549 | See \`config.log' for more details." >&5 | |
2550 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2551 | See \`config.log' for more details." >&2;} | |
2552 | { (exit 1); exit 1; }; } | |
73ae2d4a | 2553 | fi |
73ae2d4a | 2554 | |
b0cacab0 | 2555 | rm -f conftest$ac_cv_exeext |
e1052144 TT |
2556 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2557 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
73ae2d4a | 2558 | |
b0cacab0 TT |
2559 | rm -f conftest.$ac_ext |
2560 | EXEEXT=$ac_cv_exeext | |
2561 | ac_exeext=$EXEEXT | |
e1052144 TT |
2562 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2563 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
b0cacab0 TT |
2564 | if test "${ac_cv_objext+set}" = set; then |
2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73ae2d4a | 2566 | else |
b0cacab0 TT |
2567 | cat >conftest.$ac_ext <<_ACEOF |
2568 | /* confdefs.h. */ | |
2569 | _ACEOF | |
2570 | cat confdefs.h >>conftest.$ac_ext | |
2571 | cat >>conftest.$ac_ext <<_ACEOF | |
2572 | /* end confdefs.h. */ | |
07a0db15 | 2573 | |
b0cacab0 TT |
2574 | int |
2575 | main () | |
2576 | { | |
07a0db15 | 2577 | |
b0cacab0 TT |
2578 | ; |
2579 | return 0; | |
2580 | } | |
2581 | _ACEOF | |
2582 | rm -f conftest.o conftest.obj | |
e1052144 TT |
2583 | if { (ac_try="$ac_compile" |
2584 | case "(($ac_try" in | |
2585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2586 | *) ac_try_echo=$ac_try;; | |
2587 | esac | |
2588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2589 | (eval "$ac_compile") 2>&5 | |
b0cacab0 TT |
2590 | ac_status=$? |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2592 | (exit $ac_status); }; then | |
e1052144 TT |
2593 | for ac_file in conftest.o conftest.obj conftest.*; do |
2594 | test -f "$ac_file" || continue; | |
b0cacab0 | 2595 | case $ac_file in |
e1052144 | 2596 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
b0cacab0 TT |
2597 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2598 | break;; | |
2599 | esac | |
2600 | done | |
93636bde | 2601 | else |
b0cacab0 TT |
2602 | echo "$as_me: failed program was:" >&5 |
2603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
07a0db15 | 2604 | |
b0cacab0 TT |
2605 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2606 | See \`config.log' for more details." >&5 | |
2607 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2608 | See \`config.log' for more details." >&2;} | |
2609 | { (exit 1); exit 1; }; } | |
73ae2d4a | 2610 | fi |
93636bde | 2611 | |
b0cacab0 | 2612 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 2613 | fi |
e1052144 TT |
2614 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2615 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
b0cacab0 TT |
2616 | OBJEXT=$ac_cv_objext |
2617 | ac_objext=$OBJEXT | |
e1052144 TT |
2618 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2619 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b0cacab0 TT |
2620 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622 | else | |
2623 | cat >conftest.$ac_ext <<_ACEOF | |
2624 | /* confdefs.h. */ | |
2625 | _ACEOF | |
2626 | cat confdefs.h >>conftest.$ac_ext | |
2627 | cat >>conftest.$ac_ext <<_ACEOF | |
2628 | /* end confdefs.h. */ | |
2629 | ||
2630 | int | |
2631 | main () | |
2632 | { | |
2633 | #ifndef __GNUC__ | |
2634 | choke me | |
2635 | #endif | |
2636 | ||
2637 | ; | |
2638 | return 0; | |
2639 | } | |
2640 | _ACEOF | |
2641 | rm -f conftest.$ac_objext | |
e1052144 TT |
2642 | if { (ac_try="$ac_compile" |
2643 | case "(($ac_try" in | |
2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2645 | *) ac_try_echo=$ac_try;; | |
2646 | esac | |
2647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2648 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
2649 | ac_status=$? |
2650 | grep -v '^ *+' conftest.er1 >conftest.err | |
2651 | rm -f conftest.er1 | |
2652 | cat conftest.err >&5 | |
2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
2654 | (exit $ac_status); } && { |
2655 | test -z "$ac_c_werror_flag" || | |
2656 | test ! -s conftest.err | |
2657 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
2658 | ac_compiler_gnu=yes |
2659 | else | |
2660 | echo "$as_me: failed program was:" >&5 | |
2661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2662 | ||
e1052144 | 2663 | ac_compiler_gnu=no |
b0cacab0 | 2664 | fi |
e1052144 TT |
2665 | |
2666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
2667 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2668 | ||
2669 | fi | |
e1052144 TT |
2670 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2671 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b0cacab0 TT |
2672 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2673 | ac_test_CFLAGS=${CFLAGS+set} | |
2674 | ac_save_CFLAGS=$CFLAGS | |
e1052144 TT |
2675 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2676 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b0cacab0 TT |
2677 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2679 | else | |
e1052144 TT |
2680 | ac_save_c_werror_flag=$ac_c_werror_flag |
2681 | ac_c_werror_flag=yes | |
2682 | ac_cv_prog_cc_g=no | |
2683 | CFLAGS="-g" | |
2684 | cat >conftest.$ac_ext <<_ACEOF | |
2685 | /* confdefs.h. */ | |
2686 | _ACEOF | |
2687 | cat confdefs.h >>conftest.$ac_ext | |
2688 | cat >>conftest.$ac_ext <<_ACEOF | |
2689 | /* end confdefs.h. */ | |
2690 | ||
2691 | int | |
2692 | main () | |
2693 | { | |
2694 | ||
2695 | ; | |
2696 | return 0; | |
2697 | } | |
2698 | _ACEOF | |
2699 | rm -f conftest.$ac_objext | |
2700 | if { (ac_try="$ac_compile" | |
2701 | case "(($ac_try" in | |
2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2703 | *) ac_try_echo=$ac_try;; | |
2704 | esac | |
2705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2706 | (eval "$ac_compile") 2>conftest.er1 | |
2707 | ac_status=$? | |
2708 | grep -v '^ *+' conftest.er1 >conftest.err | |
2709 | rm -f conftest.er1 | |
2710 | cat conftest.err >&5 | |
2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
2712 | (exit $ac_status); } && { |
2713 | test -z "$ac_c_werror_flag" || | |
2714 | test ! -s conftest.err | |
2715 | } && test -s conftest.$ac_objext; then | |
e1052144 TT |
2716 | ac_cv_prog_cc_g=yes |
2717 | else | |
2718 | echo "$as_me: failed program was:" >&5 | |
2719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2720 | ||
2721 | CFLAGS="" | |
2722 | cat >conftest.$ac_ext <<_ACEOF | |
2723 | /* confdefs.h. */ | |
2724 | _ACEOF | |
2725 | cat confdefs.h >>conftest.$ac_ext | |
2726 | cat >>conftest.$ac_ext <<_ACEOF | |
2727 | /* end confdefs.h. */ | |
2728 | ||
2729 | int | |
2730 | main () | |
2731 | { | |
2732 | ||
2733 | ; | |
2734 | return 0; | |
2735 | } | |
2736 | _ACEOF | |
2737 | rm -f conftest.$ac_objext | |
2738 | if { (ac_try="$ac_compile" | |
2739 | case "(($ac_try" in | |
2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2741 | *) ac_try_echo=$ac_try;; | |
2742 | esac | |
2743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2744 | (eval "$ac_compile") 2>conftest.er1 | |
2745 | ac_status=$? | |
2746 | grep -v '^ *+' conftest.er1 >conftest.err | |
2747 | rm -f conftest.er1 | |
2748 | cat conftest.err >&5 | |
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
2750 | (exit $ac_status); } && { |
2751 | test -z "$ac_c_werror_flag" || | |
2752 | test ! -s conftest.err | |
2753 | } && test -s conftest.$ac_objext; then | |
e1052144 TT |
2754 | : |
2755 | else | |
2756 | echo "$as_me: failed program was:" >&5 | |
2757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2758 | ||
2759 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2760 | CFLAGS="-g" | |
2761 | cat >conftest.$ac_ext <<_ACEOF | |
b0cacab0 TT |
2762 | /* confdefs.h. */ |
2763 | _ACEOF | |
2764 | cat confdefs.h >>conftest.$ac_ext | |
2765 | cat >>conftest.$ac_ext <<_ACEOF | |
2766 | /* end confdefs.h. */ | |
2767 | ||
2768 | int | |
2769 | main () | |
2770 | { | |
2771 | ||
2772 | ; | |
2773 | return 0; | |
2774 | } | |
2775 | _ACEOF | |
2776 | rm -f conftest.$ac_objext | |
e1052144 TT |
2777 | if { (ac_try="$ac_compile" |
2778 | case "(($ac_try" in | |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2780 | *) ac_try_echo=$ac_try;; | |
2781 | esac | |
2782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2783 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
2784 | ac_status=$? |
2785 | grep -v '^ *+' conftest.er1 >conftest.err | |
2786 | rm -f conftest.er1 | |
2787 | cat conftest.err >&5 | |
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
2789 | (exit $ac_status); } && { |
2790 | test -z "$ac_c_werror_flag" || | |
2791 | test ! -s conftest.err | |
2792 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
2793 | ac_cv_prog_cc_g=yes |
2794 | else | |
2795 | echo "$as_me: failed program was:" >&5 | |
2796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2797 | ||
e1052144 TT |
2798 | |
2799 | fi | |
2800 | ||
2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2802 | fi | |
2803 | ||
2804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 2805 | fi |
e1052144 TT |
2806 | |
2807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2808 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b0cacab0 | 2809 | fi |
e1052144 TT |
2810 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2811 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b0cacab0 TT |
2812 | if test "$ac_test_CFLAGS" = set; then |
2813 | CFLAGS=$ac_save_CFLAGS | |
2814 | elif test $ac_cv_prog_cc_g = yes; then | |
2815 | if test "$GCC" = yes; then | |
2816 | CFLAGS="-g -O2" | |
2817 | else | |
2818 | CFLAGS="-g" | |
2819 | fi | |
73ae2d4a TT |
2820 | else |
2821 | if test "$GCC" = yes; then | |
2822 | CFLAGS="-O2" | |
2823 | else | |
2824 | CFLAGS= | |
2825 | fi | |
2826 | fi | |
e1052144 TT |
2827 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2828 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2829 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b0cacab0 TT |
2830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2831 | else | |
e1052144 | 2832 | ac_cv_prog_cc_c89=no |
b0cacab0 TT |
2833 | ac_save_CC=$CC |
2834 | cat >conftest.$ac_ext <<_ACEOF | |
2835 | /* confdefs.h. */ | |
2836 | _ACEOF | |
2837 | cat confdefs.h >>conftest.$ac_ext | |
2838 | cat >>conftest.$ac_ext <<_ACEOF | |
2839 | /* end confdefs.h. */ | |
2840 | #include <stdarg.h> | |
2841 | #include <stdio.h> | |
2842 | #include <sys/types.h> | |
2843 | #include <sys/stat.h> | |
2844 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2845 | struct buf { int x; }; | |
2846 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2847 | static char *e (p, i) | |
2848 | char **p; | |
2849 | int i; | |
2850 | { | |
2851 | return p[i]; | |
2852 | } | |
2853 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2854 | { | |
2855 | char *s; | |
2856 | va_list v; | |
2857 | va_start (v,p); | |
2858 | s = g (p, va_arg (v,int)); | |
2859 | va_end (v); | |
2860 | return s; | |
2861 | } | |
2862 | ||
2863 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2864 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2865 | These don't provoke an error unfortunately, instead are silently treated | |
e1052144 | 2866 | as 'x'. The following induces an error, until -std is added to get |
b0cacab0 TT |
2867 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2868 | array size at least. It's necessary to write '\x00'==0 to get something | |
e1052144 | 2869 | that's true only with -std. */ |
b0cacab0 TT |
2870 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2871 | ||
e1052144 TT |
2872 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2873 | inside strings and character constants. */ | |
2874 | #define FOO(x) 'x' | |
2875 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2876 | ||
b0cacab0 TT |
2877 | int test (int i, double x); |
2878 | struct s1 {int (*f) (int a);}; | |
2879 | struct s2 {int (*f) (double a);}; | |
2880 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2881 | int argc; | |
2882 | char **argv; | |
2883 | int | |
2884 | main () | |
2885 | { | |
2886 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2887 | ; | |
2888 | return 0; | |
2889 | } | |
2890 | _ACEOF | |
e1052144 TT |
2891 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2892 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b0cacab0 TT |
2893 | do |
2894 | CC="$ac_save_CC $ac_arg" | |
2895 | rm -f conftest.$ac_objext | |
e1052144 TT |
2896 | if { (ac_try="$ac_compile" |
2897 | case "(($ac_try" in | |
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2899 | *) ac_try_echo=$ac_try;; | |
2900 | esac | |
2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2902 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
2903 | ac_status=$? |
2904 | grep -v '^ *+' conftest.er1 >conftest.err | |
2905 | rm -f conftest.er1 | |
2906 | cat conftest.err >&5 | |
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
2908 | (exit $ac_status); } && { |
2909 | test -z "$ac_c_werror_flag" || | |
2910 | test ! -s conftest.err | |
2911 | } && test -s conftest.$ac_objext; then | |
e1052144 | 2912 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 TT |
2913 | else |
2914 | echo "$as_me: failed program was:" >&5 | |
2915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2916 | ||
e1052144 | 2917 | |
b0cacab0 | 2918 | fi |
e1052144 TT |
2919 | |
2920 | rm -f core conftest.err conftest.$ac_objext | |
2921 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b0cacab0 | 2922 | done |
e1052144 | 2923 | rm -f conftest.$ac_ext |
b0cacab0 TT |
2924 | CC=$ac_save_CC |
2925 | ||
2926 | fi | |
e1052144 TT |
2927 | # AC_CACHE_VAL |
2928 | case "x$ac_cv_prog_cc_c89" in | |
2929 | x) | |
2930 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2931 | echo "${ECHO_T}none needed" >&6; } ;; | |
2932 | xno) | |
2933 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2934 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b0cacab0 | 2935 | *) |
e1052144 TT |
2936 | CC="$CC $ac_cv_prog_cc_c89" |
2937 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2938 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b0cacab0 TT |
2939 | esac |
2940 | ||
b0cacab0 | 2941 | |
b0cacab0 TT |
2942 | ac_ext=c |
2943 | ac_cpp='$CPP $CPPFLAGS' | |
2944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2947 | ||
b0cacab0 TT |
2948 | ac_ext=c |
2949 | ac_cpp='$CPP $CPPFLAGS' | |
2950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e1052144 TT |
2953 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2954 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
a64c9c13 TT |
2955 | # On Suns, sometimes $CPP names a directory. |
2956 | if test -n "$CPP" && test -d "$CPP"; then | |
2957 | CPP= | |
2958 | fi | |
2959 | if test -z "$CPP"; then | |
b0cacab0 TT |
2960 | if test "${ac_cv_prog_CPP+set}" = set; then |
2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2962 | else | |
2963 | # Double quotes because CPP needs to be expanded | |
2964 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2965 | do | |
2966 | ac_preproc_ok=false | |
2967 | for ac_c_preproc_warn_flag in '' yes | |
2968 | do | |
2969 | # Use a header file that comes with gcc, so configuring glibc | |
2970 | # with a fresh cross-compiler works. | |
2971 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2972 | # <limits.h> exists even on freestanding compilers. | |
2973 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2974 | # not just through cpp. "Syntax error" is here to catch this case. | |
2975 | cat >conftest.$ac_ext <<_ACEOF | |
2976 | /* confdefs.h. */ | |
2977 | _ACEOF | |
2978 | cat confdefs.h >>conftest.$ac_ext | |
2979 | cat >>conftest.$ac_ext <<_ACEOF | |
2980 | /* end confdefs.h. */ | |
2981 | #ifdef __STDC__ | |
2982 | # include <limits.h> | |
2983 | #else | |
2984 | # include <assert.h> | |
2985 | #endif | |
2986 | Syntax error | |
2987 | _ACEOF | |
e1052144 TT |
2988 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
2989 | case "(($ac_try" in | |
2990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2991 | *) ac_try_echo=$ac_try;; | |
2992 | esac | |
2993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
2995 | ac_status=$? |
2996 | grep -v '^ *+' conftest.er1 >conftest.err | |
2997 | rm -f conftest.er1 | |
2998 | cat conftest.err >&5 | |
2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3000 | (exit $ac_status); } >/dev/null && { |
3001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3002 | test ! -s conftest.err | |
3003 | }; then | |
b0cacab0 TT |
3004 | : |
3005 | else | |
3006 | echo "$as_me: failed program was:" >&5 | |
3007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3008 | ||
3009 | # Broken: fails on valid input. | |
3010 | continue | |
3011 | fi | |
e1052144 | 3012 | |
b0cacab0 TT |
3013 | rm -f conftest.err conftest.$ac_ext |
3014 | ||
e1052144 | 3015 | # OK, works on sane cases. Now check whether nonexistent headers |
b0cacab0 TT |
3016 | # can be detected and how. |
3017 | cat >conftest.$ac_ext <<_ACEOF | |
3018 | /* confdefs.h. */ | |
3019 | _ACEOF | |
3020 | cat confdefs.h >>conftest.$ac_ext | |
3021 | cat >>conftest.$ac_ext <<_ACEOF | |
3022 | /* end confdefs.h. */ | |
3023 | #include <ac_nonexistent.h> | |
3024 | _ACEOF | |
e1052144 TT |
3025 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3026 | case "(($ac_try" in | |
3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3028 | *) ac_try_echo=$ac_try;; | |
3029 | esac | |
3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3031 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
3032 | ac_status=$? |
3033 | grep -v '^ *+' conftest.er1 >conftest.err | |
3034 | rm -f conftest.er1 | |
3035 | cat conftest.err >&5 | |
3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3037 | (exit $ac_status); } >/dev/null && { |
3038 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3039 | test ! -s conftest.err | |
3040 | }; then | |
b0cacab0 TT |
3041 | # Broken: success on invalid input. |
3042 | continue | |
3043 | else | |
3044 | echo "$as_me: failed program was:" >&5 | |
3045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3046 | ||
3047 | # Passes both tests. | |
3048 | ac_preproc_ok=: | |
3049 | break | |
3050 | fi | |
e1052144 | 3051 | |
b0cacab0 TT |
3052 | rm -f conftest.err conftest.$ac_ext |
3053 | ||
3054 | done | |
3055 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3056 | rm -f conftest.err conftest.$ac_ext | |
3057 | if $ac_preproc_ok; then | |
3058 | break | |
3059 | fi | |
3060 | ||
3061 | done | |
3062 | ac_cv_prog_CPP=$CPP | |
3063 | ||
3064 | fi | |
3065 | CPP=$ac_cv_prog_CPP | |
93636bde | 3066 | else |
b0cacab0 TT |
3067 | ac_cv_prog_CPP=$CPP |
3068 | fi | |
e1052144 TT |
3069 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3070 | echo "${ECHO_T}$CPP" >&6; } | |
b0cacab0 TT |
3071 | ac_preproc_ok=false |
3072 | for ac_c_preproc_warn_flag in '' yes | |
3073 | do | |
3074 | # Use a header file that comes with gcc, so configuring glibc | |
3075 | # with a fresh cross-compiler works. | |
3076 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3077 | # <limits.h> exists even on freestanding compilers. | |
a64c9c13 | 3078 | # On the NeXT, cc -E runs the code through the compiler's parser, |
b0cacab0 TT |
3079 | # not just through cpp. "Syntax error" is here to catch this case. |
3080 | cat >conftest.$ac_ext <<_ACEOF | |
3081 | /* confdefs.h. */ | |
3082 | _ACEOF | |
3083 | cat confdefs.h >>conftest.$ac_ext | |
3084 | cat >>conftest.$ac_ext <<_ACEOF | |
3085 | /* end confdefs.h. */ | |
3086 | #ifdef __STDC__ | |
3087 | # include <limits.h> | |
3088 | #else | |
3089 | # include <assert.h> | |
3090 | #endif | |
3091 | Syntax error | |
3092 | _ACEOF | |
e1052144 TT |
3093 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3094 | case "(($ac_try" in | |
3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3096 | *) ac_try_echo=$ac_try;; | |
3097 | esac | |
3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
3100 | ac_status=$? |
3101 | grep -v '^ *+' conftest.er1 >conftest.err | |
3102 | rm -f conftest.er1 | |
3103 | cat conftest.err >&5 | |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3105 | (exit $ac_status); } >/dev/null && { |
3106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3107 | test ! -s conftest.err | |
3108 | }; then | |
a64c9c13 TT |
3109 | : |
3110 | else | |
b0cacab0 TT |
3111 | echo "$as_me: failed program was:" >&5 |
3112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3113 | ||
3114 | # Broken: fails on valid input. | |
3115 | continue | |
3116 | fi | |
e1052144 | 3117 | |
b0cacab0 TT |
3118 | rm -f conftest.err conftest.$ac_ext |
3119 | ||
e1052144 | 3120 | # OK, works on sane cases. Now check whether nonexistent headers |
b0cacab0 TT |
3121 | # can be detected and how. |
3122 | cat >conftest.$ac_ext <<_ACEOF | |
3123 | /* confdefs.h. */ | |
3124 | _ACEOF | |
3125 | cat confdefs.h >>conftest.$ac_ext | |
3126 | cat >>conftest.$ac_ext <<_ACEOF | |
3127 | /* end confdefs.h. */ | |
3128 | #include <ac_nonexistent.h> | |
3129 | _ACEOF | |
e1052144 TT |
3130 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3131 | case "(($ac_try" in | |
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3133 | *) ac_try_echo=$ac_try;; | |
3134 | esac | |
3135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3136 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
3137 | ac_status=$? |
3138 | grep -v '^ *+' conftest.er1 >conftest.err | |
3139 | rm -f conftest.er1 | |
3140 | cat conftest.err >&5 | |
3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3142 | (exit $ac_status); } >/dev/null && { |
3143 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3144 | test ! -s conftest.err | |
3145 | }; then | |
b0cacab0 TT |
3146 | # Broken: success on invalid input. |
3147 | continue | |
3148 | else | |
3149 | echo "$as_me: failed program was:" >&5 | |
3150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3151 | ||
3152 | # Passes both tests. | |
3153 | ac_preproc_ok=: | |
3154 | break | |
3155 | fi | |
e1052144 | 3156 | |
b0cacab0 TT |
3157 | rm -f conftest.err conftest.$ac_ext |
3158 | ||
3159 | done | |
3160 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3161 | rm -f conftest.err conftest.$ac_ext | |
3162 | if $ac_preproc_ok; then | |
93636bde | 3163 | : |
07a0db15 | 3164 | else |
b0cacab0 TT |
3165 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3166 | See \`config.log' for more details." >&5 | |
3167 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3168 | See \`config.log' for more details." >&2;} | |
3169 | { (exit 1); exit 1; }; } | |
3170 | fi | |
3171 | ||
3172 | ac_ext=c | |
3173 | ac_cpp='$CPP $CPPFLAGS' | |
3174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3177 | ||
3178 | ||
29a5deed TT |
3179 | # Check whether --with-linker was given. |
3180 | if test "${with_linker+set}" = set; then | |
3181 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 | |
3182 | echo "${ECHO_T}LD=$withval" >&6; } | |
3183 | LD=$withval | |
3184 | else | |
3185 | if test -z "$LD" ; then LD=$CC; fi | |
3186 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 | |
3187 | echo "${ECHO_T}LD defaults to $LD" >&6; } | |
3188 | fi | |
3189 | export LD | |
3190 | ||
3191 | ||
3192 | # Check whether --with-ccopts was given. | |
3193 | if test "${with_ccopts+set}" = set; then | |
3194 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 | |
3195 | echo "${ECHO_T}CCOPTS is $withval" >&6; } | |
3196 | CFLAGS=$withval | |
3197 | fi | |
3198 | ||
3199 | ||
e1052144 TT |
3200 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3201 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3202 | if test "${ac_cv_path_GREP+set}" = set; then | |
3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3204 | else | |
3205 | # Extract the first word of "grep ggrep" to use in msg output | |
3206 | if test -z "$GREP"; then | |
3207 | set dummy grep ggrep; ac_prog_name=$2 | |
3208 | if test "${ac_cv_path_GREP+set}" = set; then | |
3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3210 | else | |
3211 | ac_path_GREP_found=false | |
3212 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3214 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3215 | do | |
3216 | IFS=$as_save_IFS | |
3217 | test -z "$as_dir" && as_dir=. | |
3218 | for ac_prog in grep ggrep; do | |
3219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3220 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
29a5deed | 3221 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
e1052144 TT |
3222 | # Check for GNU ac_path_GREP and select it if it is found. |
3223 | # Check for GNU $ac_path_GREP | |
3224 | case `"$ac_path_GREP" --version 2>&1` in | |
3225 | *GNU*) | |
3226 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3227 | *) | |
3228 | ac_count=0 | |
3229 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3230 | while : | |
3231 | do | |
3232 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3233 | mv "conftest.tmp" "conftest.in" | |
3234 | cp "conftest.in" "conftest.nl" | |
3235 | echo 'GREP' >> "conftest.nl" | |
3236 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3237 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3238 | ac_count=`expr $ac_count + 1` | |
3239 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3240 | # Best one so far, save it but keep looking for a better one | |
3241 | ac_cv_path_GREP="$ac_path_GREP" | |
3242 | ac_path_GREP_max=$ac_count | |
3243 | fi | |
3244 | # 10*(2^10) chars as input seems more than enough | |
3245 | test $ac_count -gt 10 && break | |
3246 | done | |
3247 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3248 | esac | |
3249 | ||
3250 | ||
3251 | $ac_path_GREP_found && break 3 | |
3252 | done | |
3253 | done | |
3254 | ||
3255 | done | |
3256 | IFS=$as_save_IFS | |
3257 | ||
3258 | ||
3259 | fi | |
3260 | ||
3261 | GREP="$ac_cv_path_GREP" | |
3262 | if test -z "$GREP"; then | |
3263 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3264 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3265 | { (exit 1); exit 1; }; } | |
3266 | fi | |
3267 | ||
3268 | else | |
3269 | ac_cv_path_GREP=$GREP | |
3270 | fi | |
3271 | ||
3272 | ||
3273 | fi | |
3274 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3275 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3276 | GREP="$ac_cv_path_GREP" | |
3277 | ||
3278 | ||
3279 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3280 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3281 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3283 | else | |
3284 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3285 | then ac_cv_path_EGREP="$GREP -E" | |
3286 | else | |
3287 | # Extract the first word of "egrep" to use in msg output | |
3288 | if test -z "$EGREP"; then | |
3289 | set dummy egrep; ac_prog_name=$2 | |
3290 | if test "${ac_cv_path_EGREP+set}" = set; then | |
b0cacab0 TT |
3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3292 | else | |
e1052144 TT |
3293 | ac_path_EGREP_found=false |
3294 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3296 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3297 | do | |
3298 | IFS=$as_save_IFS | |
3299 | test -z "$as_dir" && as_dir=. | |
3300 | for ac_prog in egrep; do | |
3301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3302 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
29a5deed | 3303 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
e1052144 TT |
3304 | # Check for GNU ac_path_EGREP and select it if it is found. |
3305 | # Check for GNU $ac_path_EGREP | |
3306 | case `"$ac_path_EGREP" --version 2>&1` in | |
3307 | *GNU*) | |
3308 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3309 | *) | |
3310 | ac_count=0 | |
3311 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3312 | while : | |
3313 | do | |
3314 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3315 | mv "conftest.tmp" "conftest.in" | |
3316 | cp "conftest.in" "conftest.nl" | |
3317 | echo 'EGREP' >> "conftest.nl" | |
3318 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3319 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3320 | ac_count=`expr $ac_count + 1` | |
3321 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3322 | # Best one so far, save it but keep looking for a better one | |
3323 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3324 | ac_path_EGREP_max=$ac_count | |
b0cacab0 | 3325 | fi |
e1052144 TT |
3326 | # 10*(2^10) chars as input seems more than enough |
3327 | test $ac_count -gt 10 && break | |
3328 | done | |
3329 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3330 | esac | |
3331 | ||
3332 | ||
3333 | $ac_path_EGREP_found && break 3 | |
3334 | done | |
3335 | done | |
3336 | ||
3337 | done | |
3338 | IFS=$as_save_IFS | |
3339 | ||
3340 | ||
3341 | fi | |
3342 | ||
3343 | EGREP="$ac_cv_path_EGREP" | |
3344 | if test -z "$EGREP"; then | |
3345 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3346 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3347 | { (exit 1); exit 1; }; } | |
3348 | fi | |
3349 | ||
3350 | else | |
3351 | ac_cv_path_EGREP=$EGREP | |
b0cacab0 | 3352 | fi |
b0cacab0 TT |
3353 | |
3354 | ||
e1052144 TT |
3355 | fi |
3356 | fi | |
3357 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3358 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3359 | EGREP="$ac_cv_path_EGREP" | |
3360 | ||
3361 | ||
3362 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3363 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
b0cacab0 TT |
3364 | if test "${ac_cv_header_stdc+set}" = set; then |
3365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3366 | else | |
3367 | cat >conftest.$ac_ext <<_ACEOF | |
3368 | /* confdefs.h. */ | |
3369 | _ACEOF | |
3370 | cat confdefs.h >>conftest.$ac_ext | |
3371 | cat >>conftest.$ac_ext <<_ACEOF | |
3372 | /* end confdefs.h. */ | |
3373 | #include <stdlib.h> | |
3374 | #include <stdarg.h> | |
3375 | #include <string.h> | |
3376 | #include <float.h> | |
3377 | ||
3378 | int | |
3379 | main () | |
3380 | { | |
3381 | ||
3382 | ; | |
3383 | return 0; | |
3384 | } | |
3385 | _ACEOF | |
3386 | rm -f conftest.$ac_objext | |
e1052144 TT |
3387 | if { (ac_try="$ac_compile" |
3388 | case "(($ac_try" in | |
3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3390 | *) ac_try_echo=$ac_try;; | |
3391 | esac | |
3392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3393 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
3394 | ac_status=$? |
3395 | grep -v '^ *+' conftest.er1 >conftest.err | |
3396 | rm -f conftest.er1 | |
3397 | cat conftest.err >&5 | |
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3399 | (exit $ac_status); } && { |
3400 | test -z "$ac_c_werror_flag" || | |
3401 | test ! -s conftest.err | |
3402 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3403 | ac_cv_header_stdc=yes |
3404 | else | |
3405 | echo "$as_me: failed program was:" >&5 | |
3406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3407 | ||
e1052144 | 3408 | ac_cv_header_stdc=no |
b0cacab0 | 3409 | fi |
e1052144 TT |
3410 | |
3411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
3412 | |
3413 | if test $ac_cv_header_stdc = yes; then | |
3414 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3415 | cat >conftest.$ac_ext <<_ACEOF | |
3416 | /* confdefs.h. */ | |
3417 | _ACEOF | |
3418 | cat confdefs.h >>conftest.$ac_ext | |
3419 | cat >>conftest.$ac_ext <<_ACEOF | |
3420 | /* end confdefs.h. */ | |
3421 | #include <string.h> | |
3422 | ||
3423 | _ACEOF | |
3424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3425 | $EGREP "memchr" >/dev/null 2>&1; then | |
93636bde | 3426 | : |
a64c9c13 | 3427 | else |
b0cacab0 | 3428 | ac_cv_header_stdc=no |
a64c9c13 | 3429 | fi |
93636bde | 3430 | rm -f conftest* |
b0cacab0 | 3431 | |
a64c9c13 | 3432 | fi |
b0cacab0 TT |
3433 | |
3434 | if test $ac_cv_header_stdc = yes; then | |
3435 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3436 | cat >conftest.$ac_ext <<_ACEOF | |
3437 | /* confdefs.h. */ | |
3438 | _ACEOF | |
3439 | cat confdefs.h >>conftest.$ac_ext | |
3440 | cat >>conftest.$ac_ext <<_ACEOF | |
3441 | /* end confdefs.h. */ | |
3442 | #include <stdlib.h> | |
3443 | ||
3444 | _ACEOF | |
3445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3446 | $EGREP "free" >/dev/null 2>&1; then | |
3447 | : | |
3448 | else | |
3449 | ac_cv_header_stdc=no | |
a64c9c13 | 3450 | fi |
93636bde | 3451 | rm -f conftest* |
b0cacab0 | 3452 | |
a64c9c13 | 3453 | fi |
b0cacab0 TT |
3454 | |
3455 | if test $ac_cv_header_stdc = yes; then | |
3456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3457 | if test "$cross_compiling" = yes; then | |
3458 | : | |
a64c9c13 | 3459 | else |
b0cacab0 TT |
3460 | cat >conftest.$ac_ext <<_ACEOF |
3461 | /* confdefs.h. */ | |
3462 | _ACEOF | |
3463 | cat confdefs.h >>conftest.$ac_ext | |
3464 | cat >>conftest.$ac_ext <<_ACEOF | |
3465 | /* end confdefs.h. */ | |
3466 | #include <ctype.h> | |
e1052144 | 3467 | #include <stdlib.h> |
b0cacab0 TT |
3468 | #if ((' ' & 0x0FF) == 0x020) |
3469 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3470 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3471 | #else | |
3472 | # define ISLOWER(c) \ | |
3473 | (('a' <= (c) && (c) <= 'i') \ | |
3474 | || ('j' <= (c) && (c) <= 'r') \ | |
3475 | || ('s' <= (c) && (c) <= 'z')) | |
3476 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3477 | #endif | |
93636bde | 3478 | |
b0cacab0 TT |
3479 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3480 | int | |
3481 | main () | |
3482 | { | |
3483 | int i; | |
3484 | for (i = 0; i < 256; i++) | |
3485 | if (XOR (islower (i), ISLOWER (i)) | |
3486 | || toupper (i) != TOUPPER (i)) | |
e1052144 TT |
3487 | return 2; |
3488 | return 0; | |
b0cacab0 TT |
3489 | } |
3490 | _ACEOF | |
3491 | rm -f conftest$ac_exeext | |
e1052144 TT |
3492 | if { (ac_try="$ac_link" |
3493 | case "(($ac_try" in | |
3494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3495 | *) ac_try_echo=$ac_try;; | |
3496 | esac | |
3497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3498 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
3499 | ac_status=$? |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
3502 | { (case "(($ac_try" in |
3503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3504 | *) ac_try_echo=$ac_try;; | |
3505 | esac | |
3506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3507 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
3508 | ac_status=$? |
3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3510 | (exit $ac_status); }; }; then | |
3511 | : | |
a64c9c13 | 3512 | else |
b0cacab0 TT |
3513 | echo "$as_me: program exited with status $ac_status" >&5 |
3514 | echo "$as_me: failed program was:" >&5 | |
3515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3516 | ||
3517 | ( exit $ac_status ) | |
3518 | ac_cv_header_stdc=no | |
3519 | fi | |
e1052144 | 3520 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 3521 | fi |
e1052144 TT |
3522 | |
3523 | ||
b0cacab0 TT |
3524 | fi |
3525 | fi | |
e1052144 TT |
3526 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3527 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
b0cacab0 TT |
3528 | if test $ac_cv_header_stdc = yes; then |
3529 | ||
3530 | cat >>confdefs.h <<\_ACEOF | |
3531 | #define STDC_HEADERS 1 | |
3532 | _ACEOF | |
3533 | ||
3534 | fi | |
3535 | ||
3536 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3537 | ||
3538 | ||
3539 | ||
3540 | ||
3541 | ||
3542 | ||
3543 | ||
3544 | ||
3545 | ||
3546 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3547 | inttypes.h stdint.h unistd.h | |
3548 | do | |
3549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
3550 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3554 | else | |
3555 | cat >conftest.$ac_ext <<_ACEOF | |
3556 | /* confdefs.h. */ | |
3557 | _ACEOF | |
3558 | cat confdefs.h >>conftest.$ac_ext | |
3559 | cat >>conftest.$ac_ext <<_ACEOF | |
3560 | /* end confdefs.h. */ | |
3561 | $ac_includes_default | |
3562 | ||
3563 | #include <$ac_header> | |
3564 | _ACEOF | |
3565 | rm -f conftest.$ac_objext | |
e1052144 TT |
3566 | if { (ac_try="$ac_compile" |
3567 | case "(($ac_try" in | |
3568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3569 | *) ac_try_echo=$ac_try;; | |
3570 | esac | |
3571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3572 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
3573 | ac_status=$? |
3574 | grep -v '^ *+' conftest.er1 >conftest.err | |
3575 | rm -f conftest.er1 | |
3576 | cat conftest.err >&5 | |
3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3578 | (exit $ac_status); } && { |
3579 | test -z "$ac_c_werror_flag" || | |
3580 | test ! -s conftest.err | |
3581 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3582 | eval "$as_ac_Header=yes" |
3583 | else | |
3584 | echo "$as_me: failed program was:" >&5 | |
3585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3586 | ||
e1052144 | 3587 | eval "$as_ac_Header=no" |
b0cacab0 | 3588 | fi |
e1052144 TT |
3589 | |
3590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 3591 | fi |
e1052144 TT |
3592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3594 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
3595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3596 | cat >>confdefs.h <<_ACEOF | |
3597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3598 | _ACEOF | |
3599 | ||
3600 | fi | |
3601 | ||
3602 | done | |
3603 | ||
3604 | ||
3605 | if test "${ac_cv_header_linux_fs_h+set}" = set; then | |
e1052144 TT |
3606 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
3607 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
3608 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
3609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3610 | fi | |
e1052144 TT |
3611 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
3612 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } | |
b0cacab0 TT |
3613 | else |
3614 | # Is the header compilable? | |
e1052144 TT |
3615 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
3616 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
3617 | cat >conftest.$ac_ext <<_ACEOF |
3618 | /* confdefs.h. */ | |
3619 | _ACEOF | |
3620 | cat confdefs.h >>conftest.$ac_ext | |
3621 | cat >>conftest.$ac_ext <<_ACEOF | |
3622 | /* end confdefs.h. */ | |
3623 | $ac_includes_default | |
93636bde | 3624 | #include <linux/fs.h> |
b0cacab0 TT |
3625 | _ACEOF |
3626 | rm -f conftest.$ac_objext | |
e1052144 TT |
3627 | if { (ac_try="$ac_compile" |
3628 | case "(($ac_try" in | |
3629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3630 | *) ac_try_echo=$ac_try;; | |
3631 | esac | |
3632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3633 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
3634 | ac_status=$? |
3635 | grep -v '^ *+' conftest.er1 >conftest.err | |
3636 | rm -f conftest.er1 | |
3637 | cat conftest.err >&5 | |
3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3639 | (exit $ac_status); } && { |
3640 | test -z "$ac_c_werror_flag" || | |
3641 | test ! -s conftest.err | |
3642 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
3643 | ac_header_compiler=yes |
3644 | else | |
3645 | echo "$as_me: failed program was:" >&5 | |
3646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3647 | ||
e1052144 | 3648 | ac_header_compiler=no |
b0cacab0 | 3649 | fi |
e1052144 TT |
3650 | |
3651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3653 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
3654 | |
3655 | # Is the header present? | |
e1052144 TT |
3656 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
3657 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
3658 | cat >conftest.$ac_ext <<_ACEOF |
3659 | /* confdefs.h. */ | |
3660 | _ACEOF | |
3661 | cat confdefs.h >>conftest.$ac_ext | |
3662 | cat >>conftest.$ac_ext <<_ACEOF | |
3663 | /* end confdefs.h. */ | |
3664 | #include <linux/fs.h> | |
3665 | _ACEOF | |
e1052144 TT |
3666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3667 | case "(($ac_try" in | |
3668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3669 | *) ac_try_echo=$ac_try;; | |
3670 | esac | |
3671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
3673 | ac_status=$? |
3674 | grep -v '^ *+' conftest.er1 >conftest.err | |
3675 | rm -f conftest.er1 | |
3676 | cat conftest.err >&5 | |
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
3678 | (exit $ac_status); } >/dev/null && { |
3679 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3680 | test ! -s conftest.err | |
3681 | }; then | |
b0cacab0 TT |
3682 | ac_header_preproc=yes |
3683 | else | |
3684 | echo "$as_me: failed program was:" >&5 | |
3685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3686 | ||
3687 | ac_header_preproc=no | |
3688 | fi | |
e1052144 | 3689 | |
b0cacab0 | 3690 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
3691 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3692 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
3693 | |
3694 | # So? What about this header? | |
3695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3696 | yes:no: ) | |
3697 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3698 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3699 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 | |
3700 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} | |
3701 | ac_header_preproc=yes | |
3702 | ;; | |
3703 | no:yes:* ) | |
3704 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 | |
3705 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} | |
3706 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 | |
3707 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} | |
3708 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 | |
3709 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} | |
3710 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3711 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3712 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 | |
3713 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} | |
3714 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 | |
3715 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 3716 | |
b0cacab0 TT |
3717 | ;; |
3718 | esac | |
e1052144 TT |
3719 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
3720 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
3721 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3723 | else | |
3724 | ac_cv_header_linux_fs_h=$ac_header_preproc | |
3725 | fi | |
e1052144 TT |
3726 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
3727 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } | |
b0cacab0 | 3728 | |
07a0db15 | 3729 | fi |
b0cacab0 | 3730 | if test $ac_cv_header_linux_fs_h = yes; then |
07a0db15 TT |
3731 | linux_headers=yes |
3732 | else | |
b0cacab0 | 3733 | linux_headers=no |
a64c9c13 TT |
3734 | fi |
3735 | ||
b0cacab0 | 3736 | |
a64c9c13 TT |
3737 | if test "$linux_headers" != yes; then |
3738 | LINUX_INCLUDE='-I$(top_builddir)/include' | |
3739 | fi | |
3740 | ||
e1052144 TT |
3741 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
3742 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } | |
b1c92f91 MA |
3743 | if test "$GCC" = yes |
3744 | then | |
3745 | case "$host_cpu" in | |
3746 | alpha) addcflags="-mieee" ;; | |
3747 | esac | |
3748 | fi | |
3749 | if test "x$addcflags" != x | |
3750 | then | |
e1052144 TT |
3751 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
3752 | echo "${ECHO_T}$addcflags" >&6; } | |
b1c92f91 MA |
3753 | CFLAGS="$addcflags $CFLAGS" |
3754 | else | |
e1052144 TT |
3755 | { echo "$as_me:$LINENO: result: (none)" >&5 |
3756 | echo "${ECHO_T}(none)" >&6; } | |
b1c92f91 | 3757 | fi |
a64c9c13 TT |
3758 | LIB_EXT=.a |
3759 | STATIC_LIB_EXT=.a | |
3760 | PROFILE_LIB_EXT=.a | |
b0cacab0 | 3761 | |
e1052144 | 3762 | # Check whether --with-ldopts was given. |
a64c9c13 | 3763 | if test "${with_ldopts+set}" = set; then |
e1052144 TT |
3764 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
3765 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } | |
a64c9c13 TT |
3766 | LDFLAGS=$withval |
3767 | else | |
3768 | LDFLAGS= | |
e1052144 | 3769 | fi |
a64c9c13 | 3770 | |
e1052144 TT |
3771 | |
3772 | # Check whether --with-root-prefix was given. | |
a64c9c13 | 3773 | if test "${with_root_prefix+set}" = set; then |
e1052144 | 3774 | withval=$with_root_prefix; root_prefix=$withval |
a64c9c13 TT |
3775 | else |
3776 | root_prefix=NONE | |
e1052144 TT |
3777 | fi |
3778 | # Check whether --enable-maintainer-mode was given. | |
98919bdb | 3779 | if test "${enable_maintainer_mode+set}" = set; then |
e1052144 | 3780 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
98919bdb TT |
3781 | then |
3782 | MAINTAINER_CMT=# | |
3783 | echo "Disabling maintainer mode" | |
3784 | else | |
3785 | MAINTAINER_CMT= | |
3786 | echo "Enabling maintainer mode" | |
3787 | fi | |
3788 | ||
3789 | else | |
3790 | MAINTAINER_CMT=# | |
3791 | echo "Disabling maintainer mode by default" | |
3792 | ||
e1052144 TT |
3793 | fi |
3794 | ||
98919bdb | 3795 | |
e1052144 | 3796 | # Check whether --enable-compression was given. |
1917875f | 3797 | if test "${enable_compression+set}" = set; then |
e1052144 | 3798 | enableval=$enable_compression; if test "$enableval" = "no" |
1917875f TT |
3799 | then |
3800 | echo "Disabling compression support" | |
3801 | else | |
b0cacab0 | 3802 | cat >>confdefs.h <<\_ACEOF |
1917875f | 3803 | #define ENABLE_COMPRESSION 1 |
b0cacab0 | 3804 | _ACEOF |
1917875f TT |
3805 | |
3806 | echo "Enabling compression support" | |
3807 | echo "WARNING: Compression support is experimental" | |
3808 | fi | |
3809 | ||
3810 | else | |
3811 | echo "Disabling compression support by default" | |
3812 | ||
e1052144 TT |
3813 | fi |
3814 | ||
3815 | # Check whether --enable-htree was given. | |
8fdc9985 | 3816 | if test "${enable_htree+set}" = set; then |
e1052144 | 3817 | enableval=$enable_htree; if test "$enableval" = "no" |
8fdc9985 TT |
3818 | then |
3819 | HTREE_CMT=# | |
3820 | echo "Disabling htree directory support" | |
3821 | else | |
3822 | HTREE_CMT= | |
b0cacab0 | 3823 | cat >>confdefs.h <<\_ACEOF |
8fdc9985 | 3824 | #define ENABLE_HTREE 1 |
b0cacab0 | 3825 | _ACEOF |
8fdc9985 TT |
3826 | |
3827 | echo "Enabling htree directory support" | |
8fdc9985 TT |
3828 | fi |
3829 | ||
3830 | else | |
559ca6cb | 3831 | HTREE_CMT= |
b0cacab0 | 3832 | cat >>confdefs.h <<\_ACEOF |
559ca6cb | 3833 | #define ENABLE_HTREE 1 |
b0cacab0 | 3834 | _ACEOF |
559ca6cb TT |
3835 | |
3836 | echo "Enabling htree directory support by default" | |
8fdc9985 | 3837 | |
e1052144 TT |
3838 | fi |
3839 | ||
8fdc9985 | 3840 | |
a4ece359 | 3841 | E2_PKG_CONFIG_STATIC=--static |
e1052144 | 3842 | # Check whether --enable-elf-shlibs was given. |
a64c9c13 | 3843 | if test "${enable_elf_shlibs+set}" = set; then |
e1052144 | 3844 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
a64c9c13 TT |
3845 | then |
3846 | ELF_CMT=# | |
3847 | MAKEFILE_ELF=/dev/null | |
3848 | echo "Disabling ELF shared libraries" | |
3849 | else | |
a4ece359 | 3850 | E2_PKG_CONFIG_STATIC= |
a64c9c13 TT |
3851 | ELF_CMT= |
3852 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
f5955dda TT |
3853 | case "$host_os" in |
3854 | solaris2.*) | |
3855 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
3856 | ;; | |
3857 | esac | |
a64c9c13 TT |
3858 | BINARY_TYPE=elfbin |
3859 | LIB_EXT=.so | |
3860 | echo "Enabling ELF shared libraries" | |
3861 | fi | |
3862 | ||
3863 | else | |
3864 | MAKEFILE_ELF=/dev/null | |
3865 | ELF_CMT=# | |
3866 | echo "Disabling ELF shared libraries by default" | |
3867 | ||
e1052144 TT |
3868 | fi |
3869 | ||
93636bde | 3870 | |
a64c9c13 | 3871 | |
e1052144 | 3872 | # Check whether --enable-bsd-shlibs was given. |
a64c9c13 | 3873 | if test "${enable_bsd_shlibs+set}" = set; then |
e1052144 | 3874 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
a64c9c13 TT |
3875 | then |
3876 | BSDLIB_CMT=# | |
3877 | MAKEFILE_BSDLIB=/dev/null | |
3878 | echo "Disabling BSD shared libraries" | |
3879 | else | |
a4ece359 | 3880 | E2_PKG_CONFIG_STATIC= |
a64c9c13 TT |
3881 | BSDLIB_CMT= |
3882 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
3883 | LIB_EXT=.so | |
e1f07228 | 3884 | case "$host_os" in |
aa75eccc | 3885 | darwin*) |
e1f07228 TT |
3886 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
3887 | LIB_EXT=.dylib | |
3888 | ;; | |
3889 | esac | |
a64c9c13 TT |
3890 | echo "Enabling BSD shared libraries" |
3891 | fi | |
3892 | ||
3893 | else | |
3894 | MAKEFILE_BSDLIB=/dev/null | |
3895 | BSDLIB_CMT=# | |
3896 | echo "Disabling BSD shared libraries by default" | |
3897 | ||
e1052144 TT |
3898 | fi |
3899 | ||
93636bde | 3900 | |
a64c9c13 | 3901 | |
e1052144 | 3902 | # Check whether --enable-profile was given. |
cdf186e4 | 3903 | if test "${enable_profile+set}" = set; then |
e1052144 | 3904 | enableval=$enable_profile; if test "$enableval" = "no" |
cdf186e4 TT |
3905 | then |
3906 | PROFILE_CMT=# | |
3907 | MAKEFILE_PROFILE=/dev/null | |
3908 | echo "Disabling profiling libraries" | |
3909 | else | |
3910 | PROFILE_CMT= | |
3911 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
3912 | PROFILED_LIB_EXT=_p.a | |
3913 | echo "Building profiling libraries" | |
3914 | fi | |
3915 | ||
3916 | else | |
3917 | PROFILE_CMT=# | |
3918 | MAKEFILE_PROFILE=/dev/null | |
3919 | echo "Disabling profiling libraries by default" | |
3920 | ||
e1052144 TT |
3921 | fi |
3922 | ||
93636bde | 3923 | |
cdf186e4 | 3924 | |
e1052144 | 3925 | # Check whether --enable-checker was given. |
cdf186e4 | 3926 | if test "${enable_checker+set}" = set; then |
e1052144 | 3927 | enableval=$enable_checker; if test "$enableval" = "no" |
cdf186e4 TT |
3928 | then |
3929 | CHECKER_CMT=# | |
3930 | MAKEFILE_CHECKER=/dev/null | |
3931 | echo "Disabling checker libraries" | |
3932 | else | |
3933 | CHECKER_CMT= | |
3934 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
3935 | echo "Building checker libraries" | |
3936 | fi | |
3937 | ||
3938 | else | |
3939 | CHECKER_CMT=# | |
3940 | MAKEFILE_CHECKER=/dev/null | |
3941 | echo "Disabling checker libraries by default" | |
3942 | ||
e1052144 TT |
3943 | fi |
3944 | ||
93636bde TT |
3945 | |
3946 | ||
3947 | ||
3948 | ||
cdf186e4 | 3949 | |
e1052144 | 3950 | # Check whether --enable-jbd-debug was given. |
782bebfd | 3951 | if test "${enable_jbd_debug+set}" = set; then |
e1052144 | 3952 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
80bfaa3e TT |
3953 | then |
3954 | echo "Disabling journal debugging" | |
3955 | else | |
b0cacab0 | 3956 | cat >>confdefs.h <<\_ACEOF |
8cf93332 | 3957 | #define CONFIG_JBD_DEBUG 1 |
b0cacab0 | 3958 | _ACEOF |
80bfaa3e TT |
3959 | |
3960 | echo "Enabling journal debugging" | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | echo "Disabling journal debugging by default" | |
3965 | ||
e1052144 TT |
3966 | fi |
3967 | ||
3968 | # Check whether --enable-blkid-debug was given. | |
f0a22d0f | 3969 | if test "${enable_blkid_debug+set}" = set; then |
e1052144 | 3970 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
f0a22d0f TT |
3971 | then |
3972 | echo "Disabling blkid debugging" | |
3973 | else | |
b0cacab0 | 3974 | cat >>confdefs.h <<\_ACEOF |
f0a22d0f | 3975 | #define CONFIG_BLKID_DEBUG 1 |
b0cacab0 | 3976 | _ACEOF |
f0a22d0f TT |
3977 | |
3978 | echo "Enabling blkid debugging" | |
3979 | fi | |
3980 | ||
3981 | else | |
3982 | echo "Disabling blkid debugging by default" | |
3983 | ||
e1052144 TT |
3984 | fi |
3985 | ||
3986 | # Check whether --enable-testio-debug was given. | |
2a29f135 | 3987 | if test "${enable_testio_debug+set}" = set; then |
e1052144 | 3988 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
2a29f135 TT |
3989 | then |
3990 | echo "Disabling testio debugging" | |
3991 | else | |
b0cacab0 | 3992 | cat >>confdefs.h <<\_ACEOF |
2a29f135 | 3993 | #define CONFIG_TESTIO_DEBUG 1 |
b0cacab0 | 3994 | _ACEOF |
2a29f135 TT |
3995 | |
3996 | echo "Enabling testio debugging" | |
3997 | fi | |
3998 | ||
3999 | else | |
4000 | echo "Disabling testio debugging by default" | |
4001 | ||
e1052144 TT |
4002 | fi |
4003 | ||
e1052144 | 4004 | # Check whether --enable-debugfs was given. |
cdf186e4 | 4005 | if test "${enable_debugfs+set}" = set; then |
e1052144 | 4006 | enableval=$enable_debugfs; if test "$enableval" = "no" |
cdf186e4 TT |
4007 | then |
4008 | echo "Disabling debugfs support" | |
4009 | DEBUGFS_CMT="#" | |
4010 | else | |
cdf186e4 TT |
4011 | DEBUGFS_CMT= |
4012 | echo "Enabling debugfs support" | |
4013 | fi | |
4014 | ||
4015 | else | |
4016 | echo "Enabling debugfs support by default" | |
cdf186e4 TT |
4017 | DEBUGFS_CMT= |
4018 | ||
e1052144 TT |
4019 | fi |
4020 | ||
cdf186e4 | 4021 | |
e1052144 | 4022 | # Check whether --enable-imager was given. |
cdf186e4 | 4023 | if test "${enable_imager+set}" = set; then |
e1052144 | 4024 | enableval=$enable_imager; if test "$enableval" = "no" |
cdf186e4 TT |
4025 | then |
4026 | echo "Disabling e2image support" | |
4027 | IMAGER_CMT="#" | |
4028 | else | |
cdf186e4 TT |
4029 | IMAGER_CMT= |
4030 | echo "Enabling e2image support" | |
4031 | fi | |
4032 | ||
4033 | else | |
4034 | echo "Enabling e2image support by default" | |
cdf186e4 TT |
4035 | IMAGER_CMT= |
4036 | ||
e1052144 TT |
4037 | fi |
4038 | ||
cdf186e4 | 4039 | |
e1052144 | 4040 | # Check whether --enable-resizer was given. |
cdf186e4 | 4041 | if test "${enable_resizer+set}" = set; then |
e1052144 | 4042 | enableval=$enable_resizer; if test "$enableval" = "no" |
cdf186e4 TT |
4043 | then |
4044 | echo "Disabling e2resize support" | |
4045 | RESIZER_CMT="#" | |
4046 | else | |
cdf186e4 TT |
4047 | RESIZER_CMT= |
4048 | echo "Enabling e2resize support" | |
4049 | fi | |
4050 | ||
4051 | else | |
4052 | echo "Enabling e2resize support by default" | |
cdf186e4 TT |
4053 | RESIZER_CMT= |
4054 | ||
e1052144 TT |
4055 | fi |
4056 | ||
cdf186e4 | 4057 | |
e1052144 | 4058 | # Check whether --enable-fsck was given. |
cdf186e4 | 4059 | if test "${enable_fsck+set}" = set; then |
e1052144 | 4060 | enableval=$enable_fsck; if test "$enableval" = "no" |
cdf186e4 TT |
4061 | then |
4062 | FSCK_PROG='' FSCK_MAN='' | |
4063 | echo "Not building fsck wrapper" | |
4064 | else | |
4065 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
4066 | echo "Building fsck wrapper" | |
4067 | fi | |
4068 | ||
4069 | else | |
4070 | case "$host_os" in | |
e363240d | 4071 | gnu*) |
cdf186e4 TT |
4072 | FSCK_PROG='' FSCK_MAN='' |
4073 | echo "Not building fsck wrapper by default" | |
4074 | ;; | |
4075 | *) | |
4076 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
4077 | echo "Building fsck wrapper by default" | |
4078 | esac | |
4079 | ||
e1052144 TT |
4080 | fi |
4081 | ||
93636bde | 4082 | |
cdf186e4 | 4083 | |
e1052144 | 4084 | # Check whether --enable-e2initrd-helper was given. |
5d40773b | 4085 | if test "${enable_e2initrd_helper+set}" = set; then |
e1052144 | 4086 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
5d40773b TT |
4087 | then |
4088 | E2INITRD_PROG='' E2INITRD_MAN='' | |
4089 | echo "Not building e2initrd helper" | |
4090 | else | |
4091 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
4092 | echo "Building e2initrd helper" | |
4093 | fi | |
4094 | ||
4095 | else | |
4096 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
4097 | echo "Building e2initrd helper by default" | |
4098 | ||
e1052144 TT |
4099 | fi |
4100 | ||
5d40773b TT |
4101 | |
4102 | ||
a4ece359 | 4103 | STATIC_BLKID_DEVMAPPER_LIBS='' |
e1052144 | 4104 | # Check whether --enable-blkid-devmapper was given. |
4db2f59a | 4105 | if test "${enable_blkid_devmapper+set}" = set; then |
e1052144 | 4106 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
4db2f59a KZ |
4107 | then |
4108 | echo "Disabling device-mapper support" | |
4109 | DEVMAPPER_REQ='' | |
4110 | DEVMAPPER_LIBS='' | |
4111 | STATIC_DEVMAPPER_LIBS='' | |
4112 | else | |
4113 | cat >>confdefs.h <<\_ACEOF | |
4114 | #define HAVE_DEVMAPPER 1 | |
4115 | _ACEOF | |
4116 | ||
4117 | echo "Enabling device-mapper support" | |
4118 | ||
4db2f59a | 4119 | |
a4ece359 TT |
4120 | |
4121 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4122 | if test -n "$ac_tool_prefix"; then | |
4123 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4124 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4125 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4127 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
4128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4129 | else | |
4130 | case $PKG_CONFIG in | |
4131 | [\\/]* | ?:[\\/]*) | |
4132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4133 | ;; | |
4134 | *) | |
4135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4136 | for as_dir in $PATH | |
4137 | do | |
4138 | IFS=$as_save_IFS | |
4139 | test -z "$as_dir" && as_dir=. | |
4140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4142 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4144 | break 2 | |
4145 | fi | |
4146 | done | |
4147 | done | |
4148 | IFS=$as_save_IFS | |
4149 | ||
4150 | ;; | |
4151 | esac | |
4152 | fi | |
4153 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4154 | if test -n "$PKG_CONFIG"; then | |
4155 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
4156 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
4157 | else | |
4158 | { echo "$as_me:$LINENO: result: no" >&5 | |
4159 | echo "${ECHO_T}no" >&6; } | |
4160 | fi | |
4161 | ||
4db2f59a | 4162 | |
a4ece359 TT |
4163 | fi |
4164 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4165 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4166 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4167 | set dummy pkg-config; ac_word=$2 | |
4168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4170 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4172 | else | |
4173 | case $ac_pt_PKG_CONFIG in | |
4174 | [\\/]* | ?:[\\/]*) | |
4175 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4176 | ;; | |
4177 | *) | |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
4183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4185 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4187 | break 2 | |
4188 | fi | |
4189 | done | |
4190 | done | |
4191 | IFS=$as_save_IFS | |
4192 | ||
4193 | ;; | |
4194 | esac | |
4195 | fi | |
4196 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4197 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4198 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
4199 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
4200 | else | |
4201 | { echo "$as_me:$LINENO: result: no" >&5 | |
4202 | echo "${ECHO_T}no" >&6; } | |
4203 | fi | |
4204 | ||
4205 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4206 | PKG_CONFIG="" | |
4207 | else | |
4208 | case $cross_compiling:$ac_tool_warned in | |
4209 | yes:) | |
4210 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4211 | whose name does not start with the host triplet. If you think this | |
4212 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4213 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4214 | whose name does not start with the host triplet. If you think this | |
4215 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4216 | ac_tool_warned=yes ;; | |
4217 | esac | |
4218 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4219 | fi | |
4220 | else | |
4221 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4222 | fi | |
4223 | ||
4224 | fi | |
4225 | if test -n "$PKG_CONFIG"; then | |
4226 | _pkg_min_version=0.9.0 | |
4227 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4228 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
4229 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4230 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4231 | echo "${ECHO_T}yes" >&6; } | |
4232 | else | |
4233 | { echo "$as_me:$LINENO: result: no" >&5 | |
4234 | echo "${ECHO_T}no" >&6; } | |
4235 | PKG_CONFIG="" | |
4236 | fi | |
4237 | ||
4238 | fi | |
4239 | ||
4240 | if test -z "$PKG_CONFIG"; then | |
4241 | echo "pkg-config not installed; please install it." | |
4242 | exit 1; | |
4243 | fi | |
4244 | ||
4245 | { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5 | |
4246 | echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; } | |
4247 | if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then | |
4248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4249 | else | |
4250 | ac_check_lib_save_LIBS=$LIBS | |
4251 | LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS" | |
4252 | cat >conftest.$ac_ext <<_ACEOF | |
4253 | /* confdefs.h. */ | |
4254 | _ACEOF | |
4255 | cat confdefs.h >>conftest.$ac_ext | |
4256 | cat >>conftest.$ac_ext <<_ACEOF | |
4257 | /* end confdefs.h. */ | |
4258 | ||
4259 | /* Override any GCC internal prototype to avoid an error. | |
4260 | Use char because int might match the return type of a GCC | |
4261 | builtin and then its argument prototype would still apply. */ | |
4262 | #ifdef __cplusplus | |
4263 | extern "C" | |
4264 | #endif | |
4265 | char dm_tree_create (); | |
4266 | int | |
4267 | main () | |
4268 | { | |
4269 | return dm_tree_create (); | |
4270 | ; | |
4271 | return 0; | |
4272 | } | |
4273 | _ACEOF | |
4274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4275 | if { (ac_try="$ac_link" | |
4276 | case "(($ac_try" in | |
4277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4278 | *) ac_try_echo=$ac_try;; | |
4279 | esac | |
4280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4281 | (eval "$ac_link") 2>conftest.er1 | |
4282 | ac_status=$? | |
4283 | grep -v '^ *+' conftest.er1 >conftest.err | |
4284 | rm -f conftest.er1 | |
4285 | cat conftest.err >&5 | |
4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4287 | (exit $ac_status); } && { | |
4288 | test -z "$ac_c_werror_flag" || | |
4289 | test ! -s conftest.err | |
4290 | } && test -s conftest$ac_exeext && | |
4291 | $as_test_x conftest$ac_exeext; then | |
4292 | ac_cv_lib_devmapper_dm_tree_create=yes | |
4293 | else | |
4294 | echo "$as_me: failed program was:" >&5 | |
4295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4296 | ||
4297 | ac_cv_lib_devmapper_dm_tree_create=no | |
4298 | fi | |
4299 | ||
4300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4301 | conftest$ac_exeext conftest.$ac_ext | |
4302 | LIBS=$ac_check_lib_save_LIBS | |
4303 | fi | |
4304 | { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5 | |
4305 | echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; } | |
4306 | if test $ac_cv_lib_devmapper_dm_tree_create = yes; then | |
4307 | DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`; | |
4308 | STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`; | |
4309 | DEVMAPPER_REQ="devmapper"; | |
4310 | DEVMAPPER_PC_LIBS="-ldevmapper" | |
4311 | else | |
4312 | { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5 | |
4313 | echo "$as_me: error: device-mapper library not found" >&2;} | |
4314 | { (exit 1); exit 1; }; } | |
4315 | fi | |
4316 | ||
4317 | # work around stupid devmapper.pc bug in Debian | |
4318 | case "$STATIC_DEVMAPPER_LIBS" in | |
4319 | *pthread*) | |
4320 | ;; | |
4321 | *) | |
4322 | echo "Working around Debian bug #390243..." | |
4323 | STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS" | |
4324 | ;; | |
4325 | esac | |
4326 | if test "$E2_PKG_CONFIG_STATIC" = "--static"; then | |
4327 | DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" | |
4328 | STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" | |
4329 | fi | |
4db2f59a KZ |
4330 | fi |
4331 | ||
4332 | else | |
4333 | echo "Disabling device-mapper support by default" | |
4334 | ||
e1052144 TT |
4335 | fi |
4336 | ||
4db2f59a KZ |
4337 | |
4338 | ||
4339 | ||
4340 | ||
a4ece359 | 4341 | |
3249394d TT |
4342 | # Check whether --enable-tls was given. |
4343 | if test "${enable_tls+set}" = set; then | |
4344 | enableval=$enable_tls; if test "$enableval" = "no" | |
4345 | then | |
4346 | try_tls="" | |
4347 | echo "Disabling thread local support" | |
4348 | else | |
4349 | try_tls="yes" | |
4350 | echo "Enabling thread local support" | |
4351 | fi | |
4352 | ||
4353 | else | |
eafba6c3 TT |
4354 | if test -n "$WITH_DIET_LIBC" |
4355 | then | |
4356 | try_tls="" | |
4357 | echo "Diet libc does not support thread local support" | |
4358 | else | |
4359 | try_tls="yes" | |
4360 | echo "Try using thread local support by default" | |
4361 | fi | |
3249394d TT |
4362 | |
4363 | fi | |
4364 | ||
4365 | if test "$try_tls" = "yes" | |
4366 | then | |
4367 | ||
4368 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 | |
4369 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } | |
4370 | if test "${ac_cv_tls+set}" = set; then | |
4371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4372 | else | |
4373 | ||
4374 | ax_tls_keywords="__thread __declspec(thread) none" | |
4375 | for ax_tls_keyword in $ax_tls_keywords; do | |
4376 | case $ax_tls_keyword in | |
4377 | none) ac_cv_tls=none ; break ;; | |
4378 | *) | |
4379 | cat >conftest.$ac_ext <<_ACEOF | |
4380 | /* confdefs.h. */ | |
4381 | _ACEOF | |
4382 | cat confdefs.h >>conftest.$ac_ext | |
4383 | cat >>conftest.$ac_ext <<_ACEOF | |
4384 | /* end confdefs.h. */ | |
4385 | #include <stdlib.h> | |
4386 | static void | |
4387 | foo(void) { | |
4388 | static $ax_tls_keyword int bar; | |
4389 | exit(1); | |
4390 | } | |
4391 | int | |
4392 | main () | |
4393 | { | |
4394 | ||
4395 | ; | |
4396 | return 0; | |
4397 | } | |
4398 | _ACEOF | |
4399 | rm -f conftest.$ac_objext | |
4400 | if { (ac_try="$ac_compile" | |
4401 | case "(($ac_try" in | |
4402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4403 | *) ac_try_echo=$ac_try;; | |
4404 | esac | |
4405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4406 | (eval "$ac_compile") 2>conftest.er1 | |
4407 | ac_status=$? | |
4408 | grep -v '^ *+' conftest.er1 >conftest.err | |
4409 | rm -f conftest.er1 | |
4410 | cat conftest.err >&5 | |
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4412 | (exit $ac_status); } && { | |
4413 | test -z "$ac_c_werror_flag" || | |
4414 | test ! -s conftest.err | |
4415 | } && test -s conftest.$ac_objext; then | |
4416 | ac_cv_tls=$ax_tls_keyword ; break | |
4417 | else | |
4418 | echo "$as_me: failed program was:" >&5 | |
4419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4420 | ||
4421 | ac_cv_tls=none | |
4422 | ||
4423 | fi | |
4424 | ||
4425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4426 | esac | |
4427 | done | |
4428 | ||
4429 | fi | |
4430 | ||
4431 | ||
4432 | if test "$ac_cv_tls" != "none"; then | |
4433 | ||
4434 | cat >>confdefs.h <<_ACEOF | |
4435 | #define TLS $ac_cv_tls | |
4436 | _ACEOF | |
4437 | ||
4438 | fi | |
4439 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 | |
4440 | echo "${ECHO_T}$ac_cv_tls" >&6; } | |
4441 | ||
4442 | fi | |
5610f992 TT |
4443 | # Check whether --enable-uuidd was given. |
4444 | if test "${enable_uuidd+set}" = set; then | |
4445 | enableval=$enable_uuidd; if test "$enableval" = "no" | |
4446 | then | |
4447 | echo "Not building uuidd" | |
4448 | UUIDD_CMT="#" | |
4449 | else | |
4450 | cat >>confdefs.h <<\_ACEOF | |
4451 | #define USE_UUIDD 1 | |
4452 | _ACEOF | |
4453 | ||
4454 | UUIDD_CMT="" | |
4455 | echo "Building uuidd" | |
4456 | fi | |
4457 | ||
4458 | else | |
4459 | cat >>confdefs.h <<\_ACEOF | |
4460 | #define USE_UUIDD 1 | |
4461 | _ACEOF | |
4462 | ||
4463 | UUIDD_CMT="" | |
4464 | echo "Building uuidd by default" | |
4465 | ||
4466 | fi | |
4467 | ||
4468 | ||
cdf186e4 TT |
4469 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
4470 | ||
b0cacab0 | 4471 | GETTEXT_PACKAGE=e2fsprogs |
a64c9c13 TT |
4472 | PACKAGE=e2fsprogs |
4473 | VERSION="$E2FSPROGS_VERSION" | |
b0cacab0 TT |
4474 | VERSION=0.14.1 |
4475 | cat >>confdefs.h <<_ACEOF | |
a64c9c13 | 4476 | #define PACKAGE "$PACKAGE" |
b0cacab0 | 4477 | _ACEOF |
a64c9c13 | 4478 | |
b0cacab0 | 4479 | cat >>confdefs.h <<_ACEOF |
a64c9c13 | 4480 | #define VERSION "$VERSION" |
b0cacab0 | 4481 | _ACEOF |
93636bde TT |
4482 | |
4483 | ||
93636bde | 4484 | |
93636bde TT |
4485 | |
4486 | ||
e1052144 TT |
4487 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4488 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4489 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4490 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 | 4491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a64c9c13 | 4492 | else |
b0cacab0 | 4493 | cat >conftest.make <<\_ACEOF |
e1052144 | 4494 | SHELL = /bin/sh |
a64c9c13 | 4495 | all: |
e1052144 | 4496 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b0cacab0 | 4497 | _ACEOF |
a64c9c13 | 4498 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e1052144 TT |
4499 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4500 | *@@@%%%=?*=@@@%%%*) | |
4501 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4502 | *) | |
4503 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4504 | esac | |
b0cacab0 | 4505 | rm -f conftest.make |
a64c9c13 | 4506 | fi |
e1052144 TT |
4507 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4508 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4509 | echo "${ECHO_T}yes" >&6; } | |
a64c9c13 TT |
4510 | SET_MAKE= |
4511 | else | |
e1052144 TT |
4512 | { echo "$as_me:$LINENO: result: no" >&5 |
4513 | echo "${ECHO_T}no" >&6; } | |
a64c9c13 TT |
4514 | SET_MAKE="MAKE=${MAKE-make}" |
4515 | fi | |
4516 | ||
a04eba3f TT |
4517 | # Find a good install program. We prefer a C program (faster), |
4518 | # so one script is as good as another. But avoid the broken or | |
4519 | # incompatible versions: | |
4520 | # SysV /etc/install, /usr/sbin/install | |
4521 | # SunOS /usr/etc/install | |
4522 | # IRIX /sbin/install | |
4523 | # AIX /bin/install | |
b0cacab0 | 4524 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a04eba3f TT |
4525 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4526 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4527 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 4528 | # OS/2's system install, which has a completely different semantic |
a04eba3f | 4529 | # ./install, which can be erroneously created by make from ./install.sh. |
e1052144 TT |
4530 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4531 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
a04eba3f | 4532 | if test -z "$INSTALL"; then |
b0cacab0 TT |
4533 | if test "${ac_cv_path_install+set}" = set; then |
4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a04eba3f | 4535 | else |
b0cacab0 TT |
4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4537 | for as_dir in $PATH | |
4538 | do | |
4539 | IFS=$as_save_IFS | |
4540 | test -z "$as_dir" && as_dir=. | |
4541 | # Account for people who put trailing slashes in PATH elements. | |
4542 | case $as_dir/ in | |
4543 | ./ | .// | /cC/* | \ | |
4544 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4545 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4546 | /usr/ucb/* ) ;; | |
4547 | *) | |
4548 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4549 | # Don't use installbsd from OSF since it installs stuff as root | |
4550 | # by default. | |
4551 | for ac_prog in ginstall scoinst install; do | |
4552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 4553 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a04eba3f | 4554 | if test $ac_prog = install && |
b0cacab0 | 4555 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a04eba3f TT |
4556 | # AIX install. It has an incompatible calling convention. |
4557 | : | |
b0cacab0 TT |
4558 | elif test $ac_prog = install && |
4559 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4560 | # program-specific install script used by HP pwplus--don't use. | |
4561 | : | |
a04eba3f | 4562 | else |
b0cacab0 TT |
4563 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4564 | break 3 | |
a04eba3f TT |
4565 | fi |
4566 | fi | |
4567 | done | |
b0cacab0 TT |
4568 | done |
4569 | ;; | |
4570 | esac | |
4571 | done | |
e1052144 | 4572 | IFS=$as_save_IFS |
b0cacab0 | 4573 | |
a04eba3f TT |
4574 | |
4575 | fi | |
4576 | if test "${ac_cv_path_install+set}" = set; then | |
b0cacab0 | 4577 | INSTALL=$ac_cv_path_install |
a04eba3f | 4578 | else |
e1052144 TT |
4579 | # As a last resort, use the slow shell script. Don't cache a |
4580 | # value for INSTALL within a source directory, because that will | |
a04eba3f | 4581 | # break other packages using the cache if that directory is |
e1052144 | 4582 | # removed, or if the value is a relative name. |
b0cacab0 | 4583 | INSTALL=$ac_install_sh |
a04eba3f TT |
4584 | fi |
4585 | fi | |
e1052144 TT |
4586 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4587 | echo "${ECHO_T}$INSTALL" >&6; } | |
a04eba3f TT |
4588 | |
4589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4590 | # It thinks the first close brace ends the variable substitution. | |
4591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4592 | ||
b0cacab0 | 4593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a04eba3f TT |
4594 | |
4595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4596 | ||
93636bde | 4597 | |
a04eba3f TT |
4598 | MKINSTALLDIRS= |
4599 | if test -n "$ac_aux_dir"; then | |
b0cacab0 TT |
4600 | case "$ac_aux_dir" in |
4601 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
4602 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
4603 | esac | |
a04eba3f TT |
4604 | fi |
4605 | if test -z "$MKINSTALLDIRS"; then | |
4606 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
4607 | fi | |
a04eba3f | 4608 | |
a64c9c13 | 4609 | |
93636bde | 4610 | |
e1052144 TT |
4611 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4612 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } | |
4613 | # Check whether --enable-nls was given. | |
b0cacab0 | 4614 | if test "${enable_nls+set}" = set; then |
e1052144 | 4615 | enableval=$enable_nls; USE_NLS=$enableval |
a04eba3f | 4616 | else |
b0cacab0 | 4617 | USE_NLS=yes |
e1052144 TT |
4618 | fi |
4619 | ||
4620 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4621 | echo "${ECHO_T}$USE_NLS" >&6; } | |
b0cacab0 TT |
4622 | |
4623 | ||
a64c9c13 | 4624 | |
b0cacab0 TT |
4625 | |
4626 | ||
4627 | ||
4628 | # Prepare PATH_SEPARATOR. | |
4629 | # The user is always right. | |
4630 | if test "${PATH_SEPARATOR+set}" != set; then | |
4631 | echo "#! /bin/sh" >conf$$.sh | |
4632 | echo "exit 0" >>conf$$.sh | |
4633 | chmod +x conf$$.sh | |
4634 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4635 | PATH_SEPARATOR=';' | |
4636 | else | |
4637 | PATH_SEPARATOR=: | |
4638 | fi | |
4639 | rm -f conf$$.sh | |
93636bde | 4640 | fi |
b0cacab0 TT |
4641 | |
4642 | # Find out how to test for executable files. Don't use a zero-byte file, | |
4643 | # as systems may use methods other than mode bits to determine executability. | |
4644 | cat >conf$$.file <<_ASEOF | |
4645 | #! /bin/sh | |
4646 | exit 0 | |
4647 | _ASEOF | |
4648 | chmod +x conf$$.file | |
4649 | if test -x conf$$.file >/dev/null 2>&1; then | |
4650 | ac_executable_p="test -x" | |
a64c9c13 | 4651 | else |
b0cacab0 | 4652 | ac_executable_p="test -f" |
a64c9c13 | 4653 | fi |
b0cacab0 | 4654 | rm -f conf$$.file |
a64c9c13 | 4655 | |
b0cacab0 TT |
4656 | # Extract the first word of "msgfmt", so it can be a program name with args. |
4657 | set dummy msgfmt; ac_word=$2 | |
e1052144 TT |
4658 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4660 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 4662 | else |
b0cacab0 TT |
4663 | case "$MSGFMT" in |
4664 | [\\/]* | ?:[\\/]*) | |
4665 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4666 | ;; | |
4667 | *) | |
4668 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
4669 | for ac_dir in $PATH; do | |
4670 | IFS="$ac_save_IFS" | |
4671 | test -z "$ac_dir" && ac_dir=. | |
4672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4673 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
4674 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
4675 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
4676 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
4677 | break 2 | |
4678 | fi | |
4679 | fi | |
4680 | done | |
4681 | done | |
4682 | IFS="$ac_save_IFS" | |
4683 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
4684 | ;; | |
4685 | esac | |
4686 | fi | |
4687 | MSGFMT="$ac_cv_path_MSGFMT" | |
4688 | if test "$MSGFMT" != ":"; then | |
e1052144 TT |
4689 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
4690 | echo "${ECHO_T}$MSGFMT" >&6; } | |
07a0db15 | 4691 | else |
e1052144 TT |
4692 | { echo "$as_me:$LINENO: result: no" >&5 |
4693 | echo "${ECHO_T}no" >&6; } | |
07a0db15 | 4694 | fi |
07a0db15 | 4695 | |
b0cacab0 TT |
4696 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
4697 | set dummy gmsgfmt; ac_word=$2 | |
e1052144 TT |
4698 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4700 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4702 | else |
b0cacab0 TT |
4703 | case $GMSGFMT in |
4704 | [\\/]* | ?:[\\/]*) | |
4705 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4706 | ;; | |
4707 | *) | |
4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4709 | for as_dir in $PATH | |
4710 | do | |
4711 | IFS=$as_save_IFS | |
4712 | test -z "$as_dir" && as_dir=. | |
4713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 4714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
4715 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
4716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4717 | break 2 | |
4718 | fi | |
4719 | done | |
4720 | done | |
e1052144 | 4721 | IFS=$as_save_IFS |
a64c9c13 | 4722 | |
b0cacab0 TT |
4723 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
4724 | ;; | |
4725 | esac | |
a64c9c13 | 4726 | fi |
b0cacab0 | 4727 | GMSGFMT=$ac_cv_path_GMSGFMT |
b0cacab0 | 4728 | if test -n "$GMSGFMT"; then |
e1052144 TT |
4729 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
4730 | echo "${ECHO_T}$GMSGFMT" >&6; } | |
a64c9c13 | 4731 | else |
e1052144 TT |
4732 | { echo "$as_me:$LINENO: result: no" >&5 |
4733 | echo "${ECHO_T}no" >&6; } | |
a64c9c13 | 4734 | fi |
a64c9c13 | 4735 | |
a64c9c13 | 4736 | |
93636bde | 4737 | |
e1052144 | 4738 | |
b0cacab0 TT |
4739 | # Prepare PATH_SEPARATOR. |
4740 | # The user is always right. | |
4741 | if test "${PATH_SEPARATOR+set}" != set; then | |
4742 | echo "#! /bin/sh" >conf$$.sh | |
4743 | echo "exit 0" >>conf$$.sh | |
4744 | chmod +x conf$$.sh | |
4745 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4746 | PATH_SEPARATOR=';' | |
4747 | else | |
4748 | PATH_SEPARATOR=: | |
4749 | fi | |
4750 | rm -f conf$$.sh | |
a64c9c13 | 4751 | fi |
93636bde | 4752 | |
b0cacab0 TT |
4753 | # Find out how to test for executable files. Don't use a zero-byte file, |
4754 | # as systems may use methods other than mode bits to determine executability. | |
4755 | cat >conf$$.file <<_ASEOF | |
4756 | #! /bin/sh | |
4757 | exit 0 | |
4758 | _ASEOF | |
4759 | chmod +x conf$$.file | |
4760 | if test -x conf$$.file >/dev/null 2>&1; then | |
4761 | ac_executable_p="test -x" | |
4762 | else | |
4763 | ac_executable_p="test -f" | |
a64c9c13 | 4764 | fi |
b0cacab0 | 4765 | rm -f conf$$.file |
93636bde | 4766 | |
b0cacab0 TT |
4767 | # Extract the first word of "xgettext", so it can be a program name with args. |
4768 | set dummy xgettext; ac_word=$2 | |
e1052144 TT |
4769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4771 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
4772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4773 | else |
b0cacab0 TT |
4774 | case "$XGETTEXT" in |
4775 | [\\/]* | ?:[\\/]*) | |
4776 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4777 | ;; | |
4778 | *) | |
4779 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
4780 | for ac_dir in $PATH; do | |
4781 | IFS="$ac_save_IFS" | |
4782 | test -z "$ac_dir" && ac_dir=. | |
4783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4784 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
4785 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
4786 | (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 | |
4787 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
4788 | break 2 | |
4789 | fi | |
4790 | fi | |
4791 | done | |
4792 | done | |
4793 | IFS="$ac_save_IFS" | |
4794 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4795 | ;; | |
4796 | esac | |
a64c9c13 | 4797 | fi |
b0cacab0 TT |
4798 | XGETTEXT="$ac_cv_path_XGETTEXT" |
4799 | if test "$XGETTEXT" != ":"; then | |
e1052144 TT |
4800 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
4801 | echo "${ECHO_T}$XGETTEXT" >&6; } | |
b0cacab0 | 4802 | else |
e1052144 TT |
4803 | { echo "$as_me:$LINENO: result: no" >&5 |
4804 | echo "${ECHO_T}no" >&6; } | |
a64c9c13 | 4805 | fi |
07a0db15 | 4806 | |
b0cacab0 | 4807 | rm -f messages.po |
a64c9c13 | 4808 | |
a64c9c13 | 4809 | |
b0cacab0 TT |
4810 | # Prepare PATH_SEPARATOR. |
4811 | # The user is always right. | |
4812 | if test "${PATH_SEPARATOR+set}" != set; then | |
4813 | echo "#! /bin/sh" >conf$$.sh | |
4814 | echo "exit 0" >>conf$$.sh | |
4815 | chmod +x conf$$.sh | |
4816 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4817 | PATH_SEPARATOR=';' | |
4818 | else | |
4819 | PATH_SEPARATOR=: | |
4820 | fi | |
4821 | rm -f conf$$.sh | |
a64c9c13 | 4822 | fi |
a64c9c13 | 4823 | |
b0cacab0 TT |
4824 | # Find out how to test for executable files. Don't use a zero-byte file, |
4825 | # as systems may use methods other than mode bits to determine executability. | |
4826 | cat >conf$$.file <<_ASEOF | |
4827 | #! /bin/sh | |
4828 | exit 0 | |
4829 | _ASEOF | |
4830 | chmod +x conf$$.file | |
4831 | if test -x conf$$.file >/dev/null 2>&1; then | |
4832 | ac_executable_p="test -x" | |
4833 | else | |
4834 | ac_executable_p="test -f" | |
a64c9c13 | 4835 | fi |
b0cacab0 | 4836 | rm -f conf$$.file |
93636bde | 4837 | |
b0cacab0 TT |
4838 | # Extract the first word of "msgmerge", so it can be a program name with args. |
4839 | set dummy msgmerge; ac_word=$2 | |
e1052144 TT |
4840 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4842 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 4844 | else |
b0cacab0 TT |
4845 | case "$MSGMERGE" in |
4846 | [\\/]* | ?:[\\/]*) | |
4847 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
4848 | ;; | |
4849 | *) | |
4850 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
4851 | for ac_dir in $PATH; do | |
4852 | IFS="$ac_save_IFS" | |
4853 | test -z "$ac_dir" && ac_dir=. | |
4854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4855 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
4856 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
4857 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
4858 | break 2 | |
4859 | fi | |
4860 | fi | |
4861 | done | |
4862 | done | |
4863 | IFS="$ac_save_IFS" | |
4864 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
4865 | ;; | |
4866 | esac | |
4867 | fi | |
4868 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
4869 | if test "$MSGMERGE" != ":"; then | |
e1052144 TT |
4870 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
4871 | echo "${ECHO_T}$MSGMERGE" >&6; } | |
a64c9c13 | 4872 | else |
e1052144 TT |
4873 | { echo "$as_me:$LINENO: result: no" >&5 |
4874 | echo "${ECHO_T}no" >&6; } | |
a64c9c13 | 4875 | fi |
07a0db15 | 4876 | |
a64c9c13 | 4877 | |
b0cacab0 TT |
4878 | if test "$GMSGFMT" != ":"; then |
4879 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
4880 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
4881 | : ; | |
4882 | else | |
4883 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
e1052144 TT |
4884 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
4885 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
b0cacab0 TT |
4886 | GMSGFMT=":" |
4887 | fi | |
4888 | fi | |
4889 | ||
4890 | if test "$XGETTEXT" != ":"; then | |
4891 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
4892 | (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 | |
4893 | : ; | |
4894 | else | |
e1052144 TT |
4895 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
4896 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } | |
b0cacab0 TT |
4897 | XGETTEXT=":" |
4898 | fi | |
4899 | rm -f messages.po | |
4900 | fi | |
4901 | ||
e1052144 | 4902 | ac_config_commands="$ac_config_commands default-1" |
a64c9c13 | 4903 | |
b0cacab0 TT |
4904 | |
4905 | if test -n "$ac_tool_prefix"; then | |
4906 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4907 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
e1052144 TT |
4908 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4910 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 4912 | else |
b0cacab0 TT |
4913 | if test -n "$RANLIB"; then |
4914 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a64c9c13 | 4915 | else |
b0cacab0 TT |
4916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4917 | for as_dir in $PATH | |
4918 | do | |
4919 | IFS=$as_save_IFS | |
4920 | test -z "$as_dir" && as_dir=. | |
4921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 4922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
4923 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4925 | break 2 | |
4926 | fi | |
4927 | done | |
4928 | done | |
e1052144 | 4929 | IFS=$as_save_IFS |
07a0db15 | 4930 | |
93636bde | 4931 | fi |
b0cacab0 TT |
4932 | fi |
4933 | RANLIB=$ac_cv_prog_RANLIB | |
4934 | if test -n "$RANLIB"; then | |
e1052144 TT |
4935 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4936 | echo "${ECHO_T}$RANLIB" >&6; } | |
b0cacab0 | 4937 | else |
e1052144 TT |
4938 | { echo "$as_me:$LINENO: result: no" >&5 |
4939 | echo "${ECHO_T}no" >&6; } | |
b0cacab0 | 4940 | fi |
a64c9c13 | 4941 | |
e1052144 | 4942 | |
a64c9c13 | 4943 | fi |
b0cacab0 TT |
4944 | if test -z "$ac_cv_prog_RANLIB"; then |
4945 | ac_ct_RANLIB=$RANLIB | |
4946 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4947 | set dummy ranlib; ac_word=$2 | |
e1052144 TT |
4948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
4950 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4952 | else | |
4953 | if test -n "$ac_ct_RANLIB"; then | |
4954 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4955 | else | |
4956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4957 | for as_dir in $PATH | |
4958 | do | |
4959 | IFS=$as_save_IFS | |
4960 | test -z "$as_dir" && as_dir=. | |
4961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 4962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
4963 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4965 | break 2 | |
4966 | fi | |
4967 | done | |
4968 | done | |
e1052144 | 4969 | IFS=$as_save_IFS |
a64c9c13 | 4970 | |
93636bde | 4971 | fi |
b0cacab0 TT |
4972 | fi |
4973 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4974 | if test -n "$ac_ct_RANLIB"; then | |
e1052144 TT |
4975 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4976 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 4977 | else |
e1052144 TT |
4978 | { echo "$as_me:$LINENO: result: no" >&5 |
4979 | echo "${ECHO_T}no" >&6; } | |
b0cacab0 TT |
4980 | fi |
4981 | ||
e1052144 TT |
4982 | if test "x$ac_ct_RANLIB" = x; then |
4983 | RANLIB=":" | |
4984 | else | |
4985 | case $cross_compiling:$ac_tool_warned in | |
4986 | yes:) | |
4987 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4988 | whose name does not start with the host triplet. If you think this | |
4989 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4990 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4991 | whose name does not start with the host triplet. If you think this | |
4992 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4993 | ac_tool_warned=yes ;; | |
4994 | esac | |
4995 | RANLIB=$ac_ct_RANLIB | |
4996 | fi | |
b0cacab0 TT |
4997 | else |
4998 | RANLIB="$ac_cv_prog_RANLIB" | |
93636bde TT |
4999 | fi |
5000 | ||
a64c9c13 | 5001 | |
e1052144 TT |
5002 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
5003 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } | |
b0cacab0 TT |
5004 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5006 | else | |
5007 | ac_check_lib_save_LIBS=$LIBS | |
5008 | LIBS="-lcposix $LIBS" | |
5009 | cat >conftest.$ac_ext <<_ACEOF | |
5010 | /* confdefs.h. */ | |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
5015 | ||
e1052144 TT |
5016 | /* Override any GCC internal prototype to avoid an error. |
5017 | Use char because int might match the return type of a GCC | |
5018 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
5019 | #ifdef __cplusplus |
5020 | extern "C" | |
5021 | #endif | |
b0cacab0 TT |
5022 | char strerror (); |
5023 | int | |
5024 | main () | |
5025 | { | |
e1052144 | 5026 | return strerror (); |
b0cacab0 TT |
5027 | ; |
5028 | return 0; | |
5029 | } | |
5030 | _ACEOF | |
5031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
5032 | if { (ac_try="$ac_link" |
5033 | case "(($ac_try" in | |
5034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5035 | *) ac_try_echo=$ac_try;; | |
5036 | esac | |
5037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5038 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
5039 | ac_status=$? |
5040 | grep -v '^ *+' conftest.er1 >conftest.err | |
5041 | rm -f conftest.er1 | |
5042 | cat conftest.err >&5 | |
5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5044 | (exit $ac_status); } && { |
5045 | test -z "$ac_c_werror_flag" || | |
5046 | test ! -s conftest.err | |
5047 | } && test -s conftest$ac_exeext && | |
5048 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
5049 | ac_cv_lib_cposix_strerror=yes |
5050 | else | |
5051 | echo "$as_me: failed program was:" >&5 | |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5053 | ||
e1052144 | 5054 | ac_cv_lib_cposix_strerror=no |
b0cacab0 | 5055 | fi |
e1052144 | 5056 | |
29a5deed | 5057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
5058 | conftest$ac_exeext conftest.$ac_ext |
5059 | LIBS=$ac_check_lib_save_LIBS | |
5060 | fi | |
e1052144 TT |
5061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
5062 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } | |
b0cacab0 TT |
5063 | if test $ac_cv_lib_cposix_strerror = yes; then |
5064 | LIBS="$LIBS -lcposix" | |
a64c9c13 TT |
5065 | fi |
5066 | ||
b0cacab0 TT |
5067 | |
5068 | ||
e1052144 TT |
5069 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5070 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
b0cacab0 TT |
5071 | if test "${ac_cv_c_const+set}" = set; then |
5072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 5073 | else |
b0cacab0 TT |
5074 | cat >conftest.$ac_ext <<_ACEOF |
5075 | /* confdefs.h. */ | |
5076 | _ACEOF | |
5077 | cat confdefs.h >>conftest.$ac_ext | |
5078 | cat >>conftest.$ac_ext <<_ACEOF | |
5079 | /* end confdefs.h. */ | |
93636bde | 5080 | |
b0cacab0 TT |
5081 | int |
5082 | main () | |
5083 | { | |
5084 | /* FIXME: Include the comments suggested by Paul. */ | |
5085 | #ifndef __cplusplus | |
5086 | /* Ultrix mips cc rejects this. */ | |
5087 | typedef int charset[2]; | |
29a5deed | 5088 | const charset cs; |
b0cacab0 | 5089 | /* SunOS 4.1.1 cc rejects this. */ |
29a5deed TT |
5090 | char const *const *pcpcc; |
5091 | char **ppc; | |
b0cacab0 TT |
5092 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5093 | struct point {int x, y;}; | |
5094 | static struct point const zero = {0,0}; | |
5095 | /* AIX XL C 1.02.0.0 rejects this. | |
5096 | It does not let you subtract one const X* pointer from another in | |
5097 | an arm of an if-expression whose if-part is not a constant | |
5098 | expression */ | |
5099 | const char *g = "string"; | |
29a5deed | 5100 | pcpcc = &g + (g ? g-g : 0); |
b0cacab0 | 5101 | /* HPUX 7.0 cc rejects these. */ |
29a5deed TT |
5102 | ++pcpcc; |
5103 | ppc = (char**) pcpcc; | |
5104 | pcpcc = (char const *const *) ppc; | |
b0cacab0 TT |
5105 | { /* SCO 3.2v4 cc rejects this. */ |
5106 | char *t; | |
5107 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5108 | ||
5109 | *t++ = 0; | |
e1052144 | 5110 | if (s) return 0; |
b0cacab0 TT |
5111 | } |
5112 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5113 | int x[] = {25, 17}; | |
5114 | const int *foo = &x[0]; | |
5115 | ++foo; | |
5116 | } | |
5117 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5118 | typedef const int *iptr; | |
5119 | iptr p = 0; | |
5120 | ++p; | |
5121 | } | |
5122 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5123 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5124 | struct s { int j; const int *ap[3]; }; | |
5125 | struct s *b; b->j = 5; | |
5126 | } | |
5127 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5128 | const int foo = 10; | |
e1052144 | 5129 | if (!foo) return 0; |
b0cacab0 | 5130 | } |
29a5deed | 5131 | return !cs[0] && !zero.x; |
a64c9c13 TT |
5132 | #endif |
5133 | ||
b0cacab0 TT |
5134 | ; |
5135 | return 0; | |
5136 | } | |
5137 | _ACEOF | |
5138 | rm -f conftest.$ac_objext | |
e1052144 TT |
5139 | if { (ac_try="$ac_compile" |
5140 | case "(($ac_try" in | |
5141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5142 | *) ac_try_echo=$ac_try;; | |
5143 | esac | |
5144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5145 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5146 | ac_status=$? |
5147 | grep -v '^ *+' conftest.er1 >conftest.err | |
5148 | rm -f conftest.er1 | |
5149 | cat conftest.err >&5 | |
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5151 | (exit $ac_status); } && { |
5152 | test -z "$ac_c_werror_flag" || | |
5153 | test ! -s conftest.err | |
5154 | } && test -s conftest.$ac_objext; then | |
b0cacab0 | 5155 | ac_cv_c_const=yes |
a64c9c13 | 5156 | else |
b0cacab0 TT |
5157 | echo "$as_me: failed program was:" >&5 |
5158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5159 | ||
e1052144 | 5160 | ac_cv_c_const=no |
a64c9c13 | 5161 | fi |
e1052144 TT |
5162 | |
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 5164 | fi |
e1052144 TT |
5165 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5166 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
b0cacab0 | 5167 | if test $ac_cv_c_const = no; then |
a64c9c13 | 5168 | |
b0cacab0 TT |
5169 | cat >>confdefs.h <<\_ACEOF |
5170 | #define const | |
5171 | _ACEOF | |
a64c9c13 | 5172 | |
93636bde | 5173 | fi |
07a0db15 | 5174 | |
a64c9c13 | 5175 | |
e1052144 TT |
5176 | { echo "$as_me:$LINENO: checking for signed" >&5 |
5177 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } | |
b0cacab0 TT |
5178 | if test "${bh_cv_c_signed+set}" = set; then |
5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5180 | else | |
5181 | cat >conftest.$ac_ext <<_ACEOF | |
5182 | /* confdefs.h. */ | |
5183 | _ACEOF | |
5184 | cat confdefs.h >>conftest.$ac_ext | |
5185 | cat >>conftest.$ac_ext <<_ACEOF | |
5186 | /* end confdefs.h. */ | |
5187 | ||
5188 | int | |
5189 | main () | |
5190 | { | |
5191 | signed char x; | |
5192 | ; | |
5193 | return 0; | |
5194 | } | |
5195 | _ACEOF | |
5196 | rm -f conftest.$ac_objext | |
e1052144 TT |
5197 | if { (ac_try="$ac_compile" |
5198 | case "(($ac_try" in | |
5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5200 | *) ac_try_echo=$ac_try;; | |
5201 | esac | |
5202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5203 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5204 | ac_status=$? |
5205 | grep -v '^ *+' conftest.er1 >conftest.err | |
5206 | rm -f conftest.er1 | |
5207 | cat conftest.err >&5 | |
5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5209 | (exit $ac_status); } && { |
5210 | test -z "$ac_c_werror_flag" || | |
5211 | test ! -s conftest.err | |
5212 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5213 | bh_cv_c_signed=yes |
5214 | else | |
5215 | echo "$as_me: failed program was:" >&5 | |
5216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5217 | ||
e1052144 | 5218 | bh_cv_c_signed=no |
b0cacab0 | 5219 | fi |
e1052144 TT |
5220 | |
5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5222 | fi |
e1052144 TT |
5223 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
5224 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } | |
b0cacab0 TT |
5225 | if test $bh_cv_c_signed = no; then |
5226 | ||
5227 | cat >>confdefs.h <<\_ACEOF | |
5228 | #define signed | |
5229 | _ACEOF | |
93636bde | 5230 | |
b0cacab0 TT |
5231 | fi |
5232 | ||
e1052144 TT |
5233 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5234 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
b0cacab0 TT |
5235 | if test "${ac_cv_c_inline+set}" = set; then |
5236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 5237 | else |
b0cacab0 TT |
5238 | ac_cv_c_inline=no |
5239 | for ac_kw in inline __inline__ __inline; do | |
5240 | cat >conftest.$ac_ext <<_ACEOF | |
5241 | /* confdefs.h. */ | |
5242 | _ACEOF | |
5243 | cat confdefs.h >>conftest.$ac_ext | |
5244 | cat >>conftest.$ac_ext <<_ACEOF | |
5245 | /* end confdefs.h. */ | |
5246 | #ifndef __cplusplus | |
5247 | typedef int foo_t; | |
5248 | static $ac_kw foo_t static_foo () {return 0; } | |
5249 | $ac_kw foo_t foo () {return 0; } | |
a64c9c13 TT |
5250 | #endif |
5251 | ||
b0cacab0 TT |
5252 | _ACEOF |
5253 | rm -f conftest.$ac_objext | |
e1052144 TT |
5254 | if { (ac_try="$ac_compile" |
5255 | case "(($ac_try" in | |
5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5257 | *) ac_try_echo=$ac_try;; | |
5258 | esac | |
5259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5260 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5261 | ac_status=$? |
5262 | grep -v '^ *+' conftest.er1 >conftest.err | |
5263 | rm -f conftest.er1 | |
5264 | cat conftest.err >&5 | |
5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5266 | (exit $ac_status); } && { |
5267 | test -z "$ac_c_werror_flag" || | |
5268 | test ! -s conftest.err | |
5269 | } && test -s conftest.$ac_objext; then | |
e1052144 | 5270 | ac_cv_c_inline=$ac_kw |
a64c9c13 | 5271 | else |
b0cacab0 TT |
5272 | echo "$as_me: failed program was:" >&5 |
5273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a64c9c13 | 5274 | |
e1052144 | 5275 | |
a64c9c13 | 5276 | fi |
e1052144 TT |
5277 | |
5278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5279 | test "$ac_cv_c_inline" != no && break | |
b0cacab0 | 5280 | done |
93636bde | 5281 | |
b0cacab0 | 5282 | fi |
e1052144 TT |
5283 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5284 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
93636bde | 5285 | |
a64c9c13 | 5286 | |
b0cacab0 TT |
5287 | case $ac_cv_c_inline in |
5288 | inline | yes) ;; | |
5289 | *) | |
5290 | case $ac_cv_c_inline in | |
5291 | no) ac_val=;; | |
5292 | *) ac_val=$ac_cv_c_inline;; | |
5293 | esac | |
5294 | cat >>confdefs.h <<_ACEOF | |
5295 | #ifndef __cplusplus | |
5296 | #define inline $ac_val | |
a64c9c13 | 5297 | #endif |
b0cacab0 TT |
5298 | _ACEOF |
5299 | ;; | |
5300 | esac | |
a64c9c13 | 5301 | |
e1052144 TT |
5302 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5303 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
5304 | if test "${ac_cv_type_off_t+set}" = set; then |
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5306 | else | |
5307 | cat >conftest.$ac_ext <<_ACEOF | |
5308 | /* confdefs.h. */ | |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
5313 | $ac_includes_default | |
e1052144 | 5314 | typedef off_t ac__type_new_; |
b0cacab0 TT |
5315 | int |
5316 | main () | |
5317 | { | |
e1052144 | 5318 | if ((ac__type_new_ *) 0) |
b0cacab0 | 5319 | return 0; |
e1052144 | 5320 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
5321 | return 0; |
5322 | ; | |
5323 | return 0; | |
5324 | } | |
5325 | _ACEOF | |
5326 | rm -f conftest.$ac_objext | |
e1052144 TT |
5327 | if { (ac_try="$ac_compile" |
5328 | case "(($ac_try" in | |
5329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5330 | *) ac_try_echo=$ac_try;; | |
5331 | esac | |
5332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5333 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5334 | ac_status=$? |
5335 | grep -v '^ *+' conftest.er1 >conftest.err | |
5336 | rm -f conftest.er1 | |
5337 | cat conftest.err >&5 | |
5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5339 | (exit $ac_status); } && { |
5340 | test -z "$ac_c_werror_flag" || | |
5341 | test ! -s conftest.err | |
5342 | } && test -s conftest.$ac_objext; then | |
b0cacab0 | 5343 | ac_cv_type_off_t=yes |
93636bde | 5344 | else |
b0cacab0 TT |
5345 | echo "$as_me: failed program was:" >&5 |
5346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5347 | ||
e1052144 | 5348 | ac_cv_type_off_t=no |
93636bde | 5349 | fi |
e1052144 TT |
5350 | |
5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
93636bde | 5352 | fi |
e1052144 TT |
5353 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5354 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
b0cacab0 TT |
5355 | if test $ac_cv_type_off_t = yes; then |
5356 | : | |
93636bde | 5357 | else |
a64c9c13 | 5358 | |
b0cacab0 | 5359 | cat >>confdefs.h <<_ACEOF |
e1052144 | 5360 | #define off_t long int |
b0cacab0 TT |
5361 | _ACEOF |
5362 | ||
a64c9c13 TT |
5363 | fi |
5364 | ||
e1052144 TT |
5365 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5366 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
5367 | if test "${ac_cv_type_size_t+set}" = set; then |
5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 5369 | else |
b0cacab0 TT |
5370 | cat >conftest.$ac_ext <<_ACEOF |
5371 | /* confdefs.h. */ | |
5372 | _ACEOF | |
5373 | cat confdefs.h >>conftest.$ac_ext | |
5374 | cat >>conftest.$ac_ext <<_ACEOF | |
5375 | /* end confdefs.h. */ | |
5376 | $ac_includes_default | |
e1052144 | 5377 | typedef size_t ac__type_new_; |
b0cacab0 | 5378 | int |
a64c9c13 TT |
5379 | main () |
5380 | { | |
e1052144 | 5381 | if ((ac__type_new_ *) 0) |
b0cacab0 | 5382 | return 0; |
e1052144 | 5383 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
5384 | return 0; |
5385 | ; | |
5386 | return 0; | |
a64c9c13 | 5387 | } |
b0cacab0 TT |
5388 | _ACEOF |
5389 | rm -f conftest.$ac_objext | |
e1052144 TT |
5390 | if { (ac_try="$ac_compile" |
5391 | case "(($ac_try" in | |
5392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5393 | *) ac_try_echo=$ac_try;; | |
5394 | esac | |
5395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5396 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5397 | ac_status=$? |
5398 | grep -v '^ *+' conftest.er1 >conftest.err | |
5399 | rm -f conftest.er1 | |
5400 | cat conftest.err >&5 | |
5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5402 | (exit $ac_status); } && { |
5403 | test -z "$ac_c_werror_flag" || | |
5404 | test ! -s conftest.err | |
5405 | } && test -s conftest.$ac_objext; then | |
b0cacab0 | 5406 | ac_cv_type_size_t=yes |
a64c9c13 | 5407 | else |
b0cacab0 TT |
5408 | echo "$as_me: failed program was:" >&5 |
5409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5410 | ||
e1052144 | 5411 | ac_cv_type_size_t=no |
a64c9c13 | 5412 | fi |
e1052144 TT |
5413 | |
5414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a64c9c13 | 5415 | fi |
e1052144 TT |
5416 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5417 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
b0cacab0 TT |
5418 | if test $ac_cv_type_size_t = yes; then |
5419 | : | |
5420 | else | |
5421 | ||
5422 | cat >>confdefs.h <<_ACEOF | |
e1052144 | 5423 | #define size_t unsigned int |
b0cacab0 | 5424 | _ACEOF |
93636bde | 5425 | |
a64c9c13 TT |
5426 | fi |
5427 | ||
a64c9c13 | 5428 | |
e1052144 TT |
5429 | { echo "$as_me:$LINENO: checking for long long" >&5 |
5430 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
b0cacab0 TT |
5431 | if test "${ac_cv_type_long_long+set}" = set; then |
5432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5433 | else | |
5434 | cat >conftest.$ac_ext <<_ACEOF | |
5435 | /* confdefs.h. */ | |
5436 | _ACEOF | |
5437 | cat confdefs.h >>conftest.$ac_ext | |
5438 | cat >>conftest.$ac_ext <<_ACEOF | |
5439 | /* end confdefs.h. */ | |
5440 | long long ll = 1LL; int i = 63; | |
5441 | int | |
5442 | main () | |
5443 | { | |
5444 | long long llmax = (long long) -1; | |
5445 | return ll << i | ll >> i | llmax / ll | llmax % ll; | |
5446 | ; | |
5447 | return 0; | |
5448 | } | |
5449 | _ACEOF | |
5450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
5451 | if { (ac_try="$ac_link" |
5452 | case "(($ac_try" in | |
5453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5454 | *) ac_try_echo=$ac_try;; | |
5455 | esac | |
5456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5457 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
5458 | ac_status=$? |
5459 | grep -v '^ *+' conftest.er1 >conftest.err | |
5460 | rm -f conftest.er1 | |
5461 | cat conftest.err >&5 | |
5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5463 | (exit $ac_status); } && { |
5464 | test -z "$ac_c_werror_flag" || | |
5465 | test ! -s conftest.err | |
5466 | } && test -s conftest$ac_exeext && | |
5467 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
5468 | ac_cv_type_long_long=yes |
5469 | else | |
5470 | echo "$as_me: failed program was:" >&5 | |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5472 | ||
e1052144 | 5473 | ac_cv_type_long_long=no |
b0cacab0 | 5474 | fi |
e1052144 | 5475 | |
29a5deed | 5476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
5477 | conftest$ac_exeext conftest.$ac_ext |
5478 | fi | |
e1052144 TT |
5479 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
5480 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
b0cacab0 TT |
5481 | if test $ac_cv_type_long_long = yes; then |
5482 | ||
5483 | cat >>confdefs.h <<\_ACEOF | |
5484 | #define HAVE_LONG_LONG 1 | |
5485 | _ACEOF | |
a64c9c13 | 5486 | |
b0cacab0 TT |
5487 | fi |
5488 | ||
5489 | ||
e1052144 TT |
5490 | { echo "$as_me:$LINENO: checking for long double" >&5 |
5491 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | |
b0cacab0 TT |
5492 | if test "${gt_cv_c_long_double+set}" = set; then |
5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 5494 | else |
b0cacab0 TT |
5495 | if test "$GCC" = yes; then |
5496 | gt_cv_c_long_double=yes | |
5497 | else | |
5498 | cat >conftest.$ac_ext <<_ACEOF | |
5499 | /* confdefs.h. */ | |
5500 | _ACEOF | |
5501 | cat confdefs.h >>conftest.$ac_ext | |
5502 | cat >>conftest.$ac_ext <<_ACEOF | |
5503 | /* end confdefs.h. */ | |
5504 | ||
5505 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
5506 | long double foo = 0.0; | |
5507 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
5508 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; | |
a64c9c13 | 5509 | |
b0cacab0 TT |
5510 | int |
5511 | main () | |
5512 | { | |
93636bde | 5513 | |
b0cacab0 TT |
5514 | ; |
5515 | return 0; | |
5516 | } | |
5517 | _ACEOF | |
5518 | rm -f conftest.$ac_objext | |
e1052144 TT |
5519 | if { (ac_try="$ac_compile" |
5520 | case "(($ac_try" in | |
5521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5522 | *) ac_try_echo=$ac_try;; | |
5523 | esac | |
5524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5525 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5526 | ac_status=$? |
5527 | grep -v '^ *+' conftest.er1 >conftest.err | |
5528 | rm -f conftest.er1 | |
5529 | cat conftest.err >&5 | |
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5531 | (exit $ac_status); } && { |
5532 | test -z "$ac_c_werror_flag" || | |
5533 | test ! -s conftest.err | |
5534 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5535 | gt_cv_c_long_double=yes |
5536 | else | |
5537 | echo "$as_me: failed program was:" >&5 | |
5538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5539 | ||
e1052144 | 5540 | gt_cv_c_long_double=no |
b0cacab0 | 5541 | fi |
e1052144 TT |
5542 | |
5543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
5544 | fi |
5545 | fi | |
e1052144 TT |
5546 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
5547 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } | |
b0cacab0 TT |
5548 | if test $gt_cv_c_long_double = yes; then |
5549 | ||
5550 | cat >>confdefs.h <<\_ACEOF | |
5551 | #define HAVE_LONG_DOUBLE 1 | |
5552 | _ACEOF | |
a64c9c13 | 5553 | |
b0cacab0 | 5554 | fi |
a64c9c13 | 5555 | |
a64c9c13 | 5556 | |
e1052144 TT |
5557 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
5558 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
5559 | if test "${gt_cv_c_wchar_t+set}" = set; then |
5560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 5561 | else |
b0cacab0 TT |
5562 | cat >conftest.$ac_ext <<_ACEOF |
5563 | /* confdefs.h. */ | |
5564 | _ACEOF | |
5565 | cat confdefs.h >>conftest.$ac_ext | |
5566 | cat >>conftest.$ac_ext <<_ACEOF | |
5567 | /* end confdefs.h. */ | |
5568 | #include <stddef.h> | |
5569 | wchar_t foo = (wchar_t)'\0'; | |
5570 | int | |
5571 | main () | |
5572 | { | |
a64c9c13 | 5573 | |
b0cacab0 TT |
5574 | ; |
5575 | return 0; | |
5576 | } | |
5577 | _ACEOF | |
5578 | rm -f conftest.$ac_objext | |
e1052144 TT |
5579 | if { (ac_try="$ac_compile" |
5580 | case "(($ac_try" in | |
5581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5582 | *) ac_try_echo=$ac_try;; | |
5583 | esac | |
5584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5585 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5586 | ac_status=$? |
5587 | grep -v '^ *+' conftest.er1 >conftest.err | |
5588 | rm -f conftest.er1 | |
5589 | cat conftest.err >&5 | |
5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5591 | (exit $ac_status); } && { |
5592 | test -z "$ac_c_werror_flag" || | |
5593 | test ! -s conftest.err | |
5594 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5595 | gt_cv_c_wchar_t=yes |
5596 | else | |
5597 | echo "$as_me: failed program was:" >&5 | |
5598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5599 | ||
e1052144 | 5600 | gt_cv_c_wchar_t=no |
b0cacab0 | 5601 | fi |
e1052144 TT |
5602 | |
5603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5604 | fi |
e1052144 TT |
5605 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
5606 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } | |
b0cacab0 TT |
5607 | if test $gt_cv_c_wchar_t = yes; then |
5608 | ||
5609 | cat >>confdefs.h <<\_ACEOF | |
5610 | #define HAVE_WCHAR_T 1 | |
5611 | _ACEOF | |
5612 | ||
5613 | fi | |
5614 | ||
5615 | ||
e1052144 TT |
5616 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
5617 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
5618 | if test "${gt_cv_c_wint_t+set}" = set; then |
5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 5620 | else |
b0cacab0 TT |
5621 | cat >conftest.$ac_ext <<_ACEOF |
5622 | /* confdefs.h. */ | |
5623 | _ACEOF | |
5624 | cat confdefs.h >>conftest.$ac_ext | |
5625 | cat >>conftest.$ac_ext <<_ACEOF | |
5626 | /* end confdefs.h. */ | |
5627 | #include <wchar.h> | |
5628 | wint_t foo = (wchar_t)'\0'; | |
5629 | int | |
5630 | main () | |
5631 | { | |
93636bde | 5632 | |
b0cacab0 TT |
5633 | ; |
5634 | return 0; | |
5635 | } | |
5636 | _ACEOF | |
5637 | rm -f conftest.$ac_objext | |
e1052144 TT |
5638 | if { (ac_try="$ac_compile" |
5639 | case "(($ac_try" in | |
5640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5641 | *) ac_try_echo=$ac_try;; | |
5642 | esac | |
5643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5644 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5645 | ac_status=$? |
5646 | grep -v '^ *+' conftest.er1 >conftest.err | |
5647 | rm -f conftest.er1 | |
5648 | cat conftest.err >&5 | |
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5650 | (exit $ac_status); } && { |
5651 | test -z "$ac_c_werror_flag" || | |
5652 | test ! -s conftest.err | |
5653 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5654 | gt_cv_c_wint_t=yes |
5655 | else | |
5656 | echo "$as_me: failed program was:" >&5 | |
5657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5658 | ||
e1052144 | 5659 | gt_cv_c_wint_t=no |
b0cacab0 | 5660 | fi |
e1052144 TT |
5661 | |
5662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5663 | fi |
e1052144 TT |
5664 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
5665 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } | |
b0cacab0 TT |
5666 | if test $gt_cv_c_wint_t = yes; then |
5667 | ||
5668 | cat >>confdefs.h <<\_ACEOF | |
5669 | #define HAVE_WINT_T 1 | |
5670 | _ACEOF | |
a64c9c13 | 5671 | |
b0cacab0 TT |
5672 | fi |
5673 | ||
5674 | ||
e1052144 TT |
5675 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
5676 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
5677 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
5678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5679 | else | |
5680 | cat >conftest.$ac_ext <<_ACEOF | |
5681 | /* confdefs.h. */ | |
5682 | _ACEOF | |
5683 | cat confdefs.h >>conftest.$ac_ext | |
5684 | cat >>conftest.$ac_ext <<_ACEOF | |
5685 | /* end confdefs.h. */ | |
93636bde | 5686 | #include <sys/types.h> |
b0cacab0 TT |
5687 | #include <inttypes.h> |
5688 | int | |
5689 | main () | |
5690 | { | |
5691 | uintmax_t i = (uintmax_t) -1; | |
5692 | ; | |
5693 | return 0; | |
5694 | } | |
5695 | _ACEOF | |
5696 | rm -f conftest.$ac_objext | |
e1052144 TT |
5697 | if { (ac_try="$ac_compile" |
5698 | case "(($ac_try" in | |
5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5700 | *) ac_try_echo=$ac_try;; | |
5701 | esac | |
5702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5703 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5704 | ac_status=$? |
5705 | grep -v '^ *+' conftest.er1 >conftest.err | |
5706 | rm -f conftest.er1 | |
5707 | cat conftest.err >&5 | |
5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5709 | (exit $ac_status); } && { |
5710 | test -z "$ac_c_werror_flag" || | |
5711 | test ! -s conftest.err | |
5712 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5713 | jm_ac_cv_header_inttypes_h=yes |
5714 | else | |
5715 | echo "$as_me: failed program was:" >&5 | |
5716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a64c9c13 | 5717 | |
e1052144 | 5718 | jm_ac_cv_header_inttypes_h=no |
b0cacab0 | 5719 | fi |
e1052144 TT |
5720 | |
5721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5722 | fi |
e1052144 TT |
5723 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
5724 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } | |
b0cacab0 | 5725 | if test $jm_ac_cv_header_inttypes_h = yes; then |
93636bde | 5726 | |
b0cacab0 TT |
5727 | cat >>confdefs.h <<_ACEOF |
5728 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
5729 | _ACEOF | |
a64c9c13 | 5730 | |
b0cacab0 | 5731 | fi |
a64c9c13 | 5732 | |
a64c9c13 | 5733 | |
e1052144 TT |
5734 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
5735 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
5736 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5738 | else | |
5739 | cat >conftest.$ac_ext <<_ACEOF | |
5740 | /* confdefs.h. */ | |
5741 | _ACEOF | |
5742 | cat confdefs.h >>conftest.$ac_ext | |
5743 | cat >>conftest.$ac_ext <<_ACEOF | |
5744 | /* end confdefs.h. */ | |
5745 | #include <sys/types.h> | |
5746 | #include <stdint.h> | |
5747 | int | |
5748 | main () | |
5749 | { | |
5750 | uintmax_t i = (uintmax_t) -1; | |
5751 | ; | |
5752 | return 0; | |
5753 | } | |
5754 | _ACEOF | |
5755 | rm -f conftest.$ac_objext | |
e1052144 TT |
5756 | if { (ac_try="$ac_compile" |
5757 | case "(($ac_try" in | |
5758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5759 | *) ac_try_echo=$ac_try;; | |
5760 | esac | |
5761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5762 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5763 | ac_status=$? |
5764 | grep -v '^ *+' conftest.er1 >conftest.err | |
5765 | rm -f conftest.er1 | |
5766 | cat conftest.err >&5 | |
5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5768 | (exit $ac_status); } && { |
5769 | test -z "$ac_c_werror_flag" || | |
5770 | test ! -s conftest.err | |
5771 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5772 | jm_ac_cv_header_stdint_h=yes |
5773 | else | |
5774 | echo "$as_me: failed program was:" >&5 | |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5776 | ||
e1052144 | 5777 | jm_ac_cv_header_stdint_h=no |
b0cacab0 | 5778 | fi |
e1052144 TT |
5779 | |
5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5781 | fi |
e1052144 TT |
5782 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
5783 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } | |
b0cacab0 TT |
5784 | if test $jm_ac_cv_header_stdint_h = yes; then |
5785 | ||
5786 | cat >>confdefs.h <<_ACEOF | |
5787 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
5788 | _ACEOF | |
5789 | ||
5790 | fi | |
5791 | ||
5792 | ||
5793 | ||
5794 | ||
e1052144 TT |
5795 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
5796 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
5797 | if test "${gt_cv_c_intmax_t+set}" = set; then |
5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5799 | else | |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
5801 | /* confdefs.h. */ | |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
5806 | ||
5807 | #include <stddef.h> | |
5808 | #include <stdlib.h> | |
5809 | #if HAVE_STDINT_H_WITH_UINTMAX | |
5810 | #include <stdint.h> | |
5811 | #endif | |
5812 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
5813 | #include <inttypes.h> | |
93636bde TT |
5814 | #endif |
5815 | ||
a64c9c13 | 5816 | int |
b0cacab0 TT |
5817 | main () |
5818 | { | |
5819 | intmax_t x = -1; | |
5820 | ; | |
5821 | return 0; | |
a64c9c13 | 5822 | } |
b0cacab0 TT |
5823 | _ACEOF |
5824 | rm -f conftest.$ac_objext | |
e1052144 TT |
5825 | if { (ac_try="$ac_compile" |
5826 | case "(($ac_try" in | |
5827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5828 | *) ac_try_echo=$ac_try;; | |
5829 | esac | |
5830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5831 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
5832 | ac_status=$? |
5833 | grep -v '^ *+' conftest.er1 >conftest.err | |
5834 | rm -f conftest.er1 | |
5835 | cat conftest.err >&5 | |
5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5837 | (exit $ac_status); } && { |
5838 | test -z "$ac_c_werror_flag" || | |
5839 | test ! -s conftest.err | |
5840 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
5841 | gt_cv_c_intmax_t=yes |
5842 | else | |
5843 | echo "$as_me: failed program was:" >&5 | |
5844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5845 | ||
e1052144 | 5846 | gt_cv_c_intmax_t=no |
b0cacab0 | 5847 | fi |
e1052144 TT |
5848 | |
5849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 5850 | fi |
e1052144 TT |
5851 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
5852 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } | |
b0cacab0 TT |
5853 | if test $gt_cv_c_intmax_t = yes; then |
5854 | ||
5855 | cat >>confdefs.h <<\_ACEOF | |
5856 | #define HAVE_INTMAX_T 1 | |
5857 | _ACEOF | |
93636bde | 5858 | |
b0cacab0 TT |
5859 | fi |
5860 | ||
5861 | ||
5862 | ||
e1052144 TT |
5863 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
5864 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } | |
b0cacab0 TT |
5865 | if test "${gt_cv_func_printf_posix+set}" = set; then |
5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 5867 | else |
b0cacab0 TT |
5868 | |
5869 | if test "$cross_compiling" = yes; then | |
5870 | ||
5871 | cat >conftest.$ac_ext <<_ACEOF | |
5872 | /* confdefs.h. */ | |
5873 | _ACEOF | |
5874 | cat confdefs.h >>conftest.$ac_ext | |
5875 | cat >>conftest.$ac_ext <<_ACEOF | |
5876 | /* end confdefs.h. */ | |
5877 | ||
5878 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
5879 | notposix | |
5880 | #endif | |
5881 | ||
5882 | _ACEOF | |
5883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5884 | $EGREP "notposix" >/dev/null 2>&1; then | |
5885 | gt_cv_func_printf_posix="guessing no" | |
5886 | else | |
5887 | gt_cv_func_printf_posix="guessing yes" | |
a64c9c13 | 5888 | fi |
b0cacab0 TT |
5889 | rm -f conftest* |
5890 | ||
5891 | ||
5892 | else | |
5893 | cat >conftest.$ac_ext <<_ACEOF | |
5894 | /* confdefs.h. */ | |
5895 | _ACEOF | |
5896 | cat confdefs.h >>conftest.$ac_ext | |
5897 | cat >>conftest.$ac_ext <<_ACEOF | |
5898 | /* end confdefs.h. */ | |
5899 | ||
5900 | #include <stdio.h> | |
5901 | #include <string.h> | |
5902 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
5903 | dollar expansion (possibly an autoconf bug). */ | |
5904 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
5905 | static char buf[100]; | |
5906 | int main () | |
5907 | { | |
5908 | sprintf (buf, format, 33, 55); | |
5909 | return (strcmp (buf, "55 33") != 0); | |
5910 | } | |
5911 | _ACEOF | |
5912 | rm -f conftest$ac_exeext | |
e1052144 TT |
5913 | if { (ac_try="$ac_link" |
5914 | case "(($ac_try" in | |
5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5916 | *) ac_try_echo=$ac_try;; | |
5917 | esac | |
5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5919 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
5920 | ac_status=$? |
5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
5923 | { (case "(($ac_try" in |
5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5925 | *) ac_try_echo=$ac_try;; | |
5926 | esac | |
5927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5928 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
5929 | ac_status=$? |
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5931 | (exit $ac_status); }; }; then | |
5932 | gt_cv_func_printf_posix=yes | |
5933 | else | |
5934 | echo "$as_me: program exited with status $ac_status" >&5 | |
5935 | echo "$as_me: failed program was:" >&5 | |
5936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5937 | ||
5938 | ( exit $ac_status ) | |
5939 | gt_cv_func_printf_posix=no | |
5940 | fi | |
e1052144 | 5941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a64c9c13 | 5942 | fi |
93636bde | 5943 | |
e1052144 TT |
5944 | |
5945 | ||
a64c9c13 | 5946 | fi |
e1052144 TT |
5947 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
5948 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } | |
b0cacab0 TT |
5949 | case $gt_cv_func_printf_posix in |
5950 | *yes) | |
07a0db15 | 5951 | |
b0cacab0 TT |
5952 | cat >>confdefs.h <<\_ACEOF |
5953 | #define HAVE_POSIX_PRINTF 1 | |
5954 | _ACEOF | |
5955 | ||
5956 | ;; | |
5957 | esac | |
5958 | ||
5959 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5960 | # for constant arguments. Useless! | |
e1052144 TT |
5961 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5962 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
5963 | if test "${ac_cv_working_alloca_h+set}" = set; then |
5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5965 | else | |
5966 | cat >conftest.$ac_ext <<_ACEOF | |
5967 | /* confdefs.h. */ | |
5968 | _ACEOF | |
5969 | cat confdefs.h >>conftest.$ac_ext | |
5970 | cat >>conftest.$ac_ext <<_ACEOF | |
5971 | /* end confdefs.h. */ | |
5972 | #include <alloca.h> | |
5973 | int | |
5974 | main () | |
5975 | { | |
5976 | char *p = (char *) alloca (2 * sizeof (int)); | |
e1052144 | 5977 | if (p) return 0; |
b0cacab0 TT |
5978 | ; |
5979 | return 0; | |
5980 | } | |
5981 | _ACEOF | |
5982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
5983 | if { (ac_try="$ac_link" |
5984 | case "(($ac_try" in | |
5985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5986 | *) ac_try_echo=$ac_try;; | |
5987 | esac | |
5988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5989 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
5990 | ac_status=$? |
5991 | grep -v '^ *+' conftest.er1 >conftest.err | |
5992 | rm -f conftest.er1 | |
5993 | cat conftest.err >&5 | |
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
5995 | (exit $ac_status); } && { |
5996 | test -z "$ac_c_werror_flag" || | |
5997 | test ! -s conftest.err | |
5998 | } && test -s conftest$ac_exeext && | |
5999 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
6000 | ac_cv_working_alloca_h=yes |
6001 | else | |
6002 | echo "$as_me: failed program was:" >&5 | |
6003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6004 | ||
e1052144 | 6005 | ac_cv_working_alloca_h=no |
b0cacab0 | 6006 | fi |
e1052144 | 6007 | |
29a5deed | 6008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6009 | conftest$ac_exeext conftest.$ac_ext |
6010 | fi | |
e1052144 TT |
6011 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6012 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
b0cacab0 TT |
6013 | if test $ac_cv_working_alloca_h = yes; then |
6014 | ||
6015 | cat >>confdefs.h <<\_ACEOF | |
6016 | #define HAVE_ALLOCA_H 1 | |
6017 | _ACEOF | |
a64c9c13 TT |
6018 | |
6019 | fi | |
6020 | ||
e1052144 TT |
6021 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6022 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
b0cacab0 TT |
6023 | if test "${ac_cv_func_alloca_works+set}" = set; then |
6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6025 | else | |
6026 | cat >conftest.$ac_ext <<_ACEOF | |
6027 | /* confdefs.h. */ | |
6028 | _ACEOF | |
6029 | cat confdefs.h >>conftest.$ac_ext | |
6030 | cat >>conftest.$ac_ext <<_ACEOF | |
6031 | /* end confdefs.h. */ | |
6032 | #ifdef __GNUC__ | |
6033 | # define alloca __builtin_alloca | |
6034 | #else | |
6035 | # ifdef _MSC_VER | |
6036 | # include <malloc.h> | |
6037 | # define alloca _alloca | |
6038 | # else | |
29a5deed | 6039 | # ifdef HAVE_ALLOCA_H |
b0cacab0 TT |
6040 | # include <alloca.h> |
6041 | # else | |
6042 | # ifdef _AIX | |
6043 | #pragma alloca | |
6044 | # else | |
6045 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6046 | char *alloca (); | |
6047 | # endif | |
6048 | # endif | |
6049 | # endif | |
6050 | # endif | |
6051 | #endif | |
93636bde | 6052 | |
b0cacab0 TT |
6053 | int |
6054 | main () | |
6055 | { | |
6056 | char *p = (char *) alloca (1); | |
e1052144 | 6057 | if (p) return 0; |
b0cacab0 TT |
6058 | ; |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6063 | if { (ac_try="$ac_link" |
6064 | case "(($ac_try" in | |
6065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6066 | *) ac_try_echo=$ac_try;; | |
6067 | esac | |
6068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6069 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
6070 | ac_status=$? |
6071 | grep -v '^ *+' conftest.er1 >conftest.err | |
6072 | rm -f conftest.er1 | |
6073 | cat conftest.err >&5 | |
6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6075 | (exit $ac_status); } && { |
6076 | test -z "$ac_c_werror_flag" || | |
6077 | test ! -s conftest.err | |
6078 | } && test -s conftest$ac_exeext && | |
6079 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 | 6080 | ac_cv_func_alloca_works=yes |
a64c9c13 | 6081 | else |
b0cacab0 TT |
6082 | echo "$as_me: failed program was:" >&5 |
6083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a04eba3f | 6084 | |
e1052144 | 6085 | ac_cv_func_alloca_works=no |
b0cacab0 | 6086 | fi |
e1052144 | 6087 | |
29a5deed | 6088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6089 | conftest$ac_exeext conftest.$ac_ext |
6090 | fi | |
e1052144 TT |
6091 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6092 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
b0cacab0 TT |
6093 | |
6094 | if test $ac_cv_func_alloca_works = yes; then | |
6095 | ||
6096 | cat >>confdefs.h <<\_ACEOF | |
6097 | #define HAVE_ALLOCA 1 | |
6098 | _ACEOF | |
6099 | ||
6100 | else | |
6101 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6102 | # that cause trouble. Some versions do not even contain alloca or | |
6103 | # contain a buggy version. If you still want to use their alloca, | |
6104 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6105 | ||
e1052144 | 6106 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b0cacab0 TT |
6107 | |
6108 | cat >>confdefs.h <<\_ACEOF | |
6109 | #define C_ALLOCA 1 | |
6110 | _ACEOF | |
6111 | ||
6112 | ||
e1052144 TT |
6113 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6114 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
b0cacab0 TT |
6115 | if test "${ac_cv_os_cray+set}" = set; then |
6116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6117 | else | |
6118 | cat >conftest.$ac_ext <<_ACEOF | |
6119 | /* confdefs.h. */ | |
6120 | _ACEOF | |
6121 | cat confdefs.h >>conftest.$ac_ext | |
6122 | cat >>conftest.$ac_ext <<_ACEOF | |
6123 | /* end confdefs.h. */ | |
e1052144 | 6124 | #if defined CRAY && ! defined CRAY2 |
b0cacab0 TT |
6125 | webecray |
6126 | #else | |
6127 | wenotbecray | |
a04eba3f | 6128 | #endif |
b0cacab0 TT |
6129 | |
6130 | _ACEOF | |
a04eba3f | 6131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 TT |
6132 | $EGREP "webecray" >/dev/null 2>&1; then |
6133 | ac_cv_os_cray=yes | |
a64c9c13 | 6134 | else |
b0cacab0 | 6135 | ac_cv_os_cray=no |
a64c9c13 TT |
6136 | fi |
6137 | rm -f conftest* | |
a04eba3f | 6138 | |
a64c9c13 | 6139 | fi |
e1052144 TT |
6140 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6141 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
b0cacab0 TT |
6142 | if test $ac_cv_os_cray = yes; then |
6143 | for ac_func in _getb67 GETB67 getb67; do | |
6144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
e1052144 TT |
6145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6147 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
6148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6149 | else | |
6150 | cat >conftest.$ac_ext <<_ACEOF | |
6151 | /* confdefs.h. */ | |
6152 | _ACEOF | |
6153 | cat confdefs.h >>conftest.$ac_ext | |
6154 | cat >>conftest.$ac_ext <<_ACEOF | |
6155 | /* end confdefs.h. */ | |
6156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6158 | #define $ac_func innocuous_$ac_func | |
a64c9c13 | 6159 | |
b0cacab0 TT |
6160 | /* System header to define __stub macros and hopefully few prototypes, |
6161 | which can conflict with char $ac_func (); below. | |
6162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6163 | <limits.h> exists even on freestanding compilers. */ | |
07a0db15 | 6164 | |
b0cacab0 TT |
6165 | #ifdef __STDC__ |
6166 | # include <limits.h> | |
6167 | #else | |
6168 | # include <assert.h> | |
6169 | #endif | |
a64c9c13 | 6170 | |
b0cacab0 | 6171 | #undef $ac_func |
a64c9c13 | 6172 | |
e1052144 TT |
6173 | /* Override any GCC internal prototype to avoid an error. |
6174 | Use char because int might match the return type of a GCC | |
6175 | builtin and then its argument prototype would still apply. */ | |
a04eba3f | 6176 | #ifdef __cplusplus |
b0cacab0 | 6177 | extern "C" |
b0cacab0 | 6178 | #endif |
b0cacab0 TT |
6179 | char $ac_func (); |
6180 | /* The GNU C library defines this for functions which it implements | |
6181 | to always fail with ENOSYS. Some functions are actually named | |
6182 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 6183 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 6184 | choke me |
b0cacab0 TT |
6185 | #endif |
6186 | ||
6187 | int | |
6188 | main () | |
a04eba3f | 6189 | { |
e1052144 | 6190 | return $ac_func (); |
b0cacab0 TT |
6191 | ; |
6192 | return 0; | |
a04eba3f | 6193 | } |
b0cacab0 TT |
6194 | _ACEOF |
6195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6196 | if { (ac_try="$ac_link" |
6197 | case "(($ac_try" in | |
6198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6199 | *) ac_try_echo=$ac_try;; | |
6200 | esac | |
6201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6202 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
6203 | ac_status=$? |
6204 | grep -v '^ *+' conftest.er1 >conftest.err | |
6205 | rm -f conftest.er1 | |
6206 | cat conftest.err >&5 | |
6207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6208 | (exit $ac_status); } && { |
6209 | test -z "$ac_c_werror_flag" || | |
6210 | test ! -s conftest.err | |
6211 | } && test -s conftest$ac_exeext && | |
6212 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
6213 | eval "$as_ac_var=yes" |
6214 | else | |
6215 | echo "$as_me: failed program was:" >&5 | |
6216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6217 | ||
e1052144 | 6218 | eval "$as_ac_var=no" |
b0cacab0 | 6219 | fi |
e1052144 | 6220 | |
29a5deed | 6221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6222 | conftest$ac_exeext conftest.$ac_ext |
6223 | fi | |
e1052144 TT |
6224 | ac_res=`eval echo '${'$as_ac_var'}'` |
6225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6226 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
6227 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6228 | ||
6229 | cat >>confdefs.h <<_ACEOF | |
6230 | #define CRAY_STACKSEG_END $ac_func | |
6231 | _ACEOF | |
a04eba3f | 6232 | |
b0cacab0 TT |
6233 | break |
6234 | fi | |
a04eba3f | 6235 | |
b0cacab0 TT |
6236 | done |
6237 | fi | |
6238 | ||
e1052144 TT |
6239 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6240 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
b0cacab0 TT |
6241 | if test "${ac_cv_c_stack_direction+set}" = set; then |
6242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6243 | else | |
6244 | if test "$cross_compiling" = yes; then | |
6245 | ac_cv_c_stack_direction=0 | |
6246 | else | |
6247 | cat >conftest.$ac_ext <<_ACEOF | |
6248 | /* confdefs.h. */ | |
6249 | _ACEOF | |
6250 | cat confdefs.h >>conftest.$ac_ext | |
6251 | cat >>conftest.$ac_ext <<_ACEOF | |
6252 | /* end confdefs.h. */ | |
e1052144 | 6253 | $ac_includes_default |
b0cacab0 TT |
6254 | int |
6255 | find_stack_direction () | |
6256 | { | |
6257 | static char *addr = 0; | |
6258 | auto char dummy; | |
6259 | if (addr == 0) | |
6260 | { | |
6261 | addr = &dummy; | |
6262 | return find_stack_direction (); | |
6263 | } | |
6264 | else | |
6265 | return (&dummy > addr) ? 1 : -1; | |
6266 | } | |
6267 | ||
6268 | int | |
6269 | main () | |
6270 | { | |
e1052144 | 6271 | return find_stack_direction () < 0; |
b0cacab0 TT |
6272 | } |
6273 | _ACEOF | |
6274 | rm -f conftest$ac_exeext | |
e1052144 TT |
6275 | if { (ac_try="$ac_link" |
6276 | case "(($ac_try" in | |
6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6278 | *) ac_try_echo=$ac_try;; | |
6279 | esac | |
6280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6281 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
6282 | ac_status=$? |
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
6285 | { (case "(($ac_try" in |
6286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6287 | *) ac_try_echo=$ac_try;; | |
6288 | esac | |
6289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6290 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
6291 | ac_status=$? |
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6293 | (exit $ac_status); }; }; then | |
6294 | ac_cv_c_stack_direction=1 | |
6295 | else | |
6296 | echo "$as_me: program exited with status $ac_status" >&5 | |
6297 | echo "$as_me: failed program was:" >&5 | |
6298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6299 | ||
6300 | ( exit $ac_status ) | |
6301 | ac_cv_c_stack_direction=-1 | |
6302 | fi | |
e1052144 | 6303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 6304 | fi |
e1052144 TT |
6305 | |
6306 | ||
b0cacab0 | 6307 | fi |
e1052144 TT |
6308 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6309 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
b0cacab0 TT |
6310 | |
6311 | cat >>confdefs.h <<_ACEOF | |
6312 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6313 | _ACEOF | |
6314 | ||
6315 | ||
6316 | fi | |
6317 | ||
6318 | ||
6319 | ||
6320 | for ac_header in stdlib.h unistd.h | |
6321 | do | |
6322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
6323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6324 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
6327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6328 | fi | |
e1052144 TT |
6329 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6331 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
6332 | else |
6333 | # Is the header compilable? | |
e1052144 TT |
6334 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
6336 | cat >conftest.$ac_ext <<_ACEOF |
6337 | /* confdefs.h. */ | |
6338 | _ACEOF | |
6339 | cat confdefs.h >>conftest.$ac_ext | |
6340 | cat >>conftest.$ac_ext <<_ACEOF | |
6341 | /* end confdefs.h. */ | |
6342 | $ac_includes_default | |
6343 | #include <$ac_header> | |
6344 | _ACEOF | |
6345 | rm -f conftest.$ac_objext | |
e1052144 TT |
6346 | if { (ac_try="$ac_compile" |
6347 | case "(($ac_try" in | |
6348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6349 | *) ac_try_echo=$ac_try;; | |
6350 | esac | |
6351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6352 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
6353 | ac_status=$? |
6354 | grep -v '^ *+' conftest.er1 >conftest.err | |
6355 | rm -f conftest.er1 | |
6356 | cat conftest.err >&5 | |
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6358 | (exit $ac_status); } && { |
6359 | test -z "$ac_c_werror_flag" || | |
6360 | test ! -s conftest.err | |
6361 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
6362 | ac_header_compiler=yes |
6363 | else | |
6364 | echo "$as_me: failed program was:" >&5 | |
6365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6366 | ||
e1052144 | 6367 | ac_header_compiler=no |
b0cacab0 | 6368 | fi |
e1052144 TT |
6369 | |
6370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6371 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6372 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
6373 | |
6374 | # Is the header present? | |
e1052144 TT |
6375 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6376 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
6377 | cat >conftest.$ac_ext <<_ACEOF |
6378 | /* confdefs.h. */ | |
6379 | _ACEOF | |
6380 | cat confdefs.h >>conftest.$ac_ext | |
6381 | cat >>conftest.$ac_ext <<_ACEOF | |
6382 | /* end confdefs.h. */ | |
6383 | #include <$ac_header> | |
6384 | _ACEOF | |
e1052144 TT |
6385 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6386 | case "(($ac_try" in | |
6387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6388 | *) ac_try_echo=$ac_try;; | |
6389 | esac | |
6390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6391 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
6392 | ac_status=$? |
6393 | grep -v '^ *+' conftest.er1 >conftest.err | |
6394 | rm -f conftest.er1 | |
6395 | cat conftest.err >&5 | |
6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6397 | (exit $ac_status); } >/dev/null && { |
6398 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6399 | test ! -s conftest.err | |
6400 | }; then | |
b0cacab0 TT |
6401 | ac_header_preproc=yes |
6402 | else | |
6403 | echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
6406 | ac_header_preproc=no | |
6407 | fi | |
e1052144 | 6408 | |
b0cacab0 | 6409 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
6410 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6411 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
6412 | |
6413 | # So? What about this header? | |
6414 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6415 | yes:no: ) | |
6416 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6417 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6419 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6420 | ac_header_preproc=yes | |
6421 | ;; | |
6422 | no:yes:* ) | |
6423 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6424 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6425 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6426 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6427 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6428 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6429 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6430 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6432 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6433 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6434 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 6435 | |
b0cacab0 TT |
6436 | ;; |
6437 | esac | |
e1052144 TT |
6438 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6442 | else | |
6443 | eval "$as_ac_Header=\$ac_header_preproc" | |
6444 | fi | |
e1052144 TT |
6445 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6447 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
6448 | |
6449 | fi | |
6450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6451 | cat >>confdefs.h <<_ACEOF | |
6452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6453 | _ACEOF | |
6454 | ||
6455 | fi | |
6456 | ||
6457 | done | |
6458 | ||
6459 | ||
6460 | for ac_func in getpagesize | |
6461 | do | |
6462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
e1052144 TT |
6463 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6465 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6467 | else | |
6468 | cat >conftest.$ac_ext <<_ACEOF | |
6469 | /* confdefs.h. */ | |
6470 | _ACEOF | |
6471 | cat confdefs.h >>conftest.$ac_ext | |
6472 | cat >>conftest.$ac_ext <<_ACEOF | |
6473 | /* end confdefs.h. */ | |
6474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6476 | #define $ac_func innocuous_$ac_func | |
6477 | ||
6478 | /* System header to define __stub macros and hopefully few prototypes, | |
6479 | which can conflict with char $ac_func (); below. | |
6480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6481 | <limits.h> exists even on freestanding compilers. */ | |
6482 | ||
6483 | #ifdef __STDC__ | |
6484 | # include <limits.h> | |
6485 | #else | |
6486 | # include <assert.h> | |
6487 | #endif | |
6488 | ||
6489 | #undef $ac_func | |
6490 | ||
e1052144 TT |
6491 | /* Override any GCC internal prototype to avoid an error. |
6492 | Use char because int might match the return type of a GCC | |
6493 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
6494 | #ifdef __cplusplus |
6495 | extern "C" | |
b0cacab0 | 6496 | #endif |
b0cacab0 TT |
6497 | char $ac_func (); |
6498 | /* The GNU C library defines this for functions which it implements | |
6499 | to always fail with ENOSYS. Some functions are actually named | |
6500 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 6501 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 6502 | choke me |
b0cacab0 TT |
6503 | #endif |
6504 | ||
6505 | int | |
6506 | main () | |
6507 | { | |
e1052144 | 6508 | return $ac_func (); |
b0cacab0 TT |
6509 | ; |
6510 | return 0; | |
6511 | } | |
6512 | _ACEOF | |
6513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6514 | if { (ac_try="$ac_link" |
6515 | case "(($ac_try" in | |
6516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6517 | *) ac_try_echo=$ac_try;; | |
6518 | esac | |
6519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6520 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
6521 | ac_status=$? |
6522 | grep -v '^ *+' conftest.er1 >conftest.err | |
6523 | rm -f conftest.er1 | |
6524 | cat conftest.err >&5 | |
6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6526 | (exit $ac_status); } && { |
6527 | test -z "$ac_c_werror_flag" || | |
6528 | test ! -s conftest.err | |
6529 | } && test -s conftest$ac_exeext && | |
6530 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
6531 | eval "$as_ac_var=yes" |
6532 | else | |
6533 | echo "$as_me: failed program was:" >&5 | |
6534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6535 | ||
e1052144 | 6536 | eval "$as_ac_var=no" |
b0cacab0 | 6537 | fi |
e1052144 | 6538 | |
29a5deed | 6539 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6540 | conftest$ac_exeext conftest.$ac_ext |
6541 | fi | |
e1052144 TT |
6542 | ac_res=`eval echo '${'$as_ac_var'}'` |
6543 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6544 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
6545 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6546 | cat >>confdefs.h <<_ACEOF | |
6547 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6548 | _ACEOF | |
6549 | ||
6550 | fi | |
6551 | done | |
6552 | ||
e1052144 TT |
6553 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
6554 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
b0cacab0 TT |
6555 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
6556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6557 | else | |
6558 | if test "$cross_compiling" = yes; then | |
6559 | ac_cv_func_mmap_fixed_mapped=no | |
6560 | else | |
6561 | cat >conftest.$ac_ext <<_ACEOF | |
6562 | /* confdefs.h. */ | |
6563 | _ACEOF | |
6564 | cat confdefs.h >>conftest.$ac_ext | |
6565 | cat >>conftest.$ac_ext <<_ACEOF | |
6566 | /* end confdefs.h. */ | |
6567 | $ac_includes_default | |
6568 | /* malloc might have been renamed as rpl_malloc. */ | |
6569 | #undef malloc | |
6570 | ||
6571 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6572 | Here is a matrix of mmap possibilities: | |
6573 | mmap private not fixed | |
6574 | mmap private fixed at somewhere currently unmapped | |
6575 | mmap private fixed at somewhere already mapped | |
6576 | mmap shared not fixed | |
6577 | mmap shared fixed at somewhere currently unmapped | |
6578 | mmap shared fixed at somewhere already mapped | |
6579 | For private mappings, we should verify that changes cannot be read() | |
6580 | back from the file, nor mmap's back from the file at a different | |
6581 | address. (There have been systems where private was not correctly | |
6582 | implemented like the infamous i386 svr4.0, and systems where the | |
6583 | VM page cache was not coherent with the file system buffer cache | |
6584 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6585 | For shared mappings, we should conversely verify that changes get | |
6586 | propagated back to all the places they're supposed to be. | |
6587 | ||
6588 | Grep wants private fixed already mapped. | |
6589 | The main things grep needs to know about mmap are: | |
6590 | * does it exist and is it safe to write into the mmap'd area | |
6591 | * how to use it (BSD variants) */ | |
6592 | ||
6593 | #include <fcntl.h> | |
6594 | #include <sys/mman.h> | |
6595 | ||
29a5deed | 6596 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b0cacab0 TT |
6597 | char *malloc (); |
6598 | #endif | |
6599 | ||
6600 | /* This mess was copied from the GNU getpagesize.h. */ | |
29a5deed | 6601 | #ifndef HAVE_GETPAGESIZE |
b0cacab0 | 6602 | /* Assume that all systems that can run configure have sys/param.h. */ |
29a5deed | 6603 | # ifndef HAVE_SYS_PARAM_H |
b0cacab0 TT |
6604 | # define HAVE_SYS_PARAM_H 1 |
6605 | # endif | |
6606 | ||
6607 | # ifdef _SC_PAGESIZE | |
6608 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6609 | # else /* no _SC_PAGESIZE */ | |
29a5deed | 6610 | # ifdef HAVE_SYS_PARAM_H |
b0cacab0 TT |
6611 | # include <sys/param.h> |
6612 | # ifdef EXEC_PAGESIZE | |
6613 | # define getpagesize() EXEC_PAGESIZE | |
6614 | # else /* no EXEC_PAGESIZE */ | |
6615 | # ifdef NBPG | |
6616 | # define getpagesize() NBPG * CLSIZE | |
6617 | # ifndef CLSIZE | |
6618 | # define CLSIZE 1 | |
6619 | # endif /* no CLSIZE */ | |
6620 | # else /* no NBPG */ | |
6621 | # ifdef NBPC | |
6622 | # define getpagesize() NBPC | |
6623 | # else /* no NBPC */ | |
6624 | # ifdef PAGESIZE | |
6625 | # define getpagesize() PAGESIZE | |
6626 | # endif /* PAGESIZE */ | |
6627 | # endif /* no NBPC */ | |
6628 | # endif /* no NBPG */ | |
6629 | # endif /* no EXEC_PAGESIZE */ | |
6630 | # else /* no HAVE_SYS_PARAM_H */ | |
6631 | # define getpagesize() 8192 /* punt totally */ | |
6632 | # endif /* no HAVE_SYS_PARAM_H */ | |
6633 | # endif /* no _SC_PAGESIZE */ | |
6634 | ||
6635 | #endif /* no HAVE_GETPAGESIZE */ | |
6636 | ||
6637 | int | |
6638 | main () | |
6639 | { | |
6640 | char *data, *data2, *data3; | |
6641 | int i, pagesize; | |
6642 | int fd; | |
6643 | ||
6644 | pagesize = getpagesize (); | |
6645 | ||
6646 | /* First, make a file with some known garbage in it. */ | |
6647 | data = (char *) malloc (pagesize); | |
6648 | if (!data) | |
e1052144 | 6649 | return 1; |
b0cacab0 TT |
6650 | for (i = 0; i < pagesize; ++i) |
6651 | *(data + i) = rand (); | |
6652 | umask (0); | |
6653 | fd = creat ("conftest.mmap", 0600); | |
6654 | if (fd < 0) | |
e1052144 | 6655 | return 1; |
b0cacab0 | 6656 | if (write (fd, data, pagesize) != pagesize) |
e1052144 | 6657 | return 1; |
b0cacab0 TT |
6658 | close (fd); |
6659 | ||
6660 | /* Next, try to mmap the file at a fixed address which already has | |
6661 | something else allocated at it. If we can, also make sure that | |
6662 | we see the same garbage. */ | |
6663 | fd = open ("conftest.mmap", O_RDWR); | |
6664 | if (fd < 0) | |
e1052144 | 6665 | return 1; |
b0cacab0 TT |
6666 | data2 = (char *) malloc (2 * pagesize); |
6667 | if (!data2) | |
e1052144 TT |
6668 | return 1; |
6669 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b0cacab0 TT |
6670 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
6671 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
e1052144 | 6672 | return 1; |
b0cacab0 TT |
6673 | for (i = 0; i < pagesize; ++i) |
6674 | if (*(data + i) != *(data2 + i)) | |
e1052144 | 6675 | return 1; |
b0cacab0 TT |
6676 | |
6677 | /* Finally, make sure that changes to the mapped area do not | |
6678 | percolate back to the file as seen by read(). (This is a bug on | |
6679 | some variants of i386 svr4.0.) */ | |
6680 | for (i = 0; i < pagesize; ++i) | |
6681 | *(data2 + i) = *(data2 + i) + 1; | |
6682 | data3 = (char *) malloc (pagesize); | |
6683 | if (!data3) | |
e1052144 | 6684 | return 1; |
b0cacab0 | 6685 | if (read (fd, data3, pagesize) != pagesize) |
e1052144 | 6686 | return 1; |
b0cacab0 TT |
6687 | for (i = 0; i < pagesize; ++i) |
6688 | if (*(data + i) != *(data3 + i)) | |
e1052144 | 6689 | return 1; |
b0cacab0 | 6690 | close (fd); |
e1052144 | 6691 | return 0; |
b0cacab0 TT |
6692 | } |
6693 | _ACEOF | |
6694 | rm -f conftest$ac_exeext | |
e1052144 TT |
6695 | if { (ac_try="$ac_link" |
6696 | case "(($ac_try" in | |
6697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6698 | *) ac_try_echo=$ac_try;; | |
6699 | esac | |
6700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6701 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
6702 | ac_status=$? |
6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
6705 | { (case "(($ac_try" in |
6706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6707 | *) ac_try_echo=$ac_try;; | |
6708 | esac | |
6709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6710 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
6711 | ac_status=$? |
6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6713 | (exit $ac_status); }; }; then | |
6714 | ac_cv_func_mmap_fixed_mapped=yes | |
6715 | else | |
6716 | echo "$as_me: program exited with status $ac_status" >&5 | |
6717 | echo "$as_me: failed program was:" >&5 | |
6718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6719 | ||
6720 | ( exit $ac_status ) | |
6721 | ac_cv_func_mmap_fixed_mapped=no | |
6722 | fi | |
e1052144 | 6723 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 6724 | fi |
e1052144 TT |
6725 | |
6726 | ||
b0cacab0 | 6727 | fi |
e1052144 TT |
6728 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6729 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b0cacab0 TT |
6730 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
6731 | ||
6732 | cat >>confdefs.h <<\_ACEOF | |
6733 | #define HAVE_MMAP 1 | |
6734 | _ACEOF | |
6735 | ||
6736 | fi | |
6737 | rm -f conftest.mmap | |
6738 | ||
6739 | ||
e1052144 TT |
6740 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
6741 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } | |
b0cacab0 TT |
6742 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
6743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6744 | else | |
6745 | cat >conftest.$ac_ext <<_ACEOF | |
6746 | /* confdefs.h. */ | |
6747 | _ACEOF | |
6748 | cat confdefs.h >>conftest.$ac_ext | |
6749 | cat >>conftest.$ac_ext <<_ACEOF | |
6750 | /* end confdefs.h. */ | |
6751 | ||
6752 | #include <features.h> | |
6753 | #ifdef __GNU_LIBRARY__ | |
6754 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
6755 | Lucky GNU user | |
6756 | #endif | |
6757 | #endif | |
6758 | ||
6759 | _ACEOF | |
6760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6761 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
6762 | ac_cv_gnu_library_2_1=yes | |
6763 | else | |
6764 | ac_cv_gnu_library_2_1=no | |
6765 | fi | |
6766 | rm -f conftest* | |
6767 | ||
6768 | ||
6769 | ||
6770 | fi | |
e1052144 TT |
6771 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
6772 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } | |
b0cacab0 TT |
6773 | |
6774 | GLIBC21="$ac_cv_gnu_library_2_1" | |
6775 | ||
6776 | ||
6777 | ||
6778 | ||
e1052144 TT |
6779 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
6780 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } | |
b0cacab0 TT |
6781 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6783 | else | |
6784 | ||
6785 | if test "$cross_compiling" = yes; then | |
6786 | ||
6787 | # Guess based on the CPU. | |
6788 | case "$host_cpu" in | |
6789 | alpha* | i3456786 | m68k | s390*) | |
6790 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
6791 | *) | |
6792 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
6793 | esac | |
6794 | ||
6795 | else | |
6796 | cat >conftest.$ac_ext <<_ACEOF | |
6797 | /* confdefs.h. */ | |
6798 | _ACEOF | |
6799 | cat confdefs.h >>conftest.$ac_ext | |
6800 | cat >>conftest.$ac_ext <<_ACEOF | |
6801 | /* end confdefs.h. */ | |
6802 | ||
6803 | #include <stdlib.h> | |
6804 | #include <signal.h> | |
6805 | ||
6806 | static void | |
6807 | #ifdef __cplusplus | |
6808 | sigfpe_handler (int sig) | |
6809 | #else | |
6810 | sigfpe_handler (sig) int sig; | |
6811 | #endif | |
6812 | { | |
6813 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
6814 | exit (sig != SIGFPE); | |
6815 | } | |
6816 | ||
6817 | int x = 1; | |
6818 | int y = 0; | |
6819 | int z; | |
6820 | int nan; | |
6821 | ||
6822 | int main () | |
a04eba3f TT |
6823 | { |
6824 | signal (SIGFPE, sigfpe_handler); | |
6825 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
6826 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
6827 | signal (SIGTRAP, sigfpe_handler); | |
6828 | #endif | |
6829 | /* Linux/SPARC yields signal SIGILL. */ | |
6830 | #if defined (__sparc__) && defined (__linux__) | |
6831 | signal (SIGILL, sigfpe_handler); | |
6832 | #endif | |
6833 | ||
6834 | z = x / y; | |
6835 | nan = y / y; | |
6836 | exit (1); | |
6837 | } | |
a64c9c13 | 6838 | |
b0cacab0 TT |
6839 | _ACEOF |
6840 | rm -f conftest$ac_exeext | |
e1052144 TT |
6841 | if { (ac_try="$ac_link" |
6842 | case "(($ac_try" in | |
6843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6844 | *) ac_try_echo=$ac_try;; | |
6845 | esac | |
6846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6847 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
6848 | ac_status=$? |
6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
6851 | { (case "(($ac_try" in |
6852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6853 | *) ac_try_echo=$ac_try;; | |
6854 | esac | |
6855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6856 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
6857 | ac_status=$? |
6858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6859 | (exit $ac_status); }; }; then | |
a04eba3f | 6860 | gt_cv_int_divbyzero_sigfpe=yes |
a64c9c13 | 6861 | else |
b0cacab0 TT |
6862 | echo "$as_me: program exited with status $ac_status" >&5 |
6863 | echo "$as_me: failed program was:" >&5 | |
6864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6865 | ||
6866 | ( exit $ac_status ) | |
6867 | gt_cv_int_divbyzero_sigfpe=no | |
6868 | fi | |
e1052144 | 6869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
6870 | fi |
6871 | ||
e1052144 TT |
6872 | |
6873 | ||
b0cacab0 | 6874 | fi |
e1052144 TT |
6875 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
6876 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } | |
b0cacab0 TT |
6877 | case "$gt_cv_int_divbyzero_sigfpe" in |
6878 | *yes) value=1;; | |
6879 | *) value=0;; | |
6880 | esac | |
6881 | ||
6882 | cat >>confdefs.h <<_ACEOF | |
6883 | #define INTDIV0_RAISES_SIGFPE $value | |
6884 | _ACEOF | |
6885 | ||
6886 | ||
6887 | ||
e1052144 TT |
6888 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
6889 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | |
b0cacab0 TT |
6890 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6892 | else | |
6893 | cat >conftest.$ac_ext <<_ACEOF | |
6894 | /* confdefs.h. */ | |
6895 | _ACEOF | |
6896 | cat confdefs.h >>conftest.$ac_ext | |
6897 | cat >>conftest.$ac_ext <<_ACEOF | |
6898 | /* end confdefs.h. */ | |
6899 | unsigned long long ull = 1ULL; int i = 63; | |
6900 | int | |
6901 | main () | |
6902 | { | |
6903 | unsigned long long ullmax = (unsigned long long) -1; | |
6904 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
6905 | ; | |
6906 | return 0; | |
6907 | } | |
6908 | _ACEOF | |
6909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
6910 | if { (ac_try="$ac_link" |
6911 | case "(($ac_try" in | |
6912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6913 | *) ac_try_echo=$ac_try;; | |
6914 | esac | |
6915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6916 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
6917 | ac_status=$? |
6918 | grep -v '^ *+' conftest.er1 >conftest.err | |
6919 | rm -f conftest.er1 | |
6920 | cat conftest.err >&5 | |
6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
6922 | (exit $ac_status); } && { |
6923 | test -z "$ac_c_werror_flag" || | |
6924 | test ! -s conftest.err | |
6925 | } && test -s conftest$ac_exeext && | |
6926 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
6927 | ac_cv_type_unsigned_long_long=yes |
6928 | else | |
6929 | echo "$as_me: failed program was:" >&5 | |
6930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6931 | ||
e1052144 | 6932 | ac_cv_type_unsigned_long_long=no |
b0cacab0 | 6933 | fi |
e1052144 | 6934 | |
29a5deed | 6935 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
6936 | conftest$ac_exeext conftest.$ac_ext |
6937 | fi | |
e1052144 TT |
6938 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
6939 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | |
b0cacab0 TT |
6940 | if test $ac_cv_type_unsigned_long_long = yes; then |
6941 | ||
6942 | cat >>confdefs.h <<\_ACEOF | |
6943 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
6944 | _ACEOF | |
6945 | ||
6946 | fi | |
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
6952 | ||
6953 | test $ac_cv_type_unsigned_long_long = yes \ | |
6954 | && ac_type='unsigned long long' \ | |
6955 | || ac_type='unsigned long' | |
6956 | ||
6957 | cat >>confdefs.h <<_ACEOF | |
6958 | #define uintmax_t $ac_type | |
6959 | _ACEOF | |
6960 | ||
6961 | else | |
6962 | ||
6963 | cat >>confdefs.h <<\_ACEOF | |
6964 | #define HAVE_UINTMAX_T 1 | |
6965 | _ACEOF | |
6966 | ||
6967 | fi | |
6968 | ||
6969 | ||
e1052144 TT |
6970 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
6971 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } | |
b0cacab0 TT |
6972 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6974 | else | |
6975 | ||
6976 | cat >conftest.$ac_ext <<_ACEOF | |
6977 | /* confdefs.h. */ | |
6978 | _ACEOF | |
6979 | cat confdefs.h >>conftest.$ac_ext | |
6980 | cat >>conftest.$ac_ext <<_ACEOF | |
6981 | /* end confdefs.h. */ | |
6982 | #include <sys/types.h> | |
6983 | #include <inttypes.h> | |
6984 | int | |
6985 | main () | |
6986 | { | |
6987 | ||
6988 | ; | |
6989 | return 0; | |
6990 | } | |
6991 | _ACEOF | |
6992 | rm -f conftest.$ac_objext | |
e1052144 TT |
6993 | if { (ac_try="$ac_compile" |
6994 | case "(($ac_try" in | |
6995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6996 | *) ac_try_echo=$ac_try;; | |
6997 | esac | |
6998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6999 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7000 | ac_status=$? |
7001 | grep -v '^ *+' conftest.er1 >conftest.err | |
7002 | rm -f conftest.er1 | |
7003 | cat conftest.err >&5 | |
7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7005 | (exit $ac_status); } && { |
7006 | test -z "$ac_c_werror_flag" || | |
7007 | test ! -s conftest.err | |
7008 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7009 | gt_cv_header_inttypes_h=yes |
7010 | else | |
7011 | echo "$as_me: failed program was:" >&5 | |
7012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7013 | ||
e1052144 | 7014 | gt_cv_header_inttypes_h=no |
b0cacab0 | 7015 | fi |
e1052144 TT |
7016 | |
7017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7018 | |
7019 | fi | |
e1052144 TT |
7020 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
7021 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } | |
b0cacab0 TT |
7022 | if test $gt_cv_header_inttypes_h = yes; then |
7023 | ||
7024 | cat >>confdefs.h <<_ACEOF | |
7025 | #define HAVE_INTTYPES_H 1 | |
7026 | _ACEOF | |
7027 | ||
7028 | fi | |
7029 | ||
7030 | ||
7031 | ||
7032 | if test $gt_cv_header_inttypes_h = yes; then | |
e1052144 TT |
7033 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
7034 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } | |
b0cacab0 TT |
7035 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
7036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7037 | else | |
7038 | ||
7039 | cat >conftest.$ac_ext <<_ACEOF | |
7040 | /* confdefs.h. */ | |
7041 | _ACEOF | |
7042 | cat confdefs.h >>conftest.$ac_ext | |
7043 | cat >>conftest.$ac_ext <<_ACEOF | |
7044 | /* end confdefs.h. */ | |
7045 | #include <inttypes.h> | |
7046 | #ifdef PRId32 | |
7047 | char *p = PRId32; | |
7048 | #endif | |
7049 | ||
7050 | int | |
7051 | main () | |
7052 | { | |
7053 | ||
7054 | ; | |
7055 | return 0; | |
7056 | } | |
7057 | _ACEOF | |
7058 | rm -f conftest.$ac_objext | |
e1052144 TT |
7059 | if { (ac_try="$ac_compile" |
7060 | case "(($ac_try" in | |
7061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7062 | *) ac_try_echo=$ac_try;; | |
7063 | esac | |
7064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7065 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7066 | ac_status=$? |
7067 | grep -v '^ *+' conftest.er1 >conftest.err | |
7068 | rm -f conftest.er1 | |
7069 | cat conftest.err >&5 | |
7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7071 | (exit $ac_status); } && { |
7072 | test -z "$ac_c_werror_flag" || | |
7073 | test ! -s conftest.err | |
7074 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7075 | gt_cv_inttypes_pri_broken=no |
7076 | else | |
7077 | echo "$as_me: failed program was:" >&5 | |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7079 | ||
e1052144 | 7080 | gt_cv_inttypes_pri_broken=yes |
b0cacab0 | 7081 | fi |
e1052144 TT |
7082 | |
7083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7084 | |
7085 | fi | |
e1052144 TT |
7086 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
7087 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } | |
b0cacab0 TT |
7088 | fi |
7089 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7090 | ||
7091 | cat >>confdefs.h <<_ACEOF | |
7092 | #define PRI_MACROS_BROKEN 1 | |
7093 | _ACEOF | |
7094 | ||
7095 | fi | |
7096 | ||
7097 | ||
7098 | ||
7099 | for ac_header in stdint.h | |
7100 | do | |
7101 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
7102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
7106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7107 | fi | |
e1052144 TT |
7108 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7109 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7110 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
7111 | else |
7112 | # Is the header compilable? | |
e1052144 TT |
7113 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
7115 | cat >conftest.$ac_ext <<_ACEOF |
7116 | /* confdefs.h. */ | |
7117 | _ACEOF | |
7118 | cat confdefs.h >>conftest.$ac_ext | |
7119 | cat >>conftest.$ac_ext <<_ACEOF | |
7120 | /* end confdefs.h. */ | |
7121 | $ac_includes_default | |
7122 | #include <$ac_header> | |
7123 | _ACEOF | |
7124 | rm -f conftest.$ac_objext | |
e1052144 TT |
7125 | if { (ac_try="$ac_compile" |
7126 | case "(($ac_try" in | |
7127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7128 | *) ac_try_echo=$ac_try;; | |
7129 | esac | |
7130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7131 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7132 | ac_status=$? |
7133 | grep -v '^ *+' conftest.er1 >conftest.err | |
7134 | rm -f conftest.er1 | |
7135 | cat conftest.err >&5 | |
7136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7137 | (exit $ac_status); } && { |
7138 | test -z "$ac_c_werror_flag" || | |
7139 | test ! -s conftest.err | |
7140 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7141 | ac_header_compiler=yes |
7142 | else | |
7143 | echo "$as_me: failed program was:" >&5 | |
7144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7145 | ||
e1052144 | 7146 | ac_header_compiler=no |
b0cacab0 | 7147 | fi |
e1052144 TT |
7148 | |
7149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7151 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
7152 | |
7153 | # Is the header present? | |
e1052144 TT |
7154 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
7156 | cat >conftest.$ac_ext <<_ACEOF |
7157 | /* confdefs.h. */ | |
7158 | _ACEOF | |
7159 | cat confdefs.h >>conftest.$ac_ext | |
7160 | cat >>conftest.$ac_ext <<_ACEOF | |
7161 | /* end confdefs.h. */ | |
7162 | #include <$ac_header> | |
7163 | _ACEOF | |
e1052144 TT |
7164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7165 | case "(($ac_try" in | |
7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7167 | *) ac_try_echo=$ac_try;; | |
7168 | esac | |
7169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
7171 | ac_status=$? |
7172 | grep -v '^ *+' conftest.er1 >conftest.err | |
7173 | rm -f conftest.er1 | |
7174 | cat conftest.err >&5 | |
7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7176 | (exit $ac_status); } >/dev/null && { |
7177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7178 | test ! -s conftest.err | |
7179 | }; then | |
b0cacab0 TT |
7180 | ac_header_preproc=yes |
7181 | else | |
7182 | echo "$as_me: failed program was:" >&5 | |
7183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7184 | ||
7185 | ac_header_preproc=no | |
7186 | fi | |
e1052144 | 7187 | |
b0cacab0 | 7188 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
7189 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7190 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
7191 | |
7192 | # So? What about this header? | |
7193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7194 | yes:no: ) | |
7195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7198 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7199 | ac_header_preproc=yes | |
7200 | ;; | |
7201 | no:yes:* ) | |
7202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7206 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7207 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7208 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7209 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7211 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7212 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7213 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 7214 | |
b0cacab0 TT |
7215 | ;; |
7216 | esac | |
e1052144 TT |
7217 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7219 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
7220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7221 | else | |
7222 | eval "$as_ac_Header=\$ac_header_preproc" | |
7223 | fi | |
e1052144 TT |
7224 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7226 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
7227 | |
7228 | fi | |
7229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7230 | cat >>confdefs.h <<_ACEOF | |
7231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7232 | _ACEOF | |
7233 | ||
7234 | fi | |
7235 | ||
7236 | done | |
7237 | ||
e1052144 TT |
7238 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
7239 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } | |
b0cacab0 TT |
7240 | result= |
7241 | cat >conftest.$ac_ext <<_ACEOF | |
7242 | /* confdefs.h. */ | |
7243 | _ACEOF | |
7244 | cat confdefs.h >>conftest.$ac_ext | |
7245 | cat >>conftest.$ac_ext <<_ACEOF | |
7246 | /* end confdefs.h. */ | |
7247 | ||
7248 | #include <limits.h> | |
7249 | #if HAVE_STDINT_H | |
7250 | #include <stdint.h> | |
7251 | #endif | |
7252 | #ifdef SIZE_MAX | |
7253 | Found it | |
7254 | #endif | |
7255 | ||
7256 | _ACEOF | |
7257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7258 | $EGREP "Found it" >/dev/null 2>&1; then | |
7259 | result=yes | |
7260 | fi | |
7261 | rm -f conftest* | |
7262 | ||
7263 | if test -z "$result"; then | |
7264 | if test "$cross_compiling" = yes; then | |
7265 | # Depending upon the size, compute the lo and hi bounds. | |
7266 | cat >conftest.$ac_ext <<_ACEOF | |
7267 | /* confdefs.h. */ | |
7268 | _ACEOF | |
7269 | cat confdefs.h >>conftest.$ac_ext | |
7270 | cat >>conftest.$ac_ext <<_ACEOF | |
7271 | /* end confdefs.h. */ | |
7272 | #include <stddef.h> | |
7273 | int | |
7274 | main () | |
7275 | { | |
7276 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; | |
7277 | test_array [0] = 0 | |
7278 | ||
7279 | ; | |
7280 | return 0; | |
7281 | } | |
7282 | _ACEOF | |
7283 | rm -f conftest.$ac_objext | |
e1052144 TT |
7284 | if { (ac_try="$ac_compile" |
7285 | case "(($ac_try" in | |
7286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7287 | *) ac_try_echo=$ac_try;; | |
7288 | esac | |
7289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7290 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7291 | ac_status=$? |
7292 | grep -v '^ *+' conftest.er1 >conftest.err | |
7293 | rm -f conftest.er1 | |
7294 | cat conftest.err >&5 | |
7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7296 | (exit $ac_status); } && { |
7297 | test -z "$ac_c_werror_flag" || | |
7298 | test ! -s conftest.err | |
7299 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7300 | ac_lo=0 ac_mid=0 |
7301 | while :; do | |
7302 | cat >conftest.$ac_ext <<_ACEOF | |
7303 | /* confdefs.h. */ | |
7304 | _ACEOF | |
7305 | cat confdefs.h >>conftest.$ac_ext | |
7306 | cat >>conftest.$ac_ext <<_ACEOF | |
7307 | /* end confdefs.h. */ | |
7308 | #include <stddef.h> | |
7309 | int | |
7310 | main () | |
7311 | { | |
7312 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
7313 | test_array [0] = 0 | |
7314 | ||
7315 | ; | |
7316 | return 0; | |
7317 | } | |
7318 | _ACEOF | |
7319 | rm -f conftest.$ac_objext | |
e1052144 TT |
7320 | if { (ac_try="$ac_compile" |
7321 | case "(($ac_try" in | |
7322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7323 | *) ac_try_echo=$ac_try;; | |
7324 | esac | |
7325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7326 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7327 | ac_status=$? |
7328 | grep -v '^ *+' conftest.er1 >conftest.err | |
7329 | rm -f conftest.er1 | |
7330 | cat conftest.err >&5 | |
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7332 | (exit $ac_status); } && { |
7333 | test -z "$ac_c_werror_flag" || | |
7334 | test ! -s conftest.err | |
7335 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7336 | ac_hi=$ac_mid; break |
7337 | else | |
7338 | echo "$as_me: failed program was:" >&5 | |
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7340 | ||
e1052144 TT |
7341 | ac_lo=`expr $ac_mid + 1` |
7342 | if test $ac_lo -le $ac_mid; then | |
7343 | ac_lo= ac_hi= | |
7344 | break | |
7345 | fi | |
7346 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 7347 | fi |
e1052144 TT |
7348 | |
7349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7350 | done |
7351 | else | |
7352 | echo "$as_me: failed program was:" >&5 | |
7353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7354 | ||
e1052144 | 7355 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
7356 | /* confdefs.h. */ |
7357 | _ACEOF | |
7358 | cat confdefs.h >>conftest.$ac_ext | |
7359 | cat >>conftest.$ac_ext <<_ACEOF | |
7360 | /* end confdefs.h. */ | |
7361 | #include <stddef.h> | |
7362 | int | |
7363 | main () | |
7364 | { | |
7365 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; | |
7366 | test_array [0] = 0 | |
7367 | ||
7368 | ; | |
7369 | return 0; | |
7370 | } | |
7371 | _ACEOF | |
7372 | rm -f conftest.$ac_objext | |
e1052144 TT |
7373 | if { (ac_try="$ac_compile" |
7374 | case "(($ac_try" in | |
7375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7376 | *) ac_try_echo=$ac_try;; | |
7377 | esac | |
7378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7379 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7380 | ac_status=$? |
7381 | grep -v '^ *+' conftest.er1 >conftest.err | |
7382 | rm -f conftest.er1 | |
7383 | cat conftest.err >&5 | |
7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7385 | (exit $ac_status); } && { |
7386 | test -z "$ac_c_werror_flag" || | |
7387 | test ! -s conftest.err | |
7388 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7389 | ac_hi=-1 ac_mid=-1 |
7390 | while :; do | |
7391 | cat >conftest.$ac_ext <<_ACEOF | |
7392 | /* confdefs.h. */ | |
7393 | _ACEOF | |
7394 | cat confdefs.h >>conftest.$ac_ext | |
7395 | cat >>conftest.$ac_ext <<_ACEOF | |
7396 | /* end confdefs.h. */ | |
7397 | #include <stddef.h> | |
7398 | int | |
7399 | main () | |
7400 | { | |
7401 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; | |
7402 | test_array [0] = 0 | |
7403 | ||
7404 | ; | |
7405 | return 0; | |
7406 | } | |
7407 | _ACEOF | |
7408 | rm -f conftest.$ac_objext | |
e1052144 TT |
7409 | if { (ac_try="$ac_compile" |
7410 | case "(($ac_try" in | |
7411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7412 | *) ac_try_echo=$ac_try;; | |
7413 | esac | |
7414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7415 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7416 | ac_status=$? |
7417 | grep -v '^ *+' conftest.er1 >conftest.err | |
7418 | rm -f conftest.er1 | |
7419 | cat conftest.err >&5 | |
7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7421 | (exit $ac_status); } && { |
7422 | test -z "$ac_c_werror_flag" || | |
7423 | test ! -s conftest.err | |
7424 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7425 | ac_lo=$ac_mid; break |
7426 | else | |
7427 | echo "$as_me: failed program was:" >&5 | |
7428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7429 | ||
e1052144 TT |
7430 | ac_hi=`expr '(' $ac_mid ')' - 1` |
7431 | if test $ac_mid -le $ac_hi; then | |
7432 | ac_lo= ac_hi= | |
7433 | break | |
7434 | fi | |
7435 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 7436 | fi |
e1052144 TT |
7437 | |
7438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7439 | done |
7440 | else | |
7441 | echo "$as_me: failed program was:" >&5 | |
7442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7443 | ||
e1052144 | 7444 | ac_lo= ac_hi= |
b0cacab0 | 7445 | fi |
e1052144 TT |
7446 | |
7447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 7448 | fi |
e1052144 TT |
7449 | |
7450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7451 | # Binary search between lo and hi bounds. |
7452 | while test "x$ac_lo" != "x$ac_hi"; do | |
7453 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7454 | cat >conftest.$ac_ext <<_ACEOF | |
7455 | /* confdefs.h. */ | |
7456 | _ACEOF | |
7457 | cat confdefs.h >>conftest.$ac_ext | |
7458 | cat >>conftest.$ac_ext <<_ACEOF | |
7459 | /* end confdefs.h. */ | |
7460 | #include <stddef.h> | |
7461 | int | |
7462 | main () | |
7463 | { | |
7464 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; | |
7465 | test_array [0] = 0 | |
7466 | ||
7467 | ; | |
7468 | return 0; | |
7469 | } | |
7470 | _ACEOF | |
7471 | rm -f conftest.$ac_objext | |
e1052144 TT |
7472 | if { (ac_try="$ac_compile" |
7473 | case "(($ac_try" in | |
7474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7475 | *) ac_try_echo=$ac_try;; | |
7476 | esac | |
7477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7478 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7479 | ac_status=$? |
7480 | grep -v '^ *+' conftest.er1 >conftest.err | |
7481 | rm -f conftest.er1 | |
7482 | cat conftest.err >&5 | |
7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7484 | (exit $ac_status); } && { |
7485 | test -z "$ac_c_werror_flag" || | |
7486 | test ! -s conftest.err | |
7487 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7488 | ac_hi=$ac_mid |
7489 | else | |
7490 | echo "$as_me: failed program was:" >&5 | |
7491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7492 | ||
e1052144 | 7493 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 7494 | fi |
e1052144 TT |
7495 | |
7496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7497 | done |
7498 | case $ac_lo in | |
7499 | ?*) res_hi=$ac_lo;; | |
7500 | '') result=? ;; | |
7501 | esac | |
b0cacab0 TT |
7502 | else |
7503 | cat >conftest.$ac_ext <<_ACEOF | |
7504 | /* confdefs.h. */ | |
7505 | _ACEOF | |
7506 | cat confdefs.h >>conftest.$ac_ext | |
7507 | cat >>conftest.$ac_ext <<_ACEOF | |
7508 | /* end confdefs.h. */ | |
7509 | #include <stddef.h> | |
e1052144 TT |
7510 | static long int longval () { return ~(size_t)0 / 10; } |
7511 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } | |
b0cacab0 TT |
7512 | #include <stdio.h> |
7513 | #include <stdlib.h> | |
7514 | int | |
7515 | main () | |
7516 | { | |
7517 | ||
7518 | FILE *f = fopen ("conftest.val", "w"); | |
7519 | if (! f) | |
e1052144 | 7520 | return 1; |
b0cacab0 TT |
7521 | if ((~(size_t)0 / 10) < 0) |
7522 | { | |
e1052144 | 7523 | long int i = longval (); |
b0cacab0 | 7524 | if (i != (~(size_t)0 / 10)) |
e1052144 | 7525 | return 1; |
b0cacab0 TT |
7526 | fprintf (f, "%ld\n", i); |
7527 | } | |
7528 | else | |
7529 | { | |
e1052144 | 7530 | unsigned long int i = ulongval (); |
b0cacab0 | 7531 | if (i != (~(size_t)0 / 10)) |
e1052144 | 7532 | return 1; |
b0cacab0 TT |
7533 | fprintf (f, "%lu\n", i); |
7534 | } | |
e1052144 | 7535 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
7536 | |
7537 | ; | |
7538 | return 0; | |
7539 | } | |
7540 | _ACEOF | |
7541 | rm -f conftest$ac_exeext | |
e1052144 TT |
7542 | if { (ac_try="$ac_link" |
7543 | case "(($ac_try" in | |
7544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7545 | *) ac_try_echo=$ac_try;; | |
7546 | esac | |
7547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7548 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
7549 | ac_status=$? |
7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
7552 | { (case "(($ac_try" in |
7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7554 | *) ac_try_echo=$ac_try;; | |
7555 | esac | |
7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7557 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
7558 | ac_status=$? |
7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7560 | (exit $ac_status); }; }; then | |
7561 | res_hi=`cat conftest.val` | |
7562 | else | |
7563 | echo "$as_me: program exited with status $ac_status" >&5 | |
7564 | echo "$as_me: failed program was:" >&5 | |
7565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7566 | ||
7567 | ( exit $ac_status ) | |
7568 | result=? | |
7569 | fi | |
e1052144 | 7570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
7571 | fi |
7572 | rm -f conftest.val | |
29a5deed | 7573 | |
b0cacab0 TT |
7574 | if test "$cross_compiling" = yes; then |
7575 | # Depending upon the size, compute the lo and hi bounds. | |
7576 | cat >conftest.$ac_ext <<_ACEOF | |
7577 | /* confdefs.h. */ | |
7578 | _ACEOF | |
7579 | cat confdefs.h >>conftest.$ac_ext | |
7580 | cat >>conftest.$ac_ext <<_ACEOF | |
7581 | /* end confdefs.h. */ | |
7582 | #include <stddef.h> | |
7583 | int | |
7584 | main () | |
7585 | { | |
7586 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; | |
7587 | test_array [0] = 0 | |
7588 | ||
7589 | ; | |
7590 | return 0; | |
7591 | } | |
7592 | _ACEOF | |
7593 | rm -f conftest.$ac_objext | |
e1052144 TT |
7594 | if { (ac_try="$ac_compile" |
7595 | case "(($ac_try" in | |
7596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7597 | *) ac_try_echo=$ac_try;; | |
7598 | esac | |
7599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7600 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7601 | ac_status=$? |
7602 | grep -v '^ *+' conftest.er1 >conftest.err | |
7603 | rm -f conftest.er1 | |
7604 | cat conftest.err >&5 | |
7605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7606 | (exit $ac_status); } && { |
7607 | test -z "$ac_c_werror_flag" || | |
7608 | test ! -s conftest.err | |
7609 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7610 | ac_lo=0 ac_mid=0 |
7611 | while :; do | |
7612 | cat >conftest.$ac_ext <<_ACEOF | |
7613 | /* confdefs.h. */ | |
7614 | _ACEOF | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
7618 | #include <stddef.h> | |
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
7623 | test_array [0] = 0 | |
7624 | ||
7625 | ; | |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | rm -f conftest.$ac_objext | |
e1052144 TT |
7630 | if { (ac_try="$ac_compile" |
7631 | case "(($ac_try" in | |
7632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7633 | *) ac_try_echo=$ac_try;; | |
7634 | esac | |
7635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7636 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7637 | ac_status=$? |
7638 | grep -v '^ *+' conftest.er1 >conftest.err | |
7639 | rm -f conftest.er1 | |
7640 | cat conftest.err >&5 | |
7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7642 | (exit $ac_status); } && { |
7643 | test -z "$ac_c_werror_flag" || | |
7644 | test ! -s conftest.err | |
7645 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7646 | ac_hi=$ac_mid; break |
7647 | else | |
7648 | echo "$as_me: failed program was:" >&5 | |
7649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7650 | ||
e1052144 TT |
7651 | ac_lo=`expr $ac_mid + 1` |
7652 | if test $ac_lo -le $ac_mid; then | |
7653 | ac_lo= ac_hi= | |
7654 | break | |
7655 | fi | |
7656 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 7657 | fi |
e1052144 TT |
7658 | |
7659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7660 | done |
7661 | else | |
7662 | echo "$as_me: failed program was:" >&5 | |
7663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7664 | ||
e1052144 | 7665 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
7666 | /* confdefs.h. */ |
7667 | _ACEOF | |
7668 | cat confdefs.h >>conftest.$ac_ext | |
7669 | cat >>conftest.$ac_ext <<_ACEOF | |
7670 | /* end confdefs.h. */ | |
7671 | #include <stddef.h> | |
7672 | int | |
7673 | main () | |
7674 | { | |
7675 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; | |
7676 | test_array [0] = 0 | |
7677 | ||
7678 | ; | |
7679 | return 0; | |
7680 | } | |
7681 | _ACEOF | |
7682 | rm -f conftest.$ac_objext | |
e1052144 TT |
7683 | if { (ac_try="$ac_compile" |
7684 | case "(($ac_try" in | |
7685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7686 | *) ac_try_echo=$ac_try;; | |
7687 | esac | |
7688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7689 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7690 | ac_status=$? |
7691 | grep -v '^ *+' conftest.er1 >conftest.err | |
7692 | rm -f conftest.er1 | |
7693 | cat conftest.err >&5 | |
7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7695 | (exit $ac_status); } && { |
7696 | test -z "$ac_c_werror_flag" || | |
7697 | test ! -s conftest.err | |
7698 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7699 | ac_hi=-1 ac_mid=-1 |
7700 | while :; do | |
7701 | cat >conftest.$ac_ext <<_ACEOF | |
7702 | /* confdefs.h. */ | |
7703 | _ACEOF | |
7704 | cat confdefs.h >>conftest.$ac_ext | |
7705 | cat >>conftest.$ac_ext <<_ACEOF | |
7706 | /* end confdefs.h. */ | |
7707 | #include <stddef.h> | |
7708 | int | |
7709 | main () | |
7710 | { | |
7711 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; | |
7712 | test_array [0] = 0 | |
7713 | ||
7714 | ; | |
7715 | return 0; | |
7716 | } | |
7717 | _ACEOF | |
7718 | rm -f conftest.$ac_objext | |
e1052144 TT |
7719 | if { (ac_try="$ac_compile" |
7720 | case "(($ac_try" in | |
7721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7722 | *) ac_try_echo=$ac_try;; | |
7723 | esac | |
7724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7725 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7726 | ac_status=$? |
7727 | grep -v '^ *+' conftest.er1 >conftest.err | |
7728 | rm -f conftest.er1 | |
7729 | cat conftest.err >&5 | |
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7731 | (exit $ac_status); } && { |
7732 | test -z "$ac_c_werror_flag" || | |
7733 | test ! -s conftest.err | |
7734 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7735 | ac_lo=$ac_mid; break |
7736 | else | |
7737 | echo "$as_me: failed program was:" >&5 | |
7738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7739 | ||
e1052144 TT |
7740 | ac_hi=`expr '(' $ac_mid ')' - 1` |
7741 | if test $ac_mid -le $ac_hi; then | |
7742 | ac_lo= ac_hi= | |
7743 | break | |
7744 | fi | |
7745 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 7746 | fi |
e1052144 TT |
7747 | |
7748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7749 | done |
7750 | else | |
7751 | echo "$as_me: failed program was:" >&5 | |
7752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7753 | ||
e1052144 | 7754 | ac_lo= ac_hi= |
b0cacab0 | 7755 | fi |
e1052144 TT |
7756 | |
7757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 7758 | fi |
e1052144 TT |
7759 | |
7760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7761 | # Binary search between lo and hi bounds. |
7762 | while test "x$ac_lo" != "x$ac_hi"; do | |
7763 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7764 | cat >conftest.$ac_ext <<_ACEOF | |
7765 | /* confdefs.h. */ | |
7766 | _ACEOF | |
7767 | cat confdefs.h >>conftest.$ac_ext | |
7768 | cat >>conftest.$ac_ext <<_ACEOF | |
7769 | /* end confdefs.h. */ | |
7770 | #include <stddef.h> | |
7771 | int | |
7772 | main () | |
7773 | { | |
7774 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; | |
7775 | test_array [0] = 0 | |
7776 | ||
7777 | ; | |
7778 | return 0; | |
7779 | } | |
7780 | _ACEOF | |
7781 | rm -f conftest.$ac_objext | |
e1052144 TT |
7782 | if { (ac_try="$ac_compile" |
7783 | case "(($ac_try" in | |
7784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7785 | *) ac_try_echo=$ac_try;; | |
7786 | esac | |
7787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7788 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7789 | ac_status=$? |
7790 | grep -v '^ *+' conftest.er1 >conftest.err | |
7791 | rm -f conftest.er1 | |
7792 | cat conftest.err >&5 | |
7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7794 | (exit $ac_status); } && { |
7795 | test -z "$ac_c_werror_flag" || | |
7796 | test ! -s conftest.err | |
7797 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7798 | ac_hi=$ac_mid |
7799 | else | |
7800 | echo "$as_me: failed program was:" >&5 | |
7801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7802 | ||
e1052144 | 7803 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 7804 | fi |
e1052144 TT |
7805 | |
7806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7807 | done |
7808 | case $ac_lo in | |
7809 | ?*) res_lo=$ac_lo;; | |
7810 | '') result=? ;; | |
7811 | esac | |
b0cacab0 TT |
7812 | else |
7813 | cat >conftest.$ac_ext <<_ACEOF | |
7814 | /* confdefs.h. */ | |
7815 | _ACEOF | |
7816 | cat confdefs.h >>conftest.$ac_ext | |
7817 | cat >>conftest.$ac_ext <<_ACEOF | |
7818 | /* end confdefs.h. */ | |
7819 | #include <stddef.h> | |
e1052144 TT |
7820 | static long int longval () { return ~(size_t)0 % 10; } |
7821 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } | |
b0cacab0 TT |
7822 | #include <stdio.h> |
7823 | #include <stdlib.h> | |
7824 | int | |
7825 | main () | |
7826 | { | |
7827 | ||
7828 | FILE *f = fopen ("conftest.val", "w"); | |
7829 | if (! f) | |
e1052144 | 7830 | return 1; |
b0cacab0 TT |
7831 | if ((~(size_t)0 % 10) < 0) |
7832 | { | |
e1052144 | 7833 | long int i = longval (); |
b0cacab0 | 7834 | if (i != (~(size_t)0 % 10)) |
e1052144 | 7835 | return 1; |
b0cacab0 TT |
7836 | fprintf (f, "%ld\n", i); |
7837 | } | |
7838 | else | |
7839 | { | |
e1052144 | 7840 | unsigned long int i = ulongval (); |
b0cacab0 | 7841 | if (i != (~(size_t)0 % 10)) |
e1052144 | 7842 | return 1; |
b0cacab0 TT |
7843 | fprintf (f, "%lu\n", i); |
7844 | } | |
e1052144 | 7845 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
7846 | |
7847 | ; | |
7848 | return 0; | |
7849 | } | |
7850 | _ACEOF | |
7851 | rm -f conftest$ac_exeext | |
e1052144 TT |
7852 | if { (ac_try="$ac_link" |
7853 | case "(($ac_try" in | |
7854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7855 | *) ac_try_echo=$ac_try;; | |
7856 | esac | |
7857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7858 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
7859 | ac_status=$? |
7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
7862 | { (case "(($ac_try" in |
7863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7864 | *) ac_try_echo=$ac_try;; | |
7865 | esac | |
7866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7867 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
7868 | ac_status=$? |
7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7870 | (exit $ac_status); }; }; then | |
7871 | res_lo=`cat conftest.val` | |
7872 | else | |
7873 | echo "$as_me: program exited with status $ac_status" >&5 | |
7874 | echo "$as_me: failed program was:" >&5 | |
7875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7876 | ||
7877 | ( exit $ac_status ) | |
7878 | result=? | |
7879 | fi | |
e1052144 | 7880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
7881 | fi |
7882 | rm -f conftest.val | |
29a5deed | 7883 | |
b0cacab0 TT |
7884 | if test "$cross_compiling" = yes; then |
7885 | # Depending upon the size, compute the lo and hi bounds. | |
7886 | cat >conftest.$ac_ext <<_ACEOF | |
7887 | /* confdefs.h. */ | |
7888 | _ACEOF | |
7889 | cat confdefs.h >>conftest.$ac_ext | |
7890 | cat >>conftest.$ac_ext <<_ACEOF | |
7891 | /* end confdefs.h. */ | |
7892 | #include <stddef.h> | |
7893 | int | |
7894 | main () | |
7895 | { | |
7896 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; | |
7897 | test_array [0] = 0 | |
7898 | ||
7899 | ; | |
7900 | return 0; | |
7901 | } | |
7902 | _ACEOF | |
7903 | rm -f conftest.$ac_objext | |
e1052144 TT |
7904 | if { (ac_try="$ac_compile" |
7905 | case "(($ac_try" in | |
7906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7907 | *) ac_try_echo=$ac_try;; | |
7908 | esac | |
7909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7910 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7911 | ac_status=$? |
7912 | grep -v '^ *+' conftest.er1 >conftest.err | |
7913 | rm -f conftest.er1 | |
7914 | cat conftest.err >&5 | |
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7916 | (exit $ac_status); } && { |
7917 | test -z "$ac_c_werror_flag" || | |
7918 | test ! -s conftest.err | |
7919 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7920 | ac_lo=0 ac_mid=0 |
7921 | while :; do | |
7922 | cat >conftest.$ac_ext <<_ACEOF | |
7923 | /* confdefs.h. */ | |
7924 | _ACEOF | |
7925 | cat confdefs.h >>conftest.$ac_ext | |
7926 | cat >>conftest.$ac_ext <<_ACEOF | |
7927 | /* end confdefs.h. */ | |
7928 | #include <stddef.h> | |
7929 | int | |
7930 | main () | |
7931 | { | |
7932 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
7933 | test_array [0] = 0 | |
7934 | ||
7935 | ; | |
7936 | return 0; | |
7937 | } | |
7938 | _ACEOF | |
7939 | rm -f conftest.$ac_objext | |
e1052144 TT |
7940 | if { (ac_try="$ac_compile" |
7941 | case "(($ac_try" in | |
7942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7943 | *) ac_try_echo=$ac_try;; | |
7944 | esac | |
7945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7946 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
7947 | ac_status=$? |
7948 | grep -v '^ *+' conftest.er1 >conftest.err | |
7949 | rm -f conftest.er1 | |
7950 | cat conftest.err >&5 | |
7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
7952 | (exit $ac_status); } && { |
7953 | test -z "$ac_c_werror_flag" || | |
7954 | test ! -s conftest.err | |
7955 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
7956 | ac_hi=$ac_mid; break |
7957 | else | |
7958 | echo "$as_me: failed program was:" >&5 | |
7959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7960 | ||
e1052144 TT |
7961 | ac_lo=`expr $ac_mid + 1` |
7962 | if test $ac_lo -le $ac_mid; then | |
7963 | ac_lo= ac_hi= | |
7964 | break | |
7965 | fi | |
7966 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 7967 | fi |
e1052144 TT |
7968 | |
7969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
7970 | done |
7971 | else | |
7972 | echo "$as_me: failed program was:" >&5 | |
7973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7974 | ||
e1052144 | 7975 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
7976 | /* confdefs.h. */ |
7977 | _ACEOF | |
7978 | cat confdefs.h >>conftest.$ac_ext | |
7979 | cat >>conftest.$ac_ext <<_ACEOF | |
7980 | /* end confdefs.h. */ | |
7981 | #include <stddef.h> | |
7982 | int | |
7983 | main () | |
7984 | { | |
7985 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; | |
7986 | test_array [0] = 0 | |
7987 | ||
7988 | ; | |
7989 | return 0; | |
7990 | } | |
7991 | _ACEOF | |
7992 | rm -f conftest.$ac_objext | |
e1052144 TT |
7993 | if { (ac_try="$ac_compile" |
7994 | case "(($ac_try" in | |
7995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7996 | *) ac_try_echo=$ac_try;; | |
7997 | esac | |
7998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7999 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8000 | ac_status=$? |
8001 | grep -v '^ *+' conftest.er1 >conftest.err | |
8002 | rm -f conftest.er1 | |
8003 | cat conftest.err >&5 | |
8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8005 | (exit $ac_status); } && { |
8006 | test -z "$ac_c_werror_flag" || | |
8007 | test ! -s conftest.err | |
8008 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8009 | ac_hi=-1 ac_mid=-1 |
8010 | while :; do | |
8011 | cat >conftest.$ac_ext <<_ACEOF | |
8012 | /* confdefs.h. */ | |
8013 | _ACEOF | |
8014 | cat confdefs.h >>conftest.$ac_ext | |
8015 | cat >>conftest.$ac_ext <<_ACEOF | |
8016 | /* end confdefs.h. */ | |
8017 | #include <stddef.h> | |
8018 | int | |
8019 | main () | |
8020 | { | |
8021 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; | |
8022 | test_array [0] = 0 | |
8023 | ||
8024 | ; | |
8025 | return 0; | |
8026 | } | |
8027 | _ACEOF | |
8028 | rm -f conftest.$ac_objext | |
e1052144 TT |
8029 | if { (ac_try="$ac_compile" |
8030 | case "(($ac_try" in | |
8031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8032 | *) ac_try_echo=$ac_try;; | |
8033 | esac | |
8034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8035 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8036 | ac_status=$? |
8037 | grep -v '^ *+' conftest.er1 >conftest.err | |
8038 | rm -f conftest.er1 | |
8039 | cat conftest.err >&5 | |
8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8041 | (exit $ac_status); } && { |
8042 | test -z "$ac_c_werror_flag" || | |
8043 | test ! -s conftest.err | |
8044 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8045 | ac_lo=$ac_mid; break |
8046 | else | |
8047 | echo "$as_me: failed program was:" >&5 | |
8048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8049 | ||
e1052144 TT |
8050 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8051 | if test $ac_mid -le $ac_hi; then | |
8052 | ac_lo= ac_hi= | |
8053 | break | |
8054 | fi | |
8055 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 8056 | fi |
e1052144 TT |
8057 | |
8058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8059 | done |
8060 | else | |
8061 | echo "$as_me: failed program was:" >&5 | |
8062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8063 | ||
e1052144 | 8064 | ac_lo= ac_hi= |
b0cacab0 | 8065 | fi |
e1052144 TT |
8066 | |
8067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 8068 | fi |
e1052144 TT |
8069 | |
8070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8071 | # Binary search between lo and hi bounds. |
8072 | while test "x$ac_lo" != "x$ac_hi"; do | |
8073 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8074 | cat >conftest.$ac_ext <<_ACEOF | |
8075 | /* confdefs.h. */ | |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
8080 | #include <stddef.h> | |
8081 | int | |
8082 | main () | |
8083 | { | |
8084 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
8085 | test_array [0] = 0 | |
8086 | ||
8087 | ; | |
8088 | return 0; | |
8089 | } | |
8090 | _ACEOF | |
8091 | rm -f conftest.$ac_objext | |
e1052144 TT |
8092 | if { (ac_try="$ac_compile" |
8093 | case "(($ac_try" in | |
8094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8095 | *) ac_try_echo=$ac_try;; | |
8096 | esac | |
8097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8098 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8099 | ac_status=$? |
8100 | grep -v '^ *+' conftest.er1 >conftest.err | |
8101 | rm -f conftest.er1 | |
8102 | cat conftest.err >&5 | |
8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8104 | (exit $ac_status); } && { |
8105 | test -z "$ac_c_werror_flag" || | |
8106 | test ! -s conftest.err | |
8107 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8108 | ac_hi=$ac_mid |
8109 | else | |
8110 | echo "$as_me: failed program was:" >&5 | |
8111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8112 | ||
e1052144 | 8113 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 8114 | fi |
e1052144 TT |
8115 | |
8116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8117 | done |
8118 | case $ac_lo in | |
8119 | ?*) fits_in_uint=$ac_lo;; | |
8120 | '') result=? ;; | |
8121 | esac | |
b0cacab0 TT |
8122 | else |
8123 | cat >conftest.$ac_ext <<_ACEOF | |
8124 | /* confdefs.h. */ | |
8125 | _ACEOF | |
8126 | cat confdefs.h >>conftest.$ac_ext | |
8127 | cat >>conftest.$ac_ext <<_ACEOF | |
8128 | /* end confdefs.h. */ | |
8129 | #include <stddef.h> | |
e1052144 TT |
8130 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
8131 | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
b0cacab0 TT |
8132 | #include <stdio.h> |
8133 | #include <stdlib.h> | |
8134 | int | |
8135 | main () | |
8136 | { | |
8137 | ||
8138 | FILE *f = fopen ("conftest.val", "w"); | |
8139 | if (! f) | |
e1052144 | 8140 | return 1; |
b0cacab0 TT |
8141 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
8142 | { | |
e1052144 | 8143 | long int i = longval (); |
b0cacab0 | 8144 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
e1052144 | 8145 | return 1; |
b0cacab0 TT |
8146 | fprintf (f, "%ld\n", i); |
8147 | } | |
8148 | else | |
8149 | { | |
e1052144 | 8150 | unsigned long int i = ulongval (); |
b0cacab0 | 8151 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
e1052144 | 8152 | return 1; |
b0cacab0 TT |
8153 | fprintf (f, "%lu\n", i); |
8154 | } | |
e1052144 | 8155 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
8156 | |
8157 | ; | |
8158 | return 0; | |
8159 | } | |
8160 | _ACEOF | |
8161 | rm -f conftest$ac_exeext | |
e1052144 TT |
8162 | if { (ac_try="$ac_link" |
8163 | case "(($ac_try" in | |
8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8165 | *) ac_try_echo=$ac_try;; | |
8166 | esac | |
8167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8168 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
8169 | ac_status=$? |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
8172 | { (case "(($ac_try" in |
8173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8174 | *) ac_try_echo=$ac_try;; | |
8175 | esac | |
8176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8177 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
8178 | ac_status=$? |
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 | (exit $ac_status); }; }; then | |
8181 | fits_in_uint=`cat conftest.val` | |
8182 | else | |
8183 | echo "$as_me: program exited with status $ac_status" >&5 | |
8184 | echo "$as_me: failed program was:" >&5 | |
8185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8186 | ||
8187 | ( exit $ac_status ) | |
8188 | result=? | |
8189 | fi | |
e1052144 | 8190 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
8191 | fi |
8192 | rm -f conftest.val | |
29a5deed | 8193 | |
b0cacab0 TT |
8194 | if test "$fits_in_uint" = 1; then |
8195 | cat >conftest.$ac_ext <<_ACEOF | |
8196 | /* confdefs.h. */ | |
8197 | _ACEOF | |
8198 | cat confdefs.h >>conftest.$ac_ext | |
8199 | cat >>conftest.$ac_ext <<_ACEOF | |
8200 | /* end confdefs.h. */ | |
8201 | #include <stddef.h> | |
8202 | extern size_t foo; | |
8203 | extern unsigned long foo; | |
8204 | ||
8205 | int | |
8206 | main () | |
8207 | { | |
8208 | ||
8209 | ; | |
8210 | return 0; | |
8211 | } | |
8212 | _ACEOF | |
8213 | rm -f conftest.$ac_objext | |
e1052144 TT |
8214 | if { (ac_try="$ac_compile" |
8215 | case "(($ac_try" in | |
8216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8217 | *) ac_try_echo=$ac_try;; | |
8218 | esac | |
8219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8220 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8221 | ac_status=$? |
8222 | grep -v '^ *+' conftest.er1 >conftest.err | |
8223 | rm -f conftest.er1 | |
8224 | cat conftest.err >&5 | |
8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8226 | (exit $ac_status); } && { |
8227 | test -z "$ac_c_werror_flag" || | |
8228 | test ! -s conftest.err | |
8229 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8230 | fits_in_uint=0 |
8231 | else | |
8232 | echo "$as_me: failed program was:" >&5 | |
8233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8234 | ||
e1052144 | 8235 | |
b0cacab0 | 8236 | fi |
e1052144 TT |
8237 | |
8238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
8239 | fi |
8240 | if test -z "$result"; then | |
8241 | if test "$fits_in_uint" = 1; then | |
8242 | result="$res_hi$res_lo"U | |
8243 | else | |
8244 | result="$res_hi$res_lo"UL | |
8245 | fi | |
8246 | else | |
8247 | result='~(size_t)0' | |
8248 | fi | |
8249 | fi | |
e1052144 TT |
8250 | { echo "$as_me:$LINENO: result: $result" >&5 |
8251 | echo "${ECHO_T}$result" >&6; } | |
b0cacab0 TT |
8252 | if test "$result" != yes; then |
8253 | ||
8254 | cat >>confdefs.h <<_ACEOF | |
8255 | #define SIZE_MAX $result | |
8256 | _ACEOF | |
8257 | ||
8258 | fi | |
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | for ac_header in stdint.h | |
8264 | do | |
8265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
8266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8267 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8271 | fi | |
e1052144 TT |
8272 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8274 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
8275 | else |
8276 | # Is the header compilable? | |
e1052144 TT |
8277 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8278 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
8279 | cat >conftest.$ac_ext <<_ACEOF |
8280 | /* confdefs.h. */ | |
8281 | _ACEOF | |
8282 | cat confdefs.h >>conftest.$ac_ext | |
8283 | cat >>conftest.$ac_ext <<_ACEOF | |
8284 | /* end confdefs.h. */ | |
8285 | $ac_includes_default | |
8286 | #include <$ac_header> | |
8287 | _ACEOF | |
8288 | rm -f conftest.$ac_objext | |
e1052144 TT |
8289 | if { (ac_try="$ac_compile" |
8290 | case "(($ac_try" in | |
8291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8292 | *) ac_try_echo=$ac_try;; | |
8293 | esac | |
8294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8295 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8296 | ac_status=$? |
8297 | grep -v '^ *+' conftest.er1 >conftest.err | |
8298 | rm -f conftest.er1 | |
8299 | cat conftest.err >&5 | |
8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8301 | (exit $ac_status); } && { |
8302 | test -z "$ac_c_werror_flag" || | |
8303 | test ! -s conftest.err | |
8304 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8305 | ac_header_compiler=yes |
8306 | else | |
8307 | echo "$as_me: failed program was:" >&5 | |
8308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8309 | ||
e1052144 | 8310 | ac_header_compiler=no |
b0cacab0 | 8311 | fi |
e1052144 TT |
8312 | |
8313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8314 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8315 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
8316 | |
8317 | # Is the header present? | |
e1052144 TT |
8318 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8319 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
8320 | cat >conftest.$ac_ext <<_ACEOF |
8321 | /* confdefs.h. */ | |
8322 | _ACEOF | |
8323 | cat confdefs.h >>conftest.$ac_ext | |
8324 | cat >>conftest.$ac_ext <<_ACEOF | |
8325 | /* end confdefs.h. */ | |
8326 | #include <$ac_header> | |
8327 | _ACEOF | |
e1052144 TT |
8328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8329 | case "(($ac_try" in | |
8330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8331 | *) ac_try_echo=$ac_try;; | |
8332 | esac | |
8333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
8335 | ac_status=$? |
8336 | grep -v '^ *+' conftest.er1 >conftest.err | |
8337 | rm -f conftest.er1 | |
8338 | cat conftest.err >&5 | |
8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8340 | (exit $ac_status); } >/dev/null && { |
8341 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8342 | test ! -s conftest.err | |
8343 | }; then | |
b0cacab0 TT |
8344 | ac_header_preproc=yes |
8345 | else | |
8346 | echo "$as_me: failed program was:" >&5 | |
8347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8348 | ||
8349 | ac_header_preproc=no | |
8350 | fi | |
e1052144 | 8351 | |
b0cacab0 | 8352 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
8353 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8354 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
8355 | |
8356 | # So? What about this header? | |
8357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8358 | yes:no: ) | |
8359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8362 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8363 | ac_header_preproc=yes | |
8364 | ;; | |
8365 | no:yes:* ) | |
8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8377 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 8378 | |
b0cacab0 TT |
8379 | ;; |
8380 | esac | |
e1052144 TT |
8381 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
8384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8385 | else | |
8386 | eval "$as_ac_Header=\$ac_header_preproc" | |
8387 | fi | |
e1052144 TT |
8388 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8389 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8390 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
8391 | |
8392 | fi | |
8393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8394 | cat >>confdefs.h <<_ACEOF | |
8395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8396 | _ACEOF | |
8397 | ||
8398 | fi | |
8399 | ||
8400 | done | |
8401 | ||
8402 | ||
8403 | ||
8404 | if test "X$prefix" = "XNONE"; then | |
8405 | acl_final_prefix="$ac_default_prefix" | |
8406 | else | |
8407 | acl_final_prefix="$prefix" | |
8408 | fi | |
8409 | if test "X$exec_prefix" = "XNONE"; then | |
8410 | acl_final_exec_prefix='${prefix}' | |
8411 | else | |
8412 | acl_final_exec_prefix="$exec_prefix" | |
8413 | fi | |
8414 | acl_save_prefix="$prefix" | |
8415 | prefix="$acl_final_prefix" | |
8416 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8417 | prefix="$acl_save_prefix" | |
8418 | ||
8419 | ||
e1052144 | 8420 | # Check whether --with-gnu-ld was given. |
b0cacab0 | 8421 | if test "${with_gnu_ld+set}" = set; then |
e1052144 | 8422 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
b0cacab0 TT |
8423 | else |
8424 | with_gnu_ld=no | |
e1052144 TT |
8425 | fi |
8426 | ||
b0cacab0 TT |
8427 | # Prepare PATH_SEPARATOR. |
8428 | # The user is always right. | |
8429 | if test "${PATH_SEPARATOR+set}" != set; then | |
8430 | echo "#! /bin/sh" >conf$$.sh | |
8431 | echo "exit 0" >>conf$$.sh | |
8432 | chmod +x conf$$.sh | |
8433 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8434 | PATH_SEPARATOR=';' | |
8435 | else | |
8436 | PATH_SEPARATOR=: | |
8437 | fi | |
8438 | rm -f conf$$.sh | |
8439 | fi | |
8440 | ac_prog=ld | |
8441 | if test "$GCC" = yes; then | |
8442 | # Check if gcc -print-prog-name=ld gives a path. | |
e1052144 TT |
8443 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
8444 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } | |
b0cacab0 TT |
8445 | case $host in |
8446 | *-*-mingw*) | |
8447 | # gcc leaves a trailing carriage return which upsets mingw | |
8448 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8449 | *) | |
8450 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
8451 | esac | |
8452 | case $ac_prog in | |
8453 | # Accept absolute paths. | |
8454 | [\\/]* | [A-Za-z]:[\\/]*) | |
8455 | re_direlt='/[^/][^/]*/\.\./' | |
8456 | # Canonicalize the path of ld | |
8457 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
8458 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
8459 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
8460 | done | |
8461 | test -z "$LD" && LD="$ac_prog" | |
8462 | ;; | |
8463 | "") | |
8464 | # If it fails, then pretend we aren't using GCC. | |
8465 | ac_prog=ld | |
8466 | ;; | |
8467 | *) | |
8468 | # If it is relative, then search for the first ld in PATH. | |
8469 | with_gnu_ld=unknown | |
8470 | ;; | |
8471 | esac | |
8472 | elif test "$with_gnu_ld" = yes; then | |
e1052144 TT |
8473 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
8474 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
b0cacab0 | 8475 | else |
e1052144 TT |
8476 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
8477 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
a64c9c13 | 8478 | fi |
b0cacab0 TT |
8479 | if test "${acl_cv_path_LD+set}" = set; then |
8480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8481 | else | |
8482 | if test -z "$LD"; then | |
8483 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
8484 | for ac_dir in $PATH; do | |
8485 | test -z "$ac_dir" && ac_dir=. | |
8486 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8487 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8488 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8489 | # but apparently some GNU ld's only accept -v. | |
8490 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8491 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
8492 | *GNU* | *'with BFD'*) | |
8493 | test "$with_gnu_ld" != no && break ;; | |
8494 | *) | |
8495 | test "$with_gnu_ld" != yes && break ;; | |
8496 | esac | |
8497 | fi | |
8498 | done | |
8499 | IFS="$ac_save_ifs" | |
8500 | else | |
8501 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
a64c9c13 | 8502 | fi |
a04eba3f | 8503 | fi |
93636bde | 8504 | |
b0cacab0 TT |
8505 | LD="$acl_cv_path_LD" |
8506 | if test -n "$LD"; then | |
e1052144 TT |
8507 | { echo "$as_me:$LINENO: result: $LD" >&5 |
8508 | echo "${ECHO_T}$LD" >&6; } | |
a64c9c13 | 8509 | else |
e1052144 TT |
8510 | { echo "$as_me:$LINENO: result: no" >&5 |
8511 | echo "${ECHO_T}no" >&6; } | |
a64c9c13 | 8512 | fi |
b0cacab0 TT |
8513 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
8514 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
8515 | { (exit 1); exit 1; }; } | |
e1052144 TT |
8516 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
8517 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
b0cacab0 TT |
8518 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
8519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8520 | else | |
8521 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
8522 | case `$LD -v 2>&1 </dev/null` in | |
8523 | *GNU* | *'with BFD'*) | |
8524 | acl_cv_prog_gnu_ld=yes ;; | |
8525 | *) | |
8526 | acl_cv_prog_gnu_ld=no ;; | |
8527 | esac | |
07a0db15 | 8528 | fi |
e1052144 TT |
8529 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
8530 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } | |
b0cacab0 | 8531 | with_gnu_ld=$acl_cv_prog_gnu_ld |
07a0db15 | 8532 | |
a64c9c13 | 8533 | |
07a0db15 | 8534 | |
e1052144 TT |
8535 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
8536 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } | |
b0cacab0 TT |
8537 | if test "${acl_cv_rpath+set}" = set; then |
8538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8539 | else | |
a04eba3f | 8540 | |
b0cacab0 TT |
8541 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
8542 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
8543 | . ./conftest.sh | |
8544 | rm -f ./conftest.sh | |
8545 | acl_cv_rpath=done | |
a04eba3f | 8546 | |
07a0db15 | 8547 | fi |
e1052144 TT |
8548 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
8549 | echo "${ECHO_T}$acl_cv_rpath" >&6; } | |
b0cacab0 TT |
8550 | wl="$acl_cv_wl" |
8551 | libext="$acl_cv_libext" | |
8552 | shlibext="$acl_cv_shlibext" | |
8553 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
8554 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
8555 | hardcode_direct="$acl_cv_hardcode_direct" | |
8556 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
e1052144 | 8557 | # Check whether --enable-rpath was given. |
b0cacab0 | 8558 | if test "${enable_rpath+set}" = set; then |
e1052144 | 8559 | enableval=$enable_rpath; : |
b0cacab0 TT |
8560 | else |
8561 | enable_rpath=yes | |
e1052144 TT |
8562 | fi |
8563 | ||
b0cacab0 TT |
8564 | |
8565 | ||
93636bde | 8566 | |
a64c9c13 | 8567 | |
a64c9c13 | 8568 | |
93636bde | 8569 | |
93636bde | 8570 | |
93636bde | 8571 | use_additional=yes |
b0cacab0 | 8572 | |
07a0db15 TT |
8573 | acl_save_prefix="$prefix" |
8574 | prefix="$acl_final_prefix" | |
93636bde TT |
8575 | acl_save_exec_prefix="$exec_prefix" |
8576 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 8577 | |
93636bde TT |
8578 | eval additional_includedir=\"$includedir\" |
8579 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 8580 | |
93636bde TT |
8581 | exec_prefix="$acl_save_exec_prefix" |
8582 | prefix="$acl_save_prefix" | |
8583 | ||
b0cacab0 | 8584 | |
e1052144 | 8585 | # Check whether --with-libiconv-prefix was given. |
93636bde | 8586 | if test "${with_libiconv_prefix+set}" = set; then |
e1052144 | 8587 | withval=$with_libiconv_prefix; |
93636bde TT |
8588 | if test "X$withval" = "Xno"; then |
8589 | use_additional=no | |
8590 | else | |
8591 | if test "X$withval" = "X"; then | |
b0cacab0 | 8592 | |
93636bde TT |
8593 | acl_save_prefix="$prefix" |
8594 | prefix="$acl_final_prefix" | |
8595 | acl_save_exec_prefix="$exec_prefix" | |
8596 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 8597 | |
93636bde TT |
8598 | eval additional_includedir=\"$includedir\" |
8599 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 8600 | |
93636bde | 8601 | exec_prefix="$acl_save_exec_prefix" |
07a0db15 TT |
8602 | prefix="$acl_save_prefix" |
8603 | ||
07a0db15 | 8604 | else |
93636bde TT |
8605 | additional_includedir="$withval/include" |
8606 | additional_libdir="$withval/lib" | |
07a0db15 TT |
8607 | fi |
8608 | fi | |
07a0db15 | 8609 | |
e1052144 TT |
8610 | fi |
8611 | ||
a04eba3f TT |
8612 | LIBICONV= |
8613 | LTLIBICONV= | |
8614 | INCICONV= | |
8615 | rpathdirs= | |
8616 | ltrpathdirs= | |
8617 | names_already_handled= | |
8618 | names_next_round='iconv ' | |
8619 | while test -n "$names_next_round"; do | |
8620 | names_this_round="$names_next_round" | |
8621 | names_next_round= | |
8622 | for name in $names_this_round; do | |
8623 | already_handled= | |
8624 | for n in $names_already_handled; do | |
8625 | if test "$n" = "$name"; then | |
8626 | already_handled=yes | |
8627 | break | |
8628 | fi | |
8629 | done | |
8630 | if test -z "$already_handled"; then | |
8631 | names_already_handled="$names_already_handled $name" | |
8632 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
8633 | eval value=\"\$HAVE_LIB$uppername\" | |
8634 | if test -n "$value"; then | |
8635 | if test "$value" = yes; then | |
8636 | eval value=\"\$LIB$uppername\" | |
8637 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
8638 | eval value=\"\$LTLIB$uppername\" | |
8639 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
8640 | else | |
8641 | : | |
8642 | fi | |
8643 | else | |
8644 | found_dir= | |
8645 | found_la= | |
8646 | found_so= | |
8647 | found_a= | |
8648 | if test $use_additional = yes; then | |
8649 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
8650 | found_dir="$additional_libdir" | |
8651 | found_so="$additional_libdir/lib$name.$shlibext" | |
8652 | if test -f "$additional_libdir/lib$name.la"; then | |
8653 | found_la="$additional_libdir/lib$name.la" | |
8654 | fi | |
8655 | else | |
8656 | if test -f "$additional_libdir/lib$name.$libext"; then | |
8657 | found_dir="$additional_libdir" | |
8658 | found_a="$additional_libdir/lib$name.$libext" | |
8659 | if test -f "$additional_libdir/lib$name.la"; then | |
8660 | found_la="$additional_libdir/lib$name.la" | |
8661 | fi | |
8662 | fi | |
8663 | fi | |
8664 | fi | |
8665 | if test "X$found_dir" = "X"; then | |
8666 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 8667 | |
a04eba3f TT |
8668 | acl_save_prefix="$prefix" |
8669 | prefix="$acl_final_prefix" | |
8670 | acl_save_exec_prefix="$exec_prefix" | |
8671 | exec_prefix="$acl_final_exec_prefix" | |
8672 | eval x=\"$x\" | |
8673 | exec_prefix="$acl_save_exec_prefix" | |
8674 | prefix="$acl_save_prefix" | |
8675 | ||
8676 | case "$x" in | |
8677 | -L*) | |
8678 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8679 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
8680 | found_dir="$dir" | |
8681 | found_so="$dir/lib$name.$shlibext" | |
8682 | if test -f "$dir/lib$name.la"; then | |
8683 | found_la="$dir/lib$name.la" | |
8684 | fi | |
8685 | else | |
8686 | if test -f "$dir/lib$name.$libext"; then | |
8687 | found_dir="$dir" | |
8688 | found_a="$dir/lib$name.$libext" | |
8689 | if test -f "$dir/lib$name.la"; then | |
8690 | found_la="$dir/lib$name.la" | |
8691 | fi | |
8692 | fi | |
8693 | fi | |
8694 | ;; | |
8695 | esac | |
8696 | if test "X$found_dir" != "X"; then | |
8697 | break | |
8698 | fi | |
8699 | done | |
8700 | fi | |
8701 | if test "X$found_dir" != "X"; then | |
8702 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
8703 | if test "X$found_so" != "X"; then | |
8704 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
8705 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8706 | else | |
8707 | haveit= | |
8708 | for x in $ltrpathdirs; do | |
8709 | if test "X$x" = "X$found_dir"; then | |
8710 | haveit=yes | |
8711 | break | |
8712 | fi | |
8713 | done | |
8714 | if test -z "$haveit"; then | |
8715 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8716 | fi | |
8717 | if test "$hardcode_direct" = yes; then | |
8718 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8719 | else | |
8720 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
8721 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8722 | haveit= | |
8723 | for x in $rpathdirs; do | |
8724 | if test "X$x" = "X$found_dir"; then | |
8725 | haveit=yes | |
8726 | break | |
8727 | fi | |
8728 | done | |
8729 | if test -z "$haveit"; then | |
8730 | rpathdirs="$rpathdirs $found_dir" | |
8731 | fi | |
8732 | else | |
8733 | haveit= | |
8734 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 8735 | |
a04eba3f TT |
8736 | acl_save_prefix="$prefix" |
8737 | prefix="$acl_final_prefix" | |
8738 | acl_save_exec_prefix="$exec_prefix" | |
8739 | exec_prefix="$acl_final_exec_prefix" | |
8740 | eval x=\"$x\" | |
8741 | exec_prefix="$acl_save_exec_prefix" | |
8742 | prefix="$acl_save_prefix" | |
8743 | ||
8744 | if test "X$x" = "X-L$found_dir"; then | |
8745 | haveit=yes | |
8746 | break | |
8747 | fi | |
8748 | done | |
8749 | if test -z "$haveit"; then | |
8750 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
8751 | fi | |
8752 | if test "$hardcode_minus_L" != no; then | |
8753 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
8754 | else | |
8755 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8756 | fi | |
8757 | fi | |
8758 | fi | |
8759 | fi | |
8760 | else | |
8761 | if test "X$found_a" != "X"; then | |
8762 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
8763 | else | |
8764 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
8765 | fi | |
8766 | fi | |
8767 | additional_includedir= | |
8768 | case "$found_dir" in | |
8769 | */lib | */lib/) | |
8770 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
8771 | additional_includedir="$basedir/include" | |
8772 | ;; | |
8773 | esac | |
8774 | if test "X$additional_includedir" != "X"; then | |
8775 | if test "X$additional_includedir" != "X/usr/include"; then | |
8776 | haveit= | |
8777 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8778 | if test -n "$GCC"; then | |
8779 | case $host_os in | |
8780 | linux*) haveit=yes;; | |
8781 | esac | |
8782 | fi | |
8783 | fi | |
8784 | if test -z "$haveit"; then | |
8785 | for x in $CPPFLAGS $INCICONV; do | |
b0cacab0 | 8786 | |
a04eba3f TT |
8787 | acl_save_prefix="$prefix" |
8788 | prefix="$acl_final_prefix" | |
8789 | acl_save_exec_prefix="$exec_prefix" | |
8790 | exec_prefix="$acl_final_exec_prefix" | |
8791 | eval x=\"$x\" | |
8792 | exec_prefix="$acl_save_exec_prefix" | |
8793 | prefix="$acl_save_prefix" | |
8794 | ||
8795 | if test "X$x" = "X-I$additional_includedir"; then | |
8796 | haveit=yes | |
8797 | break | |
8798 | fi | |
8799 | done | |
8800 | if test -z "$haveit"; then | |
8801 | if test -d "$additional_includedir"; then | |
8802 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
8803 | fi | |
8804 | fi | |
8805 | fi | |
8806 | fi | |
8807 | fi | |
8808 | if test -n "$found_la"; then | |
8809 | save_libdir="$libdir" | |
8810 | case "$found_la" in | |
8811 | */* | *\\*) . "$found_la" ;; | |
8812 | *) . "./$found_la" ;; | |
8813 | esac | |
8814 | libdir="$save_libdir" | |
8815 | for dep in $dependency_libs; do | |
8816 | case "$dep" in | |
8817 | -L*) | |
8818 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8819 | if test "X$additional_libdir" != "X/usr/lib"; then | |
8820 | haveit= | |
8821 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
8822 | if test -n "$GCC"; then | |
8823 | case $host_os in | |
8824 | linux*) haveit=yes;; | |
8825 | esac | |
8826 | fi | |
8827 | fi | |
8828 | if test -z "$haveit"; then | |
8829 | haveit= | |
8830 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 8831 | |
a04eba3f TT |
8832 | acl_save_prefix="$prefix" |
8833 | prefix="$acl_final_prefix" | |
8834 | acl_save_exec_prefix="$exec_prefix" | |
8835 | exec_prefix="$acl_final_exec_prefix" | |
8836 | eval x=\"$x\" | |
8837 | exec_prefix="$acl_save_exec_prefix" | |
8838 | prefix="$acl_save_prefix" | |
8839 | ||
8840 | if test "X$x" = "X-L$additional_libdir"; then | |
8841 | haveit=yes | |
8842 | break | |
8843 | fi | |
8844 | done | |
8845 | if test -z "$haveit"; then | |
8846 | if test -d "$additional_libdir"; then | |
8847 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
8848 | fi | |
8849 | fi | |
8850 | haveit= | |
8851 | for x in $LDFLAGS $LTLIBICONV; do | |
b0cacab0 | 8852 | |
a04eba3f TT |
8853 | acl_save_prefix="$prefix" |
8854 | prefix="$acl_final_prefix" | |
8855 | acl_save_exec_prefix="$exec_prefix" | |
8856 | exec_prefix="$acl_final_exec_prefix" | |
8857 | eval x=\"$x\" | |
8858 | exec_prefix="$acl_save_exec_prefix" | |
8859 | prefix="$acl_save_prefix" | |
8860 | ||
8861 | if test "X$x" = "X-L$additional_libdir"; then | |
8862 | haveit=yes | |
8863 | break | |
8864 | fi | |
8865 | done | |
8866 | if test -z "$haveit"; then | |
8867 | if test -d "$additional_libdir"; then | |
8868 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
8869 | fi | |
8870 | fi | |
8871 | fi | |
8872 | fi | |
8873 | ;; | |
8874 | -R*) | |
8875 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8876 | if test "$enable_rpath" != no; then | |
8877 | haveit= | |
8878 | for x in $rpathdirs; do | |
8879 | if test "X$x" = "X$dir"; then | |
8880 | haveit=yes | |
8881 | break | |
8882 | fi | |
8883 | done | |
8884 | if test -z "$haveit"; then | |
8885 | rpathdirs="$rpathdirs $dir" | |
8886 | fi | |
8887 | haveit= | |
8888 | for x in $ltrpathdirs; do | |
8889 | if test "X$x" = "X$dir"; then | |
8890 | haveit=yes | |
8891 | break | |
8892 | fi | |
8893 | done | |
8894 | if test -z "$haveit"; then | |
8895 | ltrpathdirs="$ltrpathdirs $dir" | |
8896 | fi | |
8897 | fi | |
8898 | ;; | |
8899 | -l*) | |
8900 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8901 | ;; | |
8902 | *.la) | |
8903 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8904 | ;; | |
8905 | *) | |
8906 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
8907 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
8908 | ;; | |
8909 | esac | |
8910 | done | |
8911 | fi | |
8912 | else | |
8913 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8914 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
8915 | fi | |
8916 | fi | |
8917 | fi | |
8918 | done | |
8919 | done | |
8920 | if test "X$rpathdirs" != "X"; then | |
8921 | if test -n "$hardcode_libdir_separator"; then | |
8922 | alldirs= | |
8923 | for found_dir in $rpathdirs; do | |
8924 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
8925 | done | |
8926 | acl_save_libdir="$libdir" | |
8927 | libdir="$alldirs" | |
8928 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8929 | libdir="$acl_save_libdir" | |
8930 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8931 | else | |
8932 | for found_dir in $rpathdirs; do | |
8933 | acl_save_libdir="$libdir" | |
8934 | libdir="$found_dir" | |
8935 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8936 | libdir="$acl_save_libdir" | |
8937 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8938 | done | |
8939 | fi | |
8940 | fi | |
8941 | if test "X$ltrpathdirs" != "X"; then | |
8942 | for found_dir in $ltrpathdirs; do | |
8943 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8944 | done | |
8945 | fi | |
a64c9c13 | 8946 | |
93636bde TT |
8947 | |
8948 | ||
93636bde | 8949 | |
b0cacab0 TT |
8950 | |
8951 | ||
8952 | ||
8953 | ||
e1052144 TT |
8954 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
8955 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
8956 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
8957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8958 | else | |
8959 | cat >conftest.$ac_ext <<_ACEOF | |
8960 | /* confdefs.h. */ | |
8961 | _ACEOF | |
8962 | cat confdefs.h >>conftest.$ac_ext | |
8963 | cat >>conftest.$ac_ext <<_ACEOF | |
8964 | /* end confdefs.h. */ | |
8965 | $ac_includes_default | |
e1052144 | 8966 | typedef ptrdiff_t ac__type_new_; |
b0cacab0 TT |
8967 | int |
8968 | main () | |
8969 | { | |
e1052144 | 8970 | if ((ac__type_new_ *) 0) |
b0cacab0 | 8971 | return 0; |
e1052144 | 8972 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
8973 | return 0; |
8974 | ; | |
8975 | return 0; | |
8976 | } | |
8977 | _ACEOF | |
8978 | rm -f conftest.$ac_objext | |
e1052144 TT |
8979 | if { (ac_try="$ac_compile" |
8980 | case "(($ac_try" in | |
8981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8982 | *) ac_try_echo=$ac_try;; | |
8983 | esac | |
8984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8985 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
8986 | ac_status=$? |
8987 | grep -v '^ *+' conftest.er1 >conftest.err | |
8988 | rm -f conftest.er1 | |
8989 | cat conftest.err >&5 | |
8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
8991 | (exit $ac_status); } && { |
8992 | test -z "$ac_c_werror_flag" || | |
8993 | test ! -s conftest.err | |
8994 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
8995 | ac_cv_type_ptrdiff_t=yes |
8996 | else | |
8997 | echo "$as_me: failed program was:" >&5 | |
8998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8999 | ||
e1052144 | 9000 | ac_cv_type_ptrdiff_t=no |
b0cacab0 | 9001 | fi |
e1052144 TT |
9002 | |
9003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9004 | fi |
e1052144 TT |
9005 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
9006 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } | |
b0cacab0 TT |
9007 | if test $ac_cv_type_ptrdiff_t = yes; then |
9008 | : | |
9009 | else | |
9010 | ||
9011 | cat >>confdefs.h <<\_ACEOF | |
9012 | #define ptrdiff_t long | |
9013 | _ACEOF | |
9014 | ||
9015 | ||
9016 | fi | |
9017 | ||
9018 | ||
9019 | ||
9020 | ||
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
9029 | stdlib.h string.h unistd.h sys/param.h | |
9030 | do | |
9031 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
9032 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9033 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
9036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9037 | fi | |
e1052144 TT |
9038 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9039 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9040 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
9041 | else |
9042 | # Is the header compilable? | |
e1052144 TT |
9043 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9044 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
9045 | cat >conftest.$ac_ext <<_ACEOF |
9046 | /* confdefs.h. */ | |
9047 | _ACEOF | |
9048 | cat confdefs.h >>conftest.$ac_ext | |
9049 | cat >>conftest.$ac_ext <<_ACEOF | |
9050 | /* end confdefs.h. */ | |
9051 | $ac_includes_default | |
9052 | #include <$ac_header> | |
9053 | _ACEOF | |
9054 | rm -f conftest.$ac_objext | |
e1052144 TT |
9055 | if { (ac_try="$ac_compile" |
9056 | case "(($ac_try" in | |
9057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9058 | *) ac_try_echo=$ac_try;; | |
9059 | esac | |
9060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9061 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9062 | ac_status=$? |
9063 | grep -v '^ *+' conftest.er1 >conftest.err | |
9064 | rm -f conftest.er1 | |
9065 | cat conftest.err >&5 | |
9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9067 | (exit $ac_status); } && { |
9068 | test -z "$ac_c_werror_flag" || | |
9069 | test ! -s conftest.err | |
9070 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9071 | ac_header_compiler=yes |
9072 | else | |
9073 | echo "$as_me: failed program was:" >&5 | |
9074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9075 | ||
e1052144 | 9076 | ac_header_compiler=no |
b0cacab0 | 9077 | fi |
e1052144 TT |
9078 | |
9079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9080 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9081 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
9082 | |
9083 | # Is the header present? | |
e1052144 TT |
9084 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9085 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
9086 | cat >conftest.$ac_ext <<_ACEOF |
9087 | /* confdefs.h. */ | |
9088 | _ACEOF | |
9089 | cat confdefs.h >>conftest.$ac_ext | |
9090 | cat >>conftest.$ac_ext <<_ACEOF | |
9091 | /* end confdefs.h. */ | |
9092 | #include <$ac_header> | |
9093 | _ACEOF | |
e1052144 TT |
9094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9095 | case "(($ac_try" in | |
9096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9097 | *) ac_try_echo=$ac_try;; | |
9098 | esac | |
9099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
9101 | ac_status=$? |
9102 | grep -v '^ *+' conftest.er1 >conftest.err | |
9103 | rm -f conftest.er1 | |
9104 | cat conftest.err >&5 | |
9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9106 | (exit $ac_status); } >/dev/null && { |
9107 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9108 | test ! -s conftest.err | |
9109 | }; then | |
b0cacab0 TT |
9110 | ac_header_preproc=yes |
9111 | else | |
9112 | echo "$as_me: failed program was:" >&5 | |
9113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9114 | ||
9115 | ac_header_preproc=no | |
9116 | fi | |
e1052144 | 9117 | |
b0cacab0 | 9118 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
9119 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9120 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
9121 | |
9122 | # So? What about this header? | |
9123 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9124 | yes:no: ) | |
9125 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9126 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9128 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9129 | ac_header_preproc=yes | |
9130 | ;; | |
9131 | no:yes:* ) | |
9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9133 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9134 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9135 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9136 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9137 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9138 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9139 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9142 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9143 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 9144 | |
b0cacab0 TT |
9145 | ;; |
9146 | esac | |
e1052144 TT |
9147 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9149 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
9150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9151 | else | |
9152 | eval "$as_ac_Header=\$ac_header_preproc" | |
9153 | fi | |
e1052144 TT |
9154 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9156 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
9157 | |
9158 | fi | |
9159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9160 | cat >>confdefs.h <<_ACEOF | |
9161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9162 | _ACEOF | |
9163 | ||
9164 | fi | |
9165 | ||
9166 | done | |
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | ||
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | ||
9183 | ||
9184 | ||
9185 | ||
9186 | ||
9187 | ||
9188 | ||
9189 | ||
9190 | ||
9191 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ | |
9192 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | |
9193 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | |
9194 | __fsetlocking | |
9195 | do | |
9196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
e1052144 TT |
9197 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9199 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
9200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9201 | else | |
9202 | cat >conftest.$ac_ext <<_ACEOF | |
9203 | /* confdefs.h. */ | |
9204 | _ACEOF | |
9205 | cat confdefs.h >>conftest.$ac_ext | |
9206 | cat >>conftest.$ac_ext <<_ACEOF | |
9207 | /* end confdefs.h. */ | |
9208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9210 | #define $ac_func innocuous_$ac_func | |
9211 | ||
9212 | /* System header to define __stub macros and hopefully few prototypes, | |
9213 | which can conflict with char $ac_func (); below. | |
9214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9215 | <limits.h> exists even on freestanding compilers. */ | |
9216 | ||
9217 | #ifdef __STDC__ | |
9218 | # include <limits.h> | |
9219 | #else | |
9220 | # include <assert.h> | |
9221 | #endif | |
9222 | ||
9223 | #undef $ac_func | |
9224 | ||
e1052144 TT |
9225 | /* Override any GCC internal prototype to avoid an error. |
9226 | Use char because int might match the return type of a GCC | |
9227 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
9228 | #ifdef __cplusplus |
9229 | extern "C" | |
b0cacab0 | 9230 | #endif |
b0cacab0 TT |
9231 | char $ac_func (); |
9232 | /* The GNU C library defines this for functions which it implements | |
9233 | to always fail with ENOSYS. Some functions are actually named | |
9234 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 9235 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b0cacab0 | 9236 | choke me |
b0cacab0 TT |
9237 | #endif |
9238 | ||
9239 | int | |
9240 | main () | |
9241 | { | |
e1052144 | 9242 | return $ac_func (); |
b0cacab0 TT |
9243 | ; |
9244 | return 0; | |
9245 | } | |
9246 | _ACEOF | |
9247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9248 | if { (ac_try="$ac_link" |
9249 | case "(($ac_try" in | |
9250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9251 | *) ac_try_echo=$ac_try;; | |
9252 | esac | |
9253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9254 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
9255 | ac_status=$? |
9256 | grep -v '^ *+' conftest.er1 >conftest.err | |
9257 | rm -f conftest.er1 | |
9258 | cat conftest.err >&5 | |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9260 | (exit $ac_status); } && { |
9261 | test -z "$ac_c_werror_flag" || | |
9262 | test ! -s conftest.err | |
9263 | } && test -s conftest$ac_exeext && | |
9264 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
9265 | eval "$as_ac_var=yes" |
9266 | else | |
9267 | echo "$as_me: failed program was:" >&5 | |
9268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9269 | ||
e1052144 | 9270 | eval "$as_ac_var=no" |
b0cacab0 | 9271 | fi |
e1052144 | 9272 | |
29a5deed | 9273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
9274 | conftest$ac_exeext conftest.$ac_ext |
9275 | fi | |
e1052144 TT |
9276 | ac_res=`eval echo '${'$as_ac_var'}'` |
9277 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9278 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
9279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9280 | cat >>confdefs.h <<_ACEOF | |
9281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9282 | _ACEOF | |
9283 | ||
9284 | fi | |
9285 | done | |
9286 | ||
9287 | ||
9288 | ||
e1052144 TT |
9289 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
9290 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } | |
b0cacab0 TT |
9291 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
9292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9293 | else | |
9294 | cat >conftest.$ac_ext <<_ACEOF | |
9295 | /* confdefs.h. */ | |
9296 | _ACEOF | |
9297 | cat confdefs.h >>conftest.$ac_ext | |
9298 | cat >>conftest.$ac_ext <<_ACEOF | |
9299 | /* end confdefs.h. */ | |
9300 | #include <stdio.h> | |
9301 | int | |
9302 | main () | |
9303 | { | |
9304 | ||
9305 | #ifndef _snprintf | |
9306 | char *p = (char *) _snprintf; | |
9307 | #endif | |
9308 | ||
9309 | ; | |
9310 | return 0; | |
9311 | } | |
9312 | _ACEOF | |
9313 | rm -f conftest.$ac_objext | |
e1052144 TT |
9314 | if { (ac_try="$ac_compile" |
9315 | case "(($ac_try" in | |
9316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9317 | *) ac_try_echo=$ac_try;; | |
9318 | esac | |
9319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9320 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9321 | ac_status=$? |
9322 | grep -v '^ *+' conftest.er1 >conftest.err | |
9323 | rm -f conftest.er1 | |
9324 | cat conftest.err >&5 | |
9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9326 | (exit $ac_status); } && { |
9327 | test -z "$ac_c_werror_flag" || | |
9328 | test ! -s conftest.err | |
9329 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9330 | ac_cv_have_decl__snprintf=yes |
9331 | else | |
9332 | echo "$as_me: failed program was:" >&5 | |
9333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9334 | ||
e1052144 | 9335 | ac_cv_have_decl__snprintf=no |
b0cacab0 | 9336 | fi |
e1052144 TT |
9337 | |
9338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9339 | fi |
e1052144 TT |
9340 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
9341 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } | |
b0cacab0 TT |
9342 | if test $ac_cv_have_decl__snprintf = yes; then |
9343 | gt_value=1 | |
9344 | else | |
9345 | gt_value=0 | |
9346 | fi | |
9347 | ||
9348 | cat >>confdefs.h <<_ACEOF | |
9349 | #define HAVE_DECL__SNPRINTF $gt_value | |
9350 | _ACEOF | |
9351 | ||
9352 | ||
9353 | ||
e1052144 TT |
9354 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
9355 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } | |
b0cacab0 TT |
9356 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
9357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9358 | else | |
9359 | cat >conftest.$ac_ext <<_ACEOF | |
9360 | /* confdefs.h. */ | |
9361 | _ACEOF | |
9362 | cat confdefs.h >>conftest.$ac_ext | |
9363 | cat >>conftest.$ac_ext <<_ACEOF | |
9364 | /* end confdefs.h. */ | |
9365 | #include <stdio.h> | |
9366 | int | |
9367 | main () | |
9368 | { | |
9369 | ||
9370 | #ifndef _snwprintf | |
9371 | char *p = (char *) _snwprintf; | |
9372 | #endif | |
9373 | ||
9374 | ; | |
9375 | return 0; | |
9376 | } | |
9377 | _ACEOF | |
9378 | rm -f conftest.$ac_objext | |
e1052144 TT |
9379 | if { (ac_try="$ac_compile" |
9380 | case "(($ac_try" in | |
9381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9382 | *) ac_try_echo=$ac_try;; | |
9383 | esac | |
9384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9385 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9386 | ac_status=$? |
9387 | grep -v '^ *+' conftest.er1 >conftest.err | |
9388 | rm -f conftest.er1 | |
9389 | cat conftest.err >&5 | |
9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9391 | (exit $ac_status); } && { |
9392 | test -z "$ac_c_werror_flag" || | |
9393 | test ! -s conftest.err | |
9394 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9395 | ac_cv_have_decl__snwprintf=yes |
9396 | else | |
9397 | echo "$as_me: failed program was:" >&5 | |
9398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9399 | ||
e1052144 | 9400 | ac_cv_have_decl__snwprintf=no |
b0cacab0 | 9401 | fi |
e1052144 TT |
9402 | |
9403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9404 | fi |
e1052144 TT |
9405 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
9406 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } | |
b0cacab0 TT |
9407 | if test $ac_cv_have_decl__snwprintf = yes; then |
9408 | gt_value=1 | |
9409 | else | |
9410 | gt_value=0 | |
9411 | fi | |
9412 | ||
9413 | cat >>confdefs.h <<_ACEOF | |
9414 | #define HAVE_DECL__SNWPRINTF $gt_value | |
9415 | _ACEOF | |
9416 | ||
9417 | ||
9418 | ||
9419 | ||
e1052144 TT |
9420 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
9421 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } | |
b0cacab0 TT |
9422 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
9423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9424 | else | |
9425 | cat >conftest.$ac_ext <<_ACEOF | |
9426 | /* confdefs.h. */ | |
9427 | _ACEOF | |
9428 | cat confdefs.h >>conftest.$ac_ext | |
9429 | cat >>conftest.$ac_ext <<_ACEOF | |
9430 | /* end confdefs.h. */ | |
9431 | #include <stdio.h> | |
9432 | int | |
9433 | main () | |
9434 | { | |
9435 | ||
9436 | #ifndef feof_unlocked | |
9437 | char *p = (char *) feof_unlocked; | |
9438 | #endif | |
9439 | ||
9440 | ; | |
9441 | return 0; | |
9442 | } | |
9443 | _ACEOF | |
9444 | rm -f conftest.$ac_objext | |
e1052144 TT |
9445 | if { (ac_try="$ac_compile" |
9446 | case "(($ac_try" in | |
9447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9448 | *) ac_try_echo=$ac_try;; | |
9449 | esac | |
9450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9451 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9452 | ac_status=$? |
9453 | grep -v '^ *+' conftest.er1 >conftest.err | |
9454 | rm -f conftest.er1 | |
9455 | cat conftest.err >&5 | |
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9457 | (exit $ac_status); } && { |
9458 | test -z "$ac_c_werror_flag" || | |
9459 | test ! -s conftest.err | |
9460 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9461 | ac_cv_have_decl_feof_unlocked=yes |
9462 | else | |
9463 | echo "$as_me: failed program was:" >&5 | |
9464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9465 | ||
e1052144 | 9466 | ac_cv_have_decl_feof_unlocked=no |
b0cacab0 | 9467 | fi |
e1052144 TT |
9468 | |
9469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9470 | fi |
e1052144 TT |
9471 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
9472 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } | |
b0cacab0 TT |
9473 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
9474 | gt_value=1 | |
9475 | else | |
9476 | gt_value=0 | |
9477 | fi | |
9478 | ||
9479 | cat >>confdefs.h <<_ACEOF | |
9480 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value | |
9481 | _ACEOF | |
9482 | ||
9483 | ||
9484 | ||
e1052144 TT |
9485 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
9486 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } | |
b0cacab0 TT |
9487 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
9488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 9489 | else |
b0cacab0 TT |
9490 | cat >conftest.$ac_ext <<_ACEOF |
9491 | /* confdefs.h. */ | |
9492 | _ACEOF | |
9493 | cat confdefs.h >>conftest.$ac_ext | |
9494 | cat >>conftest.$ac_ext <<_ACEOF | |
9495 | /* end confdefs.h. */ | |
9496 | #include <stdio.h> | |
9497 | int | |
9498 | main () | |
9499 | { | |
93636bde | 9500 | |
b0cacab0 TT |
9501 | #ifndef fgets_unlocked |
9502 | char *p = (char *) fgets_unlocked; | |
9503 | #endif | |
93636bde | 9504 | |
b0cacab0 TT |
9505 | ; |
9506 | return 0; | |
9507 | } | |
9508 | _ACEOF | |
9509 | rm -f conftest.$ac_objext | |
e1052144 TT |
9510 | if { (ac_try="$ac_compile" |
9511 | case "(($ac_try" in | |
9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9513 | *) ac_try_echo=$ac_try;; | |
9514 | esac | |
9515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9516 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9517 | ac_status=$? |
9518 | grep -v '^ *+' conftest.er1 >conftest.err | |
9519 | rm -f conftest.er1 | |
9520 | cat conftest.err >&5 | |
9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9522 | (exit $ac_status); } && { |
9523 | test -z "$ac_c_werror_flag" || | |
9524 | test ! -s conftest.err | |
9525 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9526 | ac_cv_have_decl_fgets_unlocked=yes |
9527 | else | |
9528 | echo "$as_me: failed program was:" >&5 | |
9529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9530 | ||
e1052144 | 9531 | ac_cv_have_decl_fgets_unlocked=no |
b0cacab0 | 9532 | fi |
e1052144 TT |
9533 | |
9534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9535 | fi |
e1052144 TT |
9536 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
9537 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } | |
b0cacab0 TT |
9538 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
9539 | gt_value=1 | |
9540 | else | |
9541 | gt_value=0 | |
9542 | fi | |
93636bde | 9543 | |
b0cacab0 TT |
9544 | cat >>confdefs.h <<_ACEOF |
9545 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value | |
9546 | _ACEOF | |
93636bde | 9547 | |
b0cacab0 TT |
9548 | |
9549 | ||
e1052144 TT |
9550 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
9551 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } | |
b0cacab0 TT |
9552 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
9553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 9554 | else |
b0cacab0 TT |
9555 | cat >conftest.$ac_ext <<_ACEOF |
9556 | /* confdefs.h. */ | |
9557 | _ACEOF | |
9558 | cat confdefs.h >>conftest.$ac_ext | |
9559 | cat >>conftest.$ac_ext <<_ACEOF | |
9560 | /* end confdefs.h. */ | |
9561 | #include <stdio.h> | |
9562 | int | |
9563 | main () | |
9564 | { | |
93636bde | 9565 | |
b0cacab0 TT |
9566 | #ifndef getc_unlocked |
9567 | char *p = (char *) getc_unlocked; | |
9568 | #endif | |
93636bde | 9569 | |
b0cacab0 TT |
9570 | ; |
9571 | return 0; | |
9572 | } | |
9573 | _ACEOF | |
9574 | rm -f conftest.$ac_objext | |
e1052144 TT |
9575 | if { (ac_try="$ac_compile" |
9576 | case "(($ac_try" in | |
9577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9578 | *) ac_try_echo=$ac_try;; | |
9579 | esac | |
9580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9581 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9582 | ac_status=$? |
9583 | grep -v '^ *+' conftest.er1 >conftest.err | |
9584 | rm -f conftest.er1 | |
9585 | cat conftest.err >&5 | |
9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9587 | (exit $ac_status); } && { |
9588 | test -z "$ac_c_werror_flag" || | |
9589 | test ! -s conftest.err | |
9590 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
9591 | ac_cv_have_decl_getc_unlocked=yes |
9592 | else | |
9593 | echo "$as_me: failed program was:" >&5 | |
9594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9595 | ||
e1052144 | 9596 | ac_cv_have_decl_getc_unlocked=no |
b0cacab0 | 9597 | fi |
e1052144 TT |
9598 | |
9599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 9600 | fi |
e1052144 TT |
9601 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
9602 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } | |
b0cacab0 TT |
9603 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
9604 | gt_value=1 | |
9605 | else | |
9606 | gt_value=0 | |
93636bde TT |
9607 | fi |
9608 | ||
b0cacab0 TT |
9609 | cat >>confdefs.h <<_ACEOF |
9610 | #define HAVE_DECL_GETC_UNLOCKED $gt_value | |
9611 | _ACEOF | |
93636bde | 9612 | |
93636bde TT |
9613 | |
9614 | ||
b0cacab0 TT |
9615 | case $gt_cv_func_printf_posix in |
9616 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
9617 | *) HAVE_POSIX_PRINTF=0 ;; | |
9618 | esac | |
a04eba3f | 9619 | |
b0cacab0 TT |
9620 | if test "$ac_cv_func_asprintf" = yes; then |
9621 | HAVE_ASPRINTF=1 | |
9622 | else | |
9623 | HAVE_ASPRINTF=0 | |
9624 | fi | |
9625 | ||
9626 | if test "$ac_cv_func_snprintf" = yes; then | |
9627 | HAVE_SNPRINTF=1 | |
9628 | else | |
9629 | HAVE_SNPRINTF=0 | |
9630 | fi | |
9631 | ||
9632 | if test "$ac_cv_func_wprintf" = yes; then | |
9633 | HAVE_WPRINTF=1 | |
9634 | else | |
9635 | HAVE_WPRINTF=0 | |
9636 | fi | |
93636bde | 9637 | |
a64c9c13 | 9638 | |
a64c9c13 | 9639 | |
a64c9c13 | 9640 | |
a64c9c13 | 9641 | |
07a0db15 | 9642 | |
93636bde TT |
9643 | |
9644 | am_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 9645 | |
a04eba3f TT |
9646 | for element in $INCICONV; do |
9647 | haveit= | |
9648 | for x in $CPPFLAGS; do | |
b0cacab0 | 9649 | |
a04eba3f TT |
9650 | acl_save_prefix="$prefix" |
9651 | prefix="$acl_final_prefix" | |
9652 | acl_save_exec_prefix="$exec_prefix" | |
9653 | exec_prefix="$acl_final_exec_prefix" | |
9654 | eval x=\"$x\" | |
9655 | exec_prefix="$acl_save_exec_prefix" | |
9656 | prefix="$acl_save_prefix" | |
9657 | ||
9658 | if test "X$x" = "X$element"; then | |
9659 | haveit=yes | |
9660 | break | |
9661 | fi | |
9662 | done | |
9663 | if test -z "$haveit"; then | |
9664 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
a64c9c13 TT |
9665 | fi |
9666 | done | |
a64c9c13 | 9667 | |
07a0db15 | 9668 | |
e1052144 TT |
9669 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
9670 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } | |
b0cacab0 TT |
9671 | if test "${am_cv_func_iconv+set}" = set; then |
9672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 9673 | else |
b0cacab0 | 9674 | |
a04eba3f TT |
9675 | am_cv_func_iconv="no, consider installing GNU libiconv" |
9676 | am_cv_lib_iconv=no | |
b0cacab0 TT |
9677 | cat >conftest.$ac_ext <<_ACEOF |
9678 | /* confdefs.h. */ | |
9679 | _ACEOF | |
9680 | cat confdefs.h >>conftest.$ac_ext | |
9681 | cat >>conftest.$ac_ext <<_ACEOF | |
9682 | /* end confdefs.h. */ | |
a04eba3f TT |
9683 | #include <stdlib.h> |
9684 | #include <iconv.h> | |
b0cacab0 TT |
9685 | int |
9686 | main () | |
9687 | { | |
a04eba3f TT |
9688 | iconv_t cd = iconv_open("",""); |
9689 | iconv(cd,NULL,NULL,NULL,NULL); | |
9690 | iconv_close(cd); | |
b0cacab0 TT |
9691 | ; |
9692 | return 0; | |
9693 | } | |
9694 | _ACEOF | |
9695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9696 | if { (ac_try="$ac_link" |
9697 | case "(($ac_try" in | |
9698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9699 | *) ac_try_echo=$ac_try;; | |
9700 | esac | |
9701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9702 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
9703 | ac_status=$? |
9704 | grep -v '^ *+' conftest.er1 >conftest.err | |
9705 | rm -f conftest.er1 | |
9706 | cat conftest.err >&5 | |
9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9708 | (exit $ac_status); } && { |
9709 | test -z "$ac_c_werror_flag" || | |
9710 | test ! -s conftest.err | |
9711 | } && test -s conftest$ac_exeext && | |
9712 | $as_test_x conftest$ac_exeext; then | |
a04eba3f | 9713 | am_cv_func_iconv=yes |
a64c9c13 | 9714 | else |
b0cacab0 TT |
9715 | echo "$as_me: failed program was:" >&5 |
9716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9717 | ||
e1052144 | 9718 | |
a64c9c13 | 9719 | fi |
e1052144 | 9720 | |
29a5deed | 9721 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 9722 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
9723 | if test "$am_cv_func_iconv" != yes; then |
9724 | am_save_LIBS="$LIBS" | |
9725 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
9726 | cat >conftest.$ac_ext <<_ACEOF |
9727 | /* confdefs.h. */ | |
9728 | _ACEOF | |
9729 | cat confdefs.h >>conftest.$ac_ext | |
9730 | cat >>conftest.$ac_ext <<_ACEOF | |
9731 | /* end confdefs.h. */ | |
a04eba3f TT |
9732 | #include <stdlib.h> |
9733 | #include <iconv.h> | |
b0cacab0 TT |
9734 | int |
9735 | main () | |
9736 | { | |
a04eba3f TT |
9737 | iconv_t cd = iconv_open("",""); |
9738 | iconv(cd,NULL,NULL,NULL,NULL); | |
9739 | iconv_close(cd); | |
b0cacab0 TT |
9740 | ; |
9741 | return 0; | |
9742 | } | |
9743 | _ACEOF | |
9744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9745 | if { (ac_try="$ac_link" |
9746 | case "(($ac_try" in | |
9747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9748 | *) ac_try_echo=$ac_try;; | |
9749 | esac | |
9750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9751 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
9752 | ac_status=$? |
9753 | grep -v '^ *+' conftest.er1 >conftest.err | |
9754 | rm -f conftest.er1 | |
9755 | cat conftest.err >&5 | |
9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9757 | (exit $ac_status); } && { |
9758 | test -z "$ac_c_werror_flag" || | |
9759 | test ! -s conftest.err | |
9760 | } && test -s conftest$ac_exeext && | |
9761 | $as_test_x conftest$ac_exeext; then | |
a04eba3f TT |
9762 | am_cv_lib_iconv=yes |
9763 | am_cv_func_iconv=yes | |
a64c9c13 | 9764 | else |
b0cacab0 TT |
9765 | echo "$as_me: failed program was:" >&5 |
9766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9767 | ||
e1052144 | 9768 | |
a64c9c13 | 9769 | fi |
e1052144 | 9770 | |
29a5deed | 9771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 9772 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
9773 | LIBS="$am_save_LIBS" |
9774 | fi | |
07a0db15 | 9775 | |
b0cacab0 | 9776 | fi |
e1052144 TT |
9777 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
9778 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } | |
93636bde | 9779 | if test "$am_cv_func_iconv" = yes; then |
b0cacab0 TT |
9780 | |
9781 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9782 | #define HAVE_ICONV 1 |
b0cacab0 | 9783 | _ACEOF |
a64c9c13 | 9784 | |
a04eba3f TT |
9785 | fi |
9786 | if test "$am_cv_lib_iconv" = yes; then | |
e1052144 TT |
9787 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
9788 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } | |
9789 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
9790 | echo "${ECHO_T}$LIBICONV" >&6; } | |
a04eba3f TT |
9791 | else |
9792 | CPPFLAGS="$am_save_CPPFLAGS" | |
9793 | LIBICONV= | |
9794 | LTLIBICONV= | |
9795 | fi | |
b0cacab0 TT |
9796 | |
9797 | ||
a64c9c13 | 9798 | |
a04eba3f | 9799 | if test "$am_cv_func_iconv" = yes; then |
e1052144 TT |
9800 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
9801 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } | |
b0cacab0 TT |
9802 | if test "${am_cv_proto_iconv+set}" = set; then |
9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 9804 | else |
b0cacab0 TT |
9805 | |
9806 | cat >conftest.$ac_ext <<_ACEOF | |
9807 | /* confdefs.h. */ | |
9808 | _ACEOF | |
9809 | cat confdefs.h >>conftest.$ac_ext | |
9810 | cat >>conftest.$ac_ext <<_ACEOF | |
9811 | /* end confdefs.h. */ | |
a64c9c13 | 9812 | |
a04eba3f TT |
9813 | #include <stdlib.h> |
9814 | #include <iconv.h> | |
9815 | extern | |
9816 | #ifdef __cplusplus | |
9817 | "C" | |
9818 | #endif | |
9819 | #if defined(__STDC__) || defined(__cplusplus) | |
9820 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9821 | #else | |
9822 | size_t iconv(); | |
9823 | #endif | |
9824 | ||
b0cacab0 TT |
9825 | int |
9826 | main () | |
9827 | { | |
a04eba3f | 9828 | |
b0cacab0 TT |
9829 | ; |
9830 | return 0; | |
9831 | } | |
9832 | _ACEOF | |
9833 | rm -f conftest.$ac_objext | |
e1052144 TT |
9834 | if { (ac_try="$ac_compile" |
9835 | case "(($ac_try" in | |
9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9837 | *) ac_try_echo=$ac_try;; | |
9838 | esac | |
9839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9840 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
9841 | ac_status=$? |
9842 | grep -v '^ *+' conftest.er1 >conftest.err | |
9843 | rm -f conftest.er1 | |
9844 | cat conftest.err >&5 | |
9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9846 | (exit $ac_status); } && { |
9847 | test -z "$ac_c_werror_flag" || | |
9848 | test ! -s conftest.err | |
9849 | } && test -s conftest.$ac_objext; then | |
a04eba3f | 9850 | am_cv_proto_iconv_arg1="" |
a64c9c13 | 9851 | else |
b0cacab0 TT |
9852 | echo "$as_me: failed program was:" >&5 |
9853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9854 | ||
e1052144 | 9855 | am_cv_proto_iconv_arg1="const" |
a64c9c13 | 9856 | fi |
e1052144 TT |
9857 | |
9858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a04eba3f | 9859 | 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);" |
a64c9c13 | 9860 | fi |
a64c9c13 | 9861 | |
a04eba3f | 9862 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
e1052144 | 9863 | { echo "$as_me:$LINENO: result: ${ac_t:- |
b0cacab0 TT |
9864 | }$am_cv_proto_iconv" >&5 |
9865 | echo "${ECHO_T}${ac_t:- | |
e1052144 | 9866 | }$am_cv_proto_iconv" >&6; } |
b0cacab0 TT |
9867 | |
9868 | cat >>confdefs.h <<_ACEOF | |
a04eba3f | 9869 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
b0cacab0 | 9870 | _ACEOF |
a64c9c13 | 9871 | |
a04eba3f | 9872 | fi |
a64c9c13 | 9873 | |
b0cacab0 | 9874 | |
e1052144 TT |
9875 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
9876 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } | |
b0cacab0 TT |
9877 | if test "${am_cv_langinfo_codeset+set}" = set; then |
9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 9879 | else |
b0cacab0 TT |
9880 | cat >conftest.$ac_ext <<_ACEOF |
9881 | /* confdefs.h. */ | |
9882 | _ACEOF | |
9883 | cat confdefs.h >>conftest.$ac_ext | |
9884 | cat >>conftest.$ac_ext <<_ACEOF | |
9885 | /* end confdefs.h. */ | |
a04eba3f | 9886 | #include <langinfo.h> |
b0cacab0 TT |
9887 | int |
9888 | main () | |
9889 | { | |
a04eba3f | 9890 | char* cs = nl_langinfo(CODESET); |
b0cacab0 TT |
9891 | ; |
9892 | return 0; | |
9893 | } | |
9894 | _ACEOF | |
9895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9896 | if { (ac_try="$ac_link" |
9897 | case "(($ac_try" in | |
9898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9899 | *) ac_try_echo=$ac_try;; | |
9900 | esac | |
9901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9902 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
9903 | ac_status=$? |
9904 | grep -v '^ *+' conftest.er1 >conftest.err | |
9905 | rm -f conftest.er1 | |
9906 | cat conftest.err >&5 | |
9907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9908 | (exit $ac_status); } && { |
9909 | test -z "$ac_c_werror_flag" || | |
9910 | test ! -s conftest.err | |
9911 | } && test -s conftest$ac_exeext && | |
9912 | $as_test_x conftest$ac_exeext; then | |
a04eba3f | 9913 | am_cv_langinfo_codeset=yes |
a64c9c13 | 9914 | else |
b0cacab0 TT |
9915 | echo "$as_me: failed program was:" >&5 |
9916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9917 | ||
e1052144 | 9918 | am_cv_langinfo_codeset=no |
07a0db15 | 9919 | fi |
e1052144 | 9920 | |
29a5deed | 9921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 9922 | conftest$ac_exeext conftest.$ac_ext |
07a0db15 | 9923 | |
b0cacab0 | 9924 | fi |
e1052144 TT |
9925 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
9926 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } | |
93636bde | 9927 | if test $am_cv_langinfo_codeset = yes; then |
b0cacab0 TT |
9928 | |
9929 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9930 | #define HAVE_LANGINFO_CODESET 1 |
b0cacab0 | 9931 | _ACEOF |
a64c9c13 | 9932 | |
a04eba3f | 9933 | fi |
a64c9c13 | 9934 | |
a04eba3f | 9935 | if test $ac_cv_header_locale_h = yes; then |
b0cacab0 | 9936 | |
e1052144 TT |
9937 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
9938 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } | |
b0cacab0 TT |
9939 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
9940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9941 | else | |
9942 | cat >conftest.$ac_ext <<_ACEOF | |
9943 | /* confdefs.h. */ | |
9944 | _ACEOF | |
9945 | cat confdefs.h >>conftest.$ac_ext | |
9946 | cat >>conftest.$ac_ext <<_ACEOF | |
9947 | /* end confdefs.h. */ | |
a04eba3f | 9948 | #include <locale.h> |
b0cacab0 TT |
9949 | int |
9950 | main () | |
9951 | { | |
a04eba3f | 9952 | return LC_MESSAGES |
b0cacab0 TT |
9953 | ; |
9954 | return 0; | |
9955 | } | |
9956 | _ACEOF | |
9957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
9958 | if { (ac_try="$ac_link" |
9959 | case "(($ac_try" in | |
9960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9961 | *) ac_try_echo=$ac_try;; | |
9962 | esac | |
9963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9964 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
9965 | ac_status=$? |
9966 | grep -v '^ *+' conftest.er1 >conftest.err | |
9967 | rm -f conftest.er1 | |
9968 | cat conftest.err >&5 | |
9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
9970 | (exit $ac_status); } && { |
9971 | test -z "$ac_c_werror_flag" || | |
9972 | test ! -s conftest.err | |
9973 | } && test -s conftest$ac_exeext && | |
9974 | $as_test_x conftest$ac_exeext; then | |
a04eba3f | 9975 | am_cv_val_LC_MESSAGES=yes |
a64c9c13 | 9976 | else |
b0cacab0 TT |
9977 | echo "$as_me: failed program was:" >&5 |
9978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9979 | ||
e1052144 | 9980 | am_cv_val_LC_MESSAGES=no |
a64c9c13 | 9981 | fi |
e1052144 | 9982 | |
29a5deed | 9983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 9984 | conftest$ac_exeext conftest.$ac_ext |
a64c9c13 | 9985 | fi |
e1052144 TT |
9986 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
9987 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } | |
93636bde | 9988 | if test $am_cv_val_LC_MESSAGES = yes; then |
b0cacab0 TT |
9989 | |
9990 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 9991 | #define HAVE_LC_MESSAGES 1 |
b0cacab0 | 9992 | _ACEOF |
a64c9c13 | 9993 | |
a04eba3f | 9994 | fi |
a64c9c13 | 9995 | |
a04eba3f | 9996 | fi |
a64c9c13 | 9997 | |
a04eba3f TT |
9998 | for ac_prog in bison |
9999 | do | |
b0cacab0 | 10000 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a04eba3f | 10001 | set dummy $ac_prog; ac_word=$2 |
e1052144 TT |
10002 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
10004 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
10005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a64c9c13 | 10006 | else |
a04eba3f TT |
10007 | if test -n "$INTLBISON"; then |
10008 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
f8bd9807 | 10009 | else |
b0cacab0 TT |
10010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10011 | for as_dir in $PATH | |
10012 | do | |
10013 | IFS=$as_save_IFS | |
10014 | test -z "$as_dir" && as_dir=. | |
10015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 10016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
10017 | ac_cv_prog_INTLBISON="$ac_prog" |
10018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10019 | break 2 | |
10020 | fi | |
10021 | done | |
10022 | done | |
e1052144 | 10023 | IFS=$as_save_IFS |
b0cacab0 | 10024 | |
f8bd9807 | 10025 | fi |
a04eba3f | 10026 | fi |
b0cacab0 | 10027 | INTLBISON=$ac_cv_prog_INTLBISON |
a04eba3f | 10028 | if test -n "$INTLBISON"; then |
e1052144 TT |
10029 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
10030 | echo "${ECHO_T}$INTLBISON" >&6; } | |
f8bd9807 | 10031 | else |
e1052144 TT |
10032 | { echo "$as_me:$LINENO: result: no" >&5 |
10033 | echo "${ECHO_T}no" >&6; } | |
f8bd9807 | 10034 | fi |
f8bd9807 | 10035 | |
e1052144 | 10036 | |
b0cacab0 | 10037 | test -n "$INTLBISON" && break |
a04eba3f TT |
10038 | done |
10039 | ||
10040 | if test -z "$INTLBISON"; then | |
10041 | ac_verc_fail=yes | |
10042 | else | |
e1052144 TT |
10043 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
10044 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } | |
a04eba3f TT |
10045 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
10046 | case $ac_prog_version in | |
10047 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
10048 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
10049 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
10050 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
10051 | esac | |
e1052144 TT |
10052 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
10053 | echo "${ECHO_T}$ac_prog_version" >&6; } | |
a04eba3f TT |
10054 | fi |
10055 | if test $ac_verc_fail = yes; then | |
10056 | INTLBISON=: | |
10057 | fi | |
a64c9c13 | 10058 | |
93636bde | 10059 | |
93636bde | 10060 | |
93636bde | 10061 | |
93636bde | 10062 | |
93636bde | 10063 | |
b0cacab0 TT |
10064 | |
10065 | ||
10066 | ||
10067 | ||
10068 | ||
10069 | ||
10070 | ||
10071 | ||
10072 | ||
10073 | ||
e1052144 TT |
10074 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10075 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } | |
10076 | # Check whether --enable-nls was given. | |
a04eba3f | 10077 | if test "${enable_nls+set}" = set; then |
e1052144 | 10078 | enableval=$enable_nls; USE_NLS=$enableval |
a04eba3f TT |
10079 | else |
10080 | USE_NLS=yes | |
e1052144 TT |
10081 | fi |
10082 | ||
10083 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10084 | echo "${ECHO_T}$USE_NLS" >&6; } | |
b0cacab0 TT |
10085 | |
10086 | ||
a64c9c13 | 10087 | |
93636bde | 10088 | |
a04eba3f TT |
10089 | BUILD_INCLUDED_LIBINTL=no |
10090 | USE_INCLUDED_LIBINTL=no | |
b0cacab0 | 10091 | |
a04eba3f TT |
10092 | LIBINTL= |
10093 | LTLIBINTL= | |
10094 | POSUB= | |
a64c9c13 | 10095 | |
a04eba3f TT |
10096 | if test "$USE_NLS" = "yes"; then |
10097 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 | 10098 | |
e1052144 TT |
10099 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
10100 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } | |
b0cacab0 | 10101 | |
e1052144 | 10102 | # Check whether --with-included-gettext was given. |
a04eba3f | 10103 | if test "${with_included_gettext+set}" = set; then |
e1052144 | 10104 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
a04eba3f TT |
10105 | else |
10106 | nls_cv_force_use_gnu_gettext=no | |
e1052144 TT |
10107 | fi |
10108 | ||
10109 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
10110 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } | |
a04eba3f TT |
10111 | |
10112 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
10113 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
10114 | |
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
e1052144 TT |
10120 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
10121 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } | |
b0cacab0 TT |
10122 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
10123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10124 | else | |
10125 | cat >conftest.$ac_ext <<_ACEOF | |
10126 | /* confdefs.h. */ | |
10127 | _ACEOF | |
10128 | cat confdefs.h >>conftest.$ac_ext | |
10129 | cat >>conftest.$ac_ext <<_ACEOF | |
10130 | /* end confdefs.h. */ | |
a04eba3f TT |
10131 | #include <libintl.h> |
10132 | extern int _nl_msg_cat_cntr; | |
10133 | extern int *_nl_domain_bindings; | |
b0cacab0 TT |
10134 | int |
10135 | main () | |
10136 | { | |
a04eba3f TT |
10137 | bindtextdomain ("", ""); |
10138 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
b0cacab0 TT |
10139 | ; |
10140 | return 0; | |
10141 | } | |
10142 | _ACEOF | |
10143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10144 | if { (ac_try="$ac_link" |
10145 | case "(($ac_try" in | |
10146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10147 | *) ac_try_echo=$ac_try;; | |
10148 | esac | |
10149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10150 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
10151 | ac_status=$? |
10152 | grep -v '^ *+' conftest.er1 >conftest.err | |
10153 | rm -f conftest.er1 | |
10154 | cat conftest.err >&5 | |
10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
10156 | (exit $ac_status); } && { |
10157 | test -z "$ac_c_werror_flag" || | |
10158 | test ! -s conftest.err | |
10159 | } && test -s conftest$ac_exeext && | |
10160 | $as_test_x conftest$ac_exeext; then | |
a04eba3f | 10161 | gt_cv_func_gnugettext1_libc=yes |
f8bd9807 | 10162 | else |
b0cacab0 TT |
10163 | echo "$as_me: failed program was:" >&5 |
10164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10165 | ||
e1052144 | 10166 | gt_cv_func_gnugettext1_libc=no |
f8bd9807 | 10167 | fi |
e1052144 | 10168 | |
29a5deed | 10169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10170 | conftest$ac_exeext conftest.$ac_ext |
f8bd9807 | 10171 | fi |
e1052144 TT |
10172 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
10173 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } | |
07a0db15 | 10174 | |
93636bde | 10175 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
b0cacab0 TT |
10176 | |
10177 | ||
10178 | ||
a04eba3f | 10179 | use_additional=yes |
b0cacab0 | 10180 | |
a04eba3f TT |
10181 | acl_save_prefix="$prefix" |
10182 | prefix="$acl_final_prefix" | |
10183 | acl_save_exec_prefix="$exec_prefix" | |
10184 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10185 | |
a04eba3f TT |
10186 | eval additional_includedir=\"$includedir\" |
10187 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10188 | |
a04eba3f TT |
10189 | exec_prefix="$acl_save_exec_prefix" |
10190 | prefix="$acl_save_prefix" | |
10191 | ||
b0cacab0 | 10192 | |
e1052144 | 10193 | # Check whether --with-libintl-prefix was given. |
a04eba3f | 10194 | if test "${with_libintl_prefix+set}" = set; then |
e1052144 | 10195 | withval=$with_libintl_prefix; |
a04eba3f TT |
10196 | if test "X$withval" = "Xno"; then |
10197 | use_additional=no | |
10198 | else | |
10199 | if test "X$withval" = "X"; then | |
b0cacab0 | 10200 | |
a04eba3f TT |
10201 | acl_save_prefix="$prefix" |
10202 | prefix="$acl_final_prefix" | |
10203 | acl_save_exec_prefix="$exec_prefix" | |
10204 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10205 | |
a04eba3f TT |
10206 | eval additional_includedir=\"$includedir\" |
10207 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10208 | |
a04eba3f TT |
10209 | exec_prefix="$acl_save_exec_prefix" |
10210 | prefix="$acl_save_prefix" | |
10211 | ||
10212 | else | |
10213 | additional_includedir="$withval/include" | |
10214 | additional_libdir="$withval/lib" | |
10215 | fi | |
10216 | fi | |
10217 | ||
e1052144 TT |
10218 | fi |
10219 | ||
a04eba3f TT |
10220 | LIBINTL= |
10221 | LTLIBINTL= | |
10222 | INCINTL= | |
10223 | rpathdirs= | |
10224 | ltrpathdirs= | |
10225 | names_already_handled= | |
10226 | names_next_round='intl ' | |
10227 | while test -n "$names_next_round"; do | |
10228 | names_this_round="$names_next_round" | |
10229 | names_next_round= | |
10230 | for name in $names_this_round; do | |
10231 | already_handled= | |
10232 | for n in $names_already_handled; do | |
10233 | if test "$n" = "$name"; then | |
10234 | already_handled=yes | |
10235 | break | |
10236 | fi | |
10237 | done | |
10238 | if test -z "$already_handled"; then | |
10239 | names_already_handled="$names_already_handled $name" | |
10240 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10241 | eval value=\"\$HAVE_LIB$uppername\" | |
10242 | if test -n "$value"; then | |
10243 | if test "$value" = yes; then | |
10244 | eval value=\"\$LIB$uppername\" | |
10245 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10246 | eval value=\"\$LTLIB$uppername\" | |
10247 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10248 | else | |
10249 | : | |
10250 | fi | |
10251 | else | |
10252 | found_dir= | |
10253 | found_la= | |
10254 | found_so= | |
10255 | found_a= | |
10256 | if test $use_additional = yes; then | |
10257 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10258 | found_dir="$additional_libdir" | |
10259 | found_so="$additional_libdir/lib$name.$shlibext" | |
10260 | if test -f "$additional_libdir/lib$name.la"; then | |
10261 | found_la="$additional_libdir/lib$name.la" | |
10262 | fi | |
10263 | else | |
10264 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10265 | found_dir="$additional_libdir" | |
10266 | found_a="$additional_libdir/lib$name.$libext" | |
10267 | if test -f "$additional_libdir/lib$name.la"; then | |
10268 | found_la="$additional_libdir/lib$name.la" | |
10269 | fi | |
10270 | fi | |
10271 | fi | |
10272 | fi | |
10273 | if test "X$found_dir" = "X"; then | |
10274 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 10275 | |
a04eba3f TT |
10276 | acl_save_prefix="$prefix" |
10277 | prefix="$acl_final_prefix" | |
10278 | acl_save_exec_prefix="$exec_prefix" | |
10279 | exec_prefix="$acl_final_exec_prefix" | |
10280 | eval x=\"$x\" | |
10281 | exec_prefix="$acl_save_exec_prefix" | |
10282 | prefix="$acl_save_prefix" | |
10283 | ||
10284 | case "$x" in | |
10285 | -L*) | |
10286 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10287 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10288 | found_dir="$dir" | |
10289 | found_so="$dir/lib$name.$shlibext" | |
10290 | if test -f "$dir/lib$name.la"; then | |
10291 | found_la="$dir/lib$name.la" | |
10292 | fi | |
10293 | else | |
10294 | if test -f "$dir/lib$name.$libext"; then | |
10295 | found_dir="$dir" | |
10296 | found_a="$dir/lib$name.$libext" | |
10297 | if test -f "$dir/lib$name.la"; then | |
10298 | found_la="$dir/lib$name.la" | |
10299 | fi | |
10300 | fi | |
10301 | fi | |
10302 | ;; | |
10303 | esac | |
10304 | if test "X$found_dir" != "X"; then | |
10305 | break | |
10306 | fi | |
10307 | done | |
10308 | fi | |
10309 | if test "X$found_dir" != "X"; then | |
10310 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10311 | if test "X$found_so" != "X"; then | |
10312 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10313 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10314 | else | |
10315 | haveit= | |
10316 | for x in $ltrpathdirs; do | |
10317 | if test "X$x" = "X$found_dir"; then | |
10318 | haveit=yes | |
10319 | break | |
10320 | fi | |
10321 | done | |
10322 | if test -z "$haveit"; then | |
10323 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10324 | fi | |
10325 | if test "$hardcode_direct" = yes; then | |
10326 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10327 | else | |
10328 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10329 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10330 | haveit= | |
10331 | for x in $rpathdirs; do | |
10332 | if test "X$x" = "X$found_dir"; then | |
10333 | haveit=yes | |
10334 | break | |
10335 | fi | |
10336 | done | |
10337 | if test -z "$haveit"; then | |
10338 | rpathdirs="$rpathdirs $found_dir" | |
10339 | fi | |
10340 | else | |
10341 | haveit= | |
10342 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 10343 | |
a04eba3f TT |
10344 | acl_save_prefix="$prefix" |
10345 | prefix="$acl_final_prefix" | |
10346 | acl_save_exec_prefix="$exec_prefix" | |
10347 | exec_prefix="$acl_final_exec_prefix" | |
10348 | eval x=\"$x\" | |
10349 | exec_prefix="$acl_save_exec_prefix" | |
10350 | prefix="$acl_save_prefix" | |
10351 | ||
10352 | if test "X$x" = "X-L$found_dir"; then | |
10353 | haveit=yes | |
10354 | break | |
10355 | fi | |
10356 | done | |
10357 | if test -z "$haveit"; then | |
10358 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10359 | fi | |
10360 | if test "$hardcode_minus_L" != no; then | |
10361 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10362 | else | |
10363 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10364 | fi | |
10365 | fi | |
10366 | fi | |
10367 | fi | |
10368 | else | |
10369 | if test "X$found_a" != "X"; then | |
10370 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10371 | else | |
10372 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10373 | fi | |
10374 | fi | |
10375 | additional_includedir= | |
10376 | case "$found_dir" in | |
10377 | */lib | */lib/) | |
10378 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10379 | additional_includedir="$basedir/include" | |
10380 | ;; | |
10381 | esac | |
10382 | if test "X$additional_includedir" != "X"; then | |
10383 | if test "X$additional_includedir" != "X/usr/include"; then | |
10384 | haveit= | |
10385 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10386 | if test -n "$GCC"; then | |
10387 | case $host_os in | |
10388 | linux*) haveit=yes;; | |
10389 | esac | |
10390 | fi | |
10391 | fi | |
10392 | if test -z "$haveit"; then | |
10393 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 10394 | |
a04eba3f TT |
10395 | acl_save_prefix="$prefix" |
10396 | prefix="$acl_final_prefix" | |
10397 | acl_save_exec_prefix="$exec_prefix" | |
10398 | exec_prefix="$acl_final_exec_prefix" | |
10399 | eval x=\"$x\" | |
10400 | exec_prefix="$acl_save_exec_prefix" | |
10401 | prefix="$acl_save_prefix" | |
10402 | ||
10403 | if test "X$x" = "X-I$additional_includedir"; then | |
10404 | haveit=yes | |
10405 | break | |
10406 | fi | |
10407 | done | |
10408 | if test -z "$haveit"; then | |
10409 | if test -d "$additional_includedir"; then | |
10410 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10411 | fi | |
10412 | fi | |
10413 | fi | |
10414 | fi | |
10415 | fi | |
10416 | if test -n "$found_la"; then | |
10417 | save_libdir="$libdir" | |
10418 | case "$found_la" in | |
10419 | */* | *\\*) . "$found_la" ;; | |
10420 | *) . "./$found_la" ;; | |
10421 | esac | |
10422 | libdir="$save_libdir" | |
10423 | for dep in $dependency_libs; do | |
10424 | case "$dep" in | |
10425 | -L*) | |
10426 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10427 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10428 | haveit= | |
10429 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10430 | if test -n "$GCC"; then | |
10431 | case $host_os in | |
10432 | linux*) haveit=yes;; | |
10433 | esac | |
10434 | fi | |
10435 | fi | |
10436 | if test -z "$haveit"; then | |
10437 | haveit= | |
10438 | for x in $LDFLAGS $LIBINTL; do | |
b0cacab0 | 10439 | |
a04eba3f TT |
10440 | acl_save_prefix="$prefix" |
10441 | prefix="$acl_final_prefix" | |
10442 | acl_save_exec_prefix="$exec_prefix" | |
10443 | exec_prefix="$acl_final_exec_prefix" | |
10444 | eval x=\"$x\" | |
10445 | exec_prefix="$acl_save_exec_prefix" | |
10446 | prefix="$acl_save_prefix" | |
10447 | ||
10448 | if test "X$x" = "X-L$additional_libdir"; then | |
10449 | haveit=yes | |
10450 | break | |
10451 | fi | |
10452 | done | |
10453 | if test -z "$haveit"; then | |
10454 | if test -d "$additional_libdir"; then | |
10455 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
10456 | fi | |
10457 | fi | |
10458 | haveit= | |
10459 | for x in $LDFLAGS $LTLIBINTL; do | |
b0cacab0 | 10460 | |
a04eba3f TT |
10461 | acl_save_prefix="$prefix" |
10462 | prefix="$acl_final_prefix" | |
10463 | acl_save_exec_prefix="$exec_prefix" | |
10464 | exec_prefix="$acl_final_exec_prefix" | |
10465 | eval x=\"$x\" | |
10466 | exec_prefix="$acl_save_exec_prefix" | |
10467 | prefix="$acl_save_prefix" | |
10468 | ||
10469 | if test "X$x" = "X-L$additional_libdir"; then | |
10470 | haveit=yes | |
10471 | break | |
10472 | fi | |
10473 | done | |
10474 | if test -z "$haveit"; then | |
10475 | if test -d "$additional_libdir"; then | |
10476 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
10477 | fi | |
10478 | fi | |
10479 | fi | |
10480 | fi | |
10481 | ;; | |
10482 | -R*) | |
10483 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10484 | if test "$enable_rpath" != no; then | |
10485 | haveit= | |
10486 | for x in $rpathdirs; do | |
10487 | if test "X$x" = "X$dir"; then | |
10488 | haveit=yes | |
10489 | break | |
10490 | fi | |
10491 | done | |
10492 | if test -z "$haveit"; then | |
10493 | rpathdirs="$rpathdirs $dir" | |
10494 | fi | |
10495 | haveit= | |
10496 | for x in $ltrpathdirs; do | |
10497 | if test "X$x" = "X$dir"; then | |
10498 | haveit=yes | |
10499 | break | |
10500 | fi | |
10501 | done | |
10502 | if test -z "$haveit"; then | |
10503 | ltrpathdirs="$ltrpathdirs $dir" | |
10504 | fi | |
10505 | fi | |
10506 | ;; | |
10507 | -l*) | |
10508 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10509 | ;; | |
10510 | *.la) | |
10511 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10512 | ;; | |
10513 | *) | |
10514 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10515 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10516 | ;; | |
10517 | esac | |
10518 | done | |
10519 | fi | |
10520 | else | |
10521 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10522 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10523 | fi | |
10524 | fi | |
10525 | fi | |
10526 | done | |
10527 | done | |
10528 | if test "X$rpathdirs" != "X"; then | |
10529 | if test -n "$hardcode_libdir_separator"; then | |
10530 | alldirs= | |
10531 | for found_dir in $rpathdirs; do | |
10532 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10533 | done | |
10534 | acl_save_libdir="$libdir" | |
10535 | libdir="$alldirs" | |
10536 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10537 | libdir="$acl_save_libdir" | |
10538 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10539 | else | |
10540 | for found_dir in $rpathdirs; do | |
10541 | acl_save_libdir="$libdir" | |
10542 | libdir="$found_dir" | |
10543 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10544 | libdir="$acl_save_libdir" | |
10545 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10546 | done | |
10547 | fi | |
10548 | fi | |
10549 | if test "X$ltrpathdirs" != "X"; then | |
10550 | for found_dir in $ltrpathdirs; do | |
10551 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10552 | done | |
10553 | fi | |
10554 | ||
e1052144 TT |
10555 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
10556 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } | |
b0cacab0 TT |
10557 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f8bd9807 | 10559 | else |
a04eba3f TT |
10560 | gt_save_CPPFLAGS="$CPPFLAGS" |
10561 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10562 | gt_save_LIBS="$LIBS" | |
10563 | LIBS="$LIBS $LIBINTL" | |
b0cacab0 TT |
10564 | cat >conftest.$ac_ext <<_ACEOF |
10565 | /* confdefs.h. */ | |
10566 | _ACEOF | |
10567 | cat confdefs.h >>conftest.$ac_ext | |
10568 | cat >>conftest.$ac_ext <<_ACEOF | |
10569 | /* end confdefs.h. */ | |
a04eba3f TT |
10570 | #include <libintl.h> |
10571 | extern int _nl_msg_cat_cntr; | |
10572 | extern | |
10573 | #ifdef __cplusplus | |
10574 | "C" | |
10575 | #endif | |
10576 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
10577 | int |
10578 | main () | |
10579 | { | |
a04eba3f TT |
10580 | bindtextdomain ("", ""); |
10581 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
10582 | ; |
10583 | return 0; | |
10584 | } | |
10585 | _ACEOF | |
10586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10587 | if { (ac_try="$ac_link" |
10588 | case "(($ac_try" in | |
10589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10590 | *) ac_try_echo=$ac_try;; | |
10591 | esac | |
10592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10593 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
10594 | ac_status=$? |
10595 | grep -v '^ *+' conftest.er1 >conftest.err | |
10596 | rm -f conftest.er1 | |
10597 | cat conftest.err >&5 | |
10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
10599 | (exit $ac_status); } && { |
10600 | test -z "$ac_c_werror_flag" || | |
10601 | test ! -s conftest.err | |
10602 | } && test -s conftest$ac_exeext && | |
10603 | $as_test_x conftest$ac_exeext; then | |
a04eba3f TT |
10604 | gt_cv_func_gnugettext1_libintl=yes |
10605 | else | |
b0cacab0 TT |
10606 | echo "$as_me: failed program was:" >&5 |
10607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10608 | ||
e1052144 | 10609 | gt_cv_func_gnugettext1_libintl=no |
a04eba3f | 10610 | fi |
e1052144 | 10611 | |
29a5deed | 10612 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10613 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
10614 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
10615 | LIBS="$LIBS $LIBICONV" | |
b0cacab0 TT |
10616 | cat >conftest.$ac_ext <<_ACEOF |
10617 | /* confdefs.h. */ | |
10618 | _ACEOF | |
10619 | cat confdefs.h >>conftest.$ac_ext | |
10620 | cat >>conftest.$ac_ext <<_ACEOF | |
10621 | /* end confdefs.h. */ | |
a04eba3f TT |
10622 | #include <libintl.h> |
10623 | extern int _nl_msg_cat_cntr; | |
10624 | extern | |
10625 | #ifdef __cplusplus | |
10626 | "C" | |
10627 | #endif | |
10628 | const char *_nl_expand_alias (); | |
b0cacab0 TT |
10629 | int |
10630 | main () | |
10631 | { | |
a04eba3f TT |
10632 | bindtextdomain ("", ""); |
10633 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
b0cacab0 TT |
10634 | ; |
10635 | return 0; | |
10636 | } | |
10637 | _ACEOF | |
10638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
10639 | if { (ac_try="$ac_link" |
10640 | case "(($ac_try" in | |
10641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10642 | *) ac_try_echo=$ac_try;; | |
10643 | esac | |
10644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10645 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
10646 | ac_status=$? |
10647 | grep -v '^ *+' conftest.er1 >conftest.err | |
10648 | rm -f conftest.er1 | |
10649 | cat conftest.err >&5 | |
10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
10651 | (exit $ac_status); } && { |
10652 | test -z "$ac_c_werror_flag" || | |
10653 | test ! -s conftest.err | |
10654 | } && test -s conftest$ac_exeext && | |
10655 | $as_test_x conftest$ac_exeext; then | |
a04eba3f TT |
10656 | LIBINTL="$LIBINTL $LIBICONV" |
10657 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
10658 | gt_cv_func_gnugettext1_libintl=yes | |
b0cacab0 | 10659 | |
a04eba3f | 10660 | else |
b0cacab0 TT |
10661 | echo "$as_me: failed program was:" >&5 |
10662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10663 | ||
e1052144 | 10664 | |
a04eba3f | 10665 | fi |
e1052144 | 10666 | |
29a5deed | 10667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 10668 | conftest$ac_exeext conftest.$ac_ext |
a04eba3f TT |
10669 | fi |
10670 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10671 | LIBS="$gt_save_LIBS" | |
a64c9c13 | 10672 | fi |
e1052144 TT |
10673 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
10674 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } | |
a04eba3f | 10675 | fi |
a64c9c13 | 10676 | |
a04eba3f TT |
10677 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
10678 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
b0cacab0 TT |
10679 | && test "$PACKAGE" != gettext-runtime \ |
10680 | && test "$PACKAGE" != gettext-tools; }; then | |
a04eba3f TT |
10681 | gt_use_preinstalled_gnugettext=yes |
10682 | else | |
10683 | LIBINTL= | |
10684 | LTLIBINTL= | |
10685 | INCINTL= | |
10686 | fi | |
a64c9c13 | 10687 | |
b0cacab0 | 10688 | |
a04eba3f TT |
10689 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
10690 | nls_cv_use_gnu_gettext=yes | |
10691 | fi | |
10692 | fi | |
a64c9c13 | 10693 | |
a04eba3f | 10694 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
b0cacab0 | 10695 | BUILD_INCLUDED_LIBINTL=yes |
a04eba3f TT |
10696 | USE_INCLUDED_LIBINTL=yes |
10697 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
10698 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
10699 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
10700 | fi | |
a64c9c13 | 10701 | |
a04eba3f TT |
10702 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10703 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10704 | CATOBJEXT=.gmo | |
10705 | fi | |
b0cacab0 | 10706 | |
a04eba3f TT |
10707 | |
10708 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
10709 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 TT |
10710 | |
10711 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 10712 | #define ENABLE_NLS 1 |
b0cacab0 | 10713 | _ACEOF |
a04eba3f TT |
10714 | |
10715 | else | |
10716 | USE_NLS=no | |
10717 | fi | |
10718 | fi | |
10719 | ||
e1052144 TT |
10720 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
10721 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } | |
10722 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10723 | echo "${ECHO_T}$USE_NLS" >&6; } | |
b0cacab0 | 10724 | if test "$USE_NLS" = "yes"; then |
e1052144 TT |
10725 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
10726 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } | |
b0cacab0 TT |
10727 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
10728 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
10729 | gt_source="external libintl" | |
10730 | else | |
10731 | gt_source="libc" | |
10732 | fi | |
10733 | else | |
10734 | gt_source="included intl directory" | |
10735 | fi | |
e1052144 TT |
10736 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
10737 | echo "${ECHO_T}$gt_source" >&6; } | |
b0cacab0 TT |
10738 | fi |
10739 | ||
a04eba3f TT |
10740 | if test "$USE_NLS" = "yes"; then |
10741 | ||
10742 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
10743 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
e1052144 TT |
10744 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
10745 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } | |
10746 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
10747 | echo "${ECHO_T}$LIBINTL" >&6; } | |
b0cacab0 | 10748 | |
a04eba3f TT |
10749 | for element in $INCINTL; do |
10750 | haveit= | |
10751 | for x in $CPPFLAGS; do | |
b0cacab0 | 10752 | |
a04eba3f TT |
10753 | acl_save_prefix="$prefix" |
10754 | prefix="$acl_final_prefix" | |
10755 | acl_save_exec_prefix="$exec_prefix" | |
10756 | exec_prefix="$acl_final_exec_prefix" | |
10757 | eval x=\"$x\" | |
10758 | exec_prefix="$acl_save_exec_prefix" | |
10759 | prefix="$acl_save_prefix" | |
10760 | ||
10761 | if test "X$x" = "X$element"; then | |
10762 | haveit=yes | |
10763 | break | |
10764 | fi | |
10765 | done | |
10766 | if test -z "$haveit"; then | |
10767 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10768 | fi | |
10769 | done | |
10770 | ||
10771 | fi | |
10772 | ||
b0cacab0 TT |
10773 | |
10774 | cat >>confdefs.h <<\_ACEOF | |
a04eba3f | 10775 | #define HAVE_GETTEXT 1 |
b0cacab0 TT |
10776 | _ACEOF |
10777 | ||
a04eba3f | 10778 | |
b0cacab0 | 10779 | cat >>confdefs.h <<\_ACEOF |
a04eba3f | 10780 | #define HAVE_DCGETTEXT 1 |
b0cacab0 | 10781 | _ACEOF |
a04eba3f TT |
10782 | |
10783 | fi | |
10784 | ||
10785 | POSUB=po | |
10786 | fi | |
10787 | ||
b0cacab0 TT |
10788 | |
10789 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
a04eba3f TT |
10790 | BUILD_INCLUDED_LIBINTL=yes |
10791 | fi | |
10792 | ||
b0cacab0 TT |
10793 | |
10794 | ||
10795 | ||
93636bde | 10796 | |
a04eba3f TT |
10797 | nls_cv_header_intl= |
10798 | nls_cv_header_libgt= | |
10799 | ||
10800 | DATADIRNAME=share | |
b0cacab0 | 10801 | |
a04eba3f TT |
10802 | |
10803 | INSTOBJEXT=.mo | |
b0cacab0 | 10804 | |
a04eba3f TT |
10805 | |
10806 | GENCAT=gencat | |
b0cacab0 TT |
10807 | |
10808 | ||
10809 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
10810 | INTLOBJS="\$(GETTOBJS)" | |
10811 | fi | |
10812 | ||
a04eba3f TT |
10813 | |
10814 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
b0cacab0 TT |
10815 | |
10816 | ||
a04eba3f TT |
10817 | |
10818 | INTLLIBS="$LIBINTL" | |
93636bde | 10819 | |
a64c9c13 | 10820 | |
93636bde | 10821 | |
b0cacab0 TT |
10822 | |
10823 | ||
10824 | ||
10825 | ||
e1052144 TT |
10826 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
10827 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
10828 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
10829 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 | 10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
50e1e10f | 10831 | else |
b0cacab0 | 10832 | cat >conftest.make <<\_ACEOF |
e1052144 | 10833 | SHELL = /bin/sh |
50e1e10f | 10834 | all: |
e1052144 | 10835 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b0cacab0 | 10836 | _ACEOF |
50e1e10f | 10837 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e1052144 TT |
10838 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
10839 | *@@@%%%=?*=@@@%%%*) | |
10840 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
10841 | *) | |
10842 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
10843 | esac | |
b0cacab0 | 10844 | rm -f conftest.make |
50e1e10f | 10845 | fi |
e1052144 TT |
10846 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
10847 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10848 | echo "${ECHO_T}yes" >&6; } | |
50e1e10f TT |
10849 | SET_MAKE= |
10850 | else | |
e1052144 TT |
10851 | { echo "$as_me:$LINENO: result: no" >&5 |
10852 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
10853 | SET_MAKE="MAKE=${MAKE-make}" |
10854 | fi | |
10855 | ||
10856 | # Extract the first word of "ln", so it can be a program name with args. | |
10857 | set dummy ln; ac_word=$2 | |
e1052144 TT |
10858 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
10860 | if test "${ac_cv_path_LN+set}" = set; then |
10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10862 | else |
b0cacab0 TT |
10863 | case $LN in |
10864 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10865 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
10866 | ;; | |
10867 | *) | |
b0cacab0 TT |
10868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10869 | for as_dir in $PATH | |
10870 | do | |
10871 | IFS=$as_save_IFS | |
10872 | test -z "$as_dir" && as_dir=. | |
10873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 10874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
10875 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
10876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10877 | break 2 | |
10878 | fi | |
10879 | done | |
10880 | done | |
e1052144 | 10881 | IFS=$as_save_IFS |
b0cacab0 | 10882 | |
50e1e10f TT |
10883 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
10884 | ;; | |
10885 | esac | |
10886 | fi | |
b0cacab0 | 10887 | LN=$ac_cv_path_LN |
50e1e10f | 10888 | if test -n "$LN"; then |
e1052144 TT |
10889 | { echo "$as_me:$LINENO: result: $LN" >&5 |
10890 | echo "${ECHO_T}$LN" >&6; } | |
50e1e10f | 10891 | else |
e1052144 TT |
10892 | { echo "$as_me:$LINENO: result: no" >&5 |
10893 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
10894 | fi |
10895 | ||
e1052144 TT |
10896 | |
10897 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
10898 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
b0cacab0 TT |
10899 | LN_S=$as_ln_s |
10900 | if test "$LN_S" = "ln -s"; then | |
e1052144 TT |
10901 | { echo "$as_me:$LINENO: result: yes" >&5 |
10902 | echo "${ECHO_T}yes" >&6; } | |
fc6d9d51 | 10903 | else |
e1052144 TT |
10904 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
10905 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
fc6d9d51 TT |
10906 | fi |
10907 | ||
50e1e10f TT |
10908 | # Extract the first word of "mv", so it can be a program name with args. |
10909 | set dummy mv; ac_word=$2 | |
e1052144 TT |
10910 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
10912 | if test "${ac_cv_path_MV+set}" = set; then |
10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10914 | else |
b0cacab0 TT |
10915 | case $MV in |
10916 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10917 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
10918 | ;; | |
10919 | *) | |
b0cacab0 TT |
10920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10921 | for as_dir in $PATH | |
10922 | do | |
10923 | IFS=$as_save_IFS | |
10924 | test -z "$as_dir" && as_dir=. | |
10925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 10926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
10927 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
10928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10929 | break 2 | |
10930 | fi | |
10931 | done | |
10932 | done | |
e1052144 | 10933 | IFS=$as_save_IFS |
b0cacab0 | 10934 | |
50e1e10f TT |
10935 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
10936 | ;; | |
10937 | esac | |
10938 | fi | |
b0cacab0 | 10939 | MV=$ac_cv_path_MV |
50e1e10f | 10940 | if test -n "$MV"; then |
e1052144 TT |
10941 | { echo "$as_me:$LINENO: result: $MV" >&5 |
10942 | echo "${ECHO_T}$MV" >&6; } | |
50e1e10f | 10943 | else |
e1052144 TT |
10944 | { echo "$as_me:$LINENO: result: no" >&5 |
10945 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
10946 | fi |
10947 | ||
e1052144 | 10948 | |
50e1e10f TT |
10949 | # Extract the first word of "cp", so it can be a program name with args. |
10950 | set dummy cp; ac_word=$2 | |
e1052144 TT |
10951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
10953 | if test "${ac_cv_path_CP+set}" = set; then |
10954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10955 | else |
b0cacab0 TT |
10956 | case $CP in |
10957 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10958 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
10959 | ;; | |
10960 | *) | |
b0cacab0 TT |
10961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10962 | for as_dir in $PATH | |
10963 | do | |
10964 | IFS=$as_save_IFS | |
10965 | test -z "$as_dir" && as_dir=. | |
10966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 10967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
10968 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
10969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10970 | break 2 | |
10971 | fi | |
10972 | done | |
10973 | done | |
e1052144 | 10974 | IFS=$as_save_IFS |
b0cacab0 | 10975 | |
50e1e10f TT |
10976 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
10977 | ;; | |
10978 | esac | |
10979 | fi | |
b0cacab0 | 10980 | CP=$ac_cv_path_CP |
50e1e10f | 10981 | if test -n "$CP"; then |
e1052144 TT |
10982 | { echo "$as_me:$LINENO: result: $CP" >&5 |
10983 | echo "${ECHO_T}$CP" >&6; } | |
50e1e10f | 10984 | else |
e1052144 TT |
10985 | { echo "$as_me:$LINENO: result: no" >&5 |
10986 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
10987 | fi |
10988 | ||
e1052144 | 10989 | |
50e1e10f TT |
10990 | # Extract the first word of "rm", so it can be a program name with args. |
10991 | set dummy rm; ac_word=$2 | |
e1052144 TT |
10992 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
10994 | if test "${ac_cv_path_RM+set}" = set; then |
10995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 10996 | else |
b0cacab0 TT |
10997 | case $RM in |
10998 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
10999 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
11000 | ;; | |
11001 | *) | |
b0cacab0 TT |
11002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11003 | for as_dir in $PATH | |
11004 | do | |
11005 | IFS=$as_save_IFS | |
11006 | test -z "$as_dir" && as_dir=. | |
11007 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11009 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
11010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11011 | break 2 | |
11012 | fi | |
11013 | done | |
11014 | done | |
e1052144 | 11015 | IFS=$as_save_IFS |
b0cacab0 | 11016 | |
50e1e10f TT |
11017 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11018 | ;; | |
11019 | esac | |
11020 | fi | |
b0cacab0 | 11021 | RM=$ac_cv_path_RM |
50e1e10f | 11022 | if test -n "$RM"; then |
e1052144 TT |
11023 | { echo "$as_me:$LINENO: result: $RM" >&5 |
11024 | echo "${ECHO_T}$RM" >&6; } | |
50e1e10f | 11025 | else |
e1052144 TT |
11026 | { echo "$as_me:$LINENO: result: no" >&5 |
11027 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11028 | fi |
11029 | ||
e1052144 | 11030 | |
50e1e10f TT |
11031 | # Extract the first word of "chmod", so it can be a program name with args. |
11032 | set dummy chmod; ac_word=$2 | |
e1052144 TT |
11033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11035 | if test "${ac_cv_path_CHMOD+set}" = set; then |
11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 11037 | else |
b0cacab0 TT |
11038 | case $CHMOD in |
11039 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11040 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
11041 | ;; | |
11042 | *) | |
b0cacab0 TT |
11043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11044 | for as_dir in $PATH | |
11045 | do | |
11046 | IFS=$as_save_IFS | |
11047 | test -z "$as_dir" && as_dir=. | |
11048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11050 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
11051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11052 | break 2 | |
11053 | fi | |
11054 | done | |
11055 | done | |
e1052144 | 11056 | IFS=$as_save_IFS |
b0cacab0 | 11057 | |
50e1e10f TT |
11058 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11059 | ;; | |
11060 | esac | |
11061 | fi | |
b0cacab0 | 11062 | CHMOD=$ac_cv_path_CHMOD |
50e1e10f | 11063 | if test -n "$CHMOD"; then |
e1052144 TT |
11064 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
11065 | echo "${ECHO_T}$CHMOD" >&6; } | |
50e1e10f | 11066 | else |
e1052144 TT |
11067 | { echo "$as_me:$LINENO: result: no" >&5 |
11068 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11069 | fi |
11070 | ||
e1052144 | 11071 | |
32237014 TT |
11072 | for ac_prog in gawk mawk nawk awk |
11073 | do | |
11074 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11075 | set dummy $ac_prog; ac_word=$2 | |
e1052144 TT |
11076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
32237014 | 11078 | if test "${ac_cv_prog_AWK+set}" = set; then |
b0cacab0 | 11079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
50e1e10f | 11080 | else |
32237014 TT |
11081 | if test -n "$AWK"; then |
11082 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
11083 | else | |
11084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b0cacab0 TT |
11085 | for as_dir in $PATH |
11086 | do | |
11087 | IFS=$as_save_IFS | |
11088 | test -z "$as_dir" && as_dir=. | |
11089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
32237014 | 11091 | ac_cv_prog_AWK="$ac_prog" |
b0cacab0 TT |
11092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11093 | break 2 | |
11094 | fi | |
11095 | done | |
11096 | done | |
e1052144 | 11097 | IFS=$as_save_IFS |
b0cacab0 | 11098 | |
50e1e10f | 11099 | fi |
32237014 TT |
11100 | fi |
11101 | AWK=$ac_cv_prog_AWK | |
50e1e10f | 11102 | if test -n "$AWK"; then |
e1052144 TT |
11103 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
11104 | echo "${ECHO_T}$AWK" >&6; } | |
50e1e10f | 11105 | else |
e1052144 TT |
11106 | { echo "$as_me:$LINENO: result: no" >&5 |
11107 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11108 | fi |
11109 | ||
e1052144 | 11110 | |
32237014 TT |
11111 | test -n "$AWK" && break |
11112 | done | |
11113 | ||
e1052144 TT |
11114 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
11115 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
11116 | if test "${ac_cv_path_EGREP+set}" = set; then | |
32237014 TT |
11117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11118 | else | |
e1052144 TT |
11119 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11120 | then ac_cv_path_EGREP="$GREP -E" | |
11121 | else | |
11122 | # Extract the first word of "egrep" to use in msg output | |
11123 | if test -z "$EGREP"; then | |
11124 | set dummy egrep; ac_prog_name=$2 | |
11125 | if test "${ac_cv_path_EGREP+set}" = set; then | |
11126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11127 | else | |
11128 | ac_path_EGREP_found=false | |
11129 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11132 | do | |
11133 | IFS=$as_save_IFS | |
11134 | test -z "$as_dir" && as_dir=. | |
11135 | for ac_prog in egrep; do | |
11136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11137 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
29a5deed | 11138 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
e1052144 TT |
11139 | # Check for GNU ac_path_EGREP and select it if it is found. |
11140 | # Check for GNU $ac_path_EGREP | |
11141 | case `"$ac_path_EGREP" --version 2>&1` in | |
11142 | *GNU*) | |
11143 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11144 | *) | |
11145 | ac_count=0 | |
11146 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
11147 | while : | |
11148 | do | |
11149 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11150 | mv "conftest.tmp" "conftest.in" | |
11151 | cp "conftest.in" "conftest.nl" | |
11152 | echo 'EGREP' >> "conftest.nl" | |
11153 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
11154 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11155 | ac_count=`expr $ac_count + 1` | |
11156 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11157 | # Best one so far, save it but keep looking for a better one | |
11158 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11159 | ac_path_EGREP_max=$ac_count | |
32237014 | 11160 | fi |
e1052144 TT |
11161 | # 10*(2^10) chars as input seems more than enough |
11162 | test $ac_count -gt 10 && break | |
11163 | done | |
11164 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
11165 | esac | |
11166 | ||
11167 | ||
11168 | $ac_path_EGREP_found && break 3 | |
11169 | done | |
11170 | done | |
11171 | ||
11172 | done | |
11173 | IFS=$as_save_IFS | |
11174 | ||
11175 | ||
11176 | fi | |
11177 | ||
11178 | EGREP="$ac_cv_path_EGREP" | |
11179 | if test -z "$EGREP"; then | |
11180 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
11181 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
11182 | { (exit 1); exit 1; }; } | |
11183 | fi | |
11184 | ||
11185 | else | |
11186 | ac_cv_path_EGREP=$EGREP | |
11187 | fi | |
11188 | ||
11189 | ||
11190 | fi | |
32237014 | 11191 | fi |
e1052144 TT |
11192 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
11193 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
11194 | EGREP="$ac_cv_path_EGREP" | |
32237014 TT |
11195 | |
11196 | ||
50e1e10f TT |
11197 | # Extract the first word of "sed", so it can be a program name with args. |
11198 | set dummy sed; ac_word=$2 | |
e1052144 TT |
11199 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11201 | if test "${ac_cv_path_SED+set}" = set; then |
11202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 11203 | else |
b0cacab0 TT |
11204 | case $SED in |
11205 | [\\/]* | ?:[\\/]*) | |
50e1e10f TT |
11206 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
11207 | ;; | |
11208 | *) | |
b0cacab0 TT |
11209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11210 | for as_dir in $PATH | |
11211 | do | |
11212 | IFS=$as_save_IFS | |
11213 | test -z "$as_dir" && as_dir=. | |
11214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11216 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
11217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11218 | break 2 | |
11219 | fi | |
11220 | done | |
11221 | done | |
e1052144 | 11222 | IFS=$as_save_IFS |
b0cacab0 | 11223 | |
50e1e10f TT |
11224 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
11225 | ;; | |
11226 | esac | |
11227 | fi | |
b0cacab0 | 11228 | SED=$ac_cv_path_SED |
50e1e10f | 11229 | if test -n "$SED"; then |
e1052144 TT |
11230 | { echo "$as_me:$LINENO: result: $SED" >&5 |
11231 | echo "${ECHO_T}$SED" >&6; } | |
50e1e10f | 11232 | else |
e1052144 TT |
11233 | { echo "$as_me:$LINENO: result: no" >&5 |
11234 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11235 | fi |
11236 | ||
e1052144 | 11237 | |
9d564f73 TT |
11238 | # Extract the first word of "perl", so it can be a program name with args. |
11239 | set dummy perl; ac_word=$2 | |
e1052144 TT |
11240 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11242 | if test "${ac_cv_path_PERL+set}" = set; then |
11243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9d564f73 | 11244 | else |
b0cacab0 TT |
11245 | case $PERL in |
11246 | [\\/]* | ?:[\\/]*) | |
9d564f73 TT |
11247 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
11248 | ;; | |
9d564f73 | 11249 | *) |
b0cacab0 TT |
11250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11251 | for as_dir in $PATH | |
11252 | do | |
11253 | IFS=$as_save_IFS | |
11254 | test -z "$as_dir" && as_dir=. | |
11255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11257 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
11258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11259 | break 2 | |
11260 | fi | |
11261 | done | |
11262 | done | |
e1052144 | 11263 | IFS=$as_save_IFS |
b0cacab0 | 11264 | |
9d564f73 TT |
11265 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
11266 | ;; | |
11267 | esac | |
11268 | fi | |
b0cacab0 | 11269 | PERL=$ac_cv_path_PERL |
9d564f73 | 11270 | if test -n "$PERL"; then |
e1052144 TT |
11271 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
11272 | echo "${ECHO_T}$PERL" >&6; } | |
9d564f73 | 11273 | else |
e1052144 TT |
11274 | { echo "$as_me:$LINENO: result: no" >&5 |
11275 | echo "${ECHO_T}no" >&6; } | |
9d564f73 TT |
11276 | fi |
11277 | ||
e1052144 | 11278 | |
250f79f0 TT |
11279 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11280 | set dummy ldconfig; ac_word=$2 | |
e1052144 TT |
11281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11283 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
11284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
250f79f0 | 11285 | else |
b0cacab0 TT |
11286 | case $LDCONFIG in |
11287 | [\\/]* | ?:[\\/]*) | |
250f79f0 TT |
11288 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
11289 | ;; | |
250f79f0 | 11290 | *) |
b0cacab0 TT |
11291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11292 | for as_dir in $PATH | |
11293 | do | |
11294 | IFS=$as_save_IFS | |
11295 | test -z "$as_dir" && as_dir=. | |
11296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11298 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
11299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11300 | break 2 | |
11301 | fi | |
11302 | done | |
11303 | done | |
e1052144 | 11304 | IFS=$as_save_IFS |
b0cacab0 | 11305 | |
250f79f0 TT |
11306 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
11307 | ;; | |
11308 | esac | |
11309 | fi | |
b0cacab0 | 11310 | LDCONFIG=$ac_cv_path_LDCONFIG |
b0cacab0 | 11311 | if test -n "$LDCONFIG"; then |
e1052144 TT |
11312 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
11313 | echo "${ECHO_T}$LDCONFIG" >&6; } | |
93636bde | 11314 | else |
e1052144 TT |
11315 | { echo "$as_me:$LINENO: result: no" >&5 |
11316 | echo "${ECHO_T}no" >&6; } | |
93636bde TT |
11317 | fi |
11318 | ||
e1052144 | 11319 | |
b0cacab0 TT |
11320 | if test -n "$ac_tool_prefix"; then |
11321 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
50e1e10f | 11322 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
e1052144 TT |
11323 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11325 | if test "${ac_cv_prog_AR+set}" = set; then |
11326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
11327 | else |
11328 | if test -n "$AR"; then | |
11329 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11330 | else | |
b0cacab0 TT |
11331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11332 | for as_dir in $PATH | |
11333 | do | |
11334 | IFS=$as_save_IFS | |
11335 | test -z "$as_dir" && as_dir=. | |
11336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11338 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
11339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11340 | break 2 | |
11341 | fi | |
11342 | done | |
11343 | done | |
e1052144 | 11344 | IFS=$as_save_IFS |
b0cacab0 | 11345 | |
50e1e10f TT |
11346 | fi |
11347 | fi | |
b0cacab0 | 11348 | AR=$ac_cv_prog_AR |
50e1e10f | 11349 | if test -n "$AR"; then |
e1052144 TT |
11350 | { echo "$as_me:$LINENO: result: $AR" >&5 |
11351 | echo "${ECHO_T}$AR" >&6; } | |
50e1e10f | 11352 | else |
e1052144 TT |
11353 | { echo "$as_me:$LINENO: result: no" >&5 |
11354 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11355 | fi |
11356 | ||
e1052144 | 11357 | |
b0cacab0 | 11358 | fi |
50e1e10f | 11359 | if test -z "$ac_cv_prog_AR"; then |
b0cacab0 | 11360 | ac_ct_AR=$AR |
50e1e10f TT |
11361 | # Extract the first word of "ar", so it can be a program name with args. |
11362 | set dummy ar; ac_word=$2 | |
e1052144 TT |
11363 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11365 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
11366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 11367 | else |
b0cacab0 TT |
11368 | if test -n "$ac_ct_AR"; then |
11369 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
93636bde | 11370 | else |
b0cacab0 TT |
11371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11372 | for as_dir in $PATH | |
11373 | do | |
11374 | IFS=$as_save_IFS | |
11375 | test -z "$as_dir" && as_dir=. | |
11376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11378 | ac_cv_prog_ac_ct_AR="ar" |
11379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11380 | break 2 | |
11381 | fi | |
11382 | done | |
11383 | done | |
e1052144 | 11384 | IFS=$as_save_IFS |
b0cacab0 | 11385 | |
50e1e10f TT |
11386 | fi |
11387 | fi | |
b0cacab0 TT |
11388 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
11389 | if test -n "$ac_ct_AR"; then | |
e1052144 TT |
11390 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
11391 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
50e1e10f | 11392 | else |
e1052144 TT |
11393 | { echo "$as_me:$LINENO: result: no" >&5 |
11394 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11395 | fi |
11396 | ||
e1052144 TT |
11397 | if test "x$ac_ct_AR" = x; then |
11398 | AR="ar" | |
11399 | else | |
11400 | case $cross_compiling:$ac_tool_warned in | |
11401 | yes:) | |
11402 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
11403 | whose name does not start with the host triplet. If you think this | |
11404 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
11405 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
11406 | whose name does not start with the host triplet. If you think this | |
11407 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
11408 | ac_tool_warned=yes ;; | |
11409 | esac | |
11410 | AR=$ac_ct_AR | |
11411 | fi | |
50e1e10f | 11412 | else |
b0cacab0 | 11413 | AR="$ac_cv_prog_AR" |
50e1e10f TT |
11414 | fi |
11415 | ||
b0cacab0 TT |
11416 | if test -n "$ac_tool_prefix"; then |
11417 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
50e1e10f | 11418 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
e1052144 TT |
11419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11421 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
11422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
11423 | else |
11424 | if test -n "$RANLIB"; then | |
11425 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11426 | else | |
b0cacab0 TT |
11427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11428 | for as_dir in $PATH | |
11429 | do | |
11430 | IFS=$as_save_IFS | |
11431 | test -z "$as_dir" && as_dir=. | |
11432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11434 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
11435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11436 | break 2 | |
11437 | fi | |
11438 | done | |
11439 | done | |
e1052144 | 11440 | IFS=$as_save_IFS |
b0cacab0 | 11441 | |
50e1e10f TT |
11442 | fi |
11443 | fi | |
b0cacab0 | 11444 | RANLIB=$ac_cv_prog_RANLIB |
50e1e10f | 11445 | if test -n "$RANLIB"; then |
e1052144 TT |
11446 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11447 | echo "${ECHO_T}$RANLIB" >&6; } | |
50e1e10f | 11448 | else |
e1052144 TT |
11449 | { echo "$as_me:$LINENO: result: no" >&5 |
11450 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11451 | fi |
11452 | ||
e1052144 | 11453 | |
b0cacab0 | 11454 | fi |
50e1e10f | 11455 | if test -z "$ac_cv_prog_RANLIB"; then |
b0cacab0 | 11456 | ac_ct_RANLIB=$RANLIB |
50e1e10f TT |
11457 | # Extract the first word of "ranlib", so it can be a program name with args. |
11458 | set dummy ranlib; ac_word=$2 | |
e1052144 TT |
11459 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11461 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 11463 | else |
b0cacab0 TT |
11464 | if test -n "$ac_ct_RANLIB"; then |
11465 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
93636bde | 11466 | else |
b0cacab0 TT |
11467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11468 | for as_dir in $PATH | |
11469 | do | |
11470 | IFS=$as_save_IFS | |
11471 | test -z "$as_dir" && as_dir=. | |
11472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11474 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
11475 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11476 | break 2 | |
11477 | fi | |
11478 | done | |
11479 | done | |
e1052144 | 11480 | IFS=$as_save_IFS |
b0cacab0 | 11481 | |
50e1e10f TT |
11482 | fi |
11483 | fi | |
b0cacab0 TT |
11484 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
11485 | if test -n "$ac_ct_RANLIB"; then | |
e1052144 TT |
11486 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
11487 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
50e1e10f | 11488 | else |
e1052144 TT |
11489 | { echo "$as_me:$LINENO: result: no" >&5 |
11490 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11491 | fi |
11492 | ||
e1052144 TT |
11493 | if test "x$ac_ct_RANLIB" = x; then |
11494 | RANLIB=":" | |
11495 | else | |
11496 | case $cross_compiling:$ac_tool_warned in | |
11497 | yes:) | |
11498 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
11499 | whose name does not start with the host triplet. If you think this | |
11500 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
11501 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
11502 | whose name does not start with the host triplet. If you think this | |
11503 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
11504 | ac_tool_warned=yes ;; | |
11505 | esac | |
11506 | RANLIB=$ac_ct_RANLIB | |
11507 | fi | |
50e1e10f | 11508 | else |
b0cacab0 | 11509 | RANLIB="$ac_cv_prog_RANLIB" |
50e1e10f TT |
11510 | fi |
11511 | ||
b0cacab0 TT |
11512 | if test -n "$ac_tool_prefix"; then |
11513 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
50e1e10f | 11514 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
e1052144 TT |
11515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11517 | if test "${ac_cv_prog_STRIP+set}" = set; then |
11518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f TT |
11519 | else |
11520 | if test -n "$STRIP"; then | |
11521 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11522 | else | |
b0cacab0 TT |
11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11524 | for as_dir in $PATH | |
11525 | do | |
11526 | IFS=$as_save_IFS | |
11527 | test -z "$as_dir" && as_dir=. | |
11528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11530 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
11531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11532 | break 2 | |
11533 | fi | |
11534 | done | |
11535 | done | |
e1052144 | 11536 | IFS=$as_save_IFS |
b0cacab0 | 11537 | |
50e1e10f TT |
11538 | fi |
11539 | fi | |
b0cacab0 | 11540 | STRIP=$ac_cv_prog_STRIP |
50e1e10f | 11541 | if test -n "$STRIP"; then |
e1052144 TT |
11542 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
11543 | echo "${ECHO_T}$STRIP" >&6; } | |
50e1e10f | 11544 | else |
e1052144 TT |
11545 | { echo "$as_me:$LINENO: result: no" >&5 |
11546 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11547 | fi |
11548 | ||
e1052144 | 11549 | |
b0cacab0 | 11550 | fi |
50e1e10f | 11551 | if test -z "$ac_cv_prog_STRIP"; then |
b0cacab0 | 11552 | ac_ct_STRIP=$STRIP |
50e1e10f TT |
11553 | # Extract the first word of "strip", so it can be a program name with args. |
11554 | set dummy strip; ac_word=$2 | |
e1052144 TT |
11555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11557 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
11558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
93636bde | 11559 | else |
b0cacab0 TT |
11560 | if test -n "$ac_ct_STRIP"; then |
11561 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
93636bde | 11562 | else |
b0cacab0 TT |
11563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11564 | for as_dir in $PATH | |
11565 | do | |
11566 | IFS=$as_save_IFS | |
11567 | test -z "$as_dir" && as_dir=. | |
11568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11570 | ac_cv_prog_ac_ct_STRIP="strip" |
11571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11572 | break 2 | |
11573 | fi | |
11574 | done | |
11575 | done | |
e1052144 | 11576 | IFS=$as_save_IFS |
b0cacab0 | 11577 | |
50e1e10f TT |
11578 | fi |
11579 | fi | |
b0cacab0 TT |
11580 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
11581 | if test -n "$ac_ct_STRIP"; then | |
e1052144 TT |
11582 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
11583 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
50e1e10f | 11584 | else |
e1052144 TT |
11585 | { echo "$as_me:$LINENO: result: no" >&5 |
11586 | echo "${ECHO_T}no" >&6; } | |
50e1e10f TT |
11587 | fi |
11588 | ||
e1052144 TT |
11589 | if test "x$ac_ct_STRIP" = x; then |
11590 | STRIP=":" | |
11591 | else | |
11592 | case $cross_compiling:$ac_tool_warned in | |
11593 | yes:) | |
11594 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
11595 | whose name does not start with the host triplet. If you think this | |
11596 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
11597 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
11598 | whose name does not start with the host triplet. If you think this | |
11599 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
11600 | ac_tool_warned=yes ;; | |
11601 | esac | |
11602 | STRIP=$ac_ct_STRIP | |
11603 | fi | |
50e1e10f | 11604 | else |
b0cacab0 | 11605 | STRIP="$ac_cv_prog_STRIP" |
50e1e10f TT |
11606 | fi |
11607 | ||
7321d94e MK |
11608 | # Extract the first word of "makeinfo", so it can be a program name with args. |
11609 | set dummy makeinfo; ac_word=$2 | |
11610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
11612 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then | |
11613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11614 | else | |
11615 | if test -n "$MAKEINFO"; then | |
11616 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
11617 | else | |
11618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11619 | for as_dir in $PATH | |
11620 | do | |
11621 | IFS=$as_save_IFS | |
11622 | test -z "$as_dir" && as_dir=. | |
11623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11625 | ac_cv_prog_MAKEINFO="makeinfo" | |
11626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11627 | break 2 | |
11628 | fi | |
11629 | done | |
11630 | done | |
11631 | IFS=$as_save_IFS | |
11632 | ||
11633 | fi | |
11634 | fi | |
11635 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
11636 | if test -n "$MAKEINFO"; then | |
11637 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
11638 | echo "${ECHO_T}$MAKEINFO" >&6; } | |
11639 | else | |
11640 | { echo "$as_me:$LINENO: result: no" >&5 | |
11641 | echo "${ECHO_T}no" >&6; } | |
11642 | fi | |
11643 | ||
11644 | ||
11645 | if test "_$MAKEINFO" = "_"; then | |
11646 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" | |
11647 | else | |
11648 | case "$MAKEINFO" in | |
11649 | */missing.*) | |
11650 | { echo "$as_me:$LINENO: WARNING: | |
11651 | *** Makeinfo is missing. Info documentation will not be built." >&5 | |
11652 | echo "$as_me: WARNING: | |
11653 | *** Makeinfo is missing. Info documentation will not be built." >&2;} | |
11654 | ;; | |
11655 | *) | |
11656 | ;; | |
11657 | esac | |
11658 | fi | |
11659 | ||
50e1e10f TT |
11660 | # Find a good install program. We prefer a C program (faster), |
11661 | # so one script is as good as another. But avoid the broken or | |
11662 | # incompatible versions: | |
11663 | # SysV /etc/install, /usr/sbin/install | |
11664 | # SunOS /usr/etc/install | |
11665 | # IRIX /sbin/install | |
11666 | # AIX /bin/install | |
b0cacab0 | 11667 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a4bf69d9 | 11668 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
50e1e10f TT |
11669 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11670 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b0cacab0 | 11671 | # OS/2's system install, which has a completely different semantic |
50e1e10f | 11672 | # ./install, which can be erroneously created by make from ./install.sh. |
e1052144 TT |
11673 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11674 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
50e1e10f | 11675 | if test -z "$INSTALL"; then |
b0cacab0 TT |
11676 | if test "${ac_cv_path_install+set}" = set; then |
11677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 11678 | else |
b0cacab0 TT |
11679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11680 | for as_dir in $PATH | |
11681 | do | |
11682 | IFS=$as_save_IFS | |
11683 | test -z "$as_dir" && as_dir=. | |
11684 | # Account for people who put trailing slashes in PATH elements. | |
11685 | case $as_dir/ in | |
11686 | ./ | .// | /cC/* | \ | |
11687 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11688 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
11689 | /usr/ucb/* ) ;; | |
11690 | *) | |
11691 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11692 | # Don't use installbsd from OSF since it installs stuff as root | |
11693 | # by default. | |
11694 | for ac_prog in ginstall scoinst install; do | |
11695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11696 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
50e1e10f | 11697 | if test $ac_prog = install && |
b0cacab0 | 11698 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
50e1e10f | 11699 | # AIX install. It has an incompatible calling convention. |
50e1e10f | 11700 | : |
b0cacab0 TT |
11701 | elif test $ac_prog = install && |
11702 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11703 | # program-specific install script used by HP pwplus--don't use. | |
11704 | : | |
50e1e10f | 11705 | else |
b0cacab0 TT |
11706 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
11707 | break 3 | |
50e1e10f TT |
11708 | fi |
11709 | fi | |
11710 | done | |
b0cacab0 TT |
11711 | done |
11712 | ;; | |
11713 | esac | |
11714 | done | |
e1052144 | 11715 | IFS=$as_save_IFS |
b0cacab0 | 11716 | |
21c84b71 | 11717 | |
50e1e10f | 11718 | fi |
21c84b71 | 11719 | if test "${ac_cv_path_install+set}" = set; then |
b0cacab0 | 11720 | INSTALL=$ac_cv_path_install |
21c84b71 | 11721 | else |
e1052144 TT |
11722 | # As a last resort, use the slow shell script. Don't cache a |
11723 | # value for INSTALL within a source directory, because that will | |
21c84b71 | 11724 | # break other packages using the cache if that directory is |
e1052144 | 11725 | # removed, or if the value is a relative name. |
b0cacab0 | 11726 | INSTALL=$ac_install_sh |
21c84b71 | 11727 | fi |
50e1e10f | 11728 | fi |
e1052144 TT |
11729 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11730 | echo "${ECHO_T}$INSTALL" >&6; } | |
50e1e10f TT |
11731 | |
11732 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11733 | # It thinks the first close brace ends the variable substitution. | |
11734 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11735 | ||
b0cacab0 | 11736 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a4bf69d9 | 11737 | |
50e1e10f TT |
11738 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11739 | ||
6c133523 TT |
11740 | # See if we need a separate native compiler. |
11741 | if test $cross_compiling = no; then | |
11742 | BUILD_CC="$CC" | |
b0cacab0 | 11743 | |
6c133523 TT |
11744 | else |
11745 | for ac_prog in gcc cc | |
11746 | do | |
b0cacab0 | 11747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6c133523 | 11748 | set dummy $ac_prog; ac_word=$2 |
e1052144 TT |
11749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b0cacab0 TT |
11751 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
11752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6c133523 | 11753 | else |
b0cacab0 TT |
11754 | if test -n "$BUILD_CC"; then |
11755 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
11756 | else | |
11757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11758 | for as_dir in $PATH | |
11759 | do | |
11760 | IFS=$as_save_IFS | |
11761 | test -z "$as_dir" && as_dir=. | |
11762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29a5deed | 11763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b0cacab0 TT |
11764 | ac_cv_prog_BUILD_CC="$ac_prog" |
11765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11766 | break 2 | |
11767 | fi | |
11768 | done | |
11769 | done | |
e1052144 | 11770 | IFS=$as_save_IFS |
b0cacab0 | 11771 | |
6c133523 TT |
11772 | fi |
11773 | fi | |
b0cacab0 | 11774 | BUILD_CC=$ac_cv_prog_BUILD_CC |
6c133523 | 11775 | if test -n "$BUILD_CC"; then |
e1052144 TT |
11776 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
11777 | echo "${ECHO_T}$BUILD_CC" >&6; } | |
6c133523 | 11778 | else |
e1052144 TT |
11779 | { echo "$as_me:$LINENO: result: no" >&5 |
11780 | echo "${ECHO_T}no" >&6; } | |
6c133523 TT |
11781 | fi |
11782 | ||
e1052144 | 11783 | |
b0cacab0 | 11784 | test -n "$BUILD_CC" && break |
6c133523 TT |
11785 | done |
11786 | ||
11787 | fi | |
b0cacab0 | 11788 | |
740837de | 11789 | |
b0cacab0 TT |
11790 | |
11791 | ||
11792 | ||
11793 | ||
11794 | ||
11795 | ||
11796 | ||
11797 | ||
11798 | ||
11799 | ||
11800 | ||
11801 | ||
11802 | ||
11803 | ||
11804 | ||
11805 | ||
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | ||
11811 | ||
11812 | ||
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | ||
762c7c65 | 11818 | |
106ad96d TT |
11819 | |
11820 | ||
e7cc6f7d CG |
11821 | |
11822 | ||
11823 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h | |
50e1e10f | 11824 | do |
b0cacab0 | 11825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 TT |
11826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11827 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11829 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11831 | fi | |
e1052144 TT |
11832 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11834 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
11835 | else |
11836 | # Is the header compilable? | |
e1052144 TT |
11837 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11838 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
11839 | cat >conftest.$ac_ext <<_ACEOF |
11840 | /* confdefs.h. */ | |
11841 | _ACEOF | |
11842 | cat confdefs.h >>conftest.$ac_ext | |
11843 | cat >>conftest.$ac_ext <<_ACEOF | |
11844 | /* end confdefs.h. */ | |
11845 | $ac_includes_default | |
11846 | #include <$ac_header> | |
11847 | _ACEOF | |
11848 | rm -f conftest.$ac_objext | |
e1052144 TT |
11849 | if { (ac_try="$ac_compile" |
11850 | case "(($ac_try" in | |
11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11852 | *) ac_try_echo=$ac_try;; | |
11853 | esac | |
11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11855 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
11856 | ac_status=$? |
11857 | grep -v '^ *+' conftest.er1 >conftest.err | |
11858 | rm -f conftest.er1 | |
11859 | cat conftest.err >&5 | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
11861 | (exit $ac_status); } && { |
11862 | test -z "$ac_c_werror_flag" || | |
11863 | test ! -s conftest.err | |
11864 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
11865 | ac_header_compiler=yes |
11866 | else | |
11867 | echo "$as_me: failed program was:" >&5 | |
11868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11869 | ||
e1052144 | 11870 | ac_header_compiler=no |
b0cacab0 | 11871 | fi |
e1052144 TT |
11872 | |
11873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11874 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11875 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
11876 | |
11877 | # Is the header present? | |
e1052144 TT |
11878 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
11880 | cat >conftest.$ac_ext <<_ACEOF |
11881 | /* confdefs.h. */ | |
11882 | _ACEOF | |
11883 | cat confdefs.h >>conftest.$ac_ext | |
11884 | cat >>conftest.$ac_ext <<_ACEOF | |
11885 | /* end confdefs.h. */ | |
11886 | #include <$ac_header> | |
11887 | _ACEOF | |
e1052144 TT |
11888 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11889 | case "(($ac_try" in | |
11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11891 | *) ac_try_echo=$ac_try;; | |
11892 | esac | |
11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11894 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
11895 | ac_status=$? |
11896 | grep -v '^ *+' conftest.er1 >conftest.err | |
11897 | rm -f conftest.er1 | |
11898 | cat conftest.err >&5 | |
11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
11900 | (exit $ac_status); } >/dev/null && { |
11901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11902 | test ! -s conftest.err | |
11903 | }; then | |
b0cacab0 TT |
11904 | ac_header_preproc=yes |
11905 | else | |
11906 | echo "$as_me: failed program was:" >&5 | |
11907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11908 | ||
11909 | ac_header_preproc=no | |
50e1e10f | 11910 | fi |
e1052144 | 11911 | |
b0cacab0 | 11912 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
11913 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11914 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
11915 | |
11916 | # So? What about this header? | |
11917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11918 | yes:no: ) | |
11919 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11920 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11922 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11923 | ac_header_preproc=yes | |
11924 | ;; | |
11925 | no:yes:* ) | |
11926 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11927 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11928 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11929 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11930 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11931 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11932 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11933 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11935 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11936 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11937 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 11938 | |
b0cacab0 TT |
11939 | ;; |
11940 | esac | |
e1052144 TT |
11941 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11943 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 | 11944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
93636bde | 11945 | else |
b0cacab0 TT |
11946 | eval "$as_ac_Header=\$ac_header_preproc" |
11947 | fi | |
e1052144 TT |
11948 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11950 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 | 11951 | |
50e1e10f | 11952 | fi |
b0cacab0 TT |
11953 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11954 | cat >>confdefs.h <<_ACEOF | |
11955 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11956 | _ACEOF | |
11957 | ||
11958 | fi | |
11959 | ||
50e1e10f TT |
11960 | done |
11961 | ||
b0cacab0 | 11962 | |
da76d6b7 TT |
11963 | |
11964 | for ac_header in sys/disk.h sys/mount.h | |
11965 | do | |
11966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
11967 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
da76d6b7 TT |
11970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11971 | else | |
11972 | cat >conftest.$ac_ext <<_ACEOF | |
11973 | /* confdefs.h. */ | |
11974 | _ACEOF | |
11975 | cat confdefs.h >>conftest.$ac_ext | |
11976 | cat >>conftest.$ac_ext <<_ACEOF | |
11977 | /* end confdefs.h. */ | |
11978 | ||
11979 | #if HAVE_SYS_QUEUE_H | |
11980 | #include <sys/queue.h> | |
11981 | #endif | |
11982 | ||
11983 | ||
11984 | #include <$ac_header> | |
11985 | _ACEOF | |
11986 | rm -f conftest.$ac_objext | |
e1052144 TT |
11987 | if { (ac_try="$ac_compile" |
11988 | case "(($ac_try" in | |
11989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11990 | *) ac_try_echo=$ac_try;; | |
11991 | esac | |
11992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11993 | (eval "$ac_compile") 2>conftest.er1 | |
da76d6b7 TT |
11994 | ac_status=$? |
11995 | grep -v '^ *+' conftest.er1 >conftest.err | |
11996 | rm -f conftest.er1 | |
11997 | cat conftest.err >&5 | |
11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
11999 | (exit $ac_status); } && { |
12000 | test -z "$ac_c_werror_flag" || | |
12001 | test ! -s conftest.err | |
12002 | } && test -s conftest.$ac_objext; then | |
da76d6b7 TT |
12003 | eval "$as_ac_Header=yes" |
12004 | else | |
12005 | echo "$as_me: failed program was:" >&5 | |
12006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12007 | ||
e1052144 | 12008 | eval "$as_ac_Header=no" |
da76d6b7 | 12009 | fi |
e1052144 TT |
12010 | |
12011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
da76d6b7 | 12012 | fi |
e1052144 TT |
12013 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12014 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12015 | echo "${ECHO_T}$ac_res" >&6; } | |
da76d6b7 TT |
12016 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12017 | cat >>confdefs.h <<_ACEOF | |
12018 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12019 | _ACEOF | |
12020 | ||
12021 | fi | |
12022 | ||
12023 | done | |
12024 | ||
12025 | ||
12026 | for ac_header in net/if.h | |
12027 | do | |
12028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e1052144 TT |
12029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
da76d6b7 TT |
12032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12033 | else | |
12034 | cat >conftest.$ac_ext <<_ACEOF | |
12035 | /* confdefs.h. */ | |
12036 | _ACEOF | |
12037 | cat confdefs.h >>conftest.$ac_ext | |
12038 | cat >>conftest.$ac_ext <<_ACEOF | |
12039 | /* end confdefs.h. */ | |
12040 | ||
12041 | #if HAVE_SYS_TYPES_H | |
12042 | #include <sys/types.h> | |
12043 | #endif | |
12044 | #if HAVE_SYS_SOCKET | |
12045 | #include <sys/socket.h> | |
12046 | #endif | |
12047 | ||
12048 | ||
12049 | #include <$ac_header> | |
12050 | _ACEOF | |
12051 | rm -f conftest.$ac_objext | |
e1052144 TT |
12052 | if { (ac_try="$ac_compile" |
12053 | case "(($ac_try" in | |
12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12055 | *) ac_try_echo=$ac_try;; | |
12056 | esac | |
12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12058 | (eval "$ac_compile") 2>conftest.er1 | |
da76d6b7 TT |
12059 | ac_status=$? |
12060 | grep -v '^ *+' conftest.er1 >conftest.err | |
12061 | rm -f conftest.er1 | |
12062 | cat conftest.err >&5 | |
12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12064 | (exit $ac_status); } && { |
12065 | test -z "$ac_c_werror_flag" || | |
12066 | test ! -s conftest.err | |
12067 | } && test -s conftest.$ac_objext; then | |
da76d6b7 TT |
12068 | eval "$as_ac_Header=yes" |
12069 | else | |
12070 | echo "$as_me: failed program was:" >&5 | |
12071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12072 | ||
e1052144 | 12073 | eval "$as_ac_Header=no" |
da76d6b7 | 12074 | fi |
e1052144 TT |
12075 | |
12076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
da76d6b7 | 12077 | fi |
e1052144 TT |
12078 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12080 | echo "${ECHO_T}$ac_res" >&6; } | |
da76d6b7 TT |
12081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12082 | cat >>confdefs.h <<_ACEOF | |
12083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12084 | _ACEOF | |
12085 | ||
12086 | fi | |
12087 | ||
12088 | done | |
12089 | ||
12090 | ||
b0cacab0 TT |
12091 | for ac_func in vprintf |
12092 | do | |
12093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
e1052144 TT |
12094 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12096 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
12097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12098 | else | |
12099 | cat >conftest.$ac_ext <<_ACEOF | |
12100 | /* confdefs.h. */ | |
12101 | _ACEOF | |
12102 | cat confdefs.h >>conftest.$ac_ext | |
12103 | cat >>conftest.$ac_ext <<_ACEOF | |
12104 | /* end confdefs.h. */ | |
12105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12107 | #define $ac_func innocuous_$ac_func | |
12108 | ||
50e1e10f | 12109 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
12110 | which can conflict with char $ac_func (); below. |
12111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12112 | <limits.h> exists even on freestanding compilers. */ | |
12113 | ||
12114 | #ifdef __STDC__ | |
12115 | # include <limits.h> | |
12116 | #else | |
12117 | # include <assert.h> | |
12118 | #endif | |
93636bde | 12119 | |
b0cacab0 | 12120 | #undef $ac_func |
50e1e10f | 12121 | |
e1052144 TT |
12122 | /* Override any GCC internal prototype to avoid an error. |
12123 | Use char because int might match the return type of a GCC | |
12124 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
12125 | #ifdef __cplusplus |
12126 | extern "C" | |
b0cacab0 | 12127 | #endif |
b0cacab0 | 12128 | char $ac_func (); |
50e1e10f TT |
12129 | /* The GNU C library defines this for functions which it implements |
12130 | to always fail with ENOSYS. Some functions are actually named | |
07a0db15 | 12131 | something starting with __ and the normal name is an alias. */ |
e1052144 | 12132 | #if defined __stub_$ac_func || defined __stub___$ac_func |
07a0db15 | 12133 | choke me |
07a0db15 | 12134 | #endif |
50e1e10f | 12135 | |
b0cacab0 TT |
12136 | int |
12137 | main () | |
12138 | { | |
e1052144 | 12139 | return $ac_func (); |
b0cacab0 TT |
12140 | ; |
12141 | return 0; | |
12142 | } | |
12143 | _ACEOF | |
12144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
12145 | if { (ac_try="$ac_link" |
12146 | case "(($ac_try" in | |
12147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12148 | *) ac_try_echo=$ac_try;; | |
12149 | esac | |
12150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12151 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
12152 | ac_status=$? |
12153 | grep -v '^ *+' conftest.er1 >conftest.err | |
12154 | rm -f conftest.er1 | |
12155 | cat conftest.err >&5 | |
12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12157 | (exit $ac_status); } && { |
12158 | test -z "$ac_c_werror_flag" || | |
12159 | test ! -s conftest.err | |
12160 | } && test -s conftest$ac_exeext && | |
12161 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
12162 | eval "$as_ac_var=yes" |
12163 | else | |
12164 | echo "$as_me: failed program was:" >&5 | |
12165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12166 | ||
e1052144 | 12167 | eval "$as_ac_var=no" |
b0cacab0 | 12168 | fi |
e1052144 | 12169 | |
29a5deed | 12170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
12171 | conftest$ac_exeext conftest.$ac_ext |
12172 | fi | |
e1052144 TT |
12173 | ac_res=`eval echo '${'$as_ac_var'}'` |
12174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12175 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
12176 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12177 | cat >>confdefs.h <<_ACEOF | |
12178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12179 | _ACEOF | |
12180 | ||
e1052144 TT |
12181 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
12182 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
b0cacab0 TT |
12183 | if test "${ac_cv_func__doprnt+set}" = set; then |
12184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12185 | else | |
12186 | cat >conftest.$ac_ext <<_ACEOF | |
12187 | /* confdefs.h. */ | |
12188 | _ACEOF | |
12189 | cat confdefs.h >>conftest.$ac_ext | |
12190 | cat >>conftest.$ac_ext <<_ACEOF | |
12191 | /* end confdefs.h. */ | |
12192 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
12193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12194 | #define _doprnt innocuous__doprnt | |
93636bde | 12195 | |
b0cacab0 TT |
12196 | /* System header to define __stub macros and hopefully few prototypes, |
12197 | which can conflict with char _doprnt (); below. | |
12198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12199 | <limits.h> exists even on freestanding compilers. */ | |
93636bde | 12200 | |
b0cacab0 TT |
12201 | #ifdef __STDC__ |
12202 | # include <limits.h> | |
12203 | #else | |
12204 | # include <assert.h> | |
12205 | #endif | |
12206 | ||
12207 | #undef _doprnt | |
93636bde | 12208 | |
e1052144 TT |
12209 | /* Override any GCC internal prototype to avoid an error. |
12210 | Use char because int might match the return type of a GCC | |
12211 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
12212 | #ifdef __cplusplus |
12213 | extern "C" | |
b0cacab0 | 12214 | #endif |
b0cacab0 | 12215 | char _doprnt (); |
50e1e10f TT |
12216 | /* The GNU C library defines this for functions which it implements |
12217 | to always fail with ENOSYS. Some functions are actually named | |
12218 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 12219 | #if defined __stub__doprnt || defined __stub____doprnt |
50e1e10f | 12220 | choke me |
50e1e10f TT |
12221 | #endif |
12222 | ||
b0cacab0 TT |
12223 | int |
12224 | main () | |
12225 | { | |
e1052144 | 12226 | return _doprnt (); |
b0cacab0 TT |
12227 | ; |
12228 | return 0; | |
12229 | } | |
12230 | _ACEOF | |
12231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
12232 | if { (ac_try="$ac_link" |
12233 | case "(($ac_try" in | |
12234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12235 | *) ac_try_echo=$ac_try;; | |
12236 | esac | |
12237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12238 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
12239 | ac_status=$? |
12240 | grep -v '^ *+' conftest.er1 >conftest.err | |
12241 | rm -f conftest.er1 | |
12242 | cat conftest.err >&5 | |
12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12244 | (exit $ac_status); } && { |
12245 | test -z "$ac_c_werror_flag" || | |
12246 | test ! -s conftest.err | |
12247 | } && test -s conftest$ac_exeext && | |
12248 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
12249 | ac_cv_func__doprnt=yes |
12250 | else | |
12251 | echo "$as_me: failed program was:" >&5 | |
12252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12253 | ||
e1052144 | 12254 | ac_cv_func__doprnt=no |
b0cacab0 | 12255 | fi |
e1052144 | 12256 | |
29a5deed | 12257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
12258 | conftest$ac_exeext conftest.$ac_ext |
12259 | fi | |
e1052144 TT |
12260 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
12261 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
b0cacab0 TT |
12262 | if test $ac_cv_func__doprnt = yes; then |
12263 | ||
12264 | cat >>confdefs.h <<\_ACEOF | |
50e1e10f | 12265 | #define HAVE_DOPRNT 1 |
b0cacab0 | 12266 | _ACEOF |
50e1e10f | 12267 | |
50e1e10f TT |
12268 | fi |
12269 | ||
12270 | fi | |
b0cacab0 | 12271 | done |
50e1e10f | 12272 | |
b0cacab0 | 12273 | |
e1052144 TT |
12274 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
12275 | echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } | |
6c65d251 | 12276 | if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then |
b0cacab0 | 12277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fff45483 | 12278 | else |
b0cacab0 TT |
12279 | cat >conftest.$ac_ext <<_ACEOF |
12280 | /* confdefs.h. */ | |
12281 | _ACEOF | |
12282 | cat confdefs.h >>conftest.$ac_ext | |
12283 | cat >>conftest.$ac_ext <<_ACEOF | |
12284 | /* end confdefs.h. */ | |
fff45483 | 12285 | #include <dirent.h> |
6c65d251 | 12286 | |
b0cacab0 TT |
12287 | int |
12288 | main () | |
12289 | { | |
6c65d251 TT |
12290 | static struct dirent ac_aggr; |
12291 | if (ac_aggr.d_reclen) | |
12292 | return 0; | |
b0cacab0 TT |
12293 | ; |
12294 | return 0; | |
12295 | } | |
12296 | _ACEOF | |
12297 | rm -f conftest.$ac_objext | |
e1052144 TT |
12298 | if { (ac_try="$ac_compile" |
12299 | case "(($ac_try" in | |
12300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12301 | *) ac_try_echo=$ac_try;; | |
12302 | esac | |
12303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12304 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12305 | ac_status=$? |
12306 | grep -v '^ *+' conftest.er1 >conftest.err | |
12307 | rm -f conftest.er1 | |
12308 | cat conftest.err >&5 | |
12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12310 | (exit $ac_status); } && { |
12311 | test -z "$ac_c_werror_flag" || | |
12312 | test ! -s conftest.err | |
12313 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 12314 | ac_cv_member_struct_dirent_d_reclen=yes |
fff45483 | 12315 | else |
b0cacab0 TT |
12316 | echo "$as_me: failed program was:" >&5 |
12317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12318 | ||
e1052144 | 12319 | cat >conftest.$ac_ext <<_ACEOF |
6c65d251 TT |
12320 | /* confdefs.h. */ |
12321 | _ACEOF | |
12322 | cat confdefs.h >>conftest.$ac_ext | |
12323 | cat >>conftest.$ac_ext <<_ACEOF | |
12324 | /* end confdefs.h. */ | |
12325 | #include <dirent.h> | |
12326 | ||
12327 | int | |
12328 | main () | |
12329 | { | |
12330 | static struct dirent ac_aggr; | |
12331 | if (sizeof ac_aggr.d_reclen) | |
12332 | return 0; | |
12333 | ; | |
12334 | return 0; | |
12335 | } | |
12336 | _ACEOF | |
12337 | rm -f conftest.$ac_objext | |
e1052144 TT |
12338 | if { (ac_try="$ac_compile" |
12339 | case "(($ac_try" in | |
12340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12341 | *) ac_try_echo=$ac_try;; | |
12342 | esac | |
12343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12344 | (eval "$ac_compile") 2>conftest.er1 | |
6c65d251 TT |
12345 | ac_status=$? |
12346 | grep -v '^ *+' conftest.er1 >conftest.err | |
12347 | rm -f conftest.er1 | |
12348 | cat conftest.err >&5 | |
12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12350 | (exit $ac_status); } && { |
12351 | test -z "$ac_c_werror_flag" || | |
12352 | test ! -s conftest.err | |
12353 | } && test -s conftest.$ac_objext; then | |
6c65d251 TT |
12354 | ac_cv_member_struct_dirent_d_reclen=yes |
12355 | else | |
12356 | echo "$as_me: failed program was:" >&5 | |
12357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12358 | ||
e1052144 | 12359 | ac_cv_member_struct_dirent_d_reclen=no |
fff45483 | 12360 | fi |
e1052144 TT |
12361 | |
12362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fff45483 | 12363 | fi |
e1052144 TT |
12364 | |
12365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6c65d251 | 12366 | fi |
e1052144 TT |
12367 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
12368 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } | |
6c65d251 TT |
12369 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
12370 | cat >>confdefs.h <<\_ACEOF | |
fff45483 | 12371 | #define HAVE_RECLEN_DIRENT 1 |
b0cacab0 | 12372 | _ACEOF |
fff45483 TT |
12373 | |
12374 | fi | |
6c65d251 | 12375 | |
e1052144 TT |
12376 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
12377 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | |
6c65d251 | 12378 | if test "${ac_cv_type_ssize_t+set}" = set; then |
b0cacab0 | 12379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fff45483 | 12380 | else |
b0cacab0 TT |
12381 | cat >conftest.$ac_ext <<_ACEOF |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
fff45483 | 12387 | #include <sys/types.h> |
6c65d251 | 12388 | |
e1052144 | 12389 | typedef ssize_t ac__type_new_; |
b0cacab0 TT |
12390 | int |
12391 | main () | |
12392 | { | |
e1052144 | 12393 | if ((ac__type_new_ *) 0) |
6c65d251 | 12394 | return 0; |
e1052144 | 12395 | if (sizeof (ac__type_new_)) |
6c65d251 | 12396 | return 0; |
b0cacab0 TT |
12397 | ; |
12398 | return 0; | |
12399 | } | |
12400 | _ACEOF | |
12401 | rm -f conftest.$ac_objext | |
e1052144 TT |
12402 | if { (ac_try="$ac_compile" |
12403 | case "(($ac_try" in | |
12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12405 | *) ac_try_echo=$ac_try;; | |
12406 | esac | |
12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12408 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12409 | ac_status=$? |
12410 | grep -v '^ *+' conftest.er1 >conftest.err | |
12411 | rm -f conftest.er1 | |
12412 | cat conftest.err >&5 | |
12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12414 | (exit $ac_status); } && { |
12415 | test -z "$ac_c_werror_flag" || | |
12416 | test ! -s conftest.err | |
12417 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 12418 | ac_cv_type_ssize_t=yes |
fff45483 | 12419 | else |
b0cacab0 TT |
12420 | echo "$as_me: failed program was:" >&5 |
12421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12422 | ||
e1052144 | 12423 | ac_cv_type_ssize_t=no |
fff45483 | 12424 | fi |
e1052144 TT |
12425 | |
12426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fff45483 | 12427 | fi |
e1052144 TT |
12428 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
12429 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } | |
6c65d251 TT |
12430 | if test $ac_cv_type_ssize_t = yes; then |
12431 | cat >>confdefs.h <<\_ACEOF | |
fff45483 | 12432 | #define HAVE_TYPE_SSIZE_T 1 |
b0cacab0 | 12433 | _ACEOF |
fff45483 TT |
12434 | |
12435 | fi | |
6c65d251 | 12436 | |
e1052144 TT |
12437 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
12438 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } | |
6c65d251 | 12439 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
b0cacab0 | 12440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b0b9c4de | 12441 | else |
b0cacab0 TT |
12442 | cat >conftest.$ac_ext <<_ACEOF |
12443 | /* confdefs.h. */ | |
12444 | _ACEOF | |
12445 | cat confdefs.h >>conftest.$ac_ext | |
12446 | cat >>conftest.$ac_ext <<_ACEOF | |
12447 | /* end confdefs.h. */ | |
b0b9c4de | 12448 | #include <unistd.h> |
6c65d251 | 12449 | |
b0cacab0 TT |
12450 | int |
12451 | main () | |
12452 | { | |
6c65d251 | 12453 | #ifndef llseek |
29a5deed | 12454 | (void) llseek; |
6c65d251 TT |
12455 | #endif |
12456 | ||
b0cacab0 TT |
12457 | ; |
12458 | return 0; | |
12459 | } | |
12460 | _ACEOF | |
12461 | rm -f conftest.$ac_objext | |
e1052144 TT |
12462 | if { (ac_try="$ac_compile" |
12463 | case "(($ac_try" in | |
12464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12465 | *) ac_try_echo=$ac_try;; | |
12466 | esac | |
12467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12468 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12469 | ac_status=$? |
12470 | grep -v '^ *+' conftest.er1 >conftest.err | |
12471 | rm -f conftest.er1 | |
12472 | cat conftest.err >&5 | |
12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12474 | (exit $ac_status); } && { |
12475 | test -z "$ac_c_werror_flag" || | |
12476 | test ! -s conftest.err | |
12477 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 12478 | ac_cv_have_decl_llseek=yes |
b0b9c4de | 12479 | else |
b0cacab0 TT |
12480 | echo "$as_me: failed program was:" >&5 |
12481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12482 | ||
e1052144 | 12483 | ac_cv_have_decl_llseek=no |
b0b9c4de | 12484 | fi |
e1052144 TT |
12485 | |
12486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0b9c4de | 12487 | fi |
e1052144 TT |
12488 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
12489 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } | |
6c65d251 TT |
12490 | if test $ac_cv_have_decl_llseek = yes; then |
12491 | cat >>confdefs.h <<\_ACEOF | |
b0b9c4de | 12492 | #define HAVE_LLSEEK_PROTOTYPE 1 |
b0cacab0 | 12493 | _ACEOF |
b0b9c4de | 12494 | |
6928adc9 | 12495 | fi |
6c65d251 | 12496 | |
e1052144 TT |
12497 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
12498 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } | |
6c65d251 | 12499 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
b0cacab0 | 12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6928adc9 | 12501 | else |
b0cacab0 TT |
12502 | cat >conftest.$ac_ext <<_ACEOF |
12503 | /* confdefs.h. */ | |
12504 | _ACEOF | |
12505 | cat confdefs.h >>conftest.$ac_ext | |
12506 | cat >>conftest.$ac_ext <<_ACEOF | |
12507 | /* end confdefs.h. */ | |
6928adc9 | 12508 | #define _LARGEFILE_SOURCE |
6c65d251 TT |
12509 | #define _LARGEFILE64_SOURCE |
12510 | #include <unistd.h> | |
12511 | ||
b0cacab0 TT |
12512 | int |
12513 | main () | |
12514 | { | |
6c65d251 | 12515 | #ifndef lseek64 |
29a5deed | 12516 | (void) lseek64; |
6c65d251 TT |
12517 | #endif |
12518 | ||
b0cacab0 TT |
12519 | ; |
12520 | return 0; | |
12521 | } | |
12522 | _ACEOF | |
12523 | rm -f conftest.$ac_objext | |
e1052144 TT |
12524 | if { (ac_try="$ac_compile" |
12525 | case "(($ac_try" in | |
12526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12527 | *) ac_try_echo=$ac_try;; | |
12528 | esac | |
12529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12530 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12531 | ac_status=$? |
12532 | grep -v '^ *+' conftest.er1 >conftest.err | |
12533 | rm -f conftest.er1 | |
12534 | cat conftest.err >&5 | |
12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12536 | (exit $ac_status); } && { |
12537 | test -z "$ac_c_werror_flag" || | |
12538 | test ! -s conftest.err | |
12539 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 12540 | ac_cv_have_decl_lseek64=yes |
6928adc9 | 12541 | else |
b0cacab0 TT |
12542 | echo "$as_me: failed program was:" >&5 |
12543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12544 | ||
e1052144 | 12545 | ac_cv_have_decl_lseek64=no |
6928adc9 | 12546 | fi |
e1052144 TT |
12547 | |
12548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6928adc9 | 12549 | fi |
e1052144 TT |
12550 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
12551 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } | |
6c65d251 TT |
12552 | if test $ac_cv_have_decl_lseek64 = yes; then |
12553 | cat >>confdefs.h <<\_ACEOF | |
6928adc9 | 12554 | #define HAVE_LSEEK64_PROTOTYPE 1 |
b0cacab0 | 12555 | _ACEOF |
6928adc9 | 12556 | |
50e1e10f | 12557 | fi |
6c65d251 | 12558 | |
e1052144 TT |
12559 | { echo "$as_me:$LINENO: checking for short" >&5 |
12560 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
b0cacab0 TT |
12561 | if test "${ac_cv_type_short+set}" = set; then |
12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12563 | else | |
12564 | cat >conftest.$ac_ext <<_ACEOF | |
12565 | /* confdefs.h. */ | |
12566 | _ACEOF | |
12567 | cat confdefs.h >>conftest.$ac_ext | |
12568 | cat >>conftest.$ac_ext <<_ACEOF | |
12569 | /* end confdefs.h. */ | |
12570 | $ac_includes_default | |
e1052144 | 12571 | typedef short ac__type_new_; |
b0cacab0 TT |
12572 | int |
12573 | main () | |
12574 | { | |
e1052144 | 12575 | if ((ac__type_new_ *) 0) |
b0cacab0 | 12576 | return 0; |
e1052144 | 12577 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
12578 | return 0; |
12579 | ; | |
12580 | return 0; | |
12581 | } | |
12582 | _ACEOF | |
12583 | rm -f conftest.$ac_objext | |
e1052144 TT |
12584 | if { (ac_try="$ac_compile" |
12585 | case "(($ac_try" in | |
12586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12587 | *) ac_try_echo=$ac_try;; | |
12588 | esac | |
12589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12590 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12591 | ac_status=$? |
12592 | grep -v '^ *+' conftest.er1 >conftest.err | |
12593 | rm -f conftest.er1 | |
12594 | cat conftest.err >&5 | |
12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12596 | (exit $ac_status); } && { |
12597 | test -z "$ac_c_werror_flag" || | |
12598 | test ! -s conftest.err | |
12599 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12600 | ac_cv_type_short=yes |
12601 | else | |
12602 | echo "$as_me: failed program was:" >&5 | |
12603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12604 | ||
e1052144 | 12605 | ac_cv_type_short=no |
b0cacab0 | 12606 | fi |
e1052144 TT |
12607 | |
12608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 12609 | fi |
e1052144 TT |
12610 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
12611 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
b0cacab0 | 12612 | |
29a5deed TT |
12613 | # The cast to long int works around a bug in the HP C Compiler |
12614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12616 | # This bug is HP SR number 8606223364. | |
e1052144 TT |
12617 | { echo "$as_me:$LINENO: checking size of short" >&5 |
12618 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
b0cacab0 TT |
12619 | if test "${ac_cv_sizeof_short+set}" = set; then |
12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12621 | else | |
b0cacab0 TT |
12622 | if test "$cross_compiling" = yes; then |
12623 | # Depending upon the size, compute the lo and hi bounds. | |
12624 | cat >conftest.$ac_ext <<_ACEOF | |
12625 | /* confdefs.h. */ | |
12626 | _ACEOF | |
12627 | cat confdefs.h >>conftest.$ac_ext | |
12628 | cat >>conftest.$ac_ext <<_ACEOF | |
12629 | /* end confdefs.h. */ | |
12630 | $ac_includes_default | |
29a5deed | 12631 | typedef short ac__type_sizeof_; |
b0cacab0 TT |
12632 | int |
12633 | main () | |
12634 | { | |
e1052144 | 12635 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
b0cacab0 TT |
12636 | test_array [0] = 0 |
12637 | ||
12638 | ; | |
12639 | return 0; | |
12640 | } | |
12641 | _ACEOF | |
12642 | rm -f conftest.$ac_objext | |
e1052144 TT |
12643 | if { (ac_try="$ac_compile" |
12644 | case "(($ac_try" in | |
12645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12646 | *) ac_try_echo=$ac_try;; | |
12647 | esac | |
12648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12649 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12650 | ac_status=$? |
12651 | grep -v '^ *+' conftest.er1 >conftest.err | |
12652 | rm -f conftest.er1 | |
12653 | cat conftest.err >&5 | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12655 | (exit $ac_status); } && { |
12656 | test -z "$ac_c_werror_flag" || | |
12657 | test ! -s conftest.err | |
12658 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12659 | ac_lo=0 ac_mid=0 |
12660 | while :; do | |
12661 | cat >conftest.$ac_ext <<_ACEOF | |
12662 | /* confdefs.h. */ | |
12663 | _ACEOF | |
12664 | cat confdefs.h >>conftest.$ac_ext | |
12665 | cat >>conftest.$ac_ext <<_ACEOF | |
12666 | /* end confdefs.h. */ | |
12667 | $ac_includes_default | |
29a5deed | 12668 | typedef short ac__type_sizeof_; |
b0cacab0 TT |
12669 | int |
12670 | main () | |
12671 | { | |
e1052144 | 12672 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
12673 | test_array [0] = 0 |
12674 | ||
12675 | ; | |
12676 | return 0; | |
12677 | } | |
12678 | _ACEOF | |
12679 | rm -f conftest.$ac_objext | |
e1052144 TT |
12680 | if { (ac_try="$ac_compile" |
12681 | case "(($ac_try" in | |
12682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12683 | *) ac_try_echo=$ac_try;; | |
12684 | esac | |
12685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12686 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12687 | ac_status=$? |
12688 | grep -v '^ *+' conftest.er1 >conftest.err | |
12689 | rm -f conftest.er1 | |
12690 | cat conftest.err >&5 | |
12691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12692 | (exit $ac_status); } && { |
12693 | test -z "$ac_c_werror_flag" || | |
12694 | test ! -s conftest.err | |
12695 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12696 | ac_hi=$ac_mid; break |
12697 | else | |
12698 | echo "$as_me: failed program was:" >&5 | |
12699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12700 | ||
e1052144 TT |
12701 | ac_lo=`expr $ac_mid + 1` |
12702 | if test $ac_lo -le $ac_mid; then | |
12703 | ac_lo= ac_hi= | |
12704 | break | |
12705 | fi | |
12706 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 12707 | fi |
e1052144 TT |
12708 | |
12709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
12710 | done |
12711 | else | |
12712 | echo "$as_me: failed program was:" >&5 | |
12713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12714 | ||
e1052144 | 12715 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
12716 | /* confdefs.h. */ |
12717 | _ACEOF | |
12718 | cat confdefs.h >>conftest.$ac_ext | |
12719 | cat >>conftest.$ac_ext <<_ACEOF | |
12720 | /* end confdefs.h. */ | |
12721 | $ac_includes_default | |
29a5deed | 12722 | typedef short ac__type_sizeof_; |
b0cacab0 TT |
12723 | int |
12724 | main () | |
12725 | { | |
e1052144 | 12726 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
b0cacab0 TT |
12727 | test_array [0] = 0 |
12728 | ||
12729 | ; | |
12730 | return 0; | |
12731 | } | |
12732 | _ACEOF | |
12733 | rm -f conftest.$ac_objext | |
e1052144 TT |
12734 | if { (ac_try="$ac_compile" |
12735 | case "(($ac_try" in | |
12736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12737 | *) ac_try_echo=$ac_try;; | |
12738 | esac | |
12739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12740 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12741 | ac_status=$? |
12742 | grep -v '^ *+' conftest.er1 >conftest.err | |
12743 | rm -f conftest.er1 | |
12744 | cat conftest.err >&5 | |
12745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12746 | (exit $ac_status); } && { |
12747 | test -z "$ac_c_werror_flag" || | |
12748 | test ! -s conftest.err | |
12749 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12750 | ac_hi=-1 ac_mid=-1 |
12751 | while :; do | |
12752 | cat >conftest.$ac_ext <<_ACEOF | |
12753 | /* confdefs.h. */ | |
12754 | _ACEOF | |
12755 | cat confdefs.h >>conftest.$ac_ext | |
12756 | cat >>conftest.$ac_ext <<_ACEOF | |
12757 | /* end confdefs.h. */ | |
12758 | $ac_includes_default | |
29a5deed | 12759 | typedef short ac__type_sizeof_; |
b0cacab0 TT |
12760 | int |
12761 | main () | |
12762 | { | |
e1052144 | 12763 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
b0cacab0 TT |
12764 | test_array [0] = 0 |
12765 | ||
12766 | ; | |
12767 | return 0; | |
12768 | } | |
12769 | _ACEOF | |
12770 | rm -f conftest.$ac_objext | |
e1052144 TT |
12771 | if { (ac_try="$ac_compile" |
12772 | case "(($ac_try" in | |
12773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12774 | *) ac_try_echo=$ac_try;; | |
12775 | esac | |
12776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12777 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12778 | ac_status=$? |
12779 | grep -v '^ *+' conftest.er1 >conftest.err | |
12780 | rm -f conftest.er1 | |
12781 | cat conftest.err >&5 | |
12782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12783 | (exit $ac_status); } && { |
12784 | test -z "$ac_c_werror_flag" || | |
12785 | test ! -s conftest.err | |
12786 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12787 | ac_lo=$ac_mid; break |
12788 | else | |
12789 | echo "$as_me: failed program was:" >&5 | |
12790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12791 | ||
e1052144 TT |
12792 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12793 | if test $ac_mid -le $ac_hi; then | |
12794 | ac_lo= ac_hi= | |
12795 | break | |
12796 | fi | |
12797 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 12798 | fi |
e1052144 TT |
12799 | |
12800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
12801 | done |
12802 | else | |
12803 | echo "$as_me: failed program was:" >&5 | |
12804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12805 | ||
e1052144 | 12806 | ac_lo= ac_hi= |
b0cacab0 | 12807 | fi |
e1052144 TT |
12808 | |
12809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 12810 | fi |
e1052144 TT |
12811 | |
12812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
12813 | # Binary search between lo and hi bounds. |
12814 | while test "x$ac_lo" != "x$ac_hi"; do | |
12815 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12816 | cat >conftest.$ac_ext <<_ACEOF | |
12817 | /* confdefs.h. */ | |
12818 | _ACEOF | |
12819 | cat confdefs.h >>conftest.$ac_ext | |
12820 | cat >>conftest.$ac_ext <<_ACEOF | |
12821 | /* end confdefs.h. */ | |
12822 | $ac_includes_default | |
29a5deed | 12823 | typedef short ac__type_sizeof_; |
b0cacab0 TT |
12824 | int |
12825 | main () | |
12826 | { | |
e1052144 | 12827 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
12828 | test_array [0] = 0 |
12829 | ||
12830 | ; | |
12831 | return 0; | |
12832 | } | |
12833 | _ACEOF | |
12834 | rm -f conftest.$ac_objext | |
e1052144 TT |
12835 | if { (ac_try="$ac_compile" |
12836 | case "(($ac_try" in | |
12837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12838 | *) ac_try_echo=$ac_try;; | |
12839 | esac | |
12840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12841 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12842 | ac_status=$? |
12843 | grep -v '^ *+' conftest.er1 >conftest.err | |
12844 | rm -f conftest.er1 | |
12845 | cat conftest.err >&5 | |
12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
12847 | (exit $ac_status); } && { |
12848 | test -z "$ac_c_werror_flag" || | |
12849 | test ! -s conftest.err | |
12850 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
12851 | ac_hi=$ac_mid |
12852 | else | |
12853 | echo "$as_me: failed program was:" >&5 | |
12854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12855 | ||
e1052144 | 12856 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 12857 | fi |
e1052144 TT |
12858 | |
12859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
12860 | done |
12861 | case $ac_lo in | |
12862 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
29a5deed TT |
12863 | '') if test "$ac_cv_type_short" = yes; then |
12864 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
b0cacab0 | 12865 | See \`config.log' for more details." >&5 |
e1052144 | 12866 | echo "$as_me: error: cannot compute sizeof (short) |
b0cacab0 | 12867 | See \`config.log' for more details." >&2;} |
29a5deed TT |
12868 | { (exit 77); exit 77; }; } |
12869 | else | |
12870 | ac_cv_sizeof_short=0 | |
12871 | fi ;; | |
b0cacab0 | 12872 | esac |
b0cacab0 TT |
12873 | else |
12874 | cat >conftest.$ac_ext <<_ACEOF | |
12875 | /* confdefs.h. */ | |
12876 | _ACEOF | |
12877 | cat confdefs.h >>conftest.$ac_ext | |
12878 | cat >>conftest.$ac_ext <<_ACEOF | |
12879 | /* end confdefs.h. */ | |
12880 | $ac_includes_default | |
29a5deed | 12881 | typedef short ac__type_sizeof_; |
e1052144 TT |
12882 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
12883 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
b0cacab0 TT |
12884 | #include <stdio.h> |
12885 | #include <stdlib.h> | |
12886 | int | |
12887 | main () | |
12888 | { | |
12889 | ||
12890 | FILE *f = fopen ("conftest.val", "w"); | |
12891 | if (! f) | |
e1052144 TT |
12892 | return 1; |
12893 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
b0cacab0 | 12894 | { |
e1052144 TT |
12895 | long int i = longval (); |
12896 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
12897 | return 1; | |
b0cacab0 TT |
12898 | fprintf (f, "%ld\n", i); |
12899 | } | |
12900 | else | |
12901 | { | |
e1052144 TT |
12902 | unsigned long int i = ulongval (); |
12903 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
12904 | return 1; | |
b0cacab0 TT |
12905 | fprintf (f, "%lu\n", i); |
12906 | } | |
e1052144 | 12907 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
12908 | |
12909 | ; | |
12910 | return 0; | |
12911 | } | |
12912 | _ACEOF | |
12913 | rm -f conftest$ac_exeext | |
e1052144 TT |
12914 | if { (ac_try="$ac_link" |
12915 | case "(($ac_try" in | |
12916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12917 | *) ac_try_echo=$ac_try;; | |
12918 | esac | |
12919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12920 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
12921 | ac_status=$? |
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12923 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
12924 | { (case "(($ac_try" in |
12925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12926 | *) ac_try_echo=$ac_try;; | |
12927 | esac | |
12928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12929 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
12930 | ac_status=$? |
12931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12932 | (exit $ac_status); }; }; then | |
12933 | ac_cv_sizeof_short=`cat conftest.val` | |
12934 | else | |
12935 | echo "$as_me: program exited with status $ac_status" >&5 | |
12936 | echo "$as_me: failed program was:" >&5 | |
12937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12938 | ||
12939 | ( exit $ac_status ) | |
29a5deed TT |
12940 | if test "$ac_cv_type_short" = yes; then |
12941 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
b0cacab0 | 12942 | See \`config.log' for more details." >&5 |
e1052144 | 12943 | echo "$as_me: error: cannot compute sizeof (short) |
b0cacab0 | 12944 | See \`config.log' for more details." >&2;} |
e1052144 | 12945 | { (exit 77); exit 77; }; } |
29a5deed TT |
12946 | else |
12947 | ac_cv_sizeof_short=0 | |
12948 | fi | |
b0cacab0 | 12949 | fi |
e1052144 | 12950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
12951 | fi |
12952 | rm -f conftest.val | |
b0cacab0 | 12953 | fi |
e1052144 TT |
12954 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
12955 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
29a5deed TT |
12956 | |
12957 | ||
12958 | ||
b0cacab0 TT |
12959 | cat >>confdefs.h <<_ACEOF |
12960 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12961 | _ACEOF | |
12962 | ||
12963 | ||
e1052144 TT |
12964 | { echo "$as_me:$LINENO: checking for int" >&5 |
12965 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
b0cacab0 TT |
12966 | if test "${ac_cv_type_int+set}" = set; then |
12967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12968 | else | |
12969 | cat >conftest.$ac_ext <<_ACEOF | |
12970 | /* confdefs.h. */ | |
12971 | _ACEOF | |
12972 | cat confdefs.h >>conftest.$ac_ext | |
12973 | cat >>conftest.$ac_ext <<_ACEOF | |
12974 | /* end confdefs.h. */ | |
12975 | $ac_includes_default | |
e1052144 | 12976 | typedef int ac__type_new_; |
b0cacab0 TT |
12977 | int |
12978 | main () | |
12979 | { | |
e1052144 | 12980 | if ((ac__type_new_ *) 0) |
b0cacab0 | 12981 | return 0; |
e1052144 | 12982 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
12983 | return 0; |
12984 | ; | |
12985 | return 0; | |
12986 | } | |
12987 | _ACEOF | |
12988 | rm -f conftest.$ac_objext | |
e1052144 TT |
12989 | if { (ac_try="$ac_compile" |
12990 | case "(($ac_try" in | |
12991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12992 | *) ac_try_echo=$ac_try;; | |
12993 | esac | |
12994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12995 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
12996 | ac_status=$? |
12997 | grep -v '^ *+' conftest.er1 >conftest.err | |
12998 | rm -f conftest.er1 | |
12999 | cat conftest.err >&5 | |
13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13001 | (exit $ac_status); } && { |
13002 | test -z "$ac_c_werror_flag" || | |
13003 | test ! -s conftest.err | |
13004 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13005 | ac_cv_type_int=yes |
13006 | else | |
13007 | echo "$as_me: failed program was:" >&5 | |
13008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13009 | ||
e1052144 | 13010 | ac_cv_type_int=no |
b0cacab0 | 13011 | fi |
e1052144 TT |
13012 | |
13013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13014 | fi |
e1052144 TT |
13015 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
13016 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
b0cacab0 | 13017 | |
29a5deed TT |
13018 | # The cast to long int works around a bug in the HP C Compiler |
13019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13021 | # This bug is HP SR number 8606223364. | |
e1052144 TT |
13022 | { echo "$as_me:$LINENO: checking size of int" >&5 |
13023 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
b0cacab0 TT |
13024 | if test "${ac_cv_sizeof_int+set}" = set; then |
13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13026 | else | |
b0cacab0 TT |
13027 | if test "$cross_compiling" = yes; then |
13028 | # Depending upon the size, compute the lo and hi bounds. | |
13029 | cat >conftest.$ac_ext <<_ACEOF | |
13030 | /* confdefs.h. */ | |
13031 | _ACEOF | |
13032 | cat confdefs.h >>conftest.$ac_ext | |
13033 | cat >>conftest.$ac_ext <<_ACEOF | |
13034 | /* end confdefs.h. */ | |
13035 | $ac_includes_default | |
29a5deed | 13036 | typedef int ac__type_sizeof_; |
b0cacab0 TT |
13037 | int |
13038 | main () | |
13039 | { | |
e1052144 | 13040 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
b0cacab0 TT |
13041 | test_array [0] = 0 |
13042 | ||
13043 | ; | |
13044 | return 0; | |
13045 | } | |
13046 | _ACEOF | |
13047 | rm -f conftest.$ac_objext | |
e1052144 TT |
13048 | if { (ac_try="$ac_compile" |
13049 | case "(($ac_try" in | |
13050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13051 | *) ac_try_echo=$ac_try;; | |
13052 | esac | |
13053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13054 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13055 | ac_status=$? |
13056 | grep -v '^ *+' conftest.er1 >conftest.err | |
13057 | rm -f conftest.er1 | |
13058 | cat conftest.err >&5 | |
13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13060 | (exit $ac_status); } && { |
13061 | test -z "$ac_c_werror_flag" || | |
13062 | test ! -s conftest.err | |
13063 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13064 | ac_lo=0 ac_mid=0 |
13065 | while :; do | |
13066 | cat >conftest.$ac_ext <<_ACEOF | |
13067 | /* confdefs.h. */ | |
13068 | _ACEOF | |
13069 | cat confdefs.h >>conftest.$ac_ext | |
13070 | cat >>conftest.$ac_ext <<_ACEOF | |
13071 | /* end confdefs.h. */ | |
13072 | $ac_includes_default | |
29a5deed | 13073 | typedef int ac__type_sizeof_; |
b0cacab0 TT |
13074 | int |
13075 | main () | |
13076 | { | |
e1052144 | 13077 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
13078 | test_array [0] = 0 |
13079 | ||
13080 | ; | |
13081 | return 0; | |
13082 | } | |
13083 | _ACEOF | |
13084 | rm -f conftest.$ac_objext | |
e1052144 TT |
13085 | if { (ac_try="$ac_compile" |
13086 | case "(($ac_try" in | |
13087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13088 | *) ac_try_echo=$ac_try;; | |
13089 | esac | |
13090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13091 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13092 | ac_status=$? |
13093 | grep -v '^ *+' conftest.er1 >conftest.err | |
13094 | rm -f conftest.er1 | |
13095 | cat conftest.err >&5 | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13097 | (exit $ac_status); } && { |
13098 | test -z "$ac_c_werror_flag" || | |
13099 | test ! -s conftest.err | |
13100 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13101 | ac_hi=$ac_mid; break |
13102 | else | |
13103 | echo "$as_me: failed program was:" >&5 | |
13104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13105 | ||
e1052144 TT |
13106 | ac_lo=`expr $ac_mid + 1` |
13107 | if test $ac_lo -le $ac_mid; then | |
13108 | ac_lo= ac_hi= | |
13109 | break | |
13110 | fi | |
13111 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 13112 | fi |
e1052144 TT |
13113 | |
13114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13115 | done |
13116 | else | |
13117 | echo "$as_me: failed program was:" >&5 | |
13118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13119 | ||
e1052144 | 13120 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
13121 | /* confdefs.h. */ |
13122 | _ACEOF | |
13123 | cat confdefs.h >>conftest.$ac_ext | |
13124 | cat >>conftest.$ac_ext <<_ACEOF | |
13125 | /* end confdefs.h. */ | |
13126 | $ac_includes_default | |
29a5deed | 13127 | typedef int ac__type_sizeof_; |
b0cacab0 TT |
13128 | int |
13129 | main () | |
13130 | { | |
e1052144 | 13131 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
b0cacab0 TT |
13132 | test_array [0] = 0 |
13133 | ||
13134 | ; | |
13135 | return 0; | |
13136 | } | |
13137 | _ACEOF | |
13138 | rm -f conftest.$ac_objext | |
e1052144 TT |
13139 | if { (ac_try="$ac_compile" |
13140 | case "(($ac_try" in | |
13141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13142 | *) ac_try_echo=$ac_try;; | |
13143 | esac | |
13144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13145 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13146 | ac_status=$? |
13147 | grep -v '^ *+' conftest.er1 >conftest.err | |
13148 | rm -f conftest.er1 | |
13149 | cat conftest.err >&5 | |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13151 | (exit $ac_status); } && { |
13152 | test -z "$ac_c_werror_flag" || | |
13153 | test ! -s conftest.err | |
13154 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13155 | ac_hi=-1 ac_mid=-1 |
13156 | while :; do | |
13157 | cat >conftest.$ac_ext <<_ACEOF | |
13158 | /* confdefs.h. */ | |
13159 | _ACEOF | |
13160 | cat confdefs.h >>conftest.$ac_ext | |
13161 | cat >>conftest.$ac_ext <<_ACEOF | |
13162 | /* end confdefs.h. */ | |
13163 | $ac_includes_default | |
29a5deed | 13164 | typedef int ac__type_sizeof_; |
b0cacab0 TT |
13165 | int |
13166 | main () | |
13167 | { | |
e1052144 | 13168 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
29a5deed TT |
13169 | test_array [0] = 0 |
13170 | ||
13171 | ; | |
13172 | return 0; | |
13173 | } | |
13174 | _ACEOF | |
13175 | rm -f conftest.$ac_objext | |
13176 | if { (ac_try="$ac_compile" | |
13177 | case "(($ac_try" in | |
e1052144 TT |
13178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13179 | *) ac_try_echo=$ac_try;; | |
13180 | esac | |
13181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
29a5deed | 13182 | (eval "$ac_compile") 2>conftest.er1 |
b0cacab0 | 13183 | ac_status=$? |
29a5deed TT |
13184 | grep -v '^ *+' conftest.er1 >conftest.err |
13185 | rm -f conftest.er1 | |
13186 | cat conftest.err >&5 | |
b0cacab0 | 13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
13188 | (exit $ac_status); } && { |
13189 | test -z "$ac_c_werror_flag" || | |
13190 | test ! -s conftest.err | |
13191 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13192 | ac_lo=$ac_mid; break |
13193 | else | |
13194 | echo "$as_me: failed program was:" >&5 | |
13195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13196 | ||
e1052144 TT |
13197 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13198 | if test $ac_mid -le $ac_hi; then | |
13199 | ac_lo= ac_hi= | |
13200 | break | |
13201 | fi | |
13202 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 13203 | fi |
e1052144 TT |
13204 | |
13205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13206 | done |
13207 | else | |
13208 | echo "$as_me: failed program was:" >&5 | |
13209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13210 | ||
e1052144 | 13211 | ac_lo= ac_hi= |
b0cacab0 | 13212 | fi |
e1052144 TT |
13213 | |
13214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13215 | fi |
e1052144 TT |
13216 | |
13217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13218 | # Binary search between lo and hi bounds. |
13219 | while test "x$ac_lo" != "x$ac_hi"; do | |
13220 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13221 | cat >conftest.$ac_ext <<_ACEOF | |
13222 | /* confdefs.h. */ | |
13223 | _ACEOF | |
13224 | cat confdefs.h >>conftest.$ac_ext | |
13225 | cat >>conftest.$ac_ext <<_ACEOF | |
13226 | /* end confdefs.h. */ | |
13227 | $ac_includes_default | |
29a5deed | 13228 | typedef int ac__type_sizeof_; |
b0cacab0 TT |
13229 | int |
13230 | main () | |
13231 | { | |
e1052144 | 13232 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
13233 | test_array [0] = 0 |
13234 | ||
13235 | ; | |
13236 | return 0; | |
13237 | } | |
13238 | _ACEOF | |
13239 | rm -f conftest.$ac_objext | |
e1052144 TT |
13240 | if { (ac_try="$ac_compile" |
13241 | case "(($ac_try" in | |
13242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13243 | *) ac_try_echo=$ac_try;; | |
13244 | esac | |
13245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13246 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13247 | ac_status=$? |
13248 | grep -v '^ *+' conftest.er1 >conftest.err | |
13249 | rm -f conftest.er1 | |
13250 | cat conftest.err >&5 | |
13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13252 | (exit $ac_status); } && { |
13253 | test -z "$ac_c_werror_flag" || | |
13254 | test ! -s conftest.err | |
13255 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13256 | ac_hi=$ac_mid |
13257 | else | |
13258 | echo "$as_me: failed program was:" >&5 | |
13259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13260 | ||
e1052144 | 13261 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 13262 | fi |
e1052144 TT |
13263 | |
13264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13265 | done |
13266 | case $ac_lo in | |
13267 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
29a5deed TT |
13268 | '') if test "$ac_cv_type_int" = yes; then |
13269 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
b0cacab0 | 13270 | See \`config.log' for more details." >&5 |
e1052144 | 13271 | echo "$as_me: error: cannot compute sizeof (int) |
b0cacab0 | 13272 | See \`config.log' for more details." >&2;} |
29a5deed TT |
13273 | { (exit 77); exit 77; }; } |
13274 | else | |
13275 | ac_cv_sizeof_int=0 | |
13276 | fi ;; | |
b0cacab0 | 13277 | esac |
b0cacab0 TT |
13278 | else |
13279 | cat >conftest.$ac_ext <<_ACEOF | |
13280 | /* confdefs.h. */ | |
13281 | _ACEOF | |
13282 | cat confdefs.h >>conftest.$ac_ext | |
13283 | cat >>conftest.$ac_ext <<_ACEOF | |
13284 | /* end confdefs.h. */ | |
13285 | $ac_includes_default | |
29a5deed | 13286 | typedef int ac__type_sizeof_; |
e1052144 TT |
13287 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
13288 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
b0cacab0 TT |
13289 | #include <stdio.h> |
13290 | #include <stdlib.h> | |
13291 | int | |
13292 | main () | |
13293 | { | |
13294 | ||
13295 | FILE *f = fopen ("conftest.val", "w"); | |
13296 | if (! f) | |
e1052144 TT |
13297 | return 1; |
13298 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
b0cacab0 | 13299 | { |
e1052144 TT |
13300 | long int i = longval (); |
13301 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
13302 | return 1; | |
b0cacab0 TT |
13303 | fprintf (f, "%ld\n", i); |
13304 | } | |
13305 | else | |
13306 | { | |
e1052144 TT |
13307 | unsigned long int i = ulongval (); |
13308 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
13309 | return 1; | |
b0cacab0 TT |
13310 | fprintf (f, "%lu\n", i); |
13311 | } | |
e1052144 | 13312 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
13313 | |
13314 | ; | |
13315 | return 0; | |
13316 | } | |
13317 | _ACEOF | |
13318 | rm -f conftest$ac_exeext | |
e1052144 TT |
13319 | if { (ac_try="$ac_link" |
13320 | case "(($ac_try" in | |
13321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13322 | *) ac_try_echo=$ac_try;; | |
13323 | esac | |
13324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13325 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
13326 | ac_status=$? |
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
13329 | { (case "(($ac_try" in |
13330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13331 | *) ac_try_echo=$ac_try;; | |
13332 | esac | |
13333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13334 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
13335 | ac_status=$? |
13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13337 | (exit $ac_status); }; }; then | |
13338 | ac_cv_sizeof_int=`cat conftest.val` | |
13339 | else | |
13340 | echo "$as_me: program exited with status $ac_status" >&5 | |
13341 | echo "$as_me: failed program was:" >&5 | |
13342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13343 | ||
13344 | ( exit $ac_status ) | |
29a5deed TT |
13345 | if test "$ac_cv_type_int" = yes; then |
13346 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
b0cacab0 | 13347 | See \`config.log' for more details." >&5 |
e1052144 | 13348 | echo "$as_me: error: cannot compute sizeof (int) |
b0cacab0 | 13349 | See \`config.log' for more details." >&2;} |
e1052144 | 13350 | { (exit 77); exit 77; }; } |
29a5deed TT |
13351 | else |
13352 | ac_cv_sizeof_int=0 | |
13353 | fi | |
b0cacab0 | 13354 | fi |
e1052144 | 13355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
13356 | fi |
13357 | rm -f conftest.val | |
07a0db15 | 13358 | fi |
e1052144 TT |
13359 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13360 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
29a5deed TT |
13361 | |
13362 | ||
13363 | ||
b0cacab0 TT |
13364 | cat >>confdefs.h <<_ACEOF |
13365 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13366 | _ACEOF | |
13367 | ||
13368 | ||
e1052144 TT |
13369 | { echo "$as_me:$LINENO: checking for long" >&5 |
13370 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
b0cacab0 TT |
13371 | if test "${ac_cv_type_long+set}" = set; then |
13372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
07a0db15 | 13373 | else |
b0cacab0 TT |
13374 | cat >conftest.$ac_ext <<_ACEOF |
13375 | /* confdefs.h. */ | |
13376 | _ACEOF | |
13377 | cat confdefs.h >>conftest.$ac_ext | |
13378 | cat >>conftest.$ac_ext <<_ACEOF | |
13379 | /* end confdefs.h. */ | |
13380 | $ac_includes_default | |
e1052144 | 13381 | typedef long ac__type_new_; |
b0cacab0 TT |
13382 | int |
13383 | main () | |
13384 | { | |
e1052144 | 13385 | if ((ac__type_new_ *) 0) |
b0cacab0 | 13386 | return 0; |
e1052144 | 13387 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
13388 | return 0; |
13389 | ; | |
13390 | return 0; | |
13391 | } | |
13392 | _ACEOF | |
13393 | rm -f conftest.$ac_objext | |
e1052144 TT |
13394 | if { (ac_try="$ac_compile" |
13395 | case "(($ac_try" in | |
13396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13397 | *) ac_try_echo=$ac_try;; | |
13398 | esac | |
13399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13400 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13401 | ac_status=$? |
13402 | grep -v '^ *+' conftest.er1 >conftest.err | |
13403 | rm -f conftest.er1 | |
13404 | cat conftest.err >&5 | |
13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13406 | (exit $ac_status); } && { |
13407 | test -z "$ac_c_werror_flag" || | |
13408 | test ! -s conftest.err | |
13409 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13410 | ac_cv_type_long=yes |
13411 | else | |
13412 | echo "$as_me: failed program was:" >&5 | |
13413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13414 | ||
e1052144 | 13415 | ac_cv_type_long=no |
b0cacab0 | 13416 | fi |
e1052144 TT |
13417 | |
13418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13419 | fi |
e1052144 TT |
13420 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
13421 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
b0cacab0 | 13422 | |
29a5deed TT |
13423 | # The cast to long int works around a bug in the HP C Compiler |
13424 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13425 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13426 | # This bug is HP SR number 8606223364. | |
e1052144 TT |
13427 | { echo "$as_me:$LINENO: checking size of long" >&5 |
13428 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
b0cacab0 TT |
13429 | if test "${ac_cv_sizeof_long+set}" = set; then |
13430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13431 | else | |
07a0db15 | 13432 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
13433 | # Depending upon the size, compute the lo and hi bounds. |
13434 | cat >conftest.$ac_ext <<_ACEOF | |
13435 | /* confdefs.h. */ | |
13436 | _ACEOF | |
13437 | cat confdefs.h >>conftest.$ac_ext | |
13438 | cat >>conftest.$ac_ext <<_ACEOF | |
13439 | /* end confdefs.h. */ | |
13440 | $ac_includes_default | |
29a5deed | 13441 | typedef long ac__type_sizeof_; |
b0cacab0 TT |
13442 | int |
13443 | main () | |
13444 | { | |
e1052144 | 13445 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
b0cacab0 TT |
13446 | test_array [0] = 0 |
13447 | ||
13448 | ; | |
13449 | return 0; | |
13450 | } | |
13451 | _ACEOF | |
13452 | rm -f conftest.$ac_objext | |
e1052144 TT |
13453 | if { (ac_try="$ac_compile" |
13454 | case "(($ac_try" in | |
13455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13456 | *) ac_try_echo=$ac_try;; | |
13457 | esac | |
13458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13459 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13460 | ac_status=$? |
13461 | grep -v '^ *+' conftest.er1 >conftest.err | |
13462 | rm -f conftest.er1 | |
13463 | cat conftest.err >&5 | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13465 | (exit $ac_status); } && { |
13466 | test -z "$ac_c_werror_flag" || | |
13467 | test ! -s conftest.err | |
13468 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13469 | ac_lo=0 ac_mid=0 |
13470 | while :; do | |
13471 | cat >conftest.$ac_ext <<_ACEOF | |
13472 | /* confdefs.h. */ | |
13473 | _ACEOF | |
13474 | cat confdefs.h >>conftest.$ac_ext | |
13475 | cat >>conftest.$ac_ext <<_ACEOF | |
13476 | /* end confdefs.h. */ | |
13477 | $ac_includes_default | |
29a5deed | 13478 | typedef long ac__type_sizeof_; |
b0cacab0 TT |
13479 | int |
13480 | main () | |
13481 | { | |
e1052144 | 13482 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
13483 | test_array [0] = 0 |
13484 | ||
13485 | ; | |
13486 | return 0; | |
13487 | } | |
13488 | _ACEOF | |
13489 | rm -f conftest.$ac_objext | |
e1052144 TT |
13490 | if { (ac_try="$ac_compile" |
13491 | case "(($ac_try" in | |
13492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13493 | *) ac_try_echo=$ac_try;; | |
13494 | esac | |
13495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13496 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13497 | ac_status=$? |
13498 | grep -v '^ *+' conftest.er1 >conftest.err | |
13499 | rm -f conftest.er1 | |
13500 | cat conftest.err >&5 | |
13501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13502 | (exit $ac_status); } && { |
13503 | test -z "$ac_c_werror_flag" || | |
13504 | test ! -s conftest.err | |
13505 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13506 | ac_hi=$ac_mid; break |
13507 | else | |
13508 | echo "$as_me: failed program was:" >&5 | |
13509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13510 | ||
e1052144 TT |
13511 | ac_lo=`expr $ac_mid + 1` |
13512 | if test $ac_lo -le $ac_mid; then | |
13513 | ac_lo= ac_hi= | |
13514 | break | |
13515 | fi | |
13516 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 13517 | fi |
e1052144 TT |
13518 | |
13519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13520 | done |
07a0db15 | 13521 | else |
b0cacab0 TT |
13522 | echo "$as_me: failed program was:" >&5 |
13523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13524 | ||
e1052144 | 13525 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
13526 | /* confdefs.h. */ |
13527 | _ACEOF | |
13528 | cat confdefs.h >>conftest.$ac_ext | |
13529 | cat >>conftest.$ac_ext <<_ACEOF | |
13530 | /* end confdefs.h. */ | |
13531 | $ac_includes_default | |
29a5deed | 13532 | typedef long ac__type_sizeof_; |
b0cacab0 TT |
13533 | int |
13534 | main () | |
50e1e10f | 13535 | { |
e1052144 | 13536 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
b0cacab0 TT |
13537 | test_array [0] = 0 |
13538 | ||
13539 | ; | |
13540 | return 0; | |
50e1e10f | 13541 | } |
b0cacab0 TT |
13542 | _ACEOF |
13543 | rm -f conftest.$ac_objext | |
e1052144 TT |
13544 | if { (ac_try="$ac_compile" |
13545 | case "(($ac_try" in | |
13546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13547 | *) ac_try_echo=$ac_try;; | |
13548 | esac | |
13549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13550 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13551 | ac_status=$? |
13552 | grep -v '^ *+' conftest.er1 >conftest.err | |
13553 | rm -f conftest.er1 | |
13554 | cat conftest.err >&5 | |
13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13556 | (exit $ac_status); } && { |
13557 | test -z "$ac_c_werror_flag" || | |
13558 | test ! -s conftest.err | |
13559 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13560 | ac_hi=-1 ac_mid=-1 |
13561 | while :; do | |
13562 | cat >conftest.$ac_ext <<_ACEOF | |
13563 | /* confdefs.h. */ | |
13564 | _ACEOF | |
13565 | cat confdefs.h >>conftest.$ac_ext | |
13566 | cat >>conftest.$ac_ext <<_ACEOF | |
13567 | /* end confdefs.h. */ | |
13568 | $ac_includes_default | |
29a5deed | 13569 | typedef long ac__type_sizeof_; |
b0cacab0 TT |
13570 | int |
13571 | main () | |
13572 | { | |
e1052144 | 13573 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
b0cacab0 TT |
13574 | test_array [0] = 0 |
13575 | ||
13576 | ; | |
13577 | return 0; | |
13578 | } | |
13579 | _ACEOF | |
13580 | rm -f conftest.$ac_objext | |
e1052144 TT |
13581 | if { (ac_try="$ac_compile" |
13582 | case "(($ac_try" in | |
13583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13584 | *) ac_try_echo=$ac_try;; | |
13585 | esac | |
13586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13587 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13588 | ac_status=$? |
13589 | grep -v '^ *+' conftest.er1 >conftest.err | |
13590 | rm -f conftest.er1 | |
13591 | cat conftest.err >&5 | |
13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13593 | (exit $ac_status); } && { |
13594 | test -z "$ac_c_werror_flag" || | |
13595 | test ! -s conftest.err | |
13596 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13597 | ac_lo=$ac_mid; break |
13598 | else | |
13599 | echo "$as_me: failed program was:" >&5 | |
13600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13601 | ||
e1052144 TT |
13602 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13603 | if test $ac_mid -le $ac_hi; then | |
13604 | ac_lo= ac_hi= | |
13605 | break | |
13606 | fi | |
13607 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 13608 | fi |
e1052144 TT |
13609 | |
13610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13611 | done |
07a0db15 | 13612 | else |
b0cacab0 TT |
13613 | echo "$as_me: failed program was:" >&5 |
13614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
93636bde | 13615 | |
e1052144 | 13616 | ac_lo= ac_hi= |
93636bde | 13617 | fi |
e1052144 TT |
13618 | |
13619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13620 | fi |
e1052144 TT |
13621 | |
13622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13623 | # Binary search between lo and hi bounds. |
13624 | while test "x$ac_lo" != "x$ac_hi"; do | |
13625 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13626 | cat >conftest.$ac_ext <<_ACEOF | |
13627 | /* confdefs.h. */ | |
13628 | _ACEOF | |
13629 | cat confdefs.h >>conftest.$ac_ext | |
13630 | cat >>conftest.$ac_ext <<_ACEOF | |
13631 | /* end confdefs.h. */ | |
13632 | $ac_includes_default | |
29a5deed | 13633 | typedef long ac__type_sizeof_; |
b0cacab0 TT |
13634 | int |
13635 | main () | |
13636 | { | |
e1052144 | 13637 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 | 13638 | test_array [0] = 0 |
93636bde | 13639 | |
b0cacab0 TT |
13640 | ; |
13641 | return 0; | |
13642 | } | |
13643 | _ACEOF | |
13644 | rm -f conftest.$ac_objext | |
e1052144 TT |
13645 | if { (ac_try="$ac_compile" |
13646 | case "(($ac_try" in | |
13647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13648 | *) ac_try_echo=$ac_try;; | |
13649 | esac | |
13650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13651 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13652 | ac_status=$? |
13653 | grep -v '^ *+' conftest.er1 >conftest.err | |
13654 | rm -f conftest.er1 | |
13655 | cat conftest.err >&5 | |
13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13657 | (exit $ac_status); } && { |
13658 | test -z "$ac_c_werror_flag" || | |
13659 | test ! -s conftest.err | |
13660 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13661 | ac_hi=$ac_mid |
13662 | else | |
13663 | echo "$as_me: failed program was:" >&5 | |
13664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13665 | ||
e1052144 | 13666 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 13667 | fi |
e1052144 TT |
13668 | |
13669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
13670 | done |
13671 | case $ac_lo in | |
13672 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
29a5deed TT |
13673 | '') if test "$ac_cv_type_long" = yes; then |
13674 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
b0cacab0 | 13675 | See \`config.log' for more details." >&5 |
e1052144 | 13676 | echo "$as_me: error: cannot compute sizeof (long) |
b0cacab0 | 13677 | See \`config.log' for more details." >&2;} |
29a5deed TT |
13678 | { (exit 77); exit 77; }; } |
13679 | else | |
13680 | ac_cv_sizeof_long=0 | |
13681 | fi ;; | |
b0cacab0 | 13682 | esac |
b0cacab0 TT |
13683 | else |
13684 | cat >conftest.$ac_ext <<_ACEOF | |
13685 | /* confdefs.h. */ | |
13686 | _ACEOF | |
13687 | cat confdefs.h >>conftest.$ac_ext | |
13688 | cat >>conftest.$ac_ext <<_ACEOF | |
13689 | /* end confdefs.h. */ | |
13690 | $ac_includes_default | |
29a5deed | 13691 | typedef long ac__type_sizeof_; |
e1052144 TT |
13692 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
13693 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
93636bde | 13694 | #include <stdio.h> |
b0cacab0 TT |
13695 | #include <stdlib.h> |
13696 | int | |
13697 | main () | |
07a0db15 | 13698 | { |
b0cacab0 TT |
13699 | |
13700 | FILE *f = fopen ("conftest.val", "w"); | |
13701 | if (! f) | |
e1052144 TT |
13702 | return 1; |
13703 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
b0cacab0 | 13704 | { |
e1052144 TT |
13705 | long int i = longval (); |
13706 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
13707 | return 1; | |
b0cacab0 TT |
13708 | fprintf (f, "%ld\n", i); |
13709 | } | |
13710 | else | |
13711 | { | |
e1052144 TT |
13712 | unsigned long int i = ulongval (); |
13713 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
13714 | return 1; | |
b0cacab0 TT |
13715 | fprintf (f, "%lu\n", i); |
13716 | } | |
e1052144 | 13717 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
13718 | |
13719 | ; | |
13720 | return 0; | |
07a0db15 | 13721 | } |
b0cacab0 TT |
13722 | _ACEOF |
13723 | rm -f conftest$ac_exeext | |
e1052144 TT |
13724 | if { (ac_try="$ac_link" |
13725 | case "(($ac_try" in | |
13726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13727 | *) ac_try_echo=$ac_try;; | |
13728 | esac | |
13729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13730 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
13731 | ac_status=$? |
13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13733 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
13734 | { (case "(($ac_try" in |
13735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13736 | *) ac_try_echo=$ac_try;; | |
13737 | esac | |
13738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13739 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
13740 | ac_status=$? |
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13742 | (exit $ac_status); }; }; then | |
13743 | ac_cv_sizeof_long=`cat conftest.val` | |
13744 | else | |
13745 | echo "$as_me: program exited with status $ac_status" >&5 | |
13746 | echo "$as_me: failed program was:" >&5 | |
13747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13748 | ||
13749 | ( exit $ac_status ) | |
29a5deed TT |
13750 | if test "$ac_cv_type_long" = yes; then |
13751 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
b0cacab0 | 13752 | See \`config.log' for more details." >&5 |
e1052144 | 13753 | echo "$as_me: error: cannot compute sizeof (long) |
b0cacab0 | 13754 | See \`config.log' for more details." >&2;} |
e1052144 | 13755 | { (exit 77); exit 77; }; } |
29a5deed TT |
13756 | else |
13757 | ac_cv_sizeof_long=0 | |
13758 | fi | |
b0cacab0 | 13759 | fi |
e1052144 | 13760 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
13761 | fi |
13762 | rm -f conftest.val | |
50e1e10f | 13763 | fi |
e1052144 TT |
13764 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
13765 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
29a5deed TT |
13766 | |
13767 | ||
13768 | ||
b0cacab0 TT |
13769 | cat >>confdefs.h <<_ACEOF |
13770 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13771 | _ACEOF | |
50e1e10f | 13772 | |
93636bde | 13773 | |
e1052144 TT |
13774 | { echo "$as_me:$LINENO: checking for long long" >&5 |
13775 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
b0cacab0 TT |
13776 | if test "${ac_cv_type_long_long+set}" = set; then |
13777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 13778 | else |
b0cacab0 TT |
13779 | cat >conftest.$ac_ext <<_ACEOF |
13780 | /* confdefs.h. */ | |
13781 | _ACEOF | |
13782 | cat confdefs.h >>conftest.$ac_ext | |
13783 | cat >>conftest.$ac_ext <<_ACEOF | |
13784 | /* end confdefs.h. */ | |
13785 | $ac_includes_default | |
e1052144 | 13786 | typedef long long ac__type_new_; |
b0cacab0 TT |
13787 | int |
13788 | main () | |
13789 | { | |
e1052144 | 13790 | if ((ac__type_new_ *) 0) |
b0cacab0 | 13791 | return 0; |
e1052144 | 13792 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
13793 | return 0; |
13794 | ; | |
13795 | return 0; | |
13796 | } | |
13797 | _ACEOF | |
13798 | rm -f conftest.$ac_objext | |
e1052144 TT |
13799 | if { (ac_try="$ac_compile" |
13800 | case "(($ac_try" in | |
13801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13802 | *) ac_try_echo=$ac_try;; | |
13803 | esac | |
13804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13805 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13806 | ac_status=$? |
13807 | grep -v '^ *+' conftest.er1 >conftest.err | |
13808 | rm -f conftest.er1 | |
13809 | cat conftest.err >&5 | |
13810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13811 | (exit $ac_status); } && { |
13812 | test -z "$ac_c_werror_flag" || | |
13813 | test ! -s conftest.err | |
13814 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13815 | ac_cv_type_long_long=yes |
13816 | else | |
13817 | echo "$as_me: failed program was:" >&5 | |
13818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13819 | ||
e1052144 | 13820 | ac_cv_type_long_long=no |
b0cacab0 | 13821 | fi |
e1052144 TT |
13822 | |
13823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13824 | fi |
e1052144 TT |
13825 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
13826 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
b0cacab0 | 13827 | |
29a5deed TT |
13828 | # The cast to long int works around a bug in the HP C Compiler |
13829 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13830 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13831 | # This bug is HP SR number 8606223364. | |
e1052144 TT |
13832 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
13833 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
b0cacab0 TT |
13834 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
13835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13836 | else | |
50e1e10f | 13837 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
13838 | # Depending upon the size, compute the lo and hi bounds. |
13839 | cat >conftest.$ac_ext <<_ACEOF | |
13840 | /* confdefs.h. */ | |
13841 | _ACEOF | |
13842 | cat confdefs.h >>conftest.$ac_ext | |
13843 | cat >>conftest.$ac_ext <<_ACEOF | |
13844 | /* end confdefs.h. */ | |
13845 | $ac_includes_default | |
29a5deed | 13846 | typedef long long ac__type_sizeof_; |
b0cacab0 TT |
13847 | int |
13848 | main () | |
13849 | { | |
e1052144 | 13850 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
b0cacab0 TT |
13851 | test_array [0] = 0 |
13852 | ||
13853 | ; | |
13854 | return 0; | |
13855 | } | |
13856 | _ACEOF | |
13857 | rm -f conftest.$ac_objext | |
e1052144 TT |
13858 | if { (ac_try="$ac_compile" |
13859 | case "(($ac_try" in | |
13860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13861 | *) ac_try_echo=$ac_try;; | |
13862 | esac | |
13863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13864 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13865 | ac_status=$? |
13866 | grep -v '^ *+' conftest.er1 >conftest.err | |
13867 | rm -f conftest.er1 | |
13868 | cat conftest.err >&5 | |
13869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13870 | (exit $ac_status); } && { |
13871 | test -z "$ac_c_werror_flag" || | |
13872 | test ! -s conftest.err | |
13873 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13874 | ac_lo=0 ac_mid=0 |
13875 | while :; do | |
13876 | cat >conftest.$ac_ext <<_ACEOF | |
13877 | /* confdefs.h. */ | |
13878 | _ACEOF | |
13879 | cat confdefs.h >>conftest.$ac_ext | |
13880 | cat >>conftest.$ac_ext <<_ACEOF | |
13881 | /* end confdefs.h. */ | |
13882 | $ac_includes_default | |
29a5deed | 13883 | typedef long long ac__type_sizeof_; |
b0cacab0 TT |
13884 | int |
13885 | main () | |
13886 | { | |
e1052144 | 13887 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 TT |
13888 | test_array [0] = 0 |
13889 | ||
13890 | ; | |
13891 | return 0; | |
13892 | } | |
13893 | _ACEOF | |
13894 | rm -f conftest.$ac_objext | |
e1052144 TT |
13895 | if { (ac_try="$ac_compile" |
13896 | case "(($ac_try" in | |
13897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13898 | *) ac_try_echo=$ac_try;; | |
13899 | esac | |
13900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13901 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13902 | ac_status=$? |
13903 | grep -v '^ *+' conftest.er1 >conftest.err | |
13904 | rm -f conftest.er1 | |
13905 | cat conftest.err >&5 | |
13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13907 | (exit $ac_status); } && { |
13908 | test -z "$ac_c_werror_flag" || | |
13909 | test ! -s conftest.err | |
13910 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13911 | ac_hi=$ac_mid; break |
13912 | else | |
13913 | echo "$as_me: failed program was:" >&5 | |
13914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13915 | ||
e1052144 TT |
13916 | ac_lo=`expr $ac_mid + 1` |
13917 | if test $ac_lo -le $ac_mid; then | |
13918 | ac_lo= ac_hi= | |
13919 | break | |
13920 | fi | |
13921 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
b0cacab0 | 13922 | fi |
e1052144 TT |
13923 | |
13924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 13925 | done |
50e1e10f | 13926 | else |
b0cacab0 TT |
13927 | echo "$as_me: failed program was:" >&5 |
13928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13929 | ||
e1052144 | 13930 | cat >conftest.$ac_ext <<_ACEOF |
b0cacab0 TT |
13931 | /* confdefs.h. */ |
13932 | _ACEOF | |
13933 | cat confdefs.h >>conftest.$ac_ext | |
13934 | cat >>conftest.$ac_ext <<_ACEOF | |
13935 | /* end confdefs.h. */ | |
13936 | $ac_includes_default | |
29a5deed | 13937 | typedef long long ac__type_sizeof_; |
b0cacab0 TT |
13938 | int |
13939 | main () | |
50e1e10f | 13940 | { |
e1052144 | 13941 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
b0cacab0 TT |
13942 | test_array [0] = 0 |
13943 | ||
13944 | ; | |
13945 | return 0; | |
50e1e10f | 13946 | } |
b0cacab0 TT |
13947 | _ACEOF |
13948 | rm -f conftest.$ac_objext | |
e1052144 TT |
13949 | if { (ac_try="$ac_compile" |
13950 | case "(($ac_try" in | |
13951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13952 | *) ac_try_echo=$ac_try;; | |
13953 | esac | |
13954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13955 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13956 | ac_status=$? |
13957 | grep -v '^ *+' conftest.er1 >conftest.err | |
13958 | rm -f conftest.er1 | |
13959 | cat conftest.err >&5 | |
13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13961 | (exit $ac_status); } && { |
13962 | test -z "$ac_c_werror_flag" || | |
13963 | test ! -s conftest.err | |
13964 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
13965 | ac_hi=-1 ac_mid=-1 |
13966 | while :; do | |
13967 | cat >conftest.$ac_ext <<_ACEOF | |
13968 | /* confdefs.h. */ | |
13969 | _ACEOF | |
13970 | cat confdefs.h >>conftest.$ac_ext | |
13971 | cat >>conftest.$ac_ext <<_ACEOF | |
13972 | /* end confdefs.h. */ | |
13973 | $ac_includes_default | |
29a5deed | 13974 | typedef long long ac__type_sizeof_; |
b0cacab0 TT |
13975 | int |
13976 | main () | |
13977 | { | |
e1052144 | 13978 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
b0cacab0 TT |
13979 | test_array [0] = 0 |
13980 | ||
13981 | ; | |
13982 | return 0; | |
13983 | } | |
13984 | _ACEOF | |
13985 | rm -f conftest.$ac_objext | |
e1052144 TT |
13986 | if { (ac_try="$ac_compile" |
13987 | case "(($ac_try" in | |
13988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13989 | *) ac_try_echo=$ac_try;; | |
13990 | esac | |
13991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13992 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
13993 | ac_status=$? |
13994 | grep -v '^ *+' conftest.er1 >conftest.err | |
13995 | rm -f conftest.er1 | |
13996 | cat conftest.err >&5 | |
13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
13998 | (exit $ac_status); } && { |
13999 | test -z "$ac_c_werror_flag" || | |
14000 | test ! -s conftest.err | |
14001 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14002 | ac_lo=$ac_mid; break |
14003 | else | |
14004 | echo "$as_me: failed program was:" >&5 | |
14005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14006 | ||
e1052144 TT |
14007 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14008 | if test $ac_mid -le $ac_hi; then | |
14009 | ac_lo= ac_hi= | |
14010 | break | |
14011 | fi | |
14012 | ac_mid=`expr 2 '*' $ac_mid` | |
b0cacab0 | 14013 | fi |
e1052144 TT |
14014 | |
14015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14016 | done |
07a0db15 | 14017 | else |
b0cacab0 TT |
14018 | echo "$as_me: failed program was:" >&5 |
14019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
93636bde | 14020 | |
e1052144 | 14021 | ac_lo= ac_hi= |
07a0db15 | 14022 | fi |
e1052144 TT |
14023 | |
14024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14025 | fi |
e1052144 TT |
14026 | |
14027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14028 | # Binary search between lo and hi bounds. |
14029 | while test "x$ac_lo" != "x$ac_hi"; do | |
14030 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14031 | cat >conftest.$ac_ext <<_ACEOF | |
14032 | /* confdefs.h. */ | |
14033 | _ACEOF | |
14034 | cat confdefs.h >>conftest.$ac_ext | |
14035 | cat >>conftest.$ac_ext <<_ACEOF | |
14036 | /* end confdefs.h. */ | |
14037 | $ac_includes_default | |
29a5deed | 14038 | typedef long long ac__type_sizeof_; |
b0cacab0 TT |
14039 | int |
14040 | main () | |
14041 | { | |
e1052144 | 14042 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
b0cacab0 | 14043 | test_array [0] = 0 |
93636bde | 14044 | |
b0cacab0 TT |
14045 | ; |
14046 | return 0; | |
14047 | } | |
14048 | _ACEOF | |
14049 | rm -f conftest.$ac_objext | |
e1052144 TT |
14050 | if { (ac_try="$ac_compile" |
14051 | case "(($ac_try" in | |
14052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14053 | *) ac_try_echo=$ac_try;; | |
14054 | esac | |
14055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14056 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 | 14057 | ac_status=$? |
29a5deed TT |
14058 | grep -v '^ *+' conftest.er1 >conftest.err |
14059 | rm -f conftest.er1 | |
14060 | cat conftest.err >&5 | |
b0cacab0 | 14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29a5deed TT |
14062 | (exit $ac_status); } && { |
14063 | test -z "$ac_c_werror_flag" || | |
14064 | test ! -s conftest.err | |
14065 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14066 | ac_hi=$ac_mid |
14067 | else | |
14068 | echo "$as_me: failed program was:" >&5 | |
14069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14070 | ||
e1052144 | 14071 | ac_lo=`expr '(' $ac_mid ')' + 1` |
b0cacab0 | 14072 | fi |
e1052144 TT |
14073 | |
14074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 TT |
14075 | done |
14076 | case $ac_lo in | |
14077 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
29a5deed TT |
14078 | '') if test "$ac_cv_type_long_long" = yes; then |
14079 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
b0cacab0 | 14080 | See \`config.log' for more details." >&5 |
e1052144 | 14081 | echo "$as_me: error: cannot compute sizeof (long long) |
b0cacab0 | 14082 | See \`config.log' for more details." >&2;} |
29a5deed TT |
14083 | { (exit 77); exit 77; }; } |
14084 | else | |
14085 | ac_cv_sizeof_long_long=0 | |
14086 | fi ;; | |
b0cacab0 | 14087 | esac |
b0cacab0 TT |
14088 | else |
14089 | cat >conftest.$ac_ext <<_ACEOF | |
14090 | /* confdefs.h. */ | |
14091 | _ACEOF | |
14092 | cat confdefs.h >>conftest.$ac_ext | |
14093 | cat >>conftest.$ac_ext <<_ACEOF | |
14094 | /* end confdefs.h. */ | |
14095 | $ac_includes_default | |
29a5deed | 14096 | typedef long long ac__type_sizeof_; |
e1052144 TT |
14097 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
14098 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
93636bde | 14099 | #include <stdio.h> |
b0cacab0 TT |
14100 | #include <stdlib.h> |
14101 | int | |
14102 | main () | |
07a0db15 | 14103 | { |
b0cacab0 TT |
14104 | |
14105 | FILE *f = fopen ("conftest.val", "w"); | |
14106 | if (! f) | |
e1052144 TT |
14107 | return 1; |
14108 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
b0cacab0 | 14109 | { |
e1052144 TT |
14110 | long int i = longval (); |
14111 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14112 | return 1; | |
b0cacab0 TT |
14113 | fprintf (f, "%ld\n", i); |
14114 | } | |
14115 | else | |
14116 | { | |
e1052144 TT |
14117 | unsigned long int i = ulongval (); |
14118 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14119 | return 1; | |
b0cacab0 TT |
14120 | fprintf (f, "%lu\n", i); |
14121 | } | |
e1052144 | 14122 | return ferror (f) || fclose (f) != 0; |
b0cacab0 TT |
14123 | |
14124 | ; | |
14125 | return 0; | |
07a0db15 | 14126 | } |
b0cacab0 TT |
14127 | _ACEOF |
14128 | rm -f conftest$ac_exeext | |
e1052144 TT |
14129 | if { (ac_try="$ac_link" |
14130 | case "(($ac_try" in | |
14131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14132 | *) ac_try_echo=$ac_try;; | |
14133 | esac | |
14134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14135 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
14136 | ac_status=$? |
14137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14138 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
14139 | { (case "(($ac_try" in |
14140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14141 | *) ac_try_echo=$ac_try;; | |
14142 | esac | |
14143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14144 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
14145 | ac_status=$? |
14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14147 | (exit $ac_status); }; }; then | |
14148 | ac_cv_sizeof_long_long=`cat conftest.val` | |
14149 | else | |
14150 | echo "$as_me: program exited with status $ac_status" >&5 | |
14151 | echo "$as_me: failed program was:" >&5 | |
14152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14153 | ||
14154 | ( exit $ac_status ) | |
29a5deed TT |
14155 | if test "$ac_cv_type_long_long" = yes; then |
14156 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
b0cacab0 | 14157 | See \`config.log' for more details." >&5 |
e1052144 | 14158 | echo "$as_me: error: cannot compute sizeof (long long) |
b0cacab0 | 14159 | See \`config.log' for more details." >&2;} |
e1052144 | 14160 | { (exit 77); exit 77; }; } |
29a5deed TT |
14161 | else |
14162 | ac_cv_sizeof_long_long=0 | |
14163 | fi | |
b0cacab0 | 14164 | fi |
e1052144 | 14165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
14166 | fi |
14167 | rm -f conftest.val | |
fc6d9d51 | 14168 | fi |
e1052144 TT |
14169 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
14170 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
29a5deed TT |
14171 | |
14172 | ||
14173 | ||
b0cacab0 | 14174 | cat >>confdefs.h <<_ACEOF |
fc6d9d51 | 14175 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
b0cacab0 | 14176 | _ACEOF |
fc6d9d51 | 14177 | |
93636bde | 14178 | |
50e1e10f TT |
14179 | SIZEOF_SHORT=$ac_cv_sizeof_short |
14180 | SIZEOF_INT=$ac_cv_sizeof_int | |
14181 | SIZEOF_LONG=$ac_cv_sizeof_long | |
fc6d9d51 TT |
14182 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
14183 | ||
93636bde TT |
14184 | |
14185 | ||
14186 | ||
e1052144 TT |
14187 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
14188 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
b0cacab0 TT |
14189 | if test "${ac_cv_c_bigendian+set}" = set; then |
14190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
877eb6d9 | 14191 | else |
b0cacab0 TT |
14192 | # See if sys/param.h defines the BYTE_ORDER macro. |
14193 | cat >conftest.$ac_ext <<_ACEOF | |
14194 | /* confdefs.h. */ | |
14195 | _ACEOF | |
14196 | cat confdefs.h >>conftest.$ac_ext | |
14197 | cat >>conftest.$ac_ext <<_ACEOF | |
14198 | /* end confdefs.h. */ | |
877eb6d9 TT |
14199 | #include <sys/types.h> |
14200 | #include <sys/param.h> | |
877eb6d9 | 14201 | |
b0cacab0 TT |
14202 | int |
14203 | main () | |
14204 | { | |
29a5deed TT |
14205 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
14206 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
877eb6d9 TT |
14207 | bogus endian macros |
14208 | #endif | |
b0cacab0 TT |
14209 | |
14210 | ; | |
14211 | return 0; | |
14212 | } | |
14213 | _ACEOF | |
14214 | rm -f conftest.$ac_objext | |
e1052144 TT |
14215 | if { (ac_try="$ac_compile" |
14216 | case "(($ac_try" in | |
14217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14218 | *) ac_try_echo=$ac_try;; | |
14219 | esac | |
14220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14221 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14222 | ac_status=$? |
14223 | grep -v '^ *+' conftest.er1 >conftest.err | |
14224 | rm -f conftest.er1 | |
14225 | cat conftest.err >&5 | |
14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14227 | (exit $ac_status); } && { |
14228 | test -z "$ac_c_werror_flag" || | |
14229 | test ! -s conftest.err | |
14230 | } && test -s conftest.$ac_objext; then | |
877eb6d9 | 14231 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b0cacab0 TT |
14232 | cat >conftest.$ac_ext <<_ACEOF |
14233 | /* confdefs.h. */ | |
14234 | _ACEOF | |
14235 | cat confdefs.h >>conftest.$ac_ext | |
14236 | cat >>conftest.$ac_ext <<_ACEOF | |
14237 | /* end confdefs.h. */ | |
877eb6d9 TT |
14238 | #include <sys/types.h> |
14239 | #include <sys/param.h> | |
877eb6d9 | 14240 | |
b0cacab0 TT |
14241 | int |
14242 | main () | |
14243 | { | |
877eb6d9 TT |
14244 | #if BYTE_ORDER != BIG_ENDIAN |
14245 | not big endian | |
14246 | #endif | |
b0cacab0 TT |
14247 | |
14248 | ; | |
14249 | return 0; | |
14250 | } | |
14251 | _ACEOF | |
14252 | rm -f conftest.$ac_objext | |
e1052144 TT |
14253 | if { (ac_try="$ac_compile" |
14254 | case "(($ac_try" in | |
14255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14256 | *) ac_try_echo=$ac_try;; | |
14257 | esac | |
14258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14259 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14260 | ac_status=$? |
14261 | grep -v '^ *+' conftest.er1 >conftest.err | |
14262 | rm -f conftest.er1 | |
14263 | cat conftest.err >&5 | |
14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14265 | (exit $ac_status); } && { |
14266 | test -z "$ac_c_werror_flag" || | |
14267 | test ! -s conftest.err | |
14268 | } && test -s conftest.$ac_objext; then | |
877eb6d9 TT |
14269 | ac_cv_c_bigendian=yes |
14270 | else | |
b0cacab0 TT |
14271 | echo "$as_me: failed program was:" >&5 |
14272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14273 | ||
e1052144 | 14274 | ac_cv_c_bigendian=no |
877eb6d9 | 14275 | fi |
e1052144 TT |
14276 | |
14277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 14278 | else |
b0cacab0 TT |
14279 | echo "$as_me: failed program was:" >&5 |
14280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14281 | ||
e1052144 | 14282 | # It does not; compile a test program. |
877eb6d9 | 14283 | if test "$cross_compiling" = yes; then |
b0cacab0 TT |
14284 | # try to guess the endianness by grepping values into an object file |
14285 | ac_cv_c_bigendian=unknown | |
14286 | cat >conftest.$ac_ext <<_ACEOF | |
14287 | /* confdefs.h. */ | |
14288 | _ACEOF | |
14289 | cat confdefs.h >>conftest.$ac_ext | |
14290 | cat >>conftest.$ac_ext <<_ACEOF | |
14291 | /* end confdefs.h. */ | |
e1052144 TT |
14292 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
14293 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
b0cacab0 | 14294 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
e1052144 TT |
14295 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
14296 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
b0cacab0 TT |
14297 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
14298 | int | |
14299 | main () | |
14300 | { | |
14301 | _ascii (); _ebcdic (); | |
14302 | ; | |
14303 | return 0; | |
14304 | } | |
14305 | _ACEOF | |
14306 | rm -f conftest.$ac_objext | |
e1052144 TT |
14307 | if { (ac_try="$ac_compile" |
14308 | case "(($ac_try" in | |
14309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14310 | *) ac_try_echo=$ac_try;; | |
14311 | esac | |
14312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14313 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14314 | ac_status=$? |
14315 | grep -v '^ *+' conftest.er1 >conftest.err | |
14316 | rm -f conftest.er1 | |
14317 | cat conftest.err >&5 | |
14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14319 | (exit $ac_status); } && { |
14320 | test -z "$ac_c_werror_flag" || | |
14321 | test ! -s conftest.err | |
14322 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14323 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
14324 | ac_cv_c_bigendian=yes | |
14325 | fi | |
14326 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14327 | if test "$ac_cv_c_bigendian" = unknown; then | |
14328 | ac_cv_c_bigendian=no | |
14329 | else | |
14330 | # finding both strings is unlikely to happen, but who knows? | |
14331 | ac_cv_c_bigendian=unknown | |
14332 | fi | |
14333 | fi | |
14334 | else | |
14335 | echo "$as_me: failed program was:" >&5 | |
14336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14337 | ||
e1052144 | 14338 | |
b0cacab0 | 14339 | fi |
e1052144 TT |
14340 | |
14341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 14342 | else |
b0cacab0 TT |
14343 | cat >conftest.$ac_ext <<_ACEOF |
14344 | /* confdefs.h. */ | |
14345 | _ACEOF | |
14346 | cat confdefs.h >>conftest.$ac_ext | |
14347 | cat >>conftest.$ac_ext <<_ACEOF | |
14348 | /* end confdefs.h. */ | |
e1052144 | 14349 | $ac_includes_default |
b0cacab0 TT |
14350 | int |
14351 | main () | |
14352 | { | |
e1052144 | 14353 | |
877eb6d9 TT |
14354 | /* Are we little or big endian? From Harbison&Steele. */ |
14355 | union | |
14356 | { | |
e1052144 TT |
14357 | long int l; |
14358 | char c[sizeof (long int)]; | |
877eb6d9 TT |
14359 | } u; |
14360 | u.l = 1; | |
e1052144 TT |
14361 | return u.c[sizeof (long int) - 1] == 1; |
14362 | ||
14363 | ; | |
14364 | return 0; | |
877eb6d9 | 14365 | } |
b0cacab0 TT |
14366 | _ACEOF |
14367 | rm -f conftest$ac_exeext | |
e1052144 TT |
14368 | if { (ac_try="$ac_link" |
14369 | case "(($ac_try" in | |
14370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14371 | *) ac_try_echo=$ac_try;; | |
14372 | esac | |
14373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14374 | (eval "$ac_link") 2>&5 | |
b0cacab0 TT |
14375 | ac_status=$? |
14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
e1052144 TT |
14378 | { (case "(($ac_try" in |
14379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14380 | *) ac_try_echo=$ac_try;; | |
14381 | esac | |
14382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14383 | (eval "$ac_try") 2>&5 | |
b0cacab0 TT |
14384 | ac_status=$? |
14385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14386 | (exit $ac_status); }; }; then | |
877eb6d9 TT |
14387 | ac_cv_c_bigendian=no |
14388 | else | |
b0cacab0 TT |
14389 | echo "$as_me: program exited with status $ac_status" >&5 |
14390 | echo "$as_me: failed program was:" >&5 | |
14391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14392 | ||
14393 | ( exit $ac_status ) | |
14394 | ac_cv_c_bigendian=yes | |
877eb6d9 | 14395 | fi |
e1052144 | 14396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 14397 | fi |
e1052144 TT |
14398 | |
14399 | ||
877eb6d9 | 14400 | fi |
e1052144 TT |
14401 | |
14402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
877eb6d9 | 14403 | fi |
e1052144 TT |
14404 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
14405 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
b0cacab0 TT |
14406 | case $ac_cv_c_bigendian in |
14407 | yes) | |
07a0db15 | 14408 | |
b0cacab0 | 14409 | cat >>confdefs.h <<\_ACEOF |
877eb6d9 | 14410 | #define WORDS_BIGENDIAN 1 |
b0cacab0 TT |
14411 | _ACEOF |
14412 | ;; | |
14413 | no) | |
14414 | ;; | |
14415 | *) | |
14416 | { { echo "$as_me:$LINENO: error: unknown endianness | |
14417 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
14418 | echo "$as_me: error: unknown endianness | |
14419 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
14420 | { (exit 1); exit 1; }; } ;; | |
14421 | esac | |
877eb6d9 | 14422 | |
29a5deed | 14423 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
4ea7ea00 TT |
14424 | ASM_TYPES_HEADER=./asm_types.h |
14425 | ||
488c75a6 TT |
14426 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
14427 | > public_config.h | |
14428 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
14429 | uniq tmp_config.$$ >> public_config.h | |
14430 | else | |
14431 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
14432 | fi | |
14433 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
14434 | uniq tmp_config.$$ >> public_config.h | |
14435 | else | |
14436 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
14437 | fi | |
14438 | rm -f tmp_config.$$ | |
14439 | PUBLIC_CONFIG_HEADER=./public_config.h | |
14440 | ||
877eb6d9 | 14441 | |
b0cacab0 | 14442 | for ac_header in inttypes.h |
0c193f82 | 14443 | do |
b0cacab0 | 14444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e1052144 TT |
14445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
14446 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
14448 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
14449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14450 | fi | |
e1052144 TT |
14451 | ac_res=`eval echo '${'$as_ac_Header'}'` |
14452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14453 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
14454 | else |
14455 | # Is the header compilable? | |
e1052144 TT |
14456 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14457 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b0cacab0 TT |
14458 | cat >conftest.$ac_ext <<_ACEOF |
14459 | /* confdefs.h. */ | |
14460 | _ACEOF | |
14461 | cat confdefs.h >>conftest.$ac_ext | |
14462 | cat >>conftest.$ac_ext <<_ACEOF | |
14463 | /* end confdefs.h. */ | |
14464 | $ac_includes_default | |
14465 | #include <$ac_header> | |
14466 | _ACEOF | |
14467 | rm -f conftest.$ac_objext | |
e1052144 TT |
14468 | if { (ac_try="$ac_compile" |
14469 | case "(($ac_try" in | |
14470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14471 | *) ac_try_echo=$ac_try;; | |
14472 | esac | |
14473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14474 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14475 | ac_status=$? |
14476 | grep -v '^ *+' conftest.er1 >conftest.err | |
14477 | rm -f conftest.er1 | |
14478 | cat conftest.err >&5 | |
14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14480 | (exit $ac_status); } && { |
14481 | test -z "$ac_c_werror_flag" || | |
14482 | test ! -s conftest.err | |
14483 | } && test -s conftest.$ac_objext; then | |
b0cacab0 TT |
14484 | ac_header_compiler=yes |
14485 | else | |
14486 | echo "$as_me: failed program was:" >&5 | |
14487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14488 | ||
e1052144 | 14489 | ac_header_compiler=no |
b0cacab0 | 14490 | fi |
e1052144 TT |
14491 | |
14492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14493 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14494 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b0cacab0 TT |
14495 | |
14496 | # Is the header present? | |
e1052144 TT |
14497 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14498 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b0cacab0 TT |
14499 | cat >conftest.$ac_ext <<_ACEOF |
14500 | /* confdefs.h. */ | |
14501 | _ACEOF | |
14502 | cat confdefs.h >>conftest.$ac_ext | |
14503 | cat >>conftest.$ac_ext <<_ACEOF | |
14504 | /* end confdefs.h. */ | |
14505 | #include <$ac_header> | |
14506 | _ACEOF | |
e1052144 TT |
14507 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14508 | case "(($ac_try" in | |
14509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14510 | *) ac_try_echo=$ac_try;; | |
14511 | esac | |
14512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b0cacab0 TT |
14514 | ac_status=$? |
14515 | grep -v '^ *+' conftest.er1 >conftest.err | |
14516 | rm -f conftest.er1 | |
14517 | cat conftest.err >&5 | |
14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14519 | (exit $ac_status); } >/dev/null && { |
14520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14521 | test ! -s conftest.err | |
14522 | }; then | |
b0cacab0 TT |
14523 | ac_header_preproc=yes |
14524 | else | |
14525 | echo "$as_me: failed program was:" >&5 | |
14526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14527 | ||
14528 | ac_header_preproc=no | |
0c193f82 | 14529 | fi |
e1052144 | 14530 | |
b0cacab0 | 14531 | rm -f conftest.err conftest.$ac_ext |
e1052144 TT |
14532 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14533 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b0cacab0 TT |
14534 | |
14535 | # So? What about this header? | |
14536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14537 | yes:no: ) | |
14538 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14539 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14541 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14542 | ac_header_preproc=yes | |
14543 | ;; | |
14544 | no:yes:* ) | |
14545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14549 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14550 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14551 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14552 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14555 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14556 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e1052144 | 14557 | |
b0cacab0 TT |
14558 | ;; |
14559 | esac | |
e1052144 TT |
14560 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
14562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 | 14563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0c193f82 | 14564 | else |
b0cacab0 TT |
14565 | eval "$as_ac_Header=\$ac_header_preproc" |
14566 | fi | |
e1052144 TT |
14567 | ac_res=`eval echo '${'$as_ac_Header'}'` |
14568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14569 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 | 14570 | |
0c193f82 | 14571 | fi |
b0cacab0 TT |
14572 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14573 | cat >>confdefs.h <<_ACEOF | |
14574 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14575 | _ACEOF | |
14576 | ||
14577 | fi | |
14578 | ||
0c193f82 TT |
14579 | done |
14580 | ||
e1052144 TT |
14581 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
14582 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } | |
b0cacab0 TT |
14583 | if test "${ac_cv_type_intptr_t+set}" = set; then |
14584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14585 | else | |
14586 | cat >conftest.$ac_ext <<_ACEOF | |
14587 | /* confdefs.h. */ | |
14588 | _ACEOF | |
14589 | cat confdefs.h >>conftest.$ac_ext | |
14590 | cat >>conftest.$ac_ext <<_ACEOF | |
14591 | /* end confdefs.h. */ | |
14592 | $ac_includes_default | |
e1052144 | 14593 | typedef intptr_t ac__type_new_; |
b0cacab0 TT |
14594 | int |
14595 | main () | |
14596 | { | |
e1052144 | 14597 | if ((ac__type_new_ *) 0) |
b0cacab0 | 14598 | return 0; |
e1052144 | 14599 | if (sizeof (ac__type_new_)) |
b0cacab0 TT |
14600 | return 0; |
14601 | ; | |
14602 | return 0; | |
14603 | } | |
14604 | _ACEOF | |
14605 | rm -f conftest.$ac_objext | |
e1052144 TT |
14606 | if { (ac_try="$ac_compile" |
14607 | case "(($ac_try" in | |
14608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14609 | *) ac_try_echo=$ac_try;; | |
14610 | esac | |
14611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14612 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14613 | ac_status=$? |
14614 | grep -v '^ *+' conftest.er1 >conftest.err | |
14615 | rm -f conftest.er1 | |
14616 | cat conftest.err >&5 | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14618 | (exit $ac_status); } && { |
14619 | test -z "$ac_c_werror_flag" || | |
14620 | test ! -s conftest.err | |
14621 | } && test -s conftest.$ac_objext; then | |
0c193f82 TT |
14622 | ac_cv_type_intptr_t=yes |
14623 | else | |
b0cacab0 TT |
14624 | echo "$as_me: failed program was:" >&5 |
14625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0c193f82 | 14626 | |
e1052144 | 14627 | ac_cv_type_intptr_t=no |
0c193f82 | 14628 | fi |
e1052144 TT |
14629 | |
14630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b0cacab0 | 14631 | fi |
e1052144 TT |
14632 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
14633 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } | |
b0cacab0 | 14634 | if test $ac_cv_type_intptr_t = yes; then |
b0cacab0 TT |
14635 | |
14636 | cat >>confdefs.h <<_ACEOF | |
d2ee56d8 | 14637 | #define HAVE_INTPTR_T 1 |
b0cacab0 | 14638 | _ACEOF |
0c193f82 | 14639 | |
d2ee56d8 | 14640 | |
0c193f82 TT |
14641 | fi |
14642 | ||
e1052144 TT |
14643 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
14644 | echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } | |
b0cacab0 TT |
14645 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
14646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 14647 | else |
b0cacab0 TT |
14648 | cat >conftest.$ac_ext <<_ACEOF |
14649 | /* confdefs.h. */ | |
14650 | _ACEOF | |
14651 | cat confdefs.h >>conftest.$ac_ext | |
14652 | cat >>conftest.$ac_ext <<_ACEOF | |
14653 | /* end confdefs.h. */ | |
50e1e10f | 14654 | #include <sys/stat.h> |
b0cacab0 TT |
14655 | int |
14656 | main () | |
14657 | { | |
50e1e10f | 14658 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
14659 | ; |
14660 | return 0; | |
14661 | } | |
14662 | _ACEOF | |
14663 | rm -f conftest.$ac_objext | |
e1052144 TT |
14664 | if { (ac_try="$ac_compile" |
14665 | case "(($ac_try" in | |
14666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14667 | *) ac_try_echo=$ac_try;; | |
14668 | esac | |
14669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14670 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14671 | ac_status=$? |
14672 | grep -v '^ *+' conftest.er1 >conftest.err | |
14673 | rm -f conftest.er1 | |
14674 | cat conftest.err >&5 | |
14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14676 | (exit $ac_status); } && { |
14677 | test -z "$ac_c_werror_flag" || | |
14678 | test ! -s conftest.err | |
14679 | } && test -s conftest.$ac_objext; then | |
50e1e10f TT |
14680 | e2fsprogs_cv_struct_st_flags=yes |
14681 | else | |
b0cacab0 TT |
14682 | echo "$as_me: failed program was:" >&5 |
14683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14684 | ||
e1052144 | 14685 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 14686 | fi |
e1052144 TT |
14687 | |
14688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
50e1e10f TT |
14689 | fi |
14690 | ||
e1052144 TT |
14691 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
14692 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } | |
50e1e10f | 14693 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
e1052144 TT |
14694 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
14695 | echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } | |
b0cacab0 TT |
14696 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14698 | else | |
14699 | cat >conftest.$ac_ext <<_ACEOF | |
14700 | /* confdefs.h. */ | |
14701 | _ACEOF | |
14702 | cat confdefs.h >>conftest.$ac_ext | |
14703 | cat >>conftest.$ac_ext <<_ACEOF | |
14704 | /* end confdefs.h. */ | |
c03bc4e8 | 14705 | #include <sys/stat.h> |
b0cacab0 TT |
14706 | int |
14707 | main () | |
14708 | { | |
c03bc4e8 | 14709 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
14710 | ; |
14711 | return 0; | |
14712 | } | |
14713 | _ACEOF | |
14714 | rm -f conftest.$ac_objext | |
e1052144 TT |
14715 | if { (ac_try="$ac_compile" |
14716 | case "(($ac_try" in | |
14717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14718 | *) ac_try_echo=$ac_try;; | |
14719 | esac | |
14720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14721 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14722 | ac_status=$? |
14723 | grep -v '^ *+' conftest.er1 >conftest.err | |
14724 | rm -f conftest.er1 | |
14725 | cat conftest.err >&5 | |
14726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14727 | (exit $ac_status); } && { |
14728 | test -z "$ac_c_werror_flag" || | |
14729 | test ! -s conftest.err | |
14730 | } && test -s conftest.$ac_objext; then | |
c03bc4e8 TT |
14731 | e2fsprogs_cv_struct_st_flags_immut=yes |
14732 | else | |
b0cacab0 TT |
14733 | echo "$as_me: failed program was:" >&5 |
14734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14735 | ||
e1052144 | 14736 | e2fsprogs_cv_struct_st_flags_immut=no |
c03bc4e8 | 14737 | fi |
e1052144 TT |
14738 | |
14739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c03bc4e8 TT |
14740 | fi |
14741 | ||
e1052144 TT |
14742 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
14743 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
c03bc4e8 | 14744 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
b0cacab0 | 14745 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 14746 | #define HAVE_STAT_FLAGS 1 |
b0cacab0 | 14747 | _ACEOF |
50e1e10f | 14748 | |
c03bc4e8 | 14749 | fi |
84ea6e70 | 14750 | fi |
e1052144 TT |
14751 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
14752 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
6c65d251 | 14753 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
b0cacab0 TT |
14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14755 | else | |
14756 | cat >conftest.$ac_ext <<_ACEOF | |
14757 | /* confdefs.h. */ | |
14758 | _ACEOF | |
14759 | cat confdefs.h >>conftest.$ac_ext | |
14760 | cat >>conftest.$ac_ext <<_ACEOF | |
14761 | /* end confdefs.h. */ | |
84ea6e70 | 14762 | #include <sys/types.h> |
6c65d251 | 14763 | #include <sys/socket.h> |
84ea6e70 | 14764 | |
b0cacab0 TT |
14765 | int |
14766 | main () | |
14767 | { | |
6c65d251 TT |
14768 | static struct sockaddr ac_aggr; |
14769 | if (ac_aggr.sa_len) | |
14770 | return 0; | |
b0cacab0 TT |
14771 | ; |
14772 | return 0; | |
14773 | } | |
14774 | _ACEOF | |
14775 | rm -f conftest.$ac_objext | |
e1052144 TT |
14776 | if { (ac_try="$ac_compile" |
14777 | case "(($ac_try" in | |
14778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14779 | *) ac_try_echo=$ac_try;; | |
14780 | esac | |
14781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14782 | (eval "$ac_compile") 2>conftest.er1 | |
b0cacab0 TT |
14783 | ac_status=$? |
14784 | grep -v '^ *+' conftest.er1 >conftest.err | |
14785 | rm -f conftest.er1 | |
14786 | cat conftest.err >&5 | |
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14788 | (exit $ac_status); } && { |
14789 | test -z "$ac_c_werror_flag" || | |
14790 | test ! -s conftest.err | |
14791 | } && test -s conftest.$ac_objext; then | |
6c65d251 | 14792 | ac_cv_member_struct_sockaddr_sa_len=yes |
84ea6e70 | 14793 | else |
b0cacab0 TT |
14794 | echo "$as_me: failed program was:" >&5 |
14795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14796 | ||
e1052144 | 14797 | cat >conftest.$ac_ext <<_ACEOF |
6c65d251 TT |
14798 | /* confdefs.h. */ |
14799 | _ACEOF | |
14800 | cat confdefs.h >>conftest.$ac_ext | |
14801 | cat >>conftest.$ac_ext <<_ACEOF | |
14802 | /* end confdefs.h. */ | |
14803 | #include <sys/types.h> | |
14804 | #include <sys/socket.h> | |
14805 | ||
14806 | int | |
14807 | main () | |
14808 | { | |
14809 | static struct sockaddr ac_aggr; | |
14810 | if (sizeof ac_aggr.sa_len) | |
14811 | return 0; | |
14812 | ; | |
14813 | return 0; | |
14814 | } | |
14815 | _ACEOF | |
14816 | rm -f conftest.$ac_objext | |
e1052144 TT |
14817 | if { (ac_try="$ac_compile" |
14818 | case "(($ac_try" in | |
14819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14820 | *) ac_try_echo=$ac_try;; | |
14821 | esac | |
14822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14823 | (eval "$ac_compile") 2>conftest.er1 | |
6c65d251 TT |
14824 | ac_status=$? |
14825 | grep -v '^ *+' conftest.er1 >conftest.err | |
14826 | rm -f conftest.er1 | |
14827 | cat conftest.err >&5 | |
14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14829 | (exit $ac_status); } && { |
14830 | test -z "$ac_c_werror_flag" || | |
14831 | test ! -s conftest.err | |
14832 | } && test -s conftest.$ac_objext; then | |
6c65d251 TT |
14833 | ac_cv_member_struct_sockaddr_sa_len=yes |
14834 | else | |
14835 | echo "$as_me: failed program was:" >&5 | |
14836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14837 | ||
e1052144 | 14838 | ac_cv_member_struct_sockaddr_sa_len=no |
84ea6e70 | 14839 | fi |
e1052144 TT |
14840 | |
14841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ea6e70 | 14842 | fi |
e1052144 TT |
14843 | |
14844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6c65d251 | 14845 | fi |
e1052144 TT |
14846 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
14847 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
6c65d251 | 14848 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
b0cacab0 TT |
14849 | |
14850 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 14851 | #define HAVE_SA_LEN 1 |
b0cacab0 | 14852 | _ACEOF |
84ea6e70 | 14853 | |
50e1e10f | 14854 | fi |
b0cacab0 TT |
14855 | |
14856 | ||
14857 | ||
14858 | ||
14859 | ||
14860 | ||
14861 | ||
14862 | ||
14863 | ||
14864 | ||
14865 | ||
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | ||
14871 | ||
14872 | ||
14873 | ||
6c65d251 | 14874 | |
762c7c65 TT |
14875 | |
14876 | ||
9b7d811d | 14877 | |
ae2868ac | 14878 | |
106ad96d TT |
14879 | |
14880 | ||
14881 | ||
740837de TT |
14882 | |
14883 | ||
261cd396 TT |
14884 | |
14885 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid | |
50e1e10f | 14886 | do |
b0cacab0 | 14887 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
e1052144 TT |
14888 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14889 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
14890 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b0cacab0 TT |
14891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14892 | else | |
14893 | cat >conftest.$ac_ext <<_ACEOF | |
14894 | /* confdefs.h. */ | |
14895 | _ACEOF | |
14896 | cat confdefs.h >>conftest.$ac_ext | |
14897 | cat >>conftest.$ac_ext <<_ACEOF | |
14898 | /* end confdefs.h. */ | |
14899 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14901 | #define $ac_func innocuous_$ac_func | |
14902 | ||
50e1e10f | 14903 | /* System header to define __stub macros and hopefully few prototypes, |
b0cacab0 TT |
14904 | which can conflict with char $ac_func (); below. |
14905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14906 | <limits.h> exists even on freestanding compilers. */ | |
14907 | ||
14908 | #ifdef __STDC__ | |
14909 | # include <limits.h> | |
14910 | #else | |
14911 | # include <assert.h> | |
14912 | #endif | |
93636bde | 14913 | |
b0cacab0 | 14914 | #undef $ac_func |
50e1e10f | 14915 | |
e1052144 TT |
14916 | /* Override any GCC internal prototype to avoid an error. |
14917 | Use char because int might match the return type of a GCC | |
14918 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
14919 | #ifdef __cplusplus |
14920 | extern "C" | |
b0cacab0 | 14921 | #endif |
b0cacab0 | 14922 | char $ac_func (); |
50e1e10f TT |
14923 | /* The GNU C library defines this for functions which it implements |
14924 | to always fail with ENOSYS. Some functions are actually named | |
14925 | something starting with __ and the normal name is an alias. */ | |
e1052144 | 14926 | #if defined __stub_$ac_func || defined __stub___$ac_func |
50e1e10f | 14927 | choke me |
50e1e10f TT |
14928 | #endif |
14929 | ||
b0cacab0 TT |
14930 | int |
14931 | main () | |
14932 | { | |
e1052144 | 14933 | return $ac_func (); |
b0cacab0 TT |
14934 | ; |
14935 | return 0; | |
14936 | } | |
14937 | _ACEOF | |
14938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
14939 | if { (ac_try="$ac_link" |
14940 | case "(($ac_try" in | |
14941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14942 | *) ac_try_echo=$ac_try;; | |
14943 | esac | |
14944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14945 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
14946 | ac_status=$? |
14947 | grep -v '^ *+' conftest.er1 >conftest.err | |
14948 | rm -f conftest.er1 | |
14949 | cat conftest.err >&5 | |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
14951 | (exit $ac_status); } && { |
14952 | test -z "$ac_c_werror_flag" || | |
14953 | test ! -s conftest.err | |
14954 | } && test -s conftest$ac_exeext && | |
14955 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
14956 | eval "$as_ac_var=yes" |
14957 | else | |
14958 | echo "$as_me: failed program was:" >&5 | |
14959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14960 | ||
e1052144 | 14961 | eval "$as_ac_var=no" |
b0cacab0 | 14962 | fi |
e1052144 | 14963 | |
29a5deed | 14964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
14965 | conftest$ac_exeext conftest.$ac_ext |
14966 | fi | |
e1052144 TT |
14967 | ac_res=`eval echo '${'$as_ac_var'}'` |
14968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14969 | echo "${ECHO_T}$ac_res" >&6; } | |
b0cacab0 TT |
14970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
14971 | cat >>confdefs.h <<_ACEOF | |
14972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14973 | _ACEOF | |
21c84b71 | 14974 | |
50e1e10f TT |
14975 | fi |
14976 | done | |
14977 | ||
fc6d9d51 | 14978 | SOCKET_LIB='' |
e1052144 TT |
14979 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
14980 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
b0cacab0 TT |
14981 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
14982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 14983 | else |
b0cacab0 | 14984 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 14985 | LIBS="-lsocket $LIBS" |
b0cacab0 TT |
14986 | cat >conftest.$ac_ext <<_ACEOF |
14987 | /* confdefs.h. */ | |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
93636bde | 14992 | |
e1052144 TT |
14993 | /* Override any GCC internal prototype to avoid an error. |
14994 | Use char because int might match the return type of a GCC | |
14995 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
14996 | #ifdef __cplusplus |
14997 | extern "C" | |
14998 | #endif | |
b0cacab0 TT |
14999 | char socket (); |
15000 | int | |
15001 | main () | |
15002 | { | |
e1052144 | 15003 | return socket (); |
b0cacab0 TT |
15004 | ; |
15005 | return 0; | |
15006 | } | |
15007 | _ACEOF | |
15008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15009 | if { (ac_try="$ac_link" |
15010 | case "(($ac_try" in | |
15011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15012 | *) ac_try_echo=$ac_try;; | |
15013 | esac | |
15014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15015 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
15016 | ac_status=$? |
15017 | grep -v '^ *+' conftest.er1 >conftest.err | |
15018 | rm -f conftest.er1 | |
15019 | cat conftest.err >&5 | |
15020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
15021 | (exit $ac_status); } && { |
15022 | test -z "$ac_c_werror_flag" || | |
15023 | test ! -s conftest.err | |
15024 | } && test -s conftest$ac_exeext && | |
15025 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
15026 | ac_cv_lib_socket_socket=yes |
15027 | else | |
15028 | echo "$as_me: failed program was:" >&5 | |
15029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15030 | ||
e1052144 | 15031 | ac_cv_lib_socket_socket=no |
b0cacab0 | 15032 | fi |
e1052144 | 15033 | |
29a5deed | 15034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
15035 | conftest$ac_exeext conftest.$ac_ext |
15036 | LIBS=$ac_check_lib_save_LIBS | |
15037 | fi | |
e1052144 TT |
15038 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
15039 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
b0cacab0 | 15040 | if test $ac_cv_lib_socket_socket = yes; then |
fc6d9d51 | 15041 | SOCKET_LIB=-lsocket |
50e1e10f | 15042 | fi |
fc6d9d51 | 15043 | |
93636bde | 15044 | |
bbac86bb | 15045 | DLOPEN_LIB='' |
e1052144 TT |
15046 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
15047 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
b0cacab0 TT |
15048 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
15049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bbac86bb | 15050 | else |
b0cacab0 | 15051 | ac_check_lib_save_LIBS=$LIBS |
bbac86bb | 15052 | LIBS="-ldl $LIBS" |
b0cacab0 TT |
15053 | cat >conftest.$ac_ext <<_ACEOF |
15054 | /* confdefs.h. */ | |
15055 | _ACEOF | |
15056 | cat confdefs.h >>conftest.$ac_ext | |
15057 | cat >>conftest.$ac_ext <<_ACEOF | |
15058 | /* end confdefs.h. */ | |
15059 | ||
e1052144 TT |
15060 | /* Override any GCC internal prototype to avoid an error. |
15061 | Use char because int might match the return type of a GCC | |
15062 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
15063 | #ifdef __cplusplus |
15064 | extern "C" | |
15065 | #endif | |
b0cacab0 TT |
15066 | char dlopen (); |
15067 | int | |
15068 | main () | |
15069 | { | |
e1052144 | 15070 | return dlopen (); |
b0cacab0 TT |
15071 | ; |
15072 | return 0; | |
15073 | } | |
15074 | _ACEOF | |
15075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15076 | if { (ac_try="$ac_link" |
15077 | case "(($ac_try" in | |
15078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15079 | *) ac_try_echo=$ac_try;; | |
15080 | esac | |
15081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15082 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
15083 | ac_status=$? |
15084 | grep -v '^ *+' conftest.er1 >conftest.err | |
15085 | rm -f conftest.er1 | |
15086 | cat conftest.err >&5 | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
15088 | (exit $ac_status); } && { |
15089 | test -z "$ac_c_werror_flag" || | |
15090 | test ! -s conftest.err | |
15091 | } && test -s conftest$ac_exeext && | |
15092 | $as_test_x conftest$ac_exeext; then | |
b0cacab0 TT |
15093 | ac_cv_lib_dl_dlopen=yes |
15094 | else | |
15095 | echo "$as_me: failed program was:" >&5 | |
15096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15097 | ||
e1052144 | 15098 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 15099 | fi |
e1052144 | 15100 | |
29a5deed | 15101 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 TT |
15102 | conftest$ac_exeext conftest.$ac_ext |
15103 | LIBS=$ac_check_lib_save_LIBS | |
15104 | fi | |
e1052144 TT |
15105 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
15106 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
b0cacab0 | 15107 | if test $ac_cv_lib_dl_dlopen = yes; then |
bbac86bb | 15108 | DLOPEN_LIB=-ldl |
b0cacab0 | 15109 | cat >>confdefs.h <<\_ACEOF |
bbac86bb | 15110 | #define HAVE_DLOPEN 1 |
b0cacab0 | 15111 | _ACEOF |
bbac86bb | 15112 | |
bbac86bb TT |
15113 | fi |
15114 | ||
93636bde | 15115 | |
e1052144 TT |
15116 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
15117 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } | |
b0cacab0 TT |
15118 | if test "${ac_cv_have_optreset+set}" = set; then |
15119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50e1e10f | 15120 | else |
b0cacab0 TT |
15121 | cat >conftest.$ac_ext <<_ACEOF |
15122 | /* confdefs.h. */ | |
15123 | _ACEOF | |
15124 | cat confdefs.h >>conftest.$ac_ext | |
15125 | cat >>conftest.$ac_ext <<_ACEOF | |
15126 | /* end confdefs.h. */ | |
fc6d9d51 | 15127 | #include <unistd.h> |
b0cacab0 TT |
15128 | |
15129 | _ACEOF | |
fc6d9d51 | 15130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b0cacab0 | 15131 | $EGREP "optreset" >/dev/null 2>&1; then |
fc6d9d51 | 15132 | ac_cv_have_optreset=yes |
50e1e10f | 15133 | else |
fc6d9d51 | 15134 | ac_cv_have_optreset=no |
50e1e10f TT |
15135 | fi |
15136 | rm -f conftest* | |
15137 | ||
15138 | fi | |
e1052144 TT |
15139 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
15140 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } | |
fc6d9d51 | 15141 | if test $ac_cv_have_optreset = yes; then |
b0cacab0 | 15142 | cat >>confdefs.h <<\_ACEOF |
fc6d9d51 | 15143 | #define HAVE_OPTRESET 1 |
b0cacab0 | 15144 | _ACEOF |
50e1e10f TT |
15145 | |
15146 | fi | |
e1052144 TT |
15147 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
15148 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } | |
27f991b0 | 15149 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
15150 | UNI_DIFF_OPTS=-u |
15151 | else | |
15152 | UNI_DIFF_OPTS=-c | |
15153 | fi | |
e1052144 TT |
15154 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
15155 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } | |
e54635de | 15156 | |
8f3f29d3 TT |
15157 | case "$host_os" in |
15158 | linux*) | |
b0cacab0 | 15159 | cat >>confdefs.h <<\_ACEOF |
50e1e10f | 15160 | #define HAVE_EXT2_IOCTLS 1 |
b0cacab0 | 15161 | _ACEOF |
50e1e10f | 15162 | |
8f3f29d3 TT |
15163 | ;; |
15164 | esac | |
e6f2bda3 | 15165 | LINUX_CMT="#" |
fff45483 TT |
15166 | CYGWIN_CMT="#" |
15167 | UNIX_CMT= | |
e6f2bda3 TT |
15168 | case "$host_os" in |
15169 | linux*) | |
15170 | LINUX_CMT= | |
fff45483 TT |
15171 | ;; |
15172 | cygwin) | |
15173 | CYGWIN_CMT= | |
15174 | UNIX_CMT="#" | |
e6f2bda3 TT |
15175 | ;; |
15176 | esac | |
15177 | ||
93636bde TT |
15178 | |
15179 | ||
50e1e10f | 15180 | case "$host_os" in |
93636bde | 15181 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
15182 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
15183 | root_prefix=""; | |
15184 | echo "On $host_os systems, root_prefix defaults to ''" | |
fc6d9d51 TT |
15185 | fi |
15186 | ;; | |
15187 | esac | |
fc6d9d51 | 15188 | case "$host_os" in |
93636bde | 15189 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 15190 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
15191 | prefix="/usr"; |
15192 | echo "On $host_os systems, prefix defaults to /usr" | |
bff61a7a TT |
15193 | if test "$mandir" = '${prefix}/man' ; then |
15194 | echo "...and mandir defaults to /usr/share/man" | |
15195 | mandir=/usr/share/man | |
15196 | fi | |
50e1e10f TT |
15197 | fi |
15198 | ;; | |
15199 | esac | |
a4b2d3ce | 15200 | if test "$root_prefix" = NONE ; then |
ffe1991f | 15201 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
15202 | root_prefix="$ac_default_prefix" |
15203 | else | |
15204 | root_prefix="$prefix" | |
15205 | fi | |
b5ffeade TT |
15206 | root_bindir=$bindir |
15207 | root_sbindir=$sbindir | |
15208 | root_libdir=$libdir | |
15209 | root_sysconfdir=$sysconfdir | |
15210 | else | |
15211 | root_bindir='${root_prefix}/bin' | |
15212 | root_sbindir='${root_prefix}/sbin' | |
15213 | root_libdir='${root_prefix}/lib' | |
15214 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 15215 | fi |
c4ef11c5 TT |
15216 | if test "$bindir" != '${exec_prefix}/bin'; then |
15217 | root_bindir=$bindir | |
15218 | echo "Setting root_bindir to $root_bindir" | |
15219 | fi | |
15220 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
15221 | root_sbindir=$sbindir | |
15222 | echo "Setting root_sbindir to $root_sbindir" | |
15223 | fi | |
15224 | if test "$libdir" != '${exec_prefix}/lib'; then | |
15225 | root_libdir=$libdir | |
15226 | echo "Setting root_libdir to $root_libdir" | |
15227 | fi | |
15228 | if test "$sysconfdir" != '${prefix}/etc'; then | |
15229 | root_sysconfdir=$sysconfdir | |
15230 | echo "Setting root_sysconfdir to $root_sysconfdir" | |
15231 | fi | |
a4b2d3ce | 15232 | |
93636bde TT |
15233 | |
15234 | ||
15235 | ||
15236 | ||
e1052144 TT |
15237 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
15238 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } | |
b0cacab0 TT |
15239 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
15240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ae851482 TT |
15241 | else |
15242 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | |
b0cacab0 TT |
15243 | cat >conftest.$ac_ext <<_ACEOF |
15244 | /* confdefs.h. */ | |
15245 | _ACEOF | |
15246 | cat confdefs.h >>conftest.$ac_ext | |
15247 | cat >>conftest.$ac_ext <<_ACEOF | |
15248 | /* end confdefs.h. */ | |
ae851482 | 15249 | #include <stdio.h> |
b0cacab0 TT |
15250 | int |
15251 | main () | |
15252 | { | |
ae851482 | 15253 | fflush(stdout); |
b0cacab0 TT |
15254 | ; |
15255 | return 0; | |
15256 | } | |
15257 | _ACEOF | |
15258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e1052144 TT |
15259 | if { (ac_try="$ac_link" |
15260 | case "(($ac_try" in | |
15261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15262 | *) ac_try_echo=$ac_try;; | |
15263 | esac | |
15264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15265 | (eval "$ac_link") 2>conftest.er1 | |
b0cacab0 TT |
15266 | ac_status=$? |
15267 | grep -v '^ *+' conftest.er1 >conftest.err | |
15268 | rm -f conftest.er1 | |
15269 | cat conftest.err >&5 | |
15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29a5deed TT |
15271 | (exit $ac_status); } && { |
15272 | test -z "$ac_c_werror_flag" || | |
15273 | test ! -s conftest.err | |
15274 | } && test -s conftest$ac_exeext && | |
15275 | $as_test_x conftest$ac_exeext; then | |
ae851482 TT |
15276 | ac_cv_e2fsprogs_use_static=yes |
15277 | else | |
b0cacab0 TT |
15278 | echo "$as_me: failed program was:" >&5 |
15279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15280 | ||
e1052144 | 15281 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 15282 | fi |
e1052144 | 15283 | |
29a5deed | 15284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b0cacab0 | 15285 | conftest$ac_exeext conftest.$ac_ext |
ae851482 TT |
15286 | LDFLAGS=$SAVE_LDFLAGS |
15287 | fi | |
50e1e10f | 15288 | |
defde784 TT |
15289 | case "$host_os" in |
15290 | solaris2.*) | |
b0cacab0 | 15291 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
15292 | ;; |
15293 | esac | |
e1052144 TT |
15294 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
15295 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } | |
74becf3c | 15296 | LDFLAG_STATIC= |
ae851482 | 15297 | if test $ac_cv_e2fsprogs_use_static = yes; then |
50e1e10f | 15298 | LDFLAG_STATIC=-static |
ae851482 | 15299 | fi |
50e1e10f | 15300 | |
07a0db15 TT |
15301 | case "$host_os" in |
15302 | darwin*) | |
15303 | echo "Using Apple Darwin / GNU libintl workaround" | |
b0cacab0 | 15304 | cat >>confdefs.h <<\_ACEOF |
07a0db15 | 15305 | #define _INTL_REDIRECT_MACROS 1 |
b0cacab0 | 15306 | _ACEOF |
07a0db15 TT |
15307 | |
15308 | ;; | |
15309 | esac | |
50e1e10f TT |
15310 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
15311 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
15312 | ||
93636bde | 15313 | |
50e1e10f TT |
15314 | if test "$cross_compiling" = yes ; then |
15315 | DO_TEST_SUITE= | |
15316 | else | |
15317 | DO_TEST_SUITE=check | |
15318 | fi | |
15319 | ||
c6f35b8a TT |
15320 | INTL_FLAGS= |
15321 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then | |
15322 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' | |
15323 | fi | |
15324 | ||
dd947da2 TT |
15325 | if test $cross_compiling = no; then |
15326 | BUILD_CFLAGS="$CFLAGS" | |
15327 | BUILD_LDFLAGS="$LDFLAGS" | |
15328 | else | |
15329 | BUILD_CFLAGS= | |
15330 | BUILD_LDFLAGS= | |
15331 | fi | |
15332 | ||
15333 | ||
50e1e10f TT |
15334 | test -d lib || mkdir lib |
15335 | test -d include || mkdir include | |
15336 | test -d include/linux || mkdir include/linux | |
defde784 | 15337 | test -d include/asm || mkdir include/asm |
bff0cc95 TT |
15338 | for i in MCONFIG Makefile e2fsprogs.spec \ |
15339 | util/Makefile util/subst.conf util/gen-tarball \ | |
4ea7ea00 TT |
15340 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
15341 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
94ba8c75 TT |
15342 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
15343 | lib/blkid/Makefile lib/blkid/blkid_types.h \ | |
e6441865 TT |
15344 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
15345 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ | |
921f4ad5 | 15346 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 TT |
15347 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
15348 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do | |
15349 | if test -d `dirname ${srcdir}/$i` ; then | |
15350 | outlist="$outlist $i" | |
15351 | fi | |
15352 | done | |
e1052144 TT |
15353 | ac_config_files="$ac_config_files $outlist" |
15354 | ||
b0cacab0 | 15355 | cat >confcache <<\_ACEOF |
50e1e10f TT |
15356 | # This file is a shell script that caches the results of configure |
15357 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
15358 | # scripts and configure runs, see configure's option --config-cache. |
15359 | # It is not useful on other systems. If it contains results you don't | |
15360 | # want to keep, you may remove or edit it. | |
50e1e10f | 15361 | # |
b0cacab0 TT |
15362 | # config.status only pays attention to the cache file if you give it |
15363 | # the --recheck option to rerun configure. | |
50e1e10f | 15364 | # |
b0cacab0 TT |
15365 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15366 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15367 | # following values. | |
15368 | ||
15369 | _ACEOF | |
15370 | ||
21c84b71 TT |
15371 | # The following way of writing the cache mishandles newlines in values, |
15372 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 15373 | # So, we kill variables containing newlines. |
50e1e10f TT |
15374 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15375 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
15376 | ( |
15377 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15378 | eval ac_val=\$$ac_var | |
15379 | case $ac_val in #( | |
15380 | *${as_nl}*) | |
15381 | case $ac_var in #( | |
15382 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
15383 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
15384 | esac | |
15385 | case $ac_var in #( | |
15386 | _ | IFS | as_nl) ;; #( | |
15387 | *) $as_unset $ac_var ;; | |
15388 | esac ;; | |
15389 | esac | |
15390 | done | |
15391 | ||
b0cacab0 | 15392 | (set) 2>&1 | |
e1052144 TT |
15393 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15394 | *${as_nl}ac_space=\ *) | |
b0cacab0 TT |
15395 | # `set' does not quote correctly, so add quotes (double-quote |
15396 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15397 | sed -n \ | |
15398 | "s/'/'\\\\''/g; | |
15399 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 15400 | ;; #( |
b0cacab0 TT |
15401 | *) |
15402 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 15403 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 15404 | ;; |
e1052144 TT |
15405 | esac | |
15406 | sort | |
15407 | ) | | |
b0cacab0 | 15408 | sed ' |
e1052144 | 15409 | /^ac_cv_env_/b end |
b0cacab0 | 15410 | t clear |
e1052144 | 15411 | :clear |
b0cacab0 TT |
15412 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15413 | t end | |
e1052144 TT |
15414 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15415 | :end' >>confcache | |
15416 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15417 | if test -w "$cache_file"; then | |
15418 | test "x$cache_file" != "x/dev/null" && | |
15419 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
15420 | echo "$as_me: updating cache $cache_file" >&6;} | |
b0cacab0 | 15421 | cat confcache >$cache_file |
50e1e10f | 15422 | else |
e1052144 TT |
15423 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15424 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
50e1e10f TT |
15425 | fi |
15426 | fi | |
15427 | rm -f confcache | |
15428 | ||
50e1e10f TT |
15429 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15430 | # Let make expand exec_prefix. | |
15431 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15432 | ||
50e1e10f TT |
15433 | # Transform confdefs.h into DEFS. |
15434 | # Protect against shell expansion while executing Makefile rules. | |
15435 | # Protect against Makefile macro expansion. | |
b0cacab0 TT |
15436 | # |
15437 | # If the first sed substitution is executed (which looks for macros that | |
e1052144 | 15438 | # take arguments), then branch to the quote section. Otherwise, |
b0cacab0 | 15439 | # look for a macro that doesn't take arguments. |
e1052144 | 15440 | ac_script=' |
b0cacab0 | 15441 | t clear |
e1052144 TT |
15442 | :clear |
15443 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b0cacab0 | 15444 | t quote |
e1052144 | 15445 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b0cacab0 | 15446 | t quote |
e1052144 TT |
15447 | b any |
15448 | :quote | |
15449 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15450 | s/\[/\\&/g | |
15451 | s/\]/\\&/g | |
15452 | s/\$/$$/g | |
15453 | H | |
15454 | :any | |
15455 | ${ | |
15456 | g | |
15457 | s/^\n// | |
15458 | s/\n/ /g | |
15459 | p | |
15460 | } | |
15461 | ' | |
15462 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b0cacab0 TT |
15463 | |
15464 | ||
15465 | ac_libobjs= | |
15466 | ac_ltlibobjs= | |
15467 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15468 | # 1. Remove the extension, and $U if already installed. | |
e1052144 TT |
15469 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15470 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
15471 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15472 | # will be set to the directory where LIBOBJS objects are built. | |
15473 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15474 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
15475 | done |
15476 | LIBOBJS=$ac_libobjs | |
50e1e10f | 15477 | |
b0cacab0 TT |
15478 | LTLIBOBJS=$ac_ltlibobjs |
15479 | ||
15480 | ||
15481 | ||
15482 | : ${CONFIG_STATUS=./config.status} | |
15483 | ac_clean_files_save=$ac_clean_files | |
15484 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15485 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
15486 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15487 | cat >$CONFIG_STATUS <<_ACEOF | |
15488 | #! $SHELL | |
15489 | # Generated by $as_me. | |
93636bde | 15490 | # Run this file to recreate the current configuration. |
93636bde | 15491 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 15492 | # configure, is in config.log if it exists. |
07a0db15 | 15493 | |
b0cacab0 TT |
15494 | debug=false |
15495 | ac_cs_recheck=false | |
15496 | ac_cs_silent=false | |
15497 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15498 | _ACEOF | |
15499 | ||
15500 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15501 | ## --------------------- ## | |
15502 | ## M4sh Initialization. ## | |
15503 | ## --------------------- ## | |
15504 | ||
29a5deed TT |
15505 | # Be more Bourne compatible |
15506 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0cacab0 TT |
15507 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15508 | emulate sh | |
15509 | NULLCMD=: | |
15510 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
15511 | # is contrary to our usage. Disable this feature. | |
15512 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
15513 | setopt NO_GLOB_SUBST |
15514 | else | |
29a5deed TT |
15515 | case `(set -o) 2>/dev/null` in |
15516 | *posix*) set -o posix ;; | |
15517 | esac | |
15518 | ||
b0cacab0 | 15519 | fi |
29a5deed TT |
15520 | |
15521 | ||
b0cacab0 | 15522 | |
e1052144 TT |
15523 | |
15524 | # PATH needs CR | |
15525 | # Avoid depending upon Character Ranges. | |
15526 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15527 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15528 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15529 | as_cr_digits='0123456789' | |
15530 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15531 | ||
15532 | # The user is always right. | |
15533 | if test "${PATH_SEPARATOR+set}" != set; then | |
15534 | echo "#! /bin/sh" >conf$$.sh | |
15535 | echo "exit 0" >>conf$$.sh | |
15536 | chmod +x conf$$.sh | |
15537 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15538 | PATH_SEPARATOR=';' | |
15539 | else | |
15540 | PATH_SEPARATOR=: | |
15541 | fi | |
15542 | rm -f conf$$.sh | |
15543 | fi | |
15544 | ||
b0cacab0 TT |
15545 | # Support unset when possible. |
15546 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
15547 | as_unset=unset | |
15548 | else | |
15549 | as_unset=false | |
15550 | fi | |
15551 | ||
15552 | ||
e1052144 TT |
15553 | # IFS |
15554 | # We need space, tab and new line, in precisely that order. Quoting is | |
15555 | # there to prevent editors from complaining about space-tab. | |
15556 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15557 | # splitting by setting IFS to empty value.) | |
15558 | as_nl=' | |
15559 | ' | |
15560 | IFS=" "" $as_nl" | |
15561 | ||
15562 | # Find who we are. Look in the path if we contain no directory separator. | |
15563 | case $0 in | |
15564 | *[\\/]* ) as_myself=$0 ;; | |
15565 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15566 | for as_dir in $PATH | |
15567 | do | |
15568 | IFS=$as_save_IFS | |
15569 | test -z "$as_dir" && as_dir=. | |
15570 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15571 | done | |
15572 | IFS=$as_save_IFS | |
15573 | ||
15574 | ;; | |
15575 | esac | |
15576 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15577 | # in which case we are not to be found in the path. | |
15578 | if test "x$as_myself" = x; then | |
15579 | as_myself=$0 | |
15580 | fi | |
15581 | if test ! -f "$as_myself"; then | |
15582 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15583 | { (exit 1); exit 1; } | |
15584 | fi | |
15585 | ||
b0cacab0 | 15586 | # Work around bugs in pre-3.0 UWIN ksh. |
e1052144 TT |
15587 | for as_var in ENV MAIL MAILPATH |
15588 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15589 | done | |
b0cacab0 TT |
15590 | PS1='$ ' |
15591 | PS2='> ' | |
15592 | PS4='+ ' | |
15593 | ||
15594 | # NLS nuisances. | |
15595 | for as_var in \ | |
15596 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
15597 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
15598 | LC_TELEPHONE LC_TIME | |
15599 | do | |
15600 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
15601 | eval $as_var=C; export $as_var | |
15602 | else | |
e1052144 | 15603 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b0cacab0 TT |
15604 | fi |
15605 | done | |
15606 | ||
15607 | # Required to use basename. | |
e1052144 TT |
15608 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15609 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
15610 | as_expr=expr |
15611 | else | |
15612 | as_expr=false | |
15613 | fi | |
15614 | ||
e1052144 | 15615 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
15616 | as_basename=basename |
15617 | else | |
15618 | as_basename=false | |
15619 | fi | |
15620 | ||
15621 | ||
15622 | # Name of the executable. | |
e1052144 | 15623 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
15624 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15625 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 15626 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b0cacab0 | 15627 | echo X/"$0" | |
e1052144 TT |
15628 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15629 | s//\1/ | |
15630 | q | |
15631 | } | |
15632 | /^X\/\(\/\/\)$/{ | |
15633 | s//\1/ | |
15634 | q | |
15635 | } | |
15636 | /^X\/\(\/\).*/{ | |
15637 | s//\1/ | |
15638 | q | |
15639 | } | |
15640 | s/.*/./; q'` | |
b0cacab0 | 15641 | |
e1052144 TT |
15642 | # CDPATH. |
15643 | $as_unset CDPATH | |
b0cacab0 | 15644 | |
b0cacab0 TT |
15645 | |
15646 | ||
15647 | as_lineno_1=$LINENO | |
15648 | as_lineno_2=$LINENO | |
b0cacab0 | 15649 | test "x$as_lineno_1" != "x$as_lineno_2" && |
e1052144 | 15650 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b0cacab0 TT |
15651 | |
15652 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
15653 | # uniformly replaced by the line number. The first 'sed' inserts a | |
e1052144 TT |
15654 | # line-number line after each line using $LINENO; the second 'sed' |
15655 | # does the real work. The second script uses 'N' to pair each | |
15656 | # line-number line with the line containing $LINENO, and appends | |
15657 | # trailing '-' during substitution so that $LINENO is not a special | |
15658 | # case at line end. | |
b0cacab0 | 15659 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
e1052144 TT |
15660 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15661 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15662 | sed -n ' | |
15663 | p | |
15664 | /[$]LINENO/= | |
15665 | ' <$as_myself | | |
b0cacab0 | 15666 | sed ' |
e1052144 TT |
15667 | s/[$]LINENO.*/&-/ |
15668 | t lineno | |
15669 | b | |
15670 | :lineno | |
b0cacab0 | 15671 | N |
e1052144 TT |
15672 | :loop |
15673 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b0cacab0 | 15674 | t loop |
e1052144 | 15675 | s/-\n.*// |
b0cacab0 | 15676 | ' >$as_me.lineno && |
e1052144 TT |
15677 | chmod +x "$as_me.lineno" || |
15678 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b0cacab0 TT |
15679 | { (exit 1); exit 1; }; } |
15680 | ||
15681 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15682 | # (the dirname of $[0] is not the place where we might find the | |
e1052144 TT |
15683 | # original and so on. Autoconf is especially sensitive to this). |
15684 | . "./$as_me.lineno" | |
b0cacab0 TT |
15685 | # Exit status is that of the last command. |
15686 | exit | |
15687 | } | |
15688 | ||
15689 | ||
e1052144 TT |
15690 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15691 | as_dirname=dirname | |
15692 | else | |
15693 | as_dirname=false | |
15694 | fi | |
15695 | ||
15696 | ECHO_C= ECHO_N= ECHO_T= | |
15697 | case `echo -n x` in | |
15698 | -n*) | |
15699 | case `echo 'x\c'` in | |
15700 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15701 | *) ECHO_C='\c';; | |
15702 | esac;; | |
15703 | *) | |
15704 | ECHO_N='-n';; | |
b0cacab0 TT |
15705 | esac |
15706 | ||
e1052144 TT |
15707 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15708 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
15709 | as_expr=expr |
15710 | else | |
15711 | as_expr=false | |
15712 | fi | |
15713 | ||
15714 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
15715 | if test -d conf$$.dir; then |
15716 | rm -f conf$$.dir/conf$$.file | |
15717 | else | |
15718 | rm -f conf$$.dir | |
15719 | mkdir conf$$.dir | |
15720 | fi | |
b0cacab0 TT |
15721 | echo >conf$$.file |
15722 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
e1052144 TT |
15723 | as_ln_s='ln -s' |
15724 | # ... but there are two gotchas: | |
15725 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15726 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15727 | # In both cases, we have to default to `cp -p'. | |
15728 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b0cacab0 | 15729 | as_ln_s='cp -p' |
b0cacab0 TT |
15730 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15731 | as_ln_s=ln | |
15732 | else | |
15733 | as_ln_s='cp -p' | |
15734 | fi | |
e1052144 TT |
15735 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15736 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 TT |
15737 | |
15738 | if mkdir -p . 2>/dev/null; then | |
15739 | as_mkdir_p=: | |
15740 | else | |
15741 | test -d ./-p && rmdir ./-p | |
15742 | as_mkdir_p=false | |
15743 | fi | |
15744 | ||
29a5deed TT |
15745 | if test -x / >/dev/null 2>&1; then |
15746 | as_test_x='test -x' | |
e1052144 | 15747 | else |
29a5deed TT |
15748 | if ls -dL / >/dev/null 2>&1; then |
15749 | as_ls_L_option=L | |
15750 | else | |
15751 | as_ls_L_option= | |
15752 | fi | |
15753 | as_test_x=' | |
15754 | eval sh -c '\'' | |
15755 | if test -d "$1"; then | |
15756 | test -d "$1/."; | |
15757 | else | |
15758 | case $1 in | |
15759 | -*)set "./$1";; | |
15760 | esac; | |
15761 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
15762 | ???[sx]*):;;*)false;;esac;fi | |
15763 | '\'' sh | |
15764 | ' | |
e1052144 | 15765 | fi |
29a5deed | 15766 | as_executable_p=$as_test_x |
b0cacab0 TT |
15767 | |
15768 | # Sed expression to map a string onto a valid CPP name. | |
15769 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15770 | ||
15771 | # Sed expression to map a string onto a valid variable name. | |
15772 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15773 | ||
15774 | ||
b0cacab0 TT |
15775 | exec 6>&1 |
15776 | ||
e1052144 | 15777 | # Save the log message, to keep $[0] and so on meaningful, and to |
b0cacab0 | 15778 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
15779 | # values after options handling. |
15780 | ac_log=" | |
b0cacab0 | 15781 | This file was extended by $as_me, which was |
29a5deed | 15782 | generated by GNU Autoconf 2.61. Invocation command line was |
b0cacab0 TT |
15783 | |
15784 | CONFIG_FILES = $CONFIG_FILES | |
15785 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15786 | CONFIG_LINKS = $CONFIG_LINKS | |
15787 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15788 | $ $0 $@ | |
15789 | ||
e1052144 TT |
15790 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15791 | " | |
15792 | ||
b0cacab0 TT |
15793 | _ACEOF |
15794 | ||
e1052144 | 15795 | cat >>$CONFIG_STATUS <<_ACEOF |
b0cacab0 | 15796 | # Files that config.status was made for. |
e1052144 TT |
15797 | config_files="$ac_config_files" |
15798 | config_commands="$ac_config_commands" | |
b0cacab0 | 15799 | |
e1052144 | 15800 | _ACEOF |
b0cacab0 TT |
15801 | |
15802 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b0cacab0 TT |
15803 | ac_cs_usage="\ |
15804 | \`$as_me' instantiates files from templates according to the | |
15805 | current configuration. | |
15806 | ||
15807 | Usage: $0 [OPTIONS] [FILE]... | |
15808 | ||
15809 | -h, --help print this help, then exit | |
29a5deed | 15810 | -V, --version print version number and configuration settings, then exit |
b0cacab0 TT |
15811 | -q, --quiet do not print progress messages |
15812 | -d, --debug don't remove temporary files | |
15813 | --recheck update $as_me by reconfiguring in the same conditions | |
15814 | --file=FILE[:TEMPLATE] | |
15815 | instantiate the configuration file FILE | |
15816 | ||
15817 | Configuration files: | |
15818 | $config_files | |
15819 | ||
15820 | Configuration commands: | |
15821 | $config_commands | |
15822 | ||
15823 | Report bugs to <bug-autoconf@gnu.org>." | |
b0cacab0 | 15824 | |
e1052144 | 15825 | _ACEOF |
b0cacab0 TT |
15826 | cat >>$CONFIG_STATUS <<_ACEOF |
15827 | ac_cs_version="\\ | |
15828 | config.status | |
29a5deed | 15829 | configured by $0, generated by GNU Autoconf 2.61, |
e1052144 | 15830 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
b0cacab0 | 15831 | |
e1052144 | 15832 | Copyright (C) 2006 Free Software Foundation, Inc. |
b0cacab0 TT |
15833 | This config.status script is free software; the Free Software Foundation |
15834 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
15835 | |
15836 | ac_pwd='$ac_pwd' | |
15837 | srcdir='$srcdir' | |
15838 | INSTALL='$INSTALL' | |
b0cacab0 TT |
15839 | _ACEOF |
15840 | ||
15841 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15842 | # If no file are specified by the user, then we need to provide default | |
15843 | # value. By we need to know if files were specified by the user. | |
15844 | ac_need_defaults=: | |
15845 | while test $# != 0 | |
07a0db15 | 15846 | do |
b0cacab0 TT |
15847 | case $1 in |
15848 | --*=*) | |
e1052144 TT |
15849 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15850 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
15851 | ac_shift=: |
15852 | ;; | |
e1052144 | 15853 | *) |
b0cacab0 TT |
15854 | ac_option=$1 |
15855 | ac_optarg=$2 | |
15856 | ac_shift=shift | |
15857 | ;; | |
b0cacab0 TT |
15858 | esac |
15859 | ||
15860 | case $ac_option in | |
15861 | # Handling of the options. | |
93636bde | 15862 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 15863 | ac_cs_recheck=: ;; |
e1052144 TT |
15864 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15865 | echo "$ac_cs_version"; exit ;; | |
15866 | --debug | --debu | --deb | --de | --d | -d ) | |
b0cacab0 TT |
15867 | debug=: ;; |
15868 | --file | --fil | --fi | --f ) | |
15869 | $ac_shift | |
15870 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
15871 | ac_need_defaults=false;; | |
e1052144 TT |
15872 | --he | --h | --help | --hel | -h ) |
15873 | echo "$ac_cs_usage"; exit ;; | |
b0cacab0 TT |
15874 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15875 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15876 | ac_cs_silent=: ;; | |
15877 | ||
15878 | # This is an error. | |
e1052144 TT |
15879 | -*) { echo "$as_me: error: unrecognized option: $1 |
15880 | Try \`$0 --help' for more information." >&2 | |
b0cacab0 TT |
15881 | { (exit 1); exit 1; }; } ;; |
15882 | ||
e1052144 TT |
15883 | *) ac_config_targets="$ac_config_targets $1" |
15884 | ac_need_defaults=false ;; | |
b0cacab0 | 15885 | |
07a0db15 | 15886 | esac |
b0cacab0 | 15887 | shift |
07a0db15 TT |
15888 | done |
15889 | ||
b0cacab0 TT |
15890 | ac_configure_extra_args= |
15891 | ||
15892 | if $ac_cs_silent; then | |
15893 | exec 6>/dev/null | |
15894 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15895 | fi | |
15896 | ||
15897 | _ACEOF | |
15898 | cat >>$CONFIG_STATUS <<_ACEOF | |
15899 | if \$ac_cs_recheck; then | |
e1052144 TT |
15900 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
15901 | CONFIG_SHELL=$SHELL | |
15902 | export CONFIG_SHELL | |
15903 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
b0cacab0 | 15904 | fi |
07a0db15 | 15905 | |
b0cacab0 | 15906 | _ACEOF |
e1052144 TT |
15907 | cat >>$CONFIG_STATUS <<\_ACEOF |
15908 | exec 5>>config.log | |
15909 | { | |
15910 | echo | |
15911 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15912 | ## Running $as_me. ## | |
15913 | _ASBOX | |
15914 | echo "$ac_log" | |
15915 | } >&5 | |
07a0db15 | 15916 | |
e1052144 | 15917 | _ACEOF |
b0cacab0 TT |
15918 | cat >>$CONFIG_STATUS <<_ACEOF |
15919 | # | |
e1052144 | 15920 | # INIT-COMMANDS |
b0cacab0 | 15921 | # |
b0cacab0 TT |
15922 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15923 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
15924 | # from automake. | |
15925 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15926 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15927 | LINGUAS="${LINGUAS-%UNSET%}" | |
15928 | ||
15929 | ||
15930 | _ACEOF | |
15931 | ||
b0cacab0 | 15932 | cat >>$CONFIG_STATUS <<\_ACEOF |
e1052144 TT |
15933 | |
15934 | # Handling of arguments. | |
b0cacab0 TT |
15935 | for ac_config_target in $ac_config_targets |
15936 | do | |
e1052144 TT |
15937 | case $ac_config_target in |
15938 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15939 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; | |
15940 | ||
b0cacab0 TT |
15941 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
15942 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
15943 | { (exit 1); exit 1; }; };; | |
15944 | esac | |
15945 | done | |
15946 | ||
e1052144 | 15947 | |
b0cacab0 TT |
15948 | # If the user did not use the arguments to specify the items to instantiate, |
15949 | # then the envvar interface is used. Set only those that are not. | |
15950 | # We use the long form for the default assignment because of an extremely | |
15951 | # bizarre bug on SunOS 4.1.3. | |
15952 | if $ac_need_defaults; then | |
15953 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15954 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15955 | fi | |
15956 | ||
15957 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 15958 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 15959 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
15960 | # Hook for its removal unless debugging. |
15961 | # Note that there is a small window in which the directory will not be cleaned: | |
15962 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
15963 | $debug || |
15964 | { | |
e1052144 TT |
15965 | tmp= |
15966 | trap 'exit_status=$? | |
15967 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15968 | ' 0 | |
b0cacab0 TT |
15969 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
15970 | } | |
b0cacab0 TT |
15971 | # Create a (secure) tmp directory for tmp files. |
15972 | ||
15973 | { | |
e1052144 | 15974 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b0cacab0 TT |
15975 | test -n "$tmp" && test -d "$tmp" |
15976 | } || | |
15977 | { | |
e1052144 TT |
15978 | tmp=./conf$$-$RANDOM |
15979 | (umask 077 && mkdir "$tmp") | |
b0cacab0 TT |
15980 | } || |
15981 | { | |
15982 | echo "$me: cannot create a temporary directory in ." >&2 | |
15983 | { (exit 1); exit 1; } | |
15984 | } | |
15985 | ||
b0cacab0 | 15986 | # |
e1052144 | 15987 | # Set up the sed scripts for CONFIG_FILES section. |
b0cacab0 TT |
15988 | # |
15989 | ||
15990 | # No need to generate the scripts if there are no CONFIG_FILES. | |
15991 | # This happens for instance when ./config.status config.h | |
e1052144 TT |
15992 | if test -n "$CONFIG_FILES"; then |
15993 | ||
15994 | _ACEOF | |
15995 | ||
15996 | # Create sed commands to just substitute file output variables. | |
15997 | ||
15998 | # Remaining file output variables are in a fragment that also has non-file | |
15999 | # output varibles. | |
16000 | ||
16001 | ||
16002 | ||
16003 | ac_delim='%!_!# ' | |
16004 | for ac_last_try in false false false false false :; do | |
16005 | cat >conf$$subs.sed <<_ACEOF | |
16006 | SHELL!$SHELL$ac_delim | |
16007 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
16008 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
16009 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
16010 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
16011 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
16012 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
16013 | exec_prefix!$exec_prefix$ac_delim | |
16014 | prefix!$prefix$ac_delim | |
16015 | program_transform_name!$program_transform_name$ac_delim | |
16016 | bindir!$bindir$ac_delim | |
16017 | sbindir!$sbindir$ac_delim | |
16018 | libexecdir!$libexecdir$ac_delim | |
16019 | datarootdir!$datarootdir$ac_delim | |
16020 | datadir!$datadir$ac_delim | |
16021 | sysconfdir!$sysconfdir$ac_delim | |
16022 | sharedstatedir!$sharedstatedir$ac_delim | |
16023 | localstatedir!$localstatedir$ac_delim | |
16024 | includedir!$includedir$ac_delim | |
16025 | oldincludedir!$oldincludedir$ac_delim | |
16026 | docdir!$docdir$ac_delim | |
16027 | infodir!$infodir$ac_delim | |
16028 | htmldir!$htmldir$ac_delim | |
16029 | dvidir!$dvidir$ac_delim | |
16030 | pdfdir!$pdfdir$ac_delim | |
16031 | psdir!$psdir$ac_delim | |
16032 | libdir!$libdir$ac_delim | |
16033 | localedir!$localedir$ac_delim | |
16034 | mandir!$mandir$ac_delim | |
16035 | DEFS!$DEFS$ac_delim | |
16036 | ECHO_C!$ECHO_C$ac_delim | |
16037 | ECHO_N!$ECHO_N$ac_delim | |
16038 | ECHO_T!$ECHO_T$ac_delim | |
16039 | LIBS!$LIBS$ac_delim | |
16040 | build_alias!$build_alias$ac_delim | |
16041 | host_alias!$host_alias$ac_delim | |
16042 | target_alias!$target_alias$ac_delim | |
16043 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim | |
16044 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim | |
16045 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim | |
16046 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim | |
927566a3 | 16047 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
e1052144 TT |
16048 | build!$build$ac_delim |
16049 | build_cpu!$build_cpu$ac_delim | |
16050 | build_vendor!$build_vendor$ac_delim | |
16051 | build_os!$build_os$ac_delim | |
16052 | host!$host$ac_delim | |
16053 | host_cpu!$host_cpu$ac_delim | |
16054 | host_vendor!$host_vendor$ac_delim | |
16055 | host_os!$host_os$ac_delim | |
16056 | CC!$CC$ac_delim | |
16057 | CFLAGS!$CFLAGS$ac_delim | |
16058 | LDFLAGS!$LDFLAGS$ac_delim | |
16059 | CPPFLAGS!$CPPFLAGS$ac_delim | |
16060 | ac_ct_CC!$ac_ct_CC$ac_delim | |
16061 | EXEEXT!$EXEEXT$ac_delim | |
16062 | OBJEXT!$OBJEXT$ac_delim | |
e1052144 | 16063 | CPP!$CPP$ac_delim |
29a5deed | 16064 | LD!$LD$ac_delim |
e1052144 TT |
16065 | GREP!$GREP$ac_delim |
16066 | EGREP!$EGREP$ac_delim | |
16067 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim | |
16068 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim | |
16069 | HTREE_CMT!$HTREE_CMT$ac_delim | |
16070 | ELF_CMT!$ELF_CMT$ac_delim | |
16071 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim | |
16072 | PROFILE_CMT!$PROFILE_CMT$ac_delim | |
16073 | CHECKER_CMT!$CHECKER_CMT$ac_delim | |
16074 | LIB_EXT!$LIB_EXT$ac_delim | |
16075 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim | |
16076 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim | |
e1052144 TT |
16077 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
16078 | IMAGER_CMT!$IMAGER_CMT$ac_delim | |
e1052144 TT |
16079 | _ACEOF |
16080 | ||
488c75a6 | 16081 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then |
e1052144 TT |
16082 | break |
16083 | elif $ac_last_try; then | |
16084 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16085 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16086 | { (exit 1); exit 1; }; } | |
16087 | else | |
16088 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 16089 | fi |
e1052144 TT |
16090 | done |
16091 | ||
16092 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
16093 | if test -n "$ac_eof"; then | |
16094 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
16095 | ac_eof=`expr $ac_eof + 1` | |
16096 | fi | |
16097 | ||
16098 | cat >>$CONFIG_STATUS <<_ACEOF | |
16099 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
16100 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16101 | /^[ ]*@MCONFIG@[ ]*$/{ | |
16102 | r $MCONFIG | |
16103 | d | |
16104 | } | |
16105 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ | |
16106 | r $MAKEFILE_ELF | |
16107 | d | |
16108 | } | |
16109 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ | |
16110 | r $MAKEFILE_BSDLIB | |
16111 | d | |
16112 | } | |
16113 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ | |
16114 | r $MAKEFILE_PROFILE | |
16115 | d | |
16116 | } | |
16117 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ | |
16118 | r $MAKEFILE_CHECKER | |
16119 | d | |
16120 | } | |
16121 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ | |
16122 | r $MAKEFILE_LIBRARY | |
16123 | d | |
16124 | } | |
16125 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ | |
16126 | r $ASM_TYPES_HEADER | |
16127 | d | |
16128 | } | |
488c75a6 TT |
16129 | /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ |
16130 | r $PUBLIC_CONFIG_HEADER | |
16131 | d | |
16132 | } | |
e1052144 TT |
16133 | _ACEOF |
16134 | sed ' | |
16135 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
16136 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
16137 | :n | |
16138 | t n | |
16139 | s/'"$ac_delim"'$/,g/; t | |
16140 | s/$/\\/; p | |
16141 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
16142 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
16143 | rm -f conf$$subs.sed | |
16144 | cat >>$CONFIG_STATUS <<_ACEOF | |
16145 | CEOF$ac_eof | |
16146 | _ACEOF | |
16147 | ||
16148 | ||
16149 | ac_delim='%!_!# ' | |
16150 | for ac_last_try in false false false false false :; do | |
16151 | cat >conf$$subs.sed <<_ACEOF | |
488c75a6 TT |
16152 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
16153 | FSCK_PROG!$FSCK_PROG$ac_delim | |
e1052144 TT |
16154 | FSCK_MAN!$FSCK_MAN$ac_delim |
16155 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim | |
16156 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim | |
a4ece359 | 16157 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
e1052144 TT |
16158 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
16159 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim | |
16160 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim | |
16161 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim | |
a4ece359 | 16162 | STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim |
5610f992 | 16163 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
e1052144 TT |
16164 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
16165 | PACKAGE!$PACKAGE$ac_delim | |
16166 | VERSION!$VERSION$ac_delim | |
16167 | SET_MAKE!$SET_MAKE$ac_delim | |
16168 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
16169 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
16170 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
16171 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim | |
16172 | USE_NLS!$USE_NLS$ac_delim | |
16173 | MSGFMT!$MSGFMT$ac_delim | |
16174 | GMSGFMT!$GMSGFMT$ac_delim | |
16175 | XGETTEXT!$XGETTEXT$ac_delim | |
16176 | MSGMERGE!$MSGMERGE$ac_delim | |
16177 | RANLIB!$RANLIB$ac_delim | |
16178 | ALLOCA!$ALLOCA$ac_delim | |
16179 | GLIBC21!$GLIBC21$ac_delim | |
16180 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim | |
16181 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim | |
16182 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim | |
16183 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim | |
16184 | LIBICONV!$LIBICONV$ac_delim | |
16185 | LTLIBICONV!$LTLIBICONV$ac_delim | |
16186 | INTLBISON!$INTLBISON$ac_delim | |
16187 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim | |
16188 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim | |
16189 | CATOBJEXT!$CATOBJEXT$ac_delim | |
16190 | DATADIRNAME!$DATADIRNAME$ac_delim | |
16191 | INSTOBJEXT!$INSTOBJEXT$ac_delim | |
16192 | GENCAT!$GENCAT$ac_delim | |
16193 | INTLOBJS!$INTLOBJS$ac_delim | |
16194 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim | |
16195 | INTLLIBS!$INTLLIBS$ac_delim | |
16196 | LIBINTL!$LIBINTL$ac_delim | |
16197 | LTLIBINTL!$LTLIBINTL$ac_delim | |
16198 | POSUB!$POSUB$ac_delim | |
16199 | BINARY_TYPE!$BINARY_TYPE$ac_delim | |
16200 | LN!$LN$ac_delim | |
16201 | LN_S!$LN_S$ac_delim | |
16202 | MV!$MV$ac_delim | |
16203 | CP!$CP$ac_delim | |
16204 | RM!$RM$ac_delim | |
16205 | CHMOD!$CHMOD$ac_delim | |
16206 | AWK!$AWK$ac_delim | |
16207 | SED!$SED$ac_delim | |
16208 | PERL!$PERL$ac_delim | |
16209 | LDCONFIG!$LDCONFIG$ac_delim | |
16210 | AR!$AR$ac_delim | |
16211 | STRIP!$STRIP$ac_delim | |
7321d94e | 16212 | MAKEINFO!$MAKEINFO$ac_delim |
e1052144 TT |
16213 | BUILD_CC!$BUILD_CC$ac_delim |
16214 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim | |
16215 | SIZEOF_INT!$SIZEOF_INT$ac_delim | |
16216 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim | |
16217 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim | |
16218 | SOCKET_LIB!$SOCKET_LIB$ac_delim | |
16219 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim | |
16220 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim | |
16221 | LINUX_CMT!$LINUX_CMT$ac_delim | |
16222 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim | |
16223 | UNIX_CMT!$UNIX_CMT$ac_delim | |
16224 | root_prefix!$root_prefix$ac_delim | |
16225 | root_bindir!$root_bindir$ac_delim | |
16226 | root_sbindir!$root_sbindir$ac_delim | |
16227 | root_libdir!$root_libdir$ac_delim | |
16228 | root_sysconfdir!$root_sysconfdir$ac_delim | |
16229 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim | |
16230 | SS_DIR!$SS_DIR$ac_delim | |
16231 | ET_DIR!$ET_DIR$ac_delim | |
16232 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim | |
16233 | INTL_FLAGS!$INTL_FLAGS$ac_delim | |
16234 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim | |
16235 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim | |
16236 | LIBOBJS!$LIBOBJS$ac_delim | |
16237 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
16238 | _ACEOF | |
16239 | ||
dc9345a0 | 16240 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then |
e1052144 TT |
16241 | break |
16242 | elif $ac_last_try; then | |
16243 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16244 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16245 | { (exit 1); exit 1; }; } | |
16246 | else | |
16247 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16248 | fi | |
16249 | done | |
16250 | ||
16251 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
16252 | if test -n "$ac_eof"; then | |
16253 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
16254 | ac_eof=`expr $ac_eof + 1` | |
16255 | fi | |
b0cacab0 | 16256 | |
e1052144 TT |
16257 | cat >>$CONFIG_STATUS <<_ACEOF |
16258 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
16259 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
16260 | _ACEOF | |
16261 | sed ' | |
16262 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
16263 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
16264 | :n | |
16265 | t n | |
16266 | s/'"$ac_delim"'$/,g/; t | |
16267 | s/$/\\/; p | |
16268 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
16269 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
16270 | rm -f conf$$subs.sed | |
16271 | cat >>$CONFIG_STATUS <<_ACEOF | |
16272 | :end | |
16273 | s/|#_!!_#|//g | |
16274 | CEOF$ac_eof | |
b0cacab0 | 16275 | _ACEOF |
e1052144 TT |
16276 | |
16277 | ||
16278 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
16279 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16280 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16281 | # (actually we leave an empty line to preserve line numbers). | |
16282 | if test "x$srcdir" = x.; then | |
16283 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16284 | s/:*\$(srcdir):*/:/ | |
16285 | s/:*\${srcdir}:*/:/ | |
16286 | s/:*@srcdir@:*/:/ | |
16287 | s/^\([^=]*=[ ]*\):*/\1/ | |
16288 | s/:*$// | |
16289 | s/^[^=]*=[ ]*$// | |
16290 | }' | |
16291 | fi | |
16292 | ||
b0cacab0 | 16293 | cat >>$CONFIG_STATUS <<\_ACEOF |
e1052144 TT |
16294 | fi # test -n "$CONFIG_FILES" |
16295 | ||
16296 | ||
16297 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS | |
16298 | do | |
16299 | case $ac_tag in | |
16300 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16301 | esac | |
16302 | case $ac_mode$ac_tag in | |
16303 | :[FHL]*:*);; | |
16304 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
16305 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
16306 | { (exit 1); exit 1; }; };; | |
16307 | :[FH]-) ac_tag=-:-;; | |
16308 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16309 | esac | |
16310 | ac_save_IFS=$IFS | |
16311 | IFS=: | |
16312 | set x $ac_tag | |
16313 | IFS=$ac_save_IFS | |
16314 | shift | |
16315 | ac_file=$1 | |
16316 | shift | |
16317 | ||
16318 | case $ac_mode in | |
16319 | :L) ac_source=$1;; | |
16320 | :[FH]) | |
16321 | ac_file_inputs= | |
16322 | for ac_f | |
16323 | do | |
16324 | case $ac_f in | |
16325 | -) ac_f="$tmp/stdin";; | |
16326 | *) # Look for the file first in the build tree, then in the source tree | |
16327 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16328 | # because $ac_f cannot contain `:'. | |
16329 | test -f "$ac_f" || | |
16330 | case $ac_f in | |
16331 | [\\/$]*) false;; | |
16332 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16333 | esac || | |
16334 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
16335 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
16336 | { (exit 1); exit 1; }; };; | |
16337 | esac | |
16338 | ac_file_inputs="$ac_file_inputs $ac_f" | |
16339 | done | |
16340 | ||
16341 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16342 | # use $as_me), people would be surprised to read: | |
16343 | # /* config.h. Generated by config.status. */ | |
16344 | configure_input="Generated from "`IFS=: | |
16345 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
16346 | if test x"$ac_file" != x-; then | |
16347 | configure_input="$ac_file. $configure_input" | |
16348 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
16349 | echo "$as_me: creating $ac_file" >&6;} | |
16350 | fi | |
16351 | ||
16352 | case $ac_tag in | |
16353 | *:-:* | *:-) cat >"$tmp/stdin";; | |
16354 | esac | |
16355 | ;; | |
b0cacab0 TT |
16356 | esac |
16357 | ||
e1052144 | 16358 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
16359 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16360 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16361 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 16362 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
b0cacab0 | 16363 | echo X"$ac_file" | |
e1052144 TT |
16364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16365 | s//\1/ | |
16366 | q | |
16367 | } | |
16368 | /^X\(\/\/\)[^/].*/{ | |
16369 | s//\1/ | |
16370 | q | |
16371 | } | |
16372 | /^X\(\/\/\)$/{ | |
16373 | s//\1/ | |
16374 | q | |
16375 | } | |
16376 | /^X\(\/\).*/{ | |
16377 | s//\1/ | |
16378 | q | |
16379 | } | |
16380 | s/.*/./; q'` | |
16381 | { as_dir="$ac_dir" | |
16382 | case $as_dir in #( | |
16383 | -*) as_dir=./$as_dir;; | |
16384 | esac | |
16385 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
b0cacab0 | 16386 | as_dirs= |
e1052144 TT |
16387 | while :; do |
16388 | case $as_dir in #( | |
16389 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
16390 | *) as_qdir=$as_dir;; | |
16391 | esac | |
16392 | as_dirs="'$as_qdir' $as_dirs" | |
16393 | as_dir=`$as_dirname -- "$as_dir" || | |
b0cacab0 TT |
16394 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16395 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16396 | X"$as_dir" : 'X\(//\)$' \| \ | |
e1052144 | 16397 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
b0cacab0 | 16398 | echo X"$as_dir" | |
e1052144 TT |
16399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16400 | s//\1/ | |
16401 | q | |
16402 | } | |
16403 | /^X\(\/\/\)[^/].*/{ | |
16404 | s//\1/ | |
16405 | q | |
16406 | } | |
16407 | /^X\(\/\/\)$/{ | |
16408 | s//\1/ | |
16409 | q | |
16410 | } | |
16411 | /^X\(\/\).*/{ | |
16412 | s//\1/ | |
16413 | q | |
16414 | } | |
16415 | s/.*/./; q'` | |
16416 | test -d "$as_dir" && break | |
b0cacab0 | 16417 | done |
e1052144 TT |
16418 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
16419 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
16420 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
b0cacab0 | 16421 | { (exit 1); exit 1; }; }; } |
b0cacab0 TT |
16422 | ac_builddir=. |
16423 | ||
e1052144 TT |
16424 | case "$ac_dir" in |
16425 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16426 | *) | |
b0cacab0 | 16427 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
e1052144 TT |
16428 | # A ".." for each directory in $ac_dir_suffix. |
16429 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
16430 | case $ac_top_builddir_sub in | |
16431 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16432 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16433 | esac ;; | |
16434 | esac | |
16435 | ac_abs_top_builddir=$ac_pwd | |
16436 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16437 | # for backward compatibility: | |
16438 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 16439 | |
b0cacab0 | 16440 | case $srcdir in |
e1052144 | 16441 | .) # We are building in place. |
b0cacab0 | 16442 | ac_srcdir=. |
e1052144 TT |
16443 | ac_top_srcdir=$ac_top_builddir_sub |
16444 | ac_abs_top_srcdir=$ac_pwd ;; | |
16445 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 16446 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
16447 | ac_top_srcdir=$srcdir |
16448 | ac_abs_top_srcdir=$srcdir ;; | |
16449 | *) # Relative name. | |
16450 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16451 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16452 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 16453 | esac |
e1052144 | 16454 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 16455 | |
b0cacab0 | 16456 | |
e1052144 TT |
16457 | case $ac_mode in |
16458 | :F) | |
16459 | # | |
16460 | # CONFIG_FILE | |
16461 | # | |
50e1e10f | 16462 | |
b0cacab0 TT |
16463 | case $INSTALL in |
16464 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 16465 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 16466 | esac |
e1052144 | 16467 | _ACEOF |
50e1e10f | 16468 | |
e1052144 TT |
16469 | cat >>$CONFIG_STATUS <<\_ACEOF |
16470 | # If the template does not know about datarootdir, expand it. | |
16471 | # FIXME: This hack should be removed a few years after 2.60. | |
16472 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
07a0db15 | 16473 | |
e1052144 TT |
16474 | case `sed -n '/datarootdir/ { |
16475 | p | |
16476 | q | |
16477 | } | |
16478 | /@datadir@/p | |
16479 | /@docdir@/p | |
16480 | /@infodir@/p | |
16481 | /@localedir@/p | |
16482 | /@mandir@/p | |
16483 | ' $ac_file_inputs` in | |
16484 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16485 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16486 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16487 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b0cacab0 | 16488 | _ACEOF |
e1052144 TT |
16489 | cat >>$CONFIG_STATUS <<_ACEOF |
16490 | ac_datarootdir_hack=' | |
16491 | s&@datadir@&$datadir&g | |
16492 | s&@docdir@&$docdir&g | |
16493 | s&@infodir@&$infodir&g | |
16494 | s&@localedir@&$localedir&g | |
16495 | s&@mandir@&$mandir&g | |
16496 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16497 | esac | |
16498 | _ACEOF | |
16499 | ||
16500 | # Neutralize VPATH when `$srcdir' = `.'. | |
16501 | # Shell code in configure.ac might set extrasub. | |
16502 | # FIXME: do we really want to maintain this feature? | |
b0cacab0 TT |
16503 | cat >>$CONFIG_STATUS <<_ACEOF |
16504 | sed "$ac_vpsub | |
16505 | $extrasub | |
16506 | _ACEOF | |
16507 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16508 | :t | |
16509 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
e1052144 TT |
16510 | s&@configure_input@&$configure_input&;t t |
16511 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16512 | s&@srcdir@&$ac_srcdir&;t t | |
16513 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16514 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16515 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16516 | s&@builddir@&$ac_builddir&;t t | |
16517 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16518 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16519 | s&@INSTALL@&$ac_INSTALL&;t t | |
16520 | $ac_datarootdir_hack | |
16521 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
16522 | ||
16523 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16524 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16525 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16526 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16527 | which seems to be undefined. Please make sure it is defined." >&5 | |
16528 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16529 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16530 | ||
16531 | rm -f "$tmp/stdin" | |
16532 | case $ac_file in | |
16533 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
16534 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
16535 | esac | |
16536 | ;; | |
b0cacab0 | 16537 | |
07a0db15 | 16538 | |
e1052144 TT |
16539 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
16540 | echo "$as_me: executing $ac_file commands" >&6;} | |
16541 | ;; | |
16542 | esac | |
a04eba3f | 16543 | |
b0cacab0 | 16544 | |
e1052144 TT |
16545 | case $ac_file$ac_mode in |
16546 | "default-1":C) | |
a04eba3f TT |
16547 | for ac_file in $CONFIG_FILES; do |
16548 | # Support "outfile[:infile[:infile...]]" | |
16549 | case "$ac_file" in | |
16550 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16551 | esac | |
16552 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16553 | case "$ac_file" in */Makefile.in) | |
16554 | # Adjust a relative srcdir. | |
16555 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
16556 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
16557 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
16558 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16559 | # In autoconf-2.50 it is called $srcdir. | |
16560 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16561 | case "$ac_given_srcdir" in | |
16562 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16563 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16564 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16565 | esac | |
16566 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16567 | rm -f "$ac_dir/POTFILES" | |
16568 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16569 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
b0cacab0 TT |
16570 | POMAKEFILEDEPS="POTFILES.in" |
16571 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
16572 | # on $ac_dir but don't depend on user-specified configuration |
16573 | # parameters. | |
16574 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16575 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 16576 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
16577 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
16578 | fi | |
16579 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16580 | # Hide the ALL_LINGUAS assigment from automake. | |
16581 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
b0cacab0 TT |
16582 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
16583 | else | |
16584 | # The set of available languages was given in configure.in. | |
16585 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
a04eba3f | 16586 | fi |
b0cacab0 TT |
16587 | # Compute POFILES |
16588 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
16589 | # Compute UPDATEPOFILES | |
16590 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
16591 | # Compute DUMMYPOFILES | |
16592 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
16593 | # Compute GMOFILES | |
16594 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
16595 | case "$ac_given_srcdir" in |
16596 | .) srcdirpre= ;; | |
16597 | *) srcdirpre='$(srcdir)/' ;; | |
16598 | esac | |
16599 | POFILES= | |
a04eba3f TT |
16600 | UPDATEPOFILES= |
16601 | DUMMYPOFILES= | |
b0cacab0 | 16602 | GMOFILES= |
a04eba3f TT |
16603 | for lang in $ALL_LINGUAS; do |
16604 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
16605 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
16606 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 16607 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
16608 | done |
16609 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16610 | # environment variable. | |
16611 | INST_LINGUAS= | |
16612 | if test -n "$ALL_LINGUAS"; then | |
16613 | for presentlang in $ALL_LINGUAS; do | |
16614 | useit=no | |
16615 | if test "%UNSET%" != "$LINGUAS"; then | |
16616 | desiredlanguages="$LINGUAS" | |
16617 | else | |
16618 | desiredlanguages="$ALL_LINGUAS" | |
16619 | fi | |
16620 | for desiredlang in $desiredlanguages; do | |
16621 | # Use the presentlang catalog if desiredlang is | |
16622 | # a. equal to presentlang, or | |
16623 | # b. a variant of presentlang (because in this case, | |
16624 | # presentlang can be used as a fallback for messages | |
16625 | # which are not translated in the desiredlang catalog). | |
16626 | case "$desiredlang" in | |
16627 | "$presentlang"*) useit=yes;; | |
16628 | esac | |
16629 | done | |
16630 | if test $useit = yes; then | |
16631 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16632 | fi | |
16633 | done | |
16634 | fi | |
16635 | CATALOGS= | |
16636 | if test -n "$INST_LINGUAS"; then | |
16637 | for lang in $INST_LINGUAS; do | |
16638 | CATALOGS="$CATALOGS $lang.gmo" | |
16639 | done | |
16640 | fi | |
16641 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 16642 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
a04eba3f TT |
16643 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
16644 | if test -f "$f"; then | |
16645 | case "$f" in | |
16646 | *.orig | *.bak | *~) ;; | |
16647 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16648 | esac | |
16649 | fi | |
16650 | done | |
16651 | fi | |
16652 | ;; | |
a64c9c13 | 16653 | esac |
b0cacab0 | 16654 | done ;; |
e1052144 | 16655 | |
b0cacab0 | 16656 | esac |
e1052144 | 16657 | done # for ac_tag |
07a0db15 | 16658 | |
b0cacab0 TT |
16659 | |
16660 | { (exit 0); exit 0; } | |
16661 | _ACEOF | |
50e1e10f | 16662 | chmod +x $CONFIG_STATUS |
b0cacab0 TT |
16663 | ac_clean_files=$ac_clean_files_save |
16664 | ||
16665 | ||
16666 | # configure is writing to config.log, and then calls config.status. | |
16667 | # config.status does its own redirection, appending to config.log. | |
16668 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16669 | # by configure, so config.status won't be able to write to it; its | |
16670 | # output is simply discarded. So we exec the FD to /dev/null, | |
16671 | # effectively closing config.log, so it can be properly (re)opened and | |
16672 | # appended to by config.status. When coming back to configure, we | |
16673 | # need to make the FD available again. | |
16674 | if test "$no_create" != yes; then | |
16675 | ac_cs_success=: | |
16676 | ac_config_status_args= | |
16677 | test "$silent" = yes && | |
16678 | ac_config_status_args="$ac_config_status_args --quiet" | |
16679 | exec 5>/dev/null | |
16680 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16681 | exec 5>>config.log | |
16682 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16683 | # would make configure fail if this is the last instruction. | |
16684 | $ac_cs_success || { (exit 1); exit 1; } | |
16685 | fi | |
50e1e10f | 16686 | |
ee683a13 TT |
16687 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
16688 |