]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
25fbec5b | 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 | ||
25fbec5b 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 | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
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.) | |
1995c9ff AK |
66 | as_nl=' |
67 | ' | |
7a197a62 AK |
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 | |
1995c9ff | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
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 || |
1995c9ff | 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 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
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 | |
25fbec5b AK |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
7a197a62 | 252 | fi |
25fbec5b | 253 | |
7a197a62 AK |
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 | |
25fbec5b AK |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
7a197a62 | 273 | fi |
25fbec5b | 274 | |
7a197a62 AK |
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" || |
1995c9ff | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
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 | 481 | esac |
1995c9ff | 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 | ||
25fbec5b AK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
7a197a62 | 523 | else |
25fbec5b AK |
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 | ' | |
7a197a62 | 541 | fi |
25fbec5b | 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> | |
25fbec5b | 583 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
584 | # include <sys/types.h> |
585 | #endif | |
25fbec5b | 586 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
587 | # include <sys/stat.h> |
588 | #endif | |
25fbec5b | 589 | #ifdef STDC_HEADERS |
ad6254c5 AK |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
25fbec5b | 593 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
25fbec5b 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 | |
25fbec5b | 603 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
604 | # include <strings.h> |
605 | #endif | |
25fbec5b | 606 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 607 | # include <inttypes.h> |
ad6254c5 | 608 | #endif |
25fbec5b | 609 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
610 | # include <stdint.h> |
611 | #endif | |
25fbec5b | 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 | |
d0191583 JM |
674 | CPP |
675 | GREP | |
676 | EGREP | |
7a197a62 AK |
677 | INSTALL_PROGRAM |
678 | INSTALL_SCRIPT | |
679 | INSTALL_DATA | |
680 | LN_S | |
681 | SET_MAKE | |
682 | RANLIB | |
683 | CFLOW_CMD | |
684 | CSCOPE_CMD | |
7a197a62 AK |
685 | ALLOCA |
686 | LIBOBJS | |
687 | POW_LIB | |
d179cc7a | 688 | LVM2CMD_LIB |
7a197a62 AK |
689 | MSGFMT |
690 | MODPROBE_CMD | |
d0191583 | 691 | BUILD_DMEVENTD |
7a197a62 | 692 | CLDFLAGS |
7a197a62 | 693 | CLDNOWHOLEARCHIVE |
d0191583 JM |
694 | CLDWHOLEARCHIVE |
695 | CLUSTER | |
696 | CLVMD | |
697 | CMDLIB | |
698 | COPTIMISE_FLAG | |
7a197a62 AK |
699 | DEBUG |
700 | DEVMAPPER | |
d0191583 JM |
701 | DMDIR |
702 | DMEVENTD | |
703 | DM_COMPAT | |
704 | DM_DEVICE_GID | |
705 | DM_DEVICE_MODE | |
706 | DM_DEVICE_UID | |
707 | DM_IOCTLS | |
708 | DM_LIB_VERSION | |
709 | FSADM | |
710 | GROUP | |
7a197a62 | 711 | HAVE_LIBDL |
7a197a62 | 712 | HAVE_REALTIME |
d0191583 JM |
713 | HAVE_SELINUX |
714 | INTL | |
715 | INTL_PACKAGE | |
716 | JOBS | |
717 | LDDEPS | |
718 | LIB_SUFFIX | |
7a197a62 | 719 | LOCALEDIR |
d0191583 JM |
720 | LVM1 |
721 | LVM1_FALLBACK | |
7a197a62 | 722 | CONFDIR |
d0191583 JM |
723 | LVM_VERSION |
724 | MIRRORS | |
725 | OWNER | |
726 | PKGCONFIG | |
727 | POOL | |
728 | SNAPSHOTS | |
7a197a62 | 729 | STATICDIR |
d0191583 | 730 | STATIC_LINK |
66e941e8 | 731 | LIB_PTHREAD |
7a197a62 | 732 | LTLIBOBJS' |
ad6254c5 | 733 | ac_subst_files='' |
7a197a62 AK |
734 | ac_precious_vars='build_alias |
735 | host_alias | |
736 | target_alias | |
737 | CC | |
738 | CFLAGS | |
739 | LDFLAGS | |
25fbec5b | 740 | LIBS |
7a197a62 AK |
741 | CPPFLAGS |
742 | CPP' | |
743 | ||
795ca3e5 AK |
744 | |
745 | # Initialize some variables set by options. | |
ad6254c5 AK |
746 | ac_init_help= |
747 | ac_init_version=false | |
795ca3e5 AK |
748 | # The variables have the same names as the options, with |
749 | # dashes changed to underlines. | |
ad6254c5 | 750 | cache_file=/dev/null |
795ca3e5 | 751 | exec_prefix=NONE |
795ca3e5 | 752 | no_create= |
795ca3e5 AK |
753 | no_recursion= |
754 | prefix=NONE | |
755 | program_prefix=NONE | |
756 | program_suffix=NONE | |
757 | program_transform_name=s,x,x, | |
758 | silent= | |
759 | site= | |
760 | srcdir= | |
795ca3e5 AK |
761 | verbose= |
762 | x_includes=NONE | |
763 | x_libraries=NONE | |
ad6254c5 AK |
764 | |
765 | # Installation directory options. | |
766 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
767 | # and all the variables that are supposed to be based on exec_prefix | |
768 | # by default will actually change. | |
769 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 770 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
771 | bindir='${exec_prefix}/bin' |
772 | sbindir='${exec_prefix}/sbin' | |
773 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
774 | datarootdir='${prefix}/share' |
775 | datadir='${datarootdir}' | |
795ca3e5 AK |
776 | sysconfdir='${prefix}/etc' |
777 | sharedstatedir='${prefix}/com' | |
778 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
779 | includedir='${prefix}/include' |
780 | oldincludedir='/usr/include' | |
7a197a62 AK |
781 | docdir='${datarootdir}/doc/${PACKAGE}' |
782 | infodir='${datarootdir}/info' | |
783 | htmldir='${docdir}' | |
784 | dvidir='${docdir}' | |
785 | pdfdir='${docdir}' | |
786 | psdir='${docdir}' | |
787 | libdir='${exec_prefix}/lib' | |
788 | localedir='${datarootdir}/locale' | |
789 | mandir='${datarootdir}/man' | |
795ca3e5 | 790 | |
795ca3e5 | 791 | ac_prev= |
7a197a62 | 792 | ac_dashdash= |
795ca3e5 AK |
793 | for ac_option |
794 | do | |
795ca3e5 AK |
795 | # If the previous option needs an argument, assign it. |
796 | if test -n "$ac_prev"; then | |
7a197a62 | 797 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
798 | ac_prev= |
799 | continue | |
800 | fi | |
801 | ||
7a197a62 AK |
802 | case $ac_option in |
803 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
804 | *) ac_optarg=yes ;; | |
805 | esac | |
795ca3e5 AK |
806 | |
807 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
808 | ||
7a197a62 AK |
809 | case $ac_dashdash$ac_option in |
810 | --) | |
811 | ac_dashdash=yes ;; | |
795ca3e5 AK |
812 | |
813 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
814 | ac_prev=bindir ;; | |
815 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 816 | bindir=$ac_optarg ;; |
795ca3e5 AK |
817 | |
818 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 819 | ac_prev=build_alias ;; |
795ca3e5 | 820 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 821 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
822 | |
823 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
824 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
825 | ac_prev=cache_file ;; | |
826 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
827 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
828 | cache_file=$ac_optarg ;; |
829 | ||
830 | --config-cache | -C) | |
831 | cache_file=config.cache ;; | |
795ca3e5 | 832 | |
7a197a62 | 833 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 834 | ac_prev=datadir ;; |
7a197a62 | 835 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 836 | datadir=$ac_optarg ;; |
795ca3e5 | 837 | |
7a197a62 AK |
838 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
839 | | --dataroo | --dataro | --datar) | |
840 | ac_prev=datarootdir ;; | |
841 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
842 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
843 | datarootdir=$ac_optarg ;; | |
844 | ||
795ca3e5 | 845 | -disable-* | --disable-*) |
1995c9ff | 846 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 847 | # Reject names that are not valid shell variable names. |
25fbec5b | 848 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 849 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 850 | { (exit 1); exit 1; }; } |
25fbec5b | 851 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1995c9ff | 852 | eval enable_$ac_feature=no ;; |
7a197a62 AK |
853 | |
854 | -docdir | --docdir | --docdi | --doc | --do) | |
855 | ac_prev=docdir ;; | |
856 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
857 | docdir=$ac_optarg ;; | |
858 | ||
859 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
860 | ac_prev=dvidir ;; | |
861 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
862 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
863 | |
864 | -enable-* | --enable-*) | |
1995c9ff | 865 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 866 | # Reject names that are not valid shell variable names. |
25fbec5b | 867 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 868 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 869 | { (exit 1); exit 1; }; } |
25fbec5b | 870 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1995c9ff | 871 | eval enable_$ac_feature=\$ac_optarg ;; |
795ca3e5 AK |
872 | |
873 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
874 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
875 | | --exec | --exe | --ex) | |
876 | ac_prev=exec_prefix ;; | |
877 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
878 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
879 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 880 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
881 | |
882 | -gas | --gas | --ga | --g) | |
883 | # Obsolete; use --with-gas. | |
884 | with_gas=yes ;; | |
885 | ||
ad6254c5 AK |
886 | -help | --help | --hel | --he | -h) |
887 | ac_init_help=long ;; | |
888 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
889 | ac_init_help=recursive ;; | |
890 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
891 | ac_init_help=short ;; | |
795ca3e5 AK |
892 | |
893 | -host | --host | --hos | --ho) | |
ad6254c5 | 894 | ac_prev=host_alias ;; |
795ca3e5 | 895 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 896 | host_alias=$ac_optarg ;; |
795ca3e5 | 897 | |
7a197a62 AK |
898 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
899 | ac_prev=htmldir ;; | |
900 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
901 | | --ht=*) | |
902 | htmldir=$ac_optarg ;; | |
903 | ||
795ca3e5 AK |
904 | -includedir | --includedir | --includedi | --included | --include \ |
905 | | --includ | --inclu | --incl | --inc) | |
906 | ac_prev=includedir ;; | |
907 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
908 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 909 | includedir=$ac_optarg ;; |
795ca3e5 AK |
910 | |
911 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
912 | ac_prev=infodir ;; | |
913 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 914 | infodir=$ac_optarg ;; |
795ca3e5 AK |
915 | |
916 | -libdir | --libdir | --libdi | --libd) | |
917 | ac_prev=libdir ;; | |
918 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 919 | libdir=$ac_optarg ;; |
795ca3e5 AK |
920 | |
921 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
922 | | --libexe | --libex | --libe) | |
923 | ac_prev=libexecdir ;; | |
924 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
925 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 926 | libexecdir=$ac_optarg ;; |
795ca3e5 | 927 | |
7a197a62 AK |
928 | -localedir | --localedir | --localedi | --localed | --locale) |
929 | ac_prev=localedir ;; | |
930 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
931 | localedir=$ac_optarg ;; | |
932 | ||
795ca3e5 | 933 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 934 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
935 | ac_prev=localstatedir ;; |
936 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 937 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 938 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
939 | |
940 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
941 | ac_prev=mandir ;; | |
942 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 943 | mandir=$ac_optarg ;; |
795ca3e5 AK |
944 | |
945 | -nfp | --nfp | --nf) | |
946 | # Obsolete; use --without-fp. | |
947 | with_fp=no ;; | |
948 | ||
949 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 950 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
951 | no_create=yes ;; |
952 | ||
953 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
954 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
955 | no_recursion=yes ;; | |
956 | ||
957 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
958 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
959 | | --oldin | --oldi | --old | --ol | --o) | |
960 | ac_prev=oldincludedir ;; | |
961 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
962 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
963 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 964 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
965 | |
966 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
967 | ac_prev=prefix ;; | |
968 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 969 | prefix=$ac_optarg ;; |
795ca3e5 AK |
970 | |
971 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
972 | | --program-pre | --program-pr | --program-p) | |
973 | ac_prev=program_prefix ;; | |
974 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
975 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 976 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
977 | |
978 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
979 | | --program-suf | --program-su | --program-s) | |
980 | ac_prev=program_suffix ;; | |
981 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
982 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 983 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
984 | |
985 | -program-transform-name | --program-transform-name \ | |
986 | | --program-transform-nam | --program-transform-na \ | |
987 | | --program-transform-n | --program-transform- \ | |
988 | | --program-transform | --program-transfor \ | |
989 | | --program-transfo | --program-transf \ | |
990 | | --program-trans | --program-tran \ | |
991 | | --progr-tra | --program-tr | --program-t) | |
992 | ac_prev=program_transform_name ;; | |
993 | -program-transform-name=* | --program-transform-name=* \ | |
994 | | --program-transform-nam=* | --program-transform-na=* \ | |
995 | | --program-transform-n=* | --program-transform-=* \ | |
996 | | --program-transform=* | --program-transfor=* \ | |
997 | | --program-transfo=* | --program-transf=* \ | |
998 | | --program-trans=* | --program-tran=* \ | |
999 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1000 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1001 | |
7a197a62 AK |
1002 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1003 | ac_prev=pdfdir ;; | |
1004 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1005 | pdfdir=$ac_optarg ;; | |
1006 | ||
1007 | -psdir | --psdir | --psdi | --psd | --ps) | |
1008 | ac_prev=psdir ;; | |
1009 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1010 | psdir=$ac_optarg ;; | |
1011 | ||
795ca3e5 AK |
1012 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1013 | | -silent | --silent | --silen | --sile | --sil) | |
1014 | silent=yes ;; | |
1015 | ||
1016 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1017 | ac_prev=sbindir ;; | |
1018 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1019 | | --sbi=* | --sb=*) | |
ad6254c5 | 1020 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1021 | |
1022 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1023 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1024 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1025 | | --sha | --sh) | |
1026 | ac_prev=sharedstatedir ;; | |
1027 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1028 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1029 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1030 | | --sha=* | --sh=*) | |
ad6254c5 | 1031 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1032 | |
1033 | -site | --site | --sit) | |
1034 | ac_prev=site ;; | |
1035 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1036 | site=$ac_optarg ;; |
795ca3e5 AK |
1037 | |
1038 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1039 | ac_prev=srcdir ;; | |
1040 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1041 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1044 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1045 | ac_prev=sysconfdir ;; | |
1046 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1047 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1048 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1049 | |
1050 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1051 | ac_prev=target_alias ;; |
795ca3e5 | 1052 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1053 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1054 | |
1055 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1056 | verbose=yes ;; | |
1057 | ||
ad6254c5 AK |
1058 | -version | --version | --versio | --versi | --vers | -V) |
1059 | ac_init_version=: ;; | |
795ca3e5 AK |
1060 | |
1061 | -with-* | --with-*) | |
1995c9ff | 1062 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1063 | # Reject names that are not valid shell variable names. |
25fbec5b | 1064 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1065 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1066 | { (exit 1); exit 1; }; } |
25fbec5b | 1067 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1995c9ff | 1068 | eval with_$ac_package=\$ac_optarg ;; |
795ca3e5 AK |
1069 | |
1070 | -without-* | --without-*) | |
1995c9ff | 1071 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1072 | # Reject names that are not valid shell variable names. |
25fbec5b | 1073 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1074 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1075 | { (exit 1); exit 1; }; } |
25fbec5b | 1076 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1995c9ff | 1077 | eval with_$ac_package=no ;; |
795ca3e5 AK |
1078 | |
1079 | --x) | |
1080 | # Obsolete; use --with-x. | |
1081 | with_x=yes ;; | |
1082 | ||
1083 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1084 | | --x-incl | --x-inc | --x-in | --x-i) | |
1085 | ac_prev=x_includes ;; | |
1086 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1087 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1088 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1091 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1092 | ac_prev=x_libraries ;; | |
1093 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1094 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1095 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1096 | |
1995c9ff | 1097 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1098 | Try \`$0 --help' for more information." >&2 |
1099 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1100 | ;; |
1101 | ||
ad6254c5 AK |
1102 | *=*) |
1103 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1104 | # Reject names that are not valid shell variable names. | |
1105 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1995c9ff | 1106 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1107 | { (exit 1); exit 1; }; } |
7a197a62 | 1108 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1109 | export $ac_envvar ;; |
1110 | ||
795ca3e5 | 1111 | *) |
ad6254c5 | 1112 | # FIXME: should be removed in autoconf 3.0. |
1995c9ff | 1113 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1114 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1115 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1116 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1117 | ;; |
1118 | ||
1119 | esac | |
1120 | done | |
1121 | ||
1122 | if test -n "$ac_prev"; then | |
ad6254c5 | 1123 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1995c9ff | 1124 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1125 | { (exit 1); exit 1; }; } |
795ca3e5 | 1126 | fi |
795ca3e5 | 1127 | |
7a197a62 AK |
1128 | # Be sure to have absolute directory names. |
1129 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1130 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1131 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1132 | libdir localedir mandir | |
795ca3e5 | 1133 | do |
7a197a62 | 1134 | eval ac_val=\$$ac_var |
ad6254c5 | 1135 | case $ac_val in |
7a197a62 AK |
1136 | [\\/$]* | ?:[\\/]* ) continue;; |
1137 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1138 | esac |
1995c9ff | 1139 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1140 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1141 | done |
1142 | ||
ad6254c5 AK |
1143 | # There might be people who depend on the old broken behavior: `$host' |
1144 | # used to hold the argument of --host etc. | |
1145 | # FIXME: To remove some day. | |
1146 | build=$build_alias | |
1147 | host=$host_alias | |
1148 | target=$target_alias | |
1149 | ||
1150 | # FIXME: To remove some day. | |
1151 | if test "x$host_alias" != x; then | |
1152 | if test "x$build_alias" = x; then | |
1153 | cross_compiling=maybe | |
1995c9ff | 1154 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1155 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1156 | elif test "x$build_alias" != "x$host_alias"; then | |
1157 | cross_compiling=yes | |
1158 | fi | |
1159 | fi | |
8106cdd5 | 1160 | |
ad6254c5 AK |
1161 | ac_tool_prefix= |
1162 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1163 | ||
1164 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1165 | |
795ca3e5 | 1166 | |
7a197a62 AK |
1167 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1168 | ac_ls_di=`ls -di .` && | |
1169 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1995c9ff | 1170 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1171 | { (exit 1); exit 1; }; } |
1172 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1995c9ff | 1173 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1174 | { (exit 1); exit 1; }; } |
1175 | ||
1176 | ||
795ca3e5 AK |
1177 | # Find the source files, if location was not specified. |
1178 | if test -z "$srcdir"; then | |
1179 | ac_srcdir_defaulted=yes | |
7a197a62 AK |
1180 | # Try the directory containing this script, then the parent directory. |
1181 | ac_confdir=`$as_dirname -- "$0" || | |
ad6254c5 | 1182 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
1183 | X"$0" : 'X\(//\)[^/]' \| \ |
1184 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 1185 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 1186 | echo X"$0" | |
7a197a62 AK |
1187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1188 | s//\1/ | |
1189 | q | |
1190 | } | |
1191 | /^X\(\/\/\)[^/].*/{ | |
1192 | s//\1/ | |
1193 | q | |
1194 | } | |
1195 | /^X\(\/\/\)$/{ | |
1196 | s//\1/ | |
1197 | q | |
1198 | } | |
1199 | /^X\(\/\).*/{ | |
1200 | s//\1/ | |
1201 | q | |
1202 | } | |
1203 | s/.*/./; q'` | |
795ca3e5 | 1204 | srcdir=$ac_confdir |
7a197a62 | 1205 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1206 | srcdir=.. |
1207 | fi | |
1208 | else | |
1209 | ac_srcdir_defaulted=no | |
1210 | fi | |
7a197a62 AK |
1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
1212 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1995c9ff | 1213 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1214 | { (exit 1); exit 1; }; } |
795ca3e5 | 1215 | fi |
7a197a62 AK |
1216 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1217 | ac_abs_confdir=`( | |
1995c9ff | 1218 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1219 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1220 | pwd)` |
1221 | # When building in place, set srcdir=. | |
1222 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1223 | srcdir=. | |
1224 | fi | |
1225 | # Remove unnecessary trailing slashes from srcdir. | |
1226 | # Double slashes in file names in object file debugging info | |
1227 | # mess up M-x gdb in Emacs. | |
1228 | case $srcdir in | |
1229 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1230 | esac | |
1231 | for ac_var in $ac_precious_vars; do | |
1232 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1233 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1234 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1235 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1236 | done | |
ad6254c5 AK |
1237 | |
1238 | # | |
1239 | # Report the --help message. | |
1240 | # | |
1241 | if test "$ac_init_help" = "long"; then | |
1242 | # Omit some internal or obsolete options to make the list less imposing. | |
1243 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1244 | cat <<_ACEOF | |
1245 | \`configure' configures this package to adapt to many kinds of systems. | |
1246 | ||
1247 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1248 | ||
1249 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1250 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1251 | ||
1252 | Defaults for the options are specified in brackets. | |
1253 | ||
1254 | Configuration: | |
1255 | -h, --help display this help and exit | |
1256 | --help=short display options specific to this package | |
1257 | --help=recursive display the short help of all the included packages | |
1258 | -V, --version display version information and exit | |
1259 | -q, --quiet, --silent do not print \`checking...' messages | |
1260 | --cache-file=FILE cache test results in FILE [disabled] | |
1261 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1262 | -n, --no-create do not create output files | |
1263 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1264 | ||
ad6254c5 AK |
1265 | Installation directories: |
1266 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 1267 | [$ac_default_prefix] |
ad6254c5 | 1268 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 1269 | [PREFIX] |
ad6254c5 AK |
1270 | |
1271 | By default, \`make install' will install all the files in | |
1272 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1273 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1274 | for instance \`--prefix=\$HOME'. | |
1275 | ||
1276 | For better control, use the options below. | |
1277 | ||
1278 | Fine tuning of the installation directories: | |
1279 | --bindir=DIR user executables [EPREFIX/bin] | |
1280 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1281 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ad6254c5 AK |
1282 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1283 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1284 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1285 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1286 | --includedir=DIR C header files [PREFIX/include] | |
1287 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7a197a62 AK |
1288 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1289 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1290 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1291 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1292 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1293 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1294 | --htmldir=DIR html documentation [DOCDIR] | |
1295 | --dvidir=DIR dvi documentation [DOCDIR] | |
1296 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1297 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1298 | _ACEOF |
1299 | ||
1300 | cat <<\_ACEOF | |
1301 | ||
1302 | System types: | |
1303 | --build=BUILD configure for building on BUILD [guessed] | |
1304 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1305 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1306 | _ACEOF | |
1307 | fi | |
1308 | ||
1309 | if test -n "$ac_init_help"; then | |
1310 | ||
1311 | cat <<\_ACEOF | |
1312 | ||
1313 | Optional Features: | |
1314 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1315 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1316 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1317 | device-mapper is missing from the kernel | |
ad6254c5 | 1318 | --enable-readline Enable readline support |
3d978351 | 1319 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
1320 | --enable-debug Enable debugging |
1321 | --disable-devmapper Disable device-mapper interaction | |
1322 | --disable-o_direct Disable O_DIRECT | |
1323 | --enable-cmdlib Build shared command library | |
1324 | --enable-fsadm Enable fsadm | |
15d91f5a | 1325 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1326 | --enable-static_link Use this to link the tools to their libraries |
1327 | statically. Default is dynamic linking | |
1328 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1329 | --enable-nls Enable Native Language Support |
1330 | ||
1331 | Optional Packages: | |
1332 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1333 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1334 | --with-user=USER Set the owner of installed files [USER=root] |
1335 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
ad6254c5 AK |
1336 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1337 | TYPE=internal | |
1338 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1339 | TYPE=internal | |
1340 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1341 | TYPE=internal | |
1342 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1343 | TYPE=internal | |
1344 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1345 | TYPE=internal | |
5c7fc7c4 | 1346 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1347 | TYPE=none |
d0191583 JM |
1348 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1349 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1350 | --with-confdir=DIR Configuration files in DIR /etc |
1351 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1352 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1353 | |
1354 | Some influential environment variables: | |
1355 | CC C compiler command | |
1356 | CFLAGS C compiler flags | |
1357 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1358 | nonstandard directory <lib dir> | |
25fbec5b | 1359 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1360 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1361 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1362 | CPP C preprocessor |
1363 | ||
1364 | Use these variables to override the choices made by `configure' or to help | |
1365 | it to find libraries and programs with nonstandard names/locations. | |
1366 | ||
1367 | _ACEOF | |
7a197a62 | 1368 | ac_status=$? |
ad6254c5 AK |
1369 | fi |
1370 | ||
1371 | if test "$ac_init_help" = "recursive"; then | |
1372 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1373 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7a197a62 | 1374 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1375 | ac_builddir=. |
1376 | ||
7a197a62 AK |
1377 | case "$ac_dir" in |
1378 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1379 | *) | |
1995c9ff | 1380 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1381 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 1382 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1383 | case $ac_top_builddir_sub in |
1384 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1385 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1386 | esac ;; | |
1387 | esac | |
1388 | ac_abs_top_builddir=$ac_pwd | |
1389 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1390 | # for backward compatibility: | |
1391 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1392 | |
1393 | case $srcdir in | |
7a197a62 | 1394 | .) # We are building in place. |
ad6254c5 | 1395 | ac_srcdir=. |
7a197a62 AK |
1396 | ac_top_srcdir=$ac_top_builddir_sub |
1397 | ac_abs_top_srcdir=$ac_pwd ;; | |
1398 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1399 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1400 | ac_top_srcdir=$srcdir |
1401 | ac_abs_top_srcdir=$srcdir ;; | |
1402 | *) # Relative name. | |
1403 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1404 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1405 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1406 | esac |
7a197a62 AK |
1407 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1408 | ||
1409 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1410 | # Check for guested configure. | |
1411 | if test -f "$ac_srcdir/configure.gnu"; then | |
1412 | echo && | |
1413 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1414 | elif test -f "$ac_srcdir/configure"; then | |
1415 | echo && | |
1416 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1417 | else |
1995c9ff | 1418 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1419 | fi || ac_status=$? |
1420 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1421 | done |
1422 | fi | |
1423 | ||
7a197a62 | 1424 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1425 | if $ac_init_version; then |
1426 | cat <<\_ACEOF | |
7a197a62 | 1427 | configure |
25fbec5b | 1428 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1429 | |
7a197a62 AK |
1430 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1431 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ad6254c5 AK |
1432 | This configure script is free software; the Free Software Foundation |
1433 | gives unlimited permission to copy, distribute and modify it. | |
1434 | _ACEOF | |
7a197a62 | 1435 | exit |
ad6254c5 | 1436 | fi |
7a197a62 | 1437 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1438 | This file contains any messages produced by compilers while |
1439 | running configure, to aid debugging if configure makes a mistake. | |
1440 | ||
1441 | It was created by $as_me, which was | |
25fbec5b | 1442 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1443 | |
1444 | $ $0 $@ | |
1445 | ||
1446 | _ACEOF | |
7a197a62 | 1447 | exec 5>>config.log |
ad6254c5 AK |
1448 | { |
1449 | cat <<_ASUNAME | |
1450 | ## --------- ## | |
1451 | ## Platform. ## | |
1452 | ## --------- ## | |
1453 | ||
1454 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1455 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1456 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1457 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1458 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1459 | ||
1460 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1461 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1462 | ||
1463 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1464 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1465 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1466 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1467 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1468 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1469 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1470 | ||
1471 | _ASUNAME | |
1472 | ||
1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1474 | for as_dir in $PATH | |
1475 | do | |
1476 | IFS=$as_save_IFS | |
1477 | test -z "$as_dir" && as_dir=. | |
1995c9ff | 1478 | echo "PATH: $as_dir" |
ad6254c5 | 1479 | done |
7a197a62 | 1480 | IFS=$as_save_IFS |
ad6254c5 AK |
1481 | |
1482 | } >&5 | |
1483 | ||
1484 | cat >&5 <<_ACEOF | |
1485 | ||
1486 | ||
1487 | ## ----------- ## | |
1488 | ## Core tests. ## | |
1489 | ## ----------- ## | |
1490 | ||
1491 | _ACEOF | |
1492 | ||
1493 | ||
1494 | # Keep a trace of the command line. | |
1495 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1496 | # Strip out --silent because we don't want to record it for future runs. | |
1497 | # Also quote any args containing shell meta-characters. | |
1498 | # Make two passes to allow for proper duplicate-argument suppression. | |
1499 | ac_configure_args= | |
1500 | ac_configure_args0= | |
1501 | ac_configure_args1= | |
ad6254c5 AK |
1502 | ac_must_keep_next=false |
1503 | for ac_pass in 1 2 | |
1504 | do | |
1505 | for ac_arg | |
1506 | do | |
1507 | case $ac_arg in | |
1508 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1510 | | -silent | --silent | --silen | --sile | --sil) | |
1511 | continue ;; | |
7a197a62 | 1512 | *\'*) |
1995c9ff | 1513 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1514 | esac |
1515 | case $ac_pass in | |
1516 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1517 | 2) | |
1518 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1519 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1520 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1521 | else |
8a2fc586 AK |
1522 | case $ac_arg in |
1523 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1524 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1525 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1526 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1527 | case "$ac_configure_args0 " in | |
1528 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1529 | esac | |
1530 | ;; | |
1531 | -* ) ac_must_keep_next=true ;; | |
1532 | esac | |
ad6254c5 | 1533 | fi |
7a197a62 | 1534 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1535 | ;; |
1536 | esac | |
1537 | done | |
1538 | done | |
1539 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1540 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1541 | ||
1542 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1543 | # config.log. We remove comments because anyway the quotes in there | |
1544 | # would cause problems or look ugly. | |
7a197a62 AK |
1545 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1546 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1547 | trap 'exit_status=$? |
1548 | # Save into config.log some information that might help in debugging. | |
1549 | { | |
1550 | echo | |
1551 | ||
1552 | cat <<\_ASBOX | |
1553 | ## ---------------- ## | |
1554 | ## Cache variables. ## | |
1555 | ## ---------------- ## | |
1556 | _ASBOX | |
1557 | echo | |
1558 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1559 | ( |
1560 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1561 | eval ac_val=\$$ac_var | |
1562 | case $ac_val in #( | |
1563 | *${as_nl}*) | |
1564 | case $ac_var in #( | |
1995c9ff AK |
1565 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1566 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1567 | esac |
1568 | case $ac_var in #( | |
1569 | _ | IFS | as_nl) ;; #( | |
1570 | *) $as_unset $ac_var ;; | |
1571 | esac ;; | |
1572 | esac | |
1573 | done | |
ad6254c5 | 1574 | (set) 2>&1 | |
7a197a62 AK |
1575 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1576 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1577 | sed -n \ |
7a197a62 AK |
1578 | "s/'\''/'\''\\\\'\'''\''/g; |
1579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1580 | ;; #( | |
ad6254c5 | 1581 | *) |
7a197a62 | 1582 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1583 | ;; |
7a197a62 AK |
1584 | esac | |
1585 | sort | |
1586 | ) | |
ad6254c5 AK |
1587 | echo |
1588 | ||
1589 | cat <<\_ASBOX | |
1590 | ## ----------------- ## | |
1591 | ## Output variables. ## | |
1592 | ## ----------------- ## | |
1593 | _ASBOX | |
1594 | echo | |
1595 | for ac_var in $ac_subst_vars | |
1596 | do | |
7a197a62 AK |
1597 | eval ac_val=\$$ac_var |
1598 | case $ac_val in | |
1995c9ff | 1599 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1600 | esac |
1995c9ff | 1601 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1602 | done | sort |
1603 | echo | |
1604 | ||
1605 | if test -n "$ac_subst_files"; then | |
1606 | cat <<\_ASBOX | |
7a197a62 AK |
1607 | ## ------------------- ## |
1608 | ## File substitutions. ## | |
1609 | ## ------------------- ## | |
ad6254c5 AK |
1610 | _ASBOX |
1611 | echo | |
1612 | for ac_var in $ac_subst_files | |
1613 | do | |
7a197a62 AK |
1614 | eval ac_val=\$$ac_var |
1615 | case $ac_val in | |
1995c9ff | 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1617 | esac |
1995c9ff | 1618 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1619 | done | sort |
1620 | echo | |
1621 | fi | |
1622 | ||
1623 | if test -s confdefs.h; then | |
1624 | cat <<\_ASBOX | |
1625 | ## ----------- ## | |
1626 | ## confdefs.h. ## | |
1627 | ## ----------- ## | |
1628 | _ASBOX | |
1629 | echo | |
7a197a62 | 1630 | cat confdefs.h |
ad6254c5 AK |
1631 | echo |
1632 | fi | |
1633 | test "$ac_signal" != 0 && | |
1995c9ff AK |
1634 | echo "$as_me: caught signal $ac_signal" |
1635 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1636 | } >&5 |
7a197a62 AK |
1637 | rm -f core *.core core.conftest.* && |
1638 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1639 | exit $exit_status |
7a197a62 | 1640 | ' 0 |
ad6254c5 AK |
1641 | for ac_signal in 1 2 13 15; do |
1642 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1643 | done | |
1644 | ac_signal=0 | |
1645 | ||
1646 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1647 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1648 | |
1649 | # Predefined preprocessor variables. | |
1650 | ||
1651 | cat >>confdefs.h <<_ACEOF | |
1652 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1653 | _ACEOF | |
1654 | ||
1655 | ||
1656 | cat >>confdefs.h <<_ACEOF | |
1657 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1658 | _ACEOF | |
1659 | ||
1660 | ||
1661 | cat >>confdefs.h <<_ACEOF | |
1662 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1663 | _ACEOF | |
8106cdd5 | 1664 | |
ad6254c5 AK |
1665 | |
1666 | cat >>confdefs.h <<_ACEOF | |
1667 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1668 | _ACEOF | |
1669 | ||
1670 | ||
1671 | cat >>confdefs.h <<_ACEOF | |
1672 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1673 | _ACEOF | |
1674 | ||
1675 | ||
1676 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 | 1677 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 AK |
1678 | if test -n "$CONFIG_SITE"; then |
1679 | set x "$CONFIG_SITE" | |
1680 | elif test "x$prefix" != xNONE; then | |
1681 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1682 | else | |
1683 | set x "$ac_default_prefix/share/config.site" \ | |
1684 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1685 | fi |
7a197a62 AK |
1686 | shift |
1687 | for ac_site_file | |
1688 | do | |
795ca3e5 | 1689 | if test -r "$ac_site_file"; then |
1995c9ff AK |
1690 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1691 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1692 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1693 | . "$ac_site_file" |
1694 | fi | |
1695 | done | |
1696 | ||
1697 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1698 | # Some versions of bash will fail to source /dev/null (special |
1699 | # files actually), so we avoid doing that. | |
1700 | if test -f "$cache_file"; then | |
1995c9ff AK |
1701 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1702 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1703 | case $cache_file in |
7a197a62 AK |
1704 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1705 | *) . "./$cache_file";; | |
ad6254c5 AK |
1706 | esac |
1707 | fi | |
795ca3e5 | 1708 | else |
1995c9ff AK |
1709 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1710 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1711 | >$cache_file |
1712 | fi | |
1713 | ||
1714 | # Check that the precious variables saved in the cache have kept the same | |
1715 | # value. | |
1716 | ac_cache_corrupted=false | |
7a197a62 | 1717 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1718 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1719 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1720 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1721 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1722 | case $ac_old_set,$ac_new_set in |
1723 | set,) | |
1995c9ff AK |
1724 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1725 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1726 | ac_cache_corrupted=: ;; |
1727 | ,set) | |
1995c9ff AK |
1728 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1729 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1730 | ac_cache_corrupted=: ;; |
1731 | ,);; | |
1732 | *) | |
1733 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1995c9ff AK |
1734 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1735 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1736 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1737 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1738 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1739 | echo "$as_me: current value: $ac_new_val" >&2;} | |
8a2fc586 | 1740 | ac_cache_corrupted=: |
ad6254c5 AK |
1741 | fi;; |
1742 | esac | |
1743 | # Pass precious variables to config.status. | |
1744 | if test "$ac_new_set" = set; then | |
1745 | case $ac_new_val in | |
1995c9ff | 1746 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1747 | *) ac_arg=$ac_var=$ac_new_val ;; |
1748 | esac | |
1749 | case " $ac_configure_args " in | |
1750 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1751 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1752 | esac | |
1753 | fi | |
1754 | done | |
1755 | if $ac_cache_corrupted; then | |
1995c9ff AK |
1756 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1757 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1758 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1759 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1760 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1761 | fi |
1762 | ||
ad6254c5 AK |
1763 | |
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
7a197a62 AK |
1779 | ac_ext=c |
1780 | ac_cpp='$CPP $CPPFLAGS' | |
1781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1784 | |
795ca3e5 AK |
1785 | |
1786 | ||
7a197a62 | 1787 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1788 | |
1789 | ||
80992638 | 1790 | ################################################################################ |
795ca3e5 | 1791 | ac_aux_dir= |
7a197a62 AK |
1792 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1793 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1794 | ac_aux_dir=$ac_dir |
1795 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1796 | break | |
7a197a62 | 1797 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1798 | ac_aux_dir=$ac_dir |
1799 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1800 | break | |
7a197a62 | 1801 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1802 | ac_aux_dir=$ac_dir |
1803 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1804 | break | |
795ca3e5 AK |
1805 | fi |
1806 | done | |
1807 | if test -z "$ac_aux_dir"; then | |
1995c9ff AK |
1808 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1809 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1810 | { (exit 1); exit 1; }; } |
795ca3e5 | 1811 | fi |
7a197a62 AK |
1812 | |
1813 | # These three variables are undocumented and unsupported, | |
1814 | # and are intended to be withdrawn in a future Autoconf release. | |
1815 | # They can cause serious problems if a builder's source tree is in a directory | |
1816 | # whose full name contains unusual characters. | |
1817 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1818 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1819 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1820 | ||
8ce0cbda AK |
1821 | |
1822 | ||
ad6254c5 | 1823 | ################################################################################ |
8ce0cbda | 1824 | # Make sure we can run config.sub. |
7a197a62 | 1825 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1995c9ff AK |
1826 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1827 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1828 | { (exit 1); exit 1; }; } |
1829 | ||
1995c9ff AK |
1830 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1831 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1832 | if test "${ac_cv_build+set}" = set; then |
1995c9ff | 1833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1834 | else |
7a197a62 AK |
1835 | ac_build_alias=$build_alias |
1836 | test "x$ac_build_alias" = x && | |
1837 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1838 | test "x$ac_build_alias" = x && | |
1995c9ff AK |
1839 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1840 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1841 | { (exit 1); exit 1; }; } |
7a197a62 | 1842 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1995c9ff AK |
1843 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1844 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1845 | { (exit 1); exit 1; }; } |
1846 | ||
1847 | fi | |
1995c9ff AK |
1848 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1849 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1850 | case $ac_cv_build in |
1851 | *-*-*) ;; | |
1995c9ff AK |
1852 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1853 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1854 | { (exit 1); exit 1; }; };; |
1855 | esac | |
ad6254c5 | 1856 | build=$ac_cv_build |
7a197a62 AK |
1857 | ac_save_IFS=$IFS; IFS='-' |
1858 | set x $ac_cv_build | |
1859 | shift | |
1860 | build_cpu=$1 | |
1861 | build_vendor=$2 | |
1862 | shift; shift | |
1863 | # Remember, the first character of IFS is used to create $*, | |
1864 | # except with old shells: | |
1865 | build_os=$* | |
1866 | IFS=$ac_save_IFS | |
1867 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1868 | |
1869 | ||
1995c9ff AK |
1870 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1871 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1872 | if test "${ac_cv_host+set}" = set; then |
1995c9ff | 1873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1874 | else |
7a197a62 AK |
1875 | if test "x$host_alias" = x; then |
1876 | ac_cv_host=$ac_cv_build | |
1877 | else | |
1878 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1995c9ff AK |
1879 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1880 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1881 | { (exit 1); exit 1; }; } |
7a197a62 | 1882 | fi |
ad6254c5 AK |
1883 | |
1884 | fi | |
1995c9ff AK |
1885 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1886 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1887 | case $ac_cv_host in |
1888 | *-*-*) ;; | |
1995c9ff AK |
1889 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1890 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1891 | { (exit 1); exit 1; }; };; |
1892 | esac | |
ad6254c5 | 1893 | host=$ac_cv_host |
7a197a62 AK |
1894 | ac_save_IFS=$IFS; IFS='-' |
1895 | set x $ac_cv_host | |
1896 | shift | |
1897 | host_cpu=$1 | |
1898 | host_vendor=$2 | |
1899 | shift; shift | |
1900 | # Remember, the first character of IFS is used to create $*, | |
1901 | # except with old shells: | |
1902 | host_os=$* | |
1903 | IFS=$ac_save_IFS | |
1904 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1905 | |
1906 | ||
1995c9ff AK |
1907 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1908 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1909 | if test "${ac_cv_target+set}" = set; then |
1995c9ff | 1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1911 | else |
7a197a62 AK |
1912 | if test "x$target_alias" = x; then |
1913 | ac_cv_target=$ac_cv_host | |
1914 | else | |
1915 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1995c9ff AK |
1916 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1917 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1918 | { (exit 1); exit 1; }; } |
7a197a62 | 1919 | fi |
8ce0cbda | 1920 | |
ad6254c5 | 1921 | fi |
1995c9ff AK |
1922 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1923 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1924 | case $ac_cv_target in |
1925 | *-*-*) ;; | |
1995c9ff AK |
1926 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1927 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1928 | { (exit 1); exit 1; }; };; |
1929 | esac | |
ad6254c5 | 1930 | target=$ac_cv_target |
7a197a62 AK |
1931 | ac_save_IFS=$IFS; IFS='-' |
1932 | set x $ac_cv_target | |
1933 | shift | |
1934 | target_cpu=$1 | |
1935 | target_vendor=$2 | |
1936 | shift; shift | |
1937 | # Remember, the first character of IFS is used to create $*, | |
1938 | # except with old shells: | |
1939 | target_os=$* | |
1940 | IFS=$ac_save_IFS | |
1941 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1942 | |
8ce0cbda | 1943 | |
ad6254c5 AK |
1944 | # The aliases save the names the user supplied, while $host etc. |
1945 | # will get canonicalized. | |
1946 | test -n "$target_alias" && | |
8ce0cbda AK |
1947 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1948 | NONENONEs,x,x, && | |
1949 | program_prefix=${target_alias}- | |
1950 | ||
8ce0cbda AK |
1951 | case "$host_os" in |
1952 | linux*) | |
8ce0cbda AK |
1953 | COPTIMISE_FLAG="-O2" |
1954 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1955 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1956 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1957 | LDDEPS="$LDDEPS .export.sym" | |
1958 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1959 | LIB_SUFFIX=so |
8ce0cbda AK |
1960 | DEVMAPPER=yes |
1961 | ODIRECT=yes | |
d0191583 | 1962 | DM_IOCTLS=yes |
8ce0cbda | 1963 | SELINUX=yes |
8b1a3214 | 1964 | REALTIME=yes |
8ce0cbda | 1965 | CLUSTER=internal |
d0191583 JM |
1966 | FSADM=no |
1967 | ;; | |
8ce0cbda AK |
1968 | darwin*) |
1969 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1970 | COPTIMISE_FLAG="-O2" | |
1971 | CLDFLAGS="$CLDFLAGS" | |
1972 | CLDWHOLEARCHIVE="-all_load" | |
1973 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1974 | LIB_SUFFIX=dylib |
a653923f | 1975 | DEVMAPPER=yes |
8ce0cbda | 1976 | ODIRECT=no |
d0191583 | 1977 | DM_IOCTLS=no |
8ce0cbda | 1978 | SELINUX=no |
8b1a3214 | 1979 | REALTIME=no |
8ce0cbda | 1980 | CLUSTER=none |
d0191583 JM |
1981 | FSADM=no |
1982 | ;; | |
8ce0cbda AK |
1983 | esac |
1984 | ||
80992638 | 1985 | ################################################################################ |
ad6254c5 | 1986 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1987 | do |
ad6254c5 | 1988 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1989 | set dummy $ac_prog; ac_word=$2 |
1995c9ff AK |
1990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 1992 | if test "${ac_cv_prog_AWK+set}" = set; then |
1995c9ff | 1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
1994 | else |
1995 | if test -n "$AWK"; then | |
1996 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1997 | else | |
ad6254c5 AK |
1998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1999 | for as_dir in $PATH | |
2000 | do | |
2001 | IFS=$as_save_IFS | |
2002 | test -z "$as_dir" && as_dir=. | |
2003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2005 | ac_cv_prog_AWK="$ac_prog" |
1995c9ff | 2006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2007 | break 2 |
2008 | fi | |
2009 | done | |
2010 | done | |
7a197a62 | 2011 | IFS=$as_save_IFS |
ad6254c5 | 2012 | |
795ca3e5 AK |
2013 | fi |
2014 | fi | |
ad6254c5 | 2015 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2016 | if test -n "$AWK"; then |
1995c9ff AK |
2017 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2018 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2019 | else |
1995c9ff AK |
2020 | { echo "$as_me:$LINENO: result: no" >&5 |
2021 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2022 | fi |
2023 | ||
7a197a62 | 2024 | |
ad6254c5 AK |
2025 | test -n "$AWK" && break |
2026 | done | |
2027 | ||
2028 | ac_ext=c | |
2029 | ac_cpp='$CPP $CPPFLAGS' | |
2030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2033 | if test -n "$ac_tool_prefix"; then | |
2034 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2035 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1995c9ff AK |
2036 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2038 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2040 | else |
2041 | if test -n "$CC"; then | |
2042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2043 | else | |
2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2045 | for as_dir in $PATH | |
2046 | do | |
2047 | IFS=$as_save_IFS | |
2048 | test -z "$as_dir" && as_dir=. | |
2049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2051 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1995c9ff | 2052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2053 | break 2 |
2054 | fi | |
2055 | done | |
8106cdd5 | 2056 | done |
7a197a62 | 2057 | IFS=$as_save_IFS |
8106cdd5 | 2058 | |
ad6254c5 AK |
2059 | fi |
2060 | fi | |
2061 | CC=$ac_cv_prog_CC | |
2062 | if test -n "$CC"; then | |
1995c9ff AK |
2063 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2064 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2065 | else |
1995c9ff AK |
2066 | { echo "$as_me:$LINENO: result: no" >&5 |
2067 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2068 | fi |
2069 | ||
7a197a62 | 2070 | |
ad6254c5 AK |
2071 | fi |
2072 | if test -z "$ac_cv_prog_CC"; then | |
2073 | ac_ct_CC=$CC | |
2074 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2075 | set dummy gcc; ac_word=$2 |
1995c9ff AK |
2076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2078 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2080 | else |
2081 | if test -n "$ac_ct_CC"; then | |
2082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2083 | else | |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2085 | for as_dir in $PATH | |
2086 | do | |
2087 | IFS=$as_save_IFS | |
2088 | test -z "$as_dir" && as_dir=. | |
2089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2091 | ac_cv_prog_ac_ct_CC="gcc" |
1995c9ff | 2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2093 | break 2 |
2094 | fi | |
2095 | done | |
2096 | done | |
7a197a62 | 2097 | IFS=$as_save_IFS |
ad6254c5 AK |
2098 | |
2099 | fi | |
2100 | fi | |
2101 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2102 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2103 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2104 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2105 | else |
1995c9ff AK |
2106 | { echo "$as_me:$LINENO: result: no" >&5 |
2107 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2108 | fi |
2109 | ||
7a197a62 AK |
2110 | if test "x$ac_ct_CC" = x; then |
2111 | CC="" | |
2112 | else | |
2113 | case $cross_compiling:$ac_tool_warned in | |
2114 | yes:) | |
1995c9ff | 2115 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2116 | whose name does not start with the host triplet. If you think this |
2117 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2118 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2119 | whose name does not start with the host triplet. If you think this |
2120 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2121 | ac_tool_warned=yes ;; | |
2122 | esac | |
2123 | CC=$ac_ct_CC | |
2124 | fi | |
ad6254c5 AK |
2125 | else |
2126 | CC="$ac_cv_prog_CC" | |
2127 | fi | |
2128 | ||
2129 | if test -z "$CC"; then | |
7a197a62 AK |
2130 | if test -n "$ac_tool_prefix"; then |
2131 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2132 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1995c9ff AK |
2133 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2135 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2137 | else |
2138 | if test -n "$CC"; then | |
2139 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2140 | else | |
ad6254c5 AK |
2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2142 | for as_dir in $PATH | |
2143 | do | |
2144 | IFS=$as_save_IFS | |
2145 | test -z "$as_dir" && as_dir=. | |
2146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2148 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1995c9ff | 2149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2150 | break 2 |
2151 | fi | |
2152 | done | |
2153 | done | |
7a197a62 | 2154 | IFS=$as_save_IFS |
ad6254c5 | 2155 | |
8106cdd5 AK |
2156 | fi |
2157 | fi | |
ad6254c5 | 2158 | CC=$ac_cv_prog_CC |
8106cdd5 | 2159 | if test -n "$CC"; then |
1995c9ff AK |
2160 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2161 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2162 | else |
1995c9ff AK |
2163 | { echo "$as_me:$LINENO: result: no" >&5 |
2164 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2165 | fi |
2166 | ||
8106cdd5 | 2167 | |
7a197a62 | 2168 | fi |
ad6254c5 | 2169 | fi |
795ca3e5 AK |
2170 | if test -z "$CC"; then |
2171 | # Extract the first word of "cc", so it can be a program name with args. | |
2172 | set dummy cc; ac_word=$2 | |
1995c9ff AK |
2173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2175 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2177 | else |
2178 | if test -n "$CC"; then | |
2179 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2180 | else | |
795ca3e5 | 2181 | ac_prog_rejected=no |
ad6254c5 AK |
2182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2183 | for as_dir in $PATH | |
2184 | do | |
2185 | IFS=$as_save_IFS | |
2186 | test -z "$as_dir" && as_dir=. | |
2187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2189 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2190 | ac_prog_rejected=yes | |
2191 | continue | |
2192 | fi | |
2193 | ac_cv_prog_CC="cc" | |
1995c9ff | 2194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2195 | break 2 |
2196 | fi | |
2197 | done | |
2198 | done | |
7a197a62 | 2199 | IFS=$as_save_IFS |
ad6254c5 | 2200 | |
795ca3e5 AK |
2201 | if test $ac_prog_rejected = yes; then |
2202 | # We found a bogon in the path, so make sure we never use it. | |
2203 | set dummy $ac_cv_prog_CC | |
2204 | shift | |
ad6254c5 | 2205 | if test $# != 0; then |
795ca3e5 AK |
2206 | # We chose a different compiler from the bogus one. |
2207 | # However, it has the same basename, so the bogon will be chosen | |
2208 | # first if we set CC to just the basename; use the full file name. | |
2209 | shift | |
ad6254c5 | 2210 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2211 | fi |
2212 | fi | |
2213 | fi | |
2214 | fi | |
ad6254c5 | 2215 | CC=$ac_cv_prog_CC |
795ca3e5 | 2216 | if test -n "$CC"; then |
1995c9ff AK |
2217 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2218 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2219 | else |
1995c9ff AK |
2220 | { echo "$as_me:$LINENO: result: no" >&5 |
2221 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2222 | fi |
2223 | ||
7a197a62 | 2224 | |
ad6254c5 AK |
2225 | fi |
2226 | if test -z "$CC"; then | |
2227 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2228 | for ac_prog in cl.exe |
ad6254c5 AK |
2229 | do |
2230 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2231 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1995c9ff AK |
2232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2234 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2236 | else |
2237 | if test -n "$CC"; then | |
2238 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2239 | else | |
ad6254c5 AK |
2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2241 | for as_dir in $PATH | |
2242 | do | |
2243 | IFS=$as_save_IFS | |
2244 | test -z "$as_dir" && as_dir=. | |
2245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2247 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1995c9ff | 2248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2249 | break 2 |
2250 | fi | |
2251 | done | |
2252 | done | |
7a197a62 | 2253 | IFS=$as_save_IFS |
ad6254c5 | 2254 | |
795ca3e5 AK |
2255 | fi |
2256 | fi | |
ad6254c5 | 2257 | CC=$ac_cv_prog_CC |
795ca3e5 | 2258 | if test -n "$CC"; then |
1995c9ff AK |
2259 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2260 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2261 | else |
1995c9ff AK |
2262 | { echo "$as_me:$LINENO: result: no" >&5 |
2263 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2264 | fi |
ad6254c5 | 2265 | |
7a197a62 | 2266 | |
ad6254c5 AK |
2267 | test -n "$CC" && break |
2268 | done | |
2269 | fi | |
2270 | if test -z "$CC"; then | |
2271 | ac_ct_CC=$CC | |
7a197a62 | 2272 | for ac_prog in cl.exe |
ad6254c5 AK |
2273 | do |
2274 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2275 | set dummy $ac_prog; ac_word=$2 | |
1995c9ff AK |
2276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2278 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2280 | else |
2281 | if test -n "$ac_ct_CC"; then | |
2282 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2283 | else | |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2291 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1995c9ff | 2292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2293 | break 2 |
795ca3e5 | 2294 | fi |
ad6254c5 AK |
2295 | done |
2296 | done | |
7a197a62 | 2297 | IFS=$as_save_IFS |
ad6254c5 AK |
2298 | |
2299 | fi | |
2300 | fi | |
2301 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2302 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2303 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2304 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2305 | else |
1995c9ff AK |
2306 | { echo "$as_me:$LINENO: result: no" >&5 |
2307 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2308 | fi |
2309 | ||
7a197a62 | 2310 | |
ad6254c5 AK |
2311 | test -n "$ac_ct_CC" && break |
2312 | done | |
795ca3e5 | 2313 | |
7a197a62 AK |
2314 | if test "x$ac_ct_CC" = x; then |
2315 | CC="" | |
2316 | else | |
2317 | case $cross_compiling:$ac_tool_warned in | |
2318 | yes:) | |
1995c9ff | 2319 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2320 | whose name does not start with the host triplet. If you think this |
2321 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2322 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2323 | whose name does not start with the host triplet. If you think this |
2324 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2325 | ac_tool_warned=yes ;; | |
2326 | esac | |
2327 | CC=$ac_ct_CC | |
2328 | fi | |
ad6254c5 AK |
2329 | fi |
2330 | ||
2331 | fi | |
2332 | ||
2333 | ||
1995c9ff | 2334 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2335 | See \`config.log' for more details." >&5 |
1995c9ff | 2336 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2337 | See \`config.log' for more details." >&2;} |
2338 | { (exit 1); exit 1; }; } | |
2339 | ||
2340 | # Provide some information about the compiler. | |
1995c9ff AK |
2341 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2342 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2343 | { (ac_try="$ac_compiler --version >&5" |
2344 | case "(($ac_try" in | |
2345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2346 | *) ac_try_echo=$ac_try;; | |
2347 | esac | |
1995c9ff | 2348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2349 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2350 | ac_status=$? |
1995c9ff | 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2352 | (exit $ac_status); } |
7a197a62 AK |
2353 | { (ac_try="$ac_compiler -v >&5" |
2354 | case "(($ac_try" in | |
2355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2356 | *) ac_try_echo=$ac_try;; | |
2357 | esac | |
1995c9ff | 2358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2359 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2360 | ac_status=$? |
1995c9ff | 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2362 | (exit $ac_status); } |
7a197a62 AK |
2363 | { (ac_try="$ac_compiler -V >&5" |
2364 | case "(($ac_try" in | |
2365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2366 | *) ac_try_echo=$ac_try;; | |
2367 | esac | |
1995c9ff | 2368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2369 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2370 | ac_status=$? |
1995c9ff | 2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2372 | (exit $ac_status); } |
2373 | ||
2374 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2375 | /* confdefs.h. */ |
2376 | _ACEOF | |
2377 | cat confdefs.h >>conftest.$ac_ext | |
2378 | cat >>conftest.$ac_ext <<_ACEOF | |
2379 | /* end confdefs.h. */ | |
2380 | ||
2381 | int | |
2382 | main () | |
2383 | { | |
2384 | ||
2385 | ; | |
2386 | return 0; | |
2387 | } | |
2388 | _ACEOF | |
2389 | ac_clean_files_save=$ac_clean_files | |
2390 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2391 | # Try to create an executable without -o first, disregard a.out. | |
2392 | # It will help us diagnose broken compilers, and finding out an intuition | |
2393 | # of exeext. | |
1995c9ff AK |
2394 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2395 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2396 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
7a197a62 AK |
2397 | # |
2398 | # List of possible output files, starting from the most likely. | |
2399 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2400 | # only as a last resort. b.out is created by i960 compilers. | |
2401 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2402 | # | |
2403 | # The IRIX 6 linker writes into existing files which may not be | |
2404 | # executable, retaining their permissions. Remove them first so a | |
2405 | # subsequent execution test works. | |
2406 | ac_rmfiles= | |
2407 | for ac_file in $ac_files | |
2408 | do | |
2409 | case $ac_file in | |
2410 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2411 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2412 | esac | |
2413 | done | |
2414 | rm -f $ac_rmfiles | |
2415 | ||
2416 | if { (ac_try="$ac_link_default" | |
2417 | case "(($ac_try" in | |
2418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2419 | *) ac_try_echo=$ac_try;; | |
2420 | esac | |
1995c9ff | 2421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2422 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2423 | ac_status=$? |
1995c9ff | 2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2425 | (exit $ac_status); }; then |
7a197a62 AK |
2426 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2427 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2428 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2429 | # so that the user can short-circuit this test for compilers unknown to | |
2430 | # Autoconf. | |
25fbec5b | 2431 | for ac_file in $ac_files '' |
ad6254c5 AK |
2432 | do |
2433 | test -f "$ac_file" || continue | |
2434 | case $ac_file in | |
7a197a62 | 2435 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2436 | ;; |
ad6254c5 | 2437 | [ab].out ) |
8a2fc586 AK |
2438 | # We found the default executable, but exeext='' is most |
2439 | # certainly right. | |
2440 | break;; | |
ad6254c5 | 2441 | *.* ) |
7a197a62 AK |
2442 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2443 | then :; else | |
2444 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2445 | fi | |
2446 | # We set ac_cv_exeext here because the later test for it is not | |
2447 | # safe: cross compilers may not add the suffix if given an `-o' | |
2448 | # argument, so we may need to know it at that point already. | |
2449 | # Even if this section looks crufty: it has the advantage of | |
2450 | # actually working. | |
8a2fc586 | 2451 | break;; |
ad6254c5 | 2452 | * ) |
8a2fc586 | 2453 | break;; |
ad6254c5 AK |
2454 | esac |
2455 | done | |
7a197a62 AK |
2456 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2457 | ||
ad6254c5 | 2458 | else |
25fbec5b AK |
2459 | ac_file='' |
2460 | fi | |
2461 | ||
2462 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2463 | echo "${ECHO_T}$ac_file" >&6; } | |
2464 | if test -z "$ac_file"; then | |
1995c9ff | 2465 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2466 | sed 's/^/| /' conftest.$ac_ext >&5 |
2467 | ||
1995c9ff | 2468 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2469 | See \`config.log' for more details." >&5 |
1995c9ff | 2470 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2471 | See \`config.log' for more details." >&2;} |
2472 | { (exit 77); exit 77; }; } | |
2473 | fi | |
2474 | ||
2475 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2476 | |
7a197a62 | 2477 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2478 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2479 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2480 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2481 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2482 | # If not cross compiling, check that we can run a simple program. | |
2483 | if test "$cross_compiling" != yes; then | |
2484 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2485 | { (case "(($ac_try" in |
2486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2487 | *) ac_try_echo=$ac_try;; | |
2488 | esac | |
1995c9ff | 2489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2490 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2491 | ac_status=$? |
1995c9ff | 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2493 | (exit $ac_status); }; }; then |
2494 | cross_compiling=no | |
795ca3e5 | 2495 | else |
ad6254c5 AK |
2496 | if test "$cross_compiling" = maybe; then |
2497 | cross_compiling=yes | |
2498 | else | |
1995c9ff | 2499 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2500 | If you meant to cross compile, use \`--host'. |
2501 | See \`config.log' for more details." >&5 | |
1995c9ff | 2502 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2503 | If you meant to cross compile, use \`--host'. |
2504 | See \`config.log' for more details." >&2;} | |
2505 | { (exit 1); exit 1; }; } | |
2506 | fi | |
795ca3e5 | 2507 | fi |
80992638 | 2508 | fi |
1995c9ff AK |
2509 | { echo "$as_me:$LINENO: result: yes" >&5 |
2510 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 AK |
2511 | |
2512 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2513 | ac_clean_files=$ac_clean_files_save | |
7a197a62 | 2514 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2515 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2516 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2517 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2518 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2519 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2520 | |
1995c9ff AK |
2521 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2522 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2523 | if { (ac_try="$ac_link" |
2524 | case "(($ac_try" in | |
2525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2526 | *) ac_try_echo=$ac_try;; | |
2527 | esac | |
1995c9ff | 2528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2529 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2530 | ac_status=$? |
1995c9ff | 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2532 | (exit $ac_status); }; then |
2533 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2534 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2535 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2536 | # `rm'. | |
2537 | for ac_file in conftest.exe conftest conftest.*; do | |
2538 | test -f "$ac_file" || continue | |
2539 | case $ac_file in | |
7a197a62 | 2540 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2541 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2542 | break;; |
ad6254c5 AK |
2543 | * ) break;; |
2544 | esac | |
2545 | done | |
80992638 | 2546 | else |
1995c9ff | 2547 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2548 | See \`config.log' for more details." >&5 |
1995c9ff | 2549 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2550 | See \`config.log' for more details." >&2;} |
2551 | { (exit 1); exit 1; }; } | |
2552 | fi | |
2553 | ||
2554 | rm -f conftest$ac_cv_exeext | |
1995c9ff AK |
2555 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2556 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2557 | |
2558 | rm -f conftest.$ac_ext | |
2559 | EXEEXT=$ac_cv_exeext | |
2560 | ac_exeext=$EXEEXT | |
1995c9ff AK |
2561 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2562 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2563 | if test "${ac_cv_objext+set}" = set; then |
1995c9ff | 2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2565 | else |
ad6254c5 | 2566 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2567 | /* confdefs.h. */ |
2568 | _ACEOF | |
2569 | cat confdefs.h >>conftest.$ac_ext | |
2570 | cat >>conftest.$ac_ext <<_ACEOF | |
2571 | /* end confdefs.h. */ | |
2572 | ||
2573 | int | |
2574 | main () | |
2575 | { | |
2576 | ||
2577 | ; | |
2578 | return 0; | |
2579 | } | |
2580 | _ACEOF | |
2581 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2582 | if { (ac_try="$ac_compile" |
2583 | case "(($ac_try" in | |
2584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2585 | *) ac_try_echo=$ac_try;; | |
2586 | esac | |
1995c9ff | 2587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2588 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2589 | ac_status=$? |
1995c9ff | 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2591 | (exit $ac_status); }; then |
7a197a62 AK |
2592 | for ac_file in conftest.o conftest.obj conftest.*; do |
2593 | test -f "$ac_file" || continue; | |
ad6254c5 | 2594 | case $ac_file in |
7a197a62 | 2595 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2596 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2597 | break;; | |
2598 | esac | |
2599 | done | |
2600 | else | |
1995c9ff | 2601 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2602 | sed 's/^/| /' conftest.$ac_ext >&5 |
2603 | ||
1995c9ff | 2604 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2605 | See \`config.log' for more details." >&5 |
1995c9ff | 2606 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2607 | See \`config.log' for more details." >&2;} |
2608 | { (exit 1); exit 1; }; } | |
2609 | fi | |
2610 | ||
2611 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2612 | fi | |
1995c9ff AK |
2613 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2614 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2615 | OBJEXT=$ac_cv_objext |
2616 | ac_objext=$OBJEXT | |
1995c9ff AK |
2617 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2618 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2619 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1995c9ff | 2620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2621 | else |
2622 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2623 | /* confdefs.h. */ |
2624 | _ACEOF | |
2625 | cat confdefs.h >>conftest.$ac_ext | |
2626 | cat >>conftest.$ac_ext <<_ACEOF | |
2627 | /* end confdefs.h. */ | |
2628 | ||
2629 | int | |
2630 | main () | |
2631 | { | |
2632 | #ifndef __GNUC__ | |
2633 | choke me | |
2634 | #endif | |
80992638 | 2635 | |
ad6254c5 AK |
2636 | ; |
2637 | return 0; | |
2638 | } | |
2639 | _ACEOF | |
2640 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2641 | if { (ac_try="$ac_compile" |
2642 | case "(($ac_try" in | |
2643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2644 | *) ac_try_echo=$ac_try;; | |
2645 | esac | |
1995c9ff | 2646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2647 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2648 | ac_status=$? |
8a2fc586 AK |
2649 | grep -v '^ *+' conftest.er1 >conftest.err |
2650 | rm -f conftest.er1 | |
2651 | cat conftest.err >&5 | |
1995c9ff | 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2653 | (exit $ac_status); } && { |
2654 | test -z "$ac_c_werror_flag" || | |
2655 | test ! -s conftest.err | |
2656 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2657 | ac_compiler_gnu=yes |
80992638 | 2658 | else |
1995c9ff | 2659 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2660 | sed 's/^/| /' conftest.$ac_ext >&5 |
2661 | ||
7a197a62 | 2662 | ac_compiler_gnu=no |
8106cdd5 | 2663 | fi |
7a197a62 AK |
2664 | |
2665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2666 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2667 | |
ad6254c5 | 2668 | fi |
1995c9ff AK |
2669 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2670 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2671 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2672 | ac_test_CFLAGS=${CFLAGS+set} |
2673 | ac_save_CFLAGS=$CFLAGS | |
1995c9ff AK |
2674 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2675 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2676 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1995c9ff | 2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2678 | else |
7a197a62 AK |
2679 | ac_save_c_werror_flag=$ac_c_werror_flag |
2680 | ac_c_werror_flag=yes | |
2681 | ac_cv_prog_cc_g=no | |
2682 | CFLAGS="-g" | |
2683 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2684 | /* confdefs.h. */ |
2685 | _ACEOF | |
2686 | cat confdefs.h >>conftest.$ac_ext | |
2687 | cat >>conftest.$ac_ext <<_ACEOF | |
2688 | /* end confdefs.h. */ | |
2689 | ||
2690 | int | |
2691 | main () | |
2692 | { | |
2693 | ||
2694 | ; | |
2695 | return 0; | |
2696 | } | |
2697 | _ACEOF | |
2698 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2699 | if { (ac_try="$ac_compile" |
2700 | case "(($ac_try" in | |
2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2702 | *) ac_try_echo=$ac_try;; | |
2703 | esac | |
1995c9ff | 2704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2705 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2706 | ac_status=$? |
8a2fc586 AK |
2707 | grep -v '^ *+' conftest.er1 >conftest.err |
2708 | rm -f conftest.er1 | |
2709 | cat conftest.err >&5 | |
1995c9ff | 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2711 | (exit $ac_status); } && { |
2712 | test -z "$ac_c_werror_flag" || | |
2713 | test ! -s conftest.err | |
2714 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2715 | ac_cv_prog_cc_g=yes |
2716 | else | |
1995c9ff | 2717 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
2719 | ||
2720 | CFLAGS="" | |
2721 | cat >conftest.$ac_ext <<_ACEOF | |
2722 | /* confdefs.h. */ | |
2723 | _ACEOF | |
2724 | cat confdefs.h >>conftest.$ac_ext | |
2725 | cat >>conftest.$ac_ext <<_ACEOF | |
2726 | /* end confdefs.h. */ | |
2727 | ||
2728 | int | |
2729 | main () | |
2730 | { | |
2731 | ||
2732 | ; | |
2733 | return 0; | |
2734 | } | |
2735 | _ACEOF | |
2736 | rm -f conftest.$ac_objext | |
2737 | if { (ac_try="$ac_compile" | |
2738 | case "(($ac_try" in | |
2739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2740 | *) ac_try_echo=$ac_try;; | |
2741 | esac | |
1995c9ff | 2742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2743 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2744 | ac_status=$? |
7a197a62 AK |
2745 | grep -v '^ *+' conftest.er1 >conftest.err |
2746 | rm -f conftest.er1 | |
2747 | cat conftest.err >&5 | |
1995c9ff | 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2749 | (exit $ac_status); } && { |
2750 | test -z "$ac_c_werror_flag" || | |
2751 | test ! -s conftest.err | |
2752 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2753 | : |
2754 | else | |
1995c9ff | 2755 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2756 | sed 's/^/| /' conftest.$ac_ext >&5 |
2757 | ||
2758 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2759 | CFLAGS="-g" | |
2760 | cat >conftest.$ac_ext <<_ACEOF | |
2761 | /* confdefs.h. */ | |
2762 | _ACEOF | |
2763 | cat confdefs.h >>conftest.$ac_ext | |
2764 | cat >>conftest.$ac_ext <<_ACEOF | |
2765 | /* end confdefs.h. */ | |
2766 | ||
2767 | int | |
2768 | main () | |
2769 | { | |
2770 | ||
2771 | ; | |
2772 | return 0; | |
2773 | } | |
2774 | _ACEOF | |
2775 | rm -f conftest.$ac_objext | |
2776 | if { (ac_try="$ac_compile" | |
2777 | case "(($ac_try" in | |
2778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2779 | *) ac_try_echo=$ac_try;; | |
2780 | esac | |
1995c9ff | 2781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2782 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2783 | ac_status=$? |
7a197a62 AK |
2784 | grep -v '^ *+' conftest.er1 >conftest.err |
2785 | rm -f conftest.er1 | |
2786 | cat conftest.err >&5 | |
1995c9ff | 2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2788 | (exit $ac_status); } && { |
2789 | test -z "$ac_c_werror_flag" || | |
2790 | test ! -s conftest.err | |
2791 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2792 | ac_cv_prog_cc_g=yes |
2793 | else | |
1995c9ff | 2794 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2795 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2796 | |
7a197a62 AK |
2797 | |
2798 | fi | |
2799 | ||
2800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2801 | fi | |
2802 | ||
2803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2804 | fi |
7a197a62 AK |
2805 | |
2806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2807 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2808 | fi |
1995c9ff AK |
2809 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2810 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2811 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2812 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2813 | elif test $ac_cv_prog_cc_g = yes; then |
2814 | if test "$GCC" = yes; then | |
2815 | CFLAGS="-g -O2" | |
2816 | else | |
2817 | CFLAGS="-g" | |
2818 | fi | |
2819 | else | |
2820 | if test "$GCC" = yes; then | |
2821 | CFLAGS="-O2" | |
2822 | else | |
2823 | CFLAGS= | |
2824 | fi | |
2825 | fi | |
1995c9ff AK |
2826 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2827 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2828 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
1995c9ff | 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2830 | else |
7a197a62 | 2831 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2832 | ac_save_CC=$CC |
2833 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2834 | /* confdefs.h. */ |
2835 | _ACEOF | |
2836 | cat confdefs.h >>conftest.$ac_ext | |
2837 | cat >>conftest.$ac_ext <<_ACEOF | |
2838 | /* end confdefs.h. */ | |
2839 | #include <stdarg.h> | |
2840 | #include <stdio.h> | |
2841 | #include <sys/types.h> | |
2842 | #include <sys/stat.h> | |
2843 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2844 | struct buf { int x; }; | |
2845 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2846 | static char *e (p, i) | |
2847 | char **p; | |
2848 | int i; | |
2849 | { | |
2850 | return p[i]; | |
2851 | } | |
2852 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2853 | { | |
2854 | char *s; | |
2855 | va_list v; | |
2856 | va_start (v,p); | |
2857 | s = g (p, va_arg (v,int)); | |
2858 | va_end (v); | |
2859 | return s; | |
2860 | } | |
8a2fc586 AK |
2861 | |
2862 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2863 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2864 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2865 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2866 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2867 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2868 | that's true only with -std. */ |
8a2fc586 AK |
2869 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2870 | ||
7a197a62 AK |
2871 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2872 | inside strings and character constants. */ | |
2873 | #define FOO(x) 'x' | |
2874 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2875 | ||
ad6254c5 AK |
2876 | int test (int i, double x); |
2877 | struct s1 {int (*f) (int a);}; | |
2878 | struct s2 {int (*f) (double a);}; | |
2879 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2880 | int argc; | |
2881 | char **argv; | |
2882 | int | |
2883 | main () | |
2884 | { | |
2885 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2886 | ; | |
2887 | return 0; | |
2888 | } | |
2889 | _ACEOF | |
7a197a62 AK |
2890 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2891 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2892 | do |
2893 | CC="$ac_save_CC $ac_arg" | |
2894 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2895 | if { (ac_try="$ac_compile" |
2896 | case "(($ac_try" in | |
2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2898 | *) ac_try_echo=$ac_try;; | |
2899 | esac | |
1995c9ff | 2900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2901 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2902 | ac_status=$? |
8a2fc586 AK |
2903 | grep -v '^ *+' conftest.er1 >conftest.err |
2904 | rm -f conftest.er1 | |
2905 | cat conftest.err >&5 | |
1995c9ff | 2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2907 | (exit $ac_status); } && { |
2908 | test -z "$ac_c_werror_flag" || | |
2909 | test ! -s conftest.err | |
2910 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 2911 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 2912 | else |
1995c9ff | 2913 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2914 | sed 's/^/| /' conftest.$ac_ext >&5 |
2915 | ||
7a197a62 | 2916 | |
ad6254c5 | 2917 | fi |
7a197a62 AK |
2918 | |
2919 | rm -f core conftest.err conftest.$ac_objext | |
2920 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2921 | done |
7a197a62 | 2922 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2923 | CC=$ac_save_CC |
2924 | ||
2925 | fi | |
7a197a62 AK |
2926 | # AC_CACHE_VAL |
2927 | case "x$ac_cv_prog_cc_c89" in | |
2928 | x) | |
1995c9ff AK |
2929 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2930 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 2931 | xno) |
1995c9ff AK |
2932 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2933 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2934 | *) |
7a197a62 | 2935 | CC="$CC $ac_cv_prog_cc_c89" |
1995c9ff AK |
2936 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2937 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2938 | esac |
2939 | ||
ad6254c5 | 2940 | |
ad6254c5 AK |
2941 | ac_ext=c |
2942 | ac_cpp='$CPP $CPPFLAGS' | |
2943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 2946 | |
d0191583 JM |
2947 | |
2948 | ||
2949 | ac_ext=c | |
2950 | ac_cpp='$CPP $CPPFLAGS' | |
2951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2954 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2955 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
2956 | # On Suns, sometimes $CPP names a directory. | |
2957 | if test -n "$CPP" && test -d "$CPP"; then | |
2958 | CPP= | |
2959 | fi | |
2960 | if test -z "$CPP"; then | |
2961 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1995c9ff | 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2963 | else |
d0191583 JM |
2964 | # Double quotes because CPP needs to be expanded |
2965 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2966 | do | |
2967 | ac_preproc_ok=false | |
2968 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 2969 | do |
d0191583 JM |
2970 | # Use a header file that comes with gcc, so configuring glibc |
2971 | # with a fresh cross-compiler works. | |
2972 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2973 | # <limits.h> exists even on freestanding compilers. | |
2974 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2975 | # not just through cpp. "Syntax error" is here to catch this case. | |
2976 | cat >conftest.$ac_ext <<_ACEOF | |
2977 | /* confdefs.h. */ | |
2978 | _ACEOF | |
2979 | cat confdefs.h >>conftest.$ac_ext | |
2980 | cat >>conftest.$ac_ext <<_ACEOF | |
2981 | /* end confdefs.h. */ | |
2982 | #ifdef __STDC__ | |
2983 | # include <limits.h> | |
2984 | #else | |
2985 | # include <assert.h> | |
2986 | #endif | |
2987 | Syntax error | |
2988 | _ACEOF | |
2989 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2990 | case "(($ac_try" in | |
2991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2992 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 2993 | esac |
d0191583 JM |
2994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2996 | ac_status=$? | |
2997 | grep -v '^ *+' conftest.er1 >conftest.err | |
2998 | rm -f conftest.er1 | |
2999 | cat conftest.err >&5 | |
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3001 | (exit $ac_status); } >/dev/null && { | |
3002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3003 | test ! -s conftest.err | |
3004 | }; then | |
3005 | : | |
3006 | else | |
3007 | echo "$as_me: failed program was:" >&5 | |
3008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3009 | |
d0191583 JM |
3010 | # Broken: fails on valid input. |
3011 | continue | |
795ca3e5 | 3012 | fi |
795ca3e5 | 3013 | |
d0191583 | 3014 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3015 | |
d0191583 JM |
3016 | # OK, works on sane cases. Now check whether nonexistent headers |
3017 | # can be detected and how. | |
3018 | cat >conftest.$ac_ext <<_ACEOF | |
3019 | /* confdefs.h. */ | |
3020 | _ACEOF | |
3021 | cat confdefs.h >>conftest.$ac_ext | |
3022 | cat >>conftest.$ac_ext <<_ACEOF | |
3023 | /* end confdefs.h. */ | |
3024 | #include <ac_nonexistent.h> | |
3025 | _ACEOF | |
3026 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3027 | case "(($ac_try" in | |
3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3029 | *) ac_try_echo=$ac_try;; | |
3030 | esac | |
3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3032 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3033 | ac_status=$? | |
3034 | grep -v '^ *+' conftest.er1 >conftest.err | |
3035 | rm -f conftest.er1 | |
3036 | cat conftest.err >&5 | |
3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3038 | (exit $ac_status); } >/dev/null && { | |
3039 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3040 | test ! -s conftest.err | |
3041 | }; then | |
3042 | # Broken: success on invalid input. | |
3043 | continue | |
3044 | else | |
3045 | echo "$as_me: failed program was:" >&5 | |
3046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3047 | |
d0191583 JM |
3048 | # Passes both tests. |
3049 | ac_preproc_ok=: | |
3050 | break | |
3051 | fi | |
795ca3e5 | 3052 | |
d0191583 JM |
3053 | rm -f conftest.err conftest.$ac_ext |
3054 | ||
3055 | done | |
3056 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3057 | rm -f conftest.err conftest.$ac_ext | |
3058 | if $ac_preproc_ok; then | |
3059 | break | |
795ca3e5 AK |
3060 | fi |
3061 | ||
d0191583 JM |
3062 | done |
3063 | ac_cv_prog_CPP=$CPP | |
3064 | ||
3065 | fi | |
3066 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3067 | else |
d0191583 JM |
3068 | ac_cv_prog_CPP=$CPP |
3069 | fi | |
3070 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
3071 | echo "${ECHO_T}$CPP" >&6; } | |
3072 | ac_preproc_ok=false | |
3073 | for ac_c_preproc_warn_flag in '' yes | |
3074 | do | |
3075 | # Use a header file that comes with gcc, so configuring glibc | |
3076 | # with a fresh cross-compiler works. | |
3077 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3078 | # <limits.h> exists even on freestanding compilers. | |
3079 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3080 | # not just through cpp. "Syntax error" is here to catch this case. | |
3081 | cat >conftest.$ac_ext <<_ACEOF | |
3082 | /* confdefs.h. */ | |
ad6254c5 | 3083 | _ACEOF |
d0191583 JM |
3084 | cat confdefs.h >>conftest.$ac_ext |
3085 | cat >>conftest.$ac_ext <<_ACEOF | |
3086 | /* end confdefs.h. */ | |
3087 | #ifdef __STDC__ | |
3088 | # include <limits.h> | |
3089 | #else | |
3090 | # include <assert.h> | |
3091 | #endif | |
3092 | Syntax error | |
3093 | _ACEOF | |
3094 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3095 | case "(($ac_try" in | |
3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3097 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3098 | esac |
d0191583 JM |
3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3101 | ac_status=$? | |
3102 | grep -v '^ *+' conftest.er1 >conftest.err | |
3103 | rm -f conftest.er1 | |
3104 | cat conftest.err >&5 | |
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3106 | (exit $ac_status); } >/dev/null && { | |
3107 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3108 | test ! -s conftest.err | |
3109 | }; then | |
3110 | : | |
795ca3e5 | 3111 | else |
d0191583 JM |
3112 | echo "$as_me: failed program was:" >&5 |
3113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3114 | ||
3115 | # Broken: fails on valid input. | |
3116 | continue | |
795ca3e5 AK |
3117 | fi |
3118 | ||
d0191583 JM |
3119 | rm -f conftest.err conftest.$ac_ext |
3120 | ||
3121 | # OK, works on sane cases. Now check whether nonexistent headers | |
3122 | # can be detected and how. | |
3123 | cat >conftest.$ac_ext <<_ACEOF | |
3124 | /* confdefs.h. */ | |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
3129 | #include <ac_nonexistent.h> | |
3130 | _ACEOF | |
3131 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3132 | case "(($ac_try" in | |
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3134 | *) ac_try_echo=$ac_try;; | |
3135 | esac | |
3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3137 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3138 | ac_status=$? | |
3139 | grep -v '^ *+' conftest.er1 >conftest.err | |
3140 | rm -f conftest.er1 | |
3141 | cat conftest.err >&5 | |
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3143 | (exit $ac_status); } >/dev/null && { | |
3144 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3145 | test ! -s conftest.err | |
3146 | }; then | |
3147 | # Broken: success on invalid input. | |
3148 | continue | |
795ca3e5 | 3149 | else |
d0191583 JM |
3150 | echo "$as_me: failed program was:" >&5 |
3151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 3152 | |
d0191583 JM |
3153 | # Passes both tests. |
3154 | ac_preproc_ok=: | |
3155 | break | |
795ca3e5 | 3156 | fi |
d0191583 JM |
3157 | |
3158 | rm -f conftest.err conftest.$ac_ext | |
3159 | ||
3160 | done | |
3161 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3162 | rm -f conftest.err conftest.$ac_ext | |
3163 | if $ac_preproc_ok; then | |
3164 | : | |
8106cdd5 | 3165 | else |
d0191583 JM |
3166 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3167 | See \`config.log' for more details." >&5 | |
3168 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3169 | See \`config.log' for more details." >&2;} | |
3170 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3171 | fi |
3172 | ||
d0191583 JM |
3173 | ac_ext=c |
3174 | ac_cpp='$CPP $CPPFLAGS' | |
3175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3178 | ||
7a197a62 | 3179 | |
d0191583 JM |
3180 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3181 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3182 | if test "${ac_cv_path_GREP+set}" = set; then | |
1995c9ff | 3183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 3184 | else |
d0191583 JM |
3185 | # Extract the first word of "grep ggrep" to use in msg output |
3186 | if test -z "$GREP"; then | |
3187 | set dummy grep ggrep; ac_prog_name=$2 | |
3188 | if test "${ac_cv_path_GREP+set}" = set; then | |
3189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6254c5 | 3190 | else |
d0191583 JM |
3191 | ac_path_GREP_found=false |
3192 | # Loop through the user's path and test for each of PROGNAME-LIST | |
ad6254c5 | 3193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
d0191583 | 3194 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3195 | do |
3196 | IFS=$as_save_IFS | |
3197 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3198 | for ac_prog in grep ggrep; do |
ad6254c5 | 3199 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0191583 JM |
3200 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3201 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3202 | # Check for GNU ac_path_GREP and select it if it is found. | |
3203 | # Check for GNU $ac_path_GREP | |
3204 | case `"$ac_path_GREP" --version 2>&1` in | |
3205 | *GNU*) | |
3206 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3207 | *) | |
3208 | ac_count=0 | |
3209 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3210 | while : | |
3211 | do | |
3212 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3213 | mv "conftest.tmp" "conftest.in" | |
3214 | cp "conftest.in" "conftest.nl" | |
3215 | echo 'GREP' >> "conftest.nl" | |
3216 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3217 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3218 | ac_count=`expr $ac_count + 1` | |
3219 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3220 | # Best one so far, save it but keep looking for a better one | |
3221 | ac_cv_path_GREP="$ac_path_GREP" | |
3222 | ac_path_GREP_max=$ac_count | |
3223 | fi | |
3224 | # 10*(2^10) chars as input seems more than enough | |
3225 | test $ac_count -gt 10 && break | |
3226 | done | |
3227 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3228 | esac | |
3229 | ||
3230 | ||
3231 | $ac_path_GREP_found && break 3 | |
3232 | done | |
ad6254c5 | 3233 | done |
d0191583 | 3234 | |
795ca3e5 | 3235 | done |
7a197a62 | 3236 | IFS=$as_save_IFS |
8106cdd5 | 3237 | |
d0191583 | 3238 | |
795ca3e5 | 3239 | fi |
d0191583 JM |
3240 | |
3241 | GREP="$ac_cv_path_GREP" | |
3242 | if test -z "$GREP"; then | |
3243 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3244 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3245 | { (exit 1); exit 1; }; } | |
80992638 | 3246 | fi |
d0191583 | 3247 | |
80992638 | 3248 | else |
d0191583 | 3249 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3250 | fi |
8106cdd5 | 3251 | |
d0191583 | 3252 | |
80992638 | 3253 | fi |
d0191583 JM |
3254 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3255 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3256 | GREP="$ac_cv_path_GREP" | |
795ca3e5 | 3257 | |
d0191583 JM |
3258 | |
3259 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3260 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3261 | if test "${ac_cv_path_EGREP+set}" = set; then | |
1995c9ff | 3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3263 | else |
d0191583 JM |
3264 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3265 | then ac_cv_path_EGREP="$GREP -E" | |
3266 | else | |
3267 | # Extract the first word of "egrep" to use in msg output | |
3268 | if test -z "$EGREP"; then | |
3269 | set dummy egrep; ac_prog_name=$2 | |
3270 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3272 | else | |
3273 | ac_path_EGREP_found=false | |
3274 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3276 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
8a2fc586 AK |
3277 | do |
3278 | IFS=$as_save_IFS | |
3279 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3280 | for ac_prog in egrep; do |
8a2fc586 | 3281 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0191583 JM |
3282 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3283 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3284 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3285 | # Check for GNU $ac_path_EGREP | |
3286 | case `"$ac_path_EGREP" --version 2>&1` in | |
3287 | *GNU*) | |
3288 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3289 | *) | |
3290 | ac_count=0 | |
3291 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3292 | while : | |
3293 | do | |
3294 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3295 | mv "conftest.tmp" "conftest.in" | |
3296 | cp "conftest.in" "conftest.nl" | |
3297 | echo 'EGREP' >> "conftest.nl" | |
3298 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3299 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3300 | ac_count=`expr $ac_count + 1` | |
3301 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3302 | # Best one so far, save it but keep looking for a better one | |
3303 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3304 | ac_path_EGREP_max=$ac_count | |
3305 | fi | |
3306 | # 10*(2^10) chars as input seems more than enough | |
3307 | test $ac_count -gt 10 && break | |
3308 | done | |
3309 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3310 | esac |
8a2fc586 | 3311 | |
7a197a62 | 3312 | |
d0191583 JM |
3313 | $ac_path_EGREP_found && break 3 |
3314 | done | |
8a2fc586 | 3315 | done |
d0191583 | 3316 | |
8a2fc586 | 3317 | done |
7a197a62 | 3318 | IFS=$as_save_IFS |
8a2fc586 | 3319 | |
7a197a62 | 3320 | |
d0191583 | 3321 | fi |
ad6254c5 | 3322 | |
d0191583 JM |
3323 | EGREP="$ac_cv_path_EGREP" |
3324 | if test -z "$EGREP"; then | |
3325 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3326 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3327 | { (exit 1); exit 1; }; } | |
3328 | fi | |
ad6254c5 | 3329 | |
d0191583 JM |
3330 | else |
3331 | ac_cv_path_EGREP=$EGREP | |
3332 | fi | |
ad6254c5 AK |
3333 | |
3334 | ||
d0191583 JM |
3335 | fi |
3336 | fi | |
3337 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3338 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3339 | EGREP="$ac_cv_path_EGREP" | |
ad6254c5 AK |
3340 | |
3341 | ||
d0191583 JM |
3342 | if test $ac_cv_c_compiler_gnu = yes; then |
3343 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
3344 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
3345 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
1995c9ff | 3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3347 | else |
d0191583 | 3348 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3349 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3350 | /* confdefs.h. */ |
3351 | _ACEOF | |
3352 | cat confdefs.h >>conftest.$ac_ext | |
3353 | cat >>conftest.$ac_ext <<_ACEOF | |
3354 | /* end confdefs.h. */ | |
d0191583 JM |
3355 | #include <sgtty.h> |
3356 | Autoconf TIOCGETP | |
ad6254c5 | 3357 | _ACEOF |
d0191583 JM |
3358 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3359 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3360 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3361 | else |
d0191583 | 3362 | ac_cv_prog_gcc_traditional=no |
80992638 | 3363 | fi |
d0191583 | 3364 | rm -f conftest* |
ad6254c5 | 3365 | |
8106cdd5 | 3366 | |
d0191583 JM |
3367 | if test $ac_cv_prog_gcc_traditional = no; then |
3368 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3369 | /* confdefs.h. */ |
3370 | _ACEOF | |
3371 | cat confdefs.h >>conftest.$ac_ext | |
3372 | cat >>conftest.$ac_ext <<_ACEOF | |
3373 | /* end confdefs.h. */ | |
d0191583 JM |
3374 | #include <termio.h> |
3375 | Autoconf TCGETA | |
ad6254c5 | 3376 | _ACEOF |
d0191583 JM |
3377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3378 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3379 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3380 | fi |
d0191583 | 3381 | rm -f conftest* |
795ca3e5 | 3382 | |
d0191583 | 3383 | fi |
795ca3e5 | 3384 | fi |
d0191583 JM |
3385 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3386 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
3387 | if test $ac_cv_prog_gcc_traditional = yes; then | |
3388 | CC="$CC -traditional" | |
3389 | fi | |
795ca3e5 AK |
3390 | fi |
3391 | ||
d0191583 JM |
3392 | # Find a good install program. We prefer a C program (faster), |
3393 | # so one script is as good as another. But avoid the broken or | |
3394 | # incompatible versions: | |
3395 | # SysV /etc/install, /usr/sbin/install | |
3396 | # SunOS /usr/etc/install | |
3397 | # IRIX /sbin/install | |
3398 | # AIX /bin/install | |
3399 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3400 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3401 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3402 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3403 | # OS/2's system install, which has a completely different semantic | |
3404 | # ./install, which can be erroneously created by make from ./install.sh. | |
3405 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3406 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
3407 | if test -z "$INSTALL"; then | |
3408 | if test "${ac_cv_path_install+set}" = set; then | |
1995c9ff | 3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3410 | else |
d0191583 JM |
3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3412 | for as_dir in $PATH | |
3413 | do | |
3414 | IFS=$as_save_IFS | |
3415 | test -z "$as_dir" && as_dir=. | |
3416 | # Account for people who put trailing slashes in PATH elements. | |
3417 | case $as_dir/ in | |
3418 | ./ | .// | /cC/* | \ | |
3419 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3420 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3421 | /usr/ucb/* ) ;; | |
3422 | *) | |
3423 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3424 | # Don't use installbsd from OSF since it installs stuff as root | |
3425 | # by default. | |
3426 | for ac_prog in ginstall scoinst install; do | |
3427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3428 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3429 | if test $ac_prog = install && | |
3430 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3431 | # AIX install. It has an incompatible calling convention. | |
3432 | : | |
3433 | elif test $ac_prog = install && | |
3434 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3435 | # program-specific install script used by HP pwplus--don't use. | |
3436 | : | |
3437 | else | |
3438 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3439 | break 3 | |
3440 | fi | |
3441 | fi | |
3442 | done | |
3443 | done | |
3444 | ;; | |
3445 | esac | |
3446 | done | |
3447 | IFS=$as_save_IFS | |
80992638 | 3448 | |
d0191583 JM |
3449 | |
3450 | fi | |
3451 | if test "${ac_cv_path_install+set}" = set; then | |
3452 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3453 | else |
d0191583 JM |
3454 | # As a last resort, use the slow shell script. Don't cache a |
3455 | # value for INSTALL within a source directory, because that will | |
3456 | # break other packages using the cache if that directory is | |
3457 | # removed, or if the value is a relative name. | |
3458 | INSTALL=$ac_install_sh | |
7a197a62 | 3459 | fi |
d0191583 JM |
3460 | fi |
3461 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3462 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3463 | |
d0191583 JM |
3464 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3465 | # It thinks the first close brace ends the variable substitution. | |
3466 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3467 | |
d0191583 | 3468 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3469 | |
d0191583 JM |
3470 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3471 | ||
3472 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3473 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
3474 | LN_S=$as_ln_s | |
3475 | if test "$LN_S" = "ln -s"; then | |
3476 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6; } | |
3478 | else | |
3479 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3480 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3481 | fi |
d0191583 JM |
3482 | |
3483 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3484 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3485 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3486 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a197a62 | 3488 | else |
d0191583 JM |
3489 | cat >conftest.make <<\_ACEOF |
3490 | SHELL = /bin/sh | |
3491 | all: | |
3492 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3493 | _ACEOF | |
3494 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3495 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3496 | *@@@%%%=?*=@@@%%%*) | |
3497 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3498 | *) | |
3499 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3500 | esac | |
3501 | rm -f conftest.make | |
ad6254c5 | 3502 | fi |
d0191583 JM |
3503 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3504 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3505 | echo "${ECHO_T}yes" >&6; } | |
3506 | SET_MAKE= | |
3507 | else | |
3508 | { echo "$as_me:$LINENO: result: no" >&5 | |
3509 | echo "${ECHO_T}no" >&6; } | |
3510 | SET_MAKE="MAKE=${MAKE-make}" | |
795ca3e5 | 3511 | fi |
8106cdd5 | 3512 | |
d0191583 JM |
3513 | if test -n "$ac_tool_prefix"; then |
3514 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3515 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3518 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3520 | else | |
3521 | if test -n "$RANLIB"; then | |
3522 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3523 | else | |
3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3525 | for as_dir in $PATH | |
3526 | do | |
3527 | IFS=$as_save_IFS | |
3528 | test -z "$as_dir" && as_dir=. | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3531 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3533 | break 2 | |
3534 | fi | |
3535 | done | |
3536 | done | |
3537 | IFS=$as_save_IFS | |
8106cdd5 | 3538 | |
795ca3e5 | 3539 | fi |
d0191583 JM |
3540 | fi |
3541 | RANLIB=$ac_cv_prog_RANLIB | |
3542 | if test -n "$RANLIB"; then | |
3543 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3544 | echo "${ECHO_T}$RANLIB" >&6; } | |
3545 | else | |
3546 | { echo "$as_me:$LINENO: result: no" >&5 | |
3547 | echo "${ECHO_T}no" >&6; } | |
3548 | fi | |
3549 | ||
8106cdd5 | 3550 | |
ad6254c5 | 3551 | fi |
d0191583 JM |
3552 | if test -z "$ac_cv_prog_RANLIB"; then |
3553 | ac_ct_RANLIB=$RANLIB | |
3554 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3555 | set dummy ranlib; ac_word=$2 | |
3556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3558 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
1995c9ff | 3559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3560 | else |
d0191583 JM |
3561 | if test -n "$ac_ct_RANLIB"; then |
3562 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3563 | else | |
3564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3565 | for as_dir in $PATH | |
8106cdd5 | 3566 | do |
d0191583 JM |
3567 | IFS=$as_save_IFS |
3568 | test -z "$as_dir" && as_dir=. | |
3569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3571 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3573 | break 2 | |
3574 | fi | |
3575 | done | |
3576 | done | |
3577 | IFS=$as_save_IFS | |
3578 | ||
3579 | fi | |
3580 | fi | |
3581 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3582 | if test -n "$ac_ct_RANLIB"; then | |
3583 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3584 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3585 | else |
d0191583 JM |
3586 | { echo "$as_me:$LINENO: result: no" >&5 |
3587 | echo "${ECHO_T}no" >&6; } | |
3588 | fi | |
ad6254c5 | 3589 | |
d0191583 JM |
3590 | if test "x$ac_ct_RANLIB" = x; then |
3591 | RANLIB=":" | |
3592 | else | |
3593 | case $cross_compiling:$ac_tool_warned in | |
3594 | yes:) | |
3595 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3596 | whose name does not start with the host triplet. If you think this | |
3597 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3598 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3599 | whose name does not start with the host triplet. If you think this | |
3600 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3601 | ac_tool_warned=yes ;; | |
3602 | esac | |
3603 | RANLIB=$ac_ct_RANLIB | |
3604 | fi | |
3605 | else | |
3606 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3607 | fi |
7a197a62 | 3608 | |
d0191583 JM |
3609 | # Extract the first word of "cflow", so it can be a program name with args. |
3610 | set dummy cflow; ac_word=$2 | |
3611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3613 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then | |
3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3615 | else | |
3616 | case $CFLOW_CMD in | |
3617 | [\\/]* | ?:[\\/]*) | |
3618 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3619 | ;; | |
3620 | *) | |
3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3622 | for as_dir in $PATH | |
3623 | do | |
3624 | IFS=$as_save_IFS | |
3625 | test -z "$as_dir" && as_dir=. | |
3626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3628 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
3629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3630 | break 2 | |
3631 | fi | |
3632 | done | |
3633 | done | |
3634 | IFS=$as_save_IFS | |
ad6254c5 | 3635 | |
d0191583 | 3636 | ;; |
7a197a62 | 3637 | esac |
d0191583 JM |
3638 | fi |
3639 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3640 | if test -n "$CFLOW_CMD"; then | |
3641 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 | |
3642 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3643 | else |
d0191583 JM |
3644 | { echo "$as_me:$LINENO: result: no" >&5 |
3645 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3646 | fi |
7a197a62 | 3647 | |
ad6254c5 | 3648 | |
d0191583 JM |
3649 | # Extract the first word of "cscope", so it can be a program name with args. |
3650 | set dummy cscope; ac_word=$2 | |
3651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3653 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then | |
3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3655 | else | |
3656 | case $CSCOPE_CMD in | |
3657 | [\\/]* | ?:[\\/]*) | |
3658 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3659 | ;; | |
3660 | *) | |
3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3662 | for as_dir in $PATH | |
3663 | do | |
3664 | IFS=$as_save_IFS | |
3665 | test -z "$as_dir" && as_dir=. | |
3666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3668 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
3669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3670 | break 2 | |
3671 | fi | |
795ca3e5 | 3672 | done |
d0191583 JM |
3673 | done |
3674 | IFS=$as_save_IFS | |
795ca3e5 | 3675 | |
d0191583 JM |
3676 | ;; |
3677 | esac | |
ad6254c5 | 3678 | fi |
d0191583 JM |
3679 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3680 | if test -n "$CSCOPE_CMD"; then | |
3681 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 | |
3682 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3683 | else |
d0191583 JM |
3684 | { echo "$as_me:$LINENO: result: no" >&5 |
3685 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3686 | fi |
ad6254c5 | 3687 | |
7a197a62 | 3688 | |
ad6254c5 | 3689 | |
d0191583 JM |
3690 | ################################################################################ |
3691 | ||
3692 | ||
3693 | ||
3694 | ||
3695 | ||
3696 | ac_header_dirent=no | |
3697 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
3698 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
3699 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3700 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
3701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3703 | else | |
ad6254c5 | 3704 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3705 | /* confdefs.h. */ |
3706 | _ACEOF | |
3707 | cat confdefs.h >>conftest.$ac_ext | |
3708 | cat >>conftest.$ac_ext <<_ACEOF | |
3709 | /* end confdefs.h. */ | |
d0191583 JM |
3710 | #include <sys/types.h> |
3711 | #include <$ac_hdr> | |
3712 | ||
3713 | int | |
3714 | main () | |
3715 | { | |
3716 | if ((DIR *) 0) | |
3717 | return 0; | |
3718 | ; | |
3719 | return 0; | |
3720 | } | |
ad6254c5 | 3721 | _ACEOF |
d0191583 JM |
3722 | rm -f conftest.$ac_objext |
3723 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3724 | case "(($ac_try" in |
3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3726 | *) ac_try_echo=$ac_try;; | |
3727 | esac | |
1995c9ff | 3728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3729 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3730 | ac_status=$? |
3731 | grep -v '^ *+' conftest.er1 >conftest.err | |
3732 | rm -f conftest.er1 | |
3733 | cat conftest.err >&5 | |
1995c9ff | 3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3735 | (exit $ac_status); } && { |
3736 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3737 | test ! -s conftest.err |
d0191583 JM |
3738 | } && test -s conftest.$ac_objext; then |
3739 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3740 | else |
1995c9ff | 3741 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3742 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3743 | |
d0191583 | 3744 | eval "$as_ac_Header=no" |
795ca3e5 | 3745 | fi |
7a197a62 | 3746 | |
d0191583 | 3747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3748 | fi |
d0191583 JM |
3749 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3750 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3751 | echo "${ECHO_T}$ac_res" >&6; } | |
3752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3753 | cat >>confdefs.h <<_ACEOF | |
3754 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
3755 | _ACEOF | |
795ca3e5 | 3756 | |
d0191583 JM |
3757 | ac_header_dirent=$ac_hdr; break |
3758 | fi | |
ad6254c5 | 3759 | |
d0191583 JM |
3760 | done |
3761 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3762 | if test $ac_header_dirent = dirent.h; then | |
3763 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
3764 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
3765 | if test "${ac_cv_search_opendir+set}" = set; then | |
1995c9ff | 3766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3767 | else |
d0191583 JM |
3768 | ac_func_search_save_LIBS=$LIBS |
3769 | cat >conftest.$ac_ext <<_ACEOF | |
3770 | /* confdefs.h. */ | |
3771 | _ACEOF | |
3772 | cat confdefs.h >>conftest.$ac_ext | |
3773 | cat >>conftest.$ac_ext <<_ACEOF | |
3774 | /* end confdefs.h. */ | |
ad6254c5 | 3775 | |
d0191583 JM |
3776 | /* Override any GCC internal prototype to avoid an error. |
3777 | Use char because int might match the return type of a GCC | |
3778 | builtin and then its argument prototype would still apply. */ | |
3779 | #ifdef __cplusplus | |
3780 | extern "C" | |
3781 | #endif | |
3782 | char opendir (); | |
3783 | int | |
3784 | main () | |
3785 | { | |
3786 | return opendir (); | |
3787 | ; | |
3788 | return 0; | |
3789 | } | |
3790 | _ACEOF | |
3791 | for ac_lib in '' dir; do | |
3792 | if test -z "$ac_lib"; then | |
3793 | ac_res="none required" | |
3794 | else | |
3795 | ac_res=-l$ac_lib | |
3796 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3797 | fi | |
3798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3799 | if { (ac_try="$ac_link" | |
3800 | case "(($ac_try" in | |
3801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3802 | *) ac_try_echo=$ac_try;; | |
3803 | esac | |
3804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3805 | (eval "$ac_link") 2>conftest.er1 | |
3806 | ac_status=$? | |
3807 | grep -v '^ *+' conftest.er1 >conftest.err | |
3808 | rm -f conftest.er1 | |
3809 | cat conftest.err >&5 | |
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3811 | (exit $ac_status); } && { | |
3812 | test -z "$ac_c_werror_flag" || | |
3813 | test ! -s conftest.err | |
3814 | } && test -s conftest$ac_exeext && | |
3815 | $as_test_x conftest$ac_exeext; then | |
3816 | ac_cv_search_opendir=$ac_res | |
3817 | else | |
3818 | echo "$as_me: failed program was:" >&5 | |
3819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 3820 | |
ad6254c5 | 3821 | |
795ca3e5 | 3822 | fi |
ad6254c5 | 3823 | |
d0191583 JM |
3824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3825 | conftest$ac_exeext | |
3826 | if test "${ac_cv_search_opendir+set}" = set; then | |
3827 | break | |
7a197a62 | 3828 | fi |
d0191583 JM |
3829 | done |
3830 | if test "${ac_cv_search_opendir+set}" = set; then | |
3831 | : | |
7a197a62 | 3832 | else |
d0191583 | 3833 | ac_cv_search_opendir=no |
7a197a62 | 3834 | fi |
d0191583 JM |
3835 | rm conftest.$ac_ext |
3836 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3837 | fi |
d0191583 JM |
3838 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3839 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3840 | ac_res=$ac_cv_search_opendir | |
3841 | if test "$ac_res" != no; then | |
3842 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3843 | |
d0191583 | 3844 | fi |
7a197a62 | 3845 | |
7a197a62 | 3846 | else |
d0191583 JM |
3847 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3848 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
3849 | if test "${ac_cv_search_opendir+set}" = set; then | |
1995c9ff | 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3851 | else |
d0191583 JM |
3852 | ac_func_search_save_LIBS=$LIBS |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
7a197a62 | 3859 | |
d0191583 JM |
3860 | /* Override any GCC internal prototype to avoid an error. |
3861 | Use char because int might match the return type of a GCC | |
3862 | builtin and then its argument prototype would still apply. */ | |
3863 | #ifdef __cplusplus | |
3864 | extern "C" | |
3865 | #endif | |
3866 | char opendir (); | |
3867 | int | |
3868 | main () | |
3869 | { | |
3870 | return opendir (); | |
3871 | ; | |
3872 | return 0; | |
3873 | } | |
3874 | _ACEOF | |
3875 | for ac_lib in '' x; do | |
3876 | if test -z "$ac_lib"; then | |
3877 | ac_res="none required" | |
3878 | else | |
3879 | ac_res=-l$ac_lib | |
3880 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3881 | fi | |
3882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3883 | if { (ac_try="$ac_link" | |
3884 | case "(($ac_try" in | |
3885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3886 | *) ac_try_echo=$ac_try;; | |
3887 | esac | |
3888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3889 | (eval "$ac_link") 2>conftest.er1 | |
3890 | ac_status=$? | |
3891 | grep -v '^ *+' conftest.er1 >conftest.err | |
3892 | rm -f conftest.er1 | |
3893 | cat conftest.err >&5 | |
3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3895 | (exit $ac_status); } && { | |
3896 | test -z "$ac_c_werror_flag" || | |
3897 | test ! -s conftest.err | |
3898 | } && test -s conftest$ac_exeext && | |
3899 | $as_test_x conftest$ac_exeext; then | |
3900 | ac_cv_search_opendir=$ac_res | |
3901 | else | |
3902 | echo "$as_me: failed program was:" >&5 | |
3903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7a197a62 AK |
3904 | |
3905 | ||
3906 | fi | |
3907 | ||
d0191583 JM |
3908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3909 | conftest$ac_exeext | |
3910 | if test "${ac_cv_search_opendir+set}" = set; then | |
3911 | break | |
7a197a62 | 3912 | fi |
d0191583 JM |
3913 | done |
3914 | if test "${ac_cv_search_opendir+set}" = set; then | |
3915 | : | |
7a197a62 | 3916 | else |
d0191583 | 3917 | ac_cv_search_opendir=no |
7a197a62 | 3918 | fi |
d0191583 JM |
3919 | rm conftest.$ac_ext |
3920 | LIBS=$ac_func_search_save_LIBS | |
3921 | fi | |
3922 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
3923 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3924 | ac_res=$ac_cv_search_opendir | |
3925 | if test "$ac_res" != no; then | |
3926 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3927 | |
7a197a62 | 3928 | fi |
7a197a62 | 3929 | |
d0191583 | 3930 | fi |
7a197a62 | 3931 | |
1995c9ff AK |
3932 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3933 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 3934 | if test "${ac_cv_header_stdc+set}" = set; then |
1995c9ff | 3935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3936 | else |
3937 | cat >conftest.$ac_ext <<_ACEOF | |
3938 | /* confdefs.h. */ | |
3939 | _ACEOF | |
3940 | cat confdefs.h >>conftest.$ac_ext | |
3941 | cat >>conftest.$ac_ext <<_ACEOF | |
3942 | /* end confdefs.h. */ | |
3943 | #include <stdlib.h> | |
3944 | #include <stdarg.h> | |
3945 | #include <string.h> | |
3946 | #include <float.h> | |
3947 | ||
3948 | int | |
3949 | main () | |
3950 | { | |
3951 | ||
3952 | ; | |
3953 | return 0; | |
3954 | } | |
3955 | _ACEOF | |
3956 | rm -f conftest.$ac_objext | |
3957 | if { (ac_try="$ac_compile" | |
3958 | case "(($ac_try" in | |
3959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3960 | *) ac_try_echo=$ac_try;; | |
3961 | esac | |
1995c9ff | 3962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
3963 | (eval "$ac_compile") 2>conftest.er1 |
3964 | ac_status=$? | |
3965 | grep -v '^ *+' conftest.er1 >conftest.err | |
3966 | rm -f conftest.er1 | |
3967 | cat conftest.err >&5 | |
1995c9ff | 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3969 | (exit $ac_status); } && { |
3970 | test -z "$ac_c_werror_flag" || | |
3971 | test ! -s conftest.err | |
3972 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3973 | ac_cv_header_stdc=yes |
3974 | else | |
1995c9ff | 3975 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
3977 | ||
3978 | ac_cv_header_stdc=no | |
3979 | fi | |
3980 | ||
3981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3982 | ||
3983 | if test $ac_cv_header_stdc = yes; then | |
3984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 3985 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3986 | /* confdefs.h. */ |
3987 | _ACEOF | |
3988 | cat confdefs.h >>conftest.$ac_ext | |
3989 | cat >>conftest.$ac_ext <<_ACEOF | |
3990 | /* end confdefs.h. */ | |
3991 | #include <string.h> | |
8106cdd5 | 3992 | |
ad6254c5 AK |
3993 | _ACEOF |
3994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3995 | $EGREP "memchr" >/dev/null 2>&1; then | |
3996 | : | |
3997 | else | |
3998 | ac_cv_header_stdc=no | |
80992638 | 3999 | fi |
ad6254c5 | 4000 | rm -f conftest* |
795ca3e5 AK |
4001 | |
4002 | fi | |
4003 | ||
ad6254c5 AK |
4004 | if test $ac_cv_header_stdc = yes; then |
4005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4006 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4007 | /* confdefs.h. */ |
4008 | _ACEOF | |
4009 | cat confdefs.h >>conftest.$ac_ext | |
4010 | cat >>conftest.$ac_ext <<_ACEOF | |
4011 | /* end confdefs.h. */ | |
80992638 | 4012 | #include <stdlib.h> |
ad6254c5 AK |
4013 | |
4014 | _ACEOF | |
80992638 | 4015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4016 | $EGREP "free" >/dev/null 2>&1; then |
4017 | : | |
795ca3e5 | 4018 | else |
ad6254c5 | 4019 | ac_cv_header_stdc=no |
795ca3e5 | 4020 | fi |
80992638 | 4021 | rm -f conftest* |
8106cdd5 | 4022 | |
795ca3e5 AK |
4023 | fi |
4024 | ||
ad6254c5 AK |
4025 | if test $ac_cv_header_stdc = yes; then |
4026 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4027 | if test "$cross_compiling" = yes; then | |
4028 | : | |
795ca3e5 | 4029 | else |
ad6254c5 | 4030 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4031 | /* confdefs.h. */ |
4032 | _ACEOF | |
4033 | cat confdefs.h >>conftest.$ac_ext | |
4034 | cat >>conftest.$ac_ext <<_ACEOF | |
4035 | /* end confdefs.h. */ | |
4036 | #include <ctype.h> | |
7a197a62 | 4037 | #include <stdlib.h> |
ad6254c5 AK |
4038 | #if ((' ' & 0x0FF) == 0x020) |
4039 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4040 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4041 | #else | |
4042 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4043 | (('a' <= (c) && (c) <= 'i') \ |
4044 | || ('j' <= (c) && (c) <= 'r') \ | |
4045 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4046 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4047 | #endif |
ad6254c5 AK |
4048 | |
4049 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4050 | int | |
4051 | main () | |
4052 | { | |
4053 | int i; | |
4054 | for (i = 0; i < 256; i++) | |
4055 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4056 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4057 | return 2; |
4058 | return 0; | |
ad6254c5 AK |
4059 | } |
4060 | _ACEOF | |
4061 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4062 | if { (ac_try="$ac_link" |
4063 | case "(($ac_try" in | |
4064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4065 | *) ac_try_echo=$ac_try;; | |
4066 | esac | |
1995c9ff | 4067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4068 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4069 | ac_status=$? |
1995c9ff | 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4072 | { (case "(($ac_try" in |
4073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4074 | *) ac_try_echo=$ac_try;; | |
4075 | esac | |
1995c9ff | 4076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4077 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4078 | ac_status=$? |
1995c9ff | 4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4080 | (exit $ac_status); }; }; then |
4081 | : | |
795ca3e5 | 4082 | else |
1995c9ff AK |
4083 | echo "$as_me: program exited with status $ac_status" >&5 |
4084 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4086 | |
ad6254c5 AK |
4087 | ( exit $ac_status ) |
4088 | ac_cv_header_stdc=no | |
80992638 | 4089 | fi |
7a197a62 | 4090 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4091 | fi |
7a197a62 AK |
4092 | |
4093 | ||
ad6254c5 AK |
4094 | fi |
4095 | fi | |
1995c9ff AK |
4096 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4097 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4098 | if test $ac_cv_header_stdc = yes; then |
4099 | ||
4100 | cat >>confdefs.h <<\_ACEOF | |
4101 | #define STDC_HEADERS 1 | |
4102 | _ACEOF | |
795ca3e5 AK |
4103 | |
4104 | fi | |
4105 | ||
1995c9ff AK |
4106 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4107 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4108 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
1995c9ff | 4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4110 | else |
ad6254c5 | 4111 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4112 | /* confdefs.h. */ |
4113 | _ACEOF | |
4114 | cat confdefs.h >>conftest.$ac_ext | |
4115 | cat >>conftest.$ac_ext <<_ACEOF | |
4116 | /* end confdefs.h. */ | |
80992638 | 4117 | #include <sys/types.h> |
ad6254c5 AK |
4118 | #include <sys/wait.h> |
4119 | #ifndef WEXITSTATUS | |
7a197a62 | 4120 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4121 | #endif |
4122 | #ifndef WIFEXITED | |
4123 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4124 | #endif | |
4125 | ||
4126 | int | |
4127 | main () | |
4128 | { | |
4129 | int s; | |
4130 | wait (&s); | |
4131 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4132 | ; | |
4133 | return 0; | |
4134 | } | |
4135 | _ACEOF | |
4136 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4137 | if { (ac_try="$ac_compile" |
4138 | case "(($ac_try" in | |
4139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4140 | *) ac_try_echo=$ac_try;; | |
4141 | esac | |
1995c9ff | 4142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4143 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4144 | ac_status=$? |
8a2fc586 AK |
4145 | grep -v '^ *+' conftest.er1 >conftest.err |
4146 | rm -f conftest.er1 | |
4147 | cat conftest.err >&5 | |
1995c9ff | 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4149 | (exit $ac_status); } && { |
4150 | test -z "$ac_c_werror_flag" || | |
4151 | test ! -s conftest.err | |
4152 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4153 | ac_cv_header_sys_wait_h=yes |
4154 | else | |
1995c9ff | 4155 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4156 | sed 's/^/| /' conftest.$ac_ext >&5 |
4157 | ||
7a197a62 | 4158 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4159 | fi |
7a197a62 AK |
4160 | |
4161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4162 | fi |
1995c9ff AK |
4163 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4164 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4165 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4166 | |
ad6254c5 AK |
4167 | cat >>confdefs.h <<\_ACEOF |
4168 | #define HAVE_SYS_WAIT_H 1 | |
4169 | _ACEOF | |
795ca3e5 AK |
4170 | |
4171 | fi | |
4172 | ||
1995c9ff AK |
4173 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4174 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4175 | if test "${ac_cv_header_time+set}" = set; then |
1995c9ff | 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4177 | else |
ad6254c5 | 4178 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4179 | /* confdefs.h. */ |
4180 | _ACEOF | |
4181 | cat confdefs.h >>conftest.$ac_ext | |
4182 | cat >>conftest.$ac_ext <<_ACEOF | |
4183 | /* end confdefs.h. */ | |
795ca3e5 AK |
4184 | #include <sys/types.h> |
4185 | #include <sys/time.h> | |
4186 | #include <time.h> | |
ad6254c5 AK |
4187 | |
4188 | int | |
4189 | main () | |
4190 | { | |
4191 | if ((struct tm *) 0) | |
4192 | return 0; | |
4193 | ; | |
4194 | return 0; | |
4195 | } | |
4196 | _ACEOF | |
4197 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4198 | if { (ac_try="$ac_compile" |
4199 | case "(($ac_try" in | |
4200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4201 | *) ac_try_echo=$ac_try;; | |
4202 | esac | |
1995c9ff | 4203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4204 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4205 | ac_status=$? |
8a2fc586 AK |
4206 | grep -v '^ *+' conftest.er1 >conftest.err |
4207 | rm -f conftest.er1 | |
4208 | cat conftest.err >&5 | |
1995c9ff | 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4210 | (exit $ac_status); } && { |
4211 | test -z "$ac_c_werror_flag" || | |
4212 | test ! -s conftest.err | |
4213 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4214 | ac_cv_header_time=yes |
4215 | else | |
1995c9ff | 4216 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4217 | sed 's/^/| /' conftest.$ac_ext >&5 |
4218 | ||
7a197a62 | 4219 | ac_cv_header_time=no |
795ca3e5 | 4220 | fi |
7a197a62 AK |
4221 | |
4222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4223 | fi |
1995c9ff AK |
4224 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4225 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4226 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4227 | |
4228 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4229 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4230 | _ACEOF |
b896caa1 | 4231 | |
8106cdd5 | 4232 | fi |
b896caa1 | 4233 | |
b896caa1 | 4234 | |
d0191583 JM |
4235 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4236 | ||
4237 | ||
4238 | ||
4239 | ||
4240 | ||
4241 | ||
4242 | ||
4243 | ||
4244 | ||
4245 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4246 | inttypes.h stdint.h unistd.h | |
4247 | do | |
4248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4253 | else | |
4254 | cat >conftest.$ac_ext <<_ACEOF | |
4255 | /* confdefs.h. */ | |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
4260 | $ac_includes_default | |
4261 | ||
4262 | #include <$ac_header> | |
4263 | _ACEOF | |
4264 | rm -f conftest.$ac_objext | |
4265 | if { (ac_try="$ac_compile" | |
4266 | case "(($ac_try" in | |
4267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4268 | *) ac_try_echo=$ac_try;; | |
4269 | esac | |
4270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4271 | (eval "$ac_compile") 2>conftest.er1 | |
4272 | ac_status=$? | |
4273 | grep -v '^ *+' conftest.er1 >conftest.err | |
4274 | rm -f conftest.er1 | |
4275 | cat conftest.err >&5 | |
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4277 | (exit $ac_status); } && { | |
4278 | test -z "$ac_c_werror_flag" || | |
4279 | test ! -s conftest.err | |
4280 | } && test -s conftest.$ac_objext; then | |
4281 | eval "$as_ac_Header=yes" | |
4282 | else | |
4283 | echo "$as_me: failed program was:" >&5 | |
4284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4285 | ||
4286 | eval "$as_ac_Header=no" | |
4287 | fi | |
4288 | ||
4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4290 | fi | |
4291 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4292 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4293 | echo "${ECHO_T}$ac_res" >&6; } | |
4294 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4295 | cat >>confdefs.h <<_ACEOF | |
4296 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4297 | _ACEOF | |
4298 | ||
4299 | fi | |
4300 | ||
4301 | done | |
4302 | ||
b896caa1 | 4303 | |
b896caa1 AK |
4304 | |
4305 | ||
795ca3e5 | 4306 | |
8106cdd5 | 4307 | |
80992638 | 4308 | |
795ca3e5 | 4309 | |
a38df97f | 4310 | |
80992638 | 4311 | |
d0191583 JM |
4312 | |
4313 | ||
4314 | ||
4315 | ||
4316 | ||
4317 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4318 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4319 | do |
1995c9ff | 4320 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 JM |
4321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4322 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
1995c9ff | 4323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7a197a62 | 4324 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4326 | fi |
4327 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4328 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4329 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4330 | else |
d0191583 JM |
4331 | # Is the header compilable? |
4332 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4333 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
4334 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4335 | /* confdefs.h. */ |
4336 | _ACEOF | |
4337 | cat confdefs.h >>conftest.$ac_ext | |
4338 | cat >>conftest.$ac_ext <<_ACEOF | |
4339 | /* end confdefs.h. */ | |
4340 | $ac_includes_default | |
ad6254c5 AK |
4341 | #include <$ac_header> |
4342 | _ACEOF | |
4343 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4344 | if { (ac_try="$ac_compile" |
4345 | case "(($ac_try" in | |
4346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | *) ac_try_echo=$ac_try;; | |
4348 | esac | |
1995c9ff | 4349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4350 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4351 | ac_status=$? |
8a2fc586 AK |
4352 | grep -v '^ *+' conftest.er1 >conftest.err |
4353 | rm -f conftest.er1 | |
4354 | cat conftest.err >&5 | |
1995c9ff | 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4356 | (exit $ac_status); } && { |
4357 | test -z "$ac_c_werror_flag" || | |
4358 | test ! -s conftest.err | |
4359 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4360 | ac_header_compiler=yes |
ad6254c5 | 4361 | else |
1995c9ff | 4362 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4363 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4364 | |
d0191583 | 4365 | ac_header_compiler=no |
ad6254c5 | 4366 | fi |
7a197a62 AK |
4367 | |
4368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d0191583 JM |
4369 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4370 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4371 | ||
4372 | # Is the header present? | |
4373 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4374 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
4375 | cat >conftest.$ac_ext <<_ACEOF | |
4376 | /* confdefs.h. */ | |
4377 | _ACEOF | |
4378 | cat confdefs.h >>conftest.$ac_ext | |
4379 | cat >>conftest.$ac_ext <<_ACEOF | |
4380 | /* end confdefs.h. */ | |
4381 | #include <$ac_header> | |
4382 | _ACEOF | |
4383 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4384 | case "(($ac_try" in | |
4385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4386 | *) ac_try_echo=$ac_try;; | |
4387 | esac | |
4388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4389 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4390 | ac_status=$? | |
4391 | grep -v '^ *+' conftest.er1 >conftest.err | |
4392 | rm -f conftest.er1 | |
4393 | cat conftest.err >&5 | |
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4395 | (exit $ac_status); } >/dev/null && { | |
4396 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4397 | test ! -s conftest.err | |
4398 | }; then | |
4399 | ac_header_preproc=yes | |
4400 | else | |
4401 | echo "$as_me: failed program was:" >&5 | |
4402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4403 | ||
4404 | ac_header_preproc=no | |
4405 | fi | |
4406 | ||
4407 | rm -f conftest.err conftest.$ac_ext | |
4408 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4409 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4410 | ||
4411 | # So? What about this header? | |
4412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4413 | yes:no: ) | |
4414 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4415 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4417 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4418 | ac_header_preproc=yes | |
4419 | ;; | |
4420 | no:yes:* ) | |
4421 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4422 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4423 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4424 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4425 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4426 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4427 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4428 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4430 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4431 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4432 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4433 | ||
4434 | ;; | |
4435 | esac | |
4436 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4440 | else | |
4441 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4442 | fi |
1995c9ff AK |
4443 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4445 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4446 | |
4447 | fi | |
1995c9ff | 4448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4449 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4451 | _ACEOF |
a38df97f | 4452 | |
d0191583 JM |
4453 | else |
4454 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4455 | echo "$as_me: error: bailing out" >&2;} | |
4456 | { (exit 1); exit 1; }; } | |
80992638 AK |
4457 | fi |
4458 | ||
ad6254c5 AK |
4459 | done |
4460 | ||
7d1552c9 | 4461 | |
d0191583 JM |
4462 | case "$host_os" in |
4463 | linux*) | |
7d1552c9 | 4464 | |
80992638 | 4465 | |
5a52dca9 | 4466 | |
d0191583 | 4467 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4468 | do |
1995c9ff | 4469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4475 | fi |
1995c9ff AK |
4476 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4477 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4478 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4479 | else |
4480 | # Is the header compilable? | |
1995c9ff AK |
4481 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4483 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4484 | /* confdefs.h. */ |
4485 | _ACEOF | |
4486 | cat confdefs.h >>conftest.$ac_ext | |
4487 | cat >>conftest.$ac_ext <<_ACEOF | |
4488 | /* end confdefs.h. */ | |
4489 | $ac_includes_default | |
4490 | #include <$ac_header> | |
4491 | _ACEOF | |
4492 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4493 | if { (ac_try="$ac_compile" |
4494 | case "(($ac_try" in | |
4495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4496 | *) ac_try_echo=$ac_try;; | |
4497 | esac | |
1995c9ff | 4498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4499 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4500 | ac_status=$? |
8a2fc586 AK |
4501 | grep -v '^ *+' conftest.er1 >conftest.err |
4502 | rm -f conftest.er1 | |
4503 | cat conftest.err >&5 | |
1995c9ff | 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4505 | (exit $ac_status); } && { |
4506 | test -z "$ac_c_werror_flag" || | |
4507 | test ! -s conftest.err | |
4508 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4509 | ac_header_compiler=yes |
4510 | else | |
4511 | echo "$as_me: failed program was:" >&5 | |
4512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4513 | ||
4514 | ac_header_compiler=no | |
4515 | fi | |
4516 | ||
4517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4518 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4519 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4520 | |
4521 | # Is the header present? | |
1995c9ff AK |
4522 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4523 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4524 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4525 | /* confdefs.h. */ |
4526 | _ACEOF | |
4527 | cat confdefs.h >>conftest.$ac_ext | |
4528 | cat >>conftest.$ac_ext <<_ACEOF | |
4529 | /* end confdefs.h. */ | |
4530 | #include <$ac_header> | |
4531 | _ACEOF | |
7a197a62 AK |
4532 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4533 | case "(($ac_try" in | |
4534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4535 | *) ac_try_echo=$ac_try;; | |
4536 | esac | |
1995c9ff | 4537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4538 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4539 | ac_status=$? |
4540 | grep -v '^ *+' conftest.er1 >conftest.err | |
4541 | rm -f conftest.er1 | |
4542 | cat conftest.err >&5 | |
1995c9ff | 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4544 | (exit $ac_status); } >/dev/null && { |
4545 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4546 | test ! -s conftest.err | |
4547 | }; then | |
ad6254c5 AK |
4548 | ac_header_preproc=yes |
4549 | else | |
1995c9ff | 4550 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
4552 | ||
4553 | ac_header_preproc=no | |
4554 | fi | |
7a197a62 | 4555 | |
ad6254c5 | 4556 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4557 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4558 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4559 | |
4560 | # So? What about this header? | |
8a2fc586 AK |
4561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4562 | yes:no: ) | |
1995c9ff AK |
4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4566 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4567 | ac_header_preproc=yes |
ad6254c5 | 4568 | ;; |
8a2fc586 | 4569 | no:yes:* ) |
1995c9ff AK |
4570 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4571 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4572 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4573 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4574 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4575 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4576 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4577 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4578 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4579 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4580 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4581 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4582 | |
ad6254c5 AK |
4583 | ;; |
4584 | esac | |
1995c9ff AK |
4585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4589 | else |
8a2fc586 | 4590 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4591 | fi |
1995c9ff AK |
4592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4594 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4595 | |
4596 | fi | |
1995c9ff | 4597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4598 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4600 | _ACEOF |
b896caa1 | 4601 | |
d8ac0fbc | 4602 | else |
1995c9ff AK |
4603 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4604 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4605 | { (exit 1); exit 1; }; } |
80992638 AK |
4606 | fi |
4607 | ||
ad6254c5 | 4608 | done |
d0191583 JM |
4609 | ;; |
4610 | darwin*) | |
d8ac0fbc | 4611 | |
d8ac0fbc | 4612 | |
d0191583 | 4613 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4614 | do |
1995c9ff | 4615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4621 | fi |
1995c9ff AK |
4622 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4624 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4625 | else |
4626 | # Is the header compilable? | |
1995c9ff AK |
4627 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4629 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4630 | /* confdefs.h. */ |
4631 | _ACEOF | |
4632 | cat confdefs.h >>conftest.$ac_ext | |
4633 | cat >>conftest.$ac_ext <<_ACEOF | |
4634 | /* end confdefs.h. */ | |
4635 | $ac_includes_default | |
4636 | #include <$ac_header> | |
4637 | _ACEOF | |
4638 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4639 | if { (ac_try="$ac_compile" |
4640 | case "(($ac_try" in | |
4641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4642 | *) ac_try_echo=$ac_try;; | |
4643 | esac | |
1995c9ff | 4644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4645 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4646 | ac_status=$? |
8a2fc586 AK |
4647 | grep -v '^ *+' conftest.er1 >conftest.err |
4648 | rm -f conftest.er1 | |
4649 | cat conftest.err >&5 | |
1995c9ff | 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4651 | (exit $ac_status); } && { |
4652 | test -z "$ac_c_werror_flag" || | |
4653 | test ! -s conftest.err | |
4654 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4655 | ac_header_compiler=yes |
4656 | else | |
1995c9ff | 4657 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4658 | sed 's/^/| /' conftest.$ac_ext >&5 |
4659 | ||
7a197a62 | 4660 | ac_header_compiler=no |
ad6254c5 | 4661 | fi |
7a197a62 AK |
4662 | |
4663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4664 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4665 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4666 | |
4667 | # Is the header present? | |
1995c9ff AK |
4668 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4669 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4670 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4671 | /* confdefs.h. */ |
4672 | _ACEOF | |
4673 | cat confdefs.h >>conftest.$ac_ext | |
4674 | cat >>conftest.$ac_ext <<_ACEOF | |
4675 | /* end confdefs.h. */ | |
4676 | #include <$ac_header> | |
4677 | _ACEOF | |
7a197a62 AK |
4678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4679 | case "(($ac_try" in | |
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 | *) ac_try_echo=$ac_try;; | |
4682 | esac | |
1995c9ff | 4683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4685 | ac_status=$? |
4686 | grep -v '^ *+' conftest.er1 >conftest.err | |
4687 | rm -f conftest.er1 | |
4688 | cat conftest.err >&5 | |
1995c9ff | 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4690 | (exit $ac_status); } >/dev/null && { |
4691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4692 | test ! -s conftest.err | |
4693 | }; then | |
ad6254c5 AK |
4694 | ac_header_preproc=yes |
4695 | else | |
1995c9ff | 4696 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4697 | sed 's/^/| /' conftest.$ac_ext >&5 |
4698 | ||
4699 | ac_header_preproc=no | |
4700 | fi | |
7a197a62 | 4701 | |
ad6254c5 | 4702 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4703 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4704 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4705 | |
4706 | # So? What about this header? | |
8a2fc586 AK |
4707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4708 | yes:no: ) | |
1995c9ff AK |
4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4713 | ac_header_preproc=yes |
ad6254c5 | 4714 | ;; |
8a2fc586 | 4715 | no:yes:* ) |
1995c9ff AK |
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4728 | |
ad6254c5 AK |
4729 | ;; |
4730 | esac | |
1995c9ff AK |
4731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4735 | else |
8a2fc586 | 4736 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4737 | fi |
1995c9ff AK |
4738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4740 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4741 | |
4742 | fi | |
1995c9ff | 4743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4744 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4746 | _ACEOF |
4922197a | 4747 | |
4922197a | 4748 | else |
1995c9ff AK |
4749 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4750 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4751 | { (exit 1); exit 1; }; } |
80992638 AK |
4752 | fi |
4753 | ||
ad6254c5 | 4754 | done |
d0191583 JM |
4755 | ;; |
4756 | esac | |
4922197a | 4757 | |
4922197a | 4758 | |
4922197a | 4759 | |
ad6254c5 AK |
4760 | |
4761 | ||
d0191583 JM |
4762 | |
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | ||
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | ||
4774 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4775 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4776 | sys/types.h unistd.h | |
ad6254c5 | 4777 | do |
1995c9ff | 4778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4784 | fi |
1995c9ff AK |
4785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4787 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4788 | else |
ad6254c5 | 4789 | # Is the header compilable? |
1995c9ff AK |
4790 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4792 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4793 | /* confdefs.h. */ |
4794 | _ACEOF | |
4795 | cat confdefs.h >>conftest.$ac_ext | |
4796 | cat >>conftest.$ac_ext <<_ACEOF | |
4797 | /* end confdefs.h. */ | |
4798 | $ac_includes_default | |
4799 | #include <$ac_header> | |
4800 | _ACEOF | |
4801 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4802 | if { (ac_try="$ac_compile" |
4803 | case "(($ac_try" in | |
4804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4805 | *) ac_try_echo=$ac_try;; | |
4806 | esac | |
1995c9ff | 4807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4808 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4809 | ac_status=$? |
8a2fc586 AK |
4810 | grep -v '^ *+' conftest.er1 >conftest.err |
4811 | rm -f conftest.er1 | |
4812 | cat conftest.err >&5 | |
1995c9ff | 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4814 | (exit $ac_status); } && { |
4815 | test -z "$ac_c_werror_flag" || | |
4816 | test ! -s conftest.err | |
4817 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4818 | ac_header_compiler=yes |
4819 | else | |
1995c9ff | 4820 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4821 | sed 's/^/| /' conftest.$ac_ext >&5 |
4822 | ||
7a197a62 | 4823 | ac_header_compiler=no |
ad6254c5 | 4824 | fi |
7a197a62 AK |
4825 | |
4826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4827 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4828 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4829 | |
4830 | # Is the header present? | |
1995c9ff AK |
4831 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4833 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4834 | /* confdefs.h. */ |
4835 | _ACEOF | |
4836 | cat confdefs.h >>conftest.$ac_ext | |
4837 | cat >>conftest.$ac_ext <<_ACEOF | |
4838 | /* end confdefs.h. */ | |
4839 | #include <$ac_header> | |
4840 | _ACEOF | |
7a197a62 AK |
4841 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4842 | case "(($ac_try" in | |
4843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4844 | *) ac_try_echo=$ac_try;; | |
4845 | esac | |
1995c9ff | 4846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4848 | ac_status=$? |
4849 | grep -v '^ *+' conftest.er1 >conftest.err | |
4850 | rm -f conftest.er1 | |
4851 | cat conftest.err >&5 | |
1995c9ff | 4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4853 | (exit $ac_status); } >/dev/null && { |
4854 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4855 | test ! -s conftest.err | |
4856 | }; then | |
ad6254c5 AK |
4857 | ac_header_preproc=yes |
4858 | else | |
1995c9ff | 4859 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4860 | sed 's/^/| /' conftest.$ac_ext >&5 |
4861 | ||
4862 | ac_header_preproc=no | |
4863 | fi | |
7a197a62 | 4864 | |
ad6254c5 | 4865 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4866 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4867 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4868 | |
4869 | # So? What about this header? | |
8a2fc586 AK |
4870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4871 | yes:no: ) | |
1995c9ff AK |
4872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4876 | ac_header_preproc=yes |
ad6254c5 | 4877 | ;; |
8a2fc586 | 4878 | no:yes:* ) |
1995c9ff AK |
4879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4891 | |
ad6254c5 AK |
4892 | ;; |
4893 | esac | |
1995c9ff AK |
4894 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4896 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4898 | else |
8a2fc586 | 4899 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4900 | fi |
1995c9ff AK |
4901 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4902 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4903 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4904 | |
ad6254c5 | 4905 | fi |
1995c9ff | 4906 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4907 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4908 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4909 | _ACEOF |
795ca3e5 | 4910 | |
795ca3e5 | 4911 | else |
1995c9ff AK |
4912 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4913 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4914 | { (exit 1); exit 1; }; } |
80992638 AK |
4915 | fi |
4916 | ||
ad6254c5 | 4917 | done |
ad6254c5 | 4918 | |
795ca3e5 | 4919 | |
d0191583 JM |
4920 | |
4921 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 4922 | do |
1995c9ff | 4923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4925 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4929 | fi |
1995c9ff AK |
4930 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4931 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4932 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4933 | else |
4934 | # Is the header compilable? | |
1995c9ff AK |
4935 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4936 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4937 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4938 | /* confdefs.h. */ |
4939 | _ACEOF | |
4940 | cat confdefs.h >>conftest.$ac_ext | |
4941 | cat >>conftest.$ac_ext <<_ACEOF | |
4942 | /* end confdefs.h. */ | |
4943 | $ac_includes_default | |
4944 | #include <$ac_header> | |
4945 | _ACEOF | |
4946 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4947 | if { (ac_try="$ac_compile" |
4948 | case "(($ac_try" in | |
4949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4950 | *) ac_try_echo=$ac_try;; | |
4951 | esac | |
1995c9ff | 4952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4953 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4954 | ac_status=$? |
8a2fc586 AK |
4955 | grep -v '^ *+' conftest.er1 >conftest.err |
4956 | rm -f conftest.er1 | |
4957 | cat conftest.err >&5 | |
1995c9ff | 4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4959 | (exit $ac_status); } && { |
4960 | test -z "$ac_c_werror_flag" || | |
4961 | test ! -s conftest.err | |
4962 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4963 | ac_header_compiler=yes |
4964 | else | |
1995c9ff | 4965 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4966 | sed 's/^/| /' conftest.$ac_ext >&5 |
4967 | ||
7a197a62 | 4968 | ac_header_compiler=no |
ad6254c5 | 4969 | fi |
7a197a62 AK |
4970 | |
4971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4972 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4973 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4974 | |
4975 | # Is the header present? | |
1995c9ff AK |
4976 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4977 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4978 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4979 | /* confdefs.h. */ |
4980 | _ACEOF | |
4981 | cat confdefs.h >>conftest.$ac_ext | |
4982 | cat >>conftest.$ac_ext <<_ACEOF | |
4983 | /* end confdefs.h. */ | |
4984 | #include <$ac_header> | |
4985 | _ACEOF | |
7a197a62 AK |
4986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4987 | case "(($ac_try" in | |
4988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4989 | *) ac_try_echo=$ac_try;; | |
4990 | esac | |
1995c9ff | 4991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4993 | ac_status=$? |
4994 | grep -v '^ *+' conftest.er1 >conftest.err | |
4995 | rm -f conftest.er1 | |
4996 | cat conftest.err >&5 | |
1995c9ff | 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4998 | (exit $ac_status); } >/dev/null && { |
4999 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5000 | test ! -s conftest.err | |
5001 | }; then | |
ad6254c5 AK |
5002 | ac_header_preproc=yes |
5003 | else | |
1995c9ff | 5004 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5005 | sed 's/^/| /' conftest.$ac_ext >&5 |
5006 | ||
5007 | ac_header_preproc=no | |
5008 | fi | |
7a197a62 | 5009 | |
ad6254c5 | 5010 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
5011 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5012 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5013 | |
5014 | # So? What about this header? | |
8a2fc586 AK |
5015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5016 | yes:no: ) | |
1995c9ff AK |
5017 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5018 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5020 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5021 | ac_header_preproc=yes |
ad6254c5 | 5022 | ;; |
8a2fc586 | 5023 | no:yes:* ) |
1995c9ff AK |
5024 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5025 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5026 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5027 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5028 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5029 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5030 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5031 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5033 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5034 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5035 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5036 | |
ad6254c5 AK |
5037 | ;; |
5038 | esac | |
1995c9ff AK |
5039 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5043 | else |
8a2fc586 | 5044 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5045 | fi |
1995c9ff AK |
5046 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5047 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5048 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5049 | |
ad6254c5 | 5050 | fi |
1995c9ff | 5051 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5052 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 5053 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5054 | _ACEOF |
5055 | ||
80992638 AK |
5056 | fi |
5057 | ||
ad6254c5 | 5058 | done |
d0191583 | 5059 | |
d3c8211f | 5060 | |
80992638 | 5061 | ################################################################################ |
1995c9ff AK |
5062 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5063 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5064 | if test "${ac_cv_c_const+set}" = set; then |
1995c9ff | 5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5066 | else |
ad6254c5 | 5067 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5068 | /* confdefs.h. */ |
5069 | _ACEOF | |
5070 | cat confdefs.h >>conftest.$ac_ext | |
5071 | cat >>conftest.$ac_ext <<_ACEOF | |
5072 | /* end confdefs.h. */ | |
5073 | ||
5074 | int | |
5075 | main () | |
5076 | { | |
5077 | /* FIXME: Include the comments suggested by Paul. */ | |
5078 | #ifndef __cplusplus | |
5079 | /* Ultrix mips cc rejects this. */ | |
5080 | typedef int charset[2]; | |
25fbec5b | 5081 | const charset cs; |
ad6254c5 | 5082 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5083 | char const *const *pcpcc; |
5084 | char **ppc; | |
ad6254c5 AK |
5085 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5086 | struct point {int x, y;}; | |
5087 | static struct point const zero = {0,0}; | |
5088 | /* AIX XL C 1.02.0.0 rejects this. | |
5089 | It does not let you subtract one const X* pointer from another in | |
5090 | an arm of an if-expression whose if-part is not a constant | |
5091 | expression */ | |
5092 | const char *g = "string"; | |
25fbec5b | 5093 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5094 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5095 | ++pcpcc; |
5096 | ppc = (char**) pcpcc; | |
5097 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5098 | { /* SCO 3.2v4 cc rejects this. */ |
5099 | char *t; | |
5100 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5101 | ||
5102 | *t++ = 0; | |
7a197a62 | 5103 | if (s) return 0; |
ad6254c5 AK |
5104 | } |
5105 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5106 | int x[] = {25, 17}; | |
5107 | const int *foo = &x[0]; | |
5108 | ++foo; | |
5109 | } | |
5110 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5111 | typedef const int *iptr; | |
5112 | iptr p = 0; | |
5113 | ++p; | |
5114 | } | |
5115 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5116 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5117 | struct s { int j; const int *ap[3]; }; | |
5118 | struct s *b; b->j = 5; | |
5119 | } | |
5120 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5121 | const int foo = 10; | |
7a197a62 | 5122 | if (!foo) return 0; |
ad6254c5 | 5123 | } |
25fbec5b | 5124 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5125 | #endif |
5126 | ||
5127 | ; | |
5128 | return 0; | |
5129 | } | |
5130 | _ACEOF | |
5131 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5132 | if { (ac_try="$ac_compile" |
5133 | case "(($ac_try" in | |
5134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5135 | *) ac_try_echo=$ac_try;; | |
5136 | esac | |
1995c9ff | 5137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5138 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5139 | ac_status=$? |
8a2fc586 AK |
5140 | grep -v '^ *+' conftest.er1 >conftest.err |
5141 | rm -f conftest.er1 | |
5142 | cat conftest.err >&5 | |
1995c9ff | 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5144 | (exit $ac_status); } && { |
5145 | test -z "$ac_c_werror_flag" || | |
5146 | test ! -s conftest.err | |
5147 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5148 | ac_cv_c_const=yes |
5149 | else | |
1995c9ff | 5150 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 |
5152 | ||
7a197a62 | 5153 | ac_cv_c_const=no |
ad6254c5 | 5154 | fi |
7a197a62 AK |
5155 | |
5156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5157 | fi |
1995c9ff AK |
5158 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5159 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5160 | if test $ac_cv_c_const = no; then |
80992638 | 5161 | |
ad6254c5 AK |
5162 | cat >>confdefs.h <<\_ACEOF |
5163 | #define const | |
5164 | _ACEOF | |
80992638 | 5165 | |
d3c8211f | 5166 | fi |
d3c8211f | 5167 | |
1995c9ff AK |
5168 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5169 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5170 | if test "${ac_cv_c_inline+set}" = set; then |
1995c9ff | 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5172 | else |
ad6254c5 AK |
5173 | ac_cv_c_inline=no |
5174 | for ac_kw in inline __inline__ __inline; do | |
5175 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5176 | /* confdefs.h. */ |
5177 | _ACEOF | |
5178 | cat confdefs.h >>conftest.$ac_ext | |
5179 | cat >>conftest.$ac_ext <<_ACEOF | |
5180 | /* end confdefs.h. */ | |
5181 | #ifndef __cplusplus | |
5182 | typedef int foo_t; | |
5183 | static $ac_kw foo_t static_foo () {return 0; } | |
5184 | $ac_kw foo_t foo () {return 0; } | |
5185 | #endif | |
80992638 | 5186 | |
ad6254c5 AK |
5187 | _ACEOF |
5188 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5189 | if { (ac_try="$ac_compile" |
5190 | case "(($ac_try" in | |
5191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5192 | *) ac_try_echo=$ac_try;; | |
5193 | esac | |
1995c9ff | 5194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5195 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5196 | ac_status=$? |
8a2fc586 AK |
5197 | grep -v '^ *+' conftest.er1 >conftest.err |
5198 | rm -f conftest.er1 | |
5199 | cat conftest.err >&5 | |
1995c9ff | 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5201 | (exit $ac_status); } && { |
5202 | test -z "$ac_c_werror_flag" || | |
5203 | test ! -s conftest.err | |
5204 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5205 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5206 | else |
1995c9ff | 5207 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5208 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5209 | |
7a197a62 | 5210 | |
8ce0cbda | 5211 | fi |
7a197a62 AK |
5212 | |
5213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5214 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5215 | done |
8ce0cbda | 5216 | |
8ce0cbda | 5217 | fi |
1995c9ff AK |
5218 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5219 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5220 | |
5221 | ||
ad6254c5 AK |
5222 | case $ac_cv_c_inline in |
5223 | inline | yes) ;; | |
8a2fc586 AK |
5224 | *) |
5225 | case $ac_cv_c_inline in | |
5226 | no) ac_val=;; | |
5227 | *) ac_val=$ac_cv_c_inline;; | |
5228 | esac | |
5229 | cat >>confdefs.h <<_ACEOF | |
5230 | #ifndef __cplusplus | |
5231 | #define inline $ac_val | |
5232 | #endif | |
c1c065a3 | 5233 | _ACEOF |
d0191583 JM |
5234 | ;; |
5235 | esac | |
5236 | ||
5237 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
5238 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
5239 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5241 | else | |
5242 | cat >conftest.$ac_ext <<_ACEOF | |
5243 | /* confdefs.h. */ | |
5244 | _ACEOF | |
5245 | cat confdefs.h >>conftest.$ac_ext | |
5246 | cat >>conftest.$ac_ext <<_ACEOF | |
5247 | /* end confdefs.h. */ | |
5248 | $ac_includes_default | |
5249 | int | |
5250 | main () | |
5251 | { | |
5252 | static struct stat ac_aggr; | |
5253 | if (ac_aggr.st_rdev) | |
5254 | return 0; | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5259 | rm -f conftest.$ac_objext | |
5260 | if { (ac_try="$ac_compile" | |
5261 | case "(($ac_try" in | |
5262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5263 | *) ac_try_echo=$ac_try;; | |
5264 | esac | |
5265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5266 | (eval "$ac_compile") 2>conftest.er1 | |
5267 | ac_status=$? | |
5268 | grep -v '^ *+' conftest.er1 >conftest.err | |
5269 | rm -f conftest.er1 | |
5270 | cat conftest.err >&5 | |
5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5272 | (exit $ac_status); } && { | |
5273 | test -z "$ac_c_werror_flag" || | |
5274 | test ! -s conftest.err | |
5275 | } && test -s conftest.$ac_objext; then | |
5276 | ac_cv_member_struct_stat_st_rdev=yes | |
5277 | else | |
5278 | echo "$as_me: failed program was:" >&5 | |
5279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5280 | ||
5281 | cat >conftest.$ac_ext <<_ACEOF | |
5282 | /* confdefs.h. */ | |
5283 | _ACEOF | |
5284 | cat confdefs.h >>conftest.$ac_ext | |
5285 | cat >>conftest.$ac_ext <<_ACEOF | |
5286 | /* end confdefs.h. */ | |
5287 | $ac_includes_default | |
5288 | int | |
5289 | main () | |
5290 | { | |
5291 | static struct stat ac_aggr; | |
5292 | if (sizeof ac_aggr.st_rdev) | |
5293 | return 0; | |
5294 | ; | |
5295 | return 0; | |
5296 | } | |
5297 | _ACEOF | |
5298 | rm -f conftest.$ac_objext | |
5299 | if { (ac_try="$ac_compile" | |
5300 | case "(($ac_try" in | |
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5302 | *) ac_try_echo=$ac_try;; | |
5303 | esac | |
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5305 | (eval "$ac_compile") 2>conftest.er1 | |
5306 | ac_status=$? | |
5307 | grep -v '^ *+' conftest.er1 >conftest.err | |
5308 | rm -f conftest.er1 | |
5309 | cat conftest.err >&5 | |
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5311 | (exit $ac_status); } && { | |
5312 | test -z "$ac_c_werror_flag" || | |
5313 | test ! -s conftest.err | |
5314 | } && test -s conftest.$ac_objext; then | |
5315 | ac_cv_member_struct_stat_st_rdev=yes | |
5316 | else | |
5317 | echo "$as_me: failed program was:" >&5 | |
5318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5319 | ||
5320 | ac_cv_member_struct_stat_st_rdev=no | |
5321 | fi | |
5322 | ||
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5324 | fi | |
5325 | ||
5326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5327 | fi | |
5328 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5329 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5330 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
5331 | ||
5332 | cat >>confdefs.h <<_ACEOF | |
5333 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5334 | _ACEOF | |
5335 | ||
5336 | ||
5337 | fi | |
8ce0cbda | 5338 | |
1995c9ff AK |
5339 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5340 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5341 | if test "${ac_cv_type_off_t+set}" = set; then |
1995c9ff | 5342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5343 | else |
5344 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5345 | /* confdefs.h. */ |
5346 | _ACEOF | |
5347 | cat confdefs.h >>conftest.$ac_ext | |
5348 | cat >>conftest.$ac_ext <<_ACEOF | |
5349 | /* end confdefs.h. */ | |
5350 | $ac_includes_default | |
7a197a62 | 5351 | typedef off_t ac__type_new_; |
ad6254c5 AK |
5352 | int |
5353 | main () | |
5354 | { | |
7a197a62 | 5355 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5356 | return 0; |
7a197a62 | 5357 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5358 | return 0; |
5359 | ; | |
5360 | return 0; | |
5361 | } | |
5362 | _ACEOF | |
5363 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5364 | if { (ac_try="$ac_compile" |
5365 | case "(($ac_try" in | |
5366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5367 | *) ac_try_echo=$ac_try;; | |
5368 | esac | |
1995c9ff | 5369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5370 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5371 | ac_status=$? |
8a2fc586 AK |
5372 | grep -v '^ *+' conftest.er1 >conftest.err |
5373 | rm -f conftest.er1 | |
5374 | cat conftest.err >&5 | |
1995c9ff | 5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5376 | (exit $ac_status); } && { |
5377 | test -z "$ac_c_werror_flag" || | |
5378 | test ! -s conftest.err | |
5379 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5380 | ac_cv_type_off_t=yes |
5381 | else | |
1995c9ff | 5382 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5383 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5384 | |
7a197a62 | 5385 | ac_cv_type_off_t=no |
80992638 | 5386 | fi |
7a197a62 AK |
5387 | |
5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5389 | fi |
1995c9ff AK |
5390 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5391 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5392 | if test $ac_cv_type_off_t = yes; then |
5393 | : | |
5394 | else | |
80992638 | 5395 | |
ad6254c5 | 5396 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5397 | #define off_t long int |
ad6254c5 | 5398 | _ACEOF |
199e490e | 5399 | |
b896caa1 AK |
5400 | fi |
5401 | ||
1995c9ff AK |
5402 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5403 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5404 | if test "${ac_cv_type_pid_t+set}" = set; then |
1995c9ff | 5405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5406 | else |
5407 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5408 | /* confdefs.h. */ |
5409 | _ACEOF | |
5410 | cat confdefs.h >>conftest.$ac_ext | |
5411 | cat >>conftest.$ac_ext <<_ACEOF | |
5412 | /* end confdefs.h. */ | |
5413 | $ac_includes_default | |
7a197a62 | 5414 | typedef pid_t ac__type_new_; |
ad6254c5 AK |
5415 | int |
5416 | main () | |
5417 | { | |
7a197a62 | 5418 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5419 | return 0; |
7a197a62 | 5420 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5421 | return 0; |
5422 | ; | |
5423 | return 0; | |
5424 | } | |
5425 | _ACEOF | |
5426 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5427 | if { (ac_try="$ac_compile" |
5428 | case "(($ac_try" in | |
5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5430 | *) ac_try_echo=$ac_try;; | |
5431 | esac | |
1995c9ff | 5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5433 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5434 | ac_status=$? |
8a2fc586 AK |
5435 | grep -v '^ *+' conftest.er1 >conftest.err |
5436 | rm -f conftest.er1 | |
5437 | cat conftest.err >&5 | |
1995c9ff | 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5439 | (exit $ac_status); } && { |
5440 | test -z "$ac_c_werror_flag" || | |
5441 | test ! -s conftest.err | |
5442 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5443 | ac_cv_type_pid_t=yes |
5444 | else | |
1995c9ff | 5445 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
5447 | ||
7a197a62 | 5448 | ac_cv_type_pid_t=no |
ad6254c5 | 5449 | fi |
7a197a62 AK |
5450 | |
5451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5452 | fi |
1995c9ff AK |
5453 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5454 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5455 | if test $ac_cv_type_pid_t = yes; then |
5456 | : | |
5457 | else | |
80992638 | 5458 | |
ad6254c5 AK |
5459 | cat >>confdefs.h <<_ACEOF |
5460 | #define pid_t int | |
5461 | _ACEOF | |
2dc95e1c | 5462 | |
2dc95e1c AK |
5463 | fi |
5464 | ||
d0191583 JM |
5465 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5466 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
5467 | if test "${ac_cv_type_signal+set}" = set; then | |
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5469 | else | |
5470 | cat >conftest.$ac_ext <<_ACEOF | |
5471 | /* confdefs.h. */ | |
5472 | _ACEOF | |
5473 | cat confdefs.h >>conftest.$ac_ext | |
5474 | cat >>conftest.$ac_ext <<_ACEOF | |
5475 | /* end confdefs.h. */ | |
5476 | #include <sys/types.h> | |
5477 | #include <signal.h> | |
5478 | ||
5479 | int | |
5480 | main () | |
5481 | { | |
5482 | return *(signal (0, 0)) (0) == 1; | |
5483 | ; | |
5484 | return 0; | |
5485 | } | |
5486 | _ACEOF | |
5487 | rm -f conftest.$ac_objext | |
5488 | if { (ac_try="$ac_compile" | |
5489 | case "(($ac_try" in | |
5490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5491 | *) ac_try_echo=$ac_try;; | |
5492 | esac | |
5493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5494 | (eval "$ac_compile") 2>conftest.er1 | |
5495 | ac_status=$? | |
5496 | grep -v '^ *+' conftest.er1 >conftest.err | |
5497 | rm -f conftest.er1 | |
5498 | cat conftest.err >&5 | |
5499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5500 | (exit $ac_status); } && { | |
5501 | test -z "$ac_c_werror_flag" || | |
5502 | test ! -s conftest.err | |
5503 | } && test -s conftest.$ac_objext; then | |
5504 | ac_cv_type_signal=int | |
5505 | else | |
5506 | echo "$as_me: failed program was:" >&5 | |
5507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5508 | ||
5509 | ac_cv_type_signal=void | |
5510 | fi | |
5511 | ||
5512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5513 | fi | |
5514 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
5515 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
5516 | ||
5517 | cat >>confdefs.h <<_ACEOF | |
5518 | #define RETSIGTYPE $ac_cv_type_signal | |
5519 | _ACEOF | |
5520 | ||
5521 | ||
1995c9ff AK |
5522 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5523 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5524 | if test "${ac_cv_type_size_t+set}" = set; then |
1995c9ff | 5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5526 | else |
ad6254c5 | 5527 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5528 | /* confdefs.h. */ |
5529 | _ACEOF | |
5530 | cat confdefs.h >>conftest.$ac_ext | |
5531 | cat >>conftest.$ac_ext <<_ACEOF | |
5532 | /* end confdefs.h. */ | |
5533 | $ac_includes_default | |
7a197a62 | 5534 | typedef size_t ac__type_new_; |
ad6254c5 AK |
5535 | int |
5536 | main () | |
5537 | { | |
7a197a62 | 5538 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5539 | return 0; |
7a197a62 | 5540 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5541 | return 0; |
5542 | ; | |
5543 | return 0; | |
5544 | } | |
5545 | _ACEOF | |
5546 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5547 | if { (ac_try="$ac_compile" |
5548 | case "(($ac_try" in | |
5549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5550 | *) ac_try_echo=$ac_try;; | |
5551 | esac | |
1995c9ff | 5552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5553 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5554 | ac_status=$? |
8a2fc586 AK |
5555 | grep -v '^ *+' conftest.er1 >conftest.err |
5556 | rm -f conftest.er1 | |
5557 | cat conftest.err >&5 | |
1995c9ff | 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5559 | (exit $ac_status); } && { |
5560 | test -z "$ac_c_werror_flag" || | |
5561 | test ! -s conftest.err | |
5562 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5563 | ac_cv_type_size_t=yes |
5564 | else | |
1995c9ff | 5565 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5566 | sed 's/^/| /' conftest.$ac_ext >&5 |
5567 | ||
7a197a62 | 5568 | ac_cv_type_size_t=no |
80992638 | 5569 | fi |
7a197a62 AK |
5570 | |
5571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5572 | fi |
1995c9ff AK |
5573 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5574 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5575 | if test $ac_cv_type_size_t = yes; then |
5576 | : | |
5577 | else | |
80992638 | 5578 | |
ad6254c5 | 5579 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5580 | #define size_t unsigned int |
ad6254c5 | 5581 | _ACEOF |
8106cdd5 | 5582 | |
8106cdd5 AK |
5583 | fi |
5584 | ||
1995c9ff AK |
5585 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5586 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5587 | if test "${ac_cv_type_mode_t+set}" = set; then |
1995c9ff | 5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5589 | else |
5590 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5591 | /* confdefs.h. */ |
5592 | _ACEOF | |
5593 | cat confdefs.h >>conftest.$ac_ext | |
5594 | cat >>conftest.$ac_ext <<_ACEOF | |
5595 | /* end confdefs.h. */ | |
5596 | $ac_includes_default | |
7a197a62 | 5597 | typedef mode_t ac__type_new_; |
ad6254c5 AK |
5598 | int |
5599 | main () | |
5600 | { | |
7a197a62 | 5601 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5602 | return 0; |
7a197a62 | 5603 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5604 | return 0; |
5605 | ; | |
5606 | return 0; | |
5607 | } | |
5608 | _ACEOF | |
5609 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5610 | if { (ac_try="$ac_compile" |
5611 | case "(($ac_try" in | |
5612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5613 | *) ac_try_echo=$ac_try;; | |
5614 | esac | |
1995c9ff | 5615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5616 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5617 | ac_status=$? |
8a2fc586 AK |
5618 | grep -v '^ *+' conftest.er1 >conftest.err |
5619 | rm -f conftest.er1 | |
5620 | cat conftest.err >&5 | |
1995c9ff | 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5622 | (exit $ac_status); } && { |
5623 | test -z "$ac_c_werror_flag" || | |
5624 | test ! -s conftest.err | |
5625 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5626 | ac_cv_type_mode_t=yes |
5627 | else | |
1995c9ff | 5628 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5629 | sed 's/^/| /' conftest.$ac_ext >&5 |
5630 | ||
7a197a62 | 5631 | ac_cv_type_mode_t=no |
80992638 | 5632 | fi |
7a197a62 AK |
5633 | |
5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5635 | fi |
1995c9ff AK |
5636 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5637 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5638 | if test $ac_cv_type_mode_t = yes; then |
5639 | : | |
5640 | else | |
80992638 | 5641 | |
ad6254c5 AK |
5642 | cat >>confdefs.h <<_ACEOF |
5643 | #define mode_t int | |
5644 | _ACEOF | |
5645 | ||
5646 | fi | |
5647 | ||
1995c9ff AK |
5648 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5649 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5650 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
1995c9ff | 5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5652 | else |
5653 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5654 | /* confdefs.h. */ |
5655 | _ACEOF | |
5656 | cat confdefs.h >>conftest.$ac_ext | |
5657 | cat >>conftest.$ac_ext <<_ACEOF | |
5658 | /* end confdefs.h. */ | |
5659 | $ac_includes_default | |
5660 | int | |
5661 | main () | |
5662 | { | |
5663 | static struct stat ac_aggr; | |
5664 | if (ac_aggr.st_rdev) | |
5665 | return 0; | |
5666 | ; | |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5671 | if { (ac_try="$ac_compile" |
5672 | case "(($ac_try" in | |
5673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5674 | *) ac_try_echo=$ac_try;; | |
5675 | esac | |
1995c9ff | 5676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5677 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5678 | ac_status=$? |
8a2fc586 AK |
5679 | grep -v '^ *+' conftest.er1 >conftest.err |
5680 | rm -f conftest.er1 | |
5681 | cat conftest.err >&5 | |
1995c9ff | 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5683 | (exit $ac_status); } && { |
5684 | test -z "$ac_c_werror_flag" || | |
5685 | test ! -s conftest.err | |
5686 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5687 | ac_cv_member_struct_stat_st_rdev=yes |
5688 | else | |
1995c9ff | 5689 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5690 | sed 's/^/| /' conftest.$ac_ext >&5 |
5691 | ||
7a197a62 | 5692 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5693 | /* confdefs.h. */ |
5694 | _ACEOF | |
5695 | cat confdefs.h >>conftest.$ac_ext | |
5696 | cat >>conftest.$ac_ext <<_ACEOF | |
5697 | /* end confdefs.h. */ | |
5698 | $ac_includes_default | |
5699 | int | |
5700 | main () | |
5701 | { | |
5702 | static struct stat ac_aggr; | |
5703 | if (sizeof ac_aggr.st_rdev) | |
5704 | return 0; | |
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5709 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5710 | if { (ac_try="$ac_compile" |
5711 | case "(($ac_try" in | |
5712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5713 | *) ac_try_echo=$ac_try;; | |
5714 | esac | |
1995c9ff | 5715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5716 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5717 | ac_status=$? |
8a2fc586 AK |
5718 | grep -v '^ *+' conftest.er1 >conftest.err |
5719 | rm -f conftest.er1 | |
5720 | cat conftest.err >&5 | |
1995c9ff | 5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5722 | (exit $ac_status); } && { |
5723 | test -z "$ac_c_werror_flag" || | |
5724 | test ! -s conftest.err | |
5725 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5726 | ac_cv_member_struct_stat_st_rdev=yes |
5727 | else | |
1995c9ff | 5728 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5729 | sed 's/^/| /' conftest.$ac_ext >&5 |
5730 | ||
7a197a62 | 5731 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5732 | fi |
7a197a62 AK |
5733 | |
5734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5735 | fi |
7a197a62 AK |
5736 | |
5737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5738 | fi |
1995c9ff AK |
5739 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5740 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5741 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5742 | ||
5743 | cat >>confdefs.h <<_ACEOF | |
5744 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5745 | _ACEOF | |
5746 | ||
5747 | ||
ad6254c5 AK |
5748 | fi |
5749 | ||
1995c9ff AK |
5750 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5751 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5752 | if test "${ac_cv_struct_tm+set}" = set; then |
1995c9ff | 5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5754 | else |
5755 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5756 | /* confdefs.h. */ |
5757 | _ACEOF | |
5758 | cat confdefs.h >>conftest.$ac_ext | |
5759 | cat >>conftest.$ac_ext <<_ACEOF | |
5760 | /* end confdefs.h. */ | |
5761 | #include <sys/types.h> | |
5762 | #include <time.h> | |
5763 | ||
5764 | int | |
5765 | main () | |
5766 | { | |
25fbec5b AK |
5767 | struct tm tm; |
5768 | int *p = &tm.tm_sec; | |
5769 | return !p; | |
ad6254c5 AK |
5770 | ; |
5771 | return 0; | |
5772 | } | |
5773 | _ACEOF | |
5774 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5775 | if { (ac_try="$ac_compile" |
5776 | case "(($ac_try" in | |
5777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5778 | *) ac_try_echo=$ac_try;; | |
5779 | esac | |
1995c9ff | 5780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5781 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5782 | ac_status=$? |
8a2fc586 AK |
5783 | grep -v '^ *+' conftest.er1 >conftest.err |
5784 | rm -f conftest.er1 | |
5785 | cat conftest.err >&5 | |
1995c9ff | 5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5787 | (exit $ac_status); } && { |
5788 | test -z "$ac_c_werror_flag" || | |
5789 | test ! -s conftest.err | |
5790 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5791 | ac_cv_struct_tm=time.h |
5792 | else | |
1995c9ff | 5793 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5794 | sed 's/^/| /' conftest.$ac_ext >&5 |
5795 | ||
7a197a62 | 5796 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5797 | fi |
7a197a62 AK |
5798 | |
5799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5800 | fi |
1995c9ff AK |
5801 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5802 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5803 | if test $ac_cv_struct_tm = sys/time.h; then |
5804 | ||
5805 | cat >>confdefs.h <<\_ACEOF | |
5806 | #define TM_IN_SYS_TIME 1 | |
5807 | _ACEOF | |
5808 | ||
5809 | fi | |
809fae91 | 5810 | |
795ca3e5 | 5811 | |
80992638 | 5812 | ################################################################################ |
ad6254c5 AK |
5813 | |
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
d0191583 JM |
5827 | |
5828 | ||
5829 | ||
5830 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5831 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5832 | uname | |
ad6254c5 | 5833 | do |
1995c9ff AK |
5834 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5835 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5836 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5837 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5839 | else |
ad6254c5 | 5840 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5841 | /* confdefs.h. */ |
5842 | _ACEOF | |
5843 | cat confdefs.h >>conftest.$ac_ext | |
5844 | cat >>conftest.$ac_ext <<_ACEOF | |
5845 | /* end confdefs.h. */ | |
8a2fc586 AK |
5846 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5848 | #define $ac_func innocuous_$ac_func | |
5849 | ||
ad6254c5 AK |
5850 | /* System header to define __stub macros and hopefully few prototypes, |
5851 | which can conflict with char $ac_func (); below. | |
5852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5853 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5854 | |
ad6254c5 AK |
5855 | #ifdef __STDC__ |
5856 | # include <limits.h> | |
5857 | #else | |
5858 | # include <assert.h> | |
5859 | #endif | |
8a2fc586 AK |
5860 | |
5861 | #undef $ac_func | |
5862 | ||
7a197a62 AK |
5863 | /* Override any GCC internal prototype to avoid an error. |
5864 | Use char because int might match the return type of a GCC | |
5865 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5866 | #ifdef __cplusplus |
5867 | extern "C" | |
ad6254c5 | 5868 | #endif |
ad6254c5 AK |
5869 | char $ac_func (); |
5870 | /* The GNU C library defines this for functions which it implements | |
5871 | to always fail with ENOSYS. Some functions are actually named | |
5872 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5873 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5874 | choke me |
ad6254c5 AK |
5875 | #endif |
5876 | ||
5877 | int | |
5878 | main () | |
5879 | { | |
7a197a62 | 5880 | return $ac_func (); |
ad6254c5 AK |
5881 | ; |
5882 | return 0; | |
5883 | } | |
5884 | _ACEOF | |
5885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5886 | if { (ac_try="$ac_link" |
5887 | case "(($ac_try" in | |
5888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5889 | *) ac_try_echo=$ac_try;; | |
5890 | esac | |
1995c9ff | 5891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5892 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5893 | ac_status=$? |
8a2fc586 AK |
5894 | grep -v '^ *+' conftest.er1 >conftest.err |
5895 | rm -f conftest.er1 | |
5896 | cat conftest.err >&5 | |
1995c9ff | 5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5898 | (exit $ac_status); } && { |
5899 | test -z "$ac_c_werror_flag" || | |
5900 | test ! -s conftest.err | |
5901 | } && test -s conftest$ac_exeext && | |
5902 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
5903 | eval "$as_ac_var=yes" |
5904 | else | |
5905 | echo "$as_me: failed program was:" >&5 | |
5906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5907 | ||
5908 | eval "$as_ac_var=no" | |
5909 | fi | |
5910 | ||
25fbec5b | 5911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
5912 | conftest$ac_exeext conftest.$ac_ext |
5913 | fi | |
1995c9ff AK |
5914 | ac_res=`eval echo '${'$as_ac_var'}'` |
5915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5916 | echo "${ECHO_T}$ac_res" >&6; } | |
5917 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 5918 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 5919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
5920 | _ACEOF |
5921 | ||
5922 | else | |
1995c9ff AK |
5923 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5924 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
5925 | { (exit 1); exit 1; }; } |
5926 | fi | |
5927 | done | |
795ca3e5 | 5928 | |
ad6254c5 AK |
5929 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5930 | # for constant arguments. Useless! | |
1995c9ff AK |
5931 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5932 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 5933 | if test "${ac_cv_working_alloca_h+set}" = set; then |
1995c9ff | 5934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5935 | else |
5936 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5937 | /* confdefs.h. */ |
5938 | _ACEOF | |
5939 | cat confdefs.h >>conftest.$ac_ext | |
5940 | cat >>conftest.$ac_ext <<_ACEOF | |
5941 | /* end confdefs.h. */ | |
5942 | #include <alloca.h> | |
5943 | int | |
5944 | main () | |
5945 | { | |
5946 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5947 | if (p) return 0; |
ad6254c5 AK |
5948 | ; |
5949 | return 0; | |
5950 | } | |
5951 | _ACEOF | |
5952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5953 | if { (ac_try="$ac_link" |
5954 | case "(($ac_try" in | |
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5956 | *) ac_try_echo=$ac_try;; | |
5957 | esac | |
1995c9ff | 5958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5959 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5960 | ac_status=$? |
8a2fc586 AK |
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
5962 | rm -f conftest.er1 | |
5963 | cat conftest.err >&5 | |
1995c9ff | 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5965 | (exit $ac_status); } && { |
5966 | test -z "$ac_c_werror_flag" || | |
5967 | test ! -s conftest.err | |
5968 | } && test -s conftest$ac_exeext && | |
5969 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5970 | ac_cv_working_alloca_h=yes |
5971 | else | |
1995c9ff | 5972 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 5974 | |
7a197a62 | 5975 | ac_cv_working_alloca_h=no |
ad6254c5 | 5976 | fi |
7a197a62 | 5977 | |
25fbec5b | 5978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 5979 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5980 | fi |
1995c9ff AK |
5981 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5982 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
5983 | if test $ac_cv_working_alloca_h = yes; then |
5984 | ||
5985 | cat >>confdefs.h <<\_ACEOF | |
5986 | #define HAVE_ALLOCA_H 1 | |
5987 | _ACEOF | |
5988 | ||
5989 | fi | |
5990 | ||
1995c9ff AK |
5991 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
5992 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 5993 | if test "${ac_cv_func_alloca_works+set}" = set; then |
1995c9ff | 5994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5995 | else |
5996 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5997 | /* confdefs.h. */ |
5998 | _ACEOF | |
5999 | cat confdefs.h >>conftest.$ac_ext | |
6000 | cat >>conftest.$ac_ext <<_ACEOF | |
6001 | /* end confdefs.h. */ | |
6002 | #ifdef __GNUC__ | |
6003 | # define alloca __builtin_alloca | |
6004 | #else | |
6005 | # ifdef _MSC_VER | |
6006 | # include <malloc.h> | |
6007 | # define alloca _alloca | |
6008 | # else | |
25fbec5b | 6009 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6010 | # include <alloca.h> |
6011 | # else | |
6012 | # ifdef _AIX | |
6013 | #pragma alloca | |
6014 | # else | |
6015 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6016 | char *alloca (); | |
6017 | # endif | |
6018 | # endif | |
6019 | # endif | |
6020 | # endif | |
6021 | #endif | |
6022 | ||
6023 | int | |
6024 | main () | |
6025 | { | |
6026 | char *p = (char *) alloca (1); | |
7a197a62 | 6027 | if (p) return 0; |
ad6254c5 AK |
6028 | ; |
6029 | return 0; | |
6030 | } | |
6031 | _ACEOF | |
6032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6033 | if { (ac_try="$ac_link" |
6034 | case "(($ac_try" in | |
6035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6036 | *) ac_try_echo=$ac_try;; | |
6037 | esac | |
1995c9ff | 6038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6039 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6040 | ac_status=$? |
8a2fc586 AK |
6041 | grep -v '^ *+' conftest.er1 >conftest.err |
6042 | rm -f conftest.er1 | |
6043 | cat conftest.err >&5 | |
1995c9ff | 6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6045 | (exit $ac_status); } && { |
6046 | test -z "$ac_c_werror_flag" || | |
6047 | test ! -s conftest.err | |
6048 | } && test -s conftest$ac_exeext && | |
6049 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6050 | ac_cv_func_alloca_works=yes |
6051 | else | |
1995c9ff | 6052 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
6054 | ||
7a197a62 | 6055 | ac_cv_func_alloca_works=no |
ad6254c5 | 6056 | fi |
7a197a62 | 6057 | |
25fbec5b | 6058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6059 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6060 | fi |
1995c9ff AK |
6061 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6062 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6063 | |
6064 | if test $ac_cv_func_alloca_works = yes; then | |
6065 | ||
6066 | cat >>confdefs.h <<\_ACEOF | |
6067 | #define HAVE_ALLOCA 1 | |
6068 | _ACEOF | |
6069 | ||
6070 | else | |
6071 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6072 | # that cause trouble. Some versions do not even contain alloca or | |
6073 | # contain a buggy version. If you still want to use their alloca, | |
6074 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6075 | ||
7a197a62 | 6076 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6077 | |
6078 | cat >>confdefs.h <<\_ACEOF | |
6079 | #define C_ALLOCA 1 | |
6080 | _ACEOF | |
6081 | ||
6082 | ||
1995c9ff AK |
6083 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6084 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6085 | if test "${ac_cv_os_cray+set}" = set; then |
1995c9ff | 6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6087 | else |
6088 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6089 | /* confdefs.h. */ |
6090 | _ACEOF | |
6091 | cat confdefs.h >>conftest.$ac_ext | |
6092 | cat >>conftest.$ac_ext <<_ACEOF | |
6093 | /* end confdefs.h. */ | |
7a197a62 | 6094 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6095 | webecray |
6096 | #else | |
6097 | wenotbecray | |
6098 | #endif | |
6099 | ||
6100 | _ACEOF | |
795ca3e5 | 6101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6102 | $EGREP "webecray" >/dev/null 2>&1; then |
6103 | ac_cv_os_cray=yes | |
6104 | else | |
6105 | ac_cv_os_cray=no | |
795ca3e5 AK |
6106 | fi |
6107 | rm -f conftest* | |
6108 | ||
795ca3e5 | 6109 | fi |
1995c9ff AK |
6110 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6111 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6112 | if test $ac_cv_os_cray = yes; then |
6113 | for ac_func in _getb67 GETB67 getb67; do | |
1995c9ff AK |
6114 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6115 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6116 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6117 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6119 | else |
6120 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6121 | /* confdefs.h. */ |
6122 | _ACEOF | |
6123 | cat confdefs.h >>conftest.$ac_ext | |
6124 | cat >>conftest.$ac_ext <<_ACEOF | |
6125 | /* end confdefs.h. */ | |
8a2fc586 AK |
6126 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6127 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6128 | #define $ac_func innocuous_$ac_func | |
6129 | ||
ad6254c5 AK |
6130 | /* System header to define __stub macros and hopefully few prototypes, |
6131 | which can conflict with char $ac_func (); below. | |
6132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6133 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6134 | |
ad6254c5 AK |
6135 | #ifdef __STDC__ |
6136 | # include <limits.h> | |
6137 | #else | |
6138 | # include <assert.h> | |
6139 | #endif | |
8a2fc586 AK |
6140 | |
6141 | #undef $ac_func | |
6142 | ||
7a197a62 AK |
6143 | /* Override any GCC internal prototype to avoid an error. |
6144 | Use char because int might match the return type of a GCC | |
6145 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6146 | #ifdef __cplusplus |
6147 | extern "C" | |
ad6254c5 | 6148 | #endif |
ad6254c5 AK |
6149 | char $ac_func (); |
6150 | /* The GNU C library defines this for functions which it implements | |
6151 | to always fail with ENOSYS. Some functions are actually named | |
6152 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6153 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6154 | choke me |
ad6254c5 AK |
6155 | #endif |
6156 | ||
6157 | int | |
6158 | main () | |
6159 | { | |
7a197a62 | 6160 | return $ac_func (); |
ad6254c5 AK |
6161 | ; |
6162 | return 0; | |
6163 | } | |
6164 | _ACEOF | |
6165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6166 | if { (ac_try="$ac_link" |
6167 | case "(($ac_try" in | |
6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6169 | *) ac_try_echo=$ac_try;; | |
6170 | esac | |
1995c9ff | 6171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6172 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6173 | ac_status=$? |
8a2fc586 AK |
6174 | grep -v '^ *+' conftest.er1 >conftest.err |
6175 | rm -f conftest.er1 | |
6176 | cat conftest.err >&5 | |
1995c9ff | 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6178 | (exit $ac_status); } && { |
6179 | test -z "$ac_c_werror_flag" || | |
6180 | test ! -s conftest.err | |
6181 | } && test -s conftest$ac_exeext && | |
6182 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6183 | eval "$as_ac_var=yes" |
6184 | else | |
1995c9ff | 6185 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6186 | sed 's/^/| /' conftest.$ac_ext >&5 |
6187 | ||
7a197a62 | 6188 | eval "$as_ac_var=no" |
ad6254c5 | 6189 | fi |
7a197a62 | 6190 | |
25fbec5b | 6191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6192 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6193 | fi |
1995c9ff AK |
6194 | ac_res=`eval echo '${'$as_ac_var'}'` |
6195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6196 | echo "${ECHO_T}$ac_res" >&6; } | |
6197 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6198 | |
ad6254c5 AK |
6199 | cat >>confdefs.h <<_ACEOF |
6200 | #define CRAY_STACKSEG_END $ac_func | |
6201 | _ACEOF | |
6202 | ||
6203 | break | |
6204 | fi | |
6205 | ||
6206 | done | |
6207 | fi | |
6208 | ||
1995c9ff AK |
6209 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6210 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6211 | if test "${ac_cv_c_stack_direction+set}" = set; then |
1995c9ff | 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6213 | else |
6214 | if test "$cross_compiling" = yes; then | |
6215 | ac_cv_c_stack_direction=0 | |
6216 | else | |
6217 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6218 | /* confdefs.h. */ |
6219 | _ACEOF | |
6220 | cat confdefs.h >>conftest.$ac_ext | |
6221 | cat >>conftest.$ac_ext <<_ACEOF | |
6222 | /* end confdefs.h. */ | |
7a197a62 | 6223 | $ac_includes_default |
ad6254c5 AK |
6224 | int |
6225 | find_stack_direction () | |
6226 | { | |
6227 | static char *addr = 0; | |
6228 | auto char dummy; | |
6229 | if (addr == 0) | |
6230 | { | |
6231 | addr = &dummy; | |
6232 | return find_stack_direction (); | |
6233 | } | |
6234 | else | |
6235 | return (&dummy > addr) ? 1 : -1; | |
6236 | } | |
6237 | ||
6238 | int | |
6239 | main () | |
6240 | { | |
7a197a62 | 6241 | return find_stack_direction () < 0; |
ad6254c5 AK |
6242 | } |
6243 | _ACEOF | |
6244 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6245 | if { (ac_try="$ac_link" |
6246 | case "(($ac_try" in | |
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6248 | *) ac_try_echo=$ac_try;; | |
6249 | esac | |
1995c9ff | 6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6251 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6252 | ac_status=$? |
1995c9ff | 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6255 | { (case "(($ac_try" in |
6256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6257 | *) ac_try_echo=$ac_try;; | |
6258 | esac | |
1995c9ff | 6259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6260 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6261 | ac_status=$? |
1995c9ff | 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6263 | (exit $ac_status); }; }; then |
6264 | ac_cv_c_stack_direction=1 | |
6265 | else | |
1995c9ff AK |
6266 | echo "$as_me: program exited with status $ac_status" >&5 |
6267 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6268 | sed 's/^/| /' conftest.$ac_ext >&5 |
6269 | ||
6270 | ( exit $ac_status ) | |
6271 | ac_cv_c_stack_direction=-1 | |
6272 | fi | |
7a197a62 | 6273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6274 | fi |
7a197a62 AK |
6275 | |
6276 | ||
ad6254c5 | 6277 | fi |
1995c9ff AK |
6278 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6279 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6280 | |
6281 | cat >>confdefs.h <<_ACEOF | |
6282 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6283 | _ACEOF | |
6284 | ||
6285 | ||
6286 | fi | |
6287 | ||
1995c9ff AK |
6288 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6289 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6290 | if test "${ac_cv_func_closedir_void+set}" = set; then |
1995c9ff | 6291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6292 | else |
6293 | if test "$cross_compiling" = yes; then | |
6294 | ac_cv_func_closedir_void=yes | |
6295 | else | |
6296 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6297 | /* confdefs.h. */ |
6298 | _ACEOF | |
6299 | cat confdefs.h >>conftest.$ac_ext | |
6300 | cat >>conftest.$ac_ext <<_ACEOF | |
6301 | /* end confdefs.h. */ | |
6302 | $ac_includes_default | |
6303 | #include <$ac_header_dirent> | |
6304 | #ifndef __cplusplus | |
6305 | int closedir (); | |
6306 | #endif | |
6307 | ||
6308 | int | |
6309 | main () | |
6310 | { | |
7a197a62 | 6311 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6312 | ; |
6313 | return 0; | |
6314 | } | |
6315 | _ACEOF | |
6316 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6317 | if { (ac_try="$ac_link" |
6318 | case "(($ac_try" in | |
6319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6320 | *) ac_try_echo=$ac_try;; | |
6321 | esac | |
1995c9ff | 6322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6323 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6324 | ac_status=$? |
1995c9ff | 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6327 | { (case "(($ac_try" in |
6328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6329 | *) ac_try_echo=$ac_try;; | |
6330 | esac | |
1995c9ff | 6331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6332 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6333 | ac_status=$? |
1995c9ff | 6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6335 | (exit $ac_status); }; }; then |
6336 | ac_cv_func_closedir_void=no | |
6337 | else | |
1995c9ff AK |
6338 | echo "$as_me: program exited with status $ac_status" >&5 |
6339 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6340 | sed 's/^/| /' conftest.$ac_ext >&5 |
6341 | ||
6342 | ( exit $ac_status ) | |
6343 | ac_cv_func_closedir_void=yes | |
6344 | fi | |
7a197a62 | 6345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6346 | fi |
7a197a62 AK |
6347 | |
6348 | ||
ad6254c5 | 6349 | fi |
1995c9ff AK |
6350 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6351 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6352 | if test $ac_cv_func_closedir_void = yes; then |
6353 | ||
6354 | cat >>confdefs.h <<\_ACEOF | |
6355 | #define CLOSEDIR_VOID 1 | |
6356 | _ACEOF | |
6357 | ||
6358 | fi | |
6359 | ||
6360 | ||
7a197a62 | 6361 | for ac_header in vfork.h |
ad6254c5 | 6362 | do |
1995c9ff | 6363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6364 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
6365 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6369 | fi |
1995c9ff AK |
6370 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6371 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6372 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6373 | else |
6374 | # Is the header compilable? | |
1995c9ff AK |
6375 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6377 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6378 | /* confdefs.h. */ |
6379 | _ACEOF | |
6380 | cat confdefs.h >>conftest.$ac_ext | |
6381 | cat >>conftest.$ac_ext <<_ACEOF | |
6382 | /* end confdefs.h. */ | |
6383 | $ac_includes_default | |
6384 | #include <$ac_header> | |
6385 | _ACEOF | |
6386 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6387 | if { (ac_try="$ac_compile" |
6388 | case "(($ac_try" in | |
6389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6390 | *) ac_try_echo=$ac_try;; | |
6391 | esac | |
1995c9ff | 6392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6393 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6394 | ac_status=$? |
8a2fc586 AK |
6395 | grep -v '^ *+' conftest.er1 >conftest.err |
6396 | rm -f conftest.er1 | |
6397 | cat conftest.err >&5 | |
1995c9ff | 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6399 | (exit $ac_status); } && { |
6400 | test -z "$ac_c_werror_flag" || | |
6401 | test ! -s conftest.err | |
6402 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6403 | ac_header_compiler=yes |
6404 | else | |
1995c9ff | 6405 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6406 | sed 's/^/| /' conftest.$ac_ext >&5 |
6407 | ||
7a197a62 | 6408 | ac_header_compiler=no |
ad6254c5 | 6409 | fi |
7a197a62 AK |
6410 | |
6411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
6412 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6413 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6414 | |
6415 | # Is the header present? | |
1995c9ff AK |
6416 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6417 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6418 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6419 | /* confdefs.h. */ |
6420 | _ACEOF | |
6421 | cat confdefs.h >>conftest.$ac_ext | |
6422 | cat >>conftest.$ac_ext <<_ACEOF | |
6423 | /* end confdefs.h. */ | |
6424 | #include <$ac_header> | |
6425 | _ACEOF | |
7a197a62 AK |
6426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6427 | case "(($ac_try" in | |
6428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6429 | *) ac_try_echo=$ac_try;; | |
6430 | esac | |
1995c9ff | 6431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6433 | ac_status=$? |
6434 | grep -v '^ *+' conftest.er1 >conftest.err | |
6435 | rm -f conftest.er1 | |
6436 | cat conftest.err >&5 | |
1995c9ff | 6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6438 | (exit $ac_status); } >/dev/null && { |
6439 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6440 | test ! -s conftest.err | |
6441 | }; then | |
ad6254c5 AK |
6442 | ac_header_preproc=yes |
6443 | else | |
1995c9ff | 6444 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6445 | sed 's/^/| /' conftest.$ac_ext >&5 |
6446 | ||
6447 | ac_header_preproc=no | |
6448 | fi | |
7a197a62 | 6449 | |
ad6254c5 | 6450 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
6451 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6452 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6453 | |
6454 | # So? What about this header? | |
8a2fc586 AK |
6455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6456 | yes:no: ) | |
1995c9ff AK |
6457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6461 | ac_header_preproc=yes |
ad6254c5 | 6462 | ;; |
8a2fc586 | 6463 | no:yes:* ) |
1995c9ff AK |
6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6476 | |
ad6254c5 AK |
6477 | ;; |
6478 | esac | |
1995c9ff AK |
6479 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6483 | else |
8a2fc586 | 6484 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6485 | fi |
1995c9ff AK |
6486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6488 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6489 | |
795ca3e5 | 6490 | fi |
1995c9ff | 6491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6492 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6494 | _ACEOF |
6495 | ||
6496 | fi | |
6497 | ||
6498 | done | |
795ca3e5 | 6499 | |
ad6254c5 AK |
6500 | |
6501 | ||
6502 | for ac_func in fork vfork | |
6503 | do | |
1995c9ff AK |
6504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6505 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6507 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6509 | else |
ad6254c5 | 6510 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6511 | /* confdefs.h. */ |
6512 | _ACEOF | |
6513 | cat confdefs.h >>conftest.$ac_ext | |
6514 | cat >>conftest.$ac_ext <<_ACEOF | |
6515 | /* end confdefs.h. */ | |
8a2fc586 AK |
6516 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6517 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6518 | #define $ac_func innocuous_$ac_func | |
6519 | ||
ad6254c5 AK |
6520 | /* System header to define __stub macros and hopefully few prototypes, |
6521 | which can conflict with char $ac_func (); below. | |
6522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6523 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6524 | |
ad6254c5 AK |
6525 | #ifdef __STDC__ |
6526 | # include <limits.h> | |
6527 | #else | |
6528 | # include <assert.h> | |
795ca3e5 | 6529 | #endif |
8a2fc586 AK |
6530 | |
6531 | #undef $ac_func | |
6532 | ||
7a197a62 AK |
6533 | /* Override any GCC internal prototype to avoid an error. |
6534 | Use char because int might match the return type of a GCC | |
6535 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6536 | #ifdef __cplusplus |
ad6254c5 | 6537 | extern "C" |
ad6254c5 | 6538 | #endif |
ad6254c5 AK |
6539 | char $ac_func (); |
6540 | /* The GNU C library defines this for functions which it implements | |
6541 | to always fail with ENOSYS. Some functions are actually named | |
6542 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6543 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6544 | choke me |
795ca3e5 AK |
6545 | #endif |
6546 | ||
ad6254c5 AK |
6547 | int |
6548 | main () | |
6549 | { | |
7a197a62 | 6550 | return $ac_func (); |
ad6254c5 AK |
6551 | ; |
6552 | return 0; | |
6553 | } | |
6554 | _ACEOF | |
6555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6556 | if { (ac_try="$ac_link" |
6557 | case "(($ac_try" in | |
6558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6559 | *) ac_try_echo=$ac_try;; | |
6560 | esac | |
1995c9ff | 6561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6562 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6563 | ac_status=$? |
8a2fc586 AK |
6564 | grep -v '^ *+' conftest.er1 >conftest.err |
6565 | rm -f conftest.er1 | |
6566 | cat conftest.err >&5 | |
1995c9ff | 6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6568 | (exit $ac_status); } && { |
6569 | test -z "$ac_c_werror_flag" || | |
6570 | test ! -s conftest.err | |
6571 | } && test -s conftest$ac_exeext && | |
6572 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6573 | eval "$as_ac_var=yes" |
795ca3e5 | 6574 | else |
1995c9ff | 6575 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
6577 | ||
7a197a62 | 6578 | eval "$as_ac_var=no" |
795ca3e5 | 6579 | fi |
7a197a62 | 6580 | |
25fbec5b | 6581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6582 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6583 | fi |
1995c9ff AK |
6584 | ac_res=`eval echo '${'$as_ac_var'}'` |
6585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6586 | echo "${ECHO_T}$ac_res" >&6; } | |
6587 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6588 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6589 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6590 | _ACEOF |
6591 | ||
6592 | fi | |
6593 | done | |
6594 | ||
6595 | if test "x$ac_cv_func_fork" = xyes; then | |
1995c9ff AK |
6596 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6597 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6598 | if test "${ac_cv_func_fork_works+set}" = set; then |
1995c9ff | 6599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6600 | else |
6601 | if test "$cross_compiling" = yes; then | |
6602 | ac_cv_func_fork_works=cross | |
6603 | else | |
6604 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6605 | /* confdefs.h. */ |
6606 | _ACEOF | |
6607 | cat confdefs.h >>conftest.$ac_ext | |
6608 | cat >>conftest.$ac_ext <<_ACEOF | |
6609 | /* end confdefs.h. */ | |
6610 | $ac_includes_default | |
6611 | int | |
6612 | main () | |
6613 | { | |
6614 | ||
6615 | /* By Ruediger Kuhlmann. */ | |
6616 | return fork () < 0; | |
6617 | ||
6618 | ; | |
6619 | return 0; | |
6620 | } | |
ad6254c5 AK |
6621 | _ACEOF |
6622 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6623 | if { (ac_try="$ac_link" |
6624 | case "(($ac_try" in | |
6625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6626 | *) ac_try_echo=$ac_try;; | |
6627 | esac | |
1995c9ff | 6628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6629 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6630 | ac_status=$? |
1995c9ff | 6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6632 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6633 | { (case "(($ac_try" in |
6634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6635 | *) ac_try_echo=$ac_try;; | |
6636 | esac | |
1995c9ff | 6637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6638 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6639 | ac_status=$? |
1995c9ff | 6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6641 | (exit $ac_status); }; }; then |
6642 | ac_cv_func_fork_works=yes | |
6643 | else | |
1995c9ff AK |
6644 | echo "$as_me: program exited with status $ac_status" >&5 |
6645 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6646 | sed 's/^/| /' conftest.$ac_ext >&5 |
6647 | ||
6648 | ( exit $ac_status ) | |
6649 | ac_cv_func_fork_works=no | |
6650 | fi | |
7a197a62 | 6651 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6652 | fi |
7a197a62 AK |
6653 | |
6654 | ||
ad6254c5 | 6655 | fi |
1995c9ff AK |
6656 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6657 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6658 | |
6659 | else | |
6660 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6661 | fi | |
6662 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6663 | case $host in | |
6664 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6665 | # Override, as these systems have only a dummy fork() stub | |
6666 | ac_cv_func_fork_works=no | |
6667 | ;; | |
6668 | *) | |
6669 | ac_cv_func_fork_works=yes | |
6670 | ;; | |
6671 | esac | |
1995c9ff AK |
6672 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6673 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6674 | fi |
6675 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6676 | if test "x$ac_cv_func_vfork" = xyes; then | |
1995c9ff AK |
6677 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6678 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6679 | if test "${ac_cv_func_vfork_works+set}" = set; then |
1995c9ff | 6680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6681 | else |
6682 | if test "$cross_compiling" = yes; then | |
6683 | ac_cv_func_vfork_works=cross | |
6684 | else | |
6685 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6686 | /* confdefs.h. */ |
6687 | _ACEOF | |
6688 | cat confdefs.h >>conftest.$ac_ext | |
6689 | cat >>conftest.$ac_ext <<_ACEOF | |
6690 | /* end confdefs.h. */ | |
6691 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6692 | $ac_includes_default |
ad6254c5 | 6693 | #include <sys/wait.h> |
25fbec5b | 6694 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6695 | # include <vfork.h> |
6696 | #endif | |
6697 | /* On some sparc systems, changes by the child to local and incoming | |
6698 | argument registers are propagated back to the parent. The compiler | |
6699 | is told about this with #include <vfork.h>, but some compilers | |
6700 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6701 | static variable whose address is put into a register that is | |
6702 | clobbered by the vfork. */ | |
6703 | static void | |
6704 | #ifdef __cplusplus | |
6705 | sparc_address_test (int arg) | |
6706 | # else | |
6707 | sparc_address_test (arg) int arg; | |
6708 | #endif | |
6709 | { | |
6710 | static pid_t child; | |
6711 | if (!child) { | |
6712 | child = vfork (); | |
6713 | if (child < 0) { | |
6714 | perror ("vfork"); | |
6715 | _exit(2); | |
6716 | } | |
6717 | if (!child) { | |
6718 | arg = getpid(); | |
6719 | write(-1, "", 0); | |
6720 | _exit (arg); | |
6721 | } | |
6722 | } | |
6723 | } | |
6724 | ||
6725 | int | |
6726 | main () | |
6727 | { | |
6728 | pid_t parent = getpid (); | |
6729 | pid_t child; | |
6730 | ||
6731 | sparc_address_test (0); | |
6732 | ||
6733 | child = vfork (); | |
6734 | ||
6735 | if (child == 0) { | |
6736 | /* Here is another test for sparc vfork register problems. This | |
6737 | test uses lots of local variables, at least as many local | |
6738 | variables as main has allocated so far including compiler | |
6739 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6740 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6741 | reuse the register of parent for one of the local variables, | |
6742 | since it will think that parent can't possibly be used any more | |
6743 | in this routine. Assigning to the local variable will thus | |
6744 | munge parent in the parent process. */ | |
6745 | pid_t | |
6746 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6747 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6748 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6749 | use the same hardware register for all 8 local variables. */ | |
6750 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6751 | || p != p5 || p != p6 || p != p7) | |
6752 | _exit(1); | |
6753 | ||
6754 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6755 | from child file descriptors. If the child closes a descriptor | |
6756 | before it execs or exits, this munges the parent's descriptor | |
6757 | as well. Test for this by closing stdout in the child. */ | |
6758 | _exit(close(fileno(stdout)) != 0); | |
6759 | } else { | |
6760 | int status; | |
6761 | struct stat st; | |
6762 | ||
6763 | while (wait(&status) != child) | |
6764 | ; | |
7a197a62 | 6765 | return ( |
ad6254c5 AK |
6766 | /* Was there some problem with vforking? */ |
6767 | child < 0 | |
6768 | ||
6769 | /* Did the child fail? (This shouldn't happen.) */ | |
6770 | || status | |
6771 | ||
6772 | /* Did the vfork/compiler bug occur? */ | |
6773 | || parent != getpid() | |
6774 | ||
6775 | /* Did the file descriptor bug occur? */ | |
6776 | || fstat(fileno(stdout), &st) != 0 | |
6777 | ); | |
6778 | } | |
6779 | } | |
6780 | _ACEOF | |
6781 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6782 | if { (ac_try="$ac_link" |
6783 | case "(($ac_try" in | |
6784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6785 | *) ac_try_echo=$ac_try;; | |
6786 | esac | |
1995c9ff | 6787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6788 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6789 | ac_status=$? |
1995c9ff | 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6792 | { (case "(($ac_try" in |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
1995c9ff | 6796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6797 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6798 | ac_status=$? |
1995c9ff | 6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6800 | (exit $ac_status); }; }; then |
6801 | ac_cv_func_vfork_works=yes | |
6802 | else | |
1995c9ff AK |
6803 | echo "$as_me: program exited with status $ac_status" >&5 |
6804 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6805 | sed 's/^/| /' conftest.$ac_ext >&5 |
6806 | ||
6807 | ( exit $ac_status ) | |
6808 | ac_cv_func_vfork_works=no | |
6809 | fi | |
7a197a62 | 6810 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6811 | fi |
7a197a62 AK |
6812 | |
6813 | ||
ad6254c5 | 6814 | fi |
1995c9ff AK |
6815 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6816 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6817 | |
6818 | fi; | |
6819 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6820 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
1995c9ff AK |
6821 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6822 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6823 | fi |
6824 | ||
6825 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6826 | ||
6827 | cat >>confdefs.h <<\_ACEOF | |
6828 | #define HAVE_WORKING_VFORK 1 | |
6829 | _ACEOF | |
6830 | ||
6831 | else | |
6832 | ||
6833 | cat >>confdefs.h <<\_ACEOF | |
6834 | #define vfork fork | |
6835 | _ACEOF | |
6836 | ||
6837 | fi | |
6838 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6839 | ||
6840 | cat >>confdefs.h <<\_ACEOF | |
6841 | #define HAVE_WORKING_FORK 1 | |
6842 | _ACEOF | |
6843 | ||
6844 | fi | |
6845 | ||
1995c9ff AK |
6846 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6847 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6848 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
1995c9ff | 6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6850 | else |
6851 | rm -f conftest.sym conftest.file | |
6852 | echo >conftest.file | |
6853 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6854 | if test "$cross_compiling" = yes; then | |
6855 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6856 | else | |
6857 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6858 | /* confdefs.h. */ |
6859 | _ACEOF | |
6860 | cat confdefs.h >>conftest.$ac_ext | |
6861 | cat >>conftest.$ac_ext <<_ACEOF | |
6862 | /* end confdefs.h. */ | |
6863 | $ac_includes_default | |
6864 | int | |
6865 | main () | |
6866 | { | |
6867 | struct stat sbuf; | |
6868 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6869 | That is better in the sense that it means we will not |
6870 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6871 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6872 | ; |
6873 | return 0; | |
6874 | } | |
6875 | _ACEOF | |
6876 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6877 | if { (ac_try="$ac_link" |
6878 | case "(($ac_try" in | |
6879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6880 | *) ac_try_echo=$ac_try;; | |
6881 | esac | |
1995c9ff | 6882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6883 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6884 | ac_status=$? |
1995c9ff | 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6887 | { (case "(($ac_try" in |
6888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6889 | *) ac_try_echo=$ac_try;; | |
6890 | esac | |
1995c9ff | 6891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6892 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6893 | ac_status=$? |
1995c9ff | 6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6895 | (exit $ac_status); }; }; then |
6896 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6897 | else | |
1995c9ff AK |
6898 | echo "$as_me: program exited with status $ac_status" >&5 |
6899 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
6901 | ||
6902 | ( exit $ac_status ) | |
6903 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6904 | fi | |
7a197a62 | 6905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6906 | fi |
7a197a62 AK |
6907 | |
6908 | ||
ad6254c5 AK |
6909 | else |
6910 | # If the `ln -s' command failed, then we probably don't even | |
6911 | # have an lstat function. | |
6912 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6913 | fi | |
6914 | rm -f conftest.sym conftest.file | |
6915 | ||
6916 | fi | |
1995c9ff AK |
6917 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6918 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6919 | |
6920 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6921 | ||
6922 | cat >>confdefs.h <<_ACEOF | |
6923 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6924 | _ACEOF | |
6925 | ||
6926 | ||
6927 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6928 | case " $LIBOBJS " in |
8a2fc586 | 6929 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6930 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6931 | ;; | |
8a2fc586 AK |
6932 | esac |
6933 | ||
ad6254c5 AK |
6934 | fi |
6935 | ||
1995c9ff AK |
6936 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6937 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 6938 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
1995c9ff | 6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6940 | else |
6941 | if test "$cross_compiling" = yes; then | |
6942 | ac_cv_func_lstat_empty_string_bug=yes | |
6943 | else | |
6944 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6945 | /* confdefs.h. */ |
6946 | _ACEOF | |
6947 | cat confdefs.h >>conftest.$ac_ext | |
6948 | cat >>conftest.$ac_ext <<_ACEOF | |
6949 | /* end confdefs.h. */ | |
6950 | $ac_includes_default | |
6951 | int | |
6952 | main () | |
6953 | { | |
6954 | struct stat sbuf; | |
7a197a62 | 6955 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
6956 | ; |
6957 | return 0; | |
6958 | } | |
6959 | _ACEOF | |
6960 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6961 | if { (ac_try="$ac_link" |
6962 | case "(($ac_try" in | |
6963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6964 | *) ac_try_echo=$ac_try;; | |
6965 | esac | |
1995c9ff | 6966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6967 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6968 | ac_status=$? |
1995c9ff | 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6970 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6971 | { (case "(($ac_try" in |
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6973 | *) ac_try_echo=$ac_try;; | |
6974 | esac | |
1995c9ff | 6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6976 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6977 | ac_status=$? |
1995c9ff | 6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6979 | (exit $ac_status); }; }; then |
7a197a62 | 6980 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 6981 | else |
1995c9ff AK |
6982 | echo "$as_me: program exited with status $ac_status" >&5 |
6983 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6984 | sed 's/^/| /' conftest.$ac_ext >&5 |
6985 | ||
6986 | ( exit $ac_status ) | |
7a197a62 | 6987 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 6988 | fi |
7a197a62 | 6989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6990 | fi |
7a197a62 AK |
6991 | |
6992 | ||
ad6254c5 | 6993 | fi |
1995c9ff AK |
6994 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
6995 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 6996 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 6997 | case " $LIBOBJS " in |
8a2fc586 | 6998 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6999 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7000 | ;; | |
8a2fc586 AK |
7001 | esac |
7002 | ||
ad6254c5 AK |
7003 | |
7004 | cat >>confdefs.h <<_ACEOF | |
7005 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7006 | _ACEOF | |
7007 | ||
7008 | fi | |
7009 | ||
7010 | ||
7011 | for ac_header in stdlib.h | |
7012 | do | |
1995c9ff | 7013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
7015 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7019 | fi |
1995c9ff AK |
7020 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7022 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7023 | else |
7024 | # Is the header compilable? | |
1995c9ff AK |
7025 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7027 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7028 | /* confdefs.h. */ |
7029 | _ACEOF | |
7030 | cat confdefs.h >>conftest.$ac_ext | |
7031 | cat >>conftest.$ac_ext <<_ACEOF | |
7032 | /* end confdefs.h. */ | |
7033 | $ac_includes_default | |
7034 | #include <$ac_header> | |
7035 | _ACEOF | |
7036 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7037 | if { (ac_try="$ac_compile" |
7038 | case "(($ac_try" in | |
7039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7040 | *) ac_try_echo=$ac_try;; | |
7041 | esac | |
1995c9ff | 7042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7043 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7044 | ac_status=$? |
8a2fc586 AK |
7045 | grep -v '^ *+' conftest.er1 >conftest.err |
7046 | rm -f conftest.er1 | |
7047 | cat conftest.err >&5 | |
1995c9ff | 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7049 | (exit $ac_status); } && { |
7050 | test -z "$ac_c_werror_flag" || | |
7051 | test ! -s conftest.err | |
7052 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7053 | ac_header_compiler=yes |
7054 | else | |
1995c9ff | 7055 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7056 | sed 's/^/| /' conftest.$ac_ext >&5 |
7057 | ||
7a197a62 | 7058 | ac_header_compiler=no |
ad6254c5 | 7059 | fi |
7a197a62 AK |
7060 | |
7061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
7062 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7063 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7064 | |
7065 | # Is the header present? | |
1995c9ff AK |
7066 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7068 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7069 | /* confdefs.h. */ |
7070 | _ACEOF | |
7071 | cat confdefs.h >>conftest.$ac_ext | |
7072 | cat >>conftest.$ac_ext <<_ACEOF | |
7073 | /* end confdefs.h. */ | |
7074 | #include <$ac_header> | |
7075 | _ACEOF | |
7a197a62 AK |
7076 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7077 | case "(($ac_try" in | |
7078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7079 | *) ac_try_echo=$ac_try;; | |
7080 | esac | |
1995c9ff | 7081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7082 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7083 | ac_status=$? |
7084 | grep -v '^ *+' conftest.er1 >conftest.err | |
7085 | rm -f conftest.er1 | |
7086 | cat conftest.err >&5 | |
1995c9ff | 7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7088 | (exit $ac_status); } >/dev/null && { |
7089 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7090 | test ! -s conftest.err | |
7091 | }; then | |
ad6254c5 AK |
7092 | ac_header_preproc=yes |
7093 | else | |
1995c9ff | 7094 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7095 | sed 's/^/| /' conftest.$ac_ext >&5 |
7096 | ||
7097 | ac_header_preproc=no | |
7098 | fi | |
7a197a62 | 7099 | |
ad6254c5 | 7100 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
7101 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7102 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7103 | |
7104 | # So? What about this header? | |
8a2fc586 AK |
7105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7106 | yes:no: ) | |
1995c9ff AK |
7107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7111 | ac_header_preproc=yes |
ad6254c5 | 7112 | ;; |
8a2fc586 | 7113 | no:yes:* ) |
1995c9ff AK |
7114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7126 | |
ad6254c5 AK |
7127 | ;; |
7128 | esac | |
1995c9ff AK |
7129 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7133 | else |
8a2fc586 | 7134 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7135 | fi |
1995c9ff AK |
7136 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7137 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7138 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7139 | |
7140 | fi | |
1995c9ff | 7141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7142 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7144 | _ACEOF |
7145 | ||
7146 | fi | |
7147 | ||
7148 | done | |
7149 | ||
1995c9ff AK |
7150 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7151 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7152 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
1995c9ff | 7153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7154 | else |
7155 | if test "$cross_compiling" = yes; then | |
7156 | ac_cv_func_malloc_0_nonnull=no | |
7157 | else | |
7158 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7159 | /* confdefs.h. */ |
7160 | _ACEOF | |
7161 | cat confdefs.h >>conftest.$ac_ext | |
7162 | cat >>conftest.$ac_ext <<_ACEOF | |
7163 | /* end confdefs.h. */ | |
25fbec5b | 7164 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7165 | # include <stdlib.h> |
7166 | #else | |
7167 | char *malloc (); | |
7168 | #endif | |
7169 | ||
7170 | int | |
7171 | main () | |
7172 | { | |
7a197a62 | 7173 | return ! malloc (0); |
ad6254c5 AK |
7174 | ; |
7175 | return 0; | |
7176 | } | |
7177 | _ACEOF | |
7178 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7179 | if { (ac_try="$ac_link" |
7180 | case "(($ac_try" in | |
7181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7182 | *) ac_try_echo=$ac_try;; | |
7183 | esac | |
1995c9ff | 7184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7185 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7186 | ac_status=$? |
1995c9ff | 7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7189 | { (case "(($ac_try" in |
7190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7191 | *) ac_try_echo=$ac_try;; | |
7192 | esac | |
1995c9ff | 7193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7194 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7195 | ac_status=$? |
1995c9ff | 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7197 | (exit $ac_status); }; }; then |
7198 | ac_cv_func_malloc_0_nonnull=yes | |
7199 | else | |
1995c9ff AK |
7200 | echo "$as_me: program exited with status $ac_status" >&5 |
7201 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7202 | sed 's/^/| /' conftest.$ac_ext >&5 |
7203 | ||
7204 | ( exit $ac_status ) | |
7205 | ac_cv_func_malloc_0_nonnull=no | |
7206 | fi | |
7a197a62 | 7207 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7208 | fi |
7a197a62 AK |
7209 | |
7210 | ||
ad6254c5 | 7211 | fi |
1995c9ff AK |
7212 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7213 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7214 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7215 | ||
7216 | cat >>confdefs.h <<\_ACEOF | |
7217 | #define HAVE_MALLOC 1 | |
7218 | _ACEOF | |
7219 | ||
7220 | else | |
7221 | cat >>confdefs.h <<\_ACEOF | |
7222 | #define HAVE_MALLOC 0 | |
7223 | _ACEOF | |
7224 | ||
7a197a62 | 7225 | case " $LIBOBJS " in |
8a2fc586 | 7226 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7227 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7228 | ;; | |
8a2fc586 AK |
7229 | esac |
7230 | ||
ad6254c5 AK |
7231 | |
7232 | cat >>confdefs.h <<\_ACEOF | |
7233 | #define malloc rpl_malloc | |
7234 | _ACEOF | |
7235 | ||
7236 | fi | |
7237 | ||
7238 | ||
7239 | ||
1995c9ff AK |
7240 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7241 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7242 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
1995c9ff | 7243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7244 | else |
7245 | if test "$cross_compiling" = yes; then | |
7246 | ac_cv_func_memcmp_working=no | |
7247 | else | |
7248 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7249 | /* confdefs.h. */ |
7250 | _ACEOF | |
7251 | cat confdefs.h >>conftest.$ac_ext | |
7252 | cat >>conftest.$ac_ext <<_ACEOF | |
7253 | /* end confdefs.h. */ | |
8a2fc586 | 7254 | $ac_includes_default |
ad6254c5 AK |
7255 | int |
7256 | main () | |
7257 | { | |
7258 | ||
7259 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7260 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7261 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7262 | return 1; |
ad6254c5 AK |
7263 | |
7264 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7265 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7266 | William Lewis provided this test program. */ | |
7267 | { | |
7268 | char foo[21]; | |
7269 | char bar[21]; | |
7270 | int i; | |
7271 | for (i = 0; i < 4; i++) | |
7272 | { | |
8a2fc586 AK |
7273 | char *a = foo + i; |
7274 | char *b = bar + i; | |
7275 | strcpy (a, "--------01111111"); | |
7276 | strcpy (b, "--------10000000"); | |
7277 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7278 | return 1; |
ad6254c5 | 7279 | } |
7a197a62 | 7280 | return 0; |
ad6254c5 AK |
7281 | } |
7282 | ||
7283 | ; | |
7284 | return 0; | |
7285 | } | |
7286 | _ACEOF | |
7287 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7288 | if { (ac_try="$ac_link" |
7289 | case "(($ac_try" in | |
7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7291 | *) ac_try_echo=$ac_try;; | |
7292 | esac | |
1995c9ff | 7293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7294 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7295 | ac_status=$? |
1995c9ff | 7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7298 | { (case "(($ac_try" in |
7299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7300 | *) ac_try_echo=$ac_try;; | |
7301 | esac | |
1995c9ff | 7302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7303 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7304 | ac_status=$? |
1995c9ff | 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7306 | (exit $ac_status); }; }; then |
7307 | ac_cv_func_memcmp_working=yes | |
7308 | else | |
1995c9ff AK |
7309 | echo "$as_me: program exited with status $ac_status" >&5 |
7310 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7311 | sed 's/^/| /' conftest.$ac_ext >&5 |
7312 | ||
7313 | ( exit $ac_status ) | |
7314 | ac_cv_func_memcmp_working=no | |
7315 | fi | |
7a197a62 | 7316 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7317 | fi |
7a197a62 AK |
7318 | |
7319 | ||
ad6254c5 | 7320 | fi |
1995c9ff AK |
7321 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7322 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7323 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7324 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7325 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7326 | ;; | |
8a2fc586 AK |
7327 | esac |
7328 | ||
ad6254c5 AK |
7329 | |
7330 | ||
7331 | ||
7332 | for ac_header in stdlib.h unistd.h | |
7333 | do | |
1995c9ff | 7334 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
7336 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7337 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7338 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7340 | fi |
1995c9ff AK |
7341 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7343 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7344 | else |
7345 | # Is the header compilable? | |
1995c9ff AK |
7346 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7347 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7348 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7349 | /* confdefs.h. */ |
7350 | _ACEOF | |
7351 | cat confdefs.h >>conftest.$ac_ext | |
7352 | cat >>conftest.$ac_ext <<_ACEOF | |
7353 | /* end confdefs.h. */ | |
7354 | $ac_includes_default | |
7355 | #include <$ac_header> | |
7356 | _ACEOF | |
7357 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7358 | if { (ac_try="$ac_compile" |
7359 | case "(($ac_try" in | |
7360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7361 | *) ac_try_echo=$ac_try;; | |
7362 | esac | |
1995c9ff | 7363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7364 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7365 | ac_status=$? |
8a2fc586 AK |
7366 | grep -v '^ *+' conftest.er1 >conftest.err |
7367 | rm -f conftest.er1 | |
7368 | cat conftest.err >&5 | |
1995c9ff | 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7370 | (exit $ac_status); } && { |
7371 | test -z "$ac_c_werror_flag" || | |
7372 | test ! -s conftest.err | |
7373 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7374 | ac_header_compiler=yes |
7375 | else | |
1995c9ff | 7376 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7377 | sed 's/^/| /' conftest.$ac_ext >&5 |
7378 | ||
7a197a62 | 7379 | ac_header_compiler=no |
ad6254c5 | 7380 | fi |
7a197a62 AK |
7381 | |
7382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
7383 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7384 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7385 | |
7386 | # Is the header present? | |
1995c9ff AK |
7387 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7388 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7389 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7390 | /* confdefs.h. */ |
7391 | _ACEOF | |
7392 | cat confdefs.h >>conftest.$ac_ext | |
7393 | cat >>conftest.$ac_ext <<_ACEOF | |
7394 | /* end confdefs.h. */ | |
7395 | #include <$ac_header> | |
7396 | _ACEOF | |
7a197a62 AK |
7397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7398 | case "(($ac_try" in | |
7399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7400 | *) ac_try_echo=$ac_try;; | |
7401 | esac | |
1995c9ff | 7402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7404 | ac_status=$? |
7405 | grep -v '^ *+' conftest.er1 >conftest.err | |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
1995c9ff | 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7409 | (exit $ac_status); } >/dev/null && { |
7410 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7411 | test ! -s conftest.err | |
7412 | }; then | |
ad6254c5 AK |
7413 | ac_header_preproc=yes |
7414 | else | |
1995c9ff | 7415 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7416 | sed 's/^/| /' conftest.$ac_ext >&5 |
7417 | ||
7418 | ac_header_preproc=no | |
7419 | fi | |
7a197a62 | 7420 | |
ad6254c5 | 7421 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
7422 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7423 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7424 | |
7425 | # So? What about this header? | |
8a2fc586 AK |
7426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7427 | yes:no: ) | |
1995c9ff AK |
7428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7432 | ac_header_preproc=yes |
ad6254c5 | 7433 | ;; |
8a2fc586 | 7434 | no:yes:* ) |
1995c9ff AK |
7435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7447 | |
ad6254c5 AK |
7448 | ;; |
7449 | esac | |
1995c9ff AK |
7450 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7454 | else |
8a2fc586 | 7455 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7456 | fi |
1995c9ff AK |
7457 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7458 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7459 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7460 | |
7461 | fi | |
1995c9ff | 7462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7463 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7465 | _ACEOF |
7466 | ||
7467 | fi | |
7468 | ||
7469 | done | |
7470 | ||
7471 | ||
7472 | for ac_func in getpagesize | |
7473 | do | |
1995c9ff AK |
7474 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7475 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7476 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7477 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7479 | else |
7480 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7481 | /* confdefs.h. */ |
7482 | _ACEOF | |
7483 | cat confdefs.h >>conftest.$ac_ext | |
7484 | cat >>conftest.$ac_ext <<_ACEOF | |
7485 | /* end confdefs.h. */ | |
8a2fc586 AK |
7486 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7487 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7488 | #define $ac_func innocuous_$ac_func | |
7489 | ||
ad6254c5 AK |
7490 | /* System header to define __stub macros and hopefully few prototypes, |
7491 | which can conflict with char $ac_func (); below. | |
7492 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7493 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7494 | |
ad6254c5 AK |
7495 | #ifdef __STDC__ |
7496 | # include <limits.h> | |
7497 | #else | |
7498 | # include <assert.h> | |
7499 | #endif | |
8a2fc586 AK |
7500 | |
7501 | #undef $ac_func | |
7502 | ||
7a197a62 AK |
7503 | /* Override any GCC internal prototype to avoid an error. |
7504 | Use char because int might match the return type of a GCC | |
7505 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7506 | #ifdef __cplusplus |
7507 | extern "C" | |
ad6254c5 | 7508 | #endif |
ad6254c5 AK |
7509 | char $ac_func (); |
7510 | /* The GNU C library defines this for functions which it implements | |
7511 | to always fail with ENOSYS. Some functions are actually named | |
7512 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7513 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7514 | choke me |
ad6254c5 AK |
7515 | #endif |
7516 | ||
7517 | int | |
7518 | main () | |
7519 | { | |
7a197a62 | 7520 | return $ac_func (); |
ad6254c5 AK |
7521 | ; |
7522 | return 0; | |
7523 | } | |
7524 | _ACEOF | |
7525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7526 | if { (ac_try="$ac_link" |
7527 | case "(($ac_try" in | |
7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7529 | *) ac_try_echo=$ac_try;; | |
7530 | esac | |
1995c9ff | 7531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7532 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7533 | ac_status=$? |
8a2fc586 AK |
7534 | grep -v '^ *+' conftest.er1 >conftest.err |
7535 | rm -f conftest.er1 | |
7536 | cat conftest.err >&5 | |
1995c9ff | 7537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7538 | (exit $ac_status); } && { |
7539 | test -z "$ac_c_werror_flag" || | |
7540 | test ! -s conftest.err | |
7541 | } && test -s conftest$ac_exeext && | |
7542 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7543 | eval "$as_ac_var=yes" |
7544 | else | |
1995c9ff | 7545 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7546 | sed 's/^/| /' conftest.$ac_ext >&5 |
7547 | ||
7a197a62 | 7548 | eval "$as_ac_var=no" |
ad6254c5 | 7549 | fi |
7a197a62 | 7550 | |
25fbec5b | 7551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7552 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7553 | fi |
1995c9ff AK |
7554 | ac_res=`eval echo '${'$as_ac_var'}'` |
7555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7556 | echo "${ECHO_T}$ac_res" >&6; } | |
7557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7558 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7560 | _ACEOF |
7561 | ||
7562 | fi | |
7563 | done | |
7564 | ||
1995c9ff AK |
7565 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7566 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7567 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
1995c9ff | 7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7569 | else |
7570 | if test "$cross_compiling" = yes; then | |
7571 | ac_cv_func_mmap_fixed_mapped=no | |
7572 | else | |
7573 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7574 | /* confdefs.h. */ |
7575 | _ACEOF | |
7576 | cat confdefs.h >>conftest.$ac_ext | |
7577 | cat >>conftest.$ac_ext <<_ACEOF | |
7578 | /* end confdefs.h. */ | |
7579 | $ac_includes_default | |
7580 | /* malloc might have been renamed as rpl_malloc. */ | |
7581 | #undef malloc | |
7582 | ||
7583 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7584 | Here is a matrix of mmap possibilities: | |
7585 | mmap private not fixed | |
7586 | mmap private fixed at somewhere currently unmapped | |
7587 | mmap private fixed at somewhere already mapped | |
7588 | mmap shared not fixed | |
7589 | mmap shared fixed at somewhere currently unmapped | |
7590 | mmap shared fixed at somewhere already mapped | |
7591 | For private mappings, we should verify that changes cannot be read() | |
7592 | back from the file, nor mmap's back from the file at a different | |
7593 | address. (There have been systems where private was not correctly | |
7594 | implemented like the infamous i386 svr4.0, and systems where the | |
7595 | VM page cache was not coherent with the file system buffer cache | |
7596 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7597 | For shared mappings, we should conversely verify that changes get | |
7598 | propagated back to all the places they're supposed to be. | |
7599 | ||
7600 | Grep wants private fixed already mapped. | |
7601 | The main things grep needs to know about mmap are: | |
7602 | * does it exist and is it safe to write into the mmap'd area | |
7603 | * how to use it (BSD variants) */ | |
7604 | ||
7605 | #include <fcntl.h> | |
7606 | #include <sys/mman.h> | |
7607 | ||
25fbec5b | 7608 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7609 | char *malloc (); |
7610 | #endif | |
7611 | ||
7612 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7613 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7614 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7615 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7616 | # define HAVE_SYS_PARAM_H 1 |
7617 | # endif | |
7618 | ||
7619 | # ifdef _SC_PAGESIZE | |
7620 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7621 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7622 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7623 | # include <sys/param.h> |
7624 | # ifdef EXEC_PAGESIZE | |
7625 | # define getpagesize() EXEC_PAGESIZE | |
7626 | # else /* no EXEC_PAGESIZE */ | |
7627 | # ifdef NBPG | |
7628 | # define getpagesize() NBPG * CLSIZE | |
7629 | # ifndef CLSIZE | |
7630 | # define CLSIZE 1 | |
7631 | # endif /* no CLSIZE */ | |
7632 | # else /* no NBPG */ | |
7633 | # ifdef NBPC | |
7634 | # define getpagesize() NBPC | |
7635 | # else /* no NBPC */ | |
7636 | # ifdef PAGESIZE | |
7637 | # define getpagesize() PAGESIZE | |
7638 | # endif /* PAGESIZE */ | |
7639 | # endif /* no NBPC */ | |
7640 | # endif /* no NBPG */ | |
7641 | # endif /* no EXEC_PAGESIZE */ | |
7642 | # else /* no HAVE_SYS_PARAM_H */ | |
7643 | # define getpagesize() 8192 /* punt totally */ | |
7644 | # endif /* no HAVE_SYS_PARAM_H */ | |
7645 | # endif /* no _SC_PAGESIZE */ | |
7646 | ||
7647 | #endif /* no HAVE_GETPAGESIZE */ | |
7648 | ||
7649 | int | |
7650 | main () | |
7651 | { | |
7652 | char *data, *data2, *data3; | |
7653 | int i, pagesize; | |
7654 | int fd; | |
7655 | ||
7656 | pagesize = getpagesize (); | |
7657 | ||
7658 | /* First, make a file with some known garbage in it. */ | |
7659 | data = (char *) malloc (pagesize); | |
7660 | if (!data) | |
7a197a62 | 7661 | return 1; |
ad6254c5 AK |
7662 | for (i = 0; i < pagesize; ++i) |
7663 | *(data + i) = rand (); | |
7664 | umask (0); | |
7665 | fd = creat ("conftest.mmap", 0600); | |
7666 | if (fd < 0) | |
7a197a62 | 7667 | return 1; |
ad6254c5 | 7668 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7669 | return 1; |
ad6254c5 AK |
7670 | close (fd); |
7671 | ||
7672 | /* Next, try to mmap the file at a fixed address which already has | |
7673 | something else allocated at it. If we can, also make sure that | |
7674 | we see the same garbage. */ | |
7675 | fd = open ("conftest.mmap", O_RDWR); | |
7676 | if (fd < 0) | |
7a197a62 | 7677 | return 1; |
ad6254c5 AK |
7678 | data2 = (char *) malloc (2 * pagesize); |
7679 | if (!data2) | |
7a197a62 AK |
7680 | return 1; |
7681 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7682 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7683 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7684 | return 1; |
ad6254c5 AK |
7685 | for (i = 0; i < pagesize; ++i) |
7686 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7687 | return 1; |
ad6254c5 AK |
7688 | |
7689 | /* Finally, make sure that changes to the mapped area do not | |
7690 | percolate back to the file as seen by read(). (This is a bug on | |
7691 | some variants of i386 svr4.0.) */ | |
7692 | for (i = 0; i < pagesize; ++i) | |
7693 | *(data2 + i) = *(data2 + i) + 1; | |
7694 | data3 = (char *) malloc (pagesize); | |
7695 | if (!data3) | |
7a197a62 | 7696 | return 1; |
ad6254c5 | 7697 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7698 | return 1; |
ad6254c5 AK |
7699 | for (i = 0; i < pagesize; ++i) |
7700 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7701 | return 1; |
ad6254c5 | 7702 | close (fd); |
7a197a62 | 7703 | return 0; |
ad6254c5 AK |
7704 | } |
7705 | _ACEOF | |
7706 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7707 | if { (ac_try="$ac_link" |
7708 | case "(($ac_try" in | |
7709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7710 | *) ac_try_echo=$ac_try;; | |
7711 | esac | |
1995c9ff | 7712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7713 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7714 | ac_status=$? |
1995c9ff | 7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7717 | { (case "(($ac_try" in |
7718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7719 | *) ac_try_echo=$ac_try;; | |
7720 | esac | |
1995c9ff | 7721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7722 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7723 | ac_status=$? |
1995c9ff | 7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7725 | (exit $ac_status); }; }; then |
7726 | ac_cv_func_mmap_fixed_mapped=yes | |
7727 | else | |
1995c9ff AK |
7728 | echo "$as_me: program exited with status $ac_status" >&5 |
7729 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7730 | sed 's/^/| /' conftest.$ac_ext >&5 |
7731 | ||
7732 | ( exit $ac_status ) | |
7733 | ac_cv_func_mmap_fixed_mapped=no | |
7734 | fi | |
7a197a62 | 7735 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7736 | fi |
7a197a62 AK |
7737 | |
7738 | ||
ad6254c5 | 7739 | fi |
1995c9ff AK |
7740 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7741 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7742 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7743 | ||
7744 | cat >>confdefs.h <<\_ACEOF | |
7745 | #define HAVE_MMAP 1 | |
7746 | _ACEOF | |
7747 | ||
7748 | fi | |
7749 | rm -f conftest.mmap | |
7750 | ||
1995c9ff AK |
7751 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7752 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7753 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
1995c9ff | 7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7755 | else |
7756 | if test "$cross_compiling" = yes; then | |
7757 | ac_cv_func_stat_empty_string_bug=yes | |
7758 | else | |
7759 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7760 | /* confdefs.h. */ |
7761 | _ACEOF | |
7762 | cat confdefs.h >>conftest.$ac_ext | |
7763 | cat >>conftest.$ac_ext <<_ACEOF | |
7764 | /* end confdefs.h. */ | |
7765 | $ac_includes_default | |
7766 | int | |
7767 | main () | |
7768 | { | |
7769 | struct stat sbuf; | |
7a197a62 | 7770 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7771 | ; |
7772 | return 0; | |
7773 | } | |
7774 | _ACEOF | |
7775 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7776 | if { (ac_try="$ac_link" |
7777 | case "(($ac_try" in | |
7778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7779 | *) ac_try_echo=$ac_try;; | |
7780 | esac | |
1995c9ff | 7781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7782 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7783 | ac_status=$? |
1995c9ff | 7784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7786 | { (case "(($ac_try" in |
7787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7788 | *) ac_try_echo=$ac_try;; | |
7789 | esac | |
1995c9ff | 7790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7791 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7792 | ac_status=$? |
1995c9ff | 7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7794 | (exit $ac_status); }; }; then |
7a197a62 | 7795 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7796 | else |
1995c9ff AK |
7797 | echo "$as_me: program exited with status $ac_status" >&5 |
7798 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7799 | sed 's/^/| /' conftest.$ac_ext >&5 |
7800 | ||
7801 | ( exit $ac_status ) | |
7a197a62 | 7802 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7803 | fi |
7a197a62 | 7804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7805 | fi |
7a197a62 AK |
7806 | |
7807 | ||
ad6254c5 | 7808 | fi |
1995c9ff AK |
7809 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7810 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7811 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7812 | case " $LIBOBJS " in |
8a2fc586 | 7813 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7814 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7815 | ;; | |
8a2fc586 AK |
7816 | esac |
7817 | ||
ad6254c5 AK |
7818 | |
7819 | cat >>confdefs.h <<_ACEOF | |
7820 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7821 | _ACEOF | |
7822 | ||
7823 | fi | |
7824 | ||
1995c9ff AK |
7825 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7826 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7827 | if test "${ac_cv_func_strtod+set}" = set; then |
1995c9ff | 7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7829 | else |
7830 | if test "$cross_compiling" = yes; then | |
7831 | ac_cv_func_strtod=no | |
7832 | else | |
7833 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7834 | /* confdefs.h. */ |
7835 | _ACEOF | |
7836 | cat confdefs.h >>conftest.$ac_ext | |
7837 | cat >>conftest.$ac_ext <<_ACEOF | |
7838 | /* end confdefs.h. */ | |
7839 | ||
7a197a62 AK |
7840 | $ac_includes_default |
7841 | #ifndef strtod | |
ad6254c5 | 7842 | double strtod (); |
7a197a62 | 7843 | #endif |
ad6254c5 AK |
7844 | int |
7845 | main() | |
7846 | { | |
7847 | { | |
7848 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7849 | char *string = " +69"; | |
7850 | char *term; | |
7851 | double value; | |
7852 | value = strtod (string, &term); | |
7853 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7854 | return 1; |
ad6254c5 AK |
7855 | } |
7856 | ||
7857 | { | |
7858 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7859 | terminating character under some conditions. */ | |
7860 | char *string = "NaN"; | |
7861 | char *term; | |
7862 | strtod (string, &term); | |
7863 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7864 | return 1; |
ad6254c5 | 7865 | } |
7a197a62 | 7866 | return 0; |
ad6254c5 AK |
7867 | } |
7868 | ||
7869 | _ACEOF | |
7870 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7871 | if { (ac_try="$ac_link" |
7872 | case "(($ac_try" in | |
7873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7874 | *) ac_try_echo=$ac_try;; | |
7875 | esac | |
1995c9ff | 7876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7877 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7878 | ac_status=$? |
1995c9ff | 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7880 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7881 | { (case "(($ac_try" in |
7882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7883 | *) ac_try_echo=$ac_try;; | |
7884 | esac | |
1995c9ff | 7885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7886 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7887 | ac_status=$? |
1995c9ff | 7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7889 | (exit $ac_status); }; }; then |
7890 | ac_cv_func_strtod=yes | |
7891 | else | |
1995c9ff AK |
7892 | echo "$as_me: program exited with status $ac_status" >&5 |
7893 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7894 | sed 's/^/| /' conftest.$ac_ext >&5 |
7895 | ||
7896 | ( exit $ac_status ) | |
7897 | ac_cv_func_strtod=no | |
7898 | fi | |
7a197a62 | 7899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7900 | fi |
7a197a62 AK |
7901 | |
7902 | ||
ad6254c5 | 7903 | fi |
1995c9ff AK |
7904 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7905 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7906 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7907 | case " $LIBOBJS " in |
8a2fc586 | 7908 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7909 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7910 | ;; | |
8a2fc586 AK |
7911 | esac |
7912 | ||
1995c9ff AK |
7913 | { echo "$as_me:$LINENO: checking for pow" >&5 |
7914 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 7915 | if test "${ac_cv_func_pow+set}" = set; then |
1995c9ff | 7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7917 | else |
7918 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7919 | /* confdefs.h. */ |
7920 | _ACEOF | |
7921 | cat confdefs.h >>conftest.$ac_ext | |
7922 | cat >>conftest.$ac_ext <<_ACEOF | |
7923 | /* end confdefs.h. */ | |
8a2fc586 AK |
7924 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7926 | #define pow innocuous_pow | |
7927 | ||
ad6254c5 AK |
7928 | /* System header to define __stub macros and hopefully few prototypes, |
7929 | which can conflict with char pow (); below. | |
7930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7931 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7932 | |
ad6254c5 AK |
7933 | #ifdef __STDC__ |
7934 | # include <limits.h> | |
7935 | #else | |
7936 | # include <assert.h> | |
7937 | #endif | |
8a2fc586 AK |
7938 | |
7939 | #undef pow | |
7940 | ||
7a197a62 AK |
7941 | /* Override any GCC internal prototype to avoid an error. |
7942 | Use char because int might match the return type of a GCC | |
7943 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7944 | #ifdef __cplusplus |
7945 | extern "C" | |
ad6254c5 | 7946 | #endif |
ad6254c5 AK |
7947 | char pow (); |
7948 | /* The GNU C library defines this for functions which it implements | |
7949 | to always fail with ENOSYS. Some functions are actually named | |
7950 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7951 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7952 | choke me |
ad6254c5 AK |
7953 | #endif |
7954 | ||
7955 | int | |
7956 | main () | |
7957 | { | |
7a197a62 | 7958 | return pow (); |
ad6254c5 AK |
7959 | ; |
7960 | return 0; | |
7961 | } | |
7962 | _ACEOF | |
7963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7964 | if { (ac_try="$ac_link" |
7965 | case "(($ac_try" in | |
7966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7967 | *) ac_try_echo=$ac_try;; | |
7968 | esac | |
1995c9ff | 7969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7970 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7971 | ac_status=$? |
8a2fc586 AK |
7972 | grep -v '^ *+' conftest.er1 >conftest.err |
7973 | rm -f conftest.er1 | |
7974 | cat conftest.err >&5 | |
1995c9ff | 7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7976 | (exit $ac_status); } && { |
7977 | test -z "$ac_c_werror_flag" || | |
7978 | test ! -s conftest.err | |
7979 | } && test -s conftest$ac_exeext && | |
7980 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7981 | ac_cv_func_pow=yes |
7982 | else | |
1995c9ff | 7983 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7984 | sed 's/^/| /' conftest.$ac_ext >&5 |
7985 | ||
7a197a62 | 7986 | ac_cv_func_pow=no |
ad6254c5 | 7987 | fi |
7a197a62 | 7988 | |
25fbec5b | 7989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7990 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7991 | fi |
1995c9ff AK |
7992 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
7993 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
7994 | |
7995 | if test $ac_cv_func_pow = no; then | |
1995c9ff AK |
7996 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
7997 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 7998 | if test "${ac_cv_lib_m_pow+set}" = set; then |
1995c9ff | 7999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8000 | else |
8001 | ac_check_lib_save_LIBS=$LIBS | |
8002 | LIBS="-lm $LIBS" | |
8003 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8004 | /* confdefs.h. */ |
8005 | _ACEOF | |
8006 | cat confdefs.h >>conftest.$ac_ext | |
8007 | cat >>conftest.$ac_ext <<_ACEOF | |
8008 | /* end confdefs.h. */ | |
8009 | ||
7a197a62 AK |
8010 | /* Override any GCC internal prototype to avoid an error. |
8011 | Use char because int might match the return type of a GCC | |
8012 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8013 | #ifdef __cplusplus |
8014 | extern "C" | |
8015 | #endif | |
ad6254c5 AK |
8016 | char pow (); |
8017 | int | |
8018 | main () | |
8019 | { | |
7a197a62 | 8020 | return pow (); |
ad6254c5 AK |
8021 | ; |
8022 | return 0; | |
8023 | } | |
8024 | _ACEOF | |
8025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8026 | if { (ac_try="$ac_link" |
8027 | case "(($ac_try" in | |
8028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8029 | *) ac_try_echo=$ac_try;; | |
8030 | esac | |
1995c9ff | 8031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8032 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8033 | ac_status=$? |
8a2fc586 AK |
8034 | grep -v '^ *+' conftest.er1 >conftest.err |
8035 | rm -f conftest.er1 | |
8036 | cat conftest.err >&5 | |
1995c9ff | 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8038 | (exit $ac_status); } && { |
8039 | test -z "$ac_c_werror_flag" || | |
8040 | test ! -s conftest.err | |
8041 | } && test -s conftest$ac_exeext && | |
8042 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8043 | ac_cv_lib_m_pow=yes |
8044 | else | |
1995c9ff | 8045 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8046 | sed 's/^/| /' conftest.$ac_ext >&5 |
8047 | ||
7a197a62 | 8048 | ac_cv_lib_m_pow=no |
ad6254c5 | 8049 | fi |
7a197a62 | 8050 | |
25fbec5b | 8051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8052 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8053 | LIBS=$ac_check_lib_save_LIBS |
d0191583 JM |
8054 | fi |
8055 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
8056 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
8057 | if test $ac_cv_lib_m_pow = yes; then | |
8058 | POW_LIB=-lm | |
8059 | else | |
8060 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
8061 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
8062 | fi | |
72b2cb61 | 8063 | |
d0191583 | 8064 | fi |
72b2cb61 | 8065 | |
ad6254c5 AK |
8066 | fi |
8067 | ||
ad6254c5 | 8068 | |
d0191583 JM |
8069 | for ac_func in vprintf |
8070 | do | |
8071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8072 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8074 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6254c5 | 8076 | else |
d0191583 JM |
8077 | cat >conftest.$ac_ext <<_ACEOF |
8078 | /* confdefs.h. */ | |
8079 | _ACEOF | |
8080 | cat confdefs.h >>conftest.$ac_ext | |
8081 | cat >>conftest.$ac_ext <<_ACEOF | |
8082 | /* end confdefs.h. */ | |
8083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8085 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8086 | |
d0191583 JM |
8087 | /* System header to define __stub macros and hopefully few prototypes, |
8088 | which can conflict with char $ac_func (); below. | |
8089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8090 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8091 | |
d0191583 JM |
8092 | #ifdef __STDC__ |
8093 | # include <limits.h> | |
8094 | #else | |
8095 | # include <assert.h> | |
8096 | #endif | |
ad6254c5 | 8097 | |
d0191583 | 8098 | #undef $ac_func |
72b2cb61 | 8099 | |
d0191583 JM |
8100 | /* Override any GCC internal prototype to avoid an error. |
8101 | Use char because int might match the return type of a GCC | |
8102 | builtin and then its argument prototype would still apply. */ | |
8103 | #ifdef __cplusplus | |
8104 | extern "C" | |
8105 | #endif | |
8106 | char $ac_func (); | |
8107 | /* The GNU C library defines this for functions which it implements | |
8108 | to always fail with ENOSYS. Some functions are actually named | |
8109 | something starting with __ and the normal name is an alias. */ | |
8110 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8111 | choke me | |
8112 | #endif | |
8113 | ||
8114 | int | |
8115 | main () | |
8116 | { | |
8117 | return $ac_func (); | |
8118 | ; | |
8119 | return 0; | |
8120 | } | |
72b2cb61 | 8121 | _ACEOF |
d0191583 JM |
8122 | rm -f conftest.$ac_objext conftest$ac_exeext |
8123 | if { (ac_try="$ac_link" | |
8124 | case "(($ac_try" in | |
8125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8126 | *) ac_try_echo=$ac_try;; | |
8127 | esac | |
8128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8129 | (eval "$ac_link") 2>conftest.er1 | |
8130 | ac_status=$? | |
8131 | grep -v '^ *+' conftest.er1 >conftest.err | |
8132 | rm -f conftest.er1 | |
8133 | cat conftest.err >&5 | |
8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8135 | (exit $ac_status); } && { | |
8136 | test -z "$ac_c_werror_flag" || | |
8137 | test ! -s conftest.err | |
8138 | } && test -s conftest$ac_exeext && | |
8139 | $as_test_x conftest$ac_exeext; then | |
8140 | eval "$as_ac_var=yes" | |
8141 | else | |
8142 | echo "$as_me: failed program was:" >&5 | |
8143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
72b2cb61 | 8144 | |
d0191583 | 8145 | eval "$as_ac_var=no" |
ad6254c5 AK |
8146 | fi |
8147 | ||
d0191583 JM |
8148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8149 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8150 | fi |
d0191583 JM |
8151 | ac_res=`eval echo '${'$as_ac_var'}'` |
8152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8153 | echo "${ECHO_T}$ac_res" >&6; } | |
8154 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8155 | cat >>confdefs.h <<_ACEOF | |
8156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8157 | _ACEOF | |
7a197a62 | 8158 | |
d0191583 JM |
8159 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8160 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
8161 | if test "${ac_cv_func__doprnt+set}" = set; then | |
8162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ad6254c5 | 8163 | else |
d0191583 JM |
8164 | cat >conftest.$ac_ext <<_ACEOF |
8165 | /* confdefs.h. */ | |
8166 | _ACEOF | |
8167 | cat confdefs.h >>conftest.$ac_ext | |
8168 | cat >>conftest.$ac_ext <<_ACEOF | |
8169 | /* end confdefs.h. */ | |
8170 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8172 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8173 | |
d0191583 JM |
8174 | /* System header to define __stub macros and hopefully few prototypes, |
8175 | which can conflict with char _doprnt (); below. | |
8176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8177 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8178 | |
d0191583 JM |
8179 | #ifdef __STDC__ |
8180 | # include <limits.h> | |
8181 | #else | |
8182 | # include <assert.h> | |
8183 | #endif | |
72b2cb61 | 8184 | |
d0191583 JM |
8185 | #undef _doprnt |
8186 | ||
8187 | /* Override any GCC internal prototype to avoid an error. | |
8188 | Use char because int might match the return type of a GCC | |
8189 | builtin and then its argument prototype would still apply. */ | |
8190 | #ifdef __cplusplus | |
8191 | extern "C" | |
8192 | #endif | |
8193 | char _doprnt (); | |
8194 | /* The GNU C library defines this for functions which it implements | |
8195 | to always fail with ENOSYS. Some functions are actually named | |
8196 | something starting with __ and the normal name is an alias. */ | |
8197 | #if defined __stub__doprnt || defined __stub____doprnt | |
8198 | choke me | |
8199 | #endif | |
8200 | ||
8201 | int | |
8202 | main () | |
8203 | { | |
8204 | return _doprnt (); | |
8205 | ; | |
8206 | return 0; | |
8207 | } | |
72b2cb61 | 8208 | _ACEOF |
d0191583 JM |
8209 | rm -f conftest.$ac_objext conftest$ac_exeext |
8210 | if { (ac_try="$ac_link" | |
8211 | case "(($ac_try" in | |
8212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8213 | *) ac_try_echo=$ac_try;; | |
8214 | esac | |
8215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8216 | (eval "$ac_link") 2>conftest.er1 | |
8217 | ac_status=$? | |
8218 | grep -v '^ *+' conftest.er1 >conftest.err | |
8219 | rm -f conftest.er1 | |
8220 | cat conftest.err >&5 | |
8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8222 | (exit $ac_status); } && { | |
8223 | test -z "$ac_c_werror_flag" || | |
8224 | test ! -s conftest.err | |
8225 | } && test -s conftest$ac_exeext && | |
8226 | $as_test_x conftest$ac_exeext; then | |
8227 | ac_cv_func__doprnt=yes | |
8228 | else | |
8229 | echo "$as_me: failed program was:" >&5 | |
8230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
72b2cb61 | 8231 | |
d0191583 | 8232 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8233 | fi |
8234 | ||
d0191583 JM |
8235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8236 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8237 | fi |
d0191583 JM |
8238 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8239 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
8240 | if test $ac_cv_func__doprnt = yes; then | |
7a197a62 | 8241 | |
d0191583 JM |
8242 | cat >>confdefs.h <<\_ACEOF |
8243 | #define HAVE_DOPRNT 1 | |
8244 | _ACEOF | |
ad6254c5 | 8245 | |
7a197a62 AK |
8246 | fi |
8247 | ||
d0191583 JM |
8248 | fi |
8249 | done | |
8b1a3214 | 8250 | |
ad6254c5 | 8251 | |
7a197a62 | 8252 | |
d0191583 | 8253 | ################################################################################ |
ad6254c5 | 8254 | |
ad6254c5 AK |
8255 | |
8256 | ################################################################################ | |
d0191583 JM |
8257 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8258 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
8259 | OWNER="root" | |
8260 | ||
8261 | ||
8262 | # Check whether --with-user was given. | |
8263 | if test "${with_user+set}" = set; then | |
8264 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8265 | fi |
8266 | ||
d0191583 JM |
8267 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8268 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8269 | |
d0191583 JM |
8270 | if test x$OWNER != x; then |
8271 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8272 | fi |
8273 | ||
8274 | ################################################################################ | |
d0191583 JM |
8275 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8276 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
8277 | GROUP="root" | |
ad6254c5 | 8278 | |
d0191583 JM |
8279 | # Check whether --with-group was given. |
8280 | if test "${with_group+set}" = set; then | |
8281 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8282 | fi |
8283 | ||
d0191583 JM |
8284 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8285 | echo "${ECHO_T}$GROUP" >&6; } | |
8286 | ||
8287 | if test x$GROUP != x; then | |
8288 | GROUP="-g $GROUP" | |
8289 | fi | |
ad6254c5 AK |
8290 | |
8291 | ################################################################################ | |
d0191583 JM |
8292 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8293 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
8294 | # Check whether --enable-lvm1_fallback was given. | |
8295 | if test "${enable_lvm1_fallback+set}" = set; then | |
8296 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8297 | else | |
8298 | LVM1_FALLBACK=no | |
7a197a62 AK |
8299 | fi |
8300 | ||
d0191583 JM |
8301 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8302 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8303 | |
d0191583 | 8304 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8305 | |
8306 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8307 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8308 | _ACEOF |
8309 | ||
ad6254c5 AK |
8310 | fi |
8311 | ||
8312 | ################################################################################ | |
d0191583 JM |
8313 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8314 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
8315 | ||
8316 | # Check whether --with-lvm1 was given. | |
8317 | if test "${with_lvm1+set}" = set; then | |
8318 | withval=$with_lvm1; LVM1="$withval" | |
8319 | else | |
8320 | LVM1="internal" | |
7a197a62 AK |
8321 | fi |
8322 | ||
d0191583 JM |
8323 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8324 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8325 | |
d0191583 JM |
8326 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
8327 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
8328 | " >&5 | |
8329 | echo "$as_me: error: --with-lvm1 parameter invalid | |
8330 | " >&2;} | |
8331 | { (exit 1); exit 1; }; } | |
8332 | fi; | |
8333 | ||
8334 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8335 | |
8336 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8337 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8338 | _ACEOF |
8339 | ||
ad6254c5 AK |
8340 | fi |
8341 | ||
8342 | ################################################################################ | |
d0191583 JM |
8343 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8344 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
8345 | ||
8346 | # Check whether --with-pool was given. | |
8347 | if test "${with_pool+set}" = set; then | |
8348 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8349 | else |
d0191583 | 8350 | POOL="internal" |
7a197a62 AK |
8351 | fi |
8352 | ||
d0191583 JM |
8353 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8354 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8355 | |
d0191583 JM |
8356 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
8357 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
8358 | " >&5 | |
8359 | echo "$as_me: error: --with-pool parameter invalid | |
8360 | " >&2;} | |
8361 | { (exit 1); exit 1; }; } | |
8362 | fi; | |
7a197a62 | 8363 | |
d0191583 JM |
8364 | if test x$POOL = xinternal; then |
8365 | ||
8366 | cat >>confdefs.h <<\_ACEOF | |
8367 | #define POOL_INTERNAL 1 | |
8368 | _ACEOF | |
8369 | ||
8370 | fi | |
ad6254c5 | 8371 | |
06f62ad1 | 8372 | ################################################################################ |
d0191583 JM |
8373 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8374 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
8375 | ||
8376 | # Check whether --with-cluster was given. | |
8377 | if test "${with_cluster+set}" = set; then | |
8378 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8379 | fi |
8380 | ||
d0191583 JM |
8381 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8382 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8383 | |
d0191583 JM |
8384 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
8385 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
06f62ad1 | 8386 | " >&5 |
d0191583 | 8387 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8388 | " >&2;} |
8389 | { (exit 1); exit 1; }; } | |
d0191583 | 8390 | fi; |
06f62ad1 | 8391 | |
d0191583 | 8392 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8393 | |
8394 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8395 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8396 | _ACEOF |
8397 | ||
15d91f5a | 8398 | fi |
ad6254c5 AK |
8399 | |
8400 | ################################################################################ | |
d0191583 JM |
8401 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8402 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8403 | |
d0191583 JM |
8404 | # Check whether --with-snapshots was given. |
8405 | if test "${with_snapshots+set}" = set; then | |
8406 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8407 | else | |
8408 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8409 | fi |
8410 | ||
d0191583 JM |
8411 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8412 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8413 | |
d0191583 JM |
8414 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
8415 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
8416 | " >&5 | |
8417 | echo "$as_me: error: --with-snapshots parameter invalid | |
8418 | " >&2;} | |
8419 | { (exit 1); exit 1; }; } | |
8420 | fi; | |
8421 | ||
8422 | if test x$SNAPSHOTS = xinternal; then | |
8423 | ||
8424 | cat >>confdefs.h <<\_ACEOF | |
8425 | #define SNAPSHOT_INTERNAL 1 | |
8426 | _ACEOF | |
ad6254c5 | 8427 | |
ad6254c5 | 8428 | fi |
7a197a62 | 8429 | |
d0191583 JM |
8430 | ################################################################################ |
8431 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
8432 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
8433 | ||
8434 | # Check whether --with-mirrors was given. | |
8435 | if test "${with_mirrors+set}" = set; then | |
8436 | withval=$with_mirrors; MIRRORS="$withval" | |
8437 | else | |
8438 | MIRRORS="internal" | |
ad6254c5 | 8439 | fi |
ad6254c5 | 8440 | |
d0191583 JM |
8441 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8442 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8443 | |
d0191583 JM |
8444 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
8445 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
8446 | " >&5 | |
8447 | echo "$as_me: error: --with-mirrors parameter invalid | |
8448 | " >&2;} | |
8449 | { (exit 1); exit 1; }; } | |
8450 | fi; | |
ad6254c5 | 8451 | |
d0191583 | 8452 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8453 | |
d0191583 JM |
8454 | cat >>confdefs.h <<\_ACEOF |
8455 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8456 | _ACEOF |
8a2fc586 | 8457 | |
d0191583 | 8458 | fi |
8a2fc586 | 8459 | |
d0191583 JM |
8460 | ################################################################################ |
8461 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
8462 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
8463 | # Check whether --enable-readline was given. | |
8464 | if test "${enable_readline+set}" = set; then | |
8465 | enableval=$enable_readline; READLINE=$enableval | |
8466 | else | |
8467 | READLINE=no | |
8468 | fi | |
8a2fc586 | 8469 | |
d0191583 JM |
8470 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8471 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8472 | |
d0191583 JM |
8473 | ################################################################################ |
8474 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 | |
8475 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
8476 | # Check whether --enable-realtime was given. | |
8477 | if test "${enable_realtime+set}" = set; then | |
8478 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8479 | fi |
ad6254c5 | 8480 | |
d0191583 JM |
8481 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8482 | echo "${ECHO_T}$REALTIME" >&6; } | |
8483 | ||
8484 | ################################################################################ | |
8485 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
8486 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
8487 | ||
8488 | # Check whether --with-clvmd was given. | |
8489 | if test "${with_clvmd+set}" = set; then | |
8490 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8491 | else |
d0191583 JM |
8492 | CLVMD="none" |
8493 | fi | |
8a2fc586 | 8494 | |
d0191583 JM |
8495 | if test x$CLVMD = xyes; then |
8496 | CLVMD=all | |
8497 | fi | |
8498 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
8499 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8500 | |
d0191583 JM |
8501 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8502 | CLUSTER=internal | |
8503 | fi | |
8a2fc586 | 8504 | |
d0191583 JM |
8505 | ################################################################################ |
8506 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
8507 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
8508 | # Check whether --enable-debug was given. | |
8509 | if test "${enable_debug+set}" = set; then | |
8510 | enableval=$enable_debug; DEBUG=$enableval | |
8511 | else | |
8512 | DEBUG=no | |
8513 | fi | |
8a2fc586 | 8514 | |
d0191583 JM |
8515 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8516 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8517 | |
d0191583 JM |
8518 | if test x$DEBUG = xyes; then |
8519 | COPTIMISE_FLAG= | |
fc54be10 | 8520 | else |
d0191583 JM |
8521 | CSCOPE_CMD= |
8522 | fi | |
fc54be10 | 8523 | |
d0191583 JM |
8524 | ################################################################################ |
8525 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
8526 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
8527 | ||
8528 | # Check whether --with-optimisation was given. | |
8529 | if test "${with_optimisation+set}" = set; then | |
8530 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8531 | fi | |
8532 | ||
8533 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
8534 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
8535 | ||
8536 | ################################################################################ | |
8537 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
8538 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
8539 | # Check whether --enable-devmapper was given. | |
8540 | if test "${enable_devmapper+set}" = set; then | |
8541 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8542 | fi |
8543 | ||
d0191583 JM |
8544 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8545 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
8546 | ||
8547 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8548 | |
8549 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8550 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8551 | _ACEOF |
8552 | ||
8553 | fi | |
8554 | ||
d0191583 JM |
8555 | ################################################################################ |
8556 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
8557 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
8558 | # Check whether --enable-o_direct was given. | |
8559 | if test "${enable_o_direct+set}" = set; then | |
8560 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8561 | fi |
ad6254c5 | 8562 | |
d0191583 JM |
8563 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8564 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8565 | |
d0191583 | 8566 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8567 | |
d0191583 JM |
8568 | cat >>confdefs.h <<\_ACEOF |
8569 | #define O_DIRECT_SUPPORT 1 | |
8570 | _ACEOF | |
ad6254c5 | 8571 | |
d0191583 | 8572 | fi |
ad6254c5 | 8573 | |
d0191583 JM |
8574 | ################################################################################ |
8575 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
8576 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
8577 | # Check whether --enable-cmdlib was given. | |
8578 | if test "${enable_cmdlib+set}" = set; then | |
8579 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8580 | else |
d0191583 JM |
8581 | CMDLIB=no |
8582 | fi | |
8a2fc586 | 8583 | |
d0191583 JM |
8584 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8585 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8586 | |
d179cc7a JM |
8587 | test $CMDLIB=yes \ |
8588 | && LVM2CMD_LIB=-llvm2cmd \ | |
8589 | || LVM2CMD_LIB= | |
8590 | ||
d0191583 JM |
8591 | ################################################################################ |
8592 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 | |
8593 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
8594 | # Check whether --enable-fsadm was given. | |
8595 | if test "${enable_fsadm+set}" = set; then | |
8596 | enableval=$enable_fsadm; FSADM=$enableval | |
8597 | fi | |
8a2fc586 | 8598 | |
d0191583 JM |
8599 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8600 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8601 | |
d0191583 JM |
8602 | ################################################################################ |
8603 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
8604 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
8605 | # Check whether --enable-dmeventd was given. | |
8606 | if test "${enable_dmeventd+set}" = set; then | |
8607 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8608 | fi | |
ad6254c5 | 8609 | |
d0191583 JM |
8610 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8611 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8612 | |
d0191583 JM |
8613 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then |
8614 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8615 | " >&5 | |
8616 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8617 | " >&2;} | |
8618 | { (exit 1); exit 1; }; } | |
ad6254c5 | 8619 | fi |
7a197a62 | 8620 | |
d0191583 JM |
8621 | if test x$DMEVENTD = xyes; then |
8622 | ||
8623 | cat >>confdefs.h <<\_ACEOF | |
8624 | #define DMEVENTD 1 | |
ad6254c5 AK |
8625 | _ACEOF |
8626 | ||
ad6254c5 | 8627 | fi |
d0191583 JM |
8628 | ################################################################################ |
8629 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8630 | then exec_prefix=""; | |
8631 | fi; | |
ad6254c5 AK |
8632 | |
8633 | ################################################################################ | |
8634 | if test x$READLINE = xyes; then | |
1995c9ff AK |
8635 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8636 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 8637 | if test "${ac_cv_search_tgetent+set}" = set; then |
1995c9ff | 8638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8639 | else |
8640 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8641 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8642 | /* confdefs.h. */ |
8643 | _ACEOF | |
8644 | cat confdefs.h >>conftest.$ac_ext | |
8645 | cat >>conftest.$ac_ext <<_ACEOF | |
8646 | /* end confdefs.h. */ | |
8647 | ||
7a197a62 AK |
8648 | /* Override any GCC internal prototype to avoid an error. |
8649 | Use char because int might match the return type of a GCC | |
8650 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8651 | #ifdef __cplusplus |
8652 | extern "C" | |
8653 | #endif | |
ad6254c5 AK |
8654 | char tgetent (); |
8655 | int | |
8656 | main () | |
8657 | { | |
7a197a62 | 8658 | return tgetent (); |
ad6254c5 AK |
8659 | ; |
8660 | return 0; | |
8661 | } | |
8662 | _ACEOF | |
7a197a62 AK |
8663 | for ac_lib in '' ncurses curses termcap termlib; do |
8664 | if test -z "$ac_lib"; then | |
8665 | ac_res="none required" | |
8666 | else | |
8667 | ac_res=-l$ac_lib | |
8668 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8669 | fi | |
8670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8671 | if { (ac_try="$ac_link" | |
8672 | case "(($ac_try" in | |
8673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8674 | *) ac_try_echo=$ac_try;; | |
8675 | esac | |
1995c9ff | 8676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8677 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8678 | ac_status=$? |
8a2fc586 AK |
8679 | grep -v '^ *+' conftest.er1 >conftest.err |
8680 | rm -f conftest.er1 | |
8681 | cat conftest.err >&5 | |
1995c9ff | 8682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8683 | (exit $ac_status); } && { |
8684 | test -z "$ac_c_werror_flag" || | |
8685 | test ! -s conftest.err | |
8686 | } && test -s conftest$ac_exeext && | |
8687 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 8688 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 8689 | else |
1995c9ff | 8690 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8691 | sed 's/^/| /' conftest.$ac_ext >&5 |
8692 | ||
ad6254c5 | 8693 | |
7a197a62 | 8694 | fi |
ad6254c5 | 8695 | |
25fbec5b | 8696 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
8697 | conftest$ac_exeext |
8698 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8699 | break | |
ad6254c5 | 8700 | fi |
7a197a62 AK |
8701 | done |
8702 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8703 | : | |
8704 | else | |
8705 | ac_cv_search_tgetent=no | |
ad6254c5 | 8706 | fi |
7a197a62 | 8707 | rm conftest.$ac_ext |
ad6254c5 AK |
8708 | LIBS=$ac_func_search_save_LIBS |
8709 | fi | |
1995c9ff AK |
8710 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8711 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8712 | ac_res=$ac_cv_search_tgetent |
8713 | if test "$ac_res" != no; then | |
8714 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
8715 | |
8716 | else | |
1995c9ff | 8717 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
8718 | --enable-readline option (which is enabled by default). Either disable readline |
8719 | support with --disable-readline or download and install termcap from: | |
8720 | ftp.gnu.org/gnu/termcap | |
8721 | Note: if you are using precompiled packages you will also need the development | |
8722 | package as well (which may be called termcap-devel or something similar). | |
8723 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8724 | not found either - but you could try installing that as well. | |
8725 | " >&5 | |
1995c9ff | 8726 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8727 | --enable-readline option (which is enabled by default). Either disable readline |
8728 | support with --disable-readline or download and install termcap from: | |
8729 | ftp.gnu.org/gnu/termcap | |
8730 | Note: if you are using precompiled packages you will also need the development | |
8731 | package as well (which may be called termcap-devel or something similar). | |
8732 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8733 | not found either - but you could try installing that as well. | |
8734 | " >&2;} | |
8735 | { (exit 1); exit 1; }; } | |
8736 | ||
8737 | fi | |
8738 | ||
8739 | fi | |
8740 | ||
8741 | ################################################################################ | |
1995c9ff AK |
8742 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8743 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 8744 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
1995c9ff | 8745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8746 | else |
8747 | ac_check_lib_save_LIBS=$LIBS | |
8748 | LIBS="-ldl $LIBS" | |
8749 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8750 | /* confdefs.h. */ |
8751 | _ACEOF | |
8752 | cat confdefs.h >>conftest.$ac_ext | |
8753 | cat >>conftest.$ac_ext <<_ACEOF | |
8754 | /* end confdefs.h. */ | |
8755 | ||
7a197a62 AK |
8756 | /* Override any GCC internal prototype to avoid an error. |
8757 | Use char because int might match the return type of a GCC | |
8758 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8759 | #ifdef __cplusplus |
8760 | extern "C" | |
8761 | #endif | |
ad6254c5 AK |
8762 | char dlopen (); |
8763 | int | |
8764 | main () | |
8765 | { | |
7a197a62 | 8766 | return dlopen (); |
ad6254c5 AK |
8767 | ; |
8768 | return 0; | |
8769 | } | |
8770 | _ACEOF | |
8771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8772 | if { (ac_try="$ac_link" |
8773 | case "(($ac_try" in | |
8774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8775 | *) ac_try_echo=$ac_try;; | |
8776 | esac | |
1995c9ff | 8777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8778 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8779 | ac_status=$? |
8a2fc586 AK |
8780 | grep -v '^ *+' conftest.er1 >conftest.err |
8781 | rm -f conftest.er1 | |
8782 | cat conftest.err >&5 | |
1995c9ff | 8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8784 | (exit $ac_status); } && { |
8785 | test -z "$ac_c_werror_flag" || | |
8786 | test ! -s conftest.err | |
8787 | } && test -s conftest$ac_exeext && | |
8788 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8789 | ac_cv_lib_dl_dlopen=yes |
8790 | else | |
1995c9ff | 8791 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8792 | sed 's/^/| /' conftest.$ac_ext >&5 |
8793 | ||
7a197a62 | 8794 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8795 | fi |
7a197a62 | 8796 | |
25fbec5b | 8797 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8798 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8799 | LIBS=$ac_check_lib_save_LIBS |
8800 | fi | |
1995c9ff AK |
8801 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8802 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8803 | if test $ac_cv_lib_dl_dlopen = yes; then |
8804 | HAVE_LIBDL=yes | |
8805 | else | |
8806 | HAVE_LIBDL=no | |
8807 | fi | |
8808 | ||
8809 | ||
7e9e9502 | 8810 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8811 | |
8812 | cat >>confdefs.h <<\_ACEOF | |
8813 | #define HAVE_LIBDL 1 | |
8814 | _ACEOF | |
8815 | ||
ad6254c5 AK |
8816 | LIBS="-ldl $LIBS" |
8817 | else | |
8818 | HAVE_LIBDL=no | |
8819 | fi | |
8820 | ||
8821 | ################################################################################ | |
8822 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8823 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8824 | \) -a "x$STATIC_LINK" = xyes ]; | |
1995c9ff | 8825 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 8826 | " >&5 |
1995c9ff | 8827 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
8828 | " >&2;} |
8829 | { (exit 1); exit 1; }; } | |
8830 | fi | |
8831 | ||
d0191583 JM |
8832 | ################################################################################ |
8833 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
8834 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
8835 | # Check whether --enable-static_link was given. | |
8836 | if test "${enable_static_link+set}" = set; then | |
8837 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8838 | else | |
8839 | STATIC_LINK=no | |
8840 | fi | |
8841 | ||
8842 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
8843 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
8844 | ||
8845 | ################################################################################ | |
8846 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
8847 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
8848 | # Check whether --enable-selinux was given. | |
8849 | if test "${enable_selinux+set}" = set; then | |
8850 | enableval=$enable_selinux; SELINUX=$enableval | |
8851 | fi | |
8852 | ||
8853 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
8854 | echo "${ECHO_T}$SELINUX" >&6; } | |
8855 | ||
ad6254c5 AK |
8856 | ################################################################################ |
8857 | if test x$SELINUX = xyes; then | |
1995c9ff AK |
8858 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
8859 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 8860 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
1995c9ff | 8861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
8862 | else |
8863 | ac_check_lib_save_LIBS=$LIBS | |
8864 | LIBS="-lsepol $LIBS" | |
8865 | cat >conftest.$ac_ext <<_ACEOF | |
8866 | /* confdefs.h. */ | |
8867 | _ACEOF | |
8868 | cat confdefs.h >>conftest.$ac_ext | |
8869 | cat >>conftest.$ac_ext <<_ACEOF | |
8870 | /* end confdefs.h. */ | |
8871 | ||
7a197a62 AK |
8872 | /* Override any GCC internal prototype to avoid an error. |
8873 | Use char because int might match the return type of a GCC | |
8874 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
8875 | #ifdef __cplusplus |
8876 | extern "C" | |
8877 | #endif | |
8a2fc586 AK |
8878 | char sepol_check_context (); |
8879 | int | |
8880 | main () | |
8881 | { | |
7a197a62 | 8882 | return sepol_check_context (); |
8a2fc586 AK |
8883 | ; |
8884 | return 0; | |
8885 | } | |
8886 | _ACEOF | |
8887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8888 | if { (ac_try="$ac_link" |
8889 | case "(($ac_try" in | |
8890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8891 | *) ac_try_echo=$ac_try;; | |
8892 | esac | |
1995c9ff | 8893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8894 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
8895 | ac_status=$? |
8896 | grep -v '^ *+' conftest.er1 >conftest.err | |
8897 | rm -f conftest.er1 | |
8898 | cat conftest.err >&5 | |
1995c9ff | 8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8900 | (exit $ac_status); } && { |
8901 | test -z "$ac_c_werror_flag" || | |
8902 | test ! -s conftest.err | |
8903 | } && test -s conftest$ac_exeext && | |
8904 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
8905 | ac_cv_lib_sepol_sepol_check_context=yes |
8906 | else | |
1995c9ff | 8907 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
8908 | sed 's/^/| /' conftest.$ac_ext >&5 |
8909 | ||
7a197a62 | 8910 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 8911 | fi |
7a197a62 | 8912 | |
25fbec5b | 8913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
8914 | conftest$ac_exeext conftest.$ac_ext |
8915 | LIBS=$ac_check_lib_save_LIBS | |
8916 | fi | |
1995c9ff AK |
8917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
8918 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
8919 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
8920 | HAVE_SEPOL=yes | |
8921 | else | |
8922 | HAVE_SEPOL=no | |
8923 | fi | |
8924 | ||
8a2fc586 AK |
8925 | |
8926 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
8927 | |
8928 | cat >>confdefs.h <<\_ACEOF | |
8929 | #define HAVE_SEPOL 1 | |
8930 | _ACEOF | |
8931 | ||
8a2fc586 AK |
8932 | LIBS="-lsepol $LIBS" |
8933 | fi | |
8934 | ||
1995c9ff AK |
8935 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
8936 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 8937 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
1995c9ff | 8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8939 | else |
8940 | ac_check_lib_save_LIBS=$LIBS | |
8941 | LIBS="-lselinux $LIBS" | |
8942 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8943 | /* confdefs.h. */ |
8944 | _ACEOF | |
8945 | cat confdefs.h >>conftest.$ac_ext | |
8946 | cat >>conftest.$ac_ext <<_ACEOF | |
8947 | /* end confdefs.h. */ | |
8948 | ||
7a197a62 AK |
8949 | /* Override any GCC internal prototype to avoid an error. |
8950 | Use char because int might match the return type of a GCC | |
8951 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8952 | #ifdef __cplusplus |
8953 | extern "C" | |
8954 | #endif | |
ad6254c5 AK |
8955 | char is_selinux_enabled (); |
8956 | int | |
8957 | main () | |
8958 | { | |
7a197a62 | 8959 | return is_selinux_enabled (); |
ad6254c5 AK |
8960 | ; |
8961 | return 0; | |
8962 | } | |
8963 | _ACEOF | |
8964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8965 | if { (ac_try="$ac_link" |
8966 | case "(($ac_try" in | |
8967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8968 | *) ac_try_echo=$ac_try;; | |
8969 | esac | |
1995c9ff | 8970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8971 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8972 | ac_status=$? |
8a2fc586 AK |
8973 | grep -v '^ *+' conftest.er1 >conftest.err |
8974 | rm -f conftest.er1 | |
8975 | cat conftest.err >&5 | |
1995c9ff | 8976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8977 | (exit $ac_status); } && { |
8978 | test -z "$ac_c_werror_flag" || | |
8979 | test ! -s conftest.err | |
8980 | } && test -s conftest$ac_exeext && | |
8981 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8982 | ac_cv_lib_selinux_is_selinux_enabled=yes |
8983 | else | |
1995c9ff | 8984 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8985 | sed 's/^/| /' conftest.$ac_ext >&5 |
8986 | ||
7a197a62 | 8987 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 8988 | fi |
7a197a62 | 8989 | |
25fbec5b | 8990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8991 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8992 | LIBS=$ac_check_lib_save_LIBS |
8993 | fi | |
1995c9ff AK |
8994 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
8995 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
8996 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
8997 | HAVE_SELINUX=yes | |
8998 | else | |
8999 | HAVE_SELINUX=no | |
9000 | fi | |
9001 | ||
ad6254c5 AK |
9002 | |
9003 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9004 | |
9005 | cat >>confdefs.h <<\_ACEOF | |
9006 | #define HAVE_SELINUX 1 | |
9007 | _ACEOF | |
9008 | ||
ad6254c5 AK |
9009 | LIBS="-lselinux $LIBS" |
9010 | else | |
1995c9ff AK |
9011 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9012 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9013 | fi |
9014 | ||
d0191583 | 9015 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9016 | # fails on at least Debian unstable due to unsatisfied references |
9017 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9018 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9019 | lvm_saved_libs=$LIBS | |
9020 | LIBS="$LIBS -static" | |
1995c9ff AK |
9021 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9022 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9023 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
1995c9ff | 9024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9025 | else |
9026 | ac_func_search_save_LIBS=$LIBS | |
9027 | cat >conftest.$ac_ext <<_ACEOF | |
9028 | /* confdefs.h. */ | |
9029 | _ACEOF | |
9030 | cat confdefs.h >>conftest.$ac_ext | |
9031 | cat >>conftest.$ac_ext <<_ACEOF | |
9032 | /* end confdefs.h. */ | |
9033 | ||
9034 | /* Override any GCC internal prototype to avoid an error. | |
9035 | Use char because int might match the return type of a GCC | |
9036 | builtin and then its argument prototype would still apply. */ | |
9037 | #ifdef __cplusplus | |
9038 | extern "C" | |
9039 | #endif | |
9040 | char pthread_mutex_lock (); | |
9041 | int | |
9042 | main () | |
9043 | { | |
9044 | return pthread_mutex_lock (); | |
9045 | ; | |
9046 | return 0; | |
9047 | } | |
9048 | _ACEOF | |
9049 | for ac_lib in '' pthread; do | |
9050 | if test -z "$ac_lib"; then | |
9051 | ac_res="none required" | |
9052 | else | |
9053 | ac_res=-l$ac_lib | |
9054 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9055 | fi | |
9056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9057 | if { (ac_try="$ac_link" | |
9058 | case "(($ac_try" in | |
9059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9060 | *) ac_try_echo=$ac_try;; | |
9061 | esac | |
1995c9ff | 9062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9063 | (eval "$ac_link") 2>conftest.er1 |
9064 | ac_status=$? | |
9065 | grep -v '^ *+' conftest.er1 >conftest.err | |
9066 | rm -f conftest.er1 | |
9067 | cat conftest.err >&5 | |
1995c9ff | 9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9069 | (exit $ac_status); } && { |
9070 | test -z "$ac_c_werror_flag" || | |
9071 | test ! -s conftest.err | |
9072 | } && test -s conftest$ac_exeext && | |
9073 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9074 | ac_cv_search_pthread_mutex_lock=$ac_res |
9075 | else | |
1995c9ff | 9076 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9077 | sed 's/^/| /' conftest.$ac_ext >&5 |
9078 | ||
9079 | ||
9080 | fi | |
9081 | ||
25fbec5b | 9082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9083 | conftest$ac_exeext |
9084 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9085 | break | |
9086 | fi | |
9087 | done | |
9088 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9089 | : | |
9090 | else | |
9091 | ac_cv_search_pthread_mutex_lock=no | |
9092 | fi | |
9093 | rm conftest.$ac_ext | |
9094 | LIBS=$ac_func_search_save_LIBS | |
9095 | fi | |
1995c9ff AK |
9096 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9097 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9098 | ac_res=$ac_cv_search_pthread_mutex_lock |
9099 | if test "$ac_res" != no; then | |
9100 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9101 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9102 | LIB_PTHREAD=-lpthread | |
9103 | fi | |
9104 | ||
9105 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9106 | fi |
9107 | fi | |
9108 | ||
8b1a3214 AK |
9109 | ################################################################################ |
9110 | if test x$REALTIME = xyes; then | |
1995c9ff AK |
9111 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9112 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9113 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
1995c9ff | 9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9115 | else |
9116 | ac_check_lib_save_LIBS=$LIBS | |
9117 | LIBS="-lrt $LIBS" | |
9118 | cat >conftest.$ac_ext <<_ACEOF | |
9119 | /* confdefs.h. */ | |
9120 | _ACEOF | |
9121 | cat confdefs.h >>conftest.$ac_ext | |
9122 | cat >>conftest.$ac_ext <<_ACEOF | |
9123 | /* end confdefs.h. */ | |
9124 | ||
7a197a62 AK |
9125 | /* Override any GCC internal prototype to avoid an error. |
9126 | Use char because int might match the return type of a GCC | |
9127 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9128 | #ifdef __cplusplus |
9129 | extern "C" | |
9130 | #endif | |
8b1a3214 AK |
9131 | char clock_gettime (); |
9132 | int | |
9133 | main () | |
9134 | { | |
7a197a62 | 9135 | return clock_gettime (); |
8b1a3214 AK |
9136 | ; |
9137 | return 0; | |
9138 | } | |
9139 | _ACEOF | |
9140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9141 | if { (ac_try="$ac_link" |
9142 | case "(($ac_try" in | |
9143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9144 | *) ac_try_echo=$ac_try;; | |
9145 | esac | |
1995c9ff | 9146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9147 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9148 | ac_status=$? |
9149 | grep -v '^ *+' conftest.er1 >conftest.err | |
9150 | rm -f conftest.er1 | |
9151 | cat conftest.err >&5 | |
1995c9ff | 9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9153 | (exit $ac_status); } && { |
9154 | test -z "$ac_c_werror_flag" || | |
9155 | test ! -s conftest.err | |
9156 | } && test -s conftest$ac_exeext && | |
9157 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9158 | ac_cv_lib_rt_clock_gettime=yes |
9159 | else | |
1995c9ff | 9160 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9161 | sed 's/^/| /' conftest.$ac_ext >&5 |
9162 | ||
7a197a62 | 9163 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9164 | fi |
7a197a62 | 9165 | |
25fbec5b | 9166 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9167 | conftest$ac_exeext conftest.$ac_ext |
9168 | LIBS=$ac_check_lib_save_LIBS | |
9169 | fi | |
1995c9ff AK |
9170 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9171 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9172 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9173 | HAVE_REALTIME=yes | |
9174 | else | |
9175 | HAVE_REALTIME=no | |
9176 | fi | |
9177 | ||
8b1a3214 AK |
9178 | |
9179 | if test x$HAVE_REALTIME = xyes; then | |
9180 | ||
9181 | cat >>confdefs.h <<\_ACEOF | |
9182 | #define HAVE_REALTIME 1 | |
9183 | _ACEOF | |
9184 | ||
9185 | LIBS="-lrt $LIBS" | |
9186 | else | |
1995c9ff AK |
9187 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9188 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9189 | fi |
9190 | fi | |
9191 | ||
ad6254c5 AK |
9192 | ################################################################################ |
9193 | ||
9194 | for ac_header in getopt.h | |
9195 | do | |
1995c9ff | 9196 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9198 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9202 | fi |
1995c9ff AK |
9203 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9204 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9205 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9206 | else |
9207 | # Is the header compilable? | |
1995c9ff AK |
9208 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9209 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9210 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9211 | /* confdefs.h. */ |
9212 | _ACEOF | |
9213 | cat confdefs.h >>conftest.$ac_ext | |
9214 | cat >>conftest.$ac_ext <<_ACEOF | |
9215 | /* end confdefs.h. */ | |
9216 | $ac_includes_default | |
9217 | #include <$ac_header> | |
9218 | _ACEOF | |
9219 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9220 | if { (ac_try="$ac_compile" |
9221 | case "(($ac_try" in | |
9222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9223 | *) ac_try_echo=$ac_try;; | |
9224 | esac | |
1995c9ff | 9225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9226 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9227 | ac_status=$? |
8a2fc586 AK |
9228 | grep -v '^ *+' conftest.er1 >conftest.err |
9229 | rm -f conftest.er1 | |
9230 | cat conftest.err >&5 | |
1995c9ff | 9231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9232 | (exit $ac_status); } && { |
9233 | test -z "$ac_c_werror_flag" || | |
9234 | test ! -s conftest.err | |
9235 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9236 | ac_header_compiler=yes |
9237 | else | |
1995c9ff | 9238 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9239 | sed 's/^/| /' conftest.$ac_ext >&5 |
9240 | ||
7a197a62 | 9241 | ac_header_compiler=no |
ad6254c5 | 9242 | fi |
7a197a62 AK |
9243 | |
9244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9245 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9246 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9247 | |
9248 | # Is the header present? | |
1995c9ff AK |
9249 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9250 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9251 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9252 | /* confdefs.h. */ |
9253 | _ACEOF | |
9254 | cat confdefs.h >>conftest.$ac_ext | |
9255 | cat >>conftest.$ac_ext <<_ACEOF | |
9256 | /* end confdefs.h. */ | |
9257 | #include <$ac_header> | |
9258 | _ACEOF | |
7a197a62 AK |
9259 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9260 | case "(($ac_try" in | |
9261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9262 | *) ac_try_echo=$ac_try;; | |
9263 | esac | |
1995c9ff | 9264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9266 | ac_status=$? |
9267 | grep -v '^ *+' conftest.er1 >conftest.err | |
9268 | rm -f conftest.er1 | |
9269 | cat conftest.err >&5 | |
1995c9ff | 9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9271 | (exit $ac_status); } >/dev/null && { |
9272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9273 | test ! -s conftest.err | |
9274 | }; then | |
ad6254c5 AK |
9275 | ac_header_preproc=yes |
9276 | else | |
1995c9ff | 9277 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
9279 | ||
9280 | ac_header_preproc=no | |
9281 | fi | |
7a197a62 | 9282 | |
ad6254c5 | 9283 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9284 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9285 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9286 | |
9287 | # So? What about this header? | |
8a2fc586 AK |
9288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9289 | yes:no: ) | |
1995c9ff AK |
9290 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9293 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9294 | ac_header_preproc=yes |
ad6254c5 | 9295 | ;; |
8a2fc586 | 9296 | no:yes:* ) |
1995c9ff AK |
9297 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9298 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9299 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9300 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9301 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9302 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9303 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9304 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9305 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9307 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9308 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9309 | |
ad6254c5 AK |
9310 | ;; |
9311 | esac | |
1995c9ff AK |
9312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9316 | else |
8a2fc586 | 9317 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9318 | fi |
1995c9ff AK |
9319 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9320 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9321 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9322 | |
9323 | fi | |
1995c9ff | 9324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9325 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9327 | _ACEOF |
72b2cb61 AK |
9328 | |
9329 | cat >>confdefs.h <<\_ACEOF | |
9330 | #define HAVE_GETOPTLONG 1 | |
9331 | _ACEOF | |
9332 | ||
ad6254c5 AK |
9333 | fi |
9334 | ||
9335 | done | |
9336 | ||
9337 | ||
9338 | ################################################################################ | |
9339 | if test x$READLINE = xyes; then | |
9340 | ||
1995c9ff AK |
9341 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9342 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9343 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
1995c9ff | 9344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9345 | else |
9346 | ac_check_lib_save_LIBS=$LIBS | |
9347 | LIBS="-lreadline $LIBS" | |
9348 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9349 | /* confdefs.h. */ |
9350 | _ACEOF | |
9351 | cat confdefs.h >>conftest.$ac_ext | |
9352 | cat >>conftest.$ac_ext <<_ACEOF | |
9353 | /* end confdefs.h. */ | |
9354 | ||
7a197a62 AK |
9355 | /* Override any GCC internal prototype to avoid an error. |
9356 | Use char because int might match the return type of a GCC | |
9357 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9358 | #ifdef __cplusplus |
9359 | extern "C" | |
9360 | #endif | |
ad6254c5 AK |
9361 | char readline (); |
9362 | int | |
9363 | main () | |
9364 | { | |
7a197a62 | 9365 | return readline (); |
ad6254c5 AK |
9366 | ; |
9367 | return 0; | |
9368 | } | |
9369 | _ACEOF | |
9370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9371 | if { (ac_try="$ac_link" |
9372 | case "(($ac_try" in | |
9373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9374 | *) ac_try_echo=$ac_try;; | |
9375 | esac | |
1995c9ff | 9376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9377 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9378 | ac_status=$? |
8a2fc586 AK |
9379 | grep -v '^ *+' conftest.er1 >conftest.err |
9380 | rm -f conftest.er1 | |
9381 | cat conftest.err >&5 | |
1995c9ff | 9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9383 | (exit $ac_status); } && { |
9384 | test -z "$ac_c_werror_flag" || | |
9385 | test ! -s conftest.err | |
9386 | } && test -s conftest$ac_exeext && | |
9387 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9388 | ac_cv_lib_readline_readline=yes |
9389 | else | |
1995c9ff | 9390 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
9392 | ||
7a197a62 | 9393 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9394 | fi |
7a197a62 | 9395 | |
25fbec5b | 9396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9397 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9398 | LIBS=$ac_check_lib_save_LIBS |
9399 | fi | |
1995c9ff AK |
9400 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9401 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
9402 | if test $ac_cv_lib_readline_readline = yes; then |
9403 | cat >>confdefs.h <<_ACEOF | |
9404 | #define HAVE_LIBREADLINE 1 | |
9405 | _ACEOF | |
9406 | ||
9407 | LIBS="-lreadline $LIBS" | |
9408 | ||
9409 | else | |
1995c9ff | 9410 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9411 | --enable-readline option (which is enabled by default). Either disable readline |
9412 | support with --disable-readline or download and install readline from: | |
9413 | ftp.gnu.org/gnu/readline | |
9414 | Note: if you are using precompiled packages you will also need the development | |
9415 | package as well (which may be called readline-devel or something similar). | |
9416 | " >&5 | |
1995c9ff | 9417 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9418 | --enable-readline option (which is enabled by default). Either disable readline |
9419 | support with --disable-readline or download and install readline from: | |
9420 | ftp.gnu.org/gnu/readline | |
9421 | Note: if you are using precompiled packages you will also need the development | |
9422 | package as well (which may be called readline-devel or something similar). | |
9423 | " >&2;} | |
9424 | { (exit 1); exit 1; }; } | |
9425 | ||
9426 | fi | |
9427 | ||
1995c9ff AK |
9428 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
9429 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } | |
ad6254c5 | 9430 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
1995c9ff | 9431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9432 | else |
9433 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9434 | /* confdefs.h. */ |
9435 | _ACEOF | |
9436 | cat confdefs.h >>conftest.$ac_ext | |
9437 | cat >>conftest.$ac_ext <<_ACEOF | |
9438 | /* end confdefs.h. */ | |
8a2fc586 AK |
9439 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9441 | #define rl_completion_matches innocuous_rl_completion_matches | |
9442 | ||
ad6254c5 AK |
9443 | /* System header to define __stub macros and hopefully few prototypes, |
9444 | which can conflict with char rl_completion_matches (); below. | |
9445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9446 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9447 | |
ad6254c5 AK |
9448 | #ifdef __STDC__ |
9449 | # include <limits.h> | |
9450 | #else | |
9451 | # include <assert.h> | |
9452 | #endif | |
8a2fc586 AK |
9453 | |
9454 | #undef rl_completion_matches | |
9455 | ||
7a197a62 AK |
9456 | /* Override any GCC internal prototype to avoid an error. |
9457 | Use char because int might match the return type of a GCC | |
9458 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9459 | #ifdef __cplusplus |
9460 | extern "C" | |
ad6254c5 | 9461 | #endif |
ad6254c5 AK |
9462 | char rl_completion_matches (); |
9463 | /* The GNU C library defines this for functions which it implements | |
9464 | to always fail with ENOSYS. Some functions are actually named | |
9465 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9466 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9467 | choke me |
ad6254c5 AK |
9468 | #endif |
9469 | ||
9470 | int | |
9471 | main () | |
9472 | { | |
7a197a62 | 9473 | return rl_completion_matches (); |
ad6254c5 AK |
9474 | ; |
9475 | return 0; | |
9476 | } | |
9477 | _ACEOF | |
9478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9479 | if { (ac_try="$ac_link" |
9480 | case "(($ac_try" in | |
9481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9482 | *) ac_try_echo=$ac_try;; | |
9483 | esac | |
1995c9ff | 9484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9485 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9486 | ac_status=$? |
8a2fc586 AK |
9487 | grep -v '^ *+' conftest.er1 >conftest.err |
9488 | rm -f conftest.er1 | |
9489 | cat conftest.err >&5 | |
1995c9ff | 9490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9491 | (exit $ac_status); } && { |
9492 | test -z "$ac_c_werror_flag" || | |
9493 | test ! -s conftest.err | |
9494 | } && test -s conftest$ac_exeext && | |
9495 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9496 | ac_cv_func_rl_completion_matches=yes |
9497 | else | |
1995c9ff | 9498 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9499 | sed 's/^/| /' conftest.$ac_ext >&5 |
9500 | ||
7a197a62 | 9501 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9502 | fi |
7a197a62 | 9503 | |
25fbec5b | 9504 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9505 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9506 | fi |
1995c9ff AK |
9507 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9508 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9509 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9510 | |
72b2cb61 AK |
9511 | cat >>confdefs.h <<\_ACEOF |
9512 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9513 | _ACEOF | |
9514 | ||
9515 | fi | |
ad6254c5 | 9516 | |
d179cc7a JM |
9517 | |
9518 | cat >>confdefs.h <<\_ACEOF | |
9519 | #define READLINE_SUPPORT 1 | |
9520 | _ACEOF | |
9521 | ||
ad6254c5 AK |
9522 | fi |
9523 | ||
9524 | ################################################################################ | |
1995c9ff AK |
9525 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9526 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9527 | # Check whether --enable-nls was given. |
ad6254c5 | 9528 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9529 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9530 | else |
9531 | INTL=no | |
7a197a62 AK |
9532 | fi |
9533 | ||
1995c9ff AK |
9534 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9535 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9536 | |
9537 | if test x$INTL = xyes; then | |
9538 | INTL_PACKAGE="lvm2" | |
9539 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9540 | set dummy msgfmt; ac_word=$2 | |
1995c9ff AK |
9541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9543 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
1995c9ff | 9544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9545 | else |
9546 | case $MSGFMT in | |
9547 | [\\/]* | ?:[\\/]*) | |
9548 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9549 | ;; | |
9550 | *) | |
9551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9552 | for as_dir in $PATH | |
9553 | do | |
9554 | IFS=$as_save_IFS | |
9555 | test -z "$as_dir" && as_dir=. | |
9556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 9557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9558 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 9559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9560 | break 2 |
9561 | fi | |
9562 | done | |
9563 | done | |
7a197a62 | 9564 | IFS=$as_save_IFS |
ad6254c5 AK |
9565 | |
9566 | ;; | |
9567 | esac | |
9568 | fi | |
9569 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9570 | if test -n "$MSGFMT"; then |
1995c9ff AK |
9571 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9572 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9573 | else |
1995c9ff AK |
9574 | { echo "$as_me:$LINENO: result: no" >&5 |
9575 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9576 | fi |
9577 | ||
7a197a62 | 9578 | |
ad6254c5 | 9579 | if [ "x$MSGFMT" == x ]; |
1995c9ff | 9580 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9581 | " >&5 |
1995c9ff | 9582 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9583 | " >&2;} |
9584 | { (exit 1); exit 1; }; } | |
9585 | fi; | |
9586 | ||
9587 | ||
7a197a62 | 9588 | # Check whether --with-localedir was given. |
ad6254c5 | 9589 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9590 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9591 | else |
9592 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9593 | fi |
9594 | ||
ad6254c5 AK |
9595 | fi |
9596 | ||
9597 | ################################################################################ | |
9598 | ||
7a197a62 | 9599 | # Check whether --with-confdir was given. |
ad6254c5 | 9600 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9601 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9602 | else |
9603 | CONFDIR='/etc' | |
7a197a62 AK |
9604 | fi |
9605 | ||
ad6254c5 AK |
9606 | |
9607 | ||
7a197a62 | 9608 | # Check whether --with-staticdir was given. |
ad6254c5 | 9609 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9610 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9611 | else |
9612 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9613 | fi |
ad6254c5 | 9614 | |
33f732c5 | 9615 | |
7a197a62 AK |
9616 | |
9617 | # Check whether --with-dmdir was given. | |
33f732c5 | 9618 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9619 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9620 | else |
9621 | DMDIR= | |
7a197a62 AK |
9622 | fi |
9623 | ||
33f732c5 | 9624 | |
09339e2b | 9625 | # Convert a relative dir name to absolute. |
25fbec5b AK |
9626 | case $DMDIR in |
9627 | /*) ;; | |
9628 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
9629 | esac |
9630 | ||
ad6254c5 AK |
9631 | ################################################################################ |
9632 | if test x$READLINE = xyes; then | |
9633 | ||
9634 | ||
9635 | for ac_header in readline/readline.h readline/history.h | |
9636 | do | |
1995c9ff | 9637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9639 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9643 | fi |
1995c9ff AK |
9644 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9646 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9647 | else |
9648 | # Is the header compilable? | |
1995c9ff AK |
9649 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9651 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9652 | /* confdefs.h. */ |
9653 | _ACEOF | |
9654 | cat confdefs.h >>conftest.$ac_ext | |
9655 | cat >>conftest.$ac_ext <<_ACEOF | |
9656 | /* end confdefs.h. */ | |
9657 | $ac_includes_default | |
9658 | #include <$ac_header> | |
9659 | _ACEOF | |
9660 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9661 | if { (ac_try="$ac_compile" |
9662 | case "(($ac_try" in | |
9663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9664 | *) ac_try_echo=$ac_try;; | |
9665 | esac | |
1995c9ff | 9666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9667 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9668 | ac_status=$? |
8a2fc586 AK |
9669 | grep -v '^ *+' conftest.er1 >conftest.err |
9670 | rm -f conftest.er1 | |
9671 | cat conftest.err >&5 | |
1995c9ff | 9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9673 | (exit $ac_status); } && { |
9674 | test -z "$ac_c_werror_flag" || | |
9675 | test ! -s conftest.err | |
9676 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9677 | ac_header_compiler=yes |
9678 | else | |
1995c9ff | 9679 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9680 | sed 's/^/| /' conftest.$ac_ext >&5 |
9681 | ||
7a197a62 | 9682 | ac_header_compiler=no |
ad6254c5 | 9683 | fi |
7a197a62 AK |
9684 | |
9685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9686 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9687 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9688 | |
9689 | # Is the header present? | |
1995c9ff AK |
9690 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9691 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9692 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9693 | /* confdefs.h. */ |
9694 | _ACEOF | |
9695 | cat confdefs.h >>conftest.$ac_ext | |
9696 | cat >>conftest.$ac_ext <<_ACEOF | |
9697 | /* end confdefs.h. */ | |
9698 | #include <$ac_header> | |
9699 | _ACEOF | |
7a197a62 AK |
9700 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9701 | case "(($ac_try" in | |
9702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9703 | *) ac_try_echo=$ac_try;; | |
9704 | esac | |
1995c9ff | 9705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9707 | ac_status=$? |
9708 | grep -v '^ *+' conftest.er1 >conftest.err | |
9709 | rm -f conftest.er1 | |
9710 | cat conftest.err >&5 | |
1995c9ff | 9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9712 | (exit $ac_status); } >/dev/null && { |
9713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9714 | test ! -s conftest.err | |
9715 | }; then | |
ad6254c5 AK |
9716 | ac_header_preproc=yes |
9717 | else | |
1995c9ff | 9718 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9719 | sed 's/^/| /' conftest.$ac_ext >&5 |
9720 | ||
9721 | ac_header_preproc=no | |
9722 | fi | |
7a197a62 | 9723 | |
ad6254c5 | 9724 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9725 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9726 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9727 | |
9728 | # So? What about this header? | |
8a2fc586 AK |
9729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9730 | yes:no: ) | |
1995c9ff AK |
9731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9735 | ac_header_preproc=yes |
ad6254c5 | 9736 | ;; |
8a2fc586 | 9737 | no:yes:* ) |
1995c9ff AK |
9738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9750 | |
ad6254c5 AK |
9751 | ;; |
9752 | esac | |
1995c9ff AK |
9753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9757 | else |
8a2fc586 | 9758 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9759 | fi |
1995c9ff AK |
9760 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9762 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9763 | |
9764 | fi | |
1995c9ff | 9765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9766 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9768 | _ACEOF |
9769 | ||
9770 | else | |
1995c9ff AK |
9771 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9772 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9773 | { (exit 1); exit 1; }; } |
9774 | fi | |
9775 | ||
9776 | done | |
9777 | ||
9778 | fi | |
9779 | ||
5c7fc7c4 | 9780 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9781 | |
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | 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 | |
9792 | do | |
1995c9ff | 9793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9795 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9799 | fi |
1995c9ff AK |
9800 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9802 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9803 | else |
9804 | # Is the header compilable? | |
1995c9ff AK |
9805 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9806 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9807 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9808 | /* confdefs.h. */ |
9809 | _ACEOF | |
9810 | cat confdefs.h >>conftest.$ac_ext | |
9811 | cat >>conftest.$ac_ext <<_ACEOF | |
9812 | /* end confdefs.h. */ | |
9813 | $ac_includes_default | |
9814 | #include <$ac_header> | |
9815 | _ACEOF | |
9816 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9817 | if { (ac_try="$ac_compile" |
9818 | case "(($ac_try" in | |
9819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9820 | *) ac_try_echo=$ac_try;; | |
9821 | esac | |
1995c9ff | 9822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9823 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9824 | ac_status=$? |
8a2fc586 AK |
9825 | grep -v '^ *+' conftest.er1 >conftest.err |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
1995c9ff | 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9829 | (exit $ac_status); } && { |
9830 | test -z "$ac_c_werror_flag" || | |
9831 | test ! -s conftest.err | |
9832 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9833 | ac_header_compiler=yes |
9834 | else | |
1995c9ff | 9835 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9836 | sed 's/^/| /' conftest.$ac_ext >&5 |
9837 | ||
7a197a62 | 9838 | ac_header_compiler=no |
ad6254c5 | 9839 | fi |
7a197a62 AK |
9840 | |
9841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9843 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9844 | |
9845 | # Is the header present? | |
1995c9ff AK |
9846 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9848 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9849 | /* confdefs.h. */ |
9850 | _ACEOF | |
9851 | cat confdefs.h >>conftest.$ac_ext | |
9852 | cat >>conftest.$ac_ext <<_ACEOF | |
9853 | /* end confdefs.h. */ | |
9854 | #include <$ac_header> | |
9855 | _ACEOF | |
7a197a62 AK |
9856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9857 | case "(($ac_try" in | |
9858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9859 | *) ac_try_echo=$ac_try;; | |
9860 | esac | |
1995c9ff | 9861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9863 | ac_status=$? |
9864 | grep -v '^ *+' conftest.er1 >conftest.err | |
9865 | rm -f conftest.er1 | |
9866 | cat conftest.err >&5 | |
1995c9ff | 9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9868 | (exit $ac_status); } >/dev/null && { |
9869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9870 | test ! -s conftest.err | |
9871 | }; then | |
ad6254c5 AK |
9872 | ac_header_preproc=yes |
9873 | else | |
1995c9ff | 9874 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9875 | sed 's/^/| /' conftest.$ac_ext >&5 |
9876 | ||
9877 | ac_header_preproc=no | |
9878 | fi | |
7a197a62 | 9879 | |
ad6254c5 | 9880 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9881 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9882 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9883 | |
9884 | # So? What about this header? | |
8a2fc586 AK |
9885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9886 | yes:no: ) | |
1995c9ff AK |
9887 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9888 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9890 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9891 | ac_header_preproc=yes |
ad6254c5 | 9892 | ;; |
8a2fc586 | 9893 | no:yes:* ) |
1995c9ff AK |
9894 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9895 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9896 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9897 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9898 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9899 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9900 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9901 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9903 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9904 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9905 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9906 | |
ad6254c5 AK |
9907 | ;; |
9908 | esac | |
1995c9ff AK |
9909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9910 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9913 | else |
8a2fc586 | 9914 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9915 | fi |
1995c9ff AK |
9916 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9918 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9919 | |
9920 | fi | |
1995c9ff | 9921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9922 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9924 | _ACEOF |
9925 | ||
9926 | else | |
1995c9ff AK |
9927 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9928 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 9929 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
9930 | fi |
9931 | ||
ad6254c5 AK |
9932 | done |
9933 | ||
9934 | ||
795ca3e5 | 9935 | |
8106cdd5 | 9936 | |
ad6254c5 AK |
9937 | |
9938 | ||
9939 | for ac_func in dup2 getmntent memmove select socket | |
9940 | do | |
1995c9ff AK |
9941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 9944 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 9946 | else |
ad6254c5 | 9947 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9948 | /* confdefs.h. */ |
9949 | _ACEOF | |
9950 | cat confdefs.h >>conftest.$ac_ext | |
9951 | cat >>conftest.$ac_ext <<_ACEOF | |
9952 | /* end confdefs.h. */ | |
8a2fc586 AK |
9953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9955 | #define $ac_func innocuous_$ac_func | |
9956 | ||
795ca3e5 | 9957 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9958 | which can conflict with char $ac_func (); below. |
9959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9960 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9961 | |
ad6254c5 AK |
9962 | #ifdef __STDC__ |
9963 | # include <limits.h> | |
9964 | #else | |
9965 | # include <assert.h> | |
9966 | #endif | |
8a2fc586 AK |
9967 | |
9968 | #undef $ac_func | |
9969 | ||
7a197a62 AK |
9970 | /* Override any GCC internal prototype to avoid an error. |
9971 | Use char because int might match the return type of a GCC | |
9972 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9973 | #ifdef __cplusplus |
9974 | extern "C" | |
ad6254c5 | 9975 | #endif |
ad6254c5 | 9976 | char $ac_func (); |
795ca3e5 AK |
9977 | /* The GNU C library defines this for functions which it implements |
9978 | to always fail with ENOSYS. Some functions are actually named | |
9979 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9980 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 9981 | choke me |
795ca3e5 AK |
9982 | #endif |
9983 | ||
ad6254c5 AK |
9984 | int |
9985 | main () | |
9986 | { | |
7a197a62 | 9987 | return $ac_func (); |
ad6254c5 AK |
9988 | ; |
9989 | return 0; | |
9990 | } | |
9991 | _ACEOF | |
9992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9993 | if { (ac_try="$ac_link" |
9994 | case "(($ac_try" in | |
9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9996 | *) ac_try_echo=$ac_try;; | |
9997 | esac | |
1995c9ff | 9998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9999 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10000 | ac_status=$? |
8a2fc586 AK |
10001 | grep -v '^ *+' conftest.er1 >conftest.err |
10002 | rm -f conftest.er1 | |
10003 | cat conftest.err >&5 | |
1995c9ff | 10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10005 | (exit $ac_status); } && { |
10006 | test -z "$ac_c_werror_flag" || | |
10007 | test ! -s conftest.err | |
10008 | } && test -s conftest$ac_exeext && | |
10009 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10010 | eval "$as_ac_var=yes" |
795ca3e5 | 10011 | else |
1995c9ff | 10012 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10013 | sed 's/^/| /' conftest.$ac_ext >&5 |
10014 | ||
7a197a62 | 10015 | eval "$as_ac_var=no" |
80992638 | 10016 | fi |
7a197a62 | 10017 | |
25fbec5b | 10018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10019 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10020 | fi |
1995c9ff AK |
10021 | ac_res=`eval echo '${'$as_ac_var'}'` |
10022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10023 | echo "${ECHO_T}$ac_res" >&6; } | |
10024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10025 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10027 | _ACEOF |
80992638 AK |
10028 | |
10029 | else | |
1995c9ff AK |
10030 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10031 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10032 | { (exit 1); exit 1; }; } |
8106cdd5 | 10033 | fi |
ad6254c5 | 10034 | done |
795ca3e5 | 10035 | |
25fbec5b AK |
10036 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10037 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
10038 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 | |
10039 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
10040 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10042 | else | |
10043 | ac_func_search_save_LIBS=$LIBS | |
10044 | cat >conftest.$ac_ext <<_ACEOF | |
10045 | /* confdefs.h. */ | |
10046 | _ACEOF | |
10047 | cat confdefs.h >>conftest.$ac_ext | |
10048 | cat >>conftest.$ac_ext <<_ACEOF | |
10049 | /* end confdefs.h. */ | |
80992638 | 10050 | |
7a197a62 AK |
10051 | /* Override any GCC internal prototype to avoid an error. |
10052 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10053 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10054 | #ifdef __cplusplus |
10055 | extern "C" | |
10056 | #endif | |
25fbec5b | 10057 | char getmntent (); |
ad6254c5 AK |
10058 | int |
10059 | main () | |
10060 | { | |
25fbec5b | 10061 | return getmntent (); |
ad6254c5 AK |
10062 | ; |
10063 | return 0; | |
10064 | } | |
10065 | _ACEOF | |
25fbec5b AK |
10066 | for ac_lib in '' sun seq gen; do |
10067 | if test -z "$ac_lib"; then | |
10068 | ac_res="none required" | |
10069 | else | |
10070 | ac_res=-l$ac_lib | |
10071 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10072 | fi | |
10073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10074 | if { (ac_try="$ac_link" |
10075 | case "(($ac_try" in | |
10076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10077 | *) ac_try_echo=$ac_try;; | |
10078 | esac | |
1995c9ff | 10079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10080 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10081 | ac_status=$? |
8a2fc586 AK |
10082 | grep -v '^ *+' conftest.er1 >conftest.err |
10083 | rm -f conftest.er1 | |
10084 | cat conftest.err >&5 | |
1995c9ff | 10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10086 | (exit $ac_status); } && { |
10087 | test -z "$ac_c_werror_flag" || | |
10088 | test ! -s conftest.err | |
10089 | } && test -s conftest$ac_exeext && | |
10090 | $as_test_x conftest$ac_exeext; then | |
10091 | ac_cv_search_getmntent=$ac_res | |
80992638 | 10092 | else |
1995c9ff | 10093 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10094 | sed 's/^/| /' conftest.$ac_ext >&5 |
10095 | ||
25fbec5b | 10096 | |
795ca3e5 AK |
10097 | fi |
10098 | ||
25fbec5b AK |
10099 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10100 | conftest$ac_exeext | |
10101 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10102 | break | |
795ca3e5 | 10103 | fi |
25fbec5b AK |
10104 | done |
10105 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10106 | : | |
10107 | else | |
10108 | ac_cv_search_getmntent=no | |
10109 | fi | |
10110 | rm conftest.$ac_ext | |
10111 | LIBS=$ac_func_search_save_LIBS | |
10112 | fi | |
10113 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 | |
10114 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
10115 | ac_res=$ac_cv_search_getmntent | |
10116 | if test "$ac_res" != no; then | |
10117 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10118 | ac_cv_func_getmntent=yes | |
10119 | ||
10120 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 10121 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 10122 | _ACEOF |
795ca3e5 | 10123 | |
25fbec5b AK |
10124 | else |
10125 | ac_cv_func_getmntent=no | |
795ca3e5 | 10126 | fi |
795ca3e5 AK |
10127 | |
10128 | ||
ad6254c5 AK |
10129 | # AC_FUNC_REALLOC |
10130 | ||
10131 | ||
10132 | for ac_header in sys/select.h sys/socket.h | |
10133 | do | |
1995c9ff | 10134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10136 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10140 | fi |
1995c9ff AK |
10141 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10143 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10144 | else |
ad6254c5 | 10145 | # Is the header compilable? |
1995c9ff AK |
10146 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10148 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10149 | /* confdefs.h. */ |
10150 | _ACEOF | |
10151 | cat confdefs.h >>conftest.$ac_ext | |
10152 | cat >>conftest.$ac_ext <<_ACEOF | |
10153 | /* end confdefs.h. */ | |
10154 | $ac_includes_default | |
10155 | #include <$ac_header> | |
10156 | _ACEOF | |
10157 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10158 | if { (ac_try="$ac_compile" |
10159 | case "(($ac_try" in | |
10160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10161 | *) ac_try_echo=$ac_try;; | |
10162 | esac | |
1995c9ff | 10163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10164 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10165 | ac_status=$? |
8a2fc586 AK |
10166 | grep -v '^ *+' conftest.er1 >conftest.err |
10167 | rm -f conftest.er1 | |
10168 | cat conftest.err >&5 | |
1995c9ff | 10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10170 | (exit $ac_status); } && { |
10171 | test -z "$ac_c_werror_flag" || | |
10172 | test ! -s conftest.err | |
10173 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10174 | ac_header_compiler=yes |
80992638 | 10175 | else |
1995c9ff | 10176 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10177 | sed 's/^/| /' conftest.$ac_ext >&5 |
10178 | ||
7a197a62 | 10179 | ac_header_compiler=no |
ad6254c5 | 10180 | fi |
7a197a62 AK |
10181 | |
10182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10183 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10184 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10185 | |
10186 | # Is the header present? | |
1995c9ff AK |
10187 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10188 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10189 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10190 | /* confdefs.h. */ |
10191 | _ACEOF | |
10192 | cat confdefs.h >>conftest.$ac_ext | |
10193 | cat >>conftest.$ac_ext <<_ACEOF | |
10194 | /* end confdefs.h. */ | |
10195 | #include <$ac_header> | |
10196 | _ACEOF | |
7a197a62 AK |
10197 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10198 | case "(($ac_try" in | |
10199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10200 | *) ac_try_echo=$ac_try;; | |
10201 | esac | |
1995c9ff | 10202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10203 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10204 | ac_status=$? |
10205 | grep -v '^ *+' conftest.er1 >conftest.err | |
10206 | rm -f conftest.er1 | |
10207 | cat conftest.err >&5 | |
1995c9ff | 10208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10209 | (exit $ac_status); } >/dev/null && { |
10210 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10211 | test ! -s conftest.err | |
10212 | }; then | |
ad6254c5 AK |
10213 | ac_header_preproc=yes |
10214 | else | |
1995c9ff | 10215 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10216 | sed 's/^/| /' conftest.$ac_ext >&5 |
10217 | ||
10218 | ac_header_preproc=no | |
10219 | fi | |
7a197a62 | 10220 | |
ad6254c5 | 10221 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10222 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10223 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10224 | |
10225 | # So? What about this header? | |
8a2fc586 AK |
10226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10227 | yes:no: ) | |
1995c9ff AK |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10232 | ac_header_preproc=yes |
ad6254c5 | 10233 | ;; |
8a2fc586 | 10234 | no:yes:* ) |
1995c9ff AK |
10235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10247 | |
ad6254c5 AK |
10248 | ;; |
10249 | esac | |
1995c9ff AK |
10250 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10254 | else |
8a2fc586 | 10255 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10256 | fi |
1995c9ff AK |
10257 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10258 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10259 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10260 | |
795ca3e5 | 10261 | fi |
1995c9ff | 10262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10263 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10265 | _ACEOF |
10266 | ||
795ca3e5 AK |
10267 | fi |
10268 | ||
ad6254c5 AK |
10269 | done |
10270 | ||
1995c9ff AK |
10271 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10272 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10273 | if test "${ac_cv_func_select_args+set}" = set; then |
1995c9ff | 10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10275 | else |
ad6254c5 | 10276 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10277 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10278 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10279 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10280 | /* confdefs.h. */ |
10281 | _ACEOF | |
10282 | cat confdefs.h >>conftest.$ac_ext | |
10283 | cat >>conftest.$ac_ext <<_ACEOF | |
10284 | /* end confdefs.h. */ | |
10285 | $ac_includes_default | |
25fbec5b | 10286 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10287 | # include <sys/select.h> |
10288 | #endif | |
25fbec5b | 10289 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10290 | # include <sys/socket.h> |
10291 | #endif | |
10292 | ||
10293 | int | |
10294 | main () | |
10295 | { | |
10296 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10297 | $ac_arg234, $ac_arg234, $ac_arg234, |
10298 | $ac_arg5); | |
ad6254c5 AK |
10299 | ; |
10300 | return 0; | |
10301 | } | |
10302 | _ACEOF | |
10303 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10304 | if { (ac_try="$ac_compile" |
10305 | case "(($ac_try" in | |
10306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10307 | *) ac_try_echo=$ac_try;; | |
10308 | esac | |
1995c9ff | 10309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10310 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10311 | ac_status=$? |
8a2fc586 AK |
10312 | grep -v '^ *+' conftest.er1 >conftest.err |
10313 | rm -f conftest.er1 | |
10314 | cat conftest.err >&5 | |
1995c9ff | 10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10316 | (exit $ac_status); } && { |
10317 | test -z "$ac_c_werror_flag" || | |
10318 | test ! -s conftest.err | |
10319 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10320 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10321 | else | |
1995c9ff | 10322 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10323 | sed 's/^/| /' conftest.$ac_ext >&5 |
10324 | ||
7a197a62 | 10325 | |
ad6254c5 | 10326 | fi |
7a197a62 AK |
10327 | |
10328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10329 | done |
10330 | done | |
10331 | done | |
10332 | # Provide a safe default value. | |
10333 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10334 | ||
26e7f2e0 | 10335 | fi |
1995c9ff AK |
10336 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10337 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10338 | ac_save_IFS=$IFS; IFS=',' |
10339 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10340 | IFS=$ac_save_IFS | |
10341 | shift | |
10342 | ||
10343 | cat >>confdefs.h <<_ACEOF | |
10344 | #define SELECT_TYPE_ARG1 $1 | |
10345 | _ACEOF | |
10346 | ||
10347 | ||
10348 | cat >>confdefs.h <<_ACEOF | |
10349 | #define SELECT_TYPE_ARG234 ($2) | |
10350 | _ACEOF | |
10351 | ||
10352 | ||
10353 | cat >>confdefs.h <<_ACEOF | |
10354 | #define SELECT_TYPE_ARG5 ($3) | |
10355 | _ACEOF | |
10356 | ||
80992638 | 10357 | rm -f conftest* |
80992638 | 10358 | |
8106cdd5 | 10359 | fi |
ad6254c5 | 10360 | |
ad6254c5 AK |
10361 | if test x$CLUSTER != xnone; then |
10362 | ||
10363 | ||
10364 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10365 | do |
1995c9ff | 10366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10368 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10372 | fi |
1995c9ff AK |
10373 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10375 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10376 | else |
10377 | # Is the header compilable? | |
1995c9ff AK |
10378 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10379 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10380 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10381 | /* confdefs.h. */ |
10382 | _ACEOF | |
10383 | cat confdefs.h >>conftest.$ac_ext | |
10384 | cat >>conftest.$ac_ext <<_ACEOF | |
10385 | /* end confdefs.h. */ | |
10386 | $ac_includes_default | |
10387 | #include <$ac_header> | |
10388 | _ACEOF | |
10389 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10390 | if { (ac_try="$ac_compile" |
10391 | case "(($ac_try" in | |
10392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10393 | *) ac_try_echo=$ac_try;; | |
10394 | esac | |
1995c9ff | 10395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10396 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10397 | ac_status=$? |
8a2fc586 AK |
10398 | grep -v '^ *+' conftest.er1 >conftest.err |
10399 | rm -f conftest.er1 | |
10400 | cat conftest.err >&5 | |
1995c9ff | 10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10402 | (exit $ac_status); } && { |
10403 | test -z "$ac_c_werror_flag" || | |
10404 | test ! -s conftest.err | |
10405 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10406 | ac_header_compiler=yes |
10407 | else | |
1995c9ff | 10408 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10409 | sed 's/^/| /' conftest.$ac_ext >&5 |
10410 | ||
7a197a62 | 10411 | ac_header_compiler=no |
ad6254c5 | 10412 | fi |
7a197a62 AK |
10413 | |
10414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10415 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10416 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10417 | |
10418 | # Is the header present? | |
1995c9ff AK |
10419 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10421 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10422 | /* confdefs.h. */ |
10423 | _ACEOF | |
10424 | cat confdefs.h >>conftest.$ac_ext | |
10425 | cat >>conftest.$ac_ext <<_ACEOF | |
10426 | /* end confdefs.h. */ | |
10427 | #include <$ac_header> | |
10428 | _ACEOF | |
7a197a62 AK |
10429 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10430 | case "(($ac_try" in | |
10431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10432 | *) ac_try_echo=$ac_try;; | |
10433 | esac | |
1995c9ff | 10434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10435 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10436 | ac_status=$? |
10437 | grep -v '^ *+' conftest.er1 >conftest.err | |
10438 | rm -f conftest.er1 | |
10439 | cat conftest.err >&5 | |
1995c9ff | 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10441 | (exit $ac_status); } >/dev/null && { |
10442 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10443 | test ! -s conftest.err | |
10444 | }; then | |
ad6254c5 AK |
10445 | ac_header_preproc=yes |
10446 | else | |
1995c9ff | 10447 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10448 | sed 's/^/| /' conftest.$ac_ext >&5 |
10449 | ||
10450 | ac_header_preproc=no | |
10451 | fi | |
7a197a62 | 10452 | |
ad6254c5 | 10453 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10454 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10455 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10456 | |
10457 | # So? What about this header? | |
8a2fc586 AK |
10458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10459 | yes:no: ) | |
1995c9ff AK |
10460 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10461 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10463 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10464 | ac_header_preproc=yes |
ad6254c5 | 10465 | ;; |
8a2fc586 | 10466 | no:yes:* ) |
1995c9ff AK |
10467 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10468 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10469 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10471 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10472 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10473 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10474 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10476 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10477 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10478 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10479 | |
ad6254c5 AK |
10480 | ;; |
10481 | esac | |
1995c9ff AK |
10482 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10484 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10486 | else |
8a2fc586 | 10487 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10488 | fi |
1995c9ff AK |
10489 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10491 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10492 | |
10493 | fi | |
1995c9ff | 10494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10495 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10497 | _ACEOF |
10498 | ||
80992638 | 10499 | else |
1995c9ff AK |
10500 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10501 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10502 | { (exit 1); exit 1; }; } |
b896caa1 | 10503 | fi |
ad6254c5 | 10504 | |
b896caa1 AK |
10505 | done |
10506 | ||
10507 | ||
ad6254c5 AK |
10508 | for ac_func in socket |
10509 | do | |
1995c9ff AK |
10510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10511 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10513 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10515 | else |
ad6254c5 | 10516 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10517 | /* confdefs.h. */ |
10518 | _ACEOF | |
10519 | cat confdefs.h >>conftest.$ac_ext | |
10520 | cat >>conftest.$ac_ext <<_ACEOF | |
10521 | /* end confdefs.h. */ | |
8a2fc586 AK |
10522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10524 | #define $ac_func innocuous_$ac_func | |
10525 | ||
ad6254c5 AK |
10526 | /* System header to define __stub macros and hopefully few prototypes, |
10527 | which can conflict with char $ac_func (); below. | |
10528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10529 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10530 | |
ad6254c5 AK |
10531 | #ifdef __STDC__ |
10532 | # include <limits.h> | |
10533 | #else | |
10534 | # include <assert.h> | |
10535 | #endif | |
8a2fc586 AK |
10536 | |
10537 | #undef $ac_func | |
10538 | ||
7a197a62 AK |
10539 | /* Override any GCC internal prototype to avoid an error. |
10540 | Use char because int might match the return type of a GCC | |
10541 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10542 | #ifdef __cplusplus |
10543 | extern "C" | |
ad6254c5 | 10544 | #endif |
ad6254c5 AK |
10545 | char $ac_func (); |
10546 | /* The GNU C library defines this for functions which it implements | |
10547 | to always fail with ENOSYS. Some functions are actually named | |
10548 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10549 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10550 | choke me |
ad6254c5 AK |
10551 | #endif |
10552 | ||
10553 | int | |
10554 | main () | |
10555 | { | |
7a197a62 | 10556 | return $ac_func (); |
ad6254c5 AK |
10557 | ; |
10558 | return 0; | |
10559 | } | |
10560 | _ACEOF | |
10561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10562 | if { (ac_try="$ac_link" |
10563 | case "(($ac_try" in | |
10564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10565 | *) ac_try_echo=$ac_try;; | |
10566 | esac | |
1995c9ff | 10567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10568 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10569 | ac_status=$? |
8a2fc586 AK |
10570 | grep -v '^ *+' conftest.er1 >conftest.err |
10571 | rm -f conftest.er1 | |
10572 | cat conftest.err >&5 | |
1995c9ff | 10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10574 | (exit $ac_status); } && { |
10575 | test -z "$ac_c_werror_flag" || | |
10576 | test ! -s conftest.err | |
10577 | } && test -s conftest$ac_exeext && | |
10578 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10579 | eval "$as_ac_var=yes" |
10580 | else | |
1995c9ff | 10581 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10582 | sed 's/^/| /' conftest.$ac_ext >&5 |
10583 | ||
7a197a62 | 10584 | eval "$as_ac_var=no" |
ad6254c5 | 10585 | fi |
7a197a62 | 10586 | |
25fbec5b | 10587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10588 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10589 | fi |
1995c9ff AK |
10590 | ac_res=`eval echo '${'$as_ac_var'}'` |
10591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10592 | echo "${ECHO_T}$ac_res" >&6; } | |
10593 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10594 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10596 | _ACEOF |
10597 | ||
10598 | else | |
1995c9ff AK |
10599 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10600 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10601 | { (exit 1); exit 1; }; } |
10602 | fi | |
10603 | done | |
10604 | ||
10605 | fi | |
10606 | ||
10607 | if test x$HAVE_LIBDL = xyes; then | |
10608 | ||
10609 | for ac_header in dlfcn.h | |
10610 | do | |
1995c9ff | 10611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10613 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10615 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10617 | fi |
1995c9ff AK |
10618 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10619 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10620 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10621 | else |
10622 | # Is the header compilable? | |
1995c9ff AK |
10623 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10624 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10625 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10626 | /* confdefs.h. */ |
10627 | _ACEOF | |
10628 | cat confdefs.h >>conftest.$ac_ext | |
10629 | cat >>conftest.$ac_ext <<_ACEOF | |
10630 | /* end confdefs.h. */ | |
10631 | $ac_includes_default | |
10632 | #include <$ac_header> | |
10633 | _ACEOF | |
10634 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10635 | if { (ac_try="$ac_compile" |
10636 | case "(($ac_try" in | |
10637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10638 | *) ac_try_echo=$ac_try;; | |
10639 | esac | |
1995c9ff | 10640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10641 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10642 | ac_status=$? |
8a2fc586 AK |
10643 | grep -v '^ *+' conftest.er1 >conftest.err |
10644 | rm -f conftest.er1 | |
10645 | cat conftest.err >&5 | |
1995c9ff | 10646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10647 | (exit $ac_status); } && { |
10648 | test -z "$ac_c_werror_flag" || | |
10649 | test ! -s conftest.err | |
10650 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10651 | ac_header_compiler=yes |
10652 | else | |
1995c9ff | 10653 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10654 | sed 's/^/| /' conftest.$ac_ext >&5 |
10655 | ||
7a197a62 | 10656 | ac_header_compiler=no |
ad6254c5 | 10657 | fi |
7a197a62 AK |
10658 | |
10659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10661 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10662 | |
10663 | # Is the header present? | |
1995c9ff AK |
10664 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10666 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10667 | /* confdefs.h. */ |
10668 | _ACEOF | |
10669 | cat confdefs.h >>conftest.$ac_ext | |
10670 | cat >>conftest.$ac_ext <<_ACEOF | |
10671 | /* end confdefs.h. */ | |
10672 | #include <$ac_header> | |
10673 | _ACEOF | |
7a197a62 AK |
10674 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10675 | case "(($ac_try" in | |
10676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10677 | *) ac_try_echo=$ac_try;; | |
10678 | esac | |
1995c9ff | 10679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10681 | ac_status=$? |
10682 | grep -v '^ *+' conftest.er1 >conftest.err | |
10683 | rm -f conftest.er1 | |
10684 | cat conftest.err >&5 | |
1995c9ff | 10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10686 | (exit $ac_status); } >/dev/null && { |
10687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10688 | test ! -s conftest.err | |
10689 | }; then | |
ad6254c5 AK |
10690 | ac_header_preproc=yes |
10691 | else | |
1995c9ff | 10692 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10693 | sed 's/^/| /' conftest.$ac_ext >&5 |
10694 | ||
10695 | ac_header_preproc=no | |
10696 | fi | |
7a197a62 | 10697 | |
ad6254c5 | 10698 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10699 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10700 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10701 | |
10702 | # So? What about this header? | |
8a2fc586 AK |
10703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10704 | yes:no: ) | |
1995c9ff AK |
10705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10709 | ac_header_preproc=yes |
ad6254c5 | 10710 | ;; |
8a2fc586 | 10711 | no:yes:* ) |
1995c9ff AK |
10712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10724 | |
ad6254c5 AK |
10725 | ;; |
10726 | esac | |
1995c9ff AK |
10727 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10731 | else |
8a2fc586 | 10732 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10733 | fi |
1995c9ff AK |
10734 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10735 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10736 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 10737 | |
8106cdd5 | 10738 | fi |
1995c9ff | 10739 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10740 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10741 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10742 | _ACEOF |
795ca3e5 AK |
10743 | |
10744 | else | |
1995c9ff AK |
10745 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10746 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10747 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10748 | fi |
10749 | ||
ad6254c5 | 10750 | done |
80992638 | 10751 | |
ad6254c5 | 10752 | fi |
80992638 | 10753 | |
ad6254c5 | 10754 | if test x$INTL = xyes; then |
83912faa | 10755 | |
ad6254c5 AK |
10756 | for ac_header in libintl.h |
10757 | do | |
1995c9ff | 10758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10764 | fi |
1995c9ff AK |
10765 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10767 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10768 | else |
ad6254c5 | 10769 | # Is the header compilable? |
1995c9ff AK |
10770 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10771 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10772 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10773 | /* confdefs.h. */ |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10778 | $ac_includes_default | |
10779 | #include <$ac_header> | |
10780 | _ACEOF | |
10781 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10782 | if { (ac_try="$ac_compile" |
10783 | case "(($ac_try" in | |
10784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10785 | *) ac_try_echo=$ac_try;; | |
10786 | esac | |
1995c9ff | 10787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10788 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10789 | ac_status=$? |
8a2fc586 AK |
10790 | grep -v '^ *+' conftest.er1 >conftest.err |
10791 | rm -f conftest.er1 | |
10792 | cat conftest.err >&5 | |
1995c9ff | 10793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10794 | (exit $ac_status); } && { |
10795 | test -z "$ac_c_werror_flag" || | |
10796 | test ! -s conftest.err | |
10797 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10798 | ac_header_compiler=yes |
10799 | else | |
1995c9ff | 10800 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10801 | sed 's/^/| /' conftest.$ac_ext >&5 |
10802 | ||
7a197a62 | 10803 | ac_header_compiler=no |
ad6254c5 | 10804 | fi |
7a197a62 AK |
10805 | |
10806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10807 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10808 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10809 | |
10810 | # Is the header present? | |
1995c9ff AK |
10811 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10812 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10813 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10814 | /* confdefs.h. */ |
10815 | _ACEOF | |
10816 | cat confdefs.h >>conftest.$ac_ext | |
10817 | cat >>conftest.$ac_ext <<_ACEOF | |
10818 | /* end confdefs.h. */ | |
10819 | #include <$ac_header> | |
10820 | _ACEOF | |
7a197a62 AK |
10821 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10822 | case "(($ac_try" in | |
10823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10824 | *) ac_try_echo=$ac_try;; | |
10825 | esac | |
1995c9ff | 10826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10827 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10828 | ac_status=$? |
10829 | grep -v '^ *+' conftest.er1 >conftest.err | |
10830 | rm -f conftest.er1 | |
10831 | cat conftest.err >&5 | |
1995c9ff | 10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10833 | (exit $ac_status); } >/dev/null && { |
10834 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10835 | test ! -s conftest.err | |
10836 | }; then | |
ad6254c5 AK |
10837 | ac_header_preproc=yes |
10838 | else | |
1995c9ff | 10839 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10840 | sed 's/^/| /' conftest.$ac_ext >&5 |
10841 | ||
10842 | ac_header_preproc=no | |
10843 | fi | |
7a197a62 | 10844 | |
ad6254c5 | 10845 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10846 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10847 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10848 | |
10849 | # So? What about this header? | |
8a2fc586 AK |
10850 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10851 | yes:no: ) | |
1995c9ff AK |
10852 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10853 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10855 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10856 | ac_header_preproc=yes |
ad6254c5 | 10857 | ;; |
8a2fc586 | 10858 | no:yes:* ) |
1995c9ff AK |
10859 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10860 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10861 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10862 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10863 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10864 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10865 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10866 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10867 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10868 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10869 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10870 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10871 | |
ad6254c5 AK |
10872 | ;; |
10873 | esac | |
1995c9ff AK |
10874 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 10878 | else |
8a2fc586 | 10879 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10880 | fi |
1995c9ff AK |
10881 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10882 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10883 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10884 | |
69792976 | 10885 | fi |
1995c9ff | 10886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10887 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10889 | _ACEOF |
69792976 | 10890 | |
69792976 | 10891 | else |
1995c9ff AK |
10892 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10893 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10894 | { (exit 1); exit 1; }; } |
80992638 AK |
10895 | fi |
10896 | ||
ad6254c5 | 10897 | done |
69792976 | 10898 | |
ad6254c5 AK |
10899 | fi |
10900 | ||
ad6254c5 AK |
10901 | |
10902 | for ac_header in libdevmapper.h | |
10903 | do | |
1995c9ff | 10904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10906 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10910 | fi |
1995c9ff AK |
10911 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10912 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10913 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 10914 | else |
ad6254c5 | 10915 | # Is the header compilable? |
1995c9ff AK |
10916 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10918 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10919 | /* confdefs.h. */ |
10920 | _ACEOF | |
10921 | cat confdefs.h >>conftest.$ac_ext | |
10922 | cat >>conftest.$ac_ext <<_ACEOF | |
10923 | /* end confdefs.h. */ | |
10924 | $ac_includes_default | |
10925 | #include <$ac_header> | |
10926 | _ACEOF | |
10927 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10928 | if { (ac_try="$ac_compile" |
10929 | case "(($ac_try" in | |
10930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10931 | *) ac_try_echo=$ac_try;; | |
10932 | esac | |
1995c9ff | 10933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10934 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10935 | ac_status=$? |
8a2fc586 AK |
10936 | grep -v '^ *+' conftest.er1 >conftest.err |
10937 | rm -f conftest.er1 | |
10938 | cat conftest.err >&5 | |
1995c9ff | 10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10940 | (exit $ac_status); } && { |
10941 | test -z "$ac_c_werror_flag" || | |
10942 | test ! -s conftest.err | |
10943 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10944 | ac_header_compiler=yes |
10945 | else | |
1995c9ff | 10946 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10947 | sed 's/^/| /' conftest.$ac_ext >&5 |
10948 | ||
7a197a62 | 10949 | ac_header_compiler=no |
ad6254c5 | 10950 | fi |
7a197a62 AK |
10951 | |
10952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10953 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10954 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10955 | |
10956 | # Is the header present? | |
1995c9ff AK |
10957 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10958 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10959 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10960 | /* confdefs.h. */ |
10961 | _ACEOF | |
10962 | cat confdefs.h >>conftest.$ac_ext | |
10963 | cat >>conftest.$ac_ext <<_ACEOF | |
10964 | /* end confdefs.h. */ | |
10965 | #include <$ac_header> | |
10966 | _ACEOF | |
7a197a62 AK |
10967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10968 | case "(($ac_try" in | |
10969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10970 | *) ac_try_echo=$ac_try;; | |
10971 | esac | |
1995c9ff | 10972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10974 | ac_status=$? |
10975 | grep -v '^ *+' conftest.er1 >conftest.err | |
10976 | rm -f conftest.er1 | |
10977 | cat conftest.err >&5 | |
1995c9ff | 10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10979 | (exit $ac_status); } >/dev/null && { |
10980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10981 | test ! -s conftest.err | |
10982 | }; then | |
ad6254c5 AK |
10983 | ac_header_preproc=yes |
10984 | else | |
1995c9ff | 10985 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10986 | sed 's/^/| /' conftest.$ac_ext >&5 |
10987 | ||
10988 | ac_header_preproc=no | |
10989 | fi | |
7a197a62 | 10990 | |
ad6254c5 | 10991 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10992 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10993 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10994 | |
10995 | # So? What about this header? | |
8a2fc586 AK |
10996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10997 | yes:no: ) | |
1995c9ff AK |
10998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11002 | ac_header_preproc=yes |
ad6254c5 | 11003 | ;; |
8a2fc586 | 11004 | no:yes:* ) |
1995c9ff AK |
11005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11017 | |
ad6254c5 AK |
11018 | ;; |
11019 | esac | |
1995c9ff AK |
11020 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11024 | else |
8a2fc586 | 11025 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11026 | fi |
1995c9ff AK |
11027 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11029 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11030 | |
ad6254c5 | 11031 | fi |
1995c9ff | 11032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11033 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11035 | _ACEOF |
69792976 | 11036 | |
69792976 | 11037 | else |
1995c9ff AK |
11038 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11039 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11040 | { (exit 1); exit 1; }; } |
83912faa AK |
11041 | fi |
11042 | ||
ad6254c5 AK |
11043 | done |
11044 | ||
4a7f3eb2 | 11045 | |
ad6254c5 AK |
11046 | if test x$HAVE_SELINUX = xyes; then |
11047 | ||
11048 | for ac_header in selinux/selinux.h | |
11049 | do | |
1995c9ff | 11050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11056 | fi |
1995c9ff AK |
11057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11059 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11060 | else |
ad6254c5 | 11061 | # Is the header compilable? |
1995c9ff AK |
11062 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11064 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11065 | /* confdefs.h. */ |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | $ac_includes_default | |
11071 | #include <$ac_header> | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11074 | if { (ac_try="$ac_compile" |
11075 | case "(($ac_try" in | |
11076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11077 | *) ac_try_echo=$ac_try;; | |
11078 | esac | |
1995c9ff | 11079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11080 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11081 | ac_status=$? |
8a2fc586 AK |
11082 | grep -v '^ *+' conftest.er1 >conftest.err |
11083 | rm -f conftest.er1 | |
11084 | cat conftest.err >&5 | |
1995c9ff | 11085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11086 | (exit $ac_status); } && { |
11087 | test -z "$ac_c_werror_flag" || | |
11088 | test ! -s conftest.err | |
11089 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11090 | ac_header_compiler=yes |
11091 | else | |
1995c9ff | 11092 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 |
11094 | ||
7a197a62 | 11095 | ac_header_compiler=no |
ad6254c5 | 11096 | fi |
7a197a62 AK |
11097 | |
11098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11099 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11100 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11101 | |
11102 | # Is the header present? | |
1995c9ff AK |
11103 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11105 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11106 | /* confdefs.h. */ |
11107 | _ACEOF | |
11108 | cat confdefs.h >>conftest.$ac_ext | |
11109 | cat >>conftest.$ac_ext <<_ACEOF | |
11110 | /* end confdefs.h. */ | |
11111 | #include <$ac_header> | |
11112 | _ACEOF | |
7a197a62 AK |
11113 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11114 | case "(($ac_try" in | |
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11116 | *) ac_try_echo=$ac_try;; | |
11117 | esac | |
1995c9ff | 11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11120 | ac_status=$? |
11121 | grep -v '^ *+' conftest.er1 >conftest.err | |
11122 | rm -f conftest.er1 | |
11123 | cat conftest.err >&5 | |
1995c9ff | 11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11125 | (exit $ac_status); } >/dev/null && { |
11126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11127 | test ! -s conftest.err | |
11128 | }; then | |
ad6254c5 AK |
11129 | ac_header_preproc=yes |
11130 | else | |
1995c9ff | 11131 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 |
11133 | ||
11134 | ac_header_preproc=no | |
11135 | fi | |
7a197a62 | 11136 | |
ad6254c5 | 11137 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
11138 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11139 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11140 | |
11141 | # So? What about this header? | |
8a2fc586 AK |
11142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11143 | yes:no: ) | |
1995c9ff AK |
11144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11148 | ac_header_preproc=yes |
ad6254c5 | 11149 | ;; |
8a2fc586 | 11150 | no:yes:* ) |
1995c9ff AK |
11151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11163 | |
ad6254c5 AK |
11164 | ;; |
11165 | esac | |
1995c9ff AK |
11166 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11170 | else |
8a2fc586 | 11171 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11172 | fi |
1995c9ff AK |
11173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11175 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11176 | |
ad6254c5 | 11177 | fi |
1995c9ff | 11178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11179 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11181 | _ACEOF |
0a62c911 | 11182 | |
0a62c911 | 11183 | else |
1995c9ff AK |
11184 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11185 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11186 | { (exit 1); exit 1; }; } |
80992638 AK |
11187 | fi |
11188 | ||
ad6254c5 | 11189 | done |
0a62c911 | 11190 | |
ad6254c5 | 11191 | fi |
0a62c911 | 11192 | |
a653923f AK |
11193 | ################################################################################ |
11194 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11195 | set dummy modprobe; ac_word=$2 | |
1995c9ff AK |
11196 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11198 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
1995c9ff | 11199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11200 | else |
11201 | case $MODPROBE_CMD in | |
11202 | [\\/]* | ?:[\\/]*) | |
11203 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11204 | ;; | |
11205 | *) | |
11206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11207 | for as_dir in $PATH | |
11208 | do | |
11209 | IFS=$as_save_IFS | |
11210 | test -z "$as_dir" && as_dir=. | |
11211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11213 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 11214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11215 | break 2 |
11216 | fi | |
11217 | done | |
11218 | done | |
7a197a62 | 11219 | IFS=$as_save_IFS |
72b2cb61 AK |
11220 | |
11221 | ;; | |
11222 | esac | |
11223 | fi | |
11224 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11225 | if test -n "$MODPROBE_CMD"; then |
1995c9ff AK |
11226 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11227 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11228 | else |
1995c9ff AK |
11229 | { echo "$as_me:$LINENO: result: no" >&5 |
11230 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11231 | fi |
11232 | ||
a653923f | 11233 | |
7a197a62 | 11234 | |
a653923f | 11235 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11236 | |
11237 | cat >>confdefs.h <<_ACEOF | |
11238 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11239 | _ACEOF | |
11240 | ||
a653923f AK |
11241 | fi |
11242 | ||
80992638 | 11243 | ################################################################################ |
d0191583 | 11244 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11245 | |
80992638 | 11246 | ################################################################################ |
fae0c576 | 11247 | |
83912faa | 11248 | |
795ca3e5 AK |
11249 | |
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
5a52dca9 | 11255 | |
8ef2b021 | 11256 | |
199e490e | 11257 | |
69792976 AK |
11258 | |
11259 | ||
11260 | ||
d0191583 JM |
11261 | # FIXME: rename to LVM_USE_DMEVENTD |
11262 | ||
69792976 | 11263 | |
8106cdd5 AK |
11264 | |
11265 | ||
11266 | ||
11267 | ||
11268 | ||
d68a82ec | 11269 | |
036f273a | 11270 | |
7d1552c9 | 11271 | |
8106cdd5 | 11272 | |
0a62c911 | 11273 | |
8106cdd5 | 11274 | |
4a7f3eb2 | 11275 | |
4922197a AK |
11276 | |
11277 | ||
d8ac0fbc | 11278 | |
1a9ea74d | 11279 | |
8a2fc586 AK |
11280 | |
11281 | ||
d0191583 JM |
11282 | |
11283 | # FIXME: rename to LVM_CONF_DIR | |
11284 | ||
11285 | ||
11286 | ||
11287 | ||
11288 | ||
8a2fc586 | 11289 | |
8ce0cbda | 11290 | |
8b1a3214 | 11291 | |
33f732c5 | 11292 | |
66e941e8 | 11293 | |
d3c8211f AK |
11294 | |
11295 | ||
80992638 | 11296 | ################################################################################ |
d0191583 | 11297 | ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11298 | |
ad6254c5 | 11299 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11300 | # This file is a shell script that caches the results of configure |
11301 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11302 | # scripts and configure runs, see configure's option --config-cache. |
11303 | # It is not useful on other systems. If it contains results you don't | |
11304 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11305 | # |
ad6254c5 AK |
11306 | # config.status only pays attention to the cache file if you give it |
11307 | # the --recheck option to rerun configure. | |
795ca3e5 | 11308 | # |
ad6254c5 AK |
11309 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11310 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11311 | # following values. | |
11312 | ||
11313 | _ACEOF | |
11314 | ||
795ca3e5 AK |
11315 | # The following way of writing the cache mishandles newlines in values, |
11316 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11317 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11318 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11319 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11320 | ( |
11321 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11322 | eval ac_val=\$$ac_var | |
11323 | case $ac_val in #( | |
11324 | *${as_nl}*) | |
11325 | case $ac_var in #( | |
1995c9ff AK |
11326 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11327 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11328 | esac |
11329 | case $ac_var in #( | |
11330 | _ | IFS | as_nl) ;; #( | |
11331 | *) $as_unset $ac_var ;; | |
11332 | esac ;; | |
11333 | esac | |
11334 | done | |
11335 | ||
ad6254c5 | 11336 | (set) 2>&1 | |
7a197a62 AK |
11337 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11338 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11339 | # `set' does not quote correctly, so add quotes (double-quote |
11340 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11341 | sed -n \ | |
8a2fc586 AK |
11342 | "s/'/'\\\\''/g; |
11343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11344 | ;; #( |
ad6254c5 AK |
11345 | *) |
11346 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11347 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11348 | ;; |
7a197a62 AK |
11349 | esac | |
11350 | sort | |
11351 | ) | | |
ad6254c5 | 11352 | sed ' |
7a197a62 | 11353 | /^ac_cv_env_/b end |
ad6254c5 | 11354 | t clear |
7a197a62 | 11355 | :clear |
ad6254c5 AK |
11356 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11357 | t end | |
7a197a62 AK |
11358 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11359 | :end' >>confcache | |
11360 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11361 | if test -w "$cache_file"; then | |
11362 | test "x$cache_file" != "x/dev/null" && | |
1995c9ff AK |
11363 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11364 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11365 | cat confcache >$cache_file |
795ca3e5 | 11366 | else |
1995c9ff AK |
11367 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11368 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11369 | fi |
11370 | fi | |
11371 | rm -f confcache | |
11372 | ||
795ca3e5 AK |
11373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11374 | # Let make expand exec_prefix. | |
11375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11376 | ||
72b2cb61 | 11377 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11378 | |
11379 | ac_libobjs= | |
11380 | ac_ltlibobjs= | |
11381 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11382 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11383 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
1995c9ff | 11384 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11385 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11386 | # will be set to the directory where LIBOBJS objects are built. | |
11387 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11388 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11389 | done |
11390 | LIBOBJS=$ac_libobjs | |
80992638 | 11391 | |
ad6254c5 AK |
11392 | LTLIBOBJS=$ac_ltlibobjs |
11393 | ||
11394 | ||
11395 | ||
11396 | : ${CONFIG_STATUS=./config.status} | |
11397 | ac_clean_files_save=$ac_clean_files | |
11398 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1995c9ff AK |
11399 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11400 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
ad6254c5 AK |
11401 | cat >$CONFIG_STATUS <<_ACEOF |
11402 | #! $SHELL | |
11403 | # Generated by $as_me. | |
795ca3e5 | 11404 | # Run this file to recreate the current configuration. |
795ca3e5 | 11405 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11406 | # configure, is in config.log if it exists. |
11407 | ||
11408 | debug=false | |
11409 | ac_cs_recheck=false | |
11410 | ac_cs_silent=false | |
11411 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11412 | _ACEOF | |
11413 | ||
11414 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11415 | ## --------------------- ## | |
11416 | ## M4sh Initialization. ## | |
11417 | ## --------------------- ## | |
11418 | ||
25fbec5b AK |
11419 | # Be more Bourne compatible |
11420 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11421 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11422 | emulate sh | |
11423 | NULLCMD=: | |
11424 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11425 | # is contrary to our usage. Disable this feature. | |
11426 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11427 | setopt NO_GLOB_SUBST |
11428 | else | |
25fbec5b AK |
11429 | case `(set -o) 2>/dev/null` in |
11430 | *posix*) set -o posix ;; | |
11431 | esac | |
11432 | ||
7a197a62 | 11433 | fi |
25fbec5b AK |
11434 | |
11435 | ||
7a197a62 AK |
11436 | |
11437 | ||
11438 | # PATH needs CR | |
11439 | # Avoid depending upon Character Ranges. | |
11440 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11441 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11442 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11443 | as_cr_digits='0123456789' | |
11444 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11445 | ||
11446 | # The user is always right. | |
11447 | if test "${PATH_SEPARATOR+set}" != set; then | |
11448 | echo "#! /bin/sh" >conf$$.sh | |
11449 | echo "exit 0" >>conf$$.sh | |
11450 | chmod +x conf$$.sh | |
11451 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11452 | PATH_SEPARATOR=';' | |
11453 | else | |
11454 | PATH_SEPARATOR=: | |
11455 | fi | |
11456 | rm -f conf$$.sh | |
ad6254c5 AK |
11457 | fi |
11458 | ||
11459 | # Support unset when possible. | |
8a2fc586 | 11460 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11461 | as_unset=unset |
11462 | else | |
11463 | as_unset=false | |
11464 | fi | |
8106cdd5 | 11465 | |
ad6254c5 | 11466 | |
7a197a62 AK |
11467 | # IFS |
11468 | # We need space, tab and new line, in precisely that order. Quoting is | |
11469 | # there to prevent editors from complaining about space-tab. | |
11470 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11471 | # splitting by setting IFS to empty value.) | |
1995c9ff AK |
11472 | as_nl=' |
11473 | ' | |
7a197a62 AK |
11474 | IFS=" "" $as_nl" |
11475 | ||
11476 | # Find who we are. Look in the path if we contain no directory separator. | |
11477 | case $0 in | |
11478 | *[\\/]* ) as_myself=$0 ;; | |
11479 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11480 | for as_dir in $PATH | |
11481 | do | |
11482 | IFS=$as_save_IFS | |
11483 | test -z "$as_dir" && as_dir=. | |
11484 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11485 | done | |
11486 | IFS=$as_save_IFS | |
11487 | ||
11488 | ;; | |
11489 | esac | |
11490 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11491 | # in which case we are not to be found in the path. | |
11492 | if test "x$as_myself" = x; then | |
11493 | as_myself=$0 | |
11494 | fi | |
11495 | if test ! -f "$as_myself"; then | |
1995c9ff | 11496 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11497 | { (exit 1); exit 1; } |
11498 | fi | |
11499 | ||
ad6254c5 | 11500 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11501 | for as_var in ENV MAIL MAILPATH |
11502 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11503 | done | |
ad6254c5 AK |
11504 | PS1='$ ' |
11505 | PS2='> ' | |
11506 | PS4='+ ' | |
11507 | ||
11508 | # NLS nuisances. | |
11509 | for as_var in \ | |
11510 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11511 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11512 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11513 | do |
8a2fc586 | 11514 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11515 | eval $as_var=C; export $as_var |
11516 | else | |
7a197a62 | 11517 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 | 11518 | fi |
8106cdd5 AK |
11519 | done |
11520 | ||
ad6254c5 | 11521 | # Required to use basename. |
7a197a62 AK |
11522 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11523 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11524 | as_expr=expr |
11525 | else | |
11526 | as_expr=false | |
11527 | fi | |
8106cdd5 | 11528 | |
7a197a62 | 11529 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11530 | as_basename=basename |
11531 | else | |
11532 | as_basename=false | |
11533 | fi | |
11534 | ||
11535 | ||
11536 | # Name of the executable. | |
7a197a62 | 11537 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11538 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11539 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11540 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 11541 | echo X/"$0" | |
7a197a62 AK |
11542 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11543 | s//\1/ | |
11544 | q | |
11545 | } | |
11546 | /^X\/\(\/\/\)$/{ | |
11547 | s//\1/ | |
11548 | q | |
11549 | } | |
11550 | /^X\/\(\/\).*/{ | |
11551 | s//\1/ | |
11552 | q | |
11553 | } | |
11554 | s/.*/./; q'` | |
ad6254c5 | 11555 | |
7a197a62 AK |
11556 | # CDPATH. |
11557 | $as_unset CDPATH | |
ad6254c5 AK |
11558 | |
11559 | ||
ad6254c5 | 11560 | |
ad6254c5 AK |
11561 | as_lineno_1=$LINENO |
11562 | as_lineno_2=$LINENO | |
ad6254c5 | 11563 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11564 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11565 | |
ad6254c5 AK |
11566 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11567 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11568 | # line-number line after each line using $LINENO; the second 'sed' |
11569 | # does the real work. The second script uses 'N' to pair each | |
11570 | # line-number line with the line containing $LINENO, and appends | |
11571 | # trailing '-' during substitution so that $LINENO is not a special | |
11572 | # case at line end. | |
ad6254c5 | 11573 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11574 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11575 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11576 | sed -n ' | |
11577 | p | |
11578 | /[$]LINENO/= | |
11579 | ' <$as_myself | | |
ad6254c5 | 11580 | sed ' |
7a197a62 AK |
11581 | s/[$]LINENO.*/&-/ |
11582 | t lineno | |
11583 | b | |
11584 | :lineno | |
ad6254c5 | 11585 | N |
7a197a62 AK |
11586 | :loop |
11587 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11588 | t loop |
7a197a62 | 11589 | s/-\n.*// |
ad6254c5 | 11590 | ' >$as_me.lineno && |
7a197a62 | 11591 | chmod +x "$as_me.lineno" || |
1995c9ff | 11592 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11593 | { (exit 1); exit 1; }; } |
11594 | ||
11595 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11596 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11597 | # original and so on. Autoconf is especially sensitive to this). |
11598 | . "./$as_me.lineno" | |
ad6254c5 AK |
11599 | # Exit status is that of the last command. |
11600 | exit | |
11601 | } | |
11602 | ||
11603 | ||
7a197a62 AK |
11604 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11605 | as_dirname=dirname | |
11606 | else | |
11607 | as_dirname=false | |
11608 | fi | |
11609 | ||
11610 | ECHO_C= ECHO_N= ECHO_T= | |
11611 | case `echo -n x` in | |
11612 | -n*) | |
11613 | case `echo 'x\c'` in | |
11614 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11615 | *) ECHO_C='\c';; | |
11616 | esac;; | |
11617 | *) | |
11618 | ECHO_N='-n';; | |
ad6254c5 | 11619 | esac |
1995c9ff | 11620 | |
7a197a62 AK |
11621 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11622 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11623 | as_expr=expr |
11624 | else | |
11625 | as_expr=false | |
11626 | fi | |
80992638 | 11627 | |
ad6254c5 | 11628 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11629 | if test -d conf$$.dir; then |
11630 | rm -f conf$$.dir/conf$$.file | |
11631 | else | |
11632 | rm -f conf$$.dir | |
11633 | mkdir conf$$.dir | |
11634 | fi | |
ad6254c5 AK |
11635 | echo >conf$$.file |
11636 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
11637 | as_ln_s='ln -s' |
11638 | # ... but there are two gotchas: | |
11639 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11640 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11641 | # In both cases, we have to default to `cp -p'. | |
11642 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11643 | as_ln_s='cp -p' |
ad6254c5 AK |
11644 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11645 | as_ln_s=ln | |
11646 | else | |
11647 | as_ln_s='cp -p' | |
11648 | fi | |
7a197a62 AK |
11649 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11650 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11651 | |
ad6254c5 AK |
11652 | if mkdir -p . 2>/dev/null; then |
11653 | as_mkdir_p=: | |
11654 | else | |
8a2fc586 | 11655 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11656 | as_mkdir_p=false |
11657 | fi | |
11658 | ||
25fbec5b AK |
11659 | if test -x / >/dev/null 2>&1; then |
11660 | as_test_x='test -x' | |
7a197a62 | 11661 | else |
25fbec5b AK |
11662 | if ls -dL / >/dev/null 2>&1; then |
11663 | as_ls_L_option=L | |
11664 | else | |
11665 | as_ls_L_option= | |
11666 | fi | |
11667 | as_test_x=' | |
11668 | eval sh -c '\'' | |
11669 | if test -d "$1"; then | |
11670 | test -d "$1/."; | |
11671 | else | |
11672 | case $1 in | |
11673 | -*)set "./$1";; | |
11674 | esac; | |
11675 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11676 | ???[sx]*):;;*)false;;esac;fi | |
11677 | '\'' sh | |
11678 | ' | |
7a197a62 | 11679 | fi |
25fbec5b | 11680 | as_executable_p=$as_test_x |
ad6254c5 AK |
11681 | |
11682 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11683 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11684 | |
11685 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11686 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11687 | |
11688 | ||
ad6254c5 AK |
11689 | exec 6>&1 |
11690 | ||
7a197a62 | 11691 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11692 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11693 | # values after options handling. |
11694 | ac_log=" | |
ad6254c5 | 11695 | This file was extended by $as_me, which was |
25fbec5b | 11696 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11697 | |
11698 | CONFIG_FILES = $CONFIG_FILES | |
11699 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11700 | CONFIG_LINKS = $CONFIG_LINKS | |
11701 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11702 | $ $0 $@ | |
11703 | ||
7a197a62 AK |
11704 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11705 | " | |
11706 | ||
ad6254c5 AK |
11707 | _ACEOF |
11708 | ||
7a197a62 | 11709 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11710 | # Files that config.status was made for. |
7a197a62 AK |
11711 | config_files="$ac_config_files" |
11712 | config_headers="$ac_config_headers" | |
ad6254c5 | 11713 | |
7a197a62 | 11714 | _ACEOF |
ad6254c5 AK |
11715 | |
11716 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ad6254c5 AK |
11717 | ac_cs_usage="\ |
11718 | \`$as_me' instantiates files from templates according to the | |
11719 | current configuration. | |
11720 | ||
11721 | Usage: $0 [OPTIONS] [FILE]... | |
11722 | ||
11723 | -h, --help print this help, then exit | |
25fbec5b | 11724 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
11725 | -q, --quiet do not print progress messages |
11726 | -d, --debug don't remove temporary files | |
11727 | --recheck update $as_me by reconfiguring in the same conditions | |
11728 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11729 | instantiate the configuration file FILE |
72b2cb61 AK |
11730 | --header=FILE[:TEMPLATE] |
11731 | instantiate the configuration header FILE | |
ad6254c5 AK |
11732 | |
11733 | Configuration files: | |
11734 | $config_files | |
11735 | ||
72b2cb61 AK |
11736 | Configuration headers: |
11737 | $config_headers | |
11738 | ||
ad6254c5 | 11739 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 11740 | |
7a197a62 | 11741 | _ACEOF |
ad6254c5 AK |
11742 | cat >>$CONFIG_STATUS <<_ACEOF |
11743 | ac_cs_version="\\ | |
11744 | config.status | |
25fbec5b | 11745 | configured by $0, generated by GNU Autoconf 2.61, |
1995c9ff | 11746 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
ad6254c5 | 11747 | |
7a197a62 | 11748 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
11749 | This config.status script is free software; the Free Software Foundation |
11750 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11751 | |
11752 | ac_pwd='$ac_pwd' | |
11753 | srcdir='$srcdir' | |
11754 | INSTALL='$INSTALL' | |
ad6254c5 AK |
11755 | _ACEOF |
11756 | ||
11757 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11758 | # If no file are specified by the user, then we need to provide default | |
11759 | # value. By we need to know if files were specified by the user. | |
11760 | ac_need_defaults=: | |
11761 | while test $# != 0 | |
11762 | do | |
11763 | case $1 in | |
11764 | --*=*) | |
7a197a62 AK |
11765 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11766 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11767 | ac_shift=: |
11768 | ;; | |
7a197a62 | 11769 | *) |
ad6254c5 AK |
11770 | ac_option=$1 |
11771 | ac_optarg=$2 | |
11772 | ac_shift=shift | |
11773 | ;; | |
ad6254c5 AK |
11774 | esac |
11775 | ||
11776 | case $ac_option in | |
11777 | # Handling of the options. | |
ad6254c5 AK |
11778 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11779 | ac_cs_recheck=: ;; | |
7a197a62 | 11780 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
1995c9ff | 11781 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 11782 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11783 | debug=: ;; |
11784 | --file | --fil | --fi | --f ) | |
11785 | $ac_shift | |
11786 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11787 | ac_need_defaults=false;; | |
11788 | --header | --heade | --head | --hea ) | |
11789 | $ac_shift | |
11790 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11791 | ac_need_defaults=false;; | |
7a197a62 AK |
11792 | --he | --h) |
11793 | # Conflict between --help and --header | |
1995c9ff | 11794 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
11795 | Try \`$0 --help' for more information." >&2 |
11796 | { (exit 1); exit 1; }; };; | |
11797 | --help | --hel | -h ) | |
1995c9ff | 11798 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11799 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11800 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11801 | ac_cs_silent=: ;; | |
11802 | ||
11803 | # This is an error. | |
1995c9ff | 11804 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 11805 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
11806 | { (exit 1); exit 1; }; } ;; |
11807 | ||
7a197a62 AK |
11808 | *) ac_config_targets="$ac_config_targets $1" |
11809 | ac_need_defaults=false ;; | |
ad6254c5 AK |
11810 | |
11811 | esac | |
11812 | shift | |
11813 | done | |
11814 | ||
11815 | ac_configure_extra_args= | |
11816 | ||
11817 | if $ac_cs_silent; then | |
11818 | exec 6>/dev/null | |
11819 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11820 | fi | |
11821 | ||
11822 | _ACEOF | |
11823 | cat >>$CONFIG_STATUS <<_ACEOF | |
11824 | if \$ac_cs_recheck; then | |
1995c9ff AK |
11825 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11826 | CONFIG_SHELL=$SHELL | |
7a197a62 | 11827 | export CONFIG_SHELL |
1995c9ff | 11828 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
11829 | fi |
11830 | ||
11831 | _ACEOF | |
7a197a62 AK |
11832 | cat >>$CONFIG_STATUS <<\_ACEOF |
11833 | exec 5>>config.log | |
11834 | { | |
11835 | echo | |
11836 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11837 | ## Running $as_me. ## | |
11838 | _ASBOX | |
1995c9ff | 11839 | echo "$ac_log" |
7a197a62 | 11840 | } >&5 |
ad6254c5 | 11841 | |
7a197a62 AK |
11842 | _ACEOF |
11843 | cat >>$CONFIG_STATUS <<_ACEOF | |
11844 | _ACEOF | |
ad6254c5 AK |
11845 | |
11846 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7a197a62 AK |
11847 | |
11848 | # Handling of arguments. | |
ad6254c5 AK |
11849 | for ac_config_target in $ac_config_targets |
11850 | do | |
7a197a62 AK |
11851 | case $ac_config_target in |
11852 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11853 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11854 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
d0191583 JM |
11855 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11856 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11857 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11858 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11859 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
7a197a62 AK |
11860 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
11861 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
7a197a62 | 11862 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; |
d0191583 | 11863 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 | 11864 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
7a197a62 AK |
11865 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11866 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11867 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11868 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11869 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 11870 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
11871 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
11872 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11873 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 11874 | |
1995c9ff AK |
11875 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11876 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 11877 | { (exit 1); exit 1; }; };; |
80992638 | 11878 | esac |
ad6254c5 AK |
11879 | done |
11880 | ||
7a197a62 | 11881 | |
ad6254c5 AK |
11882 | # If the user did not use the arguments to specify the items to instantiate, |
11883 | # then the envvar interface is used. Set only those that are not. | |
11884 | # We use the long form for the default assignment because of an extremely | |
11885 | # bizarre bug on SunOS 4.1.3. | |
11886 | if $ac_need_defaults; then | |
11887 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11888 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11889 | fi |
11890 | ||
11891 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11892 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11893 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11894 | # Hook for its removal unless debugging. |
11895 | # Note that there is a small window in which the directory will not be cleaned: | |
11896 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11897 | $debug || |
11898 | { | |
7a197a62 AK |
11899 | tmp= |
11900 | trap 'exit_status=$? | |
11901 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11902 | ' 0 | |
ad6254c5 AK |
11903 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
11904 | } | |
ad6254c5 AK |
11905 | # Create a (secure) tmp directory for tmp files. |
11906 | ||
11907 | { | |
7a197a62 | 11908 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11909 | test -n "$tmp" && test -d "$tmp" |
11910 | } || | |
11911 | { | |
7a197a62 AK |
11912 | tmp=./conf$$-$RANDOM |
11913 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
11914 | } || |
11915 | { | |
1995c9ff | 11916 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
11917 | { (exit 1); exit 1; } |
11918 | } | |
11919 | ||
1995c9ff AK |
11920 | # |
11921 | # Set up the sed scripts for CONFIG_FILES section. | |
11922 | # | |
7a197a62 | 11923 | |
1995c9ff AK |
11924 | # No need to generate the scripts if there are no CONFIG_FILES. |
11925 | # This happens for instance when ./config.status config.h | |
11926 | if test -n "$CONFIG_FILES"; then | |
7a197a62 | 11927 | |
66e941e8 | 11928 | _ACEOF |
7a197a62 AK |
11929 | |
11930 | ||
1995c9ff | 11931 | |
7a197a62 AK |
11932 | ac_delim='%!_!# ' |
11933 | for ac_last_try in false false false false false :; do | |
1995c9ff AK |
11934 | cat >conf$$subs.sed <<_ACEOF |
11935 | SHELL!$SHELL$ac_delim | |
11936 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
11937 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
11938 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
11939 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
11940 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
11941 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
11942 | exec_prefix!$exec_prefix$ac_delim | |
11943 | prefix!$prefix$ac_delim | |
11944 | program_transform_name!$program_transform_name$ac_delim | |
11945 | bindir!$bindir$ac_delim | |
11946 | sbindir!$sbindir$ac_delim | |
11947 | libexecdir!$libexecdir$ac_delim | |
11948 | datarootdir!$datarootdir$ac_delim | |
11949 | datadir!$datadir$ac_delim | |
11950 | sysconfdir!$sysconfdir$ac_delim | |
11951 | sharedstatedir!$sharedstatedir$ac_delim | |
11952 | localstatedir!$localstatedir$ac_delim | |
11953 | includedir!$includedir$ac_delim | |
11954 | oldincludedir!$oldincludedir$ac_delim | |
11955 | docdir!$docdir$ac_delim | |
11956 | infodir!$infodir$ac_delim | |
11957 | htmldir!$htmldir$ac_delim | |
11958 | dvidir!$dvidir$ac_delim | |
11959 | pdfdir!$pdfdir$ac_delim | |
11960 | psdir!$psdir$ac_delim | |
11961 | libdir!$libdir$ac_delim | |
11962 | localedir!$localedir$ac_delim | |
11963 | mandir!$mandir$ac_delim | |
11964 | DEFS!$DEFS$ac_delim | |
11965 | ECHO_C!$ECHO_C$ac_delim | |
11966 | ECHO_N!$ECHO_N$ac_delim | |
11967 | ECHO_T!$ECHO_T$ac_delim | |
11968 | LIBS!$LIBS$ac_delim | |
11969 | build_alias!$build_alias$ac_delim | |
11970 | host_alias!$host_alias$ac_delim | |
11971 | target_alias!$target_alias$ac_delim | |
11972 | build!$build$ac_delim | |
11973 | build_cpu!$build_cpu$ac_delim | |
11974 | build_vendor!$build_vendor$ac_delim | |
11975 | build_os!$build_os$ac_delim | |
11976 | host!$host$ac_delim | |
11977 | host_cpu!$host_cpu$ac_delim | |
11978 | host_vendor!$host_vendor$ac_delim | |
11979 | host_os!$host_os$ac_delim | |
11980 | target!$target$ac_delim | |
11981 | target_cpu!$target_cpu$ac_delim | |
11982 | target_vendor!$target_vendor$ac_delim | |
11983 | target_os!$target_os$ac_delim | |
11984 | AWK!$AWK$ac_delim | |
11985 | CC!$CC$ac_delim | |
11986 | CFLAGS!$CFLAGS$ac_delim | |
11987 | LDFLAGS!$LDFLAGS$ac_delim | |
11988 | CPPFLAGS!$CPPFLAGS$ac_delim | |
11989 | ac_ct_CC!$ac_ct_CC$ac_delim | |
11990 | EXEEXT!$EXEEXT$ac_delim | |
11991 | OBJEXT!$OBJEXT$ac_delim | |
d0191583 JM |
11992 | CPP!$CPP$ac_delim |
11993 | GREP!$GREP$ac_delim | |
11994 | EGREP!$EGREP$ac_delim | |
1995c9ff AK |
11995 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
11996 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
11997 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
11998 | LN_S!$LN_S$ac_delim | |
11999 | SET_MAKE!$SET_MAKE$ac_delim | |
12000 | RANLIB!$RANLIB$ac_delim | |
12001 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12002 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
1995c9ff AK |
12003 | ALLOCA!$ALLOCA$ac_delim |
12004 | LIBOBJS!$LIBOBJS$ac_delim | |
12005 | POW_LIB!$POW_LIB$ac_delim | |
d179cc7a | 12006 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim |
1995c9ff AK |
12007 | MSGFMT!$MSGFMT$ac_delim |
12008 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
d0191583 | 12009 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim |
1995c9ff | 12010 | CLDFLAGS!$CLDFLAGS$ac_delim |
1995c9ff | 12011 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim |
d0191583 JM |
12012 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim |
12013 | CLUSTER!$CLUSTER$ac_delim | |
12014 | CLVMD!$CLVMD$ac_delim | |
12015 | CMDLIB!$CMDLIB$ac_delim | |
12016 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
1995c9ff AK |
12017 | DEBUG!$DEBUG$ac_delim |
12018 | DEVMAPPER!$DEVMAPPER$ac_delim | |
d0191583 JM |
12019 | DMDIR!$DMDIR$ac_delim |
12020 | DMEVENTD!$DMEVENTD$ac_delim | |
12021 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12022 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12023 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12024 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12025 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12026 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12027 | FSADM!$FSADM$ac_delim | |
12028 | GROUP!$GROUP$ac_delim | |
1995c9ff | 12029 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim |
1995c9ff | 12030 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim |
d0191583 | 12031 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim |
1995c9ff AK |
12032 | _ACEOF |
12033 | ||
12034 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
7a197a62 AK |
12035 | break |
12036 | elif $ac_last_try; then | |
1995c9ff AK |
12037 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12038 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7a197a62 AK |
12039 | { (exit 1); exit 1; }; } |
12040 | else | |
12041 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ad6254c5 | 12042 | fi |
7a197a62 | 12043 | done |
1995c9ff AK |
12044 | |
12045 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12046 | if test -n "$ac_eof"; then | |
12047 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12048 | ac_eof=`expr $ac_eof + 1` | |
12049 | fi | |
7a197a62 AK |
12050 | |
12051 | cat >>$CONFIG_STATUS <<_ACEOF | |
1995c9ff AK |
12052 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12053 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12054 | _ACEOF | |
12055 | sed ' | |
12056 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12057 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12058 | :n | |
12059 | t n | |
12060 | s/'"$ac_delim"'$/,g/; t | |
12061 | s/$/\\/; p | |
12062 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12063 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12064 | rm -f conf$$subs.sed | |
7a197a62 | 12065 | cat >>$CONFIG_STATUS <<_ACEOF |
1995c9ff AK |
12066 | CEOF$ac_eof |
12067 | _ACEOF | |
7a197a62 | 12068 | |
8106cdd5 | 12069 | |
1995c9ff AK |
12070 | ac_delim='%!_!# ' |
12071 | for ac_last_try in false false false false false :; do | |
12072 | cat >conf$$subs.sed <<_ACEOF | |
d179cc7a | 12073 | INTL!$INTL$ac_delim |
1995c9ff | 12074 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim |
d0191583 JM |
12075 | JOBS!$JOBS$ac_delim |
12076 | LDDEPS!$LDDEPS$ac_delim | |
12077 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12078 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12079 | LVM1!$LVM1$ac_delim | |
12080 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12081 | CONFDIR!$CONFDIR$ac_delim | |
12082 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12083 | MIRRORS!$MIRRORS$ac_delim | |
12084 | OWNER!$OWNER$ac_delim | |
12085 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12086 | POOL!$POOL$ac_delim | |
12087 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12088 | STATICDIR!$STATICDIR$ac_delim | |
12089 | STATIC_LINK!$STATIC_LINK$ac_delim | |
1995c9ff AK |
12090 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim |
12091 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12092 | _ACEOF | |
12093 | ||
d179cc7a | 12094 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
1995c9ff AK |
12095 | break |
12096 | elif $ac_last_try; then | |
12097 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12098 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12099 | { (exit 1); exit 1; }; } | |
12100 | else | |
12101 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12102 | fi | |
12103 | done | |
12104 | ||
12105 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12106 | if test -n "$ac_eof"; then | |
12107 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12108 | ac_eof=`expr $ac_eof + 1` | |
12109 | fi | |
7a197a62 | 12110 | |
1995c9ff AK |
12111 | cat >>$CONFIG_STATUS <<_ACEOF |
12112 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12113 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
12114 | _ACEOF | |
12115 | sed ' | |
12116 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12117 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12118 | :n | |
12119 | t n | |
12120 | s/'"$ac_delim"'$/,g/; t | |
12121 | s/$/\\/; p | |
12122 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12123 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12124 | rm -f conf$$subs.sed | |
12125 | cat >>$CONFIG_STATUS <<_ACEOF | |
12126 | :end | |
12127 | s/|#_!!_#|//g | |
12128 | CEOF$ac_eof | |
7a197a62 AK |
12129 | _ACEOF |
12130 | ||
1995c9ff | 12131 | |
7a197a62 AK |
12132 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12133 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12134 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12135 | # (actually we leave an empty line to preserve line numbers). | |
12136 | if test "x$srcdir" = x.; then | |
12137 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12138 | s/:*\$(srcdir):*/:/ | |
12139 | s/:*\${srcdir}:*/:/ | |
12140 | s/:*@srcdir@:*/:/ | |
12141 | s/^\([^=]*=[ ]*\):*/\1/ | |
12142 | s/:*$// | |
12143 | s/^[^=]*=[ ]*$// | |
12144 | }' | |
12145 | fi | |
12146 | ||
ad6254c5 | 12147 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12148 | fi # test -n "$CONFIG_FILES" |
12149 | ||
12150 | ||
12151 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
12152 | do | |
12153 | case $ac_tag in | |
12154 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12155 | esac | |
12156 | case $ac_mode$ac_tag in | |
12157 | :[FHL]*:*);; | |
1995c9ff AK |
12158 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12159 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12160 | { (exit 1); exit 1; }; };; |
12161 | :[FH]-) ac_tag=-:-;; | |
12162 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12163 | esac | |
12164 | ac_save_IFS=$IFS | |
12165 | IFS=: | |
12166 | set x $ac_tag | |
12167 | IFS=$ac_save_IFS | |
12168 | shift | |
12169 | ac_file=$1 | |
12170 | shift | |
12171 | ||
12172 | case $ac_mode in | |
12173 | :L) ac_source=$1;; | |
12174 | :[FH]) | |
12175 | ac_file_inputs= | |
12176 | for ac_f | |
12177 | do | |
12178 | case $ac_f in | |
12179 | -) ac_f="$tmp/stdin";; | |
12180 | *) # Look for the file first in the build tree, then in the source tree | |
12181 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12182 | # because $ac_f cannot contain `:'. | |
12183 | test -f "$ac_f" || | |
12184 | case $ac_f in | |
12185 | [\\/$]*) false;; | |
12186 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12187 | esac || | |
1995c9ff AK |
12188 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12189 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12190 | { (exit 1); exit 1; }; };; |
12191 | esac | |
12192 | ac_file_inputs="$ac_file_inputs $ac_f" | |
12193 | done | |
12194 | ||
12195 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12196 | # use $as_me), people would be surprised to read: | |
12197 | # /* config.h. Generated by config.status. */ | |
1995c9ff AK |
12198 | configure_input="Generated from "`IFS=: |
12199 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12200 | if test x"$ac_file" != x-; then |
12201 | configure_input="$ac_file. $configure_input" | |
1995c9ff AK |
12202 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12203 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12204 | fi |
12205 | ||
12206 | case $ac_tag in | |
12207 | *:-:* | *:-) cat >"$tmp/stdin";; | |
12208 | esac | |
12209 | ;; | |
80992638 | 12210 | esac |
8106cdd5 | 12211 | |
7a197a62 | 12212 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12213 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12214 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12215 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12216 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 12217 | echo X"$ac_file" | |
7a197a62 AK |
12218 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12219 | s//\1/ | |
12220 | q | |
12221 | } | |
12222 | /^X\(\/\/\)[^/].*/{ | |
12223 | s//\1/ | |
12224 | q | |
12225 | } | |
12226 | /^X\(\/\/\)$/{ | |
12227 | s//\1/ | |
12228 | q | |
12229 | } | |
12230 | /^X\(\/\).*/{ | |
12231 | s//\1/ | |
12232 | q | |
12233 | } | |
12234 | s/.*/./; q'` | |
12235 | { as_dir="$ac_dir" | |
12236 | case $as_dir in #( | |
12237 | -*) as_dir=./$as_dir;; | |
12238 | esac | |
12239 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12240 | as_dirs= |
7a197a62 AK |
12241 | while :; do |
12242 | case $as_dir in #( | |
1995c9ff | 12243 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12244 | *) as_qdir=$as_dir;; |
12245 | esac | |
12246 | as_dirs="'$as_qdir' $as_dirs" | |
12247 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12248 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12249 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12250 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12251 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 12252 | echo X"$as_dir" | |
7a197a62 AK |
12253 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12254 | s//\1/ | |
12255 | q | |
12256 | } | |
12257 | /^X\(\/\/\)[^/].*/{ | |
12258 | s//\1/ | |
12259 | q | |
12260 | } | |
12261 | /^X\(\/\/\)$/{ | |
12262 | s//\1/ | |
12263 | q | |
12264 | } | |
12265 | /^X\(\/\).*/{ | |
12266 | s//\1/ | |
12267 | q | |
12268 | } | |
12269 | s/.*/./; q'` | |
12270 | test -d "$as_dir" && break | |
ad6254c5 | 12271 | done |
7a197a62 | 12272 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
1995c9ff AK |
12273 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12274 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12275 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12276 | ac_builddir=. |
12277 | ||
7a197a62 AK |
12278 | case "$ac_dir" in |
12279 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12280 | *) | |
1995c9ff | 12281 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12282 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 12283 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12284 | case $ac_top_builddir_sub in |
12285 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12286 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12287 | esac ;; | |
12288 | esac | |
12289 | ac_abs_top_builddir=$ac_pwd | |
12290 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12291 | # for backward compatibility: | |
12292 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12293 | |
12294 | case $srcdir in | |
7a197a62 | 12295 | .) # We are building in place. |
ad6254c5 | 12296 | ac_srcdir=. |
7a197a62 AK |
12297 | ac_top_srcdir=$ac_top_builddir_sub |
12298 | ac_abs_top_srcdir=$ac_pwd ;; | |
12299 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12300 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12301 | ac_top_srcdir=$srcdir |
12302 | ac_abs_top_srcdir=$srcdir ;; | |
12303 | *) # Relative name. | |
12304 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12305 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12306 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12307 | esac |
7a197a62 | 12308 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12309 | |
ad6254c5 | 12310 | |
7a197a62 AK |
12311 | case $ac_mode in |
12312 | :F) | |
12313 | # | |
12314 | # CONFIG_FILE | |
12315 | # | |
ad6254c5 AK |
12316 | |
12317 | case $INSTALL in | |
12318 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12319 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12320 | esac |
7a197a62 | 12321 | _ACEOF |
795ca3e5 | 12322 | |
7a197a62 AK |
12323 | cat >>$CONFIG_STATUS <<\_ACEOF |
12324 | # If the template does not know about datarootdir, expand it. | |
12325 | # FIXME: This hack should be removed a few years after 2.60. | |
12326 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12327 | ||
12328 | case `sed -n '/datarootdir/ { | |
12329 | p | |
12330 | q | |
12331 | } | |
12332 | /@datadir@/p | |
12333 | /@docdir@/p | |
12334 | /@infodir@/p | |
12335 | /@localedir@/p | |
12336 | /@mandir@/p | |
12337 | ' $ac_file_inputs` in | |
12338 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12339 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1995c9ff AK |
12340 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12341 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12342 | _ACEOF |
7a197a62 AK |
12343 | cat >>$CONFIG_STATUS <<_ACEOF |
12344 | ac_datarootdir_hack=' | |
12345 | s&@datadir@&$datadir&g | |
12346 | s&@docdir@&$docdir&g | |
12347 | s&@infodir@&$infodir&g | |
12348 | s&@localedir@&$localedir&g | |
12349 | s&@mandir@&$mandir&g | |
12350 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12351 | esac | |
12352 | _ACEOF | |
12353 | ||
12354 | # Neutralize VPATH when `$srcdir' = `.'. | |
12355 | # Shell code in configure.ac might set extrasub. | |
12356 | # FIXME: do we really want to maintain this feature? | |
ad6254c5 AK |
12357 | cat >>$CONFIG_STATUS <<_ACEOF |
12358 | sed "$ac_vpsub | |
12359 | $extrasub | |
12360 | _ACEOF | |
12361 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12362 | :t | |
12363 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7a197a62 AK |
12364 | s&@configure_input@&$configure_input&;t t |
12365 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12366 | s&@srcdir@&$ac_srcdir&;t t | |
12367 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12368 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12369 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12370 | s&@builddir@&$ac_builddir&;t t | |
12371 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12372 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12373 | s&@INSTALL@&$ac_INSTALL&;t t | |
12374 | $ac_datarootdir_hack | |
1995c9ff | 12375 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12376 | |
12377 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12378 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12379 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
1995c9ff | 12380 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12381 | which seems to be undefined. Please make sure it is defined." >&5 |
1995c9ff | 12382 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12383 | which seems to be undefined. Please make sure it is defined." >&2;} |
12384 | ||
12385 | rm -f "$tmp/stdin" | |
72b2cb61 | 12386 | case $ac_file in |
7a197a62 AK |
12387 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12388 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
72b2cb61 | 12389 | esac |
7a197a62 AK |
12390 | ;; |
12391 | :H) | |
12392 | # | |
12393 | # CONFIG_HEADER | |
12394 | # | |
12395 | _ACEOF | |
12396 | ||
12397 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12398 | # substitutes the proper values into config.h.in to produce config.h. | |
12399 | rm -f conftest.defines conftest.tail | |
12400 | # First, append a space to every undef/define line, to ease matching. | |
12401 | echo 's/$/ /' >conftest.defines | |
12402 | # Then, protect against being on the right side of a sed subst, or in | |
12403 | # an unquoted here document, in config.status. If some macros were | |
12404 | # called several times there might be several #defines for the same | |
12405 | # symbol, which is useless. But do not sort them, since the last | |
12406 | # AC_DEFINE must be honored. | |
12407 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12408 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12409 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12410 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12411 | # just an empty string. | |
12412 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12413 | ac_dB='\\)[ (].*,\\1define\\2' | |
12414 | ac_dC=' ' | |
12415 | ac_dD=' ,' | |
12416 | ||
12417 | uniq confdefs.h | | |
12418 | sed -n ' | |
12419 | t rset | |
12420 | :rset | |
12421 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12422 | t ok | |
12423 | d | |
12424 | :ok | |
12425 | s/[\\&,]/\\&/g | |
12426 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12427 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12428 | ' >>conftest.defines | |
12429 | ||
12430 | # Remove the space that was appended to ease matching. | |
12431 | # Then replace #undef with comments. This is necessary, for | |
72b2cb61 AK |
12432 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12433 | # on some systems where configure will not decide to define it. | |
7a197a62 AK |
12434 | # (The regexp can be short, since the line contains either #define or #undef.) |
12435 | echo 's/ $// | |
12436 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12437 | ||
12438 | # Break up conftest.defines: | |
12439 | ac_max_sed_lines=50 | |
12440 | ||
12441 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12442 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12443 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12444 | # et cetera. | |
12445 | ac_in='$ac_file_inputs' | |
12446 | ac_out='"$tmp/out1"' | |
12447 | ac_nxt='"$tmp/out2"' | |
12448 | ||
12449 | while : | |
72b2cb61 | 12450 | do |
7a197a62 AK |
12451 | # Write a here document: |
12452 | cat >>$CONFIG_STATUS <<_ACEOF | |
12453 | # First, check the format of the line: | |
12454 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12455 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12456 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12457 | b | |
12458 | :def | |
12459 | _ACEOF | |
12460 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
72b2cb61 | 12461 | echo 'CEOF |
7a197a62 AK |
12462 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
12463 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12464 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12465 | grep . conftest.tail >/dev/null || break | |
72b2cb61 AK |
12466 | rm -f conftest.defines |
12467 | mv conftest.tail conftest.defines | |
12468 | done | |
7a197a62 | 12469 | rm -f conftest.defines conftest.tail |
72b2cb61 | 12470 | |
7a197a62 | 12471 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
72b2cb61 | 12472 | cat >>$CONFIG_STATUS <<\_ACEOF |
72b2cb61 | 12473 | if test x"$ac_file" != x-; then |
1995c9ff | 12474 | echo "/* $configure_input */" >"$tmp/config.h" |
7a197a62 AK |
12475 | cat "$ac_result" >>"$tmp/config.h" |
12476 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
1995c9ff AK |
12477 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12478 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12479 | else |
72b2cb61 | 12480 | rm -f $ac_file |
7a197a62 | 12481 | mv "$tmp/config.h" $ac_file |
72b2cb61 AK |
12482 | fi |
12483 | else | |
1995c9ff | 12484 | echo "/* $configure_input */" |
7a197a62 | 12485 | cat "$ac_result" |
72b2cb61 | 12486 | fi |
7a197a62 AK |
12487 | rm -f "$tmp/out12" |
12488 | ;; | |
12489 | ||
12490 | ||
12491 | esac | |
12492 | ||
12493 | done # for ac_tag | |
795ca3e5 | 12494 | |
795ca3e5 | 12495 | |
ad6254c5 AK |
12496 | { (exit 0); exit 0; } |
12497 | _ACEOF | |
795ca3e5 | 12498 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12499 | ac_clean_files=$ac_clean_files_save |
12500 | ||
12501 | ||
12502 | # configure is writing to config.log, and then calls config.status. | |
12503 | # config.status does its own redirection, appending to config.log. | |
12504 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12505 | # by configure, so config.status won't be able to write to it; its | |
12506 | # output is simply discarded. So we exec the FD to /dev/null, | |
12507 | # effectively closing config.log, so it can be properly (re)opened and | |
12508 | # appended to by config.status. When coming back to configure, we | |
12509 | # need to make the FD available again. | |
12510 | if test "$no_create" != yes; then | |
12511 | ac_cs_success=: | |
12512 | ac_config_status_args= | |
12513 | test "$silent" = yes && | |
12514 | ac_config_status_args="$ac_config_status_args --quiet" | |
12515 | exec 5>/dev/null | |
12516 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12517 | exec 5>>config.log | |
12518 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12519 | # would make configure fail if this is the last instruction. | |
12520 | $ac_cs_success || { (exit 1); exit 1; } | |
12521 | fi | |
795ca3e5 | 12522 | |
2dc95e1c AK |
12523 | |
12524 | if test x$ODIRECT != xyes; then | |
1995c9ff AK |
12525 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12526 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12527 | fi |
809fae91 AK |
12528 | |
12529 | if test x$FSADM == xyes; then | |
1995c9ff AK |
12530 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12531 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12532 | fi |
06f62ad1 AK |
12533 | |
12534 | if test x$DMEVENTD == xyes; then | |
1995c9ff AK |
12535 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12536 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12537 | fi |