]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5556819a | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5556819a | 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
5556819a | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
fddafd51 ZK |
40 | # The user is always right. |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
5556819a AK |
42 | echo "#! /bin/sh" >conf$$.sh |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
ad6254c5 AK |
51 | fi |
52 | ||
53 | # Support unset when possible. | |
8a2fc586 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
7a197a62 AK |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
5556819a AK |
66 | as_nl=' |
67 | ' | |
7a197a62 AK |
68 | IFS=" "" $as_nl" |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
5556819a | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
91 | { (exit 1); exit 1; } |
92 | fi | |
93 | ||
ad6254c5 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
ad6254c5 AK |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
5556819a AK |
103 | for as_var in \ |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
112 | fi | |
113 | done | |
ad6254c5 AK |
114 | |
115 | # Required to use basename. | |
7a197a62 AK |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
7a197a62 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
7a197a62 | 131 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 135 | echo X/"$0" | |
7a197a62 AK |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
ad6254c5 | 149 | |
7a197a62 AK |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
ad6254c5 | 152 | |
ad6254c5 | 153 | |
7a197a62 AK |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
ad6254c5 AK |
159 | fi |
160 | ||
5556819a | 161 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
162 | (as_func_return () { |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
ad6254c5 | 177 | |
7a197a62 AK |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
ad6254c5 | 185 | |
7a197a62 AK |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
ad6254c5 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 226 | case $as_dir in |
ad6254c5 | 227 | /*) |
7a197a62 AK |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
5556819a | 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7a197a62 AK |
244 | # is contrary to our usage. Disable this feature. |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
25fbec5b AK |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
7a197a62 | 252 | fi |
25fbec5b | 253 | |
7a197a62 AK |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
5556819a | 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7a197a62 AK |
265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
25fbec5b AK |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
7a197a62 | 273 | fi |
25fbec5b | 274 | |
7a197a62 AK |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
ad6254c5 AK |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
ad6254c5 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
5556819a AK |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
348 | fi |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
5556819a AK |
416 | echo Please tell autoconf@gnu.org about your system, |
417 | echo including any error possibly output before this | |
418 | echo message | |
7a197a62 AK |
419 | } |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
ad6254c5 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
ad6254c5 | 442 | sed ' |
7a197a62 AK |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
ad6254c5 | 447 | N |
7a197a62 AK |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 450 | t loop |
7a197a62 | 451 | s/-\n.*// |
ad6254c5 | 452 | ' >$as_me.lineno && |
7a197a62 | 453 | chmod +x "$as_me.lineno" || |
5556819a | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
455 | { (exit 1); exit 1; }; } |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
ad6254c5 AK |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
795ca3e5 | 464 | |
ad6254c5 | 465 | |
7a197a62 AK |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
ad6254c5 | 481 | esac |
5556819a | 482 | |
7a197a62 AK |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
5556819a AK |
495 | mkdir conf$$.dir |
496 | fi | |
497 | echo >conf$$.file | |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
499 | as_ln_s='ln -s' | |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 505 | as_ln_s='cp -p' |
5556819a AK |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
ad6254c5 AK |
508 | else |
509 | as_ln_s='cp -p' | |
510 | fi | |
7a197a62 AK |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
8a2fc586 | 517 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
25fbec5b AK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
7a197a62 | 523 | else |
25fbec5b AK |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
5556819a | 532 | test -d "$1/."; |
25fbec5b AK |
533 | else |
534 | case $1 in | |
5556819a | 535 | -*)set "./$1";; |
25fbec5b AK |
536 | esac; |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
7a197a62 | 541 | fi |
25fbec5b | 542 | as_executable_p=$as_test_x |
ad6254c5 AK |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
549 | |
550 | ||
ad6254c5 | 551 | |
7a197a62 | 552 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
ad6254c5 AK |
559 | # |
560 | # Initializations. | |
561 | # | |
795ca3e5 | 562 | ac_default_prefix=/usr/local |
7a197a62 | 563 | ac_clean_files= |
ad6254c5 | 564 | ac_config_libobj_dir=. |
7a197a62 | 565 | LIBOBJS= |
ad6254c5 AK |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
ad6254c5 AK |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="lib/device/dev-cache.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
25fbec5b | 583 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
584 | # include <sys/types.h> |
585 | #endif | |
25fbec5b | 586 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
587 | # include <sys/stat.h> |
588 | #endif | |
25fbec5b | 589 | #ifdef STDC_HEADERS |
ad6254c5 AK |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
25fbec5b | 593 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
25fbec5b AK |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
25fbec5b | 603 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
604 | # include <strings.h> |
605 | #endif | |
25fbec5b | 606 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 607 | # include <inttypes.h> |
ad6254c5 | 608 | #endif |
25fbec5b | 609 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
610 | # include <stdint.h> |
611 | #endif | |
25fbec5b | 612 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
795ca3e5 | 616 | ac_default_prefix=/usr |
7a197a62 AK |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | build | |
655 | build_cpu | |
656 | build_vendor | |
657 | build_os | |
658 | host | |
659 | host_cpu | |
660 | host_vendor | |
661 | host_os | |
662 | target | |
663 | target_cpu | |
664 | target_vendor | |
665 | target_os | |
666 | AWK | |
667 | CC | |
668 | CFLAGS | |
669 | LDFLAGS | |
670 | CPPFLAGS | |
671 | ac_ct_CC | |
672 | EXEEXT | |
673 | OBJEXT | |
d0191583 JM |
674 | CPP |
675 | GREP | |
676 | EGREP | |
7a197a62 AK |
677 | INSTALL_PROGRAM |
678 | INSTALL_SCRIPT | |
679 | INSTALL_DATA | |
680 | LN_S | |
681 | SET_MAKE | |
682 | RANLIB | |
683 | CFLOW_CMD | |
684 | CSCOPE_CMD | |
7a197a62 AK |
685 | ALLOCA |
686 | LIBOBJS | |
687 | POW_LIB | |
fddafd51 ZK |
688 | LCOV |
689 | GENHTML | |
d179cc7a | 690 | LVM2CMD_LIB |
7a197a62 AK |
691 | MSGFMT |
692 | MODPROBE_CMD | |
d0191583 | 693 | BUILD_DMEVENTD |
7a197a62 | 694 | CLDFLAGS |
7a197a62 | 695 | CLDNOWHOLEARCHIVE |
d0191583 JM |
696 | CLDWHOLEARCHIVE |
697 | CLUSTER | |
698 | CLVMD | |
699 | CMDLIB | |
700 | COPTIMISE_FLAG | |
7a197a62 AK |
701 | DEBUG |
702 | DEVMAPPER | |
d0191583 JM |
703 | DMDIR |
704 | DMEVENTD | |
705 | DM_COMPAT | |
706 | DM_DEVICE_GID | |
707 | DM_DEVICE_MODE | |
708 | DM_DEVICE_UID | |
709 | DM_IOCTLS | |
710 | DM_LIB_VERSION | |
711 | FSADM | |
712 | GROUP | |
7a197a62 | 713 | HAVE_LIBDL |
7a197a62 | 714 | HAVE_REALTIME |
d0191583 JM |
715 | HAVE_SELINUX |
716 | INTL | |
717 | INTL_PACKAGE | |
718 | JOBS | |
719 | LDDEPS | |
720 | LIB_SUFFIX | |
7a197a62 | 721 | LOCALEDIR |
d0191583 JM |
722 | LVM1 |
723 | LVM1_FALLBACK | |
7a197a62 | 724 | CONFDIR |
d0191583 JM |
725 | LVM_VERSION |
726 | MIRRORS | |
727 | OWNER | |
728 | PKGCONFIG | |
729 | POOL | |
730 | SNAPSHOTS | |
7a197a62 | 731 | STATICDIR |
d0191583 | 732 | STATIC_LINK |
66e941e8 | 733 | LIB_PTHREAD |
7a197a62 | 734 | LTLIBOBJS' |
ad6254c5 | 735 | ac_subst_files='' |
7a197a62 AK |
736 | ac_precious_vars='build_alias |
737 | host_alias | |
738 | target_alias | |
739 | CC | |
740 | CFLAGS | |
741 | LDFLAGS | |
25fbec5b | 742 | LIBS |
7a197a62 AK |
743 | CPPFLAGS |
744 | CPP' | |
745 | ||
795ca3e5 AK |
746 | |
747 | # Initialize some variables set by options. | |
ad6254c5 AK |
748 | ac_init_help= |
749 | ac_init_version=false | |
795ca3e5 AK |
750 | # The variables have the same names as the options, with |
751 | # dashes changed to underlines. | |
ad6254c5 | 752 | cache_file=/dev/null |
795ca3e5 | 753 | exec_prefix=NONE |
795ca3e5 | 754 | no_create= |
795ca3e5 AK |
755 | no_recursion= |
756 | prefix=NONE | |
757 | program_prefix=NONE | |
758 | program_suffix=NONE | |
759 | program_transform_name=s,x,x, | |
760 | silent= | |
761 | site= | |
762 | srcdir= | |
795ca3e5 AK |
763 | verbose= |
764 | x_includes=NONE | |
765 | x_libraries=NONE | |
ad6254c5 AK |
766 | |
767 | # Installation directory options. | |
768 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
769 | # and all the variables that are supposed to be based on exec_prefix | |
770 | # by default will actually change. | |
771 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 772 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
773 | bindir='${exec_prefix}/bin' |
774 | sbindir='${exec_prefix}/sbin' | |
775 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
776 | datarootdir='${prefix}/share' |
777 | datadir='${datarootdir}' | |
795ca3e5 AK |
778 | sysconfdir='${prefix}/etc' |
779 | sharedstatedir='${prefix}/com' | |
780 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
781 | includedir='${prefix}/include' |
782 | oldincludedir='/usr/include' | |
7a197a62 AK |
783 | docdir='${datarootdir}/doc/${PACKAGE}' |
784 | infodir='${datarootdir}/info' | |
785 | htmldir='${docdir}' | |
786 | dvidir='${docdir}' | |
787 | pdfdir='${docdir}' | |
788 | psdir='${docdir}' | |
789 | libdir='${exec_prefix}/lib' | |
790 | localedir='${datarootdir}/locale' | |
791 | mandir='${datarootdir}/man' | |
795ca3e5 | 792 | |
795ca3e5 | 793 | ac_prev= |
7a197a62 | 794 | ac_dashdash= |
795ca3e5 AK |
795 | for ac_option |
796 | do | |
795ca3e5 AK |
797 | # If the previous option needs an argument, assign it. |
798 | if test -n "$ac_prev"; then | |
7a197a62 | 799 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
800 | ac_prev= |
801 | continue | |
802 | fi | |
803 | ||
7a197a62 AK |
804 | case $ac_option in |
805 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
806 | *) ac_optarg=yes ;; | |
807 | esac | |
795ca3e5 AK |
808 | |
809 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
810 | ||
7a197a62 AK |
811 | case $ac_dashdash$ac_option in |
812 | --) | |
813 | ac_dashdash=yes ;; | |
795ca3e5 AK |
814 | |
815 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
816 | ac_prev=bindir ;; | |
817 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 818 | bindir=$ac_optarg ;; |
795ca3e5 AK |
819 | |
820 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 821 | ac_prev=build_alias ;; |
795ca3e5 | 822 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 823 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
824 | |
825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
827 | ac_prev=cache_file ;; | |
828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
830 | cache_file=$ac_optarg ;; |
831 | ||
832 | --config-cache | -C) | |
833 | cache_file=config.cache ;; | |
795ca3e5 | 834 | |
7a197a62 | 835 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 836 | ac_prev=datadir ;; |
7a197a62 | 837 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 838 | datadir=$ac_optarg ;; |
795ca3e5 | 839 | |
7a197a62 AK |
840 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
841 | | --dataroo | --dataro | --datar) | |
842 | ac_prev=datarootdir ;; | |
843 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
844 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
845 | datarootdir=$ac_optarg ;; | |
846 | ||
795ca3e5 | 847 | -disable-* | --disable-*) |
5556819a | 848 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 849 | # Reject names that are not valid shell variable names. |
5556819a AK |
850 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
851 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 852 | { (exit 1); exit 1; }; } |
5556819a AK |
853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
854 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
855 | |
856 | -docdir | --docdir | --docdi | --doc | --do) | |
857 | ac_prev=docdir ;; | |
858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
859 | docdir=$ac_optarg ;; | |
860 | ||
861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
862 | ac_prev=dvidir ;; | |
863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
864 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
865 | |
866 | -enable-* | --enable-*) | |
5556819a | 867 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 868 | # Reject names that are not valid shell variable names. |
5556819a AK |
869 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
870 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 871 | { (exit 1); exit 1; }; } |
5556819a AK |
872 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
873 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
874 | |
875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
877 | | --exec | --exe | --ex) | |
878 | ac_prev=exec_prefix ;; | |
879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
881 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 882 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
883 | |
884 | -gas | --gas | --ga | --g) | |
885 | # Obsolete; use --with-gas. | |
886 | with_gas=yes ;; | |
887 | ||
ad6254c5 AK |
888 | -help | --help | --hel | --he | -h) |
889 | ac_init_help=long ;; | |
890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
891 | ac_init_help=recursive ;; | |
892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
893 | ac_init_help=short ;; | |
795ca3e5 AK |
894 | |
895 | -host | --host | --hos | --ho) | |
ad6254c5 | 896 | ac_prev=host_alias ;; |
795ca3e5 | 897 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 898 | host_alias=$ac_optarg ;; |
795ca3e5 | 899 | |
7a197a62 AK |
900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
901 | ac_prev=htmldir ;; | |
902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
903 | | --ht=*) | |
904 | htmldir=$ac_optarg ;; | |
905 | ||
795ca3e5 AK |
906 | -includedir | --includedir | --includedi | --included | --include \ |
907 | | --includ | --inclu | --incl | --inc) | |
908 | ac_prev=includedir ;; | |
909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
910 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 911 | includedir=$ac_optarg ;; |
795ca3e5 AK |
912 | |
913 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
914 | ac_prev=infodir ;; | |
915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 916 | infodir=$ac_optarg ;; |
795ca3e5 AK |
917 | |
918 | -libdir | --libdir | --libdi | --libd) | |
919 | ac_prev=libdir ;; | |
920 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 921 | libdir=$ac_optarg ;; |
795ca3e5 AK |
922 | |
923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
924 | | --libexe | --libex | --libe) | |
925 | ac_prev=libexecdir ;; | |
926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
927 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 928 | libexecdir=$ac_optarg ;; |
795ca3e5 | 929 | |
7a197a62 AK |
930 | -localedir | --localedir | --localedi | --localed | --locale) |
931 | ac_prev=localedir ;; | |
932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
933 | localedir=$ac_optarg ;; | |
934 | ||
795ca3e5 | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 936 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
937 | ac_prev=localstatedir ;; |
938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 940 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
941 | |
942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
943 | ac_prev=mandir ;; | |
944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 945 | mandir=$ac_optarg ;; |
795ca3e5 AK |
946 | |
947 | -nfp | --nfp | --nf) | |
948 | # Obsolete; use --without-fp. | |
949 | with_fp=no ;; | |
950 | ||
951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 952 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
953 | no_create=yes ;; |
954 | ||
955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
957 | no_recursion=yes ;; | |
958 | ||
959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
961 | | --oldin | --oldi | --old | --ol | --o) | |
962 | ac_prev=oldincludedir ;; | |
963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 966 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
967 | |
968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
969 | ac_prev=prefix ;; | |
970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 971 | prefix=$ac_optarg ;; |
795ca3e5 AK |
972 | |
973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
974 | | --program-pre | --program-pr | --program-p) | |
975 | ac_prev=program_prefix ;; | |
976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 978 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
979 | |
980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
981 | | --program-suf | --program-su | --program-s) | |
982 | ac_prev=program_suffix ;; | |
983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 985 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -program-transform-name | --program-transform-name \ | |
988 | | --program-transform-nam | --program-transform-na \ | |
989 | | --program-transform-n | --program-transform- \ | |
990 | | --program-transform | --program-transfor \ | |
991 | | --program-transfo | --program-transf \ | |
992 | | --program-trans | --program-tran \ | |
993 | | --progr-tra | --program-tr | --program-t) | |
994 | ac_prev=program_transform_name ;; | |
995 | -program-transform-name=* | --program-transform-name=* \ | |
996 | | --program-transform-nam=* | --program-transform-na=* \ | |
997 | | --program-transform-n=* | --program-transform-=* \ | |
998 | | --program-transform=* | --program-transfor=* \ | |
999 | | --program-transfo=* | --program-transf=* \ | |
1000 | | --program-trans=* | --program-tran=* \ | |
1001 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1002 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1003 | |
7a197a62 AK |
1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1005 | ac_prev=pdfdir ;; | |
1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1007 | pdfdir=$ac_optarg ;; | |
1008 | ||
1009 | -psdir | --psdir | --psdi | --psd | --ps) | |
1010 | ac_prev=psdir ;; | |
1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1012 | psdir=$ac_optarg ;; | |
1013 | ||
795ca3e5 AK |
1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1015 | | -silent | --silent | --silen | --sile | --sil) | |
1016 | silent=yes ;; | |
1017 | ||
1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1019 | ac_prev=sbindir ;; | |
1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1021 | | --sbi=* | --sb=*) | |
ad6254c5 | 1022 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1023 | |
1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1026 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1027 | | --sha | --sh) | |
1028 | ac_prev=sharedstatedir ;; | |
1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1032 | | --sha=* | --sh=*) | |
ad6254c5 | 1033 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1034 | |
1035 | -site | --site | --sit) | |
1036 | ac_prev=site ;; | |
1037 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1038 | site=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1041 | ac_prev=srcdir ;; | |
1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1043 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1044 | |
1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1046 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1047 | ac_prev=sysconfdir ;; | |
1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1050 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1051 | |
1052 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1053 | ac_prev=target_alias ;; |
795ca3e5 | 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1055 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1056 | |
1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1058 | verbose=yes ;; | |
1059 | ||
ad6254c5 AK |
1060 | -version | --version | --versio | --versi | --vers | -V) |
1061 | ac_init_version=: ;; | |
795ca3e5 AK |
1062 | |
1063 | -with-* | --with-*) | |
5556819a | 1064 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1065 | # Reject names that are not valid shell variable names. |
5556819a AK |
1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1068 | { (exit 1); exit 1; }; } |
5556819a AK |
1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1070 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1071 | |
1072 | -without-* | --without-*) | |
5556819a | 1073 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1074 | # Reject names that are not valid shell variable names. |
5556819a AK |
1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1077 | { (exit 1); exit 1; }; } |
5556819a AK |
1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1079 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1080 | |
1081 | --x) | |
1082 | # Obsolete; use --with-x. | |
1083 | with_x=yes ;; | |
1084 | ||
1085 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1086 | | --x-incl | --x-inc | --x-in | --x-i) | |
1087 | ac_prev=x_includes ;; | |
1088 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1089 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1090 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1093 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1094 | ac_prev=x_libraries ;; | |
1095 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1096 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1097 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1098 | |
5556819a | 1099 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1100 | Try \`$0 --help' for more information." >&2 |
1101 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1102 | ;; |
1103 | ||
ad6254c5 AK |
1104 | *=*) |
1105 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1106 | # Reject names that are not valid shell variable names. | |
1107 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
5556819a | 1108 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1109 | { (exit 1); exit 1; }; } |
7a197a62 | 1110 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1111 | export $ac_envvar ;; |
1112 | ||
795ca3e5 | 1113 | *) |
ad6254c5 | 1114 | # FIXME: should be removed in autoconf 3.0. |
5556819a | 1115 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1116 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5556819a | 1117 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1118 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1119 | ;; |
1120 | ||
1121 | esac | |
1122 | done | |
1123 | ||
1124 | if test -n "$ac_prev"; then | |
ad6254c5 | 1125 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5556819a | 1126 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1127 | { (exit 1); exit 1; }; } |
795ca3e5 | 1128 | fi |
795ca3e5 | 1129 | |
5556819a | 1130 | # Be sure to have absolute directory names. |
7a197a62 AK |
1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1134 | libdir localedir mandir | |
795ca3e5 | 1135 | do |
7a197a62 | 1136 | eval ac_val=\$$ac_var |
ad6254c5 | 1137 | case $ac_val in |
7a197a62 AK |
1138 | [\\/$]* | ?:[\\/]* ) continue;; |
1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1140 | esac |
5556819a | 1141 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1142 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1143 | done |
1144 | ||
ad6254c5 AK |
1145 | # There might be people who depend on the old broken behavior: `$host' |
1146 | # used to hold the argument of --host etc. | |
1147 | # FIXME: To remove some day. | |
1148 | build=$build_alias | |
1149 | host=$host_alias | |
1150 | target=$target_alias | |
1151 | ||
1152 | # FIXME: To remove some day. | |
1153 | if test "x$host_alias" != x; then | |
1154 | if test "x$build_alias" = x; then | |
1155 | cross_compiling=maybe | |
5556819a | 1156 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1157 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1158 | elif test "x$build_alias" != "x$host_alias"; then | |
1159 | cross_compiling=yes | |
1160 | fi | |
1161 | fi | |
8106cdd5 | 1162 | |
ad6254c5 AK |
1163 | ac_tool_prefix= |
1164 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1165 | ||
1166 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1167 | |
795ca3e5 | 1168 | |
7a197a62 AK |
1169 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1170 | ac_ls_di=`ls -di .` && | |
1171 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5556819a | 1172 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1173 | { (exit 1); exit 1; }; } |
1174 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
5556819a | 1175 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1176 | { (exit 1); exit 1; }; } |
1177 | ||
1178 | ||
795ca3e5 AK |
1179 | # Find the source files, if location was not specified. |
1180 | if test -z "$srcdir"; then | |
1181 | ac_srcdir_defaulted=yes | |
7a197a62 | 1182 | # Try the directory containing this script, then the parent directory. |
5556819a AK |
1183 | ac_confdir=`$as_dirname -- "$0" || |
1184 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1185 | X"$0" : 'X\(//\)[^/]' \| \ | |
1186 | X"$0" : 'X\(//\)$' \| \ | |
1187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1188 | echo X"$0" | | |
7a197a62 AK |
1189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | /^X\(\/\/\)[^/].*/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | /^X\(\/\/\)$/{ | |
1198 | s//\1/ | |
1199 | q | |
1200 | } | |
1201 | /^X\(\/\).*/{ | |
1202 | s//\1/ | |
1203 | q | |
1204 | } | |
1205 | s/.*/./; q'` | |
795ca3e5 | 1206 | srcdir=$ac_confdir |
7a197a62 | 1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1208 | srcdir=.. |
1209 | fi | |
1210 | else | |
1211 | ac_srcdir_defaulted=no | |
1212 | fi | |
7a197a62 AK |
1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
1214 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5556819a | 1215 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1216 | { (exit 1); exit 1; }; } |
795ca3e5 | 1217 | fi |
7a197a62 AK |
1218 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1219 | ac_abs_confdir=`( | |
5556819a | 1220 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1221 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1222 | pwd)` |
1223 | # When building in place, set srcdir=. | |
1224 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1225 | srcdir=. | |
1226 | fi | |
1227 | # Remove unnecessary trailing slashes from srcdir. | |
1228 | # Double slashes in file names in object file debugging info | |
1229 | # mess up M-x gdb in Emacs. | |
1230 | case $srcdir in | |
1231 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1232 | esac | |
1233 | for ac_var in $ac_precious_vars; do | |
1234 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1235 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1236 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1237 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1238 | done | |
ad6254c5 AK |
1239 | |
1240 | # | |
1241 | # Report the --help message. | |
1242 | # | |
1243 | if test "$ac_init_help" = "long"; then | |
1244 | # Omit some internal or obsolete options to make the list less imposing. | |
1245 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1246 | cat <<_ACEOF | |
1247 | \`configure' configures this package to adapt to many kinds of systems. | |
1248 | ||
1249 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1250 | ||
1251 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1252 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1253 | ||
1254 | Defaults for the options are specified in brackets. | |
1255 | ||
1256 | Configuration: | |
1257 | -h, --help display this help and exit | |
1258 | --help=short display options specific to this package | |
1259 | --help=recursive display the short help of all the included packages | |
1260 | -V, --version display version information and exit | |
1261 | -q, --quiet, --silent do not print \`checking...' messages | |
1262 | --cache-file=FILE cache test results in FILE [disabled] | |
1263 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1264 | -n, --no-create do not create output files | |
1265 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1266 | ||
ad6254c5 AK |
1267 | Installation directories: |
1268 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5556819a | 1269 | [$ac_default_prefix] |
ad6254c5 | 1270 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5556819a | 1271 | [PREFIX] |
ad6254c5 AK |
1272 | |
1273 | By default, \`make install' will install all the files in | |
1274 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1275 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1276 | for instance \`--prefix=\$HOME'. | |
1277 | ||
1278 | For better control, use the options below. | |
1279 | ||
1280 | Fine tuning of the installation directories: | |
5556819a AK |
1281 | --bindir=DIR user executables [EPREFIX/bin] |
1282 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1283 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1284 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1285 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1286 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1287 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1288 | --includedir=DIR C header files [PREFIX/include] | |
1289 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1290 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1291 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1292 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1293 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1294 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1295 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1296 | --htmldir=DIR html documentation [DOCDIR] | |
1297 | --dvidir=DIR dvi documentation [DOCDIR] | |
1298 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1299 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1300 | _ACEOF |
1301 | ||
1302 | cat <<\_ACEOF | |
1303 | ||
1304 | System types: | |
1305 | --build=BUILD configure for building on BUILD [guessed] | |
1306 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1307 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1308 | _ACEOF | |
1309 | fi | |
1310 | ||
1311 | if test -n "$ac_init_help"; then | |
1312 | ||
1313 | cat <<\_ACEOF | |
1314 | ||
1315 | Optional Features: | |
1316 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1317 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1318 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1319 | device-mapper is missing from the kernel | |
1b523347 | 1320 | --disable-readline Disable readline support |
3d978351 | 1321 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1322 | --enable-debug Enable debugging |
5556819a | 1323 | --enable-profiling Gather gcov profiling data |
ad6254c5 AK |
1324 | --disable-devmapper Disable device-mapper interaction |
1325 | --disable-o_direct Disable O_DIRECT | |
1326 | --enable-cmdlib Build shared command library | |
1327 | --enable-fsadm Enable fsadm | |
15d91f5a | 1328 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1329 | --enable-static_link Use this to link the tools to their libraries |
1330 | statically. Default is dynamic linking | |
1331 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1332 | --enable-nls Enable Native Language Support |
1333 | ||
1334 | Optional Packages: | |
1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1337 | --with-user=USER Set the owner of installed files [USER=root] |
1338 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
ad6254c5 AK |
1339 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1340 | TYPE=internal | |
1341 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1342 | TYPE=internal | |
1343 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1344 | TYPE=internal | |
1345 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1346 | TYPE=internal | |
1347 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1348 | TYPE=internal | |
5c7fc7c4 | 1349 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1350 | TYPE=none |
d0191583 JM |
1351 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1352 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1353 | --with-confdir=DIR Configuration files in DIR /etc |
1354 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1355 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1356 | |
1357 | Some influential environment variables: | |
1358 | CC C compiler command | |
1359 | CFLAGS C compiler flags | |
1360 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1361 | nonstandard directory <lib dir> | |
25fbec5b | 1362 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1363 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1364 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1365 | CPP C preprocessor |
1366 | ||
1367 | Use these variables to override the choices made by `configure' or to help | |
1368 | it to find libraries and programs with nonstandard names/locations. | |
1369 | ||
1370 | _ACEOF | |
7a197a62 | 1371 | ac_status=$? |
ad6254c5 AK |
1372 | fi |
1373 | ||
1374 | if test "$ac_init_help" = "recursive"; then | |
1375 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1376 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5556819a | 1377 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1378 | ac_builddir=. |
1379 | ||
7a197a62 AK |
1380 | case "$ac_dir" in |
1381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1382 | *) | |
5556819a | 1383 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1384 | # A ".." for each directory in $ac_dir_suffix. |
5556819a | 1385 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1386 | case $ac_top_builddir_sub in |
1387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1389 | esac ;; | |
1390 | esac | |
1391 | ac_abs_top_builddir=$ac_pwd | |
1392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1393 | # for backward compatibility: | |
1394 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1395 | |
1396 | case $srcdir in | |
7a197a62 | 1397 | .) # We are building in place. |
ad6254c5 | 1398 | ac_srcdir=. |
7a197a62 AK |
1399 | ac_top_srcdir=$ac_top_builddir_sub |
1400 | ac_abs_top_srcdir=$ac_pwd ;; | |
1401 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1402 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1403 | ac_top_srcdir=$srcdir |
1404 | ac_abs_top_srcdir=$srcdir ;; | |
1405 | *) # Relative name. | |
1406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1407 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1409 | esac |
7a197a62 AK |
1410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1411 | ||
1412 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1413 | # Check for guested configure. | |
1414 | if test -f "$ac_srcdir/configure.gnu"; then | |
1415 | echo && | |
1416 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1417 | elif test -f "$ac_srcdir/configure"; then | |
1418 | echo && | |
1419 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1420 | else |
5556819a | 1421 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1422 | fi || ac_status=$? |
1423 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1424 | done |
1425 | fi | |
1426 | ||
7a197a62 | 1427 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1428 | if $ac_init_version; then |
1429 | cat <<\_ACEOF | |
7a197a62 | 1430 | configure |
5556819a | 1431 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1432 | |
7a197a62 | 1433 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5556819a | 1434 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1435 | This configure script is free software; the Free Software Foundation |
1436 | gives unlimited permission to copy, distribute and modify it. | |
1437 | _ACEOF | |
7a197a62 | 1438 | exit |
ad6254c5 | 1439 | fi |
7a197a62 | 1440 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1441 | This file contains any messages produced by compilers while |
1442 | running configure, to aid debugging if configure makes a mistake. | |
1443 | ||
1444 | It was created by $as_me, which was | |
5556819a | 1445 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1446 | |
1447 | $ $0 $@ | |
1448 | ||
1449 | _ACEOF | |
7a197a62 | 1450 | exec 5>>config.log |
ad6254c5 AK |
1451 | { |
1452 | cat <<_ASUNAME | |
1453 | ## --------- ## | |
1454 | ## Platform. ## | |
1455 | ## --------- ## | |
1456 | ||
1457 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1458 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1459 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1460 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1461 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1462 | ||
1463 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1464 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1465 | ||
1466 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1467 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1468 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1469 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1470 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1471 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1472 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1473 | ||
1474 | _ASUNAME | |
1475 | ||
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1477 | for as_dir in $PATH | |
1478 | do | |
1479 | IFS=$as_save_IFS | |
1480 | test -z "$as_dir" && as_dir=. | |
5556819a | 1481 | echo "PATH: $as_dir" |
ad6254c5 | 1482 | done |
7a197a62 | 1483 | IFS=$as_save_IFS |
ad6254c5 AK |
1484 | |
1485 | } >&5 | |
1486 | ||
1487 | cat >&5 <<_ACEOF | |
1488 | ||
1489 | ||
1490 | ## ----------- ## | |
1491 | ## Core tests. ## | |
1492 | ## ----------- ## | |
1493 | ||
1494 | _ACEOF | |
1495 | ||
1496 | ||
1497 | # Keep a trace of the command line. | |
1498 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1499 | # Strip out --silent because we don't want to record it for future runs. | |
1500 | # Also quote any args containing shell meta-characters. | |
1501 | # Make two passes to allow for proper duplicate-argument suppression. | |
1502 | ac_configure_args= | |
1503 | ac_configure_args0= | |
1504 | ac_configure_args1= | |
ad6254c5 AK |
1505 | ac_must_keep_next=false |
1506 | for ac_pass in 1 2 | |
1507 | do | |
1508 | for ac_arg | |
1509 | do | |
1510 | case $ac_arg in | |
1511 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1512 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1513 | | -silent | --silent | --silen | --sile | --sil) | |
1514 | continue ;; | |
7a197a62 | 1515 | *\'*) |
5556819a | 1516 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1517 | esac |
1518 | case $ac_pass in | |
1519 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1520 | 2) | |
1521 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1522 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1523 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1524 | else |
8a2fc586 AK |
1525 | case $ac_arg in |
1526 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1527 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1528 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1529 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1530 | case "$ac_configure_args0 " in | |
1531 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1532 | esac | |
1533 | ;; | |
1534 | -* ) ac_must_keep_next=true ;; | |
1535 | esac | |
ad6254c5 | 1536 | fi |
7a197a62 | 1537 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1538 | ;; |
1539 | esac | |
1540 | done | |
1541 | done | |
1542 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1543 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1544 | ||
1545 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1546 | # config.log. We remove comments because anyway the quotes in there | |
1547 | # would cause problems or look ugly. | |
7a197a62 AK |
1548 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1549 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1550 | trap 'exit_status=$? |
1551 | # Save into config.log some information that might help in debugging. | |
1552 | { | |
1553 | echo | |
1554 | ||
1555 | cat <<\_ASBOX | |
1556 | ## ---------------- ## | |
1557 | ## Cache variables. ## | |
1558 | ## ---------------- ## | |
1559 | _ASBOX | |
1560 | echo | |
1561 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1562 | ( |
1563 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1564 | eval ac_val=\$$ac_var | |
1565 | case $ac_val in #( | |
1566 | *${as_nl}*) | |
1567 | case $ac_var in #( | |
5556819a AK |
1568 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1569 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1570 | esac |
1571 | case $ac_var in #( | |
1572 | _ | IFS | as_nl) ;; #( | |
1573 | *) $as_unset $ac_var ;; | |
1574 | esac ;; | |
1575 | esac | |
1576 | done | |
ad6254c5 | 1577 | (set) 2>&1 | |
7a197a62 AK |
1578 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1579 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1580 | sed -n \ |
7a197a62 AK |
1581 | "s/'\''/'\''\\\\'\'''\''/g; |
1582 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1583 | ;; #( | |
ad6254c5 | 1584 | *) |
7a197a62 | 1585 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1586 | ;; |
7a197a62 AK |
1587 | esac | |
1588 | sort | |
1589 | ) | |
ad6254c5 AK |
1590 | echo |
1591 | ||
1592 | cat <<\_ASBOX | |
1593 | ## ----------------- ## | |
1594 | ## Output variables. ## | |
1595 | ## ----------------- ## | |
1596 | _ASBOX | |
1597 | echo | |
1598 | for ac_var in $ac_subst_vars | |
1599 | do | |
7a197a62 AK |
1600 | eval ac_val=\$$ac_var |
1601 | case $ac_val in | |
5556819a | 1602 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1603 | esac |
5556819a | 1604 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1605 | done | sort |
1606 | echo | |
1607 | ||
1608 | if test -n "$ac_subst_files"; then | |
1609 | cat <<\_ASBOX | |
7a197a62 AK |
1610 | ## ------------------- ## |
1611 | ## File substitutions. ## | |
1612 | ## ------------------- ## | |
ad6254c5 AK |
1613 | _ASBOX |
1614 | echo | |
1615 | for ac_var in $ac_subst_files | |
1616 | do | |
7a197a62 AK |
1617 | eval ac_val=\$$ac_var |
1618 | case $ac_val in | |
5556819a | 1619 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1620 | esac |
5556819a | 1621 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1622 | done | sort |
1623 | echo | |
1624 | fi | |
1625 | ||
1626 | if test -s confdefs.h; then | |
1627 | cat <<\_ASBOX | |
1628 | ## ----------- ## | |
1629 | ## confdefs.h. ## | |
1630 | ## ----------- ## | |
1631 | _ASBOX | |
1632 | echo | |
7a197a62 | 1633 | cat confdefs.h |
ad6254c5 AK |
1634 | echo |
1635 | fi | |
1636 | test "$ac_signal" != 0 && | |
5556819a AK |
1637 | echo "$as_me: caught signal $ac_signal" |
1638 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1639 | } >&5 |
7a197a62 AK |
1640 | rm -f core *.core core.conftest.* && |
1641 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1642 | exit $exit_status |
7a197a62 | 1643 | ' 0 |
ad6254c5 AK |
1644 | for ac_signal in 1 2 13 15; do |
1645 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1646 | done | |
1647 | ac_signal=0 | |
1648 | ||
1649 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1650 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1651 | |
1652 | # Predefined preprocessor variables. | |
1653 | ||
1654 | cat >>confdefs.h <<_ACEOF | |
1655 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1656 | _ACEOF | |
1657 | ||
1658 | ||
1659 | cat >>confdefs.h <<_ACEOF | |
1660 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1661 | _ACEOF | |
1662 | ||
1663 | ||
1664 | cat >>confdefs.h <<_ACEOF | |
1665 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1666 | _ACEOF | |
8106cdd5 | 1667 | |
ad6254c5 AK |
1668 | |
1669 | cat >>confdefs.h <<_ACEOF | |
1670 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1671 | _ACEOF | |
1672 | ||
1673 | ||
1674 | cat >>confdefs.h <<_ACEOF | |
1675 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1676 | _ACEOF | |
1677 | ||
1678 | ||
1679 | # Let the site file select an alternate cache file if it wants to. | |
5556819a | 1680 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1681 | if test -n "$CONFIG_SITE"; then |
5556819a | 1682 | set x "$CONFIG_SITE" |
7a197a62 | 1683 | elif test "x$prefix" != xNONE; then |
5556819a | 1684 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1685 | else |
5556819a AK |
1686 | set x "$ac_default_prefix/share/config.site" \ |
1687 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1688 | fi |
5556819a AK |
1689 | shift |
1690 | for ac_site_file | |
7a197a62 | 1691 | do |
795ca3e5 | 1692 | if test -r "$ac_site_file"; then |
5556819a AK |
1693 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1694 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1695 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1696 | . "$ac_site_file" |
1697 | fi | |
1698 | done | |
1699 | ||
1700 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1701 | # Some versions of bash will fail to source /dev/null (special |
1702 | # files actually), so we avoid doing that. | |
1703 | if test -f "$cache_file"; then | |
5556819a AK |
1704 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1705 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1706 | case $cache_file in |
7a197a62 AK |
1707 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1708 | *) . "./$cache_file";; | |
ad6254c5 AK |
1709 | esac |
1710 | fi | |
795ca3e5 | 1711 | else |
5556819a AK |
1712 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1713 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1714 | >$cache_file |
1715 | fi | |
1716 | ||
1717 | # Check that the precious variables saved in the cache have kept the same | |
1718 | # value. | |
1719 | ac_cache_corrupted=false | |
7a197a62 | 1720 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1721 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1722 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1723 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1724 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1725 | case $ac_old_set,$ac_new_set in |
1726 | set,) | |
5556819a AK |
1727 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1728 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1729 | ac_cache_corrupted=: ;; |
1730 | ,set) | |
5556819a AK |
1731 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1732 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1733 | ac_cache_corrupted=: ;; |
1734 | ,);; | |
1735 | *) | |
1736 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5556819a AK |
1737 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1738 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1739 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1740 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1741 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1742 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1743 | ac_cache_corrupted=: | |
ad6254c5 AK |
1744 | fi;; |
1745 | esac | |
1746 | # Pass precious variables to config.status. | |
1747 | if test "$ac_new_set" = set; then | |
1748 | case $ac_new_val in | |
5556819a | 1749 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1750 | *) ac_arg=$ac_var=$ac_new_val ;; |
1751 | esac | |
1752 | case " $ac_configure_args " in | |
1753 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1754 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1755 | esac | |
1756 | fi | |
1757 | done | |
1758 | if $ac_cache_corrupted; then | |
5556819a AK |
1759 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1760 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1761 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1762 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1763 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1764 | fi |
1765 | ||
ad6254c5 AK |
1766 | |
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | ||
7a197a62 AK |
1782 | ac_ext=c |
1783 | ac_cpp='$CPP $CPPFLAGS' | |
1784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1787 | |
795ca3e5 AK |
1788 | |
1789 | ||
7a197a62 | 1790 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1791 | |
1792 | ||
80992638 | 1793 | ################################################################################ |
795ca3e5 | 1794 | ac_aux_dir= |
7a197a62 AK |
1795 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1796 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1797 | ac_aux_dir=$ac_dir |
1798 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1799 | break | |
7a197a62 | 1800 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1801 | ac_aux_dir=$ac_dir |
1802 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1803 | break | |
7a197a62 | 1804 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1805 | ac_aux_dir=$ac_dir |
1806 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1807 | break | |
795ca3e5 AK |
1808 | fi |
1809 | done | |
1810 | if test -z "$ac_aux_dir"; then | |
5556819a AK |
1811 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1812 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1813 | { (exit 1); exit 1; }; } |
795ca3e5 | 1814 | fi |
7a197a62 AK |
1815 | |
1816 | # These three variables are undocumented and unsupported, | |
1817 | # and are intended to be withdrawn in a future Autoconf release. | |
1818 | # They can cause serious problems if a builder's source tree is in a directory | |
1819 | # whose full name contains unusual characters. | |
1820 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1821 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1822 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1823 | ||
8ce0cbda AK |
1824 | |
1825 | ||
ad6254c5 | 1826 | ################################################################################ |
8ce0cbda | 1827 | # Make sure we can run config.sub. |
7a197a62 | 1828 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
5556819a AK |
1829 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1830 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1831 | { (exit 1); exit 1; }; } |
1832 | ||
5556819a AK |
1833 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1834 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1835 | if test "${ac_cv_build+set}" = set; then |
5556819a | 1836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1837 | else |
7a197a62 AK |
1838 | ac_build_alias=$build_alias |
1839 | test "x$ac_build_alias" = x && | |
1840 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1841 | test "x$ac_build_alias" = x && | |
5556819a AK |
1842 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1843 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1844 | { (exit 1); exit 1; }; } |
7a197a62 | 1845 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5556819a AK |
1846 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1847 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1848 | { (exit 1); exit 1; }; } |
1849 | ||
1850 | fi | |
5556819a AK |
1851 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1852 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1853 | case $ac_cv_build in |
1854 | *-*-*) ;; | |
5556819a AK |
1855 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1856 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1857 | { (exit 1); exit 1; }; };; |
1858 | esac | |
ad6254c5 | 1859 | build=$ac_cv_build |
7a197a62 AK |
1860 | ac_save_IFS=$IFS; IFS='-' |
1861 | set x $ac_cv_build | |
1862 | shift | |
1863 | build_cpu=$1 | |
1864 | build_vendor=$2 | |
1865 | shift; shift | |
1866 | # Remember, the first character of IFS is used to create $*, | |
1867 | # except with old shells: | |
1868 | build_os=$* | |
1869 | IFS=$ac_save_IFS | |
1870 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1871 | |
1872 | ||
5556819a AK |
1873 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1874 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1875 | if test "${ac_cv_host+set}" = set; then |
5556819a | 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1877 | else |
7a197a62 AK |
1878 | if test "x$host_alias" = x; then |
1879 | ac_cv_host=$ac_cv_build | |
1880 | else | |
1881 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5556819a AK |
1882 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1883 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1884 | { (exit 1); exit 1; }; } |
7a197a62 | 1885 | fi |
ad6254c5 AK |
1886 | |
1887 | fi | |
5556819a AK |
1888 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1889 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1890 | case $ac_cv_host in |
1891 | *-*-*) ;; | |
5556819a AK |
1892 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1893 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1894 | { (exit 1); exit 1; }; };; |
1895 | esac | |
ad6254c5 | 1896 | host=$ac_cv_host |
7a197a62 AK |
1897 | ac_save_IFS=$IFS; IFS='-' |
1898 | set x $ac_cv_host | |
1899 | shift | |
1900 | host_cpu=$1 | |
1901 | host_vendor=$2 | |
1902 | shift; shift | |
1903 | # Remember, the first character of IFS is used to create $*, | |
1904 | # except with old shells: | |
1905 | host_os=$* | |
1906 | IFS=$ac_save_IFS | |
1907 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1908 | |
1909 | ||
5556819a AK |
1910 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1911 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1912 | if test "${ac_cv_target+set}" = set; then |
5556819a | 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1914 | else |
7a197a62 AK |
1915 | if test "x$target_alias" = x; then |
1916 | ac_cv_target=$ac_cv_host | |
1917 | else | |
1918 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
5556819a AK |
1919 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1920 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1921 | { (exit 1); exit 1; }; } |
7a197a62 | 1922 | fi |
8ce0cbda | 1923 | |
ad6254c5 | 1924 | fi |
5556819a AK |
1925 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1926 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1927 | case $ac_cv_target in |
1928 | *-*-*) ;; | |
5556819a AK |
1929 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1930 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1931 | { (exit 1); exit 1; }; };; |
1932 | esac | |
ad6254c5 | 1933 | target=$ac_cv_target |
7a197a62 AK |
1934 | ac_save_IFS=$IFS; IFS='-' |
1935 | set x $ac_cv_target | |
1936 | shift | |
1937 | target_cpu=$1 | |
1938 | target_vendor=$2 | |
1939 | shift; shift | |
1940 | # Remember, the first character of IFS is used to create $*, | |
1941 | # except with old shells: | |
1942 | target_os=$* | |
1943 | IFS=$ac_save_IFS | |
1944 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1945 | |
8ce0cbda | 1946 | |
ad6254c5 AK |
1947 | # The aliases save the names the user supplied, while $host etc. |
1948 | # will get canonicalized. | |
1949 | test -n "$target_alias" && | |
8ce0cbda AK |
1950 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1951 | NONENONEs,x,x, && | |
1952 | program_prefix=${target_alias}- | |
1953 | ||
8ce0cbda AK |
1954 | case "$host_os" in |
1955 | linux*) | |
8ce0cbda AK |
1956 | COPTIMISE_FLAG="-O2" |
1957 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1958 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1959 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1960 | LDDEPS="$LDDEPS .export.sym" | |
1961 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1962 | LIB_SUFFIX=so |
8ce0cbda AK |
1963 | DEVMAPPER=yes |
1964 | ODIRECT=yes | |
d0191583 | 1965 | DM_IOCTLS=yes |
8ce0cbda | 1966 | SELINUX=yes |
8b1a3214 | 1967 | REALTIME=yes |
8ce0cbda | 1968 | CLUSTER=internal |
d0191583 JM |
1969 | FSADM=no |
1970 | ;; | |
8ce0cbda AK |
1971 | darwin*) |
1972 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1973 | COPTIMISE_FLAG="-O2" | |
1974 | CLDFLAGS="$CLDFLAGS" | |
1975 | CLDWHOLEARCHIVE="-all_load" | |
1976 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1977 | LIB_SUFFIX=dylib |
a653923f | 1978 | DEVMAPPER=yes |
8ce0cbda | 1979 | ODIRECT=no |
d0191583 | 1980 | DM_IOCTLS=no |
8ce0cbda | 1981 | SELINUX=no |
8b1a3214 | 1982 | REALTIME=no |
8ce0cbda | 1983 | CLUSTER=none |
d0191583 JM |
1984 | FSADM=no |
1985 | ;; | |
8ce0cbda AK |
1986 | esac |
1987 | ||
80992638 | 1988 | ################################################################################ |
ad6254c5 | 1989 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1990 | do |
ad6254c5 | 1991 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1992 | set dummy $ac_prog; ac_word=$2 |
5556819a AK |
1993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 1995 | if test "${ac_cv_prog_AWK+set}" = set; then |
5556819a | 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
1997 | else |
1998 | if test -n "$AWK"; then | |
1999 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2000 | else | |
ad6254c5 AK |
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2002 | for as_dir in $PATH | |
2003 | do | |
2004 | IFS=$as_save_IFS | |
2005 | test -z "$as_dir" && as_dir=. | |
2006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2008 | ac_cv_prog_AWK="$ac_prog" |
5556819a | 2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2010 | break 2 |
2011 | fi | |
2012 | done | |
2013 | done | |
7a197a62 | 2014 | IFS=$as_save_IFS |
ad6254c5 | 2015 | |
795ca3e5 AK |
2016 | fi |
2017 | fi | |
ad6254c5 | 2018 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2019 | if test -n "$AWK"; then |
5556819a AK |
2020 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2021 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2022 | else |
5556819a AK |
2023 | { echo "$as_me:$LINENO: result: no" >&5 |
2024 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2025 | fi |
2026 | ||
7a197a62 | 2027 | |
ad6254c5 AK |
2028 | test -n "$AWK" && break |
2029 | done | |
2030 | ||
2031 | ac_ext=c | |
2032 | ac_cpp='$CPP $CPPFLAGS' | |
2033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2036 | if test -n "$ac_tool_prefix"; then | |
2037 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2038 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5556819a AK |
2039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2041 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2043 | else |
2044 | if test -n "$CC"; then | |
2045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2046 | else | |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2054 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5556819a | 2055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2056 | break 2 |
2057 | fi | |
2058 | done | |
8106cdd5 | 2059 | done |
7a197a62 | 2060 | IFS=$as_save_IFS |
8106cdd5 | 2061 | |
ad6254c5 AK |
2062 | fi |
2063 | fi | |
2064 | CC=$ac_cv_prog_CC | |
2065 | if test -n "$CC"; then | |
5556819a AK |
2066 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2067 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2068 | else |
5556819a AK |
2069 | { echo "$as_me:$LINENO: result: no" >&5 |
2070 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2071 | fi |
2072 | ||
7a197a62 | 2073 | |
ad6254c5 AK |
2074 | fi |
2075 | if test -z "$ac_cv_prog_CC"; then | |
2076 | ac_ct_CC=$CC | |
2077 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2078 | set dummy gcc; ac_word=$2 |
5556819a AK |
2079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2081 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
5556819a | 2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2083 | else |
2084 | if test -n "$ac_ct_CC"; then | |
2085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2086 | else | |
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2088 | for as_dir in $PATH | |
2089 | do | |
2090 | IFS=$as_save_IFS | |
2091 | test -z "$as_dir" && as_dir=. | |
2092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2094 | ac_cv_prog_ac_ct_CC="gcc" |
5556819a | 2095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2096 | break 2 |
2097 | fi | |
2098 | done | |
2099 | done | |
7a197a62 | 2100 | IFS=$as_save_IFS |
ad6254c5 AK |
2101 | |
2102 | fi | |
2103 | fi | |
2104 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2105 | if test -n "$ac_ct_CC"; then | |
5556819a AK |
2106 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2107 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2108 | else |
5556819a AK |
2109 | { echo "$as_me:$LINENO: result: no" >&5 |
2110 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2111 | fi |
2112 | ||
7a197a62 AK |
2113 | if test "x$ac_ct_CC" = x; then |
2114 | CC="" | |
2115 | else | |
2116 | case $cross_compiling:$ac_tool_warned in | |
2117 | yes:) | |
5556819a | 2118 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2119 | whose name does not start with the host triplet. If you think this |
2120 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 2121 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2122 | whose name does not start with the host triplet. If you think this |
2123 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2124 | ac_tool_warned=yes ;; | |
2125 | esac | |
2126 | CC=$ac_ct_CC | |
2127 | fi | |
ad6254c5 AK |
2128 | else |
2129 | CC="$ac_cv_prog_CC" | |
2130 | fi | |
2131 | ||
2132 | if test -z "$CC"; then | |
7a197a62 AK |
2133 | if test -n "$ac_tool_prefix"; then |
2134 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2135 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5556819a AK |
2136 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2138 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2140 | else |
2141 | if test -n "$CC"; then | |
2142 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2143 | else | |
ad6254c5 AK |
2144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2145 | for as_dir in $PATH | |
2146 | do | |
2147 | IFS=$as_save_IFS | |
2148 | test -z "$as_dir" && as_dir=. | |
2149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2151 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5556819a | 2152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2153 | break 2 |
2154 | fi | |
2155 | done | |
2156 | done | |
7a197a62 | 2157 | IFS=$as_save_IFS |
ad6254c5 | 2158 | |
8106cdd5 AK |
2159 | fi |
2160 | fi | |
ad6254c5 | 2161 | CC=$ac_cv_prog_CC |
8106cdd5 | 2162 | if test -n "$CC"; then |
5556819a AK |
2163 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2164 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2165 | else |
5556819a AK |
2166 | { echo "$as_me:$LINENO: result: no" >&5 |
2167 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2168 | fi |
2169 | ||
8106cdd5 | 2170 | |
7a197a62 | 2171 | fi |
ad6254c5 | 2172 | fi |
795ca3e5 AK |
2173 | if test -z "$CC"; then |
2174 | # Extract the first word of "cc", so it can be a program name with args. | |
2175 | set dummy cc; ac_word=$2 | |
5556819a AK |
2176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2178 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2180 | else |
2181 | if test -n "$CC"; then | |
2182 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2183 | else | |
795ca3e5 | 2184 | ac_prog_rejected=no |
ad6254c5 AK |
2185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2186 | for as_dir in $PATH | |
2187 | do | |
2188 | IFS=$as_save_IFS | |
2189 | test -z "$as_dir" && as_dir=. | |
2190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2192 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2193 | ac_prog_rejected=yes | |
2194 | continue | |
2195 | fi | |
2196 | ac_cv_prog_CC="cc" | |
5556819a | 2197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2198 | break 2 |
2199 | fi | |
2200 | done | |
2201 | done | |
7a197a62 | 2202 | IFS=$as_save_IFS |
ad6254c5 | 2203 | |
795ca3e5 AK |
2204 | if test $ac_prog_rejected = yes; then |
2205 | # We found a bogon in the path, so make sure we never use it. | |
2206 | set dummy $ac_cv_prog_CC | |
2207 | shift | |
ad6254c5 | 2208 | if test $# != 0; then |
795ca3e5 AK |
2209 | # We chose a different compiler from the bogus one. |
2210 | # However, it has the same basename, so the bogon will be chosen | |
2211 | # first if we set CC to just the basename; use the full file name. | |
2212 | shift | |
ad6254c5 | 2213 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2214 | fi |
2215 | fi | |
2216 | fi | |
2217 | fi | |
ad6254c5 | 2218 | CC=$ac_cv_prog_CC |
795ca3e5 | 2219 | if test -n "$CC"; then |
5556819a AK |
2220 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2221 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2222 | else |
5556819a AK |
2223 | { echo "$as_me:$LINENO: result: no" >&5 |
2224 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2225 | fi |
2226 | ||
7a197a62 | 2227 | |
ad6254c5 AK |
2228 | fi |
2229 | if test -z "$CC"; then | |
2230 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2231 | for ac_prog in cl.exe |
ad6254c5 AK |
2232 | do |
2233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5556819a AK |
2235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2237 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2239 | else |
2240 | if test -n "$CC"; then | |
2241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2242 | else | |
ad6254c5 AK |
2243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2244 | for as_dir in $PATH | |
2245 | do | |
2246 | IFS=$as_save_IFS | |
2247 | test -z "$as_dir" && as_dir=. | |
2248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2250 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5556819a | 2251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2252 | break 2 |
2253 | fi | |
2254 | done | |
2255 | done | |
7a197a62 | 2256 | IFS=$as_save_IFS |
ad6254c5 | 2257 | |
795ca3e5 AK |
2258 | fi |
2259 | fi | |
ad6254c5 | 2260 | CC=$ac_cv_prog_CC |
795ca3e5 | 2261 | if test -n "$CC"; then |
5556819a AK |
2262 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2263 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2264 | else |
5556819a AK |
2265 | { echo "$as_me:$LINENO: result: no" >&5 |
2266 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2267 | fi |
ad6254c5 | 2268 | |
7a197a62 | 2269 | |
ad6254c5 AK |
2270 | test -n "$CC" && break |
2271 | done | |
2272 | fi | |
2273 | if test -z "$CC"; then | |
2274 | ac_ct_CC=$CC | |
7a197a62 | 2275 | for ac_prog in cl.exe |
ad6254c5 AK |
2276 | do |
2277 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2278 | set dummy $ac_prog; ac_word=$2 | |
5556819a AK |
2279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2281 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
5556819a | 2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2283 | else |
2284 | if test -n "$ac_ct_CC"; then | |
2285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2286 | else | |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2288 | for as_dir in $PATH | |
2289 | do | |
2290 | IFS=$as_save_IFS | |
2291 | test -z "$as_dir" && as_dir=. | |
2292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2294 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5556819a | 2295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2296 | break 2 |
795ca3e5 | 2297 | fi |
ad6254c5 AK |
2298 | done |
2299 | done | |
7a197a62 | 2300 | IFS=$as_save_IFS |
ad6254c5 AK |
2301 | |
2302 | fi | |
2303 | fi | |
2304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2305 | if test -n "$ac_ct_CC"; then | |
5556819a AK |
2306 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2307 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2308 | else |
5556819a AK |
2309 | { echo "$as_me:$LINENO: result: no" >&5 |
2310 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2311 | fi |
2312 | ||
7a197a62 | 2313 | |
ad6254c5 AK |
2314 | test -n "$ac_ct_CC" && break |
2315 | done | |
795ca3e5 | 2316 | |
7a197a62 AK |
2317 | if test "x$ac_ct_CC" = x; then |
2318 | CC="" | |
2319 | else | |
2320 | case $cross_compiling:$ac_tool_warned in | |
2321 | yes:) | |
5556819a | 2322 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2323 | whose name does not start with the host triplet. If you think this |
2324 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 2325 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2326 | whose name does not start with the host triplet. If you think this |
2327 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2328 | ac_tool_warned=yes ;; | |
2329 | esac | |
2330 | CC=$ac_ct_CC | |
2331 | fi | |
ad6254c5 AK |
2332 | fi |
2333 | ||
2334 | fi | |
2335 | ||
2336 | ||
5556819a | 2337 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2338 | See \`config.log' for more details." >&5 |
5556819a | 2339 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2340 | See \`config.log' for more details." >&2;} |
2341 | { (exit 1); exit 1; }; } | |
2342 | ||
2343 | # Provide some information about the compiler. | |
5556819a AK |
2344 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2345 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2346 | { (ac_try="$ac_compiler --version >&5" |
2347 | case "(($ac_try" in | |
2348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2349 | *) ac_try_echo=$ac_try;; | |
2350 | esac | |
5556819a | 2351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2352 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2353 | ac_status=$? |
5556819a | 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2355 | (exit $ac_status); } |
7a197a62 AK |
2356 | { (ac_try="$ac_compiler -v >&5" |
2357 | case "(($ac_try" in | |
2358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2359 | *) ac_try_echo=$ac_try;; | |
2360 | esac | |
5556819a | 2361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2362 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2363 | ac_status=$? |
5556819a | 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2365 | (exit $ac_status); } |
7a197a62 AK |
2366 | { (ac_try="$ac_compiler -V >&5" |
2367 | case "(($ac_try" in | |
2368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2369 | *) ac_try_echo=$ac_try;; | |
2370 | esac | |
5556819a | 2371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2372 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2373 | ac_status=$? |
5556819a | 2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2375 | (exit $ac_status); } |
2376 | ||
2377 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2378 | /* confdefs.h. */ |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | ||
2388 | ; | |
2389 | return 0; | |
2390 | } | |
2391 | _ACEOF | |
2392 | ac_clean_files_save=$ac_clean_files | |
5556819a | 2393 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2394 | # Try to create an executable without -o first, disregard a.out. |
2395 | # It will help us diagnose broken compilers, and finding out an intuition | |
2396 | # of exeext. | |
5556819a AK |
2397 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2398 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2399 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2400 | # | |
2401 | # List of possible output files, starting from the most likely. | |
2402 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2403 | # only as a last resort. b.out is created by i960 compilers. | |
2404 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2405 | # | |
2406 | # The IRIX 6 linker writes into existing files which may not be | |
2407 | # executable, retaining their permissions. Remove them first so a | |
2408 | # subsequent execution test works. | |
7a197a62 AK |
2409 | ac_rmfiles= |
2410 | for ac_file in $ac_files | |
2411 | do | |
2412 | case $ac_file in | |
5556819a | 2413 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2414 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2415 | esac | |
2416 | done | |
2417 | rm -f $ac_rmfiles | |
2418 | ||
2419 | if { (ac_try="$ac_link_default" | |
2420 | case "(($ac_try" in | |
2421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2422 | *) ac_try_echo=$ac_try;; | |
2423 | esac | |
5556819a | 2424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2425 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2426 | ac_status=$? |
5556819a | 2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2428 | (exit $ac_status); }; then |
7a197a62 AK |
2429 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2430 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2431 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2432 | # so that the user can short-circuit this test for compilers unknown to | |
2433 | # Autoconf. | |
25fbec5b | 2434 | for ac_file in $ac_files '' |
ad6254c5 AK |
2435 | do |
2436 | test -f "$ac_file" || continue | |
2437 | case $ac_file in | |
5556819a | 2438 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2439 | ;; |
ad6254c5 | 2440 | [ab].out ) |
8a2fc586 AK |
2441 | # We found the default executable, but exeext='' is most |
2442 | # certainly right. | |
2443 | break;; | |
ad6254c5 | 2444 | *.* ) |
7a197a62 AK |
2445 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2446 | then :; else | |
2447 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2448 | fi | |
2449 | # We set ac_cv_exeext here because the later test for it is not | |
2450 | # safe: cross compilers may not add the suffix if given an `-o' | |
2451 | # argument, so we may need to know it at that point already. | |
2452 | # Even if this section looks crufty: it has the advantage of | |
2453 | # actually working. | |
8a2fc586 | 2454 | break;; |
ad6254c5 | 2455 | * ) |
8a2fc586 | 2456 | break;; |
ad6254c5 AK |
2457 | esac |
2458 | done | |
7a197a62 AK |
2459 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2460 | ||
ad6254c5 | 2461 | else |
25fbec5b AK |
2462 | ac_file='' |
2463 | fi | |
2464 | ||
5556819a AK |
2465 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2466 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2467 | if test -z "$ac_file"; then |
5556819a | 2468 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2469 | sed 's/^/| /' conftest.$ac_ext >&5 |
2470 | ||
5556819a | 2471 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2472 | See \`config.log' for more details." >&5 |
5556819a | 2473 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2474 | See \`config.log' for more details." >&2;} |
2475 | { (exit 77); exit 77; }; } | |
2476 | fi | |
2477 | ||
2478 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2479 | |
7a197a62 | 2480 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2481 | # the compiler is broken, or we cross compile. |
5556819a AK |
2482 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2483 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2484 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2485 | # If not cross compiling, check that we can run a simple program. | |
2486 | if test "$cross_compiling" != yes; then | |
2487 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2488 | { (case "(($ac_try" in |
2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2490 | *) ac_try_echo=$ac_try;; | |
2491 | esac | |
5556819a | 2492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2493 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2494 | ac_status=$? |
5556819a | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2496 | (exit $ac_status); }; }; then |
2497 | cross_compiling=no | |
795ca3e5 | 2498 | else |
ad6254c5 AK |
2499 | if test "$cross_compiling" = maybe; then |
2500 | cross_compiling=yes | |
2501 | else | |
5556819a | 2502 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2503 | If you meant to cross compile, use \`--host'. |
2504 | See \`config.log' for more details." >&5 | |
5556819a | 2505 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2506 | If you meant to cross compile, use \`--host'. |
2507 | See \`config.log' for more details." >&2;} | |
2508 | { (exit 1); exit 1; }; } | |
2509 | fi | |
795ca3e5 | 2510 | fi |
80992638 | 2511 | fi |
5556819a AK |
2512 | { echo "$as_me:$LINENO: result: yes" >&5 |
2513 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2514 | |
5556819a | 2515 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2516 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2517 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2518 | # the compiler is broken, or we cross compile. |
5556819a AK |
2519 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2520 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2521 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2522 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2523 | |
5556819a AK |
2524 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2525 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2526 | if { (ac_try="$ac_link" |
2527 | case "(($ac_try" in | |
2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2529 | *) ac_try_echo=$ac_try;; | |
2530 | esac | |
5556819a | 2531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2532 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2533 | ac_status=$? |
5556819a | 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2535 | (exit $ac_status); }; then |
2536 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2537 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2538 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2539 | # `rm'. | |
2540 | for ac_file in conftest.exe conftest conftest.*; do | |
2541 | test -f "$ac_file" || continue | |
2542 | case $ac_file in | |
5556819a | 2543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2544 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2545 | break;; |
ad6254c5 AK |
2546 | * ) break;; |
2547 | esac | |
2548 | done | |
80992638 | 2549 | else |
5556819a | 2550 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2551 | See \`config.log' for more details." >&5 |
5556819a | 2552 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2553 | See \`config.log' for more details." >&2;} |
2554 | { (exit 1); exit 1; }; } | |
2555 | fi | |
2556 | ||
2557 | rm -f conftest$ac_cv_exeext | |
5556819a AK |
2558 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2559 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2560 | |
2561 | rm -f conftest.$ac_ext | |
2562 | EXEEXT=$ac_cv_exeext | |
2563 | ac_exeext=$EXEEXT | |
5556819a AK |
2564 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2565 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2566 | if test "${ac_cv_objext+set}" = set; then |
5556819a | 2567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2568 | else |
ad6254c5 | 2569 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2570 | /* confdefs.h. */ |
2571 | _ACEOF | |
2572 | cat confdefs.h >>conftest.$ac_ext | |
2573 | cat >>conftest.$ac_ext <<_ACEOF | |
2574 | /* end confdefs.h. */ | |
2575 | ||
2576 | int | |
2577 | main () | |
2578 | { | |
2579 | ||
2580 | ; | |
2581 | return 0; | |
2582 | } | |
2583 | _ACEOF | |
2584 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2585 | if { (ac_try="$ac_compile" |
2586 | case "(($ac_try" in | |
2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2588 | *) ac_try_echo=$ac_try;; | |
2589 | esac | |
5556819a | 2590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2591 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2592 | ac_status=$? |
5556819a | 2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2594 | (exit $ac_status); }; then |
7a197a62 AK |
2595 | for ac_file in conftest.o conftest.obj conftest.*; do |
2596 | test -f "$ac_file" || continue; | |
ad6254c5 | 2597 | case $ac_file in |
5556819a | 2598 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2599 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2600 | break;; | |
2601 | esac | |
2602 | done | |
2603 | else | |
5556819a | 2604 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2605 | sed 's/^/| /' conftest.$ac_ext >&5 |
2606 | ||
5556819a | 2607 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2608 | See \`config.log' for more details." >&5 |
5556819a | 2609 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2610 | See \`config.log' for more details." >&2;} |
2611 | { (exit 1); exit 1; }; } | |
2612 | fi | |
2613 | ||
2614 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2615 | fi | |
5556819a AK |
2616 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2617 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2618 | OBJEXT=$ac_cv_objext |
2619 | ac_objext=$OBJEXT | |
5556819a AK |
2620 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2621 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2622 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
5556819a | 2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2624 | else |
2625 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2626 | /* confdefs.h. */ |
2627 | _ACEOF | |
2628 | cat confdefs.h >>conftest.$ac_ext | |
2629 | cat >>conftest.$ac_ext <<_ACEOF | |
2630 | /* end confdefs.h. */ | |
2631 | ||
2632 | int | |
2633 | main () | |
2634 | { | |
2635 | #ifndef __GNUC__ | |
2636 | choke me | |
2637 | #endif | |
80992638 | 2638 | |
ad6254c5 AK |
2639 | ; |
2640 | return 0; | |
2641 | } | |
2642 | _ACEOF | |
2643 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2644 | if { (ac_try="$ac_compile" |
2645 | case "(($ac_try" in | |
2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2647 | *) ac_try_echo=$ac_try;; | |
2648 | esac | |
5556819a | 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2650 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2651 | ac_status=$? |
8a2fc586 AK |
2652 | grep -v '^ *+' conftest.er1 >conftest.err |
2653 | rm -f conftest.er1 | |
2654 | cat conftest.err >&5 | |
5556819a | 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2656 | (exit $ac_status); } && { |
2657 | test -z "$ac_c_werror_flag" || | |
2658 | test ! -s conftest.err | |
2659 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2660 | ac_compiler_gnu=yes |
80992638 | 2661 | else |
5556819a | 2662 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
2664 | ||
7a197a62 | 2665 | ac_compiler_gnu=no |
8106cdd5 | 2666 | fi |
7a197a62 AK |
2667 | |
2668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2669 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2670 | |
ad6254c5 | 2671 | fi |
5556819a AK |
2672 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2673 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2674 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2675 | ac_test_CFLAGS=${CFLAGS+set} |
2676 | ac_save_CFLAGS=$CFLAGS | |
5556819a AK |
2677 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2678 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2679 | if test "${ac_cv_prog_cc_g+set}" = set; then |
5556819a | 2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2681 | else |
7a197a62 AK |
2682 | ac_save_c_werror_flag=$ac_c_werror_flag |
2683 | ac_c_werror_flag=yes | |
2684 | ac_cv_prog_cc_g=no | |
2685 | CFLAGS="-g" | |
2686 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2687 | /* confdefs.h. */ |
2688 | _ACEOF | |
2689 | cat confdefs.h >>conftest.$ac_ext | |
2690 | cat >>conftest.$ac_ext <<_ACEOF | |
2691 | /* end confdefs.h. */ | |
2692 | ||
2693 | int | |
2694 | main () | |
2695 | { | |
2696 | ||
2697 | ; | |
2698 | return 0; | |
2699 | } | |
2700 | _ACEOF | |
2701 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2702 | if { (ac_try="$ac_compile" |
2703 | case "(($ac_try" in | |
2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2705 | *) ac_try_echo=$ac_try;; | |
2706 | esac | |
5556819a | 2707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2708 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2709 | ac_status=$? |
8a2fc586 AK |
2710 | grep -v '^ *+' conftest.er1 >conftest.err |
2711 | rm -f conftest.er1 | |
2712 | cat conftest.err >&5 | |
5556819a | 2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2714 | (exit $ac_status); } && { |
2715 | test -z "$ac_c_werror_flag" || | |
2716 | test ! -s conftest.err | |
2717 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2718 | ac_cv_prog_cc_g=yes |
2719 | else | |
5556819a | 2720 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2721 | sed 's/^/| /' conftest.$ac_ext >&5 |
2722 | ||
2723 | CFLAGS="" | |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
2725 | /* confdefs.h. */ | |
2726 | _ACEOF | |
2727 | cat confdefs.h >>conftest.$ac_ext | |
2728 | cat >>conftest.$ac_ext <<_ACEOF | |
2729 | /* end confdefs.h. */ | |
2730 | ||
2731 | int | |
2732 | main () | |
2733 | { | |
2734 | ||
2735 | ; | |
2736 | return 0; | |
2737 | } | |
2738 | _ACEOF | |
2739 | rm -f conftest.$ac_objext | |
2740 | if { (ac_try="$ac_compile" | |
2741 | case "(($ac_try" in | |
2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2743 | *) ac_try_echo=$ac_try;; | |
2744 | esac | |
5556819a | 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2746 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2747 | ac_status=$? |
7a197a62 AK |
2748 | grep -v '^ *+' conftest.er1 >conftest.err |
2749 | rm -f conftest.er1 | |
2750 | cat conftest.err >&5 | |
5556819a | 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2752 | (exit $ac_status); } && { |
2753 | test -z "$ac_c_werror_flag" || | |
2754 | test ! -s conftest.err | |
2755 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2756 | : |
2757 | else | |
5556819a | 2758 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2759 | sed 's/^/| /' conftest.$ac_ext >&5 |
2760 | ||
2761 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2762 | CFLAGS="-g" | |
2763 | cat >conftest.$ac_ext <<_ACEOF | |
2764 | /* confdefs.h. */ | |
2765 | _ACEOF | |
2766 | cat confdefs.h >>conftest.$ac_ext | |
2767 | cat >>conftest.$ac_ext <<_ACEOF | |
2768 | /* end confdefs.h. */ | |
2769 | ||
2770 | int | |
2771 | main () | |
2772 | { | |
2773 | ||
2774 | ; | |
2775 | return 0; | |
2776 | } | |
2777 | _ACEOF | |
2778 | rm -f conftest.$ac_objext | |
2779 | if { (ac_try="$ac_compile" | |
2780 | case "(($ac_try" in | |
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2782 | *) ac_try_echo=$ac_try;; | |
2783 | esac | |
5556819a | 2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2785 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2786 | ac_status=$? |
7a197a62 AK |
2787 | grep -v '^ *+' conftest.er1 >conftest.err |
2788 | rm -f conftest.er1 | |
2789 | cat conftest.err >&5 | |
5556819a | 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2791 | (exit $ac_status); } && { |
2792 | test -z "$ac_c_werror_flag" || | |
2793 | test ! -s conftest.err | |
2794 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2795 | ac_cv_prog_cc_g=yes |
2796 | else | |
5556819a | 2797 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2798 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2799 | |
7a197a62 AK |
2800 | |
2801 | fi | |
2802 | ||
2803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2804 | fi | |
2805 | ||
2806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2807 | fi |
7a197a62 AK |
2808 | |
2809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2810 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2811 | fi |
5556819a AK |
2812 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2813 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2814 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2815 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2816 | elif test $ac_cv_prog_cc_g = yes; then |
2817 | if test "$GCC" = yes; then | |
2818 | CFLAGS="-g -O2" | |
2819 | else | |
2820 | CFLAGS="-g" | |
2821 | fi | |
2822 | else | |
2823 | if test "$GCC" = yes; then | |
2824 | CFLAGS="-O2" | |
2825 | else | |
2826 | CFLAGS= | |
2827 | fi | |
2828 | fi | |
5556819a AK |
2829 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2830 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2831 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
5556819a | 2832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2833 | else |
7a197a62 | 2834 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2835 | ac_save_CC=$CC |
2836 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2837 | /* confdefs.h. */ |
2838 | _ACEOF | |
2839 | cat confdefs.h >>conftest.$ac_ext | |
2840 | cat >>conftest.$ac_ext <<_ACEOF | |
2841 | /* end confdefs.h. */ | |
2842 | #include <stdarg.h> | |
2843 | #include <stdio.h> | |
2844 | #include <sys/types.h> | |
2845 | #include <sys/stat.h> | |
2846 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2847 | struct buf { int x; }; | |
2848 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2849 | static char *e (p, i) | |
2850 | char **p; | |
2851 | int i; | |
2852 | { | |
2853 | return p[i]; | |
2854 | } | |
2855 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2856 | { | |
2857 | char *s; | |
2858 | va_list v; | |
2859 | va_start (v,p); | |
2860 | s = g (p, va_arg (v,int)); | |
2861 | va_end (v); | |
2862 | return s; | |
2863 | } | |
8a2fc586 AK |
2864 | |
2865 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2866 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2867 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2868 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2869 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2870 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2871 | that's true only with -std. */ |
8a2fc586 AK |
2872 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2873 | ||
7a197a62 AK |
2874 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2875 | inside strings and character constants. */ | |
2876 | #define FOO(x) 'x' | |
2877 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2878 | ||
ad6254c5 AK |
2879 | int test (int i, double x); |
2880 | struct s1 {int (*f) (int a);}; | |
2881 | struct s2 {int (*f) (double a);}; | |
2882 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2883 | int argc; | |
2884 | char **argv; | |
2885 | int | |
2886 | main () | |
2887 | { | |
2888 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2889 | ; | |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
7a197a62 AK |
2893 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2894 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2895 | do |
2896 | CC="$ac_save_CC $ac_arg" | |
2897 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2898 | if { (ac_try="$ac_compile" |
2899 | case "(($ac_try" in | |
2900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2901 | *) ac_try_echo=$ac_try;; | |
2902 | esac | |
5556819a | 2903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2904 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2905 | ac_status=$? |
8a2fc586 AK |
2906 | grep -v '^ *+' conftest.er1 >conftest.err |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
5556819a | 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2910 | (exit $ac_status); } && { |
2911 | test -z "$ac_c_werror_flag" || | |
2912 | test ! -s conftest.err | |
2913 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 2914 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 2915 | else |
5556819a | 2916 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2917 | sed 's/^/| /' conftest.$ac_ext >&5 |
2918 | ||
7a197a62 | 2919 | |
ad6254c5 | 2920 | fi |
7a197a62 AK |
2921 | |
2922 | rm -f core conftest.err conftest.$ac_objext | |
2923 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2924 | done |
7a197a62 | 2925 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2926 | CC=$ac_save_CC |
2927 | ||
2928 | fi | |
7a197a62 AK |
2929 | # AC_CACHE_VAL |
2930 | case "x$ac_cv_prog_cc_c89" in | |
2931 | x) | |
5556819a AK |
2932 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2933 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 2934 | xno) |
5556819a AK |
2935 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2936 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2937 | *) |
7a197a62 | 2938 | CC="$CC $ac_cv_prog_cc_c89" |
5556819a AK |
2939 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2940 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2941 | esac |
2942 | ||
ad6254c5 | 2943 | |
ad6254c5 AK |
2944 | ac_ext=c |
2945 | ac_cpp='$CPP $CPPFLAGS' | |
2946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 2949 | |
d0191583 JM |
2950 | |
2951 | ||
2952 | ac_ext=c | |
2953 | ac_cpp='$CPP $CPPFLAGS' | |
2954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5556819a AK |
2957 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2958 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
2959 | # On Suns, sometimes $CPP names a directory. |
2960 | if test -n "$CPP" && test -d "$CPP"; then | |
2961 | CPP= | |
2962 | fi | |
2963 | if test -z "$CPP"; then | |
2964 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5556819a | 2965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2966 | else |
d0191583 JM |
2967 | # Double quotes because CPP needs to be expanded |
2968 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2969 | do | |
2970 | ac_preproc_ok=false | |
2971 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 2972 | do |
d0191583 JM |
2973 | # Use a header file that comes with gcc, so configuring glibc |
2974 | # with a fresh cross-compiler works. | |
2975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2976 | # <limits.h> exists even on freestanding compilers. | |
2977 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2978 | # not just through cpp. "Syntax error" is here to catch this case. | |
2979 | cat >conftest.$ac_ext <<_ACEOF | |
2980 | /* confdefs.h. */ | |
2981 | _ACEOF | |
2982 | cat confdefs.h >>conftest.$ac_ext | |
2983 | cat >>conftest.$ac_ext <<_ACEOF | |
2984 | /* end confdefs.h. */ | |
2985 | #ifdef __STDC__ | |
2986 | # include <limits.h> | |
2987 | #else | |
2988 | # include <assert.h> | |
2989 | #endif | |
2990 | Syntax error | |
2991 | _ACEOF | |
2992 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2993 | case "(($ac_try" in | |
2994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2995 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 2996 | esac |
5556819a | 2997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
2998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2999 | ac_status=$? | |
3000 | grep -v '^ *+' conftest.er1 >conftest.err | |
3001 | rm -f conftest.er1 | |
3002 | cat conftest.err >&5 | |
5556819a | 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3004 | (exit $ac_status); } >/dev/null && { |
3005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3006 | test ! -s conftest.err | |
3007 | }; then | |
3008 | : | |
3009 | else | |
5556819a | 3010 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3011 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3012 | |
d0191583 JM |
3013 | # Broken: fails on valid input. |
3014 | continue | |
795ca3e5 | 3015 | fi |
795ca3e5 | 3016 | |
d0191583 | 3017 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3018 | |
d0191583 JM |
3019 | # OK, works on sane cases. Now check whether nonexistent headers |
3020 | # can be detected and how. | |
3021 | cat >conftest.$ac_ext <<_ACEOF | |
3022 | /* confdefs.h. */ | |
3023 | _ACEOF | |
3024 | cat confdefs.h >>conftest.$ac_ext | |
3025 | cat >>conftest.$ac_ext <<_ACEOF | |
3026 | /* end confdefs.h. */ | |
3027 | #include <ac_nonexistent.h> | |
3028 | _ACEOF | |
3029 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3030 | case "(($ac_try" in | |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3032 | *) ac_try_echo=$ac_try;; | |
3033 | esac | |
5556819a | 3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3036 | ac_status=$? | |
3037 | grep -v '^ *+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
5556819a | 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3041 | (exit $ac_status); } >/dev/null && { |
3042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3043 | test ! -s conftest.err | |
3044 | }; then | |
3045 | # Broken: success on invalid input. | |
3046 | continue | |
3047 | else | |
5556819a | 3048 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3050 | |
d0191583 JM |
3051 | # Passes both tests. |
3052 | ac_preproc_ok=: | |
3053 | break | |
3054 | fi | |
795ca3e5 | 3055 | |
d0191583 JM |
3056 | rm -f conftest.err conftest.$ac_ext |
3057 | ||
3058 | done | |
3059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3060 | rm -f conftest.err conftest.$ac_ext | |
3061 | if $ac_preproc_ok; then | |
3062 | break | |
795ca3e5 AK |
3063 | fi |
3064 | ||
d0191583 JM |
3065 | done |
3066 | ac_cv_prog_CPP=$CPP | |
3067 | ||
3068 | fi | |
3069 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3070 | else |
d0191583 JM |
3071 | ac_cv_prog_CPP=$CPP |
3072 | fi | |
5556819a AK |
3073 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3074 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3075 | ac_preproc_ok=false |
3076 | for ac_c_preproc_warn_flag in '' yes | |
3077 | do | |
3078 | # Use a header file that comes with gcc, so configuring glibc | |
3079 | # with a fresh cross-compiler works. | |
3080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3081 | # <limits.h> exists even on freestanding compilers. | |
3082 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3083 | # not just through cpp. "Syntax error" is here to catch this case. | |
3084 | cat >conftest.$ac_ext <<_ACEOF | |
3085 | /* confdefs.h. */ | |
ad6254c5 | 3086 | _ACEOF |
d0191583 JM |
3087 | cat confdefs.h >>conftest.$ac_ext |
3088 | cat >>conftest.$ac_ext <<_ACEOF | |
3089 | /* end confdefs.h. */ | |
3090 | #ifdef __STDC__ | |
3091 | # include <limits.h> | |
3092 | #else | |
3093 | # include <assert.h> | |
3094 | #endif | |
3095 | Syntax error | |
3096 | _ACEOF | |
3097 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3098 | case "(($ac_try" in | |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3101 | esac |
5556819a | 3102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3104 | ac_status=$? | |
3105 | grep -v '^ *+' conftest.er1 >conftest.err | |
3106 | rm -f conftest.er1 | |
3107 | cat conftest.err >&5 | |
5556819a | 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3109 | (exit $ac_status); } >/dev/null && { |
3110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3111 | test ! -s conftest.err | |
3112 | }; then | |
3113 | : | |
795ca3e5 | 3114 | else |
5556819a | 3115 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3116 | sed 's/^/| /' conftest.$ac_ext >&5 |
3117 | ||
3118 | # Broken: fails on valid input. | |
3119 | continue | |
795ca3e5 AK |
3120 | fi |
3121 | ||
d0191583 JM |
3122 | rm -f conftest.err conftest.$ac_ext |
3123 | ||
3124 | # OK, works on sane cases. Now check whether nonexistent headers | |
3125 | # can be detected and how. | |
3126 | cat >conftest.$ac_ext <<_ACEOF | |
3127 | /* confdefs.h. */ | |
3128 | _ACEOF | |
3129 | cat confdefs.h >>conftest.$ac_ext | |
3130 | cat >>conftest.$ac_ext <<_ACEOF | |
3131 | /* end confdefs.h. */ | |
3132 | #include <ac_nonexistent.h> | |
3133 | _ACEOF | |
3134 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3135 | case "(($ac_try" in | |
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3137 | *) ac_try_echo=$ac_try;; | |
3138 | esac | |
5556819a | 3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3140 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3141 | ac_status=$? | |
3142 | grep -v '^ *+' conftest.er1 >conftest.err | |
3143 | rm -f conftest.er1 | |
3144 | cat conftest.err >&5 | |
5556819a | 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3146 | (exit $ac_status); } >/dev/null && { |
3147 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3148 | test ! -s conftest.err | |
3149 | }; then | |
3150 | # Broken: success on invalid input. | |
3151 | continue | |
795ca3e5 | 3152 | else |
5556819a | 3153 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3155 | |
d0191583 JM |
3156 | # Passes both tests. |
3157 | ac_preproc_ok=: | |
3158 | break | |
795ca3e5 | 3159 | fi |
d0191583 JM |
3160 | |
3161 | rm -f conftest.err conftest.$ac_ext | |
3162 | ||
3163 | done | |
3164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3165 | rm -f conftest.err conftest.$ac_ext | |
3166 | if $ac_preproc_ok; then | |
3167 | : | |
8106cdd5 | 3168 | else |
5556819a | 3169 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3170 | See \`config.log' for more details." >&5 |
5556819a | 3171 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3172 | See \`config.log' for more details." >&2;} |
3173 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3174 | fi |
3175 | ||
d0191583 JM |
3176 | ac_ext=c |
3177 | ac_cpp='$CPP $CPPFLAGS' | |
3178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3181 | ||
7a197a62 | 3182 | |
5556819a AK |
3183 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3184 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3185 | if test "${ac_cv_path_GREP+set}" = set; then | |
3186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3187 | else | |
3188 | # Extract the first word of "grep ggrep" to use in msg output | |
3189 | if test -z "$GREP"; then | |
3190 | set dummy grep ggrep; ac_prog_name=$2 | |
d0191583 | 3191 | if test "${ac_cv_path_GREP+set}" = set; then |
5556819a | 3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3193 | else |
d0191583 | 3194 | ac_path_GREP_found=false |
5556819a AK |
3195 | # Loop through the user's path and test for each of PROGNAME-LIST |
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3197 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3198 | do |
3199 | IFS=$as_save_IFS | |
3200 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3201 | for ac_prog in grep ggrep; do |
5556819a AK |
3202 | for ac_exec_ext in '' $ac_executable_extensions; do |
3203 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3204 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3205 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3206 | # Check for GNU $ac_path_GREP |
3207 | case `"$ac_path_GREP" --version 2>&1` in | |
3208 | *GNU*) | |
3209 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3210 | *) | |
3211 | ac_count=0 | |
5556819a | 3212 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3213 | while : |
3214 | do | |
3215 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3216 | mv "conftest.tmp" "conftest.in" | |
3217 | cp "conftest.in" "conftest.nl" | |
5556819a | 3218 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3219 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3220 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3221 | ac_count=`expr $ac_count + 1` | |
3222 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3223 | # Best one so far, save it but keep looking for a better one | |
3224 | ac_cv_path_GREP="$ac_path_GREP" | |
3225 | ac_path_GREP_max=$ac_count | |
3226 | fi | |
3227 | # 10*(2^10) chars as input seems more than enough | |
3228 | test $ac_count -gt 10 && break | |
3229 | done | |
3230 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3231 | esac | |
3232 | ||
5556819a AK |
3233 | |
3234 | $ac_path_GREP_found && break 3 | |
d0191583 | 3235 | done |
ad6254c5 | 3236 | done |
5556819a AK |
3237 | |
3238 | done | |
7a197a62 | 3239 | IFS=$as_save_IFS |
5556819a AK |
3240 | |
3241 | ||
3242 | fi | |
3243 | ||
3244 | GREP="$ac_cv_path_GREP" | |
3245 | if test -z "$GREP"; then | |
3246 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3247 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3248 | { (exit 1); exit 1; }; } |
5556819a AK |
3249 | fi |
3250 | ||
80992638 | 3251 | else |
d0191583 | 3252 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3253 | fi |
8106cdd5 | 3254 | |
5556819a | 3255 | |
80992638 | 3256 | fi |
5556819a AK |
3257 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3258 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3259 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3260 | |
d0191583 | 3261 | |
5556819a AK |
3262 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3263 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3264 | if test "${ac_cv_path_EGREP+set}" = set; then |
5556819a | 3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3266 | else |
d0191583 JM |
3267 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3268 | then ac_cv_path_EGREP="$GREP -E" | |
3269 | else | |
5556819a AK |
3270 | # Extract the first word of "egrep" to use in msg output |
3271 | if test -z "$EGREP"; then | |
3272 | set dummy egrep; ac_prog_name=$2 | |
3273 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3275 | else | |
d0191583 | 3276 | ac_path_EGREP_found=false |
5556819a AK |
3277 | # Loop through the user's path and test for each of PROGNAME-LIST |
3278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3279 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3280 | do |
3281 | IFS=$as_save_IFS | |
3282 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3283 | for ac_prog in egrep; do |
5556819a AK |
3284 | for ac_exec_ext in '' $ac_executable_extensions; do |
3285 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3286 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3287 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3288 | # Check for GNU $ac_path_EGREP |
3289 | case `"$ac_path_EGREP" --version 2>&1` in | |
3290 | *GNU*) | |
3291 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3292 | *) | |
3293 | ac_count=0 | |
5556819a | 3294 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3295 | while : |
3296 | do | |
3297 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3298 | mv "conftest.tmp" "conftest.in" | |
3299 | cp "conftest.in" "conftest.nl" | |
5556819a | 3300 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3301 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3302 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3303 | ac_count=`expr $ac_count + 1` | |
3304 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3305 | # Best one so far, save it but keep looking for a better one | |
3306 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3307 | ac_path_EGREP_max=$ac_count | |
3308 | fi | |
3309 | # 10*(2^10) chars as input seems more than enough | |
3310 | test $ac_count -gt 10 && break | |
3311 | done | |
3312 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3313 | esac |
8a2fc586 | 3314 | |
5556819a AK |
3315 | |
3316 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3317 | done |
8a2fc586 | 3318 | done |
5556819a AK |
3319 | |
3320 | done | |
7a197a62 | 3321 | IFS=$as_save_IFS |
5556819a AK |
3322 | |
3323 | ||
3324 | fi | |
3325 | ||
3326 | EGREP="$ac_cv_path_EGREP" | |
3327 | if test -z "$EGREP"; then | |
3328 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3329 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3330 | { (exit 1); exit 1; }; } |
5556819a AK |
3331 | fi |
3332 | ||
d0191583 JM |
3333 | else |
3334 | ac_cv_path_EGREP=$EGREP | |
3335 | fi | |
ad6254c5 | 3336 | |
5556819a | 3337 | |
d0191583 JM |
3338 | fi |
3339 | fi | |
5556819a AK |
3340 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3341 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3342 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3343 | |
3344 | ||
d0191583 | 3345 | if test $ac_cv_c_compiler_gnu = yes; then |
5556819a AK |
3346 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3347 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3348 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
5556819a | 3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3350 | else |
d0191583 | 3351 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3352 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3353 | /* confdefs.h. */ |
3354 | _ACEOF | |
3355 | cat confdefs.h >>conftest.$ac_ext | |
3356 | cat >>conftest.$ac_ext <<_ACEOF | |
3357 | /* end confdefs.h. */ | |
d0191583 JM |
3358 | #include <sgtty.h> |
3359 | Autoconf TIOCGETP | |
ad6254c5 | 3360 | _ACEOF |
d0191583 JM |
3361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3362 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3363 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3364 | else |
d0191583 | 3365 | ac_cv_prog_gcc_traditional=no |
80992638 | 3366 | fi |
d0191583 | 3367 | rm -f conftest* |
ad6254c5 | 3368 | |
8106cdd5 | 3369 | |
d0191583 JM |
3370 | if test $ac_cv_prog_gcc_traditional = no; then |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3372 | /* confdefs.h. */ |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
d0191583 JM |
3377 | #include <termio.h> |
3378 | Autoconf TCGETA | |
ad6254c5 | 3379 | _ACEOF |
d0191583 JM |
3380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3381 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3382 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3383 | fi |
d0191583 | 3384 | rm -f conftest* |
795ca3e5 | 3385 | |
d0191583 | 3386 | fi |
795ca3e5 | 3387 | fi |
5556819a AK |
3388 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3389 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3390 | if test $ac_cv_prog_gcc_traditional = yes; then |
3391 | CC="$CC -traditional" | |
3392 | fi | |
795ca3e5 AK |
3393 | fi |
3394 | ||
d0191583 JM |
3395 | # Find a good install program. We prefer a C program (faster), |
3396 | # so one script is as good as another. But avoid the broken or | |
3397 | # incompatible versions: | |
3398 | # SysV /etc/install, /usr/sbin/install | |
3399 | # SunOS /usr/etc/install | |
3400 | # IRIX /sbin/install | |
3401 | # AIX /bin/install | |
3402 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3403 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3404 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3405 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3406 | # OS/2's system install, which has a completely different semantic | |
3407 | # ./install, which can be erroneously created by make from ./install.sh. | |
5556819a AK |
3408 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3409 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3410 | if test -z "$INSTALL"; then |
3411 | if test "${ac_cv_path_install+set}" = set; then | |
5556819a | 3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3413 | else |
d0191583 JM |
3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3415 | for as_dir in $PATH | |
3416 | do | |
3417 | IFS=$as_save_IFS | |
3418 | test -z "$as_dir" && as_dir=. | |
3419 | # Account for people who put trailing slashes in PATH elements. | |
3420 | case $as_dir/ in | |
3421 | ./ | .// | /cC/* | \ | |
3422 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3423 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3424 | /usr/ucb/* ) ;; | |
3425 | *) | |
3426 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3427 | # Don't use installbsd from OSF since it installs stuff as root | |
3428 | # by default. | |
3429 | for ac_prog in ginstall scoinst install; do | |
3430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3431 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3432 | if test $ac_prog = install && | |
3433 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3434 | # AIX install. It has an incompatible calling convention. | |
3435 | : | |
3436 | elif test $ac_prog = install && | |
3437 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3438 | # program-specific install script used by HP pwplus--don't use. | |
3439 | : | |
3440 | else | |
5556819a AK |
3441 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3442 | break 3 | |
d0191583 JM |
3443 | fi |
3444 | fi | |
3445 | done | |
3446 | done | |
3447 | ;; | |
3448 | esac | |
3449 | done | |
3450 | IFS=$as_save_IFS | |
80992638 | 3451 | |
d0191583 JM |
3452 | |
3453 | fi | |
3454 | if test "${ac_cv_path_install+set}" = set; then | |
3455 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3456 | else |
d0191583 JM |
3457 | # As a last resort, use the slow shell script. Don't cache a |
3458 | # value for INSTALL within a source directory, because that will | |
3459 | # break other packages using the cache if that directory is | |
3460 | # removed, or if the value is a relative name. | |
3461 | INSTALL=$ac_install_sh | |
7a197a62 | 3462 | fi |
d0191583 | 3463 | fi |
5556819a AK |
3464 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3465 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3466 | |
d0191583 JM |
3467 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3468 | # It thinks the first close brace ends the variable substitution. | |
3469 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3470 | |
d0191583 | 3471 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3472 | |
d0191583 JM |
3473 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3474 | ||
5556819a AK |
3475 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3476 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3477 | LN_S=$as_ln_s |
3478 | if test "$LN_S" = "ln -s"; then | |
5556819a AK |
3479 | { echo "$as_me:$LINENO: result: yes" >&5 |
3480 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3481 | else |
5556819a AK |
3482 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3483 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3484 | fi |
d0191583 | 3485 | |
5556819a AK |
3486 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3487 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3488 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3489 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3491 | else |
d0191583 JM |
3492 | cat >conftest.make <<\_ACEOF |
3493 | SHELL = /bin/sh | |
3494 | all: | |
3495 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3496 | _ACEOF | |
3497 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3498 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3499 | *@@@%%%=?*=@@@%%%*) | |
3500 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3501 | *) | |
3502 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3503 | esac | |
3504 | rm -f conftest.make | |
ad6254c5 | 3505 | fi |
d0191583 | 3506 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
5556819a AK |
3507 | { echo "$as_me:$LINENO: result: yes" >&5 |
3508 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3509 | SET_MAKE= |
3510 | else | |
5556819a AK |
3511 | { echo "$as_me:$LINENO: result: no" >&5 |
3512 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3513 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3514 | fi |
8106cdd5 | 3515 | |
5556819a AK |
3516 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3517 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
3518 | if test -z "$MKDIR_P"; then | |
3519 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3521 | else | |
3522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3523 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3524 | do | |
3525 | IFS=$as_save_IFS | |
3526 | test -z "$as_dir" && as_dir=. | |
3527 | for ac_prog in mkdir gmkdir; do | |
3528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3529 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3530 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3531 | 'mkdir (GNU coreutils) '* | \ | |
3532 | 'mkdir (coreutils) '* | \ | |
3533 | 'mkdir (fileutils) '4.1*) | |
3534 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3535 | break 3;; | |
3536 | esac | |
3537 | done | |
3538 | done | |
3539 | done | |
3540 | IFS=$as_save_IFS | |
3541 | ||
3542 | fi | |
3543 | ||
3544 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3545 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3546 | else | |
3547 | # As a last resort, use the slow shell script. Don't cache a | |
3548 | # value for MKDIR_P within a source directory, because that will | |
3549 | # break other packages using the cache if that directory is | |
3550 | # removed, or if the value is a relative name. | |
3551 | test -d ./--version && rmdir ./--version | |
3552 | MKDIR_P="$ac_install_sh -d" | |
3553 | fi | |
3554 | fi | |
3555 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
3556 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
3557 | ||
d0191583 JM |
3558 | if test -n "$ac_tool_prefix"; then |
3559 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3560 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5556819a AK |
3561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3563 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5556819a | 3564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3565 | else |
3566 | if test -n "$RANLIB"; then | |
3567 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3568 | else | |
3569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3570 | for as_dir in $PATH | |
3571 | do | |
3572 | IFS=$as_save_IFS | |
3573 | test -z "$as_dir" && as_dir=. | |
3574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3576 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5556819a | 3577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3578 | break 2 |
3579 | fi | |
3580 | done | |
3581 | done | |
3582 | IFS=$as_save_IFS | |
8106cdd5 | 3583 | |
795ca3e5 | 3584 | fi |
d0191583 JM |
3585 | fi |
3586 | RANLIB=$ac_cv_prog_RANLIB | |
3587 | if test -n "$RANLIB"; then | |
5556819a AK |
3588 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3589 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3590 | else |
5556819a AK |
3591 | { echo "$as_me:$LINENO: result: no" >&5 |
3592 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3593 | fi |
3594 | ||
8106cdd5 | 3595 | |
ad6254c5 | 3596 | fi |
d0191583 JM |
3597 | if test -z "$ac_cv_prog_RANLIB"; then |
3598 | ac_ct_RANLIB=$RANLIB | |
3599 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3600 | set dummy ranlib; ac_word=$2 | |
5556819a AK |
3601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3603 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5556819a | 3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3605 | else |
d0191583 JM |
3606 | if test -n "$ac_ct_RANLIB"; then |
3607 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3608 | else | |
3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3610 | for as_dir in $PATH | |
8106cdd5 | 3611 | do |
d0191583 JM |
3612 | IFS=$as_save_IFS |
3613 | test -z "$as_dir" && as_dir=. | |
3614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3616 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5556819a | 3617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3618 | break 2 |
3619 | fi | |
3620 | done | |
3621 | done | |
3622 | IFS=$as_save_IFS | |
3623 | ||
3624 | fi | |
3625 | fi | |
3626 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3627 | if test -n "$ac_ct_RANLIB"; then | |
5556819a AK |
3628 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3629 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3630 | else |
5556819a AK |
3631 | { echo "$as_me:$LINENO: result: no" >&5 |
3632 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3633 | fi |
ad6254c5 | 3634 | |
d0191583 JM |
3635 | if test "x$ac_ct_RANLIB" = x; then |
3636 | RANLIB=":" | |
3637 | else | |
3638 | case $cross_compiling:$ac_tool_warned in | |
3639 | yes:) | |
5556819a | 3640 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3641 | whose name does not start with the host triplet. If you think this |
3642 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 3643 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3644 | whose name does not start with the host triplet. If you think this |
3645 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3646 | ac_tool_warned=yes ;; | |
3647 | esac | |
3648 | RANLIB=$ac_ct_RANLIB | |
3649 | fi | |
3650 | else | |
3651 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3652 | fi |
7a197a62 | 3653 | |
d0191583 JM |
3654 | # Extract the first word of "cflow", so it can be a program name with args. |
3655 | set dummy cflow; ac_word=$2 | |
5556819a AK |
3656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3658 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
5556819a | 3659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3660 | else |
3661 | case $CFLOW_CMD in | |
3662 | [\\/]* | ?:[\\/]*) | |
3663 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3664 | ;; | |
3665 | *) | |
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3667 | for as_dir in $PATH | |
3668 | do | |
3669 | IFS=$as_save_IFS | |
3670 | test -z "$as_dir" && as_dir=. | |
3671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3673 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 3674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3675 | break 2 |
3676 | fi | |
3677 | done | |
3678 | done | |
3679 | IFS=$as_save_IFS | |
ad6254c5 | 3680 | |
d0191583 | 3681 | ;; |
7a197a62 | 3682 | esac |
d0191583 JM |
3683 | fi |
3684 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3685 | if test -n "$CFLOW_CMD"; then | |
5556819a AK |
3686 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3687 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3688 | else |
5556819a AK |
3689 | { echo "$as_me:$LINENO: result: no" >&5 |
3690 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3691 | fi |
7a197a62 | 3692 | |
ad6254c5 | 3693 | |
d0191583 JM |
3694 | # Extract the first word of "cscope", so it can be a program name with args. |
3695 | set dummy cscope; ac_word=$2 | |
5556819a AK |
3696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3698 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
5556819a | 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3700 | else |
3701 | case $CSCOPE_CMD in | |
3702 | [\\/]* | ?:[\\/]*) | |
3703 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3704 | ;; | |
3705 | *) | |
3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3707 | for as_dir in $PATH | |
3708 | do | |
3709 | IFS=$as_save_IFS | |
3710 | test -z "$as_dir" && as_dir=. | |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3713 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 3714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3715 | break 2 |
3716 | fi | |
795ca3e5 | 3717 | done |
d0191583 JM |
3718 | done |
3719 | IFS=$as_save_IFS | |
795ca3e5 | 3720 | |
d0191583 JM |
3721 | ;; |
3722 | esac | |
ad6254c5 | 3723 | fi |
d0191583 JM |
3724 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3725 | if test -n "$CSCOPE_CMD"; then | |
5556819a AK |
3726 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3727 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3728 | else |
5556819a AK |
3729 | { echo "$as_me:$LINENO: result: no" >&5 |
3730 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3731 | fi |
ad6254c5 | 3732 | |
7a197a62 | 3733 | |
ad6254c5 | 3734 | |
d0191583 JM |
3735 | ################################################################################ |
3736 | ||
3737 | ||
3738 | ||
3739 | ||
3740 | ||
3741 | ac_header_dirent=no | |
3742 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
5556819a AK |
3743 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3744 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3745 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 3747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3748 | else |
ad6254c5 | 3749 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3750 | /* confdefs.h. */ |
3751 | _ACEOF | |
3752 | cat confdefs.h >>conftest.$ac_ext | |
3753 | cat >>conftest.$ac_ext <<_ACEOF | |
3754 | /* end confdefs.h. */ | |
d0191583 JM |
3755 | #include <sys/types.h> |
3756 | #include <$ac_hdr> | |
3757 | ||
3758 | int | |
3759 | main () | |
3760 | { | |
3761 | if ((DIR *) 0) | |
3762 | return 0; | |
3763 | ; | |
3764 | return 0; | |
3765 | } | |
ad6254c5 | 3766 | _ACEOF |
d0191583 JM |
3767 | rm -f conftest.$ac_objext |
3768 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3769 | case "(($ac_try" in |
3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 | *) ac_try_echo=$ac_try;; | |
3772 | esac | |
5556819a | 3773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3774 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3775 | ac_status=$? |
3776 | grep -v '^ *+' conftest.er1 >conftest.err | |
3777 | rm -f conftest.er1 | |
3778 | cat conftest.err >&5 | |
5556819a | 3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3780 | (exit $ac_status); } && { |
3781 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3782 | test ! -s conftest.err |
d0191583 JM |
3783 | } && test -s conftest.$ac_objext; then |
3784 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3785 | else |
5556819a | 3786 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3788 | |
d0191583 | 3789 | eval "$as_ac_Header=no" |
795ca3e5 | 3790 | fi |
7a197a62 | 3791 | |
d0191583 | 3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3793 | fi |
5556819a AK |
3794 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3796 | echo "${ECHO_T}$ac_res" >&6; } | |
3797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3798 | cat >>confdefs.h <<_ACEOF |
5556819a | 3799 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3800 | _ACEOF |
795ca3e5 | 3801 | |
d0191583 JM |
3802 | ac_header_dirent=$ac_hdr; break |
3803 | fi | |
ad6254c5 | 3804 | |
d0191583 JM |
3805 | done |
3806 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3807 | if test $ac_header_dirent = dirent.h; then | |
5556819a AK |
3808 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3809 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3810 | if test "${ac_cv_search_opendir+set}" = set; then |
5556819a | 3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3812 | else |
d0191583 JM |
3813 | ac_func_search_save_LIBS=$LIBS |
3814 | cat >conftest.$ac_ext <<_ACEOF | |
3815 | /* confdefs.h. */ | |
3816 | _ACEOF | |
3817 | cat confdefs.h >>conftest.$ac_ext | |
3818 | cat >>conftest.$ac_ext <<_ACEOF | |
3819 | /* end confdefs.h. */ | |
ad6254c5 | 3820 | |
d0191583 JM |
3821 | /* Override any GCC internal prototype to avoid an error. |
3822 | Use char because int might match the return type of a GCC | |
3823 | builtin and then its argument prototype would still apply. */ | |
3824 | #ifdef __cplusplus | |
3825 | extern "C" | |
3826 | #endif | |
3827 | char opendir (); | |
3828 | int | |
3829 | main () | |
3830 | { | |
3831 | return opendir (); | |
3832 | ; | |
3833 | return 0; | |
3834 | } | |
3835 | _ACEOF | |
3836 | for ac_lib in '' dir; do | |
3837 | if test -z "$ac_lib"; then | |
3838 | ac_res="none required" | |
3839 | else | |
3840 | ac_res=-l$ac_lib | |
3841 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3842 | fi | |
3843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3844 | if { (ac_try="$ac_link" | |
3845 | case "(($ac_try" in | |
3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3847 | *) ac_try_echo=$ac_try;; | |
3848 | esac | |
5556819a | 3849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3850 | (eval "$ac_link") 2>conftest.er1 |
3851 | ac_status=$? | |
3852 | grep -v '^ *+' conftest.er1 >conftest.err | |
3853 | rm -f conftest.er1 | |
3854 | cat conftest.err >&5 | |
5556819a | 3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3856 | (exit $ac_status); } && { |
3857 | test -z "$ac_c_werror_flag" || | |
3858 | test ! -s conftest.err | |
5556819a AK |
3859 | } && test -s conftest$ac_exeext && |
3860 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3861 | ac_cv_search_opendir=$ac_res |
3862 | else | |
5556819a | 3863 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3864 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3865 | |
ad6254c5 | 3866 | |
795ca3e5 | 3867 | fi |
ad6254c5 | 3868 | |
d0191583 JM |
3869 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3870 | conftest$ac_exeext | |
3871 | if test "${ac_cv_search_opendir+set}" = set; then | |
3872 | break | |
7a197a62 | 3873 | fi |
d0191583 JM |
3874 | done |
3875 | if test "${ac_cv_search_opendir+set}" = set; then | |
3876 | : | |
7a197a62 | 3877 | else |
d0191583 | 3878 | ac_cv_search_opendir=no |
7a197a62 | 3879 | fi |
d0191583 JM |
3880 | rm conftest.$ac_ext |
3881 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3882 | fi |
5556819a AK |
3883 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3884 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3885 | ac_res=$ac_cv_search_opendir |
3886 | if test "$ac_res" != no; then | |
3887 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3888 | |
d0191583 | 3889 | fi |
7a197a62 | 3890 | |
7a197a62 | 3891 | else |
5556819a AK |
3892 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3893 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3894 | if test "${ac_cv_search_opendir+set}" = set; then |
5556819a | 3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3896 | else |
d0191583 JM |
3897 | ac_func_search_save_LIBS=$LIBS |
3898 | cat >conftest.$ac_ext <<_ACEOF | |
3899 | /* confdefs.h. */ | |
3900 | _ACEOF | |
3901 | cat confdefs.h >>conftest.$ac_ext | |
3902 | cat >>conftest.$ac_ext <<_ACEOF | |
3903 | /* end confdefs.h. */ | |
7a197a62 | 3904 | |
d0191583 JM |
3905 | /* Override any GCC internal prototype to avoid an error. |
3906 | Use char because int might match the return type of a GCC | |
3907 | builtin and then its argument prototype would still apply. */ | |
3908 | #ifdef __cplusplus | |
3909 | extern "C" | |
3910 | #endif | |
3911 | char opendir (); | |
3912 | int | |
3913 | main () | |
3914 | { | |
3915 | return opendir (); | |
3916 | ; | |
3917 | return 0; | |
3918 | } | |
3919 | _ACEOF | |
3920 | for ac_lib in '' x; do | |
3921 | if test -z "$ac_lib"; then | |
3922 | ac_res="none required" | |
3923 | else | |
3924 | ac_res=-l$ac_lib | |
3925 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3926 | fi | |
3927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3928 | if { (ac_try="$ac_link" | |
3929 | case "(($ac_try" in | |
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3931 | *) ac_try_echo=$ac_try;; | |
3932 | esac | |
5556819a | 3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3934 | (eval "$ac_link") 2>conftest.er1 |
3935 | ac_status=$? | |
3936 | grep -v '^ *+' conftest.er1 >conftest.err | |
3937 | rm -f conftest.er1 | |
3938 | cat conftest.err >&5 | |
5556819a | 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3940 | (exit $ac_status); } && { |
3941 | test -z "$ac_c_werror_flag" || | |
3942 | test ! -s conftest.err | |
5556819a AK |
3943 | } && test -s conftest$ac_exeext && |
3944 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3945 | ac_cv_search_opendir=$ac_res |
3946 | else | |
5556819a | 3947 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3948 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
3949 | |
3950 | ||
3951 | fi | |
3952 | ||
d0191583 JM |
3953 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3954 | conftest$ac_exeext | |
3955 | if test "${ac_cv_search_opendir+set}" = set; then | |
3956 | break | |
7a197a62 | 3957 | fi |
d0191583 JM |
3958 | done |
3959 | if test "${ac_cv_search_opendir+set}" = set; then | |
3960 | : | |
7a197a62 | 3961 | else |
d0191583 | 3962 | ac_cv_search_opendir=no |
7a197a62 | 3963 | fi |
d0191583 JM |
3964 | rm conftest.$ac_ext |
3965 | LIBS=$ac_func_search_save_LIBS | |
3966 | fi | |
5556819a AK |
3967 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3968 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3969 | ac_res=$ac_cv_search_opendir |
3970 | if test "$ac_res" != no; then | |
3971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3972 | |
7a197a62 | 3973 | fi |
7a197a62 | 3974 | |
d0191583 | 3975 | fi |
7a197a62 | 3976 | |
5556819a AK |
3977 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3978 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 3979 | if test "${ac_cv_header_stdc+set}" = set; then |
5556819a | 3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3981 | else |
3982 | cat >conftest.$ac_ext <<_ACEOF | |
3983 | /* confdefs.h. */ | |
3984 | _ACEOF | |
3985 | cat confdefs.h >>conftest.$ac_ext | |
3986 | cat >>conftest.$ac_ext <<_ACEOF | |
3987 | /* end confdefs.h. */ | |
3988 | #include <stdlib.h> | |
3989 | #include <stdarg.h> | |
3990 | #include <string.h> | |
3991 | #include <float.h> | |
3992 | ||
3993 | int | |
3994 | main () | |
3995 | { | |
3996 | ||
3997 | ; | |
3998 | return 0; | |
3999 | } | |
4000 | _ACEOF | |
4001 | rm -f conftest.$ac_objext | |
4002 | if { (ac_try="$ac_compile" | |
4003 | case "(($ac_try" in | |
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | *) ac_try_echo=$ac_try;; | |
4006 | esac | |
5556819a | 4007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4008 | (eval "$ac_compile") 2>conftest.er1 |
4009 | ac_status=$? | |
4010 | grep -v '^ *+' conftest.er1 >conftest.err | |
4011 | rm -f conftest.er1 | |
4012 | cat conftest.err >&5 | |
5556819a | 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4014 | (exit $ac_status); } && { |
4015 | test -z "$ac_c_werror_flag" || | |
4016 | test ! -s conftest.err | |
4017 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4018 | ac_cv_header_stdc=yes |
4019 | else | |
5556819a | 4020 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
4022 | ||
4023 | ac_cv_header_stdc=no | |
4024 | fi | |
4025 | ||
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4027 | ||
4028 | if test $ac_cv_header_stdc = yes; then | |
4029 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
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 <string.h> | |
8106cdd5 | 4037 | |
ad6254c5 AK |
4038 | _ACEOF |
4039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4040 | $EGREP "memchr" >/dev/null 2>&1; then | |
4041 | : | |
4042 | else | |
4043 | ac_cv_header_stdc=no | |
80992638 | 4044 | fi |
ad6254c5 | 4045 | rm -f conftest* |
795ca3e5 AK |
4046 | |
4047 | fi | |
4048 | ||
ad6254c5 AK |
4049 | if test $ac_cv_header_stdc = yes; then |
4050 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4051 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4052 | /* confdefs.h. */ |
4053 | _ACEOF | |
4054 | cat confdefs.h >>conftest.$ac_ext | |
4055 | cat >>conftest.$ac_ext <<_ACEOF | |
4056 | /* end confdefs.h. */ | |
80992638 | 4057 | #include <stdlib.h> |
ad6254c5 AK |
4058 | |
4059 | _ACEOF | |
80992638 | 4060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4061 | $EGREP "free" >/dev/null 2>&1; then |
4062 | : | |
795ca3e5 | 4063 | else |
ad6254c5 | 4064 | ac_cv_header_stdc=no |
795ca3e5 | 4065 | fi |
80992638 | 4066 | rm -f conftest* |
8106cdd5 | 4067 | |
795ca3e5 AK |
4068 | fi |
4069 | ||
ad6254c5 AK |
4070 | if test $ac_cv_header_stdc = yes; then |
4071 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4072 | if test "$cross_compiling" = yes; then | |
4073 | : | |
795ca3e5 | 4074 | else |
ad6254c5 | 4075 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4076 | /* confdefs.h. */ |
4077 | _ACEOF | |
4078 | cat confdefs.h >>conftest.$ac_ext | |
4079 | cat >>conftest.$ac_ext <<_ACEOF | |
4080 | /* end confdefs.h. */ | |
4081 | #include <ctype.h> | |
7a197a62 | 4082 | #include <stdlib.h> |
ad6254c5 AK |
4083 | #if ((' ' & 0x0FF) == 0x020) |
4084 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4085 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4086 | #else | |
4087 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4088 | (('a' <= (c) && (c) <= 'i') \ |
4089 | || ('j' <= (c) && (c) <= 'r') \ | |
4090 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4091 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4092 | #endif |
ad6254c5 AK |
4093 | |
4094 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4095 | int | |
4096 | main () | |
4097 | { | |
4098 | int i; | |
4099 | for (i = 0; i < 256; i++) | |
4100 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4101 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4102 | return 2; |
4103 | return 0; | |
ad6254c5 AK |
4104 | } |
4105 | _ACEOF | |
4106 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4107 | if { (ac_try="$ac_link" |
4108 | case "(($ac_try" in | |
4109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4110 | *) ac_try_echo=$ac_try;; | |
4111 | esac | |
5556819a | 4112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4113 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4114 | ac_status=$? |
5556819a | 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4117 | { (case "(($ac_try" in |
4118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4119 | *) ac_try_echo=$ac_try;; | |
4120 | esac | |
5556819a | 4121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4122 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4123 | ac_status=$? |
5556819a | 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4125 | (exit $ac_status); }; }; then |
4126 | : | |
795ca3e5 | 4127 | else |
5556819a AK |
4128 | echo "$as_me: program exited with status $ac_status" >&5 |
4129 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4131 | |
ad6254c5 AK |
4132 | ( exit $ac_status ) |
4133 | ac_cv_header_stdc=no | |
80992638 | 4134 | fi |
7a197a62 | 4135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4136 | fi |
7a197a62 AK |
4137 | |
4138 | ||
ad6254c5 AK |
4139 | fi |
4140 | fi | |
5556819a AK |
4141 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4142 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4143 | if test $ac_cv_header_stdc = yes; then |
4144 | ||
4145 | cat >>confdefs.h <<\_ACEOF | |
4146 | #define STDC_HEADERS 1 | |
4147 | _ACEOF | |
795ca3e5 AK |
4148 | |
4149 | fi | |
4150 | ||
5556819a AK |
4151 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4152 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4153 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
5556819a | 4154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4155 | else |
ad6254c5 | 4156 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4157 | /* confdefs.h. */ |
4158 | _ACEOF | |
4159 | cat confdefs.h >>conftest.$ac_ext | |
4160 | cat >>conftest.$ac_ext <<_ACEOF | |
4161 | /* end confdefs.h. */ | |
80992638 | 4162 | #include <sys/types.h> |
ad6254c5 AK |
4163 | #include <sys/wait.h> |
4164 | #ifndef WEXITSTATUS | |
7a197a62 | 4165 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4166 | #endif |
4167 | #ifndef WIFEXITED | |
4168 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4169 | #endif | |
4170 | ||
4171 | int | |
4172 | main () | |
4173 | { | |
4174 | int s; | |
4175 | wait (&s); | |
4176 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4177 | ; | |
4178 | return 0; | |
4179 | } | |
4180 | _ACEOF | |
4181 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4182 | if { (ac_try="$ac_compile" |
4183 | case "(($ac_try" in | |
4184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4185 | *) ac_try_echo=$ac_try;; | |
4186 | esac | |
5556819a | 4187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4188 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4189 | ac_status=$? |
8a2fc586 AK |
4190 | grep -v '^ *+' conftest.er1 >conftest.err |
4191 | rm -f conftest.er1 | |
4192 | cat conftest.err >&5 | |
5556819a | 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4194 | (exit $ac_status); } && { |
4195 | test -z "$ac_c_werror_flag" || | |
4196 | test ! -s conftest.err | |
4197 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4198 | ac_cv_header_sys_wait_h=yes |
4199 | else | |
5556819a | 4200 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4201 | sed 's/^/| /' conftest.$ac_ext >&5 |
4202 | ||
7a197a62 | 4203 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4204 | fi |
7a197a62 AK |
4205 | |
4206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4207 | fi |
5556819a AK |
4208 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4209 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4210 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4211 | |
ad6254c5 AK |
4212 | cat >>confdefs.h <<\_ACEOF |
4213 | #define HAVE_SYS_WAIT_H 1 | |
4214 | _ACEOF | |
795ca3e5 AK |
4215 | |
4216 | fi | |
4217 | ||
5556819a AK |
4218 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4219 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4220 | if test "${ac_cv_header_time+set}" = set; then |
5556819a | 4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4222 | else |
ad6254c5 | 4223 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4224 | /* confdefs.h. */ |
4225 | _ACEOF | |
4226 | cat confdefs.h >>conftest.$ac_ext | |
4227 | cat >>conftest.$ac_ext <<_ACEOF | |
4228 | /* end confdefs.h. */ | |
795ca3e5 AK |
4229 | #include <sys/types.h> |
4230 | #include <sys/time.h> | |
4231 | #include <time.h> | |
ad6254c5 AK |
4232 | |
4233 | int | |
4234 | main () | |
4235 | { | |
4236 | if ((struct tm *) 0) | |
4237 | return 0; | |
4238 | ; | |
4239 | return 0; | |
4240 | } | |
4241 | _ACEOF | |
4242 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4243 | if { (ac_try="$ac_compile" |
4244 | case "(($ac_try" in | |
4245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4246 | *) ac_try_echo=$ac_try;; | |
4247 | esac | |
5556819a | 4248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4249 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4250 | ac_status=$? |
8a2fc586 AK |
4251 | grep -v '^ *+' conftest.er1 >conftest.err |
4252 | rm -f conftest.er1 | |
4253 | cat conftest.err >&5 | |
5556819a | 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4255 | (exit $ac_status); } && { |
4256 | test -z "$ac_c_werror_flag" || | |
4257 | test ! -s conftest.err | |
4258 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4259 | ac_cv_header_time=yes |
4260 | else | |
5556819a | 4261 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4262 | sed 's/^/| /' conftest.$ac_ext >&5 |
4263 | ||
7a197a62 | 4264 | ac_cv_header_time=no |
795ca3e5 | 4265 | fi |
7a197a62 AK |
4266 | |
4267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4268 | fi |
5556819a AK |
4269 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4270 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4271 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4272 | |
4273 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4274 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4275 | _ACEOF |
b896caa1 | 4276 | |
8106cdd5 | 4277 | fi |
b896caa1 | 4278 | |
b896caa1 | 4279 | |
d0191583 JM |
4280 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4291 | inttypes.h stdint.h unistd.h | |
4292 | do | |
5556819a AK |
4293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4294 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4298 | else |
4299 | cat >conftest.$ac_ext <<_ACEOF | |
4300 | /* confdefs.h. */ | |
4301 | _ACEOF | |
4302 | cat confdefs.h >>conftest.$ac_ext | |
4303 | cat >>conftest.$ac_ext <<_ACEOF | |
4304 | /* end confdefs.h. */ | |
4305 | $ac_includes_default | |
4306 | ||
4307 | #include <$ac_header> | |
4308 | _ACEOF | |
4309 | rm -f conftest.$ac_objext | |
4310 | if { (ac_try="$ac_compile" | |
4311 | case "(($ac_try" in | |
4312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4313 | *) ac_try_echo=$ac_try;; | |
4314 | esac | |
5556819a | 4315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4316 | (eval "$ac_compile") 2>conftest.er1 |
4317 | ac_status=$? | |
4318 | grep -v '^ *+' conftest.er1 >conftest.err | |
4319 | rm -f conftest.er1 | |
4320 | cat conftest.err >&5 | |
5556819a | 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4322 | (exit $ac_status); } && { |
4323 | test -z "$ac_c_werror_flag" || | |
4324 | test ! -s conftest.err | |
4325 | } && test -s conftest.$ac_objext; then | |
4326 | eval "$as_ac_Header=yes" | |
4327 | else | |
5556819a | 4328 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4329 | sed 's/^/| /' conftest.$ac_ext >&5 |
4330 | ||
4331 | eval "$as_ac_Header=no" | |
4332 | fi | |
4333 | ||
4334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4335 | fi | |
5556819a AK |
4336 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4338 | echo "${ECHO_T}$ac_res" >&6; } | |
4339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4340 | cat >>confdefs.h <<_ACEOF |
5556819a | 4341 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4342 | _ACEOF |
4343 | ||
4344 | fi | |
4345 | ||
4346 | done | |
4347 | ||
b896caa1 | 4348 | |
b896caa1 AK |
4349 | |
4350 | ||
795ca3e5 | 4351 | |
8106cdd5 | 4352 | |
80992638 | 4353 | |
795ca3e5 | 4354 | |
a38df97f | 4355 | |
80992638 | 4356 | |
d0191583 JM |
4357 | |
4358 | ||
4359 | ||
4360 | ||
4361 | ||
4362 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4363 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4364 | do |
5556819a | 4365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4371 | fi |
5556819a AK |
4372 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4374 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4375 | else |
d0191583 | 4376 | # Is the header compilable? |
5556819a AK |
4377 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 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 | $ac_includes_default | |
ad6254c5 AK |
4386 | #include <$ac_header> |
4387 | _ACEOF | |
4388 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4389 | if { (ac_try="$ac_compile" |
4390 | case "(($ac_try" in | |
4391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4392 | *) ac_try_echo=$ac_try;; | |
4393 | esac | |
5556819a | 4394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4395 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4396 | ac_status=$? |
8a2fc586 AK |
4397 | grep -v '^ *+' conftest.er1 >conftest.err |
4398 | rm -f conftest.er1 | |
4399 | cat conftest.err >&5 | |
5556819a | 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4401 | (exit $ac_status); } && { |
4402 | test -z "$ac_c_werror_flag" || | |
4403 | test ! -s conftest.err | |
4404 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4405 | ac_header_compiler=yes |
ad6254c5 | 4406 | else |
5556819a | 4407 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4408 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4409 | |
d0191583 | 4410 | ac_header_compiler=no |
ad6254c5 | 4411 | fi |
7a197a62 AK |
4412 | |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4415 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4416 | |
4417 | # Is the header present? | |
5556819a AK |
4418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4420 | cat >conftest.$ac_ext <<_ACEOF |
4421 | /* confdefs.h. */ | |
4422 | _ACEOF | |
4423 | cat confdefs.h >>conftest.$ac_ext | |
4424 | cat >>conftest.$ac_ext <<_ACEOF | |
4425 | /* end confdefs.h. */ | |
4426 | #include <$ac_header> | |
4427 | _ACEOF | |
4428 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4429 | case "(($ac_try" in | |
4430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4431 | *) ac_try_echo=$ac_try;; | |
4432 | esac | |
5556819a | 4433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4435 | ac_status=$? | |
4436 | grep -v '^ *+' conftest.er1 >conftest.err | |
4437 | rm -f conftest.er1 | |
4438 | cat conftest.err >&5 | |
5556819a | 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4440 | (exit $ac_status); } >/dev/null && { |
4441 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4442 | test ! -s conftest.err | |
4443 | }; then | |
4444 | ac_header_preproc=yes | |
4445 | else | |
5556819a | 4446 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4447 | sed 's/^/| /' conftest.$ac_ext >&5 |
4448 | ||
4449 | ac_header_preproc=no | |
4450 | fi | |
4451 | ||
4452 | rm -f conftest.err conftest.$ac_ext | |
5556819a AK |
4453 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4454 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4455 | |
4456 | # So? What about this header? | |
4457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4458 | yes:no: ) | |
5556819a AK |
4459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4463 | ac_header_preproc=yes |
4464 | ;; | |
4465 | no:yes:* ) | |
5556819a AK |
4466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4478 | |
4479 | ;; | |
4480 | esac | |
5556819a AK |
4481 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4485 | else |
4486 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4487 | fi |
5556819a AK |
4488 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4490 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4491 | |
4492 | fi | |
5556819a | 4493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4494 | cat >>confdefs.h <<_ACEOF |
5556819a | 4495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4496 | _ACEOF |
a38df97f | 4497 | |
d0191583 | 4498 | else |
5556819a AK |
4499 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4500 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4501 | { (exit 1); exit 1; }; } |
80992638 AK |
4502 | fi |
4503 | ||
ad6254c5 AK |
4504 | done |
4505 | ||
7d1552c9 | 4506 | |
d0191583 JM |
4507 | case "$host_os" in |
4508 | linux*) | |
7d1552c9 | 4509 | |
80992638 | 4510 | |
5a52dca9 | 4511 | |
d0191583 | 4512 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4513 | do |
5556819a | 4514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4515 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4516 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4518 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4520 | fi |
5556819a AK |
4521 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4522 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4523 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4524 | else |
4525 | # Is the header compilable? | |
5556819a AK |
4526 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4527 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4528 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4529 | /* confdefs.h. */ |
4530 | _ACEOF | |
4531 | cat confdefs.h >>conftest.$ac_ext | |
4532 | cat >>conftest.$ac_ext <<_ACEOF | |
4533 | /* end confdefs.h. */ | |
4534 | $ac_includes_default | |
4535 | #include <$ac_header> | |
4536 | _ACEOF | |
4537 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4538 | if { (ac_try="$ac_compile" |
4539 | case "(($ac_try" in | |
4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 | *) ac_try_echo=$ac_try;; | |
4542 | esac | |
5556819a | 4543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4544 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4545 | ac_status=$? |
8a2fc586 AK |
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
4547 | rm -f conftest.er1 | |
4548 | cat conftest.err >&5 | |
5556819a | 4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4550 | (exit $ac_status); } && { |
4551 | test -z "$ac_c_werror_flag" || | |
4552 | test ! -s conftest.err | |
4553 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4554 | ac_header_compiler=yes |
4555 | else | |
5556819a | 4556 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
4558 | ||
4559 | ac_header_compiler=no | |
4560 | fi | |
4561 | ||
4562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4563 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4564 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4565 | |
4566 | # Is the header present? | |
5556819a AK |
4567 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4569 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4570 | /* confdefs.h. */ |
4571 | _ACEOF | |
4572 | cat confdefs.h >>conftest.$ac_ext | |
4573 | cat >>conftest.$ac_ext <<_ACEOF | |
4574 | /* end confdefs.h. */ | |
4575 | #include <$ac_header> | |
4576 | _ACEOF | |
7a197a62 AK |
4577 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4578 | case "(($ac_try" in | |
4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4580 | *) ac_try_echo=$ac_try;; | |
4581 | esac | |
5556819a | 4582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4583 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4584 | ac_status=$? |
4585 | grep -v '^ *+' conftest.er1 >conftest.err | |
4586 | rm -f conftest.er1 | |
4587 | cat conftest.err >&5 | |
5556819a | 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4589 | (exit $ac_status); } >/dev/null && { |
4590 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4591 | test ! -s conftest.err | |
4592 | }; then | |
ad6254c5 AK |
4593 | ac_header_preproc=yes |
4594 | else | |
5556819a | 4595 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 |
4597 | ||
4598 | ac_header_preproc=no | |
4599 | fi | |
7a197a62 | 4600 | |
ad6254c5 | 4601 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4602 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4603 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4604 | |
4605 | # So? What about this header? | |
8a2fc586 AK |
4606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4607 | yes:no: ) | |
5556819a AK |
4608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4611 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4612 | ac_header_preproc=yes |
ad6254c5 | 4613 | ;; |
8a2fc586 | 4614 | no:yes:* ) |
5556819a AK |
4615 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4616 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4618 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4620 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4621 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4622 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4625 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4626 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4627 | |
ad6254c5 AK |
4628 | ;; |
4629 | esac | |
5556819a AK |
4630 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4632 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4634 | else |
8a2fc586 | 4635 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4636 | fi |
5556819a AK |
4637 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4639 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4640 | |
4641 | fi | |
5556819a | 4642 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4643 | cat >>confdefs.h <<_ACEOF |
5556819a | 4644 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4645 | _ACEOF |
b896caa1 | 4646 | |
d8ac0fbc | 4647 | else |
5556819a AK |
4648 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4649 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4650 | { (exit 1); exit 1; }; } |
80992638 AK |
4651 | fi |
4652 | ||
ad6254c5 | 4653 | done |
d0191583 JM |
4654 | ;; |
4655 | darwin*) | |
d8ac0fbc | 4656 | |
d8ac0fbc | 4657 | |
d0191583 | 4658 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4659 | do |
5556819a | 4660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4662 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4666 | fi |
5556819a AK |
4667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4669 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4670 | else |
4671 | # Is the header compilable? | |
5556819a AK |
4672 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4674 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4675 | /* confdefs.h. */ |
4676 | _ACEOF | |
4677 | cat confdefs.h >>conftest.$ac_ext | |
4678 | cat >>conftest.$ac_ext <<_ACEOF | |
4679 | /* end confdefs.h. */ | |
4680 | $ac_includes_default | |
4681 | #include <$ac_header> | |
4682 | _ACEOF | |
4683 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4684 | if { (ac_try="$ac_compile" |
4685 | case "(($ac_try" in | |
4686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4687 | *) ac_try_echo=$ac_try;; | |
4688 | esac | |
5556819a | 4689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4690 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4691 | ac_status=$? |
8a2fc586 AK |
4692 | grep -v '^ *+' conftest.er1 >conftest.err |
4693 | rm -f conftest.er1 | |
4694 | cat conftest.err >&5 | |
5556819a | 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4696 | (exit $ac_status); } && { |
4697 | test -z "$ac_c_werror_flag" || | |
4698 | test ! -s conftest.err | |
4699 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4700 | ac_header_compiler=yes |
4701 | else | |
5556819a | 4702 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4703 | sed 's/^/| /' conftest.$ac_ext >&5 |
4704 | ||
7a197a62 | 4705 | ac_header_compiler=no |
ad6254c5 | 4706 | fi |
7a197a62 AK |
4707 | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4709 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4710 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4711 | |
4712 | # Is the header present? | |
5556819a AK |
4713 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4714 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4715 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4716 | /* confdefs.h. */ |
4717 | _ACEOF | |
4718 | cat confdefs.h >>conftest.$ac_ext | |
4719 | cat >>conftest.$ac_ext <<_ACEOF | |
4720 | /* end confdefs.h. */ | |
4721 | #include <$ac_header> | |
4722 | _ACEOF | |
7a197a62 AK |
4723 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4724 | case "(($ac_try" in | |
4725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4726 | *) ac_try_echo=$ac_try;; | |
4727 | esac | |
5556819a | 4728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4730 | ac_status=$? |
4731 | grep -v '^ *+' conftest.er1 >conftest.err | |
4732 | rm -f conftest.er1 | |
4733 | cat conftest.err >&5 | |
5556819a | 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4735 | (exit $ac_status); } >/dev/null && { |
4736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4737 | test ! -s conftest.err | |
4738 | }; then | |
ad6254c5 AK |
4739 | ac_header_preproc=yes |
4740 | else | |
5556819a | 4741 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4742 | sed 's/^/| /' conftest.$ac_ext >&5 |
4743 | ||
4744 | ac_header_preproc=no | |
4745 | fi | |
7a197a62 | 4746 | |
ad6254c5 | 4747 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4748 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4749 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4750 | |
4751 | # So? What about this header? | |
8a2fc586 AK |
4752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4753 | yes:no: ) | |
5556819a AK |
4754 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4758 | ac_header_preproc=yes |
ad6254c5 | 4759 | ;; |
8a2fc586 | 4760 | no:yes:* ) |
5556819a AK |
4761 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4763 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4764 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4765 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4767 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4768 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4773 | |
ad6254c5 AK |
4774 | ;; |
4775 | esac | |
5556819a AK |
4776 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4780 | else |
8a2fc586 | 4781 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4782 | fi |
5556819a AK |
4783 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4785 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4786 | |
4787 | fi | |
5556819a | 4788 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4789 | cat >>confdefs.h <<_ACEOF |
5556819a | 4790 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4791 | _ACEOF |
4922197a | 4792 | |
4922197a | 4793 | else |
5556819a AK |
4794 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4795 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4796 | { (exit 1); exit 1; }; } |
80992638 AK |
4797 | fi |
4798 | ||
ad6254c5 | 4799 | done |
d0191583 JM |
4800 | ;; |
4801 | esac | |
4922197a | 4802 | |
4922197a | 4803 | |
4922197a | 4804 | |
ad6254c5 AK |
4805 | |
4806 | ||
d0191583 JM |
4807 | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4820 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4821 | sys/types.h unistd.h | |
ad6254c5 | 4822 | do |
5556819a | 4823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4824 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4825 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4827 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4829 | fi |
5556819a AK |
4830 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4832 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4833 | else |
ad6254c5 | 4834 | # Is the header compilable? |
5556819a AK |
4835 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4837 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4838 | /* confdefs.h. */ |
4839 | _ACEOF | |
4840 | cat confdefs.h >>conftest.$ac_ext | |
4841 | cat >>conftest.$ac_ext <<_ACEOF | |
4842 | /* end confdefs.h. */ | |
4843 | $ac_includes_default | |
4844 | #include <$ac_header> | |
4845 | _ACEOF | |
4846 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4847 | if { (ac_try="$ac_compile" |
4848 | case "(($ac_try" in | |
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 | *) ac_try_echo=$ac_try;; | |
4851 | esac | |
5556819a | 4852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4853 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4854 | ac_status=$? |
8a2fc586 AK |
4855 | grep -v '^ *+' conftest.er1 >conftest.err |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
5556819a | 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4859 | (exit $ac_status); } && { |
4860 | test -z "$ac_c_werror_flag" || | |
4861 | test ! -s conftest.err | |
4862 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4863 | ac_header_compiler=yes |
4864 | else | |
5556819a | 4865 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
4867 | ||
7a197a62 | 4868 | ac_header_compiler=no |
ad6254c5 | 4869 | fi |
7a197a62 AK |
4870 | |
4871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4872 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4873 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4874 | |
4875 | # Is the header present? | |
5556819a AK |
4876 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4878 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4879 | /* confdefs.h. */ |
4880 | _ACEOF | |
4881 | cat confdefs.h >>conftest.$ac_ext | |
4882 | cat >>conftest.$ac_ext <<_ACEOF | |
4883 | /* end confdefs.h. */ | |
4884 | #include <$ac_header> | |
4885 | _ACEOF | |
7a197a62 AK |
4886 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
5556819a | 4891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4893 | ac_status=$? |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
5556819a | 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4898 | (exit $ac_status); } >/dev/null && { |
4899 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | }; then | |
ad6254c5 AK |
4902 | ac_header_preproc=yes |
4903 | else | |
5556819a | 4904 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4905 | sed 's/^/| /' conftest.$ac_ext >&5 |
4906 | ||
4907 | ac_header_preproc=no | |
4908 | fi | |
7a197a62 | 4909 | |
ad6254c5 | 4910 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4911 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4912 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4913 | |
4914 | # So? What about this header? | |
8a2fc586 AK |
4915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4916 | yes:no: ) | |
5556819a AK |
4917 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4918 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4920 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4921 | ac_header_preproc=yes |
ad6254c5 | 4922 | ;; |
8a2fc586 | 4923 | no:yes:* ) |
5556819a AK |
4924 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4925 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4926 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4927 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4928 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4929 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4930 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4931 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4933 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4934 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4935 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4936 | |
ad6254c5 AK |
4937 | ;; |
4938 | esac | |
5556819a AK |
4939 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4941 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4943 | else |
8a2fc586 | 4944 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4945 | fi |
5556819a AK |
4946 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4947 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4948 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4949 | |
ad6254c5 | 4950 | fi |
5556819a | 4951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4952 | cat >>confdefs.h <<_ACEOF |
5556819a | 4953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4954 | _ACEOF |
795ca3e5 | 4955 | |
795ca3e5 | 4956 | else |
5556819a AK |
4957 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4958 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4959 | { (exit 1); exit 1; }; } |
80992638 AK |
4960 | fi |
4961 | ||
ad6254c5 | 4962 | done |
ad6254c5 | 4963 | |
795ca3e5 | 4964 | |
d0191583 JM |
4965 | |
4966 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 4967 | do |
5556819a | 4968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4974 | fi |
5556819a AK |
4975 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4976 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4977 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4978 | else |
4979 | # Is the header compilable? | |
5556819a AK |
4980 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4982 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4983 | /* confdefs.h. */ |
4984 | _ACEOF | |
4985 | cat confdefs.h >>conftest.$ac_ext | |
4986 | cat >>conftest.$ac_ext <<_ACEOF | |
4987 | /* end confdefs.h. */ | |
4988 | $ac_includes_default | |
4989 | #include <$ac_header> | |
4990 | _ACEOF | |
4991 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4992 | if { (ac_try="$ac_compile" |
4993 | case "(($ac_try" in | |
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4995 | *) ac_try_echo=$ac_try;; | |
4996 | esac | |
5556819a | 4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4998 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4999 | ac_status=$? |
8a2fc586 AK |
5000 | grep -v '^ *+' conftest.er1 >conftest.err |
5001 | rm -f conftest.er1 | |
5002 | cat conftest.err >&5 | |
5556819a | 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5004 | (exit $ac_status); } && { |
5005 | test -z "$ac_c_werror_flag" || | |
5006 | test ! -s conftest.err | |
5007 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5008 | ac_header_compiler=yes |
5009 | else | |
5556819a | 5010 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
5012 | ||
7a197a62 | 5013 | ac_header_compiler=no |
ad6254c5 | 5014 | fi |
7a197a62 AK |
5015 | |
5016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
5017 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5018 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5019 | |
5020 | # Is the header present? | |
5556819a AK |
5021 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5022 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5023 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5024 | /* confdefs.h. */ |
5025 | _ACEOF | |
5026 | cat confdefs.h >>conftest.$ac_ext | |
5027 | cat >>conftest.$ac_ext <<_ACEOF | |
5028 | /* end confdefs.h. */ | |
5029 | #include <$ac_header> | |
5030 | _ACEOF | |
7a197a62 AK |
5031 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5032 | case "(($ac_try" in | |
5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5034 | *) ac_try_echo=$ac_try;; | |
5035 | esac | |
5556819a | 5036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5038 | ac_status=$? |
5039 | grep -v '^ *+' conftest.er1 >conftest.err | |
5040 | rm -f conftest.er1 | |
5041 | cat conftest.err >&5 | |
5556819a | 5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5043 | (exit $ac_status); } >/dev/null && { |
5044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5045 | test ! -s conftest.err | |
5046 | }; then | |
ad6254c5 AK |
5047 | ac_header_preproc=yes |
5048 | else | |
5556819a | 5049 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
5051 | ||
5052 | ac_header_preproc=no | |
5053 | fi | |
7a197a62 | 5054 | |
ad6254c5 | 5055 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
5056 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5057 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5058 | |
5059 | # So? What about this header? | |
8a2fc586 AK |
5060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5061 | yes:no: ) | |
5556819a AK |
5062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5066 | ac_header_preproc=yes |
ad6254c5 | 5067 | ;; |
8a2fc586 | 5068 | no:yes:* ) |
5556819a AK |
5069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5081 | |
ad6254c5 AK |
5082 | ;; |
5083 | esac | |
5556819a AK |
5084 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 5087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5088 | else |
8a2fc586 | 5089 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5090 | fi |
5556819a AK |
5091 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5093 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5094 | |
ad6254c5 | 5095 | fi |
5556819a | 5096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5097 | cat >>confdefs.h <<_ACEOF |
5556819a | 5098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5099 | _ACEOF |
5100 | ||
80992638 AK |
5101 | fi |
5102 | ||
ad6254c5 | 5103 | done |
d0191583 | 5104 | |
d3c8211f | 5105 | |
80992638 | 5106 | ################################################################################ |
5556819a AK |
5107 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5108 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5109 | if test "${ac_cv_c_const+set}" = set; then |
5556819a | 5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5111 | else |
ad6254c5 | 5112 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5113 | /* confdefs.h. */ |
5114 | _ACEOF | |
5115 | cat confdefs.h >>conftest.$ac_ext | |
5116 | cat >>conftest.$ac_ext <<_ACEOF | |
5117 | /* end confdefs.h. */ | |
5118 | ||
5119 | int | |
5120 | main () | |
5121 | { | |
5122 | /* FIXME: Include the comments suggested by Paul. */ | |
5123 | #ifndef __cplusplus | |
5124 | /* Ultrix mips cc rejects this. */ | |
5125 | typedef int charset[2]; | |
25fbec5b | 5126 | const charset cs; |
ad6254c5 | 5127 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5128 | char const *const *pcpcc; |
5129 | char **ppc; | |
ad6254c5 AK |
5130 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5131 | struct point {int x, y;}; | |
5132 | static struct point const zero = {0,0}; | |
5133 | /* AIX XL C 1.02.0.0 rejects this. | |
5134 | It does not let you subtract one const X* pointer from another in | |
5135 | an arm of an if-expression whose if-part is not a constant | |
5136 | expression */ | |
5137 | const char *g = "string"; | |
25fbec5b | 5138 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5139 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5140 | ++pcpcc; |
5141 | ppc = (char**) pcpcc; | |
5142 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5143 | { /* SCO 3.2v4 cc rejects this. */ |
5144 | char *t; | |
5145 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5146 | ||
5147 | *t++ = 0; | |
7a197a62 | 5148 | if (s) return 0; |
ad6254c5 AK |
5149 | } |
5150 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5151 | int x[] = {25, 17}; | |
5152 | const int *foo = &x[0]; | |
5153 | ++foo; | |
5154 | } | |
5155 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5156 | typedef const int *iptr; | |
5157 | iptr p = 0; | |
5158 | ++p; | |
5159 | } | |
5160 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5161 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5162 | struct s { int j; const int *ap[3]; }; | |
5163 | struct s *b; b->j = 5; | |
5164 | } | |
5165 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5166 | const int foo = 10; | |
7a197a62 | 5167 | if (!foo) return 0; |
ad6254c5 | 5168 | } |
25fbec5b | 5169 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5170 | #endif |
5171 | ||
5172 | ; | |
5173 | return 0; | |
5174 | } | |
5175 | _ACEOF | |
5176 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5177 | if { (ac_try="$ac_compile" |
5178 | case "(($ac_try" in | |
5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5180 | *) ac_try_echo=$ac_try;; | |
5181 | esac | |
5556819a | 5182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5183 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5184 | ac_status=$? |
8a2fc586 AK |
5185 | grep -v '^ *+' conftest.er1 >conftest.err |
5186 | rm -f conftest.er1 | |
5187 | cat conftest.err >&5 | |
5556819a | 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5189 | (exit $ac_status); } && { |
5190 | test -z "$ac_c_werror_flag" || | |
5191 | test ! -s conftest.err | |
5192 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5193 | ac_cv_c_const=yes |
5194 | else | |
5556819a | 5195 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5196 | sed 's/^/| /' conftest.$ac_ext >&5 |
5197 | ||
7a197a62 | 5198 | ac_cv_c_const=no |
ad6254c5 | 5199 | fi |
7a197a62 AK |
5200 | |
5201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5202 | fi |
5556819a AK |
5203 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5204 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5205 | if test $ac_cv_c_const = no; then |
80992638 | 5206 | |
ad6254c5 | 5207 | cat >>confdefs.h <<\_ACEOF |
5556819a | 5208 | #define const |
ad6254c5 | 5209 | _ACEOF |
80992638 | 5210 | |
d3c8211f | 5211 | fi |
d3c8211f | 5212 | |
5556819a AK |
5213 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5214 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5215 | if test "${ac_cv_c_inline+set}" = set; then |
5556819a | 5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5217 | else |
ad6254c5 AK |
5218 | ac_cv_c_inline=no |
5219 | for ac_kw in inline __inline__ __inline; do | |
5220 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5221 | /* confdefs.h. */ |
5222 | _ACEOF | |
5223 | cat confdefs.h >>conftest.$ac_ext | |
5224 | cat >>conftest.$ac_ext <<_ACEOF | |
5225 | /* end confdefs.h. */ | |
5226 | #ifndef __cplusplus | |
5227 | typedef int foo_t; | |
5228 | static $ac_kw foo_t static_foo () {return 0; } | |
5229 | $ac_kw foo_t foo () {return 0; } | |
5230 | #endif | |
80992638 | 5231 | |
ad6254c5 AK |
5232 | _ACEOF |
5233 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5234 | if { (ac_try="$ac_compile" |
5235 | case "(($ac_try" in | |
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5237 | *) ac_try_echo=$ac_try;; | |
5238 | esac | |
5556819a | 5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5240 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5241 | ac_status=$? |
8a2fc586 AK |
5242 | grep -v '^ *+' conftest.er1 >conftest.err |
5243 | rm -f conftest.er1 | |
5244 | cat conftest.err >&5 | |
5556819a | 5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5246 | (exit $ac_status); } && { |
5247 | test -z "$ac_c_werror_flag" || | |
5248 | test ! -s conftest.err | |
5249 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5250 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5251 | else |
5556819a | 5252 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5253 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5254 | |
7a197a62 | 5255 | |
8ce0cbda | 5256 | fi |
7a197a62 AK |
5257 | |
5258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5259 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5260 | done |
8ce0cbda | 5261 | |
8ce0cbda | 5262 | fi |
5556819a AK |
5263 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5264 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5265 | |
5266 | ||
ad6254c5 AK |
5267 | case $ac_cv_c_inline in |
5268 | inline | yes) ;; | |
8a2fc586 AK |
5269 | *) |
5270 | case $ac_cv_c_inline in | |
5271 | no) ac_val=;; | |
5272 | *) ac_val=$ac_cv_c_inline;; | |
5273 | esac | |
5274 | cat >>confdefs.h <<_ACEOF | |
5275 | #ifndef __cplusplus | |
5276 | #define inline $ac_val | |
5277 | #endif | |
c1c065a3 | 5278 | _ACEOF |
d0191583 JM |
5279 | ;; |
5280 | esac | |
5281 | ||
5556819a AK |
5282 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5283 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5284 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
5556819a | 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5286 | else |
5287 | cat >conftest.$ac_ext <<_ACEOF | |
5288 | /* confdefs.h. */ | |
5289 | _ACEOF | |
5290 | cat confdefs.h >>conftest.$ac_ext | |
5291 | cat >>conftest.$ac_ext <<_ACEOF | |
5292 | /* end confdefs.h. */ | |
5293 | $ac_includes_default | |
5294 | int | |
5295 | main () | |
5296 | { | |
5297 | static struct stat ac_aggr; | |
5298 | if (ac_aggr.st_rdev) | |
5299 | return 0; | |
5300 | ; | |
5301 | return 0; | |
5302 | } | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
5305 | if { (ac_try="$ac_compile" | |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
5556819a | 5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5311 | (eval "$ac_compile") 2>conftest.er1 |
5312 | ac_status=$? | |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5556819a | 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5317 | (exit $ac_status); } && { |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
5321 | ac_cv_member_struct_stat_st_rdev=yes | |
5322 | else | |
5556819a | 5323 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
5325 | ||
5326 | cat >conftest.$ac_ext <<_ACEOF | |
5327 | /* confdefs.h. */ | |
5328 | _ACEOF | |
5329 | cat confdefs.h >>conftest.$ac_ext | |
5330 | cat >>conftest.$ac_ext <<_ACEOF | |
5331 | /* end confdefs.h. */ | |
5332 | $ac_includes_default | |
5333 | int | |
5334 | main () | |
5335 | { | |
5336 | static struct stat ac_aggr; | |
5337 | if (sizeof ac_aggr.st_rdev) | |
5338 | return 0; | |
5339 | ; | |
5340 | return 0; | |
5341 | } | |
5342 | _ACEOF | |
5343 | rm -f conftest.$ac_objext | |
5344 | if { (ac_try="$ac_compile" | |
5345 | case "(($ac_try" in | |
5346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5347 | *) ac_try_echo=$ac_try;; | |
5348 | esac | |
5556819a | 5349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5350 | (eval "$ac_compile") 2>conftest.er1 |
5351 | ac_status=$? | |
5352 | grep -v '^ *+' conftest.er1 >conftest.err | |
5353 | rm -f conftest.er1 | |
5354 | cat conftest.err >&5 | |
5556819a | 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5356 | (exit $ac_status); } && { |
5357 | test -z "$ac_c_werror_flag" || | |
5358 | test ! -s conftest.err | |
5359 | } && test -s conftest.$ac_objext; then | |
5360 | ac_cv_member_struct_stat_st_rdev=yes | |
5361 | else | |
5556819a | 5362 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 |
5364 | ||
5365 | ac_cv_member_struct_stat_st_rdev=no | |
5366 | fi | |
5367 | ||
5368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5369 | fi | |
5370 | ||
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5372 | fi | |
5556819a AK |
5373 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5374 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5375 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5376 | ||
5377 | cat >>confdefs.h <<_ACEOF | |
5378 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5379 | _ACEOF | |
5380 | ||
5381 | ||
5382 | fi | |
8ce0cbda | 5383 | |
5556819a AK |
5384 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5385 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5386 | if test "${ac_cv_type_off_t+set}" = set; then |
5556819a | 5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5388 | else |
fddafd51 ZK |
5389 | cat >conftest.$ac_ext <<_ACEOF |
5390 | /* confdefs.h. */ | |
5391 | _ACEOF | |
5392 | cat confdefs.h >>conftest.$ac_ext | |
5393 | cat >>conftest.$ac_ext <<_ACEOF | |
5394 | /* end confdefs.h. */ | |
5395 | $ac_includes_default | |
5556819a | 5396 | typedef off_t ac__type_new_; |
fddafd51 ZK |
5397 | int |
5398 | main () | |
5399 | { | |
5556819a AK |
5400 | if ((ac__type_new_ *) 0) |
5401 | return 0; | |
5402 | if (sizeof (ac__type_new_)) | |
5403 | return 0; | |
ad6254c5 AK |
5404 | ; |
5405 | return 0; | |
5406 | } | |
5407 | _ACEOF | |
5408 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5409 | if { (ac_try="$ac_compile" |
5410 | case "(($ac_try" in | |
5411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5412 | *) ac_try_echo=$ac_try;; | |
5413 | esac | |
5556819a | 5414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5415 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5416 | ac_status=$? |
8a2fc586 AK |
5417 | grep -v '^ *+' conftest.er1 >conftest.err |
5418 | rm -f conftest.er1 | |
5419 | cat conftest.err >&5 | |
5556819a | 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5421 | (exit $ac_status); } && { |
5422 | test -z "$ac_c_werror_flag" || | |
5423 | test ! -s conftest.err | |
5424 | } && test -s conftest.$ac_objext; then | |
5556819a | 5425 | ac_cv_type_off_t=yes |
ad6254c5 | 5426 | else |
5556819a | 5427 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5428 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5429 | |
5556819a | 5430 | ac_cv_type_off_t=no |
80992638 | 5431 | fi |
7a197a62 AK |
5432 | |
5433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5434 | fi |
5556819a AK |
5435 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5436 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5437 | if test $ac_cv_type_off_t = yes; then |
5438 | : | |
5439 | else | |
80992638 | 5440 | |
ad6254c5 | 5441 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5442 | #define off_t long int |
ad6254c5 | 5443 | _ACEOF |
199e490e | 5444 | |
b896caa1 AK |
5445 | fi |
5446 | ||
5556819a AK |
5447 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5448 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5449 | if test "${ac_cv_type_pid_t+set}" = set; then |
5556819a | 5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5451 | else |
fddafd51 ZK |
5452 | cat >conftest.$ac_ext <<_ACEOF |
5453 | /* confdefs.h. */ | |
5454 | _ACEOF | |
5455 | cat confdefs.h >>conftest.$ac_ext | |
5456 | cat >>conftest.$ac_ext <<_ACEOF | |
5457 | /* end confdefs.h. */ | |
5458 | $ac_includes_default | |
5556819a | 5459 | typedef pid_t ac__type_new_; |
fddafd51 ZK |
5460 | int |
5461 | main () | |
5462 | { | |
5556819a AK |
5463 | if ((ac__type_new_ *) 0) |
5464 | return 0; | |
5465 | if (sizeof (ac__type_new_)) | |
5466 | return 0; | |
ad6254c5 AK |
5467 | ; |
5468 | return 0; | |
5469 | } | |
5470 | _ACEOF | |
5471 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5472 | if { (ac_try="$ac_compile" |
5473 | case "(($ac_try" in | |
5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5475 | *) ac_try_echo=$ac_try;; | |
5476 | esac | |
5556819a | 5477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5478 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5479 | ac_status=$? |
8a2fc586 AK |
5480 | grep -v '^ *+' conftest.er1 >conftest.err |
5481 | rm -f conftest.er1 | |
5482 | cat conftest.err >&5 | |
5556819a | 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5484 | (exit $ac_status); } && { |
5485 | test -z "$ac_c_werror_flag" || | |
5486 | test ! -s conftest.err | |
5487 | } && test -s conftest.$ac_objext; then | |
5556819a | 5488 | ac_cv_type_pid_t=yes |
ad6254c5 | 5489 | else |
5556819a | 5490 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5491 | sed 's/^/| /' conftest.$ac_ext >&5 |
5492 | ||
5556819a | 5493 | ac_cv_type_pid_t=no |
ad6254c5 | 5494 | fi |
7a197a62 AK |
5495 | |
5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5497 | fi |
5556819a AK |
5498 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5499 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5500 | if test $ac_cv_type_pid_t = yes; then |
5501 | : | |
5502 | else | |
80992638 | 5503 | |
ad6254c5 AK |
5504 | cat >>confdefs.h <<_ACEOF |
5505 | #define pid_t int | |
5506 | _ACEOF | |
2dc95e1c | 5507 | |
2dc95e1c AK |
5508 | fi |
5509 | ||
5556819a AK |
5510 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5511 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5512 | if test "${ac_cv_type_signal+set}" = set; then |
5556819a | 5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5514 | else |
5515 | cat >conftest.$ac_ext <<_ACEOF | |
5516 | /* confdefs.h. */ | |
5517 | _ACEOF | |
5518 | cat confdefs.h >>conftest.$ac_ext | |
5519 | cat >>conftest.$ac_ext <<_ACEOF | |
5520 | /* end confdefs.h. */ | |
5521 | #include <sys/types.h> | |
5522 | #include <signal.h> | |
5523 | ||
5524 | int | |
5525 | main () | |
5526 | { | |
5527 | return *(signal (0, 0)) (0) == 1; | |
5528 | ; | |
5529 | return 0; | |
5530 | } | |
5531 | _ACEOF | |
5532 | rm -f conftest.$ac_objext | |
5533 | if { (ac_try="$ac_compile" | |
5534 | case "(($ac_try" in | |
5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5536 | *) ac_try_echo=$ac_try;; | |
5537 | esac | |
5556819a | 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5539 | (eval "$ac_compile") 2>conftest.er1 |
5540 | ac_status=$? | |
5541 | grep -v '^ *+' conftest.er1 >conftest.err | |
5542 | rm -f conftest.er1 | |
5543 | cat conftest.err >&5 | |
5556819a | 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5545 | (exit $ac_status); } && { |
5546 | test -z "$ac_c_werror_flag" || | |
5547 | test ! -s conftest.err | |
5548 | } && test -s conftest.$ac_objext; then | |
5549 | ac_cv_type_signal=int | |
5550 | else | |
5556819a | 5551 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5552 | sed 's/^/| /' conftest.$ac_ext >&5 |
5553 | ||
5554 | ac_cv_type_signal=void | |
5555 | fi | |
5556 | ||
5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5558 | fi | |
5556819a AK |
5559 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5560 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5561 | |
5562 | cat >>confdefs.h <<_ACEOF | |
5563 | #define RETSIGTYPE $ac_cv_type_signal | |
5564 | _ACEOF | |
5565 | ||
5566 | ||
5556819a AK |
5567 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5568 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5569 | if test "${ac_cv_type_size_t+set}" = set; then |
5556819a | 5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5571 | else |
fddafd51 ZK |
5572 | cat >conftest.$ac_ext <<_ACEOF |
5573 | /* confdefs.h. */ | |
5574 | _ACEOF | |
5575 | cat confdefs.h >>conftest.$ac_ext | |
5576 | cat >>conftest.$ac_ext <<_ACEOF | |
5577 | /* end confdefs.h. */ | |
5578 | $ac_includes_default | |
5556819a | 5579 | typedef size_t ac__type_new_; |
fddafd51 ZK |
5580 | int |
5581 | main () | |
5582 | { | |
5556819a AK |
5583 | if ((ac__type_new_ *) 0) |
5584 | return 0; | |
5585 | if (sizeof (ac__type_new_)) | |
5586 | return 0; | |
ad6254c5 AK |
5587 | ; |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
5591 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5592 | if { (ac_try="$ac_compile" |
5593 | case "(($ac_try" in | |
5594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5595 | *) ac_try_echo=$ac_try;; | |
5596 | esac | |
5556819a | 5597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5598 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5599 | ac_status=$? |
8a2fc586 AK |
5600 | grep -v '^ *+' conftest.er1 >conftest.err |
5601 | rm -f conftest.er1 | |
5602 | cat conftest.err >&5 | |
5556819a | 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5604 | (exit $ac_status); } && { |
5605 | test -z "$ac_c_werror_flag" || | |
5606 | test ! -s conftest.err | |
5607 | } && test -s conftest.$ac_objext; then | |
5556819a | 5608 | ac_cv_type_size_t=yes |
ad6254c5 | 5609 | else |
5556819a | 5610 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5611 | sed 's/^/| /' conftest.$ac_ext >&5 |
5612 | ||
5556819a | 5613 | ac_cv_type_size_t=no |
80992638 | 5614 | fi |
7a197a62 AK |
5615 | |
5616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5617 | fi |
5556819a AK |
5618 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5619 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5620 | if test $ac_cv_type_size_t = yes; then |
5621 | : | |
5622 | else | |
80992638 | 5623 | |
ad6254c5 | 5624 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5625 | #define size_t unsigned int |
ad6254c5 | 5626 | _ACEOF |
8106cdd5 | 5627 | |
8106cdd5 AK |
5628 | fi |
5629 | ||
5556819a AK |
5630 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5631 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5632 | if test "${ac_cv_type_mode_t+set}" = set; then |
5556819a | 5633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5634 | else |
fddafd51 ZK |
5635 | cat >conftest.$ac_ext <<_ACEOF |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
5641 | $ac_includes_default | |
5556819a | 5642 | typedef mode_t ac__type_new_; |
fddafd51 ZK |
5643 | int |
5644 | main () | |
5645 | { | |
5556819a AK |
5646 | if ((ac__type_new_ *) 0) |
5647 | return 0; | |
5648 | if (sizeof (ac__type_new_)) | |
5649 | return 0; | |
ad6254c5 AK |
5650 | ; |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5655 | if { (ac_try="$ac_compile" |
5656 | case "(($ac_try" in | |
5657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5658 | *) ac_try_echo=$ac_try;; | |
5659 | esac | |
5556819a | 5660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5661 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5662 | ac_status=$? |
8a2fc586 AK |
5663 | grep -v '^ *+' conftest.er1 >conftest.err |
5664 | rm -f conftest.er1 | |
5665 | cat conftest.err >&5 | |
5556819a | 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5667 | (exit $ac_status); } && { |
5668 | test -z "$ac_c_werror_flag" || | |
5669 | test ! -s conftest.err | |
5670 | } && test -s conftest.$ac_objext; then | |
5556819a | 5671 | ac_cv_type_mode_t=yes |
fddafd51 | 5672 | else |
5556819a | 5673 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5674 | sed 's/^/| /' conftest.$ac_ext >&5 |
5675 | ||
5556819a | 5676 | ac_cv_type_mode_t=no |
80992638 | 5677 | fi |
7a197a62 AK |
5678 | |
5679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5680 | fi |
5556819a AK |
5681 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5682 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5683 | if test $ac_cv_type_mode_t = yes; then |
5684 | : | |
5685 | else | |
80992638 | 5686 | |
ad6254c5 AK |
5687 | cat >>confdefs.h <<_ACEOF |
5688 | #define mode_t int | |
5689 | _ACEOF | |
5690 | ||
5691 | fi | |
5692 | ||
5556819a AK |
5693 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5694 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5695 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
5556819a | 5696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5697 | else |
5698 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5699 | /* confdefs.h. */ |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | $ac_includes_default | |
5705 | int | |
5706 | main () | |
5707 | { | |
5708 | static struct stat ac_aggr; | |
5709 | if (ac_aggr.st_rdev) | |
5710 | return 0; | |
5711 | ; | |
5712 | return 0; | |
5713 | } | |
5714 | _ACEOF | |
5715 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5716 | if { (ac_try="$ac_compile" |
5717 | case "(($ac_try" in | |
5718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5719 | *) ac_try_echo=$ac_try;; | |
5720 | esac | |
5556819a | 5721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5722 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5723 | ac_status=$? |
8a2fc586 AK |
5724 | grep -v '^ *+' conftest.er1 >conftest.err |
5725 | rm -f conftest.er1 | |
5726 | cat conftest.err >&5 | |
5556819a | 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5728 | (exit $ac_status); } && { |
5729 | test -z "$ac_c_werror_flag" || | |
5730 | test ! -s conftest.err | |
5731 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5732 | ac_cv_member_struct_stat_st_rdev=yes |
5733 | else | |
5556819a | 5734 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
5736 | ||
7a197a62 | 5737 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5738 | /* confdefs.h. */ |
5739 | _ACEOF | |
5740 | cat confdefs.h >>conftest.$ac_ext | |
5741 | cat >>conftest.$ac_ext <<_ACEOF | |
5742 | /* end confdefs.h. */ | |
5743 | $ac_includes_default | |
5744 | int | |
5745 | main () | |
5746 | { | |
5747 | static struct stat ac_aggr; | |
5748 | if (sizeof ac_aggr.st_rdev) | |
5749 | return 0; | |
5750 | ; | |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
5754 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5755 | if { (ac_try="$ac_compile" |
5756 | case "(($ac_try" in | |
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5758 | *) ac_try_echo=$ac_try;; | |
5759 | esac | |
5556819a | 5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5761 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5762 | ac_status=$? |
8a2fc586 AK |
5763 | grep -v '^ *+' conftest.er1 >conftest.err |
5764 | rm -f conftest.er1 | |
5765 | cat conftest.err >&5 | |
5556819a | 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5767 | (exit $ac_status); } && { |
5768 | test -z "$ac_c_werror_flag" || | |
5769 | test ! -s conftest.err | |
5770 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5771 | ac_cv_member_struct_stat_st_rdev=yes |
5772 | else | |
5556819a | 5773 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
5775 | ||
7a197a62 | 5776 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5777 | fi |
7a197a62 AK |
5778 | |
5779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5780 | fi |
7a197a62 AK |
5781 | |
5782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5783 | fi |
5556819a AK |
5784 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5785 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5786 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5787 | ||
5788 | cat >>confdefs.h <<_ACEOF | |
5789 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5790 | _ACEOF | |
5791 | ||
5792 | ||
ad6254c5 AK |
5793 | fi |
5794 | ||
5556819a AK |
5795 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5796 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5797 | if test "${ac_cv_struct_tm+set}" = set; then |
5556819a | 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5799 | else |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5801 | /* confdefs.h. */ |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
5806 | #include <sys/types.h> | |
5807 | #include <time.h> | |
5808 | ||
5809 | int | |
5810 | main () | |
5811 | { | |
25fbec5b AK |
5812 | struct tm tm; |
5813 | int *p = &tm.tm_sec; | |
5556819a | 5814 | return !p; |
ad6254c5 AK |
5815 | ; |
5816 | return 0; | |
5817 | } | |
5818 | _ACEOF | |
5819 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5820 | if { (ac_try="$ac_compile" |
5821 | case "(($ac_try" in | |
5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5823 | *) ac_try_echo=$ac_try;; | |
5824 | esac | |
5556819a | 5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5826 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5827 | ac_status=$? |
8a2fc586 AK |
5828 | grep -v '^ *+' conftest.er1 >conftest.err |
5829 | rm -f conftest.er1 | |
5830 | cat conftest.err >&5 | |
5556819a | 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5832 | (exit $ac_status); } && { |
5833 | test -z "$ac_c_werror_flag" || | |
5834 | test ! -s conftest.err | |
5835 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5836 | ac_cv_struct_tm=time.h |
5837 | else | |
5556819a | 5838 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5839 | sed 's/^/| /' conftest.$ac_ext >&5 |
5840 | ||
7a197a62 | 5841 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5842 | fi |
7a197a62 AK |
5843 | |
5844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5845 | fi |
5556819a AK |
5846 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5847 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5848 | if test $ac_cv_struct_tm = sys/time.h; then |
5849 | ||
5850 | cat >>confdefs.h <<\_ACEOF | |
5851 | #define TM_IN_SYS_TIME 1 | |
5852 | _ACEOF | |
5853 | ||
5854 | fi | |
809fae91 | 5855 | |
795ca3e5 | 5856 | |
80992638 | 5857 | ################################################################################ |
ad6254c5 AK |
5858 | |
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
d0191583 JM |
5872 | |
5873 | ||
5874 | ||
5875 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5876 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5877 | uname | |
ad6254c5 | 5878 | do |
5556819a AK |
5879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5880 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5882 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 5883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5884 | else |
ad6254c5 | 5885 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5886 | /* confdefs.h. */ |
5887 | _ACEOF | |
5888 | cat confdefs.h >>conftest.$ac_ext | |
5889 | cat >>conftest.$ac_ext <<_ACEOF | |
5890 | /* end confdefs.h. */ | |
8a2fc586 AK |
5891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5893 | #define $ac_func innocuous_$ac_func | |
5894 | ||
ad6254c5 AK |
5895 | /* System header to define __stub macros and hopefully few prototypes, |
5896 | which can conflict with char $ac_func (); below. | |
5897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5898 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5899 | |
ad6254c5 AK |
5900 | #ifdef __STDC__ |
5901 | # include <limits.h> | |
5902 | #else | |
5903 | # include <assert.h> | |
5904 | #endif | |
8a2fc586 AK |
5905 | |
5906 | #undef $ac_func | |
5907 | ||
7a197a62 AK |
5908 | /* Override any GCC internal prototype to avoid an error. |
5909 | Use char because int might match the return type of a GCC | |
5910 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5911 | #ifdef __cplusplus |
5912 | extern "C" | |
ad6254c5 | 5913 | #endif |
ad6254c5 AK |
5914 | char $ac_func (); |
5915 | /* The GNU C library defines this for functions which it implements | |
5916 | to always fail with ENOSYS. Some functions are actually named | |
5917 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5918 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5919 | choke me |
ad6254c5 AK |
5920 | #endif |
5921 | ||
5922 | int | |
5923 | main () | |
5924 | { | |
7a197a62 | 5925 | return $ac_func (); |
ad6254c5 AK |
5926 | ; |
5927 | return 0; | |
5928 | } | |
5929 | _ACEOF | |
5930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5931 | if { (ac_try="$ac_link" |
5932 | case "(($ac_try" in | |
5933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5934 | *) ac_try_echo=$ac_try;; | |
5935 | esac | |
5556819a | 5936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5937 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5938 | ac_status=$? |
8a2fc586 AK |
5939 | grep -v '^ *+' conftest.er1 >conftest.err |
5940 | rm -f conftest.er1 | |
5941 | cat conftest.err >&5 | |
5556819a | 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5943 | (exit $ac_status); } && { |
5944 | test -z "$ac_c_werror_flag" || | |
5945 | test ! -s conftest.err | |
5556819a AK |
5946 | } && test -s conftest$ac_exeext && |
5947 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
5948 | eval "$as_ac_var=yes" |
5949 | else | |
5556819a | 5950 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
5951 | sed 's/^/| /' conftest.$ac_ext >&5 |
5952 | ||
5953 | eval "$as_ac_var=no" | |
5954 | fi | |
5955 | ||
25fbec5b | 5956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
5957 | conftest$ac_exeext conftest.$ac_ext |
5958 | fi | |
5556819a AK |
5959 | ac_res=`eval echo '${'$as_ac_var'}'` |
5960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5961 | echo "${ECHO_T}$ac_res" >&6; } | |
5962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 5963 | cat >>confdefs.h <<_ACEOF |
5556819a | 5964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
5965 | _ACEOF |
5966 | ||
5967 | else | |
5556819a AK |
5968 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5969 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
5970 | { (exit 1); exit 1; }; } |
5971 | fi | |
5972 | done | |
795ca3e5 | 5973 | |
ad6254c5 AK |
5974 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5975 | # for constant arguments. Useless! | |
5556819a AK |
5976 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5977 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 5978 | if test "${ac_cv_working_alloca_h+set}" = set; then |
5556819a | 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5980 | else |
5981 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5982 | /* confdefs.h. */ |
5983 | _ACEOF | |
5984 | cat confdefs.h >>conftest.$ac_ext | |
5985 | cat >>conftest.$ac_ext <<_ACEOF | |
5986 | /* end confdefs.h. */ | |
5987 | #include <alloca.h> | |
5988 | int | |
5989 | main () | |
5990 | { | |
5991 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5992 | if (p) return 0; |
ad6254c5 AK |
5993 | ; |
5994 | return 0; | |
5995 | } | |
5996 | _ACEOF | |
5997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5998 | if { (ac_try="$ac_link" |
5999 | case "(($ac_try" in | |
6000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6001 | *) ac_try_echo=$ac_try;; | |
6002 | esac | |
5556819a | 6003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6004 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6005 | ac_status=$? |
8a2fc586 AK |
6006 | grep -v '^ *+' conftest.er1 >conftest.err |
6007 | rm -f conftest.er1 | |
6008 | cat conftest.err >&5 | |
5556819a | 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6010 | (exit $ac_status); } && { |
6011 | test -z "$ac_c_werror_flag" || | |
6012 | test ! -s conftest.err | |
5556819a AK |
6013 | } && test -s conftest$ac_exeext && |
6014 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6015 | ac_cv_working_alloca_h=yes |
6016 | else | |
5556819a | 6017 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6018 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6019 | |
7a197a62 | 6020 | ac_cv_working_alloca_h=no |
ad6254c5 | 6021 | fi |
7a197a62 | 6022 | |
25fbec5b | 6023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6024 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6025 | fi |
5556819a AK |
6026 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6027 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6028 | if test $ac_cv_working_alloca_h = yes; then |
6029 | ||
6030 | cat >>confdefs.h <<\_ACEOF | |
6031 | #define HAVE_ALLOCA_H 1 | |
6032 | _ACEOF | |
6033 | ||
6034 | fi | |
6035 | ||
5556819a AK |
6036 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6037 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6038 | if test "${ac_cv_func_alloca_works+set}" = set; then |
5556819a | 6039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6040 | else |
6041 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6042 | /* confdefs.h. */ |
6043 | _ACEOF | |
6044 | cat confdefs.h >>conftest.$ac_ext | |
6045 | cat >>conftest.$ac_ext <<_ACEOF | |
6046 | /* end confdefs.h. */ | |
6047 | #ifdef __GNUC__ | |
6048 | # define alloca __builtin_alloca | |
6049 | #else | |
6050 | # ifdef _MSC_VER | |
6051 | # include <malloc.h> | |
6052 | # define alloca _alloca | |
6053 | # else | |
25fbec5b | 6054 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6055 | # include <alloca.h> |
6056 | # else | |
6057 | # ifdef _AIX | |
6058 | #pragma alloca | |
6059 | # else | |
6060 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6061 | char *alloca (); | |
6062 | # endif | |
6063 | # endif | |
6064 | # endif | |
6065 | # endif | |
6066 | #endif | |
6067 | ||
6068 | int | |
6069 | main () | |
6070 | { | |
6071 | char *p = (char *) alloca (1); | |
7a197a62 | 6072 | if (p) return 0; |
ad6254c5 AK |
6073 | ; |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6078 | if { (ac_try="$ac_link" |
6079 | case "(($ac_try" in | |
6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6081 | *) ac_try_echo=$ac_try;; | |
6082 | esac | |
5556819a | 6083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6084 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6085 | ac_status=$? |
8a2fc586 AK |
6086 | grep -v '^ *+' conftest.er1 >conftest.err |
6087 | rm -f conftest.er1 | |
6088 | cat conftest.err >&5 | |
5556819a | 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6090 | (exit $ac_status); } && { |
6091 | test -z "$ac_c_werror_flag" || | |
6092 | test ! -s conftest.err | |
5556819a AK |
6093 | } && test -s conftest$ac_exeext && |
6094 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6095 | ac_cv_func_alloca_works=yes |
6096 | else | |
5556819a | 6097 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
6099 | ||
7a197a62 | 6100 | ac_cv_func_alloca_works=no |
ad6254c5 | 6101 | fi |
7a197a62 | 6102 | |
25fbec5b | 6103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6104 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6105 | fi |
5556819a AK |
6106 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6107 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6108 | |
6109 | if test $ac_cv_func_alloca_works = yes; then | |
6110 | ||
6111 | cat >>confdefs.h <<\_ACEOF | |
6112 | #define HAVE_ALLOCA 1 | |
6113 | _ACEOF | |
6114 | ||
6115 | else | |
6116 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6117 | # that cause trouble. Some versions do not even contain alloca or | |
6118 | # contain a buggy version. If you still want to use their alloca, | |
6119 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6120 | ||
7a197a62 | 6121 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6122 | |
6123 | cat >>confdefs.h <<\_ACEOF | |
6124 | #define C_ALLOCA 1 | |
6125 | _ACEOF | |
6126 | ||
6127 | ||
5556819a AK |
6128 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6129 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6130 | if test "${ac_cv_os_cray+set}" = set; then |
5556819a | 6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6132 | else |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6134 | /* confdefs.h. */ |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
7a197a62 | 6139 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6140 | webecray |
6141 | #else | |
6142 | wenotbecray | |
6143 | #endif | |
6144 | ||
6145 | _ACEOF | |
795ca3e5 | 6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6147 | $EGREP "webecray" >/dev/null 2>&1; then |
6148 | ac_cv_os_cray=yes | |
6149 | else | |
6150 | ac_cv_os_cray=no | |
795ca3e5 AK |
6151 | fi |
6152 | rm -f conftest* | |
6153 | ||
795ca3e5 | 6154 | fi |
5556819a AK |
6155 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6156 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6157 | if test $ac_cv_os_cray = yes; then |
6158 | for ac_func in _getb67 GETB67 getb67; do | |
5556819a AK |
6159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6160 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6162 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6164 | else |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6166 | /* confdefs.h. */ |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
8a2fc586 AK |
6171 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6173 | #define $ac_func innocuous_$ac_func | |
6174 | ||
ad6254c5 AK |
6175 | /* System header to define __stub macros and hopefully few prototypes, |
6176 | which can conflict with char $ac_func (); below. | |
6177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6178 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6179 | |
ad6254c5 AK |
6180 | #ifdef __STDC__ |
6181 | # include <limits.h> | |
6182 | #else | |
6183 | # include <assert.h> | |
6184 | #endif | |
8a2fc586 AK |
6185 | |
6186 | #undef $ac_func | |
6187 | ||
7a197a62 AK |
6188 | /* Override any GCC internal prototype to avoid an error. |
6189 | Use char because int might match the return type of a GCC | |
6190 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6191 | #ifdef __cplusplus |
6192 | extern "C" | |
ad6254c5 | 6193 | #endif |
ad6254c5 AK |
6194 | char $ac_func (); |
6195 | /* The GNU C library defines this for functions which it implements | |
6196 | to always fail with ENOSYS. Some functions are actually named | |
6197 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6198 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6199 | choke me |
ad6254c5 AK |
6200 | #endif |
6201 | ||
6202 | int | |
6203 | main () | |
6204 | { | |
7a197a62 | 6205 | return $ac_func (); |
ad6254c5 AK |
6206 | ; |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6211 | if { (ac_try="$ac_link" |
6212 | case "(($ac_try" in | |
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6214 | *) ac_try_echo=$ac_try;; | |
6215 | esac | |
5556819a | 6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6217 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6218 | ac_status=$? |
8a2fc586 AK |
6219 | grep -v '^ *+' conftest.er1 >conftest.err |
6220 | rm -f conftest.er1 | |
6221 | cat conftest.err >&5 | |
5556819a | 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6223 | (exit $ac_status); } && { |
6224 | test -z "$ac_c_werror_flag" || | |
6225 | test ! -s conftest.err | |
5556819a AK |
6226 | } && test -s conftest$ac_exeext && |
6227 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6228 | eval "$as_ac_var=yes" |
6229 | else | |
5556819a | 6230 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
6232 | ||
7a197a62 | 6233 | eval "$as_ac_var=no" |
ad6254c5 | 6234 | fi |
7a197a62 | 6235 | |
25fbec5b | 6236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6237 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6238 | fi |
5556819a AK |
6239 | ac_res=`eval echo '${'$as_ac_var'}'` |
6240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6241 | echo "${ECHO_T}$ac_res" >&6; } | |
6242 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6243 | |
ad6254c5 AK |
6244 | cat >>confdefs.h <<_ACEOF |
6245 | #define CRAY_STACKSEG_END $ac_func | |
6246 | _ACEOF | |
6247 | ||
6248 | break | |
6249 | fi | |
6250 | ||
6251 | done | |
6252 | fi | |
6253 | ||
5556819a AK |
6254 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6255 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6256 | if test "${ac_cv_c_stack_direction+set}" = set; then |
5556819a | 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6258 | else |
6259 | if test "$cross_compiling" = yes; then | |
6260 | ac_cv_c_stack_direction=0 | |
6261 | else | |
6262 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6263 | /* confdefs.h. */ |
6264 | _ACEOF | |
6265 | cat confdefs.h >>conftest.$ac_ext | |
6266 | cat >>conftest.$ac_ext <<_ACEOF | |
6267 | /* end confdefs.h. */ | |
7a197a62 | 6268 | $ac_includes_default |
ad6254c5 AK |
6269 | int |
6270 | find_stack_direction () | |
6271 | { | |
6272 | static char *addr = 0; | |
6273 | auto char dummy; | |
6274 | if (addr == 0) | |
6275 | { | |
6276 | addr = &dummy; | |
6277 | return find_stack_direction (); | |
6278 | } | |
6279 | else | |
6280 | return (&dummy > addr) ? 1 : -1; | |
6281 | } | |
6282 | ||
6283 | int | |
6284 | main () | |
6285 | { | |
7a197a62 | 6286 | return find_stack_direction () < 0; |
ad6254c5 AK |
6287 | } |
6288 | _ACEOF | |
6289 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6290 | if { (ac_try="$ac_link" |
6291 | case "(($ac_try" in | |
6292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6293 | *) ac_try_echo=$ac_try;; | |
6294 | esac | |
5556819a | 6295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6296 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6297 | ac_status=$? |
5556819a | 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6300 | { (case "(($ac_try" in |
6301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6302 | *) ac_try_echo=$ac_try;; | |
6303 | esac | |
5556819a | 6304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6305 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6306 | ac_status=$? |
5556819a | 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6308 | (exit $ac_status); }; }; then |
6309 | ac_cv_c_stack_direction=1 | |
6310 | else | |
5556819a AK |
6311 | echo "$as_me: program exited with status $ac_status" >&5 |
6312 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 |
6314 | ||
6315 | ( exit $ac_status ) | |
6316 | ac_cv_c_stack_direction=-1 | |
6317 | fi | |
7a197a62 | 6318 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6319 | fi |
7a197a62 AK |
6320 | |
6321 | ||
ad6254c5 | 6322 | fi |
5556819a AK |
6323 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6324 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6325 | |
6326 | cat >>confdefs.h <<_ACEOF | |
6327 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6328 | _ACEOF | |
6329 | ||
6330 | ||
6331 | fi | |
6332 | ||
5556819a AK |
6333 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6334 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6335 | if test "${ac_cv_func_closedir_void+set}" = set; then |
5556819a | 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6337 | else |
6338 | if test "$cross_compiling" = yes; then | |
6339 | ac_cv_func_closedir_void=yes | |
6340 | else | |
6341 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6342 | /* confdefs.h. */ |
6343 | _ACEOF | |
6344 | cat confdefs.h >>conftest.$ac_ext | |
6345 | cat >>conftest.$ac_ext <<_ACEOF | |
6346 | /* end confdefs.h. */ | |
6347 | $ac_includes_default | |
6348 | #include <$ac_header_dirent> | |
6349 | #ifndef __cplusplus | |
6350 | int closedir (); | |
6351 | #endif | |
6352 | ||
6353 | int | |
6354 | main () | |
6355 | { | |
7a197a62 | 6356 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6357 | ; |
6358 | return 0; | |
6359 | } | |
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 | |
5556819a | 6367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6368 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6369 | ac_status=$? |
5556819a | 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6372 | { (case "(($ac_try" in |
6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6374 | *) ac_try_echo=$ac_try;; | |
6375 | esac | |
5556819a | 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6377 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6378 | ac_status=$? |
5556819a | 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6380 | (exit $ac_status); }; }; then |
6381 | ac_cv_func_closedir_void=no | |
6382 | else | |
5556819a AK |
6383 | echo "$as_me: program exited with status $ac_status" >&5 |
6384 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6385 | sed 's/^/| /' conftest.$ac_ext >&5 |
6386 | ||
6387 | ( exit $ac_status ) | |
6388 | ac_cv_func_closedir_void=yes | |
6389 | fi | |
7a197a62 | 6390 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6391 | fi |
7a197a62 AK |
6392 | |
6393 | ||
ad6254c5 | 6394 | fi |
5556819a AK |
6395 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6396 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6397 | if test $ac_cv_func_closedir_void = yes; then |
6398 | ||
6399 | cat >>confdefs.h <<\_ACEOF | |
6400 | #define CLOSEDIR_VOID 1 | |
6401 | _ACEOF | |
6402 | ||
6403 | fi | |
6404 | ||
6405 | ||
7a197a62 | 6406 | for ac_header in vfork.h |
ad6254c5 | 6407 | do |
5556819a | 6408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
6410 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6414 | fi |
5556819a AK |
6415 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6416 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6417 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6418 | else |
6419 | # Is the header compilable? | |
5556819a AK |
6420 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6422 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6423 | /* confdefs.h. */ |
6424 | _ACEOF | |
6425 | cat confdefs.h >>conftest.$ac_ext | |
6426 | cat >>conftest.$ac_ext <<_ACEOF | |
6427 | /* end confdefs.h. */ | |
6428 | $ac_includes_default | |
6429 | #include <$ac_header> | |
6430 | _ACEOF | |
6431 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6432 | if { (ac_try="$ac_compile" |
6433 | case "(($ac_try" in | |
6434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6435 | *) ac_try_echo=$ac_try;; | |
6436 | esac | |
5556819a | 6437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6438 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6439 | ac_status=$? |
8a2fc586 AK |
6440 | grep -v '^ *+' conftest.er1 >conftest.err |
6441 | rm -f conftest.er1 | |
6442 | cat conftest.err >&5 | |
5556819a | 6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6444 | (exit $ac_status); } && { |
6445 | test -z "$ac_c_werror_flag" || | |
6446 | test ! -s conftest.err | |
6447 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6448 | ac_header_compiler=yes |
6449 | else | |
5556819a | 6450 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6451 | sed 's/^/| /' conftest.$ac_ext >&5 |
6452 | ||
7a197a62 | 6453 | ac_header_compiler=no |
ad6254c5 | 6454 | fi |
7a197a62 AK |
6455 | |
6456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
6457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6458 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6459 | |
6460 | # Is the header present? | |
5556819a AK |
6461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6463 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6464 | /* confdefs.h. */ |
6465 | _ACEOF | |
6466 | cat confdefs.h >>conftest.$ac_ext | |
6467 | cat >>conftest.$ac_ext <<_ACEOF | |
6468 | /* end confdefs.h. */ | |
6469 | #include <$ac_header> | |
6470 | _ACEOF | |
7a197a62 AK |
6471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6472 | case "(($ac_try" in | |
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6474 | *) ac_try_echo=$ac_try;; | |
6475 | esac | |
5556819a | 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6478 | ac_status=$? |
6479 | grep -v '^ *+' conftest.er1 >conftest.err | |
6480 | rm -f conftest.er1 | |
6481 | cat conftest.err >&5 | |
5556819a | 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6483 | (exit $ac_status); } >/dev/null && { |
6484 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6485 | test ! -s conftest.err | |
6486 | }; then | |
ad6254c5 AK |
6487 | ac_header_preproc=yes |
6488 | else | |
5556819a | 6489 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
6491 | ||
6492 | ac_header_preproc=no | |
6493 | fi | |
7a197a62 | 6494 | |
ad6254c5 | 6495 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
6496 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6497 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6498 | |
6499 | # So? What about this header? | |
8a2fc586 AK |
6500 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6501 | yes:no: ) | |
5556819a AK |
6502 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6503 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6505 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6506 | ac_header_preproc=yes |
ad6254c5 | 6507 | ;; |
8a2fc586 | 6508 | no:yes:* ) |
5556819a AK |
6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6510 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6512 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6514 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6516 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6518 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6520 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6521 | |
ad6254c5 AK |
6522 | ;; |
6523 | esac | |
5556819a AK |
6524 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6528 | else |
8a2fc586 | 6529 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6530 | fi |
5556819a AK |
6531 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6533 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6534 | |
795ca3e5 | 6535 | fi |
5556819a | 6536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6537 | cat >>confdefs.h <<_ACEOF |
5556819a | 6538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6539 | _ACEOF |
6540 | ||
6541 | fi | |
6542 | ||
6543 | done | |
795ca3e5 | 6544 | |
ad6254c5 AK |
6545 | |
6546 | ||
6547 | for ac_func in fork vfork | |
6548 | do | |
5556819a AK |
6549 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6550 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6551 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6552 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6554 | else |
ad6254c5 | 6555 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6556 | /* confdefs.h. */ |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
8a2fc586 AK |
6561 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6563 | #define $ac_func innocuous_$ac_func | |
6564 | ||
ad6254c5 AK |
6565 | /* System header to define __stub macros and hopefully few prototypes, |
6566 | which can conflict with char $ac_func (); below. | |
6567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6568 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6569 | |
ad6254c5 AK |
6570 | #ifdef __STDC__ |
6571 | # include <limits.h> | |
6572 | #else | |
6573 | # include <assert.h> | |
795ca3e5 | 6574 | #endif |
8a2fc586 AK |
6575 | |
6576 | #undef $ac_func | |
6577 | ||
7a197a62 AK |
6578 | /* Override any GCC internal prototype to avoid an error. |
6579 | Use char because int might match the return type of a GCC | |
6580 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6581 | #ifdef __cplusplus |
ad6254c5 | 6582 | extern "C" |
ad6254c5 | 6583 | #endif |
ad6254c5 AK |
6584 | char $ac_func (); |
6585 | /* The GNU C library defines this for functions which it implements | |
6586 | to always fail with ENOSYS. Some functions are actually named | |
6587 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6588 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6589 | choke me |
795ca3e5 AK |
6590 | #endif |
6591 | ||
ad6254c5 AK |
6592 | int |
6593 | main () | |
6594 | { | |
7a197a62 | 6595 | return $ac_func (); |
ad6254c5 AK |
6596 | ; |
6597 | return 0; | |
6598 | } | |
6599 | _ACEOF | |
6600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6601 | if { (ac_try="$ac_link" |
6602 | case "(($ac_try" in | |
6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6604 | *) ac_try_echo=$ac_try;; | |
6605 | esac | |
5556819a | 6606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6607 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6608 | ac_status=$? |
8a2fc586 AK |
6609 | grep -v '^ *+' conftest.er1 >conftest.err |
6610 | rm -f conftest.er1 | |
6611 | cat conftest.err >&5 | |
5556819a | 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6613 | (exit $ac_status); } && { |
6614 | test -z "$ac_c_werror_flag" || | |
6615 | test ! -s conftest.err | |
5556819a AK |
6616 | } && test -s conftest$ac_exeext && |
6617 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6618 | eval "$as_ac_var=yes" |
795ca3e5 | 6619 | else |
5556819a | 6620 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6621 | sed 's/^/| /' conftest.$ac_ext >&5 |
6622 | ||
7a197a62 | 6623 | eval "$as_ac_var=no" |
795ca3e5 | 6624 | fi |
7a197a62 | 6625 | |
25fbec5b | 6626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6627 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6628 | fi |
5556819a AK |
6629 | ac_res=`eval echo '${'$as_ac_var'}'` |
6630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6631 | echo "${ECHO_T}$ac_res" >&6; } | |
6632 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6633 | cat >>confdefs.h <<_ACEOF |
5556819a | 6634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6635 | _ACEOF |
6636 | ||
6637 | fi | |
6638 | done | |
6639 | ||
6640 | if test "x$ac_cv_func_fork" = xyes; then | |
5556819a AK |
6641 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6642 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6643 | if test "${ac_cv_func_fork_works+set}" = set; then |
5556819a | 6644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6645 | else |
6646 | if test "$cross_compiling" = yes; then | |
6647 | ac_cv_func_fork_works=cross | |
6648 | else | |
6649 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6650 | /* confdefs.h. */ |
6651 | _ACEOF | |
6652 | cat confdefs.h >>conftest.$ac_ext | |
6653 | cat >>conftest.$ac_ext <<_ACEOF | |
6654 | /* end confdefs.h. */ | |
6655 | $ac_includes_default | |
6656 | int | |
6657 | main () | |
6658 | { | |
6659 | ||
6660 | /* By Ruediger Kuhlmann. */ | |
6661 | return fork () < 0; | |
6662 | ||
6663 | ; | |
6664 | return 0; | |
6665 | } | |
ad6254c5 AK |
6666 | _ACEOF |
6667 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6668 | if { (ac_try="$ac_link" |
6669 | case "(($ac_try" in | |
6670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6671 | *) ac_try_echo=$ac_try;; | |
6672 | esac | |
5556819a | 6673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6674 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6675 | ac_status=$? |
5556819a | 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6678 | { (case "(($ac_try" in |
6679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6680 | *) ac_try_echo=$ac_try;; | |
6681 | esac | |
5556819a | 6682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6683 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6684 | ac_status=$? |
5556819a | 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6686 | (exit $ac_status); }; }; then |
6687 | ac_cv_func_fork_works=yes | |
6688 | else | |
5556819a AK |
6689 | echo "$as_me: program exited with status $ac_status" >&5 |
6690 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6691 | sed 's/^/| /' conftest.$ac_ext >&5 |
6692 | ||
6693 | ( exit $ac_status ) | |
6694 | ac_cv_func_fork_works=no | |
6695 | fi | |
7a197a62 | 6696 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6697 | fi |
7a197a62 AK |
6698 | |
6699 | ||
ad6254c5 | 6700 | fi |
5556819a AK |
6701 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6702 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6703 | |
6704 | else | |
6705 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6706 | fi | |
6707 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6708 | case $host in | |
6709 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6710 | # Override, as these systems have only a dummy fork() stub | |
6711 | ac_cv_func_fork_works=no | |
6712 | ;; | |
6713 | *) | |
6714 | ac_cv_func_fork_works=yes | |
6715 | ;; | |
6716 | esac | |
5556819a AK |
6717 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6718 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6719 | fi |
6720 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6721 | if test "x$ac_cv_func_vfork" = xyes; then | |
5556819a AK |
6722 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6723 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6724 | if test "${ac_cv_func_vfork_works+set}" = set; then |
5556819a | 6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6726 | else |
6727 | if test "$cross_compiling" = yes; then | |
6728 | ac_cv_func_vfork_works=cross | |
6729 | else | |
6730 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6731 | /* confdefs.h. */ |
6732 | _ACEOF | |
6733 | cat confdefs.h >>conftest.$ac_ext | |
6734 | cat >>conftest.$ac_ext <<_ACEOF | |
6735 | /* end confdefs.h. */ | |
6736 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6737 | $ac_includes_default |
ad6254c5 | 6738 | #include <sys/wait.h> |
25fbec5b | 6739 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6740 | # include <vfork.h> |
6741 | #endif | |
6742 | /* On some sparc systems, changes by the child to local and incoming | |
6743 | argument registers are propagated back to the parent. The compiler | |
6744 | is told about this with #include <vfork.h>, but some compilers | |
6745 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6746 | static variable whose address is put into a register that is | |
6747 | clobbered by the vfork. */ | |
6748 | static void | |
6749 | #ifdef __cplusplus | |
6750 | sparc_address_test (int arg) | |
6751 | # else | |
6752 | sparc_address_test (arg) int arg; | |
6753 | #endif | |
6754 | { | |
6755 | static pid_t child; | |
6756 | if (!child) { | |
6757 | child = vfork (); | |
6758 | if (child < 0) { | |
6759 | perror ("vfork"); | |
6760 | _exit(2); | |
6761 | } | |
6762 | if (!child) { | |
6763 | arg = getpid(); | |
6764 | write(-1, "", 0); | |
6765 | _exit (arg); | |
6766 | } | |
6767 | } | |
6768 | } | |
6769 | ||
6770 | int | |
6771 | main () | |
6772 | { | |
6773 | pid_t parent = getpid (); | |
6774 | pid_t child; | |
6775 | ||
6776 | sparc_address_test (0); | |
6777 | ||
6778 | child = vfork (); | |
6779 | ||
6780 | if (child == 0) { | |
6781 | /* Here is another test for sparc vfork register problems. This | |
6782 | test uses lots of local variables, at least as many local | |
6783 | variables as main has allocated so far including compiler | |
6784 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6785 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6786 | reuse the register of parent for one of the local variables, | |
6787 | since it will think that parent can't possibly be used any more | |
6788 | in this routine. Assigning to the local variable will thus | |
6789 | munge parent in the parent process. */ | |
6790 | pid_t | |
6791 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6792 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6793 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6794 | use the same hardware register for all 8 local variables. */ | |
6795 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6796 | || p != p5 || p != p6 || p != p7) | |
6797 | _exit(1); | |
6798 | ||
6799 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6800 | from child file descriptors. If the child closes a descriptor | |
6801 | before it execs or exits, this munges the parent's descriptor | |
6802 | as well. Test for this by closing stdout in the child. */ | |
6803 | _exit(close(fileno(stdout)) != 0); | |
6804 | } else { | |
6805 | int status; | |
6806 | struct stat st; | |
6807 | ||
6808 | while (wait(&status) != child) | |
6809 | ; | |
7a197a62 | 6810 | return ( |
ad6254c5 AK |
6811 | /* Was there some problem with vforking? */ |
6812 | child < 0 | |
6813 | ||
6814 | /* Did the child fail? (This shouldn't happen.) */ | |
6815 | || status | |
6816 | ||
6817 | /* Did the vfork/compiler bug occur? */ | |
6818 | || parent != getpid() | |
6819 | ||
6820 | /* Did the file descriptor bug occur? */ | |
6821 | || fstat(fileno(stdout), &st) != 0 | |
6822 | ); | |
6823 | } | |
6824 | } | |
6825 | _ACEOF | |
6826 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6827 | if { (ac_try="$ac_link" |
6828 | case "(($ac_try" in | |
6829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6830 | *) ac_try_echo=$ac_try;; | |
6831 | esac | |
5556819a | 6832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6833 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6834 | ac_status=$? |
5556819a | 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6837 | { (case "(($ac_try" in |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
5556819a | 6841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6842 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6843 | ac_status=$? |
5556819a | 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6845 | (exit $ac_status); }; }; then |
6846 | ac_cv_func_vfork_works=yes | |
6847 | else | |
5556819a AK |
6848 | echo "$as_me: program exited with status $ac_status" >&5 |
6849 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6850 | sed 's/^/| /' conftest.$ac_ext >&5 |
6851 | ||
6852 | ( exit $ac_status ) | |
6853 | ac_cv_func_vfork_works=no | |
6854 | fi | |
7a197a62 | 6855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6856 | fi |
7a197a62 AK |
6857 | |
6858 | ||
ad6254c5 | 6859 | fi |
5556819a AK |
6860 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6861 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6862 | |
6863 | fi; | |
6864 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6865 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5556819a AK |
6866 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6867 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6868 | fi |
6869 | ||
6870 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6871 | ||
6872 | cat >>confdefs.h <<\_ACEOF | |
6873 | #define HAVE_WORKING_VFORK 1 | |
6874 | _ACEOF | |
6875 | ||
6876 | else | |
6877 | ||
6878 | cat >>confdefs.h <<\_ACEOF | |
6879 | #define vfork fork | |
6880 | _ACEOF | |
6881 | ||
6882 | fi | |
6883 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6884 | ||
6885 | cat >>confdefs.h <<\_ACEOF | |
6886 | #define HAVE_WORKING_FORK 1 | |
6887 | _ACEOF | |
6888 | ||
6889 | fi | |
6890 | ||
5556819a AK |
6891 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6892 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6893 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
5556819a | 6894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6895 | else |
6896 | rm -f conftest.sym conftest.file | |
6897 | echo >conftest.file | |
6898 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6899 | if test "$cross_compiling" = yes; then | |
6900 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6901 | else | |
6902 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6903 | /* confdefs.h. */ |
6904 | _ACEOF | |
6905 | cat confdefs.h >>conftest.$ac_ext | |
6906 | cat >>conftest.$ac_ext <<_ACEOF | |
6907 | /* end confdefs.h. */ | |
6908 | $ac_includes_default | |
6909 | int | |
6910 | main () | |
6911 | { | |
6912 | struct stat sbuf; | |
6913 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6914 | That is better in the sense that it means we will not |
6915 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6916 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6917 | ; |
6918 | return 0; | |
6919 | } | |
6920 | _ACEOF | |
6921 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6922 | if { (ac_try="$ac_link" |
6923 | case "(($ac_try" in | |
6924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6925 | *) ac_try_echo=$ac_try;; | |
6926 | esac | |
5556819a | 6927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6928 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6929 | ac_status=$? |
5556819a | 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6932 | { (case "(($ac_try" in |
6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6934 | *) ac_try_echo=$ac_try;; | |
6935 | esac | |
5556819a | 6936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6937 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6938 | ac_status=$? |
5556819a | 6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6940 | (exit $ac_status); }; }; then |
6941 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6942 | else | |
5556819a AK |
6943 | echo "$as_me: program exited with status $ac_status" >&5 |
6944 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6945 | sed 's/^/| /' conftest.$ac_ext >&5 |
6946 | ||
6947 | ( exit $ac_status ) | |
6948 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6949 | fi | |
7a197a62 | 6950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6951 | fi |
7a197a62 AK |
6952 | |
6953 | ||
ad6254c5 AK |
6954 | else |
6955 | # If the `ln -s' command failed, then we probably don't even | |
6956 | # have an lstat function. | |
6957 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6958 | fi | |
6959 | rm -f conftest.sym conftest.file | |
6960 | ||
6961 | fi | |
5556819a AK |
6962 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6963 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6964 | |
6965 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6966 | ||
6967 | cat >>confdefs.h <<_ACEOF | |
6968 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6969 | _ACEOF | |
6970 | ||
6971 | ||
6972 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6973 | case " $LIBOBJS " in |
8a2fc586 | 6974 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6975 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6976 | ;; | |
8a2fc586 AK |
6977 | esac |
6978 | ||
ad6254c5 AK |
6979 | fi |
6980 | ||
5556819a AK |
6981 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6982 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 6983 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
5556819a | 6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6985 | else |
6986 | if test "$cross_compiling" = yes; then | |
6987 | ac_cv_func_lstat_empty_string_bug=yes | |
6988 | else | |
6989 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6990 | /* confdefs.h. */ |
6991 | _ACEOF | |
6992 | cat confdefs.h >>conftest.$ac_ext | |
6993 | cat >>conftest.$ac_ext <<_ACEOF | |
6994 | /* end confdefs.h. */ | |
6995 | $ac_includes_default | |
6996 | int | |
6997 | main () | |
6998 | { | |
6999 | struct stat sbuf; | |
7a197a62 | 7000 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7001 | ; |
7002 | return 0; | |
7003 | } | |
7004 | _ACEOF | |
7005 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7006 | if { (ac_try="$ac_link" |
7007 | case "(($ac_try" in | |
7008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7009 | *) ac_try_echo=$ac_try;; | |
7010 | esac | |
5556819a | 7011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7012 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7013 | ac_status=$? |
5556819a | 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7016 | { (case "(($ac_try" in |
7017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7018 | *) ac_try_echo=$ac_try;; | |
7019 | esac | |
5556819a | 7020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7021 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7022 | ac_status=$? |
5556819a | 7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7024 | (exit $ac_status); }; }; then |
7a197a62 | 7025 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7026 | else |
5556819a AK |
7027 | echo "$as_me: program exited with status $ac_status" >&5 |
7028 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
7030 | ||
7031 | ( exit $ac_status ) | |
7a197a62 | 7032 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7033 | fi |
7a197a62 | 7034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7035 | fi |
7a197a62 AK |
7036 | |
7037 | ||
ad6254c5 | 7038 | fi |
5556819a AK |
7039 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7040 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7041 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7042 | case " $LIBOBJS " in |
8a2fc586 | 7043 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7044 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7045 | ;; | |
8a2fc586 AK |
7046 | esac |
7047 | ||
ad6254c5 AK |
7048 | |
7049 | cat >>confdefs.h <<_ACEOF | |
7050 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7051 | _ACEOF | |
7052 | ||
7053 | fi | |
7054 | ||
7055 | ||
7056 | for ac_header in stdlib.h | |
7057 | do | |
5556819a | 7058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
7060 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7064 | fi |
5556819a AK |
7065 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7066 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7067 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7068 | else |
7069 | # Is the header compilable? | |
5556819a AK |
7070 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7072 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7073 | /* confdefs.h. */ |
7074 | _ACEOF | |
7075 | cat confdefs.h >>conftest.$ac_ext | |
7076 | cat >>conftest.$ac_ext <<_ACEOF | |
7077 | /* end confdefs.h. */ | |
7078 | $ac_includes_default | |
7079 | #include <$ac_header> | |
7080 | _ACEOF | |
7081 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7082 | if { (ac_try="$ac_compile" |
7083 | case "(($ac_try" in | |
7084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7085 | *) ac_try_echo=$ac_try;; | |
7086 | esac | |
5556819a | 7087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7088 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7089 | ac_status=$? |
8a2fc586 AK |
7090 | grep -v '^ *+' conftest.er1 >conftest.err |
7091 | rm -f conftest.er1 | |
7092 | cat conftest.err >&5 | |
5556819a | 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7094 | (exit $ac_status); } && { |
7095 | test -z "$ac_c_werror_flag" || | |
7096 | test ! -s conftest.err | |
7097 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7098 | ac_header_compiler=yes |
7099 | else | |
5556819a | 7100 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7101 | sed 's/^/| /' conftest.$ac_ext >&5 |
7102 | ||
7a197a62 | 7103 | ac_header_compiler=no |
ad6254c5 | 7104 | fi |
7a197a62 AK |
7105 | |
7106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
7107 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7108 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7109 | |
7110 | # Is the header present? | |
5556819a AK |
7111 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7113 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7114 | /* confdefs.h. */ |
7115 | _ACEOF | |
7116 | cat confdefs.h >>conftest.$ac_ext | |
7117 | cat >>conftest.$ac_ext <<_ACEOF | |
7118 | /* end confdefs.h. */ | |
7119 | #include <$ac_header> | |
7120 | _ACEOF | |
7a197a62 AK |
7121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7122 | case "(($ac_try" in | |
7123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7124 | *) ac_try_echo=$ac_try;; | |
7125 | esac | |
5556819a | 7126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7127 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7128 | ac_status=$? |
7129 | grep -v '^ *+' conftest.er1 >conftest.err | |
7130 | rm -f conftest.er1 | |
7131 | cat conftest.err >&5 | |
5556819a | 7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7133 | (exit $ac_status); } >/dev/null && { |
7134 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7135 | test ! -s conftest.err | |
7136 | }; then | |
ad6254c5 AK |
7137 | ac_header_preproc=yes |
7138 | else | |
5556819a | 7139 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7140 | sed 's/^/| /' conftest.$ac_ext >&5 |
7141 | ||
7142 | ac_header_preproc=no | |
7143 | fi | |
7a197a62 | 7144 | |
ad6254c5 | 7145 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
7146 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7147 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7148 | |
7149 | # So? What about this header? | |
8a2fc586 AK |
7150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7151 | yes:no: ) | |
5556819a AK |
7152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7156 | ac_header_preproc=yes |
ad6254c5 | 7157 | ;; |
8a2fc586 | 7158 | no:yes:* ) |
5556819a AK |
7159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7171 | |
ad6254c5 AK |
7172 | ;; |
7173 | esac | |
5556819a AK |
7174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7178 | else |
8a2fc586 | 7179 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7180 | fi |
5556819a AK |
7181 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7183 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7184 | |
7185 | fi | |
5556819a | 7186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7187 | cat >>confdefs.h <<_ACEOF |
5556819a | 7188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7189 | _ACEOF |
7190 | ||
7191 | fi | |
7192 | ||
7193 | done | |
7194 | ||
5556819a AK |
7195 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7196 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7197 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
5556819a | 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7199 | else |
7200 | if test "$cross_compiling" = yes; then | |
7201 | ac_cv_func_malloc_0_nonnull=no | |
7202 | else | |
7203 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7204 | /* confdefs.h. */ |
7205 | _ACEOF | |
7206 | cat confdefs.h >>conftest.$ac_ext | |
7207 | cat >>conftest.$ac_ext <<_ACEOF | |
7208 | /* end confdefs.h. */ | |
25fbec5b | 7209 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7210 | # include <stdlib.h> |
7211 | #else | |
7212 | char *malloc (); | |
7213 | #endif | |
7214 | ||
7215 | int | |
7216 | main () | |
7217 | { | |
7a197a62 | 7218 | return ! malloc (0); |
ad6254c5 AK |
7219 | ; |
7220 | return 0; | |
7221 | } | |
7222 | _ACEOF | |
7223 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7224 | if { (ac_try="$ac_link" |
7225 | case "(($ac_try" in | |
7226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7227 | *) ac_try_echo=$ac_try;; | |
7228 | esac | |
5556819a | 7229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7230 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7231 | ac_status=$? |
5556819a | 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7233 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7234 | { (case "(($ac_try" in |
7235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7236 | *) ac_try_echo=$ac_try;; | |
7237 | esac | |
5556819a | 7238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7239 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7240 | ac_status=$? |
5556819a | 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7242 | (exit $ac_status); }; }; then |
7243 | ac_cv_func_malloc_0_nonnull=yes | |
7244 | else | |
5556819a AK |
7245 | echo "$as_me: program exited with status $ac_status" >&5 |
7246 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7247 | sed 's/^/| /' conftest.$ac_ext >&5 |
7248 | ||
7249 | ( exit $ac_status ) | |
7250 | ac_cv_func_malloc_0_nonnull=no | |
7251 | fi | |
7a197a62 | 7252 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7253 | fi |
7a197a62 AK |
7254 | |
7255 | ||
ad6254c5 | 7256 | fi |
5556819a AK |
7257 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7258 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7259 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7260 | ||
7261 | cat >>confdefs.h <<\_ACEOF | |
7262 | #define HAVE_MALLOC 1 | |
7263 | _ACEOF | |
7264 | ||
7265 | else | |
7266 | cat >>confdefs.h <<\_ACEOF | |
7267 | #define HAVE_MALLOC 0 | |
7268 | _ACEOF | |
7269 | ||
7a197a62 | 7270 | case " $LIBOBJS " in |
8a2fc586 | 7271 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7272 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7273 | ;; | |
8a2fc586 AK |
7274 | esac |
7275 | ||
ad6254c5 AK |
7276 | |
7277 | cat >>confdefs.h <<\_ACEOF | |
7278 | #define malloc rpl_malloc | |
7279 | _ACEOF | |
7280 | ||
7281 | fi | |
7282 | ||
7283 | ||
7284 | ||
5556819a AK |
7285 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7286 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7287 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
5556819a | 7288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7289 | else |
7290 | if test "$cross_compiling" = yes; then | |
7291 | ac_cv_func_memcmp_working=no | |
7292 | else | |
7293 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7294 | /* confdefs.h. */ |
7295 | _ACEOF | |
7296 | cat confdefs.h >>conftest.$ac_ext | |
7297 | cat >>conftest.$ac_ext <<_ACEOF | |
7298 | /* end confdefs.h. */ | |
8a2fc586 | 7299 | $ac_includes_default |
ad6254c5 AK |
7300 | int |
7301 | main () | |
7302 | { | |
7303 | ||
7304 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7305 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7306 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7307 | return 1; |
ad6254c5 AK |
7308 | |
7309 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7310 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7311 | William Lewis provided this test program. */ | |
7312 | { | |
7313 | char foo[21]; | |
7314 | char bar[21]; | |
7315 | int i; | |
7316 | for (i = 0; i < 4; i++) | |
7317 | { | |
8a2fc586 AK |
7318 | char *a = foo + i; |
7319 | char *b = bar + i; | |
7320 | strcpy (a, "--------01111111"); | |
7321 | strcpy (b, "--------10000000"); | |
7322 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7323 | return 1; |
ad6254c5 | 7324 | } |
7a197a62 | 7325 | return 0; |
ad6254c5 AK |
7326 | } |
7327 | ||
7328 | ; | |
7329 | return 0; | |
7330 | } | |
7331 | _ACEOF | |
7332 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7333 | if { (ac_try="$ac_link" |
7334 | case "(($ac_try" in | |
7335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7336 | *) ac_try_echo=$ac_try;; | |
7337 | esac | |
5556819a | 7338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7339 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7340 | ac_status=$? |
5556819a | 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7343 | { (case "(($ac_try" in |
7344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7345 | *) ac_try_echo=$ac_try;; | |
7346 | esac | |
5556819a | 7347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7348 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7349 | ac_status=$? |
5556819a | 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7351 | (exit $ac_status); }; }; then |
7352 | ac_cv_func_memcmp_working=yes | |
7353 | else | |
5556819a AK |
7354 | echo "$as_me: program exited with status $ac_status" >&5 |
7355 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7356 | sed 's/^/| /' conftest.$ac_ext >&5 |
7357 | ||
7358 | ( exit $ac_status ) | |
7359 | ac_cv_func_memcmp_working=no | |
7360 | fi | |
7a197a62 | 7361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7362 | fi |
7a197a62 AK |
7363 | |
7364 | ||
ad6254c5 | 7365 | fi |
5556819a AK |
7366 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7367 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7368 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7369 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7370 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7371 | ;; | |
8a2fc586 AK |
7372 | esac |
7373 | ||
ad6254c5 AK |
7374 | |
7375 | ||
7376 | ||
7377 | for ac_header in stdlib.h unistd.h | |
7378 | do | |
5556819a | 7379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7380 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
7381 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7385 | fi |
5556819a AK |
7386 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7388 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7389 | else |
7390 | # Is the header compilable? | |
5556819a AK |
7391 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7392 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7393 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7394 | /* confdefs.h. */ |
7395 | _ACEOF | |
7396 | cat confdefs.h >>conftest.$ac_ext | |
7397 | cat >>conftest.$ac_ext <<_ACEOF | |
7398 | /* end confdefs.h. */ | |
7399 | $ac_includes_default | |
7400 | #include <$ac_header> | |
7401 | _ACEOF | |
7402 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7403 | if { (ac_try="$ac_compile" |
7404 | case "(($ac_try" in | |
7405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7406 | *) ac_try_echo=$ac_try;; | |
7407 | esac | |
5556819a | 7408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7409 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7410 | ac_status=$? |
8a2fc586 AK |
7411 | grep -v '^ *+' conftest.er1 >conftest.err |
7412 | rm -f conftest.er1 | |
7413 | cat conftest.err >&5 | |
5556819a | 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7415 | (exit $ac_status); } && { |
7416 | test -z "$ac_c_werror_flag" || | |
7417 | test ! -s conftest.err | |
7418 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7419 | ac_header_compiler=yes |
7420 | else | |
5556819a | 7421 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7422 | sed 's/^/| /' conftest.$ac_ext >&5 |
7423 | ||
7a197a62 | 7424 | ac_header_compiler=no |
ad6254c5 | 7425 | fi |
7a197a62 AK |
7426 | |
7427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
7428 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7429 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7430 | |
7431 | # Is the header present? | |
5556819a AK |
7432 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7433 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7434 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7435 | /* confdefs.h. */ |
7436 | _ACEOF | |
7437 | cat confdefs.h >>conftest.$ac_ext | |
7438 | cat >>conftest.$ac_ext <<_ACEOF | |
7439 | /* end confdefs.h. */ | |
7440 | #include <$ac_header> | |
7441 | _ACEOF | |
7a197a62 AK |
7442 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7443 | case "(($ac_try" in | |
7444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7445 | *) ac_try_echo=$ac_try;; | |
7446 | esac | |
5556819a | 7447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7448 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7449 | ac_status=$? |
7450 | grep -v '^ *+' conftest.er1 >conftest.err | |
7451 | rm -f conftest.er1 | |
7452 | cat conftest.err >&5 | |
5556819a | 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7454 | (exit $ac_status); } >/dev/null && { |
7455 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7456 | test ! -s conftest.err | |
7457 | }; then | |
ad6254c5 AK |
7458 | ac_header_preproc=yes |
7459 | else | |
5556819a | 7460 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7461 | sed 's/^/| /' conftest.$ac_ext >&5 |
7462 | ||
7463 | ac_header_preproc=no | |
7464 | fi | |
7a197a62 | 7465 | |
ad6254c5 | 7466 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
7467 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7468 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7469 | |
7470 | # So? What about this header? | |
8a2fc586 AK |
7471 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7472 | yes:no: ) | |
5556819a AK |
7473 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7474 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7476 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7477 | ac_header_preproc=yes |
ad6254c5 | 7478 | ;; |
8a2fc586 | 7479 | no:yes:* ) |
5556819a AK |
7480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7485 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7487 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7489 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7491 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7492 | |
ad6254c5 AK |
7493 | ;; |
7494 | esac | |
5556819a AK |
7495 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7499 | else |
8a2fc586 | 7500 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7501 | fi |
5556819a AK |
7502 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7503 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7504 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7505 | |
7506 | fi | |
5556819a | 7507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7508 | cat >>confdefs.h <<_ACEOF |
5556819a | 7509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7510 | _ACEOF |
7511 | ||
7512 | fi | |
7513 | ||
7514 | done | |
7515 | ||
7516 | ||
7517 | for ac_func in getpagesize | |
7518 | do | |
5556819a AK |
7519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7520 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7522 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
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. */ | |
8a2fc586 AK |
7531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7533 | #define $ac_func innocuous_$ac_func | |
7534 | ||
ad6254c5 AK |
7535 | /* System header to define __stub macros and hopefully few prototypes, |
7536 | which can conflict with char $ac_func (); below. | |
7537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7538 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7539 | |
ad6254c5 AK |
7540 | #ifdef __STDC__ |
7541 | # include <limits.h> | |
7542 | #else | |
7543 | # include <assert.h> | |
7544 | #endif | |
8a2fc586 AK |
7545 | |
7546 | #undef $ac_func | |
7547 | ||
7a197a62 AK |
7548 | /* Override any GCC internal prototype to avoid an error. |
7549 | Use char because int might match the return type of a GCC | |
7550 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7551 | #ifdef __cplusplus |
7552 | extern "C" | |
ad6254c5 | 7553 | #endif |
ad6254c5 AK |
7554 | char $ac_func (); |
7555 | /* The GNU C library defines this for functions which it implements | |
7556 | to always fail with ENOSYS. Some functions are actually named | |
7557 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7558 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7559 | choke me |
ad6254c5 AK |
7560 | #endif |
7561 | ||
7562 | int | |
7563 | main () | |
7564 | { | |
7a197a62 | 7565 | return $ac_func (); |
ad6254c5 AK |
7566 | ; |
7567 | return 0; | |
7568 | } | |
7569 | _ACEOF | |
7570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7571 | if { (ac_try="$ac_link" |
7572 | case "(($ac_try" in | |
7573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7574 | *) ac_try_echo=$ac_try;; | |
7575 | esac | |
5556819a | 7576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7577 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7578 | ac_status=$? |
8a2fc586 AK |
7579 | grep -v '^ *+' conftest.er1 >conftest.err |
7580 | rm -f conftest.er1 | |
7581 | cat conftest.err >&5 | |
5556819a | 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7583 | (exit $ac_status); } && { |
7584 | test -z "$ac_c_werror_flag" || | |
7585 | test ! -s conftest.err | |
5556819a AK |
7586 | } && test -s conftest$ac_exeext && |
7587 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7588 | eval "$as_ac_var=yes" |
7589 | else | |
5556819a | 7590 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7591 | sed 's/^/| /' conftest.$ac_ext >&5 |
7592 | ||
7a197a62 | 7593 | eval "$as_ac_var=no" |
ad6254c5 | 7594 | fi |
7a197a62 | 7595 | |
25fbec5b | 7596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7597 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7598 | fi |
5556819a AK |
7599 | ac_res=`eval echo '${'$as_ac_var'}'` |
7600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7601 | echo "${ECHO_T}$ac_res" >&6; } | |
7602 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7603 | cat >>confdefs.h <<_ACEOF |
5556819a | 7604 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7605 | _ACEOF |
7606 | ||
7607 | fi | |
7608 | done | |
7609 | ||
5556819a AK |
7610 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7611 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7612 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
5556819a | 7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7614 | else |
7615 | if test "$cross_compiling" = yes; then | |
7616 | ac_cv_func_mmap_fixed_mapped=no | |
7617 | else | |
7618 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7619 | /* confdefs.h. */ |
7620 | _ACEOF | |
7621 | cat confdefs.h >>conftest.$ac_ext | |
7622 | cat >>conftest.$ac_ext <<_ACEOF | |
7623 | /* end confdefs.h. */ | |
7624 | $ac_includes_default | |
7625 | /* malloc might have been renamed as rpl_malloc. */ | |
7626 | #undef malloc | |
7627 | ||
7628 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7629 | Here is a matrix of mmap possibilities: | |
7630 | mmap private not fixed | |
7631 | mmap private fixed at somewhere currently unmapped | |
7632 | mmap private fixed at somewhere already mapped | |
7633 | mmap shared not fixed | |
7634 | mmap shared fixed at somewhere currently unmapped | |
7635 | mmap shared fixed at somewhere already mapped | |
7636 | For private mappings, we should verify that changes cannot be read() | |
7637 | back from the file, nor mmap's back from the file at a different | |
7638 | address. (There have been systems where private was not correctly | |
7639 | implemented like the infamous i386 svr4.0, and systems where the | |
7640 | VM page cache was not coherent with the file system buffer cache | |
7641 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7642 | For shared mappings, we should conversely verify that changes get | |
7643 | propagated back to all the places they're supposed to be. | |
7644 | ||
7645 | Grep wants private fixed already mapped. | |
7646 | The main things grep needs to know about mmap are: | |
7647 | * does it exist and is it safe to write into the mmap'd area | |
7648 | * how to use it (BSD variants) */ | |
7649 | ||
7650 | #include <fcntl.h> | |
7651 | #include <sys/mman.h> | |
7652 | ||
25fbec5b | 7653 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7654 | char *malloc (); |
7655 | #endif | |
7656 | ||
7657 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7658 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7659 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7660 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7661 | # define HAVE_SYS_PARAM_H 1 |
7662 | # endif | |
7663 | ||
7664 | # ifdef _SC_PAGESIZE | |
7665 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7666 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7667 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7668 | # include <sys/param.h> |
7669 | # ifdef EXEC_PAGESIZE | |
7670 | # define getpagesize() EXEC_PAGESIZE | |
7671 | # else /* no EXEC_PAGESIZE */ | |
7672 | # ifdef NBPG | |
7673 | # define getpagesize() NBPG * CLSIZE | |
7674 | # ifndef CLSIZE | |
7675 | # define CLSIZE 1 | |
7676 | # endif /* no CLSIZE */ | |
7677 | # else /* no NBPG */ | |
7678 | # ifdef NBPC | |
7679 | # define getpagesize() NBPC | |
7680 | # else /* no NBPC */ | |
7681 | # ifdef PAGESIZE | |
7682 | # define getpagesize() PAGESIZE | |
7683 | # endif /* PAGESIZE */ | |
7684 | # endif /* no NBPC */ | |
7685 | # endif /* no NBPG */ | |
7686 | # endif /* no EXEC_PAGESIZE */ | |
7687 | # else /* no HAVE_SYS_PARAM_H */ | |
7688 | # define getpagesize() 8192 /* punt totally */ | |
7689 | # endif /* no HAVE_SYS_PARAM_H */ | |
7690 | # endif /* no _SC_PAGESIZE */ | |
7691 | ||
7692 | #endif /* no HAVE_GETPAGESIZE */ | |
7693 | ||
7694 | int | |
7695 | main () | |
7696 | { | |
7697 | char *data, *data2, *data3; | |
7698 | int i, pagesize; | |
7699 | int fd; | |
7700 | ||
7701 | pagesize = getpagesize (); | |
7702 | ||
7703 | /* First, make a file with some known garbage in it. */ | |
7704 | data = (char *) malloc (pagesize); | |
7705 | if (!data) | |
7a197a62 | 7706 | return 1; |
ad6254c5 AK |
7707 | for (i = 0; i < pagesize; ++i) |
7708 | *(data + i) = rand (); | |
7709 | umask (0); | |
7710 | fd = creat ("conftest.mmap", 0600); | |
7711 | if (fd < 0) | |
7a197a62 | 7712 | return 1; |
ad6254c5 | 7713 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7714 | return 1; |
ad6254c5 AK |
7715 | close (fd); |
7716 | ||
7717 | /* Next, try to mmap the file at a fixed address which already has | |
7718 | something else allocated at it. If we can, also make sure that | |
7719 | we see the same garbage. */ | |
7720 | fd = open ("conftest.mmap", O_RDWR); | |
7721 | if (fd < 0) | |
7a197a62 | 7722 | return 1; |
ad6254c5 AK |
7723 | data2 = (char *) malloc (2 * pagesize); |
7724 | if (!data2) | |
7a197a62 AK |
7725 | return 1; |
7726 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7727 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7728 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7729 | return 1; |
ad6254c5 AK |
7730 | for (i = 0; i < pagesize; ++i) |
7731 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7732 | return 1; |
ad6254c5 AK |
7733 | |
7734 | /* Finally, make sure that changes to the mapped area do not | |
7735 | percolate back to the file as seen by read(). (This is a bug on | |
7736 | some variants of i386 svr4.0.) */ | |
7737 | for (i = 0; i < pagesize; ++i) | |
7738 | *(data2 + i) = *(data2 + i) + 1; | |
7739 | data3 = (char *) malloc (pagesize); | |
7740 | if (!data3) | |
7a197a62 | 7741 | return 1; |
ad6254c5 | 7742 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7743 | return 1; |
ad6254c5 AK |
7744 | for (i = 0; i < pagesize; ++i) |
7745 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7746 | return 1; |
ad6254c5 | 7747 | close (fd); |
7a197a62 | 7748 | return 0; |
ad6254c5 AK |
7749 | } |
7750 | _ACEOF | |
7751 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7752 | if { (ac_try="$ac_link" |
7753 | case "(($ac_try" in | |
7754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7755 | *) ac_try_echo=$ac_try;; | |
7756 | esac | |
5556819a | 7757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7758 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7759 | ac_status=$? |
5556819a | 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7762 | { (case "(($ac_try" in |
7763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7764 | *) ac_try_echo=$ac_try;; | |
7765 | esac | |
5556819a | 7766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7767 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7768 | ac_status=$? |
5556819a | 7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7770 | (exit $ac_status); }; }; then |
7771 | ac_cv_func_mmap_fixed_mapped=yes | |
7772 | else | |
5556819a AK |
7773 | echo "$as_me: program exited with status $ac_status" >&5 |
7774 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7775 | sed 's/^/| /' conftest.$ac_ext >&5 |
7776 | ||
7777 | ( exit $ac_status ) | |
7778 | ac_cv_func_mmap_fixed_mapped=no | |
7779 | fi | |
7a197a62 | 7780 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7781 | fi |
7a197a62 AK |
7782 | |
7783 | ||
ad6254c5 | 7784 | fi |
5556819a AK |
7785 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7786 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7787 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7788 | ||
7789 | cat >>confdefs.h <<\_ACEOF | |
7790 | #define HAVE_MMAP 1 | |
7791 | _ACEOF | |
7792 | ||
7793 | fi | |
7794 | rm -f conftest.mmap | |
7795 | ||
5556819a AK |
7796 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7797 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7798 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
5556819a | 7799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7800 | else |
7801 | if test "$cross_compiling" = yes; then | |
7802 | ac_cv_func_stat_empty_string_bug=yes | |
7803 | else | |
7804 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7805 | /* confdefs.h. */ |
7806 | _ACEOF | |
7807 | cat confdefs.h >>conftest.$ac_ext | |
7808 | cat >>conftest.$ac_ext <<_ACEOF | |
7809 | /* end confdefs.h. */ | |
7810 | $ac_includes_default | |
7811 | int | |
7812 | main () | |
7813 | { | |
7814 | struct stat sbuf; | |
7a197a62 | 7815 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7816 | ; |
7817 | return 0; | |
7818 | } | |
7819 | _ACEOF | |
7820 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7821 | if { (ac_try="$ac_link" |
7822 | case "(($ac_try" in | |
7823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7824 | *) ac_try_echo=$ac_try;; | |
7825 | esac | |
5556819a | 7826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7827 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7828 | ac_status=$? |
5556819a | 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7830 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7831 | { (case "(($ac_try" in |
7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7833 | *) ac_try_echo=$ac_try;; | |
7834 | esac | |
5556819a | 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7836 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7837 | ac_status=$? |
5556819a | 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7839 | (exit $ac_status); }; }; then |
7a197a62 | 7840 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7841 | else |
5556819a AK |
7842 | echo "$as_me: program exited with status $ac_status" >&5 |
7843 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7844 | sed 's/^/| /' conftest.$ac_ext >&5 |
7845 | ||
7846 | ( exit $ac_status ) | |
7a197a62 | 7847 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7848 | fi |
7a197a62 | 7849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7850 | fi |
7a197a62 AK |
7851 | |
7852 | ||
ad6254c5 | 7853 | fi |
5556819a AK |
7854 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7855 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7856 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7857 | case " $LIBOBJS " in |
8a2fc586 | 7858 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7859 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7860 | ;; | |
8a2fc586 AK |
7861 | esac |
7862 | ||
ad6254c5 AK |
7863 | |
7864 | cat >>confdefs.h <<_ACEOF | |
7865 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7866 | _ACEOF | |
7867 | ||
7868 | fi | |
7869 | ||
5556819a AK |
7870 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7871 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7872 | if test "${ac_cv_func_strtod+set}" = set; then |
5556819a | 7873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7874 | else |
7875 | if test "$cross_compiling" = yes; then | |
7876 | ac_cv_func_strtod=no | |
7877 | else | |
7878 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7879 | /* confdefs.h. */ |
7880 | _ACEOF | |
7881 | cat confdefs.h >>conftest.$ac_ext | |
7882 | cat >>conftest.$ac_ext <<_ACEOF | |
7883 | /* end confdefs.h. */ | |
7884 | ||
7a197a62 AK |
7885 | $ac_includes_default |
7886 | #ifndef strtod | |
ad6254c5 | 7887 | double strtod (); |
7a197a62 | 7888 | #endif |
ad6254c5 AK |
7889 | int |
7890 | main() | |
7891 | { | |
7892 | { | |
7893 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7894 | char *string = " +69"; | |
7895 | char *term; | |
7896 | double value; | |
7897 | value = strtod (string, &term); | |
7898 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7899 | return 1; |
ad6254c5 AK |
7900 | } |
7901 | ||
7902 | { | |
7903 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7904 | terminating character under some conditions. */ | |
7905 | char *string = "NaN"; | |
7906 | char *term; | |
7907 | strtod (string, &term); | |
7908 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7909 | return 1; |
ad6254c5 | 7910 | } |
7a197a62 | 7911 | return 0; |
ad6254c5 AK |
7912 | } |
7913 | ||
7914 | _ACEOF | |
7915 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7916 | if { (ac_try="$ac_link" |
7917 | case "(($ac_try" in | |
7918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7919 | *) ac_try_echo=$ac_try;; | |
7920 | esac | |
5556819a | 7921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7922 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7923 | ac_status=$? |
5556819a | 7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7926 | { (case "(($ac_try" in |
7927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7928 | *) ac_try_echo=$ac_try;; | |
7929 | esac | |
5556819a | 7930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7931 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7932 | ac_status=$? |
5556819a | 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7934 | (exit $ac_status); }; }; then |
7935 | ac_cv_func_strtod=yes | |
7936 | else | |
5556819a AK |
7937 | echo "$as_me: program exited with status $ac_status" >&5 |
7938 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7939 | sed 's/^/| /' conftest.$ac_ext >&5 |
7940 | ||
7941 | ( exit $ac_status ) | |
7942 | ac_cv_func_strtod=no | |
7943 | fi | |
7a197a62 | 7944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7945 | fi |
7a197a62 AK |
7946 | |
7947 | ||
ad6254c5 | 7948 | fi |
5556819a AK |
7949 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7950 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7951 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7952 | case " $LIBOBJS " in |
8a2fc586 | 7953 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7954 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7955 | ;; | |
8a2fc586 AK |
7956 | esac |
7957 | ||
5556819a AK |
7958 | { echo "$as_me:$LINENO: checking for pow" >&5 |
7959 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 7960 | if test "${ac_cv_func_pow+set}" = set; then |
5556819a | 7961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7962 | else |
7963 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7964 | /* confdefs.h. */ |
7965 | _ACEOF | |
7966 | cat confdefs.h >>conftest.$ac_ext | |
7967 | cat >>conftest.$ac_ext <<_ACEOF | |
7968 | /* end confdefs.h. */ | |
8a2fc586 AK |
7969 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7971 | #define pow innocuous_pow | |
7972 | ||
ad6254c5 AK |
7973 | /* System header to define __stub macros and hopefully few prototypes, |
7974 | which can conflict with char pow (); below. | |
7975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7976 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7977 | |
ad6254c5 AK |
7978 | #ifdef __STDC__ |
7979 | # include <limits.h> | |
7980 | #else | |
7981 | # include <assert.h> | |
7982 | #endif | |
8a2fc586 AK |
7983 | |
7984 | #undef pow | |
7985 | ||
7a197a62 AK |
7986 | /* Override any GCC internal prototype to avoid an error. |
7987 | Use char because int might match the return type of a GCC | |
7988 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7989 | #ifdef __cplusplus |
7990 | extern "C" | |
ad6254c5 | 7991 | #endif |
ad6254c5 AK |
7992 | char pow (); |
7993 | /* The GNU C library defines this for functions which it implements | |
7994 | to always fail with ENOSYS. Some functions are actually named | |
7995 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7996 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7997 | choke me |
ad6254c5 AK |
7998 | #endif |
7999 | ||
8000 | int | |
8001 | main () | |
8002 | { | |
7a197a62 | 8003 | return pow (); |
ad6254c5 AK |
8004 | ; |
8005 | return 0; | |
8006 | } | |
8007 | _ACEOF | |
8008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8009 | if { (ac_try="$ac_link" |
8010 | case "(($ac_try" in | |
8011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8012 | *) ac_try_echo=$ac_try;; | |
8013 | esac | |
5556819a | 8014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8015 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8016 | ac_status=$? |
8a2fc586 AK |
8017 | grep -v '^ *+' conftest.er1 >conftest.err |
8018 | rm -f conftest.er1 | |
8019 | cat conftest.err >&5 | |
5556819a | 8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8021 | (exit $ac_status); } && { |
8022 | test -z "$ac_c_werror_flag" || | |
8023 | test ! -s conftest.err | |
5556819a AK |
8024 | } && test -s conftest$ac_exeext && |
8025 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8026 | ac_cv_func_pow=yes |
8027 | else | |
5556819a | 8028 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8029 | sed 's/^/| /' conftest.$ac_ext >&5 |
8030 | ||
7a197a62 | 8031 | ac_cv_func_pow=no |
ad6254c5 | 8032 | fi |
7a197a62 | 8033 | |
25fbec5b | 8034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8035 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8036 | fi |
5556819a AK |
8037 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8038 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8039 | |
8040 | if test $ac_cv_func_pow = no; then | |
5556819a AK |
8041 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8042 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8043 | if test "${ac_cv_lib_m_pow+set}" = set; then |
5556819a | 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8045 | else |
8046 | ac_check_lib_save_LIBS=$LIBS | |
8047 | LIBS="-lm $LIBS" | |
8048 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8049 | /* confdefs.h. */ |
8050 | _ACEOF | |
8051 | cat confdefs.h >>conftest.$ac_ext | |
8052 | cat >>conftest.$ac_ext <<_ACEOF | |
8053 | /* end confdefs.h. */ | |
8054 | ||
7a197a62 AK |
8055 | /* Override any GCC internal prototype to avoid an error. |
8056 | Use char because int might match the return type of a GCC | |
8057 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8058 | #ifdef __cplusplus |
8059 | extern "C" | |
8060 | #endif | |
ad6254c5 AK |
8061 | char pow (); |
8062 | int | |
8063 | main () | |
8064 | { | |
7a197a62 | 8065 | return pow (); |
ad6254c5 AK |
8066 | ; |
8067 | return 0; | |
8068 | } | |
8069 | _ACEOF | |
8070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8071 | if { (ac_try="$ac_link" |
8072 | case "(($ac_try" in | |
8073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8074 | *) ac_try_echo=$ac_try;; | |
8075 | esac | |
5556819a | 8076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8077 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8078 | ac_status=$? |
8a2fc586 AK |
8079 | grep -v '^ *+' conftest.er1 >conftest.err |
8080 | rm -f conftest.er1 | |
8081 | cat conftest.err >&5 | |
5556819a | 8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8083 | (exit $ac_status); } && { |
8084 | test -z "$ac_c_werror_flag" || | |
8085 | test ! -s conftest.err | |
5556819a AK |
8086 | } && test -s conftest$ac_exeext && |
8087 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8088 | ac_cv_lib_m_pow=yes |
8089 | else | |
5556819a | 8090 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
8092 | ||
7a197a62 | 8093 | ac_cv_lib_m_pow=no |
ad6254c5 | 8094 | fi |
7a197a62 | 8095 | |
25fbec5b | 8096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8097 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8098 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8099 | fi |
5556819a AK |
8100 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8101 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8102 | if test $ac_cv_lib_m_pow = yes; then |
8103 | POW_LIB=-lm | |
8104 | else | |
5556819a AK |
8105 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8106 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8107 | fi |
72b2cb61 | 8108 | |
d0191583 | 8109 | fi |
72b2cb61 | 8110 | |
ad6254c5 AK |
8111 | fi |
8112 | ||
ad6254c5 | 8113 | |
d0191583 JM |
8114 | for ac_func in vprintf |
8115 | do | |
5556819a AK |
8116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8117 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8119 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8121 | else |
d0191583 JM |
8122 | cat >conftest.$ac_ext <<_ACEOF |
8123 | /* confdefs.h. */ | |
8124 | _ACEOF | |
8125 | cat confdefs.h >>conftest.$ac_ext | |
8126 | cat >>conftest.$ac_ext <<_ACEOF | |
8127 | /* end confdefs.h. */ | |
8128 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8130 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8131 | |
d0191583 JM |
8132 | /* System header to define __stub macros and hopefully few prototypes, |
8133 | which can conflict with char $ac_func (); below. | |
8134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8135 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8136 | |
d0191583 JM |
8137 | #ifdef __STDC__ |
8138 | # include <limits.h> | |
8139 | #else | |
8140 | # include <assert.h> | |
8141 | #endif | |
ad6254c5 | 8142 | |
d0191583 | 8143 | #undef $ac_func |
72b2cb61 | 8144 | |
d0191583 JM |
8145 | /* Override any GCC internal prototype to avoid an error. |
8146 | Use char because int might match the return type of a GCC | |
8147 | builtin and then its argument prototype would still apply. */ | |
8148 | #ifdef __cplusplus | |
8149 | extern "C" | |
8150 | #endif | |
8151 | char $ac_func (); | |
8152 | /* The GNU C library defines this for functions which it implements | |
8153 | to always fail with ENOSYS. Some functions are actually named | |
8154 | something starting with __ and the normal name is an alias. */ | |
8155 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8156 | choke me | |
8157 | #endif | |
8158 | ||
8159 | int | |
8160 | main () | |
8161 | { | |
8162 | return $ac_func (); | |
8163 | ; | |
8164 | return 0; | |
8165 | } | |
72b2cb61 | 8166 | _ACEOF |
d0191583 JM |
8167 | rm -f conftest.$ac_objext conftest$ac_exeext |
8168 | if { (ac_try="$ac_link" | |
8169 | case "(($ac_try" in | |
8170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8171 | *) ac_try_echo=$ac_try;; | |
8172 | esac | |
5556819a | 8173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8174 | (eval "$ac_link") 2>conftest.er1 |
8175 | ac_status=$? | |
8176 | grep -v '^ *+' conftest.er1 >conftest.err | |
8177 | rm -f conftest.er1 | |
8178 | cat conftest.err >&5 | |
5556819a | 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8180 | (exit $ac_status); } && { |
8181 | test -z "$ac_c_werror_flag" || | |
8182 | test ! -s conftest.err | |
5556819a AK |
8183 | } && test -s conftest$ac_exeext && |
8184 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8185 | eval "$as_ac_var=yes" |
8186 | else | |
5556819a | 8187 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8188 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8189 | |
d0191583 | 8190 | eval "$as_ac_var=no" |
ad6254c5 AK |
8191 | fi |
8192 | ||
d0191583 JM |
8193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8194 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8195 | fi |
5556819a AK |
8196 | ac_res=`eval echo '${'$as_ac_var'}'` |
8197 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8198 | echo "${ECHO_T}$ac_res" >&6; } | |
8199 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8200 | cat >>confdefs.h <<_ACEOF |
5556819a | 8201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8202 | _ACEOF |
7a197a62 | 8203 | |
5556819a AK |
8204 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8205 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8206 | if test "${ac_cv_func__doprnt+set}" = set; then |
5556819a | 8207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8208 | else |
d0191583 JM |
8209 | cat >conftest.$ac_ext <<_ACEOF |
8210 | /* confdefs.h. */ | |
8211 | _ACEOF | |
8212 | cat confdefs.h >>conftest.$ac_ext | |
8213 | cat >>conftest.$ac_ext <<_ACEOF | |
8214 | /* end confdefs.h. */ | |
8215 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8217 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8218 | |
d0191583 JM |
8219 | /* System header to define __stub macros and hopefully few prototypes, |
8220 | which can conflict with char _doprnt (); below. | |
8221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8222 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8223 | |
d0191583 JM |
8224 | #ifdef __STDC__ |
8225 | # include <limits.h> | |
8226 | #else | |
8227 | # include <assert.h> | |
8228 | #endif | |
72b2cb61 | 8229 | |
d0191583 JM |
8230 | #undef _doprnt |
8231 | ||
8232 | /* Override any GCC internal prototype to avoid an error. | |
8233 | Use char because int might match the return type of a GCC | |
8234 | builtin and then its argument prototype would still apply. */ | |
8235 | #ifdef __cplusplus | |
8236 | extern "C" | |
8237 | #endif | |
8238 | char _doprnt (); | |
8239 | /* The GNU C library defines this for functions which it implements | |
8240 | to always fail with ENOSYS. Some functions are actually named | |
8241 | something starting with __ and the normal name is an alias. */ | |
8242 | #if defined __stub__doprnt || defined __stub____doprnt | |
8243 | choke me | |
8244 | #endif | |
8245 | ||
8246 | int | |
8247 | main () | |
8248 | { | |
8249 | return _doprnt (); | |
8250 | ; | |
8251 | return 0; | |
8252 | } | |
72b2cb61 | 8253 | _ACEOF |
d0191583 JM |
8254 | rm -f conftest.$ac_objext conftest$ac_exeext |
8255 | if { (ac_try="$ac_link" | |
8256 | case "(($ac_try" in | |
8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8258 | *) ac_try_echo=$ac_try;; | |
8259 | esac | |
5556819a | 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8261 | (eval "$ac_link") 2>conftest.er1 |
8262 | ac_status=$? | |
8263 | grep -v '^ *+' conftest.er1 >conftest.err | |
8264 | rm -f conftest.er1 | |
8265 | cat conftest.err >&5 | |
5556819a | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8267 | (exit $ac_status); } && { |
8268 | test -z "$ac_c_werror_flag" || | |
8269 | test ! -s conftest.err | |
5556819a AK |
8270 | } && test -s conftest$ac_exeext && |
8271 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8272 | ac_cv_func__doprnt=yes |
8273 | else | |
5556819a | 8274 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8275 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8276 | |
d0191583 | 8277 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8278 | fi |
8279 | ||
d0191583 JM |
8280 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8281 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8282 | fi |
5556819a AK |
8283 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8284 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8285 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8286 | |
d0191583 JM |
8287 | cat >>confdefs.h <<\_ACEOF |
8288 | #define HAVE_DOPRNT 1 | |
8289 | _ACEOF | |
ad6254c5 | 8290 | |
7a197a62 AK |
8291 | fi |
8292 | ||
d0191583 JM |
8293 | fi |
8294 | done | |
8b1a3214 | 8295 | |
ad6254c5 | 8296 | |
7a197a62 | 8297 | |
d0191583 | 8298 | ################################################################################ |
ad6254c5 | 8299 | |
ad6254c5 AK |
8300 | |
8301 | ################################################################################ | |
5556819a AK |
8302 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8303 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8304 | OWNER="root" |
8305 | ||
8306 | ||
8307 | # Check whether --with-user was given. | |
8308 | if test "${with_user+set}" = set; then | |
8309 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8310 | fi |
8311 | ||
5556819a AK |
8312 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8313 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8314 | |
d0191583 JM |
8315 | if test x$OWNER != x; then |
8316 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8317 | fi |
8318 | ||
8319 | ################################################################################ | |
5556819a AK |
8320 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8321 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8322 | GROUP="root" |
ad6254c5 | 8323 | |
d0191583 JM |
8324 | # Check whether --with-group was given. |
8325 | if test "${with_group+set}" = set; then | |
8326 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8327 | fi |
8328 | ||
5556819a AK |
8329 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8330 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8331 | |
8332 | if test x$GROUP != x; then | |
8333 | GROUP="-g $GROUP" | |
8334 | fi | |
ad6254c5 AK |
8335 | |
8336 | ################################################################################ | |
5556819a AK |
8337 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8338 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8339 | # Check whether --enable-lvm1_fallback was given. |
8340 | if test "${enable_lvm1_fallback+set}" = set; then | |
8341 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8342 | else | |
8343 | LVM1_FALLBACK=no | |
7a197a62 AK |
8344 | fi |
8345 | ||
5556819a AK |
8346 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8347 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8348 | |
d0191583 | 8349 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8350 | |
8351 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8352 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8353 | _ACEOF |
8354 | ||
ad6254c5 AK |
8355 | fi |
8356 | ||
8357 | ################################################################################ | |
5556819a AK |
8358 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8359 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8360 | |
8361 | # Check whether --with-lvm1 was given. | |
8362 | if test "${with_lvm1+set}" = set; then | |
8363 | withval=$with_lvm1; LVM1="$withval" | |
8364 | else | |
8365 | LVM1="internal" | |
7a197a62 AK |
8366 | fi |
8367 | ||
5556819a AK |
8368 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8369 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8370 | |
d0191583 | 8371 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
5556819a | 8372 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8373 | " >&5 |
5556819a | 8374 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8375 | " >&2;} |
8376 | { (exit 1); exit 1; }; } | |
8377 | fi; | |
8378 | ||
8379 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8380 | |
8381 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8382 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8383 | _ACEOF |
8384 | ||
ad6254c5 AK |
8385 | fi |
8386 | ||
8387 | ################################################################################ | |
5556819a AK |
8388 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8389 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8390 | |
8391 | # Check whether --with-pool was given. | |
8392 | if test "${with_pool+set}" = set; then | |
8393 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8394 | else |
d0191583 | 8395 | POOL="internal" |
7a197a62 AK |
8396 | fi |
8397 | ||
5556819a AK |
8398 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8399 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8400 | |
d0191583 | 8401 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
5556819a | 8402 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8403 | " >&5 |
5556819a | 8404 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8405 | " >&2;} |
8406 | { (exit 1); exit 1; }; } | |
8407 | fi; | |
7a197a62 | 8408 | |
d0191583 JM |
8409 | if test x$POOL = xinternal; then |
8410 | ||
8411 | cat >>confdefs.h <<\_ACEOF | |
8412 | #define POOL_INTERNAL 1 | |
8413 | _ACEOF | |
8414 | ||
8415 | fi | |
ad6254c5 | 8416 | |
06f62ad1 | 8417 | ################################################################################ |
5556819a AK |
8418 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8419 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8420 | |
8421 | # Check whether --with-cluster was given. | |
8422 | if test "${with_cluster+set}" = set; then | |
8423 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8424 | fi |
8425 | ||
5556819a AK |
8426 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8427 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8428 | |
d0191583 | 8429 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
5556819a | 8430 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8431 | " >&5 |
5556819a | 8432 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8433 | " >&2;} |
8434 | { (exit 1); exit 1; }; } | |
d0191583 | 8435 | fi; |
06f62ad1 | 8436 | |
d0191583 | 8437 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8438 | |
8439 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8440 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8441 | _ACEOF |
8442 | ||
15d91f5a | 8443 | fi |
ad6254c5 AK |
8444 | |
8445 | ################################################################################ | |
5556819a AK |
8446 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8447 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8448 | |
d0191583 JM |
8449 | # Check whether --with-snapshots was given. |
8450 | if test "${with_snapshots+set}" = set; then | |
8451 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8452 | else | |
8453 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8454 | fi |
8455 | ||
5556819a AK |
8456 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8457 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8458 | |
d0191583 | 8459 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
5556819a | 8460 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8461 | " >&5 |
5556819a | 8462 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8463 | " >&2;} |
8464 | { (exit 1); exit 1; }; } | |
8465 | fi; | |
8466 | ||
8467 | if test x$SNAPSHOTS = xinternal; then | |
8468 | ||
8469 | cat >>confdefs.h <<\_ACEOF | |
8470 | #define SNAPSHOT_INTERNAL 1 | |
8471 | _ACEOF | |
ad6254c5 | 8472 | |
ad6254c5 | 8473 | fi |
7a197a62 | 8474 | |
d0191583 | 8475 | ################################################################################ |
5556819a AK |
8476 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8477 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8478 | |
8479 | # Check whether --with-mirrors was given. | |
8480 | if test "${with_mirrors+set}" = set; then | |
8481 | withval=$with_mirrors; MIRRORS="$withval" | |
8482 | else | |
8483 | MIRRORS="internal" | |
ad6254c5 | 8484 | fi |
ad6254c5 | 8485 | |
5556819a AK |
8486 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8487 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8488 | |
d0191583 | 8489 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
5556819a | 8490 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8491 | " >&5 |
5556819a | 8492 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8493 | " >&2;} |
8494 | { (exit 1); exit 1; }; } | |
8495 | fi; | |
ad6254c5 | 8496 | |
d0191583 | 8497 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8498 | |
d0191583 JM |
8499 | cat >>confdefs.h <<\_ACEOF |
8500 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8501 | _ACEOF |
8a2fc586 | 8502 | |
d0191583 | 8503 | fi |
8a2fc586 | 8504 | |
d0191583 | 8505 | ################################################################################ |
5556819a AK |
8506 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8507 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8508 | # Check whether --enable-readline was given. |
8509 | if test "${enable_readline+set}" = set; then | |
8510 | enableval=$enable_readline; READLINE=$enableval | |
8511 | else | |
1b523347 | 8512 | READLINE=yes |
d0191583 | 8513 | fi |
8a2fc586 | 8514 | |
5556819a AK |
8515 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8516 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8517 | |
d0191583 | 8518 | ################################################################################ |
5556819a AK |
8519 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8520 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8521 | # Check whether --enable-realtime was given. |
8522 | if test "${enable_realtime+set}" = set; then | |
8523 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8524 | fi |
ad6254c5 | 8525 | |
5556819a AK |
8526 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8527 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8528 | |
8529 | ################################################################################ | |
5556819a AK |
8530 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8531 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8532 | |
8533 | # Check whether --with-clvmd was given. | |
8534 | if test "${with_clvmd+set}" = set; then | |
8535 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8536 | else |
d0191583 JM |
8537 | CLVMD="none" |
8538 | fi | |
8a2fc586 | 8539 | |
d0191583 JM |
8540 | if test x$CLVMD = xyes; then |
8541 | CLVMD=all | |
8542 | fi | |
5556819a AK |
8543 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8544 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8545 | |
d0191583 JM |
8546 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8547 | CLUSTER=internal | |
8548 | fi | |
8a2fc586 | 8549 | |
d0191583 | 8550 | ################################################################################ |
5556819a AK |
8551 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8552 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8553 | # Check whether --enable-debug was given. |
8554 | if test "${enable_debug+set}" = set; then | |
8555 | enableval=$enable_debug; DEBUG=$enableval | |
8556 | else | |
8557 | DEBUG=no | |
8558 | fi | |
8a2fc586 | 8559 | |
5556819a AK |
8560 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8561 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8562 | |
d0191583 JM |
8563 | if test x$DEBUG = xyes; then |
8564 | COPTIMISE_FLAG= | |
fc54be10 | 8565 | else |
d0191583 JM |
8566 | CSCOPE_CMD= |
8567 | fi | |
fc54be10 | 8568 | |
d0191583 | 8569 | ################################################################################ |
5556819a AK |
8570 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8571 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8572 | |
8573 | # Check whether --with-optimisation was given. | |
8574 | if test "${with_optimisation+set}" = set; then | |
8575 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8576 | fi | |
8577 | ||
5556819a AK |
8578 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8579 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8580 | |
8581 | ################################################################################ | |
5556819a AK |
8582 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8583 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8584 | # Check whether --enable-profiling was given. |
8585 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8586 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8587 | else |
5556819a | 8588 | PROFILING=no |
fddafd51 ZK |
8589 | fi |
8590 | ||
5556819a AK |
8591 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8592 | echo "${ECHO_T}$PROFILING" >&6; } | |
8593 | ||
8594 | if test "x$PROFILING" = xyes; then | |
8595 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8596 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8597 | set dummy lcov; ac_word=$2 |
5556819a AK |
8598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8600 | if test "${ac_cv_path_LCOV+set}" = set; then |
5556819a | 8601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8602 | else |
8603 | case $LCOV in | |
8604 | [\\/]* | ?:[\\/]*) | |
8605 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8606 | ;; | |
8607 | *) | |
8608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8609 | for as_dir in $PATH | |
8610 | do | |
8611 | IFS=$as_save_IFS | |
8612 | test -z "$as_dir" && as_dir=. | |
8613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8615 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 8616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8617 | break 2 |
8618 | fi | |
8619 | done | |
8620 | done | |
8621 | IFS=$as_save_IFS | |
8622 | ||
8623 | ;; | |
8624 | esac | |
8625 | fi | |
8626 | LCOV=$ac_cv_path_LCOV | |
8627 | if test -n "$LCOV"; then | |
5556819a AK |
8628 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8629 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8630 | else |
5556819a AK |
8631 | { echo "$as_me:$LINENO: result: no" >&5 |
8632 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8633 | fi |
8634 | ||
8635 | ||
5556819a | 8636 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8637 | set dummy genhtml; ac_word=$2 |
5556819a AK |
8638 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8640 | if test "${ac_cv_path_GENHTML+set}" = set; then |
5556819a | 8641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8642 | else |
8643 | case $GENHTML in | |
8644 | [\\/]* | ?:[\\/]*) | |
8645 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8646 | ;; | |
8647 | *) | |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8655 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 8656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8657 | break 2 |
8658 | fi | |
8659 | done | |
8660 | done | |
8661 | IFS=$as_save_IFS | |
8662 | ||
8663 | ;; | |
8664 | esac | |
8665 | fi | |
8666 | GENHTML=$ac_cv_path_GENHTML | |
8667 | if test -n "$GENHTML"; then | |
5556819a AK |
8668 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8669 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8670 | else |
5556819a AK |
8671 | { echo "$as_me:$LINENO: result: no" >&5 |
8672 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8673 | fi |
8674 | ||
8675 | ||
5556819a | 8676 | fi |
d0191583 JM |
8677 | |
8678 | ################################################################################ | |
5556819a AK |
8679 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8680 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8681 | # Check whether --enable-devmapper was given. |
8682 | if test "${enable_devmapper+set}" = set; then | |
8683 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8684 | fi |
8685 | ||
5556819a AK |
8686 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8687 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8688 | |
8689 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8690 | |
8691 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8692 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8693 | _ACEOF |
8694 | ||
8695 | fi | |
8696 | ||
d0191583 | 8697 | ################################################################################ |
5556819a AK |
8698 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8699 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8700 | # Check whether --enable-o_direct was given. |
8701 | if test "${enable_o_direct+set}" = set; then | |
8702 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8703 | fi |
ad6254c5 | 8704 | |
5556819a AK |
8705 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8706 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8707 | |
d0191583 | 8708 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8709 | |
d0191583 JM |
8710 | cat >>confdefs.h <<\_ACEOF |
8711 | #define O_DIRECT_SUPPORT 1 | |
8712 | _ACEOF | |
ad6254c5 | 8713 | |
d0191583 | 8714 | fi |
ad6254c5 | 8715 | |
d0191583 | 8716 | ################################################################################ |
5556819a AK |
8717 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8718 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8719 | # Check whether --enable-cmdlib was given. |
8720 | if test "${enable_cmdlib+set}" = set; then | |
8721 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8722 | else |
d0191583 JM |
8723 | CMDLIB=no |
8724 | fi | |
8a2fc586 | 8725 | |
5556819a AK |
8726 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8727 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8728 | |
2a9a80c9 | 8729 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8730 | && LVM2CMD_LIB=-llvm2cmd \ |
8731 | || LVM2CMD_LIB= | |
8732 | ||
2a9a80c9 | 8733 | |
d0191583 | 8734 | ################################################################################ |
5556819a AK |
8735 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8736 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8737 | # Check whether --enable-fsadm was given. |
8738 | if test "${enable_fsadm+set}" = set; then | |
8739 | enableval=$enable_fsadm; FSADM=$enableval | |
8740 | fi | |
8a2fc586 | 8741 | |
5556819a AK |
8742 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8743 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8744 | |
d0191583 | 8745 | ################################################################################ |
5556819a AK |
8746 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8747 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8748 | # Check whether --enable-dmeventd was given. |
8749 | if test "${enable_dmeventd+set}" = set; then | |
8750 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8751 | fi | |
ad6254c5 | 8752 | |
5556819a AK |
8753 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8754 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8755 | |
2a9a80c9 PR |
8756 | if test x$DMEVENTD = xyes; then |
8757 | if test x$MIRRORS != xinternal; then | |
8758 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8759 | " >&5 | |
5556819a | 8760 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8761 | " >&2;} |
d0191583 | 8762 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8763 | fi |
8764 | if test x$CMDLIB = xno; then | |
8765 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well | |
8766 | " >&5 | |
8767 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well | |
8768 | " >&2;} | |
8769 | { (exit 1); exit 1; }; } | |
8770 | fi | |
ad6254c5 | 8771 | fi |
7a197a62 | 8772 | |
d0191583 JM |
8773 | if test x$DMEVENTD = xyes; then |
8774 | ||
8775 | cat >>confdefs.h <<\_ACEOF | |
8776 | #define DMEVENTD 1 | |
ad6254c5 AK |
8777 | _ACEOF |
8778 | ||
ad6254c5 | 8779 | fi |
d0191583 JM |
8780 | ################################################################################ |
8781 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8782 | then exec_prefix=""; | |
8783 | fi; | |
ad6254c5 AK |
8784 | |
8785 | ################################################################################ | |
8786 | if test x$READLINE = xyes; then | |
5556819a AK |
8787 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8788 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 8789 | if test "${ac_cv_search_tgetent+set}" = set; then |
5556819a | 8790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8791 | else |
8792 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8793 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8794 | /* confdefs.h. */ |
8795 | _ACEOF | |
8796 | cat confdefs.h >>conftest.$ac_ext | |
8797 | cat >>conftest.$ac_ext <<_ACEOF | |
8798 | /* end confdefs.h. */ | |
8799 | ||
7a197a62 AK |
8800 | /* Override any GCC internal prototype to avoid an error. |
8801 | Use char because int might match the return type of a GCC | |
8802 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8803 | #ifdef __cplusplus |
8804 | extern "C" | |
8805 | #endif | |
ad6254c5 AK |
8806 | char tgetent (); |
8807 | int | |
8808 | main () | |
8809 | { | |
7a197a62 | 8810 | return tgetent (); |
ad6254c5 AK |
8811 | ; |
8812 | return 0; | |
8813 | } | |
8814 | _ACEOF | |
7a197a62 AK |
8815 | for ac_lib in '' ncurses curses termcap termlib; do |
8816 | if test -z "$ac_lib"; then | |
8817 | ac_res="none required" | |
8818 | else | |
8819 | ac_res=-l$ac_lib | |
8820 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8821 | fi | |
8822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8823 | if { (ac_try="$ac_link" | |
8824 | case "(($ac_try" in | |
8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8826 | *) ac_try_echo=$ac_try;; | |
8827 | esac | |
5556819a | 8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8829 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8830 | ac_status=$? |
8a2fc586 AK |
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
8832 | rm -f conftest.er1 | |
8833 | cat conftest.err >&5 | |
5556819a | 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8835 | (exit $ac_status); } && { |
8836 | test -z "$ac_c_werror_flag" || | |
8837 | test ! -s conftest.err | |
5556819a AK |
8838 | } && test -s conftest$ac_exeext && |
8839 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 8840 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 8841 | else |
5556819a | 8842 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
8844 | ||
ad6254c5 | 8845 | |
7a197a62 | 8846 | fi |
ad6254c5 | 8847 | |
25fbec5b | 8848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
8849 | conftest$ac_exeext |
8850 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8851 | break | |
ad6254c5 | 8852 | fi |
7a197a62 AK |
8853 | done |
8854 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8855 | : | |
8856 | else | |
8857 | ac_cv_search_tgetent=no | |
ad6254c5 | 8858 | fi |
7a197a62 | 8859 | rm conftest.$ac_ext |
ad6254c5 AK |
8860 | LIBS=$ac_func_search_save_LIBS |
8861 | fi | |
5556819a AK |
8862 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8863 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8864 | ac_res=$ac_cv_search_tgetent |
8865 | if test "$ac_res" != no; then | |
8866 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
8867 | |
8868 | else | |
5556819a | 8869 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
8870 | --enable-readline option (which is enabled by default). Either disable readline |
8871 | support with --disable-readline or download and install termcap from: | |
8872 | ftp.gnu.org/gnu/termcap | |
8873 | Note: if you are using precompiled packages you will also need the development | |
8874 | package as well (which may be called termcap-devel or something similar). | |
8875 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8876 | not found either - but you could try installing that as well. | |
8877 | " >&5 | |
5556819a | 8878 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8879 | --enable-readline option (which is enabled by default). Either disable readline |
8880 | support with --disable-readline or download and install termcap from: | |
8881 | ftp.gnu.org/gnu/termcap | |
8882 | Note: if you are using precompiled packages you will also need the development | |
8883 | package as well (which may be called termcap-devel or something similar). | |
8884 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8885 | not found either - but you could try installing that as well. | |
8886 | " >&2;} | |
8887 | { (exit 1); exit 1; }; } | |
8888 | ||
8889 | fi | |
8890 | ||
8891 | fi | |
8892 | ||
8893 | ################################################################################ | |
5556819a AK |
8894 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8895 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 8896 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
5556819a | 8897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8898 | else |
8899 | ac_check_lib_save_LIBS=$LIBS | |
8900 | LIBS="-ldl $LIBS" | |
8901 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8902 | /* confdefs.h. */ |
8903 | _ACEOF | |
8904 | cat confdefs.h >>conftest.$ac_ext | |
8905 | cat >>conftest.$ac_ext <<_ACEOF | |
8906 | /* end confdefs.h. */ | |
8907 | ||
7a197a62 AK |
8908 | /* Override any GCC internal prototype to avoid an error. |
8909 | Use char because int might match the return type of a GCC | |
8910 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8911 | #ifdef __cplusplus |
8912 | extern "C" | |
8913 | #endif | |
ad6254c5 AK |
8914 | char dlopen (); |
8915 | int | |
8916 | main () | |
8917 | { | |
7a197a62 | 8918 | return dlopen (); |
ad6254c5 AK |
8919 | ; |
8920 | return 0; | |
8921 | } | |
8922 | _ACEOF | |
8923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8924 | if { (ac_try="$ac_link" |
8925 | case "(($ac_try" in | |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8927 | *) ac_try_echo=$ac_try;; | |
8928 | esac | |
5556819a | 8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8930 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8931 | ac_status=$? |
8a2fc586 AK |
8932 | grep -v '^ *+' conftest.er1 >conftest.err |
8933 | rm -f conftest.er1 | |
8934 | cat conftest.err >&5 | |
5556819a | 8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8936 | (exit $ac_status); } && { |
8937 | test -z "$ac_c_werror_flag" || | |
8938 | test ! -s conftest.err | |
5556819a AK |
8939 | } && test -s conftest$ac_exeext && |
8940 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8941 | ac_cv_lib_dl_dlopen=yes |
8942 | else | |
5556819a | 8943 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8944 | sed 's/^/| /' conftest.$ac_ext >&5 |
8945 | ||
7a197a62 | 8946 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8947 | fi |
7a197a62 | 8948 | |
25fbec5b | 8949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8950 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8951 | LIBS=$ac_check_lib_save_LIBS |
8952 | fi | |
5556819a AK |
8953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8954 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8955 | if test $ac_cv_lib_dl_dlopen = yes; then |
8956 | HAVE_LIBDL=yes | |
8957 | else | |
8958 | HAVE_LIBDL=no | |
8959 | fi | |
8960 | ||
8961 | ||
7e9e9502 | 8962 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8963 | |
8964 | cat >>confdefs.h <<\_ACEOF | |
8965 | #define HAVE_LIBDL 1 | |
8966 | _ACEOF | |
8967 | ||
ad6254c5 AK |
8968 | LIBS="-ldl $LIBS" |
8969 | else | |
8970 | HAVE_LIBDL=no | |
8971 | fi | |
8972 | ||
8973 | ################################################################################ | |
8974 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8975 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8976 | \) -a "x$STATIC_LINK" = xyes ]; | |
5556819a | 8977 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 8978 | " >&5 |
5556819a | 8979 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
8980 | " >&2;} |
8981 | { (exit 1); exit 1; }; } | |
8982 | fi | |
8983 | ||
d0191583 | 8984 | ################################################################################ |
5556819a AK |
8985 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8986 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
8987 | # Check whether --enable-static_link was given. |
8988 | if test "${enable_static_link+set}" = set; then | |
8989 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8990 | else | |
8991 | STATIC_LINK=no | |
8992 | fi | |
8993 | ||
5556819a AK |
8994 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8995 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
8996 | |
8997 | ################################################################################ | |
5556819a AK |
8998 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
8999 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9000 | # Check whether --enable-selinux was given. |
9001 | if test "${enable_selinux+set}" = set; then | |
9002 | enableval=$enable_selinux; SELINUX=$enableval | |
9003 | fi | |
9004 | ||
5556819a AK |
9005 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9006 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9007 | |
ad6254c5 AK |
9008 | ################################################################################ |
9009 | if test x$SELINUX = xyes; then | |
5556819a AK |
9010 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9011 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9012 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
5556819a | 9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9014 | else |
9015 | ac_check_lib_save_LIBS=$LIBS | |
9016 | LIBS="-lsepol $LIBS" | |
9017 | cat >conftest.$ac_ext <<_ACEOF | |
9018 | /* confdefs.h. */ | |
9019 | _ACEOF | |
9020 | cat confdefs.h >>conftest.$ac_ext | |
9021 | cat >>conftest.$ac_ext <<_ACEOF | |
9022 | /* end confdefs.h. */ | |
9023 | ||
7a197a62 AK |
9024 | /* Override any GCC internal prototype to avoid an error. |
9025 | Use char because int might match the return type of a GCC | |
9026 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9027 | #ifdef __cplusplus |
9028 | extern "C" | |
9029 | #endif | |
8a2fc586 AK |
9030 | char sepol_check_context (); |
9031 | int | |
9032 | main () | |
9033 | { | |
7a197a62 | 9034 | return sepol_check_context (); |
8a2fc586 AK |
9035 | ; |
9036 | return 0; | |
9037 | } | |
9038 | _ACEOF | |
9039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9040 | if { (ac_try="$ac_link" |
9041 | case "(($ac_try" in | |
9042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9043 | *) ac_try_echo=$ac_try;; | |
9044 | esac | |
5556819a | 9045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9046 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9047 | ac_status=$? |
9048 | grep -v '^ *+' conftest.er1 >conftest.err | |
9049 | rm -f conftest.er1 | |
9050 | cat conftest.err >&5 | |
5556819a | 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9052 | (exit $ac_status); } && { |
9053 | test -z "$ac_c_werror_flag" || | |
9054 | test ! -s conftest.err | |
5556819a AK |
9055 | } && test -s conftest$ac_exeext && |
9056 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9057 | ac_cv_lib_sepol_sepol_check_context=yes |
9058 | else | |
5556819a | 9059 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9060 | sed 's/^/| /' conftest.$ac_ext >&5 |
9061 | ||
7a197a62 | 9062 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9063 | fi |
7a197a62 | 9064 | |
25fbec5b | 9065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9066 | conftest$ac_exeext conftest.$ac_ext |
9067 | LIBS=$ac_check_lib_save_LIBS | |
9068 | fi | |
5556819a AK |
9069 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9070 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9071 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9072 | HAVE_SEPOL=yes | |
9073 | else | |
9074 | HAVE_SEPOL=no | |
9075 | fi | |
9076 | ||
8a2fc586 AK |
9077 | |
9078 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9079 | |
9080 | cat >>confdefs.h <<\_ACEOF | |
9081 | #define HAVE_SEPOL 1 | |
9082 | _ACEOF | |
9083 | ||
8a2fc586 AK |
9084 | LIBS="-lsepol $LIBS" |
9085 | fi | |
9086 | ||
5556819a AK |
9087 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9088 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9089 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
5556819a | 9090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9091 | else |
9092 | ac_check_lib_save_LIBS=$LIBS | |
9093 | LIBS="-lselinux $LIBS" | |
9094 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9095 | /* confdefs.h. */ |
9096 | _ACEOF | |
9097 | cat confdefs.h >>conftest.$ac_ext | |
9098 | cat >>conftest.$ac_ext <<_ACEOF | |
9099 | /* end confdefs.h. */ | |
9100 | ||
7a197a62 AK |
9101 | /* Override any GCC internal prototype to avoid an error. |
9102 | Use char because int might match the return type of a GCC | |
9103 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9104 | #ifdef __cplusplus |
9105 | extern "C" | |
9106 | #endif | |
ad6254c5 AK |
9107 | char is_selinux_enabled (); |
9108 | int | |
9109 | main () | |
9110 | { | |
7a197a62 | 9111 | return is_selinux_enabled (); |
ad6254c5 AK |
9112 | ; |
9113 | return 0; | |
9114 | } | |
9115 | _ACEOF | |
9116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9117 | if { (ac_try="$ac_link" |
9118 | case "(($ac_try" in | |
9119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9120 | *) ac_try_echo=$ac_try;; | |
9121 | esac | |
5556819a | 9122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9123 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9124 | ac_status=$? |
8a2fc586 AK |
9125 | grep -v '^ *+' conftest.er1 >conftest.err |
9126 | rm -f conftest.er1 | |
9127 | cat conftest.err >&5 | |
5556819a | 9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9129 | (exit $ac_status); } && { |
9130 | test -z "$ac_c_werror_flag" || | |
9131 | test ! -s conftest.err | |
5556819a AK |
9132 | } && test -s conftest$ac_exeext && |
9133 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9134 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9135 | else | |
5556819a | 9136 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9137 | sed 's/^/| /' conftest.$ac_ext >&5 |
9138 | ||
7a197a62 | 9139 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9140 | fi |
7a197a62 | 9141 | |
25fbec5b | 9142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9143 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9144 | LIBS=$ac_check_lib_save_LIBS |
9145 | fi | |
5556819a AK |
9146 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9147 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9148 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9149 | HAVE_SELINUX=yes | |
9150 | else | |
9151 | HAVE_SELINUX=no | |
9152 | fi | |
9153 | ||
ad6254c5 AK |
9154 | |
9155 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9156 | |
9157 | cat >>confdefs.h <<\_ACEOF | |
9158 | #define HAVE_SELINUX 1 | |
9159 | _ACEOF | |
9160 | ||
ad6254c5 AK |
9161 | LIBS="-lselinux $LIBS" |
9162 | else | |
5556819a AK |
9163 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9164 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9165 | fi |
9166 | ||
d0191583 | 9167 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9168 | # fails on at least Debian unstable due to unsatisfied references |
9169 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9170 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9171 | lvm_saved_libs=$LIBS | |
9172 | LIBS="$LIBS -static" | |
5556819a AK |
9173 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9174 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9175 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
5556819a | 9176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9177 | else |
9178 | ac_func_search_save_LIBS=$LIBS | |
9179 | cat >conftest.$ac_ext <<_ACEOF | |
9180 | /* confdefs.h. */ | |
9181 | _ACEOF | |
9182 | cat confdefs.h >>conftest.$ac_ext | |
9183 | cat >>conftest.$ac_ext <<_ACEOF | |
9184 | /* end confdefs.h. */ | |
9185 | ||
9186 | /* Override any GCC internal prototype to avoid an error. | |
9187 | Use char because int might match the return type of a GCC | |
9188 | builtin and then its argument prototype would still apply. */ | |
9189 | #ifdef __cplusplus | |
9190 | extern "C" | |
9191 | #endif | |
9192 | char pthread_mutex_lock (); | |
9193 | int | |
9194 | main () | |
9195 | { | |
9196 | return pthread_mutex_lock (); | |
9197 | ; | |
9198 | return 0; | |
9199 | } | |
9200 | _ACEOF | |
9201 | for ac_lib in '' pthread; do | |
9202 | if test -z "$ac_lib"; then | |
9203 | ac_res="none required" | |
9204 | else | |
9205 | ac_res=-l$ac_lib | |
9206 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9207 | fi | |
9208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9209 | if { (ac_try="$ac_link" | |
9210 | case "(($ac_try" in | |
9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9212 | *) ac_try_echo=$ac_try;; | |
9213 | esac | |
5556819a | 9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9215 | (eval "$ac_link") 2>conftest.er1 |
9216 | ac_status=$? | |
9217 | grep -v '^ *+' conftest.er1 >conftest.err | |
9218 | rm -f conftest.er1 | |
9219 | cat conftest.err >&5 | |
5556819a | 9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9221 | (exit $ac_status); } && { |
9222 | test -z "$ac_c_werror_flag" || | |
9223 | test ! -s conftest.err | |
5556819a AK |
9224 | } && test -s conftest$ac_exeext && |
9225 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9226 | ac_cv_search_pthread_mutex_lock=$ac_res |
9227 | else | |
5556819a | 9228 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9229 | sed 's/^/| /' conftest.$ac_ext >&5 |
9230 | ||
9231 | ||
9232 | fi | |
9233 | ||
25fbec5b | 9234 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9235 | conftest$ac_exeext |
9236 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9237 | break | |
9238 | fi | |
9239 | done | |
9240 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9241 | : | |
9242 | else | |
9243 | ac_cv_search_pthread_mutex_lock=no | |
9244 | fi | |
9245 | rm conftest.$ac_ext | |
9246 | LIBS=$ac_func_search_save_LIBS | |
9247 | fi | |
5556819a AK |
9248 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9249 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9250 | ac_res=$ac_cv_search_pthread_mutex_lock |
9251 | if test "$ac_res" != no; then | |
9252 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9253 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9254 | LIB_PTHREAD=-lpthread | |
9255 | fi | |
9256 | ||
9257 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9258 | fi |
9259 | fi | |
9260 | ||
8b1a3214 AK |
9261 | ################################################################################ |
9262 | if test x$REALTIME = xyes; then | |
5556819a AK |
9263 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9264 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9265 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5556819a | 9266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9267 | else |
9268 | ac_check_lib_save_LIBS=$LIBS | |
9269 | LIBS="-lrt $LIBS" | |
9270 | cat >conftest.$ac_ext <<_ACEOF | |
9271 | /* confdefs.h. */ | |
9272 | _ACEOF | |
9273 | cat confdefs.h >>conftest.$ac_ext | |
9274 | cat >>conftest.$ac_ext <<_ACEOF | |
9275 | /* end confdefs.h. */ | |
9276 | ||
7a197a62 AK |
9277 | /* Override any GCC internal prototype to avoid an error. |
9278 | Use char because int might match the return type of a GCC | |
9279 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9280 | #ifdef __cplusplus |
9281 | extern "C" | |
9282 | #endif | |
8b1a3214 AK |
9283 | char clock_gettime (); |
9284 | int | |
9285 | main () | |
9286 | { | |
7a197a62 | 9287 | return clock_gettime (); |
8b1a3214 AK |
9288 | ; |
9289 | return 0; | |
9290 | } | |
9291 | _ACEOF | |
9292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9293 | if { (ac_try="$ac_link" |
9294 | case "(($ac_try" in | |
9295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9296 | *) ac_try_echo=$ac_try;; | |
9297 | esac | |
5556819a | 9298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9299 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9300 | ac_status=$? |
9301 | grep -v '^ *+' conftest.er1 >conftest.err | |
9302 | rm -f conftest.er1 | |
9303 | cat conftest.err >&5 | |
5556819a | 9304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9305 | (exit $ac_status); } && { |
9306 | test -z "$ac_c_werror_flag" || | |
9307 | test ! -s conftest.err | |
5556819a AK |
9308 | } && test -s conftest$ac_exeext && |
9309 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9310 | ac_cv_lib_rt_clock_gettime=yes |
9311 | else | |
5556819a | 9312 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9313 | sed 's/^/| /' conftest.$ac_ext >&5 |
9314 | ||
7a197a62 | 9315 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9316 | fi |
7a197a62 | 9317 | |
25fbec5b | 9318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9319 | conftest$ac_exeext conftest.$ac_ext |
9320 | LIBS=$ac_check_lib_save_LIBS | |
9321 | fi | |
5556819a AK |
9322 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9323 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9324 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9325 | HAVE_REALTIME=yes | |
9326 | else | |
9327 | HAVE_REALTIME=no | |
9328 | fi | |
9329 | ||
8b1a3214 AK |
9330 | |
9331 | if test x$HAVE_REALTIME = xyes; then | |
9332 | ||
9333 | cat >>confdefs.h <<\_ACEOF | |
9334 | #define HAVE_REALTIME 1 | |
9335 | _ACEOF | |
9336 | ||
9337 | LIBS="-lrt $LIBS" | |
9338 | else | |
5556819a AK |
9339 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9340 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9341 | fi |
9342 | fi | |
9343 | ||
ad6254c5 AK |
9344 | ################################################################################ |
9345 | ||
9346 | for ac_header in getopt.h | |
9347 | do | |
5556819a | 9348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9354 | fi |
5556819a AK |
9355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9357 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9358 | else |
9359 | # Is the header compilable? | |
5556819a AK |
9360 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9362 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9363 | /* confdefs.h. */ |
9364 | _ACEOF | |
9365 | cat confdefs.h >>conftest.$ac_ext | |
9366 | cat >>conftest.$ac_ext <<_ACEOF | |
9367 | /* end confdefs.h. */ | |
9368 | $ac_includes_default | |
9369 | #include <$ac_header> | |
9370 | _ACEOF | |
9371 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9372 | if { (ac_try="$ac_compile" |
9373 | case "(($ac_try" in | |
9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9375 | *) ac_try_echo=$ac_try;; | |
9376 | esac | |
5556819a | 9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9378 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9379 | ac_status=$? |
8a2fc586 AK |
9380 | grep -v '^ *+' conftest.er1 >conftest.err |
9381 | rm -f conftest.er1 | |
9382 | cat conftest.err >&5 | |
5556819a | 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9384 | (exit $ac_status); } && { |
9385 | test -z "$ac_c_werror_flag" || | |
9386 | test ! -s conftest.err | |
9387 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9388 | ac_header_compiler=yes |
9389 | else | |
5556819a | 9390 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
9392 | ||
7a197a62 | 9393 | ac_header_compiler=no |
ad6254c5 | 9394 | fi |
7a197a62 AK |
9395 | |
9396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9397 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9398 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9399 | |
9400 | # Is the header present? | |
5556819a AK |
9401 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9403 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9404 | /* confdefs.h. */ |
9405 | _ACEOF | |
9406 | cat confdefs.h >>conftest.$ac_ext | |
9407 | cat >>conftest.$ac_ext <<_ACEOF | |
9408 | /* end confdefs.h. */ | |
9409 | #include <$ac_header> | |
9410 | _ACEOF | |
7a197a62 AK |
9411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9412 | case "(($ac_try" in | |
9413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9414 | *) ac_try_echo=$ac_try;; | |
9415 | esac | |
5556819a | 9416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9418 | ac_status=$? |
9419 | grep -v '^ *+' conftest.er1 >conftest.err | |
9420 | rm -f conftest.er1 | |
9421 | cat conftest.err >&5 | |
5556819a | 9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9423 | (exit $ac_status); } >/dev/null && { |
9424 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9425 | test ! -s conftest.err | |
9426 | }; then | |
ad6254c5 AK |
9427 | ac_header_preproc=yes |
9428 | else | |
5556819a | 9429 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9430 | sed 's/^/| /' conftest.$ac_ext >&5 |
9431 | ||
9432 | ac_header_preproc=no | |
9433 | fi | |
7a197a62 | 9434 | |
ad6254c5 | 9435 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
9436 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9437 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9438 | |
9439 | # So? What about this header? | |
8a2fc586 AK |
9440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9441 | yes:no: ) | |
5556819a AK |
9442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9445 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9446 | ac_header_preproc=yes |
ad6254c5 | 9447 | ;; |
8a2fc586 | 9448 | no:yes:* ) |
5556819a AK |
9449 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9450 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9451 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9452 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9454 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9455 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9456 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9460 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9461 | |
ad6254c5 AK |
9462 | ;; |
9463 | esac | |
5556819a AK |
9464 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9468 | else |
8a2fc586 | 9469 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9470 | fi |
5556819a AK |
9471 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9473 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9474 | |
9475 | fi | |
5556819a | 9476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9477 | cat >>confdefs.h <<_ACEOF |
5556819a | 9478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9479 | _ACEOF |
72b2cb61 AK |
9480 | |
9481 | cat >>confdefs.h <<\_ACEOF | |
9482 | #define HAVE_GETOPTLONG 1 | |
9483 | _ACEOF | |
9484 | ||
ad6254c5 AK |
9485 | fi |
9486 | ||
9487 | done | |
9488 | ||
9489 | ||
9490 | ################################################################################ | |
9491 | if test x$READLINE = xyes; then | |
9492 | ||
5556819a AK |
9493 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9494 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9495 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
5556819a | 9496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9497 | else |
9498 | ac_check_lib_save_LIBS=$LIBS | |
9499 | LIBS="-lreadline $LIBS" | |
9500 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9501 | /* confdefs.h. */ |
9502 | _ACEOF | |
9503 | cat confdefs.h >>conftest.$ac_ext | |
9504 | cat >>conftest.$ac_ext <<_ACEOF | |
9505 | /* end confdefs.h. */ | |
9506 | ||
7a197a62 AK |
9507 | /* Override any GCC internal prototype to avoid an error. |
9508 | Use char because int might match the return type of a GCC | |
9509 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9510 | #ifdef __cplusplus |
9511 | extern "C" | |
9512 | #endif | |
ad6254c5 AK |
9513 | char readline (); |
9514 | int | |
9515 | main () | |
9516 | { | |
7a197a62 | 9517 | return readline (); |
ad6254c5 AK |
9518 | ; |
9519 | return 0; | |
9520 | } | |
9521 | _ACEOF | |
9522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9523 | if { (ac_try="$ac_link" |
9524 | case "(($ac_try" in | |
9525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9526 | *) ac_try_echo=$ac_try;; | |
9527 | esac | |
5556819a | 9528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9529 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9530 | ac_status=$? |
8a2fc586 AK |
9531 | grep -v '^ *+' conftest.er1 >conftest.err |
9532 | rm -f conftest.er1 | |
9533 | cat conftest.err >&5 | |
5556819a | 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9535 | (exit $ac_status); } && { |
9536 | test -z "$ac_c_werror_flag" || | |
9537 | test ! -s conftest.err | |
5556819a AK |
9538 | } && test -s conftest$ac_exeext && |
9539 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9540 | ac_cv_lib_readline_readline=yes |
9541 | else | |
5556819a | 9542 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9543 | sed 's/^/| /' conftest.$ac_ext >&5 |
9544 | ||
7a197a62 | 9545 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9546 | fi |
7a197a62 | 9547 | |
25fbec5b | 9548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9549 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9550 | LIBS=$ac_check_lib_save_LIBS |
9551 | fi | |
5556819a AK |
9552 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9553 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
9554 | if test $ac_cv_lib_readline_readline = yes; then |
9555 | cat >>confdefs.h <<_ACEOF | |
9556 | #define HAVE_LIBREADLINE 1 | |
9557 | _ACEOF | |
9558 | ||
9559 | LIBS="-lreadline $LIBS" | |
9560 | ||
9561 | else | |
5556819a | 9562 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9563 | --enable-readline option (which is enabled by default). Either disable readline |
9564 | support with --disable-readline or download and install readline from: | |
9565 | ftp.gnu.org/gnu/readline | |
9566 | Note: if you are using precompiled packages you will also need the development | |
9567 | package as well (which may be called readline-devel or something similar). | |
9568 | " >&5 | |
5556819a | 9569 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9570 | --enable-readline option (which is enabled by default). Either disable readline |
9571 | support with --disable-readline or download and install readline from: | |
9572 | ftp.gnu.org/gnu/readline | |
9573 | Note: if you are using precompiled packages you will also need the development | |
9574 | package as well (which may be called readline-devel or something similar). | |
9575 | " >&2;} | |
9576 | { (exit 1); exit 1; }; } | |
9577 | ||
9578 | fi | |
9579 | ||
5556819a AK |
9580 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
9581 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } | |
ad6254c5 | 9582 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
5556819a | 9583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9584 | else |
9585 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9586 | /* confdefs.h. */ |
9587 | _ACEOF | |
9588 | cat confdefs.h >>conftest.$ac_ext | |
9589 | cat >>conftest.$ac_ext <<_ACEOF | |
9590 | /* end confdefs.h. */ | |
8a2fc586 AK |
9591 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9593 | #define rl_completion_matches innocuous_rl_completion_matches | |
9594 | ||
ad6254c5 AK |
9595 | /* System header to define __stub macros and hopefully few prototypes, |
9596 | which can conflict with char rl_completion_matches (); below. | |
9597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9598 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9599 | |
ad6254c5 AK |
9600 | #ifdef __STDC__ |
9601 | # include <limits.h> | |
9602 | #else | |
9603 | # include <assert.h> | |
9604 | #endif | |
8a2fc586 AK |
9605 | |
9606 | #undef rl_completion_matches | |
9607 | ||
7a197a62 AK |
9608 | /* Override any GCC internal prototype to avoid an error. |
9609 | Use char because int might match the return type of a GCC | |
9610 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9611 | #ifdef __cplusplus |
9612 | extern "C" | |
ad6254c5 | 9613 | #endif |
ad6254c5 AK |
9614 | char rl_completion_matches (); |
9615 | /* The GNU C library defines this for functions which it implements | |
9616 | to always fail with ENOSYS. Some functions are actually named | |
9617 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9618 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9619 | choke me |
ad6254c5 AK |
9620 | #endif |
9621 | ||
9622 | int | |
9623 | main () | |
9624 | { | |
7a197a62 | 9625 | return rl_completion_matches (); |
ad6254c5 AK |
9626 | ; |
9627 | return 0; | |
9628 | } | |
9629 | _ACEOF | |
9630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9631 | if { (ac_try="$ac_link" |
9632 | case "(($ac_try" in | |
9633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9634 | *) ac_try_echo=$ac_try;; | |
9635 | esac | |
5556819a | 9636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9637 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9638 | ac_status=$? |
8a2fc586 AK |
9639 | grep -v '^ *+' conftest.er1 >conftest.err |
9640 | rm -f conftest.er1 | |
9641 | cat conftest.err >&5 | |
5556819a | 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9643 | (exit $ac_status); } && { |
9644 | test -z "$ac_c_werror_flag" || | |
9645 | test ! -s conftest.err | |
5556819a AK |
9646 | } && test -s conftest$ac_exeext && |
9647 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9648 | ac_cv_func_rl_completion_matches=yes |
9649 | else | |
5556819a | 9650 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9651 | sed 's/^/| /' conftest.$ac_ext >&5 |
9652 | ||
7a197a62 | 9653 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9654 | fi |
7a197a62 | 9655 | |
25fbec5b | 9656 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9657 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9658 | fi |
5556819a AK |
9659 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9660 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9661 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9662 | |
72b2cb61 AK |
9663 | cat >>confdefs.h <<\_ACEOF |
9664 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9665 | _ACEOF | |
9666 | ||
9667 | fi | |
ad6254c5 | 9668 | |
d179cc7a JM |
9669 | |
9670 | cat >>confdefs.h <<\_ACEOF | |
9671 | #define READLINE_SUPPORT 1 | |
9672 | _ACEOF | |
9673 | ||
ad6254c5 AK |
9674 | fi |
9675 | ||
9676 | ################################################################################ | |
5556819a AK |
9677 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9678 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9679 | # Check whether --enable-nls was given. |
ad6254c5 | 9680 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9681 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9682 | else |
9683 | INTL=no | |
7a197a62 AK |
9684 | fi |
9685 | ||
5556819a AK |
9686 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9687 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9688 | |
9689 | if test x$INTL = xyes; then | |
9690 | INTL_PACKAGE="lvm2" | |
9691 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9692 | set dummy msgfmt; ac_word=$2 | |
5556819a AK |
9693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9695 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
5556819a | 9696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9697 | else |
9698 | case $MSGFMT in | |
9699 | [\\/]* | ?:[\\/]*) | |
9700 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9701 | ;; | |
9702 | *) | |
9703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9704 | for as_dir in $PATH | |
9705 | do | |
9706 | IFS=$as_save_IFS | |
9707 | test -z "$as_dir" && as_dir=. | |
9708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 9709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9710 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
5556819a | 9711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9712 | break 2 |
9713 | fi | |
9714 | done | |
9715 | done | |
7a197a62 | 9716 | IFS=$as_save_IFS |
ad6254c5 AK |
9717 | |
9718 | ;; | |
9719 | esac | |
9720 | fi | |
9721 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9722 | if test -n "$MSGFMT"; then |
5556819a AK |
9723 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9724 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9725 | else |
5556819a AK |
9726 | { echo "$as_me:$LINENO: result: no" >&5 |
9727 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9728 | fi |
9729 | ||
7a197a62 | 9730 | |
ad6254c5 | 9731 | if [ "x$MSGFMT" == x ]; |
5556819a | 9732 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9733 | " >&5 |
5556819a | 9734 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9735 | " >&2;} |
9736 | { (exit 1); exit 1; }; } | |
9737 | fi; | |
9738 | ||
9739 | ||
7a197a62 | 9740 | # Check whether --with-localedir was given. |
ad6254c5 | 9741 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9742 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9743 | else |
9744 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9745 | fi |
9746 | ||
ad6254c5 AK |
9747 | fi |
9748 | ||
9749 | ################################################################################ | |
9750 | ||
7a197a62 | 9751 | # Check whether --with-confdir was given. |
ad6254c5 | 9752 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9753 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9754 | else |
9755 | CONFDIR='/etc' | |
7a197a62 AK |
9756 | fi |
9757 | ||
ad6254c5 AK |
9758 | |
9759 | ||
7a197a62 | 9760 | # Check whether --with-staticdir was given. |
ad6254c5 | 9761 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9762 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9763 | else |
9764 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9765 | fi |
ad6254c5 | 9766 | |
33f732c5 | 9767 | |
7a197a62 AK |
9768 | |
9769 | # Check whether --with-dmdir was given. | |
33f732c5 | 9770 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9771 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9772 | else |
9773 | DMDIR= | |
7a197a62 AK |
9774 | fi |
9775 | ||
33f732c5 | 9776 | |
09339e2b | 9777 | # Convert a relative dir name to absolute. |
25fbec5b AK |
9778 | case $DMDIR in |
9779 | /*) ;; | |
9780 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
9781 | esac |
9782 | ||
ad6254c5 AK |
9783 | ################################################################################ |
9784 | if test x$READLINE = xyes; then | |
9785 | ||
9786 | ||
9787 | for ac_header in readline/readline.h readline/history.h | |
9788 | do | |
5556819a | 9789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9791 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9793 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9795 | fi |
5556819a AK |
9796 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9798 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9799 | else |
9800 | # Is the header compilable? | |
5556819a AK |
9801 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9803 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9804 | /* confdefs.h. */ |
9805 | _ACEOF | |
9806 | cat confdefs.h >>conftest.$ac_ext | |
9807 | cat >>conftest.$ac_ext <<_ACEOF | |
9808 | /* end confdefs.h. */ | |
9809 | $ac_includes_default | |
9810 | #include <$ac_header> | |
9811 | _ACEOF | |
9812 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9813 | if { (ac_try="$ac_compile" |
9814 | case "(($ac_try" in | |
9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9816 | *) ac_try_echo=$ac_try;; | |
9817 | esac | |
5556819a | 9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9819 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9820 | ac_status=$? |
8a2fc586 AK |
9821 | grep -v '^ *+' conftest.er1 >conftest.err |
9822 | rm -f conftest.er1 | |
9823 | cat conftest.err >&5 | |
5556819a | 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9825 | (exit $ac_status); } && { |
9826 | test -z "$ac_c_werror_flag" || | |
9827 | test ! -s conftest.err | |
9828 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9829 | ac_header_compiler=yes |
9830 | else | |
5556819a | 9831 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9832 | sed 's/^/| /' conftest.$ac_ext >&5 |
9833 | ||
7a197a62 | 9834 | ac_header_compiler=no |
ad6254c5 | 9835 | fi |
7a197a62 AK |
9836 | |
9837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9838 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9839 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9840 | |
9841 | # Is the header present? | |
5556819a AK |
9842 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9843 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9844 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9845 | /* confdefs.h. */ |
9846 | _ACEOF | |
9847 | cat confdefs.h >>conftest.$ac_ext | |
9848 | cat >>conftest.$ac_ext <<_ACEOF | |
9849 | /* end confdefs.h. */ | |
9850 | #include <$ac_header> | |
9851 | _ACEOF | |
7a197a62 AK |
9852 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9853 | case "(($ac_try" in | |
9854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9855 | *) ac_try_echo=$ac_try;; | |
9856 | esac | |
5556819a | 9857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9859 | ac_status=$? |
9860 | grep -v '^ *+' conftest.er1 >conftest.err | |
9861 | rm -f conftest.er1 | |
9862 | cat conftest.err >&5 | |
5556819a | 9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9864 | (exit $ac_status); } >/dev/null && { |
9865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9866 | test ! -s conftest.err | |
9867 | }; then | |
ad6254c5 AK |
9868 | ac_header_preproc=yes |
9869 | else | |
5556819a | 9870 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9871 | sed 's/^/| /' conftest.$ac_ext >&5 |
9872 | ||
9873 | ac_header_preproc=no | |
9874 | fi | |
7a197a62 | 9875 | |
ad6254c5 | 9876 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
9877 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9878 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9879 | |
9880 | # So? What about this header? | |
8a2fc586 AK |
9881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9882 | yes:no: ) | |
5556819a AK |
9883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9887 | ac_header_preproc=yes |
ad6254c5 | 9888 | ;; |
8a2fc586 | 9889 | no:yes:* ) |
5556819a AK |
9890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9902 | |
ad6254c5 AK |
9903 | ;; |
9904 | esac | |
5556819a AK |
9905 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9909 | else |
8a2fc586 | 9910 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9911 | fi |
5556819a AK |
9912 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9914 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9915 | |
9916 | fi | |
5556819a | 9917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9918 | cat >>confdefs.h <<_ACEOF |
5556819a | 9919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9920 | _ACEOF |
9921 | ||
9922 | else | |
5556819a AK |
9923 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9924 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9925 | { (exit 1); exit 1; }; } |
9926 | fi | |
9927 | ||
9928 | done | |
9929 | ||
9930 | fi | |
9931 | ||
5c7fc7c4 | 9932 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9933 | |
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | 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 | |
9944 | do | |
5556819a | 9945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9947 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9951 | fi |
5556819a AK |
9952 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9954 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9955 | else |
9956 | # Is the header compilable? | |
5556819a AK |
9957 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9958 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9959 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9960 | /* confdefs.h. */ |
9961 | _ACEOF | |
9962 | cat confdefs.h >>conftest.$ac_ext | |
9963 | cat >>conftest.$ac_ext <<_ACEOF | |
9964 | /* end confdefs.h. */ | |
9965 | $ac_includes_default | |
9966 | #include <$ac_header> | |
9967 | _ACEOF | |
9968 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9969 | if { (ac_try="$ac_compile" |
9970 | case "(($ac_try" in | |
9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9972 | *) ac_try_echo=$ac_try;; | |
9973 | esac | |
5556819a | 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9975 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9976 | ac_status=$? |
8a2fc586 AK |
9977 | grep -v '^ *+' conftest.er1 >conftest.err |
9978 | rm -f conftest.er1 | |
9979 | cat conftest.err >&5 | |
5556819a | 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9981 | (exit $ac_status); } && { |
9982 | test -z "$ac_c_werror_flag" || | |
9983 | test ! -s conftest.err | |
9984 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9985 | ac_header_compiler=yes |
9986 | else | |
5556819a | 9987 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9988 | sed 's/^/| /' conftest.$ac_ext >&5 |
9989 | ||
7a197a62 | 9990 | ac_header_compiler=no |
ad6254c5 | 9991 | fi |
7a197a62 AK |
9992 | |
9993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9994 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9995 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9996 | |
9997 | # Is the header present? | |
5556819a AK |
9998 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10000 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10001 | /* confdefs.h. */ |
10002 | _ACEOF | |
10003 | cat confdefs.h >>conftest.$ac_ext | |
10004 | cat >>conftest.$ac_ext <<_ACEOF | |
10005 | /* end confdefs.h. */ | |
10006 | #include <$ac_header> | |
10007 | _ACEOF | |
7a197a62 AK |
10008 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10009 | case "(($ac_try" in | |
10010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10011 | *) ac_try_echo=$ac_try;; | |
10012 | esac | |
5556819a | 10013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10014 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10015 | ac_status=$? |
10016 | grep -v '^ *+' conftest.er1 >conftest.err | |
10017 | rm -f conftest.er1 | |
10018 | cat conftest.err >&5 | |
5556819a | 10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10020 | (exit $ac_status); } >/dev/null && { |
10021 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10022 | test ! -s conftest.err | |
10023 | }; then | |
ad6254c5 AK |
10024 | ac_header_preproc=yes |
10025 | else | |
5556819a | 10026 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10027 | sed 's/^/| /' conftest.$ac_ext >&5 |
10028 | ||
10029 | ac_header_preproc=no | |
10030 | fi | |
7a197a62 | 10031 | |
ad6254c5 | 10032 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10033 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10034 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10035 | |
10036 | # So? What about this header? | |
8a2fc586 AK |
10037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10038 | yes:no: ) | |
5556819a AK |
10039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10043 | ac_header_preproc=yes |
ad6254c5 | 10044 | ;; |
8a2fc586 | 10045 | no:yes:* ) |
5556819a AK |
10046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10058 | |
ad6254c5 AK |
10059 | ;; |
10060 | esac | |
5556819a AK |
10061 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10065 | else |
8a2fc586 | 10066 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10067 | fi |
5556819a AK |
10068 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10069 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10070 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10071 | |
10072 | fi | |
5556819a | 10073 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10074 | cat >>confdefs.h <<_ACEOF |
5556819a | 10075 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10076 | _ACEOF |
10077 | ||
10078 | else | |
5556819a AK |
10079 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10080 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10081 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10082 | fi |
10083 | ||
ad6254c5 AK |
10084 | done |
10085 | ||
10086 | ||
795ca3e5 | 10087 | |
8106cdd5 | 10088 | |
ad6254c5 AK |
10089 | |
10090 | ||
10091 | for ac_func in dup2 getmntent memmove select socket | |
10092 | do | |
5556819a AK |
10093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10094 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10096 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10098 | else |
ad6254c5 | 10099 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10100 | /* confdefs.h. */ |
10101 | _ACEOF | |
10102 | cat confdefs.h >>conftest.$ac_ext | |
10103 | cat >>conftest.$ac_ext <<_ACEOF | |
10104 | /* end confdefs.h. */ | |
8a2fc586 AK |
10105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10107 | #define $ac_func innocuous_$ac_func | |
10108 | ||
795ca3e5 | 10109 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10110 | which can conflict with char $ac_func (); below. |
10111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10112 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10113 | |
ad6254c5 AK |
10114 | #ifdef __STDC__ |
10115 | # include <limits.h> | |
10116 | #else | |
10117 | # include <assert.h> | |
10118 | #endif | |
8a2fc586 AK |
10119 | |
10120 | #undef $ac_func | |
10121 | ||
7a197a62 AK |
10122 | /* Override any GCC internal prototype to avoid an error. |
10123 | Use char because int might match the return type of a GCC | |
10124 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10125 | #ifdef __cplusplus |
10126 | extern "C" | |
ad6254c5 | 10127 | #endif |
ad6254c5 | 10128 | char $ac_func (); |
795ca3e5 AK |
10129 | /* The GNU C library defines this for functions which it implements |
10130 | to always fail with ENOSYS. Some functions are actually named | |
10131 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10132 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10133 | choke me |
795ca3e5 AK |
10134 | #endif |
10135 | ||
ad6254c5 AK |
10136 | int |
10137 | main () | |
10138 | { | |
7a197a62 | 10139 | return $ac_func (); |
ad6254c5 AK |
10140 | ; |
10141 | return 0; | |
10142 | } | |
10143 | _ACEOF | |
10144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10145 | if { (ac_try="$ac_link" |
10146 | case "(($ac_try" in | |
10147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10148 | *) ac_try_echo=$ac_try;; | |
10149 | esac | |
5556819a | 10150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10151 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10152 | ac_status=$? |
8a2fc586 AK |
10153 | grep -v '^ *+' conftest.er1 >conftest.err |
10154 | rm -f conftest.er1 | |
10155 | cat conftest.err >&5 | |
5556819a | 10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10157 | (exit $ac_status); } && { |
10158 | test -z "$ac_c_werror_flag" || | |
10159 | test ! -s conftest.err | |
5556819a AK |
10160 | } && test -s conftest$ac_exeext && |
10161 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10162 | eval "$as_ac_var=yes" |
795ca3e5 | 10163 | else |
5556819a | 10164 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10165 | sed 's/^/| /' conftest.$ac_ext >&5 |
10166 | ||
7a197a62 | 10167 | eval "$as_ac_var=no" |
80992638 | 10168 | fi |
7a197a62 | 10169 | |
25fbec5b | 10170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10171 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10172 | fi |
5556819a AK |
10173 | ac_res=`eval echo '${'$as_ac_var'}'` |
10174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10175 | echo "${ECHO_T}$ac_res" >&6; } | |
10176 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10177 | cat >>confdefs.h <<_ACEOF |
5556819a | 10178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10179 | _ACEOF |
80992638 AK |
10180 | |
10181 | else | |
5556819a AK |
10182 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10183 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10184 | { (exit 1); exit 1; }; } |
8106cdd5 | 10185 | fi |
ad6254c5 | 10186 | done |
795ca3e5 | 10187 | |
25fbec5b AK |
10188 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10189 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
5556819a AK |
10190 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10191 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10192 | if test "${ac_cv_search_getmntent+set}" = set; then |
5556819a | 10193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10194 | else |
10195 | ac_func_search_save_LIBS=$LIBS | |
10196 | cat >conftest.$ac_ext <<_ACEOF | |
10197 | /* confdefs.h. */ | |
10198 | _ACEOF | |
10199 | cat confdefs.h >>conftest.$ac_ext | |
10200 | cat >>conftest.$ac_ext <<_ACEOF | |
10201 | /* end confdefs.h. */ | |
80992638 | 10202 | |
7a197a62 AK |
10203 | /* Override any GCC internal prototype to avoid an error. |
10204 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10205 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10206 | #ifdef __cplusplus |
10207 | extern "C" | |
10208 | #endif | |
25fbec5b | 10209 | char getmntent (); |
ad6254c5 AK |
10210 | int |
10211 | main () | |
10212 | { | |
25fbec5b | 10213 | return getmntent (); |
ad6254c5 AK |
10214 | ; |
10215 | return 0; | |
10216 | } | |
10217 | _ACEOF | |
25fbec5b AK |
10218 | for ac_lib in '' sun seq gen; do |
10219 | if test -z "$ac_lib"; then | |
10220 | ac_res="none required" | |
10221 | else | |
10222 | ac_res=-l$ac_lib | |
10223 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10224 | fi | |
10225 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10226 | if { (ac_try="$ac_link" |
10227 | case "(($ac_try" in | |
10228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10229 | *) ac_try_echo=$ac_try;; | |
10230 | esac | |
5556819a | 10231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10232 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10233 | ac_status=$? |
8a2fc586 AK |
10234 | grep -v '^ *+' conftest.er1 >conftest.err |
10235 | rm -f conftest.er1 | |
10236 | cat conftest.err >&5 | |
5556819a | 10237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10238 | (exit $ac_status); } && { |
10239 | test -z "$ac_c_werror_flag" || | |
10240 | test ! -s conftest.err | |
5556819a AK |
10241 | } && test -s conftest$ac_exeext && |
10242 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10243 | ac_cv_search_getmntent=$ac_res |
80992638 | 10244 | else |
5556819a | 10245 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10246 | sed 's/^/| /' conftest.$ac_ext >&5 |
10247 | ||
25fbec5b | 10248 | |
795ca3e5 AK |
10249 | fi |
10250 | ||
25fbec5b AK |
10251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10252 | conftest$ac_exeext | |
10253 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10254 | break | |
795ca3e5 | 10255 | fi |
25fbec5b AK |
10256 | done |
10257 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10258 | : | |
10259 | else | |
10260 | ac_cv_search_getmntent=no | |
10261 | fi | |
10262 | rm conftest.$ac_ext | |
10263 | LIBS=$ac_func_search_save_LIBS | |
10264 | fi | |
5556819a AK |
10265 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10266 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10267 | ac_res=$ac_cv_search_getmntent |
10268 | if test "$ac_res" != no; then | |
10269 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10270 | ac_cv_func_getmntent=yes | |
10271 | ||
10272 | cat >>confdefs.h <<\_ACEOF | |
2a9a80c9 | 10273 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 10274 | _ACEOF |
795ca3e5 | 10275 | |
25fbec5b AK |
10276 | else |
10277 | ac_cv_func_getmntent=no | |
795ca3e5 | 10278 | fi |
795ca3e5 AK |
10279 | |
10280 | ||
ad6254c5 AK |
10281 | # AC_FUNC_REALLOC |
10282 | ||
10283 | ||
10284 | for ac_header in sys/select.h sys/socket.h | |
10285 | do | |
5556819a | 10286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10287 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10288 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10289 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10290 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10292 | fi |
5556819a AK |
10293 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10295 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10296 | else |
ad6254c5 | 10297 | # Is the header compilable? |
5556819a AK |
10298 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10299 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10300 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10301 | /* confdefs.h. */ |
10302 | _ACEOF | |
10303 | cat confdefs.h >>conftest.$ac_ext | |
10304 | cat >>conftest.$ac_ext <<_ACEOF | |
10305 | /* end confdefs.h. */ | |
10306 | $ac_includes_default | |
10307 | #include <$ac_header> | |
10308 | _ACEOF | |
10309 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10310 | if { (ac_try="$ac_compile" |
10311 | case "(($ac_try" in | |
10312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10313 | *) ac_try_echo=$ac_try;; | |
10314 | esac | |
5556819a | 10315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10316 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10317 | ac_status=$? |
8a2fc586 AK |
10318 | grep -v '^ *+' conftest.er1 >conftest.err |
10319 | rm -f conftest.er1 | |
10320 | cat conftest.err >&5 | |
5556819a | 10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10322 | (exit $ac_status); } && { |
10323 | test -z "$ac_c_werror_flag" || | |
10324 | test ! -s conftest.err | |
10325 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10326 | ac_header_compiler=yes |
80992638 | 10327 | else |
5556819a | 10328 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10329 | sed 's/^/| /' conftest.$ac_ext >&5 |
10330 | ||
7a197a62 | 10331 | ac_header_compiler=no |
ad6254c5 | 10332 | fi |
7a197a62 AK |
10333 | |
10334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10335 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10336 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10337 | |
10338 | # Is the header present? | |
5556819a AK |
10339 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10340 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10341 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10342 | /* confdefs.h. */ |
10343 | _ACEOF | |
10344 | cat confdefs.h >>conftest.$ac_ext | |
10345 | cat >>conftest.$ac_ext <<_ACEOF | |
10346 | /* end confdefs.h. */ | |
10347 | #include <$ac_header> | |
10348 | _ACEOF | |
7a197a62 AK |
10349 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10350 | case "(($ac_try" in | |
10351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10352 | *) ac_try_echo=$ac_try;; | |
10353 | esac | |
5556819a | 10354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10355 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10356 | ac_status=$? |
10357 | grep -v '^ *+' conftest.er1 >conftest.err | |
10358 | rm -f conftest.er1 | |
10359 | cat conftest.err >&5 | |
5556819a | 10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10361 | (exit $ac_status); } >/dev/null && { |
10362 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10363 | test ! -s conftest.err | |
10364 | }; then | |
ad6254c5 AK |
10365 | ac_header_preproc=yes |
10366 | else | |
5556819a | 10367 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10368 | sed 's/^/| /' conftest.$ac_ext >&5 |
10369 | ||
10370 | ac_header_preproc=no | |
10371 | fi | |
7a197a62 | 10372 | |
ad6254c5 | 10373 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10374 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10375 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10376 | |
10377 | # So? What about this header? | |
8a2fc586 AK |
10378 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10379 | yes:no: ) | |
5556819a AK |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10381 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10382 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10383 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10384 | ac_header_preproc=yes |
ad6254c5 | 10385 | ;; |
8a2fc586 | 10386 | no:yes:* ) |
5556819a AK |
10387 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10388 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10389 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10390 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10391 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10392 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10393 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10394 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10396 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10397 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10398 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10399 | |
ad6254c5 AK |
10400 | ;; |
10401 | esac | |
5556819a AK |
10402 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10404 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10406 | else |
8a2fc586 | 10407 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10408 | fi |
5556819a AK |
10409 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10410 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10411 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10412 | |
795ca3e5 | 10413 | fi |
5556819a | 10414 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10415 | cat >>confdefs.h <<_ACEOF |
5556819a | 10416 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10417 | _ACEOF |
10418 | ||
795ca3e5 AK |
10419 | fi |
10420 | ||
ad6254c5 AK |
10421 | done |
10422 | ||
5556819a AK |
10423 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10424 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10425 | if test "${ac_cv_func_select_args+set}" = set; then |
5556819a | 10426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10427 | else |
ad6254c5 | 10428 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10429 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10430 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10431 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10432 | /* confdefs.h. */ |
10433 | _ACEOF | |
10434 | cat confdefs.h >>conftest.$ac_ext | |
10435 | cat >>conftest.$ac_ext <<_ACEOF | |
10436 | /* end confdefs.h. */ | |
10437 | $ac_includes_default | |
25fbec5b | 10438 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10439 | # include <sys/select.h> |
10440 | #endif | |
25fbec5b | 10441 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10442 | # include <sys/socket.h> |
10443 | #endif | |
10444 | ||
10445 | int | |
10446 | main () | |
10447 | { | |
10448 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10449 | $ac_arg234, $ac_arg234, $ac_arg234, |
10450 | $ac_arg5); | |
ad6254c5 AK |
10451 | ; |
10452 | return 0; | |
10453 | } | |
10454 | _ACEOF | |
10455 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10456 | if { (ac_try="$ac_compile" |
10457 | case "(($ac_try" in | |
10458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10459 | *) ac_try_echo=$ac_try;; | |
10460 | esac | |
5556819a | 10461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10462 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10463 | ac_status=$? |
8a2fc586 AK |
10464 | grep -v '^ *+' conftest.er1 >conftest.err |
10465 | rm -f conftest.er1 | |
10466 | cat conftest.err >&5 | |
5556819a | 10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10468 | (exit $ac_status); } && { |
10469 | test -z "$ac_c_werror_flag" || | |
10470 | test ! -s conftest.err | |
10471 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10472 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10473 | else | |
5556819a | 10474 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
10476 | ||
7a197a62 | 10477 | |
ad6254c5 | 10478 | fi |
7a197a62 AK |
10479 | |
10480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10481 | done |
10482 | done | |
10483 | done | |
10484 | # Provide a safe default value. | |
10485 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10486 | ||
26e7f2e0 | 10487 | fi |
5556819a AK |
10488 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10489 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10490 | ac_save_IFS=$IFS; IFS=',' |
10491 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10492 | IFS=$ac_save_IFS | |
10493 | shift | |
10494 | ||
10495 | cat >>confdefs.h <<_ACEOF | |
10496 | #define SELECT_TYPE_ARG1 $1 | |
10497 | _ACEOF | |
10498 | ||
10499 | ||
10500 | cat >>confdefs.h <<_ACEOF | |
10501 | #define SELECT_TYPE_ARG234 ($2) | |
10502 | _ACEOF | |
10503 | ||
10504 | ||
10505 | cat >>confdefs.h <<_ACEOF | |
10506 | #define SELECT_TYPE_ARG5 ($3) | |
10507 | _ACEOF | |
10508 | ||
80992638 | 10509 | rm -f conftest* |
80992638 | 10510 | |
8106cdd5 | 10511 | fi |
ad6254c5 | 10512 | |
ad6254c5 AK |
10513 | if test x$CLUSTER != xnone; then |
10514 | ||
10515 | ||
10516 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10517 | do |
5556819a | 10518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10520 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10524 | fi |
5556819a AK |
10525 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10526 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10527 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10528 | else |
10529 | # Is the header compilable? | |
5556819a AK |
10530 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10531 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10532 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10533 | /* confdefs.h. */ |
10534 | _ACEOF | |
10535 | cat confdefs.h >>conftest.$ac_ext | |
10536 | cat >>conftest.$ac_ext <<_ACEOF | |
10537 | /* end confdefs.h. */ | |
10538 | $ac_includes_default | |
10539 | #include <$ac_header> | |
10540 | _ACEOF | |
10541 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10542 | if { (ac_try="$ac_compile" |
10543 | case "(($ac_try" in | |
10544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10545 | *) ac_try_echo=$ac_try;; | |
10546 | esac | |
5556819a | 10547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10548 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10549 | ac_status=$? |
8a2fc586 AK |
10550 | grep -v '^ *+' conftest.er1 >conftest.err |
10551 | rm -f conftest.er1 | |
10552 | cat conftest.err >&5 | |
5556819a | 10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10554 | (exit $ac_status); } && { |
10555 | test -z "$ac_c_werror_flag" || | |
10556 | test ! -s conftest.err | |
10557 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10558 | ac_header_compiler=yes |
10559 | else | |
5556819a | 10560 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10561 | sed 's/^/| /' conftest.$ac_ext >&5 |
10562 | ||
7a197a62 | 10563 | ac_header_compiler=no |
ad6254c5 | 10564 | fi |
7a197a62 AK |
10565 | |
10566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10567 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10568 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10569 | |
10570 | # Is the header present? | |
5556819a AK |
10571 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10572 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10573 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10574 | /* confdefs.h. */ |
10575 | _ACEOF | |
10576 | cat confdefs.h >>conftest.$ac_ext | |
10577 | cat >>conftest.$ac_ext <<_ACEOF | |
10578 | /* end confdefs.h. */ | |
10579 | #include <$ac_header> | |
10580 | _ACEOF | |
7a197a62 AK |
10581 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10582 | case "(($ac_try" in | |
10583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10584 | *) ac_try_echo=$ac_try;; | |
10585 | esac | |
5556819a | 10586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10587 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10588 | ac_status=$? |
10589 | grep -v '^ *+' conftest.er1 >conftest.err | |
10590 | rm -f conftest.er1 | |
10591 | cat conftest.err >&5 | |
5556819a | 10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10593 | (exit $ac_status); } >/dev/null && { |
10594 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10595 | test ! -s conftest.err | |
10596 | }; then | |
ad6254c5 AK |
10597 | ac_header_preproc=yes |
10598 | else | |
5556819a | 10599 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10600 | sed 's/^/| /' conftest.$ac_ext >&5 |
10601 | ||
10602 | ac_header_preproc=no | |
10603 | fi | |
7a197a62 | 10604 | |
ad6254c5 | 10605 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10606 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10607 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10608 | |
10609 | # So? What about this header? | |
8a2fc586 AK |
10610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10611 | yes:no: ) | |
5556819a AK |
10612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10616 | ac_header_preproc=yes |
ad6254c5 | 10617 | ;; |
8a2fc586 | 10618 | no:yes:* ) |
5556819a AK |
10619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10631 | |
ad6254c5 AK |
10632 | ;; |
10633 | esac | |
5556819a AK |
10634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10638 | else |
8a2fc586 | 10639 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10640 | fi |
5556819a AK |
10641 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10643 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10644 | |
10645 | fi | |
5556819a | 10646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10647 | cat >>confdefs.h <<_ACEOF |
5556819a | 10648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10649 | _ACEOF |
10650 | ||
80992638 | 10651 | else |
5556819a AK |
10652 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10653 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10654 | { (exit 1); exit 1; }; } |
b896caa1 | 10655 | fi |
ad6254c5 | 10656 | |
b896caa1 AK |
10657 | done |
10658 | ||
10659 | ||
ad6254c5 AK |
10660 | for ac_func in socket |
10661 | do | |
5556819a AK |
10662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10663 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10665 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10667 | else |
ad6254c5 | 10668 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10669 | /* confdefs.h. */ |
10670 | _ACEOF | |
10671 | cat confdefs.h >>conftest.$ac_ext | |
10672 | cat >>conftest.$ac_ext <<_ACEOF | |
10673 | /* end confdefs.h. */ | |
8a2fc586 AK |
10674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10676 | #define $ac_func innocuous_$ac_func | |
10677 | ||
ad6254c5 AK |
10678 | /* System header to define __stub macros and hopefully few prototypes, |
10679 | which can conflict with char $ac_func (); below. | |
10680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10681 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10682 | |
ad6254c5 AK |
10683 | #ifdef __STDC__ |
10684 | # include <limits.h> | |
10685 | #else | |
10686 | # include <assert.h> | |
10687 | #endif | |
8a2fc586 AK |
10688 | |
10689 | #undef $ac_func | |
10690 | ||
7a197a62 AK |
10691 | /* Override any GCC internal prototype to avoid an error. |
10692 | Use char because int might match the return type of a GCC | |
10693 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10694 | #ifdef __cplusplus |
10695 | extern "C" | |
ad6254c5 | 10696 | #endif |
ad6254c5 AK |
10697 | char $ac_func (); |
10698 | /* The GNU C library defines this for functions which it implements | |
10699 | to always fail with ENOSYS. Some functions are actually named | |
10700 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10701 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10702 | choke me |
ad6254c5 AK |
10703 | #endif |
10704 | ||
10705 | int | |
10706 | main () | |
10707 | { | |
7a197a62 | 10708 | return $ac_func (); |
ad6254c5 AK |
10709 | ; |
10710 | return 0; | |
10711 | } | |
10712 | _ACEOF | |
10713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10714 | if { (ac_try="$ac_link" |
10715 | case "(($ac_try" in | |
10716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10717 | *) ac_try_echo=$ac_try;; | |
10718 | esac | |
5556819a | 10719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10720 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10721 | ac_status=$? |
8a2fc586 AK |
10722 | grep -v '^ *+' conftest.er1 >conftest.err |
10723 | rm -f conftest.er1 | |
10724 | cat conftest.err >&5 | |
5556819a | 10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10726 | (exit $ac_status); } && { |
10727 | test -z "$ac_c_werror_flag" || | |
10728 | test ! -s conftest.err | |
5556819a AK |
10729 | } && test -s conftest$ac_exeext && |
10730 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10731 | eval "$as_ac_var=yes" |
10732 | else | |
5556819a | 10733 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10734 | sed 's/^/| /' conftest.$ac_ext >&5 |
10735 | ||
7a197a62 | 10736 | eval "$as_ac_var=no" |
ad6254c5 | 10737 | fi |
7a197a62 | 10738 | |
25fbec5b | 10739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10740 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10741 | fi |
5556819a AK |
10742 | ac_res=`eval echo '${'$as_ac_var'}'` |
10743 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10744 | echo "${ECHO_T}$ac_res" >&6; } | |
10745 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10746 | cat >>confdefs.h <<_ACEOF |
5556819a | 10747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10748 | _ACEOF |
10749 | ||
10750 | else | |
5556819a AK |
10751 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10752 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10753 | { (exit 1); exit 1; }; } |
10754 | fi | |
10755 | done | |
10756 | ||
10757 | fi | |
10758 | ||
10759 | if test x$HAVE_LIBDL = xyes; then | |
10760 | ||
10761 | for ac_header in dlfcn.h | |
10762 | do | |
5556819a | 10763 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10765 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10769 | fi |
5556819a AK |
10770 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10771 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10772 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10773 | else |
10774 | # Is the header compilable? | |
5556819a AK |
10775 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10776 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10777 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10778 | /* confdefs.h. */ |
10779 | _ACEOF | |
10780 | cat confdefs.h >>conftest.$ac_ext | |
10781 | cat >>conftest.$ac_ext <<_ACEOF | |
10782 | /* end confdefs.h. */ | |
10783 | $ac_includes_default | |
10784 | #include <$ac_header> | |
10785 | _ACEOF | |
10786 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10787 | if { (ac_try="$ac_compile" |
10788 | case "(($ac_try" in | |
10789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10790 | *) ac_try_echo=$ac_try;; | |
10791 | esac | |
5556819a | 10792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10793 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10794 | ac_status=$? |
8a2fc586 AK |
10795 | grep -v '^ *+' conftest.er1 >conftest.err |
10796 | rm -f conftest.er1 | |
10797 | cat conftest.err >&5 | |
5556819a | 10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10799 | (exit $ac_status); } && { |
10800 | test -z "$ac_c_werror_flag" || | |
10801 | test ! -s conftest.err | |
10802 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10803 | ac_header_compiler=yes |
10804 | else | |
5556819a | 10805 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10806 | sed 's/^/| /' conftest.$ac_ext >&5 |
10807 | ||
7a197a62 | 10808 | ac_header_compiler=no |
ad6254c5 | 10809 | fi |
7a197a62 AK |
10810 | |
10811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10812 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10813 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10814 | |
10815 | # Is the header present? | |
5556819a AK |
10816 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10818 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10819 | /* confdefs.h. */ |
10820 | _ACEOF | |
10821 | cat confdefs.h >>conftest.$ac_ext | |
10822 | cat >>conftest.$ac_ext <<_ACEOF | |
10823 | /* end confdefs.h. */ | |
10824 | #include <$ac_header> | |
10825 | _ACEOF | |
7a197a62 AK |
10826 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10827 | case "(($ac_try" in | |
10828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10829 | *) ac_try_echo=$ac_try;; | |
10830 | esac | |
5556819a | 10831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10833 | ac_status=$? |
10834 | grep -v '^ *+' conftest.er1 >conftest.err | |
10835 | rm -f conftest.er1 | |
10836 | cat conftest.err >&5 | |
5556819a | 10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10838 | (exit $ac_status); } >/dev/null && { |
10839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10840 | test ! -s conftest.err | |
10841 | }; then | |
ad6254c5 AK |
10842 | ac_header_preproc=yes |
10843 | else | |
5556819a | 10844 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10845 | sed 's/^/| /' conftest.$ac_ext >&5 |
10846 | ||
10847 | ac_header_preproc=no | |
10848 | fi | |
7a197a62 | 10849 | |
ad6254c5 | 10850 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10851 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10852 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10853 | |
10854 | # So? What about this header? | |
8a2fc586 AK |
10855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10856 | yes:no: ) | |
5556819a AK |
10857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10860 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10861 | ac_header_preproc=yes |
ad6254c5 | 10862 | ;; |
8a2fc586 | 10863 | no:yes:* ) |
5556819a AK |
10864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10868 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10869 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10870 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10871 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10874 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10875 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10876 | |
ad6254c5 AK |
10877 | ;; |
10878 | esac | |
5556819a AK |
10879 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10883 | else |
8a2fc586 | 10884 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10885 | fi |
5556819a AK |
10886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10888 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 10889 | |
8106cdd5 | 10890 | fi |
5556819a | 10891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10892 | cat >>confdefs.h <<_ACEOF |
5556819a | 10893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10894 | _ACEOF |
795ca3e5 AK |
10895 | |
10896 | else | |
5556819a AK |
10897 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10898 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10899 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10900 | fi |
10901 | ||
ad6254c5 | 10902 | done |
80992638 | 10903 | |
ad6254c5 | 10904 | fi |
80992638 | 10905 | |
ad6254c5 | 10906 | if test x$INTL = xyes; then |
83912faa | 10907 | |
ad6254c5 AK |
10908 | for ac_header in libintl.h |
10909 | do | |
5556819a | 10910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10912 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10916 | fi |
5556819a AK |
10917 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10918 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10919 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10920 | else |
ad6254c5 | 10921 | # Is the header compilable? |
5556819a AK |
10922 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10923 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10924 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10925 | /* confdefs.h. */ |
10926 | _ACEOF | |
10927 | cat confdefs.h >>conftest.$ac_ext | |
10928 | cat >>conftest.$ac_ext <<_ACEOF | |
10929 | /* end confdefs.h. */ | |
10930 | $ac_includes_default | |
10931 | #include <$ac_header> | |
10932 | _ACEOF | |
10933 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10934 | if { (ac_try="$ac_compile" |
10935 | case "(($ac_try" in | |
10936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10937 | *) ac_try_echo=$ac_try;; | |
10938 | esac | |
5556819a | 10939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10940 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10941 | ac_status=$? |
8a2fc586 AK |
10942 | grep -v '^ *+' conftest.er1 >conftest.err |
10943 | rm -f conftest.er1 | |
10944 | cat conftest.err >&5 | |
5556819a | 10945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10946 | (exit $ac_status); } && { |
10947 | test -z "$ac_c_werror_flag" || | |
10948 | test ! -s conftest.err | |
10949 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10950 | ac_header_compiler=yes |
10951 | else | |
5556819a | 10952 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10953 | sed 's/^/| /' conftest.$ac_ext >&5 |
10954 | ||
7a197a62 | 10955 | ac_header_compiler=no |
ad6254c5 | 10956 | fi |
7a197a62 AK |
10957 | |
10958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10959 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10960 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10961 | |
10962 | # Is the header present? | |
5556819a AK |
10963 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10964 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10965 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10966 | /* confdefs.h. */ |
10967 | _ACEOF | |
10968 | cat confdefs.h >>conftest.$ac_ext | |
10969 | cat >>conftest.$ac_ext <<_ACEOF | |
10970 | /* end confdefs.h. */ | |
10971 | #include <$ac_header> | |
10972 | _ACEOF | |
7a197a62 AK |
10973 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10974 | case "(($ac_try" in | |
10975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10976 | *) ac_try_echo=$ac_try;; | |
10977 | esac | |
5556819a | 10978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10979 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10980 | ac_status=$? |
10981 | grep -v '^ *+' conftest.er1 >conftest.err | |
10982 | rm -f conftest.er1 | |
10983 | cat conftest.err >&5 | |
5556819a | 10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10985 | (exit $ac_status); } >/dev/null && { |
10986 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10987 | test ! -s conftest.err | |
10988 | }; then | |
ad6254c5 AK |
10989 | ac_header_preproc=yes |
10990 | else | |
5556819a | 10991 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10992 | sed 's/^/| /' conftest.$ac_ext >&5 |
10993 | ||
10994 | ac_header_preproc=no | |
10995 | fi | |
7a197a62 | 10996 | |
ad6254c5 | 10997 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10998 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10999 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11000 | |
11001 | # So? What about this header? | |
8a2fc586 AK |
11002 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11003 | yes:no: ) | |
5556819a AK |
11004 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11005 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11007 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11008 | ac_header_preproc=yes |
ad6254c5 | 11009 | ;; |
8a2fc586 | 11010 | no:yes:* ) |
5556819a AK |
11011 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11012 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11013 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11014 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11015 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11016 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11017 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11018 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11020 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11021 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11022 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11023 | |
ad6254c5 AK |
11024 | ;; |
11025 | esac | |
5556819a AK |
11026 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11030 | else |
8a2fc586 | 11031 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11032 | fi |
5556819a AK |
11033 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11034 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11035 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11036 | |
69792976 | 11037 | fi |
5556819a | 11038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11039 | cat >>confdefs.h <<_ACEOF |
5556819a | 11040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11041 | _ACEOF |
69792976 | 11042 | |
69792976 | 11043 | else |
5556819a AK |
11044 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11045 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11046 | { (exit 1); exit 1; }; } |
80992638 AK |
11047 | fi |
11048 | ||
ad6254c5 | 11049 | done |
69792976 | 11050 | |
ad6254c5 AK |
11051 | fi |
11052 | ||
ad6254c5 AK |
11053 | |
11054 | for ac_header in libdevmapper.h | |
11055 | do | |
5556819a | 11056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
11058 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11060 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11062 | fi |
5556819a AK |
11063 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11065 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11066 | else |
ad6254c5 | 11067 | # Is the header compilable? |
5556819a AK |
11068 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11069 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11070 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11071 | /* confdefs.h. */ |
11072 | _ACEOF | |
11073 | cat confdefs.h >>conftest.$ac_ext | |
11074 | cat >>conftest.$ac_ext <<_ACEOF | |
11075 | /* end confdefs.h. */ | |
11076 | $ac_includes_default | |
11077 | #include <$ac_header> | |
11078 | _ACEOF | |
11079 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11080 | if { (ac_try="$ac_compile" |
11081 | case "(($ac_try" in | |
11082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11083 | *) ac_try_echo=$ac_try;; | |
11084 | esac | |
5556819a | 11085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11086 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11087 | ac_status=$? |
8a2fc586 AK |
11088 | grep -v '^ *+' conftest.er1 >conftest.err |
11089 | rm -f conftest.er1 | |
11090 | cat conftest.err >&5 | |
5556819a | 11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11092 | (exit $ac_status); } && { |
11093 | test -z "$ac_c_werror_flag" || | |
11094 | test ! -s conftest.err | |
11095 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11096 | ac_header_compiler=yes |
11097 | else | |
5556819a | 11098 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11099 | sed 's/^/| /' conftest.$ac_ext >&5 |
11100 | ||
7a197a62 | 11101 | ac_header_compiler=no |
ad6254c5 | 11102 | fi |
7a197a62 AK |
11103 | |
11104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
11105 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11106 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11107 | |
11108 | # Is the header present? | |
5556819a AK |
11109 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11111 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11112 | /* confdefs.h. */ |
11113 | _ACEOF | |
11114 | cat confdefs.h >>conftest.$ac_ext | |
11115 | cat >>conftest.$ac_ext <<_ACEOF | |
11116 | /* end confdefs.h. */ | |
11117 | #include <$ac_header> | |
11118 | _ACEOF | |
7a197a62 AK |
11119 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11120 | case "(($ac_try" in | |
11121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11122 | *) ac_try_echo=$ac_try;; | |
11123 | esac | |
5556819a | 11124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11126 | ac_status=$? |
11127 | grep -v '^ *+' conftest.er1 >conftest.err | |
11128 | rm -f conftest.er1 | |
11129 | cat conftest.err >&5 | |
5556819a | 11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11131 | (exit $ac_status); } >/dev/null && { |
11132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11133 | test ! -s conftest.err | |
11134 | }; then | |
ad6254c5 AK |
11135 | ac_header_preproc=yes |
11136 | else | |
5556819a | 11137 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11138 | sed 's/^/| /' conftest.$ac_ext >&5 |
11139 | ||
11140 | ac_header_preproc=no | |
11141 | fi | |
7a197a62 | 11142 | |
ad6254c5 | 11143 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
11144 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11145 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11146 | |
11147 | # So? What about this header? | |
8a2fc586 AK |
11148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11149 | yes:no: ) | |
5556819a AK |
11150 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11151 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11152 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11153 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11154 | ac_header_preproc=yes |
ad6254c5 | 11155 | ;; |
8a2fc586 | 11156 | no:yes:* ) |
5556819a AK |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11158 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11164 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11166 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11167 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11168 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11169 | |
ad6254c5 AK |
11170 | ;; |
11171 | esac | |
5556819a AK |
11172 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11176 | else |
8a2fc586 | 11177 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11178 | fi |
5556819a AK |
11179 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11181 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11182 | |
ad6254c5 | 11183 | fi |
5556819a | 11184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11185 | cat >>confdefs.h <<_ACEOF |
5556819a | 11186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11187 | _ACEOF |
69792976 | 11188 | |
69792976 | 11189 | else |
5556819a AK |
11190 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11191 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11192 | { (exit 1); exit 1; }; } |
83912faa AK |
11193 | fi |
11194 | ||
ad6254c5 AK |
11195 | done |
11196 | ||
4a7f3eb2 | 11197 | |
ad6254c5 AK |
11198 | if test x$HAVE_SELINUX = xyes; then |
11199 | ||
11200 | for ac_header in selinux/selinux.h | |
11201 | do | |
5556819a | 11202 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
11204 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11208 | fi |
5556819a AK |
11209 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11211 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11212 | else |
ad6254c5 | 11213 | # Is the header compilable? |
5556819a AK |
11214 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11216 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11217 | /* confdefs.h. */ |
11218 | _ACEOF | |
11219 | cat confdefs.h >>conftest.$ac_ext | |
11220 | cat >>conftest.$ac_ext <<_ACEOF | |
11221 | /* end confdefs.h. */ | |
11222 | $ac_includes_default | |
11223 | #include <$ac_header> | |
11224 | _ACEOF | |
11225 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11226 | if { (ac_try="$ac_compile" |
11227 | case "(($ac_try" in | |
11228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11229 | *) ac_try_echo=$ac_try;; | |
11230 | esac | |
5556819a | 11231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11232 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11233 | ac_status=$? |
8a2fc586 AK |
11234 | grep -v '^ *+' conftest.er1 >conftest.err |
11235 | rm -f conftest.er1 | |
11236 | cat conftest.err >&5 | |
5556819a | 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11238 | (exit $ac_status); } && { |
11239 | test -z "$ac_c_werror_flag" || | |
11240 | test ! -s conftest.err | |
11241 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11242 | ac_header_compiler=yes |
11243 | else | |
5556819a | 11244 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11245 | sed 's/^/| /' conftest.$ac_ext >&5 |
11246 | ||
7a197a62 | 11247 | ac_header_compiler=no |
ad6254c5 | 11248 | fi |
7a197a62 AK |
11249 | |
11250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
11251 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11252 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11253 | |
11254 | # Is the header present? | |
5556819a AK |
11255 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11256 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11257 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11258 | /* confdefs.h. */ |
11259 | _ACEOF | |
11260 | cat confdefs.h >>conftest.$ac_ext | |
11261 | cat >>conftest.$ac_ext <<_ACEOF | |
11262 | /* end confdefs.h. */ | |
11263 | #include <$ac_header> | |
11264 | _ACEOF | |
7a197a62 AK |
11265 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11266 | case "(($ac_try" in | |
11267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11268 | *) ac_try_echo=$ac_try;; | |
11269 | esac | |
5556819a | 11270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11272 | ac_status=$? |
11273 | grep -v '^ *+' conftest.er1 >conftest.err | |
11274 | rm -f conftest.er1 | |
11275 | cat conftest.err >&5 | |
5556819a | 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11277 | (exit $ac_status); } >/dev/null && { |
11278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11279 | test ! -s conftest.err | |
11280 | }; then | |
ad6254c5 AK |
11281 | ac_header_preproc=yes |
11282 | else | |
5556819a | 11283 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11284 | sed 's/^/| /' conftest.$ac_ext >&5 |
11285 | ||
11286 | ac_header_preproc=no | |
11287 | fi | |
7a197a62 | 11288 | |
ad6254c5 | 11289 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
11290 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11291 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11292 | |
11293 | # So? What about this header? | |
8a2fc586 AK |
11294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11295 | yes:no: ) | |
5556819a AK |
11296 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11297 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11299 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11300 | ac_header_preproc=yes |
ad6254c5 | 11301 | ;; |
8a2fc586 | 11302 | no:yes:* ) |
5556819a AK |
11303 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11304 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11305 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11306 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11307 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11308 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11309 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11310 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11312 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11313 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11314 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11315 | |
ad6254c5 AK |
11316 | ;; |
11317 | esac | |
5556819a AK |
11318 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11322 | else |
8a2fc586 | 11323 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11324 | fi |
5556819a AK |
11325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11327 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11328 | |
ad6254c5 | 11329 | fi |
5556819a | 11330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11331 | cat >>confdefs.h <<_ACEOF |
5556819a | 11332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11333 | _ACEOF |
0a62c911 | 11334 | |
0a62c911 | 11335 | else |
5556819a AK |
11336 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11337 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11338 | { (exit 1); exit 1; }; } |
80992638 AK |
11339 | fi |
11340 | ||
ad6254c5 | 11341 | done |
0a62c911 | 11342 | |
ad6254c5 | 11343 | fi |
0a62c911 | 11344 | |
a653923f AK |
11345 | ################################################################################ |
11346 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11347 | set dummy modprobe; ac_word=$2 | |
5556819a AK |
11348 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11350 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
5556819a | 11351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11352 | else |
11353 | case $MODPROBE_CMD in | |
11354 | [\\/]* | ?:[\\/]*) | |
11355 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11356 | ;; | |
11357 | *) | |
11358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11359 | for as_dir in $PATH | |
11360 | do | |
11361 | IFS=$as_save_IFS | |
11362 | test -z "$as_dir" && as_dir=. | |
11363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11365 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
5556819a | 11366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11367 | break 2 |
11368 | fi | |
11369 | done | |
11370 | done | |
7a197a62 | 11371 | IFS=$as_save_IFS |
72b2cb61 AK |
11372 | |
11373 | ;; | |
11374 | esac | |
11375 | fi | |
11376 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11377 | if test -n "$MODPROBE_CMD"; then |
5556819a AK |
11378 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11379 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11380 | else |
5556819a AK |
11381 | { echo "$as_me:$LINENO: result: no" >&5 |
11382 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11383 | fi |
11384 | ||
a653923f | 11385 | |
7a197a62 | 11386 | |
a653923f | 11387 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11388 | |
11389 | cat >>confdefs.h <<_ACEOF | |
11390 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11391 | _ACEOF | |
11392 | ||
a653923f AK |
11393 | fi |
11394 | ||
80992638 | 11395 | ################################################################################ |
d0191583 | 11396 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11397 | |
80992638 | 11398 | ################################################################################ |
fae0c576 | 11399 | |
83912faa | 11400 | |
795ca3e5 AK |
11401 | |
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
5a52dca9 | 11407 | |
8ef2b021 | 11408 | |
199e490e | 11409 | |
69792976 AK |
11410 | |
11411 | ||
11412 | ||
d0191583 JM |
11413 | # FIXME: rename to LVM_USE_DMEVENTD |
11414 | ||
69792976 | 11415 | |
8106cdd5 AK |
11416 | |
11417 | ||
11418 | ||
11419 | ||
11420 | ||
d68a82ec | 11421 | |
036f273a | 11422 | |
7d1552c9 | 11423 | |
8106cdd5 | 11424 | |
0a62c911 | 11425 | |
8106cdd5 | 11426 | |
4a7f3eb2 | 11427 | |
4922197a AK |
11428 | |
11429 | ||
d8ac0fbc | 11430 | |
1a9ea74d | 11431 | |
8a2fc586 AK |
11432 | |
11433 | ||
d0191583 JM |
11434 | |
11435 | # FIXME: rename to LVM_CONF_DIR | |
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
8a2fc586 | 11441 | |
8ce0cbda | 11442 | |
8b1a3214 | 11443 | |
33f732c5 | 11444 | |
66e941e8 | 11445 | |
d3c8211f AK |
11446 | |
11447 | ||
80992638 | 11448 | ################################################################################ |
d0191583 | 11449 | ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11450 | |
ad6254c5 | 11451 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11452 | # This file is a shell script that caches the results of configure |
11453 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11454 | # scripts and configure runs, see configure's option --config-cache. |
11455 | # It is not useful on other systems. If it contains results you don't | |
11456 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11457 | # |
ad6254c5 AK |
11458 | # config.status only pays attention to the cache file if you give it |
11459 | # the --recheck option to rerun configure. | |
795ca3e5 | 11460 | # |
ad6254c5 AK |
11461 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11462 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11463 | # following values. | |
11464 | ||
11465 | _ACEOF | |
11466 | ||
795ca3e5 AK |
11467 | # The following way of writing the cache mishandles newlines in values, |
11468 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11469 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11470 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11471 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11472 | ( |
11473 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11474 | eval ac_val=\$$ac_var | |
11475 | case $ac_val in #( | |
11476 | *${as_nl}*) | |
11477 | case $ac_var in #( | |
5556819a AK |
11478 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11479 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11480 | esac |
11481 | case $ac_var in #( | |
11482 | _ | IFS | as_nl) ;; #( | |
11483 | *) $as_unset $ac_var ;; | |
11484 | esac ;; | |
11485 | esac | |
11486 | done | |
11487 | ||
ad6254c5 | 11488 | (set) 2>&1 | |
7a197a62 AK |
11489 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11490 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11491 | # `set' does not quote correctly, so add quotes (double-quote |
11492 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11493 | sed -n \ | |
8a2fc586 AK |
11494 | "s/'/'\\\\''/g; |
11495 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11496 | ;; #( |
ad6254c5 AK |
11497 | *) |
11498 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11499 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11500 | ;; |
7a197a62 AK |
11501 | esac | |
11502 | sort | |
11503 | ) | | |
ad6254c5 | 11504 | sed ' |
7a197a62 | 11505 | /^ac_cv_env_/b end |
ad6254c5 | 11506 | t clear |
7a197a62 | 11507 | :clear |
ad6254c5 AK |
11508 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11509 | t end | |
7a197a62 AK |
11510 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11511 | :end' >>confcache | |
11512 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11513 | if test -w "$cache_file"; then | |
11514 | test "x$cache_file" != "x/dev/null" && | |
5556819a AK |
11515 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11516 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11517 | cat confcache >$cache_file |
795ca3e5 | 11518 | else |
5556819a AK |
11519 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11520 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11521 | fi |
11522 | fi | |
11523 | rm -f confcache | |
11524 | ||
795ca3e5 AK |
11525 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11526 | # Let make expand exec_prefix. | |
11527 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11528 | ||
72b2cb61 | 11529 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11530 | |
11531 | ac_libobjs= | |
11532 | ac_ltlibobjs= | |
11533 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11534 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11535 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5556819a | 11536 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11537 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11538 | # will be set to the directory where LIBOBJS objects are built. | |
11539 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11540 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11541 | done |
11542 | LIBOBJS=$ac_libobjs | |
80992638 | 11543 | |
ad6254c5 AK |
11544 | LTLIBOBJS=$ac_ltlibobjs |
11545 | ||
11546 | ||
11547 | ||
11548 | : ${CONFIG_STATUS=./config.status} | |
11549 | ac_clean_files_save=$ac_clean_files | |
11550 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5556819a AK |
11551 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11552 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11553 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11554 | #! $SHELL |
11555 | # Generated by $as_me. | |
795ca3e5 | 11556 | # Run this file to recreate the current configuration. |
795ca3e5 | 11557 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11558 | # configure, is in config.log if it exists. |
11559 | ||
11560 | debug=false | |
11561 | ac_cs_recheck=false | |
11562 | ac_cs_silent=false | |
11563 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11564 | _ACEOF | |
11565 | ||
5556819a | 11566 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11567 | ## --------------------- ## |
11568 | ## M4sh Initialization. ## | |
11569 | ## --------------------- ## | |
11570 | ||
25fbec5b AK |
11571 | # Be more Bourne compatible |
11572 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11573 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11574 | emulate sh | |
11575 | NULLCMD=: | |
5556819a | 11576 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11577 | # is contrary to our usage. Disable this feature. |
11578 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11579 | setopt NO_GLOB_SUBST |
11580 | else | |
25fbec5b AK |
11581 | case `(set -o) 2>/dev/null` in |
11582 | *posix*) set -o posix ;; | |
11583 | esac | |
11584 | ||
7a197a62 | 11585 | fi |
25fbec5b AK |
11586 | |
11587 | ||
7a197a62 AK |
11588 | |
11589 | ||
11590 | # PATH needs CR | |
11591 | # Avoid depending upon Character Ranges. | |
11592 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11593 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11594 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11595 | as_cr_digits='0123456789' | |
11596 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11597 | ||
fddafd51 ZK |
11598 | # The user is always right. |
11599 | if test "${PATH_SEPARATOR+set}" != set; then | |
5556819a AK |
11600 | echo "#! /bin/sh" >conf$$.sh |
11601 | echo "exit 0" >>conf$$.sh | |
11602 | chmod +x conf$$.sh | |
11603 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11604 | PATH_SEPARATOR=';' | |
11605 | else | |
11606 | PATH_SEPARATOR=: | |
11607 | fi | |
11608 | rm -f conf$$.sh | |
ad6254c5 AK |
11609 | fi |
11610 | ||
11611 | # Support unset when possible. | |
8a2fc586 | 11612 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11613 | as_unset=unset |
11614 | else | |
11615 | as_unset=false | |
11616 | fi | |
8106cdd5 | 11617 | |
ad6254c5 | 11618 | |
7a197a62 AK |
11619 | # IFS |
11620 | # We need space, tab and new line, in precisely that order. Quoting is | |
11621 | # there to prevent editors from complaining about space-tab. | |
11622 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11623 | # splitting by setting IFS to empty value.) | |
5556819a AK |
11624 | as_nl=' |
11625 | ' | |
7a197a62 AK |
11626 | IFS=" "" $as_nl" |
11627 | ||
11628 | # Find who we are. Look in the path if we contain no directory separator. | |
11629 | case $0 in | |
11630 | *[\\/]* ) as_myself=$0 ;; | |
11631 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11632 | for as_dir in $PATH | |
11633 | do | |
11634 | IFS=$as_save_IFS | |
11635 | test -z "$as_dir" && as_dir=. | |
11636 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11637 | done | |
11638 | IFS=$as_save_IFS | |
11639 | ||
11640 | ;; | |
11641 | esac | |
11642 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11643 | # in which case we are not to be found in the path. | |
11644 | if test "x$as_myself" = x; then | |
11645 | as_myself=$0 | |
11646 | fi | |
11647 | if test ! -f "$as_myself"; then | |
5556819a | 11648 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11649 | { (exit 1); exit 1; } |
11650 | fi | |
11651 | ||
ad6254c5 | 11652 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11653 | for as_var in ENV MAIL MAILPATH |
11654 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11655 | done | |
ad6254c5 AK |
11656 | PS1='$ ' |
11657 | PS2='> ' | |
11658 | PS4='+ ' | |
11659 | ||
11660 | # NLS nuisances. | |
5556819a AK |
11661 | for as_var in \ |
11662 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11663 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11664 | LC_TELEPHONE LC_TIME | |
11665 | do | |
11666 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11667 | eval $as_var=C; export $as_var | |
11668 | else | |
11669 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11670 | fi | |
11671 | done | |
8106cdd5 | 11672 | |
ad6254c5 | 11673 | # Required to use basename. |
7a197a62 AK |
11674 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11675 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11676 | as_expr=expr |
11677 | else | |
11678 | as_expr=false | |
11679 | fi | |
8106cdd5 | 11680 | |
7a197a62 | 11681 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11682 | as_basename=basename |
11683 | else | |
11684 | as_basename=false | |
11685 | fi | |
11686 | ||
11687 | ||
11688 | # Name of the executable. | |
7a197a62 | 11689 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11690 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11691 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11692 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 11693 | echo X/"$0" | |
7a197a62 AK |
11694 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11695 | s//\1/ | |
11696 | q | |
11697 | } | |
11698 | /^X\/\(\/\/\)$/{ | |
11699 | s//\1/ | |
11700 | q | |
11701 | } | |
11702 | /^X\/\(\/\).*/{ | |
11703 | s//\1/ | |
11704 | q | |
11705 | } | |
11706 | s/.*/./; q'` | |
ad6254c5 | 11707 | |
7a197a62 AK |
11708 | # CDPATH. |
11709 | $as_unset CDPATH | |
ad6254c5 AK |
11710 | |
11711 | ||
ad6254c5 | 11712 | |
ad6254c5 AK |
11713 | as_lineno_1=$LINENO |
11714 | as_lineno_2=$LINENO | |
ad6254c5 | 11715 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11716 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11717 | |
ad6254c5 AK |
11718 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11719 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11720 | # line-number line after each line using $LINENO; the second 'sed' |
11721 | # does the real work. The second script uses 'N' to pair each | |
11722 | # line-number line with the line containing $LINENO, and appends | |
11723 | # trailing '-' during substitution so that $LINENO is not a special | |
11724 | # case at line end. | |
ad6254c5 | 11725 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11726 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11727 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11728 | sed -n ' | |
11729 | p | |
11730 | /[$]LINENO/= | |
11731 | ' <$as_myself | | |
ad6254c5 | 11732 | sed ' |
7a197a62 AK |
11733 | s/[$]LINENO.*/&-/ |
11734 | t lineno | |
11735 | b | |
11736 | :lineno | |
ad6254c5 | 11737 | N |
7a197a62 AK |
11738 | :loop |
11739 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11740 | t loop |
7a197a62 | 11741 | s/-\n.*// |
ad6254c5 | 11742 | ' >$as_me.lineno && |
7a197a62 | 11743 | chmod +x "$as_me.lineno" || |
5556819a | 11744 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11745 | { (exit 1); exit 1; }; } |
11746 | ||
11747 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11748 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11749 | # original and so on. Autoconf is especially sensitive to this). |
11750 | . "./$as_me.lineno" | |
ad6254c5 AK |
11751 | # Exit status is that of the last command. |
11752 | exit | |
11753 | } | |
11754 | ||
11755 | ||
7a197a62 AK |
11756 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11757 | as_dirname=dirname | |
11758 | else | |
11759 | as_dirname=false | |
11760 | fi | |
11761 | ||
11762 | ECHO_C= ECHO_N= ECHO_T= | |
11763 | case `echo -n x` in | |
11764 | -n*) | |
11765 | case `echo 'x\c'` in | |
11766 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11767 | *) ECHO_C='\c';; | |
11768 | esac;; | |
11769 | *) | |
11770 | ECHO_N='-n';; | |
ad6254c5 | 11771 | esac |
5556819a | 11772 | |
7a197a62 AK |
11773 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11774 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11775 | as_expr=expr |
11776 | else | |
11777 | as_expr=false | |
11778 | fi | |
80992638 | 11779 | |
ad6254c5 | 11780 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11781 | if test -d conf$$.dir; then |
11782 | rm -f conf$$.dir/conf$$.file | |
11783 | else | |
11784 | rm -f conf$$.dir | |
5556819a AK |
11785 | mkdir conf$$.dir |
11786 | fi | |
11787 | echo >conf$$.file | |
11788 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11789 | as_ln_s='ln -s' | |
11790 | # ... but there are two gotchas: | |
11791 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11792 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11793 | # In both cases, we have to default to `cp -p'. | |
11794 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11795 | as_ln_s='cp -p' |
5556819a AK |
11796 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11797 | as_ln_s=ln | |
ad6254c5 AK |
11798 | else |
11799 | as_ln_s='cp -p' | |
11800 | fi | |
7a197a62 AK |
11801 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11802 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11803 | |
ad6254c5 AK |
11804 | if mkdir -p . 2>/dev/null; then |
11805 | as_mkdir_p=: | |
11806 | else | |
8a2fc586 | 11807 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11808 | as_mkdir_p=false |
11809 | fi | |
11810 | ||
25fbec5b AK |
11811 | if test -x / >/dev/null 2>&1; then |
11812 | as_test_x='test -x' | |
7a197a62 | 11813 | else |
25fbec5b AK |
11814 | if ls -dL / >/dev/null 2>&1; then |
11815 | as_ls_L_option=L | |
11816 | else | |
11817 | as_ls_L_option= | |
11818 | fi | |
11819 | as_test_x=' | |
11820 | eval sh -c '\'' | |
11821 | if test -d "$1"; then | |
5556819a | 11822 | test -d "$1/."; |
25fbec5b AK |
11823 | else |
11824 | case $1 in | |
5556819a | 11825 | -*)set "./$1";; |
25fbec5b AK |
11826 | esac; |
11827 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11828 | ???[sx]*):;;*)false;;esac;fi | |
11829 | '\'' sh | |
11830 | ' | |
7a197a62 | 11831 | fi |
25fbec5b | 11832 | as_executable_p=$as_test_x |
ad6254c5 AK |
11833 | |
11834 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11835 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11836 | |
11837 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11838 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11839 | |
11840 | ||
ad6254c5 AK |
11841 | exec 6>&1 |
11842 | ||
7a197a62 | 11843 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11844 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11845 | # values after options handling. |
11846 | ac_log=" | |
ad6254c5 | 11847 | This file was extended by $as_me, which was |
5556819a | 11848 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11849 | |
11850 | CONFIG_FILES = $CONFIG_FILES | |
11851 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11852 | CONFIG_LINKS = $CONFIG_LINKS | |
11853 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11854 | $ $0 $@ | |
11855 | ||
7a197a62 AK |
11856 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11857 | " | |
11858 | ||
ad6254c5 AK |
11859 | _ACEOF |
11860 | ||
5556819a | 11861 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11862 | # Files that config.status was made for. |
7a197a62 AK |
11863 | config_files="$ac_config_files" |
11864 | config_headers="$ac_config_headers" | |
ad6254c5 | 11865 | |
7a197a62 | 11866 | _ACEOF |
ad6254c5 | 11867 | |
5556819a | 11868 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11869 | ac_cs_usage="\ |
11870 | \`$as_me' instantiates files from templates according to the | |
11871 | current configuration. | |
11872 | ||
11873 | Usage: $0 [OPTIONS] [FILE]... | |
11874 | ||
11875 | -h, --help print this help, then exit | |
25fbec5b | 11876 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
11877 | -q, --quiet do not print progress messages |
11878 | -d, --debug don't remove temporary files | |
11879 | --recheck update $as_me by reconfiguring in the same conditions | |
11880 | --file=FILE[:TEMPLATE] | |
5556819a | 11881 | instantiate the configuration file FILE |
72b2cb61 | 11882 | --header=FILE[:TEMPLATE] |
5556819a | 11883 | instantiate the configuration header FILE |
ad6254c5 AK |
11884 | |
11885 | Configuration files: | |
11886 | $config_files | |
11887 | ||
72b2cb61 AK |
11888 | Configuration headers: |
11889 | $config_headers | |
11890 | ||
ad6254c5 | 11891 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 11892 | |
7a197a62 | 11893 | _ACEOF |
5556819a | 11894 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
11895 | ac_cs_version="\\ |
11896 | config.status | |
5556819a AK |
11897 | configured by $0, generated by GNU Autoconf 2.61, |
11898 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 11899 | |
5556819a | 11900 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
11901 | This config.status script is free software; the Free Software Foundation |
11902 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11903 | |
11904 | ac_pwd='$ac_pwd' | |
11905 | srcdir='$srcdir' | |
11906 | INSTALL='$INSTALL' | |
fddafd51 | 11907 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
11908 | _ACEOF |
11909 | ||
5556819a AK |
11910 | cat >>$CONFIG_STATUS <<\_ACEOF |
11911 | # If no file are specified by the user, then we need to provide default | |
11912 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
11913 | ac_need_defaults=: |
11914 | while test $# != 0 | |
11915 | do | |
11916 | case $1 in | |
11917 | --*=*) | |
7a197a62 AK |
11918 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11919 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11920 | ac_shift=: |
11921 | ;; | |
7a197a62 | 11922 | *) |
ad6254c5 AK |
11923 | ac_option=$1 |
11924 | ac_optarg=$2 | |
11925 | ac_shift=shift | |
11926 | ;; | |
ad6254c5 AK |
11927 | esac |
11928 | ||
11929 | case $ac_option in | |
11930 | # Handling of the options. | |
ad6254c5 AK |
11931 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11932 | ac_cs_recheck=: ;; | |
7a197a62 | 11933 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5556819a | 11934 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 11935 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11936 | debug=: ;; |
11937 | --file | --fil | --fi | --f ) | |
11938 | $ac_shift | |
5556819a | 11939 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
11940 | ac_need_defaults=false;; |
11941 | --header | --heade | --head | --hea ) | |
11942 | $ac_shift | |
5556819a | 11943 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 11944 | ac_need_defaults=false;; |
7a197a62 AK |
11945 | --he | --h) |
11946 | # Conflict between --help and --header | |
5556819a | 11947 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
11948 | Try \`$0 --help' for more information." >&2 |
11949 | { (exit 1); exit 1; }; };; | |
11950 | --help | --hel | -h ) | |
5556819a | 11951 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11952 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11953 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11954 | ac_cs_silent=: ;; | |
11955 | ||
11956 | # This is an error. | |
5556819a | 11957 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 11958 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
11959 | { (exit 1); exit 1; }; } ;; |
11960 | ||
7a197a62 AK |
11961 | *) ac_config_targets="$ac_config_targets $1" |
11962 | ac_need_defaults=false ;; | |
ad6254c5 AK |
11963 | |
11964 | esac | |
11965 | shift | |
11966 | done | |
11967 | ||
11968 | ac_configure_extra_args= | |
11969 | ||
11970 | if $ac_cs_silent; then | |
11971 | exec 6>/dev/null | |
11972 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11973 | fi | |
11974 | ||
11975 | _ACEOF | |
5556819a | 11976 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11977 | if \$ac_cs_recheck; then |
5556819a AK |
11978 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11979 | CONFIG_SHELL=$SHELL | |
7a197a62 | 11980 | export CONFIG_SHELL |
5556819a | 11981 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
11982 | fi |
11983 | ||
11984 | _ACEOF | |
5556819a | 11985 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
11986 | exec 5>>config.log |
11987 | { | |
11988 | echo | |
11989 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11990 | ## Running $as_me. ## | |
11991 | _ASBOX | |
5556819a | 11992 | echo "$ac_log" |
7a197a62 | 11993 | } >&5 |
ad6254c5 | 11994 | |
7a197a62 | 11995 | _ACEOF |
5556819a | 11996 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 11997 | _ACEOF |
ad6254c5 | 11998 | |
5556819a | 11999 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12000 | |
12001 | # Handling of arguments. | |
ad6254c5 AK |
12002 | for ac_config_target in $ac_config_targets |
12003 | do | |
7a197a62 AK |
12004 | case $ac_config_target in |
12005 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12006 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12007 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
d0191583 JM |
12008 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12009 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12010 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12011 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12012 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
7a197a62 AK |
12013 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
12014 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
7a197a62 | 12015 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; |
d0191583 | 12016 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 | 12017 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
7a197a62 AK |
12018 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12019 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12020 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12021 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12022 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12023 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12024 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
12025 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12026 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12027 | |
5556819a AK |
12028 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12029 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12030 | { (exit 1); exit 1; }; };; |
80992638 | 12031 | esac |
ad6254c5 AK |
12032 | done |
12033 | ||
7a197a62 | 12034 | |
ad6254c5 AK |
12035 | # If the user did not use the arguments to specify the items to instantiate, |
12036 | # then the envvar interface is used. Set only those that are not. | |
12037 | # We use the long form for the default assignment because of an extremely | |
12038 | # bizarre bug on SunOS 4.1.3. | |
12039 | if $ac_need_defaults; then | |
12040 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12041 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12042 | fi |
12043 | ||
12044 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12045 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12046 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12047 | # Hook for its removal unless debugging. |
12048 | # Note that there is a small window in which the directory will not be cleaned: | |
12049 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12050 | $debug || |
12051 | { | |
7a197a62 AK |
12052 | tmp= |
12053 | trap 'exit_status=$? | |
12054 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12055 | ' 0 | |
ad6254c5 AK |
12056 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12057 | } | |
ad6254c5 AK |
12058 | # Create a (secure) tmp directory for tmp files. |
12059 | ||
12060 | { | |
7a197a62 | 12061 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12062 | test -n "$tmp" && test -d "$tmp" |
12063 | } || | |
12064 | { | |
7a197a62 AK |
12065 | tmp=./conf$$-$RANDOM |
12066 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12067 | } || |
12068 | { | |
5556819a | 12069 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12070 | { (exit 1); exit 1; } |
12071 | } | |
12072 | ||
5556819a AK |
12073 | # |
12074 | # Set up the sed scripts for CONFIG_FILES section. | |
12075 | # | |
12076 | ||
12077 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12078 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12079 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12080 | |
5556819a | 12081 | _ACEOF |
7a197a62 | 12082 | |
5556819a AK |
12083 | |
12084 | ||
12085 | ac_delim='%!_!# ' | |
12086 | for ac_last_try in false false false false false :; do | |
12087 | cat >conf$$subs.sed <<_ACEOF | |
12088 | SHELL!$SHELL$ac_delim | |
12089 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12090 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12091 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12092 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12093 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12094 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12095 | exec_prefix!$exec_prefix$ac_delim | |
12096 | prefix!$prefix$ac_delim | |
12097 | program_transform_name!$program_transform_name$ac_delim | |
12098 | bindir!$bindir$ac_delim | |
12099 | sbindir!$sbindir$ac_delim | |
12100 | libexecdir!$libexecdir$ac_delim | |
12101 | datarootdir!$datarootdir$ac_delim | |
12102 | datadir!$datadir$ac_delim | |
12103 | sysconfdir!$sysconfdir$ac_delim | |
12104 | sharedstatedir!$sharedstatedir$ac_delim | |
12105 | localstatedir!$localstatedir$ac_delim | |
12106 | includedir!$includedir$ac_delim | |
12107 | oldincludedir!$oldincludedir$ac_delim | |
12108 | docdir!$docdir$ac_delim | |
12109 | infodir!$infodir$ac_delim | |
12110 | htmldir!$htmldir$ac_delim | |
12111 | dvidir!$dvidir$ac_delim | |
12112 | pdfdir!$pdfdir$ac_delim | |
12113 | psdir!$psdir$ac_delim | |
12114 | libdir!$libdir$ac_delim | |
12115 | localedir!$localedir$ac_delim | |
12116 | mandir!$mandir$ac_delim | |
12117 | DEFS!$DEFS$ac_delim | |
12118 | ECHO_C!$ECHO_C$ac_delim | |
12119 | ECHO_N!$ECHO_N$ac_delim | |
12120 | ECHO_T!$ECHO_T$ac_delim | |
12121 | LIBS!$LIBS$ac_delim | |
12122 | build_alias!$build_alias$ac_delim | |
12123 | host_alias!$host_alias$ac_delim | |
12124 | target_alias!$target_alias$ac_delim | |
12125 | build!$build$ac_delim | |
12126 | build_cpu!$build_cpu$ac_delim | |
12127 | build_vendor!$build_vendor$ac_delim | |
12128 | build_os!$build_os$ac_delim | |
12129 | host!$host$ac_delim | |
12130 | host_cpu!$host_cpu$ac_delim | |
12131 | host_vendor!$host_vendor$ac_delim | |
12132 | host_os!$host_os$ac_delim | |
12133 | target!$target$ac_delim | |
12134 | target_cpu!$target_cpu$ac_delim | |
12135 | target_vendor!$target_vendor$ac_delim | |
12136 | target_os!$target_os$ac_delim | |
12137 | AWK!$AWK$ac_delim | |
12138 | CC!$CC$ac_delim | |
12139 | CFLAGS!$CFLAGS$ac_delim | |
12140 | LDFLAGS!$LDFLAGS$ac_delim | |
12141 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12142 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12143 | EXEEXT!$EXEEXT$ac_delim | |
12144 | OBJEXT!$OBJEXT$ac_delim | |
12145 | CPP!$CPP$ac_delim | |
12146 | GREP!$GREP$ac_delim | |
12147 | EGREP!$EGREP$ac_delim | |
12148 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12149 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12150 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12151 | LN_S!$LN_S$ac_delim | |
12152 | SET_MAKE!$SET_MAKE$ac_delim | |
12153 | RANLIB!$RANLIB$ac_delim | |
12154 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12155 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12156 | ALLOCA!$ALLOCA$ac_delim | |
12157 | LIBOBJS!$LIBOBJS$ac_delim | |
12158 | POW_LIB!$POW_LIB$ac_delim | |
12159 | LCOV!$LCOV$ac_delim | |
12160 | GENHTML!$GENHTML$ac_delim | |
12161 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12162 | MSGFMT!$MSGFMT$ac_delim | |
12163 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12164 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12165 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12166 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12167 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12168 | CLUSTER!$CLUSTER$ac_delim | |
12169 | CLVMD!$CLVMD$ac_delim | |
12170 | CMDLIB!$CMDLIB$ac_delim | |
12171 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12172 | DEBUG!$DEBUG$ac_delim | |
12173 | DEVMAPPER!$DEVMAPPER$ac_delim | |
12174 | DMDIR!$DMDIR$ac_delim | |
12175 | DMEVENTD!$DMEVENTD$ac_delim | |
12176 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12177 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12178 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12179 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12180 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12181 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12182 | FSADM!$FSADM$ac_delim | |
12183 | GROUP!$GROUP$ac_delim | |
12184 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim | |
12185 | _ACEOF | |
12186 | ||
12187 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12188 | break | |
12189 | elif $ac_last_try; then | |
12190 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12191 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12192 | { (exit 1); exit 1; }; } | |
12193 | else | |
12194 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12195 | fi | |
12196 | done | |
12197 | ||
12198 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12199 | if test -n "$ac_eof"; then | |
12200 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12201 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12202 | fi |
7a197a62 | 12203 | |
5556819a AK |
12204 | cat >>$CONFIG_STATUS <<_ACEOF |
12205 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12206 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12207 | _ACEOF | |
12208 | sed ' | |
12209 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12210 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12211 | :n | |
12212 | t n | |
12213 | s/'"$ac_delim"'$/,g/; t | |
12214 | s/$/\\/; p | |
12215 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12216 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12217 | rm -f conf$$subs.sed | |
12218 | cat >>$CONFIG_STATUS <<_ACEOF | |
12219 | CEOF$ac_eof | |
1995c9ff | 12220 | _ACEOF |
7a197a62 | 12221 | |
8106cdd5 | 12222 | |
1995c9ff AK |
12223 | ac_delim='%!_!# ' |
12224 | for ac_last_try in false false false false false :; do | |
5556819a AK |
12225 | cat >conf$$subs.sed <<_ACEOF |
12226 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
12227 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12228 | INTL!$INTL$ac_delim | |
12229 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12230 | JOBS!$JOBS$ac_delim | |
12231 | LDDEPS!$LDDEPS$ac_delim | |
12232 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12233 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12234 | LVM1!$LVM1$ac_delim | |
12235 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12236 | CONFDIR!$CONFDIR$ac_delim | |
12237 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12238 | MIRRORS!$MIRRORS$ac_delim | |
12239 | OWNER!$OWNER$ac_delim | |
12240 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12241 | POOL!$POOL$ac_delim | |
12242 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12243 | STATICDIR!$STATICDIR$ac_delim | |
12244 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12245 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
12246 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12247 | _ACEOF | |
12248 | ||
12249 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then | |
1995c9ff AK |
12250 | break |
12251 | elif $ac_last_try; then | |
5556819a AK |
12252 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12253 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12254 | { (exit 1); exit 1; }; } |
12255 | else | |
12256 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12257 | fi | |
12258 | done | |
7a197a62 | 12259 | |
5556819a AK |
12260 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12261 | if test -n "$ac_eof"; then | |
12262 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12263 | ac_eof=`expr $ac_eof + 1` | |
12264 | fi | |
fddafd51 | 12265 | |
5556819a AK |
12266 | cat >>$CONFIG_STATUS <<_ACEOF |
12267 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12268 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12269 | _ACEOF |
5556819a AK |
12270 | sed ' |
12271 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12272 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12273 | :n | |
12274 | t n | |
12275 | s/'"$ac_delim"'$/,g/; t | |
12276 | s/$/\\/; p | |
12277 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12278 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12279 | rm -f conf$$subs.sed | |
12280 | cat >>$CONFIG_STATUS <<_ACEOF | |
12281 | :end | |
12282 | s/|#_!!_#|//g | |
12283 | CEOF$ac_eof | |
7a197a62 AK |
12284 | _ACEOF |
12285 | ||
5556819a | 12286 | |
7a197a62 AK |
12287 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12288 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12289 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12290 | # (actually we leave an empty line to preserve line numbers). | |
12291 | if test "x$srcdir" = x.; then | |
12292 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12293 | s/:*\$(srcdir):*/:/ | |
12294 | s/:*\${srcdir}:*/:/ | |
12295 | s/:*@srcdir@:*/:/ | |
12296 | s/^\([^=]*=[ ]*\):*/\1/ | |
12297 | s/:*$// | |
12298 | s/^[^=]*=[ ]*$// | |
12299 | }' | |
12300 | fi | |
12301 | ||
5556819a | 12302 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12303 | fi # test -n "$CONFIG_FILES" |
12304 | ||
12305 | ||
5556819a | 12306 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12307 | do |
12308 | case $ac_tag in | |
12309 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12310 | esac | |
12311 | case $ac_mode$ac_tag in | |
12312 | :[FHL]*:*);; | |
5556819a AK |
12313 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12314 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12315 | { (exit 1); exit 1; }; };; |
12316 | :[FH]-) ac_tag=-:-;; | |
12317 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12318 | esac | |
12319 | ac_save_IFS=$IFS | |
12320 | IFS=: | |
12321 | set x $ac_tag | |
12322 | IFS=$ac_save_IFS | |
12323 | shift | |
12324 | ac_file=$1 | |
12325 | shift | |
12326 | ||
12327 | case $ac_mode in | |
12328 | :L) ac_source=$1;; | |
12329 | :[FH]) | |
12330 | ac_file_inputs= | |
12331 | for ac_f | |
12332 | do | |
12333 | case $ac_f in | |
12334 | -) ac_f="$tmp/stdin";; | |
12335 | *) # Look for the file first in the build tree, then in the source tree | |
12336 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12337 | # because $ac_f cannot contain `:'. | |
12338 | test -f "$ac_f" || | |
12339 | case $ac_f in | |
12340 | [\\/$]*) false;; | |
12341 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12342 | esac || | |
5556819a AK |
12343 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12344 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12345 | { (exit 1); exit 1; }; };; |
12346 | esac | |
5556819a | 12347 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12348 | done |
12349 | ||
12350 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12351 | # use $as_me), people would be surprised to read: | |
12352 | # /* config.h. Generated by config.status. */ | |
5556819a AK |
12353 | configure_input="Generated from "`IFS=: |
12354 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12355 | if test x"$ac_file" != x-; then |
12356 | configure_input="$ac_file. $configure_input" | |
5556819a AK |
12357 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12358 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12359 | fi |
12360 | ||
12361 | case $ac_tag in | |
5556819a | 12362 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12363 | esac |
12364 | ;; | |
80992638 | 12365 | esac |
8106cdd5 | 12366 | |
7a197a62 | 12367 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12368 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12369 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12370 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12371 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 12372 | echo X"$ac_file" | |
7a197a62 AK |
12373 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12374 | s//\1/ | |
12375 | q | |
12376 | } | |
12377 | /^X\(\/\/\)[^/].*/{ | |
12378 | s//\1/ | |
12379 | q | |
12380 | } | |
12381 | /^X\(\/\/\)$/{ | |
12382 | s//\1/ | |
12383 | q | |
12384 | } | |
12385 | /^X\(\/\).*/{ | |
12386 | s//\1/ | |
12387 | q | |
12388 | } | |
12389 | s/.*/./; q'` | |
12390 | { as_dir="$ac_dir" | |
12391 | case $as_dir in #( | |
12392 | -*) as_dir=./$as_dir;; | |
12393 | esac | |
12394 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12395 | as_dirs= |
7a197a62 AK |
12396 | while :; do |
12397 | case $as_dir in #( | |
5556819a | 12398 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12399 | *) as_qdir=$as_dir;; |
12400 | esac | |
12401 | as_dirs="'$as_qdir' $as_dirs" | |
12402 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12403 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12404 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12405 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12406 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 12407 | echo X"$as_dir" | |
7a197a62 AK |
12408 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12409 | s//\1/ | |
12410 | q | |
12411 | } | |
12412 | /^X\(\/\/\)[^/].*/{ | |
12413 | s//\1/ | |
12414 | q | |
12415 | } | |
12416 | /^X\(\/\/\)$/{ | |
12417 | s//\1/ | |
12418 | q | |
12419 | } | |
12420 | /^X\(\/\).*/{ | |
12421 | s//\1/ | |
12422 | q | |
12423 | } | |
12424 | s/.*/./; q'` | |
12425 | test -d "$as_dir" && break | |
ad6254c5 | 12426 | done |
7a197a62 | 12427 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
5556819a AK |
12428 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12429 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12430 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12431 | ac_builddir=. |
12432 | ||
7a197a62 AK |
12433 | case "$ac_dir" in |
12434 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12435 | *) | |
5556819a | 12436 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12437 | # A ".." for each directory in $ac_dir_suffix. |
5556819a | 12438 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12439 | case $ac_top_builddir_sub in |
12440 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12441 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12442 | esac ;; | |
12443 | esac | |
12444 | ac_abs_top_builddir=$ac_pwd | |
12445 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12446 | # for backward compatibility: | |
12447 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12448 | |
12449 | case $srcdir in | |
7a197a62 | 12450 | .) # We are building in place. |
ad6254c5 | 12451 | ac_srcdir=. |
7a197a62 AK |
12452 | ac_top_srcdir=$ac_top_builddir_sub |
12453 | ac_abs_top_srcdir=$ac_pwd ;; | |
12454 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12455 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12456 | ac_top_srcdir=$srcdir |
12457 | ac_abs_top_srcdir=$srcdir ;; | |
12458 | *) # Relative name. | |
12459 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12460 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12461 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12462 | esac |
7a197a62 | 12463 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12464 | |
ad6254c5 | 12465 | |
7a197a62 AK |
12466 | case $ac_mode in |
12467 | :F) | |
12468 | # | |
12469 | # CONFIG_FILE | |
12470 | # | |
ad6254c5 AK |
12471 | |
12472 | case $INSTALL in | |
12473 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12474 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12475 | esac |
fddafd51 ZK |
12476 | ac_MKDIR_P=$MKDIR_P |
12477 | case $MKDIR_P in | |
12478 | [\\/$]* | ?:[\\/]* ) ;; | |
12479 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12480 | esac | |
7a197a62 | 12481 | _ACEOF |
795ca3e5 | 12482 | |
5556819a | 12483 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12484 | # If the template does not know about datarootdir, expand it. |
12485 | # FIXME: This hack should be removed a few years after 2.60. | |
12486 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12487 | ||
5556819a | 12488 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12489 | p |
12490 | q | |
12491 | } | |
12492 | /@datadir@/p | |
12493 | /@docdir@/p | |
12494 | /@infodir@/p | |
12495 | /@localedir@/p | |
12496 | /@mandir@/p | |
5556819a | 12497 | ' $ac_file_inputs` in |
7a197a62 AK |
12498 | *datarootdir*) ac_datarootdir_seen=yes;; |
12499 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5556819a AK |
12500 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12501 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12502 | _ACEOF |
5556819a | 12503 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12504 | ac_datarootdir_hack=' |
12505 | s&@datadir@&$datadir&g | |
12506 | s&@docdir@&$docdir&g | |
12507 | s&@infodir@&$infodir&g | |
12508 | s&@localedir@&$localedir&g | |
12509 | s&@mandir@&$mandir&g | |
12510 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12511 | esac | |
12512 | _ACEOF | |
12513 | ||
12514 | # Neutralize VPATH when `$srcdir' = `.'. | |
12515 | # Shell code in configure.ac might set extrasub. | |
12516 | # FIXME: do we really want to maintain this feature? | |
5556819a AK |
12517 | cat >>$CONFIG_STATUS <<_ACEOF |
12518 | sed "$ac_vpsub | |
ad6254c5 AK |
12519 | $extrasub |
12520 | _ACEOF | |
5556819a | 12521 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12522 | :t |
12523 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5556819a | 12524 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12525 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12526 | s&@srcdir@&$ac_srcdir&;t t | |
12527 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12528 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12529 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12530 | s&@builddir@&$ac_builddir&;t t | |
12531 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12532 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12533 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12534 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12535 | $ac_datarootdir_hack |
5556819a | 12536 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12537 | |
12538 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12539 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12540 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
5556819a | 12541 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12542 | which seems to be undefined. Please make sure it is defined." >&5 |
5556819a | 12543 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12544 | which seems to be undefined. Please make sure it is defined." >&2;} |
12545 | ||
12546 | rm -f "$tmp/stdin" | |
72b2cb61 | 12547 | case $ac_file in |
5556819a AK |
12548 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12549 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12550 | esac | |
7a197a62 AK |
12551 | ;; |
12552 | :H) | |
12553 | # | |
12554 | # CONFIG_HEADER | |
12555 | # | |
5556819a AK |
12556 | _ACEOF |
12557 | ||
12558 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12559 | # substitutes the proper values into config.h.in to produce config.h. | |
12560 | rm -f conftest.defines conftest.tail | |
12561 | # First, append a space to every undef/define line, to ease matching. | |
12562 | echo 's/$/ /' >conftest.defines | |
12563 | # Then, protect against being on the right side of a sed subst, or in | |
12564 | # an unquoted here document, in config.status. If some macros were | |
12565 | # called several times there might be several #defines for the same | |
12566 | # symbol, which is useless. But do not sort them, since the last | |
12567 | # AC_DEFINE must be honored. | |
12568 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12569 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12570 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12571 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12572 | # just an empty string. | |
12573 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12574 | ac_dB='\\)[ (].*,\\1define\\2' | |
12575 | ac_dC=' ' | |
12576 | ac_dD=' ,' | |
12577 | ||
12578 | uniq confdefs.h | | |
12579 | sed -n ' | |
12580 | t rset | |
12581 | :rset | |
12582 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12583 | t ok | |
12584 | d | |
12585 | :ok | |
12586 | s/[\\&,]/\\&/g | |
12587 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12588 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12589 | ' >>conftest.defines | |
12590 | ||
12591 | # Remove the space that was appended to ease matching. | |
12592 | # Then replace #undef with comments. This is necessary, for | |
12593 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12594 | # on some systems where configure will not decide to define it. | |
12595 | # (The regexp can be short, since the line contains either #define or #undef.) | |
12596 | echo 's/ $// | |
12597 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12598 | ||
12599 | # Break up conftest.defines: | |
12600 | ac_max_sed_lines=50 | |
12601 | ||
12602 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12603 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12604 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12605 | # et cetera. | |
12606 | ac_in='$ac_file_inputs' | |
12607 | ac_out='"$tmp/out1"' | |
12608 | ac_nxt='"$tmp/out2"' | |
12609 | ||
12610 | while : | |
12611 | do | |
12612 | # Write a here document: | |
12613 | cat >>$CONFIG_STATUS <<_ACEOF | |
12614 | # First, check the format of the line: | |
12615 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12616 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12617 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12618 | b | |
12619 | :def | |
12620 | _ACEOF | |
12621 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
12622 | echo 'CEOF | |
12623 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
12624 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12625 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12626 | grep . conftest.tail >/dev/null || break | |
12627 | rm -f conftest.defines | |
12628 | mv conftest.tail conftest.defines | |
12629 | done | |
12630 | rm -f conftest.defines conftest.tail | |
12631 | ||
12632 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
12633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 12634 | if test x"$ac_file" != x-; then |
5556819a AK |
12635 | echo "/* $configure_input */" >"$tmp/config.h" |
12636 | cat "$ac_result" >>"$tmp/config.h" | |
12637 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
12638 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12639 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12640 | else |
5556819a AK |
12641 | rm -f $ac_file |
12642 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
12643 | fi |
12644 | else | |
5556819a AK |
12645 | echo "/* $configure_input */" |
12646 | cat "$ac_result" | |
72b2cb61 | 12647 | fi |
5556819a | 12648 | rm -f "$tmp/out12" |
7a197a62 AK |
12649 | ;; |
12650 | ||
12651 | ||
12652 | esac | |
12653 | ||
12654 | done # for ac_tag | |
795ca3e5 | 12655 | |
795ca3e5 | 12656 | |
ad6254c5 AK |
12657 | { (exit 0); exit 0; } |
12658 | _ACEOF | |
795ca3e5 | 12659 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12660 | ac_clean_files=$ac_clean_files_save |
12661 | ||
12662 | ||
12663 | # configure is writing to config.log, and then calls config.status. | |
12664 | # config.status does its own redirection, appending to config.log. | |
12665 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12666 | # by configure, so config.status won't be able to write to it; its | |
12667 | # output is simply discarded. So we exec the FD to /dev/null, | |
12668 | # effectively closing config.log, so it can be properly (re)opened and | |
12669 | # appended to by config.status. When coming back to configure, we | |
12670 | # need to make the FD available again. | |
12671 | if test "$no_create" != yes; then | |
12672 | ac_cs_success=: | |
12673 | ac_config_status_args= | |
12674 | test "$silent" = yes && | |
12675 | ac_config_status_args="$ac_config_status_args --quiet" | |
12676 | exec 5>/dev/null | |
12677 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12678 | exec 5>>config.log | |
12679 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12680 | # would make configure fail if this is the last instruction. | |
12681 | $ac_cs_success || { (exit 1); exit 1; } | |
12682 | fi | |
795ca3e5 | 12683 | |
2dc95e1c AK |
12684 | |
12685 | if test x$ODIRECT != xyes; then | |
5556819a AK |
12686 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12687 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12688 | fi |
809fae91 AK |
12689 | |
12690 | if test x$FSADM == xyes; then | |
5556819a AK |
12691 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12692 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12693 | fi |
06f62ad1 AK |
12694 | |
12695 | if test x$DMEVENTD == xyes; then | |
5556819a AK |
12696 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12697 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12698 | fi |