]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
7a197a62 | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 AK |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
7a197a62 AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
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+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
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 | |
ad6254c5 AK |
51 | fi |
52 | ||
53 | # Support unset when possible. | |
8a2fc586 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
7a197a62 AK |
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 | ||
ad6254c5 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
ad6254c5 AK |
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 | |
8a2fc586 | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
109 | eval $as_var=C; export $as_var |
110 | else | |
7a197a62 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 AK |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
7a197a62 AK |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
7a197a62 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
7a197a62 | 131 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ad6254c5 | 135 | echo X/"$0" | |
7a197a62 AK |
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'` | |
ad6254c5 | 149 | |
7a197a62 AK |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
ad6254c5 | 152 | |
ad6254c5 | 153 | |
7a197a62 AK |
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 | |
ad6254c5 AK |
159 | fi |
160 | ||
7a197a62 AK |
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 | } | |
ad6254c5 | 177 | |
7a197a62 AK |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
ad6254c5 | 185 | |
7a197a62 AK |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
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= | |
ad6254c5 AK |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 226 | case $as_dir in |
ad6254c5 | 227 | /*) |
7a197a62 AK |
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 | |
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 | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
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 | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
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 | ( | |
ad6254c5 AK |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
ad6254c5 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
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" || { | |
ad6254c5 AK |
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 | |
7a197a62 AK |
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. | |
ad6254c5 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
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 | | |
ad6254c5 | 442 | sed ' |
7a197a62 AK |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
ad6254c5 | 447 | N |
7a197a62 AK |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 450 | t loop |
7a197a62 | 451 | s/-\n.*// |
ad6254c5 | 452 | ' >$as_me.lineno && |
7a197a62 | 453 | chmod +x "$as_me.lineno" || |
ad6254c5 AK |
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 | |
7a197a62 AK |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
ad6254c5 AK |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
795ca3e5 | 464 | |
ad6254c5 | 465 | |
7a197a62 AK |
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';; | |
ad6254c5 AK |
481 | esac |
482 | ||
7a197a62 AK |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
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 | |
ad6254c5 AK |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
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 || | |
ad6254c5 | 505 | as_ln_s='cp -p' |
ad6254c5 AK |
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 | |
7a197a62 AK |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
8a2fc586 | 517 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
7a197a62 AK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
523 | else | |
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 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
ad6254c5 AK |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
549 | |
550 | ||
ad6254c5 | 551 | |
7a197a62 | 552 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
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` | |
558 | ||
ad6254c5 AK |
559 | # |
560 | # Initializations. | |
561 | # | |
795ca3e5 | 562 | ac_default_prefix=/usr/local |
7a197a62 | 563 | ac_clean_files= |
ad6254c5 | 564 | ac_config_libobj_dir=. |
7a197a62 | 565 | LIBOBJS= |
ad6254c5 AK |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
ad6254c5 AK |
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="lib/device/dev-cache.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
7a197a62 | 583 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
584 | # include <sys/types.h> |
585 | #endif | |
7a197a62 | 586 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
587 | # include <sys/stat.h> |
588 | #endif | |
7a197a62 | 589 | #ifdef STDC_HEADERS |
ad6254c5 AK |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
7a197a62 | 593 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
7a197a62 AK |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
7a197a62 | 603 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
604 | # include <strings.h> |
605 | #endif | |
7a197a62 | 606 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 607 | # include <inttypes.h> |
ad6254c5 | 608 | #endif |
7a197a62 AK |
609 | #ifdef HAVE_STDINT_H |
610 | # include <stdint.h> | |
611 | #endif | |
612 | #ifdef HAVE_UNISTD_H | |
ad6254c5 AK |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
795ca3e5 | 616 | ac_default_prefix=/usr |
7a197a62 AK |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | build | |
655 | build_cpu | |
656 | build_vendor | |
657 | build_os | |
658 | host | |
659 | host_cpu | |
660 | host_vendor | |
661 | host_os | |
662 | target | |
663 | target_cpu | |
664 | target_vendor | |
665 | target_os | |
666 | AWK | |
667 | CC | |
668 | CFLAGS | |
669 | LDFLAGS | |
670 | CPPFLAGS | |
671 | ac_ct_CC | |
672 | EXEEXT | |
673 | OBJEXT | |
674 | INSTALL_PROGRAM | |
675 | INSTALL_SCRIPT | |
676 | INSTALL_DATA | |
677 | LN_S | |
678 | SET_MAKE | |
679 | RANLIB | |
680 | CFLOW_CMD | |
681 | CSCOPE_CMD | |
682 | CPP | |
683 | GREP | |
684 | EGREP | |
685 | ALLOCA | |
686 | LIBOBJS | |
687 | POW_LIB | |
688 | MSGFMT | |
689 | MODPROBE_CMD | |
690 | JOBS | |
691 | STATIC_LINK | |
692 | LVM1 | |
693 | POOL | |
694 | SNAPSHOTS | |
695 | MIRRORS | |
696 | OWNER | |
697 | GROUP | |
698 | COPTIMISE_FLAG | |
699 | CLDFLAGS | |
700 | CLDWHOLEARCHIVE | |
701 | CLDNOWHOLEARCHIVE | |
702 | LDDEPS | |
703 | LIB_SUFFIX | |
704 | LVM_VERSION | |
705 | LVM1_FALLBACK | |
706 | DEBUG | |
707 | DEVMAPPER | |
708 | HAVE_LIBDL | |
709 | HAVE_SELINUX | |
710 | HAVE_REALTIME | |
711 | CMDLIB | |
712 | LOCALEDIR | |
713 | CONFDIR | |
714 | STATICDIR | |
715 | DMDIR | |
716 | INTL_PACKAGE | |
717 | INTL | |
718 | CLVMD | |
719 | CLUSTER | |
720 | FSADM | |
721 | DMEVENTD | |
722 | LTLIBOBJS' | |
ad6254c5 | 723 | ac_subst_files='' |
7a197a62 AK |
724 | ac_precious_vars='build_alias |
725 | host_alias | |
726 | target_alias | |
727 | CC | |
728 | CFLAGS | |
729 | LDFLAGS | |
730 | LIBS | |
731 | CPPFLAGS | |
732 | CPP' | |
733 | ||
795ca3e5 AK |
734 | |
735 | # Initialize some variables set by options. | |
ad6254c5 AK |
736 | ac_init_help= |
737 | ac_init_version=false | |
795ca3e5 AK |
738 | # The variables have the same names as the options, with |
739 | # dashes changed to underlines. | |
ad6254c5 | 740 | cache_file=/dev/null |
795ca3e5 | 741 | exec_prefix=NONE |
795ca3e5 | 742 | no_create= |
795ca3e5 AK |
743 | no_recursion= |
744 | prefix=NONE | |
745 | program_prefix=NONE | |
746 | program_suffix=NONE | |
747 | program_transform_name=s,x,x, | |
748 | silent= | |
749 | site= | |
750 | srcdir= | |
795ca3e5 AK |
751 | verbose= |
752 | x_includes=NONE | |
753 | x_libraries=NONE | |
ad6254c5 AK |
754 | |
755 | # Installation directory options. | |
756 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
757 | # and all the variables that are supposed to be based on exec_prefix | |
758 | # by default will actually change. | |
759 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 760 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
761 | bindir='${exec_prefix}/bin' |
762 | sbindir='${exec_prefix}/sbin' | |
763 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
764 | datarootdir='${prefix}/share' |
765 | datadir='${datarootdir}' | |
795ca3e5 AK |
766 | sysconfdir='${prefix}/etc' |
767 | sharedstatedir='${prefix}/com' | |
768 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
769 | includedir='${prefix}/include' |
770 | oldincludedir='/usr/include' | |
7a197a62 AK |
771 | docdir='${datarootdir}/doc/${PACKAGE}' |
772 | infodir='${datarootdir}/info' | |
773 | htmldir='${docdir}' | |
774 | dvidir='${docdir}' | |
775 | pdfdir='${docdir}' | |
776 | psdir='${docdir}' | |
777 | libdir='${exec_prefix}/lib' | |
778 | localedir='${datarootdir}/locale' | |
779 | mandir='${datarootdir}/man' | |
795ca3e5 | 780 | |
795ca3e5 | 781 | ac_prev= |
7a197a62 | 782 | ac_dashdash= |
795ca3e5 AK |
783 | for ac_option |
784 | do | |
795ca3e5 AK |
785 | # If the previous option needs an argument, assign it. |
786 | if test -n "$ac_prev"; then | |
7a197a62 | 787 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
788 | ac_prev= |
789 | continue | |
790 | fi | |
791 | ||
7a197a62 AK |
792 | case $ac_option in |
793 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
794 | *) ac_optarg=yes ;; | |
795 | esac | |
795ca3e5 AK |
796 | |
797 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
798 | ||
7a197a62 AK |
799 | case $ac_dashdash$ac_option in |
800 | --) | |
801 | ac_dashdash=yes ;; | |
795ca3e5 AK |
802 | |
803 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
804 | ac_prev=bindir ;; | |
805 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 806 | bindir=$ac_optarg ;; |
795ca3e5 AK |
807 | |
808 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 809 | ac_prev=build_alias ;; |
795ca3e5 | 810 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 811 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
812 | |
813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
815 | ac_prev=cache_file ;; | |
816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
818 | cache_file=$ac_optarg ;; |
819 | ||
820 | --config-cache | -C) | |
821 | cache_file=config.cache ;; | |
795ca3e5 | 822 | |
7a197a62 | 823 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 824 | ac_prev=datadir ;; |
7a197a62 | 825 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 826 | datadir=$ac_optarg ;; |
795ca3e5 | 827 | |
7a197a62 AK |
828 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
829 | | --dataroo | --dataro | --datar) | |
830 | ac_prev=datarootdir ;; | |
831 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
832 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
833 | datarootdir=$ac_optarg ;; | |
834 | ||
795ca3e5 | 835 | -disable-* | --disable-*) |
ad6254c5 | 836 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 837 | # Reject names that are not valid shell variable names. |
7a197a62 | 838 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ad6254c5 AK |
839 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
840 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
841 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
842 | eval enable_$ac_feature=no ;; | |
843 | ||
844 | -docdir | --docdir | --docdi | --doc | --do) | |
845 | ac_prev=docdir ;; | |
846 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
847 | docdir=$ac_optarg ;; | |
848 | ||
849 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
850 | ac_prev=dvidir ;; | |
851 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
852 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
853 | |
854 | -enable-* | --enable-*) | |
ad6254c5 | 855 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 856 | # Reject names that are not valid shell variable names. |
7a197a62 | 857 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ad6254c5 AK |
858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
859 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
860 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
861 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
862 | |
863 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
864 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
865 | | --exec | --exe | --ex) | |
866 | ac_prev=exec_prefix ;; | |
867 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
868 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
869 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 870 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
871 | |
872 | -gas | --gas | --ga | --g) | |
873 | # Obsolete; use --with-gas. | |
874 | with_gas=yes ;; | |
875 | ||
ad6254c5 AK |
876 | -help | --help | --hel | --he | -h) |
877 | ac_init_help=long ;; | |
878 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
879 | ac_init_help=recursive ;; | |
880 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
881 | ac_init_help=short ;; | |
795ca3e5 AK |
882 | |
883 | -host | --host | --hos | --ho) | |
ad6254c5 | 884 | ac_prev=host_alias ;; |
795ca3e5 | 885 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 886 | host_alias=$ac_optarg ;; |
795ca3e5 | 887 | |
7a197a62 AK |
888 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
889 | ac_prev=htmldir ;; | |
890 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
891 | | --ht=*) | |
892 | htmldir=$ac_optarg ;; | |
893 | ||
795ca3e5 AK |
894 | -includedir | --includedir | --includedi | --included | --include \ |
895 | | --includ | --inclu | --incl | --inc) | |
896 | ac_prev=includedir ;; | |
897 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
898 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 899 | includedir=$ac_optarg ;; |
795ca3e5 AK |
900 | |
901 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
902 | ac_prev=infodir ;; | |
903 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 904 | infodir=$ac_optarg ;; |
795ca3e5 AK |
905 | |
906 | -libdir | --libdir | --libdi | --libd) | |
907 | ac_prev=libdir ;; | |
908 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 909 | libdir=$ac_optarg ;; |
795ca3e5 AK |
910 | |
911 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
912 | | --libexe | --libex | --libe) | |
913 | ac_prev=libexecdir ;; | |
914 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
915 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 916 | libexecdir=$ac_optarg ;; |
795ca3e5 | 917 | |
7a197a62 AK |
918 | -localedir | --localedir | --localedi | --localed | --locale) |
919 | ac_prev=localedir ;; | |
920 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
921 | localedir=$ac_optarg ;; | |
922 | ||
795ca3e5 | 923 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 924 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
925 | ac_prev=localstatedir ;; |
926 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 927 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 928 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
929 | |
930 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
931 | ac_prev=mandir ;; | |
932 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 933 | mandir=$ac_optarg ;; |
795ca3e5 AK |
934 | |
935 | -nfp | --nfp | --nf) | |
936 | # Obsolete; use --without-fp. | |
937 | with_fp=no ;; | |
938 | ||
939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 940 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
941 | no_create=yes ;; |
942 | ||
943 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
944 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
945 | no_recursion=yes ;; | |
946 | ||
947 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
948 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
949 | | --oldin | --oldi | --old | --ol | --o) | |
950 | ac_prev=oldincludedir ;; | |
951 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
952 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
953 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 954 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
955 | |
956 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
957 | ac_prev=prefix ;; | |
958 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 959 | prefix=$ac_optarg ;; |
795ca3e5 AK |
960 | |
961 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
962 | | --program-pre | --program-pr | --program-p) | |
963 | ac_prev=program_prefix ;; | |
964 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
965 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 966 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
967 | |
968 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
969 | | --program-suf | --program-su | --program-s) | |
970 | ac_prev=program_suffix ;; | |
971 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
972 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 973 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
974 | |
975 | -program-transform-name | --program-transform-name \ | |
976 | | --program-transform-nam | --program-transform-na \ | |
977 | | --program-transform-n | --program-transform- \ | |
978 | | --program-transform | --program-transfor \ | |
979 | | --program-transfo | --program-transf \ | |
980 | | --program-trans | --program-tran \ | |
981 | | --progr-tra | --program-tr | --program-t) | |
982 | ac_prev=program_transform_name ;; | |
983 | -program-transform-name=* | --program-transform-name=* \ | |
984 | | --program-transform-nam=* | --program-transform-na=* \ | |
985 | | --program-transform-n=* | --program-transform-=* \ | |
986 | | --program-transform=* | --program-transfor=* \ | |
987 | | --program-transfo=* | --program-transf=* \ | |
988 | | --program-trans=* | --program-tran=* \ | |
989 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 990 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 991 | |
7a197a62 AK |
992 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
993 | ac_prev=pdfdir ;; | |
994 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
995 | pdfdir=$ac_optarg ;; | |
996 | ||
997 | -psdir | --psdir | --psdi | --psd | --ps) | |
998 | ac_prev=psdir ;; | |
999 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1000 | psdir=$ac_optarg ;; | |
1001 | ||
795ca3e5 AK |
1002 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1003 | | -silent | --silent | --silen | --sile | --sil) | |
1004 | silent=yes ;; | |
1005 | ||
1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1007 | ac_prev=sbindir ;; | |
1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1009 | | --sbi=* | --sb=*) | |
ad6254c5 | 1010 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1011 | |
1012 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1013 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1014 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1015 | | --sha | --sh) | |
1016 | ac_prev=sharedstatedir ;; | |
1017 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1018 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1019 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1020 | | --sha=* | --sh=*) | |
ad6254c5 | 1021 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1022 | |
1023 | -site | --site | --sit) | |
1024 | ac_prev=site ;; | |
1025 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1026 | site=$ac_optarg ;; |
795ca3e5 AK |
1027 | |
1028 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1029 | ac_prev=srcdir ;; | |
1030 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1031 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1032 | |
1033 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1034 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1035 | ac_prev=sysconfdir ;; | |
1036 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1037 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1038 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1041 | ac_prev=target_alias ;; |
795ca3e5 | 1042 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1043 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1044 | |
1045 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1046 | verbose=yes ;; | |
1047 | ||
ad6254c5 AK |
1048 | -version | --version | --versio | --versi | --vers | -V) |
1049 | ac_init_version=: ;; | |
795ca3e5 AK |
1050 | |
1051 | -with-* | --with-*) | |
ad6254c5 | 1052 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1053 | # Reject names that are not valid shell variable names. |
7a197a62 | 1054 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ad6254c5 AK |
1055 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1056 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
1057 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1058 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1059 | |
1060 | -without-* | --without-*) | |
ad6254c5 | 1061 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1062 | # Reject names that are not valid shell variable names. |
7a197a62 | 1063 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ad6254c5 AK |
1064 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1065 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
1066 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1067 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1068 | |
1069 | --x) | |
1070 | # Obsolete; use --with-x. | |
1071 | with_x=yes ;; | |
1072 | ||
1073 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1074 | | --x-incl | --x-inc | --x-in | --x-i) | |
1075 | ac_prev=x_includes ;; | |
1076 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1077 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1078 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1079 | |
1080 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1081 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1082 | ac_prev=x_libraries ;; | |
1083 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1084 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1085 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1086 | |
ad6254c5 AK |
1087 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1088 | Try \`$0 --help' for more information." >&2 | |
1089 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1090 | ;; |
1091 | ||
ad6254c5 AK |
1092 | *=*) |
1093 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1094 | # Reject names that are not valid shell variable names. | |
1095 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1096 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1097 | { (exit 1); exit 1; }; } | |
7a197a62 | 1098 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1099 | export $ac_envvar ;; |
1100 | ||
795ca3e5 | 1101 | *) |
ad6254c5 AK |
1102 | # FIXME: should be removed in autoconf 3.0. |
1103 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1104 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1105 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1106 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
1107 | ;; |
1108 | ||
1109 | esac | |
1110 | done | |
1111 | ||
1112 | if test -n "$ac_prev"; then | |
ad6254c5 AK |
1113 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1114 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1115 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1116 | fi |
795ca3e5 | 1117 | |
7a197a62 AK |
1118 | # Be sure to have absolute directory names. |
1119 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1120 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1121 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1122 | libdir localedir mandir | |
795ca3e5 | 1123 | do |
7a197a62 | 1124 | eval ac_val=\$$ac_var |
ad6254c5 | 1125 | case $ac_val in |
7a197a62 AK |
1126 | [\\/$]* | ?:[\\/]* ) continue;; |
1127 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1128 | esac |
7a197a62 AK |
1129 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1130 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1131 | done |
1132 | ||
ad6254c5 AK |
1133 | # There might be people who depend on the old broken behavior: `$host' |
1134 | # used to hold the argument of --host etc. | |
1135 | # FIXME: To remove some day. | |
1136 | build=$build_alias | |
1137 | host=$host_alias | |
1138 | target=$target_alias | |
1139 | ||
1140 | # FIXME: To remove some day. | |
1141 | if test "x$host_alias" != x; then | |
1142 | if test "x$build_alias" = x; then | |
1143 | cross_compiling=maybe | |
1144 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1145 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1146 | elif test "x$build_alias" != "x$host_alias"; then | |
1147 | cross_compiling=yes | |
1148 | fi | |
1149 | fi | |
8106cdd5 | 1150 | |
ad6254c5 AK |
1151 | ac_tool_prefix= |
1152 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1153 | ||
1154 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1155 | |
795ca3e5 | 1156 | |
7a197a62 AK |
1157 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1158 | ac_ls_di=`ls -di .` && | |
1159 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1160 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1161 | { (exit 1); exit 1; }; } | |
1162 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1163 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1164 | { (exit 1); exit 1; }; } | |
1165 | ||
1166 | ||
795ca3e5 AK |
1167 | # Find the source files, if location was not specified. |
1168 | if test -z "$srcdir"; then | |
1169 | ac_srcdir_defaulted=yes | |
7a197a62 AK |
1170 | # Try the directory containing this script, then the parent directory. |
1171 | ac_confdir=`$as_dirname -- "$0" || | |
ad6254c5 | 1172 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
1173 | X"$0" : 'X\(//\)[^/]' \| \ |
1174 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 1175 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ad6254c5 | 1176 | echo X"$0" | |
7a197a62 AK |
1177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1178 | s//\1/ | |
1179 | q | |
1180 | } | |
1181 | /^X\(\/\/\)[^/].*/{ | |
1182 | s//\1/ | |
1183 | q | |
1184 | } | |
1185 | /^X\(\/\/\)$/{ | |
1186 | s//\1/ | |
1187 | q | |
1188 | } | |
1189 | /^X\(\/\).*/{ | |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | s/.*/./; q'` | |
795ca3e5 | 1194 | srcdir=$ac_confdir |
7a197a62 | 1195 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1196 | srcdir=.. |
1197 | fi | |
1198 | else | |
1199 | ac_srcdir_defaulted=no | |
1200 | fi | |
7a197a62 AK |
1201 | if test ! -r "$srcdir/$ac_unique_file"; then |
1202 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1203 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
ad6254c5 | 1204 | { (exit 1); exit 1; }; } |
795ca3e5 | 1205 | fi |
7a197a62 AK |
1206 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1207 | ac_abs_confdir=`( | |
1208 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
ad6254c5 | 1209 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1210 | pwd)` |
1211 | # When building in place, set srcdir=. | |
1212 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1213 | srcdir=. | |
1214 | fi | |
1215 | # Remove unnecessary trailing slashes from srcdir. | |
1216 | # Double slashes in file names in object file debugging info | |
1217 | # mess up M-x gdb in Emacs. | |
1218 | case $srcdir in | |
1219 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1220 | esac | |
1221 | for ac_var in $ac_precious_vars; do | |
1222 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1223 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1224 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1225 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1226 | done | |
ad6254c5 AK |
1227 | |
1228 | # | |
1229 | # Report the --help message. | |
1230 | # | |
1231 | if test "$ac_init_help" = "long"; then | |
1232 | # Omit some internal or obsolete options to make the list less imposing. | |
1233 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1234 | cat <<_ACEOF | |
1235 | \`configure' configures this package to adapt to many kinds of systems. | |
1236 | ||
1237 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1238 | ||
1239 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1240 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1241 | ||
1242 | Defaults for the options are specified in brackets. | |
1243 | ||
1244 | Configuration: | |
1245 | -h, --help display this help and exit | |
1246 | --help=short display options specific to this package | |
1247 | --help=recursive display the short help of all the included packages | |
1248 | -V, --version display version information and exit | |
1249 | -q, --quiet, --silent do not print \`checking...' messages | |
1250 | --cache-file=FILE cache test results in FILE [disabled] | |
1251 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1252 | -n, --no-create do not create output files | |
1253 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1254 | ||
ad6254c5 AK |
1255 | Installation directories: |
1256 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 1257 | [$ac_default_prefix] |
ad6254c5 | 1258 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 1259 | [PREFIX] |
ad6254c5 AK |
1260 | |
1261 | By default, \`make install' will install all the files in | |
1262 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1263 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1264 | for instance \`--prefix=\$HOME'. | |
1265 | ||
1266 | For better control, use the options below. | |
1267 | ||
1268 | Fine tuning of the installation directories: | |
1269 | --bindir=DIR user executables [EPREFIX/bin] | |
1270 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1271 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ad6254c5 AK |
1272 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1273 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1274 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1275 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1276 | --includedir=DIR C header files [PREFIX/include] | |
1277 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7a197a62 AK |
1278 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1279 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1280 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1281 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1282 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1283 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1284 | --htmldir=DIR html documentation [DOCDIR] | |
1285 | --dvidir=DIR dvi documentation [DOCDIR] | |
1286 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1287 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1288 | _ACEOF |
1289 | ||
1290 | cat <<\_ACEOF | |
1291 | ||
1292 | System types: | |
1293 | --build=BUILD configure for building on BUILD [guessed] | |
1294 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1295 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1296 | _ACEOF | |
1297 | fi | |
1298 | ||
1299 | if test -n "$ac_init_help"; then | |
1300 | ||
1301 | cat <<\_ACEOF | |
1302 | ||
1303 | Optional Features: | |
1304 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1305 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1306 | --enable-jobs=NUM Number of jobs to run simultaneously | |
1307 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
1308 | device-mapper is missing from the kernel | |
1309 | --enable-static_link Use this to link the tools to their libraries | |
1310 | statically. Default is dynamic linking | |
1311 | --enable-readline Enable readline support | |
1312 | --disable-selinux Disable selinux support | |
3d978351 | 1313 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
1314 | --enable-debug Enable debugging |
1315 | --disable-devmapper Disable device-mapper interaction | |
1316 | --disable-o_direct Disable O_DIRECT | |
1317 | --enable-cmdlib Build shared command library | |
1318 | --enable-fsadm Enable fsadm | |
15d91f5a | 1319 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
1320 | --enable-nls Enable Native Language Support |
1321 | ||
1322 | Optional Packages: | |
1323 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1324 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1325 | --with-user=USER Set the owner of installed files | |
1326 | --with-group=GROUP Set the group owner of installed files | |
1327 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
1328 | TYPE=internal | |
1329 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1330 | TYPE=internal | |
1331 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1332 | TYPE=internal | |
1333 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1334 | TYPE=internal | |
1335 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1336 | TYPE=internal | |
5c7fc7c4 | 1337 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1338 | TYPE=none |
ad6254c5 AK |
1339 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
1340 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
1341 | --with-confdir=DIR Configuration files in DIR /etc | |
1342 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1343 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1344 | |
1345 | Some influential environment variables: | |
1346 | CC C compiler command | |
1347 | CFLAGS C compiler flags | |
1348 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1349 | nonstandard directory <lib dir> | |
7a197a62 AK |
1350 | LIBS libraries to pass to the linker, e.g. -l<library> |
1351 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1352 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1353 | CPP C preprocessor |
1354 | ||
1355 | Use these variables to override the choices made by `configure' or to help | |
1356 | it to find libraries and programs with nonstandard names/locations. | |
1357 | ||
1358 | _ACEOF | |
7a197a62 | 1359 | ac_status=$? |
ad6254c5 AK |
1360 | fi |
1361 | ||
1362 | if test "$ac_init_help" = "recursive"; then | |
1363 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1364 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7a197a62 | 1365 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1366 | ac_builddir=. |
1367 | ||
7a197a62 AK |
1368 | case "$ac_dir" in |
1369 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1370 | *) | |
ad6254c5 | 1371 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 AK |
1372 | # A ".." for each directory in $ac_dir_suffix. |
1373 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1374 | case $ac_top_builddir_sub in | |
1375 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1376 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1377 | esac ;; | |
1378 | esac | |
1379 | ac_abs_top_builddir=$ac_pwd | |
1380 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1381 | # for backward compatibility: | |
1382 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1383 | |
1384 | case $srcdir in | |
7a197a62 | 1385 | .) # We are building in place. |
ad6254c5 | 1386 | ac_srcdir=. |
7a197a62 AK |
1387 | ac_top_srcdir=$ac_top_builddir_sub |
1388 | ac_abs_top_srcdir=$ac_pwd ;; | |
1389 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1390 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1391 | ac_top_srcdir=$srcdir |
1392 | ac_abs_top_srcdir=$srcdir ;; | |
1393 | *) # Relative name. | |
1394 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1395 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1396 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1397 | esac |
7a197a62 AK |
1398 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1399 | ||
1400 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1401 | # Check for guested configure. | |
1402 | if test -f "$ac_srcdir/configure.gnu"; then | |
1403 | echo && | |
1404 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1405 | elif test -f "$ac_srcdir/configure"; then | |
1406 | echo && | |
1407 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 AK |
1408 | else |
1409 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
7a197a62 AK |
1410 | fi || ac_status=$? |
1411 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1412 | done |
1413 | fi | |
1414 | ||
7a197a62 | 1415 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1416 | if $ac_init_version; then |
1417 | cat <<\_ACEOF | |
7a197a62 AK |
1418 | configure |
1419 | generated by GNU Autoconf 2.61 | |
ad6254c5 | 1420 | |
7a197a62 AK |
1421 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1422 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ad6254c5 AK |
1423 | This configure script is free software; the Free Software Foundation |
1424 | gives unlimited permission to copy, distribute and modify it. | |
1425 | _ACEOF | |
7a197a62 | 1426 | exit |
ad6254c5 | 1427 | fi |
7a197a62 | 1428 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1429 | This file contains any messages produced by compilers while |
1430 | running configure, to aid debugging if configure makes a mistake. | |
1431 | ||
1432 | It was created by $as_me, which was | |
7a197a62 | 1433 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1434 | |
1435 | $ $0 $@ | |
1436 | ||
1437 | _ACEOF | |
7a197a62 | 1438 | exec 5>>config.log |
ad6254c5 AK |
1439 | { |
1440 | cat <<_ASUNAME | |
1441 | ## --------- ## | |
1442 | ## Platform. ## | |
1443 | ## --------- ## | |
1444 | ||
1445 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1446 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1447 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1448 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1449 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1450 | ||
1451 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1452 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1453 | ||
1454 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1455 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1456 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1457 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1458 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1459 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1460 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1461 | ||
1462 | _ASUNAME | |
1463 | ||
1464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1465 | for as_dir in $PATH | |
1466 | do | |
1467 | IFS=$as_save_IFS | |
1468 | test -z "$as_dir" && as_dir=. | |
1469 | echo "PATH: $as_dir" | |
1470 | done | |
7a197a62 | 1471 | IFS=$as_save_IFS |
ad6254c5 AK |
1472 | |
1473 | } >&5 | |
1474 | ||
1475 | cat >&5 <<_ACEOF | |
1476 | ||
1477 | ||
1478 | ## ----------- ## | |
1479 | ## Core tests. ## | |
1480 | ## ----------- ## | |
1481 | ||
1482 | _ACEOF | |
1483 | ||
1484 | ||
1485 | # Keep a trace of the command line. | |
1486 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1487 | # Strip out --silent because we don't want to record it for future runs. | |
1488 | # Also quote any args containing shell meta-characters. | |
1489 | # Make two passes to allow for proper duplicate-argument suppression. | |
1490 | ac_configure_args= | |
1491 | ac_configure_args0= | |
1492 | ac_configure_args1= | |
ad6254c5 AK |
1493 | ac_must_keep_next=false |
1494 | for ac_pass in 1 2 | |
1495 | do | |
1496 | for ac_arg | |
1497 | do | |
1498 | case $ac_arg in | |
1499 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1501 | | -silent | --silent | --silen | --sile | --sil) | |
1502 | continue ;; | |
7a197a62 | 1503 | *\'*) |
ad6254c5 AK |
1504 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1505 | esac | |
1506 | case $ac_pass in | |
1507 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1508 | 2) | |
1509 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1510 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1511 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1512 | else |
8a2fc586 AK |
1513 | case $ac_arg in |
1514 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1515 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1516 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1517 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1518 | case "$ac_configure_args0 " in | |
1519 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1520 | esac | |
1521 | ;; | |
1522 | -* ) ac_must_keep_next=true ;; | |
1523 | esac | |
ad6254c5 | 1524 | fi |
7a197a62 | 1525 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1526 | ;; |
1527 | esac | |
1528 | done | |
1529 | done | |
1530 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1531 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1532 | ||
1533 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1534 | # config.log. We remove comments because anyway the quotes in there | |
1535 | # would cause problems or look ugly. | |
7a197a62 AK |
1536 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1537 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1538 | trap 'exit_status=$? |
1539 | # Save into config.log some information that might help in debugging. | |
1540 | { | |
1541 | echo | |
1542 | ||
1543 | cat <<\_ASBOX | |
1544 | ## ---------------- ## | |
1545 | ## Cache variables. ## | |
1546 | ## ---------------- ## | |
1547 | _ASBOX | |
1548 | echo | |
1549 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1550 | ( |
1551 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1552 | eval ac_val=\$$ac_var | |
1553 | case $ac_val in #( | |
1554 | *${as_nl}*) | |
1555 | case $ac_var in #( | |
1556 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1557 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1558 | esac | |
1559 | case $ac_var in #( | |
1560 | _ | IFS | as_nl) ;; #( | |
1561 | *) $as_unset $ac_var ;; | |
1562 | esac ;; | |
1563 | esac | |
1564 | done | |
ad6254c5 | 1565 | (set) 2>&1 | |
7a197a62 AK |
1566 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1567 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1568 | sed -n \ |
7a197a62 AK |
1569 | "s/'\''/'\''\\\\'\'''\''/g; |
1570 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1571 | ;; #( | |
ad6254c5 | 1572 | *) |
7a197a62 | 1573 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1574 | ;; |
7a197a62 AK |
1575 | esac | |
1576 | sort | |
1577 | ) | |
ad6254c5 AK |
1578 | echo |
1579 | ||
1580 | cat <<\_ASBOX | |
1581 | ## ----------------- ## | |
1582 | ## Output variables. ## | |
1583 | ## ----------------- ## | |
1584 | _ASBOX | |
1585 | echo | |
1586 | for ac_var in $ac_subst_vars | |
1587 | do | |
7a197a62 AK |
1588 | eval ac_val=\$$ac_var |
1589 | case $ac_val in | |
1590 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1591 | esac | |
1592 | echo "$ac_var='\''$ac_val'\''" | |
ad6254c5 AK |
1593 | done | sort |
1594 | echo | |
1595 | ||
1596 | if test -n "$ac_subst_files"; then | |
1597 | cat <<\_ASBOX | |
7a197a62 AK |
1598 | ## ------------------- ## |
1599 | ## File substitutions. ## | |
1600 | ## ------------------- ## | |
ad6254c5 AK |
1601 | _ASBOX |
1602 | echo | |
1603 | for ac_var in $ac_subst_files | |
1604 | do | |
7a197a62 AK |
1605 | eval ac_val=\$$ac_var |
1606 | case $ac_val in | |
1607 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1608 | esac | |
1609 | echo "$ac_var='\''$ac_val'\''" | |
ad6254c5 AK |
1610 | done | sort |
1611 | echo | |
1612 | fi | |
1613 | ||
1614 | if test -s confdefs.h; then | |
1615 | cat <<\_ASBOX | |
1616 | ## ----------- ## | |
1617 | ## confdefs.h. ## | |
1618 | ## ----------- ## | |
1619 | _ASBOX | |
1620 | echo | |
7a197a62 | 1621 | cat confdefs.h |
ad6254c5 AK |
1622 | echo |
1623 | fi | |
1624 | test "$ac_signal" != 0 && | |
1625 | echo "$as_me: caught signal $ac_signal" | |
1626 | echo "$as_me: exit $exit_status" | |
1627 | } >&5 | |
7a197a62 AK |
1628 | rm -f core *.core core.conftest.* && |
1629 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1630 | exit $exit_status |
7a197a62 | 1631 | ' 0 |
ad6254c5 AK |
1632 | for ac_signal in 1 2 13 15; do |
1633 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1634 | done | |
1635 | ac_signal=0 | |
1636 | ||
1637 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1638 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1639 | |
1640 | # Predefined preprocessor variables. | |
1641 | ||
1642 | cat >>confdefs.h <<_ACEOF | |
1643 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1644 | _ACEOF | |
1645 | ||
1646 | ||
1647 | cat >>confdefs.h <<_ACEOF | |
1648 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1649 | _ACEOF | |
1650 | ||
1651 | ||
1652 | cat >>confdefs.h <<_ACEOF | |
1653 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1654 | _ACEOF | |
8106cdd5 | 1655 | |
ad6254c5 AK |
1656 | |
1657 | cat >>confdefs.h <<_ACEOF | |
1658 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1659 | _ACEOF | |
1660 | ||
1661 | ||
1662 | cat >>confdefs.h <<_ACEOF | |
1663 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1664 | _ACEOF | |
1665 | ||
1666 | ||
1667 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 | 1668 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 AK |
1669 | if test -n "$CONFIG_SITE"; then |
1670 | set x "$CONFIG_SITE" | |
1671 | elif test "x$prefix" != xNONE; then | |
1672 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1673 | else | |
1674 | set x "$ac_default_prefix/share/config.site" \ | |
1675 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1676 | fi |
7a197a62 AK |
1677 | shift |
1678 | for ac_site_file | |
1679 | do | |
795ca3e5 | 1680 | if test -r "$ac_site_file"; then |
ad6254c5 AK |
1681 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1682 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1683 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1684 | . "$ac_site_file" |
1685 | fi | |
1686 | done | |
1687 | ||
1688 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1689 | # Some versions of bash will fail to source /dev/null (special |
1690 | # files actually), so we avoid doing that. | |
1691 | if test -f "$cache_file"; then | |
1692 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1693 | echo "$as_me: loading cache $cache_file" >&6;} | |
1694 | case $cache_file in | |
7a197a62 AK |
1695 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1696 | *) . "./$cache_file";; | |
ad6254c5 AK |
1697 | esac |
1698 | fi | |
795ca3e5 | 1699 | else |
ad6254c5 AK |
1700 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1701 | echo "$as_me: creating cache $cache_file" >&6;} | |
1702 | >$cache_file | |
1703 | fi | |
1704 | ||
1705 | # Check that the precious variables saved in the cache have kept the same | |
1706 | # value. | |
1707 | ac_cache_corrupted=false | |
7a197a62 | 1708 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1709 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1710 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1711 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1712 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1713 | case $ac_old_set,$ac_new_set in |
1714 | set,) | |
1715 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1716 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1717 | ac_cache_corrupted=: ;; | |
1718 | ,set) | |
1719 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1720 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1721 | ac_cache_corrupted=: ;; | |
1722 | ,);; | |
1723 | *) | |
1724 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8a2fc586 | 1725 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1726 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8a2fc586 | 1727 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1728 | echo "$as_me: former value: $ac_old_val" >&2;} |
8a2fc586 | 1729 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1730 | echo "$as_me: current value: $ac_new_val" >&2;} |
8a2fc586 | 1731 | ac_cache_corrupted=: |
ad6254c5 AK |
1732 | fi;; |
1733 | esac | |
1734 | # Pass precious variables to config.status. | |
1735 | if test "$ac_new_set" = set; then | |
1736 | case $ac_new_val in | |
7a197a62 | 1737 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1738 | *) ac_arg=$ac_var=$ac_new_val ;; |
1739 | esac | |
1740 | case " $ac_configure_args " in | |
1741 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1742 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1743 | esac | |
1744 | fi | |
1745 | done | |
1746 | if $ac_cache_corrupted; then | |
1747 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1748 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1749 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1750 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1751 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1752 | fi |
1753 | ||
ad6254c5 AK |
1754 | |
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
7a197a62 AK |
1770 | ac_ext=c |
1771 | ac_cpp='$CPP $CPPFLAGS' | |
1772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1775 | |
795ca3e5 AK |
1776 | |
1777 | ||
1778 | ||
72b2cb61 | 1779 | ################################################################################ |
7a197a62 | 1780 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1781 | |
1782 | ||
80992638 | 1783 | ################################################################################ |
795ca3e5 | 1784 | ac_aux_dir= |
7a197a62 AK |
1785 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1786 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1787 | ac_aux_dir=$ac_dir |
1788 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1789 | break | |
7a197a62 | 1790 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1791 | ac_aux_dir=$ac_dir |
1792 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1793 | break | |
7a197a62 | 1794 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1795 | ac_aux_dir=$ac_dir |
1796 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1797 | break | |
795ca3e5 AK |
1798 | fi |
1799 | done | |
1800 | if test -z "$ac_aux_dir"; then | |
7a197a62 AK |
1801 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1802 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1803 | { (exit 1); exit 1; }; } |
795ca3e5 | 1804 | fi |
7a197a62 AK |
1805 | |
1806 | # These three variables are undocumented and unsupported, | |
1807 | # and are intended to be withdrawn in a future Autoconf release. | |
1808 | # They can cause serious problems if a builder's source tree is in a directory | |
1809 | # whose full name contains unusual characters. | |
1810 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1811 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1812 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1813 | ||
8ce0cbda AK |
1814 | |
1815 | ||
ad6254c5 | 1816 | ################################################################################ |
8ce0cbda | 1817 | # Make sure we can run config.sub. |
7a197a62 AK |
1818 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1819 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1820 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1821 | { (exit 1); exit 1; }; } |
1822 | ||
7a197a62 AK |
1823 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1824 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 AK |
1825 | if test "${ac_cv_build+set}" = set; then |
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1827 | else | |
7a197a62 AK |
1828 | ac_build_alias=$build_alias |
1829 | test "x$ac_build_alias" = x && | |
1830 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1831 | test "x$ac_build_alias" = x && | |
ad6254c5 AK |
1832 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1833 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1834 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
1835 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1836 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1837 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1838 | { (exit 1); exit 1; }; } |
1839 | ||
1840 | fi | |
7a197a62 AK |
1841 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1842 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1843 | case $ac_cv_build in | |
1844 | *-*-*) ;; | |
1845 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1846 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1847 | { (exit 1); exit 1; }; };; | |
1848 | esac | |
ad6254c5 | 1849 | build=$ac_cv_build |
7a197a62 AK |
1850 | ac_save_IFS=$IFS; IFS='-' |
1851 | set x $ac_cv_build | |
1852 | shift | |
1853 | build_cpu=$1 | |
1854 | build_vendor=$2 | |
1855 | shift; shift | |
1856 | # Remember, the first character of IFS is used to create $*, | |
1857 | # except with old shells: | |
1858 | build_os=$* | |
1859 | IFS=$ac_save_IFS | |
1860 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1861 | |
1862 | ||
7a197a62 AK |
1863 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1864 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 AK |
1865 | if test "${ac_cv_host+set}" = set; then |
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1867 | else | |
7a197a62 AK |
1868 | if test "x$host_alias" = x; then |
1869 | ac_cv_host=$ac_cv_build | |
1870 | else | |
1871 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1872 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1873 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1874 | { (exit 1); exit 1; }; } |
7a197a62 | 1875 | fi |
ad6254c5 AK |
1876 | |
1877 | fi | |
7a197a62 AK |
1878 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1879 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1880 | case $ac_cv_host in | |
1881 | *-*-*) ;; | |
1882 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1883 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1884 | { (exit 1); exit 1; }; };; | |
1885 | esac | |
ad6254c5 | 1886 | host=$ac_cv_host |
7a197a62 AK |
1887 | ac_save_IFS=$IFS; IFS='-' |
1888 | set x $ac_cv_host | |
1889 | shift | |
1890 | host_cpu=$1 | |
1891 | host_vendor=$2 | |
1892 | shift; shift | |
1893 | # Remember, the first character of IFS is used to create $*, | |
1894 | # except with old shells: | |
1895 | host_os=$* | |
1896 | IFS=$ac_save_IFS | |
1897 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1898 | |
1899 | ||
7a197a62 AK |
1900 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1901 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 AK |
1902 | if test "${ac_cv_target+set}" = set; then |
1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1904 | else | |
7a197a62 AK |
1905 | if test "x$target_alias" = x; then |
1906 | ac_cv_target=$ac_cv_host | |
1907 | else | |
1908 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1909 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
1910 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1911 | { (exit 1); exit 1; }; } |
7a197a62 | 1912 | fi |
8ce0cbda | 1913 | |
ad6254c5 | 1914 | fi |
7a197a62 AK |
1915 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1916 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
1917 | case $ac_cv_target in | |
1918 | *-*-*) ;; | |
1919 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
1920 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
1921 | { (exit 1); exit 1; }; };; | |
1922 | esac | |
ad6254c5 | 1923 | target=$ac_cv_target |
7a197a62 AK |
1924 | ac_save_IFS=$IFS; IFS='-' |
1925 | set x $ac_cv_target | |
1926 | shift | |
1927 | target_cpu=$1 | |
1928 | target_vendor=$2 | |
1929 | shift; shift | |
1930 | # Remember, the first character of IFS is used to create $*, | |
1931 | # except with old shells: | |
1932 | target_os=$* | |
1933 | IFS=$ac_save_IFS | |
1934 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1935 | |
8ce0cbda | 1936 | |
ad6254c5 AK |
1937 | # The aliases save the names the user supplied, while $host etc. |
1938 | # will get canonicalized. | |
1939 | test -n "$target_alias" && | |
8ce0cbda AK |
1940 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1941 | NONENONEs,x,x, && | |
1942 | program_prefix=${target_alias}- | |
1943 | ||
8ce0cbda AK |
1944 | case "$host_os" in |
1945 | linux*) | |
1946 | CFLAGS="$CFLAGS" | |
1947 | COPTIMISE_FLAG="-O2" | |
1948 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1949 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1950 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1951 | LDDEPS="$LDDEPS .export.sym" | |
1952 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1953 | LIB_SUFFIX="so" |
8ce0cbda AK |
1954 | DEVMAPPER=yes |
1955 | ODIRECT=yes | |
1956 | SELINUX=yes | |
8b1a3214 | 1957 | REALTIME=yes |
8ce0cbda AK |
1958 | CLUSTER=internal |
1959 | FSADM=no ;; | |
1960 | darwin*) | |
1961 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1962 | COPTIMISE_FLAG="-O2" | |
1963 | CLDFLAGS="$CLDFLAGS" | |
1964 | CLDWHOLEARCHIVE="-all_load" | |
1965 | CLDNOWHOLEARCHIVE= | |
1966 | LDDEPS="$LDDEPS" | |
1967 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1968 | LIB_SUFFIX="dylib" |
a653923f | 1969 | DEVMAPPER=yes |
8ce0cbda AK |
1970 | ODIRECT=no |
1971 | SELINUX=no | |
8b1a3214 | 1972 | REALTIME=no |
8ce0cbda AK |
1973 | CLUSTER=none |
1974 | FSADM=no ;; | |
1975 | esac | |
1976 | ||
80992638 | 1977 | ################################################################################ |
ad6254c5 | 1978 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1979 | do |
ad6254c5 | 1980 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1981 | set dummy $ac_prog; ac_word=$2 |
7a197a62 AK |
1982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
1984 | if test "${ac_cv_prog_AWK+set}" = set; then |
1985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1986 | else |
1987 | if test -n "$AWK"; then | |
1988 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1989 | else | |
ad6254c5 AK |
1990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1991 | for as_dir in $PATH | |
1992 | do | |
1993 | IFS=$as_save_IFS | |
1994 | test -z "$as_dir" && as_dir=. | |
1995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 1996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
1997 | ac_cv_prog_AWK="$ac_prog" |
1998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1999 | break 2 | |
2000 | fi | |
2001 | done | |
2002 | done | |
7a197a62 | 2003 | IFS=$as_save_IFS |
ad6254c5 | 2004 | |
795ca3e5 AK |
2005 | fi |
2006 | fi | |
ad6254c5 | 2007 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2008 | if test -n "$AWK"; then |
7a197a62 AK |
2009 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2010 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2011 | else |
7a197a62 AK |
2012 | { echo "$as_me:$LINENO: result: no" >&5 |
2013 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2014 | fi |
2015 | ||
7a197a62 | 2016 | |
ad6254c5 AK |
2017 | test -n "$AWK" && break |
2018 | done | |
2019 | ||
2020 | ac_ext=c | |
2021 | ac_cpp='$CPP $CPPFLAGS' | |
2022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2025 | if test -n "$ac_tool_prefix"; then | |
2026 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2027 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7a197a62 AK |
2028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2030 | if test "${ac_cv_prog_CC+set}" = set; then |
2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2032 | else | |
2033 | if test -n "$CC"; then | |
2034 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2035 | else | |
2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2037 | for as_dir in $PATH | |
2038 | do | |
2039 | IFS=$as_save_IFS | |
2040 | test -z "$as_dir" && as_dir=. | |
2041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2043 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2045 | break 2 | |
2046 | fi | |
2047 | done | |
8106cdd5 | 2048 | done |
7a197a62 | 2049 | IFS=$as_save_IFS |
8106cdd5 | 2050 | |
ad6254c5 AK |
2051 | fi |
2052 | fi | |
2053 | CC=$ac_cv_prog_CC | |
2054 | if test -n "$CC"; then | |
7a197a62 AK |
2055 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2056 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2057 | else |
7a197a62 AK |
2058 | { echo "$as_me:$LINENO: result: no" >&5 |
2059 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2060 | fi |
2061 | ||
7a197a62 | 2062 | |
ad6254c5 AK |
2063 | fi |
2064 | if test -z "$ac_cv_prog_CC"; then | |
2065 | ac_ct_CC=$CC | |
2066 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2067 | set dummy gcc; ac_word=$2 |
7a197a62 AK |
2068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2070 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2072 | else | |
2073 | if test -n "$ac_ct_CC"; then | |
2074 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2075 | else | |
2076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2077 | for as_dir in $PATH | |
2078 | do | |
2079 | IFS=$as_save_IFS | |
2080 | test -z "$as_dir" && as_dir=. | |
2081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2083 | ac_cv_prog_ac_ct_CC="gcc" |
2084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2085 | break 2 | |
2086 | fi | |
2087 | done | |
2088 | done | |
7a197a62 | 2089 | IFS=$as_save_IFS |
ad6254c5 AK |
2090 | |
2091 | fi | |
2092 | fi | |
2093 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2094 | if test -n "$ac_ct_CC"; then | |
7a197a62 AK |
2095 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2096 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2097 | else |
7a197a62 AK |
2098 | { echo "$as_me:$LINENO: result: no" >&5 |
2099 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2100 | fi |
2101 | ||
7a197a62 AK |
2102 | if test "x$ac_ct_CC" = x; then |
2103 | CC="" | |
2104 | else | |
2105 | case $cross_compiling:$ac_tool_warned in | |
2106 | yes:) | |
2107 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2108 | whose name does not start with the host triplet. If you think this | |
2109 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2110 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2111 | whose name does not start with the host triplet. If you think this | |
2112 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2113 | ac_tool_warned=yes ;; | |
2114 | esac | |
2115 | CC=$ac_ct_CC | |
2116 | fi | |
ad6254c5 AK |
2117 | else |
2118 | CC="$ac_cv_prog_CC" | |
2119 | fi | |
2120 | ||
2121 | if test -z "$CC"; then | |
7a197a62 AK |
2122 | if test -n "$ac_tool_prefix"; then |
2123 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2124 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
7a197a62 AK |
2125 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2127 | if test "${ac_cv_prog_CC+set}" = set; then |
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
2129 | else |
2130 | if test -n "$CC"; then | |
2131 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2132 | else | |
ad6254c5 AK |
2133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2134 | for as_dir in $PATH | |
2135 | do | |
2136 | IFS=$as_save_IFS | |
2137 | test -z "$as_dir" && as_dir=. | |
2138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2140 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2142 | break 2 | |
2143 | fi | |
2144 | done | |
2145 | done | |
7a197a62 | 2146 | IFS=$as_save_IFS |
ad6254c5 | 2147 | |
8106cdd5 AK |
2148 | fi |
2149 | fi | |
ad6254c5 | 2150 | CC=$ac_cv_prog_CC |
8106cdd5 | 2151 | if test -n "$CC"; then |
7a197a62 AK |
2152 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2153 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2154 | else |
7a197a62 AK |
2155 | { echo "$as_me:$LINENO: result: no" >&5 |
2156 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2157 | fi |
2158 | ||
8106cdd5 | 2159 | |
7a197a62 | 2160 | fi |
ad6254c5 | 2161 | fi |
795ca3e5 AK |
2162 | if test -z "$CC"; then |
2163 | # Extract the first word of "cc", so it can be a program name with args. | |
2164 | set dummy cc; ac_word=$2 | |
7a197a62 AK |
2165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2167 | if test "${ac_cv_prog_CC+set}" = set; then |
2168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2169 | else |
2170 | if test -n "$CC"; then | |
2171 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2172 | else | |
795ca3e5 | 2173 | ac_prog_rejected=no |
ad6254c5 AK |
2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2175 | for as_dir in $PATH | |
2176 | do | |
2177 | IFS=$as_save_IFS | |
2178 | test -z "$as_dir" && as_dir=. | |
2179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2181 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2182 | ac_prog_rejected=yes | |
2183 | continue | |
2184 | fi | |
2185 | ac_cv_prog_CC="cc" | |
2186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2187 | break 2 | |
2188 | fi | |
2189 | done | |
2190 | done | |
7a197a62 | 2191 | IFS=$as_save_IFS |
ad6254c5 | 2192 | |
795ca3e5 AK |
2193 | if test $ac_prog_rejected = yes; then |
2194 | # We found a bogon in the path, so make sure we never use it. | |
2195 | set dummy $ac_cv_prog_CC | |
2196 | shift | |
ad6254c5 | 2197 | if test $# != 0; then |
795ca3e5 AK |
2198 | # We chose a different compiler from the bogus one. |
2199 | # However, it has the same basename, so the bogon will be chosen | |
2200 | # first if we set CC to just the basename; use the full file name. | |
2201 | shift | |
ad6254c5 | 2202 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2203 | fi |
2204 | fi | |
2205 | fi | |
2206 | fi | |
ad6254c5 | 2207 | CC=$ac_cv_prog_CC |
795ca3e5 | 2208 | if test -n "$CC"; then |
7a197a62 AK |
2209 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2210 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2211 | else |
7a197a62 AK |
2212 | { echo "$as_me:$LINENO: result: no" >&5 |
2213 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2214 | fi |
2215 | ||
7a197a62 | 2216 | |
ad6254c5 AK |
2217 | fi |
2218 | if test -z "$CC"; then | |
2219 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2220 | for ac_prog in cl.exe |
ad6254c5 AK |
2221 | do |
2222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7a197a62 AK |
2224 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2226 | if test "${ac_cv_prog_CC+set}" = set; then |
2227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2228 | else |
2229 | if test -n "$CC"; then | |
2230 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2231 | else | |
ad6254c5 AK |
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2233 | for as_dir in $PATH | |
2234 | do | |
2235 | IFS=$as_save_IFS | |
2236 | test -z "$as_dir" && as_dir=. | |
2237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2239 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2241 | break 2 | |
2242 | fi | |
2243 | done | |
2244 | done | |
7a197a62 | 2245 | IFS=$as_save_IFS |
ad6254c5 | 2246 | |
795ca3e5 AK |
2247 | fi |
2248 | fi | |
ad6254c5 | 2249 | CC=$ac_cv_prog_CC |
795ca3e5 | 2250 | if test -n "$CC"; then |
7a197a62 AK |
2251 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2252 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2253 | else |
7a197a62 AK |
2254 | { echo "$as_me:$LINENO: result: no" >&5 |
2255 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2256 | fi |
ad6254c5 | 2257 | |
7a197a62 | 2258 | |
ad6254c5 AK |
2259 | test -n "$CC" && break |
2260 | done | |
2261 | fi | |
2262 | if test -z "$CC"; then | |
2263 | ac_ct_CC=$CC | |
7a197a62 | 2264 | for ac_prog in cl.exe |
ad6254c5 AK |
2265 | do |
2266 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2267 | set dummy $ac_prog; ac_word=$2 | |
7a197a62 AK |
2268 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
2270 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2272 | else | |
2273 | if test -n "$ac_ct_CC"; then | |
2274 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2275 | else | |
2276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2277 | for as_dir in $PATH | |
2278 | do | |
2279 | IFS=$as_save_IFS | |
2280 | test -z "$as_dir" && as_dir=. | |
2281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2283 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2285 | break 2 | |
795ca3e5 | 2286 | fi |
ad6254c5 AK |
2287 | done |
2288 | done | |
7a197a62 | 2289 | IFS=$as_save_IFS |
ad6254c5 AK |
2290 | |
2291 | fi | |
2292 | fi | |
2293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2294 | if test -n "$ac_ct_CC"; then | |
7a197a62 AK |
2295 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2296 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2297 | else |
7a197a62 AK |
2298 | { echo "$as_me:$LINENO: result: no" >&5 |
2299 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2300 | fi |
2301 | ||
7a197a62 | 2302 | |
ad6254c5 AK |
2303 | test -n "$ac_ct_CC" && break |
2304 | done | |
795ca3e5 | 2305 | |
7a197a62 AK |
2306 | if test "x$ac_ct_CC" = x; then |
2307 | CC="" | |
2308 | else | |
2309 | case $cross_compiling:$ac_tool_warned in | |
2310 | yes:) | |
2311 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2312 | whose name does not start with the host triplet. If you think this | |
2313 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2314 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2315 | whose name does not start with the host triplet. If you think this | |
2316 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2317 | ac_tool_warned=yes ;; | |
2318 | esac | |
2319 | CC=$ac_ct_CC | |
2320 | fi | |
ad6254c5 AK |
2321 | fi |
2322 | ||
2323 | fi | |
2324 | ||
2325 | ||
2326 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2327 | See \`config.log' for more details." >&5 | |
2328 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2329 | See \`config.log' for more details." >&2;} | |
2330 | { (exit 1); exit 1; }; } | |
2331 | ||
2332 | # Provide some information about the compiler. | |
7a197a62 | 2333 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
ad6254c5 | 2334 | ac_compiler=`set X $ac_compile; echo $2` |
7a197a62 AK |
2335 | { (ac_try="$ac_compiler --version >&5" |
2336 | case "(($ac_try" in | |
2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2338 | *) ac_try_echo=$ac_try;; | |
2339 | esac | |
2340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2341 | (eval "$ac_compiler --version >&5") 2>&5 | |
ad6254c5 AK |
2342 | ac_status=$? |
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2344 | (exit $ac_status); } | |
7a197a62 AK |
2345 | { (ac_try="$ac_compiler -v >&5" |
2346 | case "(($ac_try" in | |
2347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2348 | *) ac_try_echo=$ac_try;; | |
2349 | esac | |
2350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2351 | (eval "$ac_compiler -v >&5") 2>&5 | |
ad6254c5 AK |
2352 | ac_status=$? |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2354 | (exit $ac_status); } | |
7a197a62 AK |
2355 | { (ac_try="$ac_compiler -V >&5" |
2356 | case "(($ac_try" in | |
2357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2358 | *) ac_try_echo=$ac_try;; | |
2359 | esac | |
2360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2361 | (eval "$ac_compiler -V >&5") 2>&5 | |
ad6254c5 AK |
2362 | ac_status=$? |
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2364 | (exit $ac_status); } | |
2365 | ||
2366 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2367 | /* confdefs.h. */ |
2368 | _ACEOF | |
2369 | cat confdefs.h >>conftest.$ac_ext | |
2370 | cat >>conftest.$ac_ext <<_ACEOF | |
2371 | /* end confdefs.h. */ | |
2372 | ||
2373 | int | |
2374 | main () | |
2375 | { | |
2376 | ||
2377 | ; | |
2378 | return 0; | |
2379 | } | |
2380 | _ACEOF | |
2381 | ac_clean_files_save=$ac_clean_files | |
2382 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2383 | # Try to create an executable without -o first, disregard a.out. | |
2384 | # It will help us diagnose broken compilers, and finding out an intuition | |
2385 | # of exeext. | |
7a197a62 AK |
2386 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2387 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
ad6254c5 | 2388 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
7a197a62 AK |
2389 | # |
2390 | # List of possible output files, starting from the most likely. | |
2391 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2392 | # only as a last resort. b.out is created by i960 compilers. | |
2393 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2394 | # | |
2395 | # The IRIX 6 linker writes into existing files which may not be | |
2396 | # executable, retaining their permissions. Remove them first so a | |
2397 | # subsequent execution test works. | |
2398 | ac_rmfiles= | |
2399 | for ac_file in $ac_files | |
2400 | do | |
2401 | case $ac_file in | |
2402 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2403 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2404 | esac | |
2405 | done | |
2406 | rm -f $ac_rmfiles | |
2407 | ||
2408 | if { (ac_try="$ac_link_default" | |
2409 | case "(($ac_try" in | |
2410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2411 | *) ac_try_echo=$ac_try;; | |
2412 | esac | |
2413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2414 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 AK |
2415 | ac_status=$? |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); }; then | |
7a197a62 AK |
2418 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2419 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2420 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2421 | # so that the user can short-circuit this test for compilers unknown to | |
2422 | # Autoconf. | |
2423 | for ac_file in $ac_files '' | |
ad6254c5 AK |
2424 | do |
2425 | test -f "$ac_file" || continue | |
2426 | case $ac_file in | |
7a197a62 | 2427 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2428 | ;; |
ad6254c5 | 2429 | [ab].out ) |
8a2fc586 AK |
2430 | # We found the default executable, but exeext='' is most |
2431 | # certainly right. | |
2432 | break;; | |
ad6254c5 | 2433 | *.* ) |
7a197a62 AK |
2434 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2435 | then :; else | |
2436 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2437 | fi | |
2438 | # We set ac_cv_exeext here because the later test for it is not | |
2439 | # safe: cross compilers may not add the suffix if given an `-o' | |
2440 | # argument, so we may need to know it at that point already. | |
2441 | # Even if this section looks crufty: it has the advantage of | |
2442 | # actually working. | |
8a2fc586 | 2443 | break;; |
ad6254c5 | 2444 | * ) |
8a2fc586 | 2445 | break;; |
ad6254c5 AK |
2446 | esac |
2447 | done | |
7a197a62 AK |
2448 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2449 | ||
ad6254c5 | 2450 | else |
7a197a62 AK |
2451 | ac_file='' |
2452 | fi | |
2453 | ||
2454 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2455 | echo "${ECHO_T}$ac_file" >&6; } | |
2456 | if test -z "$ac_file"; then | |
ad6254c5 AK |
2457 | echo "$as_me: failed program was:" >&5 |
2458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2459 | ||
2460 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2461 | See \`config.log' for more details." >&5 | |
2462 | echo "$as_me: error: C compiler cannot create executables | |
2463 | See \`config.log' for more details." >&2;} | |
2464 | { (exit 77); exit 77; }; } | |
2465 | fi | |
2466 | ||
2467 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2468 | |
7a197a62 | 2469 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2470 | # the compiler is broken, or we cross compile. |
7a197a62 AK |
2471 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2472 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2473 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2474 | # If not cross compiling, check that we can run a simple program. | |
2475 | if test "$cross_compiling" != yes; then | |
2476 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2477 | { (case "(($ac_try" in |
2478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2479 | *) ac_try_echo=$ac_try;; | |
2480 | esac | |
2481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2482 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
2483 | ac_status=$? |
2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2485 | (exit $ac_status); }; }; then | |
2486 | cross_compiling=no | |
795ca3e5 | 2487 | else |
ad6254c5 AK |
2488 | if test "$cross_compiling" = maybe; then |
2489 | cross_compiling=yes | |
2490 | else | |
2491 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2492 | If you meant to cross compile, use \`--host'. | |
2493 | See \`config.log' for more details." >&5 | |
2494 | echo "$as_me: error: cannot run C compiled programs. | |
2495 | If you meant to cross compile, use \`--host'. | |
2496 | See \`config.log' for more details." >&2;} | |
2497 | { (exit 1); exit 1; }; } | |
2498 | fi | |
795ca3e5 | 2499 | fi |
80992638 | 2500 | fi |
7a197a62 AK |
2501 | { echo "$as_me:$LINENO: result: yes" >&5 |
2502 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 AK |
2503 | |
2504 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2505 | ac_clean_files=$ac_clean_files_save | |
7a197a62 | 2506 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2507 | # the compiler is broken, or we cross compile. |
7a197a62 AK |
2508 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2509 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2510 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2511 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2512 | ||
2513 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2514 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2515 | if { (ac_try="$ac_link" | |
2516 | case "(($ac_try" in | |
2517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2518 | *) ac_try_echo=$ac_try;; | |
2519 | esac | |
2520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2521 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
2522 | ac_status=$? |
2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2524 | (exit $ac_status); }; then | |
2525 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2526 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2527 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2528 | # `rm'. | |
2529 | for ac_file in conftest.exe conftest conftest.*; do | |
2530 | test -f "$ac_file" || continue | |
2531 | case $ac_file in | |
7a197a62 | 2532 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2533 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2534 | break;; |
ad6254c5 AK |
2535 | * ) break;; |
2536 | esac | |
2537 | done | |
80992638 | 2538 | else |
ad6254c5 AK |
2539 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2540 | See \`config.log' for more details." >&5 | |
2541 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2542 | See \`config.log' for more details." >&2;} | |
2543 | { (exit 1); exit 1; }; } | |
2544 | fi | |
2545 | ||
2546 | rm -f conftest$ac_cv_exeext | |
7a197a62 AK |
2547 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2548 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2549 | |
2550 | rm -f conftest.$ac_ext | |
2551 | EXEEXT=$ac_cv_exeext | |
2552 | ac_exeext=$EXEEXT | |
7a197a62 AK |
2553 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2554 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 AK |
2555 | if test "${ac_cv_objext+set}" = set; then |
2556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2557 | else |
ad6254c5 | 2558 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2559 | /* confdefs.h. */ |
2560 | _ACEOF | |
2561 | cat confdefs.h >>conftest.$ac_ext | |
2562 | cat >>conftest.$ac_ext <<_ACEOF | |
2563 | /* end confdefs.h. */ | |
2564 | ||
2565 | int | |
2566 | main () | |
2567 | { | |
2568 | ||
2569 | ; | |
2570 | return 0; | |
2571 | } | |
2572 | _ACEOF | |
2573 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2574 | if { (ac_try="$ac_compile" |
2575 | case "(($ac_try" in | |
2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2577 | *) ac_try_echo=$ac_try;; | |
2578 | esac | |
2579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2580 | (eval "$ac_compile") 2>&5 | |
ad6254c5 AK |
2581 | ac_status=$? |
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2583 | (exit $ac_status); }; then | |
7a197a62 AK |
2584 | for ac_file in conftest.o conftest.obj conftest.*; do |
2585 | test -f "$ac_file" || continue; | |
ad6254c5 | 2586 | case $ac_file in |
7a197a62 | 2587 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2588 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2589 | break;; | |
2590 | esac | |
2591 | done | |
2592 | else | |
2593 | echo "$as_me: failed program was:" >&5 | |
2594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2595 | ||
2596 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2597 | See \`config.log' for more details." >&5 | |
2598 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2599 | See \`config.log' for more details." >&2;} | |
2600 | { (exit 1); exit 1; }; } | |
2601 | fi | |
2602 | ||
2603 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2604 | fi | |
7a197a62 AK |
2605 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2606 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2607 | OBJEXT=$ac_cv_objext |
2608 | ac_objext=$OBJEXT | |
7a197a62 AK |
2609 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2610 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 AK |
2611 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2613 | else | |
2614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2615 | /* confdefs.h. */ |
2616 | _ACEOF | |
2617 | cat confdefs.h >>conftest.$ac_ext | |
2618 | cat >>conftest.$ac_ext <<_ACEOF | |
2619 | /* end confdefs.h. */ | |
2620 | ||
2621 | int | |
2622 | main () | |
2623 | { | |
2624 | #ifndef __GNUC__ | |
2625 | choke me | |
2626 | #endif | |
80992638 | 2627 | |
ad6254c5 AK |
2628 | ; |
2629 | return 0; | |
2630 | } | |
2631 | _ACEOF | |
2632 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2633 | if { (ac_try="$ac_compile" |
2634 | case "(($ac_try" in | |
2635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2636 | *) ac_try_echo=$ac_try;; | |
2637 | esac | |
2638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2639 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 2640 | ac_status=$? |
8a2fc586 AK |
2641 | grep -v '^ *+' conftest.er1 >conftest.err |
2642 | rm -f conftest.er1 | |
2643 | cat conftest.err >&5 | |
ad6254c5 | 2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2645 | (exit $ac_status); } && { |
2646 | test -z "$ac_c_werror_flag" || | |
2647 | test ! -s conftest.err | |
2648 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2649 | ac_compiler_gnu=yes |
80992638 | 2650 | else |
ad6254c5 AK |
2651 | echo "$as_me: failed program was:" >&5 |
2652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2653 | ||
7a197a62 | 2654 | ac_compiler_gnu=no |
8106cdd5 | 2655 | fi |
7a197a62 AK |
2656 | |
2657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2658 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2659 | |
ad6254c5 | 2660 | fi |
7a197a62 AK |
2661 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2662 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
ad6254c5 AK |
2663 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2664 | ac_test_CFLAGS=${CFLAGS+set} | |
2665 | ac_save_CFLAGS=$CFLAGS | |
7a197a62 AK |
2666 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2667 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 AK |
2668 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2670 | else |
7a197a62 AK |
2671 | ac_save_c_werror_flag=$ac_c_werror_flag |
2672 | ac_c_werror_flag=yes | |
2673 | ac_cv_prog_cc_g=no | |
2674 | CFLAGS="-g" | |
2675 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2676 | /* confdefs.h. */ |
2677 | _ACEOF | |
2678 | cat confdefs.h >>conftest.$ac_ext | |
2679 | cat >>conftest.$ac_ext <<_ACEOF | |
2680 | /* end confdefs.h. */ | |
2681 | ||
2682 | int | |
2683 | main () | |
2684 | { | |
2685 | ||
2686 | ; | |
2687 | return 0; | |
2688 | } | |
2689 | _ACEOF | |
2690 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2691 | if { (ac_try="$ac_compile" |
2692 | case "(($ac_try" in | |
2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2694 | *) ac_try_echo=$ac_try;; | |
2695 | esac | |
2696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2697 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 2698 | ac_status=$? |
8a2fc586 AK |
2699 | grep -v '^ *+' conftest.er1 >conftest.err |
2700 | rm -f conftest.er1 | |
2701 | cat conftest.err >&5 | |
ad6254c5 | 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2703 | (exit $ac_status); } && { |
2704 | test -z "$ac_c_werror_flag" || | |
2705 | test ! -s conftest.err | |
2706 | } && test -s conftest.$ac_objext; then | |
2707 | ac_cv_prog_cc_g=yes | |
2708 | else | |
2709 | echo "$as_me: failed program was:" >&5 | |
2710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2711 | ||
2712 | CFLAGS="" | |
2713 | cat >conftest.$ac_ext <<_ACEOF | |
2714 | /* confdefs.h. */ | |
2715 | _ACEOF | |
2716 | cat confdefs.h >>conftest.$ac_ext | |
2717 | cat >>conftest.$ac_ext <<_ACEOF | |
2718 | /* end confdefs.h. */ | |
2719 | ||
2720 | int | |
2721 | main () | |
2722 | { | |
2723 | ||
2724 | ; | |
2725 | return 0; | |
2726 | } | |
2727 | _ACEOF | |
2728 | rm -f conftest.$ac_objext | |
2729 | if { (ac_try="$ac_compile" | |
2730 | case "(($ac_try" in | |
2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2732 | *) ac_try_echo=$ac_try;; | |
2733 | esac | |
2734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2735 | (eval "$ac_compile") 2>conftest.er1 | |
8a2fc586 | 2736 | ac_status=$? |
7a197a62 AK |
2737 | grep -v '^ *+' conftest.er1 >conftest.err |
2738 | rm -f conftest.er1 | |
2739 | cat conftest.err >&5 | |
8a2fc586 | 2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2741 | (exit $ac_status); } && { |
2742 | test -z "$ac_c_werror_flag" || | |
2743 | test ! -s conftest.err | |
2744 | } && test -s conftest.$ac_objext; then | |
2745 | : | |
2746 | else | |
2747 | echo "$as_me: failed program was:" >&5 | |
2748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2749 | ||
2750 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2751 | CFLAGS="-g" | |
2752 | cat >conftest.$ac_ext <<_ACEOF | |
2753 | /* confdefs.h. */ | |
2754 | _ACEOF | |
2755 | cat confdefs.h >>conftest.$ac_ext | |
2756 | cat >>conftest.$ac_ext <<_ACEOF | |
2757 | /* end confdefs.h. */ | |
2758 | ||
2759 | int | |
2760 | main () | |
2761 | { | |
2762 | ||
2763 | ; | |
2764 | return 0; | |
2765 | } | |
2766 | _ACEOF | |
2767 | rm -f conftest.$ac_objext | |
2768 | if { (ac_try="$ac_compile" | |
2769 | case "(($ac_try" in | |
2770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2771 | *) ac_try_echo=$ac_try;; | |
2772 | esac | |
2773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2774 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 2775 | ac_status=$? |
7a197a62 AK |
2776 | grep -v '^ *+' conftest.er1 >conftest.err |
2777 | rm -f conftest.er1 | |
2778 | cat conftest.err >&5 | |
ad6254c5 | 2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2780 | (exit $ac_status); } && { |
2781 | test -z "$ac_c_werror_flag" || | |
2782 | test ! -s conftest.err | |
2783 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2784 | ac_cv_prog_cc_g=yes |
2785 | else | |
ad6254c5 AK |
2786 | echo "$as_me: failed program was:" >&5 |
2787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2788 | |
7a197a62 AK |
2789 | |
2790 | fi | |
2791 | ||
2792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2793 | fi | |
2794 | ||
2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2796 | fi |
7a197a62 AK |
2797 | |
2798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2799 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2800 | fi |
7a197a62 AK |
2801 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2802 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2803 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2804 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2805 | elif test $ac_cv_prog_cc_g = yes; then |
2806 | if test "$GCC" = yes; then | |
2807 | CFLAGS="-g -O2" | |
2808 | else | |
2809 | CFLAGS="-g" | |
2810 | fi | |
2811 | else | |
2812 | if test "$GCC" = yes; then | |
2813 | CFLAGS="-O2" | |
2814 | else | |
2815 | CFLAGS= | |
2816 | fi | |
2817 | fi | |
7a197a62 AK |
2818 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2819 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2820 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
ad6254c5 AK |
2821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2822 | else | |
7a197a62 | 2823 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2824 | ac_save_CC=$CC |
2825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2826 | /* confdefs.h. */ |
2827 | _ACEOF | |
2828 | cat confdefs.h >>conftest.$ac_ext | |
2829 | cat >>conftest.$ac_ext <<_ACEOF | |
2830 | /* end confdefs.h. */ | |
2831 | #include <stdarg.h> | |
2832 | #include <stdio.h> | |
2833 | #include <sys/types.h> | |
2834 | #include <sys/stat.h> | |
2835 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2836 | struct buf { int x; }; | |
2837 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2838 | static char *e (p, i) | |
2839 | char **p; | |
2840 | int i; | |
2841 | { | |
2842 | return p[i]; | |
2843 | } | |
2844 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2845 | { | |
2846 | char *s; | |
2847 | va_list v; | |
2848 | va_start (v,p); | |
2849 | s = g (p, va_arg (v,int)); | |
2850 | va_end (v); | |
2851 | return s; | |
2852 | } | |
8a2fc586 AK |
2853 | |
2854 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2855 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2856 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2857 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2858 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2859 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2860 | that's true only with -std. */ |
8a2fc586 AK |
2861 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2862 | ||
7a197a62 AK |
2863 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2864 | inside strings and character constants. */ | |
2865 | #define FOO(x) 'x' | |
2866 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2867 | ||
ad6254c5 AK |
2868 | int test (int i, double x); |
2869 | struct s1 {int (*f) (int a);}; | |
2870 | struct s2 {int (*f) (double a);}; | |
2871 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2872 | int argc; | |
2873 | char **argv; | |
2874 | int | |
2875 | main () | |
2876 | { | |
2877 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2878 | ; | |
2879 | return 0; | |
2880 | } | |
2881 | _ACEOF | |
7a197a62 AK |
2882 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2883 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2884 | do |
2885 | CC="$ac_save_CC $ac_arg" | |
2886 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2887 | if { (ac_try="$ac_compile" |
2888 | case "(($ac_try" in | |
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2890 | *) ac_try_echo=$ac_try;; | |
2891 | esac | |
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2893 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 2894 | ac_status=$? |
8a2fc586 AK |
2895 | grep -v '^ *+' conftest.er1 >conftest.err |
2896 | rm -f conftest.er1 | |
2897 | cat conftest.err >&5 | |
ad6254c5 | 2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2899 | (exit $ac_status); } && { |
2900 | test -z "$ac_c_werror_flag" || | |
2901 | test ! -s conftest.err | |
2902 | } && test -s conftest.$ac_objext; then | |
2903 | ac_cv_prog_cc_c89=$ac_arg | |
ad6254c5 AK |
2904 | else |
2905 | echo "$as_me: failed program was:" >&5 | |
2906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2907 | ||
7a197a62 | 2908 | |
ad6254c5 | 2909 | fi |
7a197a62 AK |
2910 | |
2911 | rm -f core conftest.err conftest.$ac_objext | |
2912 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2913 | done |
7a197a62 | 2914 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2915 | CC=$ac_save_CC |
2916 | ||
2917 | fi | |
7a197a62 AK |
2918 | # AC_CACHE_VAL |
2919 | case "x$ac_cv_prog_cc_c89" in | |
2920 | x) | |
2921 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2922 | echo "${ECHO_T}none needed" >&6; } ;; | |
2923 | xno) | |
2924 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2925 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2926 | *) |
7a197a62 AK |
2927 | CC="$CC $ac_cv_prog_cc_c89" |
2928 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2929 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2930 | esac |
2931 | ||
ad6254c5 | 2932 | |
ad6254c5 AK |
2933 | ac_ext=c |
2934 | ac_cpp='$CPP $CPPFLAGS' | |
2935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2938 | |
2939 | # Find a good install program. We prefer a C program (faster), | |
2940 | # so one script is as good as another. But avoid the broken or | |
2941 | # incompatible versions: | |
2942 | # SysV /etc/install, /usr/sbin/install | |
2943 | # SunOS /usr/etc/install | |
2944 | # IRIX /sbin/install | |
2945 | # AIX /bin/install | |
ad6254c5 | 2946 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2947 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2948 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2949 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2950 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2951 | # ./install, which can be erroneously created by make from ./install.sh. |
7a197a62 AK |
2952 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2953 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
795ca3e5 | 2954 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2955 | if test "${ac_cv_path_install+set}" = set; then |
2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2957 | else | |
2958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2959 | for as_dir in $PATH | |
2960 | do | |
2961 | IFS=$as_save_IFS | |
2962 | test -z "$as_dir" && as_dir=. | |
2963 | # Account for people who put trailing slashes in PATH elements. | |
2964 | case $as_dir/ in | |
2965 | ./ | .// | /cC/* | \ | |
2966 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 2967 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2968 | /usr/ucb/* ) ;; |
2969 | *) | |
2970 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2971 | # Don't use installbsd from OSF since it installs stuff as root | |
2972 | # by default. | |
2973 | for ac_prog in ginstall scoinst install; do | |
2974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2975 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
8a2fc586 AK |
2976 | if test $ac_prog = install && |
2977 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2978 | # AIX install. It has an incompatible calling convention. | |
2979 | : | |
2980 | elif test $ac_prog = install && | |
2981 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2982 | # program-specific install script used by HP pwplus--don't use. | |
2983 | : | |
2984 | else | |
2985 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2986 | break 3 | |
2987 | fi | |
2988 | fi | |
795ca3e5 | 2989 | done |
ad6254c5 AK |
2990 | done |
2991 | ;; | |
2992 | esac | |
2993 | done | |
7a197a62 | 2994 | IFS=$as_save_IFS |
ad6254c5 | 2995 | |
795ca3e5 AK |
2996 | |
2997 | fi | |
2998 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2999 | INSTALL=$ac_cv_path_install |
795ca3e5 | 3000 | else |
7a197a62 AK |
3001 | # As a last resort, use the slow shell script. Don't cache a |
3002 | # value for INSTALL within a source directory, because that will | |
795ca3e5 | 3003 | # break other packages using the cache if that directory is |
7a197a62 | 3004 | # removed, or if the value is a relative name. |
ad6254c5 | 3005 | INSTALL=$ac_install_sh |
795ca3e5 AK |
3006 | fi |
3007 | fi | |
7a197a62 AK |
3008 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3009 | echo "${ECHO_T}$INSTALL" >&6; } | |
795ca3e5 AK |
3010 | |
3011 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3012 | # It thinks the first close brace ends the variable substitution. | |
3013 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3014 | ||
ad6254c5 | 3015 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
3016 | |
3017 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3018 | ||
7a197a62 AK |
3019 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3020 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
ad6254c5 AK |
3021 | LN_S=$as_ln_s |
3022 | if test "$LN_S" = "ln -s"; then | |
7a197a62 AK |
3023 | { echo "$as_me:$LINENO: result: yes" >&5 |
3024 | echo "${ECHO_T}yes" >&6; } | |
80992638 | 3025 | else |
7a197a62 AK |
3026 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3027 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 AK |
3028 | fi |
3029 | ||
7a197a62 AK |
3030 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3031 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3032 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3033 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 3034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 3035 | else |
ad6254c5 | 3036 | cat >conftest.make <<\_ACEOF |
7a197a62 | 3037 | SHELL = /bin/sh |
795ca3e5 | 3038 | all: |
7a197a62 | 3039 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ad6254c5 | 3040 | _ACEOF |
795ca3e5 | 3041 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7a197a62 AK |
3042 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3043 | *@@@%%%=?*=@@@%%%*) | |
3044 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3045 | *) | |
3046 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3047 | esac | |
ad6254c5 | 3048 | rm -f conftest.make |
795ca3e5 | 3049 | fi |
7a197a62 AK |
3050 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3051 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3052 | echo "${ECHO_T}yes" >&6; } | |
795ca3e5 AK |
3053 | SET_MAKE= |
3054 | else | |
7a197a62 AK |
3055 | { echo "$as_me:$LINENO: result: no" >&5 |
3056 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
3057 | SET_MAKE="MAKE=${MAKE-make}" |
3058 | fi | |
3059 | ||
ad6254c5 AK |
3060 | if test -n "$ac_tool_prefix"; then |
3061 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3062 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7a197a62 AK |
3063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
3065 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
3067 | else |
3068 | if test -n "$RANLIB"; then | |
3069 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3070 | else | |
ad6254c5 AK |
3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3072 | for as_dir in $PATH | |
3073 | do | |
3074 | IFS=$as_save_IFS | |
3075 | test -z "$as_dir" && as_dir=. | |
3076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
3078 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3080 | break 2 | |
3081 | fi | |
3082 | done | |
3083 | done | |
7a197a62 | 3084 | IFS=$as_save_IFS |
ad6254c5 | 3085 | |
795ca3e5 AK |
3086 | fi |
3087 | fi | |
ad6254c5 | 3088 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 3089 | if test -n "$RANLIB"; then |
7a197a62 AK |
3090 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3091 | echo "${ECHO_T}$RANLIB" >&6; } | |
8106cdd5 | 3092 | else |
7a197a62 AK |
3093 | { echo "$as_me:$LINENO: result: no" >&5 |
3094 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 AK |
3095 | fi |
3096 | ||
7a197a62 | 3097 | |
795ca3e5 | 3098 | fi |
ad6254c5 AK |
3099 | if test -z "$ac_cv_prog_RANLIB"; then |
3100 | ac_ct_RANLIB=$RANLIB | |
3101 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3102 | set dummy ranlib; ac_word=$2 | |
7a197a62 AK |
3103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
3105 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 3107 | else |
ad6254c5 AK |
3108 | if test -n "$ac_ct_RANLIB"; then |
3109 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3110 | else | |
3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3112 | for as_dir in $PATH | |
3113 | do | |
3114 | IFS=$as_save_IFS | |
3115 | test -z "$as_dir" && as_dir=. | |
3116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
3118 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3120 | break 2 | |
3121 | fi | |
3122 | done | |
795ca3e5 | 3123 | done |
7a197a62 | 3124 | IFS=$as_save_IFS |
8106cdd5 | 3125 | |
795ca3e5 | 3126 | fi |
80992638 | 3127 | fi |
ad6254c5 AK |
3128 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3129 | if test -n "$ac_ct_RANLIB"; then | |
7a197a62 AK |
3130 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3131 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
80992638 | 3132 | else |
7a197a62 AK |
3133 | { echo "$as_me:$LINENO: result: no" >&5 |
3134 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 | 3135 | fi |
8106cdd5 | 3136 | |
7a197a62 AK |
3137 | if test "x$ac_ct_RANLIB" = x; then |
3138 | RANLIB=":" | |
3139 | else | |
3140 | case $cross_compiling:$ac_tool_warned in | |
3141 | yes:) | |
3142 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3143 | whose name does not start with the host triplet. If you think this | |
3144 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3145 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3146 | whose name does not start with the host triplet. If you think this | |
3147 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3148 | ac_tool_warned=yes ;; | |
3149 | esac | |
3150 | RANLIB=$ac_ct_RANLIB | |
3151 | fi | |
80992638 | 3152 | else |
ad6254c5 | 3153 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 3154 | fi |
795ca3e5 | 3155 | |
8a2fc586 AK |
3156 | # Extract the first word of "cflow", so it can be a program name with args. |
3157 | set dummy cflow; ac_word=$2 | |
7a197a62 AK |
3158 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 AK |
3160 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3162 | else | |
3163 | case $CFLOW_CMD in | |
3164 | [\\/]* | ?:[\\/]*) | |
3165 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3166 | ;; | |
3167 | *) | |
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3169 | for as_dir in $PATH | |
3170 | do | |
3171 | IFS=$as_save_IFS | |
3172 | test -z "$as_dir" && as_dir=. | |
3173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 AK |
3175 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" |
3176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3177 | break 2 | |
3178 | fi | |
3179 | done | |
3180 | done | |
7a197a62 | 3181 | IFS=$as_save_IFS |
8a2fc586 AK |
3182 | |
3183 | ;; | |
3184 | esac | |
3185 | fi | |
3186 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
8a2fc586 | 3187 | if test -n "$CFLOW_CMD"; then |
7a197a62 AK |
3188 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3189 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
8a2fc586 | 3190 | else |
7a197a62 AK |
3191 | { echo "$as_me:$LINENO: result: no" >&5 |
3192 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3193 | fi |
3194 | ||
7a197a62 | 3195 | |
8a2fc586 AK |
3196 | # Extract the first word of "cscope", so it can be a program name with args. |
3197 | set dummy cscope; ac_word=$2 | |
7a197a62 AK |
3198 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 AK |
3200 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3202 | else | |
3203 | case $CSCOPE_CMD in | |
3204 | [\\/]* | ?:[\\/]*) | |
3205 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3206 | ;; | |
3207 | *) | |
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3209 | for as_dir in $PATH | |
3210 | do | |
3211 | IFS=$as_save_IFS | |
3212 | test -z "$as_dir" && as_dir=. | |
3213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 AK |
3215 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
3216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3217 | break 2 | |
3218 | fi | |
3219 | done | |
3220 | done | |
7a197a62 | 3221 | IFS=$as_save_IFS |
8a2fc586 AK |
3222 | |
3223 | ;; | |
3224 | esac | |
3225 | fi | |
3226 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
8a2fc586 | 3227 | if test -n "$CSCOPE_CMD"; then |
7a197a62 AK |
3228 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3229 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
8a2fc586 | 3230 | else |
7a197a62 AK |
3231 | { echo "$as_me:$LINENO: result: no" >&5 |
3232 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3233 | fi |
3234 | ||
795ca3e5 | 3235 | |
7a197a62 | 3236 | |
ad6254c5 AK |
3237 | ################################################################################ |
3238 | ||
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | ||
3244 | ac_header_dirent=no | |
3245 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
3246 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
7a197a62 AK |
3247 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
3248 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
3249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3251 | else |
ad6254c5 | 3252 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3253 | /* confdefs.h. */ |
3254 | _ACEOF | |
3255 | cat confdefs.h >>conftest.$ac_ext | |
3256 | cat >>conftest.$ac_ext <<_ACEOF | |
3257 | /* end confdefs.h. */ | |
3258 | #include <sys/types.h> | |
3259 | #include <$ac_hdr> | |
3260 | ||
3261 | int | |
3262 | main () | |
3263 | { | |
3264 | if ((DIR *) 0) | |
3265 | return 0; | |
3266 | ; | |
3267 | return 0; | |
3268 | } | |
3269 | _ACEOF | |
3270 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3271 | if { (ac_try="$ac_compile" |
3272 | case "(($ac_try" in | |
3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3274 | *) ac_try_echo=$ac_try;; | |
3275 | esac | |
3276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3277 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 3278 | ac_status=$? |
8a2fc586 AK |
3279 | grep -v '^ *+' conftest.er1 >conftest.err |
3280 | rm -f conftest.er1 | |
3281 | cat conftest.err >&5 | |
ad6254c5 | 3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3283 | (exit $ac_status); } && { |
3284 | test -z "$ac_c_werror_flag" || | |
3285 | test ! -s conftest.err | |
3286 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3287 | eval "$as_ac_Header=yes" |
8106cdd5 | 3288 | else |
ad6254c5 AK |
3289 | echo "$as_me: failed program was:" >&5 |
3290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3291 | ||
7a197a62 | 3292 | eval "$as_ac_Header=no" |
795ca3e5 | 3293 | fi |
7a197a62 AK |
3294 | |
3295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 3296 | fi |
7a197a62 AK |
3297 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3299 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
3300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3301 | cat >>confdefs.h <<_ACEOF | |
3302 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
3303 | _ACEOF | |
3304 | ||
3305 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 3306 | fi |
8106cdd5 | 3307 | |
ad6254c5 AK |
3308 | done |
3309 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3310 | if test $ac_header_dirent = dirent.h; then | |
7a197a62 AK |
3311 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3312 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 AK |
3313 | if test "${ac_cv_search_opendir+set}" = set; then |
3314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3315 | else |
ad6254c5 | 3316 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 3317 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3318 | /* confdefs.h. */ |
3319 | _ACEOF | |
3320 | cat confdefs.h >>conftest.$ac_ext | |
3321 | cat >>conftest.$ac_ext <<_ACEOF | |
3322 | /* end confdefs.h. */ | |
3323 | ||
7a197a62 AK |
3324 | /* Override any GCC internal prototype to avoid an error. |
3325 | Use char because int might match the return type of a GCC | |
3326 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3327 | #ifdef __cplusplus |
3328 | extern "C" | |
3329 | #endif | |
ad6254c5 AK |
3330 | char opendir (); |
3331 | int | |
3332 | main () | |
3333 | { | |
7a197a62 | 3334 | return opendir (); |
ad6254c5 AK |
3335 | ; |
3336 | return 0; | |
3337 | } | |
3338 | _ACEOF | |
7a197a62 AK |
3339 | for ac_lib in '' dir; do |
3340 | if test -z "$ac_lib"; then | |
3341 | ac_res="none required" | |
3342 | else | |
3343 | ac_res=-l$ac_lib | |
3344 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3345 | fi | |
3346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3347 | if { (ac_try="$ac_link" | |
3348 | case "(($ac_try" in | |
3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3350 | *) ac_try_echo=$ac_try;; | |
3351 | esac | |
3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3353 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 3354 | ac_status=$? |
8a2fc586 AK |
3355 | grep -v '^ *+' conftest.er1 >conftest.err |
3356 | rm -f conftest.er1 | |
3357 | cat conftest.err >&5 | |
ad6254c5 | 3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3359 | (exit $ac_status); } && { |
3360 | test -z "$ac_c_werror_flag" || | |
3361 | test ! -s conftest.err | |
3362 | } && test -s conftest$ac_exeext && | |
3363 | $as_test_x conftest$ac_exeext; then | |
3364 | ac_cv_search_opendir=$ac_res | |
795ca3e5 | 3365 | else |
ad6254c5 AK |
3366 | echo "$as_me: failed program was:" >&5 |
3367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3368 | ||
795ca3e5 | 3369 | |
7a197a62 | 3370 | fi |
795ca3e5 | 3371 | |
7a197a62 AK |
3372 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3373 | conftest$ac_exeext | |
3374 | if test "${ac_cv_search_opendir+set}" = set; then | |
3375 | break | |
795ca3e5 | 3376 | fi |
7a197a62 AK |
3377 | done |
3378 | if test "${ac_cv_search_opendir+set}" = set; then | |
3379 | : | |
3380 | else | |
3381 | ac_cv_search_opendir=no | |
795ca3e5 | 3382 | fi |
7a197a62 | 3383 | rm conftest.$ac_ext |
ad6254c5 AK |
3384 | LIBS=$ac_func_search_save_LIBS |
3385 | fi | |
7a197a62 AK |
3386 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3387 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3388 | ac_res=$ac_cv_search_opendir | |
3389 | if test "$ac_res" != no; then | |
3390 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
795ca3e5 AK |
3391 | |
3392 | fi | |
3393 | ||
795ca3e5 | 3394 | else |
7a197a62 AK |
3395 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3396 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 AK |
3397 | if test "${ac_cv_search_opendir+set}" = set; then |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3399 | else | |
3400 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 3401 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3402 | /* confdefs.h. */ |
3403 | _ACEOF | |
3404 | cat confdefs.h >>conftest.$ac_ext | |
3405 | cat >>conftest.$ac_ext <<_ACEOF | |
3406 | /* end confdefs.h. */ | |
80992638 | 3407 | |
7a197a62 AK |
3408 | /* Override any GCC internal prototype to avoid an error. |
3409 | Use char because int might match the return type of a GCC | |
3410 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3411 | #ifdef __cplusplus |
3412 | extern "C" | |
3413 | #endif | |
ad6254c5 AK |
3414 | char opendir (); |
3415 | int | |
3416 | main () | |
3417 | { | |
7a197a62 | 3418 | return opendir (); |
ad6254c5 AK |
3419 | ; |
3420 | return 0; | |
3421 | } | |
3422 | _ACEOF | |
7a197a62 AK |
3423 | for ac_lib in '' x; do |
3424 | if test -z "$ac_lib"; then | |
3425 | ac_res="none required" | |
3426 | else | |
3427 | ac_res=-l$ac_lib | |
3428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3429 | fi | |
3430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3431 | if { (ac_try="$ac_link" | |
3432 | case "(($ac_try" in | |
3433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3434 | *) ac_try_echo=$ac_try;; | |
3435 | esac | |
3436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3437 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 3438 | ac_status=$? |
8a2fc586 AK |
3439 | grep -v '^ *+' conftest.er1 >conftest.err |
3440 | rm -f conftest.er1 | |
3441 | cat conftest.err >&5 | |
ad6254c5 | 3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3443 | (exit $ac_status); } && { |
3444 | test -z "$ac_c_werror_flag" || | |
3445 | test ! -s conftest.err | |
3446 | } && test -s conftest$ac_exeext && | |
3447 | $as_test_x conftest$ac_exeext; then | |
3448 | ac_cv_search_opendir=$ac_res | |
795ca3e5 | 3449 | else |
ad6254c5 AK |
3450 | echo "$as_me: failed program was:" >&5 |
3451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3452 | ||
ad6254c5 | 3453 | |
7a197a62 | 3454 | fi |
80992638 | 3455 | |
7a197a62 AK |
3456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3457 | conftest$ac_exeext | |
3458 | if test "${ac_cv_search_opendir+set}" = set; then | |
3459 | break | |
795ca3e5 | 3460 | fi |
7a197a62 AK |
3461 | done |
3462 | if test "${ac_cv_search_opendir+set}" = set; then | |
3463 | : | |
3464 | else | |
3465 | ac_cv_search_opendir=no | |
ad6254c5 | 3466 | fi |
7a197a62 | 3467 | rm conftest.$ac_ext |
ad6254c5 | 3468 | LIBS=$ac_func_search_save_LIBS |
795ca3e5 | 3469 | fi |
7a197a62 AK |
3470 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3471 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3472 | ac_res=$ac_cv_search_opendir | |
3473 | if test "$ac_res" != no; then | |
3474 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8106cdd5 | 3475 | |
ad6254c5 | 3476 | fi |
8106cdd5 | 3477 | |
795ca3e5 | 3478 | fi |
8106cdd5 | 3479 | |
ad6254c5 AK |
3480 | ac_ext=c |
3481 | ac_cpp='$CPP $CPPFLAGS' | |
3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7a197a62 AK |
3485 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3486 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ad6254c5 AK |
3487 | # On Suns, sometimes $CPP names a directory. |
3488 | if test -n "$CPP" && test -d "$CPP"; then | |
3489 | CPP= | |
3490 | fi | |
3491 | if test -z "$CPP"; then | |
3492 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3494 | else | |
3495 | # Double quotes because CPP needs to be expanded | |
3496 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3497 | do | |
3498 | ac_preproc_ok=false | |
3499 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3500 | do |
ad6254c5 AK |
3501 | # Use a header file that comes with gcc, so configuring glibc |
3502 | # with a fresh cross-compiler works. | |
3503 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3504 | # <limits.h> exists even on freestanding compilers. | |
3505 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3506 | # not just through cpp. "Syntax error" is here to catch this case. | |
3507 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3508 | /* confdefs.h. */ |
3509 | _ACEOF | |
3510 | cat confdefs.h >>conftest.$ac_ext | |
3511 | cat >>conftest.$ac_ext <<_ACEOF | |
3512 | /* end confdefs.h. */ | |
3513 | #ifdef __STDC__ | |
3514 | # include <limits.h> | |
3515 | #else | |
3516 | # include <assert.h> | |
3517 | #endif | |
8a2fc586 | 3518 | Syntax error |
ad6254c5 | 3519 | _ACEOF |
7a197a62 AK |
3520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3521 | case "(($ac_try" in | |
3522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3523 | *) ac_try_echo=$ac_try;; | |
3524 | esac | |
3525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
3527 | ac_status=$? |
3528 | grep -v '^ *+' conftest.er1 >conftest.err | |
3529 | rm -f conftest.er1 | |
3530 | cat conftest.err >&5 | |
3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
3532 | (exit $ac_status); } >/dev/null && { |
3533 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3534 | test ! -s conftest.err | |
3535 | }; then | |
ad6254c5 AK |
3536 | : |
3537 | else | |
3538 | echo "$as_me: failed program was:" >&5 | |
3539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3540 | ||
3541 | # Broken: fails on valid input. | |
3542 | continue | |
3543 | fi | |
7a197a62 | 3544 | |
ad6254c5 AK |
3545 | rm -f conftest.err conftest.$ac_ext |
3546 | ||
7a197a62 | 3547 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3548 | # can be detected and how. |
3549 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3550 | /* confdefs.h. */ |
3551 | _ACEOF | |
3552 | cat confdefs.h >>conftest.$ac_ext | |
3553 | cat >>conftest.$ac_ext <<_ACEOF | |
3554 | /* end confdefs.h. */ | |
3555 | #include <ac_nonexistent.h> | |
3556 | _ACEOF | |
7a197a62 AK |
3557 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3558 | case "(($ac_try" in | |
3559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3560 | *) ac_try_echo=$ac_try;; | |
3561 | esac | |
3562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3563 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
3564 | ac_status=$? |
3565 | grep -v '^ *+' conftest.er1 >conftest.err | |
3566 | rm -f conftest.er1 | |
3567 | cat conftest.err >&5 | |
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
3569 | (exit $ac_status); } >/dev/null && { |
3570 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3571 | test ! -s conftest.err | |
3572 | }; then | |
ad6254c5 AK |
3573 | # Broken: success on invalid input. |
3574 | continue | |
80992638 | 3575 | else |
ad6254c5 AK |
3576 | echo "$as_me: failed program was:" >&5 |
3577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3578 | ||
3579 | # Passes both tests. | |
3580 | ac_preproc_ok=: | |
3581 | break | |
795ca3e5 | 3582 | fi |
7a197a62 | 3583 | |
ad6254c5 AK |
3584 | rm -f conftest.err conftest.$ac_ext |
3585 | ||
795ca3e5 | 3586 | done |
ad6254c5 AK |
3587 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3588 | rm -f conftest.err conftest.$ac_ext | |
3589 | if $ac_preproc_ok; then | |
3590 | break | |
3591 | fi | |
795ca3e5 | 3592 | |
ad6254c5 AK |
3593 | done |
3594 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3595 | |
ad6254c5 AK |
3596 | fi |
3597 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3598 | else |
ad6254c5 | 3599 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3600 | fi |
7a197a62 AK |
3601 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3602 | echo "${ECHO_T}$CPP" >&6; } | |
ad6254c5 AK |
3603 | ac_preproc_ok=false |
3604 | for ac_c_preproc_warn_flag in '' yes | |
3605 | do | |
3606 | # Use a header file that comes with gcc, so configuring glibc | |
3607 | # with a fresh cross-compiler works. | |
3608 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3609 | # <limits.h> exists even on freestanding compilers. | |
3610 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3611 | # not just through cpp. "Syntax error" is here to catch this case. | |
3612 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3613 | /* confdefs.h. */ |
3614 | _ACEOF | |
3615 | cat confdefs.h >>conftest.$ac_ext | |
3616 | cat >>conftest.$ac_ext <<_ACEOF | |
3617 | /* end confdefs.h. */ | |
3618 | #ifdef __STDC__ | |
3619 | # include <limits.h> | |
3620 | #else | |
3621 | # include <assert.h> | |
3622 | #endif | |
8a2fc586 | 3623 | Syntax error |
ad6254c5 | 3624 | _ACEOF |
7a197a62 AK |
3625 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3626 | case "(($ac_try" in | |
3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3628 | *) ac_try_echo=$ac_try;; | |
3629 | esac | |
3630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
3632 | ac_status=$? |
3633 | grep -v '^ *+' conftest.er1 >conftest.err | |
3634 | rm -f conftest.er1 | |
3635 | cat conftest.err >&5 | |
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
3637 | (exit $ac_status); } >/dev/null && { |
3638 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3639 | test ! -s conftest.err | |
3640 | }; then | |
ad6254c5 AK |
3641 | : |
3642 | else | |
3643 | echo "$as_me: failed program was:" >&5 | |
3644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3645 | ||
3646 | # Broken: fails on valid input. | |
3647 | continue | |
3648 | fi | |
7a197a62 | 3649 | |
ad6254c5 AK |
3650 | rm -f conftest.err conftest.$ac_ext |
3651 | ||
7a197a62 | 3652 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3653 | # can be detected and how. |
3654 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3655 | /* confdefs.h. */ |
3656 | _ACEOF | |
3657 | cat confdefs.h >>conftest.$ac_ext | |
3658 | cat >>conftest.$ac_ext <<_ACEOF | |
3659 | /* end confdefs.h. */ | |
3660 | #include <ac_nonexistent.h> | |
3661 | _ACEOF | |
7a197a62 AK |
3662 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3663 | case "(($ac_try" in | |
3664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3665 | *) ac_try_echo=$ac_try;; | |
3666 | esac | |
3667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
3669 | ac_status=$? |
3670 | grep -v '^ *+' conftest.er1 >conftest.err | |
3671 | rm -f conftest.er1 | |
3672 | cat conftest.err >&5 | |
3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
3674 | (exit $ac_status); } >/dev/null && { |
3675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3676 | test ! -s conftest.err | |
3677 | }; then | |
ad6254c5 AK |
3678 | # Broken: success on invalid input. |
3679 | continue | |
3680 | else | |
3681 | echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3683 | |
ad6254c5 AK |
3684 | # Passes both tests. |
3685 | ac_preproc_ok=: | |
3686 | break | |
795ca3e5 | 3687 | fi |
7a197a62 | 3688 | |
ad6254c5 | 3689 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3690 | |
ad6254c5 AK |
3691 | done |
3692 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3693 | rm -f conftest.err conftest.$ac_ext | |
3694 | if $ac_preproc_ok; then | |
3695 | : | |
795ca3e5 | 3696 | else |
ad6254c5 AK |
3697 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3698 | See \`config.log' for more details." >&5 | |
3699 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3700 | See \`config.log' for more details." >&2;} | |
3701 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3702 | fi |
795ca3e5 | 3703 | |
ad6254c5 AK |
3704 | ac_ext=c |
3705 | ac_cpp='$CPP $CPPFLAGS' | |
3706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3709 | ||
3710 | ||
7a197a62 AK |
3711 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3712 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3713 | if test "${ac_cv_path_GREP+set}" = set; then | |
3714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3715 | else | |
3716 | # Extract the first word of "grep ggrep" to use in msg output | |
3717 | if test -z "$GREP"; then | |
3718 | set dummy grep ggrep; ac_prog_name=$2 | |
3719 | if test "${ac_cv_path_GREP+set}" = set; then | |
ad6254c5 AK |
3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3721 | else | |
7a197a62 AK |
3722 | ac_path_GREP_found=false |
3723 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3726 | do | |
3727 | IFS=$as_save_IFS | |
3728 | test -z "$as_dir" && as_dir=. | |
3729 | for ac_prog in grep ggrep; do | |
3730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3731 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3732 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3733 | # Check for GNU ac_path_GREP and select it if it is found. | |
3734 | # Check for GNU $ac_path_GREP | |
3735 | case `"$ac_path_GREP" --version 2>&1` in | |
3736 | *GNU*) | |
3737 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3738 | *) | |
3739 | ac_count=0 | |
3740 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3741 | while : | |
3742 | do | |
3743 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3744 | mv "conftest.tmp" "conftest.in" | |
3745 | cp "conftest.in" "conftest.nl" | |
3746 | echo 'GREP' >> "conftest.nl" | |
3747 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3749 | ac_count=`expr $ac_count + 1` | |
3750 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3751 | # Best one so far, save it but keep looking for a better one | |
3752 | ac_cv_path_GREP="$ac_path_GREP" | |
3753 | ac_path_GREP_max=$ac_count | |
ad6254c5 | 3754 | fi |
7a197a62 AK |
3755 | # 10*(2^10) chars as input seems more than enough |
3756 | test $ac_count -gt 10 && break | |
3757 | done | |
3758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3759 | esac | |
80992638 | 3760 | |
795ca3e5 | 3761 | |
7a197a62 AK |
3762 | $ac_path_GREP_found && break 3 |
3763 | done | |
3764 | done | |
ad6254c5 | 3765 | |
7a197a62 AK |
3766 | done |
3767 | IFS=$as_save_IFS | |
ad6254c5 | 3768 | |
ad6254c5 | 3769 | |
795ca3e5 | 3770 | fi |
ad6254c5 | 3771 | |
7a197a62 AK |
3772 | GREP="$ac_cv_path_GREP" |
3773 | if test -z "$GREP"; then | |
3774 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3775 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3776 | { (exit 1); exit 1; }; } | |
3777 | fi | |
3778 | ||
3779 | else | |
3780 | ac_cv_path_GREP=$GREP | |
3781 | fi | |
3782 | ||
3783 | ||
3784 | fi | |
3785 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3786 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3787 | GREP="$ac_cv_path_GREP" | |
3788 | ||
3789 | ||
3790 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3791 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3792 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3794 | else | |
3795 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3796 | then ac_cv_path_EGREP="$GREP -E" | |
3797 | else | |
3798 | # Extract the first word of "egrep" to use in msg output | |
3799 | if test -z "$EGREP"; then | |
3800 | set dummy egrep; ac_prog_name=$2 | |
3801 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3803 | else | |
3804 | ac_path_EGREP_found=false | |
3805 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3807 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3808 | do | |
3809 | IFS=$as_save_IFS | |
3810 | test -z "$as_dir" && as_dir=. | |
3811 | for ac_prog in egrep; do | |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3813 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3814 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3815 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3816 | # Check for GNU $ac_path_EGREP | |
3817 | case `"$ac_path_EGREP" --version 2>&1` in | |
3818 | *GNU*) | |
3819 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3820 | *) | |
3821 | ac_count=0 | |
3822 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3823 | while : | |
3824 | do | |
3825 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3826 | mv "conftest.tmp" "conftest.in" | |
3827 | cp "conftest.in" "conftest.nl" | |
3828 | echo 'EGREP' >> "conftest.nl" | |
3829 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3830 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3831 | ac_count=`expr $ac_count + 1` | |
3832 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3833 | # Best one so far, save it but keep looking for a better one | |
3834 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3835 | ac_path_EGREP_max=$ac_count | |
3836 | fi | |
3837 | # 10*(2^10) chars as input seems more than enough | |
3838 | test $ac_count -gt 10 && break | |
3839 | done | |
3840 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3841 | esac | |
3842 | ||
3843 | ||
3844 | $ac_path_EGREP_found && break 3 | |
3845 | done | |
3846 | done | |
3847 | ||
3848 | done | |
3849 | IFS=$as_save_IFS | |
3850 | ||
3851 | ||
3852 | fi | |
3853 | ||
3854 | EGREP="$ac_cv_path_EGREP" | |
3855 | if test -z "$EGREP"; then | |
3856 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3857 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3858 | { (exit 1); exit 1; }; } | |
3859 | fi | |
3860 | ||
3861 | else | |
3862 | ac_cv_path_EGREP=$EGREP | |
3863 | fi | |
3864 | ||
3865 | ||
3866 | fi | |
3867 | fi | |
3868 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3869 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3870 | EGREP="$ac_cv_path_EGREP" | |
3871 | ||
3872 | ||
3873 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3874 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
3875 | if test "${ac_cv_header_stdc+set}" = set; then | |
3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3877 | else | |
3878 | cat >conftest.$ac_ext <<_ACEOF | |
3879 | /* confdefs.h. */ | |
3880 | _ACEOF | |
3881 | cat confdefs.h >>conftest.$ac_ext | |
3882 | cat >>conftest.$ac_ext <<_ACEOF | |
3883 | /* end confdefs.h. */ | |
3884 | #include <stdlib.h> | |
3885 | #include <stdarg.h> | |
3886 | #include <string.h> | |
3887 | #include <float.h> | |
3888 | ||
3889 | int | |
3890 | main () | |
3891 | { | |
3892 | ||
3893 | ; | |
3894 | return 0; | |
3895 | } | |
3896 | _ACEOF | |
3897 | rm -f conftest.$ac_objext | |
3898 | if { (ac_try="$ac_compile" | |
3899 | case "(($ac_try" in | |
3900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3901 | *) ac_try_echo=$ac_try;; | |
3902 | esac | |
3903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3904 | (eval "$ac_compile") 2>conftest.er1 | |
3905 | ac_status=$? | |
3906 | grep -v '^ *+' conftest.er1 >conftest.err | |
3907 | rm -f conftest.er1 | |
3908 | cat conftest.err >&5 | |
3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3910 | (exit $ac_status); } && { | |
3911 | test -z "$ac_c_werror_flag" || | |
3912 | test ! -s conftest.err | |
3913 | } && test -s conftest.$ac_objext; then | |
3914 | ac_cv_header_stdc=yes | |
3915 | else | |
3916 | echo "$as_me: failed program was:" >&5 | |
3917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3918 | ||
3919 | ac_cv_header_stdc=no | |
3920 | fi | |
3921 | ||
3922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3923 | ||
3924 | if test $ac_cv_header_stdc = yes; then | |
3925 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 3926 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3927 | /* confdefs.h. */ |
3928 | _ACEOF | |
3929 | cat confdefs.h >>conftest.$ac_ext | |
3930 | cat >>conftest.$ac_ext <<_ACEOF | |
3931 | /* end confdefs.h. */ | |
3932 | #include <string.h> | |
8106cdd5 | 3933 | |
ad6254c5 AK |
3934 | _ACEOF |
3935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3936 | $EGREP "memchr" >/dev/null 2>&1; then | |
3937 | : | |
3938 | else | |
3939 | ac_cv_header_stdc=no | |
80992638 | 3940 | fi |
ad6254c5 | 3941 | rm -f conftest* |
795ca3e5 AK |
3942 | |
3943 | fi | |
3944 | ||
ad6254c5 AK |
3945 | if test $ac_cv_header_stdc = yes; then |
3946 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3947 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3948 | /* confdefs.h. */ |
3949 | _ACEOF | |
3950 | cat confdefs.h >>conftest.$ac_ext | |
3951 | cat >>conftest.$ac_ext <<_ACEOF | |
3952 | /* end confdefs.h. */ | |
80992638 | 3953 | #include <stdlib.h> |
ad6254c5 AK |
3954 | |
3955 | _ACEOF | |
80992638 | 3956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3957 | $EGREP "free" >/dev/null 2>&1; then |
3958 | : | |
795ca3e5 | 3959 | else |
ad6254c5 | 3960 | ac_cv_header_stdc=no |
795ca3e5 | 3961 | fi |
80992638 | 3962 | rm -f conftest* |
8106cdd5 | 3963 | |
795ca3e5 AK |
3964 | fi |
3965 | ||
ad6254c5 AK |
3966 | if test $ac_cv_header_stdc = yes; then |
3967 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3968 | if test "$cross_compiling" = yes; then | |
3969 | : | |
795ca3e5 | 3970 | else |
ad6254c5 | 3971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3972 | /* confdefs.h. */ |
3973 | _ACEOF | |
3974 | cat confdefs.h >>conftest.$ac_ext | |
3975 | cat >>conftest.$ac_ext <<_ACEOF | |
3976 | /* end confdefs.h. */ | |
3977 | #include <ctype.h> | |
7a197a62 | 3978 | #include <stdlib.h> |
ad6254c5 AK |
3979 | #if ((' ' & 0x0FF) == 0x020) |
3980 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3981 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3982 | #else | |
3983 | # define ISLOWER(c) \ | |
8a2fc586 AK |
3984 | (('a' <= (c) && (c) <= 'i') \ |
3985 | || ('j' <= (c) && (c) <= 'r') \ | |
3986 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3987 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3988 | #endif |
ad6254c5 AK |
3989 | |
3990 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3991 | int | |
3992 | main () | |
3993 | { | |
3994 | int i; | |
3995 | for (i = 0; i < 256; i++) | |
3996 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 3997 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
3998 | return 2; |
3999 | return 0; | |
ad6254c5 AK |
4000 | } |
4001 | _ACEOF | |
4002 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4003 | if { (ac_try="$ac_link" |
4004 | case "(($ac_try" in | |
4005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4006 | *) ac_try_echo=$ac_try;; | |
4007 | esac | |
4008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4009 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
4010 | ac_status=$? |
4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
4013 | { (case "(($ac_try" in |
4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4015 | *) ac_try_echo=$ac_try;; | |
4016 | esac | |
4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4018 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
4019 | ac_status=$? |
4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4021 | (exit $ac_status); }; }; then | |
4022 | : | |
795ca3e5 | 4023 | else |
ad6254c5 AK |
4024 | echo "$as_me: program exited with status $ac_status" >&5 |
4025 | echo "$as_me: failed program was:" >&5 | |
4026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 4027 | |
ad6254c5 AK |
4028 | ( exit $ac_status ) |
4029 | ac_cv_header_stdc=no | |
80992638 | 4030 | fi |
7a197a62 | 4031 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4032 | fi |
7a197a62 AK |
4033 | |
4034 | ||
ad6254c5 AK |
4035 | fi |
4036 | fi | |
7a197a62 AK |
4037 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4038 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4039 | if test $ac_cv_header_stdc = yes; then |
4040 | ||
4041 | cat >>confdefs.h <<\_ACEOF | |
4042 | #define STDC_HEADERS 1 | |
4043 | _ACEOF | |
795ca3e5 AK |
4044 | |
4045 | fi | |
4046 | ||
7a197a62 AK |
4047 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4048 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 AK |
4049 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4051 | else |
ad6254c5 | 4052 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4053 | /* confdefs.h. */ |
4054 | _ACEOF | |
4055 | cat confdefs.h >>conftest.$ac_ext | |
4056 | cat >>conftest.$ac_ext <<_ACEOF | |
4057 | /* end confdefs.h. */ | |
80992638 | 4058 | #include <sys/types.h> |
ad6254c5 AK |
4059 | #include <sys/wait.h> |
4060 | #ifndef WEXITSTATUS | |
7a197a62 | 4061 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4062 | #endif |
4063 | #ifndef WIFEXITED | |
4064 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4065 | #endif | |
4066 | ||
4067 | int | |
4068 | main () | |
4069 | { | |
4070 | int s; | |
4071 | wait (&s); | |
4072 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4073 | ; | |
4074 | return 0; | |
4075 | } | |
4076 | _ACEOF | |
4077 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4078 | if { (ac_try="$ac_compile" |
4079 | case "(($ac_try" in | |
4080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4081 | *) ac_try_echo=$ac_try;; | |
4082 | esac | |
4083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4084 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4085 | ac_status=$? |
8a2fc586 AK |
4086 | grep -v '^ *+' conftest.er1 >conftest.err |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
ad6254c5 | 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4090 | (exit $ac_status); } && { |
4091 | test -z "$ac_c_werror_flag" || | |
4092 | test ! -s conftest.err | |
4093 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4094 | ac_cv_header_sys_wait_h=yes |
4095 | else | |
4096 | echo "$as_me: failed program was:" >&5 | |
4097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4098 | ||
7a197a62 | 4099 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4100 | fi |
7a197a62 AK |
4101 | |
4102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4103 | fi |
7a197a62 AK |
4104 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4105 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4106 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4107 | |
ad6254c5 AK |
4108 | cat >>confdefs.h <<\_ACEOF |
4109 | #define HAVE_SYS_WAIT_H 1 | |
4110 | _ACEOF | |
795ca3e5 AK |
4111 | |
4112 | fi | |
4113 | ||
7a197a62 AK |
4114 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4115 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 AK |
4116 | if test "${ac_cv_header_time+set}" = set; then |
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4118 | else |
ad6254c5 | 4119 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4120 | /* confdefs.h. */ |
4121 | _ACEOF | |
4122 | cat confdefs.h >>conftest.$ac_ext | |
4123 | cat >>conftest.$ac_ext <<_ACEOF | |
4124 | /* end confdefs.h. */ | |
795ca3e5 AK |
4125 | #include <sys/types.h> |
4126 | #include <sys/time.h> | |
4127 | #include <time.h> | |
ad6254c5 AK |
4128 | |
4129 | int | |
4130 | main () | |
4131 | { | |
4132 | if ((struct tm *) 0) | |
4133 | return 0; | |
4134 | ; | |
4135 | return 0; | |
4136 | } | |
4137 | _ACEOF | |
4138 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4139 | if { (ac_try="$ac_compile" |
4140 | case "(($ac_try" in | |
4141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4142 | *) ac_try_echo=$ac_try;; | |
4143 | esac | |
4144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4145 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4146 | ac_status=$? |
8a2fc586 AK |
4147 | grep -v '^ *+' conftest.er1 >conftest.err |
4148 | rm -f conftest.er1 | |
4149 | cat conftest.err >&5 | |
ad6254c5 | 4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4151 | (exit $ac_status); } && { |
4152 | test -z "$ac_c_werror_flag" || | |
4153 | test ! -s conftest.err | |
4154 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4155 | ac_cv_header_time=yes |
4156 | else | |
ad6254c5 AK |
4157 | echo "$as_me: failed program was:" >&5 |
4158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4159 | ||
7a197a62 | 4160 | ac_cv_header_time=no |
795ca3e5 | 4161 | fi |
7a197a62 AK |
4162 | |
4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4164 | fi |
7a197a62 AK |
4165 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4166 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4167 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4168 | |
4169 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4170 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4171 | _ACEOF |
b896caa1 | 4172 | |
8106cdd5 | 4173 | fi |
b896caa1 | 4174 | |
b896caa1 | 4175 | |
ad6254c5 | 4176 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 4177 | |
b896caa1 AK |
4178 | |
4179 | ||
795ca3e5 | 4180 | |
8106cdd5 | 4181 | |
80992638 | 4182 | |
795ca3e5 | 4183 | |
a38df97f | 4184 | |
80992638 | 4185 | |
ad6254c5 | 4186 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 4187 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
4188 | do |
4189 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
4190 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4192 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4194 | else | |
4195 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4196 | /* confdefs.h. */ |
4197 | _ACEOF | |
4198 | cat confdefs.h >>conftest.$ac_ext | |
4199 | cat >>conftest.$ac_ext <<_ACEOF | |
4200 | /* end confdefs.h. */ | |
4201 | $ac_includes_default | |
4202 | ||
4203 | #include <$ac_header> | |
4204 | _ACEOF | |
4205 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4206 | if { (ac_try="$ac_compile" |
4207 | case "(($ac_try" in | |
4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4209 | *) ac_try_echo=$ac_try;; | |
4210 | esac | |
4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4212 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4213 | ac_status=$? |
8a2fc586 AK |
4214 | grep -v '^ *+' conftest.er1 >conftest.err |
4215 | rm -f conftest.er1 | |
4216 | cat conftest.err >&5 | |
ad6254c5 | 4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4218 | (exit $ac_status); } && { |
4219 | test -z "$ac_c_werror_flag" || | |
4220 | test ! -s conftest.err | |
4221 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4222 | eval "$as_ac_Header=yes" |
4223 | else | |
4224 | echo "$as_me: failed program was:" >&5 | |
4225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4226 | |
7a197a62 | 4227 | eval "$as_ac_Header=no" |
ad6254c5 | 4228 | fi |
7a197a62 AK |
4229 | |
4230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a38df97f | 4231 | fi |
7a197a62 AK |
4232 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4233 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4234 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4235 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4236 | cat >>confdefs.h <<_ACEOF | |
4237 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4238 | _ACEOF | |
a38df97f | 4239 | |
80992638 AK |
4240 | fi |
4241 | ||
ad6254c5 AK |
4242 | done |
4243 | ||
7d1552c9 | 4244 | |
7d1552c9 | 4245 | |
80992638 | 4246 | |
5a52dca9 | 4247 | |
5a52dca9 | 4248 | |
ad6254c5 AK |
4249 | |
4250 | ||
4251 | ||
4252 | ||
4253 | ||
4254 | for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h | |
4255 | do | |
4256 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
4257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4258 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4262 | fi | |
7a197a62 AK |
4263 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4264 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4265 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4266 | else |
4267 | # Is the header compilable? | |
7a197a62 AK |
4268 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4269 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4270 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4271 | /* confdefs.h. */ |
4272 | _ACEOF | |
4273 | cat confdefs.h >>conftest.$ac_ext | |
4274 | cat >>conftest.$ac_ext <<_ACEOF | |
4275 | /* end confdefs.h. */ | |
4276 | $ac_includes_default | |
4277 | #include <$ac_header> | |
4278 | _ACEOF | |
4279 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4280 | if { (ac_try="$ac_compile" |
4281 | case "(($ac_try" in | |
4282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4283 | *) ac_try_echo=$ac_try;; | |
4284 | esac | |
4285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4286 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4287 | ac_status=$? |
8a2fc586 AK |
4288 | grep -v '^ *+' conftest.er1 >conftest.err |
4289 | rm -f conftest.er1 | |
4290 | cat conftest.err >&5 | |
ad6254c5 | 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4292 | (exit $ac_status); } && { |
4293 | test -z "$ac_c_werror_flag" || | |
4294 | test ! -s conftest.err | |
4295 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4296 | ac_header_compiler=yes |
4297 | else | |
4298 | echo "$as_me: failed program was:" >&5 | |
4299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4300 | ||
7a197a62 | 4301 | ac_header_compiler=no |
ad6254c5 | 4302 | fi |
7a197a62 AK |
4303 | |
4304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4305 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4306 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4307 | |
4308 | # Is the header present? | |
7a197a62 AK |
4309 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4310 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4311 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4312 | /* confdefs.h. */ |
4313 | _ACEOF | |
4314 | cat confdefs.h >>conftest.$ac_ext | |
4315 | cat >>conftest.$ac_ext <<_ACEOF | |
4316 | /* end confdefs.h. */ | |
4317 | #include <$ac_header> | |
4318 | _ACEOF | |
7a197a62 AK |
4319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4320 | case "(($ac_try" in | |
4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4322 | *) ac_try_echo=$ac_try;; | |
4323 | esac | |
4324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
4326 | ac_status=$? |
4327 | grep -v '^ *+' conftest.er1 >conftest.err | |
4328 | rm -f conftest.er1 | |
4329 | cat conftest.err >&5 | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
4331 | (exit $ac_status); } >/dev/null && { |
4332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4333 | test ! -s conftest.err | |
4334 | }; then | |
ad6254c5 AK |
4335 | ac_header_preproc=yes |
4336 | else | |
4337 | echo "$as_me: failed program was:" >&5 | |
4338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4339 | ||
4340 | ac_header_preproc=no | |
4341 | fi | |
7a197a62 | 4342 | |
ad6254c5 | 4343 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
4344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4345 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4346 | |
4347 | # So? What about this header? | |
8a2fc586 AK |
4348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4349 | yes:no: ) | |
ad6254c5 AK |
4350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4354 | ac_header_preproc=yes | |
ad6254c5 | 4355 | ;; |
8a2fc586 | 4356 | no:yes:* ) |
ad6254c5 AK |
4357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4369 | |
ad6254c5 AK |
4370 | ;; |
4371 | esac | |
7a197a62 AK |
4372 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4374 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4376 | else | |
8a2fc586 | 4377 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4378 | fi |
7a197a62 AK |
4379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4381 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4382 | |
4383 | fi | |
4384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4385 | cat >>confdefs.h <<_ACEOF | |
4386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4387 | _ACEOF | |
b896caa1 | 4388 | |
d8ac0fbc | 4389 | else |
ad6254c5 AK |
4390 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4391 | echo "$as_me: error: bailing out" >&2;} | |
4392 | { (exit 1); exit 1; }; } | |
80992638 AK |
4393 | fi |
4394 | ||
ad6254c5 | 4395 | done |
d8ac0fbc | 4396 | |
d8ac0fbc | 4397 | |
d8ac0fbc | 4398 | |
80992638 | 4399 | |
d3c8211f | 4400 | |
d3c8211f | 4401 | |
d3c8211f | 4402 | |
80992638 | 4403 | |
4922197a | 4404 | |
4922197a | 4405 | |
ad6254c5 AK |
4406 | |
4407 | ||
4408 | ||
4409 | for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h | |
4410 | do | |
4411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
4412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4413 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4417 | fi | |
7a197a62 AK |
4418 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4419 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4420 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4421 | else |
4422 | # Is the header compilable? | |
7a197a62 AK |
4423 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4425 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4426 | /* confdefs.h. */ |
4427 | _ACEOF | |
4428 | cat confdefs.h >>conftest.$ac_ext | |
4429 | cat >>conftest.$ac_ext <<_ACEOF | |
4430 | /* end confdefs.h. */ | |
4431 | $ac_includes_default | |
4432 | #include <$ac_header> | |
4433 | _ACEOF | |
4434 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4435 | if { (ac_try="$ac_compile" |
4436 | case "(($ac_try" in | |
4437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4438 | *) ac_try_echo=$ac_try;; | |
4439 | esac | |
4440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4441 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4442 | ac_status=$? |
8a2fc586 AK |
4443 | grep -v '^ *+' conftest.er1 >conftest.err |
4444 | rm -f conftest.er1 | |
4445 | cat conftest.err >&5 | |
ad6254c5 | 4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4447 | (exit $ac_status); } && { |
4448 | test -z "$ac_c_werror_flag" || | |
4449 | test ! -s conftest.err | |
4450 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4451 | ac_header_compiler=yes |
4452 | else | |
4453 | echo "$as_me: failed program was:" >&5 | |
4454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4455 | ||
7a197a62 | 4456 | ac_header_compiler=no |
ad6254c5 | 4457 | fi |
7a197a62 AK |
4458 | |
4459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4461 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4462 | |
4463 | # Is the header present? | |
7a197a62 AK |
4464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4466 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4467 | /* confdefs.h. */ |
4468 | _ACEOF | |
4469 | cat confdefs.h >>conftest.$ac_ext | |
4470 | cat >>conftest.$ac_ext <<_ACEOF | |
4471 | /* end confdefs.h. */ | |
4472 | #include <$ac_header> | |
4473 | _ACEOF | |
7a197a62 AK |
4474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4475 | case "(($ac_try" in | |
4476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4477 | *) ac_try_echo=$ac_try;; | |
4478 | esac | |
4479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
4481 | ac_status=$? |
4482 | grep -v '^ *+' conftest.er1 >conftest.err | |
4483 | rm -f conftest.er1 | |
4484 | cat conftest.err >&5 | |
4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
4486 | (exit $ac_status); } >/dev/null && { |
4487 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4488 | test ! -s conftest.err | |
4489 | }; then | |
ad6254c5 AK |
4490 | ac_header_preproc=yes |
4491 | else | |
4492 | echo "$as_me: failed program was:" >&5 | |
4493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4494 | ||
4495 | ac_header_preproc=no | |
4496 | fi | |
7a197a62 | 4497 | |
ad6254c5 | 4498 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
4499 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4500 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4501 | |
4502 | # So? What about this header? | |
8a2fc586 AK |
4503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4504 | yes:no: ) | |
ad6254c5 AK |
4505 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4506 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4508 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4509 | ac_header_preproc=yes | |
ad6254c5 | 4510 | ;; |
8a2fc586 | 4511 | no:yes:* ) |
ad6254c5 AK |
4512 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4513 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4514 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4515 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4516 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4517 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4518 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4519 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4521 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4523 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4524 | |
ad6254c5 AK |
4525 | ;; |
4526 | esac | |
7a197a62 AK |
4527 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4529 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4531 | else | |
8a2fc586 | 4532 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4533 | fi |
7a197a62 AK |
4534 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4536 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4537 | |
4538 | fi | |
4539 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4540 | cat >>confdefs.h <<_ACEOF | |
4541 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4542 | _ACEOF | |
4922197a | 4543 | |
4922197a | 4544 | else |
ad6254c5 AK |
4545 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4546 | echo "$as_me: error: bailing out" >&2;} | |
4547 | { (exit 1); exit 1; }; } | |
80992638 AK |
4548 | fi |
4549 | ||
ad6254c5 | 4550 | done |
4922197a | 4551 | |
4922197a | 4552 | |
ad6254c5 AK |
4553 | case "$host_os" in |
4554 | linux*) | |
4922197a | 4555 | |
ad6254c5 AK |
4556 | |
4557 | ||
4558 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4559 | do | |
4560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
4561 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4562 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4566 | fi | |
7a197a62 AK |
4567 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4569 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4570 | else |
ad6254c5 | 4571 | # Is the header compilable? |
7a197a62 AK |
4572 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4573 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4574 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4575 | /* confdefs.h. */ |
4576 | _ACEOF | |
4577 | cat confdefs.h >>conftest.$ac_ext | |
4578 | cat >>conftest.$ac_ext <<_ACEOF | |
4579 | /* end confdefs.h. */ | |
4580 | $ac_includes_default | |
4581 | #include <$ac_header> | |
4582 | _ACEOF | |
4583 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4584 | if { (ac_try="$ac_compile" |
4585 | case "(($ac_try" in | |
4586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4587 | *) ac_try_echo=$ac_try;; | |
4588 | esac | |
4589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4590 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4591 | ac_status=$? |
8a2fc586 AK |
4592 | grep -v '^ *+' conftest.er1 >conftest.err |
4593 | rm -f conftest.er1 | |
4594 | cat conftest.err >&5 | |
ad6254c5 | 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4596 | (exit $ac_status); } && { |
4597 | test -z "$ac_c_werror_flag" || | |
4598 | test ! -s conftest.err | |
4599 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4600 | ac_header_compiler=yes |
4601 | else | |
4602 | echo "$as_me: failed program was:" >&5 | |
4603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4604 | ||
7a197a62 | 4605 | ac_header_compiler=no |
ad6254c5 | 4606 | fi |
7a197a62 AK |
4607 | |
4608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4609 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4610 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4611 | |
4612 | # Is the header present? | |
7a197a62 AK |
4613 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4614 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4615 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4616 | /* confdefs.h. */ |
4617 | _ACEOF | |
4618 | cat confdefs.h >>conftest.$ac_ext | |
4619 | cat >>conftest.$ac_ext <<_ACEOF | |
4620 | /* end confdefs.h. */ | |
4621 | #include <$ac_header> | |
4622 | _ACEOF | |
7a197a62 AK |
4623 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4624 | case "(($ac_try" in | |
4625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4626 | *) ac_try_echo=$ac_try;; | |
4627 | esac | |
4628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4629 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
4630 | ac_status=$? |
4631 | grep -v '^ *+' conftest.er1 >conftest.err | |
4632 | rm -f conftest.er1 | |
4633 | cat conftest.err >&5 | |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
4635 | (exit $ac_status); } >/dev/null && { |
4636 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4637 | test ! -s conftest.err | |
4638 | }; then | |
ad6254c5 AK |
4639 | ac_header_preproc=yes |
4640 | else | |
4641 | echo "$as_me: failed program was:" >&5 | |
4642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4643 | ||
4644 | ac_header_preproc=no | |
4645 | fi | |
7a197a62 | 4646 | |
ad6254c5 | 4647 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
4648 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4649 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4650 | |
4651 | # So? What about this header? | |
8a2fc586 AK |
4652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4653 | yes:no: ) | |
ad6254c5 AK |
4654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4658 | ac_header_preproc=yes | |
ad6254c5 | 4659 | ;; |
8a2fc586 | 4660 | no:yes:* ) |
ad6254c5 AK |
4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4667 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4668 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4673 | |
ad6254c5 AK |
4674 | ;; |
4675 | esac | |
7a197a62 AK |
4676 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4677 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4680 | else | |
8a2fc586 | 4681 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4682 | fi |
7a197a62 AK |
4683 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4684 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4685 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4686 | |
ad6254c5 AK |
4687 | fi |
4688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4689 | cat >>confdefs.h <<_ACEOF | |
4690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4691 | _ACEOF | |
795ca3e5 | 4692 | |
795ca3e5 | 4693 | else |
ad6254c5 AK |
4694 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4695 | echo "$as_me: error: bailing out" >&2;} | |
4696 | { (exit 1); exit 1; }; } | |
80992638 AK |
4697 | fi |
4698 | ||
ad6254c5 AK |
4699 | done |
4700 | ;; | |
4701 | darwin*) | |
4702 | ||
795ca3e5 | 4703 | |
ad6254c5 AK |
4704 | for ac_header in machine/endian.h sys/disk.h |
4705 | do | |
4706 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
4707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4712 | fi | |
7a197a62 AK |
4713 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4714 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4715 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4716 | else |
4717 | # Is the header compilable? | |
7a197a62 AK |
4718 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4720 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4721 | /* confdefs.h. */ |
4722 | _ACEOF | |
4723 | cat confdefs.h >>conftest.$ac_ext | |
4724 | cat >>conftest.$ac_ext <<_ACEOF | |
4725 | /* end confdefs.h. */ | |
4726 | $ac_includes_default | |
4727 | #include <$ac_header> | |
4728 | _ACEOF | |
4729 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4730 | if { (ac_try="$ac_compile" |
4731 | case "(($ac_try" in | |
4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4733 | *) ac_try_echo=$ac_try;; | |
4734 | esac | |
4735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4736 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4737 | ac_status=$? |
8a2fc586 AK |
4738 | grep -v '^ *+' conftest.er1 >conftest.err |
4739 | rm -f conftest.er1 | |
4740 | cat conftest.err >&5 | |
ad6254c5 | 4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4742 | (exit $ac_status); } && { |
4743 | test -z "$ac_c_werror_flag" || | |
4744 | test ! -s conftest.err | |
4745 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4746 | ac_header_compiler=yes |
4747 | else | |
4748 | echo "$as_me: failed program was:" >&5 | |
4749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4750 | ||
7a197a62 | 4751 | ac_header_compiler=no |
ad6254c5 | 4752 | fi |
7a197a62 AK |
4753 | |
4754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4755 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4756 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4757 | |
4758 | # Is the header present? | |
7a197a62 AK |
4759 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4760 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4761 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4762 | /* confdefs.h. */ |
4763 | _ACEOF | |
4764 | cat confdefs.h >>conftest.$ac_ext | |
4765 | cat >>conftest.$ac_ext <<_ACEOF | |
4766 | /* end confdefs.h. */ | |
4767 | #include <$ac_header> | |
4768 | _ACEOF | |
7a197a62 AK |
4769 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4770 | case "(($ac_try" in | |
4771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4772 | *) ac_try_echo=$ac_try;; | |
4773 | esac | |
4774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4775 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
4776 | ac_status=$? |
4777 | grep -v '^ *+' conftest.er1 >conftest.err | |
4778 | rm -f conftest.er1 | |
4779 | cat conftest.err >&5 | |
4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
4781 | (exit $ac_status); } >/dev/null && { |
4782 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4783 | test ! -s conftest.err | |
4784 | }; then | |
ad6254c5 AK |
4785 | ac_header_preproc=yes |
4786 | else | |
4787 | echo "$as_me: failed program was:" >&5 | |
4788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4789 | ||
4790 | ac_header_preproc=no | |
4791 | fi | |
7a197a62 | 4792 | |
ad6254c5 | 4793 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
4794 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4795 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4796 | |
4797 | # So? What about this header? | |
8a2fc586 AK |
4798 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4799 | yes:no: ) | |
ad6254c5 AK |
4800 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4801 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4803 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4804 | ac_header_preproc=yes | |
ad6254c5 | 4805 | ;; |
8a2fc586 | 4806 | no:yes:* ) |
ad6254c5 AK |
4807 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4808 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4809 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4810 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4811 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4812 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4813 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4814 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4816 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4817 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4818 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4819 | |
ad6254c5 AK |
4820 | ;; |
4821 | esac | |
7a197a62 AK |
4822 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4824 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4826 | else | |
8a2fc586 | 4827 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4828 | fi |
7a197a62 AK |
4829 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4830 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4831 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 4832 | |
ad6254c5 AK |
4833 | fi |
4834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4835 | cat >>confdefs.h <<_ACEOF | |
4836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4837 | _ACEOF | |
4838 | ||
4839 | else | |
4840 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4841 | echo "$as_me: error: bailing out" >&2;} | |
4842 | { (exit 1); exit 1; }; } | |
80992638 AK |
4843 | fi |
4844 | ||
ad6254c5 AK |
4845 | done |
4846 | ;; | |
4847 | esac | |
d3c8211f | 4848 | |
80992638 | 4849 | ################################################################################ |
7a197a62 AK |
4850 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4851 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 AK |
4852 | if test "${ac_cv_c_const+set}" = set; then |
4853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4854 | else |
ad6254c5 | 4855 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4856 | /* confdefs.h. */ |
4857 | _ACEOF | |
4858 | cat confdefs.h >>conftest.$ac_ext | |
4859 | cat >>conftest.$ac_ext <<_ACEOF | |
4860 | /* end confdefs.h. */ | |
4861 | ||
4862 | int | |
4863 | main () | |
4864 | { | |
4865 | /* FIXME: Include the comments suggested by Paul. */ | |
4866 | #ifndef __cplusplus | |
4867 | /* Ultrix mips cc rejects this. */ | |
4868 | typedef int charset[2]; | |
7a197a62 | 4869 | const charset cs; |
ad6254c5 | 4870 | /* SunOS 4.1.1 cc rejects this. */ |
7a197a62 AK |
4871 | char const *const *pcpcc; |
4872 | char **ppc; | |
ad6254c5 AK |
4873 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4874 | struct point {int x, y;}; | |
4875 | static struct point const zero = {0,0}; | |
4876 | /* AIX XL C 1.02.0.0 rejects this. | |
4877 | It does not let you subtract one const X* pointer from another in | |
4878 | an arm of an if-expression whose if-part is not a constant | |
4879 | expression */ | |
4880 | const char *g = "string"; | |
7a197a62 | 4881 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 4882 | /* HPUX 7.0 cc rejects these. */ |
7a197a62 AK |
4883 | ++pcpcc; |
4884 | ppc = (char**) pcpcc; | |
4885 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
4886 | { /* SCO 3.2v4 cc rejects this. */ |
4887 | char *t; | |
4888 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4889 | ||
4890 | *t++ = 0; | |
7a197a62 | 4891 | if (s) return 0; |
ad6254c5 AK |
4892 | } |
4893 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4894 | int x[] = {25, 17}; | |
4895 | const int *foo = &x[0]; | |
4896 | ++foo; | |
4897 | } | |
4898 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4899 | typedef const int *iptr; | |
4900 | iptr p = 0; | |
4901 | ++p; | |
4902 | } | |
4903 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4904 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4905 | struct s { int j; const int *ap[3]; }; | |
4906 | struct s *b; b->j = 5; | |
4907 | } | |
4908 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4909 | const int foo = 10; | |
7a197a62 | 4910 | if (!foo) return 0; |
ad6254c5 | 4911 | } |
7a197a62 | 4912 | return !cs[0] && !zero.x; |
ad6254c5 AK |
4913 | #endif |
4914 | ||
4915 | ; | |
4916 | return 0; | |
4917 | } | |
4918 | _ACEOF | |
4919 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4920 | if { (ac_try="$ac_compile" |
4921 | case "(($ac_try" in | |
4922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4923 | *) ac_try_echo=$ac_try;; | |
4924 | esac | |
4925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4926 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4927 | ac_status=$? |
8a2fc586 AK |
4928 | grep -v '^ *+' conftest.er1 >conftest.err |
4929 | rm -f conftest.er1 | |
4930 | cat conftest.err >&5 | |
ad6254c5 | 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4932 | (exit $ac_status); } && { |
4933 | test -z "$ac_c_werror_flag" || | |
4934 | test ! -s conftest.err | |
4935 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4936 | ac_cv_c_const=yes |
4937 | else | |
4938 | echo "$as_me: failed program was:" >&5 | |
4939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4940 | ||
7a197a62 | 4941 | ac_cv_c_const=no |
ad6254c5 | 4942 | fi |
7a197a62 AK |
4943 | |
4944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 4945 | fi |
7a197a62 AK |
4946 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4947 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 4948 | if test $ac_cv_c_const = no; then |
80992638 | 4949 | |
ad6254c5 AK |
4950 | cat >>confdefs.h <<\_ACEOF |
4951 | #define const | |
4952 | _ACEOF | |
80992638 | 4953 | |
d3c8211f | 4954 | fi |
d3c8211f | 4955 | |
7a197a62 AK |
4956 | { echo "$as_me:$LINENO: checking for inline" >&5 |
4957 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 AK |
4958 | if test "${ac_cv_c_inline+set}" = set; then |
4959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4960 | else |
ad6254c5 AK |
4961 | ac_cv_c_inline=no |
4962 | for ac_kw in inline __inline__ __inline; do | |
4963 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4964 | /* confdefs.h. */ |
4965 | _ACEOF | |
4966 | cat confdefs.h >>conftest.$ac_ext | |
4967 | cat >>conftest.$ac_ext <<_ACEOF | |
4968 | /* end confdefs.h. */ | |
4969 | #ifndef __cplusplus | |
4970 | typedef int foo_t; | |
4971 | static $ac_kw foo_t static_foo () {return 0; } | |
4972 | $ac_kw foo_t foo () {return 0; } | |
4973 | #endif | |
80992638 | 4974 | |
ad6254c5 AK |
4975 | _ACEOF |
4976 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4977 | if { (ac_try="$ac_compile" |
4978 | case "(($ac_try" in | |
4979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4980 | *) ac_try_echo=$ac_try;; | |
4981 | esac | |
4982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4983 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 4984 | ac_status=$? |
8a2fc586 AK |
4985 | grep -v '^ *+' conftest.er1 >conftest.err |
4986 | rm -f conftest.er1 | |
4987 | cat conftest.err >&5 | |
ad6254c5 | 4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4989 | (exit $ac_status); } && { |
4990 | test -z "$ac_c_werror_flag" || | |
4991 | test ! -s conftest.err | |
4992 | } && test -s conftest.$ac_objext; then | |
4993 | ac_cv_c_inline=$ac_kw | |
ad6254c5 AK |
4994 | else |
4995 | echo "$as_me: failed program was:" >&5 | |
4996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4997 | |
7a197a62 | 4998 | |
8ce0cbda | 4999 | fi |
7a197a62 AK |
5000 | |
5001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5002 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5003 | done |
8ce0cbda | 5004 | |
8ce0cbda | 5005 | fi |
7a197a62 AK |
5006 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5007 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5008 | |
5009 | ||
ad6254c5 AK |
5010 | case $ac_cv_c_inline in |
5011 | inline | yes) ;; | |
8a2fc586 AK |
5012 | *) |
5013 | case $ac_cv_c_inline in | |
5014 | no) ac_val=;; | |
5015 | *) ac_val=$ac_cv_c_inline;; | |
5016 | esac | |
5017 | cat >>confdefs.h <<_ACEOF | |
5018 | #ifndef __cplusplus | |
5019 | #define inline $ac_val | |
5020 | #endif | |
c1c065a3 | 5021 | _ACEOF |
8a2fc586 | 5022 | ;; |
ad6254c5 | 5023 | esac |
8ce0cbda | 5024 | |
7a197a62 AK |
5025 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5026 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 AK |
5027 | if test "${ac_cv_type_off_t+set}" = set; then |
5028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5029 | else | |
5030 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5031 | /* confdefs.h. */ |
5032 | _ACEOF | |
5033 | cat confdefs.h >>conftest.$ac_ext | |
5034 | cat >>conftest.$ac_ext <<_ACEOF | |
5035 | /* end confdefs.h. */ | |
5036 | $ac_includes_default | |
7a197a62 | 5037 | typedef off_t ac__type_new_; |
ad6254c5 AK |
5038 | int |
5039 | main () | |
5040 | { | |
7a197a62 | 5041 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5042 | return 0; |
7a197a62 | 5043 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5044 | return 0; |
5045 | ; | |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5049 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5050 | if { (ac_try="$ac_compile" |
5051 | case "(($ac_try" in | |
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5053 | *) ac_try_echo=$ac_try;; | |
5054 | esac | |
5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5056 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5057 | ac_status=$? |
8a2fc586 AK |
5058 | grep -v '^ *+' conftest.er1 >conftest.err |
5059 | rm -f conftest.er1 | |
5060 | cat conftest.err >&5 | |
ad6254c5 | 5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5062 | (exit $ac_status); } && { |
5063 | test -z "$ac_c_werror_flag" || | |
5064 | test ! -s conftest.err | |
5065 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5066 | ac_cv_type_off_t=yes |
5067 | else | |
5068 | echo "$as_me: failed program was:" >&5 | |
5069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 5070 | |
7a197a62 | 5071 | ac_cv_type_off_t=no |
80992638 | 5072 | fi |
7a197a62 AK |
5073 | |
5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5075 | fi |
7a197a62 AK |
5076 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5077 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5078 | if test $ac_cv_type_off_t = yes; then |
5079 | : | |
5080 | else | |
80992638 | 5081 | |
ad6254c5 | 5082 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5083 | #define off_t long int |
ad6254c5 | 5084 | _ACEOF |
199e490e | 5085 | |
b896caa1 AK |
5086 | fi |
5087 | ||
7a197a62 AK |
5088 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5089 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 AK |
5090 | if test "${ac_cv_type_pid_t+set}" = set; then |
5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5092 | else | |
5093 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5094 | /* confdefs.h. */ |
5095 | _ACEOF | |
5096 | cat confdefs.h >>conftest.$ac_ext | |
5097 | cat >>conftest.$ac_ext <<_ACEOF | |
5098 | /* end confdefs.h. */ | |
5099 | $ac_includes_default | |
7a197a62 | 5100 | typedef pid_t ac__type_new_; |
ad6254c5 AK |
5101 | int |
5102 | main () | |
5103 | { | |
7a197a62 | 5104 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5105 | return 0; |
7a197a62 | 5106 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5107 | return 0; |
5108 | ; | |
5109 | return 0; | |
5110 | } | |
5111 | _ACEOF | |
5112 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5113 | if { (ac_try="$ac_compile" |
5114 | case "(($ac_try" in | |
5115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5116 | *) ac_try_echo=$ac_try;; | |
5117 | esac | |
5118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5119 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5120 | ac_status=$? |
8a2fc586 AK |
5121 | grep -v '^ *+' conftest.er1 >conftest.err |
5122 | rm -f conftest.er1 | |
5123 | cat conftest.err >&5 | |
ad6254c5 | 5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5125 | (exit $ac_status); } && { |
5126 | test -z "$ac_c_werror_flag" || | |
5127 | test ! -s conftest.err | |
5128 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5129 | ac_cv_type_pid_t=yes |
5130 | else | |
5131 | echo "$as_me: failed program was:" >&5 | |
5132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5133 | ||
7a197a62 | 5134 | ac_cv_type_pid_t=no |
ad6254c5 | 5135 | fi |
7a197a62 AK |
5136 | |
5137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5138 | fi |
7a197a62 AK |
5139 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5140 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5141 | if test $ac_cv_type_pid_t = yes; then |
5142 | : | |
5143 | else | |
80992638 | 5144 | |
ad6254c5 AK |
5145 | cat >>confdefs.h <<_ACEOF |
5146 | #define pid_t int | |
5147 | _ACEOF | |
2dc95e1c | 5148 | |
2dc95e1c AK |
5149 | fi |
5150 | ||
7a197a62 AK |
5151 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5152 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 AK |
5153 | if test "${ac_cv_type_size_t+set}" = set; then |
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 5155 | else |
ad6254c5 | 5156 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5157 | /* confdefs.h. */ |
5158 | _ACEOF | |
5159 | cat confdefs.h >>conftest.$ac_ext | |
5160 | cat >>conftest.$ac_ext <<_ACEOF | |
5161 | /* end confdefs.h. */ | |
5162 | $ac_includes_default | |
7a197a62 | 5163 | typedef size_t ac__type_new_; |
ad6254c5 AK |
5164 | int |
5165 | main () | |
5166 | { | |
7a197a62 | 5167 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5168 | return 0; |
7a197a62 | 5169 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5170 | return 0; |
5171 | ; | |
5172 | return 0; | |
5173 | } | |
5174 | _ACEOF | |
5175 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5176 | if { (ac_try="$ac_compile" |
5177 | case "(($ac_try" in | |
5178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5179 | *) ac_try_echo=$ac_try;; | |
5180 | esac | |
5181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5182 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5183 | ac_status=$? |
8a2fc586 AK |
5184 | grep -v '^ *+' conftest.er1 >conftest.err |
5185 | rm -f conftest.er1 | |
5186 | cat conftest.err >&5 | |
ad6254c5 | 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5188 | (exit $ac_status); } && { |
5189 | test -z "$ac_c_werror_flag" || | |
5190 | test ! -s conftest.err | |
5191 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5192 | ac_cv_type_size_t=yes |
5193 | else | |
5194 | echo "$as_me: failed program was:" >&5 | |
5195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5196 | ||
7a197a62 | 5197 | ac_cv_type_size_t=no |
80992638 | 5198 | fi |
7a197a62 AK |
5199 | |
5200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5201 | fi |
7a197a62 AK |
5202 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5203 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5204 | if test $ac_cv_type_size_t = yes; then |
5205 | : | |
5206 | else | |
80992638 | 5207 | |
ad6254c5 | 5208 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5209 | #define size_t unsigned int |
ad6254c5 | 5210 | _ACEOF |
8106cdd5 | 5211 | |
8106cdd5 AK |
5212 | fi |
5213 | ||
7a197a62 AK |
5214 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5215 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 AK |
5216 | if test "${ac_cv_type_mode_t+set}" = set; then |
5217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5218 | else | |
5219 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5220 | /* confdefs.h. */ |
5221 | _ACEOF | |
5222 | cat confdefs.h >>conftest.$ac_ext | |
5223 | cat >>conftest.$ac_ext <<_ACEOF | |
5224 | /* end confdefs.h. */ | |
5225 | $ac_includes_default | |
7a197a62 | 5226 | typedef mode_t ac__type_new_; |
ad6254c5 AK |
5227 | int |
5228 | main () | |
5229 | { | |
7a197a62 | 5230 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5231 | return 0; |
7a197a62 | 5232 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5233 | return 0; |
5234 | ; | |
5235 | return 0; | |
5236 | } | |
5237 | _ACEOF | |
5238 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5239 | if { (ac_try="$ac_compile" |
5240 | case "(($ac_try" in | |
5241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5242 | *) ac_try_echo=$ac_try;; | |
5243 | esac | |
5244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5245 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5246 | ac_status=$? |
8a2fc586 AK |
5247 | grep -v '^ *+' conftest.er1 >conftest.err |
5248 | rm -f conftest.er1 | |
5249 | cat conftest.err >&5 | |
ad6254c5 | 5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5251 | (exit $ac_status); } && { |
5252 | test -z "$ac_c_werror_flag" || | |
5253 | test ! -s conftest.err | |
5254 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5255 | ac_cv_type_mode_t=yes |
5256 | else | |
5257 | echo "$as_me: failed program was:" >&5 | |
5258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5259 | ||
7a197a62 | 5260 | ac_cv_type_mode_t=no |
80992638 | 5261 | fi |
7a197a62 AK |
5262 | |
5263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5264 | fi |
7a197a62 AK |
5265 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5266 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5267 | if test $ac_cv_type_mode_t = yes; then |
5268 | : | |
5269 | else | |
80992638 | 5270 | |
ad6254c5 AK |
5271 | cat >>confdefs.h <<_ACEOF |
5272 | #define mode_t int | |
5273 | _ACEOF | |
5274 | ||
5275 | fi | |
5276 | ||
7a197a62 AK |
5277 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5278 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 AK |
5279 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
5280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5281 | else | |
5282 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5283 | /* confdefs.h. */ |
5284 | _ACEOF | |
5285 | cat confdefs.h >>conftest.$ac_ext | |
5286 | cat >>conftest.$ac_ext <<_ACEOF | |
5287 | /* end confdefs.h. */ | |
5288 | $ac_includes_default | |
5289 | int | |
5290 | main () | |
5291 | { | |
5292 | static struct stat ac_aggr; | |
5293 | if (ac_aggr.st_rdev) | |
5294 | return 0; | |
5295 | ; | |
5296 | return 0; | |
5297 | } | |
5298 | _ACEOF | |
5299 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5300 | if { (ac_try="$ac_compile" |
5301 | case "(($ac_try" in | |
5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5303 | *) ac_try_echo=$ac_try;; | |
5304 | esac | |
5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5306 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5307 | ac_status=$? |
8a2fc586 AK |
5308 | grep -v '^ *+' conftest.er1 >conftest.err |
5309 | rm -f conftest.er1 | |
5310 | cat conftest.err >&5 | |
ad6254c5 | 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5312 | (exit $ac_status); } && { |
5313 | test -z "$ac_c_werror_flag" || | |
5314 | test ! -s conftest.err | |
5315 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5316 | ac_cv_member_struct_stat_st_rdev=yes |
5317 | else | |
5318 | echo "$as_me: failed program was:" >&5 | |
5319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5320 | ||
7a197a62 | 5321 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5322 | /* confdefs.h. */ |
5323 | _ACEOF | |
5324 | cat confdefs.h >>conftest.$ac_ext | |
5325 | cat >>conftest.$ac_ext <<_ACEOF | |
5326 | /* end confdefs.h. */ | |
5327 | $ac_includes_default | |
5328 | int | |
5329 | main () | |
5330 | { | |
5331 | static struct stat ac_aggr; | |
5332 | if (sizeof ac_aggr.st_rdev) | |
5333 | return 0; | |
5334 | ; | |
5335 | return 0; | |
5336 | } | |
5337 | _ACEOF | |
5338 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5339 | if { (ac_try="$ac_compile" |
5340 | case "(($ac_try" in | |
5341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5342 | *) ac_try_echo=$ac_try;; | |
5343 | esac | |
5344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5345 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5346 | ac_status=$? |
8a2fc586 AK |
5347 | grep -v '^ *+' conftest.er1 >conftest.err |
5348 | rm -f conftest.er1 | |
5349 | cat conftest.err >&5 | |
ad6254c5 | 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5351 | (exit $ac_status); } && { |
5352 | test -z "$ac_c_werror_flag" || | |
5353 | test ! -s conftest.err | |
5354 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5355 | ac_cv_member_struct_stat_st_rdev=yes |
5356 | else | |
5357 | echo "$as_me: failed program was:" >&5 | |
5358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5359 | ||
7a197a62 | 5360 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5361 | fi |
7a197a62 AK |
5362 | |
5363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5364 | fi |
7a197a62 AK |
5365 | |
5366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5367 | fi |
7a197a62 AK |
5368 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5369 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5370 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5371 | ||
5372 | cat >>confdefs.h <<_ACEOF | |
5373 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5374 | _ACEOF | |
5375 | ||
5376 | ||
ad6254c5 AK |
5377 | fi |
5378 | ||
7a197a62 AK |
5379 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5380 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 AK |
5381 | if test "${ac_cv_struct_tm+set}" = set; then |
5382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5383 | else | |
5384 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5385 | /* confdefs.h. */ |
5386 | _ACEOF | |
5387 | cat confdefs.h >>conftest.$ac_ext | |
5388 | cat >>conftest.$ac_ext <<_ACEOF | |
5389 | /* end confdefs.h. */ | |
5390 | #include <sys/types.h> | |
5391 | #include <time.h> | |
5392 | ||
5393 | int | |
5394 | main () | |
5395 | { | |
7a197a62 AK |
5396 | struct tm tm; |
5397 | int *p = &tm.tm_sec; | |
5398 | return !p; | |
ad6254c5 AK |
5399 | ; |
5400 | return 0; | |
5401 | } | |
5402 | _ACEOF | |
5403 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5404 | if { (ac_try="$ac_compile" |
5405 | case "(($ac_try" in | |
5406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5407 | *) ac_try_echo=$ac_try;; | |
5408 | esac | |
5409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5410 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 5411 | ac_status=$? |
8a2fc586 AK |
5412 | grep -v '^ *+' conftest.er1 >conftest.err |
5413 | rm -f conftest.er1 | |
5414 | cat conftest.err >&5 | |
ad6254c5 | 5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5416 | (exit $ac_status); } && { |
5417 | test -z "$ac_c_werror_flag" || | |
5418 | test ! -s conftest.err | |
5419 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5420 | ac_cv_struct_tm=time.h |
5421 | else | |
5422 | echo "$as_me: failed program was:" >&5 | |
5423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5424 | ||
7a197a62 | 5425 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5426 | fi |
7a197a62 AK |
5427 | |
5428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5429 | fi |
7a197a62 AK |
5430 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5431 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5432 | if test $ac_cv_struct_tm = sys/time.h; then |
5433 | ||
5434 | cat >>confdefs.h <<\_ACEOF | |
5435 | #define TM_IN_SYS_TIME 1 | |
5436 | _ACEOF | |
5437 | ||
5438 | fi | |
809fae91 | 5439 | |
795ca3e5 | 5440 | |
80992638 | 5441 | ################################################################################ |
ad6254c5 AK |
5442 | |
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
5457 | do | |
5458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
5459 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5461 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5463 | else |
ad6254c5 | 5464 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5465 | /* confdefs.h. */ |
5466 | _ACEOF | |
5467 | cat confdefs.h >>conftest.$ac_ext | |
5468 | cat >>conftest.$ac_ext <<_ACEOF | |
5469 | /* end confdefs.h. */ | |
8a2fc586 AK |
5470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5472 | #define $ac_func innocuous_$ac_func | |
5473 | ||
ad6254c5 AK |
5474 | /* System header to define __stub macros and hopefully few prototypes, |
5475 | which can conflict with char $ac_func (); below. | |
5476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5477 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5478 | |
ad6254c5 AK |
5479 | #ifdef __STDC__ |
5480 | # include <limits.h> | |
5481 | #else | |
5482 | # include <assert.h> | |
5483 | #endif | |
8a2fc586 AK |
5484 | |
5485 | #undef $ac_func | |
5486 | ||
7a197a62 AK |
5487 | /* Override any GCC internal prototype to avoid an error. |
5488 | Use char because int might match the return type of a GCC | |
5489 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5490 | #ifdef __cplusplus |
5491 | extern "C" | |
ad6254c5 | 5492 | #endif |
ad6254c5 AK |
5493 | char $ac_func (); |
5494 | /* The GNU C library defines this for functions which it implements | |
5495 | to always fail with ENOSYS. Some functions are actually named | |
5496 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5497 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5498 | choke me |
ad6254c5 AK |
5499 | #endif |
5500 | ||
5501 | int | |
5502 | main () | |
5503 | { | |
7a197a62 | 5504 | return $ac_func (); |
ad6254c5 AK |
5505 | ; |
5506 | return 0; | |
5507 | } | |
5508 | _ACEOF | |
5509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5510 | if { (ac_try="$ac_link" |
5511 | case "(($ac_try" in | |
5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5513 | *) ac_try_echo=$ac_try;; | |
5514 | esac | |
5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5516 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 5517 | ac_status=$? |
8a2fc586 AK |
5518 | grep -v '^ *+' conftest.er1 >conftest.err |
5519 | rm -f conftest.er1 | |
5520 | cat conftest.err >&5 | |
ad6254c5 | 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5522 | (exit $ac_status); } && { |
5523 | test -z "$ac_c_werror_flag" || | |
5524 | test ! -s conftest.err | |
5525 | } && test -s conftest$ac_exeext && | |
5526 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 5527 | eval "$as_ac_var=yes" |
795ca3e5 | 5528 | else |
ad6254c5 AK |
5529 | echo "$as_me: failed program was:" >&5 |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5531 | ||
7a197a62 | 5532 | eval "$as_ac_var=no" |
795ca3e5 | 5533 | fi |
7a197a62 AK |
5534 | |
5535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5536 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5537 | fi |
7a197a62 AK |
5538 | ac_res=`eval echo '${'$as_ac_var'}'` |
5539 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5540 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5541 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
5542 | cat >>confdefs.h <<_ACEOF | |
5543 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5544 | _ACEOF | |
5545 | ||
5546 | else | |
5547 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
5548 | echo "$as_me: error: bailing out" >&2;} | |
5549 | { (exit 1); exit 1; }; } | |
5550 | fi | |
5551 | done | |
795ca3e5 | 5552 | |
ad6254c5 AK |
5553 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5554 | # for constant arguments. Useless! | |
7a197a62 AK |
5555 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5556 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 AK |
5557 | if test "${ac_cv_working_alloca_h+set}" = set; then |
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5559 | else | |
5560 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5561 | /* confdefs.h. */ |
5562 | _ACEOF | |
5563 | cat confdefs.h >>conftest.$ac_ext | |
5564 | cat >>conftest.$ac_ext <<_ACEOF | |
5565 | /* end confdefs.h. */ | |
5566 | #include <alloca.h> | |
5567 | int | |
5568 | main () | |
5569 | { | |
5570 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5571 | if (p) return 0; |
ad6254c5 AK |
5572 | ; |
5573 | return 0; | |
5574 | } | |
5575 | _ACEOF | |
5576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5577 | if { (ac_try="$ac_link" |
5578 | case "(($ac_try" in | |
5579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5580 | *) ac_try_echo=$ac_try;; | |
5581 | esac | |
5582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5583 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 5584 | ac_status=$? |
8a2fc586 AK |
5585 | grep -v '^ *+' conftest.er1 >conftest.err |
5586 | rm -f conftest.er1 | |
5587 | cat conftest.err >&5 | |
ad6254c5 | 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5589 | (exit $ac_status); } && { |
5590 | test -z "$ac_c_werror_flag" || | |
5591 | test ! -s conftest.err | |
5592 | } && test -s conftest$ac_exeext && | |
5593 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5594 | ac_cv_working_alloca_h=yes |
5595 | else | |
5596 | echo "$as_me: failed program was:" >&5 | |
5597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5598 | |
7a197a62 | 5599 | ac_cv_working_alloca_h=no |
ad6254c5 | 5600 | fi |
7a197a62 AK |
5601 | |
5602 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5603 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5604 | fi |
7a197a62 AK |
5605 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5606 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
5607 | if test $ac_cv_working_alloca_h = yes; then |
5608 | ||
5609 | cat >>confdefs.h <<\_ACEOF | |
5610 | #define HAVE_ALLOCA_H 1 | |
5611 | _ACEOF | |
5612 | ||
5613 | fi | |
5614 | ||
7a197a62 AK |
5615 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
5616 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 AK |
5617 | if test "${ac_cv_func_alloca_works+set}" = set; then |
5618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5619 | else | |
5620 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5621 | /* confdefs.h. */ |
5622 | _ACEOF | |
5623 | cat confdefs.h >>conftest.$ac_ext | |
5624 | cat >>conftest.$ac_ext <<_ACEOF | |
5625 | /* end confdefs.h. */ | |
5626 | #ifdef __GNUC__ | |
5627 | # define alloca __builtin_alloca | |
5628 | #else | |
5629 | # ifdef _MSC_VER | |
5630 | # include <malloc.h> | |
5631 | # define alloca _alloca | |
5632 | # else | |
7a197a62 | 5633 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
5634 | # include <alloca.h> |
5635 | # else | |
5636 | # ifdef _AIX | |
5637 | #pragma alloca | |
5638 | # else | |
5639 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5640 | char *alloca (); | |
5641 | # endif | |
5642 | # endif | |
5643 | # endif | |
5644 | # endif | |
5645 | #endif | |
5646 | ||
5647 | int | |
5648 | main () | |
5649 | { | |
5650 | char *p = (char *) alloca (1); | |
7a197a62 | 5651 | if (p) return 0; |
ad6254c5 AK |
5652 | ; |
5653 | return 0; | |
5654 | } | |
5655 | _ACEOF | |
5656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5657 | if { (ac_try="$ac_link" |
5658 | case "(($ac_try" in | |
5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5660 | *) ac_try_echo=$ac_try;; | |
5661 | esac | |
5662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5663 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 5664 | ac_status=$? |
8a2fc586 AK |
5665 | grep -v '^ *+' conftest.er1 >conftest.err |
5666 | rm -f conftest.er1 | |
5667 | cat conftest.err >&5 | |
ad6254c5 | 5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5669 | (exit $ac_status); } && { |
5670 | test -z "$ac_c_werror_flag" || | |
5671 | test ! -s conftest.err | |
5672 | } && test -s conftest$ac_exeext && | |
5673 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5674 | ac_cv_func_alloca_works=yes |
5675 | else | |
5676 | echo "$as_me: failed program was:" >&5 | |
5677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5678 | ||
7a197a62 | 5679 | ac_cv_func_alloca_works=no |
ad6254c5 | 5680 | fi |
7a197a62 AK |
5681 | |
5682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5683 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5684 | fi |
7a197a62 AK |
5685 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5686 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
5687 | |
5688 | if test $ac_cv_func_alloca_works = yes; then | |
5689 | ||
5690 | cat >>confdefs.h <<\_ACEOF | |
5691 | #define HAVE_ALLOCA 1 | |
5692 | _ACEOF | |
5693 | ||
5694 | else | |
5695 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5696 | # that cause trouble. Some versions do not even contain alloca or | |
5697 | # contain a buggy version. If you still want to use their alloca, | |
5698 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5699 | ||
7a197a62 | 5700 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
5701 | |
5702 | cat >>confdefs.h <<\_ACEOF | |
5703 | #define C_ALLOCA 1 | |
5704 | _ACEOF | |
5705 | ||
5706 | ||
7a197a62 AK |
5707 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5708 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 AK |
5709 | if test "${ac_cv_os_cray+set}" = set; then |
5710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5711 | else | |
5712 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5713 | /* confdefs.h. */ |
5714 | _ACEOF | |
5715 | cat confdefs.h >>conftest.$ac_ext | |
5716 | cat >>conftest.$ac_ext <<_ACEOF | |
5717 | /* end confdefs.h. */ | |
7a197a62 | 5718 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
5719 | webecray |
5720 | #else | |
5721 | wenotbecray | |
5722 | #endif | |
5723 | ||
5724 | _ACEOF | |
795ca3e5 | 5725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5726 | $EGREP "webecray" >/dev/null 2>&1; then |
5727 | ac_cv_os_cray=yes | |
5728 | else | |
5729 | ac_cv_os_cray=no | |
795ca3e5 AK |
5730 | fi |
5731 | rm -f conftest* | |
5732 | ||
795ca3e5 | 5733 | fi |
7a197a62 AK |
5734 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5735 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
5736 | if test $ac_cv_os_cray = yes; then |
5737 | for ac_func in _getb67 GETB67 getb67; do | |
5738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
5739 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5741 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
5742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5743 | else | |
5744 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5745 | /* confdefs.h. */ |
5746 | _ACEOF | |
5747 | cat confdefs.h >>conftest.$ac_ext | |
5748 | cat >>conftest.$ac_ext <<_ACEOF | |
5749 | /* end confdefs.h. */ | |
8a2fc586 AK |
5750 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5752 | #define $ac_func innocuous_$ac_func | |
5753 | ||
ad6254c5 AK |
5754 | /* System header to define __stub macros and hopefully few prototypes, |
5755 | which can conflict with char $ac_func (); below. | |
5756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5757 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5758 | |
ad6254c5 AK |
5759 | #ifdef __STDC__ |
5760 | # include <limits.h> | |
5761 | #else | |
5762 | # include <assert.h> | |
5763 | #endif | |
8a2fc586 AK |
5764 | |
5765 | #undef $ac_func | |
5766 | ||
7a197a62 AK |
5767 | /* Override any GCC internal prototype to avoid an error. |
5768 | Use char because int might match the return type of a GCC | |
5769 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5770 | #ifdef __cplusplus |
5771 | extern "C" | |
ad6254c5 | 5772 | #endif |
ad6254c5 AK |
5773 | char $ac_func (); |
5774 | /* The GNU C library defines this for functions which it implements | |
5775 | to always fail with ENOSYS. Some functions are actually named | |
5776 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5777 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5778 | choke me |
ad6254c5 AK |
5779 | #endif |
5780 | ||
5781 | int | |
5782 | main () | |
5783 | { | |
7a197a62 | 5784 | return $ac_func (); |
ad6254c5 AK |
5785 | ; |
5786 | return 0; | |
5787 | } | |
5788 | _ACEOF | |
5789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5790 | if { (ac_try="$ac_link" |
5791 | case "(($ac_try" in | |
5792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5793 | *) ac_try_echo=$ac_try;; | |
5794 | esac | |
5795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5796 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 5797 | ac_status=$? |
8a2fc586 AK |
5798 | grep -v '^ *+' conftest.er1 >conftest.err |
5799 | rm -f conftest.er1 | |
5800 | cat conftest.err >&5 | |
ad6254c5 | 5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5802 | (exit $ac_status); } && { |
5803 | test -z "$ac_c_werror_flag" || | |
5804 | test ! -s conftest.err | |
5805 | } && test -s conftest$ac_exeext && | |
5806 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5807 | eval "$as_ac_var=yes" |
5808 | else | |
5809 | echo "$as_me: failed program was:" >&5 | |
5810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5811 | ||
7a197a62 | 5812 | eval "$as_ac_var=no" |
ad6254c5 | 5813 | fi |
7a197a62 AK |
5814 | |
5815 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5816 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5817 | fi |
7a197a62 AK |
5818 | ac_res=`eval echo '${'$as_ac_var'}'` |
5819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5820 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 5821 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
80992638 | 5822 | |
ad6254c5 AK |
5823 | cat >>confdefs.h <<_ACEOF |
5824 | #define CRAY_STACKSEG_END $ac_func | |
5825 | _ACEOF | |
5826 | ||
5827 | break | |
5828 | fi | |
5829 | ||
5830 | done | |
5831 | fi | |
5832 | ||
7a197a62 AK |
5833 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5834 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 AK |
5835 | if test "${ac_cv_c_stack_direction+set}" = set; then |
5836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5837 | else | |
5838 | if test "$cross_compiling" = yes; then | |
5839 | ac_cv_c_stack_direction=0 | |
5840 | else | |
5841 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5842 | /* confdefs.h. */ |
5843 | _ACEOF | |
5844 | cat confdefs.h >>conftest.$ac_ext | |
5845 | cat >>conftest.$ac_ext <<_ACEOF | |
5846 | /* end confdefs.h. */ | |
7a197a62 | 5847 | $ac_includes_default |
ad6254c5 AK |
5848 | int |
5849 | find_stack_direction () | |
5850 | { | |
5851 | static char *addr = 0; | |
5852 | auto char dummy; | |
5853 | if (addr == 0) | |
5854 | { | |
5855 | addr = &dummy; | |
5856 | return find_stack_direction (); | |
5857 | } | |
5858 | else | |
5859 | return (&dummy > addr) ? 1 : -1; | |
5860 | } | |
5861 | ||
5862 | int | |
5863 | main () | |
5864 | { | |
7a197a62 | 5865 | return find_stack_direction () < 0; |
ad6254c5 AK |
5866 | } |
5867 | _ACEOF | |
5868 | rm -f conftest$ac_exeext | |
7a197a62 AK |
5869 | if { (ac_try="$ac_link" |
5870 | case "(($ac_try" in | |
5871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5872 | *) ac_try_echo=$ac_try;; | |
5873 | esac | |
5874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5875 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
5876 | ac_status=$? |
5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
5879 | { (case "(($ac_try" in |
5880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5881 | *) ac_try_echo=$ac_try;; | |
5882 | esac | |
5883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5884 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
5885 | ac_status=$? |
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5887 | (exit $ac_status); }; }; then | |
5888 | ac_cv_c_stack_direction=1 | |
5889 | else | |
5890 | echo "$as_me: program exited with status $ac_status" >&5 | |
5891 | echo "$as_me: failed program was:" >&5 | |
5892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5893 | ||
5894 | ( exit $ac_status ) | |
5895 | ac_cv_c_stack_direction=-1 | |
5896 | fi | |
7a197a62 | 5897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 5898 | fi |
7a197a62 AK |
5899 | |
5900 | ||
ad6254c5 | 5901 | fi |
7a197a62 AK |
5902 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
5903 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
5904 | |
5905 | cat >>confdefs.h <<_ACEOF | |
5906 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5907 | _ACEOF | |
5908 | ||
5909 | ||
5910 | fi | |
5911 | ||
7a197a62 AK |
5912 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
5913 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 AK |
5914 | if test "${ac_cv_func_closedir_void+set}" = set; then |
5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5916 | else | |
5917 | if test "$cross_compiling" = yes; then | |
5918 | ac_cv_func_closedir_void=yes | |
5919 | else | |
5920 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5921 | /* confdefs.h. */ |
5922 | _ACEOF | |
5923 | cat confdefs.h >>conftest.$ac_ext | |
5924 | cat >>conftest.$ac_ext <<_ACEOF | |
5925 | /* end confdefs.h. */ | |
5926 | $ac_includes_default | |
5927 | #include <$ac_header_dirent> | |
5928 | #ifndef __cplusplus | |
5929 | int closedir (); | |
5930 | #endif | |
5931 | ||
5932 | int | |
5933 | main () | |
5934 | { | |
7a197a62 | 5935 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
5936 | ; |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | rm -f conftest$ac_exeext | |
7a197a62 AK |
5941 | if { (ac_try="$ac_link" |
5942 | case "(($ac_try" in | |
5943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5944 | *) ac_try_echo=$ac_try;; | |
5945 | esac | |
5946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5947 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
5948 | ac_status=$? |
5949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
5951 | { (case "(($ac_try" in |
5952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5953 | *) ac_try_echo=$ac_try;; | |
5954 | esac | |
5955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5956 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
5957 | ac_status=$? |
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 | (exit $ac_status); }; }; then | |
5960 | ac_cv_func_closedir_void=no | |
5961 | else | |
5962 | echo "$as_me: program exited with status $ac_status" >&5 | |
5963 | echo "$as_me: failed program was:" >&5 | |
5964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5965 | ||
5966 | ( exit $ac_status ) | |
5967 | ac_cv_func_closedir_void=yes | |
5968 | fi | |
7a197a62 | 5969 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 5970 | fi |
7a197a62 AK |
5971 | |
5972 | ||
ad6254c5 | 5973 | fi |
7a197a62 AK |
5974 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
5975 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
5976 | if test $ac_cv_func_closedir_void = yes; then |
5977 | ||
5978 | cat >>confdefs.h <<\_ACEOF | |
5979 | #define CLOSEDIR_VOID 1 | |
5980 | _ACEOF | |
5981 | ||
5982 | fi | |
5983 | ||
5984 | ||
7a197a62 | 5985 | for ac_header in vfork.h |
ad6254c5 AK |
5986 | do |
5987 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
5988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5989 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5993 | fi | |
7a197a62 AK |
5994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5996 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5997 | else |
5998 | # Is the header compilable? | |
7a197a62 AK |
5999 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6001 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6002 | /* confdefs.h. */ |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
6006 | /* end confdefs.h. */ | |
6007 | $ac_includes_default | |
6008 | #include <$ac_header> | |
6009 | _ACEOF | |
6010 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6011 | if { (ac_try="$ac_compile" |
6012 | case "(($ac_try" in | |
6013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6014 | *) ac_try_echo=$ac_try;; | |
6015 | esac | |
6016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6017 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 6018 | ac_status=$? |
8a2fc586 AK |
6019 | grep -v '^ *+' conftest.er1 >conftest.err |
6020 | rm -f conftest.er1 | |
6021 | cat conftest.err >&5 | |
ad6254c5 | 6022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6023 | (exit $ac_status); } && { |
6024 | test -z "$ac_c_werror_flag" || | |
6025 | test ! -s conftest.err | |
6026 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6027 | ac_header_compiler=yes |
6028 | else | |
6029 | echo "$as_me: failed program was:" >&5 | |
6030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6031 | ||
7a197a62 | 6032 | ac_header_compiler=no |
ad6254c5 | 6033 | fi |
7a197a62 AK |
6034 | |
6035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6036 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6037 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6038 | |
6039 | # Is the header present? | |
7a197a62 AK |
6040 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6042 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6043 | /* confdefs.h. */ |
6044 | _ACEOF | |
6045 | cat confdefs.h >>conftest.$ac_ext | |
6046 | cat >>conftest.$ac_ext <<_ACEOF | |
6047 | /* end confdefs.h. */ | |
6048 | #include <$ac_header> | |
6049 | _ACEOF | |
7a197a62 AK |
6050 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6051 | case "(($ac_try" in | |
6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6053 | *) ac_try_echo=$ac_try;; | |
6054 | esac | |
6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6056 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
6057 | ac_status=$? |
6058 | grep -v '^ *+' conftest.er1 >conftest.err | |
6059 | rm -f conftest.er1 | |
6060 | cat conftest.err >&5 | |
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
6062 | (exit $ac_status); } >/dev/null && { |
6063 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6064 | test ! -s conftest.err | |
6065 | }; then | |
ad6254c5 AK |
6066 | ac_header_preproc=yes |
6067 | else | |
6068 | echo "$as_me: failed program was:" >&5 | |
6069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6070 | ||
6071 | ac_header_preproc=no | |
6072 | fi | |
7a197a62 | 6073 | |
ad6254c5 | 6074 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
6075 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6076 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6077 | |
6078 | # So? What about this header? | |
8a2fc586 AK |
6079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6080 | yes:no: ) | |
ad6254c5 AK |
6081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6085 | ac_header_preproc=yes | |
ad6254c5 | 6086 | ;; |
8a2fc586 | 6087 | no:yes:* ) |
ad6254c5 AK |
6088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6100 | |
ad6254c5 AK |
6101 | ;; |
6102 | esac | |
7a197a62 AK |
6103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6107 | else | |
8a2fc586 | 6108 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6109 | fi |
7a197a62 AK |
6110 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6112 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6113 | |
795ca3e5 | 6114 | fi |
ad6254c5 AK |
6115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6116 | cat >>confdefs.h <<_ACEOF | |
6117 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6118 | _ACEOF | |
6119 | ||
6120 | fi | |
6121 | ||
6122 | done | |
795ca3e5 | 6123 | |
ad6254c5 AK |
6124 | |
6125 | ||
6126 | for ac_func in fork vfork | |
6127 | do | |
6128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
6129 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6131 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6133 | else |
ad6254c5 | 6134 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6135 | /* confdefs.h. */ |
6136 | _ACEOF | |
6137 | cat confdefs.h >>conftest.$ac_ext | |
6138 | cat >>conftest.$ac_ext <<_ACEOF | |
6139 | /* end confdefs.h. */ | |
8a2fc586 AK |
6140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6142 | #define $ac_func innocuous_$ac_func | |
6143 | ||
ad6254c5 AK |
6144 | /* System header to define __stub macros and hopefully few prototypes, |
6145 | which can conflict with char $ac_func (); below. | |
6146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6147 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6148 | |
ad6254c5 AK |
6149 | #ifdef __STDC__ |
6150 | # include <limits.h> | |
6151 | #else | |
6152 | # include <assert.h> | |
795ca3e5 | 6153 | #endif |
8a2fc586 AK |
6154 | |
6155 | #undef $ac_func | |
6156 | ||
7a197a62 AK |
6157 | /* Override any GCC internal prototype to avoid an error. |
6158 | Use char because int might match the return type of a GCC | |
6159 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6160 | #ifdef __cplusplus |
ad6254c5 | 6161 | extern "C" |
ad6254c5 | 6162 | #endif |
ad6254c5 AK |
6163 | char $ac_func (); |
6164 | /* The GNU C library defines this for functions which it implements | |
6165 | to always fail with ENOSYS. Some functions are actually named | |
6166 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6167 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6168 | choke me |
795ca3e5 AK |
6169 | #endif |
6170 | ||
ad6254c5 AK |
6171 | int |
6172 | main () | |
6173 | { | |
7a197a62 | 6174 | return $ac_func (); |
ad6254c5 AK |
6175 | ; |
6176 | return 0; | |
6177 | } | |
6178 | _ACEOF | |
6179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6180 | if { (ac_try="$ac_link" |
6181 | case "(($ac_try" in | |
6182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6183 | *) ac_try_echo=$ac_try;; | |
6184 | esac | |
6185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6186 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 6187 | ac_status=$? |
8a2fc586 AK |
6188 | grep -v '^ *+' conftest.er1 >conftest.err |
6189 | rm -f conftest.er1 | |
6190 | cat conftest.err >&5 | |
ad6254c5 | 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6192 | (exit $ac_status); } && { |
6193 | test -z "$ac_c_werror_flag" || | |
6194 | test ! -s conftest.err | |
6195 | } && test -s conftest$ac_exeext && | |
6196 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6197 | eval "$as_ac_var=yes" |
795ca3e5 | 6198 | else |
ad6254c5 AK |
6199 | echo "$as_me: failed program was:" >&5 |
6200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6201 | ||
7a197a62 | 6202 | eval "$as_ac_var=no" |
795ca3e5 | 6203 | fi |
7a197a62 AK |
6204 | |
6205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 6206 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6207 | fi |
7a197a62 AK |
6208 | ac_res=`eval echo '${'$as_ac_var'}'` |
6209 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6210 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6211 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6212 | cat >>confdefs.h <<_ACEOF | |
6213 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6214 | _ACEOF | |
6215 | ||
6216 | fi | |
6217 | done | |
6218 | ||
6219 | if test "x$ac_cv_func_fork" = xyes; then | |
7a197a62 AK |
6220 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6221 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 AK |
6222 | if test "${ac_cv_func_fork_works+set}" = set; then |
6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6224 | else | |
6225 | if test "$cross_compiling" = yes; then | |
6226 | ac_cv_func_fork_works=cross | |
6227 | else | |
6228 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6229 | /* confdefs.h. */ |
6230 | _ACEOF | |
6231 | cat confdefs.h >>conftest.$ac_ext | |
6232 | cat >>conftest.$ac_ext <<_ACEOF | |
6233 | /* end confdefs.h. */ | |
6234 | $ac_includes_default | |
6235 | int | |
6236 | main () | |
6237 | { | |
6238 | ||
6239 | /* By Ruediger Kuhlmann. */ | |
6240 | return fork () < 0; | |
6241 | ||
6242 | ; | |
6243 | return 0; | |
6244 | } | |
ad6254c5 AK |
6245 | _ACEOF |
6246 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6247 | if { (ac_try="$ac_link" |
6248 | case "(($ac_try" in | |
6249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6250 | *) ac_try_echo=$ac_try;; | |
6251 | esac | |
6252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6253 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6254 | ac_status=$? |
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6256 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6257 | { (case "(($ac_try" in |
6258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6259 | *) ac_try_echo=$ac_try;; | |
6260 | esac | |
6261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6262 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6263 | ac_status=$? |
6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6265 | (exit $ac_status); }; }; then | |
6266 | ac_cv_func_fork_works=yes | |
6267 | else | |
6268 | echo "$as_me: program exited with status $ac_status" >&5 | |
6269 | echo "$as_me: failed program was:" >&5 | |
6270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6271 | ||
6272 | ( exit $ac_status ) | |
6273 | ac_cv_func_fork_works=no | |
6274 | fi | |
7a197a62 | 6275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6276 | fi |
7a197a62 AK |
6277 | |
6278 | ||
ad6254c5 | 6279 | fi |
7a197a62 AK |
6280 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6281 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6282 | |
6283 | else | |
6284 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6285 | fi | |
6286 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6287 | case $host in | |
6288 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6289 | # Override, as these systems have only a dummy fork() stub | |
6290 | ac_cv_func_fork_works=no | |
6291 | ;; | |
6292 | *) | |
6293 | ac_cv_func_fork_works=yes | |
6294 | ;; | |
6295 | esac | |
6296 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
6297 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
6298 | fi | |
6299 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6300 | if test "x$ac_cv_func_vfork" = xyes; then | |
7a197a62 AK |
6301 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6302 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 AK |
6303 | if test "${ac_cv_func_vfork_works+set}" = set; then |
6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6305 | else | |
6306 | if test "$cross_compiling" = yes; then | |
6307 | ac_cv_func_vfork_works=cross | |
6308 | else | |
6309 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6310 | /* confdefs.h. */ |
6311 | _ACEOF | |
6312 | cat confdefs.h >>conftest.$ac_ext | |
6313 | cat >>conftest.$ac_ext <<_ACEOF | |
6314 | /* end confdefs.h. */ | |
6315 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6316 | $ac_includes_default |
ad6254c5 | 6317 | #include <sys/wait.h> |
7a197a62 | 6318 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6319 | # include <vfork.h> |
6320 | #endif | |
6321 | /* On some sparc systems, changes by the child to local and incoming | |
6322 | argument registers are propagated back to the parent. The compiler | |
6323 | is told about this with #include <vfork.h>, but some compilers | |
6324 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6325 | static variable whose address is put into a register that is | |
6326 | clobbered by the vfork. */ | |
6327 | static void | |
6328 | #ifdef __cplusplus | |
6329 | sparc_address_test (int arg) | |
6330 | # else | |
6331 | sparc_address_test (arg) int arg; | |
6332 | #endif | |
6333 | { | |
6334 | static pid_t child; | |
6335 | if (!child) { | |
6336 | child = vfork (); | |
6337 | if (child < 0) { | |
6338 | perror ("vfork"); | |
6339 | _exit(2); | |
6340 | } | |
6341 | if (!child) { | |
6342 | arg = getpid(); | |
6343 | write(-1, "", 0); | |
6344 | _exit (arg); | |
6345 | } | |
6346 | } | |
6347 | } | |
6348 | ||
6349 | int | |
6350 | main () | |
6351 | { | |
6352 | pid_t parent = getpid (); | |
6353 | pid_t child; | |
6354 | ||
6355 | sparc_address_test (0); | |
6356 | ||
6357 | child = vfork (); | |
6358 | ||
6359 | if (child == 0) { | |
6360 | /* Here is another test for sparc vfork register problems. This | |
6361 | test uses lots of local variables, at least as many local | |
6362 | variables as main has allocated so far including compiler | |
6363 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6364 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6365 | reuse the register of parent for one of the local variables, | |
6366 | since it will think that parent can't possibly be used any more | |
6367 | in this routine. Assigning to the local variable will thus | |
6368 | munge parent in the parent process. */ | |
6369 | pid_t | |
6370 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6371 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6372 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6373 | use the same hardware register for all 8 local variables. */ | |
6374 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6375 | || p != p5 || p != p6 || p != p7) | |
6376 | _exit(1); | |
6377 | ||
6378 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6379 | from child file descriptors. If the child closes a descriptor | |
6380 | before it execs or exits, this munges the parent's descriptor | |
6381 | as well. Test for this by closing stdout in the child. */ | |
6382 | _exit(close(fileno(stdout)) != 0); | |
6383 | } else { | |
6384 | int status; | |
6385 | struct stat st; | |
6386 | ||
6387 | while (wait(&status) != child) | |
6388 | ; | |
7a197a62 | 6389 | return ( |
ad6254c5 AK |
6390 | /* Was there some problem with vforking? */ |
6391 | child < 0 | |
6392 | ||
6393 | /* Did the child fail? (This shouldn't happen.) */ | |
6394 | || status | |
6395 | ||
6396 | /* Did the vfork/compiler bug occur? */ | |
6397 | || parent != getpid() | |
6398 | ||
6399 | /* Did the file descriptor bug occur? */ | |
6400 | || fstat(fileno(stdout), &st) != 0 | |
6401 | ); | |
6402 | } | |
6403 | } | |
6404 | _ACEOF | |
6405 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6406 | if { (ac_try="$ac_link" |
6407 | case "(($ac_try" in | |
6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6409 | *) ac_try_echo=$ac_try;; | |
6410 | esac | |
6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6412 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6413 | ac_status=$? |
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6416 | { (case "(($ac_try" in |
6417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6418 | *) ac_try_echo=$ac_try;; | |
6419 | esac | |
6420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6421 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6422 | ac_status=$? |
6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6424 | (exit $ac_status); }; }; then | |
6425 | ac_cv_func_vfork_works=yes | |
6426 | else | |
6427 | echo "$as_me: program exited with status $ac_status" >&5 | |
6428 | echo "$as_me: failed program was:" >&5 | |
6429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6430 | ||
6431 | ( exit $ac_status ) | |
6432 | ac_cv_func_vfork_works=no | |
6433 | fi | |
7a197a62 | 6434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6435 | fi |
7a197a62 AK |
6436 | |
6437 | ||
ad6254c5 | 6438 | fi |
7a197a62 AK |
6439 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6440 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6441 | |
6442 | fi; | |
6443 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6444 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
6445 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6446 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
6447 | fi | |
6448 | ||
6449 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6450 | ||
6451 | cat >>confdefs.h <<\_ACEOF | |
6452 | #define HAVE_WORKING_VFORK 1 | |
6453 | _ACEOF | |
6454 | ||
6455 | else | |
6456 | ||
6457 | cat >>confdefs.h <<\_ACEOF | |
6458 | #define vfork fork | |
6459 | _ACEOF | |
6460 | ||
6461 | fi | |
6462 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6463 | ||
6464 | cat >>confdefs.h <<\_ACEOF | |
6465 | #define HAVE_WORKING_FORK 1 | |
6466 | _ACEOF | |
6467 | ||
6468 | fi | |
6469 | ||
7a197a62 AK |
6470 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6471 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 AK |
6472 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
6473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6474 | else | |
6475 | rm -f conftest.sym conftest.file | |
6476 | echo >conftest.file | |
6477 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6478 | if test "$cross_compiling" = yes; then | |
6479 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6480 | else | |
6481 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6482 | /* confdefs.h. */ |
6483 | _ACEOF | |
6484 | cat confdefs.h >>conftest.$ac_ext | |
6485 | cat >>conftest.$ac_ext <<_ACEOF | |
6486 | /* end confdefs.h. */ | |
6487 | $ac_includes_default | |
6488 | int | |
6489 | main () | |
6490 | { | |
6491 | struct stat sbuf; | |
6492 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6493 | That is better in the sense that it means we will not |
6494 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6495 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6496 | ; |
6497 | return 0; | |
6498 | } | |
6499 | _ACEOF | |
6500 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6501 | if { (ac_try="$ac_link" |
6502 | case "(($ac_try" in | |
6503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6504 | *) ac_try_echo=$ac_try;; | |
6505 | esac | |
6506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6507 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6508 | ac_status=$? |
6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6511 | { (case "(($ac_try" in |
6512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6513 | *) ac_try_echo=$ac_try;; | |
6514 | esac | |
6515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6516 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6517 | ac_status=$? |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6521 | else | |
6522 | echo "$as_me: program exited with status $ac_status" >&5 | |
6523 | echo "$as_me: failed program was:" >&5 | |
6524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6525 | ||
6526 | ( exit $ac_status ) | |
6527 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6528 | fi | |
7a197a62 | 6529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6530 | fi |
7a197a62 AK |
6531 | |
6532 | ||
ad6254c5 AK |
6533 | else |
6534 | # If the `ln -s' command failed, then we probably don't even | |
6535 | # have an lstat function. | |
6536 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6537 | fi | |
6538 | rm -f conftest.sym conftest.file | |
6539 | ||
6540 | fi | |
7a197a62 AK |
6541 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6542 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6543 | |
6544 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6545 | ||
6546 | cat >>confdefs.h <<_ACEOF | |
6547 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6548 | _ACEOF | |
6549 | ||
6550 | ||
6551 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6552 | case " $LIBOBJS " in |
8a2fc586 | 6553 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6554 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6555 | ;; | |
8a2fc586 AK |
6556 | esac |
6557 | ||
ad6254c5 AK |
6558 | fi |
6559 | ||
7a197a62 AK |
6560 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6561 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 AK |
6562 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6564 | else | |
6565 | if test "$cross_compiling" = yes; then | |
6566 | ac_cv_func_lstat_empty_string_bug=yes | |
6567 | else | |
6568 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6569 | /* confdefs.h. */ |
6570 | _ACEOF | |
6571 | cat confdefs.h >>conftest.$ac_ext | |
6572 | cat >>conftest.$ac_ext <<_ACEOF | |
6573 | /* end confdefs.h. */ | |
6574 | $ac_includes_default | |
6575 | int | |
6576 | main () | |
6577 | { | |
6578 | struct stat sbuf; | |
7a197a62 | 6579 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
6580 | ; |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6585 | if { (ac_try="$ac_link" |
6586 | case "(($ac_try" in | |
6587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6588 | *) ac_try_echo=$ac_try;; | |
6589 | esac | |
6590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6591 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6592 | ac_status=$? |
6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6595 | { (case "(($ac_try" in |
6596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6597 | *) ac_try_echo=$ac_try;; | |
6598 | esac | |
6599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6600 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6601 | ac_status=$? |
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6603 | (exit $ac_status); }; }; then | |
7a197a62 | 6604 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 AK |
6605 | else |
6606 | echo "$as_me: program exited with status $ac_status" >&5 | |
6607 | echo "$as_me: failed program was:" >&5 | |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6609 | ||
6610 | ( exit $ac_status ) | |
7a197a62 | 6611 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 6612 | fi |
7a197a62 | 6613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6614 | fi |
7a197a62 AK |
6615 | |
6616 | ||
ad6254c5 | 6617 | fi |
7a197a62 AK |
6618 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
6619 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 6620 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 6621 | case " $LIBOBJS " in |
8a2fc586 | 6622 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6623 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6624 | ;; | |
8a2fc586 AK |
6625 | esac |
6626 | ||
ad6254c5 AK |
6627 | |
6628 | cat >>confdefs.h <<_ACEOF | |
6629 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6630 | _ACEOF | |
6631 | ||
6632 | fi | |
6633 | ||
6634 | ||
6635 | for ac_header in stdlib.h | |
6636 | do | |
6637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
6638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6639 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6643 | fi | |
7a197a62 AK |
6644 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6646 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6647 | else |
6648 | # Is the header compilable? | |
7a197a62 AK |
6649 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6651 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6652 | /* confdefs.h. */ |
6653 | _ACEOF | |
6654 | cat confdefs.h >>conftest.$ac_ext | |
6655 | cat >>conftest.$ac_ext <<_ACEOF | |
6656 | /* end confdefs.h. */ | |
6657 | $ac_includes_default | |
6658 | #include <$ac_header> | |
6659 | _ACEOF | |
6660 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6661 | if { (ac_try="$ac_compile" |
6662 | case "(($ac_try" in | |
6663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6664 | *) ac_try_echo=$ac_try;; | |
6665 | esac | |
6666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6667 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 6668 | ac_status=$? |
8a2fc586 AK |
6669 | grep -v '^ *+' conftest.er1 >conftest.err |
6670 | rm -f conftest.er1 | |
6671 | cat conftest.err >&5 | |
ad6254c5 | 6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6673 | (exit $ac_status); } && { |
6674 | test -z "$ac_c_werror_flag" || | |
6675 | test ! -s conftest.err | |
6676 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6677 | ac_header_compiler=yes |
6678 | else | |
6679 | echo "$as_me: failed program was:" >&5 | |
6680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6681 | ||
7a197a62 | 6682 | ac_header_compiler=no |
ad6254c5 | 6683 | fi |
7a197a62 AK |
6684 | |
6685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6686 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6687 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6688 | |
6689 | # Is the header present? | |
7a197a62 AK |
6690 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6691 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6692 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6693 | /* confdefs.h. */ |
6694 | _ACEOF | |
6695 | cat confdefs.h >>conftest.$ac_ext | |
6696 | cat >>conftest.$ac_ext <<_ACEOF | |
6697 | /* end confdefs.h. */ | |
6698 | #include <$ac_header> | |
6699 | _ACEOF | |
7a197a62 AK |
6700 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6701 | case "(($ac_try" in | |
6702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6703 | *) ac_try_echo=$ac_try;; | |
6704 | esac | |
6705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
6707 | ac_status=$? |
6708 | grep -v '^ *+' conftest.er1 >conftest.err | |
6709 | rm -f conftest.er1 | |
6710 | cat conftest.err >&5 | |
6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
6712 | (exit $ac_status); } >/dev/null && { |
6713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6714 | test ! -s conftest.err | |
6715 | }; then | |
ad6254c5 AK |
6716 | ac_header_preproc=yes |
6717 | else | |
6718 | echo "$as_me: failed program was:" >&5 | |
6719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6720 | ||
6721 | ac_header_preproc=no | |
6722 | fi | |
7a197a62 | 6723 | |
ad6254c5 | 6724 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
6725 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6726 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6727 | |
6728 | # So? What about this header? | |
8a2fc586 AK |
6729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6730 | yes:no: ) | |
ad6254c5 AK |
6731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6735 | ac_header_preproc=yes | |
ad6254c5 | 6736 | ;; |
8a2fc586 | 6737 | no:yes:* ) |
ad6254c5 AK |
6738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6750 | |
ad6254c5 AK |
6751 | ;; |
6752 | esac | |
7a197a62 AK |
6753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
6756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6757 | else | |
8a2fc586 | 6758 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6759 | fi |
7a197a62 AK |
6760 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6762 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6763 | |
6764 | fi | |
6765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6766 | cat >>confdefs.h <<_ACEOF | |
6767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6768 | _ACEOF | |
6769 | ||
6770 | fi | |
6771 | ||
6772 | done | |
6773 | ||
7a197a62 AK |
6774 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
6775 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 AK |
6776 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
6777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6778 | else | |
6779 | if test "$cross_compiling" = yes; then | |
6780 | ac_cv_func_malloc_0_nonnull=no | |
6781 | else | |
6782 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6783 | /* confdefs.h. */ |
6784 | _ACEOF | |
6785 | cat confdefs.h >>conftest.$ac_ext | |
6786 | cat >>conftest.$ac_ext <<_ACEOF | |
6787 | /* end confdefs.h. */ | |
7a197a62 | 6788 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
6789 | # include <stdlib.h> |
6790 | #else | |
6791 | char *malloc (); | |
6792 | #endif | |
6793 | ||
6794 | int | |
6795 | main () | |
6796 | { | |
7a197a62 | 6797 | return ! malloc (0); |
ad6254c5 AK |
6798 | ; |
6799 | return 0; | |
6800 | } | |
6801 | _ACEOF | |
6802 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6803 | if { (ac_try="$ac_link" |
6804 | case "(($ac_try" in | |
6805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6806 | *) ac_try_echo=$ac_try;; | |
6807 | esac | |
6808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6809 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6810 | ac_status=$? |
6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6812 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6813 | { (case "(($ac_try" in |
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6815 | *) ac_try_echo=$ac_try;; | |
6816 | esac | |
6817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6818 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6819 | ac_status=$? |
6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6821 | (exit $ac_status); }; }; then | |
6822 | ac_cv_func_malloc_0_nonnull=yes | |
6823 | else | |
6824 | echo "$as_me: program exited with status $ac_status" >&5 | |
6825 | echo "$as_me: failed program was:" >&5 | |
6826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6827 | ||
6828 | ( exit $ac_status ) | |
6829 | ac_cv_func_malloc_0_nonnull=no | |
6830 | fi | |
7a197a62 | 6831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6832 | fi |
7a197a62 AK |
6833 | |
6834 | ||
ad6254c5 | 6835 | fi |
7a197a62 AK |
6836 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6837 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
6838 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
6839 | ||
6840 | cat >>confdefs.h <<\_ACEOF | |
6841 | #define HAVE_MALLOC 1 | |
6842 | _ACEOF | |
6843 | ||
6844 | else | |
6845 | cat >>confdefs.h <<\_ACEOF | |
6846 | #define HAVE_MALLOC 0 | |
6847 | _ACEOF | |
6848 | ||
7a197a62 | 6849 | case " $LIBOBJS " in |
8a2fc586 | 6850 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
6851 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
6852 | ;; | |
8a2fc586 AK |
6853 | esac |
6854 | ||
ad6254c5 AK |
6855 | |
6856 | cat >>confdefs.h <<\_ACEOF | |
6857 | #define malloc rpl_malloc | |
6858 | _ACEOF | |
6859 | ||
6860 | fi | |
6861 | ||
6862 | ||
6863 | ||
7a197a62 AK |
6864 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
6865 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 AK |
6866 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6868 | else | |
6869 | if test "$cross_compiling" = yes; then | |
6870 | ac_cv_func_memcmp_working=no | |
6871 | else | |
6872 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6873 | /* confdefs.h. */ |
6874 | _ACEOF | |
6875 | cat confdefs.h >>conftest.$ac_ext | |
6876 | cat >>conftest.$ac_ext <<_ACEOF | |
6877 | /* end confdefs.h. */ | |
8a2fc586 | 6878 | $ac_includes_default |
ad6254c5 AK |
6879 | int |
6880 | main () | |
6881 | { | |
6882 | ||
6883 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 6884 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 6885 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 6886 | return 1; |
ad6254c5 AK |
6887 | |
6888 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6889 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6890 | William Lewis provided this test program. */ | |
6891 | { | |
6892 | char foo[21]; | |
6893 | char bar[21]; | |
6894 | int i; | |
6895 | for (i = 0; i < 4; i++) | |
6896 | { | |
8a2fc586 AK |
6897 | char *a = foo + i; |
6898 | char *b = bar + i; | |
6899 | strcpy (a, "--------01111111"); | |
6900 | strcpy (b, "--------10000000"); | |
6901 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 6902 | return 1; |
ad6254c5 | 6903 | } |
7a197a62 | 6904 | return 0; |
ad6254c5 AK |
6905 | } |
6906 | ||
6907 | ; | |
6908 | return 0; | |
6909 | } | |
6910 | _ACEOF | |
6911 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6912 | if { (ac_try="$ac_link" |
6913 | case "(($ac_try" in | |
6914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6915 | *) ac_try_echo=$ac_try;; | |
6916 | esac | |
6917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6918 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
6919 | ac_status=$? |
6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
6922 | { (case "(($ac_try" in |
6923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6924 | *) ac_try_echo=$ac_try;; | |
6925 | esac | |
6926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6927 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
6928 | ac_status=$? |
6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6930 | (exit $ac_status); }; }; then | |
6931 | ac_cv_func_memcmp_working=yes | |
6932 | else | |
6933 | echo "$as_me: program exited with status $ac_status" >&5 | |
6934 | echo "$as_me: failed program was:" >&5 | |
6935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6936 | ||
6937 | ( exit $ac_status ) | |
6938 | ac_cv_func_memcmp_working=no | |
6939 | fi | |
7a197a62 | 6940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6941 | fi |
7a197a62 AK |
6942 | |
6943 | ||
ad6254c5 | 6944 | fi |
7a197a62 AK |
6945 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
6946 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
6947 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
8a2fc586 | 6948 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
6949 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
6950 | ;; | |
8a2fc586 AK |
6951 | esac |
6952 | ||
ad6254c5 AK |
6953 | |
6954 | ||
6955 | ||
6956 | for ac_header in stdlib.h unistd.h | |
6957 | do | |
6958 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
6959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6960 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
6963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6964 | fi | |
7a197a62 AK |
6965 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6966 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6967 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6968 | else |
6969 | # Is the header compilable? | |
7a197a62 AK |
6970 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6972 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6973 | /* confdefs.h. */ |
6974 | _ACEOF | |
6975 | cat confdefs.h >>conftest.$ac_ext | |
6976 | cat >>conftest.$ac_ext <<_ACEOF | |
6977 | /* end confdefs.h. */ | |
6978 | $ac_includes_default | |
6979 | #include <$ac_header> | |
6980 | _ACEOF | |
6981 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6982 | if { (ac_try="$ac_compile" |
6983 | case "(($ac_try" in | |
6984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6985 | *) ac_try_echo=$ac_try;; | |
6986 | esac | |
6987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6988 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 6989 | ac_status=$? |
8a2fc586 AK |
6990 | grep -v '^ *+' conftest.er1 >conftest.err |
6991 | rm -f conftest.er1 | |
6992 | cat conftest.err >&5 | |
ad6254c5 | 6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6994 | (exit $ac_status); } && { |
6995 | test -z "$ac_c_werror_flag" || | |
6996 | test ! -s conftest.err | |
6997 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6998 | ac_header_compiler=yes |
6999 | else | |
7000 | echo "$as_me: failed program was:" >&5 | |
7001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7002 | ||
7a197a62 | 7003 | ac_header_compiler=no |
ad6254c5 | 7004 | fi |
7a197a62 AK |
7005 | |
7006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7007 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7008 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7009 | |
7010 | # Is the header present? | |
7a197a62 AK |
7011 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7013 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7014 | /* confdefs.h. */ |
7015 | _ACEOF | |
7016 | cat confdefs.h >>conftest.$ac_ext | |
7017 | cat >>conftest.$ac_ext <<_ACEOF | |
7018 | /* end confdefs.h. */ | |
7019 | #include <$ac_header> | |
7020 | _ACEOF | |
7a197a62 AK |
7021 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7022 | case "(($ac_try" in | |
7023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7024 | *) ac_try_echo=$ac_try;; | |
7025 | esac | |
7026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7027 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
7028 | ac_status=$? |
7029 | grep -v '^ *+' conftest.er1 >conftest.err | |
7030 | rm -f conftest.er1 | |
7031 | cat conftest.err >&5 | |
7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
7033 | (exit $ac_status); } >/dev/null && { |
7034 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7035 | test ! -s conftest.err | |
7036 | }; then | |
ad6254c5 AK |
7037 | ac_header_preproc=yes |
7038 | else | |
7039 | echo "$as_me: failed program was:" >&5 | |
7040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7041 | ||
7042 | ac_header_preproc=no | |
7043 | fi | |
7a197a62 | 7044 | |
ad6254c5 | 7045 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
7046 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7047 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7048 | |
7049 | # So? What about this header? | |
8a2fc586 AK |
7050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7051 | yes:no: ) | |
ad6254c5 AK |
7052 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7053 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
7054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7055 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7056 | ac_header_preproc=yes | |
ad6254c5 | 7057 | ;; |
8a2fc586 | 7058 | no:yes:* ) |
ad6254c5 AK |
7059 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7060 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
7061 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7062 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7063 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7064 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7065 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7066 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
7067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7068 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
7069 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7070 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7071 | |
ad6254c5 AK |
7072 | ;; |
7073 | esac | |
7a197a62 AK |
7074 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7078 | else | |
8a2fc586 | 7079 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7080 | fi |
7a197a62 AK |
7081 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7082 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7083 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7084 | |
7085 | fi | |
7086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7087 | cat >>confdefs.h <<_ACEOF | |
7088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7089 | _ACEOF | |
7090 | ||
7091 | fi | |
7092 | ||
7093 | done | |
7094 | ||
7095 | ||
7096 | for ac_func in getpagesize | |
7097 | do | |
7098 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
7099 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7100 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7101 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7103 | else | |
7104 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7105 | /* confdefs.h. */ |
7106 | _ACEOF | |
7107 | cat confdefs.h >>conftest.$ac_ext | |
7108 | cat >>conftest.$ac_ext <<_ACEOF | |
7109 | /* end confdefs.h. */ | |
8a2fc586 AK |
7110 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7112 | #define $ac_func innocuous_$ac_func | |
7113 | ||
ad6254c5 AK |
7114 | /* System header to define __stub macros and hopefully few prototypes, |
7115 | which can conflict with char $ac_func (); below. | |
7116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7117 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7118 | |
ad6254c5 AK |
7119 | #ifdef __STDC__ |
7120 | # include <limits.h> | |
7121 | #else | |
7122 | # include <assert.h> | |
7123 | #endif | |
8a2fc586 AK |
7124 | |
7125 | #undef $ac_func | |
7126 | ||
7a197a62 AK |
7127 | /* Override any GCC internal prototype to avoid an error. |
7128 | Use char because int might match the return type of a GCC | |
7129 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7130 | #ifdef __cplusplus |
7131 | extern "C" | |
ad6254c5 | 7132 | #endif |
ad6254c5 AK |
7133 | char $ac_func (); |
7134 | /* The GNU C library defines this for functions which it implements | |
7135 | to always fail with ENOSYS. Some functions are actually named | |
7136 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7137 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7138 | choke me |
ad6254c5 AK |
7139 | #endif |
7140 | ||
7141 | int | |
7142 | main () | |
7143 | { | |
7a197a62 | 7144 | return $ac_func (); |
ad6254c5 AK |
7145 | ; |
7146 | return 0; | |
7147 | } | |
7148 | _ACEOF | |
7149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7150 | if { (ac_try="$ac_link" |
7151 | case "(($ac_try" in | |
7152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7153 | *) ac_try_echo=$ac_try;; | |
7154 | esac | |
7155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7156 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 7157 | ac_status=$? |
8a2fc586 AK |
7158 | grep -v '^ *+' conftest.er1 >conftest.err |
7159 | rm -f conftest.er1 | |
7160 | cat conftest.err >&5 | |
ad6254c5 | 7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7162 | (exit $ac_status); } && { |
7163 | test -z "$ac_c_werror_flag" || | |
7164 | test ! -s conftest.err | |
7165 | } && test -s conftest$ac_exeext && | |
7166 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7167 | eval "$as_ac_var=yes" |
7168 | else | |
7169 | echo "$as_me: failed program was:" >&5 | |
7170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7171 | ||
7a197a62 | 7172 | eval "$as_ac_var=no" |
ad6254c5 | 7173 | fi |
7a197a62 AK |
7174 | |
7175 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7176 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7177 | fi |
7a197a62 AK |
7178 | ac_res=`eval echo '${'$as_ac_var'}'` |
7179 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7180 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7181 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7182 | cat >>confdefs.h <<_ACEOF | |
7183 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7184 | _ACEOF | |
7185 | ||
7186 | fi | |
7187 | done | |
7188 | ||
7a197a62 AK |
7189 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7190 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 AK |
7191 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7193 | else | |
7194 | if test "$cross_compiling" = yes; then | |
7195 | ac_cv_func_mmap_fixed_mapped=no | |
7196 | else | |
7197 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7198 | /* confdefs.h. */ |
7199 | _ACEOF | |
7200 | cat confdefs.h >>conftest.$ac_ext | |
7201 | cat >>conftest.$ac_ext <<_ACEOF | |
7202 | /* end confdefs.h. */ | |
7203 | $ac_includes_default | |
7204 | /* malloc might have been renamed as rpl_malloc. */ | |
7205 | #undef malloc | |
7206 | ||
7207 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7208 | Here is a matrix of mmap possibilities: | |
7209 | mmap private not fixed | |
7210 | mmap private fixed at somewhere currently unmapped | |
7211 | mmap private fixed at somewhere already mapped | |
7212 | mmap shared not fixed | |
7213 | mmap shared fixed at somewhere currently unmapped | |
7214 | mmap shared fixed at somewhere already mapped | |
7215 | For private mappings, we should verify that changes cannot be read() | |
7216 | back from the file, nor mmap's back from the file at a different | |
7217 | address. (There have been systems where private was not correctly | |
7218 | implemented like the infamous i386 svr4.0, and systems where the | |
7219 | VM page cache was not coherent with the file system buffer cache | |
7220 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7221 | For shared mappings, we should conversely verify that changes get | |
7222 | propagated back to all the places they're supposed to be. | |
7223 | ||
7224 | Grep wants private fixed already mapped. | |
7225 | The main things grep needs to know about mmap are: | |
7226 | * does it exist and is it safe to write into the mmap'd area | |
7227 | * how to use it (BSD variants) */ | |
7228 | ||
7229 | #include <fcntl.h> | |
7230 | #include <sys/mman.h> | |
7231 | ||
7a197a62 | 7232 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7233 | char *malloc (); |
7234 | #endif | |
7235 | ||
7236 | /* This mess was copied from the GNU getpagesize.h. */ | |
7a197a62 | 7237 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7238 | /* Assume that all systems that can run configure have sys/param.h. */ |
7a197a62 | 7239 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7240 | # define HAVE_SYS_PARAM_H 1 |
7241 | # endif | |
7242 | ||
7243 | # ifdef _SC_PAGESIZE | |
7244 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7245 | # else /* no _SC_PAGESIZE */ | |
7a197a62 | 7246 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7247 | # include <sys/param.h> |
7248 | # ifdef EXEC_PAGESIZE | |
7249 | # define getpagesize() EXEC_PAGESIZE | |
7250 | # else /* no EXEC_PAGESIZE */ | |
7251 | # ifdef NBPG | |
7252 | # define getpagesize() NBPG * CLSIZE | |
7253 | # ifndef CLSIZE | |
7254 | # define CLSIZE 1 | |
7255 | # endif /* no CLSIZE */ | |
7256 | # else /* no NBPG */ | |
7257 | # ifdef NBPC | |
7258 | # define getpagesize() NBPC | |
7259 | # else /* no NBPC */ | |
7260 | # ifdef PAGESIZE | |
7261 | # define getpagesize() PAGESIZE | |
7262 | # endif /* PAGESIZE */ | |
7263 | # endif /* no NBPC */ | |
7264 | # endif /* no NBPG */ | |
7265 | # endif /* no EXEC_PAGESIZE */ | |
7266 | # else /* no HAVE_SYS_PARAM_H */ | |
7267 | # define getpagesize() 8192 /* punt totally */ | |
7268 | # endif /* no HAVE_SYS_PARAM_H */ | |
7269 | # endif /* no _SC_PAGESIZE */ | |
7270 | ||
7271 | #endif /* no HAVE_GETPAGESIZE */ | |
7272 | ||
7273 | int | |
7274 | main () | |
7275 | { | |
7276 | char *data, *data2, *data3; | |
7277 | int i, pagesize; | |
7278 | int fd; | |
7279 | ||
7280 | pagesize = getpagesize (); | |
7281 | ||
7282 | /* First, make a file with some known garbage in it. */ | |
7283 | data = (char *) malloc (pagesize); | |
7284 | if (!data) | |
7a197a62 | 7285 | return 1; |
ad6254c5 AK |
7286 | for (i = 0; i < pagesize; ++i) |
7287 | *(data + i) = rand (); | |
7288 | umask (0); | |
7289 | fd = creat ("conftest.mmap", 0600); | |
7290 | if (fd < 0) | |
7a197a62 | 7291 | return 1; |
ad6254c5 | 7292 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7293 | return 1; |
ad6254c5 AK |
7294 | close (fd); |
7295 | ||
7296 | /* Next, try to mmap the file at a fixed address which already has | |
7297 | something else allocated at it. If we can, also make sure that | |
7298 | we see the same garbage. */ | |
7299 | fd = open ("conftest.mmap", O_RDWR); | |
7300 | if (fd < 0) | |
7a197a62 | 7301 | return 1; |
ad6254c5 AK |
7302 | data2 = (char *) malloc (2 * pagesize); |
7303 | if (!data2) | |
7a197a62 AK |
7304 | return 1; |
7305 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7306 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7307 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7308 | return 1; |
ad6254c5 AK |
7309 | for (i = 0; i < pagesize; ++i) |
7310 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7311 | return 1; |
ad6254c5 AK |
7312 | |
7313 | /* Finally, make sure that changes to the mapped area do not | |
7314 | percolate back to the file as seen by read(). (This is a bug on | |
7315 | some variants of i386 svr4.0.) */ | |
7316 | for (i = 0; i < pagesize; ++i) | |
7317 | *(data2 + i) = *(data2 + i) + 1; | |
7318 | data3 = (char *) malloc (pagesize); | |
7319 | if (!data3) | |
7a197a62 | 7320 | return 1; |
ad6254c5 | 7321 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7322 | return 1; |
ad6254c5 AK |
7323 | for (i = 0; i < pagesize; ++i) |
7324 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7325 | return 1; |
ad6254c5 | 7326 | close (fd); |
7a197a62 | 7327 | return 0; |
ad6254c5 AK |
7328 | } |
7329 | _ACEOF | |
7330 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7331 | if { (ac_try="$ac_link" |
7332 | case "(($ac_try" in | |
7333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7334 | *) ac_try_echo=$ac_try;; | |
7335 | esac | |
7336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7337 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
7338 | ac_status=$? |
7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
7341 | { (case "(($ac_try" in |
7342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7343 | *) ac_try_echo=$ac_try;; | |
7344 | esac | |
7345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7346 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
7347 | ac_status=$? |
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7349 | (exit $ac_status); }; }; then | |
7350 | ac_cv_func_mmap_fixed_mapped=yes | |
7351 | else | |
7352 | echo "$as_me: program exited with status $ac_status" >&5 | |
7353 | echo "$as_me: failed program was:" >&5 | |
7354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7355 | ||
7356 | ( exit $ac_status ) | |
7357 | ac_cv_func_mmap_fixed_mapped=no | |
7358 | fi | |
7a197a62 | 7359 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7360 | fi |
7a197a62 AK |
7361 | |
7362 | ||
ad6254c5 | 7363 | fi |
7a197a62 AK |
7364 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7365 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7366 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7367 | ||
7368 | cat >>confdefs.h <<\_ACEOF | |
7369 | #define HAVE_MMAP 1 | |
7370 | _ACEOF | |
7371 | ||
7372 | fi | |
7373 | rm -f conftest.mmap | |
7374 | ||
7a197a62 AK |
7375 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7376 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 AK |
7377 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7379 | else | |
7380 | if test "$cross_compiling" = yes; then | |
7381 | ac_cv_func_stat_empty_string_bug=yes | |
7382 | else | |
7383 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7384 | /* confdefs.h. */ |
7385 | _ACEOF | |
7386 | cat confdefs.h >>conftest.$ac_ext | |
7387 | cat >>conftest.$ac_ext <<_ACEOF | |
7388 | /* end confdefs.h. */ | |
7389 | $ac_includes_default | |
7390 | int | |
7391 | main () | |
7392 | { | |
7393 | struct stat sbuf; | |
7a197a62 | 7394 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7395 | ; |
7396 | return 0; | |
7397 | } | |
7398 | _ACEOF | |
7399 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7400 | if { (ac_try="$ac_link" |
7401 | case "(($ac_try" in | |
7402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7403 | *) ac_try_echo=$ac_try;; | |
7404 | esac | |
7405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7406 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
7407 | ac_status=$? |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
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_try") 2>&5 | |
ad6254c5 AK |
7416 | ac_status=$? |
7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7418 | (exit $ac_status); }; }; then | |
7a197a62 | 7419 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 AK |
7420 | else |
7421 | echo "$as_me: program exited with status $ac_status" >&5 | |
7422 | echo "$as_me: failed program was:" >&5 | |
7423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7424 | ||
7425 | ( exit $ac_status ) | |
7a197a62 | 7426 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7427 | fi |
7a197a62 | 7428 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7429 | fi |
7a197a62 AK |
7430 | |
7431 | ||
ad6254c5 | 7432 | fi |
7a197a62 AK |
7433 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7434 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7435 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7436 | case " $LIBOBJS " in |
8a2fc586 | 7437 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7438 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7439 | ;; | |
8a2fc586 AK |
7440 | esac |
7441 | ||
ad6254c5 AK |
7442 | |
7443 | cat >>confdefs.h <<_ACEOF | |
7444 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7445 | _ACEOF | |
7446 | ||
7447 | fi | |
7448 | ||
7a197a62 AK |
7449 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7450 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 AK |
7451 | if test "${ac_cv_func_strtod+set}" = set; then |
7452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7453 | else | |
7454 | if test "$cross_compiling" = yes; then | |
7455 | ac_cv_func_strtod=no | |
7456 | else | |
7457 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7458 | /* confdefs.h. */ |
7459 | _ACEOF | |
7460 | cat confdefs.h >>conftest.$ac_ext | |
7461 | cat >>conftest.$ac_ext <<_ACEOF | |
7462 | /* end confdefs.h. */ | |
7463 | ||
7a197a62 AK |
7464 | $ac_includes_default |
7465 | #ifndef strtod | |
ad6254c5 | 7466 | double strtod (); |
7a197a62 | 7467 | #endif |
ad6254c5 AK |
7468 | int |
7469 | main() | |
7470 | { | |
7471 | { | |
7472 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7473 | char *string = " +69"; | |
7474 | char *term; | |
7475 | double value; | |
7476 | value = strtod (string, &term); | |
7477 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7478 | return 1; |
ad6254c5 AK |
7479 | } |
7480 | ||
7481 | { | |
7482 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7483 | terminating character under some conditions. */ | |
7484 | char *string = "NaN"; | |
7485 | char *term; | |
7486 | strtod (string, &term); | |
7487 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7488 | return 1; |
ad6254c5 | 7489 | } |
7a197a62 | 7490 | return 0; |
ad6254c5 AK |
7491 | } |
7492 | ||
7493 | _ACEOF | |
7494 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7495 | if { (ac_try="$ac_link" |
7496 | case "(($ac_try" in | |
7497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7498 | *) ac_try_echo=$ac_try;; | |
7499 | esac | |
7500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7501 | (eval "$ac_link") 2>&5 | |
ad6254c5 AK |
7502 | ac_status=$? |
7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7a197a62 AK |
7505 | { (case "(($ac_try" in |
7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7507 | *) ac_try_echo=$ac_try;; | |
7508 | esac | |
7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7510 | (eval "$ac_try") 2>&5 | |
ad6254c5 AK |
7511 | ac_status=$? |
7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7513 | (exit $ac_status); }; }; then | |
7514 | ac_cv_func_strtod=yes | |
7515 | else | |
7516 | echo "$as_me: program exited with status $ac_status" >&5 | |
7517 | echo "$as_me: failed program was:" >&5 | |
7518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7519 | ||
7520 | ( exit $ac_status ) | |
7521 | ac_cv_func_strtod=no | |
7522 | fi | |
7a197a62 | 7523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7524 | fi |
7a197a62 AK |
7525 | |
7526 | ||
ad6254c5 | 7527 | fi |
7a197a62 AK |
7528 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7529 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7530 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7531 | case " $LIBOBJS " in |
8a2fc586 | 7532 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7533 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7534 | ;; | |
8a2fc586 AK |
7535 | esac |
7536 | ||
7a197a62 AK |
7537 | { echo "$as_me:$LINENO: checking for pow" >&5 |
7538 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 AK |
7539 | if test "${ac_cv_func_pow+set}" = set; then |
7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7541 | else | |
7542 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7543 | /* confdefs.h. */ |
7544 | _ACEOF | |
7545 | cat confdefs.h >>conftest.$ac_ext | |
7546 | cat >>conftest.$ac_ext <<_ACEOF | |
7547 | /* end confdefs.h. */ | |
8a2fc586 AK |
7548 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7550 | #define pow innocuous_pow | |
7551 | ||
ad6254c5 AK |
7552 | /* System header to define __stub macros and hopefully few prototypes, |
7553 | which can conflict with char pow (); below. | |
7554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7555 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7556 | |
ad6254c5 AK |
7557 | #ifdef __STDC__ |
7558 | # include <limits.h> | |
7559 | #else | |
7560 | # include <assert.h> | |
7561 | #endif | |
8a2fc586 AK |
7562 | |
7563 | #undef pow | |
7564 | ||
7a197a62 AK |
7565 | /* Override any GCC internal prototype to avoid an error. |
7566 | Use char because int might match the return type of a GCC | |
7567 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7568 | #ifdef __cplusplus |
7569 | extern "C" | |
ad6254c5 | 7570 | #endif |
ad6254c5 AK |
7571 | char pow (); |
7572 | /* The GNU C library defines this for functions which it implements | |
7573 | to always fail with ENOSYS. Some functions are actually named | |
7574 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7575 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7576 | choke me |
ad6254c5 AK |
7577 | #endif |
7578 | ||
7579 | int | |
7580 | main () | |
7581 | { | |
7a197a62 | 7582 | return pow (); |
ad6254c5 AK |
7583 | ; |
7584 | return 0; | |
7585 | } | |
7586 | _ACEOF | |
7587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7588 | if { (ac_try="$ac_link" |
7589 | case "(($ac_try" in | |
7590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7591 | *) ac_try_echo=$ac_try;; | |
7592 | esac | |
7593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7594 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 7595 | ac_status=$? |
8a2fc586 AK |
7596 | grep -v '^ *+' conftest.er1 >conftest.err |
7597 | rm -f conftest.er1 | |
7598 | cat conftest.err >&5 | |
ad6254c5 | 7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7600 | (exit $ac_status); } && { |
7601 | test -z "$ac_c_werror_flag" || | |
7602 | test ! -s conftest.err | |
7603 | } && test -s conftest$ac_exeext && | |
7604 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7605 | ac_cv_func_pow=yes |
7606 | else | |
7607 | echo "$as_me: failed program was:" >&5 | |
7608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7609 | ||
7a197a62 | 7610 | ac_cv_func_pow=no |
ad6254c5 | 7611 | fi |
7a197a62 AK |
7612 | |
7613 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7614 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7615 | fi |
7a197a62 AK |
7616 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
7617 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
7618 | |
7619 | if test $ac_cv_func_pow = no; then | |
7a197a62 AK |
7620 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
7621 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 AK |
7622 | if test "${ac_cv_lib_m_pow+set}" = set; then |
7623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7624 | else | |
7625 | ac_check_lib_save_LIBS=$LIBS | |
7626 | LIBS="-lm $LIBS" | |
7627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7628 | /* confdefs.h. */ |
7629 | _ACEOF | |
7630 | cat confdefs.h >>conftest.$ac_ext | |
7631 | cat >>conftest.$ac_ext <<_ACEOF | |
7632 | /* end confdefs.h. */ | |
7633 | ||
7a197a62 AK |
7634 | /* Override any GCC internal prototype to avoid an error. |
7635 | Use char because int might match the return type of a GCC | |
7636 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7637 | #ifdef __cplusplus |
7638 | extern "C" | |
7639 | #endif | |
ad6254c5 AK |
7640 | char pow (); |
7641 | int | |
7642 | main () | |
7643 | { | |
7a197a62 | 7644 | return pow (); |
ad6254c5 AK |
7645 | ; |
7646 | return 0; | |
7647 | } | |
7648 | _ACEOF | |
7649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7650 | if { (ac_try="$ac_link" |
7651 | case "(($ac_try" in | |
7652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7653 | *) ac_try_echo=$ac_try;; | |
7654 | esac | |
7655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7656 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 7657 | ac_status=$? |
8a2fc586 AK |
7658 | grep -v '^ *+' conftest.er1 >conftest.err |
7659 | rm -f conftest.er1 | |
7660 | cat conftest.err >&5 | |
ad6254c5 | 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7662 | (exit $ac_status); } && { |
7663 | test -z "$ac_c_werror_flag" || | |
7664 | test ! -s conftest.err | |
7665 | } && test -s conftest$ac_exeext && | |
7666 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7667 | ac_cv_lib_m_pow=yes |
7668 | else | |
7669 | echo "$as_me: failed program was:" >&5 | |
7670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7671 | ||
7a197a62 | 7672 | ac_cv_lib_m_pow=no |
ad6254c5 | 7673 | fi |
7a197a62 AK |
7674 | |
7675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7676 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7677 | LIBS=$ac_check_lib_save_LIBS |
7678 | fi | |
7a197a62 AK |
7679 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
7680 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
ad6254c5 AK |
7681 | if test $ac_cv_lib_m_pow = yes; then |
7682 | POW_LIB=-lm | |
7683 | else | |
7684 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7685 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7686 | fi | |
7687 | ||
7688 | fi | |
7689 | ||
7690 | fi | |
7691 | ||
7692 | ||
7693 | ################################################################################ | |
7694 | ||
7695 | ||
7696 | ################################################################################ | |
7a197a62 | 7697 | # Check whether --enable-jobs was given. |
ad6254c5 | 7698 | if test "${enable_jobs+set}" = set; then |
7a197a62 | 7699 | enableval=$enable_jobs; JOBS=-j$enableval |
ad6254c5 AK |
7700 | else |
7701 | JOBS=-j2 | |
7a197a62 AK |
7702 | fi |
7703 | ||
ad6254c5 AK |
7704 | |
7705 | ################################################################################ | |
7a197a62 AK |
7706 | { echo "$as_me:$LINENO: checking file owner" >&5 |
7707 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
7708 | OWNER="root" |
7709 | ||
7710 | ||
7a197a62 | 7711 | # Check whether --with-user was given. |
ad6254c5 | 7712 | if test "${with_user+set}" = set; then |
7a197a62 AK |
7713 | withval=$with_user; OWNER="$withval" |
7714 | fi | |
7715 | ||
7716 | { echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7717 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 AK |
7718 | |
7719 | if test x$OWNER != x; then | |
7720 | OWNER="-o $OWNER" | |
7721 | fi | |
7722 | ||
7723 | ################################################################################ | |
7a197a62 AK |
7724 | { echo "$as_me:$LINENO: checking group owner" >&5 |
7725 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
7726 | GROUP="root" |
7727 | ||
7a197a62 | 7728 | # Check whether --with-group was given. |
ad6254c5 | 7729 | if test "${with_group+set}" = set; then |
7a197a62 AK |
7730 | withval=$with_group; GROUP="$withval" |
7731 | fi | |
7732 | ||
7733 | { echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7734 | echo "${ECHO_T}$GROUP" >&6; } | |
ad6254c5 AK |
7735 | |
7736 | if test x$GROUP != x; then | |
7737 | GROUP="-g $GROUP" | |
7738 | fi | |
7739 | ||
7740 | ################################################################################ | |
7a197a62 AK |
7741 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
7742 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
7743 | # Check whether --enable-lvm1_fallback was given. | |
ad6254c5 | 7744 | if test "${enable_lvm1_fallback+set}" = set; then |
7a197a62 | 7745 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval |
ad6254c5 AK |
7746 | else |
7747 | LVM1_FALLBACK=no | |
7a197a62 AK |
7748 | fi |
7749 | ||
7750 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7751 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 AK |
7752 | |
7753 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
7754 | |
7755 | cat >>confdefs.h <<\_ACEOF | |
7756 | #define LVM1_FALLBACK 1 | |
7757 | _ACEOF | |
7758 | ||
ad6254c5 AK |
7759 | fi |
7760 | ||
7761 | ################################################################################ | |
7a197a62 AK |
7762 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
7763 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
ad6254c5 | 7764 | |
7a197a62 | 7765 | # Check whether --with-lvm1 was given. |
ad6254c5 | 7766 | if test "${with_lvm1+set}" = set; then |
7a197a62 | 7767 | withval=$with_lvm1; LVM1="$withval" |
ad6254c5 AK |
7768 | else |
7769 | LVM1="internal" | |
7a197a62 AK |
7770 | fi |
7771 | ||
7772 | { echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7773 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 AK |
7774 | |
7775 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7776 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7777 | " >&5 | |
7778 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7779 | " >&2;} | |
7780 | { (exit 1); exit 1; }; } | |
7781 | fi; | |
7782 | ||
7783 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
7784 | |
7785 | cat >>confdefs.h <<\_ACEOF | |
7786 | #define LVM1_INTERNAL 1 | |
7787 | _ACEOF | |
7788 | ||
ad6254c5 AK |
7789 | fi |
7790 | ||
7791 | ################################################################################ | |
7a197a62 AK |
7792 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
7793 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
ad6254c5 | 7794 | |
7a197a62 | 7795 | # Check whether --with-pool was given. |
ad6254c5 | 7796 | if test "${with_pool+set}" = set; then |
7a197a62 | 7797 | withval=$with_pool; POOL="$withval" |
ad6254c5 AK |
7798 | else |
7799 | POOL="internal" | |
7a197a62 AK |
7800 | fi |
7801 | ||
7802 | { echo "$as_me:$LINENO: result: $POOL" >&5 | |
7803 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 AK |
7804 | |
7805 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7806 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7807 | " >&5 | |
7808 | echo "$as_me: error: --with-pool parameter invalid | |
7809 | " >&2;} | |
7810 | { (exit 1); exit 1; }; } | |
7811 | fi; | |
7812 | ||
7813 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
7814 | |
7815 | cat >>confdefs.h <<\_ACEOF | |
7816 | #define POOL_INTERNAL 1 | |
7817 | _ACEOF | |
7818 | ||
ad6254c5 AK |
7819 | fi |
7820 | ||
7821 | ################################################################################ | |
7a197a62 AK |
7822 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
7823 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
ad6254c5 | 7824 | |
7a197a62 | 7825 | # Check whether --with-cluster was given. |
ad6254c5 | 7826 | if test "${with_cluster+set}" = set; then |
7a197a62 AK |
7827 | withval=$with_cluster; CLUSTER="$withval" |
7828 | fi | |
7829 | ||
7830 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7831 | echo "${ECHO_T}$CLUSTER" >&6; } | |
ad6254c5 AK |
7832 | |
7833 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7834 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7835 | " >&5 | |
7836 | echo "$as_me: error: --with-cluster parameter invalid | |
7837 | " >&2;} | |
7838 | { (exit 1); exit 1; }; } | |
7839 | fi; | |
7840 | ||
7841 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
7842 | |
7843 | cat >>confdefs.h <<\_ACEOF | |
7844 | #define CLUSTER_LOCKING_INTERNAL 1 | |
7845 | _ACEOF | |
7846 | ||
ad6254c5 AK |
7847 | fi |
7848 | ||
7849 | ################################################################################ | |
7a197a62 AK |
7850 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
7851 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 7852 | |
7a197a62 | 7853 | # Check whether --with-snapshots was given. |
ad6254c5 | 7854 | if test "${with_snapshots+set}" = set; then |
7a197a62 | 7855 | withval=$with_snapshots; SNAPSHOTS="$withval" |
ad6254c5 AK |
7856 | else |
7857 | SNAPSHOTS="internal" | |
7a197a62 AK |
7858 | fi |
7859 | ||
7860 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7861 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 AK |
7862 | |
7863 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7864 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7865 | " >&5 | |
7866 | echo "$as_me: error: --with-snapshots parameter invalid | |
7867 | " >&2;} | |
7868 | { (exit 1); exit 1; }; } | |
7869 | fi; | |
7870 | ||
7871 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
7872 | |
7873 | cat >>confdefs.h <<\_ACEOF | |
7874 | #define SNAPSHOT_INTERNAL 1 | |
7875 | _ACEOF | |
7876 | ||
ad6254c5 AK |
7877 | fi |
7878 | ||
7879 | ################################################################################ | |
7a197a62 AK |
7880 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
7881 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
ad6254c5 | 7882 | |
7a197a62 | 7883 | # Check whether --with-mirrors was given. |
ad6254c5 | 7884 | if test "${with_mirrors+set}" = set; then |
7a197a62 | 7885 | withval=$with_mirrors; MIRRORS="$withval" |
ad6254c5 AK |
7886 | else |
7887 | MIRRORS="internal" | |
7a197a62 AK |
7888 | fi |
7889 | ||
7890 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7891 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 AK |
7892 | |
7893 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7894 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7895 | " >&5 | |
7896 | echo "$as_me: error: --with-mirrors parameter invalid | |
7897 | " >&2;} | |
7898 | { (exit 1); exit 1; }; } | |
7899 | fi; | |
7900 | ||
7901 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
7902 | |
7903 | cat >>confdefs.h <<\_ACEOF | |
7904 | #define MIRRORED_INTERNAL 1 | |
7905 | _ACEOF | |
7906 | ||
ad6254c5 AK |
7907 | fi |
7908 | ||
7909 | ################################################################################ | |
7a197a62 AK |
7910 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
7911 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
7912 | # Check whether --enable-static_link was given. | |
ad6254c5 | 7913 | if test "${enable_static_link+set}" = set; then |
7a197a62 | 7914 | enableval=$enable_static_link; STATIC_LINK=$enableval |
ad6254c5 AK |
7915 | else |
7916 | STATIC_LINK=no | |
7a197a62 AK |
7917 | fi |
7918 | ||
7919 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7920 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
ad6254c5 AK |
7921 | |
7922 | ################################################################################ | |
7a197a62 AK |
7923 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
7924 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
7925 | # Check whether --enable-readline was given. | |
ad6254c5 | 7926 | if test "${enable_readline+set}" = set; then |
7a197a62 | 7927 | enableval=$enable_readline; READLINE=$enableval |
ad6254c5 AK |
7928 | else |
7929 | READLINE=no | |
7a197a62 AK |
7930 | fi |
7931 | ||
7932 | { echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7933 | echo "${ECHO_T}$READLINE" >&6; } | |
ad6254c5 AK |
7934 | |
7935 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
7936 | |
7937 | cat >>confdefs.h <<\_ACEOF | |
7938 | #define READLINE_SUPPORT 1 | |
7939 | _ACEOF | |
7940 | ||
ad6254c5 AK |
7941 | fi |
7942 | ||
7943 | ################################################################################ | |
7a197a62 AK |
7944 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
7945 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
7946 | # Check whether --enable-selinux was given. | |
ad6254c5 | 7947 | if test "${enable_selinux+set}" = set; then |
7a197a62 AK |
7948 | enableval=$enable_selinux; SELINUX=$enableval |
7949 | fi | |
7950 | ||
7951 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7952 | echo "${ECHO_T}$SELINUX" >&6; } | |
ad6254c5 | 7953 | |
8b1a3214 | 7954 | ################################################################################ |
7a197a62 AK |
7955 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
7956 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
7957 | # Check whether --enable-realtime was given. | |
8b1a3214 | 7958 | if test "${enable_realtime+set}" = set; then |
7a197a62 AK |
7959 | enableval=$enable_realtime; REALTIME=$enableval |
7960 | fi | |
7961 | ||
7962 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 | |
7963 | echo "${ECHO_T}$REALTIME" >&6; } | |
8b1a3214 | 7964 | |
ad6254c5 | 7965 | ################################################################################ |
7a197a62 AK |
7966 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
7967 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
ad6254c5 | 7968 | |
7a197a62 | 7969 | # Check whether --with-clvmd was given. |
ad6254c5 | 7970 | if test "${with_clvmd+set}" = set; then |
7a197a62 | 7971 | withval=$with_clvmd; CLVMD="$withval" |
ad6254c5 | 7972 | else |
a266258f | 7973 | CLVMD="none" |
7a197a62 AK |
7974 | fi |
7975 | ||
a266258f | 7976 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7977 | CLVMD=all |
b1098701 | 7978 | fi |
7a197a62 AK |
7979 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7980 | echo "${ECHO_T}$CLVMD" >&6; } | |
ad6254c5 | 7981 | |
a266258f | 7982 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7983 | CLUSTER=internal |
7984 | fi | |
7985 | ||
7986 | ################################################################################ | |
7a197a62 AK |
7987 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
7988 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
7989 | # Check whether --enable-debug was given. | |
ad6254c5 | 7990 | if test "${enable_debug+set}" = set; then |
7a197a62 | 7991 | enableval=$enable_debug; DEBUG=$enableval |
ad6254c5 AK |
7992 | else |
7993 | DEBUG=no | |
7a197a62 AK |
7994 | fi |
7995 | ||
7996 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7997 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 AK |
7998 | |
7999 | if test x$DEBUG = xyes; then | |
8000 | COPTIMISE_FLAG= | |
8a2fc586 AK |
8001 | else |
8002 | CSCOPE_CMD= | |
ad6254c5 AK |
8003 | fi |
8004 | ||
8005 | ################################################################################ | |
7a197a62 AK |
8006 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8007 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
ad6254c5 | 8008 | |
7a197a62 | 8009 | # Check whether --with-optimisation was given. |
ad6254c5 | 8010 | if test "${with_optimisation+set}" = set; then |
7a197a62 AK |
8011 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" |
8012 | fi | |
8013 | ||
8014 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
8015 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
ad6254c5 AK |
8016 | |
8017 | ################################################################################ | |
7a197a62 AK |
8018 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8019 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
8020 | # Check whether --enable-devmapper was given. | |
ad6254c5 | 8021 | if test "${enable_devmapper+set}" = set; then |
7a197a62 AK |
8022 | enableval=$enable_devmapper; DEVMAPPER=$enableval |
8023 | fi | |
8024 | ||
8025 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
8026 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
ad6254c5 AK |
8027 | |
8028 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
8029 | |
8030 | cat >>confdefs.h <<\_ACEOF | |
8031 | #define DEVMAPPER_SUPPORT 1 | |
8032 | _ACEOF | |
8033 | ||
ad6254c5 AK |
8034 | fi |
8035 | ||
8036 | ################################################################################ | |
7a197a62 AK |
8037 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8038 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
8039 | # Check whether --enable-o_direct was given. | |
ad6254c5 | 8040 | if test "${enable_o_direct+set}" = set; then |
7a197a62 AK |
8041 | enableval=$enable_o_direct; ODIRECT=$enableval |
8042 | fi | |
8043 | ||
8044 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
8045 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 AK |
8046 | |
8047 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
8048 | |
8049 | cat >>confdefs.h <<\_ACEOF | |
8050 | #define O_DIRECT_SUPPORT 1 | |
8051 | _ACEOF | |
8052 | ||
ad6254c5 AK |
8053 | fi |
8054 | ||
8055 | ################################################################################ | |
7a197a62 AK |
8056 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8057 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
8058 | # Check whether --enable-cmdlib was given. | |
ad6254c5 | 8059 | if test "${enable_cmdlib+set}" = set; then |
7a197a62 | 8060 | enableval=$enable_cmdlib; CMDLIB=$enableval |
ad6254c5 AK |
8061 | else |
8062 | CMDLIB=no | |
7a197a62 AK |
8063 | fi |
8064 | ||
8065 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
8066 | echo "${ECHO_T}$CMDLIB" >&6; } | |
ad6254c5 | 8067 | |
ad6254c5 | 8068 | ################################################################################ |
7a197a62 AK |
8069 | { echo "$as_me:$LINENO: checking whether to build fsadm" >&5 |
8070 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6; } | |
8071 | # Check whether --enable-fsadm was given. | |
ad6254c5 | 8072 | if test "${enable_fsadm+set}" = set; then |
7a197a62 AK |
8073 | enableval=$enable_fsadm; FSADM=$enableval |
8074 | fi | |
8075 | ||
8076 | { echo "$as_me:$LINENO: result: $FSADM" >&5 | |
8077 | echo "${ECHO_T}$FSADM" >&6; } | |
ad6254c5 | 8078 | |
06f62ad1 | 8079 | ################################################################################ |
7a197a62 AK |
8080 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8081 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
8082 | # Check whether --enable-dmeventd was given. | |
06f62ad1 | 8083 | if test "${enable_dmeventd+set}" = set; then |
7a197a62 AK |
8084 | enableval=$enable_dmeventd; DMEVENTD=$enableval |
8085 | fi | |
8086 | ||
8087 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
8088 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
06f62ad1 AK |
8089 | |
8090 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
8091 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8092 | " >&5 | |
8093 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8094 | " >&2;} | |
8095 | { (exit 1); exit 1; }; } | |
8096 | fi | |
8097 | ||
15d91f5a | 8098 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
8099 | |
8100 | cat >>confdefs.h <<\_ACEOF | |
8101 | #define DMEVENTD 1 | |
8102 | _ACEOF | |
8103 | ||
15d91f5a | 8104 | fi |
ad6254c5 AK |
8105 | ################################################################################ |
8106 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8107 | then exec_prefix=""; | |
8108 | fi; | |
8109 | ||
8110 | ################################################################################ | |
8111 | if test $ac_cv_c_compiler_gnu = yes; then | |
7a197a62 AK |
8112 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
8113 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
ad6254c5 AK |
8114 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
8115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8116 | else | |
8117 | ac_pattern="Autoconf.*'x'" | |
8118 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8119 | /* confdefs.h. */ |
8120 | _ACEOF | |
8121 | cat confdefs.h >>conftest.$ac_ext | |
8122 | cat >>conftest.$ac_ext <<_ACEOF | |
8123 | /* end confdefs.h. */ | |
8124 | #include <sgtty.h> | |
8125 | Autoconf TIOCGETP | |
8126 | _ACEOF | |
8127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8128 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8129 | ac_cv_prog_gcc_traditional=yes | |
8130 | else | |
8131 | ac_cv_prog_gcc_traditional=no | |
8132 | fi | |
8133 | rm -f conftest* | |
8134 | ||
8135 | ||
8136 | if test $ac_cv_prog_gcc_traditional = no; then | |
8137 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8138 | /* confdefs.h. */ |
8139 | _ACEOF | |
8140 | cat confdefs.h >>conftest.$ac_ext | |
8141 | cat >>conftest.$ac_ext <<_ACEOF | |
8142 | /* end confdefs.h. */ | |
8143 | #include <termio.h> | |
8144 | Autoconf TCGETA | |
8145 | _ACEOF | |
8146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8147 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8148 | ac_cv_prog_gcc_traditional=yes | |
8149 | fi | |
8150 | rm -f conftest* | |
8151 | ||
8152 | fi | |
8153 | fi | |
7a197a62 AK |
8154 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
8155 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
ad6254c5 AK |
8156 | if test $ac_cv_prog_gcc_traditional = yes; then |
8157 | CC="$CC -traditional" | |
8158 | fi | |
8159 | fi | |
8160 | ||
7a197a62 AK |
8161 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
8162 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
ad6254c5 AK |
8163 | if test "${ac_cv_type_signal+set}" = set; then |
8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8165 | else | |
8166 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8167 | /* confdefs.h. */ |
8168 | _ACEOF | |
8169 | cat confdefs.h >>conftest.$ac_ext | |
8170 | cat >>conftest.$ac_ext <<_ACEOF | |
8171 | /* end confdefs.h. */ | |
8172 | #include <sys/types.h> | |
8173 | #include <signal.h> | |
ad6254c5 AK |
8174 | |
8175 | int | |
8176 | main () | |
8177 | { | |
7a197a62 | 8178 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
8179 | ; |
8180 | return 0; | |
8181 | } | |
8182 | _ACEOF | |
8183 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8184 | if { (ac_try="$ac_compile" |
8185 | case "(($ac_try" in | |
8186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8187 | *) ac_try_echo=$ac_try;; | |
8188 | esac | |
8189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8190 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 8191 | ac_status=$? |
8a2fc586 AK |
8192 | grep -v '^ *+' conftest.er1 >conftest.err |
8193 | rm -f conftest.er1 | |
8194 | cat conftest.err >&5 | |
ad6254c5 | 8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8196 | (exit $ac_status); } && { |
8197 | test -z "$ac_c_werror_flag" || | |
8198 | test ! -s conftest.err | |
8199 | } && test -s conftest.$ac_objext; then | |
8200 | ac_cv_type_signal=int | |
ad6254c5 AK |
8201 | else |
8202 | echo "$as_me: failed program was:" >&5 | |
8203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8204 | ||
7a197a62 | 8205 | ac_cv_type_signal=void |
ad6254c5 | 8206 | fi |
7a197a62 AK |
8207 | |
8208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 8209 | fi |
7a197a62 AK |
8210 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
8211 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
ad6254c5 AK |
8212 | |
8213 | cat >>confdefs.h <<_ACEOF | |
8214 | #define RETSIGTYPE $ac_cv_type_signal | |
8215 | _ACEOF | |
8216 | ||
8217 | ||
8218 | ||
8219 | for ac_func in vprintf | |
8220 | do | |
8221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
8222 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8224 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
8225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8226 | else | |
8227 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8228 | /* confdefs.h. */ |
8229 | _ACEOF | |
8230 | cat confdefs.h >>conftest.$ac_ext | |
8231 | cat >>conftest.$ac_ext <<_ACEOF | |
8232 | /* end confdefs.h. */ | |
8a2fc586 AK |
8233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8235 | #define $ac_func innocuous_$ac_func | |
8236 | ||
ad6254c5 AK |
8237 | /* System header to define __stub macros and hopefully few prototypes, |
8238 | which can conflict with char $ac_func (); below. | |
8239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8240 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8241 | |
ad6254c5 AK |
8242 | #ifdef __STDC__ |
8243 | # include <limits.h> | |
8244 | #else | |
8245 | # include <assert.h> | |
8246 | #endif | |
8a2fc586 AK |
8247 | |
8248 | #undef $ac_func | |
8249 | ||
7a197a62 AK |
8250 | /* Override any GCC internal prototype to avoid an error. |
8251 | Use char because int might match the return type of a GCC | |
8252 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8253 | #ifdef __cplusplus |
8254 | extern "C" | |
ad6254c5 | 8255 | #endif |
ad6254c5 AK |
8256 | char $ac_func (); |
8257 | /* The GNU C library defines this for functions which it implements | |
8258 | to always fail with ENOSYS. Some functions are actually named | |
8259 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8260 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8261 | choke me |
ad6254c5 AK |
8262 | #endif |
8263 | ||
8264 | int | |
8265 | main () | |
8266 | { | |
7a197a62 | 8267 | return $ac_func (); |
ad6254c5 AK |
8268 | ; |
8269 | return 0; | |
8270 | } | |
8271 | _ACEOF | |
8272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8273 | if { (ac_try="$ac_link" |
8274 | case "(($ac_try" in | |
8275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8276 | *) ac_try_echo=$ac_try;; | |
8277 | esac | |
8278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8279 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8280 | ac_status=$? |
8a2fc586 AK |
8281 | grep -v '^ *+' conftest.er1 >conftest.err |
8282 | rm -f conftest.er1 | |
8283 | cat conftest.err >&5 | |
ad6254c5 | 8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8285 | (exit $ac_status); } && { |
8286 | test -z "$ac_c_werror_flag" || | |
8287 | test ! -s conftest.err | |
8288 | } && test -s conftest$ac_exeext && | |
8289 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8290 | eval "$as_ac_var=yes" |
8291 | else | |
8292 | echo "$as_me: failed program was:" >&5 | |
8293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8294 | ||
7a197a62 | 8295 | eval "$as_ac_var=no" |
ad6254c5 | 8296 | fi |
7a197a62 AK |
8297 | |
8298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8299 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8300 | fi |
7a197a62 AK |
8301 | ac_res=`eval echo '${'$as_ac_var'}'` |
8302 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8303 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
8304 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8305 | cat >>confdefs.h <<_ACEOF | |
8306 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8307 | _ACEOF | |
8308 | ||
7a197a62 AK |
8309 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8310 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
ad6254c5 AK |
8311 | if test "${ac_cv_func__doprnt+set}" = set; then |
8312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8313 | else | |
8314 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8315 | /* confdefs.h. */ |
8316 | _ACEOF | |
8317 | cat confdefs.h >>conftest.$ac_ext | |
8318 | cat >>conftest.$ac_ext <<_ACEOF | |
8319 | /* end confdefs.h. */ | |
8a2fc586 AK |
8320 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
8321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8322 | #define _doprnt innocuous__doprnt | |
8323 | ||
ad6254c5 AK |
8324 | /* System header to define __stub macros and hopefully few prototypes, |
8325 | which can conflict with char _doprnt (); below. | |
8326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8327 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8328 | |
ad6254c5 AK |
8329 | #ifdef __STDC__ |
8330 | # include <limits.h> | |
8331 | #else | |
8332 | # include <assert.h> | |
8333 | #endif | |
8a2fc586 AK |
8334 | |
8335 | #undef _doprnt | |
8336 | ||
7a197a62 AK |
8337 | /* Override any GCC internal prototype to avoid an error. |
8338 | Use char because int might match the return type of a GCC | |
8339 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8340 | #ifdef __cplusplus |
8341 | extern "C" | |
ad6254c5 | 8342 | #endif |
ad6254c5 AK |
8343 | char _doprnt (); |
8344 | /* The GNU C library defines this for functions which it implements | |
8345 | to always fail with ENOSYS. Some functions are actually named | |
8346 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8347 | #if defined __stub__doprnt || defined __stub____doprnt |
ad6254c5 | 8348 | choke me |
ad6254c5 AK |
8349 | #endif |
8350 | ||
8351 | int | |
8352 | main () | |
8353 | { | |
7a197a62 | 8354 | return _doprnt (); |
ad6254c5 AK |
8355 | ; |
8356 | return 0; | |
8357 | } | |
8358 | _ACEOF | |
8359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8360 | if { (ac_try="$ac_link" |
8361 | case "(($ac_try" in | |
8362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8363 | *) ac_try_echo=$ac_try;; | |
8364 | esac | |
8365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8366 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8367 | ac_status=$? |
8a2fc586 AK |
8368 | grep -v '^ *+' conftest.er1 >conftest.err |
8369 | rm -f conftest.er1 | |
8370 | cat conftest.err >&5 | |
ad6254c5 | 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8372 | (exit $ac_status); } && { |
8373 | test -z "$ac_c_werror_flag" || | |
8374 | test ! -s conftest.err | |
8375 | } && test -s conftest$ac_exeext && | |
8376 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8377 | ac_cv_func__doprnt=yes |
8378 | else | |
8379 | echo "$as_me: failed program was:" >&5 | |
8380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8381 | ||
7a197a62 | 8382 | ac_cv_func__doprnt=no |
ad6254c5 | 8383 | fi |
7a197a62 AK |
8384 | |
8385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8386 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8387 | fi |
7a197a62 AK |
8388 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8389 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
ad6254c5 AK |
8390 | if test $ac_cv_func__doprnt = yes; then |
8391 | ||
8392 | cat >>confdefs.h <<\_ACEOF | |
8393 | #define HAVE_DOPRNT 1 | |
8394 | _ACEOF | |
8395 | ||
8396 | fi | |
8397 | ||
8398 | fi | |
8399 | done | |
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | for ac_func in mkdir rmdir uname | |
8406 | do | |
8407 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
8408 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8409 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8410 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
8411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8412 | else | |
8413 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8414 | /* confdefs.h. */ |
8415 | _ACEOF | |
8416 | cat confdefs.h >>conftest.$ac_ext | |
8417 | cat >>conftest.$ac_ext <<_ACEOF | |
8418 | /* end confdefs.h. */ | |
8a2fc586 AK |
8419 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8420 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8421 | #define $ac_func innocuous_$ac_func | |
8422 | ||
ad6254c5 AK |
8423 | /* System header to define __stub macros and hopefully few prototypes, |
8424 | which can conflict with char $ac_func (); below. | |
8425 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8426 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8427 | |
ad6254c5 AK |
8428 | #ifdef __STDC__ |
8429 | # include <limits.h> | |
8430 | #else | |
8431 | # include <assert.h> | |
8432 | #endif | |
8a2fc586 AK |
8433 | |
8434 | #undef $ac_func | |
8435 | ||
7a197a62 AK |
8436 | /* Override any GCC internal prototype to avoid an error. |
8437 | Use char because int might match the return type of a GCC | |
8438 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8439 | #ifdef __cplusplus |
8440 | extern "C" | |
ad6254c5 | 8441 | #endif |
ad6254c5 AK |
8442 | char $ac_func (); |
8443 | /* The GNU C library defines this for functions which it implements | |
8444 | to always fail with ENOSYS. Some functions are actually named | |
8445 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8446 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8447 | choke me |
ad6254c5 AK |
8448 | #endif |
8449 | ||
8450 | int | |
8451 | main () | |
8452 | { | |
7a197a62 | 8453 | return $ac_func (); |
ad6254c5 AK |
8454 | ; |
8455 | return 0; | |
8456 | } | |
8457 | _ACEOF | |
8458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8459 | if { (ac_try="$ac_link" |
8460 | case "(($ac_try" in | |
8461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8462 | *) ac_try_echo=$ac_try;; | |
8463 | esac | |
8464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8465 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8466 | ac_status=$? |
8a2fc586 AK |
8467 | grep -v '^ *+' conftest.er1 >conftest.err |
8468 | rm -f conftest.er1 | |
8469 | cat conftest.err >&5 | |
ad6254c5 | 8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8471 | (exit $ac_status); } && { |
8472 | test -z "$ac_c_werror_flag" || | |
8473 | test ! -s conftest.err | |
8474 | } && test -s conftest$ac_exeext && | |
8475 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8476 | eval "$as_ac_var=yes" |
8477 | else | |
8478 | echo "$as_me: failed program was:" >&5 | |
8479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8480 | ||
7a197a62 | 8481 | eval "$as_ac_var=no" |
ad6254c5 | 8482 | fi |
7a197a62 AK |
8483 | |
8484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8485 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8486 | fi |
7a197a62 AK |
8487 | ac_res=`eval echo '${'$as_ac_var'}'` |
8488 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8489 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
8490 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8491 | cat >>confdefs.h <<_ACEOF | |
8492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8493 | _ACEOF | |
8494 | ||
8495 | else | |
8496 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8497 | echo "$as_me: error: bailing out" >&2;} | |
8498 | { (exit 1); exit 1; }; } | |
8499 | fi | |
8500 | done | |
8501 | ||
8502 | ||
8503 | ################################################################################ | |
8504 | if test x$READLINE = xyes; then | |
7a197a62 AK |
8505 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8506 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 AK |
8507 | if test "${ac_cv_search_tgetent+set}" = set; then |
8508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8509 | else | |
8510 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8511 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8512 | /* confdefs.h. */ |
8513 | _ACEOF | |
8514 | cat confdefs.h >>conftest.$ac_ext | |
8515 | cat >>conftest.$ac_ext <<_ACEOF | |
8516 | /* end confdefs.h. */ | |
8517 | ||
7a197a62 AK |
8518 | /* Override any GCC internal prototype to avoid an error. |
8519 | Use char because int might match the return type of a GCC | |
8520 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8521 | #ifdef __cplusplus |
8522 | extern "C" | |
8523 | #endif | |
ad6254c5 AK |
8524 | char tgetent (); |
8525 | int | |
8526 | main () | |
8527 | { | |
7a197a62 | 8528 | return tgetent (); |
ad6254c5 AK |
8529 | ; |
8530 | return 0; | |
8531 | } | |
8532 | _ACEOF | |
7a197a62 AK |
8533 | for ac_lib in '' ncurses curses termcap termlib; do |
8534 | if test -z "$ac_lib"; then | |
8535 | ac_res="none required" | |
8536 | else | |
8537 | ac_res=-l$ac_lib | |
8538 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8539 | fi | |
8540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8541 | if { (ac_try="$ac_link" | |
8542 | case "(($ac_try" in | |
8543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8544 | *) ac_try_echo=$ac_try;; | |
8545 | esac | |
8546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8547 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8548 | ac_status=$? |
8a2fc586 AK |
8549 | grep -v '^ *+' conftest.er1 >conftest.err |
8550 | rm -f conftest.er1 | |
8551 | cat conftest.err >&5 | |
ad6254c5 | 8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8553 | (exit $ac_status); } && { |
8554 | test -z "$ac_c_werror_flag" || | |
8555 | test ! -s conftest.err | |
8556 | } && test -s conftest$ac_exeext && | |
8557 | $as_test_x conftest$ac_exeext; then | |
8558 | ac_cv_search_tgetent=$ac_res | |
ad6254c5 AK |
8559 | else |
8560 | echo "$as_me: failed program was:" >&5 | |
8561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8562 | ||
ad6254c5 | 8563 | |
7a197a62 | 8564 | fi |
ad6254c5 | 8565 | |
7a197a62 AK |
8566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8567 | conftest$ac_exeext | |
8568 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8569 | break | |
ad6254c5 | 8570 | fi |
7a197a62 AK |
8571 | done |
8572 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8573 | : | |
8574 | else | |
8575 | ac_cv_search_tgetent=no | |
ad6254c5 | 8576 | fi |
7a197a62 | 8577 | rm conftest.$ac_ext |
ad6254c5 AK |
8578 | LIBS=$ac_func_search_save_LIBS |
8579 | fi | |
7a197a62 AK |
8580 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8581 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
8582 | ac_res=$ac_cv_search_tgetent | |
8583 | if test "$ac_res" != no; then | |
8584 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
8585 | |
8586 | else | |
8587 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
8588 | --enable-readline option (which is enabled by default). Either disable readline | |
8589 | support with --disable-readline or download and install termcap from: | |
8590 | ftp.gnu.org/gnu/termcap | |
8591 | Note: if you are using precompiled packages you will also need the development | |
8592 | package as well (which may be called termcap-devel or something similar). | |
8593 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8594 | not found either - but you could try installing that as well. | |
8595 | " >&5 | |
8596 | echo "$as_me: error: termcap could not be found which is required for the | |
8597 | --enable-readline option (which is enabled by default). Either disable readline | |
8598 | support with --disable-readline or download and install termcap from: | |
8599 | ftp.gnu.org/gnu/termcap | |
8600 | Note: if you are using precompiled packages you will also need the development | |
8601 | package as well (which may be called termcap-devel or something similar). | |
8602 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8603 | not found either - but you could try installing that as well. | |
8604 | " >&2;} | |
8605 | { (exit 1); exit 1; }; } | |
8606 | ||
8607 | fi | |
8608 | ||
8609 | fi | |
8610 | ||
8611 | ################################################################################ | |
7a197a62 AK |
8612 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8613 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 AK |
8614 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8616 | else | |
8617 | ac_check_lib_save_LIBS=$LIBS | |
8618 | LIBS="-ldl $LIBS" | |
8619 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8620 | /* confdefs.h. */ |
8621 | _ACEOF | |
8622 | cat confdefs.h >>conftest.$ac_ext | |
8623 | cat >>conftest.$ac_ext <<_ACEOF | |
8624 | /* end confdefs.h. */ | |
8625 | ||
7a197a62 AK |
8626 | /* Override any GCC internal prototype to avoid an error. |
8627 | Use char because int might match the return type of a GCC | |
8628 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8629 | #ifdef __cplusplus |
8630 | extern "C" | |
8631 | #endif | |
ad6254c5 AK |
8632 | char dlopen (); |
8633 | int | |
8634 | main () | |
8635 | { | |
7a197a62 | 8636 | return dlopen (); |
ad6254c5 AK |
8637 | ; |
8638 | return 0; | |
8639 | } | |
8640 | _ACEOF | |
8641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8642 | if { (ac_try="$ac_link" |
8643 | case "(($ac_try" in | |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8645 | *) ac_try_echo=$ac_try;; | |
8646 | esac | |
8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8648 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8649 | ac_status=$? |
8a2fc586 AK |
8650 | grep -v '^ *+' conftest.er1 >conftest.err |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
ad6254c5 | 8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8654 | (exit $ac_status); } && { |
8655 | test -z "$ac_c_werror_flag" || | |
8656 | test ! -s conftest.err | |
8657 | } && test -s conftest$ac_exeext && | |
8658 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8659 | ac_cv_lib_dl_dlopen=yes |
8660 | else | |
8661 | echo "$as_me: failed program was:" >&5 | |
8662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8663 | ||
7a197a62 | 8664 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8665 | fi |
7a197a62 AK |
8666 | |
8667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8668 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8669 | LIBS=$ac_check_lib_save_LIBS |
8670 | fi | |
7a197a62 AK |
8671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8672 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8673 | if test $ac_cv_lib_dl_dlopen = yes; then |
8674 | HAVE_LIBDL=yes | |
8675 | else | |
8676 | HAVE_LIBDL=no | |
8677 | fi | |
8678 | ||
8679 | ||
7e9e9502 | 8680 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8681 | |
8682 | cat >>confdefs.h <<\_ACEOF | |
8683 | #define HAVE_LIBDL 1 | |
8684 | _ACEOF | |
8685 | ||
ad6254c5 AK |
8686 | LIBS="-ldl $LIBS" |
8687 | else | |
8688 | HAVE_LIBDL=no | |
8689 | fi | |
8690 | ||
8691 | ################################################################################ | |
8692 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8693 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8694 | \) -a "x$STATIC_LINK" = xyes ]; | |
8695 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8696 | " >&5 | |
8697 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8698 | " >&2;} | |
8699 | { (exit 1); exit 1; }; } | |
8700 | fi | |
8701 | ||
8702 | ################################################################################ | |
8703 | if test x$SELINUX = xyes; then | |
7a197a62 AK |
8704 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
8705 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 AK |
8706 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
8707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8708 | else | |
8709 | ac_check_lib_save_LIBS=$LIBS | |
8710 | LIBS="-lsepol $LIBS" | |
8711 | cat >conftest.$ac_ext <<_ACEOF | |
8712 | /* confdefs.h. */ | |
8713 | _ACEOF | |
8714 | cat confdefs.h >>conftest.$ac_ext | |
8715 | cat >>conftest.$ac_ext <<_ACEOF | |
8716 | /* end confdefs.h. */ | |
8717 | ||
7a197a62 AK |
8718 | /* Override any GCC internal prototype to avoid an error. |
8719 | Use char because int might match the return type of a GCC | |
8720 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
8721 | #ifdef __cplusplus |
8722 | extern "C" | |
8723 | #endif | |
8a2fc586 AK |
8724 | char sepol_check_context (); |
8725 | int | |
8726 | main () | |
8727 | { | |
7a197a62 | 8728 | return sepol_check_context (); |
8a2fc586 AK |
8729 | ; |
8730 | return 0; | |
8731 | } | |
8732 | _ACEOF | |
8733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8734 | if { (ac_try="$ac_link" |
8735 | case "(($ac_try" in | |
8736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8737 | *) ac_try_echo=$ac_try;; | |
8738 | esac | |
8739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8740 | (eval "$ac_link") 2>conftest.er1 | |
8a2fc586 AK |
8741 | ac_status=$? |
8742 | grep -v '^ *+' conftest.er1 >conftest.err | |
8743 | rm -f conftest.er1 | |
8744 | cat conftest.err >&5 | |
8745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
8746 | (exit $ac_status); } && { |
8747 | test -z "$ac_c_werror_flag" || | |
8748 | test ! -s conftest.err | |
8749 | } && test -s conftest$ac_exeext && | |
8750 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
8751 | ac_cv_lib_sepol_sepol_check_context=yes |
8752 | else | |
8753 | echo "$as_me: failed program was:" >&5 | |
8754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8755 | ||
7a197a62 | 8756 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 8757 | fi |
7a197a62 AK |
8758 | |
8759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 AK |
8760 | conftest$ac_exeext conftest.$ac_ext |
8761 | LIBS=$ac_check_lib_save_LIBS | |
8762 | fi | |
7a197a62 AK |
8763 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
8764 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
8765 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
8766 | HAVE_SEPOL=yes | |
8767 | else | |
8768 | HAVE_SEPOL=no | |
8769 | fi | |
8770 | ||
8a2fc586 AK |
8771 | |
8772 | if test x$HAVE_SEPOL = xyes; then | |
8773 | LIBS="-lsepol $LIBS" | |
8774 | fi | |
8775 | ||
7a197a62 AK |
8776 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
8777 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 AK |
8778 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
8779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8780 | else | |
8781 | ac_check_lib_save_LIBS=$LIBS | |
8782 | LIBS="-lselinux $LIBS" | |
8783 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8784 | /* confdefs.h. */ |
8785 | _ACEOF | |
8786 | cat confdefs.h >>conftest.$ac_ext | |
8787 | cat >>conftest.$ac_ext <<_ACEOF | |
8788 | /* end confdefs.h. */ | |
8789 | ||
7a197a62 AK |
8790 | /* Override any GCC internal prototype to avoid an error. |
8791 | Use char because int might match the return type of a GCC | |
8792 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8793 | #ifdef __cplusplus |
8794 | extern "C" | |
8795 | #endif | |
ad6254c5 AK |
8796 | char is_selinux_enabled (); |
8797 | int | |
8798 | main () | |
8799 | { | |
7a197a62 | 8800 | return is_selinux_enabled (); |
ad6254c5 AK |
8801 | ; |
8802 | return 0; | |
8803 | } | |
8804 | _ACEOF | |
8805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8806 | if { (ac_try="$ac_link" |
8807 | case "(($ac_try" in | |
8808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8809 | *) ac_try_echo=$ac_try;; | |
8810 | esac | |
8811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8812 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 8813 | ac_status=$? |
8a2fc586 AK |
8814 | grep -v '^ *+' conftest.er1 >conftest.err |
8815 | rm -f conftest.er1 | |
8816 | cat conftest.err >&5 | |
ad6254c5 | 8817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8818 | (exit $ac_status); } && { |
8819 | test -z "$ac_c_werror_flag" || | |
8820 | test ! -s conftest.err | |
8821 | } && test -s conftest$ac_exeext && | |
8822 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8823 | ac_cv_lib_selinux_is_selinux_enabled=yes |
8824 | else | |
8825 | echo "$as_me: failed program was:" >&5 | |
8826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8827 | ||
7a197a62 | 8828 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 8829 | fi |
7a197a62 AK |
8830 | |
8831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8832 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8833 | LIBS=$ac_check_lib_save_LIBS |
8834 | fi | |
7a197a62 AK |
8835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
8836 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
8837 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
8838 | HAVE_SELINUX=yes | |
8839 | else | |
8840 | HAVE_SELINUX=no | |
8841 | fi | |
8842 | ||
ad6254c5 AK |
8843 | |
8844 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
8845 | |
8846 | cat >>confdefs.h <<\_ACEOF | |
8847 | #define HAVE_SELINUX 1 | |
8848 | _ACEOF | |
8849 | ||
ad6254c5 AK |
8850 | LIBS="-lselinux $LIBS" |
8851 | else | |
8852 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8853 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8854 | fi | |
8855 | fi | |
8856 | ||
8b1a3214 AK |
8857 | ################################################################################ |
8858 | if test x$REALTIME = xyes; then | |
7a197a62 AK |
8859 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
8860 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 AK |
8861 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
8862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8863 | else | |
8864 | ac_check_lib_save_LIBS=$LIBS | |
8865 | LIBS="-lrt $LIBS" | |
8866 | cat >conftest.$ac_ext <<_ACEOF | |
8867 | /* confdefs.h. */ | |
8868 | _ACEOF | |
8869 | cat confdefs.h >>conftest.$ac_ext | |
8870 | cat >>conftest.$ac_ext <<_ACEOF | |
8871 | /* end confdefs.h. */ | |
8872 | ||
7a197a62 AK |
8873 | /* Override any GCC internal prototype to avoid an error. |
8874 | Use char because int might match the return type of a GCC | |
8875 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
8876 | #ifdef __cplusplus |
8877 | extern "C" | |
8878 | #endif | |
8b1a3214 AK |
8879 | char clock_gettime (); |
8880 | int | |
8881 | main () | |
8882 | { | |
7a197a62 | 8883 | return clock_gettime (); |
8b1a3214 AK |
8884 | ; |
8885 | return 0; | |
8886 | } | |
8887 | _ACEOF | |
8888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8889 | if { (ac_try="$ac_link" |
8890 | case "(($ac_try" in | |
8891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8892 | *) ac_try_echo=$ac_try;; | |
8893 | esac | |
8894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8895 | (eval "$ac_link") 2>conftest.er1 | |
8b1a3214 AK |
8896 | ac_status=$? |
8897 | grep -v '^ *+' conftest.er1 >conftest.err | |
8898 | rm -f conftest.er1 | |
8899 | cat conftest.err >&5 | |
8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
8901 | (exit $ac_status); } && { |
8902 | test -z "$ac_c_werror_flag" || | |
8903 | test ! -s conftest.err | |
8904 | } && test -s conftest$ac_exeext && | |
8905 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
8906 | ac_cv_lib_rt_clock_gettime=yes |
8907 | else | |
8908 | echo "$as_me: failed program was:" >&5 | |
8909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8910 | ||
7a197a62 | 8911 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 8912 | fi |
7a197a62 AK |
8913 | |
8914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8b1a3214 AK |
8915 | conftest$ac_exeext conftest.$ac_ext |
8916 | LIBS=$ac_check_lib_save_LIBS | |
8917 | fi | |
7a197a62 AK |
8918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
8919 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
8920 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
8921 | HAVE_REALTIME=yes | |
8922 | else | |
8923 | HAVE_REALTIME=no | |
8924 | fi | |
8925 | ||
8b1a3214 AK |
8926 | |
8927 | if test x$HAVE_REALTIME = xyes; then | |
8928 | ||
8929 | cat >>confdefs.h <<\_ACEOF | |
8930 | #define HAVE_REALTIME 1 | |
8931 | _ACEOF | |
8932 | ||
8933 | LIBS="-lrt $LIBS" | |
8934 | else | |
8935 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 | |
8936 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8937 | fi | |
8938 | fi | |
8939 | ||
ad6254c5 AK |
8940 | ################################################################################ |
8941 | ||
8942 | for ac_header in getopt.h | |
8943 | do | |
8944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
8945 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8946 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
8949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8950 | fi | |
7a197a62 AK |
8951 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8952 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8953 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
8954 | else |
8955 | # Is the header compilable? | |
7a197a62 AK |
8956 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 8958 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8959 | /* confdefs.h. */ |
8960 | _ACEOF | |
8961 | cat confdefs.h >>conftest.$ac_ext | |
8962 | cat >>conftest.$ac_ext <<_ACEOF | |
8963 | /* end confdefs.h. */ | |
8964 | $ac_includes_default | |
8965 | #include <$ac_header> | |
8966 | _ACEOF | |
8967 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8968 | if { (ac_try="$ac_compile" |
8969 | case "(($ac_try" in | |
8970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8971 | *) ac_try_echo=$ac_try;; | |
8972 | esac | |
8973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8974 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 8975 | ac_status=$? |
8a2fc586 AK |
8976 | grep -v '^ *+' conftest.er1 >conftest.err |
8977 | rm -f conftest.er1 | |
8978 | cat conftest.err >&5 | |
ad6254c5 | 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8980 | (exit $ac_status); } && { |
8981 | test -z "$ac_c_werror_flag" || | |
8982 | test ! -s conftest.err | |
8983 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8984 | ac_header_compiler=yes |
8985 | else | |
8986 | echo "$as_me: failed program was:" >&5 | |
8987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8988 | ||
7a197a62 | 8989 | ac_header_compiler=no |
ad6254c5 | 8990 | fi |
7a197a62 AK |
8991 | |
8992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8993 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8994 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8995 | |
8996 | # Is the header present? | |
7a197a62 AK |
8997 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 8999 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9000 | /* confdefs.h. */ |
9001 | _ACEOF | |
9002 | cat confdefs.h >>conftest.$ac_ext | |
9003 | cat >>conftest.$ac_ext <<_ACEOF | |
9004 | /* end confdefs.h. */ | |
9005 | #include <$ac_header> | |
9006 | _ACEOF | |
7a197a62 AK |
9007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9008 | case "(($ac_try" in | |
9009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9010 | *) ac_try_echo=$ac_try;; | |
9011 | esac | |
9012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9013 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
9014 | ac_status=$? |
9015 | grep -v '^ *+' conftest.er1 >conftest.err | |
9016 | rm -f conftest.er1 | |
9017 | cat conftest.err >&5 | |
9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
9019 | (exit $ac_status); } >/dev/null && { |
9020 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9021 | test ! -s conftest.err | |
9022 | }; then | |
ad6254c5 AK |
9023 | ac_header_preproc=yes |
9024 | else | |
9025 | echo "$as_me: failed program was:" >&5 | |
9026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9027 | ||
9028 | ac_header_preproc=no | |
9029 | fi | |
7a197a62 | 9030 | |
ad6254c5 | 9031 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
9032 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9033 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9034 | |
9035 | # So? What about this header? | |
8a2fc586 AK |
9036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9037 | yes:no: ) | |
ad6254c5 AK |
9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9042 | ac_header_preproc=yes | |
ad6254c5 | 9043 | ;; |
8a2fc586 | 9044 | no:yes:* ) |
ad6254c5 AK |
9045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9057 | |
ad6254c5 AK |
9058 | ;; |
9059 | esac | |
7a197a62 AK |
9060 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9064 | else | |
8a2fc586 | 9065 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9066 | fi |
7a197a62 AK |
9067 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9068 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9069 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9070 | |
9071 | fi | |
9072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9073 | cat >>confdefs.h <<_ACEOF | |
9074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9075 | _ACEOF | |
72b2cb61 AK |
9076 | |
9077 | cat >>confdefs.h <<\_ACEOF | |
9078 | #define HAVE_GETOPTLONG 1 | |
9079 | _ACEOF | |
9080 | ||
ad6254c5 AK |
9081 | fi |
9082 | ||
9083 | done | |
9084 | ||
9085 | ||
9086 | ################################################################################ | |
9087 | if test x$READLINE = xyes; then | |
9088 | ||
7a197a62 AK |
9089 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9090 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 AK |
9091 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
9092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9093 | else | |
9094 | ac_check_lib_save_LIBS=$LIBS | |
9095 | LIBS="-lreadline $LIBS" | |
9096 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9097 | /* confdefs.h. */ |
9098 | _ACEOF | |
9099 | cat confdefs.h >>conftest.$ac_ext | |
9100 | cat >>conftest.$ac_ext <<_ACEOF | |
9101 | /* end confdefs.h. */ | |
9102 | ||
7a197a62 AK |
9103 | /* Override any GCC internal prototype to avoid an error. |
9104 | Use char because int might match the return type of a GCC | |
9105 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9106 | #ifdef __cplusplus |
9107 | extern "C" | |
9108 | #endif | |
ad6254c5 AK |
9109 | char readline (); |
9110 | int | |
9111 | main () | |
9112 | { | |
7a197a62 | 9113 | return readline (); |
ad6254c5 AK |
9114 | ; |
9115 | return 0; | |
9116 | } | |
9117 | _ACEOF | |
9118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9119 | if { (ac_try="$ac_link" |
9120 | case "(($ac_try" in | |
9121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9122 | *) ac_try_echo=$ac_try;; | |
9123 | esac | |
9124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9125 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 9126 | ac_status=$? |
8a2fc586 AK |
9127 | grep -v '^ *+' conftest.er1 >conftest.err |
9128 | rm -f conftest.er1 | |
9129 | cat conftest.err >&5 | |
ad6254c5 | 9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9131 | (exit $ac_status); } && { |
9132 | test -z "$ac_c_werror_flag" || | |
9133 | test ! -s conftest.err | |
9134 | } && test -s conftest$ac_exeext && | |
9135 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9136 | ac_cv_lib_readline_readline=yes |
9137 | else | |
9138 | echo "$as_me: failed program was:" >&5 | |
9139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9140 | ||
7a197a62 | 9141 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9142 | fi |
7a197a62 AK |
9143 | |
9144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 9145 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9146 | LIBS=$ac_check_lib_save_LIBS |
9147 | fi | |
7a197a62 AK |
9148 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9149 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
9150 | if test $ac_cv_lib_readline_readline = yes; then |
9151 | cat >>confdefs.h <<_ACEOF | |
9152 | #define HAVE_LIBREADLINE 1 | |
9153 | _ACEOF | |
9154 | ||
9155 | LIBS="-lreadline $LIBS" | |
9156 | ||
9157 | else | |
9158 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
9159 | --enable-readline option (which is enabled by default). Either disable readline | |
9160 | support with --disable-readline or download and install readline from: | |
9161 | ftp.gnu.org/gnu/readline | |
9162 | Note: if you are using precompiled packages you will also need the development | |
9163 | package as well (which may be called readline-devel or something similar). | |
9164 | " >&5 | |
9165 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
9166 | --enable-readline option (which is enabled by default). Either disable readline | |
9167 | support with --disable-readline or download and install readline from: | |
9168 | ftp.gnu.org/gnu/readline | |
9169 | Note: if you are using precompiled packages you will also need the development | |
9170 | package as well (which may be called readline-devel or something similar). | |
9171 | " >&2;} | |
9172 | { (exit 1); exit 1; }; } | |
9173 | ||
9174 | fi | |
9175 | ||
7a197a62 AK |
9176 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
9177 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } | |
ad6254c5 AK |
9178 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9180 | else | |
9181 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9182 | /* confdefs.h. */ |
9183 | _ACEOF | |
9184 | cat confdefs.h >>conftest.$ac_ext | |
9185 | cat >>conftest.$ac_ext <<_ACEOF | |
9186 | /* end confdefs.h. */ | |
8a2fc586 AK |
9187 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9188 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9189 | #define rl_completion_matches innocuous_rl_completion_matches | |
9190 | ||
ad6254c5 AK |
9191 | /* System header to define __stub macros and hopefully few prototypes, |
9192 | which can conflict with char rl_completion_matches (); below. | |
9193 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9194 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9195 | |
ad6254c5 AK |
9196 | #ifdef __STDC__ |
9197 | # include <limits.h> | |
9198 | #else | |
9199 | # include <assert.h> | |
9200 | #endif | |
8a2fc586 AK |
9201 | |
9202 | #undef rl_completion_matches | |
9203 | ||
7a197a62 AK |
9204 | /* Override any GCC internal prototype to avoid an error. |
9205 | Use char because int might match the return type of a GCC | |
9206 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9207 | #ifdef __cplusplus |
9208 | extern "C" | |
ad6254c5 | 9209 | #endif |
ad6254c5 AK |
9210 | char rl_completion_matches (); |
9211 | /* The GNU C library defines this for functions which it implements | |
9212 | to always fail with ENOSYS. Some functions are actually named | |
9213 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9214 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9215 | choke me |
ad6254c5 AK |
9216 | #endif |
9217 | ||
9218 | int | |
9219 | main () | |
9220 | { | |
7a197a62 | 9221 | return rl_completion_matches (); |
ad6254c5 AK |
9222 | ; |
9223 | return 0; | |
9224 | } | |
9225 | _ACEOF | |
9226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9227 | if { (ac_try="$ac_link" |
9228 | case "(($ac_try" in | |
9229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9230 | *) ac_try_echo=$ac_try;; | |
9231 | esac | |
9232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9233 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 9234 | ac_status=$? |
8a2fc586 AK |
9235 | grep -v '^ *+' conftest.er1 >conftest.err |
9236 | rm -f conftest.er1 | |
9237 | cat conftest.err >&5 | |
ad6254c5 | 9238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9239 | (exit $ac_status); } && { |
9240 | test -z "$ac_c_werror_flag" || | |
9241 | test ! -s conftest.err | |
9242 | } && test -s conftest$ac_exeext && | |
9243 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9244 | ac_cv_func_rl_completion_matches=yes |
9245 | else | |
9246 | echo "$as_me: failed program was:" >&5 | |
9247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9248 | ||
7a197a62 | 9249 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9250 | fi |
7a197a62 AK |
9251 | |
9252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 9253 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9254 | fi |
7a197a62 AK |
9255 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9256 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9257 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9258 | |
72b2cb61 AK |
9259 | cat >>confdefs.h <<\_ACEOF |
9260 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9261 | _ACEOF | |
9262 | ||
9263 | fi | |
ad6254c5 AK |
9264 | |
9265 | fi | |
9266 | ||
9267 | ################################################################################ | |
7a197a62 AK |
9268 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9269 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
9270 | # Check whether --enable-nls was given. | |
ad6254c5 | 9271 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9272 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9273 | else |
9274 | INTL=no | |
7a197a62 AK |
9275 | fi |
9276 | ||
9277 | { echo "$as_me:$LINENO: result: $INTL" >&5 | |
9278 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9279 | |
9280 | if test x$INTL = xyes; then | |
9281 | INTL_PACKAGE="lvm2" | |
9282 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9283 | set dummy msgfmt; ac_word=$2 | |
7a197a62 AK |
9284 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 AK |
9286 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9288 | else | |
9289 | case $MSGFMT in | |
9290 | [\\/]* | ?:[\\/]*) | |
9291 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9292 | ;; | |
9293 | *) | |
9294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9295 | for as_dir in $PATH | |
9296 | do | |
9297 | IFS=$as_save_IFS | |
9298 | test -z "$as_dir" && as_dir=. | |
9299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 9300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
9301 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
9302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9303 | break 2 | |
9304 | fi | |
9305 | done | |
9306 | done | |
7a197a62 | 9307 | IFS=$as_save_IFS |
ad6254c5 AK |
9308 | |
9309 | ;; | |
9310 | esac | |
9311 | fi | |
9312 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9313 | if test -n "$MSGFMT"; then |
7a197a62 AK |
9314 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9315 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9316 | else |
7a197a62 AK |
9317 | { echo "$as_me:$LINENO: result: no" >&5 |
9318 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9319 | fi |
9320 | ||
7a197a62 | 9321 | |
ad6254c5 AK |
9322 | if [ "x$MSGFMT" == x ]; |
9323 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
9324 | " >&5 | |
9325 | echo "$as_me: error: msgfmt not found in path $PATH | |
9326 | " >&2;} | |
9327 | { (exit 1); exit 1; }; } | |
9328 | fi; | |
9329 | ||
9330 | ||
7a197a62 | 9331 | # Check whether --with-localedir was given. |
ad6254c5 | 9332 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9333 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9334 | else |
9335 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9336 | fi |
9337 | ||
ad6254c5 AK |
9338 | fi |
9339 | ||
9340 | ################################################################################ | |
9341 | ||
7a197a62 | 9342 | # Check whether --with-confdir was given. |
ad6254c5 | 9343 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9344 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9345 | else |
9346 | CONFDIR='/etc' | |
7a197a62 AK |
9347 | fi |
9348 | ||
ad6254c5 AK |
9349 | |
9350 | ||
7a197a62 | 9351 | # Check whether --with-staticdir was given. |
ad6254c5 | 9352 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9353 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9354 | else |
9355 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9356 | fi |
ad6254c5 | 9357 | |
33f732c5 | 9358 | |
7a197a62 AK |
9359 | |
9360 | # Check whether --with-dmdir was given. | |
33f732c5 | 9361 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9362 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9363 | else |
9364 | DMDIR= | |
7a197a62 AK |
9365 | fi |
9366 | ||
33f732c5 | 9367 | |
ad6254c5 AK |
9368 | ################################################################################ |
9369 | if test x$READLINE = xyes; then | |
9370 | ||
9371 | ||
9372 | for ac_header in readline/readline.h readline/history.h | |
9373 | do | |
9374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
9375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9380 | fi | |
7a197a62 AK |
9381 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9382 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9383 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9384 | else |
9385 | # Is the header compilable? | |
7a197a62 AK |
9386 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9387 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9388 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9389 | /* confdefs.h. */ |
9390 | _ACEOF | |
9391 | cat confdefs.h >>conftest.$ac_ext | |
9392 | cat >>conftest.$ac_ext <<_ACEOF | |
9393 | /* end confdefs.h. */ | |
9394 | $ac_includes_default | |
9395 | #include <$ac_header> | |
9396 | _ACEOF | |
9397 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9398 | if { (ac_try="$ac_compile" |
9399 | case "(($ac_try" in | |
9400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9401 | *) ac_try_echo=$ac_try;; | |
9402 | esac | |
9403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9404 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 9405 | ac_status=$? |
8a2fc586 AK |
9406 | grep -v '^ *+' conftest.er1 >conftest.err |
9407 | rm -f conftest.er1 | |
9408 | cat conftest.err >&5 | |
ad6254c5 | 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9410 | (exit $ac_status); } && { |
9411 | test -z "$ac_c_werror_flag" || | |
9412 | test ! -s conftest.err | |
9413 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9414 | ac_header_compiler=yes |
9415 | else | |
9416 | echo "$as_me: failed program was:" >&5 | |
9417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9418 | ||
7a197a62 | 9419 | ac_header_compiler=no |
ad6254c5 | 9420 | fi |
7a197a62 AK |
9421 | |
9422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9423 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9424 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9425 | |
9426 | # Is the header present? | |
7a197a62 AK |
9427 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9428 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9429 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9430 | /* confdefs.h. */ |
9431 | _ACEOF | |
9432 | cat confdefs.h >>conftest.$ac_ext | |
9433 | cat >>conftest.$ac_ext <<_ACEOF | |
9434 | /* end confdefs.h. */ | |
9435 | #include <$ac_header> | |
9436 | _ACEOF | |
7a197a62 AK |
9437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9438 | case "(($ac_try" in | |
9439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9440 | *) ac_try_echo=$ac_try;; | |
9441 | esac | |
9442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
9444 | ac_status=$? |
9445 | grep -v '^ *+' conftest.er1 >conftest.err | |
9446 | rm -f conftest.er1 | |
9447 | cat conftest.err >&5 | |
9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
9449 | (exit $ac_status); } >/dev/null && { |
9450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9451 | test ! -s conftest.err | |
9452 | }; then | |
ad6254c5 AK |
9453 | ac_header_preproc=yes |
9454 | else | |
9455 | echo "$as_me: failed program was:" >&5 | |
9456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9457 | ||
9458 | ac_header_preproc=no | |
9459 | fi | |
7a197a62 | 9460 | |
ad6254c5 | 9461 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
9462 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9463 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9464 | |
9465 | # So? What about this header? | |
8a2fc586 AK |
9466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9467 | yes:no: ) | |
ad6254c5 AK |
9468 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9469 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9471 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9472 | ac_header_preproc=yes | |
ad6254c5 | 9473 | ;; |
8a2fc586 | 9474 | no:yes:* ) |
ad6254c5 AK |
9475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9479 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9480 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9481 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9482 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9485 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9486 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9487 | |
ad6254c5 AK |
9488 | ;; |
9489 | esac | |
7a197a62 AK |
9490 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9492 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9494 | else | |
8a2fc586 | 9495 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9496 | fi |
7a197a62 AK |
9497 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9498 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9499 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9500 | |
9501 | fi | |
9502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9503 | cat >>confdefs.h <<_ACEOF | |
9504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9505 | _ACEOF | |
9506 | ||
9507 | else | |
9508 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9509 | echo "$as_me: error: bailing out" >&2;} | |
9510 | { (exit 1); exit 1; }; } | |
9511 | fi | |
9512 | ||
9513 | done | |
9514 | ||
9515 | fi | |
9516 | ||
5c7fc7c4 | 9517 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9518 | |
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
9529 | do | |
9530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
9531 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9532 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9534 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9536 | fi | |
7a197a62 AK |
9537 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9538 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9539 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9540 | else |
9541 | # Is the header compilable? | |
7a197a62 AK |
9542 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9544 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9545 | /* confdefs.h. */ |
9546 | _ACEOF | |
9547 | cat confdefs.h >>conftest.$ac_ext | |
9548 | cat >>conftest.$ac_ext <<_ACEOF | |
9549 | /* end confdefs.h. */ | |
9550 | $ac_includes_default | |
9551 | #include <$ac_header> | |
9552 | _ACEOF | |
9553 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9554 | if { (ac_try="$ac_compile" |
9555 | case "(($ac_try" in | |
9556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9557 | *) ac_try_echo=$ac_try;; | |
9558 | esac | |
9559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9560 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 9561 | ac_status=$? |
8a2fc586 AK |
9562 | grep -v '^ *+' conftest.er1 >conftest.err |
9563 | rm -f conftest.er1 | |
9564 | cat conftest.err >&5 | |
ad6254c5 | 9565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9566 | (exit $ac_status); } && { |
9567 | test -z "$ac_c_werror_flag" || | |
9568 | test ! -s conftest.err | |
9569 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9570 | ac_header_compiler=yes |
9571 | else | |
9572 | echo "$as_me: failed program was:" >&5 | |
9573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9574 | ||
7a197a62 | 9575 | ac_header_compiler=no |
ad6254c5 | 9576 | fi |
7a197a62 AK |
9577 | |
9578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9579 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9580 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9581 | |
9582 | # Is the header present? | |
7a197a62 AK |
9583 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9584 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9585 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9586 | /* confdefs.h. */ |
9587 | _ACEOF | |
9588 | cat confdefs.h >>conftest.$ac_ext | |
9589 | cat >>conftest.$ac_ext <<_ACEOF | |
9590 | /* end confdefs.h. */ | |
9591 | #include <$ac_header> | |
9592 | _ACEOF | |
7a197a62 AK |
9593 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9594 | case "(($ac_try" in | |
9595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9596 | *) ac_try_echo=$ac_try;; | |
9597 | esac | |
9598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9599 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
9600 | ac_status=$? |
9601 | grep -v '^ *+' conftest.er1 >conftest.err | |
9602 | rm -f conftest.er1 | |
9603 | cat conftest.err >&5 | |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
9605 | (exit $ac_status); } >/dev/null && { |
9606 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9607 | test ! -s conftest.err | |
9608 | }; then | |
ad6254c5 AK |
9609 | ac_header_preproc=yes |
9610 | else | |
9611 | echo "$as_me: failed program was:" >&5 | |
9612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9613 | ||
9614 | ac_header_preproc=no | |
9615 | fi | |
7a197a62 | 9616 | |
ad6254c5 | 9617 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
9618 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9619 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9620 | |
9621 | # So? What about this header? | |
8a2fc586 AK |
9622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9623 | yes:no: ) | |
ad6254c5 AK |
9624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9628 | ac_header_preproc=yes | |
ad6254c5 | 9629 | ;; |
8a2fc586 | 9630 | no:yes:* ) |
ad6254c5 AK |
9631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9643 | |
ad6254c5 AK |
9644 | ;; |
9645 | esac | |
7a197a62 AK |
9646 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9650 | else | |
8a2fc586 | 9651 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9652 | fi |
7a197a62 AK |
9653 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9654 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9655 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9656 | |
9657 | fi | |
9658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9659 | cat >>confdefs.h <<_ACEOF | |
9660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9661 | _ACEOF | |
9662 | ||
9663 | else | |
9664 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9665 | echo "$as_me: error: bailing out" >&2;} | |
9666 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
9667 | fi |
9668 | ||
ad6254c5 AK |
9669 | done |
9670 | ||
9671 | ||
795ca3e5 | 9672 | |
8106cdd5 | 9673 | |
ad6254c5 AK |
9674 | |
9675 | ||
9676 | for ac_func in dup2 getmntent memmove select socket | |
9677 | do | |
9678 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
9679 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9680 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9681 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 9683 | else |
ad6254c5 | 9684 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9685 | /* confdefs.h. */ |
9686 | _ACEOF | |
9687 | cat confdefs.h >>conftest.$ac_ext | |
9688 | cat >>conftest.$ac_ext <<_ACEOF | |
9689 | /* end confdefs.h. */ | |
8a2fc586 AK |
9690 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9692 | #define $ac_func innocuous_$ac_func | |
9693 | ||
795ca3e5 | 9694 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9695 | which can conflict with char $ac_func (); below. |
9696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9697 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9698 | |
ad6254c5 AK |
9699 | #ifdef __STDC__ |
9700 | # include <limits.h> | |
9701 | #else | |
9702 | # include <assert.h> | |
9703 | #endif | |
8a2fc586 AK |
9704 | |
9705 | #undef $ac_func | |
9706 | ||
7a197a62 AK |
9707 | /* Override any GCC internal prototype to avoid an error. |
9708 | Use char because int might match the return type of a GCC | |
9709 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9710 | #ifdef __cplusplus |
9711 | extern "C" | |
ad6254c5 | 9712 | #endif |
ad6254c5 | 9713 | char $ac_func (); |
795ca3e5 AK |
9714 | /* The GNU C library defines this for functions which it implements |
9715 | to always fail with ENOSYS. Some functions are actually named | |
9716 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9717 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 9718 | choke me |
795ca3e5 AK |
9719 | #endif |
9720 | ||
ad6254c5 AK |
9721 | int |
9722 | main () | |
9723 | { | |
7a197a62 | 9724 | return $ac_func (); |
ad6254c5 AK |
9725 | ; |
9726 | return 0; | |
9727 | } | |
9728 | _ACEOF | |
9729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9730 | if { (ac_try="$ac_link" |
9731 | case "(($ac_try" in | |
9732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9733 | *) ac_try_echo=$ac_try;; | |
9734 | esac | |
9735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9736 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 9737 | ac_status=$? |
8a2fc586 AK |
9738 | grep -v '^ *+' conftest.er1 >conftest.err |
9739 | rm -f conftest.er1 | |
9740 | cat conftest.err >&5 | |
ad6254c5 | 9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9742 | (exit $ac_status); } && { |
9743 | test -z "$ac_c_werror_flag" || | |
9744 | test ! -s conftest.err | |
9745 | } && test -s conftest$ac_exeext && | |
9746 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 9747 | eval "$as_ac_var=yes" |
795ca3e5 | 9748 | else |
ad6254c5 AK |
9749 | echo "$as_me: failed program was:" >&5 |
9750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9751 | ||
7a197a62 | 9752 | eval "$as_ac_var=no" |
80992638 | 9753 | fi |
7a197a62 AK |
9754 | |
9755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 9756 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 9757 | fi |
7a197a62 AK |
9758 | ac_res=`eval echo '${'$as_ac_var'}'` |
9759 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9760 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9761 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9762 | cat >>confdefs.h <<_ACEOF | |
9763 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9764 | _ACEOF | |
80992638 AK |
9765 | |
9766 | else | |
ad6254c5 AK |
9767 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9768 | echo "$as_me: error: bailing out" >&2;} | |
9769 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9770 | fi |
ad6254c5 | 9771 | done |
795ca3e5 | 9772 | |
7a197a62 AK |
9773 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9774 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9775 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 | |
9776 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
9777 | if test "${ac_cv_search_getmntent+set}" = set; then | |
ad6254c5 AK |
9778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9779 | else | |
7a197a62 | 9780 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 9781 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9782 | /* confdefs.h. */ |
9783 | _ACEOF | |
9784 | cat confdefs.h >>conftest.$ac_ext | |
9785 | cat >>conftest.$ac_ext <<_ACEOF | |
9786 | /* end confdefs.h. */ | |
80992638 | 9787 | |
7a197a62 AK |
9788 | /* Override any GCC internal prototype to avoid an error. |
9789 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9790 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9791 | #ifdef __cplusplus |
9792 | extern "C" | |
9793 | #endif | |
ad6254c5 AK |
9794 | char getmntent (); |
9795 | int | |
9796 | main () | |
9797 | { | |
7a197a62 | 9798 | return getmntent (); |
ad6254c5 AK |
9799 | ; |
9800 | return 0; | |
9801 | } | |
9802 | _ACEOF | |
7a197a62 AK |
9803 | for ac_lib in '' sun seq gen; do |
9804 | if test -z "$ac_lib"; then | |
9805 | ac_res="none required" | |
9806 | else | |
9807 | ac_res=-l$ac_lib | |
9808 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9809 | fi | |
9810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9811 | if { (ac_try="$ac_link" | |
9812 | case "(($ac_try" in | |
9813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9814 | *) ac_try_echo=$ac_try;; | |
9815 | esac | |
9816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9817 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 9818 | ac_status=$? |
8a2fc586 AK |
9819 | grep -v '^ *+' conftest.er1 >conftest.err |
9820 | rm -f conftest.er1 | |
9821 | cat conftest.err >&5 | |
ad6254c5 | 9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9823 | (exit $ac_status); } && { |
9824 | test -z "$ac_c_werror_flag" || | |
9825 | test ! -s conftest.err | |
9826 | } && test -s conftest$ac_exeext && | |
9827 | $as_test_x conftest$ac_exeext; then | |
9828 | ac_cv_search_getmntent=$ac_res | |
80992638 | 9829 | else |
ad6254c5 AK |
9830 | echo "$as_me: failed program was:" >&5 |
9831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9832 | ||
795ca3e5 AK |
9833 | |
9834 | fi | |
9835 | ||
7a197a62 AK |
9836 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9837 | conftest$ac_exeext | |
9838 | if test "${ac_cv_search_getmntent+set}" = set; then | |
9839 | break | |
ad6254c5 | 9840 | fi |
7a197a62 AK |
9841 | done |
9842 | if test "${ac_cv_search_getmntent+set}" = set; then | |
9843 | : | |
795ca3e5 | 9844 | else |
7a197a62 | 9845 | ac_cv_search_getmntent=no |
795ca3e5 | 9846 | fi |
7a197a62 AK |
9847 | rm conftest.$ac_ext |
9848 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 9849 | fi |
7a197a62 AK |
9850 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
9851 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
9852 | ac_res=$ac_cv_search_getmntent | |
9853 | if test "$ac_res" != no; then | |
9854 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9855 | ac_cv_func_getmntent=yes | |
9856 | ||
9857 | cat >>confdefs.h <<\_ACEOF | |
9858 | #define HAVE_GETMNTENT | |
ad6254c5 | 9859 | _ACEOF |
795ca3e5 | 9860 | |
7a197a62 AK |
9861 | else |
9862 | ac_cv_func_getmntent=no | |
795ca3e5 | 9863 | fi |
795ca3e5 AK |
9864 | |
9865 | ||
ad6254c5 AK |
9866 | # AC_FUNC_REALLOC |
9867 | ||
9868 | ||
9869 | for ac_header in sys/select.h sys/socket.h | |
9870 | do | |
9871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
9872 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9873 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9875 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9877 | fi | |
7a197a62 AK |
9878 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9879 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9880 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 9881 | else |
ad6254c5 | 9882 | # Is the header compilable? |
7a197a62 AK |
9883 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9885 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9886 | /* confdefs.h. */ |
9887 | _ACEOF | |
9888 | cat confdefs.h >>conftest.$ac_ext | |
9889 | cat >>conftest.$ac_ext <<_ACEOF | |
9890 | /* end confdefs.h. */ | |
9891 | $ac_includes_default | |
9892 | #include <$ac_header> | |
9893 | _ACEOF | |
9894 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9895 | if { (ac_try="$ac_compile" |
9896 | case "(($ac_try" in | |
9897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9898 | *) ac_try_echo=$ac_try;; | |
9899 | esac | |
9900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9901 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 9902 | ac_status=$? |
8a2fc586 AK |
9903 | grep -v '^ *+' conftest.er1 >conftest.err |
9904 | rm -f conftest.er1 | |
9905 | cat conftest.err >&5 | |
ad6254c5 | 9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9907 | (exit $ac_status); } && { |
9908 | test -z "$ac_c_werror_flag" || | |
9909 | test ! -s conftest.err | |
9910 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 9911 | ac_header_compiler=yes |
80992638 | 9912 | else |
ad6254c5 AK |
9913 | echo "$as_me: failed program was:" >&5 |
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9915 | ||
7a197a62 | 9916 | ac_header_compiler=no |
ad6254c5 | 9917 | fi |
7a197a62 AK |
9918 | |
9919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9920 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9921 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9922 | |
9923 | # Is the header present? | |
7a197a62 AK |
9924 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9925 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9926 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9927 | /* confdefs.h. */ |
9928 | _ACEOF | |
9929 | cat confdefs.h >>conftest.$ac_ext | |
9930 | cat >>conftest.$ac_ext <<_ACEOF | |
9931 | /* end confdefs.h. */ | |
9932 | #include <$ac_header> | |
9933 | _ACEOF | |
7a197a62 AK |
9934 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9935 | case "(($ac_try" in | |
9936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9937 | *) ac_try_echo=$ac_try;; | |
9938 | esac | |
9939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9940 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
9941 | ac_status=$? |
9942 | grep -v '^ *+' conftest.er1 >conftest.err | |
9943 | rm -f conftest.er1 | |
9944 | cat conftest.err >&5 | |
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
9946 | (exit $ac_status); } >/dev/null && { |
9947 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9948 | test ! -s conftest.err | |
9949 | }; then | |
ad6254c5 AK |
9950 | ac_header_preproc=yes |
9951 | else | |
9952 | echo "$as_me: failed program was:" >&5 | |
9953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9954 | ||
9955 | ac_header_preproc=no | |
9956 | fi | |
7a197a62 | 9957 | |
ad6254c5 | 9958 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
9959 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9960 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9961 | |
9962 | # So? What about this header? | |
8a2fc586 AK |
9963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9964 | yes:no: ) | |
ad6254c5 AK |
9965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9969 | ac_header_preproc=yes | |
ad6254c5 | 9970 | ;; |
8a2fc586 | 9971 | no:yes:* ) |
ad6254c5 AK |
9972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9984 | |
ad6254c5 AK |
9985 | ;; |
9986 | esac | |
7a197a62 AK |
9987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
9990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9991 | else | |
8a2fc586 | 9992 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9993 | fi |
7a197a62 AK |
9994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9996 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 9997 | |
795ca3e5 | 9998 | fi |
ad6254c5 AK |
9999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10000 | cat >>confdefs.h <<_ACEOF | |
10001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10002 | _ACEOF | |
10003 | ||
795ca3e5 AK |
10004 | fi |
10005 | ||
ad6254c5 AK |
10006 | done |
10007 | ||
7a197a62 AK |
10008 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10009 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 AK |
10010 | if test "${ac_cv_func_select_args+set}" = set; then |
10011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 10012 | else |
ad6254c5 | 10013 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10014 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10015 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10016 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10017 | /* confdefs.h. */ |
10018 | _ACEOF | |
10019 | cat confdefs.h >>conftest.$ac_ext | |
10020 | cat >>conftest.$ac_ext <<_ACEOF | |
10021 | /* end confdefs.h. */ | |
10022 | $ac_includes_default | |
7a197a62 | 10023 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10024 | # include <sys/select.h> |
10025 | #endif | |
7a197a62 | 10026 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10027 | # include <sys/socket.h> |
10028 | #endif | |
10029 | ||
10030 | int | |
10031 | main () | |
10032 | { | |
10033 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10034 | $ac_arg234, $ac_arg234, $ac_arg234, |
10035 | $ac_arg5); | |
ad6254c5 AK |
10036 | ; |
10037 | return 0; | |
10038 | } | |
10039 | _ACEOF | |
10040 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10041 | if { (ac_try="$ac_compile" |
10042 | case "(($ac_try" in | |
10043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10044 | *) ac_try_echo=$ac_try;; | |
10045 | esac | |
10046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10047 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10048 | ac_status=$? |
8a2fc586 AK |
10049 | grep -v '^ *+' conftest.er1 >conftest.err |
10050 | rm -f conftest.er1 | |
10051 | cat conftest.err >&5 | |
ad6254c5 | 10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10053 | (exit $ac_status); } && { |
10054 | test -z "$ac_c_werror_flag" || | |
10055 | test ! -s conftest.err | |
10056 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10057 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10058 | else | |
10059 | echo "$as_me: failed program was:" >&5 | |
10060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10061 | ||
7a197a62 | 10062 | |
ad6254c5 | 10063 | fi |
7a197a62 AK |
10064 | |
10065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10066 | done |
10067 | done | |
10068 | done | |
10069 | # Provide a safe default value. | |
10070 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10071 | ||
26e7f2e0 | 10072 | fi |
7a197a62 AK |
10073 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10074 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10075 | ac_save_IFS=$IFS; IFS=',' |
10076 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10077 | IFS=$ac_save_IFS | |
10078 | shift | |
10079 | ||
10080 | cat >>confdefs.h <<_ACEOF | |
10081 | #define SELECT_TYPE_ARG1 $1 | |
10082 | _ACEOF | |
10083 | ||
10084 | ||
10085 | cat >>confdefs.h <<_ACEOF | |
10086 | #define SELECT_TYPE_ARG234 ($2) | |
10087 | _ACEOF | |
10088 | ||
10089 | ||
10090 | cat >>confdefs.h <<_ACEOF | |
10091 | #define SELECT_TYPE_ARG5 ($3) | |
10092 | _ACEOF | |
10093 | ||
80992638 | 10094 | rm -f conftest* |
80992638 | 10095 | |
8106cdd5 | 10096 | fi |
ad6254c5 AK |
10097 | |
10098 | if test x$FSADM = xyes; then | |
10099 | ||
10100 | ||
10101 | ||
10102 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
10103 | do | |
10104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
10105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10106 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10110 | fi | |
7a197a62 AK |
10111 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10113 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10114 | else |
10115 | # Is the header compilable? | |
7a197a62 AK |
10116 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10117 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10118 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10119 | /* confdefs.h. */ |
10120 | _ACEOF | |
10121 | cat confdefs.h >>conftest.$ac_ext | |
10122 | cat >>conftest.$ac_ext <<_ACEOF | |
10123 | /* end confdefs.h. */ | |
10124 | $ac_includes_default | |
10125 | #include <$ac_header> | |
10126 | _ACEOF | |
10127 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10128 | if { (ac_try="$ac_compile" |
10129 | case "(($ac_try" in | |
10130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10131 | *) ac_try_echo=$ac_try;; | |
10132 | esac | |
10133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10134 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10135 | ac_status=$? |
8a2fc586 AK |
10136 | grep -v '^ *+' conftest.er1 >conftest.err |
10137 | rm -f conftest.er1 | |
10138 | cat conftest.err >&5 | |
ad6254c5 | 10139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10140 | (exit $ac_status); } && { |
10141 | test -z "$ac_c_werror_flag" || | |
10142 | test ! -s conftest.err | |
10143 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10144 | ac_header_compiler=yes |
10145 | else | |
10146 | echo "$as_me: failed program was:" >&5 | |
10147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10148 | ||
7a197a62 | 10149 | ac_header_compiler=no |
ad6254c5 | 10150 | fi |
7a197a62 AK |
10151 | |
10152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10153 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10154 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10155 | |
10156 | # Is the header present? | |
7a197a62 AK |
10157 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10158 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10159 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10160 | /* confdefs.h. */ |
10161 | _ACEOF | |
10162 | cat confdefs.h >>conftest.$ac_ext | |
10163 | cat >>conftest.$ac_ext <<_ACEOF | |
10164 | /* end confdefs.h. */ | |
10165 | #include <$ac_header> | |
10166 | _ACEOF | |
7a197a62 AK |
10167 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10168 | case "(($ac_try" in | |
10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10170 | *) ac_try_echo=$ac_try;; | |
10171 | esac | |
10172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10173 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
10174 | ac_status=$? |
10175 | grep -v '^ *+' conftest.er1 >conftest.err | |
10176 | rm -f conftest.er1 | |
10177 | cat conftest.err >&5 | |
10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
10179 | (exit $ac_status); } >/dev/null && { |
10180 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10181 | test ! -s conftest.err | |
10182 | }; then | |
ad6254c5 AK |
10183 | ac_header_preproc=yes |
10184 | else | |
10185 | echo "$as_me: failed program was:" >&5 | |
10186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10187 | ||
10188 | ac_header_preproc=no | |
10189 | fi | |
7a197a62 | 10190 | |
ad6254c5 | 10191 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
10192 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10193 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10194 | |
10195 | # So? What about this header? | |
8a2fc586 AK |
10196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10197 | yes:no: ) | |
ad6254c5 AK |
10198 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10199 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10201 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10202 | ac_header_preproc=yes | |
ad6254c5 | 10203 | ;; |
8a2fc586 | 10204 | no:yes:* ) |
ad6254c5 AK |
10205 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10206 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10207 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10208 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10209 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10210 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10211 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10212 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10214 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10215 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10216 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10217 | |
ad6254c5 AK |
10218 | ;; |
10219 | esac | |
7a197a62 AK |
10220 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10222 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10224 | else |
8a2fc586 | 10225 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 10226 | fi |
7a197a62 AK |
10227 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10229 | echo "${ECHO_T}$ac_res" >&6; } | |
26e7f2e0 | 10230 | |
ad6254c5 AK |
10231 | fi |
10232 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10233 | cat >>confdefs.h <<_ACEOF | |
10234 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10235 | _ACEOF | |
26e7f2e0 | 10236 | |
d68a82ec | 10237 | else |
ad6254c5 AK |
10238 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10239 | echo "$as_me: error: bailing out" >&2;} | |
10240 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
10241 | fi |
10242 | ||
ad6254c5 | 10243 | done |
036f273a | 10244 | |
ad6254c5 AK |
10245 | |
10246 | for ac_func in memmove | |
10247 | do | |
10248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
10249 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10251 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 10252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
036f273a | 10253 | else |
ad6254c5 | 10254 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10255 | /* confdefs.h. */ |
10256 | _ACEOF | |
10257 | cat confdefs.h >>conftest.$ac_ext | |
10258 | cat >>conftest.$ac_ext <<_ACEOF | |
10259 | /* end confdefs.h. */ | |
8a2fc586 AK |
10260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10262 | #define $ac_func innocuous_$ac_func | |
10263 | ||
ad6254c5 AK |
10264 | /* System header to define __stub macros and hopefully few prototypes, |
10265 | which can conflict with char $ac_func (); below. | |
10266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10267 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10268 | |
ad6254c5 AK |
10269 | #ifdef __STDC__ |
10270 | # include <limits.h> | |
10271 | #else | |
10272 | # include <assert.h> | |
10273 | #endif | |
8a2fc586 AK |
10274 | |
10275 | #undef $ac_func | |
10276 | ||
7a197a62 AK |
10277 | /* Override any GCC internal prototype to avoid an error. |
10278 | Use char because int might match the return type of a GCC | |
10279 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10280 | #ifdef __cplusplus |
10281 | extern "C" | |
ad6254c5 | 10282 | #endif |
ad6254c5 AK |
10283 | char $ac_func (); |
10284 | /* The GNU C library defines this for functions which it implements | |
10285 | to always fail with ENOSYS. Some functions are actually named | |
10286 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10287 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10288 | choke me |
ad6254c5 | 10289 | #endif |
80992638 | 10290 | |
ad6254c5 AK |
10291 | int |
10292 | main () | |
10293 | { | |
7a197a62 | 10294 | return $ac_func (); |
ad6254c5 AK |
10295 | ; |
10296 | return 0; | |
10297 | } | |
10298 | _ACEOF | |
10299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10300 | if { (ac_try="$ac_link" |
10301 | case "(($ac_try" in | |
10302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10303 | *) ac_try_echo=$ac_try;; | |
10304 | esac | |
10305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10306 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 10307 | ac_status=$? |
8a2fc586 AK |
10308 | grep -v '^ *+' conftest.er1 >conftest.err |
10309 | rm -f conftest.er1 | |
10310 | cat conftest.err >&5 | |
ad6254c5 | 10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10312 | (exit $ac_status); } && { |
10313 | test -z "$ac_c_werror_flag" || | |
10314 | test ! -s conftest.err | |
10315 | } && test -s conftest$ac_exeext && | |
10316 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10317 | eval "$as_ac_var=yes" |
036f273a | 10318 | else |
ad6254c5 AK |
10319 | echo "$as_me: failed program was:" >&5 |
10320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10321 | ||
7a197a62 | 10322 | eval "$as_ac_var=no" |
036f273a | 10323 | fi |
7a197a62 AK |
10324 | |
10325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 10326 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10327 | fi |
7a197a62 AK |
10328 | ac_res=`eval echo '${'$as_ac_var'}'` |
10329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10330 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10331 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10332 | cat >>confdefs.h <<_ACEOF | |
10333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10334 | _ACEOF | |
036f273a | 10335 | |
ad6254c5 AK |
10336 | else |
10337 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10338 | echo "$as_me: error: bailing out" >&2;} | |
10339 | { (exit 1); exit 1; }; } | |
10340 | fi | |
10341 | done | |
036f273a | 10342 | |
036f273a | 10343 | fi |
d68a82ec | 10344 | |
ad6254c5 AK |
10345 | if test x$CLUSTER != xnone; then |
10346 | ||
10347 | ||
10348 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10349 | do |
ad6254c5 | 10350 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 AK |
10351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10352 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10356 | fi | |
7a197a62 AK |
10357 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10358 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10359 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10360 | else |
10361 | # Is the header compilable? | |
7a197a62 AK |
10362 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10363 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10364 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10365 | /* confdefs.h. */ |
10366 | _ACEOF | |
10367 | cat confdefs.h >>conftest.$ac_ext | |
10368 | cat >>conftest.$ac_ext <<_ACEOF | |
10369 | /* end confdefs.h. */ | |
10370 | $ac_includes_default | |
10371 | #include <$ac_header> | |
10372 | _ACEOF | |
10373 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10374 | if { (ac_try="$ac_compile" |
10375 | case "(($ac_try" in | |
10376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10377 | *) ac_try_echo=$ac_try;; | |
10378 | esac | |
10379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10380 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10381 | ac_status=$? |
8a2fc586 AK |
10382 | grep -v '^ *+' conftest.er1 >conftest.err |
10383 | rm -f conftest.er1 | |
10384 | cat conftest.err >&5 | |
ad6254c5 | 10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10386 | (exit $ac_status); } && { |
10387 | test -z "$ac_c_werror_flag" || | |
10388 | test ! -s conftest.err | |
10389 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10390 | ac_header_compiler=yes |
10391 | else | |
10392 | echo "$as_me: failed program was:" >&5 | |
10393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10394 | ||
7a197a62 | 10395 | ac_header_compiler=no |
ad6254c5 | 10396 | fi |
7a197a62 AK |
10397 | |
10398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10399 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10400 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10401 | |
10402 | # Is the header present? | |
7a197a62 AK |
10403 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10404 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10405 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10406 | /* confdefs.h. */ |
10407 | _ACEOF | |
10408 | cat confdefs.h >>conftest.$ac_ext | |
10409 | cat >>conftest.$ac_ext <<_ACEOF | |
10410 | /* end confdefs.h. */ | |
10411 | #include <$ac_header> | |
10412 | _ACEOF | |
7a197a62 AK |
10413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10414 | case "(($ac_try" in | |
10415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10416 | *) ac_try_echo=$ac_try;; | |
10417 | esac | |
10418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
10420 | ac_status=$? |
10421 | grep -v '^ *+' conftest.er1 >conftest.err | |
10422 | rm -f conftest.er1 | |
10423 | cat conftest.err >&5 | |
10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
10425 | (exit $ac_status); } >/dev/null && { |
10426 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10427 | test ! -s conftest.err | |
10428 | }; then | |
ad6254c5 AK |
10429 | ac_header_preproc=yes |
10430 | else | |
10431 | echo "$as_me: failed program was:" >&5 | |
10432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10433 | ||
10434 | ac_header_preproc=no | |
10435 | fi | |
7a197a62 | 10436 | |
ad6254c5 | 10437 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
10438 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10439 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10440 | |
10441 | # So? What about this header? | |
8a2fc586 AK |
10442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10443 | yes:no: ) | |
ad6254c5 AK |
10444 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10445 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10447 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10448 | ac_header_preproc=yes | |
ad6254c5 | 10449 | ;; |
8a2fc586 | 10450 | no:yes:* ) |
ad6254c5 AK |
10451 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10452 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10453 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10454 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10455 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10456 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10457 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10458 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10461 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10462 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10463 | |
ad6254c5 AK |
10464 | ;; |
10465 | esac | |
7a197a62 AK |
10466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10470 | else | |
8a2fc586 | 10471 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10472 | fi |
7a197a62 AK |
10473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10475 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10476 | |
10477 | fi | |
10478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10479 | cat >>confdefs.h <<_ACEOF | |
10480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10481 | _ACEOF | |
10482 | ||
80992638 | 10483 | else |
ad6254c5 AK |
10484 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10485 | echo "$as_me: error: bailing out" >&2;} | |
10486 | { (exit 1); exit 1; }; } | |
b896caa1 | 10487 | fi |
ad6254c5 | 10488 | |
b896caa1 AK |
10489 | done |
10490 | ||
10491 | ||
ad6254c5 AK |
10492 | for ac_func in socket |
10493 | do | |
10494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7a197a62 AK |
10495 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10497 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 10498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10499 | else |
ad6254c5 | 10500 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10501 | /* confdefs.h. */ |
10502 | _ACEOF | |
10503 | cat confdefs.h >>conftest.$ac_ext | |
10504 | cat >>conftest.$ac_ext <<_ACEOF | |
10505 | /* end confdefs.h. */ | |
8a2fc586 AK |
10506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10508 | #define $ac_func innocuous_$ac_func | |
10509 | ||
ad6254c5 AK |
10510 | /* System header to define __stub macros and hopefully few prototypes, |
10511 | which can conflict with char $ac_func (); below. | |
10512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10513 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10514 | |
ad6254c5 AK |
10515 | #ifdef __STDC__ |
10516 | # include <limits.h> | |
10517 | #else | |
10518 | # include <assert.h> | |
10519 | #endif | |
8a2fc586 AK |
10520 | |
10521 | #undef $ac_func | |
10522 | ||
7a197a62 AK |
10523 | /* Override any GCC internal prototype to avoid an error. |
10524 | Use char because int might match the return type of a GCC | |
10525 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10526 | #ifdef __cplusplus |
10527 | extern "C" | |
ad6254c5 | 10528 | #endif |
ad6254c5 AK |
10529 | char $ac_func (); |
10530 | /* The GNU C library defines this for functions which it implements | |
10531 | to always fail with ENOSYS. Some functions are actually named | |
10532 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10533 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10534 | choke me |
ad6254c5 AK |
10535 | #endif |
10536 | ||
10537 | int | |
10538 | main () | |
10539 | { | |
7a197a62 | 10540 | return $ac_func (); |
ad6254c5 AK |
10541 | ; |
10542 | return 0; | |
10543 | } | |
10544 | _ACEOF | |
10545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10546 | if { (ac_try="$ac_link" |
10547 | case "(($ac_try" in | |
10548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10549 | *) ac_try_echo=$ac_try;; | |
10550 | esac | |
10551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10552 | (eval "$ac_link") 2>conftest.er1 | |
ad6254c5 | 10553 | ac_status=$? |
8a2fc586 AK |
10554 | grep -v '^ *+' conftest.er1 >conftest.err |
10555 | rm -f conftest.er1 | |
10556 | cat conftest.err >&5 | |
ad6254c5 | 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10558 | (exit $ac_status); } && { |
10559 | test -z "$ac_c_werror_flag" || | |
10560 | test ! -s conftest.err | |
10561 | } && test -s conftest$ac_exeext && | |
10562 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10563 | eval "$as_ac_var=yes" |
10564 | else | |
10565 | echo "$as_me: failed program was:" >&5 | |
10566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10567 | ||
7a197a62 | 10568 | eval "$as_ac_var=no" |
ad6254c5 | 10569 | fi |
7a197a62 AK |
10570 | |
10571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 10572 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10573 | fi |
7a197a62 AK |
10574 | ac_res=`eval echo '${'$as_ac_var'}'` |
10575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10576 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10577 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10578 | cat >>confdefs.h <<_ACEOF | |
10579 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10580 | _ACEOF | |
10581 | ||
10582 | else | |
10583 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10584 | echo "$as_me: error: bailing out" >&2;} | |
10585 | { (exit 1); exit 1; }; } | |
10586 | fi | |
10587 | done | |
10588 | ||
10589 | fi | |
10590 | ||
10591 | if test x$HAVE_LIBDL = xyes; then | |
10592 | ||
10593 | for ac_header in dlfcn.h | |
10594 | do | |
10595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
10596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10597 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10601 | fi | |
7a197a62 AK |
10602 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10603 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10604 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10605 | else |
10606 | # Is the header compilable? | |
7a197a62 AK |
10607 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10608 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10610 | /* confdefs.h. */ |
10611 | _ACEOF | |
10612 | cat confdefs.h >>conftest.$ac_ext | |
10613 | cat >>conftest.$ac_ext <<_ACEOF | |
10614 | /* end confdefs.h. */ | |
10615 | $ac_includes_default | |
10616 | #include <$ac_header> | |
10617 | _ACEOF | |
10618 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10619 | if { (ac_try="$ac_compile" |
10620 | case "(($ac_try" in | |
10621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10622 | *) ac_try_echo=$ac_try;; | |
10623 | esac | |
10624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10625 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10626 | ac_status=$? |
8a2fc586 AK |
10627 | grep -v '^ *+' conftest.er1 >conftest.err |
10628 | rm -f conftest.er1 | |
10629 | cat conftest.err >&5 | |
ad6254c5 | 10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10631 | (exit $ac_status); } && { |
10632 | test -z "$ac_c_werror_flag" || | |
10633 | test ! -s conftest.err | |
10634 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10635 | ac_header_compiler=yes |
10636 | else | |
10637 | echo "$as_me: failed program was:" >&5 | |
10638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10639 | ||
7a197a62 | 10640 | ac_header_compiler=no |
ad6254c5 | 10641 | fi |
7a197a62 AK |
10642 | |
10643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10644 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10645 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10646 | |
10647 | # Is the header present? | |
7a197a62 AK |
10648 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10649 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10650 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10651 | /* confdefs.h. */ |
10652 | _ACEOF | |
10653 | cat confdefs.h >>conftest.$ac_ext | |
10654 | cat >>conftest.$ac_ext <<_ACEOF | |
10655 | /* end confdefs.h. */ | |
10656 | #include <$ac_header> | |
10657 | _ACEOF | |
7a197a62 AK |
10658 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10659 | case "(($ac_try" in | |
10660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10661 | *) ac_try_echo=$ac_try;; | |
10662 | esac | |
10663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10664 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
10665 | ac_status=$? |
10666 | grep -v '^ *+' conftest.er1 >conftest.err | |
10667 | rm -f conftest.er1 | |
10668 | cat conftest.err >&5 | |
10669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
10670 | (exit $ac_status); } >/dev/null && { |
10671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10672 | test ! -s conftest.err | |
10673 | }; then | |
ad6254c5 AK |
10674 | ac_header_preproc=yes |
10675 | else | |
10676 | echo "$as_me: failed program was:" >&5 | |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10678 | ||
10679 | ac_header_preproc=no | |
10680 | fi | |
7a197a62 | 10681 | |
ad6254c5 | 10682 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
10683 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10684 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10685 | |
10686 | # So? What about this header? | |
8a2fc586 AK |
10687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10688 | yes:no: ) | |
ad6254c5 AK |
10689 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10690 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10692 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10693 | ac_header_preproc=yes | |
ad6254c5 | 10694 | ;; |
8a2fc586 | 10695 | no:yes:* ) |
ad6254c5 AK |
10696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10700 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10701 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10702 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10703 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10704 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10705 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10706 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10707 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10708 | |
ad6254c5 AK |
10709 | ;; |
10710 | esac | |
7a197a62 AK |
10711 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10713 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10715 | else | |
8a2fc586 | 10716 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10717 | fi |
7a197a62 AK |
10718 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10720 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 10721 | |
8106cdd5 | 10722 | fi |
ad6254c5 AK |
10723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10724 | cat >>confdefs.h <<_ACEOF | |
10725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10726 | _ACEOF | |
795ca3e5 AK |
10727 | |
10728 | else | |
ad6254c5 AK |
10729 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10730 | echo "$as_me: error: bailing out" >&2;} | |
10731 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10732 | fi |
10733 | ||
ad6254c5 | 10734 | done |
80992638 | 10735 | |
ad6254c5 | 10736 | fi |
80992638 | 10737 | |
ad6254c5 | 10738 | if test x$INTL = xyes; then |
83912faa | 10739 | |
ad6254c5 AK |
10740 | for ac_header in libintl.h |
10741 | do | |
10742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
10743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10744 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10748 | fi | |
7a197a62 AK |
10749 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10750 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10751 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10752 | else |
ad6254c5 | 10753 | # Is the header compilable? |
7a197a62 AK |
10754 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10755 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10756 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10757 | /* confdefs.h. */ |
10758 | _ACEOF | |
10759 | cat confdefs.h >>conftest.$ac_ext | |
10760 | cat >>conftest.$ac_ext <<_ACEOF | |
10761 | /* end confdefs.h. */ | |
10762 | $ac_includes_default | |
10763 | #include <$ac_header> | |
10764 | _ACEOF | |
10765 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10766 | if { (ac_try="$ac_compile" |
10767 | case "(($ac_try" in | |
10768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10769 | *) ac_try_echo=$ac_try;; | |
10770 | esac | |
10771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10772 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10773 | ac_status=$? |
8a2fc586 AK |
10774 | grep -v '^ *+' conftest.er1 >conftest.err |
10775 | rm -f conftest.er1 | |
10776 | cat conftest.err >&5 | |
ad6254c5 | 10777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10778 | (exit $ac_status); } && { |
10779 | test -z "$ac_c_werror_flag" || | |
10780 | test ! -s conftest.err | |
10781 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10782 | ac_header_compiler=yes |
10783 | else | |
10784 | echo "$as_me: failed program was:" >&5 | |
10785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10786 | ||
7a197a62 | 10787 | ac_header_compiler=no |
ad6254c5 | 10788 | fi |
7a197a62 AK |
10789 | |
10790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10791 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10792 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10793 | |
10794 | # Is the header present? | |
7a197a62 AK |
10795 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10796 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10797 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10798 | /* confdefs.h. */ |
10799 | _ACEOF | |
10800 | cat confdefs.h >>conftest.$ac_ext | |
10801 | cat >>conftest.$ac_ext <<_ACEOF | |
10802 | /* end confdefs.h. */ | |
10803 | #include <$ac_header> | |
10804 | _ACEOF | |
7a197a62 AK |
10805 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10806 | case "(($ac_try" in | |
10807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10808 | *) ac_try_echo=$ac_try;; | |
10809 | esac | |
10810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
10812 | ac_status=$? |
10813 | grep -v '^ *+' conftest.er1 >conftest.err | |
10814 | rm -f conftest.er1 | |
10815 | cat conftest.err >&5 | |
10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
10817 | (exit $ac_status); } >/dev/null && { |
10818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10819 | test ! -s conftest.err | |
10820 | }; then | |
ad6254c5 AK |
10821 | ac_header_preproc=yes |
10822 | else | |
10823 | echo "$as_me: failed program was:" >&5 | |
10824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10825 | ||
10826 | ac_header_preproc=no | |
10827 | fi | |
7a197a62 | 10828 | |
ad6254c5 | 10829 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
10830 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10831 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10832 | |
10833 | # So? What about this header? | |
8a2fc586 AK |
10834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10835 | yes:no: ) | |
ad6254c5 AK |
10836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10839 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10840 | ac_header_preproc=yes | |
ad6254c5 | 10841 | ;; |
8a2fc586 | 10842 | no:yes:* ) |
ad6254c5 AK |
10843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10847 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10848 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10849 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10850 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10853 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10854 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10855 | |
ad6254c5 AK |
10856 | ;; |
10857 | esac | |
7a197a62 AK |
10858 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 10862 | else |
8a2fc586 | 10863 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10864 | fi |
7a197a62 AK |
10865 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10866 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10867 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10868 | |
69792976 | 10869 | fi |
ad6254c5 AK |
10870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10871 | cat >>confdefs.h <<_ACEOF | |
10872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10873 | _ACEOF | |
69792976 | 10874 | |
69792976 | 10875 | else |
ad6254c5 AK |
10876 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10877 | echo "$as_me: error: bailing out" >&2;} | |
10878 | { (exit 1); exit 1; }; } | |
80992638 AK |
10879 | fi |
10880 | ||
ad6254c5 | 10881 | done |
69792976 | 10882 | |
ad6254c5 AK |
10883 | fi |
10884 | ||
ad6254c5 AK |
10885 | |
10886 | for ac_header in libdevmapper.h | |
10887 | do | |
10888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
10889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10890 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
10893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10894 | fi | |
7a197a62 AK |
10895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10897 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 10898 | else |
ad6254c5 | 10899 | # Is the header compilable? |
7a197a62 AK |
10900 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10902 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10903 | /* confdefs.h. */ |
10904 | _ACEOF | |
10905 | cat confdefs.h >>conftest.$ac_ext | |
10906 | cat >>conftest.$ac_ext <<_ACEOF | |
10907 | /* end confdefs.h. */ | |
10908 | $ac_includes_default | |
10909 | #include <$ac_header> | |
10910 | _ACEOF | |
10911 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10912 | if { (ac_try="$ac_compile" |
10913 | case "(($ac_try" in | |
10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10915 | *) ac_try_echo=$ac_try;; | |
10916 | esac | |
10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10918 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 10919 | ac_status=$? |
8a2fc586 AK |
10920 | grep -v '^ *+' conftest.er1 >conftest.err |
10921 | rm -f conftest.er1 | |
10922 | cat conftest.err >&5 | |
ad6254c5 | 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10924 | (exit $ac_status); } && { |
10925 | test -z "$ac_c_werror_flag" || | |
10926 | test ! -s conftest.err | |
10927 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10928 | ac_header_compiler=yes |
10929 | else | |
10930 | echo "$as_me: failed program was:" >&5 | |
10931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10932 | ||
7a197a62 | 10933 | ac_header_compiler=no |
ad6254c5 | 10934 | fi |
7a197a62 AK |
10935 | |
10936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10937 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10938 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10939 | |
10940 | # Is the header present? | |
7a197a62 AK |
10941 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10942 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10943 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10944 | /* confdefs.h. */ |
10945 | _ACEOF | |
10946 | cat confdefs.h >>conftest.$ac_ext | |
10947 | cat >>conftest.$ac_ext <<_ACEOF | |
10948 | /* end confdefs.h. */ | |
10949 | #include <$ac_header> | |
10950 | _ACEOF | |
7a197a62 AK |
10951 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10952 | case "(($ac_try" in | |
10953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10954 | *) ac_try_echo=$ac_try;; | |
10955 | esac | |
10956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
10958 | ac_status=$? |
10959 | grep -v '^ *+' conftest.er1 >conftest.err | |
10960 | rm -f conftest.er1 | |
10961 | cat conftest.err >&5 | |
10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
10963 | (exit $ac_status); } >/dev/null && { |
10964 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10965 | test ! -s conftest.err | |
10966 | }; then | |
ad6254c5 AK |
10967 | ac_header_preproc=yes |
10968 | else | |
10969 | echo "$as_me: failed program was:" >&5 | |
10970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10971 | ||
10972 | ac_header_preproc=no | |
10973 | fi | |
7a197a62 | 10974 | |
ad6254c5 | 10975 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
10976 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10977 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10978 | |
10979 | # So? What about this header? | |
8a2fc586 AK |
10980 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10981 | yes:no: ) | |
ad6254c5 AK |
10982 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10983 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10985 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10986 | ac_header_preproc=yes | |
ad6254c5 | 10987 | ;; |
8a2fc586 | 10988 | no:yes:* ) |
ad6254c5 AK |
10989 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10990 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10991 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10992 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10993 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10994 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10995 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10996 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10998 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10999 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11000 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11001 | |
ad6254c5 AK |
11002 | ;; |
11003 | esac | |
7a197a62 AK |
11004 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11005 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 | 11007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11008 | else |
8a2fc586 | 11009 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11010 | fi |
7a197a62 AK |
11011 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11013 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11014 | |
ad6254c5 AK |
11015 | fi |
11016 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11017 | cat >>confdefs.h <<_ACEOF | |
11018 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11019 | _ACEOF | |
69792976 | 11020 | |
69792976 | 11021 | else |
ad6254c5 AK |
11022 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11023 | echo "$as_me: error: bailing out" >&2;} | |
11024 | { (exit 1); exit 1; }; } | |
83912faa AK |
11025 | fi |
11026 | ||
ad6254c5 AK |
11027 | done |
11028 | ||
4a7f3eb2 | 11029 | |
ad6254c5 AK |
11030 | if test x$HAVE_SELINUX = xyes; then |
11031 | ||
11032 | for ac_header in selinux/selinux.h | |
11033 | do | |
11034 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7a197a62 AK |
11035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11036 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
11039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11040 | fi | |
7a197a62 AK |
11041 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11042 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11043 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11044 | else |
ad6254c5 | 11045 | # Is the header compilable? |
7a197a62 AK |
11046 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11047 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11048 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11049 | /* confdefs.h. */ |
11050 | _ACEOF | |
11051 | cat confdefs.h >>conftest.$ac_ext | |
11052 | cat >>conftest.$ac_ext <<_ACEOF | |
11053 | /* end confdefs.h. */ | |
11054 | $ac_includes_default | |
11055 | #include <$ac_header> | |
11056 | _ACEOF | |
11057 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11058 | if { (ac_try="$ac_compile" |
11059 | case "(($ac_try" in | |
11060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11061 | *) ac_try_echo=$ac_try;; | |
11062 | esac | |
11063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11064 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 | 11065 | ac_status=$? |
8a2fc586 AK |
11066 | grep -v '^ *+' conftest.er1 >conftest.err |
11067 | rm -f conftest.er1 | |
11068 | cat conftest.err >&5 | |
ad6254c5 | 11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11070 | (exit $ac_status); } && { |
11071 | test -z "$ac_c_werror_flag" || | |
11072 | test ! -s conftest.err | |
11073 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11074 | ac_header_compiler=yes |
11075 | else | |
11076 | echo "$as_me: failed program was:" >&5 | |
11077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11078 | ||
7a197a62 | 11079 | ac_header_compiler=no |
ad6254c5 | 11080 | fi |
7a197a62 AK |
11081 | |
11082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11083 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11084 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11085 | |
11086 | # Is the header present? | |
7a197a62 AK |
11087 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11088 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11089 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11090 | /* confdefs.h. */ |
11091 | _ACEOF | |
11092 | cat confdefs.h >>conftest.$ac_ext | |
11093 | cat >>conftest.$ac_ext <<_ACEOF | |
11094 | /* end confdefs.h. */ | |
11095 | #include <$ac_header> | |
11096 | _ACEOF | |
7a197a62 AK |
11097 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11098 | case "(($ac_try" in | |
11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11100 | *) ac_try_echo=$ac_try;; | |
11101 | esac | |
11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ad6254c5 AK |
11104 | ac_status=$? |
11105 | grep -v '^ *+' conftest.er1 >conftest.err | |
11106 | rm -f conftest.er1 | |
11107 | cat conftest.err >&5 | |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7a197a62 AK |
11109 | (exit $ac_status); } >/dev/null && { |
11110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11111 | test ! -s conftest.err | |
11112 | }; then | |
ad6254c5 AK |
11113 | ac_header_preproc=yes |
11114 | else | |
11115 | echo "$as_me: failed program was:" >&5 | |
11116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11117 | ||
11118 | ac_header_preproc=no | |
11119 | fi | |
7a197a62 | 11120 | |
ad6254c5 | 11121 | rm -f conftest.err conftest.$ac_ext |
7a197a62 AK |
11122 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11123 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11124 | |
11125 | # So? What about this header? | |
8a2fc586 AK |
11126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11127 | yes:no: ) | |
ad6254c5 AK |
11128 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11129 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
11130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11131 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11132 | ac_header_preproc=yes | |
ad6254c5 | 11133 | ;; |
8a2fc586 | 11134 | no:yes:* ) |
ad6254c5 AK |
11135 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11136 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
11137 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11138 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11139 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11140 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11141 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11142 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
11143 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11144 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
11145 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11146 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11147 | |
ad6254c5 AK |
11148 | ;; |
11149 | esac | |
7a197a62 AK |
11150 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ad6254c5 AK |
11153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11154 | else | |
8a2fc586 | 11155 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11156 | fi |
7a197a62 AK |
11157 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11159 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11160 | |
ad6254c5 AK |
11161 | fi |
11162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11163 | cat >>confdefs.h <<_ACEOF | |
11164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11165 | _ACEOF | |
0a62c911 | 11166 | |
0a62c911 | 11167 | else |
ad6254c5 AK |
11168 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11169 | echo "$as_me: error: bailing out" >&2;} | |
11170 | { (exit 1); exit 1; }; } | |
80992638 AK |
11171 | fi |
11172 | ||
ad6254c5 | 11173 | done |
0a62c911 | 11174 | |
ad6254c5 | 11175 | fi |
0a62c911 | 11176 | |
a653923f AK |
11177 | ################################################################################ |
11178 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11179 | set dummy modprobe; ac_word=$2 | |
7a197a62 AK |
11180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 AK |
11182 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
11183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11184 | else | |
11185 | case $MODPROBE_CMD in | |
11186 | [\\/]* | ?:[\\/]*) | |
11187 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11188 | ;; | |
11189 | *) | |
11190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11191 | for as_dir in $PATH | |
11192 | do | |
11193 | IFS=$as_save_IFS | |
11194 | test -z "$as_dir" && as_dir=. | |
11195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 11196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 AK |
11197 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
11198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11199 | break 2 | |
11200 | fi | |
11201 | done | |
11202 | done | |
7a197a62 | 11203 | IFS=$as_save_IFS |
72b2cb61 AK |
11204 | |
11205 | ;; | |
11206 | esac | |
11207 | fi | |
11208 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11209 | if test -n "$MODPROBE_CMD"; then |
7a197a62 AK |
11210 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11211 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11212 | else |
7a197a62 AK |
11213 | { echo "$as_me:$LINENO: result: no" >&5 |
11214 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11215 | fi |
11216 | ||
a653923f | 11217 | |
7a197a62 | 11218 | |
a653923f | 11219 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11220 | |
11221 | cat >>confdefs.h <<_ACEOF | |
11222 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11223 | _ACEOF | |
11224 | ||
a653923f AK |
11225 | fi |
11226 | ||
80992638 | 11227 | ################################################################################ |
fae0c576 AK |
11228 | if test "-f VERSION"; then |
11229 | LVM_VERSION="\"`cat VERSION`\"" | |
11230 | else | |
11231 | LVM_VERSION="Unknown" | |
11232 | fi | |
11233 | ||
80992638 | 11234 | ################################################################################ |
fae0c576 | 11235 | |
83912faa | 11236 | |
795ca3e5 AK |
11237 | |
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
5a52dca9 | 11243 | |
8ef2b021 | 11244 | |
199e490e | 11245 | |
69792976 AK |
11246 | |
11247 | ||
11248 | ||
11249 | ||
8106cdd5 AK |
11250 | |
11251 | ||
11252 | ||
11253 | ||
11254 | ||
d68a82ec | 11255 | |
036f273a | 11256 | |
7d1552c9 | 11257 | |
8106cdd5 | 11258 | |
0a62c911 | 11259 | |
8106cdd5 | 11260 | |
4a7f3eb2 | 11261 | |
4922197a AK |
11262 | |
11263 | ||
d8ac0fbc | 11264 | |
1a9ea74d | 11265 | |
8a2fc586 AK |
11266 | |
11267 | ||
11268 | ||
8ce0cbda | 11269 | |
8b1a3214 | 11270 | |
33f732c5 | 11271 | |
d3c8211f AK |
11272 | |
11273 | ||
80992638 | 11274 | ################################################################################ |
7a197a62 AK |
11275 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" |
11276 | ||
ad6254c5 | 11277 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11278 | # This file is a shell script that caches the results of configure |
11279 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11280 | # scripts and configure runs, see configure's option --config-cache. |
11281 | # It is not useful on other systems. If it contains results you don't | |
11282 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11283 | # |
ad6254c5 AK |
11284 | # config.status only pays attention to the cache file if you give it |
11285 | # the --recheck option to rerun configure. | |
795ca3e5 | 11286 | # |
ad6254c5 AK |
11287 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11288 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11289 | # following values. | |
11290 | ||
11291 | _ACEOF | |
11292 | ||
795ca3e5 AK |
11293 | # The following way of writing the cache mishandles newlines in values, |
11294 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11295 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11296 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11297 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11298 | ( |
11299 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11300 | eval ac_val=\$$ac_var | |
11301 | case $ac_val in #( | |
11302 | *${as_nl}*) | |
11303 | case $ac_var in #( | |
11304 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
11305 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
11306 | esac | |
11307 | case $ac_var in #( | |
11308 | _ | IFS | as_nl) ;; #( | |
11309 | *) $as_unset $ac_var ;; | |
11310 | esac ;; | |
11311 | esac | |
11312 | done | |
11313 | ||
ad6254c5 | 11314 | (set) 2>&1 | |
7a197a62 AK |
11315 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11316 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11317 | # `set' does not quote correctly, so add quotes (double-quote |
11318 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11319 | sed -n \ | |
8a2fc586 AK |
11320 | "s/'/'\\\\''/g; |
11321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11322 | ;; #( |
ad6254c5 AK |
11323 | *) |
11324 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11325 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11326 | ;; |
7a197a62 AK |
11327 | esac | |
11328 | sort | |
11329 | ) | | |
ad6254c5 | 11330 | sed ' |
7a197a62 | 11331 | /^ac_cv_env_/b end |
ad6254c5 | 11332 | t clear |
7a197a62 | 11333 | :clear |
ad6254c5 AK |
11334 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11335 | t end | |
7a197a62 AK |
11336 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11337 | :end' >>confcache | |
11338 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11339 | if test -w "$cache_file"; then | |
11340 | test "x$cache_file" != "x/dev/null" && | |
11341 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
11342 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11343 | cat confcache >$cache_file |
795ca3e5 | 11344 | else |
7a197a62 AK |
11345 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11346 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11347 | fi |
11348 | fi | |
11349 | rm -f confcache | |
11350 | ||
795ca3e5 AK |
11351 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11352 | # Let make expand exec_prefix. | |
11353 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11354 | ||
72b2cb61 | 11355 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11356 | |
11357 | ac_libobjs= | |
11358 | ac_ltlibobjs= | |
11359 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11360 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 AK |
11361 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
11362 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
11363 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11364 | # will be set to the directory where LIBOBJS objects are built. | |
11365 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11366 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11367 | done |
11368 | LIBOBJS=$ac_libobjs | |
80992638 | 11369 | |
ad6254c5 AK |
11370 | LTLIBOBJS=$ac_ltlibobjs |
11371 | ||
11372 | ||
11373 | ||
11374 | : ${CONFIG_STATUS=./config.status} | |
11375 | ac_clean_files_save=$ac_clean_files | |
11376 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11377 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11378 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11379 | cat >$CONFIG_STATUS <<_ACEOF | |
11380 | #! $SHELL | |
11381 | # Generated by $as_me. | |
795ca3e5 | 11382 | # Run this file to recreate the current configuration. |
795ca3e5 | 11383 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11384 | # configure, is in config.log if it exists. |
11385 | ||
11386 | debug=false | |
11387 | ac_cs_recheck=false | |
11388 | ac_cs_silent=false | |
11389 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11390 | _ACEOF | |
11391 | ||
11392 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11393 | ## --------------------- ## | |
11394 | ## M4sh Initialization. ## | |
11395 | ## --------------------- ## | |
11396 | ||
7a197a62 AK |
11397 | # Be more Bourne compatible |
11398 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11399 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11400 | emulate sh | |
11401 | NULLCMD=: | |
11402 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11403 | # is contrary to our usage. Disable this feature. | |
11404 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11405 | setopt NO_GLOB_SUBST |
11406 | else | |
11407 | case `(set -o) 2>/dev/null` in | |
11408 | *posix*) set -o posix ;; | |
11409 | esac | |
11410 | ||
11411 | fi | |
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | # PATH needs CR | |
11417 | # Avoid depending upon Character Ranges. | |
11418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11421 | as_cr_digits='0123456789' | |
11422 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11423 | ||
11424 | # The user is always right. | |
11425 | if test "${PATH_SEPARATOR+set}" != set; then | |
11426 | echo "#! /bin/sh" >conf$$.sh | |
11427 | echo "exit 0" >>conf$$.sh | |
11428 | chmod +x conf$$.sh | |
11429 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11430 | PATH_SEPARATOR=';' | |
11431 | else | |
11432 | PATH_SEPARATOR=: | |
11433 | fi | |
11434 | rm -f conf$$.sh | |
ad6254c5 AK |
11435 | fi |
11436 | ||
11437 | # Support unset when possible. | |
8a2fc586 | 11438 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11439 | as_unset=unset |
11440 | else | |
11441 | as_unset=false | |
11442 | fi | |
8106cdd5 | 11443 | |
ad6254c5 | 11444 | |
7a197a62 AK |
11445 | # IFS |
11446 | # We need space, tab and new line, in precisely that order. Quoting is | |
11447 | # there to prevent editors from complaining about space-tab. | |
11448 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11449 | # splitting by setting IFS to empty value.) | |
11450 | as_nl=' | |
11451 | ' | |
11452 | IFS=" "" $as_nl" | |
11453 | ||
11454 | # Find who we are. Look in the path if we contain no directory separator. | |
11455 | case $0 in | |
11456 | *[\\/]* ) as_myself=$0 ;; | |
11457 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11458 | for as_dir in $PATH | |
11459 | do | |
11460 | IFS=$as_save_IFS | |
11461 | test -z "$as_dir" && as_dir=. | |
11462 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11463 | done | |
11464 | IFS=$as_save_IFS | |
11465 | ||
11466 | ;; | |
11467 | esac | |
11468 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11469 | # in which case we are not to be found in the path. | |
11470 | if test "x$as_myself" = x; then | |
11471 | as_myself=$0 | |
11472 | fi | |
11473 | if test ! -f "$as_myself"; then | |
11474 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11475 | { (exit 1); exit 1; } | |
11476 | fi | |
11477 | ||
ad6254c5 | 11478 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11479 | for as_var in ENV MAIL MAILPATH |
11480 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11481 | done | |
ad6254c5 AK |
11482 | PS1='$ ' |
11483 | PS2='> ' | |
11484 | PS4='+ ' | |
11485 | ||
11486 | # NLS nuisances. | |
11487 | for as_var in \ | |
11488 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11489 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11490 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11491 | do |
8a2fc586 | 11492 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11493 | eval $as_var=C; export $as_var |
11494 | else | |
7a197a62 | 11495 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 | 11496 | fi |
8106cdd5 AK |
11497 | done |
11498 | ||
ad6254c5 | 11499 | # Required to use basename. |
7a197a62 AK |
11500 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11501 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11502 | as_expr=expr |
11503 | else | |
11504 | as_expr=false | |
11505 | fi | |
8106cdd5 | 11506 | |
7a197a62 | 11507 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11508 | as_basename=basename |
11509 | else | |
11510 | as_basename=false | |
11511 | fi | |
11512 | ||
11513 | ||
11514 | # Name of the executable. | |
7a197a62 | 11515 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11517 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11518 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ad6254c5 | 11519 | echo X/"$0" | |
7a197a62 AK |
11520 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11521 | s//\1/ | |
11522 | q | |
11523 | } | |
11524 | /^X\/\(\/\/\)$/{ | |
11525 | s//\1/ | |
11526 | q | |
11527 | } | |
11528 | /^X\/\(\/\).*/{ | |
11529 | s//\1/ | |
11530 | q | |
11531 | } | |
11532 | s/.*/./; q'` | |
ad6254c5 | 11533 | |
7a197a62 AK |
11534 | # CDPATH. |
11535 | $as_unset CDPATH | |
ad6254c5 AK |
11536 | |
11537 | ||
ad6254c5 | 11538 | |
ad6254c5 AK |
11539 | as_lineno_1=$LINENO |
11540 | as_lineno_2=$LINENO | |
ad6254c5 | 11541 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11542 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11543 | |
ad6254c5 AK |
11544 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11545 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11546 | # line-number line after each line using $LINENO; the second 'sed' |
11547 | # does the real work. The second script uses 'N' to pair each | |
11548 | # line-number line with the line containing $LINENO, and appends | |
11549 | # trailing '-' during substitution so that $LINENO is not a special | |
11550 | # case at line end. | |
ad6254c5 | 11551 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11552 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11553 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11554 | sed -n ' | |
11555 | p | |
11556 | /[$]LINENO/= | |
11557 | ' <$as_myself | | |
ad6254c5 | 11558 | sed ' |
7a197a62 AK |
11559 | s/[$]LINENO.*/&-/ |
11560 | t lineno | |
11561 | b | |
11562 | :lineno | |
ad6254c5 | 11563 | N |
7a197a62 AK |
11564 | :loop |
11565 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11566 | t loop |
7a197a62 | 11567 | s/-\n.*// |
ad6254c5 | 11568 | ' >$as_me.lineno && |
7a197a62 AK |
11569 | chmod +x "$as_me.lineno" || |
11570 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
ad6254c5 AK |
11571 | { (exit 1); exit 1; }; } |
11572 | ||
11573 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11574 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11575 | # original and so on. Autoconf is especially sensitive to this). |
11576 | . "./$as_me.lineno" | |
ad6254c5 AK |
11577 | # Exit status is that of the last command. |
11578 | exit | |
11579 | } | |
11580 | ||
11581 | ||
7a197a62 AK |
11582 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11583 | as_dirname=dirname | |
11584 | else | |
11585 | as_dirname=false | |
11586 | fi | |
11587 | ||
11588 | ECHO_C= ECHO_N= ECHO_T= | |
11589 | case `echo -n x` in | |
11590 | -n*) | |
11591 | case `echo 'x\c'` in | |
11592 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11593 | *) ECHO_C='\c';; | |
11594 | esac;; | |
11595 | *) | |
11596 | ECHO_N='-n';; | |
ad6254c5 AK |
11597 | esac |
11598 | ||
7a197a62 AK |
11599 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11600 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11601 | as_expr=expr |
11602 | else | |
11603 | as_expr=false | |
11604 | fi | |
80992638 | 11605 | |
ad6254c5 | 11606 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11607 | if test -d conf$$.dir; then |
11608 | rm -f conf$$.dir/conf$$.file | |
11609 | else | |
11610 | rm -f conf$$.dir | |
11611 | mkdir conf$$.dir | |
11612 | fi | |
ad6254c5 AK |
11613 | echo >conf$$.file |
11614 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
11615 | as_ln_s='ln -s' |
11616 | # ... but there are two gotchas: | |
11617 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11618 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11619 | # In both cases, we have to default to `cp -p'. | |
11620 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11621 | as_ln_s='cp -p' |
ad6254c5 AK |
11622 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11623 | as_ln_s=ln | |
11624 | else | |
11625 | as_ln_s='cp -p' | |
11626 | fi | |
7a197a62 AK |
11627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11628 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11629 | |
ad6254c5 AK |
11630 | if mkdir -p . 2>/dev/null; then |
11631 | as_mkdir_p=: | |
11632 | else | |
8a2fc586 | 11633 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11634 | as_mkdir_p=false |
11635 | fi | |
11636 | ||
7a197a62 AK |
11637 | if test -x / >/dev/null 2>&1; then |
11638 | as_test_x='test -x' | |
11639 | else | |
11640 | if ls -dL / >/dev/null 2>&1; then | |
11641 | as_ls_L_option=L | |
11642 | else | |
11643 | as_ls_L_option= | |
11644 | fi | |
11645 | as_test_x=' | |
11646 | eval sh -c '\'' | |
11647 | if test -d "$1"; then | |
11648 | test -d "$1/."; | |
11649 | else | |
11650 | case $1 in | |
11651 | -*)set "./$1";; | |
11652 | esac; | |
11653 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11654 | ???[sx]*):;;*)false;;esac;fi | |
11655 | '\'' sh | |
11656 | ' | |
11657 | fi | |
11658 | as_executable_p=$as_test_x | |
ad6254c5 AK |
11659 | |
11660 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11661 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11662 | |
11663 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11664 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11665 | |
11666 | ||
ad6254c5 AK |
11667 | exec 6>&1 |
11668 | ||
7a197a62 | 11669 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11670 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11671 | # values after options handling. |
11672 | ac_log=" | |
ad6254c5 | 11673 | This file was extended by $as_me, which was |
7a197a62 | 11674 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11675 | |
11676 | CONFIG_FILES = $CONFIG_FILES | |
11677 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11678 | CONFIG_LINKS = $CONFIG_LINKS | |
11679 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11680 | $ $0 $@ | |
11681 | ||
7a197a62 AK |
11682 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11683 | " | |
11684 | ||
ad6254c5 AK |
11685 | _ACEOF |
11686 | ||
7a197a62 | 11687 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11688 | # Files that config.status was made for. |
7a197a62 AK |
11689 | config_files="$ac_config_files" |
11690 | config_headers="$ac_config_headers" | |
ad6254c5 | 11691 | |
7a197a62 | 11692 | _ACEOF |
ad6254c5 AK |
11693 | |
11694 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ad6254c5 AK |
11695 | ac_cs_usage="\ |
11696 | \`$as_me' instantiates files from templates according to the | |
11697 | current configuration. | |
11698 | ||
11699 | Usage: $0 [OPTIONS] [FILE]... | |
11700 | ||
11701 | -h, --help print this help, then exit | |
7a197a62 | 11702 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
11703 | -q, --quiet do not print progress messages |
11704 | -d, --debug don't remove temporary files | |
11705 | --recheck update $as_me by reconfiguring in the same conditions | |
11706 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11707 | instantiate the configuration file FILE |
72b2cb61 AK |
11708 | --header=FILE[:TEMPLATE] |
11709 | instantiate the configuration header FILE | |
ad6254c5 AK |
11710 | |
11711 | Configuration files: | |
11712 | $config_files | |
11713 | ||
72b2cb61 AK |
11714 | Configuration headers: |
11715 | $config_headers | |
11716 | ||
ad6254c5 | 11717 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 11718 | |
7a197a62 | 11719 | _ACEOF |
ad6254c5 AK |
11720 | cat >>$CONFIG_STATUS <<_ACEOF |
11721 | ac_cs_version="\\ | |
11722 | config.status | |
7a197a62 AK |
11723 | configured by $0, generated by GNU Autoconf 2.61, |
11724 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 11725 | |
7a197a62 | 11726 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
11727 | This config.status script is free software; the Free Software Foundation |
11728 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11729 | |
11730 | ac_pwd='$ac_pwd' | |
11731 | srcdir='$srcdir' | |
11732 | INSTALL='$INSTALL' | |
ad6254c5 AK |
11733 | _ACEOF |
11734 | ||
11735 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11736 | # If no file are specified by the user, then we need to provide default | |
11737 | # value. By we need to know if files were specified by the user. | |
11738 | ac_need_defaults=: | |
11739 | while test $# != 0 | |
11740 | do | |
11741 | case $1 in | |
11742 | --*=*) | |
7a197a62 AK |
11743 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11744 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11745 | ac_shift=: |
11746 | ;; | |
7a197a62 | 11747 | *) |
ad6254c5 AK |
11748 | ac_option=$1 |
11749 | ac_optarg=$2 | |
11750 | ac_shift=shift | |
11751 | ;; | |
ad6254c5 AK |
11752 | esac |
11753 | ||
11754 | case $ac_option in | |
11755 | # Handling of the options. | |
ad6254c5 AK |
11756 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11757 | ac_cs_recheck=: ;; | |
7a197a62 AK |
11758 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
11759 | echo "$ac_cs_version"; exit ;; | |
11760 | --debug | --debu | --deb | --de | --d | -d ) | |
ad6254c5 AK |
11761 | debug=: ;; |
11762 | --file | --fil | --fi | --f ) | |
11763 | $ac_shift | |
11764 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11765 | ac_need_defaults=false;; | |
11766 | --header | --heade | --head | --hea ) | |
11767 | $ac_shift | |
11768 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11769 | ac_need_defaults=false;; | |
7a197a62 AK |
11770 | --he | --h) |
11771 | # Conflict between --help and --header | |
11772 | { echo "$as_me: error: ambiguous option: $1 | |
11773 | Try \`$0 --help' for more information." >&2 | |
11774 | { (exit 1); exit 1; }; };; | |
11775 | --help | --hel | -h ) | |
11776 | echo "$ac_cs_usage"; exit ;; | |
ad6254c5 AK |
11777 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11778 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11779 | ac_cs_silent=: ;; | |
11780 | ||
11781 | # This is an error. | |
7a197a62 AK |
11782 | -*) { echo "$as_me: error: unrecognized option: $1 |
11783 | Try \`$0 --help' for more information." >&2 | |
ad6254c5 AK |
11784 | { (exit 1); exit 1; }; } ;; |
11785 | ||
7a197a62 AK |
11786 | *) ac_config_targets="$ac_config_targets $1" |
11787 | ac_need_defaults=false ;; | |
ad6254c5 AK |
11788 | |
11789 | esac | |
11790 | shift | |
11791 | done | |
11792 | ||
11793 | ac_configure_extra_args= | |
11794 | ||
11795 | if $ac_cs_silent; then | |
11796 | exec 6>/dev/null | |
11797 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11798 | fi | |
11799 | ||
11800 | _ACEOF | |
11801 | cat >>$CONFIG_STATUS <<_ACEOF | |
11802 | if \$ac_cs_recheck; then | |
7a197a62 AK |
11803 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11804 | CONFIG_SHELL=$SHELL | |
11805 | export CONFIG_SHELL | |
11806 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
ad6254c5 AK |
11807 | fi |
11808 | ||
11809 | _ACEOF | |
7a197a62 AK |
11810 | cat >>$CONFIG_STATUS <<\_ACEOF |
11811 | exec 5>>config.log | |
11812 | { | |
11813 | echo | |
11814 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11815 | ## Running $as_me. ## | |
11816 | _ASBOX | |
11817 | echo "$ac_log" | |
11818 | } >&5 | |
ad6254c5 | 11819 | |
7a197a62 AK |
11820 | _ACEOF |
11821 | cat >>$CONFIG_STATUS <<_ACEOF | |
11822 | _ACEOF | |
ad6254c5 AK |
11823 | |
11824 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7a197a62 AK |
11825 | |
11826 | # Handling of arguments. | |
ad6254c5 AK |
11827 | for ac_config_target in $ac_config_targets |
11828 | do | |
7a197a62 AK |
11829 | case $ac_config_target in |
11830 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11831 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11832 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11833 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11834 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
11835 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
11836 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
11837 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
11838 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11839 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11840 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11841 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11842 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11843 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11844 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11845 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11846 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11847 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
11848 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11849 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11850 | "tools/fsadm/Makefile") CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11851 | "test/mm/Makefile") CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11852 | "test/device/Makefile") CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11853 | "test/format1/Makefile") CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11854 | "test/regex/Makefile") CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11855 | "test/filters/Makefile") CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
11856 | ||
ad6254c5 AK |
11857 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11858 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11859 | { (exit 1); exit 1; }; };; | |
80992638 | 11860 | esac |
ad6254c5 AK |
11861 | done |
11862 | ||
7a197a62 | 11863 | |
ad6254c5 AK |
11864 | # If the user did not use the arguments to specify the items to instantiate, |
11865 | # then the envvar interface is used. Set only those that are not. | |
11866 | # We use the long form for the default assignment because of an extremely | |
11867 | # bizarre bug on SunOS 4.1.3. | |
11868 | if $ac_need_defaults; then | |
11869 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11870 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11871 | fi |
11872 | ||
11873 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11874 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11875 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11876 | # Hook for its removal unless debugging. |
11877 | # Note that there is a small window in which the directory will not be cleaned: | |
11878 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11879 | $debug || |
11880 | { | |
7a197a62 AK |
11881 | tmp= |
11882 | trap 'exit_status=$? | |
11883 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11884 | ' 0 | |
ad6254c5 AK |
11885 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
11886 | } | |
ad6254c5 AK |
11887 | # Create a (secure) tmp directory for tmp files. |
11888 | ||
11889 | { | |
7a197a62 | 11890 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11891 | test -n "$tmp" && test -d "$tmp" |
11892 | } || | |
11893 | { | |
7a197a62 AK |
11894 | tmp=./conf$$-$RANDOM |
11895 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
11896 | } || |
11897 | { | |
11898 | echo "$me: cannot create a temporary directory in ." >&2 | |
11899 | { (exit 1); exit 1; } | |
11900 | } | |
11901 | ||
ad6254c5 | 11902 | # |
7a197a62 | 11903 | # Set up the sed scripts for CONFIG_FILES section. |
ad6254c5 AK |
11904 | # |
11905 | ||
11906 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11907 | # This happens for instance when ./config.status config.h | |
7a197a62 AK |
11908 | if test -n "$CONFIG_FILES"; then |
11909 | ||
11910 | _ACEOF | |
11911 | ||
11912 | ||
11913 | ||
11914 | ac_delim='%!_!# ' | |
11915 | for ac_last_try in false false false false false :; do | |
11916 | cat >conf$$subs.sed <<_ACEOF | |
11917 | SHELL!$SHELL$ac_delim | |
11918 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
11919 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
11920 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
11921 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
11922 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
11923 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
11924 | exec_prefix!$exec_prefix$ac_delim | |
11925 | prefix!$prefix$ac_delim | |
11926 | program_transform_name!$program_transform_name$ac_delim | |
11927 | bindir!$bindir$ac_delim | |
11928 | sbindir!$sbindir$ac_delim | |
11929 | libexecdir!$libexecdir$ac_delim | |
11930 | datarootdir!$datarootdir$ac_delim | |
11931 | datadir!$datadir$ac_delim | |
11932 | sysconfdir!$sysconfdir$ac_delim | |
11933 | sharedstatedir!$sharedstatedir$ac_delim | |
11934 | localstatedir!$localstatedir$ac_delim | |
11935 | includedir!$includedir$ac_delim | |
11936 | oldincludedir!$oldincludedir$ac_delim | |
11937 | docdir!$docdir$ac_delim | |
11938 | infodir!$infodir$ac_delim | |
11939 | htmldir!$htmldir$ac_delim | |
11940 | dvidir!$dvidir$ac_delim | |
11941 | pdfdir!$pdfdir$ac_delim | |
11942 | psdir!$psdir$ac_delim | |
11943 | libdir!$libdir$ac_delim | |
11944 | localedir!$localedir$ac_delim | |
11945 | mandir!$mandir$ac_delim | |
11946 | DEFS!$DEFS$ac_delim | |
11947 | ECHO_C!$ECHO_C$ac_delim | |
11948 | ECHO_N!$ECHO_N$ac_delim | |
11949 | ECHO_T!$ECHO_T$ac_delim | |
11950 | LIBS!$LIBS$ac_delim | |
11951 | build_alias!$build_alias$ac_delim | |
11952 | host_alias!$host_alias$ac_delim | |
11953 | target_alias!$target_alias$ac_delim | |
11954 | build!$build$ac_delim | |
11955 | build_cpu!$build_cpu$ac_delim | |
11956 | build_vendor!$build_vendor$ac_delim | |
11957 | build_os!$build_os$ac_delim | |
11958 | host!$host$ac_delim | |
11959 | host_cpu!$host_cpu$ac_delim | |
11960 | host_vendor!$host_vendor$ac_delim | |
11961 | host_os!$host_os$ac_delim | |
11962 | target!$target$ac_delim | |
11963 | target_cpu!$target_cpu$ac_delim | |
11964 | target_vendor!$target_vendor$ac_delim | |
11965 | target_os!$target_os$ac_delim | |
11966 | AWK!$AWK$ac_delim | |
11967 | CC!$CC$ac_delim | |
11968 | CFLAGS!$CFLAGS$ac_delim | |
11969 | LDFLAGS!$LDFLAGS$ac_delim | |
11970 | CPPFLAGS!$CPPFLAGS$ac_delim | |
11971 | ac_ct_CC!$ac_ct_CC$ac_delim | |
11972 | EXEEXT!$EXEEXT$ac_delim | |
11973 | OBJEXT!$OBJEXT$ac_delim | |
11974 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
11975 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
11976 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
11977 | LN_S!$LN_S$ac_delim | |
11978 | SET_MAKE!$SET_MAKE$ac_delim | |
11979 | RANLIB!$RANLIB$ac_delim | |
11980 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
11981 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
11982 | CPP!$CPP$ac_delim | |
11983 | GREP!$GREP$ac_delim | |
11984 | EGREP!$EGREP$ac_delim | |
11985 | ALLOCA!$ALLOCA$ac_delim | |
11986 | LIBOBJS!$LIBOBJS$ac_delim | |
11987 | POW_LIB!$POW_LIB$ac_delim | |
11988 | MSGFMT!$MSGFMT$ac_delim | |
11989 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
11990 | JOBS!$JOBS$ac_delim | |
11991 | STATIC_LINK!$STATIC_LINK$ac_delim | |
11992 | LVM1!$LVM1$ac_delim | |
11993 | POOL!$POOL$ac_delim | |
11994 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
11995 | MIRRORS!$MIRRORS$ac_delim | |
11996 | OWNER!$OWNER$ac_delim | |
11997 | GROUP!$GROUP$ac_delim | |
11998 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
11999 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12000 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12001 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12002 | LDDEPS!$LDDEPS$ac_delim | |
12003 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12004 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12005 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12006 | DEBUG!$DEBUG$ac_delim | |
12007 | DEVMAPPER!$DEVMAPPER$ac_delim | |
12008 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim | |
12009 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12010 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
12011 | CMDLIB!$CMDLIB$ac_delim | |
12012 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12013 | CONFDIR!$CONFDIR$ac_delim | |
12014 | _ACEOF | |
12015 | ||
12016 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12017 | break | |
12018 | elif $ac_last_try; then | |
12019 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12020 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12021 | { (exit 1); exit 1; }; } | |
12022 | else | |
12023 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ad6254c5 | 12024 | fi |
7a197a62 AK |
12025 | done |
12026 | ||
12027 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12028 | if test -n "$ac_eof"; then | |
12029 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12030 | ac_eof=`expr $ac_eof + 1` | |
12031 | fi | |
12032 | ||
12033 | cat >>$CONFIG_STATUS <<_ACEOF | |
12034 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12035 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12036 | _ACEOF | |
12037 | sed ' | |
12038 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12039 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12040 | :n | |
12041 | t n | |
12042 | s/'"$ac_delim"'$/,g/; t | |
12043 | s/$/\\/; p | |
12044 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12045 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12046 | rm -f conf$$subs.sed | |
12047 | cat >>$CONFIG_STATUS <<_ACEOF | |
12048 | CEOF$ac_eof | |
12049 | _ACEOF | |
12050 | ||
8106cdd5 | 12051 | |
7a197a62 AK |
12052 | ac_delim='%!_!# ' |
12053 | for ac_last_try in false false false false false :; do | |
12054 | cat >conf$$subs.sed <<_ACEOF | |
12055 | STATICDIR!$STATICDIR$ac_delim | |
12056 | DMDIR!$DMDIR$ac_delim | |
12057 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12058 | INTL!$INTL$ac_delim | |
12059 | CLVMD!$CLVMD$ac_delim | |
12060 | CLUSTER!$CLUSTER$ac_delim | |
12061 | FSADM!$FSADM$ac_delim | |
12062 | DMEVENTD!$DMEVENTD$ac_delim | |
12063 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
ad6254c5 | 12064 | _ACEOF |
7a197a62 AK |
12065 | |
12066 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then | |
12067 | break | |
12068 | elif $ac_last_try; then | |
12069 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12070 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12071 | { (exit 1); exit 1; }; } | |
12072 | else | |
12073 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12074 | fi | |
12075 | done | |
12076 | ||
12077 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12078 | if test -n "$ac_eof"; then | |
12079 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12080 | ac_eof=`expr $ac_eof + 1` | |
12081 | fi | |
12082 | ||
12083 | cat >>$CONFIG_STATUS <<_ACEOF | |
12084 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12085 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
12086 | _ACEOF | |
12087 | sed ' | |
12088 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12089 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12090 | :n | |
12091 | t n | |
12092 | s/'"$ac_delim"'$/,g/; t | |
12093 | s/$/\\/; p | |
12094 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12095 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12096 | rm -f conf$$subs.sed | |
12097 | cat >>$CONFIG_STATUS <<_ACEOF | |
12098 | :end | |
12099 | s/|#_!!_#|//g | |
12100 | CEOF$ac_eof | |
12101 | _ACEOF | |
12102 | ||
12103 | ||
12104 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12105 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12106 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12107 | # (actually we leave an empty line to preserve line numbers). | |
12108 | if test "x$srcdir" = x.; then | |
12109 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12110 | s/:*\$(srcdir):*/:/ | |
12111 | s/:*\${srcdir}:*/:/ | |
12112 | s/:*@srcdir@:*/:/ | |
12113 | s/^\([^=]*=[ ]*\):*/\1/ | |
12114 | s/:*$// | |
12115 | s/^[^=]*=[ ]*$// | |
12116 | }' | |
12117 | fi | |
12118 | ||
ad6254c5 | 12119 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12120 | fi # test -n "$CONFIG_FILES" |
12121 | ||
12122 | ||
12123 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
12124 | do | |
12125 | case $ac_tag in | |
12126 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12127 | esac | |
12128 | case $ac_mode$ac_tag in | |
12129 | :[FHL]*:*);; | |
12130 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
12131 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
12132 | { (exit 1); exit 1; }; };; | |
12133 | :[FH]-) ac_tag=-:-;; | |
12134 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12135 | esac | |
12136 | ac_save_IFS=$IFS | |
12137 | IFS=: | |
12138 | set x $ac_tag | |
12139 | IFS=$ac_save_IFS | |
12140 | shift | |
12141 | ac_file=$1 | |
12142 | shift | |
12143 | ||
12144 | case $ac_mode in | |
12145 | :L) ac_source=$1;; | |
12146 | :[FH]) | |
12147 | ac_file_inputs= | |
12148 | for ac_f | |
12149 | do | |
12150 | case $ac_f in | |
12151 | -) ac_f="$tmp/stdin";; | |
12152 | *) # Look for the file first in the build tree, then in the source tree | |
12153 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12154 | # because $ac_f cannot contain `:'. | |
12155 | test -f "$ac_f" || | |
12156 | case $ac_f in | |
12157 | [\\/$]*) false;; | |
12158 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12159 | esac || | |
12160 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
12161 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
12162 | { (exit 1); exit 1; }; };; | |
12163 | esac | |
12164 | ac_file_inputs="$ac_file_inputs $ac_f" | |
12165 | done | |
12166 | ||
12167 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12168 | # use $as_me), people would be surprised to read: | |
12169 | # /* config.h. Generated by config.status. */ | |
12170 | configure_input="Generated from "`IFS=: | |
12171 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
12172 | if test x"$ac_file" != x-; then | |
12173 | configure_input="$ac_file. $configure_input" | |
12174 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12175 | echo "$as_me: creating $ac_file" >&6;} | |
12176 | fi | |
12177 | ||
12178 | case $ac_tag in | |
12179 | *:-:* | *:-) cat >"$tmp/stdin";; | |
12180 | esac | |
12181 | ;; | |
80992638 | 12182 | esac |
8106cdd5 | 12183 | |
7a197a62 | 12184 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12185 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12186 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12187 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12188 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ad6254c5 | 12189 | echo X"$ac_file" | |
7a197a62 AK |
12190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12191 | s//\1/ | |
12192 | q | |
12193 | } | |
12194 | /^X\(\/\/\)[^/].*/{ | |
12195 | s//\1/ | |
12196 | q | |
12197 | } | |
12198 | /^X\(\/\/\)$/{ | |
12199 | s//\1/ | |
12200 | q | |
12201 | } | |
12202 | /^X\(\/\).*/{ | |
12203 | s//\1/ | |
12204 | q | |
12205 | } | |
12206 | s/.*/./; q'` | |
12207 | { as_dir="$ac_dir" | |
12208 | case $as_dir in #( | |
12209 | -*) as_dir=./$as_dir;; | |
12210 | esac | |
12211 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12212 | as_dirs= |
7a197a62 AK |
12213 | while :; do |
12214 | case $as_dir in #( | |
12215 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
12216 | *) as_qdir=$as_dir;; | |
12217 | esac | |
12218 | as_dirs="'$as_qdir' $as_dirs" | |
12219 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12220 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12221 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12222 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12223 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ad6254c5 | 12224 | echo X"$as_dir" | |
7a197a62 AK |
12225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12226 | s//\1/ | |
12227 | q | |
12228 | } | |
12229 | /^X\(\/\/\)[^/].*/{ | |
12230 | s//\1/ | |
12231 | q | |
12232 | } | |
12233 | /^X\(\/\/\)$/{ | |
12234 | s//\1/ | |
12235 | q | |
12236 | } | |
12237 | /^X\(\/\).*/{ | |
12238 | s//\1/ | |
12239 | q | |
12240 | } | |
12241 | s/.*/./; q'` | |
12242 | test -d "$as_dir" && break | |
ad6254c5 | 12243 | done |
7a197a62 AK |
12244 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
12245 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
12246 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12247 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12248 | ac_builddir=. |
12249 | ||
7a197a62 AK |
12250 | case "$ac_dir" in |
12251 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12252 | *) | |
ad6254c5 | 12253 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 AK |
12254 | # A ".." for each directory in $ac_dir_suffix. |
12255 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
12256 | case $ac_top_builddir_sub in | |
12257 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12258 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12259 | esac ;; | |
12260 | esac | |
12261 | ac_abs_top_builddir=$ac_pwd | |
12262 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12263 | # for backward compatibility: | |
12264 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12265 | |
12266 | case $srcdir in | |
7a197a62 | 12267 | .) # We are building in place. |
ad6254c5 | 12268 | ac_srcdir=. |
7a197a62 AK |
12269 | ac_top_srcdir=$ac_top_builddir_sub |
12270 | ac_abs_top_srcdir=$ac_pwd ;; | |
12271 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12272 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12273 | ac_top_srcdir=$srcdir |
12274 | ac_abs_top_srcdir=$srcdir ;; | |
12275 | *) # Relative name. | |
12276 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12277 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12278 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12279 | esac |
7a197a62 | 12280 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12281 | |
ad6254c5 | 12282 | |
7a197a62 AK |
12283 | case $ac_mode in |
12284 | :F) | |
12285 | # | |
12286 | # CONFIG_FILE | |
12287 | # | |
ad6254c5 AK |
12288 | |
12289 | case $INSTALL in | |
12290 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12291 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12292 | esac |
7a197a62 | 12293 | _ACEOF |
795ca3e5 | 12294 | |
7a197a62 AK |
12295 | cat >>$CONFIG_STATUS <<\_ACEOF |
12296 | # If the template does not know about datarootdir, expand it. | |
12297 | # FIXME: This hack should be removed a few years after 2.60. | |
12298 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12299 | ||
12300 | case `sed -n '/datarootdir/ { | |
12301 | p | |
12302 | q | |
12303 | } | |
12304 | /@datadir@/p | |
12305 | /@docdir@/p | |
12306 | /@infodir@/p | |
12307 | /@localedir@/p | |
12308 | /@mandir@/p | |
12309 | ' $ac_file_inputs` in | |
12310 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12311 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12312 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12313 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12314 | _ACEOF |
7a197a62 AK |
12315 | cat >>$CONFIG_STATUS <<_ACEOF |
12316 | ac_datarootdir_hack=' | |
12317 | s&@datadir@&$datadir&g | |
12318 | s&@docdir@&$docdir&g | |
12319 | s&@infodir@&$infodir&g | |
12320 | s&@localedir@&$localedir&g | |
12321 | s&@mandir@&$mandir&g | |
12322 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12323 | esac | |
12324 | _ACEOF | |
12325 | ||
12326 | # Neutralize VPATH when `$srcdir' = `.'. | |
12327 | # Shell code in configure.ac might set extrasub. | |
12328 | # FIXME: do we really want to maintain this feature? | |
ad6254c5 AK |
12329 | cat >>$CONFIG_STATUS <<_ACEOF |
12330 | sed "$ac_vpsub | |
12331 | $extrasub | |
12332 | _ACEOF | |
12333 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12334 | :t | |
12335 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7a197a62 AK |
12336 | s&@configure_input@&$configure_input&;t t |
12337 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12338 | s&@srcdir@&$ac_srcdir&;t t | |
12339 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12340 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12341 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12342 | s&@builddir@&$ac_builddir&;t t | |
12343 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12344 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12345 | s&@INSTALL@&$ac_INSTALL&;t t | |
12346 | $ac_datarootdir_hack | |
12347 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
12348 | ||
12349 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12350 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12351 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
12352 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12353 | which seems to be undefined. Please make sure it is defined." >&5 | |
12354 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12355 | which seems to be undefined. Please make sure it is defined." >&2;} | |
12356 | ||
12357 | rm -f "$tmp/stdin" | |
72b2cb61 | 12358 | case $ac_file in |
7a197a62 AK |
12359 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12360 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
72b2cb61 | 12361 | esac |
7a197a62 AK |
12362 | ;; |
12363 | :H) | |
12364 | # | |
12365 | # CONFIG_HEADER | |
12366 | # | |
12367 | _ACEOF | |
12368 | ||
12369 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12370 | # substitutes the proper values into config.h.in to produce config.h. | |
12371 | rm -f conftest.defines conftest.tail | |
12372 | # First, append a space to every undef/define line, to ease matching. | |
12373 | echo 's/$/ /' >conftest.defines | |
12374 | # Then, protect against being on the right side of a sed subst, or in | |
12375 | # an unquoted here document, in config.status. If some macros were | |
12376 | # called several times there might be several #defines for the same | |
12377 | # symbol, which is useless. But do not sort them, since the last | |
12378 | # AC_DEFINE must be honored. | |
12379 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12380 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12381 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12382 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12383 | # just an empty string. | |
12384 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12385 | ac_dB='\\)[ (].*,\\1define\\2' | |
12386 | ac_dC=' ' | |
12387 | ac_dD=' ,' | |
12388 | ||
12389 | uniq confdefs.h | | |
12390 | sed -n ' | |
12391 | t rset | |
12392 | :rset | |
12393 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12394 | t ok | |
12395 | d | |
12396 | :ok | |
12397 | s/[\\&,]/\\&/g | |
12398 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12399 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12400 | ' >>conftest.defines | |
12401 | ||
12402 | # Remove the space that was appended to ease matching. | |
12403 | # Then replace #undef with comments. This is necessary, for | |
72b2cb61 AK |
12404 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12405 | # on some systems where configure will not decide to define it. | |
7a197a62 AK |
12406 | # (The regexp can be short, since the line contains either #define or #undef.) |
12407 | echo 's/ $// | |
12408 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12409 | ||
12410 | # Break up conftest.defines: | |
12411 | ac_max_sed_lines=50 | |
12412 | ||
12413 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12414 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12415 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12416 | # et cetera. | |
12417 | ac_in='$ac_file_inputs' | |
12418 | ac_out='"$tmp/out1"' | |
12419 | ac_nxt='"$tmp/out2"' | |
12420 | ||
12421 | while : | |
72b2cb61 | 12422 | do |
7a197a62 AK |
12423 | # Write a here document: |
12424 | cat >>$CONFIG_STATUS <<_ACEOF | |
12425 | # First, check the format of the line: | |
12426 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12427 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12428 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12429 | b | |
12430 | :def | |
12431 | _ACEOF | |
12432 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
72b2cb61 | 12433 | echo 'CEOF |
7a197a62 AK |
12434 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
12435 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12436 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12437 | grep . conftest.tail >/dev/null || break | |
72b2cb61 AK |
12438 | rm -f conftest.defines |
12439 | mv conftest.tail conftest.defines | |
12440 | done | |
7a197a62 | 12441 | rm -f conftest.defines conftest.tail |
72b2cb61 | 12442 | |
7a197a62 | 12443 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
72b2cb61 | 12444 | cat >>$CONFIG_STATUS <<\_ACEOF |
72b2cb61 | 12445 | if test x"$ac_file" != x-; then |
7a197a62 AK |
12446 | echo "/* $configure_input */" >"$tmp/config.h" |
12447 | cat "$ac_result" >>"$tmp/config.h" | |
12448 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
72b2cb61 AK |
12449 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12450 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12451 | else | |
72b2cb61 | 12452 | rm -f $ac_file |
7a197a62 | 12453 | mv "$tmp/config.h" $ac_file |
72b2cb61 AK |
12454 | fi |
12455 | else | |
7a197a62 AK |
12456 | echo "/* $configure_input */" |
12457 | cat "$ac_result" | |
72b2cb61 | 12458 | fi |
7a197a62 AK |
12459 | rm -f "$tmp/out12" |
12460 | ;; | |
12461 | ||
12462 | ||
12463 | esac | |
12464 | ||
12465 | done # for ac_tag | |
795ca3e5 | 12466 | |
795ca3e5 | 12467 | |
ad6254c5 AK |
12468 | { (exit 0); exit 0; } |
12469 | _ACEOF | |
795ca3e5 | 12470 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12471 | ac_clean_files=$ac_clean_files_save |
12472 | ||
12473 | ||
12474 | # configure is writing to config.log, and then calls config.status. | |
12475 | # config.status does its own redirection, appending to config.log. | |
12476 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12477 | # by configure, so config.status won't be able to write to it; its | |
12478 | # output is simply discarded. So we exec the FD to /dev/null, | |
12479 | # effectively closing config.log, so it can be properly (re)opened and | |
12480 | # appended to by config.status. When coming back to configure, we | |
12481 | # need to make the FD available again. | |
12482 | if test "$no_create" != yes; then | |
12483 | ac_cs_success=: | |
12484 | ac_config_status_args= | |
12485 | test "$silent" = yes && | |
12486 | ac_config_status_args="$ac_config_status_args --quiet" | |
12487 | exec 5>/dev/null | |
12488 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12489 | exec 5>>config.log | |
12490 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12491 | # would make configure fail if this is the last instruction. | |
12492 | $ac_cs_success || { (exit 1); exit 1; } | |
12493 | fi | |
795ca3e5 | 12494 | |
2dc95e1c AK |
12495 | |
12496 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
12497 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12498 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12499 | fi |
809fae91 AK |
12500 | |
12501 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
12502 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12503 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12504 | fi |
06f62ad1 AK |
12505 | |
12506 | if test x$DMEVENTD == xyes; then | |
12507 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
12508 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
12509 | fi |