]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
66e941e8 | 3 | # Generated by GNU Autoconf 2.61a. |
795ca3e5 | 4 | # |
7a197a62 AK |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
7a197a62 AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
66e941e8 JM |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
7a197a62 AK |
72 | # The user is always right. |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | echo "#! /bin/sh" >conf$$.sh | |
75 | echo "exit 0" >>conf$$.sh | |
76 | chmod +x conf$$.sh | |
77 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
78 | PATH_SEPARATOR=';' | |
79 | else | |
80 | PATH_SEPARATOR=: | |
81 | fi | |
82 | rm -f conf$$.sh | |
ad6254c5 AK |
83 | fi |
84 | ||
85 | # Support unset when possible. | |
8a2fc586 | 86 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
87 | as_unset=unset |
88 | else | |
89 | as_unset=false | |
90 | fi | |
91 | ||
92 | ||
7a197a62 AK |
93 | # IFS |
94 | # We need space, tab and new line, in precisely that order. Quoting is | |
95 | # there to prevent editors from complaining about space-tab. | |
96 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
97 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
98 | IFS=" "" $as_nl" |
99 | ||
100 | # Find who we are. Look in the path if we contain no directory separator. | |
101 | case $0 in | |
102 | *[\\/]* ) as_myself=$0 ;; | |
103 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
104 | for as_dir in $PATH | |
105 | do | |
106 | IFS=$as_save_IFS | |
107 | test -z "$as_dir" && as_dir=. | |
108 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
109 | done | |
110 | IFS=$as_save_IFS | |
111 | ||
112 | ;; | |
113 | esac | |
114 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
115 | # in which case we are not to be found in the path. | |
116 | if test "x$as_myself" = x; then | |
117 | as_myself=$0 | |
118 | fi | |
119 | if test ! -f "$as_myself"; then | |
66e941e8 | 120 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
121 | { (exit 1); exit 1; } |
122 | fi | |
123 | ||
ad6254c5 | 124 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
125 | for as_var in ENV MAIL MAILPATH |
126 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
127 | done | |
ad6254c5 AK |
128 | PS1='$ ' |
129 | PS2='> ' | |
130 | PS4='+ ' | |
131 | ||
132 | # NLS nuisances. | |
133 | for as_var in \ | |
134 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
135 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
136 | LC_TELEPHONE LC_TIME | |
137 | do | |
8a2fc586 | 138 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
139 | eval $as_var=C; export $as_var |
140 | else | |
7a197a62 | 141 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 AK |
142 | fi |
143 | done | |
144 | ||
145 | # Required to use basename. | |
7a197a62 AK |
146 | if expr a : '\(a\)' >/dev/null 2>&1 && |
147 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
148 | as_expr=expr |
149 | else | |
150 | as_expr=false | |
151 | fi | |
152 | ||
7a197a62 | 153 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
154 | as_basename=basename |
155 | else | |
156 | as_basename=false | |
157 | fi | |
158 | ||
159 | ||
160 | # Name of the executable. | |
7a197a62 | 161 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
162 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
163 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 164 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
66e941e8 | 165 | $as_echo X/"$0" | |
7a197a62 AK |
166 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
167 | s//\1/ | |
168 | q | |
169 | } | |
170 | /^X\/\(\/\/\)$/{ | |
171 | s//\1/ | |
172 | q | |
173 | } | |
174 | /^X\/\(\/\).*/{ | |
175 | s//\1/ | |
176 | q | |
177 | } | |
178 | s/.*/./; q'` | |
ad6254c5 | 179 | |
7a197a62 AK |
180 | # CDPATH. |
181 | $as_unset CDPATH | |
ad6254c5 | 182 | |
ad6254c5 | 183 | |
7a197a62 AK |
184 | if test "x$CONFIG_SHELL" = x; then |
185 | if (eval ":") 2>/dev/null; then | |
186 | as_have_required=yes | |
187 | else | |
188 | as_have_required=no | |
ad6254c5 AK |
189 | fi |
190 | ||
7a197a62 AK |
191 | if test $as_have_required = yes && (eval ": |
192 | (as_func_return () { | |
193 | (exit \$1) | |
194 | } | |
195 | as_func_success () { | |
196 | as_func_return 0 | |
197 | } | |
198 | as_func_failure () { | |
199 | as_func_return 1 | |
200 | } | |
201 | as_func_ret_success () { | |
202 | return 0 | |
203 | } | |
204 | as_func_ret_failure () { | |
205 | return 1 | |
206 | } | |
ad6254c5 | 207 | |
7a197a62 AK |
208 | exitcode=0 |
209 | if as_func_success; then | |
210 | : | |
211 | else | |
212 | exitcode=1 | |
213 | echo as_func_success failed. | |
214 | fi | |
ad6254c5 | 215 | |
7a197a62 AK |
216 | if as_func_failure; then |
217 | exitcode=1 | |
218 | echo as_func_failure succeeded. | |
219 | fi | |
220 | ||
221 | if as_func_ret_success; then | |
222 | : | |
223 | else | |
224 | exitcode=1 | |
225 | echo as_func_ret_success failed. | |
226 | fi | |
227 | ||
228 | if as_func_ret_failure; then | |
229 | exitcode=1 | |
230 | echo as_func_ret_failure succeeded. | |
231 | fi | |
232 | ||
233 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
234 | : | |
235 | else | |
236 | exitcode=1 | |
237 | echo positional parameters were not saved. | |
238 | fi | |
239 | ||
240 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
241 | ||
242 | ( | |
243 | as_lineno_1=\$LINENO | |
244 | as_lineno_2=\$LINENO | |
245 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
246 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
247 | ") 2> /dev/null; then | |
248 | : | |
249 | else | |
250 | as_candidate_shells= | |
ad6254c5 AK |
251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
252 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
253 | do | |
254 | IFS=$as_save_IFS | |
255 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 256 | case $as_dir in |
ad6254c5 | 257 | /*) |
7a197a62 AK |
258 | for as_base in sh bash ksh sh5; do |
259 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
260 | done;; | |
261 | esac | |
262 | done | |
263 | IFS=$as_save_IFS | |
264 | ||
265 | ||
266 | for as_shell in $as_candidate_shells $SHELL; do | |
267 | # Try only shells that exist, to save several forks. | |
268 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
269 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
270 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
271 | emulate sh | |
272 | NULLCMD=: | |
273 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
274 | # is contrary to our usage. Disable this feature. | |
275 | alias -g '${1+"$@"}'='"$@"' | |
276 | setopt NO_GLOB_SUBST | |
277 | else | |
278 | case `(set -o) 2>/dev/null` in | |
279 | *posix*) set -o posix ;; | |
280 | esac | |
281 | ||
282 | fi | |
283 | ||
284 | ||
285 | : | |
286 | _ASEOF | |
287 | }; then | |
288 | CONFIG_SHELL=$as_shell | |
289 | as_have_required=yes | |
290 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
291 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
292 | emulate sh | |
293 | NULLCMD=: | |
294 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
295 | # is contrary to our usage. Disable this feature. | |
296 | alias -g '${1+"$@"}'='"$@"' | |
297 | setopt NO_GLOB_SUBST | |
298 | else | |
299 | case `(set -o) 2>/dev/null` in | |
300 | *posix*) set -o posix ;; | |
301 | esac | |
302 | ||
303 | fi | |
304 | ||
305 | ||
306 | : | |
307 | (as_func_return () { | |
308 | (exit $1) | |
309 | } | |
310 | as_func_success () { | |
311 | as_func_return 0 | |
312 | } | |
313 | as_func_failure () { | |
314 | as_func_return 1 | |
315 | } | |
316 | as_func_ret_success () { | |
317 | return 0 | |
318 | } | |
319 | as_func_ret_failure () { | |
320 | return 1 | |
321 | } | |
322 | ||
323 | exitcode=0 | |
324 | if as_func_success; then | |
325 | : | |
326 | else | |
327 | exitcode=1 | |
328 | echo as_func_success failed. | |
329 | fi | |
330 | ||
331 | if as_func_failure; then | |
332 | exitcode=1 | |
333 | echo as_func_failure succeeded. | |
334 | fi | |
335 | ||
336 | if as_func_ret_success; then | |
337 | : | |
338 | else | |
339 | exitcode=1 | |
340 | echo as_func_ret_success failed. | |
341 | fi | |
342 | ||
343 | if as_func_ret_failure; then | |
344 | exitcode=1 | |
345 | echo as_func_ret_failure succeeded. | |
346 | fi | |
347 | ||
348 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
349 | : | |
350 | else | |
351 | exitcode=1 | |
352 | echo positional parameters were not saved. | |
353 | fi | |
354 | ||
355 | test $exitcode = 0) || { (exit 1); exit 1; } | |
356 | ||
357 | ( | |
ad6254c5 AK |
358 | as_lineno_1=$LINENO |
359 | as_lineno_2=$LINENO | |
ad6254c5 | 360 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
361 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
362 | ||
363 | _ASEOF | |
364 | }; then | |
365 | break | |
366 | fi | |
367 | ||
368 | fi | |
369 | ||
370 | done | |
371 | ||
372 | if test "x$CONFIG_SHELL" != x; then | |
373 | for as_var in BASH_ENV ENV | |
374 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
375 | done | |
376 | export CONFIG_SHELL | |
377 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
378 | fi | |
379 | ||
380 | ||
381 | if test $as_have_required = no; then | |
382 | echo This script requires a shell more modern than all the | |
383 | echo shells that I found on your system. Please install a | |
384 | echo modern shell, or manually run the script under such a | |
385 | echo shell if you do have one. | |
386 | { (exit 1); exit 1; } | |
387 | fi | |
388 | ||
389 | ||
390 | fi | |
391 | ||
392 | fi | |
393 | ||
394 | ||
395 | ||
396 | (eval "as_func_return () { | |
397 | (exit \$1) | |
398 | } | |
399 | as_func_success () { | |
400 | as_func_return 0 | |
401 | } | |
402 | as_func_failure () { | |
403 | as_func_return 1 | |
404 | } | |
405 | as_func_ret_success () { | |
406 | return 0 | |
407 | } | |
408 | as_func_ret_failure () { | |
409 | return 1 | |
410 | } | |
411 | ||
412 | exitcode=0 | |
413 | if as_func_success; then | |
414 | : | |
415 | else | |
416 | exitcode=1 | |
417 | echo as_func_success failed. | |
418 | fi | |
419 | ||
420 | if as_func_failure; then | |
421 | exitcode=1 | |
422 | echo as_func_failure succeeded. | |
423 | fi | |
424 | ||
425 | if as_func_ret_success; then | |
426 | : | |
427 | else | |
428 | exitcode=1 | |
429 | echo as_func_ret_success failed. | |
430 | fi | |
431 | ||
432 | if as_func_ret_failure; then | |
433 | exitcode=1 | |
434 | echo as_func_ret_failure succeeded. | |
435 | fi | |
436 | ||
437 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
438 | : | |
439 | else | |
440 | exitcode=1 | |
441 | echo positional parameters were not saved. | |
442 | fi | |
443 | ||
444 | test \$exitcode = 0") || { | |
445 | echo No shell found that supports shell functions. | |
446 | echo Please tell autoconf@gnu.org about your system, | |
447 | echo including any error possibly output before this | |
448 | echo message | |
449 | } | |
450 | ||
451 | ||
452 | ||
453 | as_lineno_1=$LINENO | |
454 | as_lineno_2=$LINENO | |
455 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
456 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
457 | |
458 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
459 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
460 | # line-number line after each line using $LINENO; the second 'sed' |
461 | # does the real work. The second script uses 'N' to pair each | |
462 | # line-number line with the line containing $LINENO, and appends | |
463 | # trailing '-' during substitution so that $LINENO is not a special | |
464 | # case at line end. | |
ad6254c5 | 465 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
466 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
467 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
468 | sed -n ' | |
469 | p | |
470 | /[$]LINENO/= | |
471 | ' <$as_myself | | |
ad6254c5 | 472 | sed ' |
7a197a62 AK |
473 | s/[$]LINENO.*/&-/ |
474 | t lineno | |
475 | b | |
476 | :lineno | |
ad6254c5 | 477 | N |
7a197a62 AK |
478 | :loop |
479 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 480 | t loop |
7a197a62 | 481 | s/-\n.*// |
ad6254c5 | 482 | ' >$as_me.lineno && |
7a197a62 | 483 | chmod +x "$as_me.lineno" || |
66e941e8 | 484 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
485 | { (exit 1); exit 1; }; } |
486 | ||
487 | # Don't try to exec as it changes $[0], causing all sort of problems | |
488 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
489 | # original and so on. Autoconf is especially sensitive to this). |
490 | . "./$as_me.lineno" | |
ad6254c5 AK |
491 | # Exit status is that of the last command. |
492 | exit | |
493 | } | |
795ca3e5 | 494 | |
ad6254c5 | 495 | |
7a197a62 AK |
496 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
497 | as_dirname=dirname | |
498 | else | |
499 | as_dirname=false | |
500 | fi | |
501 | ||
502 | ECHO_C= ECHO_N= ECHO_T= | |
503 | case `echo -n x` in | |
504 | -n*) | |
505 | case `echo 'x\c'` in | |
506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | *) ECHO_C='\c';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
ad6254c5 | 511 | esac |
7a197a62 AK |
512 | if expr a : '\(a\)' >/dev/null 2>&1 && |
513 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
514 | as_expr=expr |
515 | else | |
516 | as_expr=false | |
517 | fi | |
518 | ||
519 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
520 | if test -d conf$$.dir; then |
521 | rm -f conf$$.dir/conf$$.file | |
522 | else | |
523 | rm -f conf$$.dir | |
524 | mkdir conf$$.dir | |
525 | fi | |
ad6254c5 AK |
526 | echo >conf$$.file |
527 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
528 | as_ln_s='ln -s' |
529 | # ... but there are two gotchas: | |
530 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
531 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
532 | # In both cases, we have to default to `cp -p'. | |
533 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 534 | as_ln_s='cp -p' |
ad6254c5 AK |
535 | elif ln conf$$.file conf$$ 2>/dev/null; then |
536 | as_ln_s=ln | |
537 | else | |
538 | as_ln_s='cp -p' | |
539 | fi | |
7a197a62 AK |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
542 | |
543 | if mkdir -p . 2>/dev/null; then | |
544 | as_mkdir_p=: | |
545 | else | |
8a2fc586 | 546 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
547 | as_mkdir_p=false |
548 | fi | |
549 | ||
7a197a62 AK |
550 | if test -x / >/dev/null 2>&1; then |
551 | as_test_x='test -x' | |
552 | else | |
553 | if ls -dL / >/dev/null 2>&1; then | |
554 | as_ls_L_option=L | |
555 | else | |
556 | as_ls_L_option= | |
557 | fi | |
558 | as_test_x=' | |
559 | eval sh -c '\'' | |
560 | if test -d "$1"; then | |
561 | test -d "$1/."; | |
562 | else | |
563 | case $1 in | |
564 | -*)set "./$1";; | |
565 | esac; | |
566 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
567 | ???[sx]*):;;*)false;;esac;fi | |
568 | '\'' sh | |
569 | ' | |
570 | fi | |
571 | as_executable_p=$as_test_x | |
ad6254c5 AK |
572 | |
573 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 574 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
575 | |
576 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 577 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
578 | |
579 | ||
ad6254c5 | 580 | |
7a197a62 | 581 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
582 | |
583 | # Name of the host. | |
584 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
585 | # so uname gets run too. | |
586 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
587 | ||
ad6254c5 AK |
588 | # |
589 | # Initializations. | |
590 | # | |
795ca3e5 | 591 | ac_default_prefix=/usr/local |
7a197a62 | 592 | ac_clean_files= |
ad6254c5 | 593 | ac_config_libobj_dir=. |
7a197a62 | 594 | LIBOBJS= |
ad6254c5 AK |
595 | cross_compiling=no |
596 | subdirs= | |
597 | MFLAGS= | |
598 | MAKEFLAGS= | |
599 | SHELL=${CONFIG_SHELL-/bin/sh} | |
600 | ||
ad6254c5 AK |
601 | # Identity of this package. |
602 | PACKAGE_NAME= | |
603 | PACKAGE_TARNAME= | |
604 | PACKAGE_VERSION= | |
605 | PACKAGE_STRING= | |
606 | PACKAGE_BUGREPORT= | |
607 | ||
608 | ac_unique_file="lib/device/dev-cache.h" | |
609 | # Factoring default headers for most tests. | |
610 | ac_includes_default="\ | |
611 | #include <stdio.h> | |
7a197a62 | 612 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
613 | # include <sys/types.h> |
614 | #endif | |
7a197a62 | 615 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
616 | # include <sys/stat.h> |
617 | #endif | |
7a197a62 | 618 | #ifdef STDC_HEADERS |
ad6254c5 AK |
619 | # include <stdlib.h> |
620 | # include <stddef.h> | |
621 | #else | |
7a197a62 | 622 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
623 | # include <stdlib.h> |
624 | # endif | |
625 | #endif | |
7a197a62 AK |
626 | #ifdef HAVE_STRING_H |
627 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
628 | # include <memory.h> |
629 | # endif | |
630 | # include <string.h> | |
631 | #endif | |
7a197a62 | 632 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
633 | # include <strings.h> |
634 | #endif | |
7a197a62 | 635 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 636 | # include <inttypes.h> |
ad6254c5 | 637 | #endif |
7a197a62 AK |
638 | #ifdef HAVE_STDINT_H |
639 | # include <stdint.h> | |
640 | #endif | |
641 | #ifdef HAVE_UNISTD_H | |
ad6254c5 AK |
642 | # include <unistd.h> |
643 | #endif" | |
644 | ||
795ca3e5 | 645 | ac_default_prefix=/usr |
7a197a62 AK |
646 | ac_subst_vars='SHELL |
647 | PATH_SEPARATOR | |
648 | PACKAGE_NAME | |
649 | PACKAGE_TARNAME | |
650 | PACKAGE_VERSION | |
651 | PACKAGE_STRING | |
652 | PACKAGE_BUGREPORT | |
653 | exec_prefix | |
654 | prefix | |
655 | program_transform_name | |
656 | bindir | |
657 | sbindir | |
658 | libexecdir | |
659 | datarootdir | |
660 | datadir | |
661 | sysconfdir | |
662 | sharedstatedir | |
663 | localstatedir | |
664 | includedir | |
665 | oldincludedir | |
666 | docdir | |
667 | infodir | |
668 | htmldir | |
669 | dvidir | |
670 | pdfdir | |
671 | psdir | |
672 | libdir | |
673 | localedir | |
674 | mandir | |
675 | DEFS | |
676 | ECHO_C | |
677 | ECHO_N | |
678 | ECHO_T | |
679 | LIBS | |
680 | build_alias | |
681 | host_alias | |
682 | target_alias | |
683 | build | |
684 | build_cpu | |
685 | build_vendor | |
686 | build_os | |
687 | host | |
688 | host_cpu | |
689 | host_vendor | |
690 | host_os | |
691 | target | |
692 | target_cpu | |
693 | target_vendor | |
694 | target_os | |
695 | AWK | |
696 | CC | |
697 | CFLAGS | |
698 | LDFLAGS | |
699 | CPPFLAGS | |
700 | ac_ct_CC | |
701 | EXEEXT | |
702 | OBJEXT | |
703 | INSTALL_PROGRAM | |
704 | INSTALL_SCRIPT | |
705 | INSTALL_DATA | |
706 | LN_S | |
707 | SET_MAKE | |
708 | RANLIB | |
709 | CFLOW_CMD | |
710 | CSCOPE_CMD | |
711 | CPP | |
712 | GREP | |
713 | EGREP | |
714 | ALLOCA | |
715 | LIBOBJS | |
716 | POW_LIB | |
717 | MSGFMT | |
718 | MODPROBE_CMD | |
719 | JOBS | |
720 | STATIC_LINK | |
721 | LVM1 | |
722 | POOL | |
723 | SNAPSHOTS | |
724 | MIRRORS | |
725 | OWNER | |
726 | GROUP | |
727 | COPTIMISE_FLAG | |
728 | CLDFLAGS | |
729 | CLDWHOLEARCHIVE | |
730 | CLDNOWHOLEARCHIVE | |
731 | LDDEPS | |
732 | LIB_SUFFIX | |
733 | LVM_VERSION | |
734 | LVM1_FALLBACK | |
735 | DEBUG | |
736 | DEVMAPPER | |
737 | HAVE_LIBDL | |
738 | HAVE_SELINUX | |
739 | HAVE_REALTIME | |
740 | CMDLIB | |
741 | LOCALEDIR | |
742 | CONFDIR | |
743 | STATICDIR | |
744 | DMDIR | |
745 | INTL_PACKAGE | |
746 | INTL | |
747 | CLVMD | |
748 | CLUSTER | |
749 | FSADM | |
750 | DMEVENTD | |
66e941e8 | 751 | LIB_PTHREAD |
7a197a62 | 752 | LTLIBOBJS' |
ad6254c5 | 753 | ac_subst_files='' |
7a197a62 AK |
754 | ac_precious_vars='build_alias |
755 | host_alias | |
756 | target_alias | |
757 | CC | |
758 | CFLAGS | |
759 | LDFLAGS | |
760 | LIBS | |
761 | CPPFLAGS | |
762 | CPP' | |
763 | ||
795ca3e5 AK |
764 | |
765 | # Initialize some variables set by options. | |
ad6254c5 AK |
766 | ac_init_help= |
767 | ac_init_version=false | |
795ca3e5 AK |
768 | # The variables have the same names as the options, with |
769 | # dashes changed to underlines. | |
ad6254c5 | 770 | cache_file=/dev/null |
795ca3e5 | 771 | exec_prefix=NONE |
795ca3e5 | 772 | no_create= |
795ca3e5 AK |
773 | no_recursion= |
774 | prefix=NONE | |
775 | program_prefix=NONE | |
776 | program_suffix=NONE | |
777 | program_transform_name=s,x,x, | |
778 | silent= | |
779 | site= | |
780 | srcdir= | |
795ca3e5 AK |
781 | verbose= |
782 | x_includes=NONE | |
783 | x_libraries=NONE | |
ad6254c5 AK |
784 | |
785 | # Installation directory options. | |
786 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
787 | # and all the variables that are supposed to be based on exec_prefix | |
788 | # by default will actually change. | |
789 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 790 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
791 | bindir='${exec_prefix}/bin' |
792 | sbindir='${exec_prefix}/sbin' | |
793 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
794 | datarootdir='${prefix}/share' |
795 | datadir='${datarootdir}' | |
795ca3e5 AK |
796 | sysconfdir='${prefix}/etc' |
797 | sharedstatedir='${prefix}/com' | |
798 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
799 | includedir='${prefix}/include' |
800 | oldincludedir='/usr/include' | |
7a197a62 AK |
801 | docdir='${datarootdir}/doc/${PACKAGE}' |
802 | infodir='${datarootdir}/info' | |
803 | htmldir='${docdir}' | |
804 | dvidir='${docdir}' | |
805 | pdfdir='${docdir}' | |
806 | psdir='${docdir}' | |
807 | libdir='${exec_prefix}/lib' | |
808 | localedir='${datarootdir}/locale' | |
809 | mandir='${datarootdir}/man' | |
795ca3e5 | 810 | |
795ca3e5 | 811 | ac_prev= |
7a197a62 | 812 | ac_dashdash= |
795ca3e5 AK |
813 | for ac_option |
814 | do | |
795ca3e5 AK |
815 | # If the previous option needs an argument, assign it. |
816 | if test -n "$ac_prev"; then | |
7a197a62 | 817 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
818 | ac_prev= |
819 | continue | |
820 | fi | |
821 | ||
7a197a62 AK |
822 | case $ac_option in |
823 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
824 | *) ac_optarg=yes ;; | |
825 | esac | |
795ca3e5 AK |
826 | |
827 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
828 | ||
7a197a62 AK |
829 | case $ac_dashdash$ac_option in |
830 | --) | |
831 | ac_dashdash=yes ;; | |
795ca3e5 AK |
832 | |
833 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
834 | ac_prev=bindir ;; | |
835 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 836 | bindir=$ac_optarg ;; |
795ca3e5 AK |
837 | |
838 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 839 | ac_prev=build_alias ;; |
795ca3e5 | 840 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 841 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
842 | |
843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
845 | ac_prev=cache_file ;; | |
846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
848 | cache_file=$ac_optarg ;; |
849 | ||
850 | --config-cache | -C) | |
851 | cache_file=config.cache ;; | |
795ca3e5 | 852 | |
7a197a62 | 853 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 854 | ac_prev=datadir ;; |
7a197a62 | 855 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 856 | datadir=$ac_optarg ;; |
795ca3e5 | 857 | |
7a197a62 AK |
858 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
859 | | --dataroo | --dataro | --datar) | |
860 | ac_prev=datarootdir ;; | |
861 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
862 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
863 | datarootdir=$ac_optarg ;; | |
864 | ||
795ca3e5 | 865 | -disable-* | --disable-*) |
66e941e8 | 866 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 867 | # Reject names that are not valid shell variable names. |
66e941e8 JM |
868 | expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null && |
869 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 870 | { (exit 1); exit 1; }; } |
66e941e8 JM |
871 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'` |
872 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
873 | |
874 | -docdir | --docdir | --docdi | --doc | --do) | |
875 | ac_prev=docdir ;; | |
876 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
877 | docdir=$ac_optarg ;; | |
878 | ||
879 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
880 | ac_prev=dvidir ;; | |
881 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
882 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
883 | |
884 | -enable-* | --enable-*) | |
66e941e8 | 885 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 886 | # Reject names that are not valid shell variable names. |
66e941e8 JM |
887 | expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null && |
888 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 889 | { (exit 1); exit 1; }; } |
66e941e8 JM |
890 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'` |
891 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
892 | |
893 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
894 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
895 | | --exec | --exe | --ex) | |
896 | ac_prev=exec_prefix ;; | |
897 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
898 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
899 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 900 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
901 | |
902 | -gas | --gas | --ga | --g) | |
903 | # Obsolete; use --with-gas. | |
904 | with_gas=yes ;; | |
905 | ||
ad6254c5 AK |
906 | -help | --help | --hel | --he | -h) |
907 | ac_init_help=long ;; | |
908 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
909 | ac_init_help=recursive ;; | |
910 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
911 | ac_init_help=short ;; | |
795ca3e5 AK |
912 | |
913 | -host | --host | --hos | --ho) | |
ad6254c5 | 914 | ac_prev=host_alias ;; |
795ca3e5 | 915 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 916 | host_alias=$ac_optarg ;; |
795ca3e5 | 917 | |
7a197a62 AK |
918 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
919 | ac_prev=htmldir ;; | |
920 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
921 | | --ht=*) | |
922 | htmldir=$ac_optarg ;; | |
923 | ||
795ca3e5 AK |
924 | -includedir | --includedir | --includedi | --included | --include \ |
925 | | --includ | --inclu | --incl | --inc) | |
926 | ac_prev=includedir ;; | |
927 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
928 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 929 | includedir=$ac_optarg ;; |
795ca3e5 AK |
930 | |
931 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
932 | ac_prev=infodir ;; | |
933 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 934 | infodir=$ac_optarg ;; |
795ca3e5 AK |
935 | |
936 | -libdir | --libdir | --libdi | --libd) | |
937 | ac_prev=libdir ;; | |
938 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 939 | libdir=$ac_optarg ;; |
795ca3e5 AK |
940 | |
941 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
942 | | --libexe | --libex | --libe) | |
943 | ac_prev=libexecdir ;; | |
944 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
945 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 946 | libexecdir=$ac_optarg ;; |
795ca3e5 | 947 | |
7a197a62 AK |
948 | -localedir | --localedir | --localedi | --localed | --locale) |
949 | ac_prev=localedir ;; | |
950 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
951 | localedir=$ac_optarg ;; | |
952 | ||
795ca3e5 | 953 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 954 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
955 | ac_prev=localstatedir ;; |
956 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 957 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 958 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
959 | |
960 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
961 | ac_prev=mandir ;; | |
962 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 963 | mandir=$ac_optarg ;; |
795ca3e5 AK |
964 | |
965 | -nfp | --nfp | --nf) | |
966 | # Obsolete; use --without-fp. | |
967 | with_fp=no ;; | |
968 | ||
969 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 970 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
971 | no_create=yes ;; |
972 | ||
973 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
974 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
975 | no_recursion=yes ;; | |
976 | ||
977 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
978 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
979 | | --oldin | --oldi | --old | --ol | --o) | |
980 | ac_prev=oldincludedir ;; | |
981 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
982 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
983 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 984 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
985 | |
986 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
987 | ac_prev=prefix ;; | |
988 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 989 | prefix=$ac_optarg ;; |
795ca3e5 AK |
990 | |
991 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
992 | | --program-pre | --program-pr | --program-p) | |
993 | ac_prev=program_prefix ;; | |
994 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
995 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 996 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
997 | |
998 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
999 | | --program-suf | --program-su | --program-s) | |
1000 | ac_prev=program_suffix ;; | |
1001 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1002 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1003 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1004 | |
1005 | -program-transform-name | --program-transform-name \ | |
1006 | | --program-transform-nam | --program-transform-na \ | |
1007 | | --program-transform-n | --program-transform- \ | |
1008 | | --program-transform | --program-transfor \ | |
1009 | | --program-transfo | --program-transf \ | |
1010 | | --program-trans | --program-tran \ | |
1011 | | --progr-tra | --program-tr | --program-t) | |
1012 | ac_prev=program_transform_name ;; | |
1013 | -program-transform-name=* | --program-transform-name=* \ | |
1014 | | --program-transform-nam=* | --program-transform-na=* \ | |
1015 | | --program-transform-n=* | --program-transform-=* \ | |
1016 | | --program-transform=* | --program-transfor=* \ | |
1017 | | --program-transfo=* | --program-transf=* \ | |
1018 | | --program-trans=* | --program-tran=* \ | |
1019 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1020 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1021 | |
7a197a62 AK |
1022 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1023 | ac_prev=pdfdir ;; | |
1024 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1025 | pdfdir=$ac_optarg ;; | |
1026 | ||
1027 | -psdir | --psdir | --psdi | --psd | --ps) | |
1028 | ac_prev=psdir ;; | |
1029 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1030 | psdir=$ac_optarg ;; | |
1031 | ||
795ca3e5 AK |
1032 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1033 | | -silent | --silent | --silen | --sile | --sil) | |
1034 | silent=yes ;; | |
1035 | ||
1036 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1037 | ac_prev=sbindir ;; | |
1038 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1039 | | --sbi=* | --sb=*) | |
ad6254c5 | 1040 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1041 | |
1042 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1043 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1044 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1045 | | --sha | --sh) | |
1046 | ac_prev=sharedstatedir ;; | |
1047 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1048 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1049 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1050 | | --sha=* | --sh=*) | |
ad6254c5 | 1051 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1052 | |
1053 | -site | --site | --sit) | |
1054 | ac_prev=site ;; | |
1055 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1056 | site=$ac_optarg ;; |
795ca3e5 AK |
1057 | |
1058 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1059 | ac_prev=srcdir ;; | |
1060 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1061 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1062 | |
1063 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1064 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1065 | ac_prev=sysconfdir ;; | |
1066 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1067 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1068 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1069 | |
1070 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1071 | ac_prev=target_alias ;; |
795ca3e5 | 1072 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1073 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1074 | |
1075 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1076 | verbose=yes ;; | |
1077 | ||
ad6254c5 AK |
1078 | -version | --version | --versio | --versi | --vers | -V) |
1079 | ac_init_version=: ;; | |
795ca3e5 AK |
1080 | |
1081 | -with-* | --with-*) | |
66e941e8 | 1082 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1083 | # Reject names that are not valid shell variable names. |
66e941e8 JM |
1084 | expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1085 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1086 | { (exit 1); exit 1; }; } |
66e941e8 JM |
1087 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'` |
1088 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1089 | |
1090 | -without-* | --without-*) | |
66e941e8 | 1091 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1092 | # Reject names that are not valid shell variable names. |
66e941e8 JM |
1093 | expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1094 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1095 | { (exit 1); exit 1; }; } |
66e941e8 JM |
1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'` |
1097 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1098 | |
1099 | --x) | |
1100 | # Obsolete; use --with-x. | |
1101 | with_x=yes ;; | |
1102 | ||
1103 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1104 | | --x-incl | --x-inc | --x-in | --x-i) | |
1105 | ac_prev=x_includes ;; | |
1106 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1107 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1108 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1109 | |
1110 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1111 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1112 | ac_prev=x_libraries ;; | |
1113 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1114 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1115 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1116 | |
66e941e8 | 1117 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1118 | Try \`$0 --help' for more information." >&2 |
1119 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1120 | ;; |
1121 | ||
ad6254c5 AK |
1122 | *=*) |
1123 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1124 | # Reject names that are not valid shell variable names. | |
1125 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
66e941e8 | 1126 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1127 | { (exit 1); exit 1; }; } |
7a197a62 | 1128 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1129 | export $ac_envvar ;; |
1130 | ||
795ca3e5 | 1131 | *) |
ad6254c5 | 1132 | # FIXME: should be removed in autoconf 3.0. |
66e941e8 | 1133 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1134 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
66e941e8 | 1135 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1136 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1137 | ;; |
1138 | ||
1139 | esac | |
1140 | done | |
1141 | ||
1142 | if test -n "$ac_prev"; then | |
ad6254c5 | 1143 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
66e941e8 | 1144 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1145 | { (exit 1); exit 1; }; } |
795ca3e5 | 1146 | fi |
795ca3e5 | 1147 | |
7a197a62 AK |
1148 | # Be sure to have absolute directory names. |
1149 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1150 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1151 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1152 | libdir localedir mandir | |
795ca3e5 | 1153 | do |
7a197a62 | 1154 | eval ac_val=\$$ac_var |
ad6254c5 | 1155 | case $ac_val in |
7a197a62 AK |
1156 | [\\/$]* | ?:[\\/]* ) continue;; |
1157 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1158 | esac |
66e941e8 | 1159 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1160 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1161 | done |
1162 | ||
ad6254c5 AK |
1163 | # There might be people who depend on the old broken behavior: `$host' |
1164 | # used to hold the argument of --host etc. | |
1165 | # FIXME: To remove some day. | |
1166 | build=$build_alias | |
1167 | host=$host_alias | |
1168 | target=$target_alias | |
1169 | ||
1170 | # FIXME: To remove some day. | |
1171 | if test "x$host_alias" != x; then | |
1172 | if test "x$build_alias" = x; then | |
1173 | cross_compiling=maybe | |
66e941e8 | 1174 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1175 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1176 | elif test "x$build_alias" != "x$host_alias"; then | |
1177 | cross_compiling=yes | |
1178 | fi | |
1179 | fi | |
8106cdd5 | 1180 | |
ad6254c5 AK |
1181 | ac_tool_prefix= |
1182 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1183 | ||
1184 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1185 | |
795ca3e5 | 1186 | |
7a197a62 AK |
1187 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1188 | ac_ls_di=`ls -di .` && | |
1189 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
66e941e8 | 1190 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1191 | { (exit 1); exit 1; }; } |
1192 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
66e941e8 | 1193 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1194 | { (exit 1); exit 1; }; } |
1195 | ||
1196 | ||
795ca3e5 AK |
1197 | # Find the source files, if location was not specified. |
1198 | if test -z "$srcdir"; then | |
1199 | ac_srcdir_defaulted=yes | |
7a197a62 AK |
1200 | # Try the directory containing this script, then the parent directory. |
1201 | ac_confdir=`$as_dirname -- "$0" || | |
ad6254c5 | 1202 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
1203 | X"$0" : 'X\(//\)[^/]' \| \ |
1204 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 1205 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
66e941e8 | 1206 | $as_echo X"$0" | |
7a197a62 AK |
1207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1208 | s//\1/ | |
1209 | q | |
1210 | } | |
1211 | /^X\(\/\/\)[^/].*/{ | |
1212 | s//\1/ | |
1213 | q | |
1214 | } | |
1215 | /^X\(\/\/\)$/{ | |
1216 | s//\1/ | |
1217 | q | |
1218 | } | |
1219 | /^X\(\/\).*/{ | |
1220 | s//\1/ | |
1221 | q | |
1222 | } | |
1223 | s/.*/./; q'` | |
795ca3e5 | 1224 | srcdir=$ac_confdir |
7a197a62 | 1225 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1226 | srcdir=.. |
1227 | fi | |
1228 | else | |
1229 | ac_srcdir_defaulted=no | |
1230 | fi | |
7a197a62 AK |
1231 | if test ! -r "$srcdir/$ac_unique_file"; then |
1232 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
66e941e8 | 1233 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1234 | { (exit 1); exit 1; }; } |
795ca3e5 | 1235 | fi |
7a197a62 AK |
1236 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1237 | ac_abs_confdir=`( | |
66e941e8 | 1238 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1239 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1240 | pwd)` |
1241 | # When building in place, set srcdir=. | |
1242 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1243 | srcdir=. | |
1244 | fi | |
1245 | # Remove unnecessary trailing slashes from srcdir. | |
1246 | # Double slashes in file names in object file debugging info | |
1247 | # mess up M-x gdb in Emacs. | |
1248 | case $srcdir in | |
1249 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1250 | esac | |
1251 | for ac_var in $ac_precious_vars; do | |
1252 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1253 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1254 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1255 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1256 | done | |
ad6254c5 AK |
1257 | |
1258 | # | |
1259 | # Report the --help message. | |
1260 | # | |
1261 | if test "$ac_init_help" = "long"; then | |
1262 | # Omit some internal or obsolete options to make the list less imposing. | |
1263 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1264 | cat <<_ACEOF | |
1265 | \`configure' configures this package to adapt to many kinds of systems. | |
1266 | ||
1267 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1268 | ||
1269 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1270 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1271 | ||
1272 | Defaults for the options are specified in brackets. | |
1273 | ||
1274 | Configuration: | |
1275 | -h, --help display this help and exit | |
1276 | --help=short display options specific to this package | |
1277 | --help=recursive display the short help of all the included packages | |
1278 | -V, --version display version information and exit | |
1279 | -q, --quiet, --silent do not print \`checking...' messages | |
1280 | --cache-file=FILE cache test results in FILE [disabled] | |
1281 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1282 | -n, --no-create do not create output files | |
1283 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1284 | ||
ad6254c5 AK |
1285 | Installation directories: |
1286 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 1287 | [$ac_default_prefix] |
ad6254c5 | 1288 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 1289 | [PREFIX] |
ad6254c5 AK |
1290 | |
1291 | By default, \`make install' will install all the files in | |
1292 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1293 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1294 | for instance \`--prefix=\$HOME'. | |
1295 | ||
1296 | For better control, use the options below. | |
1297 | ||
1298 | Fine tuning of the installation directories: | |
1299 | --bindir=DIR user executables [EPREFIX/bin] | |
1300 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1301 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ad6254c5 AK |
1302 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1303 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1304 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1305 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1306 | --includedir=DIR C header files [PREFIX/include] | |
1307 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7a197a62 AK |
1308 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1309 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1310 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1311 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1312 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1313 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1314 | --htmldir=DIR html documentation [DOCDIR] | |
1315 | --dvidir=DIR dvi documentation [DOCDIR] | |
1316 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1317 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1318 | _ACEOF |
1319 | ||
1320 | cat <<\_ACEOF | |
1321 | ||
1322 | System types: | |
1323 | --build=BUILD configure for building on BUILD [guessed] | |
1324 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1325 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1326 | _ACEOF | |
1327 | fi | |
1328 | ||
1329 | if test -n "$ac_init_help"; then | |
1330 | ||
1331 | cat <<\_ACEOF | |
1332 | ||
1333 | Optional Features: | |
1334 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1335 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1336 | --enable-jobs=NUM Number of jobs to run simultaneously | |
1337 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
1338 | device-mapper is missing from the kernel | |
1339 | --enable-static_link Use this to link the tools to their libraries | |
1340 | statically. Default is dynamic linking | |
1341 | --enable-readline Enable readline support | |
1342 | --disable-selinux Disable selinux support | |
3d978351 | 1343 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
1344 | --enable-debug Enable debugging |
1345 | --disable-devmapper Disable device-mapper interaction | |
1346 | --disable-o_direct Disable O_DIRECT | |
1347 | --enable-cmdlib Build shared command library | |
1348 | --enable-fsadm Enable fsadm | |
15d91f5a | 1349 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
1350 | --enable-nls Enable Native Language Support |
1351 | ||
1352 | Optional Packages: | |
1353 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1354 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1355 | --with-user=USER Set the owner of installed files | |
1356 | --with-group=GROUP Set the group owner of installed files | |
1357 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
1358 | TYPE=internal | |
1359 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1360 | TYPE=internal | |
1361 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1362 | TYPE=internal | |
1363 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1364 | TYPE=internal | |
1365 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1366 | TYPE=internal | |
5c7fc7c4 | 1367 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1368 | TYPE=none |
ad6254c5 AK |
1369 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
1370 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
1371 | --with-confdir=DIR Configuration files in DIR /etc | |
1372 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1373 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1374 | |
1375 | Some influential environment variables: | |
1376 | CC C compiler command | |
1377 | CFLAGS C compiler flags | |
1378 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1379 | nonstandard directory <lib dir> | |
7a197a62 AK |
1380 | LIBS libraries to pass to the linker, e.g. -l<library> |
1381 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1382 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1383 | CPP C preprocessor |
1384 | ||
1385 | Use these variables to override the choices made by `configure' or to help | |
1386 | it to find libraries and programs with nonstandard names/locations. | |
1387 | ||
1388 | _ACEOF | |
7a197a62 | 1389 | ac_status=$? |
ad6254c5 AK |
1390 | fi |
1391 | ||
1392 | if test "$ac_init_help" = "recursive"; then | |
1393 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1394 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7a197a62 | 1395 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1396 | ac_builddir=. |
1397 | ||
7a197a62 AK |
1398 | case "$ac_dir" in |
1399 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1400 | *) | |
66e941e8 | 1401 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1402 | # A ".." for each directory in $ac_dir_suffix. |
66e941e8 | 1403 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1404 | case $ac_top_builddir_sub in |
1405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1407 | esac ;; | |
1408 | esac | |
1409 | ac_abs_top_builddir=$ac_pwd | |
1410 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1411 | # for backward compatibility: | |
1412 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1413 | |
1414 | case $srcdir in | |
7a197a62 | 1415 | .) # We are building in place. |
ad6254c5 | 1416 | ac_srcdir=. |
7a197a62 AK |
1417 | ac_top_srcdir=$ac_top_builddir_sub |
1418 | ac_abs_top_srcdir=$ac_pwd ;; | |
1419 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1420 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1421 | ac_top_srcdir=$srcdir |
1422 | ac_abs_top_srcdir=$srcdir ;; | |
1423 | *) # Relative name. | |
1424 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1425 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1426 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1427 | esac |
7a197a62 AK |
1428 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1429 | ||
1430 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1431 | # Check for guested configure. | |
1432 | if test -f "$ac_srcdir/configure.gnu"; then | |
1433 | echo && | |
1434 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1435 | elif test -f "$ac_srcdir/configure"; then | |
1436 | echo && | |
1437 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1438 | else |
66e941e8 | 1439 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1440 | fi || ac_status=$? |
1441 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1442 | done |
1443 | fi | |
1444 | ||
7a197a62 | 1445 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1446 | if $ac_init_version; then |
1447 | cat <<\_ACEOF | |
7a197a62 | 1448 | configure |
66e941e8 | 1449 | generated by GNU Autoconf 2.61a |
ad6254c5 | 1450 | |
7a197a62 AK |
1451 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1452 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ad6254c5 AK |
1453 | This configure script is free software; the Free Software Foundation |
1454 | gives unlimited permission to copy, distribute and modify it. | |
1455 | _ACEOF | |
7a197a62 | 1456 | exit |
ad6254c5 | 1457 | fi |
7a197a62 | 1458 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1459 | This file contains any messages produced by compilers while |
1460 | running configure, to aid debugging if configure makes a mistake. | |
1461 | ||
1462 | It was created by $as_me, which was | |
66e941e8 | 1463 | generated by GNU Autoconf 2.61a. Invocation command line was |
ad6254c5 AK |
1464 | |
1465 | $ $0 $@ | |
1466 | ||
1467 | _ACEOF | |
7a197a62 | 1468 | exec 5>>config.log |
ad6254c5 AK |
1469 | { |
1470 | cat <<_ASUNAME | |
1471 | ## --------- ## | |
1472 | ## Platform. ## | |
1473 | ## --------- ## | |
1474 | ||
1475 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1476 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1477 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1478 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1479 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1480 | ||
1481 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1482 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1483 | ||
1484 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1485 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1486 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1487 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1488 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1489 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1490 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1491 | ||
1492 | _ASUNAME | |
1493 | ||
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1495 | for as_dir in $PATH | |
1496 | do | |
1497 | IFS=$as_save_IFS | |
1498 | test -z "$as_dir" && as_dir=. | |
66e941e8 | 1499 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1500 | done |
7a197a62 | 1501 | IFS=$as_save_IFS |
ad6254c5 AK |
1502 | |
1503 | } >&5 | |
1504 | ||
1505 | cat >&5 <<_ACEOF | |
1506 | ||
1507 | ||
1508 | ## ----------- ## | |
1509 | ## Core tests. ## | |
1510 | ## ----------- ## | |
1511 | ||
1512 | _ACEOF | |
1513 | ||
1514 | ||
1515 | # Keep a trace of the command line. | |
1516 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1517 | # Strip out --silent because we don't want to record it for future runs. | |
1518 | # Also quote any args containing shell meta-characters. | |
1519 | # Make two passes to allow for proper duplicate-argument suppression. | |
1520 | ac_configure_args= | |
1521 | ac_configure_args0= | |
1522 | ac_configure_args1= | |
ad6254c5 AK |
1523 | ac_must_keep_next=false |
1524 | for ac_pass in 1 2 | |
1525 | do | |
1526 | for ac_arg | |
1527 | do | |
1528 | case $ac_arg in | |
1529 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1530 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1531 | | -silent | --silent | --silen | --sile | --sil) | |
1532 | continue ;; | |
7a197a62 | 1533 | *\'*) |
66e941e8 | 1534 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1535 | esac |
1536 | case $ac_pass in | |
1537 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1538 | 2) | |
1539 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1540 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1541 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1542 | else |
8a2fc586 AK |
1543 | case $ac_arg in |
1544 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1545 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1546 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1547 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1548 | case "$ac_configure_args0 " in | |
1549 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1550 | esac | |
1551 | ;; | |
1552 | -* ) ac_must_keep_next=true ;; | |
1553 | esac | |
ad6254c5 | 1554 | fi |
7a197a62 | 1555 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1556 | ;; |
1557 | esac | |
1558 | done | |
1559 | done | |
1560 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1561 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1562 | ||
1563 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1564 | # config.log. We remove comments because anyway the quotes in there | |
1565 | # would cause problems or look ugly. | |
7a197a62 AK |
1566 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1567 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1568 | trap 'exit_status=$? |
1569 | # Save into config.log some information that might help in debugging. | |
1570 | { | |
1571 | echo | |
1572 | ||
1573 | cat <<\_ASBOX | |
1574 | ## ---------------- ## | |
1575 | ## Cache variables. ## | |
1576 | ## ---------------- ## | |
1577 | _ASBOX | |
1578 | echo | |
1579 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1580 | ( |
1581 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1582 | eval ac_val=\$$ac_var | |
1583 | case $ac_val in #( | |
1584 | *${as_nl}*) | |
1585 | case $ac_var in #( | |
66e941e8 JM |
1586 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1587 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1588 | esac |
1589 | case $ac_var in #( | |
1590 | _ | IFS | as_nl) ;; #( | |
66e941e8 | 1591 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1592 | *) $as_unset $ac_var ;; |
1593 | esac ;; | |
1594 | esac | |
1595 | done | |
ad6254c5 | 1596 | (set) 2>&1 | |
7a197a62 AK |
1597 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1598 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1599 | sed -n \ |
7a197a62 AK |
1600 | "s/'\''/'\''\\\\'\'''\''/g; |
1601 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1602 | ;; #( | |
ad6254c5 | 1603 | *) |
7a197a62 | 1604 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1605 | ;; |
7a197a62 AK |
1606 | esac | |
1607 | sort | |
1608 | ) | |
ad6254c5 AK |
1609 | echo |
1610 | ||
1611 | cat <<\_ASBOX | |
1612 | ## ----------------- ## | |
1613 | ## Output variables. ## | |
1614 | ## ----------------- ## | |
1615 | _ASBOX | |
1616 | echo | |
1617 | for ac_var in $ac_subst_vars | |
1618 | do | |
7a197a62 AK |
1619 | eval ac_val=\$$ac_var |
1620 | case $ac_val in | |
66e941e8 | 1621 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1622 | esac |
66e941e8 | 1623 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1624 | done | sort |
1625 | echo | |
1626 | ||
1627 | if test -n "$ac_subst_files"; then | |
1628 | cat <<\_ASBOX | |
7a197a62 AK |
1629 | ## ------------------- ## |
1630 | ## File substitutions. ## | |
1631 | ## ------------------- ## | |
ad6254c5 AK |
1632 | _ASBOX |
1633 | echo | |
1634 | for ac_var in $ac_subst_files | |
1635 | do | |
7a197a62 AK |
1636 | eval ac_val=\$$ac_var |
1637 | case $ac_val in | |
66e941e8 | 1638 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1639 | esac |
66e941e8 | 1640 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1641 | done | sort |
1642 | echo | |
1643 | fi | |
1644 | ||
1645 | if test -s confdefs.h; then | |
1646 | cat <<\_ASBOX | |
1647 | ## ----------- ## | |
1648 | ## confdefs.h. ## | |
1649 | ## ----------- ## | |
1650 | _ASBOX | |
1651 | echo | |
7a197a62 | 1652 | cat confdefs.h |
ad6254c5 AK |
1653 | echo |
1654 | fi | |
1655 | test "$ac_signal" != 0 && | |
66e941e8 JM |
1656 | $as_echo "$as_me: caught signal $ac_signal" |
1657 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1658 | } >&5 |
7a197a62 AK |
1659 | rm -f core *.core core.conftest.* && |
1660 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1661 | exit $exit_status |
7a197a62 | 1662 | ' 0 |
ad6254c5 AK |
1663 | for ac_signal in 1 2 13 15; do |
1664 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1665 | done | |
1666 | ac_signal=0 | |
1667 | ||
1668 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1669 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1670 | |
1671 | # Predefined preprocessor variables. | |
1672 | ||
1673 | cat >>confdefs.h <<_ACEOF | |
1674 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1675 | _ACEOF | |
1676 | ||
1677 | ||
1678 | cat >>confdefs.h <<_ACEOF | |
1679 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1680 | _ACEOF | |
1681 | ||
1682 | ||
1683 | cat >>confdefs.h <<_ACEOF | |
1684 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1685 | _ACEOF | |
8106cdd5 | 1686 | |
ad6254c5 AK |
1687 | |
1688 | cat >>confdefs.h <<_ACEOF | |
1689 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1690 | _ACEOF | |
1691 | ||
1692 | ||
1693 | cat >>confdefs.h <<_ACEOF | |
1694 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1695 | _ACEOF | |
1696 | ||
1697 | ||
1698 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 | 1699 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 AK |
1700 | if test -n "$CONFIG_SITE"; then |
1701 | set x "$CONFIG_SITE" | |
1702 | elif test "x$prefix" != xNONE; then | |
1703 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1704 | else | |
1705 | set x "$ac_default_prefix/share/config.site" \ | |
1706 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1707 | fi |
7a197a62 AK |
1708 | shift |
1709 | for ac_site_file | |
1710 | do | |
795ca3e5 | 1711 | if test -r "$ac_site_file"; then |
66e941e8 JM |
1712 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1713 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1714 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1715 | . "$ac_site_file" |
1716 | fi | |
1717 | done | |
1718 | ||
1719 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1720 | # Some versions of bash will fail to source /dev/null (special |
1721 | # files actually), so we avoid doing that. | |
1722 | if test -f "$cache_file"; then | |
66e941e8 JM |
1723 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1724 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1725 | case $cache_file in |
7a197a62 AK |
1726 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1727 | *) . "./$cache_file";; | |
ad6254c5 AK |
1728 | esac |
1729 | fi | |
795ca3e5 | 1730 | else |
66e941e8 JM |
1731 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1732 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1733 | >$cache_file |
1734 | fi | |
1735 | ||
1736 | # Check that the precious variables saved in the cache have kept the same | |
1737 | # value. | |
1738 | ac_cache_corrupted=false | |
7a197a62 | 1739 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1740 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1741 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1742 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1743 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1744 | case $ac_old_set,$ac_new_set in |
1745 | set,) | |
66e941e8 JM |
1746 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1747 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1748 | ac_cache_corrupted=: ;; |
1749 | ,set) | |
66e941e8 JM |
1750 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1751 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1752 | ac_cache_corrupted=: ;; |
1753 | ,);; | |
1754 | *) | |
1755 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
66e941e8 JM |
1756 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1757 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1758 | { $as_echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1759 | $as_echo "$as_me: former value: $ac_old_val" >&2;} | |
1760 | { $as_echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1761 | $as_echo "$as_me: current value: $ac_new_val" >&2;} | |
8a2fc586 | 1762 | ac_cache_corrupted=: |
ad6254c5 AK |
1763 | fi;; |
1764 | esac | |
1765 | # Pass precious variables to config.status. | |
1766 | if test "$ac_new_set" = set; then | |
1767 | case $ac_new_val in | |
66e941e8 | 1768 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1769 | *) ac_arg=$ac_var=$ac_new_val ;; |
1770 | esac | |
1771 | case " $ac_configure_args " in | |
1772 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1773 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1774 | esac | |
1775 | fi | |
1776 | done | |
1777 | if $ac_cache_corrupted; then | |
66e941e8 JM |
1778 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1779 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1780 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1781 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1782 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1783 | fi |
1784 | ||
ad6254c5 AK |
1785 | |
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
7a197a62 AK |
1801 | ac_ext=c |
1802 | ac_cpp='$CPP $CPPFLAGS' | |
1803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1806 | |
795ca3e5 AK |
1807 | |
1808 | ||
1809 | ||
72b2cb61 | 1810 | ################################################################################ |
7a197a62 | 1811 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1812 | |
1813 | ||
80992638 | 1814 | ################################################################################ |
795ca3e5 | 1815 | ac_aux_dir= |
7a197a62 AK |
1816 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1817 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1818 | ac_aux_dir=$ac_dir |
1819 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1820 | break | |
7a197a62 | 1821 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1822 | ac_aux_dir=$ac_dir |
1823 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1824 | break | |
7a197a62 | 1825 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1826 | ac_aux_dir=$ac_dir |
1827 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1828 | break | |
795ca3e5 AK |
1829 | fi |
1830 | done | |
1831 | if test -z "$ac_aux_dir"; then | |
66e941e8 JM |
1832 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1833 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1834 | { (exit 1); exit 1; }; } |
795ca3e5 | 1835 | fi |
7a197a62 AK |
1836 | |
1837 | # These three variables are undocumented and unsupported, | |
1838 | # and are intended to be withdrawn in a future Autoconf release. | |
1839 | # They can cause serious problems if a builder's source tree is in a directory | |
1840 | # whose full name contains unusual characters. | |
1841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1843 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1844 | ||
8ce0cbda AK |
1845 | |
1846 | ||
ad6254c5 | 1847 | ################################################################################ |
8ce0cbda | 1848 | # Make sure we can run config.sub. |
7a197a62 | 1849 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
66e941e8 JM |
1850 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1851 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1852 | { (exit 1); exit 1; }; } |
1853 | ||
66e941e8 JM |
1854 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
1855 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 1856 | if test "${ac_cv_build+set}" = set; then |
66e941e8 | 1857 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1858 | else |
7a197a62 AK |
1859 | ac_build_alias=$build_alias |
1860 | test "x$ac_build_alias" = x && | |
1861 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1862 | test "x$ac_build_alias" = x && | |
66e941e8 JM |
1863 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1864 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1865 | { (exit 1); exit 1; }; } |
7a197a62 | 1866 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
66e941e8 JM |
1867 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1868 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1869 | { (exit 1); exit 1; }; } |
1870 | ||
1871 | fi | |
66e941e8 JM |
1872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1873 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
1874 | case $ac_cv_build in |
1875 | *-*-*) ;; | |
66e941e8 JM |
1876 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1877 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1878 | { (exit 1); exit 1; }; };; |
1879 | esac | |
ad6254c5 | 1880 | build=$ac_cv_build |
7a197a62 AK |
1881 | ac_save_IFS=$IFS; IFS='-' |
1882 | set x $ac_cv_build | |
1883 | shift | |
1884 | build_cpu=$1 | |
1885 | build_vendor=$2 | |
1886 | shift; shift | |
1887 | # Remember, the first character of IFS is used to create $*, | |
1888 | # except with old shells: | |
1889 | build_os=$* | |
1890 | IFS=$ac_save_IFS | |
1891 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1892 | |
1893 | ||
66e941e8 JM |
1894 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
1895 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 1896 | if test "${ac_cv_host+set}" = set; then |
66e941e8 | 1897 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1898 | else |
7a197a62 AK |
1899 | if test "x$host_alias" = x; then |
1900 | ac_cv_host=$ac_cv_build | |
1901 | else | |
1902 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
66e941e8 JM |
1903 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1904 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1905 | { (exit 1); exit 1; }; } |
7a197a62 | 1906 | fi |
ad6254c5 AK |
1907 | |
1908 | fi | |
66e941e8 JM |
1909 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1910 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
1911 | case $ac_cv_host in |
1912 | *-*-*) ;; | |
66e941e8 JM |
1913 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1914 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1915 | { (exit 1); exit 1; }; };; |
1916 | esac | |
ad6254c5 | 1917 | host=$ac_cv_host |
7a197a62 AK |
1918 | ac_save_IFS=$IFS; IFS='-' |
1919 | set x $ac_cv_host | |
1920 | shift | |
1921 | host_cpu=$1 | |
1922 | host_vendor=$2 | |
1923 | shift; shift | |
1924 | # Remember, the first character of IFS is used to create $*, | |
1925 | # except with old shells: | |
1926 | host_os=$* | |
1927 | IFS=$ac_save_IFS | |
1928 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1929 | |
1930 | ||
66e941e8 JM |
1931 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
1932 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 1933 | if test "${ac_cv_target+set}" = set; then |
66e941e8 | 1934 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1935 | else |
7a197a62 AK |
1936 | if test "x$target_alias" = x; then |
1937 | ac_cv_target=$ac_cv_host | |
1938 | else | |
1939 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
66e941e8 JM |
1940 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1941 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1942 | { (exit 1); exit 1; }; } |
7a197a62 | 1943 | fi |
8ce0cbda | 1944 | |
ad6254c5 | 1945 | fi |
66e941e8 JM |
1946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1947 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
1948 | case $ac_cv_target in |
1949 | *-*-*) ;; | |
66e941e8 JM |
1950 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1951 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1952 | { (exit 1); exit 1; }; };; |
1953 | esac | |
ad6254c5 | 1954 | target=$ac_cv_target |
7a197a62 AK |
1955 | ac_save_IFS=$IFS; IFS='-' |
1956 | set x $ac_cv_target | |
1957 | shift | |
1958 | target_cpu=$1 | |
1959 | target_vendor=$2 | |
1960 | shift; shift | |
1961 | # Remember, the first character of IFS is used to create $*, | |
1962 | # except with old shells: | |
1963 | target_os=$* | |
1964 | IFS=$ac_save_IFS | |
1965 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1966 | |
8ce0cbda | 1967 | |
ad6254c5 AK |
1968 | # The aliases save the names the user supplied, while $host etc. |
1969 | # will get canonicalized. | |
1970 | test -n "$target_alias" && | |
8ce0cbda AK |
1971 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1972 | NONENONEs,x,x, && | |
1973 | program_prefix=${target_alias}- | |
1974 | ||
8ce0cbda AK |
1975 | case "$host_os" in |
1976 | linux*) | |
1977 | CFLAGS="$CFLAGS" | |
1978 | COPTIMISE_FLAG="-O2" | |
1979 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1980 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1981 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1982 | LDDEPS="$LDDEPS .export.sym" | |
1983 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1984 | LIB_SUFFIX="so" |
8ce0cbda AK |
1985 | DEVMAPPER=yes |
1986 | ODIRECT=yes | |
1987 | SELINUX=yes | |
8b1a3214 | 1988 | REALTIME=yes |
8ce0cbda AK |
1989 | CLUSTER=internal |
1990 | FSADM=no ;; | |
1991 | darwin*) | |
1992 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1993 | COPTIMISE_FLAG="-O2" | |
1994 | CLDFLAGS="$CLDFLAGS" | |
1995 | CLDWHOLEARCHIVE="-all_load" | |
1996 | CLDNOWHOLEARCHIVE= | |
1997 | LDDEPS="$LDDEPS" | |
1998 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1999 | LIB_SUFFIX="dylib" |
a653923f | 2000 | DEVMAPPER=yes |
8ce0cbda AK |
2001 | ODIRECT=no |
2002 | SELINUX=no | |
8b1a3214 | 2003 | REALTIME=no |
8ce0cbda AK |
2004 | CLUSTER=none |
2005 | FSADM=no ;; | |
2006 | esac | |
2007 | ||
80992638 | 2008 | ################################################################################ |
ad6254c5 | 2009 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2010 | do |
ad6254c5 | 2011 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2012 | set dummy $ac_prog; ac_word=$2 |
66e941e8 JM |
2013 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2014 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2015 | if test "${ac_cv_prog_AWK+set}" = set; then |
66e941e8 | 2016 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2017 | else |
2018 | if test -n "$AWK"; then | |
2019 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2020 | else | |
ad6254c5 AK |
2021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2022 | for as_dir in $PATH | |
2023 | do | |
2024 | IFS=$as_save_IFS | |
2025 | test -z "$as_dir" && as_dir=. | |
2026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2028 | ac_cv_prog_AWK="$ac_prog" |
66e941e8 | 2029 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2030 | break 2 |
2031 | fi | |
2032 | done | |
2033 | done | |
7a197a62 | 2034 | IFS=$as_save_IFS |
ad6254c5 | 2035 | |
795ca3e5 AK |
2036 | fi |
2037 | fi | |
ad6254c5 | 2038 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2039 | if test -n "$AWK"; then |
66e941e8 JM |
2040 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2041 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2042 | else |
66e941e8 JM |
2043 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2044 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2045 | fi |
2046 | ||
7a197a62 | 2047 | |
ad6254c5 AK |
2048 | test -n "$AWK" && break |
2049 | done | |
2050 | ||
2051 | ac_ext=c | |
2052 | ac_cpp='$CPP $CPPFLAGS' | |
2053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2056 | if test -n "$ac_tool_prefix"; then | |
2057 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2058 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
66e941e8 JM |
2059 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2060 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2061 | if test "${ac_cv_prog_CC+set}" = set; then |
66e941e8 | 2062 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2063 | else |
2064 | if test -n "$CC"; then | |
2065 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2066 | else | |
2067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2068 | for as_dir in $PATH | |
2069 | do | |
2070 | IFS=$as_save_IFS | |
2071 | test -z "$as_dir" && as_dir=. | |
2072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2074 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
66e941e8 | 2075 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2076 | break 2 |
2077 | fi | |
2078 | done | |
8106cdd5 | 2079 | done |
7a197a62 | 2080 | IFS=$as_save_IFS |
8106cdd5 | 2081 | |
ad6254c5 AK |
2082 | fi |
2083 | fi | |
2084 | CC=$ac_cv_prog_CC | |
2085 | if test -n "$CC"; then | |
66e941e8 JM |
2086 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2087 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2088 | else |
66e941e8 JM |
2089 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2090 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2091 | fi |
2092 | ||
7a197a62 | 2093 | |
ad6254c5 AK |
2094 | fi |
2095 | if test -z "$ac_cv_prog_CC"; then | |
2096 | ac_ct_CC=$CC | |
2097 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2098 | set dummy gcc; ac_word=$2 |
66e941e8 JM |
2099 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2100 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2101 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
66e941e8 | 2102 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2103 | else |
2104 | if test -n "$ac_ct_CC"; then | |
2105 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2106 | else | |
2107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2108 | for as_dir in $PATH | |
2109 | do | |
2110 | IFS=$as_save_IFS | |
2111 | test -z "$as_dir" && as_dir=. | |
2112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2114 | ac_cv_prog_ac_ct_CC="gcc" |
66e941e8 | 2115 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2116 | break 2 |
2117 | fi | |
2118 | done | |
2119 | done | |
7a197a62 | 2120 | IFS=$as_save_IFS |
ad6254c5 AK |
2121 | |
2122 | fi | |
2123 | fi | |
2124 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2125 | if test -n "$ac_ct_CC"; then | |
66e941e8 JM |
2126 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2127 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2128 | else |
66e941e8 JM |
2129 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2130 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2131 | fi |
2132 | ||
7a197a62 AK |
2133 | if test "x$ac_ct_CC" = x; then |
2134 | CC="" | |
2135 | else | |
2136 | case $cross_compiling:$ac_tool_warned in | |
2137 | yes:) | |
66e941e8 | 2138 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2139 | whose name does not start with the host triplet. If you think this |
2140 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
66e941e8 | 2141 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2142 | whose name does not start with the host triplet. If you think this |
2143 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2144 | ac_tool_warned=yes ;; | |
2145 | esac | |
2146 | CC=$ac_ct_CC | |
2147 | fi | |
ad6254c5 AK |
2148 | else |
2149 | CC="$ac_cv_prog_CC" | |
2150 | fi | |
2151 | ||
2152 | if test -z "$CC"; then | |
7a197a62 AK |
2153 | if test -n "$ac_tool_prefix"; then |
2154 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2155 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
66e941e8 JM |
2156 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2157 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2158 | if test "${ac_cv_prog_CC+set}" = set; then |
66e941e8 | 2159 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2160 | else |
2161 | if test -n "$CC"; then | |
2162 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2163 | else | |
ad6254c5 AK |
2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2165 | for as_dir in $PATH | |
2166 | do | |
2167 | IFS=$as_save_IFS | |
2168 | test -z "$as_dir" && as_dir=. | |
2169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2171 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
66e941e8 | 2172 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2173 | break 2 |
2174 | fi | |
2175 | done | |
2176 | done | |
7a197a62 | 2177 | IFS=$as_save_IFS |
ad6254c5 | 2178 | |
8106cdd5 AK |
2179 | fi |
2180 | fi | |
ad6254c5 | 2181 | CC=$ac_cv_prog_CC |
8106cdd5 | 2182 | if test -n "$CC"; then |
66e941e8 JM |
2183 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2184 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2185 | else |
66e941e8 JM |
2186 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2187 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2188 | fi |
2189 | ||
8106cdd5 | 2190 | |
7a197a62 | 2191 | fi |
ad6254c5 | 2192 | fi |
795ca3e5 AK |
2193 | if test -z "$CC"; then |
2194 | # Extract the first word of "cc", so it can be a program name with args. | |
2195 | set dummy cc; ac_word=$2 | |
66e941e8 JM |
2196 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2197 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2198 | if test "${ac_cv_prog_CC+set}" = set; then |
66e941e8 | 2199 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2200 | else |
2201 | if test -n "$CC"; then | |
2202 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2203 | else | |
795ca3e5 | 2204 | ac_prog_rejected=no |
ad6254c5 AK |
2205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2206 | for as_dir in $PATH | |
2207 | do | |
2208 | IFS=$as_save_IFS | |
2209 | test -z "$as_dir" && as_dir=. | |
2210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2212 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2213 | ac_prog_rejected=yes | |
2214 | continue | |
2215 | fi | |
2216 | ac_cv_prog_CC="cc" | |
66e941e8 | 2217 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2218 | break 2 |
2219 | fi | |
2220 | done | |
2221 | done | |
7a197a62 | 2222 | IFS=$as_save_IFS |
ad6254c5 | 2223 | |
795ca3e5 AK |
2224 | if test $ac_prog_rejected = yes; then |
2225 | # We found a bogon in the path, so make sure we never use it. | |
2226 | set dummy $ac_cv_prog_CC | |
2227 | shift | |
ad6254c5 | 2228 | if test $# != 0; then |
795ca3e5 AK |
2229 | # We chose a different compiler from the bogus one. |
2230 | # However, it has the same basename, so the bogon will be chosen | |
2231 | # first if we set CC to just the basename; use the full file name. | |
2232 | shift | |
ad6254c5 | 2233 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2234 | fi |
2235 | fi | |
2236 | fi | |
2237 | fi | |
ad6254c5 | 2238 | CC=$ac_cv_prog_CC |
795ca3e5 | 2239 | if test -n "$CC"; then |
66e941e8 JM |
2240 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2241 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2242 | else |
66e941e8 JM |
2243 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2244 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2245 | fi |
2246 | ||
7a197a62 | 2247 | |
ad6254c5 AK |
2248 | fi |
2249 | if test -z "$CC"; then | |
2250 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2251 | for ac_prog in cl.exe |
ad6254c5 AK |
2252 | do |
2253 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2254 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
66e941e8 JM |
2255 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2256 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2257 | if test "${ac_cv_prog_CC+set}" = set; then |
66e941e8 | 2258 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2259 | else |
2260 | if test -n "$CC"; then | |
2261 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2262 | else | |
ad6254c5 AK |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2264 | for as_dir in $PATH | |
2265 | do | |
2266 | IFS=$as_save_IFS | |
2267 | test -z "$as_dir" && as_dir=. | |
2268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2270 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
66e941e8 | 2271 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2272 | break 2 |
2273 | fi | |
2274 | done | |
2275 | done | |
7a197a62 | 2276 | IFS=$as_save_IFS |
ad6254c5 | 2277 | |
795ca3e5 AK |
2278 | fi |
2279 | fi | |
ad6254c5 | 2280 | CC=$ac_cv_prog_CC |
795ca3e5 | 2281 | if test -n "$CC"; then |
66e941e8 JM |
2282 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2283 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2284 | else |
66e941e8 JM |
2285 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2286 | $as_echo "no" >&6; } | |
795ca3e5 | 2287 | fi |
ad6254c5 | 2288 | |
7a197a62 | 2289 | |
ad6254c5 AK |
2290 | test -n "$CC" && break |
2291 | done | |
2292 | fi | |
2293 | if test -z "$CC"; then | |
2294 | ac_ct_CC=$CC | |
7a197a62 | 2295 | for ac_prog in cl.exe |
ad6254c5 AK |
2296 | do |
2297 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2298 | set dummy $ac_prog; ac_word=$2 | |
66e941e8 JM |
2299 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2300 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
66e941e8 | 2302 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2303 | else |
2304 | if test -n "$ac_ct_CC"; then | |
2305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2306 | else | |
2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2308 | for as_dir in $PATH | |
2309 | do | |
2310 | IFS=$as_save_IFS | |
2311 | test -z "$as_dir" && as_dir=. | |
2312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 2313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2314 | ac_cv_prog_ac_ct_CC="$ac_prog" |
66e941e8 | 2315 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2316 | break 2 |
795ca3e5 | 2317 | fi |
ad6254c5 AK |
2318 | done |
2319 | done | |
7a197a62 | 2320 | IFS=$as_save_IFS |
ad6254c5 AK |
2321 | |
2322 | fi | |
2323 | fi | |
2324 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2325 | if test -n "$ac_ct_CC"; then | |
66e941e8 JM |
2326 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2327 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2328 | else |
66e941e8 JM |
2329 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2330 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2331 | fi |
2332 | ||
7a197a62 | 2333 | |
ad6254c5 AK |
2334 | test -n "$ac_ct_CC" && break |
2335 | done | |
795ca3e5 | 2336 | |
7a197a62 AK |
2337 | if test "x$ac_ct_CC" = x; then |
2338 | CC="" | |
2339 | else | |
2340 | case $cross_compiling:$ac_tool_warned in | |
2341 | yes:) | |
66e941e8 | 2342 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2343 | whose name does not start with the host triplet. If you think this |
2344 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
66e941e8 | 2345 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2346 | whose name does not start with the host triplet. If you think this |
2347 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2348 | ac_tool_warned=yes ;; | |
2349 | esac | |
2350 | CC=$ac_ct_CC | |
2351 | fi | |
ad6254c5 AK |
2352 | fi |
2353 | ||
2354 | fi | |
2355 | ||
2356 | ||
66e941e8 | 2357 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2358 | See \`config.log' for more details." >&5 |
66e941e8 | 2359 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2360 | See \`config.log' for more details." >&2;} |
2361 | { (exit 1); exit 1; }; } | |
2362 | ||
2363 | # Provide some information about the compiler. | |
66e941e8 JM |
2364 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2365 | set X $ac_compile | |
2366 | ac_compiler=$2 | |
7a197a62 AK |
2367 | { (ac_try="$ac_compiler --version >&5" |
2368 | case "(($ac_try" in | |
2369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2370 | *) ac_try_echo=$ac_try;; | |
2371 | esac | |
66e941e8 JM |
2372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2373 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2374 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2375 | ac_status=$? |
66e941e8 | 2376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2377 | (exit $ac_status); } |
7a197a62 AK |
2378 | { (ac_try="$ac_compiler -v >&5" |
2379 | case "(($ac_try" in | |
2380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2381 | *) ac_try_echo=$ac_try;; | |
2382 | esac | |
66e941e8 JM |
2383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2384 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2385 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2386 | ac_status=$? |
66e941e8 | 2387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2388 | (exit $ac_status); } |
7a197a62 AK |
2389 | { (ac_try="$ac_compiler -V >&5" |
2390 | case "(($ac_try" in | |
2391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2392 | *) ac_try_echo=$ac_try;; | |
2393 | esac | |
66e941e8 JM |
2394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2395 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2396 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2397 | ac_status=$? |
66e941e8 | 2398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2399 | (exit $ac_status); } |
2400 | ||
2401 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2402 | /* confdefs.h. */ |
2403 | _ACEOF | |
2404 | cat confdefs.h >>conftest.$ac_ext | |
2405 | cat >>conftest.$ac_ext <<_ACEOF | |
2406 | /* end confdefs.h. */ | |
2407 | ||
2408 | int | |
2409 | main () | |
2410 | { | |
2411 | ||
2412 | ; | |
2413 | return 0; | |
2414 | } | |
2415 | _ACEOF | |
2416 | ac_clean_files_save=$ac_clean_files | |
2417 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2418 | # Try to create an executable without -o first, disregard a.out. | |
2419 | # It will help us diagnose broken compilers, and finding out an intuition | |
2420 | # of exeext. | |
66e941e8 JM |
2421 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2422 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2423 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
7a197a62 AK |
2424 | # |
2425 | # List of possible output files, starting from the most likely. | |
2426 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2427 | # only as a last resort. b.out is created by i960 compilers. | |
2428 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2429 | # | |
2430 | # The IRIX 6 linker writes into existing files which may not be | |
2431 | # executable, retaining their permissions. Remove them first so a | |
2432 | # subsequent execution test works. | |
2433 | ac_rmfiles= | |
2434 | for ac_file in $ac_files | |
2435 | do | |
2436 | case $ac_file in | |
2437 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2438 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2439 | esac | |
2440 | done | |
2441 | rm -f $ac_rmfiles | |
2442 | ||
2443 | if { (ac_try="$ac_link_default" | |
2444 | case "(($ac_try" in | |
2445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2446 | *) ac_try_echo=$ac_try;; | |
2447 | esac | |
66e941e8 JM |
2448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2449 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2450 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2451 | ac_status=$? |
66e941e8 | 2452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2453 | (exit $ac_status); }; then |
7a197a62 AK |
2454 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2455 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2456 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2457 | # so that the user can short-circuit this test for compilers unknown to | |
2458 | # Autoconf. | |
2459 | for ac_file in $ac_files '' | |
ad6254c5 AK |
2460 | do |
2461 | test -f "$ac_file" || continue | |
2462 | case $ac_file in | |
7a197a62 | 2463 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2464 | ;; |
ad6254c5 | 2465 | [ab].out ) |
8a2fc586 AK |
2466 | # We found the default executable, but exeext='' is most |
2467 | # certainly right. | |
2468 | break;; | |
ad6254c5 | 2469 | *.* ) |
7a197a62 AK |
2470 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2471 | then :; else | |
2472 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2473 | fi | |
2474 | # We set ac_cv_exeext here because the later test for it is not | |
2475 | # safe: cross compilers may not add the suffix if given an `-o' | |
2476 | # argument, so we may need to know it at that point already. | |
2477 | # Even if this section looks crufty: it has the advantage of | |
2478 | # actually working. | |
8a2fc586 | 2479 | break;; |
ad6254c5 | 2480 | * ) |
8a2fc586 | 2481 | break;; |
ad6254c5 AK |
2482 | esac |
2483 | done | |
7a197a62 AK |
2484 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2485 | ||
ad6254c5 | 2486 | else |
7a197a62 AK |
2487 | ac_file='' |
2488 | fi | |
2489 | ||
66e941e8 JM |
2490 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2491 | $as_echo "$ac_file" >&6; } | |
7a197a62 | 2492 | if test -z "$ac_file"; then |
66e941e8 | 2493 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2494 | sed 's/^/| /' conftest.$ac_ext >&5 |
2495 | ||
66e941e8 | 2496 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2497 | See \`config.log' for more details." >&5 |
66e941e8 | 2498 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2499 | See \`config.log' for more details." >&2;} |
2500 | { (exit 77); exit 77; }; } | |
2501 | fi | |
2502 | ||
2503 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2504 | |
7a197a62 | 2505 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2506 | # the compiler is broken, or we cross compile. |
66e941e8 JM |
2507 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2508 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2509 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2510 | # If not cross compiling, check that we can run a simple program. | |
2511 | if test "$cross_compiling" != yes; then | |
2512 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2513 | { (case "(($ac_try" in |
2514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2515 | *) ac_try_echo=$ac_try;; | |
2516 | esac | |
66e941e8 JM |
2517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2518 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2519 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2520 | ac_status=$? |
66e941e8 | 2521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2522 | (exit $ac_status); }; }; then |
2523 | cross_compiling=no | |
795ca3e5 | 2524 | else |
ad6254c5 AK |
2525 | if test "$cross_compiling" = maybe; then |
2526 | cross_compiling=yes | |
2527 | else | |
66e941e8 | 2528 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2529 | If you meant to cross compile, use \`--host'. |
2530 | See \`config.log' for more details." >&5 | |
66e941e8 | 2531 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2532 | If you meant to cross compile, use \`--host'. |
2533 | See \`config.log' for more details." >&2;} | |
2534 | { (exit 1); exit 1; }; } | |
2535 | fi | |
795ca3e5 | 2536 | fi |
80992638 | 2537 | fi |
66e941e8 JM |
2538 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2539 | $as_echo "yes" >&6; } | |
ad6254c5 AK |
2540 | |
2541 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2542 | ac_clean_files=$ac_clean_files_save | |
7a197a62 | 2543 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2544 | # the compiler is broken, or we cross compile. |
66e941e8 JM |
2545 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2546 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2547 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2548 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2549 | |
66e941e8 JM |
2550 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2551 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2552 | if { (ac_try="$ac_link" |
2553 | case "(($ac_try" in | |
2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2555 | *) ac_try_echo=$ac_try;; | |
2556 | esac | |
66e941e8 JM |
2557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2558 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2559 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2560 | ac_status=$? |
66e941e8 | 2561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2562 | (exit $ac_status); }; then |
2563 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2564 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2565 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2566 | # `rm'. | |
2567 | for ac_file in conftest.exe conftest conftest.*; do | |
2568 | test -f "$ac_file" || continue | |
2569 | case $ac_file in | |
7a197a62 | 2570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2571 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2572 | break;; |
ad6254c5 AK |
2573 | * ) break;; |
2574 | esac | |
2575 | done | |
80992638 | 2576 | else |
66e941e8 | 2577 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2578 | See \`config.log' for more details." >&5 |
66e941e8 | 2579 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2580 | See \`config.log' for more details." >&2;} |
2581 | { (exit 1); exit 1; }; } | |
2582 | fi | |
2583 | ||
2584 | rm -f conftest$ac_cv_exeext | |
66e941e8 JM |
2585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2586 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2587 | |
2588 | rm -f conftest.$ac_ext | |
2589 | EXEEXT=$ac_cv_exeext | |
2590 | ac_exeext=$EXEEXT | |
66e941e8 JM |
2591 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2592 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2593 | if test "${ac_cv_objext+set}" = set; then |
66e941e8 | 2594 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2595 | else |
ad6254c5 | 2596 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2597 | /* confdefs.h. */ |
2598 | _ACEOF | |
2599 | cat confdefs.h >>conftest.$ac_ext | |
2600 | cat >>conftest.$ac_ext <<_ACEOF | |
2601 | /* end confdefs.h. */ | |
2602 | ||
2603 | int | |
2604 | main () | |
2605 | { | |
2606 | ||
2607 | ; | |
2608 | return 0; | |
2609 | } | |
2610 | _ACEOF | |
2611 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2612 | if { (ac_try="$ac_compile" |
2613 | case "(($ac_try" in | |
2614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2615 | *) ac_try_echo=$ac_try;; | |
2616 | esac | |
66e941e8 JM |
2617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2618 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2619 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2620 | ac_status=$? |
66e941e8 | 2621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2622 | (exit $ac_status); }; then |
7a197a62 AK |
2623 | for ac_file in conftest.o conftest.obj conftest.*; do |
2624 | test -f "$ac_file" || continue; | |
ad6254c5 | 2625 | case $ac_file in |
7a197a62 | 2626 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2627 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2628 | break;; | |
2629 | esac | |
2630 | done | |
2631 | else | |
66e941e8 | 2632 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2633 | sed 's/^/| /' conftest.$ac_ext >&5 |
2634 | ||
66e941e8 | 2635 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2636 | See \`config.log' for more details." >&5 |
66e941e8 | 2637 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2638 | See \`config.log' for more details." >&2;} |
2639 | { (exit 1); exit 1; }; } | |
2640 | fi | |
2641 | ||
2642 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2643 | fi | |
66e941e8 JM |
2644 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2645 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2646 | OBJEXT=$ac_cv_objext |
2647 | ac_objext=$OBJEXT | |
66e941e8 JM |
2648 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2649 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2650 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
66e941e8 | 2651 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2652 | else |
2653 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2654 | /* confdefs.h. */ |
2655 | _ACEOF | |
2656 | cat confdefs.h >>conftest.$ac_ext | |
2657 | cat >>conftest.$ac_ext <<_ACEOF | |
2658 | /* end confdefs.h. */ | |
2659 | ||
2660 | int | |
2661 | main () | |
2662 | { | |
2663 | #ifndef __GNUC__ | |
2664 | choke me | |
2665 | #endif | |
80992638 | 2666 | |
ad6254c5 AK |
2667 | ; |
2668 | return 0; | |
2669 | } | |
2670 | _ACEOF | |
2671 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2672 | if { (ac_try="$ac_compile" |
2673 | case "(($ac_try" in | |
2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2675 | *) ac_try_echo=$ac_try;; | |
2676 | esac | |
66e941e8 JM |
2677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2678 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2679 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2680 | ac_status=$? |
8a2fc586 AK |
2681 | grep -v '^ *+' conftest.er1 >conftest.err |
2682 | rm -f conftest.er1 | |
2683 | cat conftest.err >&5 | |
66e941e8 | 2684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2685 | (exit $ac_status); } && { |
2686 | test -z "$ac_c_werror_flag" || | |
2687 | test ! -s conftest.err | |
2688 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2689 | ac_compiler_gnu=yes |
80992638 | 2690 | else |
66e941e8 | 2691 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2692 | sed 's/^/| /' conftest.$ac_ext >&5 |
2693 | ||
7a197a62 | 2694 | ac_compiler_gnu=no |
8106cdd5 | 2695 | fi |
7a197a62 AK |
2696 | |
2697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2698 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2699 | |
ad6254c5 | 2700 | fi |
66e941e8 JM |
2701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2702 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2703 | if test $ac_compiler_gnu = yes; then | |
2704 | GCC=yes | |
2705 | else | |
2706 | GCC= | |
2707 | fi | |
ad6254c5 AK |
2708 | ac_test_CFLAGS=${CFLAGS+set} |
2709 | ac_save_CFLAGS=$CFLAGS | |
66e941e8 JM |
2710 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2711 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2712 | if test "${ac_cv_prog_cc_g+set}" = set; then |
66e941e8 | 2713 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2714 | else |
7a197a62 AK |
2715 | ac_save_c_werror_flag=$ac_c_werror_flag |
2716 | ac_c_werror_flag=yes | |
2717 | ac_cv_prog_cc_g=no | |
2718 | CFLAGS="-g" | |
2719 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2720 | /* confdefs.h. */ |
2721 | _ACEOF | |
2722 | cat confdefs.h >>conftest.$ac_ext | |
2723 | cat >>conftest.$ac_ext <<_ACEOF | |
2724 | /* end confdefs.h. */ | |
2725 | ||
2726 | int | |
2727 | main () | |
2728 | { | |
2729 | ||
2730 | ; | |
2731 | return 0; | |
2732 | } | |
2733 | _ACEOF | |
2734 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2735 | if { (ac_try="$ac_compile" |
2736 | case "(($ac_try" in | |
2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2738 | *) ac_try_echo=$ac_try;; | |
2739 | esac | |
66e941e8 JM |
2740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2741 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2742 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2743 | ac_status=$? |
8a2fc586 AK |
2744 | grep -v '^ *+' conftest.er1 >conftest.err |
2745 | rm -f conftest.er1 | |
2746 | cat conftest.err >&5 | |
66e941e8 | 2747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2748 | (exit $ac_status); } && { |
2749 | test -z "$ac_c_werror_flag" || | |
2750 | test ! -s conftest.err | |
2751 | } && test -s conftest.$ac_objext; then | |
2752 | ac_cv_prog_cc_g=yes | |
2753 | else | |
66e941e8 | 2754 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2755 | sed 's/^/| /' conftest.$ac_ext >&5 |
2756 | ||
2757 | CFLAGS="" | |
2758 | cat >conftest.$ac_ext <<_ACEOF | |
2759 | /* confdefs.h. */ | |
2760 | _ACEOF | |
2761 | cat confdefs.h >>conftest.$ac_ext | |
2762 | cat >>conftest.$ac_ext <<_ACEOF | |
2763 | /* end confdefs.h. */ | |
2764 | ||
2765 | int | |
2766 | main () | |
2767 | { | |
2768 | ||
2769 | ; | |
2770 | return 0; | |
2771 | } | |
2772 | _ACEOF | |
2773 | rm -f conftest.$ac_objext | |
2774 | if { (ac_try="$ac_compile" | |
2775 | case "(($ac_try" in | |
2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2777 | *) ac_try_echo=$ac_try;; | |
2778 | esac | |
66e941e8 JM |
2779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2780 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2781 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2782 | ac_status=$? |
7a197a62 AK |
2783 | grep -v '^ *+' conftest.er1 >conftest.err |
2784 | rm -f conftest.er1 | |
2785 | cat conftest.err >&5 | |
66e941e8 | 2786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2787 | (exit $ac_status); } && { |
2788 | test -z "$ac_c_werror_flag" || | |
2789 | test ! -s conftest.err | |
2790 | } && test -s conftest.$ac_objext; then | |
2791 | : | |
2792 | else | |
66e941e8 | 2793 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2794 | sed 's/^/| /' conftest.$ac_ext >&5 |
2795 | ||
2796 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2797 | CFLAGS="-g" | |
2798 | cat >conftest.$ac_ext <<_ACEOF | |
2799 | /* confdefs.h. */ | |
2800 | _ACEOF | |
2801 | cat confdefs.h >>conftest.$ac_ext | |
2802 | cat >>conftest.$ac_ext <<_ACEOF | |
2803 | /* end confdefs.h. */ | |
2804 | ||
2805 | int | |
2806 | main () | |
2807 | { | |
2808 | ||
2809 | ; | |
2810 | return 0; | |
2811 | } | |
2812 | _ACEOF | |
2813 | rm -f conftest.$ac_objext | |
2814 | if { (ac_try="$ac_compile" | |
2815 | case "(($ac_try" in | |
2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2817 | *) ac_try_echo=$ac_try;; | |
2818 | esac | |
66e941e8 JM |
2819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2820 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2821 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2822 | ac_status=$? |
7a197a62 AK |
2823 | grep -v '^ *+' conftest.er1 >conftest.err |
2824 | rm -f conftest.er1 | |
2825 | cat conftest.err >&5 | |
66e941e8 | 2826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2827 | (exit $ac_status); } && { |
2828 | test -z "$ac_c_werror_flag" || | |
2829 | test ! -s conftest.err | |
2830 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2831 | ac_cv_prog_cc_g=yes |
2832 | else | |
66e941e8 | 2833 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2834 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2835 | |
7a197a62 AK |
2836 | |
2837 | fi | |
2838 | ||
2839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2840 | fi | |
2841 | ||
2842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2843 | fi |
7a197a62 AK |
2844 | |
2845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2846 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2847 | fi |
66e941e8 JM |
2848 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2849 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2850 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2851 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2852 | elif test $ac_cv_prog_cc_g = yes; then |
2853 | if test "$GCC" = yes; then | |
2854 | CFLAGS="-g -O2" | |
2855 | else | |
2856 | CFLAGS="-g" | |
2857 | fi | |
2858 | else | |
2859 | if test "$GCC" = yes; then | |
2860 | CFLAGS="-O2" | |
2861 | else | |
2862 | CFLAGS= | |
2863 | fi | |
2864 | fi | |
66e941e8 JM |
2865 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2866 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 2867 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
66e941e8 | 2868 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2869 | else |
7a197a62 | 2870 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2871 | ac_save_CC=$CC |
2872 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2873 | /* confdefs.h. */ |
2874 | _ACEOF | |
2875 | cat confdefs.h >>conftest.$ac_ext | |
2876 | cat >>conftest.$ac_ext <<_ACEOF | |
2877 | /* end confdefs.h. */ | |
2878 | #include <stdarg.h> | |
2879 | #include <stdio.h> | |
2880 | #include <sys/types.h> | |
2881 | #include <sys/stat.h> | |
2882 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2883 | struct buf { int x; }; | |
2884 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2885 | static char *e (p, i) | |
2886 | char **p; | |
2887 | int i; | |
2888 | { | |
2889 | return p[i]; | |
2890 | } | |
2891 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2892 | { | |
2893 | char *s; | |
2894 | va_list v; | |
2895 | va_start (v,p); | |
2896 | s = g (p, va_arg (v,int)); | |
2897 | va_end (v); | |
2898 | return s; | |
2899 | } | |
8a2fc586 AK |
2900 | |
2901 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2902 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2903 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2904 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2905 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2906 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2907 | that's true only with -std. */ |
8a2fc586 AK |
2908 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2909 | ||
7a197a62 AK |
2910 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2911 | inside strings and character constants. */ | |
2912 | #define FOO(x) 'x' | |
2913 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2914 | ||
ad6254c5 AK |
2915 | int test (int i, double x); |
2916 | struct s1 {int (*f) (int a);}; | |
2917 | struct s2 {int (*f) (double a);}; | |
2918 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2919 | int argc; | |
2920 | char **argv; | |
2921 | int | |
2922 | main () | |
2923 | { | |
2924 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2925 | ; | |
2926 | return 0; | |
2927 | } | |
2928 | _ACEOF | |
7a197a62 AK |
2929 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2930 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2931 | do |
2932 | CC="$ac_save_CC $ac_arg" | |
2933 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2934 | if { (ac_try="$ac_compile" |
2935 | case "(($ac_try" in | |
2936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2937 | *) ac_try_echo=$ac_try;; | |
2938 | esac | |
66e941e8 JM |
2939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2940 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2941 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2942 | ac_status=$? |
8a2fc586 AK |
2943 | grep -v '^ *+' conftest.er1 >conftest.err |
2944 | rm -f conftest.er1 | |
2945 | cat conftest.err >&5 | |
66e941e8 | 2946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
2947 | (exit $ac_status); } && { |
2948 | test -z "$ac_c_werror_flag" || | |
2949 | test ! -s conftest.err | |
2950 | } && test -s conftest.$ac_objext; then | |
2951 | ac_cv_prog_cc_c89=$ac_arg | |
ad6254c5 | 2952 | else |
66e941e8 | 2953 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2954 | sed 's/^/| /' conftest.$ac_ext >&5 |
2955 | ||
7a197a62 | 2956 | |
ad6254c5 | 2957 | fi |
7a197a62 AK |
2958 | |
2959 | rm -f core conftest.err conftest.$ac_objext | |
2960 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2961 | done |
7a197a62 | 2962 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2963 | CC=$ac_save_CC |
2964 | ||
2965 | fi | |
7a197a62 AK |
2966 | # AC_CACHE_VAL |
2967 | case "x$ac_cv_prog_cc_c89" in | |
2968 | x) | |
66e941e8 JM |
2969 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
2970 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 2971 | xno) |
66e941e8 JM |
2972 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
2973 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 2974 | *) |
7a197a62 | 2975 | CC="$CC $ac_cv_prog_cc_c89" |
66e941e8 JM |
2976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2977 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2978 | esac |
2979 | ||
ad6254c5 | 2980 | |
ad6254c5 AK |
2981 | ac_ext=c |
2982 | ac_cpp='$CPP $CPPFLAGS' | |
2983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2986 | |
2987 | # Find a good install program. We prefer a C program (faster), | |
2988 | # so one script is as good as another. But avoid the broken or | |
2989 | # incompatible versions: | |
2990 | # SysV /etc/install, /usr/sbin/install | |
2991 | # SunOS /usr/etc/install | |
2992 | # IRIX /sbin/install | |
2993 | # AIX /bin/install | |
ad6254c5 | 2994 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2995 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2996 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2997 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2998 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2999 | # ./install, which can be erroneously created by make from ./install.sh. |
66e941e8 JM |
3000 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3001 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
795ca3e5 | 3002 | if test -z "$INSTALL"; then |
ad6254c5 | 3003 | if test "${ac_cv_path_install+set}" = set; then |
66e941e8 | 3004 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3005 | else |
3006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3007 | for as_dir in $PATH | |
3008 | do | |
3009 | IFS=$as_save_IFS | |
3010 | test -z "$as_dir" && as_dir=. | |
3011 | # Account for people who put trailing slashes in PATH elements. | |
3012 | case $as_dir/ in | |
3013 | ./ | .// | /cC/* | \ | |
3014 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 3015 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
3016 | /usr/ucb/* ) ;; |
3017 | *) | |
3018 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3019 | # Don't use installbsd from OSF since it installs stuff as root | |
3020 | # by default. | |
3021 | for ac_prog in ginstall scoinst install; do | |
3022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3023 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
8a2fc586 AK |
3024 | if test $ac_prog = install && |
3025 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3026 | # AIX install. It has an incompatible calling convention. | |
3027 | : | |
3028 | elif test $ac_prog = install && | |
3029 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3030 | # program-specific install script used by HP pwplus--don't use. | |
3031 | : | |
3032 | else | |
3033 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3034 | break 3 | |
3035 | fi | |
3036 | fi | |
795ca3e5 | 3037 | done |
ad6254c5 AK |
3038 | done |
3039 | ;; | |
3040 | esac | |
3041 | done | |
7a197a62 | 3042 | IFS=$as_save_IFS |
ad6254c5 | 3043 | |
795ca3e5 AK |
3044 | |
3045 | fi | |
3046 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 3047 | INSTALL=$ac_cv_path_install |
795ca3e5 | 3048 | else |
7a197a62 AK |
3049 | # As a last resort, use the slow shell script. Don't cache a |
3050 | # value for INSTALL within a source directory, because that will | |
795ca3e5 | 3051 | # break other packages using the cache if that directory is |
7a197a62 | 3052 | # removed, or if the value is a relative name. |
ad6254c5 | 3053 | INSTALL=$ac_install_sh |
795ca3e5 AK |
3054 | fi |
3055 | fi | |
66e941e8 JM |
3056 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3057 | $as_echo "$INSTALL" >&6; } | |
795ca3e5 AK |
3058 | |
3059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3060 | # It thinks the first close brace ends the variable substitution. | |
3061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3062 | ||
ad6254c5 | 3063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
3064 | |
3065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3066 | ||
66e941e8 JM |
3067 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3068 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ad6254c5 AK |
3069 | LN_S=$as_ln_s |
3070 | if test "$LN_S" = "ln -s"; then | |
66e941e8 JM |
3071 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3072 | $as_echo "yes" >&6; } | |
80992638 | 3073 | else |
66e941e8 JM |
3074 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3075 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 AK |
3076 | fi |
3077 | ||
66e941e8 JM |
3078 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3079 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3080 | set x ${MAKE-make} | |
3081 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7a197a62 | 3082 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 3083 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3084 | else |
ad6254c5 | 3085 | cat >conftest.make <<\_ACEOF |
7a197a62 | 3086 | SHELL = /bin/sh |
795ca3e5 | 3087 | all: |
7a197a62 | 3088 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ad6254c5 | 3089 | _ACEOF |
795ca3e5 | 3090 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7a197a62 AK |
3091 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3092 | *@@@%%%=?*=@@@%%%*) | |
3093 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3094 | *) | |
3095 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3096 | esac | |
ad6254c5 | 3097 | rm -f conftest.make |
795ca3e5 | 3098 | fi |
7a197a62 | 3099 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
66e941e8 JM |
3100 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3101 | $as_echo "yes" >&6; } | |
795ca3e5 AK |
3102 | SET_MAKE= |
3103 | else | |
66e941e8 JM |
3104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3105 | $as_echo "no" >&6; } | |
795ca3e5 AK |
3106 | SET_MAKE="MAKE=${MAKE-make}" |
3107 | fi | |
3108 | ||
ad6254c5 AK |
3109 | if test -n "$ac_tool_prefix"; then |
3110 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3111 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
66e941e8 JM |
3112 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3113 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 3114 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
66e941e8 | 3115 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
3116 | else |
3117 | if test -n "$RANLIB"; then | |
3118 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3119 | else | |
ad6254c5 AK |
3120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3121 | for as_dir in $PATH | |
3122 | do | |
3123 | IFS=$as_save_IFS | |
3124 | test -z "$as_dir" && as_dir=. | |
3125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3127 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
66e941e8 | 3128 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3129 | break 2 |
3130 | fi | |
3131 | done | |
3132 | done | |
7a197a62 | 3133 | IFS=$as_save_IFS |
ad6254c5 | 3134 | |
795ca3e5 AK |
3135 | fi |
3136 | fi | |
ad6254c5 | 3137 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 3138 | if test -n "$RANLIB"; then |
66e941e8 JM |
3139 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3140 | $as_echo "$RANLIB" >&6; } | |
8106cdd5 | 3141 | else |
66e941e8 JM |
3142 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3143 | $as_echo "no" >&6; } | |
8106cdd5 AK |
3144 | fi |
3145 | ||
7a197a62 | 3146 | |
795ca3e5 | 3147 | fi |
ad6254c5 AK |
3148 | if test -z "$ac_cv_prog_RANLIB"; then |
3149 | ac_ct_RANLIB=$RANLIB | |
3150 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3151 | set dummy ranlib; ac_word=$2 | |
66e941e8 JM |
3152 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3153 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 3154 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
66e941e8 | 3155 | $as_echo_n "(cached) " >&6 |
80992638 | 3156 | else |
ad6254c5 AK |
3157 | if test -n "$ac_ct_RANLIB"; then |
3158 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3159 | else | |
3160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3161 | for as_dir in $PATH | |
3162 | do | |
3163 | IFS=$as_save_IFS | |
3164 | test -z "$as_dir" && as_dir=. | |
3165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3167 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
66e941e8 | 3168 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3169 | break 2 |
3170 | fi | |
3171 | done | |
795ca3e5 | 3172 | done |
7a197a62 | 3173 | IFS=$as_save_IFS |
8106cdd5 | 3174 | |
795ca3e5 | 3175 | fi |
80992638 | 3176 | fi |
ad6254c5 AK |
3177 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3178 | if test -n "$ac_ct_RANLIB"; then | |
66e941e8 JM |
3179 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3180 | $as_echo "$ac_ct_RANLIB" >&6; } | |
80992638 | 3181 | else |
66e941e8 JM |
3182 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3183 | $as_echo "no" >&6; } | |
8106cdd5 | 3184 | fi |
8106cdd5 | 3185 | |
7a197a62 AK |
3186 | if test "x$ac_ct_RANLIB" = x; then |
3187 | RANLIB=":" | |
3188 | else | |
3189 | case $cross_compiling:$ac_tool_warned in | |
3190 | yes:) | |
66e941e8 | 3191 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3192 | whose name does not start with the host triplet. If you think this |
3193 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
66e941e8 | 3194 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3195 | whose name does not start with the host triplet. If you think this |
3196 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3197 | ac_tool_warned=yes ;; | |
3198 | esac | |
3199 | RANLIB=$ac_ct_RANLIB | |
3200 | fi | |
80992638 | 3201 | else |
ad6254c5 | 3202 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 3203 | fi |
795ca3e5 | 3204 | |
8a2fc586 AK |
3205 | # Extract the first word of "cflow", so it can be a program name with args. |
3206 | set dummy cflow; ac_word=$2 | |
66e941e8 JM |
3207 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3208 | $as_echo_n "checking for $ac_word... " >&6; } | |
8a2fc586 | 3209 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
66e941e8 | 3210 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
3211 | else |
3212 | case $CFLOW_CMD in | |
3213 | [\\/]* | ?:[\\/]*) | |
3214 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3215 | ;; | |
3216 | *) | |
3217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3218 | for as_dir in $PATH | |
3219 | do | |
3220 | IFS=$as_save_IFS | |
3221 | test -z "$as_dir" && as_dir=. | |
3222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3224 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" |
66e941e8 | 3225 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3226 | break 2 |
3227 | fi | |
3228 | done | |
3229 | done | |
7a197a62 | 3230 | IFS=$as_save_IFS |
8a2fc586 AK |
3231 | |
3232 | ;; | |
3233 | esac | |
3234 | fi | |
3235 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
8a2fc586 | 3236 | if test -n "$CFLOW_CMD"; then |
66e941e8 JM |
3237 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3238 | $as_echo "$CFLOW_CMD" >&6; } | |
8a2fc586 | 3239 | else |
66e941e8 JM |
3240 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3241 | $as_echo "no" >&6; } | |
8a2fc586 AK |
3242 | fi |
3243 | ||
7a197a62 | 3244 | |
8a2fc586 AK |
3245 | # Extract the first word of "cscope", so it can be a program name with args. |
3246 | set dummy cscope; ac_word=$2 | |
66e941e8 JM |
3247 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3248 | $as_echo_n "checking for $ac_word... " >&6; } | |
8a2fc586 | 3249 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
66e941e8 | 3250 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
3251 | else |
3252 | case $CSCOPE_CMD in | |
3253 | [\\/]* | ?:[\\/]*) | |
3254 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3255 | ;; | |
3256 | *) | |
3257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3258 | for as_dir in $PATH | |
3259 | do | |
3260 | IFS=$as_save_IFS | |
3261 | test -z "$as_dir" && as_dir=. | |
3262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 3263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3264 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
66e941e8 | 3265 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3266 | break 2 |
3267 | fi | |
3268 | done | |
3269 | done | |
7a197a62 | 3270 | IFS=$as_save_IFS |
8a2fc586 AK |
3271 | |
3272 | ;; | |
3273 | esac | |
3274 | fi | |
3275 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
8a2fc586 | 3276 | if test -n "$CSCOPE_CMD"; then |
66e941e8 JM |
3277 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3278 | $as_echo "$CSCOPE_CMD" >&6; } | |
8a2fc586 | 3279 | else |
66e941e8 JM |
3280 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3281 | $as_echo "no" >&6; } | |
8a2fc586 AK |
3282 | fi |
3283 | ||
795ca3e5 | 3284 | |
7a197a62 | 3285 | |
ad6254c5 AK |
3286 | ################################################################################ |
3287 | ||
3288 | ||
3289 | ||
3290 | ||
3291 | ||
3292 | ||
3293 | ac_header_dirent=no | |
3294 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
66e941e8 JM |
3295 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3296 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3297 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
7a197a62 | 3298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 3299 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3300 | else |
ad6254c5 | 3301 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3302 | /* confdefs.h. */ |
3303 | _ACEOF | |
3304 | cat confdefs.h >>conftest.$ac_ext | |
3305 | cat >>conftest.$ac_ext <<_ACEOF | |
3306 | /* end confdefs.h. */ | |
3307 | #include <sys/types.h> | |
3308 | #include <$ac_hdr> | |
3309 | ||
3310 | int | |
3311 | main () | |
3312 | { | |
3313 | if ((DIR *) 0) | |
3314 | return 0; | |
3315 | ; | |
3316 | return 0; | |
3317 | } | |
3318 | _ACEOF | |
3319 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3320 | if { (ac_try="$ac_compile" |
3321 | case "(($ac_try" in | |
3322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3323 | *) ac_try_echo=$ac_try;; | |
3324 | esac | |
66e941e8 JM |
3325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3326 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3327 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3328 | ac_status=$? |
8a2fc586 AK |
3329 | grep -v '^ *+' conftest.er1 >conftest.err |
3330 | rm -f conftest.er1 | |
3331 | cat conftest.err >&5 | |
66e941e8 | 3332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3333 | (exit $ac_status); } && { |
3334 | test -z "$ac_c_werror_flag" || | |
3335 | test ! -s conftest.err | |
3336 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3337 | eval "$as_ac_Header=yes" |
8106cdd5 | 3338 | else |
66e941e8 | 3339 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3340 | sed 's/^/| /' conftest.$ac_ext >&5 |
3341 | ||
7a197a62 | 3342 | eval "$as_ac_Header=no" |
795ca3e5 | 3343 | fi |
7a197a62 AK |
3344 | |
3345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 3346 | fi |
66e941e8 JM |
3347 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3348 | $as_echo "$as_val"'` | |
3349 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3350 | $as_echo "$ac_res" >&6; } | |
3351 | if test `eval 'as_val=${'$as_ac_Header'} | |
3352 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 3353 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 3354 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
ad6254c5 AK |
3355 | _ACEOF |
3356 | ||
3357 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 3358 | fi |
8106cdd5 | 3359 | |
ad6254c5 AK |
3360 | done |
3361 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3362 | if test $ac_header_dirent = dirent.h; then | |
66e941e8 JM |
3363 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3364 | $as_echo_n "checking for library containing opendir... " >&6; } | |
ad6254c5 | 3365 | if test "${ac_cv_search_opendir+set}" = set; then |
66e941e8 | 3366 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3367 | else |
ad6254c5 | 3368 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 3369 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3370 | /* confdefs.h. */ |
3371 | _ACEOF | |
3372 | cat confdefs.h >>conftest.$ac_ext | |
3373 | cat >>conftest.$ac_ext <<_ACEOF | |
3374 | /* end confdefs.h. */ | |
3375 | ||
7a197a62 AK |
3376 | /* Override any GCC internal prototype to avoid an error. |
3377 | Use char because int might match the return type of a GCC | |
3378 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3379 | #ifdef __cplusplus |
3380 | extern "C" | |
3381 | #endif | |
ad6254c5 AK |
3382 | char opendir (); |
3383 | int | |
3384 | main () | |
3385 | { | |
7a197a62 | 3386 | return opendir (); |
ad6254c5 AK |
3387 | ; |
3388 | return 0; | |
3389 | } | |
3390 | _ACEOF | |
7a197a62 AK |
3391 | for ac_lib in '' dir; do |
3392 | if test -z "$ac_lib"; then | |
3393 | ac_res="none required" | |
3394 | else | |
3395 | ac_res=-l$ac_lib | |
3396 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3397 | fi | |
3398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3399 | if { (ac_try="$ac_link" | |
3400 | case "(($ac_try" in | |
3401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3402 | *) ac_try_echo=$ac_try;; | |
3403 | esac | |
66e941e8 JM |
3404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3405 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3406 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3407 | ac_status=$? |
8a2fc586 AK |
3408 | grep -v '^ *+' conftest.er1 >conftest.err |
3409 | rm -f conftest.er1 | |
3410 | cat conftest.err >&5 | |
66e941e8 | 3411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3412 | (exit $ac_status); } && { |
3413 | test -z "$ac_c_werror_flag" || | |
3414 | test ! -s conftest.err | |
3415 | } && test -s conftest$ac_exeext && | |
3416 | $as_test_x conftest$ac_exeext; then | |
3417 | ac_cv_search_opendir=$ac_res | |
795ca3e5 | 3418 | else |
66e941e8 | 3419 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
3421 | ||
795ca3e5 | 3422 | |
7a197a62 | 3423 | fi |
795ca3e5 | 3424 | |
7a197a62 AK |
3425 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3426 | conftest$ac_exeext | |
3427 | if test "${ac_cv_search_opendir+set}" = set; then | |
3428 | break | |
795ca3e5 | 3429 | fi |
7a197a62 AK |
3430 | done |
3431 | if test "${ac_cv_search_opendir+set}" = set; then | |
3432 | : | |
3433 | else | |
3434 | ac_cv_search_opendir=no | |
795ca3e5 | 3435 | fi |
7a197a62 | 3436 | rm conftest.$ac_ext |
ad6254c5 AK |
3437 | LIBS=$ac_func_search_save_LIBS |
3438 | fi | |
66e941e8 JM |
3439 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3440 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3441 | ac_res=$ac_cv_search_opendir |
3442 | if test "$ac_res" != no; then | |
3443 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
795ca3e5 AK |
3444 | |
3445 | fi | |
3446 | ||
795ca3e5 | 3447 | else |
66e941e8 JM |
3448 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3449 | $as_echo_n "checking for library containing opendir... " >&6; } | |
ad6254c5 | 3450 | if test "${ac_cv_search_opendir+set}" = set; then |
66e941e8 | 3451 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3452 | else |
3453 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 3454 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3455 | /* confdefs.h. */ |
3456 | _ACEOF | |
3457 | cat confdefs.h >>conftest.$ac_ext | |
3458 | cat >>conftest.$ac_ext <<_ACEOF | |
3459 | /* end confdefs.h. */ | |
80992638 | 3460 | |
7a197a62 AK |
3461 | /* Override any GCC internal prototype to avoid an error. |
3462 | Use char because int might match the return type of a GCC | |
3463 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3464 | #ifdef __cplusplus |
3465 | extern "C" | |
3466 | #endif | |
ad6254c5 AK |
3467 | char opendir (); |
3468 | int | |
3469 | main () | |
3470 | { | |
7a197a62 | 3471 | return opendir (); |
ad6254c5 AK |
3472 | ; |
3473 | return 0; | |
3474 | } | |
3475 | _ACEOF | |
7a197a62 AK |
3476 | for ac_lib in '' x; do |
3477 | if test -z "$ac_lib"; then | |
3478 | ac_res="none required" | |
3479 | else | |
3480 | ac_res=-l$ac_lib | |
3481 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3482 | fi | |
3483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3484 | if { (ac_try="$ac_link" | |
3485 | case "(($ac_try" in | |
3486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3487 | *) ac_try_echo=$ac_try;; | |
3488 | esac | |
66e941e8 JM |
3489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3490 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3491 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3492 | ac_status=$? |
8a2fc586 AK |
3493 | grep -v '^ *+' conftest.er1 >conftest.err |
3494 | rm -f conftest.er1 | |
3495 | cat conftest.err >&5 | |
66e941e8 | 3496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3497 | (exit $ac_status); } && { |
3498 | test -z "$ac_c_werror_flag" || | |
3499 | test ! -s conftest.err | |
3500 | } && test -s conftest$ac_exeext && | |
3501 | $as_test_x conftest$ac_exeext; then | |
3502 | ac_cv_search_opendir=$ac_res | |
795ca3e5 | 3503 | else |
66e941e8 | 3504 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3505 | sed 's/^/| /' conftest.$ac_ext >&5 |
3506 | ||
ad6254c5 | 3507 | |
7a197a62 | 3508 | fi |
80992638 | 3509 | |
7a197a62 AK |
3510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3511 | conftest$ac_exeext | |
3512 | if test "${ac_cv_search_opendir+set}" = set; then | |
3513 | break | |
795ca3e5 | 3514 | fi |
7a197a62 AK |
3515 | done |
3516 | if test "${ac_cv_search_opendir+set}" = set; then | |
3517 | : | |
3518 | else | |
3519 | ac_cv_search_opendir=no | |
ad6254c5 | 3520 | fi |
7a197a62 | 3521 | rm conftest.$ac_ext |
ad6254c5 | 3522 | LIBS=$ac_func_search_save_LIBS |
795ca3e5 | 3523 | fi |
66e941e8 JM |
3524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3525 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3526 | ac_res=$ac_cv_search_opendir |
3527 | if test "$ac_res" != no; then | |
3528 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8106cdd5 | 3529 | |
ad6254c5 | 3530 | fi |
8106cdd5 | 3531 | |
795ca3e5 | 3532 | fi |
8106cdd5 | 3533 | |
ad6254c5 AK |
3534 | ac_ext=c |
3535 | ac_cpp='$CPP $CPPFLAGS' | |
3536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66e941e8 JM |
3539 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3540 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
ad6254c5 AK |
3541 | # On Suns, sometimes $CPP names a directory. |
3542 | if test -n "$CPP" && test -d "$CPP"; then | |
3543 | CPP= | |
3544 | fi | |
3545 | if test -z "$CPP"; then | |
3546 | if test "${ac_cv_prog_CPP+set}" = set; then | |
66e941e8 | 3547 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3548 | else |
3549 | # Double quotes because CPP needs to be expanded | |
3550 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3551 | do | |
3552 | ac_preproc_ok=false | |
3553 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3554 | do |
ad6254c5 AK |
3555 | # Use a header file that comes with gcc, so configuring glibc |
3556 | # with a fresh cross-compiler works. | |
3557 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3558 | # <limits.h> exists even on freestanding compilers. | |
3559 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3560 | # not just through cpp. "Syntax error" is here to catch this case. | |
3561 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3562 | /* confdefs.h. */ |
3563 | _ACEOF | |
3564 | cat confdefs.h >>conftest.$ac_ext | |
3565 | cat >>conftest.$ac_ext <<_ACEOF | |
3566 | /* end confdefs.h. */ | |
3567 | #ifdef __STDC__ | |
3568 | # include <limits.h> | |
3569 | #else | |
3570 | # include <assert.h> | |
3571 | #endif | |
8a2fc586 | 3572 | Syntax error |
ad6254c5 | 3573 | _ACEOF |
7a197a62 AK |
3574 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3575 | case "(($ac_try" in | |
3576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3577 | *) ac_try_echo=$ac_try;; | |
3578 | esac | |
66e941e8 JM |
3579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3580 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3581 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3582 | ac_status=$? |
3583 | grep -v '^ *+' conftest.er1 >conftest.err | |
3584 | rm -f conftest.er1 | |
3585 | cat conftest.err >&5 | |
66e941e8 | 3586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3587 | (exit $ac_status); } >/dev/null && { |
3588 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3589 | test ! -s conftest.err | |
3590 | }; then | |
ad6254c5 AK |
3591 | : |
3592 | else | |
66e941e8 | 3593 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3594 | sed 's/^/| /' conftest.$ac_ext >&5 |
3595 | ||
3596 | # Broken: fails on valid input. | |
3597 | continue | |
3598 | fi | |
7a197a62 | 3599 | |
ad6254c5 AK |
3600 | rm -f conftest.err conftest.$ac_ext |
3601 | ||
7a197a62 | 3602 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3603 | # can be detected and how. |
3604 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3605 | /* confdefs.h. */ |
3606 | _ACEOF | |
3607 | cat confdefs.h >>conftest.$ac_ext | |
3608 | cat >>conftest.$ac_ext <<_ACEOF | |
3609 | /* end confdefs.h. */ | |
3610 | #include <ac_nonexistent.h> | |
3611 | _ACEOF | |
7a197a62 AK |
3612 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3613 | case "(($ac_try" in | |
3614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3615 | *) ac_try_echo=$ac_try;; | |
3616 | esac | |
66e941e8 JM |
3617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3618 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3619 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3620 | ac_status=$? |
3621 | grep -v '^ *+' conftest.er1 >conftest.err | |
3622 | rm -f conftest.er1 | |
3623 | cat conftest.err >&5 | |
66e941e8 | 3624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3625 | (exit $ac_status); } >/dev/null && { |
3626 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3627 | test ! -s conftest.err | |
3628 | }; then | |
ad6254c5 AK |
3629 | # Broken: success on invalid input. |
3630 | continue | |
80992638 | 3631 | else |
66e941e8 | 3632 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3633 | sed 's/^/| /' conftest.$ac_ext >&5 |
3634 | ||
3635 | # Passes both tests. | |
3636 | ac_preproc_ok=: | |
3637 | break | |
795ca3e5 | 3638 | fi |
7a197a62 | 3639 | |
ad6254c5 AK |
3640 | rm -f conftest.err conftest.$ac_ext |
3641 | ||
795ca3e5 | 3642 | done |
ad6254c5 AK |
3643 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3644 | rm -f conftest.err conftest.$ac_ext | |
3645 | if $ac_preproc_ok; then | |
3646 | break | |
3647 | fi | |
795ca3e5 | 3648 | |
ad6254c5 AK |
3649 | done |
3650 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3651 | |
ad6254c5 AK |
3652 | fi |
3653 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3654 | else |
ad6254c5 | 3655 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3656 | fi |
66e941e8 JM |
3657 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3658 | $as_echo "$CPP" >&6; } | |
ad6254c5 AK |
3659 | ac_preproc_ok=false |
3660 | for ac_c_preproc_warn_flag in '' yes | |
3661 | do | |
3662 | # Use a header file that comes with gcc, so configuring glibc | |
3663 | # with a fresh cross-compiler works. | |
3664 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3665 | # <limits.h> exists even on freestanding compilers. | |
3666 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3667 | # not just through cpp. "Syntax error" is here to catch this case. | |
3668 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3669 | /* confdefs.h. */ |
3670 | _ACEOF | |
3671 | cat confdefs.h >>conftest.$ac_ext | |
3672 | cat >>conftest.$ac_ext <<_ACEOF | |
3673 | /* end confdefs.h. */ | |
3674 | #ifdef __STDC__ | |
3675 | # include <limits.h> | |
3676 | #else | |
3677 | # include <assert.h> | |
3678 | #endif | |
8a2fc586 | 3679 | Syntax error |
ad6254c5 | 3680 | _ACEOF |
7a197a62 AK |
3681 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3682 | case "(($ac_try" in | |
3683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3684 | *) ac_try_echo=$ac_try;; | |
3685 | esac | |
66e941e8 JM |
3686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3687 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3689 | ac_status=$? |
3690 | grep -v '^ *+' conftest.er1 >conftest.err | |
3691 | rm -f conftest.er1 | |
3692 | cat conftest.err >&5 | |
66e941e8 | 3693 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3694 | (exit $ac_status); } >/dev/null && { |
3695 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3696 | test ! -s conftest.err | |
3697 | }; then | |
ad6254c5 AK |
3698 | : |
3699 | else | |
66e941e8 | 3700 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3701 | sed 's/^/| /' conftest.$ac_ext >&5 |
3702 | ||
3703 | # Broken: fails on valid input. | |
3704 | continue | |
3705 | fi | |
7a197a62 | 3706 | |
ad6254c5 AK |
3707 | rm -f conftest.err conftest.$ac_ext |
3708 | ||
7a197a62 | 3709 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3710 | # can be detected and how. |
3711 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3712 | /* confdefs.h. */ |
3713 | _ACEOF | |
3714 | cat confdefs.h >>conftest.$ac_ext | |
3715 | cat >>conftest.$ac_ext <<_ACEOF | |
3716 | /* end confdefs.h. */ | |
3717 | #include <ac_nonexistent.h> | |
3718 | _ACEOF | |
7a197a62 AK |
3719 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3720 | case "(($ac_try" in | |
3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3722 | *) ac_try_echo=$ac_try;; | |
3723 | esac | |
66e941e8 JM |
3724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3725 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3727 | ac_status=$? |
3728 | grep -v '^ *+' conftest.er1 >conftest.err | |
3729 | rm -f conftest.er1 | |
3730 | cat conftest.err >&5 | |
66e941e8 | 3731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3732 | (exit $ac_status); } >/dev/null && { |
3733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3734 | test ! -s conftest.err | |
3735 | }; then | |
ad6254c5 AK |
3736 | # Broken: success on invalid input. |
3737 | continue | |
3738 | else | |
66e941e8 | 3739 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3740 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3741 | |
ad6254c5 AK |
3742 | # Passes both tests. |
3743 | ac_preproc_ok=: | |
3744 | break | |
795ca3e5 | 3745 | fi |
7a197a62 | 3746 | |
ad6254c5 | 3747 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3748 | |
ad6254c5 AK |
3749 | done |
3750 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3751 | rm -f conftest.err conftest.$ac_ext | |
3752 | if $ac_preproc_ok; then | |
3753 | : | |
795ca3e5 | 3754 | else |
66e941e8 | 3755 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 | 3756 | See \`config.log' for more details." >&5 |
66e941e8 | 3757 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 AK |
3758 | See \`config.log' for more details." >&2;} |
3759 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3760 | fi |
795ca3e5 | 3761 | |
ad6254c5 AK |
3762 | ac_ext=c |
3763 | ac_cpp='$CPP $CPPFLAGS' | |
3764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3767 | ||
3768 | ||
66e941e8 JM |
3769 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3770 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7a197a62 | 3771 | if test "${ac_cv_path_GREP+set}" = set; then |
66e941e8 | 3772 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
3773 | else |
3774 | # Extract the first word of "grep ggrep" to use in msg output | |
3775 | if test -z "$GREP"; then | |
3776 | set dummy grep ggrep; ac_prog_name=$2 | |
3777 | if test "${ac_cv_path_GREP+set}" = set; then | |
66e941e8 | 3778 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3779 | else |
7a197a62 AK |
3780 | ac_path_GREP_found=false |
3781 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3783 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3784 | do | |
3785 | IFS=$as_save_IFS | |
3786 | test -z "$as_dir" && as_dir=. | |
3787 | for ac_prog in grep ggrep; do | |
3788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3789 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3790 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3791 | # Check for GNU ac_path_GREP and select it if it is found. | |
3792 | # Check for GNU $ac_path_GREP | |
3793 | case `"$ac_path_GREP" --version 2>&1` in | |
3794 | *GNU*) | |
3795 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3796 | *) | |
3797 | ac_count=0 | |
66e941e8 | 3798 | $as_echo_n 0123456789 >"conftest.in" |
7a197a62 AK |
3799 | while : |
3800 | do | |
3801 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3802 | mv "conftest.tmp" "conftest.in" | |
3803 | cp "conftest.in" "conftest.nl" | |
66e941e8 | 3804 | $as_echo 'GREP' >> "conftest.nl" |
7a197a62 AK |
3805 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3806 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3807 | ac_count=`expr $ac_count + 1` | |
3808 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3809 | # Best one so far, save it but keep looking for a better one | |
3810 | ac_cv_path_GREP="$ac_path_GREP" | |
3811 | ac_path_GREP_max=$ac_count | |
ad6254c5 | 3812 | fi |
7a197a62 AK |
3813 | # 10*(2^10) chars as input seems more than enough |
3814 | test $ac_count -gt 10 && break | |
3815 | done | |
3816 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3817 | esac | |
80992638 | 3818 | |
795ca3e5 | 3819 | |
7a197a62 AK |
3820 | $ac_path_GREP_found && break 3 |
3821 | done | |
3822 | done | |
ad6254c5 | 3823 | |
7a197a62 AK |
3824 | done |
3825 | IFS=$as_save_IFS | |
ad6254c5 | 3826 | |
ad6254c5 | 3827 | |
795ca3e5 | 3828 | fi |
ad6254c5 | 3829 | |
7a197a62 AK |
3830 | GREP="$ac_cv_path_GREP" |
3831 | if test -z "$GREP"; then | |
66e941e8 JM |
3832 | { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3833 | $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
3834 | { (exit 1); exit 1; }; } |
3835 | fi | |
3836 | ||
3837 | else | |
3838 | ac_cv_path_GREP=$GREP | |
3839 | fi | |
3840 | ||
3841 | ||
3842 | fi | |
66e941e8 JM |
3843 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3844 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7a197a62 AK |
3845 | GREP="$ac_cv_path_GREP" |
3846 | ||
3847 | ||
66e941e8 JM |
3848 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3849 | $as_echo_n "checking for egrep... " >&6; } | |
7a197a62 | 3850 | if test "${ac_cv_path_EGREP+set}" = set; then |
66e941e8 | 3851 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
3852 | else |
3853 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3854 | then ac_cv_path_EGREP="$GREP -E" | |
3855 | else | |
3856 | # Extract the first word of "egrep" to use in msg output | |
3857 | if test -z "$EGREP"; then | |
3858 | set dummy egrep; ac_prog_name=$2 | |
3859 | if test "${ac_cv_path_EGREP+set}" = set; then | |
66e941e8 | 3860 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
3861 | else |
3862 | ac_path_EGREP_found=false | |
3863 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_prog in egrep; do | |
3870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3871 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3872 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3873 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3874 | # Check for GNU $ac_path_EGREP | |
3875 | case `"$ac_path_EGREP" --version 2>&1` in | |
3876 | *GNU*) | |
3877 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3878 | *) | |
3879 | ac_count=0 | |
66e941e8 | 3880 | $as_echo_n 0123456789 >"conftest.in" |
7a197a62 AK |
3881 | while : |
3882 | do | |
3883 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3884 | mv "conftest.tmp" "conftest.in" | |
3885 | cp "conftest.in" "conftest.nl" | |
66e941e8 | 3886 | $as_echo 'EGREP' >> "conftest.nl" |
7a197a62 AK |
3887 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3888 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3889 | ac_count=`expr $ac_count + 1` | |
3890 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3891 | # Best one so far, save it but keep looking for a better one | |
3892 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3893 | ac_path_EGREP_max=$ac_count | |
3894 | fi | |
3895 | # 10*(2^10) chars as input seems more than enough | |
3896 | test $ac_count -gt 10 && break | |
3897 | done | |
3898 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3899 | esac | |
3900 | ||
3901 | ||
3902 | $ac_path_EGREP_found && break 3 | |
3903 | done | |
3904 | done | |
3905 | ||
3906 | done | |
3907 | IFS=$as_save_IFS | |
3908 | ||
3909 | ||
3910 | fi | |
3911 | ||
3912 | EGREP="$ac_cv_path_EGREP" | |
3913 | if test -z "$EGREP"; then | |
66e941e8 JM |
3914 | { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3915 | $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
3916 | { (exit 1); exit 1; }; } |
3917 | fi | |
3918 | ||
3919 | else | |
3920 | ac_cv_path_EGREP=$EGREP | |
3921 | fi | |
3922 | ||
3923 | ||
3924 | fi | |
3925 | fi | |
66e941e8 JM |
3926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3927 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7a197a62 AK |
3928 | EGREP="$ac_cv_path_EGREP" |
3929 | ||
3930 | ||
66e941e8 JM |
3931 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3932 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 3933 | if test "${ac_cv_header_stdc+set}" = set; then |
66e941e8 | 3934 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
3935 | else |
3936 | cat >conftest.$ac_ext <<_ACEOF | |
3937 | /* confdefs.h. */ | |
3938 | _ACEOF | |
3939 | cat confdefs.h >>conftest.$ac_ext | |
3940 | cat >>conftest.$ac_ext <<_ACEOF | |
3941 | /* end confdefs.h. */ | |
3942 | #include <stdlib.h> | |
3943 | #include <stdarg.h> | |
3944 | #include <string.h> | |
3945 | #include <float.h> | |
3946 | ||
3947 | int | |
3948 | main () | |
3949 | { | |
3950 | ||
3951 | ; | |
3952 | return 0; | |
3953 | } | |
3954 | _ACEOF | |
3955 | rm -f conftest.$ac_objext | |
3956 | if { (ac_try="$ac_compile" | |
3957 | case "(($ac_try" in | |
3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3959 | *) ac_try_echo=$ac_try;; | |
3960 | esac | |
66e941e8 JM |
3961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3962 | $as_echo "$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 | |
66e941e8 | 3968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
3969 | (exit $ac_status); } && { |
3970 | test -z "$ac_c_werror_flag" || | |
3971 | test ! -s conftest.err | |
3972 | } && test -s conftest.$ac_objext; then | |
3973 | ac_cv_header_stdc=yes | |
3974 | else | |
66e941e8 | 3975 | $as_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 | |
66e941e8 JM |
4067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4068 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4069 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4070 | ac_status=$? |
66e941e8 | 4071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4073 | { (case "(($ac_try" in |
4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4075 | *) ac_try_echo=$ac_try;; | |
4076 | esac | |
66e941e8 JM |
4077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4078 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4079 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4080 | ac_status=$? |
66e941e8 | 4081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4082 | (exit $ac_status); }; }; then |
4083 | : | |
795ca3e5 | 4084 | else |
66e941e8 JM |
4085 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4086 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4087 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4088 | |
ad6254c5 AK |
4089 | ( exit $ac_status ) |
4090 | ac_cv_header_stdc=no | |
80992638 | 4091 | fi |
7a197a62 | 4092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4093 | fi |
7a197a62 AK |
4094 | |
4095 | ||
ad6254c5 AK |
4096 | fi |
4097 | fi | |
66e941e8 JM |
4098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4099 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4100 | if test $ac_cv_header_stdc = yes; then |
4101 | ||
4102 | cat >>confdefs.h <<\_ACEOF | |
4103 | #define STDC_HEADERS 1 | |
4104 | _ACEOF | |
795ca3e5 AK |
4105 | |
4106 | fi | |
4107 | ||
66e941e8 JM |
4108 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4109 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4110 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
66e941e8 | 4111 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4112 | else |
ad6254c5 | 4113 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4114 | /* confdefs.h. */ |
4115 | _ACEOF | |
4116 | cat confdefs.h >>conftest.$ac_ext | |
4117 | cat >>conftest.$ac_ext <<_ACEOF | |
4118 | /* end confdefs.h. */ | |
80992638 | 4119 | #include <sys/types.h> |
ad6254c5 AK |
4120 | #include <sys/wait.h> |
4121 | #ifndef WEXITSTATUS | |
7a197a62 | 4122 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4123 | #endif |
4124 | #ifndef WIFEXITED | |
4125 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4126 | #endif | |
4127 | ||
4128 | int | |
4129 | main () | |
4130 | { | |
4131 | int s; | |
4132 | wait (&s); | |
4133 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4134 | ; | |
4135 | return 0; | |
4136 | } | |
4137 | _ACEOF | |
4138 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4139 | if { (ac_try="$ac_compile" |
4140 | case "(($ac_try" in | |
4141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4142 | *) ac_try_echo=$ac_try;; | |
4143 | esac | |
66e941e8 JM |
4144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4145 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4146 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4147 | ac_status=$? |
8a2fc586 AK |
4148 | grep -v '^ *+' conftest.er1 >conftest.err |
4149 | rm -f conftest.er1 | |
4150 | cat conftest.err >&5 | |
66e941e8 | 4151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4152 | (exit $ac_status); } && { |
4153 | test -z "$ac_c_werror_flag" || | |
4154 | test ! -s conftest.err | |
4155 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4156 | ac_cv_header_sys_wait_h=yes |
4157 | else | |
66e941e8 | 4158 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4159 | sed 's/^/| /' conftest.$ac_ext >&5 |
4160 | ||
7a197a62 | 4161 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4162 | fi |
7a197a62 AK |
4163 | |
4164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4165 | fi |
66e941e8 JM |
4166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4167 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4168 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4169 | |
ad6254c5 AK |
4170 | cat >>confdefs.h <<\_ACEOF |
4171 | #define HAVE_SYS_WAIT_H 1 | |
4172 | _ACEOF | |
795ca3e5 AK |
4173 | |
4174 | fi | |
4175 | ||
66e941e8 JM |
4176 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4177 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4178 | if test "${ac_cv_header_time+set}" = set; then |
66e941e8 | 4179 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4180 | else |
ad6254c5 | 4181 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4182 | /* confdefs.h. */ |
4183 | _ACEOF | |
4184 | cat confdefs.h >>conftest.$ac_ext | |
4185 | cat >>conftest.$ac_ext <<_ACEOF | |
4186 | /* end confdefs.h. */ | |
795ca3e5 AK |
4187 | #include <sys/types.h> |
4188 | #include <sys/time.h> | |
4189 | #include <time.h> | |
ad6254c5 AK |
4190 | |
4191 | int | |
4192 | main () | |
4193 | { | |
4194 | if ((struct tm *) 0) | |
4195 | return 0; | |
4196 | ; | |
4197 | return 0; | |
4198 | } | |
4199 | _ACEOF | |
4200 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4201 | if { (ac_try="$ac_compile" |
4202 | case "(($ac_try" in | |
4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4204 | *) ac_try_echo=$ac_try;; | |
4205 | esac | |
66e941e8 JM |
4206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4207 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4208 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4209 | ac_status=$? |
8a2fc586 AK |
4210 | grep -v '^ *+' conftest.er1 >conftest.err |
4211 | rm -f conftest.er1 | |
4212 | cat conftest.err >&5 | |
66e941e8 | 4213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4214 | (exit $ac_status); } && { |
4215 | test -z "$ac_c_werror_flag" || | |
4216 | test ! -s conftest.err | |
4217 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4218 | ac_cv_header_time=yes |
4219 | else | |
66e941e8 | 4220 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
4222 | ||
7a197a62 | 4223 | ac_cv_header_time=no |
795ca3e5 | 4224 | fi |
7a197a62 AK |
4225 | |
4226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4227 | fi |
66e941e8 JM |
4228 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4229 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4230 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4231 | |
4232 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4233 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4234 | _ACEOF |
b896caa1 | 4235 | |
8106cdd5 | 4236 | fi |
b896caa1 | 4237 | |
b896caa1 | 4238 | |
ad6254c5 | 4239 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 4240 | |
b896caa1 AK |
4241 | |
4242 | ||
795ca3e5 | 4243 | |
8106cdd5 | 4244 | |
80992638 | 4245 | |
795ca3e5 | 4246 | |
a38df97f | 4247 | |
80992638 | 4248 | |
ad6254c5 | 4249 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 4250 | inttypes.h stdint.h unistd.h |
ad6254c5 | 4251 | do |
66e941e8 JM |
4252 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4253 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4254 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4255 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4256 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
4257 | else |
4258 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4259 | /* confdefs.h. */ |
4260 | _ACEOF | |
4261 | cat confdefs.h >>conftest.$ac_ext | |
4262 | cat >>conftest.$ac_ext <<_ACEOF | |
4263 | /* end confdefs.h. */ | |
4264 | $ac_includes_default | |
4265 | ||
4266 | #include <$ac_header> | |
4267 | _ACEOF | |
4268 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4269 | if { (ac_try="$ac_compile" |
4270 | case "(($ac_try" in | |
4271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4272 | *) ac_try_echo=$ac_try;; | |
4273 | esac | |
66e941e8 JM |
4274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4275 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4276 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4277 | ac_status=$? |
8a2fc586 AK |
4278 | grep -v '^ *+' conftest.er1 >conftest.err |
4279 | rm -f conftest.er1 | |
4280 | cat conftest.err >&5 | |
66e941e8 | 4281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4282 | (exit $ac_status); } && { |
4283 | test -z "$ac_c_werror_flag" || | |
4284 | test ! -s conftest.err | |
4285 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4286 | eval "$as_ac_Header=yes" |
4287 | else | |
66e941e8 | 4288 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4289 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4290 | |
7a197a62 | 4291 | eval "$as_ac_Header=no" |
ad6254c5 | 4292 | fi |
7a197a62 AK |
4293 | |
4294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a38df97f | 4295 | fi |
66e941e8 JM |
4296 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4297 | $as_echo "$as_val"'` | |
4298 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4299 | $as_echo "$ac_res" >&6; } | |
4300 | if test `eval 'as_val=${'$as_ac_Header'} | |
4301 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4302 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 4303 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4304 | _ACEOF |
a38df97f | 4305 | |
80992638 AK |
4306 | fi |
4307 | ||
ad6254c5 AK |
4308 | done |
4309 | ||
7d1552c9 | 4310 | |
7d1552c9 | 4311 | |
80992638 | 4312 | |
5a52dca9 | 4313 | |
5a52dca9 | 4314 | |
ad6254c5 AK |
4315 | |
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h | |
4321 | do | |
66e941e8 | 4322 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
4324 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4325 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4327 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4328 | fi |
66e941e8 JM |
4329 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4330 | $as_echo "$as_val"'` | |
4331 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4332 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4333 | else |
4334 | # Is the header compilable? | |
66e941e8 JM |
4335 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4336 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4337 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4338 | /* confdefs.h. */ |
4339 | _ACEOF | |
4340 | cat confdefs.h >>conftest.$ac_ext | |
4341 | cat >>conftest.$ac_ext <<_ACEOF | |
4342 | /* end confdefs.h. */ | |
4343 | $ac_includes_default | |
4344 | #include <$ac_header> | |
4345 | _ACEOF | |
4346 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4347 | if { (ac_try="$ac_compile" |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
66e941e8 JM |
4352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4353 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4354 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4355 | ac_status=$? |
8a2fc586 AK |
4356 | grep -v '^ *+' conftest.er1 >conftest.err |
4357 | rm -f conftest.er1 | |
4358 | cat conftest.err >&5 | |
66e941e8 | 4359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4360 | (exit $ac_status); } && { |
4361 | test -z "$ac_c_werror_flag" || | |
4362 | test ! -s conftest.err | |
4363 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4364 | ac_header_compiler=yes |
4365 | else | |
66e941e8 | 4366 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4367 | sed 's/^/| /' conftest.$ac_ext >&5 |
4368 | ||
7a197a62 | 4369 | ac_header_compiler=no |
ad6254c5 | 4370 | fi |
7a197a62 AK |
4371 | |
4372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
4373 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4374 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4375 | |
4376 | # Is the header present? | |
66e941e8 JM |
4377 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4378 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4379 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4380 | /* confdefs.h. */ |
4381 | _ACEOF | |
4382 | cat confdefs.h >>conftest.$ac_ext | |
4383 | cat >>conftest.$ac_ext <<_ACEOF | |
4384 | /* end confdefs.h. */ | |
4385 | #include <$ac_header> | |
4386 | _ACEOF | |
7a197a62 AK |
4387 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4388 | case "(($ac_try" in | |
4389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4390 | *) ac_try_echo=$ac_try;; | |
4391 | esac | |
66e941e8 JM |
4392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4393 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4395 | ac_status=$? |
4396 | grep -v '^ *+' conftest.er1 >conftest.err | |
4397 | rm -f conftest.er1 | |
4398 | cat conftest.err >&5 | |
66e941e8 | 4399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4400 | (exit $ac_status); } >/dev/null && { |
4401 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4402 | test ! -s conftest.err | |
4403 | }; then | |
ad6254c5 AK |
4404 | ac_header_preproc=yes |
4405 | else | |
66e941e8 | 4406 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4407 | sed 's/^/| /' conftest.$ac_ext >&5 |
4408 | ||
4409 | ac_header_preproc=no | |
4410 | fi | |
7a197a62 | 4411 | |
ad6254c5 | 4412 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
4413 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4414 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4415 | |
4416 | # So? What about this header? | |
8a2fc586 AK |
4417 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4418 | yes:no: ) | |
66e941e8 JM |
4419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4420 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4422 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4423 | ac_header_preproc=yes |
ad6254c5 | 4424 | ;; |
8a2fc586 | 4425 | no:yes:* ) |
66e941e8 JM |
4426 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4427 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4429 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4430 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4431 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4432 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4433 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4434 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4435 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4437 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4438 | |
ad6254c5 AK |
4439 | ;; |
4440 | esac | |
66e941e8 JM |
4441 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4442 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4443 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4444 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4445 | else |
8a2fc586 | 4446 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4447 | fi |
66e941e8 JM |
4448 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4449 | $as_echo "$as_val"'` | |
4450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4451 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4452 | |
4453 | fi | |
66e941e8 JM |
4454 | if test `eval 'as_val=${'$as_ac_Header'} |
4455 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4456 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 4457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4458 | _ACEOF |
b896caa1 | 4459 | |
d8ac0fbc | 4460 | else |
66e941e8 JM |
4461 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4462 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4463 | { (exit 1); exit 1; }; } |
80992638 AK |
4464 | fi |
4465 | ||
ad6254c5 | 4466 | done |
d8ac0fbc | 4467 | |
d8ac0fbc | 4468 | |
d8ac0fbc | 4469 | |
80992638 | 4470 | |
d3c8211f | 4471 | |
d3c8211f | 4472 | |
d3c8211f | 4473 | |
80992638 | 4474 | |
4922197a | 4475 | |
4922197a | 4476 | |
ad6254c5 AK |
4477 | |
4478 | ||
4479 | ||
4480 | for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h | |
4481 | do | |
66e941e8 | 4482 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
4484 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4485 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4487 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4488 | fi |
66e941e8 JM |
4489 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4490 | $as_echo "$as_val"'` | |
4491 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4492 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4493 | else |
4494 | # Is the header compilable? | |
66e941e8 JM |
4495 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4496 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4497 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4498 | /* confdefs.h. */ |
4499 | _ACEOF | |
4500 | cat confdefs.h >>conftest.$ac_ext | |
4501 | cat >>conftest.$ac_ext <<_ACEOF | |
4502 | /* end confdefs.h. */ | |
4503 | $ac_includes_default | |
4504 | #include <$ac_header> | |
4505 | _ACEOF | |
4506 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4507 | if { (ac_try="$ac_compile" |
4508 | case "(($ac_try" in | |
4509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4510 | *) ac_try_echo=$ac_try;; | |
4511 | esac | |
66e941e8 JM |
4512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4513 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4514 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4515 | ac_status=$? |
8a2fc586 AK |
4516 | grep -v '^ *+' conftest.er1 >conftest.err |
4517 | rm -f conftest.er1 | |
4518 | cat conftest.err >&5 | |
66e941e8 | 4519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4520 | (exit $ac_status); } && { |
4521 | test -z "$ac_c_werror_flag" || | |
4522 | test ! -s conftest.err | |
4523 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4524 | ac_header_compiler=yes |
4525 | else | |
66e941e8 | 4526 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4527 | sed 's/^/| /' conftest.$ac_ext >&5 |
4528 | ||
7a197a62 | 4529 | ac_header_compiler=no |
ad6254c5 | 4530 | fi |
7a197a62 AK |
4531 | |
4532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
4533 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4534 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4535 | |
4536 | # Is the header present? | |
66e941e8 JM |
4537 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4538 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4539 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4540 | /* confdefs.h. */ |
4541 | _ACEOF | |
4542 | cat confdefs.h >>conftest.$ac_ext | |
4543 | cat >>conftest.$ac_ext <<_ACEOF | |
4544 | /* end confdefs.h. */ | |
4545 | #include <$ac_header> | |
4546 | _ACEOF | |
7a197a62 AK |
4547 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4548 | case "(($ac_try" in | |
4549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4550 | *) ac_try_echo=$ac_try;; | |
4551 | esac | |
66e941e8 JM |
4552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4553 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4554 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4555 | ac_status=$? |
4556 | grep -v '^ *+' conftest.er1 >conftest.err | |
4557 | rm -f conftest.er1 | |
4558 | cat conftest.err >&5 | |
66e941e8 | 4559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4560 | (exit $ac_status); } >/dev/null && { |
4561 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4562 | test ! -s conftest.err | |
4563 | }; then | |
ad6254c5 AK |
4564 | ac_header_preproc=yes |
4565 | else | |
66e941e8 | 4566 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4567 | sed 's/^/| /' conftest.$ac_ext >&5 |
4568 | ||
4569 | ac_header_preproc=no | |
4570 | fi | |
7a197a62 | 4571 | |
ad6254c5 | 4572 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
4573 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4574 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4575 | |
4576 | # So? What about this header? | |
8a2fc586 AK |
4577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4578 | yes:no: ) | |
66e941e8 JM |
4579 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4580 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4582 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4583 | ac_header_preproc=yes |
ad6254c5 | 4584 | ;; |
8a2fc586 | 4585 | no:yes:* ) |
66e941e8 JM |
4586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4587 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4589 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4591 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4593 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4595 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4596 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4597 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4598 | |
ad6254c5 AK |
4599 | ;; |
4600 | esac | |
66e941e8 JM |
4601 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4602 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4604 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4605 | else |
8a2fc586 | 4606 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4607 | fi |
66e941e8 JM |
4608 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4609 | $as_echo "$as_val"'` | |
4610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4611 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4612 | |
4613 | fi | |
66e941e8 JM |
4614 | if test `eval 'as_val=${'$as_ac_Header'} |
4615 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4616 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 4617 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4618 | _ACEOF |
4922197a | 4619 | |
4922197a | 4620 | else |
66e941e8 JM |
4621 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4622 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4623 | { (exit 1); exit 1; }; } |
80992638 AK |
4624 | fi |
4625 | ||
ad6254c5 | 4626 | done |
4922197a | 4627 | |
4922197a | 4628 | |
ad6254c5 AK |
4629 | case "$host_os" in |
4630 | linux*) | |
4922197a | 4631 | |
ad6254c5 AK |
4632 | |
4633 | ||
4634 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4635 | do | |
66e941e8 | 4636 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
4638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4639 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4641 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4642 | fi |
66e941e8 JM |
4643 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4644 | $as_echo "$as_val"'` | |
4645 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4646 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 4647 | else |
ad6254c5 | 4648 | # Is the header compilable? |
66e941e8 JM |
4649 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4650 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4651 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4652 | /* confdefs.h. */ |
4653 | _ACEOF | |
4654 | cat confdefs.h >>conftest.$ac_ext | |
4655 | cat >>conftest.$ac_ext <<_ACEOF | |
4656 | /* end confdefs.h. */ | |
4657 | $ac_includes_default | |
4658 | #include <$ac_header> | |
4659 | _ACEOF | |
4660 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4661 | if { (ac_try="$ac_compile" |
4662 | case "(($ac_try" in | |
4663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4664 | *) ac_try_echo=$ac_try;; | |
4665 | esac | |
66e941e8 JM |
4666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4667 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4668 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4669 | ac_status=$? |
8a2fc586 AK |
4670 | grep -v '^ *+' conftest.er1 >conftest.err |
4671 | rm -f conftest.er1 | |
4672 | cat conftest.err >&5 | |
66e941e8 | 4673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4674 | (exit $ac_status); } && { |
4675 | test -z "$ac_c_werror_flag" || | |
4676 | test ! -s conftest.err | |
4677 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4678 | ac_header_compiler=yes |
4679 | else | |
66e941e8 | 4680 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4681 | sed 's/^/| /' conftest.$ac_ext >&5 |
4682 | ||
7a197a62 | 4683 | ac_header_compiler=no |
ad6254c5 | 4684 | fi |
7a197a62 AK |
4685 | |
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
4687 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4688 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4689 | |
4690 | # Is the header present? | |
66e941e8 JM |
4691 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4692 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4693 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4694 | /* confdefs.h. */ |
4695 | _ACEOF | |
4696 | cat confdefs.h >>conftest.$ac_ext | |
4697 | cat >>conftest.$ac_ext <<_ACEOF | |
4698 | /* end confdefs.h. */ | |
4699 | #include <$ac_header> | |
4700 | _ACEOF | |
7a197a62 AK |
4701 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4702 | case "(($ac_try" in | |
4703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4704 | *) ac_try_echo=$ac_try;; | |
4705 | esac | |
66e941e8 JM |
4706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4707 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4709 | ac_status=$? |
4710 | grep -v '^ *+' conftest.er1 >conftest.err | |
4711 | rm -f conftest.er1 | |
4712 | cat conftest.err >&5 | |
66e941e8 | 4713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4714 | (exit $ac_status); } >/dev/null && { |
4715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4716 | test ! -s conftest.err | |
4717 | }; then | |
ad6254c5 AK |
4718 | ac_header_preproc=yes |
4719 | else | |
66e941e8 | 4720 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4721 | sed 's/^/| /' conftest.$ac_ext >&5 |
4722 | ||
4723 | ac_header_preproc=no | |
4724 | fi | |
7a197a62 | 4725 | |
ad6254c5 | 4726 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
4727 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4728 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4729 | |
4730 | # So? What about this header? | |
8a2fc586 AK |
4731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4732 | yes:no: ) | |
66e941e8 JM |
4733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4734 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4736 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4737 | ac_header_preproc=yes |
ad6254c5 | 4738 | ;; |
8a2fc586 | 4739 | no:yes:* ) |
66e941e8 JM |
4740 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4741 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4742 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4743 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4745 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4746 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4747 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4749 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4751 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4752 | |
ad6254c5 AK |
4753 | ;; |
4754 | esac | |
66e941e8 JM |
4755 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4756 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4758 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4759 | else |
8a2fc586 | 4760 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4761 | fi |
66e941e8 JM |
4762 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4763 | $as_echo "$as_val"'` | |
4764 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4765 | $as_echo "$ac_res" >&6; } | |
80992638 | 4766 | |
ad6254c5 | 4767 | fi |
66e941e8 JM |
4768 | if test `eval 'as_val=${'$as_ac_Header'} |
4769 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4770 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 4771 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4772 | _ACEOF |
795ca3e5 | 4773 | |
795ca3e5 | 4774 | else |
66e941e8 JM |
4775 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4776 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4777 | { (exit 1); exit 1; }; } |
80992638 AK |
4778 | fi |
4779 | ||
ad6254c5 AK |
4780 | done |
4781 | ;; | |
4782 | darwin*) | |
4783 | ||
795ca3e5 | 4784 | |
ad6254c5 AK |
4785 | for ac_header in machine/endian.h sys/disk.h |
4786 | do | |
66e941e8 | 4787 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
4789 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4790 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4792 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4793 | fi |
66e941e8 JM |
4794 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4795 | $as_echo "$as_val"'` | |
4796 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4797 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4798 | else |
4799 | # Is the header compilable? | |
66e941e8 JM |
4800 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4801 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4802 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4803 | /* confdefs.h. */ |
4804 | _ACEOF | |
4805 | cat confdefs.h >>conftest.$ac_ext | |
4806 | cat >>conftest.$ac_ext <<_ACEOF | |
4807 | /* end confdefs.h. */ | |
4808 | $ac_includes_default | |
4809 | #include <$ac_header> | |
4810 | _ACEOF | |
4811 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4812 | if { (ac_try="$ac_compile" |
4813 | case "(($ac_try" in | |
4814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4815 | *) ac_try_echo=$ac_try;; | |
4816 | esac | |
66e941e8 JM |
4817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4818 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4819 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4820 | ac_status=$? |
8a2fc586 AK |
4821 | grep -v '^ *+' conftest.er1 >conftest.err |
4822 | rm -f conftest.er1 | |
4823 | cat conftest.err >&5 | |
66e941e8 | 4824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4825 | (exit $ac_status); } && { |
4826 | test -z "$ac_c_werror_flag" || | |
4827 | test ! -s conftest.err | |
4828 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4829 | ac_header_compiler=yes |
4830 | else | |
66e941e8 | 4831 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4832 | sed 's/^/| /' conftest.$ac_ext >&5 |
4833 | ||
7a197a62 | 4834 | ac_header_compiler=no |
ad6254c5 | 4835 | fi |
7a197a62 AK |
4836 | |
4837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
4838 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4839 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4840 | |
4841 | # Is the header present? | |
66e941e8 JM |
4842 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4843 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4844 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4845 | /* confdefs.h. */ |
4846 | _ACEOF | |
4847 | cat confdefs.h >>conftest.$ac_ext | |
4848 | cat >>conftest.$ac_ext <<_ACEOF | |
4849 | /* end confdefs.h. */ | |
4850 | #include <$ac_header> | |
4851 | _ACEOF | |
7a197a62 AK |
4852 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4853 | case "(($ac_try" in | |
4854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4855 | *) ac_try_echo=$ac_try;; | |
4856 | esac | |
66e941e8 JM |
4857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4858 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4859 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4860 | ac_status=$? |
4861 | grep -v '^ *+' conftest.er1 >conftest.err | |
4862 | rm -f conftest.er1 | |
4863 | cat conftest.err >&5 | |
66e941e8 | 4864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
4865 | (exit $ac_status); } >/dev/null && { |
4866 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4867 | test ! -s conftest.err | |
4868 | }; then | |
ad6254c5 AK |
4869 | ac_header_preproc=yes |
4870 | else | |
66e941e8 | 4871 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4872 | sed 's/^/| /' conftest.$ac_ext >&5 |
4873 | ||
4874 | ac_header_preproc=no | |
4875 | fi | |
7a197a62 | 4876 | |
ad6254c5 | 4877 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
4878 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4879 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4880 | |
4881 | # So? What about this header? | |
8a2fc586 AK |
4882 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4883 | yes:no: ) | |
66e941e8 JM |
4884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4885 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4887 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4888 | ac_header_preproc=yes |
ad6254c5 | 4889 | ;; |
8a2fc586 | 4890 | no:yes:* ) |
66e941e8 JM |
4891 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4892 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4893 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4894 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4895 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4896 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4898 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4900 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4902 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4903 | |
ad6254c5 AK |
4904 | ;; |
4905 | esac | |
66e941e8 JM |
4906 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4907 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 4909 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4910 | else |
8a2fc586 | 4911 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4912 | fi |
66e941e8 JM |
4913 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4914 | $as_echo "$as_val"'` | |
4915 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4916 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 4917 | |
ad6254c5 | 4918 | fi |
66e941e8 JM |
4919 | if test `eval 'as_val=${'$as_ac_Header'} |
4920 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4921 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 4922 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
4923 | _ACEOF |
4924 | ||
4925 | else | |
66e941e8 JM |
4926 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4927 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4928 | { (exit 1); exit 1; }; } |
80992638 AK |
4929 | fi |
4930 | ||
ad6254c5 AK |
4931 | done |
4932 | ;; | |
4933 | esac | |
d3c8211f | 4934 | |
80992638 | 4935 | ################################################################################ |
66e941e8 JM |
4936 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4937 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 4938 | if test "${ac_cv_c_const+set}" = set; then |
66e941e8 | 4939 | $as_echo_n "(cached) " >&6 |
d3c8211f | 4940 | else |
ad6254c5 | 4941 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4942 | /* confdefs.h. */ |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
4947 | ||
4948 | int | |
4949 | main () | |
4950 | { | |
4951 | /* FIXME: Include the comments suggested by Paul. */ | |
4952 | #ifndef __cplusplus | |
4953 | /* Ultrix mips cc rejects this. */ | |
4954 | typedef int charset[2]; | |
7a197a62 | 4955 | const charset cs; |
ad6254c5 | 4956 | /* SunOS 4.1.1 cc rejects this. */ |
7a197a62 AK |
4957 | char const *const *pcpcc; |
4958 | char **ppc; | |
ad6254c5 AK |
4959 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4960 | struct point {int x, y;}; | |
4961 | static struct point const zero = {0,0}; | |
4962 | /* AIX XL C 1.02.0.0 rejects this. | |
4963 | It does not let you subtract one const X* pointer from another in | |
4964 | an arm of an if-expression whose if-part is not a constant | |
4965 | expression */ | |
4966 | const char *g = "string"; | |
7a197a62 | 4967 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 4968 | /* HPUX 7.0 cc rejects these. */ |
7a197a62 AK |
4969 | ++pcpcc; |
4970 | ppc = (char**) pcpcc; | |
4971 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
4972 | { /* SCO 3.2v4 cc rejects this. */ |
4973 | char *t; | |
4974 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4975 | ||
4976 | *t++ = 0; | |
7a197a62 | 4977 | if (s) return 0; |
ad6254c5 AK |
4978 | } |
4979 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4980 | int x[] = {25, 17}; | |
4981 | const int *foo = &x[0]; | |
4982 | ++foo; | |
4983 | } | |
4984 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4985 | typedef const int *iptr; | |
4986 | iptr p = 0; | |
4987 | ++p; | |
4988 | } | |
4989 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4990 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4991 | struct s { int j; const int *ap[3]; }; | |
4992 | struct s *b; b->j = 5; | |
4993 | } | |
4994 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4995 | const int foo = 10; | |
7a197a62 | 4996 | if (!foo) return 0; |
ad6254c5 | 4997 | } |
7a197a62 | 4998 | return !cs[0] && !zero.x; |
ad6254c5 AK |
4999 | #endif |
5000 | ||
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
5005 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5006 | if { (ac_try="$ac_compile" |
5007 | case "(($ac_try" in | |
5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5009 | *) ac_try_echo=$ac_try;; | |
5010 | esac | |
66e941e8 JM |
5011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5012 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5013 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5014 | ac_status=$? |
8a2fc586 AK |
5015 | grep -v '^ *+' conftest.er1 >conftest.err |
5016 | rm -f conftest.er1 | |
5017 | cat conftest.err >&5 | |
66e941e8 | 5018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5019 | (exit $ac_status); } && { |
5020 | test -z "$ac_c_werror_flag" || | |
5021 | test ! -s conftest.err | |
5022 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5023 | ac_cv_c_const=yes |
5024 | else | |
66e941e8 | 5025 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
5027 | ||
7a197a62 | 5028 | ac_cv_c_const=no |
ad6254c5 | 5029 | fi |
7a197a62 AK |
5030 | |
5031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5032 | fi |
66e941e8 JM |
5033 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5034 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5035 | if test $ac_cv_c_const = no; then |
80992638 | 5036 | |
ad6254c5 AK |
5037 | cat >>confdefs.h <<\_ACEOF |
5038 | #define const | |
5039 | _ACEOF | |
80992638 | 5040 | |
d3c8211f | 5041 | fi |
d3c8211f | 5042 | |
66e941e8 JM |
5043 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5044 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5045 | if test "${ac_cv_c_inline+set}" = set; then |
66e941e8 | 5046 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5047 | else |
ad6254c5 AK |
5048 | ac_cv_c_inline=no |
5049 | for ac_kw in inline __inline__ __inline; do | |
5050 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5051 | /* confdefs.h. */ |
5052 | _ACEOF | |
5053 | cat confdefs.h >>conftest.$ac_ext | |
5054 | cat >>conftest.$ac_ext <<_ACEOF | |
5055 | /* end confdefs.h. */ | |
5056 | #ifndef __cplusplus | |
5057 | typedef int foo_t; | |
5058 | static $ac_kw foo_t static_foo () {return 0; } | |
5059 | $ac_kw foo_t foo () {return 0; } | |
5060 | #endif | |
80992638 | 5061 | |
ad6254c5 AK |
5062 | _ACEOF |
5063 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5064 | if { (ac_try="$ac_compile" |
5065 | case "(($ac_try" in | |
5066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5067 | *) ac_try_echo=$ac_try;; | |
5068 | esac | |
66e941e8 JM |
5069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5070 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5071 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5072 | ac_status=$? |
8a2fc586 AK |
5073 | grep -v '^ *+' conftest.er1 >conftest.err |
5074 | rm -f conftest.er1 | |
5075 | cat conftest.err >&5 | |
66e941e8 | 5076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5077 | (exit $ac_status); } && { |
5078 | test -z "$ac_c_werror_flag" || | |
5079 | test ! -s conftest.err | |
5080 | } && test -s conftest.$ac_objext; then | |
5081 | ac_cv_c_inline=$ac_kw | |
ad6254c5 | 5082 | else |
66e941e8 | 5083 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5084 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5085 | |
7a197a62 | 5086 | |
8ce0cbda | 5087 | fi |
7a197a62 AK |
5088 | |
5089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5090 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5091 | done |
8ce0cbda | 5092 | |
8ce0cbda | 5093 | fi |
66e941e8 JM |
5094 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5095 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5096 | |
5097 | ||
ad6254c5 AK |
5098 | case $ac_cv_c_inline in |
5099 | inline | yes) ;; | |
8a2fc586 AK |
5100 | *) |
5101 | case $ac_cv_c_inline in | |
5102 | no) ac_val=;; | |
5103 | *) ac_val=$ac_cv_c_inline;; | |
5104 | esac | |
5105 | cat >>confdefs.h <<_ACEOF | |
5106 | #ifndef __cplusplus | |
5107 | #define inline $ac_val | |
5108 | #endif | |
c1c065a3 | 5109 | _ACEOF |
8a2fc586 | 5110 | ;; |
ad6254c5 | 5111 | esac |
8ce0cbda | 5112 | |
66e941e8 JM |
5113 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
5114 | $as_echo_n "checking for off_t... " >&6; } | |
ad6254c5 | 5115 | if test "${ac_cv_type_off_t+set}" = set; then |
66e941e8 | 5116 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5117 | else |
5118 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5119 | /* confdefs.h. */ |
5120 | _ACEOF | |
5121 | cat confdefs.h >>conftest.$ac_ext | |
5122 | cat >>conftest.$ac_ext <<_ACEOF | |
5123 | /* end confdefs.h. */ | |
5124 | $ac_includes_default | |
7a197a62 | 5125 | typedef off_t ac__type_new_; |
ad6254c5 AK |
5126 | int |
5127 | main () | |
5128 | { | |
7a197a62 | 5129 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5130 | return 0; |
7a197a62 | 5131 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5132 | return 0; |
5133 | ; | |
5134 | return 0; | |
5135 | } | |
5136 | _ACEOF | |
5137 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5138 | if { (ac_try="$ac_compile" |
5139 | case "(($ac_try" in | |
5140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5141 | *) ac_try_echo=$ac_try;; | |
5142 | esac | |
66e941e8 JM |
5143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5144 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5145 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5146 | ac_status=$? |
8a2fc586 AK |
5147 | grep -v '^ *+' conftest.er1 >conftest.err |
5148 | rm -f conftest.er1 | |
5149 | cat conftest.err >&5 | |
66e941e8 | 5150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5151 | (exit $ac_status); } && { |
5152 | test -z "$ac_c_werror_flag" || | |
5153 | test ! -s conftest.err | |
5154 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5155 | ac_cv_type_off_t=yes |
5156 | else | |
66e941e8 | 5157 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5158 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5159 | |
7a197a62 | 5160 | ac_cv_type_off_t=no |
80992638 | 5161 | fi |
7a197a62 AK |
5162 | |
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5164 | fi |
66e941e8 JM |
5165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5166 | $as_echo "$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5167 | if test $ac_cv_type_off_t = yes; then |
5168 | : | |
5169 | else | |
80992638 | 5170 | |
ad6254c5 | 5171 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5172 | #define off_t long int |
ad6254c5 | 5173 | _ACEOF |
199e490e | 5174 | |
b896caa1 AK |
5175 | fi |
5176 | ||
66e941e8 JM |
5177 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
5178 | $as_echo_n "checking for pid_t... " >&6; } | |
ad6254c5 | 5179 | if test "${ac_cv_type_pid_t+set}" = set; then |
66e941e8 | 5180 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5181 | else |
5182 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5183 | /* confdefs.h. */ |
5184 | _ACEOF | |
5185 | cat confdefs.h >>conftest.$ac_ext | |
5186 | cat >>conftest.$ac_ext <<_ACEOF | |
5187 | /* end confdefs.h. */ | |
5188 | $ac_includes_default | |
7a197a62 | 5189 | typedef pid_t ac__type_new_; |
ad6254c5 AK |
5190 | int |
5191 | main () | |
5192 | { | |
7a197a62 | 5193 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5194 | return 0; |
7a197a62 | 5195 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5196 | return 0; |
5197 | ; | |
5198 | return 0; | |
5199 | } | |
5200 | _ACEOF | |
5201 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5202 | if { (ac_try="$ac_compile" |
5203 | case "(($ac_try" in | |
5204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5205 | *) ac_try_echo=$ac_try;; | |
5206 | esac | |
66e941e8 JM |
5207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5208 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5209 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5210 | ac_status=$? |
8a2fc586 AK |
5211 | grep -v '^ *+' conftest.er1 >conftest.err |
5212 | rm -f conftest.er1 | |
5213 | cat conftest.err >&5 | |
66e941e8 | 5214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5215 | (exit $ac_status); } && { |
5216 | test -z "$ac_c_werror_flag" || | |
5217 | test ! -s conftest.err | |
5218 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5219 | ac_cv_type_pid_t=yes |
5220 | else | |
66e941e8 | 5221 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5222 | sed 's/^/| /' conftest.$ac_ext >&5 |
5223 | ||
7a197a62 | 5224 | ac_cv_type_pid_t=no |
ad6254c5 | 5225 | fi |
7a197a62 AK |
5226 | |
5227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5228 | fi |
66e941e8 JM |
5229 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5230 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5231 | if test $ac_cv_type_pid_t = yes; then |
5232 | : | |
5233 | else | |
80992638 | 5234 | |
ad6254c5 AK |
5235 | cat >>confdefs.h <<_ACEOF |
5236 | #define pid_t int | |
5237 | _ACEOF | |
2dc95e1c | 5238 | |
2dc95e1c AK |
5239 | fi |
5240 | ||
66e941e8 JM |
5241 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5242 | $as_echo_n "checking for size_t... " >&6; } | |
ad6254c5 | 5243 | if test "${ac_cv_type_size_t+set}" = set; then |
66e941e8 | 5244 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 5245 | else |
ad6254c5 | 5246 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5247 | /* confdefs.h. */ |
5248 | _ACEOF | |
5249 | cat confdefs.h >>conftest.$ac_ext | |
5250 | cat >>conftest.$ac_ext <<_ACEOF | |
5251 | /* end confdefs.h. */ | |
5252 | $ac_includes_default | |
7a197a62 | 5253 | typedef size_t ac__type_new_; |
ad6254c5 AK |
5254 | int |
5255 | main () | |
5256 | { | |
7a197a62 | 5257 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5258 | return 0; |
7a197a62 | 5259 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5260 | return 0; |
5261 | ; | |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
5265 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5266 | if { (ac_try="$ac_compile" |
5267 | case "(($ac_try" in | |
5268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5269 | *) ac_try_echo=$ac_try;; | |
5270 | esac | |
66e941e8 JM |
5271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5272 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5273 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5274 | ac_status=$? |
8a2fc586 AK |
5275 | grep -v '^ *+' conftest.er1 >conftest.err |
5276 | rm -f conftest.er1 | |
5277 | cat conftest.err >&5 | |
66e941e8 | 5278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5279 | (exit $ac_status); } && { |
5280 | test -z "$ac_c_werror_flag" || | |
5281 | test ! -s conftest.err | |
5282 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5283 | ac_cv_type_size_t=yes |
5284 | else | |
66e941e8 | 5285 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
5287 | ||
7a197a62 | 5288 | ac_cv_type_size_t=no |
80992638 | 5289 | fi |
7a197a62 AK |
5290 | |
5291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5292 | fi |
66e941e8 JM |
5293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5294 | $as_echo "$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5295 | if test $ac_cv_type_size_t = yes; then |
5296 | : | |
5297 | else | |
80992638 | 5298 | |
ad6254c5 | 5299 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5300 | #define size_t unsigned int |
ad6254c5 | 5301 | _ACEOF |
8106cdd5 | 5302 | |
8106cdd5 AK |
5303 | fi |
5304 | ||
66e941e8 JM |
5305 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
5306 | $as_echo_n "checking for mode_t... " >&6; } | |
ad6254c5 | 5307 | if test "${ac_cv_type_mode_t+set}" = set; then |
66e941e8 | 5308 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5309 | else |
5310 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5311 | /* confdefs.h. */ |
5312 | _ACEOF | |
5313 | cat confdefs.h >>conftest.$ac_ext | |
5314 | cat >>conftest.$ac_ext <<_ACEOF | |
5315 | /* end confdefs.h. */ | |
5316 | $ac_includes_default | |
7a197a62 | 5317 | typedef mode_t ac__type_new_; |
ad6254c5 AK |
5318 | int |
5319 | main () | |
5320 | { | |
7a197a62 | 5321 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5322 | return 0; |
7a197a62 | 5323 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5324 | return 0; |
5325 | ; | |
5326 | return 0; | |
5327 | } | |
5328 | _ACEOF | |
5329 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5330 | if { (ac_try="$ac_compile" |
5331 | case "(($ac_try" in | |
5332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5333 | *) ac_try_echo=$ac_try;; | |
5334 | esac | |
66e941e8 JM |
5335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5336 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5337 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5338 | ac_status=$? |
8a2fc586 AK |
5339 | grep -v '^ *+' conftest.er1 >conftest.err |
5340 | rm -f conftest.er1 | |
5341 | cat conftest.err >&5 | |
66e941e8 | 5342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5343 | (exit $ac_status); } && { |
5344 | test -z "$ac_c_werror_flag" || | |
5345 | test ! -s conftest.err | |
5346 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5347 | ac_cv_type_mode_t=yes |
5348 | else | |
66e941e8 | 5349 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5350 | sed 's/^/| /' conftest.$ac_ext >&5 |
5351 | ||
7a197a62 | 5352 | ac_cv_type_mode_t=no |
80992638 | 5353 | fi |
7a197a62 AK |
5354 | |
5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5356 | fi |
66e941e8 JM |
5357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5358 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5359 | if test $ac_cv_type_mode_t = yes; then |
5360 | : | |
5361 | else | |
80992638 | 5362 | |
ad6254c5 AK |
5363 | cat >>confdefs.h <<_ACEOF |
5364 | #define mode_t int | |
5365 | _ACEOF | |
5366 | ||
5367 | fi | |
5368 | ||
66e941e8 JM |
5369 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5370 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 5371 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
66e941e8 | 5372 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5373 | else |
5374 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5375 | /* confdefs.h. */ |
5376 | _ACEOF | |
5377 | cat confdefs.h >>conftest.$ac_ext | |
5378 | cat >>conftest.$ac_ext <<_ACEOF | |
5379 | /* end confdefs.h. */ | |
5380 | $ac_includes_default | |
5381 | int | |
5382 | main () | |
5383 | { | |
5384 | static struct stat ac_aggr; | |
5385 | if (ac_aggr.st_rdev) | |
5386 | return 0; | |
5387 | ; | |
5388 | return 0; | |
5389 | } | |
5390 | _ACEOF | |
5391 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5392 | if { (ac_try="$ac_compile" |
5393 | case "(($ac_try" in | |
5394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5395 | *) ac_try_echo=$ac_try;; | |
5396 | esac | |
66e941e8 JM |
5397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5398 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5399 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5400 | ac_status=$? |
8a2fc586 AK |
5401 | grep -v '^ *+' conftest.er1 >conftest.err |
5402 | rm -f conftest.er1 | |
5403 | cat conftest.err >&5 | |
66e941e8 | 5404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5405 | (exit $ac_status); } && { |
5406 | test -z "$ac_c_werror_flag" || | |
5407 | test ! -s conftest.err | |
5408 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5409 | ac_cv_member_struct_stat_st_rdev=yes |
5410 | else | |
66e941e8 | 5411 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
5413 | ||
7a197a62 | 5414 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5415 | /* confdefs.h. */ |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | $ac_includes_default | |
5421 | int | |
5422 | main () | |
5423 | { | |
5424 | static struct stat ac_aggr; | |
5425 | if (sizeof ac_aggr.st_rdev) | |
5426 | return 0; | |
5427 | ; | |
5428 | return 0; | |
5429 | } | |
5430 | _ACEOF | |
5431 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5432 | if { (ac_try="$ac_compile" |
5433 | case "(($ac_try" in | |
5434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5435 | *) ac_try_echo=$ac_try;; | |
5436 | esac | |
66e941e8 JM |
5437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5438 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5439 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5440 | ac_status=$? |
8a2fc586 AK |
5441 | grep -v '^ *+' conftest.er1 >conftest.err |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
66e941e8 | 5444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5445 | (exit $ac_status); } && { |
5446 | test -z "$ac_c_werror_flag" || | |
5447 | test ! -s conftest.err | |
5448 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5449 | ac_cv_member_struct_stat_st_rdev=yes |
5450 | else | |
66e941e8 | 5451 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 |
5453 | ||
7a197a62 | 5454 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5455 | fi |
7a197a62 AK |
5456 | |
5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5458 | fi |
7a197a62 AK |
5459 | |
5460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5461 | fi |
66e941e8 JM |
5462 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5463 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5464 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5465 | ||
5466 | cat >>confdefs.h <<_ACEOF | |
5467 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5468 | _ACEOF | |
5469 | ||
5470 | ||
ad6254c5 AK |
5471 | fi |
5472 | ||
66e941e8 JM |
5473 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5474 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 5475 | if test "${ac_cv_struct_tm+set}" = set; then |
66e941e8 | 5476 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5477 | else |
5478 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5479 | /* confdefs.h. */ |
5480 | _ACEOF | |
5481 | cat confdefs.h >>conftest.$ac_ext | |
5482 | cat >>conftest.$ac_ext <<_ACEOF | |
5483 | /* end confdefs.h. */ | |
5484 | #include <sys/types.h> | |
5485 | #include <time.h> | |
5486 | ||
5487 | int | |
5488 | main () | |
5489 | { | |
7a197a62 AK |
5490 | struct tm tm; |
5491 | int *p = &tm.tm_sec; | |
5492 | return !p; | |
ad6254c5 AK |
5493 | ; |
5494 | return 0; | |
5495 | } | |
5496 | _ACEOF | |
5497 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5498 | if { (ac_try="$ac_compile" |
5499 | case "(($ac_try" in | |
5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5501 | *) ac_try_echo=$ac_try;; | |
5502 | esac | |
66e941e8 JM |
5503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5504 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5505 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5506 | ac_status=$? |
8a2fc586 AK |
5507 | grep -v '^ *+' conftest.er1 >conftest.err |
5508 | rm -f conftest.er1 | |
5509 | cat conftest.err >&5 | |
66e941e8 | 5510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5511 | (exit $ac_status); } && { |
5512 | test -z "$ac_c_werror_flag" || | |
5513 | test ! -s conftest.err | |
5514 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5515 | ac_cv_struct_tm=time.h |
5516 | else | |
66e941e8 | 5517 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5518 | sed 's/^/| /' conftest.$ac_ext >&5 |
5519 | ||
7a197a62 | 5520 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5521 | fi |
7a197a62 AK |
5522 | |
5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5524 | fi |
66e941e8 JM |
5525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5526 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5527 | if test $ac_cv_struct_tm = sys/time.h; then |
5528 | ||
5529 | cat >>confdefs.h <<\_ACEOF | |
5530 | #define TM_IN_SYS_TIME 1 | |
5531 | _ACEOF | |
5532 | ||
5533 | fi | |
809fae91 | 5534 | |
795ca3e5 | 5535 | |
80992638 | 5536 | ################################################################################ |
ad6254c5 AK |
5537 | |
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
5552 | do | |
66e941e8 JM |
5553 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5554 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5555 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 5556 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 5557 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 5558 | else |
ad6254c5 | 5559 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5560 | /* confdefs.h. */ |
5561 | _ACEOF | |
5562 | cat confdefs.h >>conftest.$ac_ext | |
5563 | cat >>conftest.$ac_ext <<_ACEOF | |
5564 | /* end confdefs.h. */ | |
8a2fc586 AK |
5565 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5566 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5567 | #define $ac_func innocuous_$ac_func | |
5568 | ||
ad6254c5 AK |
5569 | /* System header to define __stub macros and hopefully few prototypes, |
5570 | which can conflict with char $ac_func (); below. | |
5571 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5572 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5573 | |
ad6254c5 AK |
5574 | #ifdef __STDC__ |
5575 | # include <limits.h> | |
5576 | #else | |
5577 | # include <assert.h> | |
5578 | #endif | |
8a2fc586 AK |
5579 | |
5580 | #undef $ac_func | |
5581 | ||
7a197a62 AK |
5582 | /* Override any GCC internal prototype to avoid an error. |
5583 | Use char because int might match the return type of a GCC | |
5584 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5585 | #ifdef __cplusplus |
5586 | extern "C" | |
ad6254c5 | 5587 | #endif |
ad6254c5 AK |
5588 | char $ac_func (); |
5589 | /* The GNU C library defines this for functions which it implements | |
5590 | to always fail with ENOSYS. Some functions are actually named | |
5591 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5592 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5593 | choke me |
ad6254c5 AK |
5594 | #endif |
5595 | ||
5596 | int | |
5597 | main () | |
5598 | { | |
7a197a62 | 5599 | return $ac_func (); |
ad6254c5 AK |
5600 | ; |
5601 | return 0; | |
5602 | } | |
5603 | _ACEOF | |
5604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5605 | if { (ac_try="$ac_link" |
5606 | case "(($ac_try" in | |
5607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5608 | *) ac_try_echo=$ac_try;; | |
5609 | esac | |
66e941e8 JM |
5610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5612 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5613 | ac_status=$? |
8a2fc586 AK |
5614 | grep -v '^ *+' conftest.er1 >conftest.err |
5615 | rm -f conftest.er1 | |
5616 | cat conftest.err >&5 | |
66e941e8 | 5617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5618 | (exit $ac_status); } && { |
5619 | test -z "$ac_c_werror_flag" || | |
5620 | test ! -s conftest.err | |
5621 | } && test -s conftest$ac_exeext && | |
5622 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 5623 | eval "$as_ac_var=yes" |
795ca3e5 | 5624 | else |
66e941e8 | 5625 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5626 | sed 's/^/| /' conftest.$ac_ext >&5 |
5627 | ||
7a197a62 | 5628 | eval "$as_ac_var=no" |
795ca3e5 | 5629 | fi |
7a197a62 AK |
5630 | |
5631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5632 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5633 | fi |
66e941e8 JM |
5634 | ac_res=`eval 'as_val=${'$as_ac_var'} |
5635 | $as_echo "$as_val"'` | |
5636 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5637 | $as_echo "$ac_res" >&6; } | |
5638 | if test `eval 'as_val=${'$as_ac_var'} | |
5639 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 5640 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 5641 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
5642 | _ACEOF |
5643 | ||
5644 | else | |
66e941e8 JM |
5645 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5646 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
5647 | { (exit 1); exit 1; }; } |
5648 | fi | |
5649 | done | |
795ca3e5 | 5650 | |
ad6254c5 AK |
5651 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5652 | # for constant arguments. Useless! | |
66e941e8 JM |
5653 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5654 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 5655 | if test "${ac_cv_working_alloca_h+set}" = set; then |
66e941e8 | 5656 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5657 | else |
5658 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5659 | /* confdefs.h. */ |
5660 | _ACEOF | |
5661 | cat confdefs.h >>conftest.$ac_ext | |
5662 | cat >>conftest.$ac_ext <<_ACEOF | |
5663 | /* end confdefs.h. */ | |
5664 | #include <alloca.h> | |
5665 | int | |
5666 | main () | |
5667 | { | |
5668 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5669 | if (p) return 0; |
ad6254c5 AK |
5670 | ; |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
5674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5675 | if { (ac_try="$ac_link" |
5676 | case "(($ac_try" in | |
5677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5678 | *) ac_try_echo=$ac_try;; | |
5679 | esac | |
66e941e8 JM |
5680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5681 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5682 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5683 | ac_status=$? |
8a2fc586 AK |
5684 | grep -v '^ *+' conftest.er1 >conftest.err |
5685 | rm -f conftest.er1 | |
5686 | cat conftest.err >&5 | |
66e941e8 | 5687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5688 | (exit $ac_status); } && { |
5689 | test -z "$ac_c_werror_flag" || | |
5690 | test ! -s conftest.err | |
5691 | } && test -s conftest$ac_exeext && | |
5692 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5693 | ac_cv_working_alloca_h=yes |
5694 | else | |
66e941e8 | 5695 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5696 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 5697 | |
7a197a62 | 5698 | ac_cv_working_alloca_h=no |
ad6254c5 | 5699 | fi |
7a197a62 AK |
5700 | |
5701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5702 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5703 | fi |
66e941e8 JM |
5704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5705 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
5706 | if test $ac_cv_working_alloca_h = yes; then |
5707 | ||
5708 | cat >>confdefs.h <<\_ACEOF | |
5709 | #define HAVE_ALLOCA_H 1 | |
5710 | _ACEOF | |
5711 | ||
5712 | fi | |
5713 | ||
66e941e8 JM |
5714 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
5715 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 5716 | if test "${ac_cv_func_alloca_works+set}" = set; then |
66e941e8 | 5717 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5718 | else |
5719 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5720 | /* confdefs.h. */ |
5721 | _ACEOF | |
5722 | cat confdefs.h >>conftest.$ac_ext | |
5723 | cat >>conftest.$ac_ext <<_ACEOF | |
5724 | /* end confdefs.h. */ | |
5725 | #ifdef __GNUC__ | |
5726 | # define alloca __builtin_alloca | |
5727 | #else | |
5728 | # ifdef _MSC_VER | |
5729 | # include <malloc.h> | |
5730 | # define alloca _alloca | |
5731 | # else | |
7a197a62 | 5732 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
5733 | # include <alloca.h> |
5734 | # else | |
5735 | # ifdef _AIX | |
5736 | #pragma alloca | |
5737 | # else | |
5738 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5739 | char *alloca (); | |
5740 | # endif | |
5741 | # endif | |
5742 | # endif | |
5743 | # endif | |
5744 | #endif | |
5745 | ||
5746 | int | |
5747 | main () | |
5748 | { | |
5749 | char *p = (char *) alloca (1); | |
7a197a62 | 5750 | if (p) return 0; |
ad6254c5 AK |
5751 | ; |
5752 | return 0; | |
5753 | } | |
5754 | _ACEOF | |
5755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5756 | if { (ac_try="$ac_link" |
5757 | case "(($ac_try" in | |
5758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5759 | *) ac_try_echo=$ac_try;; | |
5760 | esac | |
66e941e8 JM |
5761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5762 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5763 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5764 | ac_status=$? |
8a2fc586 AK |
5765 | grep -v '^ *+' conftest.er1 >conftest.err |
5766 | rm -f conftest.er1 | |
5767 | cat conftest.err >&5 | |
66e941e8 | 5768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5769 | (exit $ac_status); } && { |
5770 | test -z "$ac_c_werror_flag" || | |
5771 | test ! -s conftest.err | |
5772 | } && test -s conftest$ac_exeext && | |
5773 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5774 | ac_cv_func_alloca_works=yes |
5775 | else | |
66e941e8 | 5776 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5777 | sed 's/^/| /' conftest.$ac_ext >&5 |
5778 | ||
7a197a62 | 5779 | ac_cv_func_alloca_works=no |
ad6254c5 | 5780 | fi |
7a197a62 AK |
5781 | |
5782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5783 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5784 | fi |
66e941e8 JM |
5785 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5786 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
5787 | |
5788 | if test $ac_cv_func_alloca_works = yes; then | |
5789 | ||
5790 | cat >>confdefs.h <<\_ACEOF | |
5791 | #define HAVE_ALLOCA 1 | |
5792 | _ACEOF | |
5793 | ||
5794 | else | |
5795 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5796 | # that cause trouble. Some versions do not even contain alloca or | |
5797 | # contain a buggy version. If you still want to use their alloca, | |
5798 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5799 | ||
7a197a62 | 5800 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
5801 | |
5802 | cat >>confdefs.h <<\_ACEOF | |
5803 | #define C_ALLOCA 1 | |
5804 | _ACEOF | |
5805 | ||
5806 | ||
66e941e8 JM |
5807 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5808 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 5809 | if test "${ac_cv_os_cray+set}" = set; then |
66e941e8 | 5810 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5811 | else |
5812 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5813 | /* confdefs.h. */ |
5814 | _ACEOF | |
5815 | cat confdefs.h >>conftest.$ac_ext | |
5816 | cat >>conftest.$ac_ext <<_ACEOF | |
5817 | /* end confdefs.h. */ | |
7a197a62 | 5818 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
5819 | webecray |
5820 | #else | |
5821 | wenotbecray | |
5822 | #endif | |
5823 | ||
5824 | _ACEOF | |
795ca3e5 | 5825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5826 | $EGREP "webecray" >/dev/null 2>&1; then |
5827 | ac_cv_os_cray=yes | |
5828 | else | |
5829 | ac_cv_os_cray=no | |
795ca3e5 AK |
5830 | fi |
5831 | rm -f conftest* | |
5832 | ||
795ca3e5 | 5833 | fi |
66e941e8 JM |
5834 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5835 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
5836 | if test $ac_cv_os_cray = yes; then |
5837 | for ac_func in _getb67 GETB67 getb67; do | |
66e941e8 JM |
5838 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5839 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5840 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 5841 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 5842 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5843 | else |
5844 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5845 | /* confdefs.h. */ |
5846 | _ACEOF | |
5847 | cat confdefs.h >>conftest.$ac_ext | |
5848 | cat >>conftest.$ac_ext <<_ACEOF | |
5849 | /* end confdefs.h. */ | |
8a2fc586 AK |
5850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5852 | #define $ac_func innocuous_$ac_func | |
5853 | ||
ad6254c5 AK |
5854 | /* System header to define __stub macros and hopefully few prototypes, |
5855 | which can conflict with char $ac_func (); below. | |
5856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5857 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5858 | |
ad6254c5 AK |
5859 | #ifdef __STDC__ |
5860 | # include <limits.h> | |
5861 | #else | |
5862 | # include <assert.h> | |
5863 | #endif | |
8a2fc586 AK |
5864 | |
5865 | #undef $ac_func | |
5866 | ||
7a197a62 AK |
5867 | /* Override any GCC internal prototype to avoid an error. |
5868 | Use char because int might match the return type of a GCC | |
5869 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5870 | #ifdef __cplusplus |
5871 | extern "C" | |
ad6254c5 | 5872 | #endif |
ad6254c5 AK |
5873 | char $ac_func (); |
5874 | /* The GNU C library defines this for functions which it implements | |
5875 | to always fail with ENOSYS. Some functions are actually named | |
5876 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5877 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5878 | choke me |
ad6254c5 AK |
5879 | #endif |
5880 | ||
5881 | int | |
5882 | main () | |
5883 | { | |
7a197a62 | 5884 | return $ac_func (); |
ad6254c5 AK |
5885 | ; |
5886 | return 0; | |
5887 | } | |
5888 | _ACEOF | |
5889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5890 | if { (ac_try="$ac_link" |
5891 | case "(($ac_try" in | |
5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5893 | *) ac_try_echo=$ac_try;; | |
5894 | esac | |
66e941e8 JM |
5895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5896 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5897 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5898 | ac_status=$? |
8a2fc586 AK |
5899 | grep -v '^ *+' conftest.er1 >conftest.err |
5900 | rm -f conftest.er1 | |
5901 | cat conftest.err >&5 | |
66e941e8 | 5902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
5903 | (exit $ac_status); } && { |
5904 | test -z "$ac_c_werror_flag" || | |
5905 | test ! -s conftest.err | |
5906 | } && test -s conftest$ac_exeext && | |
5907 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5908 | eval "$as_ac_var=yes" |
5909 | else | |
66e941e8 | 5910 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
5912 | ||
7a197a62 | 5913 | eval "$as_ac_var=no" |
ad6254c5 | 5914 | fi |
7a197a62 AK |
5915 | |
5916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 5917 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5918 | fi |
66e941e8 JM |
5919 | ac_res=`eval 'as_val=${'$as_ac_var'} |
5920 | $as_echo "$as_val"'` | |
5921 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5922 | $as_echo "$ac_res" >&6; } | |
5923 | if test `eval 'as_val=${'$as_ac_var'} | |
5924 | $as_echo "$as_val"'` = yes; then | |
80992638 | 5925 | |
ad6254c5 AK |
5926 | cat >>confdefs.h <<_ACEOF |
5927 | #define CRAY_STACKSEG_END $ac_func | |
5928 | _ACEOF | |
5929 | ||
5930 | break | |
5931 | fi | |
5932 | ||
5933 | done | |
5934 | fi | |
5935 | ||
66e941e8 JM |
5936 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5937 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 5938 | if test "${ac_cv_c_stack_direction+set}" = set; then |
66e941e8 | 5939 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
5940 | else |
5941 | if test "$cross_compiling" = yes; then | |
5942 | ac_cv_c_stack_direction=0 | |
5943 | else | |
5944 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5945 | /* confdefs.h. */ |
5946 | _ACEOF | |
5947 | cat confdefs.h >>conftest.$ac_ext | |
5948 | cat >>conftest.$ac_ext <<_ACEOF | |
5949 | /* end confdefs.h. */ | |
7a197a62 | 5950 | $ac_includes_default |
ad6254c5 AK |
5951 | int |
5952 | find_stack_direction () | |
5953 | { | |
5954 | static char *addr = 0; | |
5955 | auto char dummy; | |
5956 | if (addr == 0) | |
5957 | { | |
5958 | addr = &dummy; | |
5959 | return find_stack_direction (); | |
5960 | } | |
5961 | else | |
5962 | return (&dummy > addr) ? 1 : -1; | |
5963 | } | |
5964 | ||
5965 | int | |
5966 | main () | |
5967 | { | |
7a197a62 | 5968 | return find_stack_direction () < 0; |
ad6254c5 AK |
5969 | } |
5970 | _ACEOF | |
5971 | rm -f conftest$ac_exeext | |
7a197a62 AK |
5972 | if { (ac_try="$ac_link" |
5973 | case "(($ac_try" in | |
5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5975 | *) ac_try_echo=$ac_try;; | |
5976 | esac | |
66e941e8 JM |
5977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5979 | (eval "$ac_link") 2>&5 |
ad6254c5 | 5980 | ac_status=$? |
66e941e8 | 5981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 5982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
5983 | { (case "(($ac_try" in |
5984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5985 | *) ac_try_echo=$ac_try;; | |
5986 | esac | |
66e941e8 JM |
5987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5988 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5989 | (eval "$ac_try") 2>&5 |
ad6254c5 | 5990 | ac_status=$? |
66e941e8 | 5991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
5992 | (exit $ac_status); }; }; then |
5993 | ac_cv_c_stack_direction=1 | |
5994 | else | |
66e941e8 JM |
5995 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5996 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
5997 | sed 's/^/| /' conftest.$ac_ext >&5 |
5998 | ||
5999 | ( exit $ac_status ) | |
6000 | ac_cv_c_stack_direction=-1 | |
6001 | fi | |
7a197a62 | 6002 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6003 | fi |
7a197a62 AK |
6004 | |
6005 | ||
ad6254c5 | 6006 | fi |
66e941e8 JM |
6007 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6008 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6009 | |
6010 | cat >>confdefs.h <<_ACEOF | |
6011 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6012 | _ACEOF | |
6013 | ||
6014 | ||
6015 | fi | |
6016 | ||
66e941e8 JM |
6017 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6018 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6019 | if test "${ac_cv_func_closedir_void+set}" = set; then |
66e941e8 | 6020 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6021 | else |
6022 | if test "$cross_compiling" = yes; then | |
6023 | ac_cv_func_closedir_void=yes | |
6024 | else | |
6025 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6026 | /* confdefs.h. */ |
6027 | _ACEOF | |
6028 | cat confdefs.h >>conftest.$ac_ext | |
6029 | cat >>conftest.$ac_ext <<_ACEOF | |
6030 | /* end confdefs.h. */ | |
6031 | $ac_includes_default | |
6032 | #include <$ac_header_dirent> | |
6033 | #ifndef __cplusplus | |
6034 | int closedir (); | |
6035 | #endif | |
6036 | ||
6037 | int | |
6038 | main () | |
6039 | { | |
7a197a62 | 6040 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6041 | ; |
6042 | return 0; | |
6043 | } | |
6044 | _ACEOF | |
6045 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6046 | if { (ac_try="$ac_link" |
6047 | case "(($ac_try" in | |
6048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6049 | *) ac_try_echo=$ac_try;; | |
6050 | esac | |
66e941e8 JM |
6051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6052 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6053 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6054 | ac_status=$? |
66e941e8 | 6055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6057 | { (case "(($ac_try" in |
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6059 | *) ac_try_echo=$ac_try;; | |
6060 | esac | |
66e941e8 JM |
6061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6062 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6063 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6064 | ac_status=$? |
66e941e8 | 6065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6066 | (exit $ac_status); }; }; then |
6067 | ac_cv_func_closedir_void=no | |
6068 | else | |
66e941e8 JM |
6069 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6070 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6071 | sed 's/^/| /' conftest.$ac_ext >&5 |
6072 | ||
6073 | ( exit $ac_status ) | |
6074 | ac_cv_func_closedir_void=yes | |
6075 | fi | |
7a197a62 | 6076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6077 | fi |
7a197a62 AK |
6078 | |
6079 | ||
ad6254c5 | 6080 | fi |
66e941e8 JM |
6081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6082 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6083 | if test $ac_cv_func_closedir_void = yes; then |
6084 | ||
6085 | cat >>confdefs.h <<\_ACEOF | |
6086 | #define CLOSEDIR_VOID 1 | |
6087 | _ACEOF | |
6088 | ||
6089 | fi | |
6090 | ||
6091 | ||
7a197a62 | 6092 | for ac_header in vfork.h |
ad6254c5 | 6093 | do |
66e941e8 | 6094 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
6096 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6097 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 6099 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6100 | fi |
66e941e8 JM |
6101 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6102 | $as_echo "$as_val"'` | |
6103 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6104 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6105 | else |
6106 | # Is the header compilable? | |
66e941e8 JM |
6107 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6108 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6109 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6110 | /* confdefs.h. */ |
6111 | _ACEOF | |
6112 | cat confdefs.h >>conftest.$ac_ext | |
6113 | cat >>conftest.$ac_ext <<_ACEOF | |
6114 | /* end confdefs.h. */ | |
6115 | $ac_includes_default | |
6116 | #include <$ac_header> | |
6117 | _ACEOF | |
6118 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6119 | if { (ac_try="$ac_compile" |
6120 | case "(($ac_try" in | |
6121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6122 | *) ac_try_echo=$ac_try;; | |
6123 | esac | |
66e941e8 JM |
6124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6125 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6126 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6127 | ac_status=$? |
8a2fc586 AK |
6128 | grep -v '^ *+' conftest.er1 >conftest.err |
6129 | rm -f conftest.er1 | |
6130 | cat conftest.err >&5 | |
66e941e8 | 6131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6132 | (exit $ac_status); } && { |
6133 | test -z "$ac_c_werror_flag" || | |
6134 | test ! -s conftest.err | |
6135 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6136 | ac_header_compiler=yes |
6137 | else | |
66e941e8 | 6138 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6139 | sed 's/^/| /' conftest.$ac_ext >&5 |
6140 | ||
7a197a62 | 6141 | ac_header_compiler=no |
ad6254c5 | 6142 | fi |
7a197a62 AK |
6143 | |
6144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
6145 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6146 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6147 | |
6148 | # Is the header present? | |
66e941e8 JM |
6149 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6150 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6151 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6152 | /* confdefs.h. */ |
6153 | _ACEOF | |
6154 | cat confdefs.h >>conftest.$ac_ext | |
6155 | cat >>conftest.$ac_ext <<_ACEOF | |
6156 | /* end confdefs.h. */ | |
6157 | #include <$ac_header> | |
6158 | _ACEOF | |
7a197a62 AK |
6159 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6160 | case "(($ac_try" in | |
6161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6162 | *) ac_try_echo=$ac_try;; | |
6163 | esac | |
66e941e8 JM |
6164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6165 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6167 | ac_status=$? |
6168 | grep -v '^ *+' conftest.er1 >conftest.err | |
6169 | rm -f conftest.er1 | |
6170 | cat conftest.err >&5 | |
66e941e8 | 6171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6172 | (exit $ac_status); } >/dev/null && { |
6173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6174 | test ! -s conftest.err | |
6175 | }; then | |
ad6254c5 AK |
6176 | ac_header_preproc=yes |
6177 | else | |
66e941e8 | 6178 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
6180 | ||
6181 | ac_header_preproc=no | |
6182 | fi | |
7a197a62 | 6183 | |
ad6254c5 | 6184 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
6185 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6186 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6187 | |
6188 | # So? What about this header? | |
8a2fc586 AK |
6189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6190 | yes:no: ) | |
66e941e8 JM |
6191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6192 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6195 | ac_header_preproc=yes |
ad6254c5 | 6196 | ;; |
8a2fc586 | 6197 | no:yes:* ) |
66e941e8 JM |
6198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6199 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6201 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6203 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6205 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6207 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6209 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6210 | |
ad6254c5 AK |
6211 | ;; |
6212 | esac | |
66e941e8 JM |
6213 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6214 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 6216 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6217 | else |
8a2fc586 | 6218 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6219 | fi |
66e941e8 JM |
6220 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6221 | $as_echo "$as_val"'` | |
6222 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6223 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 6224 | |
795ca3e5 | 6225 | fi |
66e941e8 JM |
6226 | if test `eval 'as_val=${'$as_ac_Header'} |
6227 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 6228 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 6229 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6230 | _ACEOF |
6231 | ||
6232 | fi | |
6233 | ||
6234 | done | |
795ca3e5 | 6235 | |
ad6254c5 AK |
6236 | |
6237 | ||
6238 | for ac_func in fork vfork | |
6239 | do | |
66e941e8 JM |
6240 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6241 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6242 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6243 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 6244 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6245 | else |
ad6254c5 | 6246 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6247 | /* confdefs.h. */ |
6248 | _ACEOF | |
6249 | cat confdefs.h >>conftest.$ac_ext | |
6250 | cat >>conftest.$ac_ext <<_ACEOF | |
6251 | /* end confdefs.h. */ | |
8a2fc586 AK |
6252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6254 | #define $ac_func innocuous_$ac_func | |
6255 | ||
ad6254c5 AK |
6256 | /* System header to define __stub macros and hopefully few prototypes, |
6257 | which can conflict with char $ac_func (); below. | |
6258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6259 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6260 | |
ad6254c5 AK |
6261 | #ifdef __STDC__ |
6262 | # include <limits.h> | |
6263 | #else | |
6264 | # include <assert.h> | |
795ca3e5 | 6265 | #endif |
8a2fc586 AK |
6266 | |
6267 | #undef $ac_func | |
6268 | ||
7a197a62 AK |
6269 | /* Override any GCC internal prototype to avoid an error. |
6270 | Use char because int might match the return type of a GCC | |
6271 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6272 | #ifdef __cplusplus |
ad6254c5 | 6273 | extern "C" |
ad6254c5 | 6274 | #endif |
ad6254c5 AK |
6275 | char $ac_func (); |
6276 | /* The GNU C library defines this for functions which it implements | |
6277 | to always fail with ENOSYS. Some functions are actually named | |
6278 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6279 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6280 | choke me |
795ca3e5 AK |
6281 | #endif |
6282 | ||
ad6254c5 AK |
6283 | int |
6284 | main () | |
6285 | { | |
7a197a62 | 6286 | return $ac_func (); |
ad6254c5 AK |
6287 | ; |
6288 | return 0; | |
6289 | } | |
6290 | _ACEOF | |
6291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6292 | if { (ac_try="$ac_link" |
6293 | case "(($ac_try" in | |
6294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6295 | *) ac_try_echo=$ac_try;; | |
6296 | esac | |
66e941e8 JM |
6297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6298 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6299 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6300 | ac_status=$? |
8a2fc586 AK |
6301 | grep -v '^ *+' conftest.er1 >conftest.err |
6302 | rm -f conftest.er1 | |
6303 | cat conftest.err >&5 | |
66e941e8 | 6304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6305 | (exit $ac_status); } && { |
6306 | test -z "$ac_c_werror_flag" || | |
6307 | test ! -s conftest.err | |
6308 | } && test -s conftest$ac_exeext && | |
6309 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6310 | eval "$as_ac_var=yes" |
795ca3e5 | 6311 | else |
66e941e8 | 6312 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 |
6314 | ||
7a197a62 | 6315 | eval "$as_ac_var=no" |
795ca3e5 | 6316 | fi |
7a197a62 AK |
6317 | |
6318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 6319 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6320 | fi |
66e941e8 JM |
6321 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6322 | $as_echo "$as_val"'` | |
6323 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6324 | $as_echo "$ac_res" >&6; } | |
6325 | if test `eval 'as_val=${'$as_ac_var'} | |
6326 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 6327 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 6328 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6329 | _ACEOF |
6330 | ||
6331 | fi | |
6332 | done | |
6333 | ||
6334 | if test "x$ac_cv_func_fork" = xyes; then | |
66e941e8 JM |
6335 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
6336 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 6337 | if test "${ac_cv_func_fork_works+set}" = set; then |
66e941e8 | 6338 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6339 | else |
6340 | if test "$cross_compiling" = yes; then | |
6341 | ac_cv_func_fork_works=cross | |
6342 | else | |
6343 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6344 | /* confdefs.h. */ |
6345 | _ACEOF | |
6346 | cat confdefs.h >>conftest.$ac_ext | |
6347 | cat >>conftest.$ac_ext <<_ACEOF | |
6348 | /* end confdefs.h. */ | |
6349 | $ac_includes_default | |
6350 | int | |
6351 | main () | |
6352 | { | |
6353 | ||
6354 | /* By Ruediger Kuhlmann. */ | |
6355 | return fork () < 0; | |
6356 | ||
6357 | ; | |
6358 | return 0; | |
6359 | } | |
ad6254c5 AK |
6360 | _ACEOF |
6361 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6362 | if { (ac_try="$ac_link" |
6363 | case "(($ac_try" in | |
6364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6365 | *) ac_try_echo=$ac_try;; | |
6366 | esac | |
66e941e8 JM |
6367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6368 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6369 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6370 | ac_status=$? |
66e941e8 | 6371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6373 | { (case "(($ac_try" in |
6374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6375 | *) ac_try_echo=$ac_try;; | |
6376 | esac | |
66e941e8 JM |
6377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6378 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6379 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6380 | ac_status=$? |
66e941e8 | 6381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6382 | (exit $ac_status); }; }; then |
6383 | ac_cv_func_fork_works=yes | |
6384 | else | |
66e941e8 JM |
6385 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6386 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6387 | sed 's/^/| /' conftest.$ac_ext >&5 |
6388 | ||
6389 | ( exit $ac_status ) | |
6390 | ac_cv_func_fork_works=no | |
6391 | fi | |
7a197a62 | 6392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6393 | fi |
7a197a62 AK |
6394 | |
6395 | ||
ad6254c5 | 6396 | fi |
66e941e8 JM |
6397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6398 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6399 | |
6400 | else | |
6401 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6402 | fi | |
6403 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6404 | case $host in | |
6405 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6406 | # Override, as these systems have only a dummy fork() stub | |
6407 | ac_cv_func_fork_works=no | |
6408 | ;; | |
6409 | *) | |
6410 | ac_cv_func_fork_works=yes | |
6411 | ;; | |
6412 | esac | |
66e941e8 JM |
6413 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6414 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6415 | fi |
6416 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6417 | if test "x$ac_cv_func_vfork" = xyes; then | |
66e941e8 JM |
6418 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
6419 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 6420 | if test "${ac_cv_func_vfork_works+set}" = set; then |
66e941e8 | 6421 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6422 | else |
6423 | if test "$cross_compiling" = yes; then | |
6424 | ac_cv_func_vfork_works=cross | |
6425 | else | |
6426 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6427 | /* confdefs.h. */ |
6428 | _ACEOF | |
6429 | cat confdefs.h >>conftest.$ac_ext | |
6430 | cat >>conftest.$ac_ext <<_ACEOF | |
6431 | /* end confdefs.h. */ | |
6432 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6433 | $ac_includes_default |
ad6254c5 | 6434 | #include <sys/wait.h> |
7a197a62 | 6435 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6436 | # include <vfork.h> |
6437 | #endif | |
6438 | /* On some sparc systems, changes by the child to local and incoming | |
6439 | argument registers are propagated back to the parent. The compiler | |
6440 | is told about this with #include <vfork.h>, but some compilers | |
6441 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6442 | static variable whose address is put into a register that is | |
6443 | clobbered by the vfork. */ | |
6444 | static void | |
6445 | #ifdef __cplusplus | |
6446 | sparc_address_test (int arg) | |
6447 | # else | |
6448 | sparc_address_test (arg) int arg; | |
6449 | #endif | |
6450 | { | |
6451 | static pid_t child; | |
6452 | if (!child) { | |
6453 | child = vfork (); | |
6454 | if (child < 0) { | |
6455 | perror ("vfork"); | |
6456 | _exit(2); | |
6457 | } | |
6458 | if (!child) { | |
6459 | arg = getpid(); | |
6460 | write(-1, "", 0); | |
6461 | _exit (arg); | |
6462 | } | |
6463 | } | |
6464 | } | |
6465 | ||
6466 | int | |
6467 | main () | |
6468 | { | |
6469 | pid_t parent = getpid (); | |
6470 | pid_t child; | |
6471 | ||
6472 | sparc_address_test (0); | |
6473 | ||
6474 | child = vfork (); | |
6475 | ||
6476 | if (child == 0) { | |
6477 | /* Here is another test for sparc vfork register problems. This | |
6478 | test uses lots of local variables, at least as many local | |
6479 | variables as main has allocated so far including compiler | |
6480 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6481 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6482 | reuse the register of parent for one of the local variables, | |
6483 | since it will think that parent can't possibly be used any more | |
6484 | in this routine. Assigning to the local variable will thus | |
6485 | munge parent in the parent process. */ | |
6486 | pid_t | |
6487 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6488 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6489 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6490 | use the same hardware register for all 8 local variables. */ | |
6491 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6492 | || p != p5 || p != p6 || p != p7) | |
6493 | _exit(1); | |
6494 | ||
6495 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6496 | from child file descriptors. If the child closes a descriptor | |
6497 | before it execs or exits, this munges the parent's descriptor | |
6498 | as well. Test for this by closing stdout in the child. */ | |
6499 | _exit(close(fileno(stdout)) != 0); | |
6500 | } else { | |
6501 | int status; | |
6502 | struct stat st; | |
6503 | ||
6504 | while (wait(&status) != child) | |
6505 | ; | |
7a197a62 | 6506 | return ( |
ad6254c5 AK |
6507 | /* Was there some problem with vforking? */ |
6508 | child < 0 | |
6509 | ||
6510 | /* Did the child fail? (This shouldn't happen.) */ | |
6511 | || status | |
6512 | ||
6513 | /* Did the vfork/compiler bug occur? */ | |
6514 | || parent != getpid() | |
6515 | ||
6516 | /* Did the file descriptor bug occur? */ | |
6517 | || fstat(fileno(stdout), &st) != 0 | |
6518 | ); | |
6519 | } | |
6520 | } | |
6521 | _ACEOF | |
6522 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6523 | if { (ac_try="$ac_link" |
6524 | case "(($ac_try" in | |
6525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6526 | *) ac_try_echo=$ac_try;; | |
6527 | esac | |
66e941e8 JM |
6528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6529 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6530 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6531 | ac_status=$? |
66e941e8 | 6532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6534 | { (case "(($ac_try" in |
6535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6536 | *) ac_try_echo=$ac_try;; | |
6537 | esac | |
66e941e8 JM |
6538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6539 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6540 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6541 | ac_status=$? |
66e941e8 | 6542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6543 | (exit $ac_status); }; }; then |
6544 | ac_cv_func_vfork_works=yes | |
6545 | else | |
66e941e8 JM |
6546 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6547 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6548 | sed 's/^/| /' conftest.$ac_ext >&5 |
6549 | ||
6550 | ( exit $ac_status ) | |
6551 | ac_cv_func_vfork_works=no | |
6552 | fi | |
7a197a62 | 6553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6554 | fi |
7a197a62 AK |
6555 | |
6556 | ||
ad6254c5 | 6557 | fi |
66e941e8 JM |
6558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6559 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6560 | |
6561 | fi; | |
6562 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6563 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
66e941e8 JM |
6564 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6565 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6566 | fi |
6567 | ||
6568 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6569 | ||
6570 | cat >>confdefs.h <<\_ACEOF | |
6571 | #define HAVE_WORKING_VFORK 1 | |
6572 | _ACEOF | |
6573 | ||
6574 | else | |
6575 | ||
6576 | cat >>confdefs.h <<\_ACEOF | |
6577 | #define vfork fork | |
6578 | _ACEOF | |
6579 | ||
6580 | fi | |
6581 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6582 | ||
6583 | cat >>confdefs.h <<\_ACEOF | |
6584 | #define HAVE_WORKING_FORK 1 | |
6585 | _ACEOF | |
6586 | ||
6587 | fi | |
6588 | ||
66e941e8 JM |
6589 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6590 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 6591 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
66e941e8 | 6592 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6593 | else |
6594 | rm -f conftest.sym conftest.file | |
6595 | echo >conftest.file | |
6596 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6597 | if test "$cross_compiling" = yes; then | |
6598 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6599 | else | |
6600 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6601 | /* confdefs.h. */ |
6602 | _ACEOF | |
6603 | cat confdefs.h >>conftest.$ac_ext | |
6604 | cat >>conftest.$ac_ext <<_ACEOF | |
6605 | /* end confdefs.h. */ | |
6606 | $ac_includes_default | |
6607 | int | |
6608 | main () | |
6609 | { | |
6610 | struct stat sbuf; | |
6611 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6612 | That is better in the sense that it means we will not |
6613 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6614 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6615 | ; |
6616 | return 0; | |
6617 | } | |
6618 | _ACEOF | |
6619 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6620 | if { (ac_try="$ac_link" |
6621 | case "(($ac_try" in | |
6622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6623 | *) ac_try_echo=$ac_try;; | |
6624 | esac | |
66e941e8 JM |
6625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6626 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6627 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6628 | ac_status=$? |
66e941e8 | 6629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6630 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6631 | { (case "(($ac_try" in |
6632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6633 | *) ac_try_echo=$ac_try;; | |
6634 | esac | |
66e941e8 JM |
6635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6636 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6637 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6638 | ac_status=$? |
66e941e8 | 6639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6640 | (exit $ac_status); }; }; then |
6641 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6642 | else | |
66e941e8 JM |
6643 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6644 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6645 | sed 's/^/| /' conftest.$ac_ext >&5 |
6646 | ||
6647 | ( exit $ac_status ) | |
6648 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6649 | fi | |
7a197a62 | 6650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6651 | fi |
7a197a62 AK |
6652 | |
6653 | ||
ad6254c5 AK |
6654 | else |
6655 | # If the `ln -s' command failed, then we probably don't even | |
6656 | # have an lstat function. | |
6657 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6658 | fi | |
6659 | rm -f conftest.sym conftest.file | |
6660 | ||
6661 | fi | |
66e941e8 JM |
6662 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6663 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6664 | |
6665 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6666 | ||
6667 | cat >>confdefs.h <<_ACEOF | |
6668 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6669 | _ACEOF | |
6670 | ||
6671 | ||
6672 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6673 | case " $LIBOBJS " in |
8a2fc586 | 6674 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6675 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6676 | ;; | |
8a2fc586 AK |
6677 | esac |
6678 | ||
ad6254c5 AK |
6679 | fi |
6680 | ||
66e941e8 JM |
6681 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6682 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 6683 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
66e941e8 | 6684 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6685 | else |
6686 | if test "$cross_compiling" = yes; then | |
6687 | ac_cv_func_lstat_empty_string_bug=yes | |
6688 | else | |
6689 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6690 | /* confdefs.h. */ |
6691 | _ACEOF | |
6692 | cat confdefs.h >>conftest.$ac_ext | |
6693 | cat >>conftest.$ac_ext <<_ACEOF | |
6694 | /* end confdefs.h. */ | |
6695 | $ac_includes_default | |
6696 | int | |
6697 | main () | |
6698 | { | |
6699 | struct stat sbuf; | |
7a197a62 | 6700 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
6701 | ; |
6702 | return 0; | |
6703 | } | |
6704 | _ACEOF | |
6705 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6706 | if { (ac_try="$ac_link" |
6707 | case "(($ac_try" in | |
6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6709 | *) ac_try_echo=$ac_try;; | |
6710 | esac | |
66e941e8 JM |
6711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6712 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6713 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6714 | ac_status=$? |
66e941e8 | 6715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6717 | { (case "(($ac_try" in |
6718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6719 | *) ac_try_echo=$ac_try;; | |
6720 | esac | |
66e941e8 JM |
6721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6722 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6723 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6724 | ac_status=$? |
66e941e8 | 6725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6726 | (exit $ac_status); }; }; then |
7a197a62 | 6727 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 6728 | else |
66e941e8 JM |
6729 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6730 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6731 | sed 's/^/| /' conftest.$ac_ext >&5 |
6732 | ||
6733 | ( exit $ac_status ) | |
7a197a62 | 6734 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 6735 | fi |
7a197a62 | 6736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6737 | fi |
7a197a62 AK |
6738 | |
6739 | ||
ad6254c5 | 6740 | fi |
66e941e8 JM |
6741 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
6742 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 6743 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 6744 | case " $LIBOBJS " in |
8a2fc586 | 6745 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6746 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6747 | ;; | |
8a2fc586 AK |
6748 | esac |
6749 | ||
ad6254c5 AK |
6750 | |
6751 | cat >>confdefs.h <<_ACEOF | |
6752 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6753 | _ACEOF | |
6754 | ||
6755 | fi | |
6756 | ||
6757 | ||
6758 | for ac_header in stdlib.h | |
6759 | do | |
66e941e8 | 6760 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
6762 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6763 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 6765 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6766 | fi |
66e941e8 JM |
6767 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6768 | $as_echo "$as_val"'` | |
6769 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6770 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6771 | else |
6772 | # Is the header compilable? | |
66e941e8 JM |
6773 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6774 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6775 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6776 | /* confdefs.h. */ |
6777 | _ACEOF | |
6778 | cat confdefs.h >>conftest.$ac_ext | |
6779 | cat >>conftest.$ac_ext <<_ACEOF | |
6780 | /* end confdefs.h. */ | |
6781 | $ac_includes_default | |
6782 | #include <$ac_header> | |
6783 | _ACEOF | |
6784 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6785 | if { (ac_try="$ac_compile" |
6786 | case "(($ac_try" in | |
6787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6788 | *) ac_try_echo=$ac_try;; | |
6789 | esac | |
66e941e8 JM |
6790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6791 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6792 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6793 | ac_status=$? |
8a2fc586 AK |
6794 | grep -v '^ *+' conftest.er1 >conftest.err |
6795 | rm -f conftest.er1 | |
6796 | cat conftest.err >&5 | |
66e941e8 | 6797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6798 | (exit $ac_status); } && { |
6799 | test -z "$ac_c_werror_flag" || | |
6800 | test ! -s conftest.err | |
6801 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6802 | ac_header_compiler=yes |
6803 | else | |
66e941e8 | 6804 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6805 | sed 's/^/| /' conftest.$ac_ext >&5 |
6806 | ||
7a197a62 | 6807 | ac_header_compiler=no |
ad6254c5 | 6808 | fi |
7a197a62 AK |
6809 | |
6810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
6811 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6812 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6813 | |
6814 | # Is the header present? | |
66e941e8 JM |
6815 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6816 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6817 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6818 | /* confdefs.h. */ |
6819 | _ACEOF | |
6820 | cat confdefs.h >>conftest.$ac_ext | |
6821 | cat >>conftest.$ac_ext <<_ACEOF | |
6822 | /* end confdefs.h. */ | |
6823 | #include <$ac_header> | |
6824 | _ACEOF | |
7a197a62 AK |
6825 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6826 | case "(($ac_try" in | |
6827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6828 | *) ac_try_echo=$ac_try;; | |
6829 | esac | |
66e941e8 JM |
6830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6831 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6833 | ac_status=$? |
6834 | grep -v '^ *+' conftest.er1 >conftest.err | |
6835 | rm -f conftest.er1 | |
6836 | cat conftest.err >&5 | |
66e941e8 | 6837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
6838 | (exit $ac_status); } >/dev/null && { |
6839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6840 | test ! -s conftest.err | |
6841 | }; then | |
ad6254c5 AK |
6842 | ac_header_preproc=yes |
6843 | else | |
66e941e8 | 6844 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6845 | sed 's/^/| /' conftest.$ac_ext >&5 |
6846 | ||
6847 | ac_header_preproc=no | |
6848 | fi | |
7a197a62 | 6849 | |
ad6254c5 | 6850 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
6851 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6852 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6853 | |
6854 | # So? What about this header? | |
8a2fc586 AK |
6855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6856 | yes:no: ) | |
66e941e8 JM |
6857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6858 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6860 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6861 | ac_header_preproc=yes |
ad6254c5 | 6862 | ;; |
8a2fc586 | 6863 | no:yes:* ) |
66e941e8 JM |
6864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6865 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6867 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6869 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6871 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6873 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6875 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6876 | |
ad6254c5 AK |
6877 | ;; |
6878 | esac | |
66e941e8 JM |
6879 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6880 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 6882 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6883 | else |
8a2fc586 | 6884 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6885 | fi |
66e941e8 JM |
6886 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6887 | $as_echo "$as_val"'` | |
6888 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6889 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6890 | |
6891 | fi | |
66e941e8 JM |
6892 | if test `eval 'as_val=${'$as_ac_Header'} |
6893 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 6894 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 6895 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6896 | _ACEOF |
6897 | ||
6898 | fi | |
6899 | ||
6900 | done | |
6901 | ||
66e941e8 JM |
6902 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
6903 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 6904 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
66e941e8 | 6905 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6906 | else |
6907 | if test "$cross_compiling" = yes; then | |
6908 | ac_cv_func_malloc_0_nonnull=no | |
6909 | else | |
6910 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6911 | /* confdefs.h. */ |
6912 | _ACEOF | |
6913 | cat confdefs.h >>conftest.$ac_ext | |
6914 | cat >>conftest.$ac_ext <<_ACEOF | |
6915 | /* end confdefs.h. */ | |
7a197a62 | 6916 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
6917 | # include <stdlib.h> |
6918 | #else | |
6919 | char *malloc (); | |
6920 | #endif | |
6921 | ||
6922 | int | |
6923 | main () | |
6924 | { | |
7a197a62 | 6925 | return ! malloc (0); |
ad6254c5 AK |
6926 | ; |
6927 | return 0; | |
6928 | } | |
6929 | _ACEOF | |
6930 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6931 | if { (ac_try="$ac_link" |
6932 | case "(($ac_try" in | |
6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6934 | *) ac_try_echo=$ac_try;; | |
6935 | esac | |
66e941e8 JM |
6936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6937 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6938 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6939 | ac_status=$? |
66e941e8 | 6940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6942 | { (case "(($ac_try" in |
6943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6944 | *) ac_try_echo=$ac_try;; | |
6945 | esac | |
66e941e8 JM |
6946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6947 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6948 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6949 | ac_status=$? |
66e941e8 | 6950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6951 | (exit $ac_status); }; }; then |
6952 | ac_cv_func_malloc_0_nonnull=yes | |
6953 | else | |
66e941e8 JM |
6954 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6955 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6956 | sed 's/^/| /' conftest.$ac_ext >&5 |
6957 | ||
6958 | ( exit $ac_status ) | |
6959 | ac_cv_func_malloc_0_nonnull=no | |
6960 | fi | |
7a197a62 | 6961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6962 | fi |
7a197a62 AK |
6963 | |
6964 | ||
ad6254c5 | 6965 | fi |
66e941e8 JM |
6966 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6967 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
6968 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
6969 | ||
6970 | cat >>confdefs.h <<\_ACEOF | |
6971 | #define HAVE_MALLOC 1 | |
6972 | _ACEOF | |
6973 | ||
6974 | else | |
6975 | cat >>confdefs.h <<\_ACEOF | |
6976 | #define HAVE_MALLOC 0 | |
6977 | _ACEOF | |
6978 | ||
7a197a62 | 6979 | case " $LIBOBJS " in |
8a2fc586 | 6980 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
6981 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
6982 | ;; | |
8a2fc586 AK |
6983 | esac |
6984 | ||
ad6254c5 AK |
6985 | |
6986 | cat >>confdefs.h <<\_ACEOF | |
6987 | #define malloc rpl_malloc | |
6988 | _ACEOF | |
6989 | ||
6990 | fi | |
6991 | ||
6992 | ||
6993 | ||
66e941e8 JM |
6994 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
6995 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 6996 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
66e941e8 | 6997 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6998 | else |
6999 | if test "$cross_compiling" = yes; then | |
7000 | ac_cv_func_memcmp_working=no | |
7001 | else | |
7002 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7003 | /* confdefs.h. */ |
7004 | _ACEOF | |
7005 | cat confdefs.h >>conftest.$ac_ext | |
7006 | cat >>conftest.$ac_ext <<_ACEOF | |
7007 | /* end confdefs.h. */ | |
8a2fc586 | 7008 | $ac_includes_default |
ad6254c5 AK |
7009 | int |
7010 | main () | |
7011 | { | |
7012 | ||
7013 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7014 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7015 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7016 | return 1; |
ad6254c5 AK |
7017 | |
7018 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7019 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7020 | William Lewis provided this test program. */ | |
7021 | { | |
7022 | char foo[21]; | |
7023 | char bar[21]; | |
7024 | int i; | |
7025 | for (i = 0; i < 4; i++) | |
7026 | { | |
8a2fc586 AK |
7027 | char *a = foo + i; |
7028 | char *b = bar + i; | |
7029 | strcpy (a, "--------01111111"); | |
7030 | strcpy (b, "--------10000000"); | |
7031 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7032 | return 1; |
ad6254c5 | 7033 | } |
7a197a62 | 7034 | return 0; |
ad6254c5 AK |
7035 | } |
7036 | ||
7037 | ; | |
7038 | return 0; | |
7039 | } | |
7040 | _ACEOF | |
7041 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7042 | if { (ac_try="$ac_link" |
7043 | case "(($ac_try" in | |
7044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7045 | *) ac_try_echo=$ac_try;; | |
7046 | esac | |
66e941e8 JM |
7047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7048 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7049 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7050 | ac_status=$? |
66e941e8 | 7051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7053 | { (case "(($ac_try" in |
7054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7055 | *) ac_try_echo=$ac_try;; | |
7056 | esac | |
66e941e8 JM |
7057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7058 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7059 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7060 | ac_status=$? |
66e941e8 | 7061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7062 | (exit $ac_status); }; }; then |
7063 | ac_cv_func_memcmp_working=yes | |
7064 | else | |
66e941e8 JM |
7065 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7066 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 |
7068 | ||
7069 | ( exit $ac_status ) | |
7070 | ac_cv_func_memcmp_working=no | |
7071 | fi | |
7a197a62 | 7072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7073 | fi |
7a197a62 AK |
7074 | |
7075 | ||
ad6254c5 | 7076 | fi |
66e941e8 JM |
7077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7078 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7079 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7080 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7081 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7082 | ;; | |
8a2fc586 AK |
7083 | esac |
7084 | ||
ad6254c5 AK |
7085 | |
7086 | ||
7087 | ||
7088 | for ac_header in stdlib.h unistd.h | |
7089 | do | |
66e941e8 | 7090 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7091 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
7092 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7093 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 7095 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7096 | fi |
66e941e8 JM |
7097 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7098 | $as_echo "$as_val"'` | |
7099 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7100 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7101 | else |
7102 | # Is the header compilable? | |
66e941e8 JM |
7103 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7104 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7105 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7106 | /* confdefs.h. */ |
7107 | _ACEOF | |
7108 | cat confdefs.h >>conftest.$ac_ext | |
7109 | cat >>conftest.$ac_ext <<_ACEOF | |
7110 | /* end confdefs.h. */ | |
7111 | $ac_includes_default | |
7112 | #include <$ac_header> | |
7113 | _ACEOF | |
7114 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7115 | if { (ac_try="$ac_compile" |
7116 | case "(($ac_try" in | |
7117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7118 | *) ac_try_echo=$ac_try;; | |
7119 | esac | |
66e941e8 JM |
7120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7121 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7122 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7123 | ac_status=$? |
8a2fc586 AK |
7124 | grep -v '^ *+' conftest.er1 >conftest.err |
7125 | rm -f conftest.er1 | |
7126 | cat conftest.err >&5 | |
66e941e8 | 7127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7128 | (exit $ac_status); } && { |
7129 | test -z "$ac_c_werror_flag" || | |
7130 | test ! -s conftest.err | |
7131 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7132 | ac_header_compiler=yes |
7133 | else | |
66e941e8 | 7134 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
7136 | ||
7a197a62 | 7137 | ac_header_compiler=no |
ad6254c5 | 7138 | fi |
7a197a62 AK |
7139 | |
7140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
7141 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7142 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7143 | |
7144 | # Is the header present? | |
66e941e8 JM |
7145 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7146 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7147 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7148 | /* confdefs.h. */ |
7149 | _ACEOF | |
7150 | cat confdefs.h >>conftest.$ac_ext | |
7151 | cat >>conftest.$ac_ext <<_ACEOF | |
7152 | /* end confdefs.h. */ | |
7153 | #include <$ac_header> | |
7154 | _ACEOF | |
7a197a62 AK |
7155 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7156 | case "(($ac_try" in | |
7157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7158 | *) ac_try_echo=$ac_try;; | |
7159 | esac | |
66e941e8 JM |
7160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7161 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7162 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7163 | ac_status=$? |
7164 | grep -v '^ *+' conftest.er1 >conftest.err | |
7165 | rm -f conftest.er1 | |
7166 | cat conftest.err >&5 | |
66e941e8 | 7167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7168 | (exit $ac_status); } >/dev/null && { |
7169 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7170 | test ! -s conftest.err | |
7171 | }; then | |
ad6254c5 AK |
7172 | ac_header_preproc=yes |
7173 | else | |
66e941e8 | 7174 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7175 | sed 's/^/| /' conftest.$ac_ext >&5 |
7176 | ||
7177 | ac_header_preproc=no | |
7178 | fi | |
7a197a62 | 7179 | |
ad6254c5 | 7180 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
7181 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7182 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7183 | |
7184 | # So? What about this header? | |
8a2fc586 AK |
7185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7186 | yes:no: ) | |
66e941e8 JM |
7187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7188 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7190 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7191 | ac_header_preproc=yes |
ad6254c5 | 7192 | ;; |
8a2fc586 | 7193 | no:yes:* ) |
66e941e8 JM |
7194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7195 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7196 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7197 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7199 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7201 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7203 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7205 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7206 | |
ad6254c5 AK |
7207 | ;; |
7208 | esac | |
66e941e8 JM |
7209 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7210 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7211 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 7212 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7213 | else |
8a2fc586 | 7214 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7215 | fi |
66e941e8 JM |
7216 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7217 | $as_echo "$as_val"'` | |
7218 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7219 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7220 | |
7221 | fi | |
66e941e8 JM |
7222 | if test `eval 'as_val=${'$as_ac_Header'} |
7223 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 7224 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 7225 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7226 | _ACEOF |
7227 | ||
7228 | fi | |
7229 | ||
7230 | done | |
7231 | ||
7232 | ||
7233 | for ac_func in getpagesize | |
7234 | do | |
66e941e8 JM |
7235 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7236 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7237 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7238 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 7239 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7240 | else |
7241 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7242 | /* confdefs.h. */ |
7243 | _ACEOF | |
7244 | cat confdefs.h >>conftest.$ac_ext | |
7245 | cat >>conftest.$ac_ext <<_ACEOF | |
7246 | /* end confdefs.h. */ | |
8a2fc586 AK |
7247 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7249 | #define $ac_func innocuous_$ac_func | |
7250 | ||
ad6254c5 AK |
7251 | /* System header to define __stub macros and hopefully few prototypes, |
7252 | which can conflict with char $ac_func (); below. | |
7253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7254 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7255 | |
ad6254c5 AK |
7256 | #ifdef __STDC__ |
7257 | # include <limits.h> | |
7258 | #else | |
7259 | # include <assert.h> | |
7260 | #endif | |
8a2fc586 AK |
7261 | |
7262 | #undef $ac_func | |
7263 | ||
7a197a62 AK |
7264 | /* Override any GCC internal prototype to avoid an error. |
7265 | Use char because int might match the return type of a GCC | |
7266 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7267 | #ifdef __cplusplus |
7268 | extern "C" | |
ad6254c5 | 7269 | #endif |
ad6254c5 AK |
7270 | char $ac_func (); |
7271 | /* The GNU C library defines this for functions which it implements | |
7272 | to always fail with ENOSYS. Some functions are actually named | |
7273 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7274 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7275 | choke me |
ad6254c5 AK |
7276 | #endif |
7277 | ||
7278 | int | |
7279 | main () | |
7280 | { | |
7a197a62 | 7281 | return $ac_func (); |
ad6254c5 AK |
7282 | ; |
7283 | return 0; | |
7284 | } | |
7285 | _ACEOF | |
7286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7287 | if { (ac_try="$ac_link" |
7288 | case "(($ac_try" in | |
7289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7290 | *) ac_try_echo=$ac_try;; | |
7291 | esac | |
66e941e8 JM |
7292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7293 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7294 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7295 | ac_status=$? |
8a2fc586 AK |
7296 | grep -v '^ *+' conftest.er1 >conftest.err |
7297 | rm -f conftest.er1 | |
7298 | cat conftest.err >&5 | |
66e941e8 | 7299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7300 | (exit $ac_status); } && { |
7301 | test -z "$ac_c_werror_flag" || | |
7302 | test ! -s conftest.err | |
7303 | } && test -s conftest$ac_exeext && | |
7304 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7305 | eval "$as_ac_var=yes" |
7306 | else | |
66e941e8 | 7307 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7308 | sed 's/^/| /' conftest.$ac_ext >&5 |
7309 | ||
7a197a62 | 7310 | eval "$as_ac_var=no" |
ad6254c5 | 7311 | fi |
7a197a62 AK |
7312 | |
7313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7314 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7315 | fi |
66e941e8 JM |
7316 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7317 | $as_echo "$as_val"'` | |
7318 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7319 | $as_echo "$ac_res" >&6; } | |
7320 | if test `eval 'as_val=${'$as_ac_var'} | |
7321 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 7322 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 7323 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7324 | _ACEOF |
7325 | ||
7326 | fi | |
7327 | done | |
7328 | ||
66e941e8 JM |
7329 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
7330 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 7331 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
66e941e8 | 7332 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7333 | else |
7334 | if test "$cross_compiling" = yes; then | |
7335 | ac_cv_func_mmap_fixed_mapped=no | |
7336 | else | |
7337 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7338 | /* confdefs.h. */ |
7339 | _ACEOF | |
7340 | cat confdefs.h >>conftest.$ac_ext | |
7341 | cat >>conftest.$ac_ext <<_ACEOF | |
7342 | /* end confdefs.h. */ | |
7343 | $ac_includes_default | |
7344 | /* malloc might have been renamed as rpl_malloc. */ | |
7345 | #undef malloc | |
7346 | ||
7347 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7348 | Here is a matrix of mmap possibilities: | |
7349 | mmap private not fixed | |
7350 | mmap private fixed at somewhere currently unmapped | |
7351 | mmap private fixed at somewhere already mapped | |
7352 | mmap shared not fixed | |
7353 | mmap shared fixed at somewhere currently unmapped | |
7354 | mmap shared fixed at somewhere already mapped | |
7355 | For private mappings, we should verify that changes cannot be read() | |
7356 | back from the file, nor mmap's back from the file at a different | |
7357 | address. (There have been systems where private was not correctly | |
7358 | implemented like the infamous i386 svr4.0, and systems where the | |
7359 | VM page cache was not coherent with the file system buffer cache | |
7360 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7361 | For shared mappings, we should conversely verify that changes get | |
7362 | propagated back to all the places they're supposed to be. | |
7363 | ||
7364 | Grep wants private fixed already mapped. | |
7365 | The main things grep needs to know about mmap are: | |
7366 | * does it exist and is it safe to write into the mmap'd area | |
7367 | * how to use it (BSD variants) */ | |
7368 | ||
7369 | #include <fcntl.h> | |
7370 | #include <sys/mman.h> | |
7371 | ||
7a197a62 | 7372 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7373 | char *malloc (); |
7374 | #endif | |
7375 | ||
7376 | /* This mess was copied from the GNU getpagesize.h. */ | |
7a197a62 | 7377 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7378 | /* Assume that all systems that can run configure have sys/param.h. */ |
7a197a62 | 7379 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7380 | # define HAVE_SYS_PARAM_H 1 |
7381 | # endif | |
7382 | ||
7383 | # ifdef _SC_PAGESIZE | |
7384 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7385 | # else /* no _SC_PAGESIZE */ | |
7a197a62 | 7386 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7387 | # include <sys/param.h> |
7388 | # ifdef EXEC_PAGESIZE | |
7389 | # define getpagesize() EXEC_PAGESIZE | |
7390 | # else /* no EXEC_PAGESIZE */ | |
7391 | # ifdef NBPG | |
7392 | # define getpagesize() NBPG * CLSIZE | |
7393 | # ifndef CLSIZE | |
7394 | # define CLSIZE 1 | |
7395 | # endif /* no CLSIZE */ | |
7396 | # else /* no NBPG */ | |
7397 | # ifdef NBPC | |
7398 | # define getpagesize() NBPC | |
7399 | # else /* no NBPC */ | |
7400 | # ifdef PAGESIZE | |
7401 | # define getpagesize() PAGESIZE | |
7402 | # endif /* PAGESIZE */ | |
7403 | # endif /* no NBPC */ | |
7404 | # endif /* no NBPG */ | |
7405 | # endif /* no EXEC_PAGESIZE */ | |
7406 | # else /* no HAVE_SYS_PARAM_H */ | |
7407 | # define getpagesize() 8192 /* punt totally */ | |
7408 | # endif /* no HAVE_SYS_PARAM_H */ | |
7409 | # endif /* no _SC_PAGESIZE */ | |
7410 | ||
7411 | #endif /* no HAVE_GETPAGESIZE */ | |
7412 | ||
7413 | int | |
7414 | main () | |
7415 | { | |
7416 | char *data, *data2, *data3; | |
7417 | int i, pagesize; | |
7418 | int fd; | |
7419 | ||
7420 | pagesize = getpagesize (); | |
7421 | ||
7422 | /* First, make a file with some known garbage in it. */ | |
7423 | data = (char *) malloc (pagesize); | |
7424 | if (!data) | |
7a197a62 | 7425 | return 1; |
ad6254c5 AK |
7426 | for (i = 0; i < pagesize; ++i) |
7427 | *(data + i) = rand (); | |
7428 | umask (0); | |
7429 | fd = creat ("conftest.mmap", 0600); | |
7430 | if (fd < 0) | |
7a197a62 | 7431 | return 1; |
ad6254c5 | 7432 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7433 | return 1; |
ad6254c5 AK |
7434 | close (fd); |
7435 | ||
7436 | /* Next, try to mmap the file at a fixed address which already has | |
7437 | something else allocated at it. If we can, also make sure that | |
7438 | we see the same garbage. */ | |
7439 | fd = open ("conftest.mmap", O_RDWR); | |
7440 | if (fd < 0) | |
7a197a62 | 7441 | return 1; |
ad6254c5 AK |
7442 | data2 = (char *) malloc (2 * pagesize); |
7443 | if (!data2) | |
7a197a62 AK |
7444 | return 1; |
7445 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7446 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7447 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7448 | return 1; |
ad6254c5 AK |
7449 | for (i = 0; i < pagesize; ++i) |
7450 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7451 | return 1; |
ad6254c5 AK |
7452 | |
7453 | /* Finally, make sure that changes to the mapped area do not | |
7454 | percolate back to the file as seen by read(). (This is a bug on | |
7455 | some variants of i386 svr4.0.) */ | |
7456 | for (i = 0; i < pagesize; ++i) | |
7457 | *(data2 + i) = *(data2 + i) + 1; | |
7458 | data3 = (char *) malloc (pagesize); | |
7459 | if (!data3) | |
7a197a62 | 7460 | return 1; |
ad6254c5 | 7461 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7462 | return 1; |
ad6254c5 AK |
7463 | for (i = 0; i < pagesize; ++i) |
7464 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7465 | return 1; |
ad6254c5 | 7466 | close (fd); |
7a197a62 | 7467 | return 0; |
ad6254c5 AK |
7468 | } |
7469 | _ACEOF | |
7470 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7471 | if { (ac_try="$ac_link" |
7472 | case "(($ac_try" in | |
7473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7474 | *) ac_try_echo=$ac_try;; | |
7475 | esac | |
66e941e8 JM |
7476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7477 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7478 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7479 | ac_status=$? |
66e941e8 | 7480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7482 | { (case "(($ac_try" in |
7483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7484 | *) ac_try_echo=$ac_try;; | |
7485 | esac | |
66e941e8 JM |
7486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7487 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7488 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7489 | ac_status=$? |
66e941e8 | 7490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7491 | (exit $ac_status); }; }; then |
7492 | ac_cv_func_mmap_fixed_mapped=yes | |
7493 | else | |
66e941e8 JM |
7494 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7495 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
7497 | ||
7498 | ( exit $ac_status ) | |
7499 | ac_cv_func_mmap_fixed_mapped=no | |
7500 | fi | |
7a197a62 | 7501 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7502 | fi |
7a197a62 AK |
7503 | |
7504 | ||
ad6254c5 | 7505 | fi |
66e941e8 JM |
7506 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7507 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7508 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7509 | ||
7510 | cat >>confdefs.h <<\_ACEOF | |
7511 | #define HAVE_MMAP 1 | |
7512 | _ACEOF | |
7513 | ||
7514 | fi | |
7515 | rm -f conftest.mmap | |
7516 | ||
66e941e8 JM |
7517 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7518 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 7519 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
66e941e8 | 7520 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7521 | else |
7522 | if test "$cross_compiling" = yes; then | |
7523 | ac_cv_func_stat_empty_string_bug=yes | |
7524 | else | |
7525 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7526 | /* confdefs.h. */ |
7527 | _ACEOF | |
7528 | cat confdefs.h >>conftest.$ac_ext | |
7529 | cat >>conftest.$ac_ext <<_ACEOF | |
7530 | /* end confdefs.h. */ | |
7531 | $ac_includes_default | |
7532 | int | |
7533 | main () | |
7534 | { | |
7535 | struct stat sbuf; | |
7a197a62 | 7536 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7537 | ; |
7538 | return 0; | |
7539 | } | |
7540 | _ACEOF | |
7541 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7542 | if { (ac_try="$ac_link" |
7543 | case "(($ac_try" in | |
7544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7545 | *) ac_try_echo=$ac_try;; | |
7546 | esac | |
66e941e8 JM |
7547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7549 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7550 | ac_status=$? |
66e941e8 | 7551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7553 | { (case "(($ac_try" in |
7554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7555 | *) ac_try_echo=$ac_try;; | |
7556 | esac | |
66e941e8 JM |
7557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7558 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7559 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7560 | ac_status=$? |
66e941e8 | 7561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7562 | (exit $ac_status); }; }; then |
7a197a62 | 7563 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7564 | else |
66e941e8 JM |
7565 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7566 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7567 | sed 's/^/| /' conftest.$ac_ext >&5 |
7568 | ||
7569 | ( exit $ac_status ) | |
7a197a62 | 7570 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7571 | fi |
7a197a62 | 7572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7573 | fi |
7a197a62 AK |
7574 | |
7575 | ||
ad6254c5 | 7576 | fi |
66e941e8 JM |
7577 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7578 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7579 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7580 | case " $LIBOBJS " in |
8a2fc586 | 7581 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7582 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7583 | ;; | |
8a2fc586 AK |
7584 | esac |
7585 | ||
ad6254c5 AK |
7586 | |
7587 | cat >>confdefs.h <<_ACEOF | |
7588 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7589 | _ACEOF | |
7590 | ||
7591 | fi | |
7592 | ||
66e941e8 JM |
7593 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
7594 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 7595 | if test "${ac_cv_func_strtod+set}" = set; then |
66e941e8 | 7596 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7597 | else |
7598 | if test "$cross_compiling" = yes; then | |
7599 | ac_cv_func_strtod=no | |
7600 | else | |
7601 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7602 | /* confdefs.h. */ |
7603 | _ACEOF | |
7604 | cat confdefs.h >>conftest.$ac_ext | |
7605 | cat >>conftest.$ac_ext <<_ACEOF | |
7606 | /* end confdefs.h. */ | |
7607 | ||
7a197a62 AK |
7608 | $ac_includes_default |
7609 | #ifndef strtod | |
ad6254c5 | 7610 | double strtod (); |
7a197a62 | 7611 | #endif |
ad6254c5 AK |
7612 | int |
7613 | main() | |
7614 | { | |
7615 | { | |
7616 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7617 | char *string = " +69"; | |
7618 | char *term; | |
7619 | double value; | |
7620 | value = strtod (string, &term); | |
7621 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7622 | return 1; |
ad6254c5 AK |
7623 | } |
7624 | ||
7625 | { | |
7626 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7627 | terminating character under some conditions. */ | |
7628 | char *string = "NaN"; | |
7629 | char *term; | |
7630 | strtod (string, &term); | |
7631 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7632 | return 1; |
ad6254c5 | 7633 | } |
7a197a62 | 7634 | return 0; |
ad6254c5 AK |
7635 | } |
7636 | ||
7637 | _ACEOF | |
7638 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7639 | if { (ac_try="$ac_link" |
7640 | case "(($ac_try" in | |
7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7642 | *) ac_try_echo=$ac_try;; | |
7643 | esac | |
66e941e8 JM |
7644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7645 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7646 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7647 | ac_status=$? |
66e941e8 | 7648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7649 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7650 | { (case "(($ac_try" in |
7651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7652 | *) ac_try_echo=$ac_try;; | |
7653 | esac | |
66e941e8 JM |
7654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7655 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7656 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7657 | ac_status=$? |
66e941e8 | 7658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7659 | (exit $ac_status); }; }; then |
7660 | ac_cv_func_strtod=yes | |
7661 | else | |
66e941e8 JM |
7662 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7663 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7664 | sed 's/^/| /' conftest.$ac_ext >&5 |
7665 | ||
7666 | ( exit $ac_status ) | |
7667 | ac_cv_func_strtod=no | |
7668 | fi | |
7a197a62 | 7669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7670 | fi |
7a197a62 AK |
7671 | |
7672 | ||
ad6254c5 | 7673 | fi |
66e941e8 JM |
7674 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7675 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7676 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7677 | case " $LIBOBJS " in |
8a2fc586 | 7678 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7679 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7680 | ;; | |
8a2fc586 AK |
7681 | esac |
7682 | ||
66e941e8 JM |
7683 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
7684 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 7685 | if test "${ac_cv_func_pow+set}" = set; then |
66e941e8 | 7686 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7687 | else |
7688 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7689 | /* confdefs.h. */ |
7690 | _ACEOF | |
7691 | cat confdefs.h >>conftest.$ac_ext | |
7692 | cat >>conftest.$ac_ext <<_ACEOF | |
7693 | /* end confdefs.h. */ | |
8a2fc586 AK |
7694 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7696 | #define pow innocuous_pow | |
7697 | ||
ad6254c5 AK |
7698 | /* System header to define __stub macros and hopefully few prototypes, |
7699 | which can conflict with char pow (); below. | |
7700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7701 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7702 | |
ad6254c5 AK |
7703 | #ifdef __STDC__ |
7704 | # include <limits.h> | |
7705 | #else | |
7706 | # include <assert.h> | |
7707 | #endif | |
8a2fc586 AK |
7708 | |
7709 | #undef pow | |
7710 | ||
7a197a62 AK |
7711 | /* Override any GCC internal prototype to avoid an error. |
7712 | Use char because int might match the return type of a GCC | |
7713 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7714 | #ifdef __cplusplus |
7715 | extern "C" | |
ad6254c5 | 7716 | #endif |
ad6254c5 AK |
7717 | char pow (); |
7718 | /* The GNU C library defines this for functions which it implements | |
7719 | to always fail with ENOSYS. Some functions are actually named | |
7720 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7721 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7722 | choke me |
ad6254c5 AK |
7723 | #endif |
7724 | ||
7725 | int | |
7726 | main () | |
7727 | { | |
7a197a62 | 7728 | return pow (); |
ad6254c5 AK |
7729 | ; |
7730 | return 0; | |
7731 | } | |
7732 | _ACEOF | |
7733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7734 | if { (ac_try="$ac_link" |
7735 | case "(($ac_try" in | |
7736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7737 | *) ac_try_echo=$ac_try;; | |
7738 | esac | |
66e941e8 JM |
7739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7740 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7741 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7742 | ac_status=$? |
8a2fc586 AK |
7743 | grep -v '^ *+' conftest.er1 >conftest.err |
7744 | rm -f conftest.er1 | |
7745 | cat conftest.err >&5 | |
66e941e8 | 7746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7747 | (exit $ac_status); } && { |
7748 | test -z "$ac_c_werror_flag" || | |
7749 | test ! -s conftest.err | |
7750 | } && test -s conftest$ac_exeext && | |
7751 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7752 | ac_cv_func_pow=yes |
7753 | else | |
66e941e8 | 7754 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
7756 | ||
7a197a62 | 7757 | ac_cv_func_pow=no |
ad6254c5 | 7758 | fi |
7a197a62 AK |
7759 | |
7760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7761 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7762 | fi |
66e941e8 JM |
7763 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
7764 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
7765 | |
7766 | if test $ac_cv_func_pow = no; then | |
66e941e8 JM |
7767 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
7768 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 7769 | if test "${ac_cv_lib_m_pow+set}" = set; then |
66e941e8 | 7770 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7771 | else |
7772 | ac_check_lib_save_LIBS=$LIBS | |
7773 | LIBS="-lm $LIBS" | |
7774 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7775 | /* confdefs.h. */ |
7776 | _ACEOF | |
7777 | cat confdefs.h >>conftest.$ac_ext | |
7778 | cat >>conftest.$ac_ext <<_ACEOF | |
7779 | /* end confdefs.h. */ | |
7780 | ||
7a197a62 AK |
7781 | /* Override any GCC internal prototype to avoid an error. |
7782 | Use char because int might match the return type of a GCC | |
7783 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7784 | #ifdef __cplusplus |
7785 | extern "C" | |
7786 | #endif | |
ad6254c5 AK |
7787 | char pow (); |
7788 | int | |
7789 | main () | |
7790 | { | |
7a197a62 | 7791 | return pow (); |
ad6254c5 AK |
7792 | ; |
7793 | return 0; | |
7794 | } | |
7795 | _ACEOF | |
7796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7797 | if { (ac_try="$ac_link" |
7798 | case "(($ac_try" in | |
7799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7800 | *) ac_try_echo=$ac_try;; | |
7801 | esac | |
66e941e8 JM |
7802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7803 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7804 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7805 | ac_status=$? |
8a2fc586 AK |
7806 | grep -v '^ *+' conftest.er1 >conftest.err |
7807 | rm -f conftest.er1 | |
7808 | cat conftest.err >&5 | |
66e941e8 | 7809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
7810 | (exit $ac_status); } && { |
7811 | test -z "$ac_c_werror_flag" || | |
7812 | test ! -s conftest.err | |
7813 | } && test -s conftest$ac_exeext && | |
7814 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7815 | ac_cv_lib_m_pow=yes |
7816 | else | |
66e941e8 | 7817 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7818 | sed 's/^/| /' conftest.$ac_ext >&5 |
7819 | ||
7a197a62 | 7820 | ac_cv_lib_m_pow=no |
ad6254c5 | 7821 | fi |
7a197a62 AK |
7822 | |
7823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 7824 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7825 | LIBS=$ac_check_lib_save_LIBS |
7826 | fi | |
66e941e8 JM |
7827 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
7828 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
ad6254c5 AK |
7829 | if test $ac_cv_lib_m_pow = yes; then |
7830 | POW_LIB=-lm | |
7831 | else | |
66e941e8 JM |
7832 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
7833 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
ad6254c5 AK |
7834 | fi |
7835 | ||
7836 | fi | |
7837 | ||
7838 | fi | |
7839 | ||
7840 | ||
7841 | ################################################################################ | |
7842 | ||
7843 | ||
7844 | ################################################################################ | |
7a197a62 | 7845 | # Check whether --enable-jobs was given. |
ad6254c5 | 7846 | if test "${enable_jobs+set}" = set; then |
7a197a62 | 7847 | enableval=$enable_jobs; JOBS=-j$enableval |
ad6254c5 AK |
7848 | else |
7849 | JOBS=-j2 | |
7a197a62 AK |
7850 | fi |
7851 | ||
ad6254c5 AK |
7852 | |
7853 | ################################################################################ | |
66e941e8 JM |
7854 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
7855 | $as_echo_n "checking file owner... " >&6; } | |
ad6254c5 AK |
7856 | OWNER="root" |
7857 | ||
7858 | ||
7a197a62 | 7859 | # Check whether --with-user was given. |
ad6254c5 | 7860 | if test "${with_user+set}" = set; then |
7a197a62 AK |
7861 | withval=$with_user; OWNER="$withval" |
7862 | fi | |
7863 | ||
66e941e8 JM |
7864 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
7865 | $as_echo "$OWNER" >&6; } | |
ad6254c5 AK |
7866 | |
7867 | if test x$OWNER != x; then | |
7868 | OWNER="-o $OWNER" | |
7869 | fi | |
7870 | ||
7871 | ################################################################################ | |
66e941e8 JM |
7872 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
7873 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 AK |
7874 | GROUP="root" |
7875 | ||
7a197a62 | 7876 | # Check whether --with-group was given. |
ad6254c5 | 7877 | if test "${with_group+set}" = set; then |
7a197a62 AK |
7878 | withval=$with_group; GROUP="$withval" |
7879 | fi | |
7880 | ||
66e941e8 JM |
7881 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
7882 | $as_echo "$GROUP" >&6; } | |
ad6254c5 AK |
7883 | |
7884 | if test x$GROUP != x; then | |
7885 | GROUP="-g $GROUP" | |
7886 | fi | |
7887 | ||
7888 | ################################################################################ | |
66e941e8 JM |
7889 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
7890 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
7a197a62 | 7891 | # Check whether --enable-lvm1_fallback was given. |
ad6254c5 | 7892 | if test "${enable_lvm1_fallback+set}" = set; then |
7a197a62 | 7893 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval |
ad6254c5 AK |
7894 | else |
7895 | LVM1_FALLBACK=no | |
7a197a62 AK |
7896 | fi |
7897 | ||
66e941e8 JM |
7898 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
7899 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 AK |
7900 | |
7901 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
7902 | |
7903 | cat >>confdefs.h <<\_ACEOF | |
7904 | #define LVM1_FALLBACK 1 | |
7905 | _ACEOF | |
7906 | ||
ad6254c5 AK |
7907 | fi |
7908 | ||
7909 | ################################################################################ | |
66e941e8 JM |
7910 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
7911 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
ad6254c5 | 7912 | |
7a197a62 | 7913 | # Check whether --with-lvm1 was given. |
ad6254c5 | 7914 | if test "${with_lvm1+set}" = set; then |
7a197a62 | 7915 | withval=$with_lvm1; LVM1="$withval" |
ad6254c5 AK |
7916 | else |
7917 | LVM1="internal" | |
7a197a62 AK |
7918 | fi |
7919 | ||
66e941e8 JM |
7920 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
7921 | $as_echo "$LVM1" >&6; } | |
ad6254c5 AK |
7922 | |
7923 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
66e941e8 | 7924 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
ad6254c5 | 7925 | " >&5 |
66e941e8 | 7926 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
ad6254c5 AK |
7927 | " >&2;} |
7928 | { (exit 1); exit 1; }; } | |
7929 | fi; | |
7930 | ||
7931 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
7932 | |
7933 | cat >>confdefs.h <<\_ACEOF | |
7934 | #define LVM1_INTERNAL 1 | |
7935 | _ACEOF | |
7936 | ||
ad6254c5 AK |
7937 | fi |
7938 | ||
7939 | ################################################################################ | |
66e941e8 JM |
7940 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
7941 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
ad6254c5 | 7942 | |
7a197a62 | 7943 | # Check whether --with-pool was given. |
ad6254c5 | 7944 | if test "${with_pool+set}" = set; then |
7a197a62 | 7945 | withval=$with_pool; POOL="$withval" |
ad6254c5 AK |
7946 | else |
7947 | POOL="internal" | |
7a197a62 AK |
7948 | fi |
7949 | ||
66e941e8 JM |
7950 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
7951 | $as_echo "$POOL" >&6; } | |
ad6254c5 AK |
7952 | |
7953 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
66e941e8 | 7954 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
ad6254c5 | 7955 | " >&5 |
66e941e8 | 7956 | $as_echo "$as_me: error: --with-pool parameter invalid |
ad6254c5 AK |
7957 | " >&2;} |
7958 | { (exit 1); exit 1; }; } | |
7959 | fi; | |
7960 | ||
7961 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
7962 | |
7963 | cat >>confdefs.h <<\_ACEOF | |
7964 | #define POOL_INTERNAL 1 | |
7965 | _ACEOF | |
7966 | ||
ad6254c5 AK |
7967 | fi |
7968 | ||
7969 | ################################################################################ | |
66e941e8 JM |
7970 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
7971 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
ad6254c5 | 7972 | |
7a197a62 | 7973 | # Check whether --with-cluster was given. |
ad6254c5 | 7974 | if test "${with_cluster+set}" = set; then |
7a197a62 AK |
7975 | withval=$with_cluster; CLUSTER="$withval" |
7976 | fi | |
7977 | ||
66e941e8 JM |
7978 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
7979 | $as_echo "$CLUSTER" >&6; } | |
ad6254c5 AK |
7980 | |
7981 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
66e941e8 | 7982 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
ad6254c5 | 7983 | " >&5 |
66e941e8 | 7984 | $as_echo "$as_me: error: --with-cluster parameter invalid |
ad6254c5 AK |
7985 | " >&2;} |
7986 | { (exit 1); exit 1; }; } | |
7987 | fi; | |
7988 | ||
7989 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
7990 | |
7991 | cat >>confdefs.h <<\_ACEOF | |
7992 | #define CLUSTER_LOCKING_INTERNAL 1 | |
7993 | _ACEOF | |
7994 | ||
ad6254c5 AK |
7995 | fi |
7996 | ||
7997 | ################################################################################ | |
66e941e8 JM |
7998 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
7999 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 8000 | |
7a197a62 | 8001 | # Check whether --with-snapshots was given. |
ad6254c5 | 8002 | if test "${with_snapshots+set}" = set; then |
7a197a62 | 8003 | withval=$with_snapshots; SNAPSHOTS="$withval" |
ad6254c5 AK |
8004 | else |
8005 | SNAPSHOTS="internal" | |
7a197a62 AK |
8006 | fi |
8007 | ||
66e941e8 JM |
8008 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8009 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 AK |
8010 | |
8011 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
66e941e8 | 8012 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
ad6254c5 | 8013 | " >&5 |
66e941e8 | 8014 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
ad6254c5 AK |
8015 | " >&2;} |
8016 | { (exit 1); exit 1; }; } | |
8017 | fi; | |
8018 | ||
8019 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
8020 | |
8021 | cat >>confdefs.h <<\_ACEOF | |
8022 | #define SNAPSHOT_INTERNAL 1 | |
8023 | _ACEOF | |
8024 | ||
ad6254c5 AK |
8025 | fi |
8026 | ||
8027 | ################################################################################ | |
66e941e8 JM |
8028 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8029 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
ad6254c5 | 8030 | |
7a197a62 | 8031 | # Check whether --with-mirrors was given. |
ad6254c5 | 8032 | if test "${with_mirrors+set}" = set; then |
7a197a62 | 8033 | withval=$with_mirrors; MIRRORS="$withval" |
ad6254c5 AK |
8034 | else |
8035 | MIRRORS="internal" | |
7a197a62 AK |
8036 | fi |
8037 | ||
66e941e8 JM |
8038 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8039 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 AK |
8040 | |
8041 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
66e941e8 | 8042 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
ad6254c5 | 8043 | " >&5 |
66e941e8 | 8044 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
ad6254c5 AK |
8045 | " >&2;} |
8046 | { (exit 1); exit 1; }; } | |
8047 | fi; | |
8048 | ||
8049 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
8050 | |
8051 | cat >>confdefs.h <<\_ACEOF | |
8052 | #define MIRRORED_INTERNAL 1 | |
8053 | _ACEOF | |
8054 | ||
ad6254c5 AK |
8055 | fi |
8056 | ||
8057 | ################################################################################ | |
66e941e8 JM |
8058 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8059 | $as_echo_n "checking whether to use static linking... " >&6; } | |
7a197a62 | 8060 | # Check whether --enable-static_link was given. |
ad6254c5 | 8061 | if test "${enable_static_link+set}" = set; then |
7a197a62 | 8062 | enableval=$enable_static_link; STATIC_LINK=$enableval |
ad6254c5 AK |
8063 | else |
8064 | STATIC_LINK=no | |
7a197a62 AK |
8065 | fi |
8066 | ||
66e941e8 JM |
8067 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8068 | $as_echo "$STATIC_LINK" >&6; } | |
ad6254c5 AK |
8069 | |
8070 | ################################################################################ | |
66e941e8 JM |
8071 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8072 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7a197a62 | 8073 | # Check whether --enable-readline was given. |
ad6254c5 | 8074 | if test "${enable_readline+set}" = set; then |
7a197a62 | 8075 | enableval=$enable_readline; READLINE=$enableval |
ad6254c5 AK |
8076 | else |
8077 | READLINE=no | |
7a197a62 AK |
8078 | fi |
8079 | ||
66e941e8 JM |
8080 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
8081 | $as_echo "$READLINE" >&6; } | |
ad6254c5 AK |
8082 | |
8083 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
8084 | |
8085 | cat >>confdefs.h <<\_ACEOF | |
8086 | #define READLINE_SUPPORT 1 | |
8087 | _ACEOF | |
8088 | ||
ad6254c5 AK |
8089 | fi |
8090 | ||
8091 | ################################################################################ | |
66e941e8 JM |
8092 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
8093 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
7a197a62 | 8094 | # Check whether --enable-selinux was given. |
ad6254c5 | 8095 | if test "${enable_selinux+set}" = set; then |
7a197a62 AK |
8096 | enableval=$enable_selinux; SELINUX=$enableval |
8097 | fi | |
8098 | ||
66e941e8 JM |
8099 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
8100 | $as_echo "$SELINUX" >&6; } | |
ad6254c5 | 8101 | |
8b1a3214 | 8102 | ################################################################################ |
66e941e8 JM |
8103 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8104 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7a197a62 | 8105 | # Check whether --enable-realtime was given. |
8b1a3214 | 8106 | if test "${enable_realtime+set}" = set; then |
7a197a62 AK |
8107 | enableval=$enable_realtime; REALTIME=$enableval |
8108 | fi | |
8109 | ||
66e941e8 JM |
8110 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8111 | $as_echo "$REALTIME" >&6; } | |
8b1a3214 | 8112 | |
ad6254c5 | 8113 | ################################################################################ |
66e941e8 JM |
8114 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8115 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
ad6254c5 | 8116 | |
7a197a62 | 8117 | # Check whether --with-clvmd was given. |
ad6254c5 | 8118 | if test "${with_clvmd+set}" = set; then |
7a197a62 | 8119 | withval=$with_clvmd; CLVMD="$withval" |
ad6254c5 | 8120 | else |
a266258f | 8121 | CLVMD="none" |
7a197a62 AK |
8122 | fi |
8123 | ||
a266258f | 8124 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 8125 | CLVMD=all |
b1098701 | 8126 | fi |
66e941e8 JM |
8127 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8128 | $as_echo "$CLVMD" >&6; } | |
ad6254c5 | 8129 | |
a266258f | 8130 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
8131 | CLUSTER=internal |
8132 | fi | |
8133 | ||
8134 | ################################################################################ | |
66e941e8 JM |
8135 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8136 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
7a197a62 | 8137 | # Check whether --enable-debug was given. |
ad6254c5 | 8138 | if test "${enable_debug+set}" = set; then |
7a197a62 | 8139 | enableval=$enable_debug; DEBUG=$enableval |
ad6254c5 AK |
8140 | else |
8141 | DEBUG=no | |
7a197a62 AK |
8142 | fi |
8143 | ||
66e941e8 JM |
8144 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8145 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 AK |
8146 | |
8147 | if test x$DEBUG = xyes; then | |
8148 | COPTIMISE_FLAG= | |
8a2fc586 AK |
8149 | else |
8150 | CSCOPE_CMD= | |
ad6254c5 AK |
8151 | fi |
8152 | ||
8153 | ################################################################################ | |
66e941e8 JM |
8154 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8155 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
ad6254c5 | 8156 | |
7a197a62 | 8157 | # Check whether --with-optimisation was given. |
ad6254c5 | 8158 | if test "${with_optimisation+set}" = set; then |
7a197a62 AK |
8159 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" |
8160 | fi | |
8161 | ||
66e941e8 JM |
8162 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8163 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
ad6254c5 AK |
8164 | |
8165 | ################################################################################ | |
66e941e8 JM |
8166 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8167 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
7a197a62 | 8168 | # Check whether --enable-devmapper was given. |
ad6254c5 | 8169 | if test "${enable_devmapper+set}" = set; then |
7a197a62 AK |
8170 | enableval=$enable_devmapper; DEVMAPPER=$enableval |
8171 | fi | |
8172 | ||
66e941e8 JM |
8173 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8174 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 AK |
8175 | |
8176 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
8177 | |
8178 | cat >>confdefs.h <<\_ACEOF | |
8179 | #define DEVMAPPER_SUPPORT 1 | |
8180 | _ACEOF | |
8181 | ||
ad6254c5 AK |
8182 | fi |
8183 | ||
8184 | ################################################################################ | |
66e941e8 JM |
8185 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8186 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
7a197a62 | 8187 | # Check whether --enable-o_direct was given. |
ad6254c5 | 8188 | if test "${enable_o_direct+set}" = set; then |
7a197a62 AK |
8189 | enableval=$enable_o_direct; ODIRECT=$enableval |
8190 | fi | |
8191 | ||
66e941e8 JM |
8192 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8193 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 AK |
8194 | |
8195 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
8196 | |
8197 | cat >>confdefs.h <<\_ACEOF | |
8198 | #define O_DIRECT_SUPPORT 1 | |
8199 | _ACEOF | |
8200 | ||
ad6254c5 AK |
8201 | fi |
8202 | ||
8203 | ################################################################################ | |
66e941e8 JM |
8204 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8205 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
7a197a62 | 8206 | # Check whether --enable-cmdlib was given. |
ad6254c5 | 8207 | if test "${enable_cmdlib+set}" = set; then |
7a197a62 | 8208 | enableval=$enable_cmdlib; CMDLIB=$enableval |
ad6254c5 AK |
8209 | else |
8210 | CMDLIB=no | |
7a197a62 AK |
8211 | fi |
8212 | ||
66e941e8 JM |
8213 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8214 | $as_echo "$CMDLIB" >&6; } | |
ad6254c5 | 8215 | |
ad6254c5 | 8216 | ################################################################################ |
66e941e8 JM |
8217 | { $as_echo "$as_me:$LINENO: checking whether to build fsadm" >&5 |
8218 | $as_echo_n "checking whether to build fsadm... " >&6; } | |
7a197a62 | 8219 | # Check whether --enable-fsadm was given. |
ad6254c5 | 8220 | if test "${enable_fsadm+set}" = set; then |
7a197a62 AK |
8221 | enableval=$enable_fsadm; FSADM=$enableval |
8222 | fi | |
8223 | ||
66e941e8 JM |
8224 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
8225 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8226 | |
06f62ad1 | 8227 | ################################################################################ |
66e941e8 JM |
8228 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8229 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
7a197a62 | 8230 | # Check whether --enable-dmeventd was given. |
06f62ad1 | 8231 | if test "${enable_dmeventd+set}" = set; then |
7a197a62 AK |
8232 | enableval=$enable_dmeventd; DMEVENTD=$enableval |
8233 | fi | |
8234 | ||
66e941e8 JM |
8235 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8236 | $as_echo "$DMEVENTD" >&6; } | |
06f62ad1 AK |
8237 | |
8238 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
66e941e8 | 8239 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 | 8240 | " >&5 |
66e941e8 | 8241 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 AK |
8242 | " >&2;} |
8243 | { (exit 1); exit 1; }; } | |
8244 | fi | |
8245 | ||
15d91f5a | 8246 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
8247 | |
8248 | cat >>confdefs.h <<\_ACEOF | |
8249 | #define DMEVENTD 1 | |
8250 | _ACEOF | |
8251 | ||
15d91f5a | 8252 | fi |
ad6254c5 AK |
8253 | ################################################################################ |
8254 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8255 | then exec_prefix=""; | |
8256 | fi; | |
8257 | ||
8258 | ################################################################################ | |
8259 | if test $ac_cv_c_compiler_gnu = yes; then | |
66e941e8 JM |
8260 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
8261 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
ad6254c5 | 8262 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
66e941e8 | 8263 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8264 | else |
8265 | ac_pattern="Autoconf.*'x'" | |
8266 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8267 | /* confdefs.h. */ |
8268 | _ACEOF | |
8269 | cat confdefs.h >>conftest.$ac_ext | |
8270 | cat >>conftest.$ac_ext <<_ACEOF | |
8271 | /* end confdefs.h. */ | |
8272 | #include <sgtty.h> | |
8273 | Autoconf TIOCGETP | |
8274 | _ACEOF | |
8275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8276 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8277 | ac_cv_prog_gcc_traditional=yes | |
8278 | else | |
8279 | ac_cv_prog_gcc_traditional=no | |
8280 | fi | |
8281 | rm -f conftest* | |
8282 | ||
8283 | ||
8284 | if test $ac_cv_prog_gcc_traditional = no; then | |
8285 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8286 | /* confdefs.h. */ |
8287 | _ACEOF | |
8288 | cat confdefs.h >>conftest.$ac_ext | |
8289 | cat >>conftest.$ac_ext <<_ACEOF | |
8290 | /* end confdefs.h. */ | |
8291 | #include <termio.h> | |
8292 | Autoconf TCGETA | |
8293 | _ACEOF | |
8294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8295 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8296 | ac_cv_prog_gcc_traditional=yes | |
8297 | fi | |
8298 | rm -f conftest* | |
8299 | ||
8300 | fi | |
8301 | fi | |
66e941e8 JM |
8302 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
8303 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
ad6254c5 AK |
8304 | if test $ac_cv_prog_gcc_traditional = yes; then |
8305 | CC="$CC -traditional" | |
8306 | fi | |
8307 | fi | |
8308 | ||
66e941e8 JM |
8309 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
8310 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
ad6254c5 | 8311 | if test "${ac_cv_type_signal+set}" = set; then |
66e941e8 | 8312 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8313 | else |
8314 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8315 | /* confdefs.h. */ |
8316 | _ACEOF | |
8317 | cat confdefs.h >>conftest.$ac_ext | |
8318 | cat >>conftest.$ac_ext <<_ACEOF | |
8319 | /* end confdefs.h. */ | |
8320 | #include <sys/types.h> | |
8321 | #include <signal.h> | |
ad6254c5 AK |
8322 | |
8323 | int | |
8324 | main () | |
8325 | { | |
7a197a62 | 8326 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
8327 | ; |
8328 | return 0; | |
8329 | } | |
8330 | _ACEOF | |
8331 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8332 | if { (ac_try="$ac_compile" |
8333 | case "(($ac_try" in | |
8334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8335 | *) ac_try_echo=$ac_try;; | |
8336 | esac | |
66e941e8 JM |
8337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8338 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8339 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8340 | ac_status=$? |
8a2fc586 AK |
8341 | grep -v '^ *+' conftest.er1 >conftest.err |
8342 | rm -f conftest.er1 | |
8343 | cat conftest.err >&5 | |
66e941e8 | 8344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8345 | (exit $ac_status); } && { |
8346 | test -z "$ac_c_werror_flag" || | |
8347 | test ! -s conftest.err | |
8348 | } && test -s conftest.$ac_objext; then | |
8349 | ac_cv_type_signal=int | |
ad6254c5 | 8350 | else |
66e941e8 | 8351 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8352 | sed 's/^/| /' conftest.$ac_ext >&5 |
8353 | ||
7a197a62 | 8354 | ac_cv_type_signal=void |
ad6254c5 | 8355 | fi |
7a197a62 AK |
8356 | |
8357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 8358 | fi |
66e941e8 JM |
8359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
8360 | $as_echo "$ac_cv_type_signal" >&6; } | |
ad6254c5 AK |
8361 | |
8362 | cat >>confdefs.h <<_ACEOF | |
8363 | #define RETSIGTYPE $ac_cv_type_signal | |
8364 | _ACEOF | |
8365 | ||
8366 | ||
8367 | ||
8368 | for ac_func in vprintf | |
8369 | do | |
66e941e8 JM |
8370 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8371 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8372 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8373 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 8374 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8375 | else |
8376 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8377 | /* confdefs.h. */ |
8378 | _ACEOF | |
8379 | cat confdefs.h >>conftest.$ac_ext | |
8380 | cat >>conftest.$ac_ext <<_ACEOF | |
8381 | /* end confdefs.h. */ | |
8a2fc586 AK |
8382 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8384 | #define $ac_func innocuous_$ac_func | |
8385 | ||
ad6254c5 AK |
8386 | /* System header to define __stub macros and hopefully few prototypes, |
8387 | which can conflict with char $ac_func (); below. | |
8388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8389 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8390 | |
ad6254c5 AK |
8391 | #ifdef __STDC__ |
8392 | # include <limits.h> | |
8393 | #else | |
8394 | # include <assert.h> | |
8395 | #endif | |
8a2fc586 AK |
8396 | |
8397 | #undef $ac_func | |
8398 | ||
7a197a62 AK |
8399 | /* Override any GCC internal prototype to avoid an error. |
8400 | Use char because int might match the return type of a GCC | |
8401 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8402 | #ifdef __cplusplus |
8403 | extern "C" | |
ad6254c5 | 8404 | #endif |
ad6254c5 AK |
8405 | char $ac_func (); |
8406 | /* The GNU C library defines this for functions which it implements | |
8407 | to always fail with ENOSYS. Some functions are actually named | |
8408 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8409 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8410 | choke me |
ad6254c5 AK |
8411 | #endif |
8412 | ||
8413 | int | |
8414 | main () | |
8415 | { | |
7a197a62 | 8416 | return $ac_func (); |
ad6254c5 AK |
8417 | ; |
8418 | return 0; | |
8419 | } | |
8420 | _ACEOF | |
8421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8422 | if { (ac_try="$ac_link" |
8423 | case "(($ac_try" in | |
8424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8425 | *) ac_try_echo=$ac_try;; | |
8426 | esac | |
66e941e8 JM |
8427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8428 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8429 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8430 | ac_status=$? |
8a2fc586 AK |
8431 | grep -v '^ *+' conftest.er1 >conftest.err |
8432 | rm -f conftest.er1 | |
8433 | cat conftest.err >&5 | |
66e941e8 | 8434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8435 | (exit $ac_status); } && { |
8436 | test -z "$ac_c_werror_flag" || | |
8437 | test ! -s conftest.err | |
8438 | } && test -s conftest$ac_exeext && | |
8439 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8440 | eval "$as_ac_var=yes" |
8441 | else | |
66e941e8 | 8442 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8443 | sed 's/^/| /' conftest.$ac_ext >&5 |
8444 | ||
7a197a62 | 8445 | eval "$as_ac_var=no" |
ad6254c5 | 8446 | fi |
7a197a62 AK |
8447 | |
8448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8449 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8450 | fi |
66e941e8 JM |
8451 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8452 | $as_echo "$as_val"'` | |
8453 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8454 | $as_echo "$ac_res" >&6; } | |
8455 | if test `eval 'as_val=${'$as_ac_var'} | |
8456 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 8457 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 8458 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8459 | _ACEOF |
8460 | ||
66e941e8 JM |
8461 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8462 | $as_echo_n "checking for _doprnt... " >&6; } | |
ad6254c5 | 8463 | if test "${ac_cv_func__doprnt+set}" = set; then |
66e941e8 | 8464 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8465 | else |
8466 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8467 | /* confdefs.h. */ |
8468 | _ACEOF | |
8469 | cat confdefs.h >>conftest.$ac_ext | |
8470 | cat >>conftest.$ac_ext <<_ACEOF | |
8471 | /* end confdefs.h. */ | |
8a2fc586 AK |
8472 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
8473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8474 | #define _doprnt innocuous__doprnt | |
8475 | ||
ad6254c5 AK |
8476 | /* System header to define __stub macros and hopefully few prototypes, |
8477 | which can conflict with char _doprnt (); below. | |
8478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8479 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8480 | |
ad6254c5 AK |
8481 | #ifdef __STDC__ |
8482 | # include <limits.h> | |
8483 | #else | |
8484 | # include <assert.h> | |
8485 | #endif | |
8a2fc586 AK |
8486 | |
8487 | #undef _doprnt | |
8488 | ||
7a197a62 AK |
8489 | /* Override any GCC internal prototype to avoid an error. |
8490 | Use char because int might match the return type of a GCC | |
8491 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8492 | #ifdef __cplusplus |
8493 | extern "C" | |
ad6254c5 | 8494 | #endif |
ad6254c5 AK |
8495 | char _doprnt (); |
8496 | /* The GNU C library defines this for functions which it implements | |
8497 | to always fail with ENOSYS. Some functions are actually named | |
8498 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8499 | #if defined __stub__doprnt || defined __stub____doprnt |
ad6254c5 | 8500 | choke me |
ad6254c5 AK |
8501 | #endif |
8502 | ||
8503 | int | |
8504 | main () | |
8505 | { | |
7a197a62 | 8506 | return _doprnt (); |
ad6254c5 AK |
8507 | ; |
8508 | return 0; | |
8509 | } | |
8510 | _ACEOF | |
8511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8512 | if { (ac_try="$ac_link" |
8513 | case "(($ac_try" in | |
8514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8515 | *) ac_try_echo=$ac_try;; | |
8516 | esac | |
66e941e8 JM |
8517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8518 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8519 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8520 | ac_status=$? |
8a2fc586 AK |
8521 | grep -v '^ *+' conftest.er1 >conftest.err |
8522 | rm -f conftest.er1 | |
8523 | cat conftest.err >&5 | |
66e941e8 | 8524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8525 | (exit $ac_status); } && { |
8526 | test -z "$ac_c_werror_flag" || | |
8527 | test ! -s conftest.err | |
8528 | } && test -s conftest$ac_exeext && | |
8529 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8530 | ac_cv_func__doprnt=yes |
8531 | else | |
66e941e8 | 8532 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8533 | sed 's/^/| /' conftest.$ac_ext >&5 |
8534 | ||
7a197a62 | 8535 | ac_cv_func__doprnt=no |
ad6254c5 | 8536 | fi |
7a197a62 AK |
8537 | |
8538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8539 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8540 | fi |
66e941e8 JM |
8541 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8542 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
ad6254c5 AK |
8543 | if test $ac_cv_func__doprnt = yes; then |
8544 | ||
8545 | cat >>confdefs.h <<\_ACEOF | |
8546 | #define HAVE_DOPRNT 1 | |
8547 | _ACEOF | |
8548 | ||
8549 | fi | |
8550 | ||
8551 | fi | |
8552 | done | |
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | for ac_func in mkdir rmdir uname | |
8559 | do | |
66e941e8 JM |
8560 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8561 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8562 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8563 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 8564 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8565 | else |
8566 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8567 | /* confdefs.h. */ |
8568 | _ACEOF | |
8569 | cat confdefs.h >>conftest.$ac_ext | |
8570 | cat >>conftest.$ac_ext <<_ACEOF | |
8571 | /* end confdefs.h. */ | |
8a2fc586 AK |
8572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8574 | #define $ac_func innocuous_$ac_func | |
8575 | ||
ad6254c5 AK |
8576 | /* System header to define __stub macros and hopefully few prototypes, |
8577 | which can conflict with char $ac_func (); below. | |
8578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8579 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8580 | |
ad6254c5 AK |
8581 | #ifdef __STDC__ |
8582 | # include <limits.h> | |
8583 | #else | |
8584 | # include <assert.h> | |
8585 | #endif | |
8a2fc586 AK |
8586 | |
8587 | #undef $ac_func | |
8588 | ||
7a197a62 AK |
8589 | /* Override any GCC internal prototype to avoid an error. |
8590 | Use char because int might match the return type of a GCC | |
8591 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8592 | #ifdef __cplusplus |
8593 | extern "C" | |
ad6254c5 | 8594 | #endif |
ad6254c5 AK |
8595 | char $ac_func (); |
8596 | /* The GNU C library defines this for functions which it implements | |
8597 | to always fail with ENOSYS. Some functions are actually named | |
8598 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8599 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8600 | choke me |
ad6254c5 AK |
8601 | #endif |
8602 | ||
8603 | int | |
8604 | main () | |
8605 | { | |
7a197a62 | 8606 | return $ac_func (); |
ad6254c5 AK |
8607 | ; |
8608 | return 0; | |
8609 | } | |
8610 | _ACEOF | |
8611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8612 | if { (ac_try="$ac_link" |
8613 | case "(($ac_try" in | |
8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8615 | *) ac_try_echo=$ac_try;; | |
8616 | esac | |
66e941e8 JM |
8617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8618 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8619 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8620 | ac_status=$? |
8a2fc586 AK |
8621 | grep -v '^ *+' conftest.er1 >conftest.err |
8622 | rm -f conftest.er1 | |
8623 | cat conftest.err >&5 | |
66e941e8 | 8624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8625 | (exit $ac_status); } && { |
8626 | test -z "$ac_c_werror_flag" || | |
8627 | test ! -s conftest.err | |
8628 | } && test -s conftest$ac_exeext && | |
8629 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8630 | eval "$as_ac_var=yes" |
8631 | else | |
66e941e8 | 8632 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8633 | sed 's/^/| /' conftest.$ac_ext >&5 |
8634 | ||
7a197a62 | 8635 | eval "$as_ac_var=no" |
ad6254c5 | 8636 | fi |
7a197a62 AK |
8637 | |
8638 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8639 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8640 | fi |
66e941e8 JM |
8641 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8642 | $as_echo "$as_val"'` | |
8643 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8644 | $as_echo "$ac_res" >&6; } | |
8645 | if test `eval 'as_val=${'$as_ac_var'} | |
8646 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 8647 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 8648 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8649 | _ACEOF |
8650 | ||
8651 | else | |
66e941e8 JM |
8652 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8653 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8654 | { (exit 1); exit 1; }; } |
8655 | fi | |
8656 | done | |
8657 | ||
8658 | ||
8659 | ################################################################################ | |
8660 | if test x$READLINE = xyes; then | |
66e941e8 JM |
8661 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8662 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 8663 | if test "${ac_cv_search_tgetent+set}" = set; then |
66e941e8 | 8664 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8665 | else |
8666 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8667 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8668 | /* confdefs.h. */ |
8669 | _ACEOF | |
8670 | cat confdefs.h >>conftest.$ac_ext | |
8671 | cat >>conftest.$ac_ext <<_ACEOF | |
8672 | /* end confdefs.h. */ | |
8673 | ||
7a197a62 AK |
8674 | /* Override any GCC internal prototype to avoid an error. |
8675 | Use char because int might match the return type of a GCC | |
8676 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8677 | #ifdef __cplusplus |
8678 | extern "C" | |
8679 | #endif | |
ad6254c5 AK |
8680 | char tgetent (); |
8681 | int | |
8682 | main () | |
8683 | { | |
7a197a62 | 8684 | return tgetent (); |
ad6254c5 AK |
8685 | ; |
8686 | return 0; | |
8687 | } | |
8688 | _ACEOF | |
7a197a62 AK |
8689 | for ac_lib in '' ncurses curses termcap termlib; do |
8690 | if test -z "$ac_lib"; then | |
8691 | ac_res="none required" | |
8692 | else | |
8693 | ac_res=-l$ac_lib | |
8694 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8695 | fi | |
8696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8697 | if { (ac_try="$ac_link" | |
8698 | case "(($ac_try" in | |
8699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8700 | *) ac_try_echo=$ac_try;; | |
8701 | esac | |
66e941e8 JM |
8702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8703 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8704 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8705 | ac_status=$? |
8a2fc586 AK |
8706 | grep -v '^ *+' conftest.er1 >conftest.err |
8707 | rm -f conftest.er1 | |
8708 | cat conftest.err >&5 | |
66e941e8 | 8709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8710 | (exit $ac_status); } && { |
8711 | test -z "$ac_c_werror_flag" || | |
8712 | test ! -s conftest.err | |
8713 | } && test -s conftest$ac_exeext && | |
8714 | $as_test_x conftest$ac_exeext; then | |
8715 | ac_cv_search_tgetent=$ac_res | |
ad6254c5 | 8716 | else |
66e941e8 | 8717 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8718 | sed 's/^/| /' conftest.$ac_ext >&5 |
8719 | ||
ad6254c5 | 8720 | |
7a197a62 | 8721 | fi |
ad6254c5 | 8722 | |
7a197a62 AK |
8723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8724 | conftest$ac_exeext | |
8725 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8726 | break | |
ad6254c5 | 8727 | fi |
7a197a62 AK |
8728 | done |
8729 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8730 | : | |
8731 | else | |
8732 | ac_cv_search_tgetent=no | |
ad6254c5 | 8733 | fi |
7a197a62 | 8734 | rm conftest.$ac_ext |
ad6254c5 AK |
8735 | LIBS=$ac_func_search_save_LIBS |
8736 | fi | |
66e941e8 JM |
8737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8738 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8739 | ac_res=$ac_cv_search_tgetent |
8740 | if test "$ac_res" != no; then | |
8741 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
8742 | |
8743 | else | |
66e941e8 | 8744 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
8745 | --enable-readline option (which is enabled by default). Either disable readline |
8746 | support with --disable-readline or download and install termcap from: | |
8747 | ftp.gnu.org/gnu/termcap | |
8748 | Note: if you are using precompiled packages you will also need the development | |
8749 | package as well (which may be called termcap-devel or something similar). | |
8750 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8751 | not found either - but you could try installing that as well. | |
8752 | " >&5 | |
66e941e8 | 8753 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8754 | --enable-readline option (which is enabled by default). Either disable readline |
8755 | support with --disable-readline or download and install termcap from: | |
8756 | ftp.gnu.org/gnu/termcap | |
8757 | Note: if you are using precompiled packages you will also need the development | |
8758 | package as well (which may be called termcap-devel or something similar). | |
8759 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8760 | not found either - but you could try installing that as well. | |
8761 | " >&2;} | |
8762 | { (exit 1); exit 1; }; } | |
8763 | ||
8764 | fi | |
8765 | ||
8766 | fi | |
8767 | ||
8768 | ################################################################################ | |
66e941e8 JM |
8769 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8770 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 8771 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
66e941e8 | 8772 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8773 | else |
8774 | ac_check_lib_save_LIBS=$LIBS | |
8775 | LIBS="-ldl $LIBS" | |
8776 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8777 | /* confdefs.h. */ |
8778 | _ACEOF | |
8779 | cat confdefs.h >>conftest.$ac_ext | |
8780 | cat >>conftest.$ac_ext <<_ACEOF | |
8781 | /* end confdefs.h. */ | |
8782 | ||
7a197a62 AK |
8783 | /* Override any GCC internal prototype to avoid an error. |
8784 | Use char because int might match the return type of a GCC | |
8785 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8786 | #ifdef __cplusplus |
8787 | extern "C" | |
8788 | #endif | |
ad6254c5 AK |
8789 | char dlopen (); |
8790 | int | |
8791 | main () | |
8792 | { | |
7a197a62 | 8793 | return dlopen (); |
ad6254c5 AK |
8794 | ; |
8795 | return 0; | |
8796 | } | |
8797 | _ACEOF | |
8798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8799 | if { (ac_try="$ac_link" |
8800 | case "(($ac_try" in | |
8801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8802 | *) ac_try_echo=$ac_try;; | |
8803 | esac | |
66e941e8 JM |
8804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8805 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8806 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8807 | ac_status=$? |
8a2fc586 AK |
8808 | grep -v '^ *+' conftest.er1 >conftest.err |
8809 | rm -f conftest.er1 | |
8810 | cat conftest.err >&5 | |
66e941e8 | 8811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8812 | (exit $ac_status); } && { |
8813 | test -z "$ac_c_werror_flag" || | |
8814 | test ! -s conftest.err | |
8815 | } && test -s conftest$ac_exeext && | |
8816 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8817 | ac_cv_lib_dl_dlopen=yes |
8818 | else | |
66e941e8 | 8819 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8820 | sed 's/^/| /' conftest.$ac_ext >&5 |
8821 | ||
7a197a62 | 8822 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8823 | fi |
7a197a62 AK |
8824 | |
8825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8826 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8827 | LIBS=$ac_check_lib_save_LIBS |
8828 | fi | |
66e941e8 JM |
8829 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8830 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8831 | if test $ac_cv_lib_dl_dlopen = yes; then |
8832 | HAVE_LIBDL=yes | |
8833 | else | |
8834 | HAVE_LIBDL=no | |
8835 | fi | |
8836 | ||
8837 | ||
7e9e9502 | 8838 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8839 | |
8840 | cat >>confdefs.h <<\_ACEOF | |
8841 | #define HAVE_LIBDL 1 | |
8842 | _ACEOF | |
8843 | ||
ad6254c5 AK |
8844 | LIBS="-ldl $LIBS" |
8845 | else | |
8846 | HAVE_LIBDL=no | |
8847 | fi | |
8848 | ||
8849 | ################################################################################ | |
8850 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8851 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8852 | \) -a "x$STATIC_LINK" = xyes ]; | |
66e941e8 | 8853 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 8854 | " >&5 |
66e941e8 | 8855 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
8856 | " >&2;} |
8857 | { (exit 1); exit 1; }; } | |
8858 | fi | |
8859 | ||
8860 | ################################################################################ | |
8861 | if test x$SELINUX = xyes; then | |
66e941e8 JM |
8862 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
8863 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 8864 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
66e941e8 | 8865 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
8866 | else |
8867 | ac_check_lib_save_LIBS=$LIBS | |
8868 | LIBS="-lsepol $LIBS" | |
8869 | cat >conftest.$ac_ext <<_ACEOF | |
8870 | /* confdefs.h. */ | |
8871 | _ACEOF | |
8872 | cat confdefs.h >>conftest.$ac_ext | |
8873 | cat >>conftest.$ac_ext <<_ACEOF | |
8874 | /* end confdefs.h. */ | |
8875 | ||
7a197a62 AK |
8876 | /* Override any GCC internal prototype to avoid an error. |
8877 | Use char because int might match the return type of a GCC | |
8878 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
8879 | #ifdef __cplusplus |
8880 | extern "C" | |
8881 | #endif | |
8a2fc586 AK |
8882 | char sepol_check_context (); |
8883 | int | |
8884 | main () | |
8885 | { | |
7a197a62 | 8886 | return sepol_check_context (); |
8a2fc586 AK |
8887 | ; |
8888 | return 0; | |
8889 | } | |
8890 | _ACEOF | |
8891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8892 | if { (ac_try="$ac_link" |
8893 | case "(($ac_try" in | |
8894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8895 | *) ac_try_echo=$ac_try;; | |
8896 | esac | |
66e941e8 JM |
8897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8898 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8899 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
8900 | ac_status=$? |
8901 | grep -v '^ *+' conftest.er1 >conftest.err | |
8902 | rm -f conftest.er1 | |
8903 | cat conftest.err >&5 | |
66e941e8 | 8904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8905 | (exit $ac_status); } && { |
8906 | test -z "$ac_c_werror_flag" || | |
8907 | test ! -s conftest.err | |
8908 | } && test -s conftest$ac_exeext && | |
8909 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
8910 | ac_cv_lib_sepol_sepol_check_context=yes |
8911 | else | |
66e941e8 | 8912 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
8913 | sed 's/^/| /' conftest.$ac_ext >&5 |
8914 | ||
7a197a62 | 8915 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 8916 | fi |
7a197a62 AK |
8917 | |
8918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 AK |
8919 | conftest$ac_exeext conftest.$ac_ext |
8920 | LIBS=$ac_check_lib_save_LIBS | |
8921 | fi | |
66e941e8 JM |
8922 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
8923 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
8924 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
8925 | HAVE_SEPOL=yes | |
8926 | else | |
8927 | HAVE_SEPOL=no | |
8928 | fi | |
8929 | ||
8a2fc586 AK |
8930 | |
8931 | if test x$HAVE_SEPOL = xyes; then | |
8932 | LIBS="-lsepol $LIBS" | |
8933 | fi | |
8934 | ||
66e941e8 JM |
8935 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
8936 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 8937 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
66e941e8 | 8938 | $as_echo_n "(cached) " >&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 | |
66e941e8 JM |
8970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8971 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8972 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8973 | ac_status=$? |
8a2fc586 AK |
8974 | grep -v '^ *+' conftest.er1 >conftest.err |
8975 | rm -f conftest.er1 | |
8976 | cat conftest.err >&5 | |
66e941e8 | 8977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
8978 | (exit $ac_status); } && { |
8979 | test -z "$ac_c_werror_flag" || | |
8980 | test ! -s conftest.err | |
8981 | } && test -s conftest$ac_exeext && | |
8982 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8983 | ac_cv_lib_selinux_is_selinux_enabled=yes |
8984 | else | |
66e941e8 | 8985 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8986 | sed 's/^/| /' conftest.$ac_ext >&5 |
8987 | ||
7a197a62 | 8988 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 8989 | fi |
7a197a62 AK |
8990 | |
8991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 8992 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8993 | LIBS=$ac_check_lib_save_LIBS |
8994 | fi | |
66e941e8 JM |
8995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
8996 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
8997 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
8998 | HAVE_SELINUX=yes | |
8999 | else | |
9000 | HAVE_SELINUX=no | |
9001 | fi | |
9002 | ||
ad6254c5 AK |
9003 | |
9004 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9005 | |
9006 | cat >>confdefs.h <<\_ACEOF | |
9007 | #define HAVE_SELINUX 1 | |
9008 | _ACEOF | |
9009 | ||
ad6254c5 AK |
9010 | LIBS="-lselinux $LIBS" |
9011 | else | |
66e941e8 JM |
9012 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9013 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9014 | fi | |
9015 | ||
9016 | # With --enable-static_link and selinux enabled, linking lvm.static | |
9017 | # fails on at least Debian unstable due to unsatisfied references | |
9018 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9019 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9020 | lvm_saved_libs=$LIBS | |
9021 | LIBS="$LIBS -static" | |
9022 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | |
9023 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
9024 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9025 | $as_echo_n "(cached) " >&6 | |
9026 | else | |
9027 | ac_func_search_save_LIBS=$LIBS | |
9028 | cat >conftest.$ac_ext <<_ACEOF | |
9029 | /* confdefs.h. */ | |
9030 | _ACEOF | |
9031 | cat confdefs.h >>conftest.$ac_ext | |
9032 | cat >>conftest.$ac_ext <<_ACEOF | |
9033 | /* end confdefs.h. */ | |
9034 | ||
9035 | /* Override any GCC internal prototype to avoid an error. | |
9036 | Use char because int might match the return type of a GCC | |
9037 | builtin and then its argument prototype would still apply. */ | |
9038 | #ifdef __cplusplus | |
9039 | extern "C" | |
9040 | #endif | |
9041 | char pthread_mutex_lock (); | |
9042 | int | |
9043 | main () | |
9044 | { | |
9045 | return pthread_mutex_lock (); | |
9046 | ; | |
9047 | return 0; | |
9048 | } | |
9049 | _ACEOF | |
9050 | for ac_lib in '' pthread; do | |
9051 | if test -z "$ac_lib"; then | |
9052 | ac_res="none required" | |
9053 | else | |
9054 | ac_res=-l$ac_lib | |
9055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9056 | fi | |
9057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9058 | if { (ac_try="$ac_link" | |
9059 | case "(($ac_try" in | |
9060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9061 | *) ac_try_echo=$ac_try;; | |
9062 | esac | |
9063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9064 | $as_echo "$ac_try_echo") >&5 | |
9065 | (eval "$ac_link") 2>conftest.er1 | |
9066 | ac_status=$? | |
9067 | grep -v '^ *+' conftest.er1 >conftest.err | |
9068 | rm -f conftest.er1 | |
9069 | cat conftest.err >&5 | |
9070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9071 | (exit $ac_status); } && { | |
9072 | test -z "$ac_c_werror_flag" || | |
9073 | test ! -s conftest.err | |
9074 | } && test -s conftest$ac_exeext && | |
9075 | $as_test_x conftest$ac_exeext; then | |
9076 | ac_cv_search_pthread_mutex_lock=$ac_res | |
9077 | else | |
9078 | $as_echo "$as_me: failed program was:" >&5 | |
9079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9080 | ||
9081 | ||
9082 | fi | |
9083 | ||
9084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9085 | conftest$ac_exeext | |
9086 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9087 | break | |
9088 | fi | |
9089 | done | |
9090 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9091 | : | |
9092 | else | |
9093 | ac_cv_search_pthread_mutex_lock=no | |
9094 | fi | |
9095 | rm conftest.$ac_ext | |
9096 | LIBS=$ac_func_search_save_LIBS | |
9097 | fi | |
9098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | |
9099 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
9100 | ac_res=$ac_cv_search_pthread_mutex_lock | |
9101 | if test "$ac_res" != no; then | |
9102 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9103 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9104 | LIB_PTHREAD=-lpthread | |
9105 | fi | |
9106 | ||
9107 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9108 | fi |
9109 | fi | |
9110 | ||
8b1a3214 AK |
9111 | ################################################################################ |
9112 | if test x$REALTIME = xyes; then | |
66e941e8 JM |
9113 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9114 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 9115 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
66e941e8 | 9116 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
9117 | else |
9118 | ac_check_lib_save_LIBS=$LIBS | |
9119 | LIBS="-lrt $LIBS" | |
9120 | cat >conftest.$ac_ext <<_ACEOF | |
9121 | /* confdefs.h. */ | |
9122 | _ACEOF | |
9123 | cat confdefs.h >>conftest.$ac_ext | |
9124 | cat >>conftest.$ac_ext <<_ACEOF | |
9125 | /* end confdefs.h. */ | |
9126 | ||
7a197a62 AK |
9127 | /* Override any GCC internal prototype to avoid an error. |
9128 | Use char because int might match the return type of a GCC | |
9129 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9130 | #ifdef __cplusplus |
9131 | extern "C" | |
9132 | #endif | |
8b1a3214 AK |
9133 | char clock_gettime (); |
9134 | int | |
9135 | main () | |
9136 | { | |
7a197a62 | 9137 | return clock_gettime (); |
8b1a3214 AK |
9138 | ; |
9139 | return 0; | |
9140 | } | |
9141 | _ACEOF | |
9142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9143 | if { (ac_try="$ac_link" |
9144 | case "(($ac_try" in | |
9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9146 | *) ac_try_echo=$ac_try;; | |
9147 | esac | |
66e941e8 JM |
9148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9149 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9150 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9151 | ac_status=$? |
9152 | grep -v '^ *+' conftest.er1 >conftest.err | |
9153 | rm -f conftest.er1 | |
9154 | cat conftest.err >&5 | |
66e941e8 | 9155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9156 | (exit $ac_status); } && { |
9157 | test -z "$ac_c_werror_flag" || | |
9158 | test ! -s conftest.err | |
9159 | } && test -s conftest$ac_exeext && | |
9160 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9161 | ac_cv_lib_rt_clock_gettime=yes |
9162 | else | |
66e941e8 | 9163 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
9165 | ||
7a197a62 | 9166 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9167 | fi |
7a197a62 AK |
9168 | |
9169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8b1a3214 AK |
9170 | conftest$ac_exeext conftest.$ac_ext |
9171 | LIBS=$ac_check_lib_save_LIBS | |
9172 | fi | |
66e941e8 JM |
9173 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9174 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9175 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9176 | HAVE_REALTIME=yes | |
9177 | else | |
9178 | HAVE_REALTIME=no | |
9179 | fi | |
9180 | ||
8b1a3214 AK |
9181 | |
9182 | if test x$HAVE_REALTIME = xyes; then | |
9183 | ||
9184 | cat >>confdefs.h <<\_ACEOF | |
9185 | #define HAVE_REALTIME 1 | |
9186 | _ACEOF | |
9187 | ||
9188 | LIBS="-lrt $LIBS" | |
9189 | else | |
66e941e8 JM |
9190 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9191 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9192 | fi |
9193 | fi | |
9194 | ||
ad6254c5 AK |
9195 | ################################################################################ |
9196 | ||
9197 | for ac_header in getopt.h | |
9198 | do | |
66e941e8 | 9199 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
9201 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9202 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9204 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9205 | fi |
66e941e8 JM |
9206 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9207 | $as_echo "$as_val"'` | |
9208 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9209 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9210 | else |
9211 | # Is the header compilable? | |
66e941e8 JM |
9212 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9213 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9215 | /* confdefs.h. */ |
9216 | _ACEOF | |
9217 | cat confdefs.h >>conftest.$ac_ext | |
9218 | cat >>conftest.$ac_ext <<_ACEOF | |
9219 | /* end confdefs.h. */ | |
9220 | $ac_includes_default | |
9221 | #include <$ac_header> | |
9222 | _ACEOF | |
9223 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9224 | if { (ac_try="$ac_compile" |
9225 | case "(($ac_try" in | |
9226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9227 | *) ac_try_echo=$ac_try;; | |
9228 | esac | |
66e941e8 JM |
9229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9230 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9231 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9232 | ac_status=$? |
8a2fc586 AK |
9233 | grep -v '^ *+' conftest.er1 >conftest.err |
9234 | rm -f conftest.er1 | |
9235 | cat conftest.err >&5 | |
66e941e8 | 9236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9237 | (exit $ac_status); } && { |
9238 | test -z "$ac_c_werror_flag" || | |
9239 | test ! -s conftest.err | |
9240 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9241 | ac_header_compiler=yes |
9242 | else | |
66e941e8 | 9243 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9244 | sed 's/^/| /' conftest.$ac_ext >&5 |
9245 | ||
7a197a62 | 9246 | ac_header_compiler=no |
ad6254c5 | 9247 | fi |
7a197a62 AK |
9248 | |
9249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
9250 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9251 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9252 | |
9253 | # Is the header present? | |
66e941e8 JM |
9254 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9255 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9256 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9257 | /* confdefs.h. */ |
9258 | _ACEOF | |
9259 | cat confdefs.h >>conftest.$ac_ext | |
9260 | cat >>conftest.$ac_ext <<_ACEOF | |
9261 | /* end confdefs.h. */ | |
9262 | #include <$ac_header> | |
9263 | _ACEOF | |
7a197a62 AK |
9264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9265 | case "(($ac_try" in | |
9266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9267 | *) ac_try_echo=$ac_try;; | |
9268 | esac | |
66e941e8 JM |
9269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9272 | ac_status=$? |
9273 | grep -v '^ *+' conftest.er1 >conftest.err | |
9274 | rm -f conftest.er1 | |
9275 | cat conftest.err >&5 | |
66e941e8 | 9276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9277 | (exit $ac_status); } >/dev/null && { |
9278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9279 | test ! -s conftest.err | |
9280 | }; then | |
ad6254c5 AK |
9281 | ac_header_preproc=yes |
9282 | else | |
66e941e8 | 9283 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
9285 | ||
9286 | ac_header_preproc=no | |
9287 | fi | |
7a197a62 | 9288 | |
ad6254c5 | 9289 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
9290 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9291 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9292 | |
9293 | # So? What about this header? | |
8a2fc586 AK |
9294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9295 | yes:no: ) | |
66e941e8 JM |
9296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9297 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9299 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9300 | ac_header_preproc=yes |
ad6254c5 | 9301 | ;; |
8a2fc586 | 9302 | no:yes:* ) |
66e941e8 JM |
9303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9304 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9306 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9308 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9310 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9312 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9314 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9315 | |
ad6254c5 AK |
9316 | ;; |
9317 | esac | |
66e941e8 JM |
9318 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9319 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9321 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9322 | else |
8a2fc586 | 9323 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9324 | fi |
66e941e8 JM |
9325 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9326 | $as_echo "$as_val"'` | |
9327 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9328 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9329 | |
9330 | fi | |
66e941e8 JM |
9331 | if test `eval 'as_val=${'$as_ac_Header'} |
9332 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 9333 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 9334 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9335 | _ACEOF |
72b2cb61 AK |
9336 | |
9337 | cat >>confdefs.h <<\_ACEOF | |
9338 | #define HAVE_GETOPTLONG 1 | |
9339 | _ACEOF | |
9340 | ||
ad6254c5 AK |
9341 | fi |
9342 | ||
9343 | done | |
9344 | ||
9345 | ||
9346 | ################################################################################ | |
9347 | if test x$READLINE = xyes; then | |
9348 | ||
66e941e8 JM |
9349 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9350 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 9351 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
66e941e8 | 9352 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9353 | else |
9354 | ac_check_lib_save_LIBS=$LIBS | |
9355 | LIBS="-lreadline $LIBS" | |
9356 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9357 | /* confdefs.h. */ |
9358 | _ACEOF | |
9359 | cat confdefs.h >>conftest.$ac_ext | |
9360 | cat >>conftest.$ac_ext <<_ACEOF | |
9361 | /* end confdefs.h. */ | |
9362 | ||
7a197a62 AK |
9363 | /* Override any GCC internal prototype to avoid an error. |
9364 | Use char because int might match the return type of a GCC | |
9365 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9366 | #ifdef __cplusplus |
9367 | extern "C" | |
9368 | #endif | |
ad6254c5 AK |
9369 | char readline (); |
9370 | int | |
9371 | main () | |
9372 | { | |
7a197a62 | 9373 | return readline (); |
ad6254c5 AK |
9374 | ; |
9375 | return 0; | |
9376 | } | |
9377 | _ACEOF | |
9378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9379 | if { (ac_try="$ac_link" |
9380 | case "(($ac_try" in | |
9381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9382 | *) ac_try_echo=$ac_try;; | |
9383 | esac | |
66e941e8 JM |
9384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9385 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9386 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9387 | ac_status=$? |
8a2fc586 AK |
9388 | grep -v '^ *+' conftest.er1 >conftest.err |
9389 | rm -f conftest.er1 | |
9390 | cat conftest.err >&5 | |
66e941e8 | 9391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9392 | (exit $ac_status); } && { |
9393 | test -z "$ac_c_werror_flag" || | |
9394 | test ! -s conftest.err | |
9395 | } && test -s conftest$ac_exeext && | |
9396 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9397 | ac_cv_lib_readline_readline=yes |
9398 | else | |
66e941e8 | 9399 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9400 | sed 's/^/| /' conftest.$ac_ext >&5 |
9401 | ||
7a197a62 | 9402 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9403 | fi |
7a197a62 AK |
9404 | |
9405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 9406 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9407 | LIBS=$ac_check_lib_save_LIBS |
9408 | fi | |
66e941e8 JM |
9409 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9410 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
9411 | if test $ac_cv_lib_readline_readline = yes; then |
9412 | cat >>confdefs.h <<_ACEOF | |
9413 | #define HAVE_LIBREADLINE 1 | |
9414 | _ACEOF | |
9415 | ||
9416 | LIBS="-lreadline $LIBS" | |
9417 | ||
9418 | else | |
66e941e8 | 9419 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9420 | --enable-readline option (which is enabled by default). Either disable readline |
9421 | support with --disable-readline or download and install readline from: | |
9422 | ftp.gnu.org/gnu/readline | |
9423 | Note: if you are using precompiled packages you will also need the development | |
9424 | package as well (which may be called readline-devel or something similar). | |
9425 | " >&5 | |
66e941e8 | 9426 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9427 | --enable-readline option (which is enabled by default). Either disable readline |
9428 | support with --disable-readline or download and install readline from: | |
9429 | ftp.gnu.org/gnu/readline | |
9430 | Note: if you are using precompiled packages you will also need the development | |
9431 | package as well (which may be called readline-devel or something similar). | |
9432 | " >&2;} | |
9433 | { (exit 1); exit 1; }; } | |
9434 | ||
9435 | fi | |
9436 | ||
66e941e8 JM |
9437 | { $as_echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
9438 | $as_echo_n "checking for rl_completion_matches... " >&6; } | |
ad6254c5 | 9439 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
66e941e8 | 9440 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9441 | else |
9442 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9443 | /* confdefs.h. */ |
9444 | _ACEOF | |
9445 | cat confdefs.h >>conftest.$ac_ext | |
9446 | cat >>conftest.$ac_ext <<_ACEOF | |
9447 | /* end confdefs.h. */ | |
8a2fc586 AK |
9448 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9450 | #define rl_completion_matches innocuous_rl_completion_matches | |
9451 | ||
ad6254c5 AK |
9452 | /* System header to define __stub macros and hopefully few prototypes, |
9453 | which can conflict with char rl_completion_matches (); below. | |
9454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9455 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9456 | |
ad6254c5 AK |
9457 | #ifdef __STDC__ |
9458 | # include <limits.h> | |
9459 | #else | |
9460 | # include <assert.h> | |
9461 | #endif | |
8a2fc586 AK |
9462 | |
9463 | #undef rl_completion_matches | |
9464 | ||
7a197a62 AK |
9465 | /* Override any GCC internal prototype to avoid an error. |
9466 | Use char because int might match the return type of a GCC | |
9467 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9468 | #ifdef __cplusplus |
9469 | extern "C" | |
ad6254c5 | 9470 | #endif |
ad6254c5 AK |
9471 | char rl_completion_matches (); |
9472 | /* The GNU C library defines this for functions which it implements | |
9473 | to always fail with ENOSYS. Some functions are actually named | |
9474 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9475 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9476 | choke me |
ad6254c5 AK |
9477 | #endif |
9478 | ||
9479 | int | |
9480 | main () | |
9481 | { | |
7a197a62 | 9482 | return rl_completion_matches (); |
ad6254c5 AK |
9483 | ; |
9484 | return 0; | |
9485 | } | |
9486 | _ACEOF | |
9487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9488 | if { (ac_try="$ac_link" |
9489 | case "(($ac_try" in | |
9490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9491 | *) ac_try_echo=$ac_try;; | |
9492 | esac | |
66e941e8 JM |
9493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9494 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9495 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9496 | ac_status=$? |
8a2fc586 AK |
9497 | grep -v '^ *+' conftest.er1 >conftest.err |
9498 | rm -f conftest.er1 | |
9499 | cat conftest.err >&5 | |
66e941e8 | 9500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9501 | (exit $ac_status); } && { |
9502 | test -z "$ac_c_werror_flag" || | |
9503 | test ! -s conftest.err | |
9504 | } && test -s conftest$ac_exeext && | |
9505 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9506 | ac_cv_func_rl_completion_matches=yes |
9507 | else | |
66e941e8 | 9508 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9509 | sed 's/^/| /' conftest.$ac_ext >&5 |
9510 | ||
7a197a62 | 9511 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9512 | fi |
7a197a62 AK |
9513 | |
9514 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 9515 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9516 | fi |
66e941e8 JM |
9517 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9518 | $as_echo "$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9519 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9520 | |
72b2cb61 AK |
9521 | cat >>confdefs.h <<\_ACEOF |
9522 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9523 | _ACEOF | |
9524 | ||
9525 | fi | |
ad6254c5 AK |
9526 | |
9527 | fi | |
9528 | ||
9529 | ################################################################################ | |
66e941e8 JM |
9530 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9531 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 9532 | # Check whether --enable-nls was given. |
ad6254c5 | 9533 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9534 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9535 | else |
9536 | INTL=no | |
7a197a62 AK |
9537 | fi |
9538 | ||
66e941e8 JM |
9539 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
9540 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
9541 | |
9542 | if test x$INTL = xyes; then | |
9543 | INTL_PACKAGE="lvm2" | |
9544 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9545 | set dummy msgfmt; ac_word=$2 | |
66e941e8 JM |
9546 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9547 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 9548 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
66e941e8 | 9549 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9550 | else |
9551 | case $MSGFMT in | |
9552 | [\\/]* | ?:[\\/]*) | |
9553 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9554 | ;; | |
9555 | *) | |
9556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9557 | for as_dir in $PATH | |
9558 | do | |
9559 | IFS=$as_save_IFS | |
9560 | test -z "$as_dir" && as_dir=. | |
9561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 9562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9563 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
66e941e8 | 9564 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9565 | break 2 |
9566 | fi | |
9567 | done | |
9568 | done | |
7a197a62 | 9569 | IFS=$as_save_IFS |
ad6254c5 AK |
9570 | |
9571 | ;; | |
9572 | esac | |
9573 | fi | |
9574 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9575 | if test -n "$MSGFMT"; then |
66e941e8 JM |
9576 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9577 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 9578 | else |
66e941e8 JM |
9579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9580 | $as_echo "no" >&6; } | |
ad6254c5 AK |
9581 | fi |
9582 | ||
7a197a62 | 9583 | |
ad6254c5 | 9584 | if [ "x$MSGFMT" == x ]; |
66e941e8 | 9585 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9586 | " >&5 |
66e941e8 | 9587 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9588 | " >&2;} |
9589 | { (exit 1); exit 1; }; } | |
9590 | fi; | |
9591 | ||
9592 | ||
7a197a62 | 9593 | # Check whether --with-localedir was given. |
ad6254c5 | 9594 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9595 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9596 | else |
9597 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9598 | fi |
9599 | ||
ad6254c5 AK |
9600 | fi |
9601 | ||
9602 | ################################################################################ | |
9603 | ||
7a197a62 | 9604 | # Check whether --with-confdir was given. |
ad6254c5 | 9605 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9606 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9607 | else |
9608 | CONFDIR='/etc' | |
7a197a62 AK |
9609 | fi |
9610 | ||
ad6254c5 AK |
9611 | |
9612 | ||
7a197a62 | 9613 | # Check whether --with-staticdir was given. |
ad6254c5 | 9614 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9615 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9616 | else |
9617 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9618 | fi |
ad6254c5 | 9619 | |
33f732c5 | 9620 | |
7a197a62 AK |
9621 | |
9622 | # Check whether --with-dmdir was given. | |
33f732c5 | 9623 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9624 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9625 | else |
9626 | DMDIR= | |
7a197a62 AK |
9627 | fi |
9628 | ||
33f732c5 | 9629 | |
09339e2b JM |
9630 | # Convert a relative dir name to absolute. |
9631 | case $DMDIR in | |
9632 | /*) ;; | |
9633 | *) DMDIR="`pwd`/$DMDIR" ;; | |
9634 | esac | |
9635 | ||
ad6254c5 AK |
9636 | ################################################################################ |
9637 | if test x$READLINE = xyes; then | |
9638 | ||
9639 | ||
9640 | for ac_header in readline/readline.h readline/history.h | |
9641 | do | |
66e941e8 | 9642 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
9644 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9645 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9647 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9648 | fi |
66e941e8 JM |
9649 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9650 | $as_echo "$as_val"'` | |
9651 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9652 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9653 | else |
9654 | # Is the header compilable? | |
66e941e8 JM |
9655 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9656 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9657 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9658 | /* confdefs.h. */ |
9659 | _ACEOF | |
9660 | cat confdefs.h >>conftest.$ac_ext | |
9661 | cat >>conftest.$ac_ext <<_ACEOF | |
9662 | /* end confdefs.h. */ | |
9663 | $ac_includes_default | |
9664 | #include <$ac_header> | |
9665 | _ACEOF | |
9666 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9667 | if { (ac_try="$ac_compile" |
9668 | case "(($ac_try" in | |
9669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9670 | *) ac_try_echo=$ac_try;; | |
9671 | esac | |
66e941e8 JM |
9672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9673 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9674 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9675 | ac_status=$? |
8a2fc586 AK |
9676 | grep -v '^ *+' conftest.er1 >conftest.err |
9677 | rm -f conftest.er1 | |
9678 | cat conftest.err >&5 | |
66e941e8 | 9679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9680 | (exit $ac_status); } && { |
9681 | test -z "$ac_c_werror_flag" || | |
9682 | test ! -s conftest.err | |
9683 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9684 | ac_header_compiler=yes |
9685 | else | |
66e941e8 | 9686 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9687 | sed 's/^/| /' conftest.$ac_ext >&5 |
9688 | ||
7a197a62 | 9689 | ac_header_compiler=no |
ad6254c5 | 9690 | fi |
7a197a62 AK |
9691 | |
9692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
9693 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9694 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9695 | |
9696 | # Is the header present? | |
66e941e8 JM |
9697 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9698 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9699 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9700 | /* confdefs.h. */ |
9701 | _ACEOF | |
9702 | cat confdefs.h >>conftest.$ac_ext | |
9703 | cat >>conftest.$ac_ext <<_ACEOF | |
9704 | /* end confdefs.h. */ | |
9705 | #include <$ac_header> | |
9706 | _ACEOF | |
7a197a62 AK |
9707 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9708 | case "(($ac_try" in | |
9709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9710 | *) ac_try_echo=$ac_try;; | |
9711 | esac | |
66e941e8 JM |
9712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9713 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9714 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9715 | ac_status=$? |
9716 | grep -v '^ *+' conftest.er1 >conftest.err | |
9717 | rm -f conftest.er1 | |
9718 | cat conftest.err >&5 | |
66e941e8 | 9719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9720 | (exit $ac_status); } >/dev/null && { |
9721 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9722 | test ! -s conftest.err | |
9723 | }; then | |
ad6254c5 AK |
9724 | ac_header_preproc=yes |
9725 | else | |
66e941e8 | 9726 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9727 | sed 's/^/| /' conftest.$ac_ext >&5 |
9728 | ||
9729 | ac_header_preproc=no | |
9730 | fi | |
7a197a62 | 9731 | |
ad6254c5 | 9732 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
9733 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9734 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9735 | |
9736 | # So? What about this header? | |
8a2fc586 AK |
9737 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9738 | yes:no: ) | |
66e941e8 JM |
9739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9740 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9742 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9743 | ac_header_preproc=yes |
ad6254c5 | 9744 | ;; |
8a2fc586 | 9745 | no:yes:* ) |
66e941e8 JM |
9746 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9747 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9749 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9751 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9753 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9755 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9757 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9758 | |
ad6254c5 AK |
9759 | ;; |
9760 | esac | |
66e941e8 JM |
9761 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9762 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9764 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9765 | else |
8a2fc586 | 9766 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9767 | fi |
66e941e8 JM |
9768 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9769 | $as_echo "$as_val"'` | |
9770 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9771 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9772 | |
9773 | fi | |
66e941e8 JM |
9774 | if test `eval 'as_val=${'$as_ac_Header'} |
9775 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 9776 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 9777 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9778 | _ACEOF |
9779 | ||
9780 | else | |
66e941e8 JM |
9781 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
9782 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9783 | { (exit 1); exit 1; }; } |
9784 | fi | |
9785 | ||
9786 | done | |
9787 | ||
9788 | fi | |
9789 | ||
5c7fc7c4 | 9790 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9791 | |
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | 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 | |
9802 | do | |
66e941e8 | 9803 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9804 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
9805 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9806 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9807 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9808 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9809 | fi |
66e941e8 JM |
9810 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9811 | $as_echo "$as_val"'` | |
9812 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9813 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9814 | else |
9815 | # Is the header compilable? | |
66e941e8 JM |
9816 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9817 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9818 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9819 | /* confdefs.h. */ |
9820 | _ACEOF | |
9821 | cat confdefs.h >>conftest.$ac_ext | |
9822 | cat >>conftest.$ac_ext <<_ACEOF | |
9823 | /* end confdefs.h. */ | |
9824 | $ac_includes_default | |
9825 | #include <$ac_header> | |
9826 | _ACEOF | |
9827 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9828 | if { (ac_try="$ac_compile" |
9829 | case "(($ac_try" in | |
9830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9831 | *) ac_try_echo=$ac_try;; | |
9832 | esac | |
66e941e8 JM |
9833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9834 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9835 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9836 | ac_status=$? |
8a2fc586 AK |
9837 | grep -v '^ *+' conftest.er1 >conftest.err |
9838 | rm -f conftest.er1 | |
9839 | cat conftest.err >&5 | |
66e941e8 | 9840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9841 | (exit $ac_status); } && { |
9842 | test -z "$ac_c_werror_flag" || | |
9843 | test ! -s conftest.err | |
9844 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9845 | ac_header_compiler=yes |
9846 | else | |
66e941e8 | 9847 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9848 | sed 's/^/| /' conftest.$ac_ext >&5 |
9849 | ||
7a197a62 | 9850 | ac_header_compiler=no |
ad6254c5 | 9851 | fi |
7a197a62 AK |
9852 | |
9853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
9854 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9855 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9856 | |
9857 | # Is the header present? | |
66e941e8 JM |
9858 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9859 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9860 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9861 | /* confdefs.h. */ |
9862 | _ACEOF | |
9863 | cat confdefs.h >>conftest.$ac_ext | |
9864 | cat >>conftest.$ac_ext <<_ACEOF | |
9865 | /* end confdefs.h. */ | |
9866 | #include <$ac_header> | |
9867 | _ACEOF | |
7a197a62 AK |
9868 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9869 | case "(($ac_try" in | |
9870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9871 | *) ac_try_echo=$ac_try;; | |
9872 | esac | |
66e941e8 JM |
9873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9874 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9875 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9876 | ac_status=$? |
9877 | grep -v '^ *+' conftest.er1 >conftest.err | |
9878 | rm -f conftest.er1 | |
9879 | cat conftest.err >&5 | |
66e941e8 | 9880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
9881 | (exit $ac_status); } >/dev/null && { |
9882 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9883 | test ! -s conftest.err | |
9884 | }; then | |
ad6254c5 AK |
9885 | ac_header_preproc=yes |
9886 | else | |
66e941e8 | 9887 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9888 | sed 's/^/| /' conftest.$ac_ext >&5 |
9889 | ||
9890 | ac_header_preproc=no | |
9891 | fi | |
7a197a62 | 9892 | |
ad6254c5 | 9893 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
9894 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9895 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9896 | |
9897 | # So? What about this header? | |
8a2fc586 AK |
9898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9899 | yes:no: ) | |
66e941e8 JM |
9900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9901 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9902 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9903 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9904 | ac_header_preproc=yes |
ad6254c5 | 9905 | ;; |
8a2fc586 | 9906 | no:yes:* ) |
66e941e8 JM |
9907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9908 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9910 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9912 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9914 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9916 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9918 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9919 | |
ad6254c5 AK |
9920 | ;; |
9921 | esac | |
66e941e8 JM |
9922 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9923 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9925 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9926 | else |
8a2fc586 | 9927 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9928 | fi |
66e941e8 JM |
9929 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9930 | $as_echo "$as_val"'` | |
9931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9932 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9933 | |
9934 | fi | |
66e941e8 JM |
9935 | if test `eval 'as_val=${'$as_ac_Header'} |
9936 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 9937 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 9938 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9939 | _ACEOF |
9940 | ||
9941 | else | |
66e941e8 JM |
9942 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
9943 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 9944 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
9945 | fi |
9946 | ||
ad6254c5 AK |
9947 | done |
9948 | ||
9949 | ||
795ca3e5 | 9950 | |
8106cdd5 | 9951 | |
ad6254c5 AK |
9952 | |
9953 | ||
9954 | for ac_func in dup2 getmntent memmove select socket | |
9955 | do | |
66e941e8 JM |
9956 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9957 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9958 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9959 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 9960 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9961 | else |
ad6254c5 | 9962 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9963 | /* confdefs.h. */ |
9964 | _ACEOF | |
9965 | cat confdefs.h >>conftest.$ac_ext | |
9966 | cat >>conftest.$ac_ext <<_ACEOF | |
9967 | /* end confdefs.h. */ | |
8a2fc586 AK |
9968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9970 | #define $ac_func innocuous_$ac_func | |
9971 | ||
795ca3e5 | 9972 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9973 | which can conflict with char $ac_func (); below. |
9974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9975 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9976 | |
ad6254c5 AK |
9977 | #ifdef __STDC__ |
9978 | # include <limits.h> | |
9979 | #else | |
9980 | # include <assert.h> | |
9981 | #endif | |
8a2fc586 AK |
9982 | |
9983 | #undef $ac_func | |
9984 | ||
7a197a62 AK |
9985 | /* Override any GCC internal prototype to avoid an error. |
9986 | Use char because int might match the return type of a GCC | |
9987 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9988 | #ifdef __cplusplus |
9989 | extern "C" | |
ad6254c5 | 9990 | #endif |
ad6254c5 | 9991 | char $ac_func (); |
795ca3e5 AK |
9992 | /* The GNU C library defines this for functions which it implements |
9993 | to always fail with ENOSYS. Some functions are actually named | |
9994 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9995 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 9996 | choke me |
795ca3e5 AK |
9997 | #endif |
9998 | ||
ad6254c5 AK |
9999 | int |
10000 | main () | |
10001 | { | |
7a197a62 | 10002 | return $ac_func (); |
ad6254c5 AK |
10003 | ; |
10004 | return 0; | |
10005 | } | |
10006 | _ACEOF | |
10007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10008 | if { (ac_try="$ac_link" |
10009 | case "(($ac_try" in | |
10010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10011 | *) ac_try_echo=$ac_try;; | |
10012 | esac | |
66e941e8 JM |
10013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10014 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10015 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10016 | ac_status=$? |
8a2fc586 AK |
10017 | grep -v '^ *+' conftest.er1 >conftest.err |
10018 | rm -f conftest.er1 | |
10019 | cat conftest.err >&5 | |
66e941e8 | 10020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10021 | (exit $ac_status); } && { |
10022 | test -z "$ac_c_werror_flag" || | |
10023 | test ! -s conftest.err | |
10024 | } && test -s conftest$ac_exeext && | |
10025 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10026 | eval "$as_ac_var=yes" |
795ca3e5 | 10027 | else |
66e941e8 | 10028 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10029 | sed 's/^/| /' conftest.$ac_ext >&5 |
10030 | ||
7a197a62 | 10031 | eval "$as_ac_var=no" |
80992638 | 10032 | fi |
7a197a62 AK |
10033 | |
10034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 10035 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10036 | fi |
66e941e8 JM |
10037 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10038 | $as_echo "$as_val"'` | |
10039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10040 | $as_echo "$ac_res" >&6; } | |
10041 | if test `eval 'as_val=${'$as_ac_var'} | |
10042 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10043 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10044 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10045 | _ACEOF |
80992638 AK |
10046 | |
10047 | else | |
66e941e8 JM |
10048 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10049 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10050 | { (exit 1); exit 1; }; } |
8106cdd5 | 10051 | fi |
ad6254c5 | 10052 | done |
795ca3e5 | 10053 | |
7a197a62 AK |
10054 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10055 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
66e941e8 JM |
10056 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10057 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
7a197a62 | 10058 | if test "${ac_cv_search_getmntent+set}" = set; then |
66e941e8 | 10059 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10060 | else |
7a197a62 | 10061 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 10062 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10063 | /* confdefs.h. */ |
10064 | _ACEOF | |
10065 | cat confdefs.h >>conftest.$ac_ext | |
10066 | cat >>conftest.$ac_ext <<_ACEOF | |
10067 | /* end confdefs.h. */ | |
80992638 | 10068 | |
7a197a62 AK |
10069 | /* Override any GCC internal prototype to avoid an error. |
10070 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10071 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10072 | #ifdef __cplusplus |
10073 | extern "C" | |
10074 | #endif | |
ad6254c5 AK |
10075 | char getmntent (); |
10076 | int | |
10077 | main () | |
10078 | { | |
7a197a62 | 10079 | return getmntent (); |
ad6254c5 AK |
10080 | ; |
10081 | return 0; | |
10082 | } | |
10083 | _ACEOF | |
7a197a62 AK |
10084 | for ac_lib in '' sun seq gen; do |
10085 | if test -z "$ac_lib"; then | |
10086 | ac_res="none required" | |
10087 | else | |
10088 | ac_res=-l$ac_lib | |
10089 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10090 | fi | |
10091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10092 | if { (ac_try="$ac_link" | |
10093 | case "(($ac_try" in | |
10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10095 | *) ac_try_echo=$ac_try;; | |
10096 | esac | |
66e941e8 JM |
10097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10098 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10099 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10100 | ac_status=$? |
8a2fc586 AK |
10101 | grep -v '^ *+' conftest.er1 >conftest.err |
10102 | rm -f conftest.er1 | |
10103 | cat conftest.err >&5 | |
66e941e8 | 10104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10105 | (exit $ac_status); } && { |
10106 | test -z "$ac_c_werror_flag" || | |
10107 | test ! -s conftest.err | |
10108 | } && test -s conftest$ac_exeext && | |
10109 | $as_test_x conftest$ac_exeext; then | |
10110 | ac_cv_search_getmntent=$ac_res | |
80992638 | 10111 | else |
66e941e8 | 10112 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10113 | sed 's/^/| /' conftest.$ac_ext >&5 |
10114 | ||
795ca3e5 AK |
10115 | |
10116 | fi | |
10117 | ||
7a197a62 AK |
10118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10119 | conftest$ac_exeext | |
10120 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10121 | break | |
ad6254c5 | 10122 | fi |
7a197a62 AK |
10123 | done |
10124 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10125 | : | |
795ca3e5 | 10126 | else |
7a197a62 | 10127 | ac_cv_search_getmntent=no |
795ca3e5 | 10128 | fi |
7a197a62 AK |
10129 | rm conftest.$ac_ext |
10130 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 10131 | fi |
66e941e8 JM |
10132 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10133 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
7a197a62 AK |
10134 | ac_res=$ac_cv_search_getmntent |
10135 | if test "$ac_res" != no; then | |
10136 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10137 | ac_cv_func_getmntent=yes | |
10138 | ||
10139 | cat >>confdefs.h <<\_ACEOF | |
10140 | #define HAVE_GETMNTENT | |
ad6254c5 | 10141 | _ACEOF |
795ca3e5 | 10142 | |
7a197a62 AK |
10143 | else |
10144 | ac_cv_func_getmntent=no | |
795ca3e5 | 10145 | fi |
795ca3e5 AK |
10146 | |
10147 | ||
ad6254c5 AK |
10148 | # AC_FUNC_REALLOC |
10149 | ||
10150 | ||
10151 | for ac_header in sys/select.h sys/socket.h | |
10152 | do | |
66e941e8 | 10153 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
10155 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10156 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10158 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10159 | fi |
66e941e8 JM |
10160 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10161 | $as_echo "$as_val"'` | |
10162 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10163 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 10164 | else |
ad6254c5 | 10165 | # Is the header compilable? |
66e941e8 JM |
10166 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10167 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10168 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10169 | /* confdefs.h. */ |
10170 | _ACEOF | |
10171 | cat confdefs.h >>conftest.$ac_ext | |
10172 | cat >>conftest.$ac_ext <<_ACEOF | |
10173 | /* end confdefs.h. */ | |
10174 | $ac_includes_default | |
10175 | #include <$ac_header> | |
10176 | _ACEOF | |
10177 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10178 | if { (ac_try="$ac_compile" |
10179 | case "(($ac_try" in | |
10180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10181 | *) ac_try_echo=$ac_try;; | |
10182 | esac | |
66e941e8 JM |
10183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10184 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10185 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10186 | ac_status=$? |
8a2fc586 AK |
10187 | grep -v '^ *+' conftest.er1 >conftest.err |
10188 | rm -f conftest.er1 | |
10189 | cat conftest.err >&5 | |
66e941e8 | 10190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10191 | (exit $ac_status); } && { |
10192 | test -z "$ac_c_werror_flag" || | |
10193 | test ! -s conftest.err | |
10194 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10195 | ac_header_compiler=yes |
80992638 | 10196 | else |
66e941e8 | 10197 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10198 | sed 's/^/| /' conftest.$ac_ext >&5 |
10199 | ||
7a197a62 | 10200 | ac_header_compiler=no |
ad6254c5 | 10201 | fi |
7a197a62 AK |
10202 | |
10203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
10204 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10205 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10206 | |
10207 | # Is the header present? | |
66e941e8 JM |
10208 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10209 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10210 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10211 | /* confdefs.h. */ |
10212 | _ACEOF | |
10213 | cat confdefs.h >>conftest.$ac_ext | |
10214 | cat >>conftest.$ac_ext <<_ACEOF | |
10215 | /* end confdefs.h. */ | |
10216 | #include <$ac_header> | |
10217 | _ACEOF | |
7a197a62 AK |
10218 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10219 | case "(($ac_try" in | |
10220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10221 | *) ac_try_echo=$ac_try;; | |
10222 | esac | |
66e941e8 JM |
10223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10224 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10225 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10226 | ac_status=$? |
10227 | grep -v '^ *+' conftest.er1 >conftest.err | |
10228 | rm -f conftest.er1 | |
10229 | cat conftest.err >&5 | |
66e941e8 | 10230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10231 | (exit $ac_status); } >/dev/null && { |
10232 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10233 | test ! -s conftest.err | |
10234 | }; then | |
ad6254c5 AK |
10235 | ac_header_preproc=yes |
10236 | else | |
66e941e8 | 10237 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10238 | sed 's/^/| /' conftest.$ac_ext >&5 |
10239 | ||
10240 | ac_header_preproc=no | |
10241 | fi | |
7a197a62 | 10242 | |
ad6254c5 | 10243 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
10244 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10245 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10246 | |
10247 | # So? What about this header? | |
8a2fc586 AK |
10248 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10249 | yes:no: ) | |
66e941e8 JM |
10250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10251 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10253 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10254 | ac_header_preproc=yes |
ad6254c5 | 10255 | ;; |
8a2fc586 | 10256 | no:yes:* ) |
66e941e8 JM |
10257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10258 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10260 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10262 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10264 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10265 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10266 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10267 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10268 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10269 | |
ad6254c5 AK |
10270 | ;; |
10271 | esac | |
66e941e8 JM |
10272 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10273 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10275 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10276 | else |
8a2fc586 | 10277 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10278 | fi |
66e941e8 JM |
10279 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10280 | $as_echo "$as_val"'` | |
10281 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10282 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 10283 | |
795ca3e5 | 10284 | fi |
66e941e8 JM |
10285 | if test `eval 'as_val=${'$as_ac_Header'} |
10286 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10287 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10288 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10289 | _ACEOF |
10290 | ||
795ca3e5 AK |
10291 | fi |
10292 | ||
ad6254c5 AK |
10293 | done |
10294 | ||
66e941e8 JM |
10295 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10296 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 10297 | if test "${ac_cv_func_select_args+set}" = set; then |
66e941e8 | 10298 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 10299 | else |
ad6254c5 | 10300 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10301 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10302 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10303 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10304 | /* confdefs.h. */ |
10305 | _ACEOF | |
10306 | cat confdefs.h >>conftest.$ac_ext | |
10307 | cat >>conftest.$ac_ext <<_ACEOF | |
10308 | /* end confdefs.h. */ | |
10309 | $ac_includes_default | |
7a197a62 | 10310 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10311 | # include <sys/select.h> |
10312 | #endif | |
7a197a62 | 10313 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10314 | # include <sys/socket.h> |
10315 | #endif | |
10316 | ||
10317 | int | |
10318 | main () | |
10319 | { | |
10320 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10321 | $ac_arg234, $ac_arg234, $ac_arg234, |
10322 | $ac_arg5); | |
ad6254c5 AK |
10323 | ; |
10324 | return 0; | |
10325 | } | |
10326 | _ACEOF | |
10327 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10328 | if { (ac_try="$ac_compile" |
10329 | case "(($ac_try" in | |
10330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10331 | *) ac_try_echo=$ac_try;; | |
10332 | esac | |
66e941e8 JM |
10333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10334 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10335 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10336 | ac_status=$? |
8a2fc586 AK |
10337 | grep -v '^ *+' conftest.er1 >conftest.err |
10338 | rm -f conftest.er1 | |
10339 | cat conftest.err >&5 | |
66e941e8 | 10340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10341 | (exit $ac_status); } && { |
10342 | test -z "$ac_c_werror_flag" || | |
10343 | test ! -s conftest.err | |
10344 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10345 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10346 | else | |
66e941e8 | 10347 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10348 | sed 's/^/| /' conftest.$ac_ext >&5 |
10349 | ||
7a197a62 | 10350 | |
ad6254c5 | 10351 | fi |
7a197a62 AK |
10352 | |
10353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10354 | done |
10355 | done | |
10356 | done | |
10357 | # Provide a safe default value. | |
10358 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10359 | ||
26e7f2e0 | 10360 | fi |
66e941e8 JM |
10361 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10362 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10363 | ac_save_IFS=$IFS; IFS=',' |
10364 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10365 | IFS=$ac_save_IFS | |
10366 | shift | |
10367 | ||
10368 | cat >>confdefs.h <<_ACEOF | |
10369 | #define SELECT_TYPE_ARG1 $1 | |
10370 | _ACEOF | |
10371 | ||
10372 | ||
10373 | cat >>confdefs.h <<_ACEOF | |
10374 | #define SELECT_TYPE_ARG234 ($2) | |
10375 | _ACEOF | |
10376 | ||
10377 | ||
10378 | cat >>confdefs.h <<_ACEOF | |
10379 | #define SELECT_TYPE_ARG5 ($3) | |
10380 | _ACEOF | |
10381 | ||
80992638 | 10382 | rm -f conftest* |
80992638 | 10383 | |
8106cdd5 | 10384 | fi |
ad6254c5 AK |
10385 | |
10386 | if test x$FSADM = xyes; then | |
10387 | ||
10388 | ||
10389 | ||
10390 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
10391 | do | |
66e941e8 | 10392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
10394 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10395 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10396 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10397 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10398 | fi |
66e941e8 JM |
10399 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10400 | $as_echo "$as_val"'` | |
10401 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10402 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10403 | else |
10404 | # Is the header compilable? | |
66e941e8 JM |
10405 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10406 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10407 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10408 | /* confdefs.h. */ |
10409 | _ACEOF | |
10410 | cat confdefs.h >>conftest.$ac_ext | |
10411 | cat >>conftest.$ac_ext <<_ACEOF | |
10412 | /* end confdefs.h. */ | |
10413 | $ac_includes_default | |
10414 | #include <$ac_header> | |
10415 | _ACEOF | |
10416 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10417 | if { (ac_try="$ac_compile" |
10418 | case "(($ac_try" in | |
10419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10420 | *) ac_try_echo=$ac_try;; | |
10421 | esac | |
66e941e8 JM |
10422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10423 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10424 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10425 | ac_status=$? |
8a2fc586 AK |
10426 | grep -v '^ *+' conftest.er1 >conftest.err |
10427 | rm -f conftest.er1 | |
10428 | cat conftest.err >&5 | |
66e941e8 | 10429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10430 | (exit $ac_status); } && { |
10431 | test -z "$ac_c_werror_flag" || | |
10432 | test ! -s conftest.err | |
10433 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10434 | ac_header_compiler=yes |
10435 | else | |
66e941e8 | 10436 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10437 | sed 's/^/| /' conftest.$ac_ext >&5 |
10438 | ||
7a197a62 | 10439 | ac_header_compiler=no |
ad6254c5 | 10440 | fi |
7a197a62 AK |
10441 | |
10442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
10443 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10444 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10445 | |
10446 | # Is the header present? | |
66e941e8 JM |
10447 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10448 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10449 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10450 | /* confdefs.h. */ |
10451 | _ACEOF | |
10452 | cat confdefs.h >>conftest.$ac_ext | |
10453 | cat >>conftest.$ac_ext <<_ACEOF | |
10454 | /* end confdefs.h. */ | |
10455 | #include <$ac_header> | |
10456 | _ACEOF | |
7a197a62 AK |
10457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10458 | case "(($ac_try" in | |
10459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10460 | *) ac_try_echo=$ac_try;; | |
10461 | esac | |
66e941e8 JM |
10462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10463 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10464 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10465 | ac_status=$? |
10466 | grep -v '^ *+' conftest.er1 >conftest.err | |
10467 | rm -f conftest.er1 | |
10468 | cat conftest.err >&5 | |
66e941e8 | 10469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10470 | (exit $ac_status); } >/dev/null && { |
10471 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10472 | test ! -s conftest.err | |
10473 | }; then | |
ad6254c5 AK |
10474 | ac_header_preproc=yes |
10475 | else | |
66e941e8 | 10476 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10477 | sed 's/^/| /' conftest.$ac_ext >&5 |
10478 | ||
10479 | ac_header_preproc=no | |
10480 | fi | |
7a197a62 | 10481 | |
ad6254c5 | 10482 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
10483 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10484 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10485 | |
10486 | # So? What about this header? | |
8a2fc586 AK |
10487 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10488 | yes:no: ) | |
66e941e8 JM |
10489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10490 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10492 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10493 | ac_header_preproc=yes |
ad6254c5 | 10494 | ;; |
8a2fc586 | 10495 | no:yes:* ) |
66e941e8 JM |
10496 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10497 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10498 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10499 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10500 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10501 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10502 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10503 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10504 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10505 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10506 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10507 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10508 | |
ad6254c5 AK |
10509 | ;; |
10510 | esac | |
66e941e8 JM |
10511 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10512 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10514 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 10515 | else |
8a2fc586 | 10516 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 10517 | fi |
66e941e8 JM |
10518 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10519 | $as_echo "$as_val"'` | |
10520 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10521 | $as_echo "$ac_res" >&6; } | |
26e7f2e0 | 10522 | |
ad6254c5 | 10523 | fi |
66e941e8 JM |
10524 | if test `eval 'as_val=${'$as_ac_Header'} |
10525 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10526 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10527 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10528 | _ACEOF |
26e7f2e0 | 10529 | |
d68a82ec | 10530 | else |
66e941e8 JM |
10531 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10532 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10533 | { (exit 1); exit 1; }; } |
26e7f2e0 AK |
10534 | fi |
10535 | ||
ad6254c5 | 10536 | done |
036f273a | 10537 | |
ad6254c5 AK |
10538 | |
10539 | for ac_func in memmove | |
10540 | do | |
66e941e8 JM |
10541 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10542 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10543 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10544 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10545 | $as_echo_n "(cached) " >&6 |
036f273a | 10546 | else |
ad6254c5 | 10547 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10548 | /* confdefs.h. */ |
10549 | _ACEOF | |
10550 | cat confdefs.h >>conftest.$ac_ext | |
10551 | cat >>conftest.$ac_ext <<_ACEOF | |
10552 | /* end confdefs.h. */ | |
8a2fc586 AK |
10553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10555 | #define $ac_func innocuous_$ac_func | |
10556 | ||
ad6254c5 AK |
10557 | /* System header to define __stub macros and hopefully few prototypes, |
10558 | which can conflict with char $ac_func (); below. | |
10559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10560 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10561 | |
ad6254c5 AK |
10562 | #ifdef __STDC__ |
10563 | # include <limits.h> | |
10564 | #else | |
10565 | # include <assert.h> | |
10566 | #endif | |
8a2fc586 AK |
10567 | |
10568 | #undef $ac_func | |
10569 | ||
7a197a62 AK |
10570 | /* Override any GCC internal prototype to avoid an error. |
10571 | Use char because int might match the return type of a GCC | |
10572 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10573 | #ifdef __cplusplus |
10574 | extern "C" | |
ad6254c5 | 10575 | #endif |
ad6254c5 AK |
10576 | char $ac_func (); |
10577 | /* The GNU C library defines this for functions which it implements | |
10578 | to always fail with ENOSYS. Some functions are actually named | |
10579 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10580 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10581 | choke me |
ad6254c5 | 10582 | #endif |
80992638 | 10583 | |
ad6254c5 AK |
10584 | int |
10585 | main () | |
10586 | { | |
7a197a62 | 10587 | return $ac_func (); |
ad6254c5 AK |
10588 | ; |
10589 | return 0; | |
10590 | } | |
10591 | _ACEOF | |
10592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10593 | if { (ac_try="$ac_link" |
10594 | case "(($ac_try" in | |
10595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10596 | *) ac_try_echo=$ac_try;; | |
10597 | esac | |
66e941e8 JM |
10598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10599 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10600 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10601 | ac_status=$? |
8a2fc586 AK |
10602 | grep -v '^ *+' conftest.er1 >conftest.err |
10603 | rm -f conftest.er1 | |
10604 | cat conftest.err >&5 | |
66e941e8 | 10605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10606 | (exit $ac_status); } && { |
10607 | test -z "$ac_c_werror_flag" || | |
10608 | test ! -s conftest.err | |
10609 | } && test -s conftest$ac_exeext && | |
10610 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10611 | eval "$as_ac_var=yes" |
036f273a | 10612 | else |
66e941e8 | 10613 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10614 | sed 's/^/| /' conftest.$ac_ext >&5 |
10615 | ||
7a197a62 | 10616 | eval "$as_ac_var=no" |
036f273a | 10617 | fi |
7a197a62 AK |
10618 | |
10619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 10620 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10621 | fi |
66e941e8 JM |
10622 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10623 | $as_echo "$as_val"'` | |
10624 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10625 | $as_echo "$ac_res" >&6; } | |
10626 | if test `eval 'as_val=${'$as_ac_var'} | |
10627 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10628 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10629 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10630 | _ACEOF |
036f273a | 10631 | |
ad6254c5 | 10632 | else |
66e941e8 JM |
10633 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10634 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10635 | { (exit 1); exit 1; }; } |
10636 | fi | |
10637 | done | |
036f273a | 10638 | |
036f273a | 10639 | fi |
d68a82ec | 10640 | |
ad6254c5 AK |
10641 | if test x$CLUSTER != xnone; then |
10642 | ||
10643 | ||
10644 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10645 | do |
66e941e8 | 10646 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10647 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
10648 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10649 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10651 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10652 | fi |
66e941e8 JM |
10653 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10654 | $as_echo "$as_val"'` | |
10655 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10656 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10657 | else |
10658 | # Is the header compilable? | |
66e941e8 JM |
10659 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10660 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10661 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10662 | /* confdefs.h. */ |
10663 | _ACEOF | |
10664 | cat confdefs.h >>conftest.$ac_ext | |
10665 | cat >>conftest.$ac_ext <<_ACEOF | |
10666 | /* end confdefs.h. */ | |
10667 | $ac_includes_default | |
10668 | #include <$ac_header> | |
10669 | _ACEOF | |
10670 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10671 | if { (ac_try="$ac_compile" |
10672 | case "(($ac_try" in | |
10673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10674 | *) ac_try_echo=$ac_try;; | |
10675 | esac | |
66e941e8 JM |
10676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10677 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10678 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10679 | ac_status=$? |
8a2fc586 AK |
10680 | grep -v '^ *+' conftest.er1 >conftest.err |
10681 | rm -f conftest.er1 | |
10682 | cat conftest.err >&5 | |
66e941e8 | 10683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10684 | (exit $ac_status); } && { |
10685 | test -z "$ac_c_werror_flag" || | |
10686 | test ! -s conftest.err | |
10687 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10688 | ac_header_compiler=yes |
10689 | else | |
66e941e8 | 10690 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10691 | sed 's/^/| /' conftest.$ac_ext >&5 |
10692 | ||
7a197a62 | 10693 | ac_header_compiler=no |
ad6254c5 | 10694 | fi |
7a197a62 AK |
10695 | |
10696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
10697 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10698 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10699 | |
10700 | # Is the header present? | |
66e941e8 JM |
10701 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10702 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10703 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10704 | /* confdefs.h. */ |
10705 | _ACEOF | |
10706 | cat confdefs.h >>conftest.$ac_ext | |
10707 | cat >>conftest.$ac_ext <<_ACEOF | |
10708 | /* end confdefs.h. */ | |
10709 | #include <$ac_header> | |
10710 | _ACEOF | |
7a197a62 AK |
10711 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10712 | case "(($ac_try" in | |
10713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10714 | *) ac_try_echo=$ac_try;; | |
10715 | esac | |
66e941e8 JM |
10716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10717 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10719 | ac_status=$? |
10720 | grep -v '^ *+' conftest.er1 >conftest.err | |
10721 | rm -f conftest.er1 | |
10722 | cat conftest.err >&5 | |
66e941e8 | 10723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10724 | (exit $ac_status); } >/dev/null && { |
10725 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10726 | test ! -s conftest.err | |
10727 | }; then | |
ad6254c5 AK |
10728 | ac_header_preproc=yes |
10729 | else | |
66e941e8 | 10730 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10731 | sed 's/^/| /' conftest.$ac_ext >&5 |
10732 | ||
10733 | ac_header_preproc=no | |
10734 | fi | |
7a197a62 | 10735 | |
ad6254c5 | 10736 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
10737 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10738 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10739 | |
10740 | # So? What about this header? | |
8a2fc586 AK |
10741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10742 | yes:no: ) | |
66e941e8 JM |
10743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10744 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10746 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10747 | ac_header_preproc=yes |
ad6254c5 | 10748 | ;; |
8a2fc586 | 10749 | no:yes:* ) |
66e941e8 JM |
10750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10751 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10753 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10755 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10757 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10759 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10761 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10762 | |
ad6254c5 AK |
10763 | ;; |
10764 | esac | |
66e941e8 JM |
10765 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10766 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10768 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10769 | else |
8a2fc586 | 10770 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10771 | fi |
66e941e8 JM |
10772 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10773 | $as_echo "$as_val"'` | |
10774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10775 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10776 | |
10777 | fi | |
66e941e8 JM |
10778 | if test `eval 'as_val=${'$as_ac_Header'} |
10779 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10780 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10782 | _ACEOF |
10783 | ||
80992638 | 10784 | else |
66e941e8 JM |
10785 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10786 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10787 | { (exit 1); exit 1; }; } |
b896caa1 | 10788 | fi |
ad6254c5 | 10789 | |
b896caa1 AK |
10790 | done |
10791 | ||
10792 | ||
ad6254c5 AK |
10793 | for ac_func in socket |
10794 | do | |
66e941e8 JM |
10795 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10796 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10797 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10798 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10799 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 10800 | else |
ad6254c5 | 10801 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10802 | /* confdefs.h. */ |
10803 | _ACEOF | |
10804 | cat confdefs.h >>conftest.$ac_ext | |
10805 | cat >>conftest.$ac_ext <<_ACEOF | |
10806 | /* end confdefs.h. */ | |
8a2fc586 AK |
10807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10809 | #define $ac_func innocuous_$ac_func | |
10810 | ||
ad6254c5 AK |
10811 | /* System header to define __stub macros and hopefully few prototypes, |
10812 | which can conflict with char $ac_func (); below. | |
10813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10814 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10815 | |
ad6254c5 AK |
10816 | #ifdef __STDC__ |
10817 | # include <limits.h> | |
10818 | #else | |
10819 | # include <assert.h> | |
10820 | #endif | |
8a2fc586 AK |
10821 | |
10822 | #undef $ac_func | |
10823 | ||
7a197a62 AK |
10824 | /* Override any GCC internal prototype to avoid an error. |
10825 | Use char because int might match the return type of a GCC | |
10826 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10827 | #ifdef __cplusplus |
10828 | extern "C" | |
ad6254c5 | 10829 | #endif |
ad6254c5 AK |
10830 | char $ac_func (); |
10831 | /* The GNU C library defines this for functions which it implements | |
10832 | to always fail with ENOSYS. Some functions are actually named | |
10833 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10834 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10835 | choke me |
ad6254c5 AK |
10836 | #endif |
10837 | ||
10838 | int | |
10839 | main () | |
10840 | { | |
7a197a62 | 10841 | return $ac_func (); |
ad6254c5 AK |
10842 | ; |
10843 | return 0; | |
10844 | } | |
10845 | _ACEOF | |
10846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10847 | if { (ac_try="$ac_link" |
10848 | case "(($ac_try" in | |
10849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10850 | *) ac_try_echo=$ac_try;; | |
10851 | esac | |
66e941e8 JM |
10852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10854 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10855 | ac_status=$? |
8a2fc586 AK |
10856 | grep -v '^ *+' conftest.er1 >conftest.err |
10857 | rm -f conftest.er1 | |
10858 | cat conftest.err >&5 | |
66e941e8 | 10859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10860 | (exit $ac_status); } && { |
10861 | test -z "$ac_c_werror_flag" || | |
10862 | test ! -s conftest.err | |
10863 | } && test -s conftest$ac_exeext && | |
10864 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10865 | eval "$as_ac_var=yes" |
10866 | else | |
66e941e8 | 10867 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10868 | sed 's/^/| /' conftest.$ac_ext >&5 |
10869 | ||
7a197a62 | 10870 | eval "$as_ac_var=no" |
ad6254c5 | 10871 | fi |
7a197a62 AK |
10872 | |
10873 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a2fc586 | 10874 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10875 | fi |
66e941e8 JM |
10876 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10877 | $as_echo "$as_val"'` | |
10878 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10879 | $as_echo "$ac_res" >&6; } | |
10880 | if test `eval 'as_val=${'$as_ac_var'} | |
10881 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10882 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 10883 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10884 | _ACEOF |
10885 | ||
10886 | else | |
66e941e8 JM |
10887 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10888 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10889 | { (exit 1); exit 1; }; } |
10890 | fi | |
10891 | done | |
10892 | ||
10893 | fi | |
10894 | ||
10895 | if test x$HAVE_LIBDL = xyes; then | |
10896 | ||
10897 | for ac_header in dlfcn.h | |
10898 | do | |
66e941e8 | 10899 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
10901 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10902 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10903 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 10904 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10905 | fi |
66e941e8 JM |
10906 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10907 | $as_echo "$as_val"'` | |
10908 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10909 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10910 | else |
10911 | # Is the header compilable? | |
66e941e8 JM |
10912 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10913 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10914 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10915 | /* confdefs.h. */ |
10916 | _ACEOF | |
10917 | cat confdefs.h >>conftest.$ac_ext | |
10918 | cat >>conftest.$ac_ext <<_ACEOF | |
10919 | /* end confdefs.h. */ | |
10920 | $ac_includes_default | |
10921 | #include <$ac_header> | |
10922 | _ACEOF | |
10923 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10924 | if { (ac_try="$ac_compile" |
10925 | case "(($ac_try" in | |
10926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10927 | *) ac_try_echo=$ac_try;; | |
10928 | esac | |
66e941e8 JM |
10929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10930 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10931 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10932 | ac_status=$? |
8a2fc586 AK |
10933 | grep -v '^ *+' conftest.er1 >conftest.err |
10934 | rm -f conftest.er1 | |
10935 | cat conftest.err >&5 | |
66e941e8 | 10936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10937 | (exit $ac_status); } && { |
10938 | test -z "$ac_c_werror_flag" || | |
10939 | test ! -s conftest.err | |
10940 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10941 | ac_header_compiler=yes |
10942 | else | |
66e941e8 | 10943 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10944 | sed 's/^/| /' conftest.$ac_ext >&5 |
10945 | ||
7a197a62 | 10946 | ac_header_compiler=no |
ad6254c5 | 10947 | fi |
7a197a62 AK |
10948 | |
10949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
10950 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10951 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10952 | |
10953 | # Is the header present? | |
66e941e8 JM |
10954 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10955 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10956 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10957 | /* confdefs.h. */ |
10958 | _ACEOF | |
10959 | cat confdefs.h >>conftest.$ac_ext | |
10960 | cat >>conftest.$ac_ext <<_ACEOF | |
10961 | /* end confdefs.h. */ | |
10962 | #include <$ac_header> | |
10963 | _ACEOF | |
7a197a62 AK |
10964 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10965 | case "(($ac_try" in | |
10966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10967 | *) ac_try_echo=$ac_try;; | |
10968 | esac | |
66e941e8 JM |
10969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10970 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10972 | ac_status=$? |
10973 | grep -v '^ *+' conftest.er1 >conftest.err | |
10974 | rm -f conftest.er1 | |
10975 | cat conftest.err >&5 | |
66e941e8 | 10976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
10977 | (exit $ac_status); } >/dev/null && { |
10978 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10979 | test ! -s conftest.err | |
10980 | }; then | |
ad6254c5 AK |
10981 | ac_header_preproc=yes |
10982 | else | |
66e941e8 | 10983 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10984 | sed 's/^/| /' conftest.$ac_ext >&5 |
10985 | ||
10986 | ac_header_preproc=no | |
10987 | fi | |
7a197a62 | 10988 | |
ad6254c5 | 10989 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
10990 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10991 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10992 | |
10993 | # So? What about this header? | |
8a2fc586 AK |
10994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10995 | yes:no: ) | |
66e941e8 JM |
10996 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10997 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10999 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11000 | ac_header_preproc=yes |
ad6254c5 | 11001 | ;; |
8a2fc586 | 11002 | no:yes:* ) |
66e941e8 JM |
11003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11004 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11006 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11008 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11010 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11012 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11014 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11015 | |
ad6254c5 AK |
11016 | ;; |
11017 | esac | |
66e941e8 JM |
11018 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11019 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11021 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11022 | else |
8a2fc586 | 11023 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11024 | fi |
66e941e8 JM |
11025 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11026 | $as_echo "$as_val"'` | |
11027 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11028 | $as_echo "$ac_res" >&6; } | |
80992638 | 11029 | |
8106cdd5 | 11030 | fi |
66e941e8 JM |
11031 | if test `eval 'as_val=${'$as_ac_Header'} |
11032 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11033 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 11034 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11035 | _ACEOF |
795ca3e5 AK |
11036 | |
11037 | else | |
66e941e8 JM |
11038 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11039 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11040 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11041 | fi |
11042 | ||
ad6254c5 | 11043 | done |
80992638 | 11044 | |
ad6254c5 | 11045 | fi |
80992638 | 11046 | |
ad6254c5 | 11047 | if test x$INTL = xyes; then |
83912faa | 11048 | |
ad6254c5 AK |
11049 | for ac_header in libintl.h |
11050 | do | |
66e941e8 | 11051 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
11053 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11054 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11055 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11056 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11057 | fi |
66e941e8 JM |
11058 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11059 | $as_echo "$as_val"'` | |
11060 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11061 | $as_echo "$ac_res" >&6; } | |
83912faa | 11062 | else |
ad6254c5 | 11063 | # Is the header compilable? |
66e941e8 JM |
11064 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11065 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11066 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11067 | /* confdefs.h. */ |
11068 | _ACEOF | |
11069 | cat confdefs.h >>conftest.$ac_ext | |
11070 | cat >>conftest.$ac_ext <<_ACEOF | |
11071 | /* end confdefs.h. */ | |
11072 | $ac_includes_default | |
11073 | #include <$ac_header> | |
11074 | _ACEOF | |
11075 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11076 | if { (ac_try="$ac_compile" |
11077 | case "(($ac_try" in | |
11078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11079 | *) ac_try_echo=$ac_try;; | |
11080 | esac | |
66e941e8 JM |
11081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11082 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11083 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11084 | ac_status=$? |
8a2fc586 AK |
11085 | grep -v '^ *+' conftest.er1 >conftest.err |
11086 | rm -f conftest.er1 | |
11087 | cat conftest.err >&5 | |
66e941e8 | 11088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11089 | (exit $ac_status); } && { |
11090 | test -z "$ac_c_werror_flag" || | |
11091 | test ! -s conftest.err | |
11092 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11093 | ac_header_compiler=yes |
11094 | else | |
66e941e8 | 11095 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11096 | sed 's/^/| /' conftest.$ac_ext >&5 |
11097 | ||
7a197a62 | 11098 | ac_header_compiler=no |
ad6254c5 | 11099 | fi |
7a197a62 AK |
11100 | |
11101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
11102 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11103 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11104 | |
11105 | # Is the header present? | |
66e941e8 JM |
11106 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11107 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11108 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11109 | /* confdefs.h. */ |
11110 | _ACEOF | |
11111 | cat confdefs.h >>conftest.$ac_ext | |
11112 | cat >>conftest.$ac_ext <<_ACEOF | |
11113 | /* end confdefs.h. */ | |
11114 | #include <$ac_header> | |
11115 | _ACEOF | |
7a197a62 AK |
11116 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11117 | case "(($ac_try" in | |
11118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11119 | *) ac_try_echo=$ac_try;; | |
11120 | esac | |
66e941e8 JM |
11121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11122 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11123 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11124 | ac_status=$? |
11125 | grep -v '^ *+' conftest.er1 >conftest.err | |
11126 | rm -f conftest.er1 | |
11127 | cat conftest.err >&5 | |
66e941e8 | 11128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11129 | (exit $ac_status); } >/dev/null && { |
11130 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11131 | test ! -s conftest.err | |
11132 | }; then | |
ad6254c5 AK |
11133 | ac_header_preproc=yes |
11134 | else | |
66e941e8 | 11135 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11136 | sed 's/^/| /' conftest.$ac_ext >&5 |
11137 | ||
11138 | ac_header_preproc=no | |
11139 | fi | |
7a197a62 | 11140 | |
ad6254c5 | 11141 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
11142 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11143 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11144 | |
11145 | # So? What about this header? | |
8a2fc586 AK |
11146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11147 | yes:no: ) | |
66e941e8 JM |
11148 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11149 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11151 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11152 | ac_header_preproc=yes |
ad6254c5 | 11153 | ;; |
8a2fc586 | 11154 | no:yes:* ) |
66e941e8 JM |
11155 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11156 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11157 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11158 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11159 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11160 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11161 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11162 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11163 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11164 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11166 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11167 | |
ad6254c5 AK |
11168 | ;; |
11169 | esac | |
66e941e8 JM |
11170 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11171 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11172 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11173 | $as_echo_n "(cached) " >&6 |
80992638 | 11174 | else |
8a2fc586 | 11175 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11176 | fi |
66e941e8 JM |
11177 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11178 | $as_echo "$as_val"'` | |
11179 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11180 | $as_echo "$ac_res" >&6; } | |
83912faa | 11181 | |
69792976 | 11182 | fi |
66e941e8 JM |
11183 | if test `eval 'as_val=${'$as_ac_Header'} |
11184 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11185 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 11186 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11187 | _ACEOF |
69792976 | 11188 | |
69792976 | 11189 | else |
66e941e8 JM |
11190 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11191 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11192 | { (exit 1); exit 1; }; } |
80992638 AK |
11193 | fi |
11194 | ||
ad6254c5 | 11195 | done |
69792976 | 11196 | |
ad6254c5 AK |
11197 | fi |
11198 | ||
ad6254c5 AK |
11199 | |
11200 | for ac_header in libdevmapper.h | |
11201 | do | |
66e941e8 | 11202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
11204 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11205 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11207 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11208 | fi |
66e941e8 JM |
11209 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11210 | $as_echo "$as_val"'` | |
11211 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11212 | $as_echo "$ac_res" >&6; } | |
69792976 | 11213 | else |
ad6254c5 | 11214 | # Is the header compilable? |
66e941e8 JM |
11215 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11216 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11217 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11218 | /* confdefs.h. */ |
11219 | _ACEOF | |
11220 | cat confdefs.h >>conftest.$ac_ext | |
11221 | cat >>conftest.$ac_ext <<_ACEOF | |
11222 | /* end confdefs.h. */ | |
11223 | $ac_includes_default | |
11224 | #include <$ac_header> | |
11225 | _ACEOF | |
11226 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11227 | if { (ac_try="$ac_compile" |
11228 | case "(($ac_try" in | |
11229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11230 | *) ac_try_echo=$ac_try;; | |
11231 | esac | |
66e941e8 JM |
11232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11233 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11234 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11235 | ac_status=$? |
8a2fc586 AK |
11236 | grep -v '^ *+' conftest.er1 >conftest.err |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
66e941e8 | 11239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11240 | (exit $ac_status); } && { |
11241 | test -z "$ac_c_werror_flag" || | |
11242 | test ! -s conftest.err | |
11243 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11244 | ac_header_compiler=yes |
11245 | else | |
66e941e8 | 11246 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11247 | sed 's/^/| /' conftest.$ac_ext >&5 |
11248 | ||
7a197a62 | 11249 | ac_header_compiler=no |
ad6254c5 | 11250 | fi |
7a197a62 AK |
11251 | |
11252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
11253 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11254 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11255 | |
11256 | # Is the header present? | |
66e941e8 JM |
11257 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11258 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11259 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11260 | /* confdefs.h. */ |
11261 | _ACEOF | |
11262 | cat confdefs.h >>conftest.$ac_ext | |
11263 | cat >>conftest.$ac_ext <<_ACEOF | |
11264 | /* end confdefs.h. */ | |
11265 | #include <$ac_header> | |
11266 | _ACEOF | |
7a197a62 AK |
11267 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11268 | case "(($ac_try" in | |
11269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11270 | *) ac_try_echo=$ac_try;; | |
11271 | esac | |
66e941e8 JM |
11272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11273 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11274 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11275 | ac_status=$? |
11276 | grep -v '^ *+' conftest.er1 >conftest.err | |
11277 | rm -f conftest.er1 | |
11278 | cat conftest.err >&5 | |
66e941e8 | 11279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11280 | (exit $ac_status); } >/dev/null && { |
11281 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11282 | test ! -s conftest.err | |
11283 | }; then | |
ad6254c5 AK |
11284 | ac_header_preproc=yes |
11285 | else | |
66e941e8 | 11286 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11287 | sed 's/^/| /' conftest.$ac_ext >&5 |
11288 | ||
11289 | ac_header_preproc=no | |
11290 | fi | |
7a197a62 | 11291 | |
ad6254c5 | 11292 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
11293 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11294 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11295 | |
11296 | # So? What about this header? | |
8a2fc586 AK |
11297 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11298 | yes:no: ) | |
66e941e8 JM |
11299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11300 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11302 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11303 | ac_header_preproc=yes |
ad6254c5 | 11304 | ;; |
8a2fc586 | 11305 | no:yes:* ) |
66e941e8 JM |
11306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11307 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11309 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11311 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11313 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11315 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11317 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11318 | |
ad6254c5 AK |
11319 | ;; |
11320 | esac | |
66e941e8 JM |
11321 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11322 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11324 | $as_echo_n "(cached) " >&6 |
69792976 | 11325 | else |
8a2fc586 | 11326 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11327 | fi |
66e941e8 JM |
11328 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11329 | $as_echo "$as_val"'` | |
11330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11331 | $as_echo "$ac_res" >&6; } | |
69792976 | 11332 | |
ad6254c5 | 11333 | fi |
66e941e8 JM |
11334 | if test `eval 'as_val=${'$as_ac_Header'} |
11335 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11336 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 11337 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11338 | _ACEOF |
69792976 | 11339 | |
69792976 | 11340 | else |
66e941e8 JM |
11341 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11342 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11343 | { (exit 1); exit 1; }; } |
83912faa AK |
11344 | fi |
11345 | ||
ad6254c5 AK |
11346 | done |
11347 | ||
4a7f3eb2 | 11348 | |
ad6254c5 AK |
11349 | if test x$HAVE_SELINUX = xyes; then |
11350 | ||
11351 | for ac_header in selinux/selinux.h | |
11352 | do | |
66e941e8 | 11353 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 JM |
11355 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11356 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11358 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11359 | fi |
66e941e8 JM |
11360 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11361 | $as_echo "$as_val"'` | |
11362 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11363 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 11364 | else |
ad6254c5 | 11365 | # Is the header compilable? |
66e941e8 JM |
11366 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11367 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11368 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11369 | /* confdefs.h. */ |
11370 | _ACEOF | |
11371 | cat confdefs.h >>conftest.$ac_ext | |
11372 | cat >>conftest.$ac_ext <<_ACEOF | |
11373 | /* end confdefs.h. */ | |
11374 | $ac_includes_default | |
11375 | #include <$ac_header> | |
11376 | _ACEOF | |
11377 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11378 | if { (ac_try="$ac_compile" |
11379 | case "(($ac_try" in | |
11380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11381 | *) ac_try_echo=$ac_try;; | |
11382 | esac | |
66e941e8 JM |
11383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11384 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11385 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11386 | ac_status=$? |
8a2fc586 AK |
11387 | grep -v '^ *+' conftest.er1 >conftest.err |
11388 | rm -f conftest.er1 | |
11389 | cat conftest.err >&5 | |
66e941e8 | 11390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11391 | (exit $ac_status); } && { |
11392 | test -z "$ac_c_werror_flag" || | |
11393 | test ! -s conftest.err | |
11394 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11395 | ac_header_compiler=yes |
11396 | else | |
66e941e8 | 11397 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11398 | sed 's/^/| /' conftest.$ac_ext >&5 |
11399 | ||
7a197a62 | 11400 | ac_header_compiler=no |
ad6254c5 | 11401 | fi |
7a197a62 AK |
11402 | |
11403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66e941e8 JM |
11404 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11405 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11406 | |
11407 | # Is the header present? | |
66e941e8 JM |
11408 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11409 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11410 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11411 | /* confdefs.h. */ |
11412 | _ACEOF | |
11413 | cat confdefs.h >>conftest.$ac_ext | |
11414 | cat >>conftest.$ac_ext <<_ACEOF | |
11415 | /* end confdefs.h. */ | |
11416 | #include <$ac_header> | |
11417 | _ACEOF | |
7a197a62 AK |
11418 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11419 | case "(($ac_try" in | |
11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11421 | *) ac_try_echo=$ac_try;; | |
11422 | esac | |
66e941e8 JM |
11423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11424 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11425 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11426 | ac_status=$? |
11427 | grep -v '^ *+' conftest.er1 >conftest.err | |
11428 | rm -f conftest.er1 | |
11429 | cat conftest.err >&5 | |
66e941e8 | 11430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7a197a62 AK |
11431 | (exit $ac_status); } >/dev/null && { |
11432 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11433 | test ! -s conftest.err | |
11434 | }; then | |
ad6254c5 AK |
11435 | ac_header_preproc=yes |
11436 | else | |
66e941e8 | 11437 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11438 | sed 's/^/| /' conftest.$ac_ext >&5 |
11439 | ||
11440 | ac_header_preproc=no | |
11441 | fi | |
7a197a62 | 11442 | |
ad6254c5 | 11443 | rm -f conftest.err conftest.$ac_ext |
66e941e8 JM |
11444 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11445 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11446 | |
11447 | # So? What about this header? | |
8a2fc586 AK |
11448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11449 | yes:no: ) | |
66e941e8 JM |
11450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11451 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11452 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11453 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11454 | ac_header_preproc=yes |
ad6254c5 | 11455 | ;; |
8a2fc586 | 11456 | no:yes:* ) |
66e941e8 JM |
11457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11458 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11460 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11462 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11464 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11466 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11467 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11468 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11469 | |
ad6254c5 AK |
11470 | ;; |
11471 | esac | |
66e941e8 JM |
11472 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11473 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11474 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
66e941e8 | 11475 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11476 | else |
8a2fc586 | 11477 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11478 | fi |
66e941e8 JM |
11479 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11480 | $as_echo "$as_val"'` | |
11481 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11482 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 11483 | |
ad6254c5 | 11484 | fi |
66e941e8 JM |
11485 | if test `eval 'as_val=${'$as_ac_Header'} |
11486 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11487 | cat >>confdefs.h <<_ACEOF |
66e941e8 | 11488 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11489 | _ACEOF |
0a62c911 | 11490 | |
0a62c911 | 11491 | else |
66e941e8 JM |
11492 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11493 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11494 | { (exit 1); exit 1; }; } |
80992638 AK |
11495 | fi |
11496 | ||
ad6254c5 | 11497 | done |
0a62c911 | 11498 | |
ad6254c5 | 11499 | fi |
0a62c911 | 11500 | |
a653923f AK |
11501 | ################################################################################ |
11502 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11503 | set dummy modprobe; ac_word=$2 | |
66e941e8 JM |
11504 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11505 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 11506 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
66e941e8 | 11507 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
11508 | else |
11509 | case $MODPROBE_CMD in | |
11510 | [\\/]* | ?:[\\/]*) | |
11511 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11512 | ;; | |
11513 | *) | |
11514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11515 | for as_dir in $PATH | |
11516 | do | |
11517 | IFS=$as_save_IFS | |
11518 | test -z "$as_dir" && as_dir=. | |
11519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7a197a62 | 11520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11521 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
66e941e8 | 11522 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11523 | break 2 |
11524 | fi | |
11525 | done | |
11526 | done | |
7a197a62 | 11527 | IFS=$as_save_IFS |
72b2cb61 AK |
11528 | |
11529 | ;; | |
11530 | esac | |
11531 | fi | |
11532 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11533 | if test -n "$MODPROBE_CMD"; then |
66e941e8 JM |
11534 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11535 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11536 | else |
66e941e8 JM |
11537 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11538 | $as_echo "no" >&6; } | |
72b2cb61 AK |
11539 | fi |
11540 | ||
a653923f | 11541 | |
7a197a62 | 11542 | |
a653923f | 11543 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11544 | |
11545 | cat >>confdefs.h <<_ACEOF | |
11546 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11547 | _ACEOF | |
11548 | ||
a653923f AK |
11549 | fi |
11550 | ||
80992638 | 11551 | ################################################################################ |
fae0c576 AK |
11552 | if test "-f VERSION"; then |
11553 | LVM_VERSION="\"`cat VERSION`\"" | |
11554 | else | |
11555 | LVM_VERSION="Unknown" | |
11556 | fi | |
11557 | ||
80992638 | 11558 | ################################################################################ |
fae0c576 | 11559 | |
83912faa | 11560 | |
795ca3e5 AK |
11561 | |
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
5a52dca9 | 11567 | |
8ef2b021 | 11568 | |
199e490e | 11569 | |
69792976 AK |
11570 | |
11571 | ||
11572 | ||
11573 | ||
8106cdd5 AK |
11574 | |
11575 | ||
11576 | ||
11577 | ||
11578 | ||
d68a82ec | 11579 | |
036f273a | 11580 | |
7d1552c9 | 11581 | |
8106cdd5 | 11582 | |
0a62c911 | 11583 | |
8106cdd5 | 11584 | |
4a7f3eb2 | 11585 | |
4922197a AK |
11586 | |
11587 | ||
d8ac0fbc | 11588 | |
1a9ea74d | 11589 | |
8a2fc586 AK |
11590 | |
11591 | ||
11592 | ||
8ce0cbda | 11593 | |
8b1a3214 | 11594 | |
33f732c5 | 11595 | |
66e941e8 | 11596 | |
d3c8211f AK |
11597 | |
11598 | ||
80992638 | 11599 | ################################################################################ |
d3a356b4 | 11600 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile" |
7a197a62 | 11601 | |
ad6254c5 | 11602 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11603 | # This file is a shell script that caches the results of configure |
11604 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11605 | # scripts and configure runs, see configure's option --config-cache. |
11606 | # It is not useful on other systems. If it contains results you don't | |
11607 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11608 | # |
ad6254c5 AK |
11609 | # config.status only pays attention to the cache file if you give it |
11610 | # the --recheck option to rerun configure. | |
795ca3e5 | 11611 | # |
ad6254c5 AK |
11612 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11613 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11614 | # following values. | |
11615 | ||
11616 | _ACEOF | |
11617 | ||
795ca3e5 AK |
11618 | # The following way of writing the cache mishandles newlines in values, |
11619 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11620 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11621 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11622 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11623 | ( |
11624 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11625 | eval ac_val=\$$ac_var | |
11626 | case $ac_val in #( | |
11627 | *${as_nl}*) | |
11628 | case $ac_var in #( | |
66e941e8 JM |
11629 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11630 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11631 | esac |
11632 | case $ac_var in #( | |
11633 | _ | IFS | as_nl) ;; #( | |
66e941e8 | 11634 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
11635 | *) $as_unset $ac_var ;; |
11636 | esac ;; | |
11637 | esac | |
11638 | done | |
11639 | ||
ad6254c5 | 11640 | (set) 2>&1 | |
7a197a62 AK |
11641 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11642 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11643 | # `set' does not quote correctly, so add quotes (double-quote |
11644 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11645 | sed -n \ | |
8a2fc586 AK |
11646 | "s/'/'\\\\''/g; |
11647 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11648 | ;; #( |
ad6254c5 AK |
11649 | *) |
11650 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11651 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11652 | ;; |
7a197a62 AK |
11653 | esac | |
11654 | sort | |
11655 | ) | | |
ad6254c5 | 11656 | sed ' |
7a197a62 | 11657 | /^ac_cv_env_/b end |
ad6254c5 | 11658 | t clear |
7a197a62 | 11659 | :clear |
ad6254c5 AK |
11660 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11661 | t end | |
7a197a62 AK |
11662 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11663 | :end' >>confcache | |
11664 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11665 | if test -w "$cache_file"; then | |
11666 | test "x$cache_file" != "x/dev/null" && | |
66e941e8 JM |
11667 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11668 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11669 | cat confcache >$cache_file |
795ca3e5 | 11670 | else |
66e941e8 JM |
11671 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11672 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11673 | fi |
11674 | fi | |
11675 | rm -f confcache | |
11676 | ||
795ca3e5 AK |
11677 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11678 | # Let make expand exec_prefix. | |
11679 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11680 | ||
72b2cb61 | 11681 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11682 | |
11683 | ac_libobjs= | |
11684 | ac_ltlibobjs= | |
11685 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11686 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11687 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
66e941e8 | 11688 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11689 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11690 | # will be set to the directory where LIBOBJS objects are built. | |
11691 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11692 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11693 | done |
11694 | LIBOBJS=$ac_libobjs | |
80992638 | 11695 | |
ad6254c5 AK |
11696 | LTLIBOBJS=$ac_ltlibobjs |
11697 | ||
11698 | ||
11699 | ||
11700 | : ${CONFIG_STATUS=./config.status} | |
11701 | ac_clean_files_save=$ac_clean_files | |
11702 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
66e941e8 JM |
11703 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11704 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
ad6254c5 AK |
11705 | cat >$CONFIG_STATUS <<_ACEOF |
11706 | #! $SHELL | |
11707 | # Generated by $as_me. | |
795ca3e5 | 11708 | # Run this file to recreate the current configuration. |
795ca3e5 | 11709 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11710 | # configure, is in config.log if it exists. |
11711 | ||
11712 | debug=false | |
11713 | ac_cs_recheck=false | |
11714 | ac_cs_silent=false | |
11715 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11716 | _ACEOF | |
11717 | ||
11718 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11719 | ## --------------------- ## | |
11720 | ## M4sh Initialization. ## | |
11721 | ## --------------------- ## | |
11722 | ||
7a197a62 AK |
11723 | # Be more Bourne compatible |
11724 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11725 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11726 | emulate sh | |
11727 | NULLCMD=: | |
11728 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11729 | # is contrary to our usage. Disable this feature. | |
11730 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11731 | setopt NO_GLOB_SUBST |
11732 | else | |
11733 | case `(set -o) 2>/dev/null` in | |
11734 | *posix*) set -o posix ;; | |
11735 | esac | |
11736 | ||
11737 | fi | |
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | # PATH needs CR | |
11743 | # Avoid depending upon Character Ranges. | |
11744 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11745 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11746 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11747 | as_cr_digits='0123456789' | |
11748 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11749 | ||
66e941e8 JM |
11750 | as_nl=' |
11751 | ' | |
11752 | export as_nl | |
11753 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11754 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11755 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11756 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11757 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11758 | as_echo='printf %s\n' | |
11759 | as_echo_n='printf %s' | |
11760 | else | |
11761 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11762 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11763 | as_echo_n='/usr/ucb/echo -n' | |
11764 | else | |
11765 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11766 | as_echo_n_body='eval | |
11767 | arg=$1; | |
11768 | case $arg in | |
11769 | *"$as_nl"*) | |
11770 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11771 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11772 | esac; | |
11773 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11774 | ' | |
11775 | export as_echo_n_body | |
11776 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
11777 | fi | |
11778 | export as_echo_body | |
11779 | as_echo='sh -c $as_echo_body as_echo' | |
11780 | fi | |
11781 | ||
7a197a62 AK |
11782 | # The user is always right. |
11783 | if test "${PATH_SEPARATOR+set}" != set; then | |
11784 | echo "#! /bin/sh" >conf$$.sh | |
11785 | echo "exit 0" >>conf$$.sh | |
11786 | chmod +x conf$$.sh | |
11787 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11788 | PATH_SEPARATOR=';' | |
11789 | else | |
11790 | PATH_SEPARATOR=: | |
11791 | fi | |
11792 | rm -f conf$$.sh | |
ad6254c5 AK |
11793 | fi |
11794 | ||
11795 | # Support unset when possible. | |
8a2fc586 | 11796 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11797 | as_unset=unset |
11798 | else | |
11799 | as_unset=false | |
11800 | fi | |
8106cdd5 | 11801 | |
ad6254c5 | 11802 | |
7a197a62 AK |
11803 | # IFS |
11804 | # We need space, tab and new line, in precisely that order. Quoting is | |
11805 | # there to prevent editors from complaining about space-tab. | |
11806 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11807 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
11808 | IFS=" "" $as_nl" |
11809 | ||
11810 | # Find who we are. Look in the path if we contain no directory separator. | |
11811 | case $0 in | |
11812 | *[\\/]* ) as_myself=$0 ;; | |
11813 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11814 | for as_dir in $PATH | |
11815 | do | |
11816 | IFS=$as_save_IFS | |
11817 | test -z "$as_dir" && as_dir=. | |
11818 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11819 | done | |
11820 | IFS=$as_save_IFS | |
11821 | ||
11822 | ;; | |
11823 | esac | |
11824 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11825 | # in which case we are not to be found in the path. | |
11826 | if test "x$as_myself" = x; then | |
11827 | as_myself=$0 | |
11828 | fi | |
11829 | if test ! -f "$as_myself"; then | |
66e941e8 | 11830 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11831 | { (exit 1); exit 1; } |
11832 | fi | |
11833 | ||
ad6254c5 | 11834 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11835 | for as_var in ENV MAIL MAILPATH |
11836 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11837 | done | |
ad6254c5 AK |
11838 | PS1='$ ' |
11839 | PS2='> ' | |
11840 | PS4='+ ' | |
11841 | ||
11842 | # NLS nuisances. | |
11843 | for as_var in \ | |
11844 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11845 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11846 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11847 | do |
8a2fc586 | 11848 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11849 | eval $as_var=C; export $as_var |
11850 | else | |
7a197a62 | 11851 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 | 11852 | fi |
8106cdd5 AK |
11853 | done |
11854 | ||
ad6254c5 | 11855 | # Required to use basename. |
7a197a62 AK |
11856 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11857 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11858 | as_expr=expr |
11859 | else | |
11860 | as_expr=false | |
11861 | fi | |
8106cdd5 | 11862 | |
7a197a62 | 11863 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11864 | as_basename=basename |
11865 | else | |
11866 | as_basename=false | |
11867 | fi | |
11868 | ||
11869 | ||
11870 | # Name of the executable. | |
7a197a62 | 11871 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11872 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11873 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11874 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
66e941e8 | 11875 | $as_echo X/"$0" | |
7a197a62 AK |
11876 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11877 | s//\1/ | |
11878 | q | |
11879 | } | |
11880 | /^X\/\(\/\/\)$/{ | |
11881 | s//\1/ | |
11882 | q | |
11883 | } | |
11884 | /^X\/\(\/\).*/{ | |
11885 | s//\1/ | |
11886 | q | |
11887 | } | |
11888 | s/.*/./; q'` | |
ad6254c5 | 11889 | |
7a197a62 AK |
11890 | # CDPATH. |
11891 | $as_unset CDPATH | |
ad6254c5 AK |
11892 | |
11893 | ||
ad6254c5 | 11894 | |
ad6254c5 AK |
11895 | as_lineno_1=$LINENO |
11896 | as_lineno_2=$LINENO | |
ad6254c5 | 11897 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11898 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11899 | |
ad6254c5 AK |
11900 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11901 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11902 | # line-number line after each line using $LINENO; the second 'sed' |
11903 | # does the real work. The second script uses 'N' to pair each | |
11904 | # line-number line with the line containing $LINENO, and appends | |
11905 | # trailing '-' during substitution so that $LINENO is not a special | |
11906 | # case at line end. | |
ad6254c5 | 11907 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11908 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11909 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11910 | sed -n ' | |
11911 | p | |
11912 | /[$]LINENO/= | |
11913 | ' <$as_myself | | |
ad6254c5 | 11914 | sed ' |
7a197a62 AK |
11915 | s/[$]LINENO.*/&-/ |
11916 | t lineno | |
11917 | b | |
11918 | :lineno | |
ad6254c5 | 11919 | N |
7a197a62 AK |
11920 | :loop |
11921 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11922 | t loop |
7a197a62 | 11923 | s/-\n.*// |
ad6254c5 | 11924 | ' >$as_me.lineno && |
7a197a62 | 11925 | chmod +x "$as_me.lineno" || |
66e941e8 | 11926 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11927 | { (exit 1); exit 1; }; } |
11928 | ||
11929 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11930 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11931 | # original and so on. Autoconf is especially sensitive to this). |
11932 | . "./$as_me.lineno" | |
ad6254c5 AK |
11933 | # Exit status is that of the last command. |
11934 | exit | |
11935 | } | |
11936 | ||
11937 | ||
7a197a62 AK |
11938 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11939 | as_dirname=dirname | |
11940 | else | |
11941 | as_dirname=false | |
11942 | fi | |
11943 | ||
11944 | ECHO_C= ECHO_N= ECHO_T= | |
11945 | case `echo -n x` in | |
11946 | -n*) | |
11947 | case `echo 'x\c'` in | |
11948 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11949 | *) ECHO_C='\c';; | |
11950 | esac;; | |
11951 | *) | |
11952 | ECHO_N='-n';; | |
ad6254c5 | 11953 | esac |
7a197a62 AK |
11954 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11955 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11956 | as_expr=expr |
11957 | else | |
11958 | as_expr=false | |
11959 | fi | |
80992638 | 11960 | |
ad6254c5 | 11961 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11962 | if test -d conf$$.dir; then |
11963 | rm -f conf$$.dir/conf$$.file | |
11964 | else | |
11965 | rm -f conf$$.dir | |
11966 | mkdir conf$$.dir | |
11967 | fi | |
ad6254c5 AK |
11968 | echo >conf$$.file |
11969 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
11970 | as_ln_s='ln -s' |
11971 | # ... but there are two gotchas: | |
11972 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11973 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11974 | # In both cases, we have to default to `cp -p'. | |
11975 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11976 | as_ln_s='cp -p' |
ad6254c5 AK |
11977 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11978 | as_ln_s=ln | |
11979 | else | |
11980 | as_ln_s='cp -p' | |
11981 | fi | |
7a197a62 AK |
11982 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11983 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11984 | |
ad6254c5 AK |
11985 | if mkdir -p . 2>/dev/null; then |
11986 | as_mkdir_p=: | |
11987 | else | |
8a2fc586 | 11988 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11989 | as_mkdir_p=false |
11990 | fi | |
11991 | ||
7a197a62 AK |
11992 | if test -x / >/dev/null 2>&1; then |
11993 | as_test_x='test -x' | |
11994 | else | |
11995 | if ls -dL / >/dev/null 2>&1; then | |
11996 | as_ls_L_option=L | |
11997 | else | |
11998 | as_ls_L_option= | |
11999 | fi | |
12000 | as_test_x=' | |
12001 | eval sh -c '\'' | |
12002 | if test -d "$1"; then | |
12003 | test -d "$1/."; | |
12004 | else | |
12005 | case $1 in | |
12006 | -*)set "./$1";; | |
12007 | esac; | |
12008 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12009 | ???[sx]*):;;*)false;;esac;fi | |
12010 | '\'' sh | |
12011 | ' | |
12012 | fi | |
12013 | as_executable_p=$as_test_x | |
ad6254c5 AK |
12014 | |
12015 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12016 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12017 | |
12018 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12019 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12020 | |
12021 | ||
ad6254c5 AK |
12022 | exec 6>&1 |
12023 | ||
7a197a62 | 12024 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12025 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12026 | # values after options handling. |
12027 | ac_log=" | |
ad6254c5 | 12028 | This file was extended by $as_me, which was |
66e941e8 | 12029 | generated by GNU Autoconf 2.61a. Invocation command line was |
ad6254c5 AK |
12030 | |
12031 | CONFIG_FILES = $CONFIG_FILES | |
12032 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12033 | CONFIG_LINKS = $CONFIG_LINKS | |
12034 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12035 | $ $0 $@ | |
12036 | ||
7a197a62 AK |
12037 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12038 | " | |
12039 | ||
ad6254c5 AK |
12040 | _ACEOF |
12041 | ||
7a197a62 | 12042 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12043 | # Files that config.status was made for. |
7a197a62 AK |
12044 | config_files="$ac_config_files" |
12045 | config_headers="$ac_config_headers" | |
ad6254c5 | 12046 | |
7a197a62 | 12047 | _ACEOF |
ad6254c5 AK |
12048 | |
12049 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ad6254c5 AK |
12050 | ac_cs_usage="\ |
12051 | \`$as_me' instantiates files from templates according to the | |
12052 | current configuration. | |
12053 | ||
12054 | Usage: $0 [OPTIONS] [FILE]... | |
12055 | ||
12056 | -h, --help print this help, then exit | |
7a197a62 | 12057 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12058 | -q, --quiet do not print progress messages |
12059 | -d, --debug don't remove temporary files | |
12060 | --recheck update $as_me by reconfiguring in the same conditions | |
12061 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 12062 | instantiate the configuration file FILE |
72b2cb61 AK |
12063 | --header=FILE[:TEMPLATE] |
12064 | instantiate the configuration header FILE | |
ad6254c5 AK |
12065 | |
12066 | Configuration files: | |
12067 | $config_files | |
12068 | ||
72b2cb61 AK |
12069 | Configuration headers: |
12070 | $config_headers | |
12071 | ||
ad6254c5 | 12072 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12073 | |
7a197a62 | 12074 | _ACEOF |
ad6254c5 AK |
12075 | cat >>$CONFIG_STATUS <<_ACEOF |
12076 | ac_cs_version="\\ | |
12077 | config.status | |
66e941e8 JM |
12078 | configured by $0, generated by GNU Autoconf 2.61a, |
12079 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12080 | |
7a197a62 | 12081 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12082 | This config.status script is free software; the Free Software Foundation |
12083 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12084 | |
12085 | ac_pwd='$ac_pwd' | |
12086 | srcdir='$srcdir' | |
12087 | INSTALL='$INSTALL' | |
66e941e8 JM |
12088 | AWK='$AWK' |
12089 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
12090 | _ACEOF |
12091 | ||
12092 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12093 | # If no file are specified by the user, then we need to provide default | |
12094 | # value. By we need to know if files were specified by the user. | |
12095 | ac_need_defaults=: | |
12096 | while test $# != 0 | |
12097 | do | |
12098 | case $1 in | |
12099 | --*=*) | |
7a197a62 AK |
12100 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12101 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12102 | ac_shift=: |
12103 | ;; | |
7a197a62 | 12104 | *) |
ad6254c5 AK |
12105 | ac_option=$1 |
12106 | ac_optarg=$2 | |
12107 | ac_shift=shift | |
12108 | ;; | |
ad6254c5 AK |
12109 | esac |
12110 | ||
12111 | case $ac_option in | |
12112 | # Handling of the options. | |
ad6254c5 AK |
12113 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12114 | ac_cs_recheck=: ;; | |
7a197a62 | 12115 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
66e941e8 | 12116 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 12117 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12118 | debug=: ;; |
12119 | --file | --fil | --fi | --f ) | |
12120 | $ac_shift | |
12121 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12122 | ac_need_defaults=false;; | |
12123 | --header | --heade | --head | --hea ) | |
12124 | $ac_shift | |
12125 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
12126 | ac_need_defaults=false;; | |
7a197a62 AK |
12127 | --he | --h) |
12128 | # Conflict between --help and --header | |
66e941e8 | 12129 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12130 | Try \`$0 --help' for more information." >&2 |
12131 | { (exit 1); exit 1; }; };; | |
12132 | --help | --hel | -h ) | |
66e941e8 | 12133 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12134 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12135 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12136 | ac_cs_silent=: ;; | |
12137 | ||
12138 | # This is an error. | |
66e941e8 | 12139 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12140 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12141 | { (exit 1); exit 1; }; } ;; |
12142 | ||
7a197a62 AK |
12143 | *) ac_config_targets="$ac_config_targets $1" |
12144 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12145 | |
12146 | esac | |
12147 | shift | |
12148 | done | |
12149 | ||
12150 | ac_configure_extra_args= | |
12151 | ||
12152 | if $ac_cs_silent; then | |
12153 | exec 6>/dev/null | |
12154 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12155 | fi | |
12156 | ||
12157 | _ACEOF | |
12158 | cat >>$CONFIG_STATUS <<_ACEOF | |
12159 | if \$ac_cs_recheck; then | |
66e941e8 JM |
12160 | set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12161 | shift | |
12162 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12163 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 12164 | export CONFIG_SHELL |
66e941e8 | 12165 | exec "\$@" |
ad6254c5 AK |
12166 | fi |
12167 | ||
12168 | _ACEOF | |
7a197a62 AK |
12169 | cat >>$CONFIG_STATUS <<\_ACEOF |
12170 | exec 5>>config.log | |
12171 | { | |
12172 | echo | |
12173 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12174 | ## Running $as_me. ## | |
12175 | _ASBOX | |
66e941e8 | 12176 | $as_echo "$ac_log" |
7a197a62 | 12177 | } >&5 |
ad6254c5 | 12178 | |
7a197a62 AK |
12179 | _ACEOF |
12180 | cat >>$CONFIG_STATUS <<_ACEOF | |
12181 | _ACEOF | |
ad6254c5 AK |
12182 | |
12183 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7a197a62 AK |
12184 | |
12185 | # Handling of arguments. | |
ad6254c5 AK |
12186 | for ac_config_target in $ac_config_targets |
12187 | do | |
7a197a62 AK |
12188 | case $ac_config_target in |
12189 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12190 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12191 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12192 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12193 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
12194 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
12195 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
12196 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
12197 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
12198 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12199 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
12200 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12201 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12202 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12203 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12204 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12205 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
12206 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12207 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
12208 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12209 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
12210 | "tools/fsadm/Makefile") CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
7a197a62 | 12211 | |
66e941e8 JM |
12212 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12213 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12214 | { (exit 1); exit 1; }; };; |
80992638 | 12215 | esac |
ad6254c5 AK |
12216 | done |
12217 | ||
7a197a62 | 12218 | |
ad6254c5 AK |
12219 | # If the user did not use the arguments to specify the items to instantiate, |
12220 | # then the envvar interface is used. Set only those that are not. | |
12221 | # We use the long form for the default assignment because of an extremely | |
12222 | # bizarre bug on SunOS 4.1.3. | |
12223 | if $ac_need_defaults; then | |
12224 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12225 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12226 | fi |
12227 | ||
12228 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12229 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12230 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12231 | # Hook for its removal unless debugging. |
12232 | # Note that there is a small window in which the directory will not be cleaned: | |
12233 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12234 | $debug || |
12235 | { | |
7a197a62 AK |
12236 | tmp= |
12237 | trap 'exit_status=$? | |
12238 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12239 | ' 0 | |
ad6254c5 AK |
12240 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12241 | } | |
ad6254c5 AK |
12242 | # Create a (secure) tmp directory for tmp files. |
12243 | ||
12244 | { | |
7a197a62 | 12245 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12246 | test -n "$tmp" && test -d "$tmp" |
12247 | } || | |
12248 | { | |
7a197a62 AK |
12249 | tmp=./conf$$-$RANDOM |
12250 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12251 | } || |
12252 | { | |
66e941e8 | 12253 | $as_echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12254 | { (exit 1); exit 1; } |
12255 | } | |
12256 | ||
66e941e8 JM |
12257 | # Set up the scripts for CONFIG_FILES section. |
12258 | # No need to generate them if there are no CONFIG_FILES. | |
12259 | # This happens for instance with `./config.status config.h'. | |
7a197a62 AK |
12260 | if test -n "$CONFIG_FILES"; then |
12261 | ||
7a197a62 | 12262 | |
66e941e8 JM |
12263 | echo 'BEGIN {' >"$tmp/subs.awk" |
12264 | _ACEOF | |
7a197a62 AK |
12265 | |
12266 | ||
66e941e8 JM |
12267 | { |
12268 | echo "cat >conf$$subs.awk <<_ACEOF" | |
12269 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' | |
12270 | echo "_ACEOF" | |
12271 | } >conf$$subs.sh | |
12272 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7a197a62 AK |
12273 | ac_delim='%!_!# ' |
12274 | for ac_last_try in false false false false false :; do | |
66e941e8 JM |
12275 | . ./conf$$subs.sh |
12276 | ||
12277 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then | |
7a197a62 AK |
12278 | break |
12279 | elif $ac_last_try; then | |
66e941e8 JM |
12280 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12281 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7a197a62 AK |
12282 | { (exit 1); exit 1; }; } |
12283 | else | |
12284 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ad6254c5 | 12285 | fi |
7a197a62 | 12286 | done |
66e941e8 | 12287 | rm -f conf$$subs.sh |
7a197a62 AK |
12288 | |
12289 | cat >>$CONFIG_STATUS <<_ACEOF | |
66e941e8 JM |
12290 | cat >>"\$tmp/subs.awk" <<\CEOF |
12291 | _ACEOF | |
12292 | sed -n ' | |
12293 | h | |
12294 | s/^/S["/; s/!.*/"]=/ | |
12295 | p | |
12296 | g | |
12297 | s/^[^!]*!// | |
12298 | :repl | |
12299 | t repl | |
12300 | s/'"$ac_delim"'$// | |
12301 | t delim | |
12302 | :nl | |
12303 | h | |
12304 | s/\(.\{148\}\).*/\1/ | |
12305 | t more1 | |
12306 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12307 | p | |
12308 | n | |
12309 | b repl | |
12310 | :more1 | |
12311 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12312 | p | |
12313 | g | |
12314 | s/.\{148\}// | |
12315 | t nl | |
12316 | :delim | |
12317 | h | |
12318 | s/\(.\{148\}\).*/\1/ | |
12319 | t more2 | |
12320 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12321 | p | |
12322 | b | |
12323 | :more2 | |
12324 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12325 | p | |
12326 | g | |
12327 | s/.\{148\}// | |
12328 | t delim | |
12329 | ' <conf$$subs.awk | sed ' | |
12330 | /^[^"]/{ | |
12331 | N | |
12332 | s/\n// | |
12333 | } | |
12334 | ' >>$CONFIG_STATUS | |
12335 | rm -f conf$$subs.awk | |
7a197a62 | 12336 | cat >>$CONFIG_STATUS <<_ACEOF |
66e941e8 JM |
12337 | CEOF |
12338 | cat >>"\$tmp/subs.awk" <<CEOF | |
12339 | for (key in S) S_is_set[key] = 1 | |
12340 | FS = "\a" | |
7a197a62 | 12341 | |
66e941e8 JM |
12342 | } |
12343 | { | |
12344 | line = $ 0 | |
12345 | nfields = split(line, field, "@") | |
12346 | substed = 0 | |
12347 | len = length(field[1]) | |
12348 | for (i = 2; i < nfields; i++) { | |
12349 | key = field[i] | |
12350 | keylen = length(key) | |
12351 | if (S_is_set[key]) { | |
12352 | value = S[key] | |
12353 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12354 | len += length(value) + length(field[++i]) | |
12355 | substed = 1 | |
12356 | } else | |
12357 | len += 1 + keylen | |
12358 | } | |
8106cdd5 | 12359 | |
66e941e8 JM |
12360 | print line |
12361 | } | |
7a197a62 | 12362 | |
66e941e8 | 12363 | CEOF |
7a197a62 AK |
12364 | _ACEOF |
12365 | ||
7a197a62 AK |
12366 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12367 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12368 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12369 | # (actually we leave an empty line to preserve line numbers). | |
12370 | if test "x$srcdir" = x.; then | |
12371 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12372 | s/:*\$(srcdir):*/:/ | |
12373 | s/:*\${srcdir}:*/:/ | |
12374 | s/:*@srcdir@:*/:/ | |
12375 | s/^\([^=]*=[ ]*\):*/\1/ | |
12376 | s/:*$// | |
12377 | s/^[^=]*=[ ]*$// | |
12378 | }' | |
12379 | fi | |
12380 | ||
ad6254c5 | 12381 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12382 | fi # test -n "$CONFIG_FILES" |
12383 | ||
12384 | ||
12385 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
12386 | do | |
12387 | case $ac_tag in | |
12388 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12389 | esac | |
12390 | case $ac_mode$ac_tag in | |
12391 | :[FHL]*:*);; | |
66e941e8 JM |
12392 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12393 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12394 | { (exit 1); exit 1; }; };; |
12395 | :[FH]-) ac_tag=-:-;; | |
12396 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12397 | esac | |
12398 | ac_save_IFS=$IFS | |
12399 | IFS=: | |
12400 | set x $ac_tag | |
12401 | IFS=$ac_save_IFS | |
12402 | shift | |
12403 | ac_file=$1 | |
12404 | shift | |
12405 | ||
12406 | case $ac_mode in | |
12407 | :L) ac_source=$1;; | |
12408 | :[FH]) | |
12409 | ac_file_inputs= | |
12410 | for ac_f | |
12411 | do | |
12412 | case $ac_f in | |
12413 | -) ac_f="$tmp/stdin";; | |
12414 | *) # Look for the file first in the build tree, then in the source tree | |
12415 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12416 | # because $ac_f cannot contain `:'. | |
12417 | test -f "$ac_f" || | |
12418 | case $ac_f in | |
12419 | [\\/$]*) false;; | |
12420 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12421 | esac || | |
66e941e8 JM |
12422 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12423 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12424 | { (exit 1); exit 1; }; };; |
12425 | esac | |
12426 | ac_file_inputs="$ac_file_inputs $ac_f" | |
12427 | done | |
12428 | ||
12429 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12430 | # use $as_me), people would be surprised to read: | |
12431 | # /* config.h. Generated by config.status. */ | |
66e941e8 JM |
12432 | configure_input='Generated from '` |
12433 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12434 | `' by configure.' | |
7a197a62 AK |
12435 | if test x"$ac_file" != x-; then |
12436 | configure_input="$ac_file. $configure_input" | |
66e941e8 JM |
12437 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
12438 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12439 | fi |
12440 | ||
12441 | case $ac_tag in | |
12442 | *:-:* | *:-) cat >"$tmp/stdin";; | |
12443 | esac | |
12444 | ;; | |
80992638 | 12445 | esac |
8106cdd5 | 12446 | |
7a197a62 | 12447 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12448 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12449 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12450 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12451 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
66e941e8 | 12452 | $as_echo X"$ac_file" | |
7a197a62 AK |
12453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12454 | s//\1/ | |
12455 | q | |
12456 | } | |
12457 | /^X\(\/\/\)[^/].*/{ | |
12458 | s//\1/ | |
12459 | q | |
12460 | } | |
12461 | /^X\(\/\/\)$/{ | |
12462 | s//\1/ | |
12463 | q | |
12464 | } | |
12465 | /^X\(\/\).*/{ | |
12466 | s//\1/ | |
12467 | q | |
12468 | } | |
12469 | s/.*/./; q'` | |
12470 | { as_dir="$ac_dir" | |
12471 | case $as_dir in #( | |
12472 | -*) as_dir=./$as_dir;; | |
12473 | esac | |
12474 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12475 | as_dirs= |
7a197a62 AK |
12476 | while :; do |
12477 | case $as_dir in #( | |
66e941e8 | 12478 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12479 | *) as_qdir=$as_dir;; |
12480 | esac | |
12481 | as_dirs="'$as_qdir' $as_dirs" | |
12482 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12483 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12484 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12485 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12486 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
66e941e8 | 12487 | $as_echo X"$as_dir" | |
7a197a62 AK |
12488 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12489 | s//\1/ | |
12490 | q | |
12491 | } | |
12492 | /^X\(\/\/\)[^/].*/{ | |
12493 | s//\1/ | |
12494 | q | |
12495 | } | |
12496 | /^X\(\/\/\)$/{ | |
12497 | s//\1/ | |
12498 | q | |
12499 | } | |
12500 | /^X\(\/\).*/{ | |
12501 | s//\1/ | |
12502 | q | |
12503 | } | |
12504 | s/.*/./; q'` | |
12505 | test -d "$as_dir" && break | |
ad6254c5 | 12506 | done |
7a197a62 | 12507 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
66e941e8 JM |
12508 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12509 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12510 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12511 | ac_builddir=. |
12512 | ||
7a197a62 AK |
12513 | case "$ac_dir" in |
12514 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12515 | *) | |
66e941e8 | 12516 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12517 | # A ".." for each directory in $ac_dir_suffix. |
66e941e8 | 12518 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12519 | case $ac_top_builddir_sub in |
12520 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12521 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12522 | esac ;; | |
12523 | esac | |
12524 | ac_abs_top_builddir=$ac_pwd | |
12525 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12526 | # for backward compatibility: | |
12527 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12528 | |
12529 | case $srcdir in | |
7a197a62 | 12530 | .) # We are building in place. |
ad6254c5 | 12531 | ac_srcdir=. |
7a197a62 AK |
12532 | ac_top_srcdir=$ac_top_builddir_sub |
12533 | ac_abs_top_srcdir=$ac_pwd ;; | |
12534 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12535 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12536 | ac_top_srcdir=$srcdir |
12537 | ac_abs_top_srcdir=$srcdir ;; | |
12538 | *) # Relative name. | |
12539 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12540 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12541 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12542 | esac |
7a197a62 | 12543 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12544 | |
ad6254c5 | 12545 | |
7a197a62 AK |
12546 | case $ac_mode in |
12547 | :F) | |
12548 | # | |
12549 | # CONFIG_FILE | |
12550 | # | |
ad6254c5 AK |
12551 | |
12552 | case $INSTALL in | |
12553 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12554 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12555 | esac |
7a197a62 | 12556 | _ACEOF |
795ca3e5 | 12557 | |
7a197a62 AK |
12558 | cat >>$CONFIG_STATUS <<\_ACEOF |
12559 | # If the template does not know about datarootdir, expand it. | |
12560 | # FIXME: This hack should be removed a few years after 2.60. | |
12561 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12562 | ||
12563 | case `sed -n '/datarootdir/ { | |
12564 | p | |
12565 | q | |
12566 | } | |
12567 | /@datadir@/p | |
12568 | /@docdir@/p | |
12569 | /@infodir@/p | |
12570 | /@localedir@/p | |
12571 | /@mandir@/p | |
12572 | ' $ac_file_inputs` in | |
12573 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12574 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
66e941e8 JM |
12575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12576 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12577 | _ACEOF |
7a197a62 AK |
12578 | cat >>$CONFIG_STATUS <<_ACEOF |
12579 | ac_datarootdir_hack=' | |
12580 | s&@datadir@&$datadir&g | |
12581 | s&@docdir@&$docdir&g | |
12582 | s&@infodir@&$infodir&g | |
12583 | s&@localedir@&$localedir&g | |
12584 | s&@mandir@&$mandir&g | |
12585 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12586 | esac | |
12587 | _ACEOF | |
12588 | ||
12589 | # Neutralize VPATH when `$srcdir' = `.'. | |
12590 | # Shell code in configure.ac might set extrasub. | |
12591 | # FIXME: do we really want to maintain this feature? | |
ad6254c5 AK |
12592 | cat >>$CONFIG_STATUS <<_ACEOF |
12593 | sed "$ac_vpsub | |
12594 | $extrasub | |
12595 | _ACEOF | |
12596 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12597 | :t | |
12598 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7a197a62 AK |
12599 | s&@configure_input@&$configure_input&;t t |
12600 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12601 | s&@srcdir@&$ac_srcdir&;t t | |
12602 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12603 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12604 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12605 | s&@builddir@&$ac_builddir&;t t | |
12606 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12607 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12608 | s&@INSTALL@&$ac_INSTALL&;t t | |
12609 | $ac_datarootdir_hack | |
66e941e8 | 12610 | " $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out |
7a197a62 AK |
12611 | |
12612 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12613 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12614 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
66e941e8 | 12615 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12616 | which seems to be undefined. Please make sure it is defined." >&5 |
66e941e8 | 12617 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12618 | which seems to be undefined. Please make sure it is defined." >&2;} |
12619 | ||
12620 | rm -f "$tmp/stdin" | |
72b2cb61 | 12621 | case $ac_file in |
7a197a62 AK |
12622 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12623 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
72b2cb61 | 12624 | esac |
7a197a62 AK |
12625 | ;; |
12626 | :H) | |
12627 | # | |
12628 | # CONFIG_HEADER | |
12629 | # | |
12630 | _ACEOF | |
12631 | ||
12632 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12633 | # substitutes the proper values into config.h.in to produce config.h. | |
12634 | rm -f conftest.defines conftest.tail | |
12635 | # First, append a space to every undef/define line, to ease matching. | |
12636 | echo 's/$/ /' >conftest.defines | |
12637 | # Then, protect against being on the right side of a sed subst, or in | |
12638 | # an unquoted here document, in config.status. If some macros were | |
12639 | # called several times there might be several #defines for the same | |
12640 | # symbol, which is useless. But do not sort them, since the last | |
12641 | # AC_DEFINE must be honored. | |
12642 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12643 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12644 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12645 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12646 | # just an empty string. | |
12647 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12648 | ac_dB='\\)[ (].*,\\1define\\2' | |
12649 | ac_dC=' ' | |
12650 | ac_dD=' ,' | |
12651 | ||
12652 | uniq confdefs.h | | |
12653 | sed -n ' | |
12654 | t rset | |
12655 | :rset | |
12656 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12657 | t ok | |
12658 | d | |
12659 | :ok | |
12660 | s/[\\&,]/\\&/g | |
12661 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12662 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12663 | ' >>conftest.defines | |
12664 | ||
12665 | # Remove the space that was appended to ease matching. | |
12666 | # Then replace #undef with comments. This is necessary, for | |
72b2cb61 AK |
12667 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12668 | # on some systems where configure will not decide to define it. | |
7a197a62 AK |
12669 | # (The regexp can be short, since the line contains either #define or #undef.) |
12670 | echo 's/ $// | |
12671 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12672 | ||
12673 | # Break up conftest.defines: | |
12674 | ac_max_sed_lines=50 | |
12675 | ||
12676 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12677 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12678 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12679 | # et cetera. | |
12680 | ac_in='$ac_file_inputs' | |
12681 | ac_out='"$tmp/out1"' | |
12682 | ac_nxt='"$tmp/out2"' | |
12683 | ||
12684 | while : | |
72b2cb61 | 12685 | do |
7a197a62 AK |
12686 | # Write a here document: |
12687 | cat >>$CONFIG_STATUS <<_ACEOF | |
12688 | # First, check the format of the line: | |
12689 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12690 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12691 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12692 | b | |
12693 | :def | |
12694 | _ACEOF | |
12695 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
72b2cb61 | 12696 | echo 'CEOF |
7a197a62 AK |
12697 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
12698 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12699 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12700 | grep . conftest.tail >/dev/null || break | |
72b2cb61 AK |
12701 | rm -f conftest.defines |
12702 | mv conftest.tail conftest.defines | |
12703 | done | |
7a197a62 | 12704 | rm -f conftest.defines conftest.tail |
72b2cb61 | 12705 | |
7a197a62 | 12706 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
72b2cb61 | 12707 | cat >>$CONFIG_STATUS <<\_ACEOF |
72b2cb61 | 12708 | if test x"$ac_file" != x-; then |
66e941e8 | 12709 | $as_echo "/* $configure_input */" >"$tmp/config.h" |
7a197a62 AK |
12710 | cat "$ac_result" >>"$tmp/config.h" |
12711 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
66e941e8 JM |
12712 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12713 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12714 | else |
72b2cb61 | 12715 | rm -f $ac_file |
7a197a62 | 12716 | mv "$tmp/config.h" $ac_file |
72b2cb61 AK |
12717 | fi |
12718 | else | |
66e941e8 | 12719 | $as_echo "/* $configure_input */" |
7a197a62 | 12720 | cat "$ac_result" |
72b2cb61 | 12721 | fi |
7a197a62 AK |
12722 | rm -f "$tmp/out12" |
12723 | ;; | |
12724 | ||
12725 | ||
12726 | esac | |
12727 | ||
12728 | done # for ac_tag | |
795ca3e5 | 12729 | |
795ca3e5 | 12730 | |
ad6254c5 AK |
12731 | { (exit 0); exit 0; } |
12732 | _ACEOF | |
795ca3e5 | 12733 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12734 | ac_clean_files=$ac_clean_files_save |
12735 | ||
12736 | ||
12737 | # configure is writing to config.log, and then calls config.status. | |
12738 | # config.status does its own redirection, appending to config.log. | |
12739 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12740 | # by configure, so config.status won't be able to write to it; its | |
12741 | # output is simply discarded. So we exec the FD to /dev/null, | |
12742 | # effectively closing config.log, so it can be properly (re)opened and | |
12743 | # appended to by config.status. When coming back to configure, we | |
12744 | # need to make the FD available again. | |
12745 | if test "$no_create" != yes; then | |
12746 | ac_cs_success=: | |
12747 | ac_config_status_args= | |
12748 | test "$silent" = yes && | |
12749 | ac_config_status_args="$ac_config_status_args --quiet" | |
12750 | exec 5>/dev/null | |
12751 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12752 | exec 5>>config.log | |
12753 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12754 | # would make configure fail if this is the last instruction. | |
12755 | $ac_cs_success || { (exit 1); exit 1; } | |
12756 | fi | |
795ca3e5 | 12757 | |
2dc95e1c AK |
12758 | |
12759 | if test x$ODIRECT != xyes; then | |
66e941e8 JM |
12760 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12761 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12762 | fi |
809fae91 AK |
12763 | |
12764 | if test x$FSADM == xyes; then | |
66e941e8 JM |
12765 | { $as_echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12766 | $as_echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12767 | fi |
06f62ad1 AK |
12768 | |
12769 | if test x$DMEVENTD == xyes; then | |
66e941e8 JM |
12770 | { $as_echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12771 | $as_echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12772 | fi |