]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
68f2de6d | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 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=: | |
68f2de6d | 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 | ||
b145d876 ZK |
40 | # The user is always right. |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d 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.) | |
68f2de6d 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 | |
68f2de6d | 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. | |
68f2de6d 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 || |
68f2de6d | 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 | ||
68f2de6d | 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=: | |
68f2de6d | 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=: | |
68f2de6d | 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 | |
68f2de6d 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. | |
68f2de6d 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" || |
68f2de6d | 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 |
68f2de6d | 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 | |
68f2de6d 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' |
68f2de6d 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 | |
68f2de6d | 532 | test -d "$1/."; |
25fbec5b AK |
533 | else |
534 | case $1 in | |
68f2de6d | 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 | |
5951ef33 | 666 | SED |
7a197a62 AK |
667 | AWK |
668 | CC | |
669 | CFLAGS | |
670 | LDFLAGS | |
671 | CPPFLAGS | |
672 | ac_ct_CC | |
673 | EXEEXT | |
674 | OBJEXT | |
d0191583 JM |
675 | CPP |
676 | GREP | |
677 | EGREP | |
7a197a62 AK |
678 | INSTALL_PROGRAM |
679 | INSTALL_SCRIPT | |
680 | INSTALL_DATA | |
681 | LN_S | |
682 | SET_MAKE | |
683 | RANLIB | |
684 | CFLOW_CMD | |
685 | CSCOPE_CMD | |
7a197a62 AK |
686 | ALLOCA |
687 | LIBOBJS | |
688 | POW_LIB | |
fddafd51 ZK |
689 | LCOV |
690 | GENHTML | |
d179cc7a | 691 | LVM2CMD_LIB |
7a197a62 AK |
692 | MSGFMT |
693 | MODPROBE_CMD | |
d0191583 | 694 | BUILD_DMEVENTD |
7a197a62 | 695 | CLDFLAGS |
7a197a62 | 696 | CLDNOWHOLEARCHIVE |
d0191583 JM |
697 | CLDWHOLEARCHIVE |
698 | CLUSTER | |
699 | CLVMD | |
700 | CMDLIB | |
701 | COPTIMISE_FLAG | |
7a197a62 AK |
702 | DEBUG |
703 | DEVMAPPER | |
d0191583 JM |
704 | DMDIR |
705 | DMEVENTD | |
706 | DM_COMPAT | |
707 | DM_DEVICE_GID | |
708 | DM_DEVICE_MODE | |
709 | DM_DEVICE_UID | |
710 | DM_IOCTLS | |
711 | DM_LIB_VERSION | |
712 | FSADM | |
713 | GROUP | |
7a197a62 | 714 | HAVE_LIBDL |
7a197a62 | 715 | HAVE_REALTIME |
d0191583 JM |
716 | HAVE_SELINUX |
717 | INTL | |
718 | INTL_PACKAGE | |
719 | JOBS | |
720 | LDDEPS | |
721 | LIB_SUFFIX | |
7a197a62 | 722 | LOCALEDIR |
d0191583 JM |
723 | LVM1 |
724 | LVM1_FALLBACK | |
7a197a62 | 725 | CONFDIR |
d0191583 JM |
726 | LVM_VERSION |
727 | MIRRORS | |
728 | OWNER | |
729 | PKGCONFIG | |
730 | POOL | |
731 | SNAPSHOTS | |
7a197a62 | 732 | STATICDIR |
d0191583 | 733 | STATIC_LINK |
66e941e8 | 734 | LIB_PTHREAD |
68f2de6d AK |
735 | usrlibdir |
736 | usrsbindir | |
7a197a62 | 737 | LTLIBOBJS' |
ad6254c5 | 738 | ac_subst_files='' |
7a197a62 AK |
739 | ac_precious_vars='build_alias |
740 | host_alias | |
741 | target_alias | |
742 | CC | |
743 | CFLAGS | |
744 | LDFLAGS | |
25fbec5b | 745 | LIBS |
7a197a62 AK |
746 | CPPFLAGS |
747 | CPP' | |
748 | ||
795ca3e5 AK |
749 | |
750 | # Initialize some variables set by options. | |
ad6254c5 AK |
751 | ac_init_help= |
752 | ac_init_version=false | |
795ca3e5 AK |
753 | # The variables have the same names as the options, with |
754 | # dashes changed to underlines. | |
ad6254c5 | 755 | cache_file=/dev/null |
795ca3e5 | 756 | exec_prefix=NONE |
795ca3e5 | 757 | no_create= |
795ca3e5 AK |
758 | no_recursion= |
759 | prefix=NONE | |
760 | program_prefix=NONE | |
761 | program_suffix=NONE | |
762 | program_transform_name=s,x,x, | |
763 | silent= | |
764 | site= | |
765 | srcdir= | |
795ca3e5 AK |
766 | verbose= |
767 | x_includes=NONE | |
768 | x_libraries=NONE | |
ad6254c5 AK |
769 | |
770 | # Installation directory options. | |
771 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
772 | # and all the variables that are supposed to be based on exec_prefix | |
773 | # by default will actually change. | |
774 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 775 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
776 | bindir='${exec_prefix}/bin' |
777 | sbindir='${exec_prefix}/sbin' | |
778 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
779 | datarootdir='${prefix}/share' |
780 | datadir='${datarootdir}' | |
795ca3e5 AK |
781 | sysconfdir='${prefix}/etc' |
782 | sharedstatedir='${prefix}/com' | |
783 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
784 | includedir='${prefix}/include' |
785 | oldincludedir='/usr/include' | |
7a197a62 AK |
786 | docdir='${datarootdir}/doc/${PACKAGE}' |
787 | infodir='${datarootdir}/info' | |
788 | htmldir='${docdir}' | |
789 | dvidir='${docdir}' | |
790 | pdfdir='${docdir}' | |
791 | psdir='${docdir}' | |
792 | libdir='${exec_prefix}/lib' | |
793 | localedir='${datarootdir}/locale' | |
794 | mandir='${datarootdir}/man' | |
795ca3e5 | 795 | |
795ca3e5 | 796 | ac_prev= |
7a197a62 | 797 | ac_dashdash= |
795ca3e5 AK |
798 | for ac_option |
799 | do | |
795ca3e5 AK |
800 | # If the previous option needs an argument, assign it. |
801 | if test -n "$ac_prev"; then | |
7a197a62 | 802 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
803 | ac_prev= |
804 | continue | |
805 | fi | |
806 | ||
7a197a62 AK |
807 | case $ac_option in |
808 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
809 | *) ac_optarg=yes ;; | |
810 | esac | |
795ca3e5 AK |
811 | |
812 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
813 | ||
7a197a62 AK |
814 | case $ac_dashdash$ac_option in |
815 | --) | |
816 | ac_dashdash=yes ;; | |
795ca3e5 AK |
817 | |
818 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
819 | ac_prev=bindir ;; | |
820 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 821 | bindir=$ac_optarg ;; |
795ca3e5 AK |
822 | |
823 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 824 | ac_prev=build_alias ;; |
795ca3e5 | 825 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 826 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
827 | |
828 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
829 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
830 | ac_prev=cache_file ;; | |
831 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
832 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
833 | cache_file=$ac_optarg ;; |
834 | ||
835 | --config-cache | -C) | |
836 | cache_file=config.cache ;; | |
795ca3e5 | 837 | |
7a197a62 | 838 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 839 | ac_prev=datadir ;; |
7a197a62 | 840 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 841 | datadir=$ac_optarg ;; |
795ca3e5 | 842 | |
7a197a62 AK |
843 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
844 | | --dataroo | --dataro | --datar) | |
845 | ac_prev=datarootdir ;; | |
846 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
847 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
848 | datarootdir=$ac_optarg ;; | |
849 | ||
795ca3e5 | 850 | -disable-* | --disable-*) |
68f2de6d | 851 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 852 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
853 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
854 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 855 | { (exit 1); exit 1; }; } |
68f2de6d AK |
856 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
857 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
858 | |
859 | -docdir | --docdir | --docdi | --doc | --do) | |
860 | ac_prev=docdir ;; | |
861 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
862 | docdir=$ac_optarg ;; | |
863 | ||
864 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
865 | ac_prev=dvidir ;; | |
866 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
867 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
868 | |
869 | -enable-* | --enable-*) | |
68f2de6d | 870 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 871 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
872 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
873 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 874 | { (exit 1); exit 1; }; } |
68f2de6d AK |
875 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
876 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
877 | |
878 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
879 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
880 | | --exec | --exe | --ex) | |
881 | ac_prev=exec_prefix ;; | |
882 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
883 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
884 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 885 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
886 | |
887 | -gas | --gas | --ga | --g) | |
888 | # Obsolete; use --with-gas. | |
889 | with_gas=yes ;; | |
890 | ||
ad6254c5 AK |
891 | -help | --help | --hel | --he | -h) |
892 | ac_init_help=long ;; | |
893 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
894 | ac_init_help=recursive ;; | |
895 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
896 | ac_init_help=short ;; | |
795ca3e5 AK |
897 | |
898 | -host | --host | --hos | --ho) | |
ad6254c5 | 899 | ac_prev=host_alias ;; |
795ca3e5 | 900 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 901 | host_alias=$ac_optarg ;; |
795ca3e5 | 902 | |
7a197a62 AK |
903 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
904 | ac_prev=htmldir ;; | |
905 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
906 | | --ht=*) | |
907 | htmldir=$ac_optarg ;; | |
908 | ||
795ca3e5 AK |
909 | -includedir | --includedir | --includedi | --included | --include \ |
910 | | --includ | --inclu | --incl | --inc) | |
911 | ac_prev=includedir ;; | |
912 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
913 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 914 | includedir=$ac_optarg ;; |
795ca3e5 AK |
915 | |
916 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
917 | ac_prev=infodir ;; | |
918 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 919 | infodir=$ac_optarg ;; |
795ca3e5 AK |
920 | |
921 | -libdir | --libdir | --libdi | --libd) | |
922 | ac_prev=libdir ;; | |
923 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 924 | libdir=$ac_optarg ;; |
795ca3e5 AK |
925 | |
926 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
927 | | --libexe | --libex | --libe) | |
928 | ac_prev=libexecdir ;; | |
929 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
930 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 931 | libexecdir=$ac_optarg ;; |
795ca3e5 | 932 | |
7a197a62 AK |
933 | -localedir | --localedir | --localedi | --localed | --locale) |
934 | ac_prev=localedir ;; | |
935 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
936 | localedir=$ac_optarg ;; | |
937 | ||
795ca3e5 | 938 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 939 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
940 | ac_prev=localstatedir ;; |
941 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 942 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 943 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
944 | |
945 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
946 | ac_prev=mandir ;; | |
947 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 948 | mandir=$ac_optarg ;; |
795ca3e5 AK |
949 | |
950 | -nfp | --nfp | --nf) | |
951 | # Obsolete; use --without-fp. | |
952 | with_fp=no ;; | |
953 | ||
954 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 955 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
956 | no_create=yes ;; |
957 | ||
958 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
959 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
960 | no_recursion=yes ;; | |
961 | ||
962 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
963 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
964 | | --oldin | --oldi | --old | --ol | --o) | |
965 | ac_prev=oldincludedir ;; | |
966 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
967 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
968 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 969 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
970 | |
971 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
972 | ac_prev=prefix ;; | |
973 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 974 | prefix=$ac_optarg ;; |
795ca3e5 AK |
975 | |
976 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
977 | | --program-pre | --program-pr | --program-p) | |
978 | ac_prev=program_prefix ;; | |
979 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
980 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 981 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
982 | |
983 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
984 | | --program-suf | --program-su | --program-s) | |
985 | ac_prev=program_suffix ;; | |
986 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
987 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 988 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
989 | |
990 | -program-transform-name | --program-transform-name \ | |
991 | | --program-transform-nam | --program-transform-na \ | |
992 | | --program-transform-n | --program-transform- \ | |
993 | | --program-transform | --program-transfor \ | |
994 | | --program-transfo | --program-transf \ | |
995 | | --program-trans | --program-tran \ | |
996 | | --progr-tra | --program-tr | --program-t) | |
997 | ac_prev=program_transform_name ;; | |
998 | -program-transform-name=* | --program-transform-name=* \ | |
999 | | --program-transform-nam=* | --program-transform-na=* \ | |
1000 | | --program-transform-n=* | --program-transform-=* \ | |
1001 | | --program-transform=* | --program-transfor=* \ | |
1002 | | --program-transfo=* | --program-transf=* \ | |
1003 | | --program-trans=* | --program-tran=* \ | |
1004 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1005 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1006 | |
7a197a62 AK |
1007 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1008 | ac_prev=pdfdir ;; | |
1009 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1010 | pdfdir=$ac_optarg ;; | |
1011 | ||
1012 | -psdir | --psdir | --psdi | --psd | --ps) | |
1013 | ac_prev=psdir ;; | |
1014 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1015 | psdir=$ac_optarg ;; | |
1016 | ||
795ca3e5 AK |
1017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1018 | | -silent | --silent | --silen | --sile | --sil) | |
1019 | silent=yes ;; | |
1020 | ||
1021 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1022 | ac_prev=sbindir ;; | |
1023 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1024 | | --sbi=* | --sb=*) | |
ad6254c5 | 1025 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1026 | |
1027 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1028 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1029 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1030 | | --sha | --sh) | |
1031 | ac_prev=sharedstatedir ;; | |
1032 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1033 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1034 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1035 | | --sha=* | --sh=*) | |
ad6254c5 | 1036 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1037 | |
1038 | -site | --site | --sit) | |
1039 | ac_prev=site ;; | |
1040 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1041 | site=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1044 | ac_prev=srcdir ;; | |
1045 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1046 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1047 | |
1048 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1049 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1050 | ac_prev=sysconfdir ;; | |
1051 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1052 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1053 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1054 | |
1055 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1056 | ac_prev=target_alias ;; |
795ca3e5 | 1057 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1058 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1059 | |
1060 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1061 | verbose=yes ;; | |
1062 | ||
ad6254c5 AK |
1063 | -version | --version | --versio | --versi | --vers | -V) |
1064 | ac_init_version=: ;; | |
795ca3e5 AK |
1065 | |
1066 | -with-* | --with-*) | |
68f2de6d | 1067 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1068 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1071 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1073 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1074 | |
1075 | -without-* | --without-*) | |
68f2de6d | 1076 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1077 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1078 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1079 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1080 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1081 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1082 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1083 | |
1084 | --x) | |
1085 | # Obsolete; use --with-x. | |
1086 | with_x=yes ;; | |
1087 | ||
1088 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1089 | | --x-incl | --x-inc | --x-in | --x-i) | |
1090 | ac_prev=x_includes ;; | |
1091 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1092 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1093 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1094 | |
1095 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1096 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1097 | ac_prev=x_libraries ;; | |
1098 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1099 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1100 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1101 | |
68f2de6d | 1102 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1103 | Try \`$0 --help' for more information." >&2 |
1104 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1105 | ;; |
1106 | ||
ad6254c5 AK |
1107 | *=*) |
1108 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1109 | # Reject names that are not valid shell variable names. | |
1110 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
68f2de6d | 1111 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1112 | { (exit 1); exit 1; }; } |
7a197a62 | 1113 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1114 | export $ac_envvar ;; |
1115 | ||
795ca3e5 | 1116 | *) |
ad6254c5 | 1117 | # FIXME: should be removed in autoconf 3.0. |
68f2de6d | 1118 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1119 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
68f2de6d | 1120 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1121 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1122 | ;; |
1123 | ||
1124 | esac | |
1125 | done | |
1126 | ||
1127 | if test -n "$ac_prev"; then | |
ad6254c5 | 1128 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
68f2de6d | 1129 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1130 | { (exit 1); exit 1; }; } |
795ca3e5 | 1131 | fi |
795ca3e5 | 1132 | |
68f2de6d | 1133 | # Be sure to have absolute directory names. |
7a197a62 AK |
1134 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1135 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1136 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1137 | libdir localedir mandir | |
795ca3e5 | 1138 | do |
7a197a62 | 1139 | eval ac_val=\$$ac_var |
ad6254c5 | 1140 | case $ac_val in |
7a197a62 AK |
1141 | [\\/$]* | ?:[\\/]* ) continue;; |
1142 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1143 | esac |
68f2de6d | 1144 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1145 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1146 | done |
1147 | ||
ad6254c5 AK |
1148 | # There might be people who depend on the old broken behavior: `$host' |
1149 | # used to hold the argument of --host etc. | |
1150 | # FIXME: To remove some day. | |
1151 | build=$build_alias | |
1152 | host=$host_alias | |
1153 | target=$target_alias | |
1154 | ||
1155 | # FIXME: To remove some day. | |
1156 | if test "x$host_alias" != x; then | |
1157 | if test "x$build_alias" = x; then | |
1158 | cross_compiling=maybe | |
68f2de6d | 1159 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1160 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1161 | elif test "x$build_alias" != "x$host_alias"; then | |
1162 | cross_compiling=yes | |
1163 | fi | |
1164 | fi | |
8106cdd5 | 1165 | |
ad6254c5 AK |
1166 | ac_tool_prefix= |
1167 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1168 | ||
1169 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1170 | |
795ca3e5 | 1171 | |
7a197a62 AK |
1172 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1173 | ac_ls_di=`ls -di .` && | |
1174 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
68f2de6d | 1175 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1176 | { (exit 1); exit 1; }; } |
1177 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
68f2de6d | 1178 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1179 | { (exit 1); exit 1; }; } |
1180 | ||
1181 | ||
795ca3e5 AK |
1182 | # Find the source files, if location was not specified. |
1183 | if test -z "$srcdir"; then | |
1184 | ac_srcdir_defaulted=yes | |
7a197a62 | 1185 | # Try the directory containing this script, then the parent directory. |
68f2de6d AK |
1186 | ac_confdir=`$as_dirname -- "$0" || |
1187 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1188 | X"$0" : 'X\(//\)[^/]' \| \ | |
1189 | X"$0" : 'X\(//\)$' \| \ | |
1190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1191 | echo X"$0" | | |
7a197a62 AK |
1192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1193 | s//\1/ | |
1194 | q | |
1195 | } | |
1196 | /^X\(\/\/\)[^/].*/{ | |
1197 | s//\1/ | |
1198 | q | |
1199 | } | |
1200 | /^X\(\/\/\)$/{ | |
1201 | s//\1/ | |
1202 | q | |
1203 | } | |
1204 | /^X\(\/\).*/{ | |
1205 | s//\1/ | |
1206 | q | |
1207 | } | |
1208 | s/.*/./; q'` | |
795ca3e5 | 1209 | srcdir=$ac_confdir |
7a197a62 | 1210 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1211 | srcdir=.. |
1212 | fi | |
1213 | else | |
1214 | ac_srcdir_defaulted=no | |
1215 | fi | |
7a197a62 AK |
1216 | if test ! -r "$srcdir/$ac_unique_file"; then |
1217 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
68f2de6d | 1218 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1219 | { (exit 1); exit 1; }; } |
795ca3e5 | 1220 | fi |
7a197a62 AK |
1221 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1222 | ac_abs_confdir=`( | |
68f2de6d | 1223 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1224 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1225 | pwd)` |
1226 | # When building in place, set srcdir=. | |
1227 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1228 | srcdir=. | |
1229 | fi | |
1230 | # Remove unnecessary trailing slashes from srcdir. | |
1231 | # Double slashes in file names in object file debugging info | |
1232 | # mess up M-x gdb in Emacs. | |
1233 | case $srcdir in | |
1234 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1235 | esac | |
1236 | for ac_var in $ac_precious_vars; do | |
1237 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1238 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1239 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1240 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1241 | done | |
ad6254c5 AK |
1242 | |
1243 | # | |
1244 | # Report the --help message. | |
1245 | # | |
1246 | if test "$ac_init_help" = "long"; then | |
1247 | # Omit some internal or obsolete options to make the list less imposing. | |
1248 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1249 | cat <<_ACEOF | |
1250 | \`configure' configures this package to adapt to many kinds of systems. | |
1251 | ||
1252 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1253 | ||
1254 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1255 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1256 | ||
1257 | Defaults for the options are specified in brackets. | |
1258 | ||
1259 | Configuration: | |
1260 | -h, --help display this help and exit | |
1261 | --help=short display options specific to this package | |
1262 | --help=recursive display the short help of all the included packages | |
1263 | -V, --version display version information and exit | |
1264 | -q, --quiet, --silent do not print \`checking...' messages | |
1265 | --cache-file=FILE cache test results in FILE [disabled] | |
1266 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1267 | -n, --no-create do not create output files | |
1268 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1269 | ||
ad6254c5 AK |
1270 | Installation directories: |
1271 | --prefix=PREFIX install architecture-independent files in PREFIX | |
68f2de6d | 1272 | [$ac_default_prefix] |
ad6254c5 | 1273 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
68f2de6d | 1274 | [PREFIX] |
ad6254c5 AK |
1275 | |
1276 | By default, \`make install' will install all the files in | |
1277 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1278 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1279 | for instance \`--prefix=\$HOME'. | |
1280 | ||
1281 | For better control, use the options below. | |
1282 | ||
1283 | Fine tuning of the installation directories: | |
68f2de6d AK |
1284 | --bindir=DIR user executables [EPREFIX/bin] |
1285 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1286 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1287 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1288 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1289 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1290 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1291 | --includedir=DIR C header files [PREFIX/include] | |
1292 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1293 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1294 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1295 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1296 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1297 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1298 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1299 | --htmldir=DIR html documentation [DOCDIR] | |
1300 | --dvidir=DIR dvi documentation [DOCDIR] | |
1301 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1302 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1303 | _ACEOF |
1304 | ||
1305 | cat <<\_ACEOF | |
1306 | ||
1307 | System types: | |
1308 | --build=BUILD configure for building on BUILD [guessed] | |
1309 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1310 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1311 | _ACEOF | |
1312 | fi | |
1313 | ||
1314 | if test -n "$ac_init_help"; then | |
1315 | ||
1316 | cat <<\_ACEOF | |
1317 | ||
1318 | Optional Features: | |
1319 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1320 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1321 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1322 | device-mapper is missing from the kernel | |
1b523347 | 1323 | --disable-readline Disable readline support |
3d978351 | 1324 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1325 | --enable-debug Enable debugging |
5556819a | 1326 | --enable-profiling Gather gcov profiling data |
ad6254c5 AK |
1327 | --disable-devmapper Disable device-mapper interaction |
1328 | --disable-o_direct Disable O_DIRECT | |
1329 | --enable-cmdlib Build shared command library | |
1330 | --enable-fsadm Enable fsadm | |
15d91f5a | 1331 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1332 | --enable-static_link Use this to link the tools to their libraries |
1333 | statically. Default is dynamic linking | |
1334 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1335 | --enable-nls Enable Native Language Support |
1336 | ||
1337 | Optional Packages: | |
1338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1340 | --with-user=USER Set the owner of installed files [USER=root] |
1341 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
ad6254c5 AK |
1342 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1343 | TYPE=internal | |
1344 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1345 | TYPE=internal | |
1346 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1347 | TYPE=internal | |
1348 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1349 | TYPE=internal | |
1350 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1351 | TYPE=internal | |
5c7fc7c4 | 1352 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1353 | TYPE=none |
d0191583 JM |
1354 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1355 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1356 | --with-confdir=DIR Configuration files in DIR /etc |
1357 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1358 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
68f2de6d AK |
1359 | --with-usrlibdir=DIR |
1360 | --with-usrsbindir=DIR | |
ad6254c5 AK |
1361 | |
1362 | Some influential environment variables: | |
1363 | CC C compiler command | |
1364 | CFLAGS C compiler flags | |
1365 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1366 | nonstandard directory <lib dir> | |
25fbec5b | 1367 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1368 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1369 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1370 | CPP C preprocessor |
1371 | ||
1372 | Use these variables to override the choices made by `configure' or to help | |
1373 | it to find libraries and programs with nonstandard names/locations. | |
1374 | ||
1375 | _ACEOF | |
7a197a62 | 1376 | ac_status=$? |
ad6254c5 AK |
1377 | fi |
1378 | ||
1379 | if test "$ac_init_help" = "recursive"; then | |
1380 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1381 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
68f2de6d | 1382 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1383 | ac_builddir=. |
1384 | ||
7a197a62 AK |
1385 | case "$ac_dir" in |
1386 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1387 | *) | |
68f2de6d | 1388 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1389 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 1390 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1391 | case $ac_top_builddir_sub in |
1392 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1393 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1394 | esac ;; | |
1395 | esac | |
1396 | ac_abs_top_builddir=$ac_pwd | |
1397 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1398 | # for backward compatibility: | |
1399 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1400 | |
1401 | case $srcdir in | |
7a197a62 | 1402 | .) # We are building in place. |
ad6254c5 | 1403 | ac_srcdir=. |
7a197a62 AK |
1404 | ac_top_srcdir=$ac_top_builddir_sub |
1405 | ac_abs_top_srcdir=$ac_pwd ;; | |
1406 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1407 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1408 | ac_top_srcdir=$srcdir |
1409 | ac_abs_top_srcdir=$srcdir ;; | |
1410 | *) # Relative name. | |
1411 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1412 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1413 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1414 | esac |
7a197a62 AK |
1415 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1416 | ||
1417 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1418 | # Check for guested configure. | |
1419 | if test -f "$ac_srcdir/configure.gnu"; then | |
1420 | echo && | |
1421 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1422 | elif test -f "$ac_srcdir/configure"; then | |
1423 | echo && | |
1424 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1425 | else |
68f2de6d | 1426 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1427 | fi || ac_status=$? |
1428 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1429 | done |
1430 | fi | |
1431 | ||
7a197a62 | 1432 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1433 | if $ac_init_version; then |
1434 | cat <<\_ACEOF | |
7a197a62 | 1435 | configure |
68f2de6d | 1436 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1437 | |
7a197a62 | 1438 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 1439 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1440 | This configure script is free software; the Free Software Foundation |
1441 | gives unlimited permission to copy, distribute and modify it. | |
1442 | _ACEOF | |
7a197a62 | 1443 | exit |
ad6254c5 | 1444 | fi |
7a197a62 | 1445 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1446 | This file contains any messages produced by compilers while |
1447 | running configure, to aid debugging if configure makes a mistake. | |
1448 | ||
1449 | It was created by $as_me, which was | |
68f2de6d | 1450 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1451 | |
1452 | $ $0 $@ | |
1453 | ||
1454 | _ACEOF | |
7a197a62 | 1455 | exec 5>>config.log |
ad6254c5 AK |
1456 | { |
1457 | cat <<_ASUNAME | |
1458 | ## --------- ## | |
1459 | ## Platform. ## | |
1460 | ## --------- ## | |
1461 | ||
1462 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1463 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1464 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1465 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1466 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1467 | ||
1468 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1469 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1470 | ||
1471 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1472 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1473 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1474 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1475 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1476 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1477 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1478 | ||
1479 | _ASUNAME | |
1480 | ||
1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1482 | for as_dir in $PATH | |
1483 | do | |
1484 | IFS=$as_save_IFS | |
1485 | test -z "$as_dir" && as_dir=. | |
68f2de6d | 1486 | echo "PATH: $as_dir" |
ad6254c5 | 1487 | done |
7a197a62 | 1488 | IFS=$as_save_IFS |
ad6254c5 AK |
1489 | |
1490 | } >&5 | |
1491 | ||
1492 | cat >&5 <<_ACEOF | |
1493 | ||
1494 | ||
1495 | ## ----------- ## | |
1496 | ## Core tests. ## | |
1497 | ## ----------- ## | |
1498 | ||
1499 | _ACEOF | |
1500 | ||
1501 | ||
1502 | # Keep a trace of the command line. | |
1503 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1504 | # Strip out --silent because we don't want to record it for future runs. | |
1505 | # Also quote any args containing shell meta-characters. | |
1506 | # Make two passes to allow for proper duplicate-argument suppression. | |
1507 | ac_configure_args= | |
1508 | ac_configure_args0= | |
1509 | ac_configure_args1= | |
ad6254c5 AK |
1510 | ac_must_keep_next=false |
1511 | for ac_pass in 1 2 | |
1512 | do | |
1513 | for ac_arg | |
1514 | do | |
1515 | case $ac_arg in | |
1516 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1517 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1518 | | -silent | --silent | --silen | --sile | --sil) | |
1519 | continue ;; | |
7a197a62 | 1520 | *\'*) |
68f2de6d | 1521 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1522 | esac |
1523 | case $ac_pass in | |
1524 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1525 | 2) | |
1526 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1527 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1528 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1529 | else |
8a2fc586 AK |
1530 | case $ac_arg in |
1531 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1532 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1533 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1534 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1535 | case "$ac_configure_args0 " in | |
1536 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1537 | esac | |
1538 | ;; | |
1539 | -* ) ac_must_keep_next=true ;; | |
1540 | esac | |
ad6254c5 | 1541 | fi |
7a197a62 | 1542 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1543 | ;; |
1544 | esac | |
1545 | done | |
1546 | done | |
1547 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1548 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1549 | ||
1550 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1551 | # config.log. We remove comments because anyway the quotes in there | |
1552 | # would cause problems or look ugly. | |
7a197a62 AK |
1553 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1554 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1555 | trap 'exit_status=$? |
1556 | # Save into config.log some information that might help in debugging. | |
1557 | { | |
1558 | echo | |
1559 | ||
1560 | cat <<\_ASBOX | |
1561 | ## ---------------- ## | |
1562 | ## Cache variables. ## | |
1563 | ## ---------------- ## | |
1564 | _ASBOX | |
1565 | echo | |
1566 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1567 | ( |
1568 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1569 | eval ac_val=\$$ac_var | |
1570 | case $ac_val in #( | |
1571 | *${as_nl}*) | |
1572 | case $ac_var in #( | |
68f2de6d AK |
1573 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1574 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1575 | esac |
1576 | case $ac_var in #( | |
1577 | _ | IFS | as_nl) ;; #( | |
1578 | *) $as_unset $ac_var ;; | |
1579 | esac ;; | |
1580 | esac | |
1581 | done | |
ad6254c5 | 1582 | (set) 2>&1 | |
7a197a62 AK |
1583 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1584 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1585 | sed -n \ |
7a197a62 AK |
1586 | "s/'\''/'\''\\\\'\'''\''/g; |
1587 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1588 | ;; #( | |
ad6254c5 | 1589 | *) |
7a197a62 | 1590 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1591 | ;; |
7a197a62 AK |
1592 | esac | |
1593 | sort | |
1594 | ) | |
ad6254c5 AK |
1595 | echo |
1596 | ||
1597 | cat <<\_ASBOX | |
1598 | ## ----------------- ## | |
1599 | ## Output variables. ## | |
1600 | ## ----------------- ## | |
1601 | _ASBOX | |
1602 | echo | |
1603 | for ac_var in $ac_subst_vars | |
1604 | do | |
7a197a62 AK |
1605 | eval ac_val=\$$ac_var |
1606 | case $ac_val in | |
68f2de6d | 1607 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1608 | esac |
68f2de6d | 1609 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1610 | done | sort |
1611 | echo | |
1612 | ||
1613 | if test -n "$ac_subst_files"; then | |
1614 | cat <<\_ASBOX | |
7a197a62 AK |
1615 | ## ------------------- ## |
1616 | ## File substitutions. ## | |
1617 | ## ------------------- ## | |
ad6254c5 AK |
1618 | _ASBOX |
1619 | echo | |
1620 | for ac_var in $ac_subst_files | |
1621 | do | |
7a197a62 AK |
1622 | eval ac_val=\$$ac_var |
1623 | case $ac_val in | |
68f2de6d | 1624 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1625 | esac |
68f2de6d | 1626 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1627 | done | sort |
1628 | echo | |
1629 | fi | |
1630 | ||
1631 | if test -s confdefs.h; then | |
1632 | cat <<\_ASBOX | |
1633 | ## ----------- ## | |
1634 | ## confdefs.h. ## | |
1635 | ## ----------- ## | |
1636 | _ASBOX | |
1637 | echo | |
7a197a62 | 1638 | cat confdefs.h |
ad6254c5 AK |
1639 | echo |
1640 | fi | |
1641 | test "$ac_signal" != 0 && | |
68f2de6d AK |
1642 | echo "$as_me: caught signal $ac_signal" |
1643 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1644 | } >&5 |
7a197a62 AK |
1645 | rm -f core *.core core.conftest.* && |
1646 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1647 | exit $exit_status |
7a197a62 | 1648 | ' 0 |
ad6254c5 AK |
1649 | for ac_signal in 1 2 13 15; do |
1650 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1651 | done | |
1652 | ac_signal=0 | |
1653 | ||
1654 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1655 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1656 | |
1657 | # Predefined preprocessor variables. | |
1658 | ||
1659 | cat >>confdefs.h <<_ACEOF | |
1660 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1661 | _ACEOF | |
1662 | ||
1663 | ||
1664 | cat >>confdefs.h <<_ACEOF | |
1665 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1666 | _ACEOF | |
1667 | ||
1668 | ||
1669 | cat >>confdefs.h <<_ACEOF | |
1670 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1671 | _ACEOF | |
8106cdd5 | 1672 | |
ad6254c5 AK |
1673 | |
1674 | cat >>confdefs.h <<_ACEOF | |
1675 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1676 | _ACEOF | |
1677 | ||
1678 | ||
1679 | cat >>confdefs.h <<_ACEOF | |
1680 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1681 | _ACEOF | |
1682 | ||
1683 | ||
1684 | # Let the site file select an alternate cache file if it wants to. | |
68f2de6d | 1685 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1686 | if test -n "$CONFIG_SITE"; then |
68f2de6d | 1687 | set x "$CONFIG_SITE" |
7a197a62 | 1688 | elif test "x$prefix" != xNONE; then |
68f2de6d | 1689 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1690 | else |
68f2de6d AK |
1691 | set x "$ac_default_prefix/share/config.site" \ |
1692 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1693 | fi |
68f2de6d AK |
1694 | shift |
1695 | for ac_site_file | |
7a197a62 | 1696 | do |
795ca3e5 | 1697 | if test -r "$ac_site_file"; then |
68f2de6d AK |
1698 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1699 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1700 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1701 | . "$ac_site_file" |
1702 | fi | |
1703 | done | |
1704 | ||
1705 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1706 | # Some versions of bash will fail to source /dev/null (special |
1707 | # files actually), so we avoid doing that. | |
1708 | if test -f "$cache_file"; then | |
68f2de6d AK |
1709 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1710 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1711 | case $cache_file in |
7a197a62 AK |
1712 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1713 | *) . "./$cache_file";; | |
ad6254c5 AK |
1714 | esac |
1715 | fi | |
795ca3e5 | 1716 | else |
68f2de6d AK |
1717 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1718 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1719 | >$cache_file |
1720 | fi | |
1721 | ||
1722 | # Check that the precious variables saved in the cache have kept the same | |
1723 | # value. | |
1724 | ac_cache_corrupted=false | |
7a197a62 | 1725 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1726 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1727 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1728 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1729 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1730 | case $ac_old_set,$ac_new_set in |
1731 | set,) | |
68f2de6d AK |
1732 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1733 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1734 | ac_cache_corrupted=: ;; |
1735 | ,set) | |
68f2de6d AK |
1736 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1737 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1738 | ac_cache_corrupted=: ;; |
1739 | ,);; | |
1740 | *) | |
1741 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
68f2de6d AK |
1742 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1743 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1744 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1745 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1746 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1747 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1748 | ac_cache_corrupted=: | |
ad6254c5 AK |
1749 | fi;; |
1750 | esac | |
1751 | # Pass precious variables to config.status. | |
1752 | if test "$ac_new_set" = set; then | |
1753 | case $ac_new_val in | |
68f2de6d | 1754 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1755 | *) ac_arg=$ac_var=$ac_new_val ;; |
1756 | esac | |
1757 | case " $ac_configure_args " in | |
1758 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1759 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1760 | esac | |
1761 | fi | |
1762 | done | |
1763 | if $ac_cache_corrupted; then | |
68f2de6d AK |
1764 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1765 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1766 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1767 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1768 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1769 | fi |
1770 | ||
ad6254c5 AK |
1771 | |
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | ||
1782 | ||
1783 | ||
1784 | ||
1785 | ||
1786 | ||
7a197a62 AK |
1787 | ac_ext=c |
1788 | ac_cpp='$CPP $CPPFLAGS' | |
1789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1792 | |
795ca3e5 AK |
1793 | |
1794 | ||
7a197a62 | 1795 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1796 | |
1797 | ||
80992638 | 1798 | ################################################################################ |
795ca3e5 | 1799 | ac_aux_dir= |
7a197a62 AK |
1800 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1801 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1802 | ac_aux_dir=$ac_dir |
1803 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1804 | break | |
7a197a62 | 1805 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1806 | ac_aux_dir=$ac_dir |
1807 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1808 | break | |
7a197a62 | 1809 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1810 | ac_aux_dir=$ac_dir |
1811 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1812 | break | |
795ca3e5 AK |
1813 | fi |
1814 | done | |
1815 | if test -z "$ac_aux_dir"; then | |
68f2de6d AK |
1816 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1817 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1818 | { (exit 1); exit 1; }; } |
795ca3e5 | 1819 | fi |
7a197a62 AK |
1820 | |
1821 | # These three variables are undocumented and unsupported, | |
1822 | # and are intended to be withdrawn in a future Autoconf release. | |
1823 | # They can cause serious problems if a builder's source tree is in a directory | |
1824 | # whose full name contains unusual characters. | |
1825 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1826 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1827 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1828 | ||
8ce0cbda AK |
1829 | |
1830 | ||
ad6254c5 | 1831 | ################################################################################ |
8ce0cbda | 1832 | # Make sure we can run config.sub. |
7a197a62 | 1833 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
68f2de6d AK |
1834 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1835 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1836 | { (exit 1); exit 1; }; } |
1837 | ||
68f2de6d AK |
1838 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1839 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1840 | if test "${ac_cv_build+set}" = set; then |
68f2de6d | 1841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1842 | else |
7a197a62 AK |
1843 | ac_build_alias=$build_alias |
1844 | test "x$ac_build_alias" = x && | |
1845 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1846 | test "x$ac_build_alias" = x && | |
68f2de6d AK |
1847 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1848 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1849 | { (exit 1); exit 1; }; } |
7a197a62 | 1850 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
68f2de6d AK |
1851 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1852 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1853 | { (exit 1); exit 1; }; } |
1854 | ||
1855 | fi | |
68f2de6d AK |
1856 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1857 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1858 | case $ac_cv_build in |
1859 | *-*-*) ;; | |
68f2de6d AK |
1860 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1861 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1862 | { (exit 1); exit 1; }; };; |
1863 | esac | |
ad6254c5 | 1864 | build=$ac_cv_build |
7a197a62 AK |
1865 | ac_save_IFS=$IFS; IFS='-' |
1866 | set x $ac_cv_build | |
1867 | shift | |
1868 | build_cpu=$1 | |
1869 | build_vendor=$2 | |
1870 | shift; shift | |
1871 | # Remember, the first character of IFS is used to create $*, | |
1872 | # except with old shells: | |
1873 | build_os=$* | |
1874 | IFS=$ac_save_IFS | |
1875 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1876 | |
1877 | ||
68f2de6d AK |
1878 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1879 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1880 | if test "${ac_cv_host+set}" = set; then |
68f2de6d | 1881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1882 | else |
7a197a62 AK |
1883 | if test "x$host_alias" = x; then |
1884 | ac_cv_host=$ac_cv_build | |
1885 | else | |
1886 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
68f2de6d AK |
1887 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1888 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1889 | { (exit 1); exit 1; }; } |
7a197a62 | 1890 | fi |
ad6254c5 AK |
1891 | |
1892 | fi | |
68f2de6d AK |
1893 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1894 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1895 | case $ac_cv_host in |
1896 | *-*-*) ;; | |
68f2de6d AK |
1897 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1898 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1899 | { (exit 1); exit 1; }; };; |
1900 | esac | |
ad6254c5 | 1901 | host=$ac_cv_host |
7a197a62 AK |
1902 | ac_save_IFS=$IFS; IFS='-' |
1903 | set x $ac_cv_host | |
1904 | shift | |
1905 | host_cpu=$1 | |
1906 | host_vendor=$2 | |
1907 | shift; shift | |
1908 | # Remember, the first character of IFS is used to create $*, | |
1909 | # except with old shells: | |
1910 | host_os=$* | |
1911 | IFS=$ac_save_IFS | |
1912 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1913 | |
1914 | ||
68f2de6d AK |
1915 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1916 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1917 | if test "${ac_cv_target+set}" = set; then |
68f2de6d | 1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1919 | else |
7a197a62 AK |
1920 | if test "x$target_alias" = x; then |
1921 | ac_cv_target=$ac_cv_host | |
1922 | else | |
1923 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
68f2de6d AK |
1924 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1925 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1926 | { (exit 1); exit 1; }; } |
7a197a62 | 1927 | fi |
8ce0cbda | 1928 | |
ad6254c5 | 1929 | fi |
68f2de6d AK |
1930 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1931 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1932 | case $ac_cv_target in |
1933 | *-*-*) ;; | |
68f2de6d AK |
1934 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1935 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1936 | { (exit 1); exit 1; }; };; |
1937 | esac | |
ad6254c5 | 1938 | target=$ac_cv_target |
7a197a62 AK |
1939 | ac_save_IFS=$IFS; IFS='-' |
1940 | set x $ac_cv_target | |
1941 | shift | |
1942 | target_cpu=$1 | |
1943 | target_vendor=$2 | |
1944 | shift; shift | |
1945 | # Remember, the first character of IFS is used to create $*, | |
1946 | # except with old shells: | |
1947 | target_os=$* | |
1948 | IFS=$ac_save_IFS | |
1949 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1950 | |
8ce0cbda | 1951 | |
ad6254c5 AK |
1952 | # The aliases save the names the user supplied, while $host etc. |
1953 | # will get canonicalized. | |
1954 | test -n "$target_alias" && | |
8ce0cbda AK |
1955 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1956 | NONENONEs,x,x, && | |
1957 | program_prefix=${target_alias}- | |
1958 | ||
8ce0cbda AK |
1959 | case "$host_os" in |
1960 | linux*) | |
8ce0cbda AK |
1961 | COPTIMISE_FLAG="-O2" |
1962 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1963 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1964 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1965 | LDDEPS="$LDDEPS .export.sym" | |
1966 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1967 | LIB_SUFFIX=so |
8ce0cbda AK |
1968 | DEVMAPPER=yes |
1969 | ODIRECT=yes | |
d0191583 | 1970 | DM_IOCTLS=yes |
8ce0cbda | 1971 | SELINUX=yes |
8b1a3214 | 1972 | REALTIME=yes |
8ce0cbda | 1973 | CLUSTER=internal |
d0191583 JM |
1974 | FSADM=no |
1975 | ;; | |
8ce0cbda AK |
1976 | darwin*) |
1977 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1978 | COPTIMISE_FLAG="-O2" | |
1979 | CLDFLAGS="$CLDFLAGS" | |
1980 | CLDWHOLEARCHIVE="-all_load" | |
1981 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1982 | LIB_SUFFIX=dylib |
a653923f | 1983 | DEVMAPPER=yes |
8ce0cbda | 1984 | ODIRECT=no |
d0191583 | 1985 | DM_IOCTLS=no |
8ce0cbda | 1986 | SELINUX=no |
8b1a3214 | 1987 | REALTIME=no |
8ce0cbda | 1988 | CLUSTER=none |
d0191583 JM |
1989 | FSADM=no |
1990 | ;; | |
8ce0cbda AK |
1991 | esac |
1992 | ||
80992638 | 1993 | ################################################################################ |
5951ef33 AK |
1994 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
1995 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
1996 | if test "${ac_cv_path_SED+set}" = set; then | |
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1998 | else | |
1999 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2000 | for ac_i in 1 2 3 4 5 6 7; do | |
2001 | ac_script="$ac_script$as_nl$ac_script" | |
2002 | done | |
2003 | echo "$ac_script" | sed 99q >conftest.sed | |
2004 | $as_unset ac_script || ac_script= | |
2005 | # Extract the first word of "sed gsed" to use in msg output | |
2006 | if test -z "$SED"; then | |
2007 | set dummy sed gsed; ac_prog_name=$2 | |
2008 | if test "${ac_cv_path_SED+set}" = set; then | |
2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2010 | else | |
2011 | ac_path_SED_found=false | |
2012 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2014 | for as_dir in $PATH | |
2015 | do | |
2016 | IFS=$as_save_IFS | |
2017 | test -z "$as_dir" && as_dir=. | |
2018 | for ac_prog in sed gsed; do | |
2019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2020 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2021 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2022 | # Check for GNU ac_path_SED and select it if it is found. | |
2023 | # Check for GNU $ac_path_SED | |
2024 | case `"$ac_path_SED" --version 2>&1` in | |
2025 | *GNU*) | |
2026 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2027 | *) | |
2028 | ac_count=0 | |
2029 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2030 | while : | |
2031 | do | |
2032 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2033 | mv "conftest.tmp" "conftest.in" | |
2034 | cp "conftest.in" "conftest.nl" | |
2035 | echo '' >> "conftest.nl" | |
2036 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2037 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2038 | ac_count=`expr $ac_count + 1` | |
2039 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2040 | # Best one so far, save it but keep looking for a better one | |
2041 | ac_cv_path_SED="$ac_path_SED" | |
2042 | ac_path_SED_max=$ac_count | |
2043 | fi | |
2044 | # 10*(2^10) chars as input seems more than enough | |
2045 | test $ac_count -gt 10 && break | |
2046 | done | |
2047 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2048 | esac | |
2049 | ||
2050 | ||
2051 | $ac_path_SED_found && break 3 | |
2052 | done | |
2053 | done | |
2054 | ||
2055 | done | |
2056 | IFS=$as_save_IFS | |
2057 | ||
2058 | ||
2059 | fi | |
2060 | ||
2061 | SED="$ac_cv_path_SED" | |
2062 | if test -z "$SED"; then | |
2063 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
2064 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
2065 | { (exit 1); exit 1; }; } | |
2066 | fi | |
2067 | ||
2068 | else | |
2069 | ac_cv_path_SED=$SED | |
2070 | fi | |
2071 | ||
2072 | fi | |
2073 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
2074 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
2075 | SED="$ac_cv_path_SED" | |
2076 | rm -f conftest.sed | |
2077 | ||
ad6254c5 | 2078 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2079 | do |
ad6254c5 | 2080 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2081 | set dummy $ac_prog; ac_word=$2 |
68f2de6d AK |
2082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2084 | if test "${ac_cv_prog_AWK+set}" = set; then |
68f2de6d | 2085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2086 | else |
2087 | if test -n "$AWK"; then | |
2088 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2089 | else | |
ad6254c5 AK |
2090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2091 | for as_dir in $PATH | |
2092 | do | |
2093 | IFS=$as_save_IFS | |
2094 | test -z "$as_dir" && as_dir=. | |
2095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2097 | ac_cv_prog_AWK="$ac_prog" |
68f2de6d | 2098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2099 | break 2 |
2100 | fi | |
2101 | done | |
2102 | done | |
7a197a62 | 2103 | IFS=$as_save_IFS |
ad6254c5 | 2104 | |
795ca3e5 AK |
2105 | fi |
2106 | fi | |
ad6254c5 | 2107 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2108 | if test -n "$AWK"; then |
68f2de6d AK |
2109 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2110 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2111 | else |
68f2de6d AK |
2112 | { echo "$as_me:$LINENO: result: no" >&5 |
2113 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2114 | fi |
2115 | ||
7a197a62 | 2116 | |
ad6254c5 AK |
2117 | test -n "$AWK" && break |
2118 | done | |
2119 | ||
2120 | ac_ext=c | |
2121 | ac_cpp='$CPP $CPPFLAGS' | |
2122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2125 | if test -n "$ac_tool_prefix"; then | |
2126 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2127 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
68f2de6d AK |
2128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2130 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2132 | else |
2133 | if test -n "$CC"; then | |
2134 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2135 | else | |
2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2137 | for as_dir in $PATH | |
2138 | do | |
2139 | IFS=$as_save_IFS | |
2140 | test -z "$as_dir" && as_dir=. | |
2141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2143 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
68f2de6d | 2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2145 | break 2 |
2146 | fi | |
2147 | done | |
8106cdd5 | 2148 | done |
7a197a62 | 2149 | IFS=$as_save_IFS |
8106cdd5 | 2150 | |
ad6254c5 AK |
2151 | fi |
2152 | fi | |
2153 | CC=$ac_cv_prog_CC | |
2154 | if test -n "$CC"; then | |
68f2de6d AK |
2155 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2156 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2157 | else |
68f2de6d AK |
2158 | { echo "$as_me:$LINENO: result: no" >&5 |
2159 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2160 | fi |
2161 | ||
7a197a62 | 2162 | |
ad6254c5 AK |
2163 | fi |
2164 | if test -z "$ac_cv_prog_CC"; then | |
2165 | ac_ct_CC=$CC | |
2166 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2167 | set dummy gcc; ac_word=$2 |
68f2de6d AK |
2168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2170 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2172 | else |
2173 | if test -n "$ac_ct_CC"; then | |
2174 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2175 | else | |
2176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2177 | for as_dir in $PATH | |
2178 | do | |
2179 | IFS=$as_save_IFS | |
2180 | test -z "$as_dir" && as_dir=. | |
2181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2183 | ac_cv_prog_ac_ct_CC="gcc" |
68f2de6d | 2184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2185 | break 2 |
2186 | fi | |
2187 | done | |
2188 | done | |
7a197a62 | 2189 | IFS=$as_save_IFS |
ad6254c5 AK |
2190 | |
2191 | fi | |
2192 | fi | |
2193 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2194 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2195 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2196 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2197 | else |
68f2de6d AK |
2198 | { echo "$as_me:$LINENO: result: no" >&5 |
2199 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2200 | fi |
2201 | ||
7a197a62 AK |
2202 | if test "x$ac_ct_CC" = x; then |
2203 | CC="" | |
2204 | else | |
2205 | case $cross_compiling:$ac_tool_warned in | |
2206 | yes:) | |
68f2de6d | 2207 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2208 | whose name does not start with the host triplet. If you think this |
2209 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2210 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2211 | whose name does not start with the host triplet. If you think this |
2212 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2213 | ac_tool_warned=yes ;; | |
2214 | esac | |
2215 | CC=$ac_ct_CC | |
2216 | fi | |
ad6254c5 AK |
2217 | else |
2218 | CC="$ac_cv_prog_CC" | |
2219 | fi | |
2220 | ||
2221 | if test -z "$CC"; then | |
7a197a62 AK |
2222 | if test -n "$ac_tool_prefix"; then |
2223 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2224 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
68f2de6d AK |
2225 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2227 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2229 | else |
2230 | if test -n "$CC"; then | |
2231 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2232 | else | |
ad6254c5 AK |
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2234 | for as_dir in $PATH | |
2235 | do | |
2236 | IFS=$as_save_IFS | |
2237 | test -z "$as_dir" && as_dir=. | |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2240 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
68f2de6d | 2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2242 | break 2 |
2243 | fi | |
2244 | done | |
2245 | done | |
7a197a62 | 2246 | IFS=$as_save_IFS |
ad6254c5 | 2247 | |
8106cdd5 AK |
2248 | fi |
2249 | fi | |
ad6254c5 | 2250 | CC=$ac_cv_prog_CC |
8106cdd5 | 2251 | if test -n "$CC"; then |
68f2de6d AK |
2252 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2253 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2254 | else |
68f2de6d AK |
2255 | { echo "$as_me:$LINENO: result: no" >&5 |
2256 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2257 | fi |
2258 | ||
8106cdd5 | 2259 | |
7a197a62 | 2260 | fi |
ad6254c5 | 2261 | fi |
795ca3e5 AK |
2262 | if test -z "$CC"; then |
2263 | # Extract the first word of "cc", so it can be a program name with args. | |
2264 | set dummy cc; ac_word=$2 | |
68f2de6d AK |
2265 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2267 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2269 | else |
2270 | if test -n "$CC"; then | |
2271 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2272 | else | |
795ca3e5 | 2273 | ac_prog_rejected=no |
ad6254c5 AK |
2274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2275 | for as_dir in $PATH | |
2276 | do | |
2277 | IFS=$as_save_IFS | |
2278 | test -z "$as_dir" && as_dir=. | |
2279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2281 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2282 | ac_prog_rejected=yes | |
2283 | continue | |
2284 | fi | |
2285 | ac_cv_prog_CC="cc" | |
68f2de6d | 2286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2287 | break 2 |
2288 | fi | |
2289 | done | |
2290 | done | |
7a197a62 | 2291 | IFS=$as_save_IFS |
ad6254c5 | 2292 | |
795ca3e5 AK |
2293 | if test $ac_prog_rejected = yes; then |
2294 | # We found a bogon in the path, so make sure we never use it. | |
2295 | set dummy $ac_cv_prog_CC | |
2296 | shift | |
ad6254c5 | 2297 | if test $# != 0; then |
795ca3e5 AK |
2298 | # We chose a different compiler from the bogus one. |
2299 | # However, it has the same basename, so the bogon will be chosen | |
2300 | # first if we set CC to just the basename; use the full file name. | |
2301 | shift | |
ad6254c5 | 2302 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2303 | fi |
2304 | fi | |
2305 | fi | |
2306 | fi | |
ad6254c5 | 2307 | CC=$ac_cv_prog_CC |
795ca3e5 | 2308 | if test -n "$CC"; then |
68f2de6d AK |
2309 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2310 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2311 | else |
68f2de6d AK |
2312 | { echo "$as_me:$LINENO: result: no" >&5 |
2313 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2314 | fi |
2315 | ||
7a197a62 | 2316 | |
ad6254c5 AK |
2317 | fi |
2318 | if test -z "$CC"; then | |
2319 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2320 | for ac_prog in cl.exe |
ad6254c5 AK |
2321 | do |
2322 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2323 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
68f2de6d AK |
2324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2326 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2328 | else |
2329 | if test -n "$CC"; then | |
2330 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2331 | else | |
ad6254c5 AK |
2332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2333 | for as_dir in $PATH | |
2334 | do | |
2335 | IFS=$as_save_IFS | |
2336 | test -z "$as_dir" && as_dir=. | |
2337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2339 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
68f2de6d | 2340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2341 | break 2 |
2342 | fi | |
2343 | done | |
2344 | done | |
7a197a62 | 2345 | IFS=$as_save_IFS |
ad6254c5 | 2346 | |
795ca3e5 AK |
2347 | fi |
2348 | fi | |
ad6254c5 | 2349 | CC=$ac_cv_prog_CC |
795ca3e5 | 2350 | if test -n "$CC"; then |
68f2de6d AK |
2351 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2352 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2353 | else |
68f2de6d AK |
2354 | { echo "$as_me:$LINENO: result: no" >&5 |
2355 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2356 | fi |
ad6254c5 | 2357 | |
7a197a62 | 2358 | |
ad6254c5 AK |
2359 | test -n "$CC" && break |
2360 | done | |
2361 | fi | |
2362 | if test -z "$CC"; then | |
2363 | ac_ct_CC=$CC | |
7a197a62 | 2364 | for ac_prog in cl.exe |
ad6254c5 AK |
2365 | do |
2366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2367 | set dummy $ac_prog; ac_word=$2 | |
68f2de6d AK |
2368 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2370 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2372 | else |
2373 | if test -n "$ac_ct_CC"; then | |
2374 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2375 | else | |
2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2377 | for as_dir in $PATH | |
2378 | do | |
2379 | IFS=$as_save_IFS | |
2380 | test -z "$as_dir" && as_dir=. | |
2381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2383 | ac_cv_prog_ac_ct_CC="$ac_prog" |
68f2de6d | 2384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2385 | break 2 |
795ca3e5 | 2386 | fi |
ad6254c5 AK |
2387 | done |
2388 | done | |
7a197a62 | 2389 | IFS=$as_save_IFS |
ad6254c5 AK |
2390 | |
2391 | fi | |
2392 | fi | |
2393 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2394 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2395 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2396 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2397 | else |
68f2de6d AK |
2398 | { echo "$as_me:$LINENO: result: no" >&5 |
2399 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2400 | fi |
2401 | ||
7a197a62 | 2402 | |
ad6254c5 AK |
2403 | test -n "$ac_ct_CC" && break |
2404 | done | |
795ca3e5 | 2405 | |
7a197a62 AK |
2406 | if test "x$ac_ct_CC" = x; then |
2407 | CC="" | |
2408 | else | |
2409 | case $cross_compiling:$ac_tool_warned in | |
2410 | yes:) | |
68f2de6d | 2411 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2412 | whose name does not start with the host triplet. If you think this |
2413 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2414 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2415 | whose name does not start with the host triplet. If you think this |
2416 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2417 | ac_tool_warned=yes ;; | |
2418 | esac | |
2419 | CC=$ac_ct_CC | |
2420 | fi | |
ad6254c5 AK |
2421 | fi |
2422 | ||
2423 | fi | |
2424 | ||
2425 | ||
68f2de6d | 2426 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2427 | See \`config.log' for more details." >&5 |
68f2de6d | 2428 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2429 | See \`config.log' for more details." >&2;} |
2430 | { (exit 1); exit 1; }; } | |
2431 | ||
2432 | # Provide some information about the compiler. | |
68f2de6d AK |
2433 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2434 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2435 | { (ac_try="$ac_compiler --version >&5" |
2436 | case "(($ac_try" in | |
2437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2438 | *) ac_try_echo=$ac_try;; | |
2439 | esac | |
68f2de6d | 2440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2441 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2442 | ac_status=$? |
68f2de6d | 2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2444 | (exit $ac_status); } |
7a197a62 AK |
2445 | { (ac_try="$ac_compiler -v >&5" |
2446 | case "(($ac_try" in | |
2447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2448 | *) ac_try_echo=$ac_try;; | |
2449 | esac | |
68f2de6d | 2450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2451 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2452 | ac_status=$? |
68f2de6d | 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2454 | (exit $ac_status); } |
7a197a62 AK |
2455 | { (ac_try="$ac_compiler -V >&5" |
2456 | case "(($ac_try" in | |
2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2458 | *) ac_try_echo=$ac_try;; | |
2459 | esac | |
68f2de6d | 2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2461 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2462 | ac_status=$? |
68f2de6d | 2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2464 | (exit $ac_status); } |
2465 | ||
2466 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2467 | /* confdefs.h. */ |
2468 | _ACEOF | |
2469 | cat confdefs.h >>conftest.$ac_ext | |
2470 | cat >>conftest.$ac_ext <<_ACEOF | |
2471 | /* end confdefs.h. */ | |
2472 | ||
2473 | int | |
2474 | main () | |
2475 | { | |
2476 | ||
2477 | ; | |
2478 | return 0; | |
2479 | } | |
2480 | _ACEOF | |
2481 | ac_clean_files_save=$ac_clean_files | |
68f2de6d | 2482 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2483 | # Try to create an executable without -o first, disregard a.out. |
2484 | # It will help us diagnose broken compilers, and finding out an intuition | |
2485 | # of exeext. | |
68f2de6d AK |
2486 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2487 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2488 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2489 | # | |
2490 | # List of possible output files, starting from the most likely. | |
2491 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2492 | # only as a last resort. b.out is created by i960 compilers. | |
2493 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2494 | # | |
2495 | # The IRIX 6 linker writes into existing files which may not be | |
2496 | # executable, retaining their permissions. Remove them first so a | |
2497 | # subsequent execution test works. | |
7a197a62 AK |
2498 | ac_rmfiles= |
2499 | for ac_file in $ac_files | |
2500 | do | |
2501 | case $ac_file in | |
68f2de6d | 2502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2503 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2504 | esac | |
2505 | done | |
2506 | rm -f $ac_rmfiles | |
2507 | ||
2508 | if { (ac_try="$ac_link_default" | |
2509 | case "(($ac_try" in | |
2510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2511 | *) ac_try_echo=$ac_try;; | |
2512 | esac | |
68f2de6d | 2513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2514 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2515 | ac_status=$? |
68f2de6d | 2516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2517 | (exit $ac_status); }; then |
7a197a62 AK |
2518 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2519 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2520 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2521 | # so that the user can short-circuit this test for compilers unknown to | |
2522 | # Autoconf. | |
25fbec5b | 2523 | for ac_file in $ac_files '' |
ad6254c5 AK |
2524 | do |
2525 | test -f "$ac_file" || continue | |
2526 | case $ac_file in | |
68f2de6d | 2527 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2528 | ;; |
ad6254c5 | 2529 | [ab].out ) |
8a2fc586 AK |
2530 | # We found the default executable, but exeext='' is most |
2531 | # certainly right. | |
2532 | break;; | |
ad6254c5 | 2533 | *.* ) |
7a197a62 AK |
2534 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2535 | then :; else | |
2536 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2537 | fi | |
2538 | # We set ac_cv_exeext here because the later test for it is not | |
2539 | # safe: cross compilers may not add the suffix if given an `-o' | |
2540 | # argument, so we may need to know it at that point already. | |
2541 | # Even if this section looks crufty: it has the advantage of | |
2542 | # actually working. | |
8a2fc586 | 2543 | break;; |
ad6254c5 | 2544 | * ) |
8a2fc586 | 2545 | break;; |
ad6254c5 AK |
2546 | esac |
2547 | done | |
7a197a62 AK |
2548 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2549 | ||
ad6254c5 | 2550 | else |
25fbec5b AK |
2551 | ac_file='' |
2552 | fi | |
2553 | ||
68f2de6d AK |
2554 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2555 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2556 | if test -z "$ac_file"; then |
68f2de6d | 2557 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2558 | sed 's/^/| /' conftest.$ac_ext >&5 |
2559 | ||
68f2de6d | 2560 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2561 | See \`config.log' for more details." >&5 |
68f2de6d | 2562 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2563 | See \`config.log' for more details." >&2;} |
2564 | { (exit 77); exit 77; }; } | |
2565 | fi | |
2566 | ||
2567 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2568 | |
7a197a62 | 2569 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2570 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2571 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2572 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2573 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2574 | # If not cross compiling, check that we can run a simple program. | |
2575 | if test "$cross_compiling" != yes; then | |
2576 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2577 | { (case "(($ac_try" in |
2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2579 | *) ac_try_echo=$ac_try;; | |
2580 | esac | |
68f2de6d | 2581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2582 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2583 | ac_status=$? |
68f2de6d | 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2585 | (exit $ac_status); }; }; then |
2586 | cross_compiling=no | |
795ca3e5 | 2587 | else |
ad6254c5 AK |
2588 | if test "$cross_compiling" = maybe; then |
2589 | cross_compiling=yes | |
2590 | else | |
68f2de6d | 2591 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2592 | If you meant to cross compile, use \`--host'. |
2593 | See \`config.log' for more details." >&5 | |
68f2de6d | 2594 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2595 | If you meant to cross compile, use \`--host'. |
2596 | See \`config.log' for more details." >&2;} | |
2597 | { (exit 1); exit 1; }; } | |
2598 | fi | |
795ca3e5 | 2599 | fi |
80992638 | 2600 | fi |
68f2de6d AK |
2601 | { echo "$as_me:$LINENO: result: yes" >&5 |
2602 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2603 | |
68f2de6d | 2604 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2605 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2606 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2607 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2608 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2609 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2610 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2611 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2612 | |
68f2de6d AK |
2613 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2614 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2615 | if { (ac_try="$ac_link" |
2616 | case "(($ac_try" in | |
2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2618 | *) ac_try_echo=$ac_try;; | |
2619 | esac | |
68f2de6d | 2620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2621 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2622 | ac_status=$? |
68f2de6d | 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2624 | (exit $ac_status); }; then |
2625 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2626 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2627 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2628 | # `rm'. | |
2629 | for ac_file in conftest.exe conftest conftest.*; do | |
2630 | test -f "$ac_file" || continue | |
2631 | case $ac_file in | |
68f2de6d | 2632 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2633 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2634 | break;; |
ad6254c5 AK |
2635 | * ) break;; |
2636 | esac | |
2637 | done | |
80992638 | 2638 | else |
68f2de6d | 2639 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2640 | See \`config.log' for more details." >&5 |
68f2de6d | 2641 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2642 | See \`config.log' for more details." >&2;} |
2643 | { (exit 1); exit 1; }; } | |
2644 | fi | |
2645 | ||
2646 | rm -f conftest$ac_cv_exeext | |
68f2de6d AK |
2647 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2648 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2649 | |
2650 | rm -f conftest.$ac_ext | |
2651 | EXEEXT=$ac_cv_exeext | |
2652 | ac_exeext=$EXEEXT | |
68f2de6d AK |
2653 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2654 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2655 | if test "${ac_cv_objext+set}" = set; then |
68f2de6d | 2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2657 | else |
ad6254c5 | 2658 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2659 | /* confdefs.h. */ |
2660 | _ACEOF | |
2661 | cat confdefs.h >>conftest.$ac_ext | |
2662 | cat >>conftest.$ac_ext <<_ACEOF | |
2663 | /* end confdefs.h. */ | |
2664 | ||
2665 | int | |
2666 | main () | |
2667 | { | |
2668 | ||
2669 | ; | |
2670 | return 0; | |
2671 | } | |
2672 | _ACEOF | |
2673 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2674 | if { (ac_try="$ac_compile" |
2675 | case "(($ac_try" in | |
2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2677 | *) ac_try_echo=$ac_try;; | |
2678 | esac | |
68f2de6d | 2679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2680 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2681 | ac_status=$? |
68f2de6d | 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2683 | (exit $ac_status); }; then |
7a197a62 AK |
2684 | for ac_file in conftest.o conftest.obj conftest.*; do |
2685 | test -f "$ac_file" || continue; | |
ad6254c5 | 2686 | case $ac_file in |
68f2de6d | 2687 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2688 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2689 | break;; | |
2690 | esac | |
2691 | done | |
2692 | else | |
68f2de6d | 2693 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2694 | sed 's/^/| /' conftest.$ac_ext >&5 |
2695 | ||
68f2de6d | 2696 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2697 | See \`config.log' for more details." >&5 |
68f2de6d | 2698 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2699 | See \`config.log' for more details." >&2;} |
2700 | { (exit 1); exit 1; }; } | |
2701 | fi | |
2702 | ||
2703 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2704 | fi | |
68f2de6d AK |
2705 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2706 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2707 | OBJEXT=$ac_cv_objext |
2708 | ac_objext=$OBJEXT | |
68f2de6d AK |
2709 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2710 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2711 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
68f2de6d | 2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2713 | else |
2714 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2715 | /* confdefs.h. */ |
2716 | _ACEOF | |
2717 | cat confdefs.h >>conftest.$ac_ext | |
2718 | cat >>conftest.$ac_ext <<_ACEOF | |
2719 | /* end confdefs.h. */ | |
2720 | ||
2721 | int | |
2722 | main () | |
2723 | { | |
2724 | #ifndef __GNUC__ | |
2725 | choke me | |
2726 | #endif | |
80992638 | 2727 | |
ad6254c5 AK |
2728 | ; |
2729 | return 0; | |
2730 | } | |
2731 | _ACEOF | |
2732 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2733 | if { (ac_try="$ac_compile" |
2734 | case "(($ac_try" in | |
2735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2736 | *) ac_try_echo=$ac_try;; | |
2737 | esac | |
68f2de6d | 2738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2739 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2740 | ac_status=$? |
8a2fc586 AK |
2741 | grep -v '^ *+' conftest.er1 >conftest.err |
2742 | rm -f conftest.er1 | |
2743 | cat conftest.err >&5 | |
68f2de6d | 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2745 | (exit $ac_status); } && { |
2746 | test -z "$ac_c_werror_flag" || | |
2747 | test ! -s conftest.err | |
2748 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2749 | ac_compiler_gnu=yes |
80992638 | 2750 | else |
68f2de6d | 2751 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2752 | sed 's/^/| /' conftest.$ac_ext >&5 |
2753 | ||
7a197a62 | 2754 | ac_compiler_gnu=no |
8106cdd5 | 2755 | fi |
7a197a62 AK |
2756 | |
2757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2758 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2759 | |
ad6254c5 | 2760 | fi |
68f2de6d AK |
2761 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2762 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2763 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2764 | ac_test_CFLAGS=${CFLAGS+set} |
2765 | ac_save_CFLAGS=$CFLAGS | |
68f2de6d AK |
2766 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2767 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2768 | if test "${ac_cv_prog_cc_g+set}" = set; then |
68f2de6d | 2769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2770 | else |
7a197a62 AK |
2771 | ac_save_c_werror_flag=$ac_c_werror_flag |
2772 | ac_c_werror_flag=yes | |
2773 | ac_cv_prog_cc_g=no | |
2774 | CFLAGS="-g" | |
2775 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2776 | /* confdefs.h. */ |
2777 | _ACEOF | |
2778 | cat confdefs.h >>conftest.$ac_ext | |
2779 | cat >>conftest.$ac_ext <<_ACEOF | |
2780 | /* end confdefs.h. */ | |
2781 | ||
2782 | int | |
2783 | main () | |
2784 | { | |
2785 | ||
2786 | ; | |
2787 | return 0; | |
2788 | } | |
2789 | _ACEOF | |
2790 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2791 | if { (ac_try="$ac_compile" |
2792 | case "(($ac_try" in | |
2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2794 | *) ac_try_echo=$ac_try;; | |
2795 | esac | |
68f2de6d | 2796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2797 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2798 | ac_status=$? |
8a2fc586 AK |
2799 | grep -v '^ *+' conftest.er1 >conftest.err |
2800 | rm -f conftest.er1 | |
2801 | cat conftest.err >&5 | |
68f2de6d | 2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2803 | (exit $ac_status); } && { |
2804 | test -z "$ac_c_werror_flag" || | |
2805 | test ! -s conftest.err | |
2806 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2807 | ac_cv_prog_cc_g=yes |
2808 | else | |
68f2de6d | 2809 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2810 | sed 's/^/| /' conftest.$ac_ext >&5 |
2811 | ||
2812 | CFLAGS="" | |
2813 | cat >conftest.$ac_ext <<_ACEOF | |
2814 | /* confdefs.h. */ | |
2815 | _ACEOF | |
2816 | cat confdefs.h >>conftest.$ac_ext | |
2817 | cat >>conftest.$ac_ext <<_ACEOF | |
2818 | /* end confdefs.h. */ | |
2819 | ||
2820 | int | |
2821 | main () | |
2822 | { | |
2823 | ||
2824 | ; | |
2825 | return 0; | |
2826 | } | |
2827 | _ACEOF | |
2828 | rm -f conftest.$ac_objext | |
2829 | if { (ac_try="$ac_compile" | |
2830 | case "(($ac_try" in | |
2831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2832 | *) ac_try_echo=$ac_try;; | |
2833 | esac | |
68f2de6d | 2834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2835 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2836 | ac_status=$? |
7a197a62 AK |
2837 | grep -v '^ *+' conftest.er1 >conftest.err |
2838 | rm -f conftest.er1 | |
2839 | cat conftest.err >&5 | |
68f2de6d | 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2841 | (exit $ac_status); } && { |
2842 | test -z "$ac_c_werror_flag" || | |
2843 | test ! -s conftest.err | |
2844 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2845 | : |
2846 | else | |
68f2de6d | 2847 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2848 | sed 's/^/| /' conftest.$ac_ext >&5 |
2849 | ||
2850 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2851 | CFLAGS="-g" | |
2852 | cat >conftest.$ac_ext <<_ACEOF | |
2853 | /* confdefs.h. */ | |
2854 | _ACEOF | |
2855 | cat confdefs.h >>conftest.$ac_ext | |
2856 | cat >>conftest.$ac_ext <<_ACEOF | |
2857 | /* end confdefs.h. */ | |
2858 | ||
2859 | int | |
2860 | main () | |
2861 | { | |
2862 | ||
2863 | ; | |
2864 | return 0; | |
2865 | } | |
2866 | _ACEOF | |
2867 | rm -f conftest.$ac_objext | |
2868 | if { (ac_try="$ac_compile" | |
2869 | case "(($ac_try" in | |
2870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2871 | *) ac_try_echo=$ac_try;; | |
2872 | esac | |
68f2de6d | 2873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2874 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2875 | ac_status=$? |
7a197a62 AK |
2876 | grep -v '^ *+' conftest.er1 >conftest.err |
2877 | rm -f conftest.er1 | |
2878 | cat conftest.err >&5 | |
68f2de6d | 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2880 | (exit $ac_status); } && { |
2881 | test -z "$ac_c_werror_flag" || | |
2882 | test ! -s conftest.err | |
2883 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2884 | ac_cv_prog_cc_g=yes |
2885 | else | |
68f2de6d | 2886 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2887 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2888 | |
7a197a62 AK |
2889 | |
2890 | fi | |
2891 | ||
2892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2893 | fi | |
2894 | ||
2895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2896 | fi |
7a197a62 AK |
2897 | |
2898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2899 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2900 | fi |
68f2de6d AK |
2901 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2902 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2903 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2904 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2905 | elif test $ac_cv_prog_cc_g = yes; then |
2906 | if test "$GCC" = yes; then | |
2907 | CFLAGS="-g -O2" | |
2908 | else | |
2909 | CFLAGS="-g" | |
2910 | fi | |
2911 | else | |
2912 | if test "$GCC" = yes; then | |
2913 | CFLAGS="-O2" | |
2914 | else | |
2915 | CFLAGS= | |
2916 | fi | |
2917 | fi | |
68f2de6d AK |
2918 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2919 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2920 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
68f2de6d | 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2922 | else |
7a197a62 | 2923 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2924 | ac_save_CC=$CC |
2925 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2926 | /* confdefs.h. */ |
2927 | _ACEOF | |
2928 | cat confdefs.h >>conftest.$ac_ext | |
2929 | cat >>conftest.$ac_ext <<_ACEOF | |
2930 | /* end confdefs.h. */ | |
2931 | #include <stdarg.h> | |
2932 | #include <stdio.h> | |
2933 | #include <sys/types.h> | |
2934 | #include <sys/stat.h> | |
2935 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2936 | struct buf { int x; }; | |
2937 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2938 | static char *e (p, i) | |
2939 | char **p; | |
2940 | int i; | |
2941 | { | |
2942 | return p[i]; | |
2943 | } | |
2944 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2945 | { | |
2946 | char *s; | |
2947 | va_list v; | |
2948 | va_start (v,p); | |
2949 | s = g (p, va_arg (v,int)); | |
2950 | va_end (v); | |
2951 | return s; | |
2952 | } | |
8a2fc586 AK |
2953 | |
2954 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2955 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2956 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2957 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2958 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2959 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2960 | that's true only with -std. */ |
8a2fc586 AK |
2961 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2962 | ||
7a197a62 AK |
2963 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2964 | inside strings and character constants. */ | |
2965 | #define FOO(x) 'x' | |
2966 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2967 | ||
ad6254c5 AK |
2968 | int test (int i, double x); |
2969 | struct s1 {int (*f) (int a);}; | |
2970 | struct s2 {int (*f) (double a);}; | |
2971 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2972 | int argc; | |
2973 | char **argv; | |
2974 | int | |
2975 | main () | |
2976 | { | |
2977 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2978 | ; | |
2979 | return 0; | |
2980 | } | |
2981 | _ACEOF | |
7a197a62 AK |
2982 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2983 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2984 | do |
2985 | CC="$ac_save_CC $ac_arg" | |
2986 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2987 | if { (ac_try="$ac_compile" |
2988 | case "(($ac_try" in | |
2989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2990 | *) ac_try_echo=$ac_try;; | |
2991 | esac | |
68f2de6d | 2992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2993 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2994 | ac_status=$? |
8a2fc586 AK |
2995 | grep -v '^ *+' conftest.er1 >conftest.err |
2996 | rm -f conftest.er1 | |
2997 | cat conftest.err >&5 | |
68f2de6d | 2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2999 | (exit $ac_status); } && { |
3000 | test -z "$ac_c_werror_flag" || | |
3001 | test ! -s conftest.err | |
3002 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3003 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3004 | else |
68f2de6d | 3005 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3006 | sed 's/^/| /' conftest.$ac_ext >&5 |
3007 | ||
7a197a62 | 3008 | |
ad6254c5 | 3009 | fi |
7a197a62 AK |
3010 | |
3011 | rm -f core conftest.err conftest.$ac_objext | |
3012 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3013 | done |
7a197a62 | 3014 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3015 | CC=$ac_save_CC |
3016 | ||
3017 | fi | |
7a197a62 AK |
3018 | # AC_CACHE_VAL |
3019 | case "x$ac_cv_prog_cc_c89" in | |
3020 | x) | |
68f2de6d AK |
3021 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3022 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 3023 | xno) |
68f2de6d AK |
3024 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3025 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 3026 | *) |
7a197a62 | 3027 | CC="$CC $ac_cv_prog_cc_c89" |
68f2de6d AK |
3028 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3029 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3030 | esac |
3031 | ||
ad6254c5 | 3032 | |
ad6254c5 AK |
3033 | ac_ext=c |
3034 | ac_cpp='$CPP $CPPFLAGS' | |
3035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3038 | |
d0191583 JM |
3039 | |
3040 | ||
3041 | ac_ext=c | |
3042 | ac_cpp='$CPP $CPPFLAGS' | |
3043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
68f2de6d AK |
3046 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3047 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
3048 | # On Suns, sometimes $CPP names a directory. |
3049 | if test -n "$CPP" && test -d "$CPP"; then | |
3050 | CPP= | |
3051 | fi | |
3052 | if test -z "$CPP"; then | |
3053 | if test "${ac_cv_prog_CPP+set}" = set; then | |
68f2de6d | 3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3055 | else |
d0191583 JM |
3056 | # Double quotes because CPP needs to be expanded |
3057 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3058 | do | |
3059 | ac_preproc_ok=false | |
3060 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3061 | do |
d0191583 JM |
3062 | # Use a header file that comes with gcc, so configuring glibc |
3063 | # with a fresh cross-compiler works. | |
3064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3065 | # <limits.h> exists even on freestanding compilers. | |
3066 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3067 | # not just through cpp. "Syntax error" is here to catch this case. | |
3068 | cat >conftest.$ac_ext <<_ACEOF | |
3069 | /* confdefs.h. */ | |
3070 | _ACEOF | |
3071 | cat confdefs.h >>conftest.$ac_ext | |
3072 | cat >>conftest.$ac_ext <<_ACEOF | |
3073 | /* end confdefs.h. */ | |
3074 | #ifdef __STDC__ | |
3075 | # include <limits.h> | |
3076 | #else | |
3077 | # include <assert.h> | |
3078 | #endif | |
3079 | Syntax error | |
3080 | _ACEOF | |
3081 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3082 | case "(($ac_try" in | |
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3084 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3085 | esac |
68f2de6d | 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3088 | ac_status=$? | |
3089 | grep -v '^ *+' conftest.er1 >conftest.err | |
3090 | rm -f conftest.er1 | |
3091 | cat conftest.err >&5 | |
68f2de6d | 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3093 | (exit $ac_status); } >/dev/null && { |
3094 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3095 | test ! -s conftest.err | |
3096 | }; then | |
3097 | : | |
3098 | else | |
68f2de6d | 3099 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3100 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3101 | |
d0191583 JM |
3102 | # Broken: fails on valid input. |
3103 | continue | |
795ca3e5 | 3104 | fi |
795ca3e5 | 3105 | |
d0191583 | 3106 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3107 | |
d0191583 JM |
3108 | # OK, works on sane cases. Now check whether nonexistent headers |
3109 | # can be detected and how. | |
3110 | cat >conftest.$ac_ext <<_ACEOF | |
3111 | /* confdefs.h. */ | |
3112 | _ACEOF | |
3113 | cat confdefs.h >>conftest.$ac_ext | |
3114 | cat >>conftest.$ac_ext <<_ACEOF | |
3115 | /* end confdefs.h. */ | |
3116 | #include <ac_nonexistent.h> | |
3117 | _ACEOF | |
3118 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3119 | case "(($ac_try" in | |
3120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3121 | *) ac_try_echo=$ac_try;; | |
3122 | esac | |
68f2de6d | 3123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3125 | ac_status=$? | |
3126 | grep -v '^ *+' conftest.er1 >conftest.err | |
3127 | rm -f conftest.er1 | |
3128 | cat conftest.err >&5 | |
68f2de6d | 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3130 | (exit $ac_status); } >/dev/null && { |
3131 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3132 | test ! -s conftest.err | |
3133 | }; then | |
3134 | # Broken: success on invalid input. | |
3135 | continue | |
3136 | else | |
68f2de6d | 3137 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3139 | |
d0191583 JM |
3140 | # Passes both tests. |
3141 | ac_preproc_ok=: | |
3142 | break | |
3143 | fi | |
795ca3e5 | 3144 | |
d0191583 JM |
3145 | rm -f conftest.err conftest.$ac_ext |
3146 | ||
3147 | done | |
3148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3149 | rm -f conftest.err conftest.$ac_ext | |
3150 | if $ac_preproc_ok; then | |
3151 | break | |
795ca3e5 AK |
3152 | fi |
3153 | ||
d0191583 JM |
3154 | done |
3155 | ac_cv_prog_CPP=$CPP | |
3156 | ||
3157 | fi | |
3158 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3159 | else |
d0191583 JM |
3160 | ac_cv_prog_CPP=$CPP |
3161 | fi | |
68f2de6d AK |
3162 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3163 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3164 | ac_preproc_ok=false |
3165 | for ac_c_preproc_warn_flag in '' yes | |
3166 | do | |
3167 | # Use a header file that comes with gcc, so configuring glibc | |
3168 | # with a fresh cross-compiler works. | |
3169 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3170 | # <limits.h> exists even on freestanding compilers. | |
3171 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3172 | # not just through cpp. "Syntax error" is here to catch this case. | |
3173 | cat >conftest.$ac_ext <<_ACEOF | |
3174 | /* confdefs.h. */ | |
ad6254c5 | 3175 | _ACEOF |
d0191583 JM |
3176 | cat confdefs.h >>conftest.$ac_ext |
3177 | cat >>conftest.$ac_ext <<_ACEOF | |
3178 | /* end confdefs.h. */ | |
3179 | #ifdef __STDC__ | |
3180 | # include <limits.h> | |
3181 | #else | |
3182 | # include <assert.h> | |
3183 | #endif | |
3184 | Syntax error | |
3185 | _ACEOF | |
3186 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3187 | case "(($ac_try" in | |
3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3189 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3190 | esac |
68f2de6d | 3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3192 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3193 | ac_status=$? | |
3194 | grep -v '^ *+' conftest.er1 >conftest.err | |
3195 | rm -f conftest.er1 | |
3196 | cat conftest.err >&5 | |
68f2de6d | 3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3198 | (exit $ac_status); } >/dev/null && { |
3199 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3200 | test ! -s conftest.err | |
3201 | }; then | |
3202 | : | |
795ca3e5 | 3203 | else |
68f2de6d | 3204 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
3206 | ||
3207 | # Broken: fails on valid input. | |
3208 | continue | |
795ca3e5 AK |
3209 | fi |
3210 | ||
d0191583 JM |
3211 | rm -f conftest.err conftest.$ac_ext |
3212 | ||
3213 | # OK, works on sane cases. Now check whether nonexistent headers | |
3214 | # can be detected and how. | |
3215 | cat >conftest.$ac_ext <<_ACEOF | |
3216 | /* confdefs.h. */ | |
3217 | _ACEOF | |
3218 | cat confdefs.h >>conftest.$ac_ext | |
3219 | cat >>conftest.$ac_ext <<_ACEOF | |
3220 | /* end confdefs.h. */ | |
3221 | #include <ac_nonexistent.h> | |
3222 | _ACEOF | |
3223 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3224 | case "(($ac_try" in | |
3225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3226 | *) ac_try_echo=$ac_try;; | |
3227 | esac | |
68f2de6d | 3228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3229 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3230 | ac_status=$? | |
3231 | grep -v '^ *+' conftest.er1 >conftest.err | |
3232 | rm -f conftest.er1 | |
3233 | cat conftest.err >&5 | |
68f2de6d | 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3235 | (exit $ac_status); } >/dev/null && { |
3236 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3237 | test ! -s conftest.err | |
3238 | }; then | |
3239 | # Broken: success on invalid input. | |
3240 | continue | |
795ca3e5 | 3241 | else |
68f2de6d | 3242 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3243 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3244 | |
d0191583 JM |
3245 | # Passes both tests. |
3246 | ac_preproc_ok=: | |
3247 | break | |
795ca3e5 | 3248 | fi |
d0191583 JM |
3249 | |
3250 | rm -f conftest.err conftest.$ac_ext | |
3251 | ||
3252 | done | |
3253 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3254 | rm -f conftest.err conftest.$ac_ext | |
3255 | if $ac_preproc_ok; then | |
3256 | : | |
8106cdd5 | 3257 | else |
68f2de6d | 3258 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3259 | See \`config.log' for more details." >&5 |
68f2de6d | 3260 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3261 | See \`config.log' for more details." >&2;} |
3262 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3263 | fi |
3264 | ||
d0191583 JM |
3265 | ac_ext=c |
3266 | ac_cpp='$CPP $CPPFLAGS' | |
3267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3270 | ||
7a197a62 | 3271 | |
68f2de6d AK |
3272 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3273 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3274 | if test "${ac_cv_path_GREP+set}" = set; then | |
3275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3276 | else | |
3277 | # Extract the first word of "grep ggrep" to use in msg output | |
3278 | if test -z "$GREP"; then | |
3279 | set dummy grep ggrep; ac_prog_name=$2 | |
5556819a | 3280 | if test "${ac_cv_path_GREP+set}" = set; then |
68f2de6d | 3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3282 | else |
d0191583 | 3283 | ac_path_GREP_found=false |
68f2de6d AK |
3284 | # Loop through the user's path and test for each of PROGNAME-LIST |
3285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3286 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3287 | do |
3288 | IFS=$as_save_IFS | |
3289 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3290 | for ac_prog in grep ggrep; do |
68f2de6d AK |
3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
3292 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3293 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3294 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3295 | # Check for GNU $ac_path_GREP |
3296 | case `"$ac_path_GREP" --version 2>&1` in | |
3297 | *GNU*) | |
3298 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3299 | *) | |
3300 | ac_count=0 | |
68f2de6d | 3301 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3302 | while : |
3303 | do | |
3304 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3305 | mv "conftest.tmp" "conftest.in" | |
3306 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3307 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3308 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3309 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3310 | ac_count=`expr $ac_count + 1` | |
3311 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3312 | # Best one so far, save it but keep looking for a better one | |
3313 | ac_cv_path_GREP="$ac_path_GREP" | |
3314 | ac_path_GREP_max=$ac_count | |
3315 | fi | |
3316 | # 10*(2^10) chars as input seems more than enough | |
3317 | test $ac_count -gt 10 && break | |
3318 | done | |
3319 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3320 | esac | |
3321 | ||
68f2de6d AK |
3322 | |
3323 | $ac_path_GREP_found && break 3 | |
d0191583 | 3324 | done |
ad6254c5 | 3325 | done |
68f2de6d AK |
3326 | |
3327 | done | |
7a197a62 | 3328 | IFS=$as_save_IFS |
68f2de6d AK |
3329 | |
3330 | ||
3331 | fi | |
3332 | ||
3333 | GREP="$ac_cv_path_GREP" | |
3334 | if test -z "$GREP"; then | |
3335 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3336 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3337 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3338 | fi |
3339 | ||
80992638 | 3340 | else |
d0191583 | 3341 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3342 | fi |
8106cdd5 | 3343 | |
68f2de6d | 3344 | |
80992638 | 3345 | fi |
68f2de6d AK |
3346 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3347 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3348 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3349 | |
d0191583 | 3350 | |
68f2de6d AK |
3351 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3352 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3353 | if test "${ac_cv_path_EGREP+set}" = set; then |
68f2de6d | 3354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3355 | else |
d0191583 JM |
3356 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3357 | then ac_cv_path_EGREP="$GREP -E" | |
3358 | else | |
68f2de6d AK |
3359 | # Extract the first word of "egrep" to use in msg output |
3360 | if test -z "$EGREP"; then | |
3361 | set dummy egrep; ac_prog_name=$2 | |
3362 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3364 | else | |
d0191583 | 3365 | ac_path_EGREP_found=false |
68f2de6d AK |
3366 | # Loop through the user's path and test for each of PROGNAME-LIST |
3367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3368 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3369 | do |
3370 | IFS=$as_save_IFS | |
3371 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3372 | for ac_prog in egrep; do |
68f2de6d AK |
3373 | for ac_exec_ext in '' $ac_executable_extensions; do |
3374 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3375 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3376 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3377 | # Check for GNU $ac_path_EGREP |
3378 | case `"$ac_path_EGREP" --version 2>&1` in | |
3379 | *GNU*) | |
3380 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3381 | *) | |
3382 | ac_count=0 | |
68f2de6d | 3383 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3384 | while : |
3385 | do | |
3386 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3387 | mv "conftest.tmp" "conftest.in" | |
3388 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3389 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3390 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3391 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3392 | ac_count=`expr $ac_count + 1` | |
3393 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3394 | # Best one so far, save it but keep looking for a better one | |
3395 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3396 | ac_path_EGREP_max=$ac_count | |
3397 | fi | |
3398 | # 10*(2^10) chars as input seems more than enough | |
3399 | test $ac_count -gt 10 && break | |
3400 | done | |
3401 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3402 | esac |
8a2fc586 | 3403 | |
68f2de6d AK |
3404 | |
3405 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3406 | done |
8a2fc586 | 3407 | done |
68f2de6d AK |
3408 | |
3409 | done | |
7a197a62 | 3410 | IFS=$as_save_IFS |
68f2de6d AK |
3411 | |
3412 | ||
3413 | fi | |
3414 | ||
3415 | EGREP="$ac_cv_path_EGREP" | |
3416 | if test -z "$EGREP"; then | |
3417 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3418 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3419 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3420 | fi |
3421 | ||
d0191583 JM |
3422 | else |
3423 | ac_cv_path_EGREP=$EGREP | |
3424 | fi | |
ad6254c5 | 3425 | |
68f2de6d | 3426 | |
d0191583 JM |
3427 | fi |
3428 | fi | |
68f2de6d AK |
3429 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3430 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3431 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3432 | |
3433 | ||
d0191583 | 3434 | if test $ac_cv_c_compiler_gnu = yes; then |
68f2de6d AK |
3435 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3436 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3437 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
68f2de6d | 3438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3439 | else |
d0191583 | 3440 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3441 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3442 | /* confdefs.h. */ |
3443 | _ACEOF | |
3444 | cat confdefs.h >>conftest.$ac_ext | |
3445 | cat >>conftest.$ac_ext <<_ACEOF | |
3446 | /* end confdefs.h. */ | |
d0191583 JM |
3447 | #include <sgtty.h> |
3448 | Autoconf TIOCGETP | |
ad6254c5 | 3449 | _ACEOF |
d0191583 JM |
3450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3451 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3452 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3453 | else |
d0191583 | 3454 | ac_cv_prog_gcc_traditional=no |
80992638 | 3455 | fi |
d0191583 | 3456 | rm -f conftest* |
ad6254c5 | 3457 | |
8106cdd5 | 3458 | |
d0191583 JM |
3459 | if test $ac_cv_prog_gcc_traditional = no; then |
3460 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3461 | /* confdefs.h. */ |
3462 | _ACEOF | |
3463 | cat confdefs.h >>conftest.$ac_ext | |
3464 | cat >>conftest.$ac_ext <<_ACEOF | |
3465 | /* end confdefs.h. */ | |
d0191583 JM |
3466 | #include <termio.h> |
3467 | Autoconf TCGETA | |
ad6254c5 | 3468 | _ACEOF |
d0191583 JM |
3469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3470 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3471 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3472 | fi |
d0191583 | 3473 | rm -f conftest* |
795ca3e5 | 3474 | |
d0191583 | 3475 | fi |
795ca3e5 | 3476 | fi |
68f2de6d AK |
3477 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3478 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3479 | if test $ac_cv_prog_gcc_traditional = yes; then |
3480 | CC="$CC -traditional" | |
3481 | fi | |
795ca3e5 AK |
3482 | fi |
3483 | ||
d0191583 JM |
3484 | # Find a good install program. We prefer a C program (faster), |
3485 | # so one script is as good as another. But avoid the broken or | |
3486 | # incompatible versions: | |
3487 | # SysV /etc/install, /usr/sbin/install | |
3488 | # SunOS /usr/etc/install | |
3489 | # IRIX /sbin/install | |
3490 | # AIX /bin/install | |
3491 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3492 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3493 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3494 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3495 | # OS/2's system install, which has a completely different semantic | |
3496 | # ./install, which can be erroneously created by make from ./install.sh. | |
68f2de6d AK |
3497 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3498 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3499 | if test -z "$INSTALL"; then |
3500 | if test "${ac_cv_path_install+set}" = set; then | |
68f2de6d | 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3502 | else |
d0191583 JM |
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3504 | for as_dir in $PATH | |
3505 | do | |
3506 | IFS=$as_save_IFS | |
3507 | test -z "$as_dir" && as_dir=. | |
3508 | # Account for people who put trailing slashes in PATH elements. | |
3509 | case $as_dir/ in | |
3510 | ./ | .// | /cC/* | \ | |
3511 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3512 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3513 | /usr/ucb/* ) ;; | |
3514 | *) | |
3515 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3516 | # Don't use installbsd from OSF since it installs stuff as root | |
3517 | # by default. | |
3518 | for ac_prog in ginstall scoinst install; do | |
3519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3520 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3521 | if test $ac_prog = install && | |
3522 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3523 | # AIX install. It has an incompatible calling convention. | |
3524 | : | |
3525 | elif test $ac_prog = install && | |
3526 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3527 | # program-specific install script used by HP pwplus--don't use. | |
3528 | : | |
3529 | else | |
68f2de6d AK |
3530 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3531 | break 3 | |
d0191583 JM |
3532 | fi |
3533 | fi | |
3534 | done | |
3535 | done | |
3536 | ;; | |
3537 | esac | |
3538 | done | |
3539 | IFS=$as_save_IFS | |
80992638 | 3540 | |
d0191583 JM |
3541 | |
3542 | fi | |
3543 | if test "${ac_cv_path_install+set}" = set; then | |
3544 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3545 | else |
d0191583 JM |
3546 | # As a last resort, use the slow shell script. Don't cache a |
3547 | # value for INSTALL within a source directory, because that will | |
3548 | # break other packages using the cache if that directory is | |
3549 | # removed, or if the value is a relative name. | |
3550 | INSTALL=$ac_install_sh | |
7a197a62 | 3551 | fi |
d0191583 | 3552 | fi |
68f2de6d AK |
3553 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3554 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3555 | |
d0191583 JM |
3556 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3557 | # It thinks the first close brace ends the variable substitution. | |
3558 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3559 | |
d0191583 | 3560 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3561 | |
d0191583 JM |
3562 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3563 | ||
68f2de6d AK |
3564 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3565 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3566 | LN_S=$as_ln_s |
3567 | if test "$LN_S" = "ln -s"; then | |
68f2de6d AK |
3568 | { echo "$as_me:$LINENO: result: yes" >&5 |
3569 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3570 | else |
68f2de6d AK |
3571 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3572 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3573 | fi |
d0191583 | 3574 | |
68f2de6d AK |
3575 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3576 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3577 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3578 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3580 | else |
d0191583 JM |
3581 | cat >conftest.make <<\_ACEOF |
3582 | SHELL = /bin/sh | |
3583 | all: | |
3584 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3585 | _ACEOF | |
3586 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3587 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3588 | *@@@%%%=?*=@@@%%%*) | |
3589 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3590 | *) | |
3591 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3592 | esac | |
3593 | rm -f conftest.make | |
ad6254c5 | 3594 | fi |
d0191583 | 3595 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
68f2de6d AK |
3596 | { echo "$as_me:$LINENO: result: yes" >&5 |
3597 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3598 | SET_MAKE= |
3599 | else | |
68f2de6d AK |
3600 | { echo "$as_me:$LINENO: result: no" >&5 |
3601 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3602 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3603 | fi |
8106cdd5 | 3604 | |
68f2de6d AK |
3605 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3606 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
5556819a AK |
3607 | if test -z "$MKDIR_P"; then |
3608 | if test "${ac_cv_path_mkdir+set}" = set; then | |
68f2de6d | 3609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5556819a AK |
3610 | else |
3611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3612 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3613 | do | |
3614 | IFS=$as_save_IFS | |
3615 | test -z "$as_dir" && as_dir=. | |
3616 | for ac_prog in mkdir gmkdir; do | |
3617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3618 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3619 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3620 | 'mkdir (GNU coreutils) '* | \ | |
3621 | 'mkdir (coreutils) '* | \ | |
3622 | 'mkdir (fileutils) '4.1*) | |
3623 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3624 | break 3;; | |
3625 | esac | |
3626 | done | |
3627 | done | |
3628 | done | |
3629 | IFS=$as_save_IFS | |
3630 | ||
3631 | fi | |
3632 | ||
3633 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3634 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3635 | else | |
3636 | # As a last resort, use the slow shell script. Don't cache a | |
3637 | # value for MKDIR_P within a source directory, because that will | |
3638 | # break other packages using the cache if that directory is | |
3639 | # removed, or if the value is a relative name. | |
3640 | test -d ./--version && rmdir ./--version | |
3641 | MKDIR_P="$ac_install_sh -d" | |
3642 | fi | |
3643 | fi | |
68f2de6d AK |
3644 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3645 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
5556819a | 3646 | |
d0191583 JM |
3647 | if test -n "$ac_tool_prefix"; then |
3648 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3649 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
68f2de6d AK |
3650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3652 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
68f2de6d | 3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3654 | else |
3655 | if test -n "$RANLIB"; then | |
3656 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3657 | else | |
3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3659 | for as_dir in $PATH | |
3660 | do | |
3661 | IFS=$as_save_IFS | |
3662 | test -z "$as_dir" && as_dir=. | |
3663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3665 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
68f2de6d | 3666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3667 | break 2 |
3668 | fi | |
3669 | done | |
3670 | done | |
3671 | IFS=$as_save_IFS | |
8106cdd5 | 3672 | |
795ca3e5 | 3673 | fi |
d0191583 JM |
3674 | fi |
3675 | RANLIB=$ac_cv_prog_RANLIB | |
3676 | if test -n "$RANLIB"; then | |
68f2de6d AK |
3677 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3678 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3679 | else |
68f2de6d AK |
3680 | { echo "$as_me:$LINENO: result: no" >&5 |
3681 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3682 | fi |
3683 | ||
8106cdd5 | 3684 | |
ad6254c5 | 3685 | fi |
d0191583 JM |
3686 | if test -z "$ac_cv_prog_RANLIB"; then |
3687 | ac_ct_RANLIB=$RANLIB | |
3688 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3689 | set dummy ranlib; ac_word=$2 | |
68f2de6d AK |
3690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3692 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
68f2de6d | 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3694 | else |
d0191583 JM |
3695 | if test -n "$ac_ct_RANLIB"; then |
3696 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3697 | else | |
3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3699 | for as_dir in $PATH | |
8106cdd5 | 3700 | do |
d0191583 JM |
3701 | IFS=$as_save_IFS |
3702 | test -z "$as_dir" && as_dir=. | |
3703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3705 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
68f2de6d | 3706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3707 | break 2 |
3708 | fi | |
3709 | done | |
3710 | done | |
3711 | IFS=$as_save_IFS | |
3712 | ||
3713 | fi | |
3714 | fi | |
3715 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3716 | if test -n "$ac_ct_RANLIB"; then | |
68f2de6d AK |
3717 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3718 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3719 | else |
68f2de6d AK |
3720 | { echo "$as_me:$LINENO: result: no" >&5 |
3721 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3722 | fi |
ad6254c5 | 3723 | |
d0191583 JM |
3724 | if test "x$ac_ct_RANLIB" = x; then |
3725 | RANLIB=":" | |
3726 | else | |
3727 | case $cross_compiling:$ac_tool_warned in | |
3728 | yes:) | |
68f2de6d | 3729 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3730 | whose name does not start with the host triplet. If you think this |
3731 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 3732 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3733 | whose name does not start with the host triplet. If you think this |
3734 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3735 | ac_tool_warned=yes ;; | |
3736 | esac | |
3737 | RANLIB=$ac_ct_RANLIB | |
3738 | fi | |
3739 | else | |
3740 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3741 | fi |
7a197a62 | 3742 | |
d0191583 JM |
3743 | # Extract the first word of "cflow", so it can be a program name with args. |
3744 | set dummy cflow; ac_word=$2 | |
68f2de6d AK |
3745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3747 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
68f2de6d | 3748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3749 | else |
3750 | case $CFLOW_CMD in | |
3751 | [\\/]* | ?:[\\/]*) | |
3752 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3753 | ;; | |
3754 | *) | |
3755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3756 | for as_dir in $PATH | |
3757 | do | |
3758 | IFS=$as_save_IFS | |
3759 | test -z "$as_dir" && as_dir=. | |
3760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3762 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3764 | break 2 |
3765 | fi | |
3766 | done | |
3767 | done | |
3768 | IFS=$as_save_IFS | |
ad6254c5 | 3769 | |
d0191583 | 3770 | ;; |
7a197a62 | 3771 | esac |
d0191583 JM |
3772 | fi |
3773 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3774 | if test -n "$CFLOW_CMD"; then | |
68f2de6d AK |
3775 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3776 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3777 | else |
68f2de6d AK |
3778 | { echo "$as_me:$LINENO: result: no" >&5 |
3779 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3780 | fi |
7a197a62 | 3781 | |
ad6254c5 | 3782 | |
d0191583 JM |
3783 | # Extract the first word of "cscope", so it can be a program name with args. |
3784 | set dummy cscope; ac_word=$2 | |
68f2de6d AK |
3785 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3787 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
68f2de6d | 3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3789 | else |
3790 | case $CSCOPE_CMD in | |
3791 | [\\/]* | ?:[\\/]*) | |
3792 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3793 | ;; | |
3794 | *) | |
3795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3796 | for as_dir in $PATH | |
3797 | do | |
3798 | IFS=$as_save_IFS | |
3799 | test -z "$as_dir" && as_dir=. | |
3800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3802 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3804 | break 2 |
3805 | fi | |
795ca3e5 | 3806 | done |
d0191583 JM |
3807 | done |
3808 | IFS=$as_save_IFS | |
795ca3e5 | 3809 | |
d0191583 JM |
3810 | ;; |
3811 | esac | |
ad6254c5 | 3812 | fi |
d0191583 JM |
3813 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3814 | if test -n "$CSCOPE_CMD"; then | |
68f2de6d AK |
3815 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3816 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3817 | else |
68f2de6d AK |
3818 | { echo "$as_me:$LINENO: result: no" >&5 |
3819 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3820 | fi |
ad6254c5 | 3821 | |
7a197a62 | 3822 | |
ad6254c5 | 3823 | |
d0191583 JM |
3824 | ################################################################################ |
3825 | ||
3826 | ||
3827 | ||
3828 | ||
3829 | ||
3830 | ac_header_dirent=no | |
3831 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
68f2de6d AK |
3832 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3833 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3834 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3835 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3837 | else |
ad6254c5 | 3838 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3839 | /* confdefs.h. */ |
3840 | _ACEOF | |
3841 | cat confdefs.h >>conftest.$ac_ext | |
3842 | cat >>conftest.$ac_ext <<_ACEOF | |
3843 | /* end confdefs.h. */ | |
d0191583 JM |
3844 | #include <sys/types.h> |
3845 | #include <$ac_hdr> | |
3846 | ||
3847 | int | |
3848 | main () | |
3849 | { | |
3850 | if ((DIR *) 0) | |
3851 | return 0; | |
3852 | ; | |
3853 | return 0; | |
3854 | } | |
ad6254c5 | 3855 | _ACEOF |
d0191583 JM |
3856 | rm -f conftest.$ac_objext |
3857 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3858 | case "(($ac_try" in |
3859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3860 | *) ac_try_echo=$ac_try;; | |
3861 | esac | |
68f2de6d | 3862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3863 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3864 | ac_status=$? |
3865 | grep -v '^ *+' conftest.er1 >conftest.err | |
3866 | rm -f conftest.er1 | |
3867 | cat conftest.err >&5 | |
68f2de6d | 3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3869 | (exit $ac_status); } && { |
3870 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3871 | test ! -s conftest.err |
d0191583 JM |
3872 | } && test -s conftest.$ac_objext; then |
3873 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3874 | else |
68f2de6d | 3875 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3876 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3877 | |
d0191583 | 3878 | eval "$as_ac_Header=no" |
795ca3e5 | 3879 | fi |
7a197a62 | 3880 | |
d0191583 | 3881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3882 | fi |
68f2de6d AK |
3883 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3884 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3885 | echo "${ECHO_T}$ac_res" >&6; } | |
3886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3887 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 3888 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3889 | _ACEOF |
795ca3e5 | 3890 | |
d0191583 JM |
3891 | ac_header_dirent=$ac_hdr; break |
3892 | fi | |
ad6254c5 | 3893 | |
d0191583 JM |
3894 | done |
3895 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3896 | if test $ac_header_dirent = dirent.h; then | |
68f2de6d AK |
3897 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3898 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3899 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3901 | else |
d0191583 JM |
3902 | ac_func_search_save_LIBS=$LIBS |
3903 | cat >conftest.$ac_ext <<_ACEOF | |
3904 | /* confdefs.h. */ | |
3905 | _ACEOF | |
3906 | cat confdefs.h >>conftest.$ac_ext | |
3907 | cat >>conftest.$ac_ext <<_ACEOF | |
3908 | /* end confdefs.h. */ | |
ad6254c5 | 3909 | |
d0191583 JM |
3910 | /* Override any GCC internal prototype to avoid an error. |
3911 | Use char because int might match the return type of a GCC | |
3912 | builtin and then its argument prototype would still apply. */ | |
3913 | #ifdef __cplusplus | |
3914 | extern "C" | |
3915 | #endif | |
3916 | char opendir (); | |
3917 | int | |
3918 | main () | |
3919 | { | |
3920 | return opendir (); | |
3921 | ; | |
3922 | return 0; | |
3923 | } | |
3924 | _ACEOF | |
3925 | for ac_lib in '' dir; do | |
3926 | if test -z "$ac_lib"; then | |
3927 | ac_res="none required" | |
3928 | else | |
3929 | ac_res=-l$ac_lib | |
3930 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3931 | fi | |
3932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3933 | if { (ac_try="$ac_link" | |
3934 | case "(($ac_try" in | |
3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3936 | *) ac_try_echo=$ac_try;; | |
3937 | esac | |
68f2de6d | 3938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3939 | (eval "$ac_link") 2>conftest.er1 |
3940 | ac_status=$? | |
3941 | grep -v '^ *+' conftest.er1 >conftest.err | |
3942 | rm -f conftest.er1 | |
3943 | cat conftest.err >&5 | |
68f2de6d | 3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3945 | (exit $ac_status); } && { |
3946 | test -z "$ac_c_werror_flag" || | |
3947 | test ! -s conftest.err | |
68f2de6d AK |
3948 | } && test -s conftest$ac_exeext && |
3949 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3950 | ac_cv_search_opendir=$ac_res |
3951 | else | |
68f2de6d | 3952 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3953 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3954 | |
ad6254c5 | 3955 | |
795ca3e5 | 3956 | fi |
ad6254c5 | 3957 | |
d0191583 JM |
3958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3959 | conftest$ac_exeext | |
3960 | if test "${ac_cv_search_opendir+set}" = set; then | |
3961 | break | |
7a197a62 | 3962 | fi |
d0191583 JM |
3963 | done |
3964 | if test "${ac_cv_search_opendir+set}" = set; then | |
3965 | : | |
7a197a62 | 3966 | else |
d0191583 | 3967 | ac_cv_search_opendir=no |
7a197a62 | 3968 | fi |
d0191583 JM |
3969 | rm conftest.$ac_ext |
3970 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3971 | fi |
68f2de6d AK |
3972 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3973 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3974 | ac_res=$ac_cv_search_opendir |
3975 | if test "$ac_res" != no; then | |
3976 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3977 | |
d0191583 | 3978 | fi |
7a197a62 | 3979 | |
7a197a62 | 3980 | else |
68f2de6d AK |
3981 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3982 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3983 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3985 | else |
d0191583 JM |
3986 | ac_func_search_save_LIBS=$LIBS |
3987 | cat >conftest.$ac_ext <<_ACEOF | |
3988 | /* confdefs.h. */ | |
3989 | _ACEOF | |
3990 | cat confdefs.h >>conftest.$ac_ext | |
3991 | cat >>conftest.$ac_ext <<_ACEOF | |
3992 | /* end confdefs.h. */ | |
7a197a62 | 3993 | |
d0191583 JM |
3994 | /* Override any GCC internal prototype to avoid an error. |
3995 | Use char because int might match the return type of a GCC | |
3996 | builtin and then its argument prototype would still apply. */ | |
3997 | #ifdef __cplusplus | |
3998 | extern "C" | |
3999 | #endif | |
4000 | char opendir (); | |
4001 | int | |
4002 | main () | |
4003 | { | |
4004 | return opendir (); | |
4005 | ; | |
4006 | return 0; | |
4007 | } | |
4008 | _ACEOF | |
4009 | for ac_lib in '' x; do | |
4010 | if test -z "$ac_lib"; then | |
4011 | ac_res="none required" | |
4012 | else | |
4013 | ac_res=-l$ac_lib | |
4014 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4015 | fi | |
4016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4017 | if { (ac_try="$ac_link" | |
4018 | case "(($ac_try" in | |
4019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4020 | *) ac_try_echo=$ac_try;; | |
4021 | esac | |
68f2de6d | 4022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4023 | (eval "$ac_link") 2>conftest.er1 |
4024 | ac_status=$? | |
4025 | grep -v '^ *+' conftest.er1 >conftest.err | |
4026 | rm -f conftest.er1 | |
4027 | cat conftest.err >&5 | |
68f2de6d | 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4029 | (exit $ac_status); } && { |
4030 | test -z "$ac_c_werror_flag" || | |
4031 | test ! -s conftest.err | |
68f2de6d AK |
4032 | } && test -s conftest$ac_exeext && |
4033 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
4034 | ac_cv_search_opendir=$ac_res |
4035 | else | |
68f2de6d | 4036 | echo "$as_me: failed program was:" >&5 |
d0191583 | 4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4038 | |
4039 | ||
4040 | fi | |
4041 | ||
d0191583 JM |
4042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4043 | conftest$ac_exeext | |
4044 | if test "${ac_cv_search_opendir+set}" = set; then | |
4045 | break | |
7a197a62 | 4046 | fi |
d0191583 JM |
4047 | done |
4048 | if test "${ac_cv_search_opendir+set}" = set; then | |
4049 | : | |
7a197a62 | 4050 | else |
d0191583 | 4051 | ac_cv_search_opendir=no |
7a197a62 | 4052 | fi |
d0191583 JM |
4053 | rm conftest.$ac_ext |
4054 | LIBS=$ac_func_search_save_LIBS | |
4055 | fi | |
68f2de6d AK |
4056 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4057 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4058 | ac_res=$ac_cv_search_opendir |
4059 | if test "$ac_res" != no; then | |
4060 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4061 | |
7a197a62 | 4062 | fi |
7a197a62 | 4063 | |
d0191583 | 4064 | fi |
7a197a62 | 4065 | |
68f2de6d AK |
4066 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4067 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 4068 | if test "${ac_cv_header_stdc+set}" = set; then |
68f2de6d | 4069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
4070 | else |
4071 | cat >conftest.$ac_ext <<_ACEOF | |
4072 | /* confdefs.h. */ | |
4073 | _ACEOF | |
4074 | cat confdefs.h >>conftest.$ac_ext | |
4075 | cat >>conftest.$ac_ext <<_ACEOF | |
4076 | /* end confdefs.h. */ | |
4077 | #include <stdlib.h> | |
4078 | #include <stdarg.h> | |
4079 | #include <string.h> | |
4080 | #include <float.h> | |
4081 | ||
4082 | int | |
4083 | main () | |
4084 | { | |
4085 | ||
4086 | ; | |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
4090 | rm -f conftest.$ac_objext | |
4091 | if { (ac_try="$ac_compile" | |
4092 | case "(($ac_try" in | |
4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4094 | *) ac_try_echo=$ac_try;; | |
4095 | esac | |
68f2de6d | 4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4097 | (eval "$ac_compile") 2>conftest.er1 |
4098 | ac_status=$? | |
4099 | grep -v '^ *+' conftest.er1 >conftest.err | |
4100 | rm -f conftest.er1 | |
4101 | cat conftest.err >&5 | |
68f2de6d | 4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4103 | (exit $ac_status); } && { |
4104 | test -z "$ac_c_werror_flag" || | |
4105 | test ! -s conftest.err | |
4106 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4107 | ac_cv_header_stdc=yes |
4108 | else | |
68f2de6d | 4109 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4110 | sed 's/^/| /' conftest.$ac_ext >&5 |
4111 | ||
4112 | ac_cv_header_stdc=no | |
4113 | fi | |
4114 | ||
4115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4116 | ||
4117 | if test $ac_cv_header_stdc = yes; then | |
4118 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4119 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4120 | /* confdefs.h. */ |
4121 | _ACEOF | |
4122 | cat confdefs.h >>conftest.$ac_ext | |
4123 | cat >>conftest.$ac_ext <<_ACEOF | |
4124 | /* end confdefs.h. */ | |
4125 | #include <string.h> | |
8106cdd5 | 4126 | |
ad6254c5 AK |
4127 | _ACEOF |
4128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4129 | $EGREP "memchr" >/dev/null 2>&1; then | |
4130 | : | |
4131 | else | |
4132 | ac_cv_header_stdc=no | |
80992638 | 4133 | fi |
ad6254c5 | 4134 | rm -f conftest* |
795ca3e5 AK |
4135 | |
4136 | fi | |
4137 | ||
ad6254c5 AK |
4138 | if test $ac_cv_header_stdc = yes; then |
4139 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4140 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4141 | /* confdefs.h. */ |
4142 | _ACEOF | |
4143 | cat confdefs.h >>conftest.$ac_ext | |
4144 | cat >>conftest.$ac_ext <<_ACEOF | |
4145 | /* end confdefs.h. */ | |
80992638 | 4146 | #include <stdlib.h> |
ad6254c5 AK |
4147 | |
4148 | _ACEOF | |
80992638 | 4149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4150 | $EGREP "free" >/dev/null 2>&1; then |
4151 | : | |
795ca3e5 | 4152 | else |
ad6254c5 | 4153 | ac_cv_header_stdc=no |
795ca3e5 | 4154 | fi |
80992638 | 4155 | rm -f conftest* |
8106cdd5 | 4156 | |
795ca3e5 AK |
4157 | fi |
4158 | ||
ad6254c5 AK |
4159 | if test $ac_cv_header_stdc = yes; then |
4160 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4161 | if test "$cross_compiling" = yes; then | |
4162 | : | |
795ca3e5 | 4163 | else |
ad6254c5 | 4164 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4165 | /* confdefs.h. */ |
4166 | _ACEOF | |
4167 | cat confdefs.h >>conftest.$ac_ext | |
4168 | cat >>conftest.$ac_ext <<_ACEOF | |
4169 | /* end confdefs.h. */ | |
4170 | #include <ctype.h> | |
7a197a62 | 4171 | #include <stdlib.h> |
ad6254c5 AK |
4172 | #if ((' ' & 0x0FF) == 0x020) |
4173 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4174 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4175 | #else | |
4176 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4177 | (('a' <= (c) && (c) <= 'i') \ |
4178 | || ('j' <= (c) && (c) <= 'r') \ | |
4179 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4180 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4181 | #endif |
ad6254c5 AK |
4182 | |
4183 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4184 | int | |
4185 | main () | |
4186 | { | |
4187 | int i; | |
4188 | for (i = 0; i < 256; i++) | |
4189 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4190 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4191 | return 2; |
4192 | return 0; | |
ad6254c5 AK |
4193 | } |
4194 | _ACEOF | |
4195 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4196 | if { (ac_try="$ac_link" |
4197 | case "(($ac_try" in | |
4198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4199 | *) ac_try_echo=$ac_try;; | |
4200 | esac | |
68f2de6d | 4201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4202 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4203 | ac_status=$? |
68f2de6d | 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4205 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4206 | { (case "(($ac_try" in |
4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4208 | *) ac_try_echo=$ac_try;; | |
4209 | esac | |
68f2de6d | 4210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4211 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4212 | ac_status=$? |
68f2de6d | 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4214 | (exit $ac_status); }; }; then |
4215 | : | |
795ca3e5 | 4216 | else |
68f2de6d AK |
4217 | echo "$as_me: program exited with status $ac_status" >&5 |
4218 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4219 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4220 | |
ad6254c5 AK |
4221 | ( exit $ac_status ) |
4222 | ac_cv_header_stdc=no | |
80992638 | 4223 | fi |
7a197a62 | 4224 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4225 | fi |
7a197a62 AK |
4226 | |
4227 | ||
ad6254c5 AK |
4228 | fi |
4229 | fi | |
68f2de6d AK |
4230 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4231 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4232 | if test $ac_cv_header_stdc = yes; then |
4233 | ||
4234 | cat >>confdefs.h <<\_ACEOF | |
4235 | #define STDC_HEADERS 1 | |
4236 | _ACEOF | |
795ca3e5 AK |
4237 | |
4238 | fi | |
4239 | ||
68f2de6d AK |
4240 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4241 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4242 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
68f2de6d | 4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4244 | else |
ad6254c5 | 4245 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4246 | /* confdefs.h. */ |
4247 | _ACEOF | |
4248 | cat confdefs.h >>conftest.$ac_ext | |
4249 | cat >>conftest.$ac_ext <<_ACEOF | |
4250 | /* end confdefs.h. */ | |
80992638 | 4251 | #include <sys/types.h> |
ad6254c5 AK |
4252 | #include <sys/wait.h> |
4253 | #ifndef WEXITSTATUS | |
7a197a62 | 4254 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4255 | #endif |
4256 | #ifndef WIFEXITED | |
4257 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4258 | #endif | |
4259 | ||
4260 | int | |
4261 | main () | |
4262 | { | |
4263 | int s; | |
4264 | wait (&s); | |
4265 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4266 | ; | |
4267 | return 0; | |
4268 | } | |
4269 | _ACEOF | |
4270 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4271 | if { (ac_try="$ac_compile" |
4272 | case "(($ac_try" in | |
4273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4274 | *) ac_try_echo=$ac_try;; | |
4275 | esac | |
68f2de6d | 4276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4277 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4278 | ac_status=$? |
8a2fc586 AK |
4279 | grep -v '^ *+' conftest.er1 >conftest.err |
4280 | rm -f conftest.er1 | |
4281 | cat conftest.err >&5 | |
68f2de6d | 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4283 | (exit $ac_status); } && { |
4284 | test -z "$ac_c_werror_flag" || | |
4285 | test ! -s conftest.err | |
4286 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4287 | ac_cv_header_sys_wait_h=yes |
4288 | else | |
68f2de6d | 4289 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
4291 | ||
7a197a62 | 4292 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4293 | fi |
7a197a62 AK |
4294 | |
4295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4296 | fi |
68f2de6d AK |
4297 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4298 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4299 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4300 | |
ad6254c5 AK |
4301 | cat >>confdefs.h <<\_ACEOF |
4302 | #define HAVE_SYS_WAIT_H 1 | |
4303 | _ACEOF | |
795ca3e5 AK |
4304 | |
4305 | fi | |
4306 | ||
68f2de6d AK |
4307 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4308 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4309 | if test "${ac_cv_header_time+set}" = set; then |
68f2de6d | 4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4311 | else |
ad6254c5 | 4312 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4313 | /* confdefs.h. */ |
4314 | _ACEOF | |
4315 | cat confdefs.h >>conftest.$ac_ext | |
4316 | cat >>conftest.$ac_ext <<_ACEOF | |
4317 | /* end confdefs.h. */ | |
795ca3e5 AK |
4318 | #include <sys/types.h> |
4319 | #include <sys/time.h> | |
4320 | #include <time.h> | |
ad6254c5 AK |
4321 | |
4322 | int | |
4323 | main () | |
4324 | { | |
4325 | if ((struct tm *) 0) | |
4326 | return 0; | |
4327 | ; | |
4328 | return 0; | |
4329 | } | |
4330 | _ACEOF | |
4331 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4332 | if { (ac_try="$ac_compile" |
4333 | case "(($ac_try" in | |
4334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4335 | *) ac_try_echo=$ac_try;; | |
4336 | esac | |
68f2de6d | 4337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4338 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4339 | ac_status=$? |
8a2fc586 AK |
4340 | grep -v '^ *+' conftest.er1 >conftest.err |
4341 | rm -f conftest.er1 | |
4342 | cat conftest.err >&5 | |
68f2de6d | 4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4344 | (exit $ac_status); } && { |
4345 | test -z "$ac_c_werror_flag" || | |
4346 | test ! -s conftest.err | |
4347 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4348 | ac_cv_header_time=yes |
4349 | else | |
68f2de6d | 4350 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4351 | sed 's/^/| /' conftest.$ac_ext >&5 |
4352 | ||
7a197a62 | 4353 | ac_cv_header_time=no |
795ca3e5 | 4354 | fi |
7a197a62 AK |
4355 | |
4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4357 | fi |
68f2de6d AK |
4358 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4359 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4360 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4361 | |
4362 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4363 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4364 | _ACEOF |
b896caa1 | 4365 | |
8106cdd5 | 4366 | fi |
b896caa1 | 4367 | |
b896caa1 | 4368 | |
d0191583 JM |
4369 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | ||
4378 | ||
4379 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4380 | inttypes.h stdint.h unistd.h | |
4381 | do | |
68f2de6d AK |
4382 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4383 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4387 | else |
4388 | cat >conftest.$ac_ext <<_ACEOF | |
4389 | /* confdefs.h. */ | |
4390 | _ACEOF | |
4391 | cat confdefs.h >>conftest.$ac_ext | |
4392 | cat >>conftest.$ac_ext <<_ACEOF | |
4393 | /* end confdefs.h. */ | |
4394 | $ac_includes_default | |
4395 | ||
4396 | #include <$ac_header> | |
4397 | _ACEOF | |
4398 | rm -f conftest.$ac_objext | |
4399 | if { (ac_try="$ac_compile" | |
4400 | case "(($ac_try" in | |
4401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4402 | *) ac_try_echo=$ac_try;; | |
4403 | esac | |
68f2de6d | 4404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4405 | (eval "$ac_compile") 2>conftest.er1 |
4406 | ac_status=$? | |
4407 | grep -v '^ *+' conftest.er1 >conftest.err | |
4408 | rm -f conftest.er1 | |
4409 | cat conftest.err >&5 | |
68f2de6d | 4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4411 | (exit $ac_status); } && { |
4412 | test -z "$ac_c_werror_flag" || | |
4413 | test ! -s conftest.err | |
4414 | } && test -s conftest.$ac_objext; then | |
4415 | eval "$as_ac_Header=yes" | |
4416 | else | |
68f2de6d | 4417 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4418 | sed 's/^/| /' conftest.$ac_ext >&5 |
4419 | ||
4420 | eval "$as_ac_Header=no" | |
4421 | fi | |
4422 | ||
4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4424 | fi | |
68f2de6d AK |
4425 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4426 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4427 | echo "${ECHO_T}$ac_res" >&6; } | |
4428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4429 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4431 | _ACEOF |
4432 | ||
4433 | fi | |
4434 | ||
4435 | done | |
4436 | ||
b896caa1 | 4437 | |
b896caa1 AK |
4438 | |
4439 | ||
795ca3e5 | 4440 | |
8106cdd5 | 4441 | |
80992638 | 4442 | |
795ca3e5 | 4443 | |
a38df97f | 4444 | |
80992638 | 4445 | |
d0191583 JM |
4446 | |
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4452 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4453 | do |
68f2de6d | 4454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4456 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4460 | fi |
68f2de6d AK |
4461 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4462 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4463 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4464 | else |
d0191583 | 4465 | # Is the header compilable? |
68f2de6d AK |
4466 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 4468 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4469 | /* confdefs.h. */ |
4470 | _ACEOF | |
4471 | cat confdefs.h >>conftest.$ac_ext | |
4472 | cat >>conftest.$ac_ext <<_ACEOF | |
4473 | /* end confdefs.h. */ | |
4474 | $ac_includes_default | |
ad6254c5 AK |
4475 | #include <$ac_header> |
4476 | _ACEOF | |
4477 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4478 | if { (ac_try="$ac_compile" |
4479 | case "(($ac_try" in | |
4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4481 | *) ac_try_echo=$ac_try;; | |
4482 | esac | |
68f2de6d | 4483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4484 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4485 | ac_status=$? |
8a2fc586 AK |
4486 | grep -v '^ *+' conftest.er1 >conftest.err |
4487 | rm -f conftest.er1 | |
4488 | cat conftest.err >&5 | |
68f2de6d | 4489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4490 | (exit $ac_status); } && { |
4491 | test -z "$ac_c_werror_flag" || | |
4492 | test ! -s conftest.err | |
4493 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4494 | ac_header_compiler=yes |
ad6254c5 | 4495 | else |
68f2de6d | 4496 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4497 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4498 | |
d0191583 | 4499 | ac_header_compiler=no |
ad6254c5 | 4500 | fi |
7a197a62 AK |
4501 | |
4502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4503 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4504 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4505 | |
4506 | # Is the header present? | |
68f2de6d AK |
4507 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4508 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4509 | cat >conftest.$ac_ext <<_ACEOF |
4510 | /* confdefs.h. */ | |
4511 | _ACEOF | |
4512 | cat confdefs.h >>conftest.$ac_ext | |
4513 | cat >>conftest.$ac_ext <<_ACEOF | |
4514 | /* end confdefs.h. */ | |
4515 | #include <$ac_header> | |
4516 | _ACEOF | |
4517 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4518 | case "(($ac_try" in | |
4519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4520 | *) ac_try_echo=$ac_try;; | |
4521 | esac | |
68f2de6d | 4522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4524 | ac_status=$? | |
4525 | grep -v '^ *+' conftest.er1 >conftest.err | |
4526 | rm -f conftest.er1 | |
4527 | cat conftest.err >&5 | |
68f2de6d | 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4529 | (exit $ac_status); } >/dev/null && { |
4530 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4531 | test ! -s conftest.err | |
4532 | }; then | |
4533 | ac_header_preproc=yes | |
4534 | else | |
68f2de6d | 4535 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4536 | sed 's/^/| /' conftest.$ac_ext >&5 |
4537 | ||
4538 | ac_header_preproc=no | |
4539 | fi | |
4540 | ||
4541 | rm -f conftest.err conftest.$ac_ext | |
68f2de6d AK |
4542 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4543 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4544 | |
4545 | # So? What about this header? | |
4546 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4547 | yes:no: ) | |
68f2de6d AK |
4548 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4549 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4550 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4551 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4552 | ac_header_preproc=yes |
4553 | ;; | |
4554 | no:yes:* ) | |
68f2de6d AK |
4555 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4557 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4559 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4560 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4561 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4562 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4564 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4566 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4567 | |
4568 | ;; | |
4569 | esac | |
68f2de6d AK |
4570 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4572 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4574 | else |
4575 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4576 | fi |
68f2de6d AK |
4577 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4579 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4580 | |
4581 | fi | |
68f2de6d | 4582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4583 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4585 | _ACEOF |
a38df97f | 4586 | |
d0191583 | 4587 | else |
68f2de6d AK |
4588 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4589 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4590 | { (exit 1); exit 1; }; } |
80992638 AK |
4591 | fi |
4592 | ||
ad6254c5 AK |
4593 | done |
4594 | ||
7d1552c9 | 4595 | |
d0191583 JM |
4596 | case "$host_os" in |
4597 | linux*) | |
7d1552c9 | 4598 | |
80992638 | 4599 | |
5a52dca9 | 4600 | |
d0191583 | 4601 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4602 | do |
68f2de6d | 4603 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4605 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4606 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4607 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4609 | fi |
68f2de6d AK |
4610 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4611 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4612 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4613 | else |
4614 | # Is the header compilable? | |
68f2de6d AK |
4615 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4616 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4617 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4618 | /* confdefs.h. */ |
4619 | _ACEOF | |
4620 | cat confdefs.h >>conftest.$ac_ext | |
4621 | cat >>conftest.$ac_ext <<_ACEOF | |
4622 | /* end confdefs.h. */ | |
4623 | $ac_includes_default | |
4624 | #include <$ac_header> | |
4625 | _ACEOF | |
4626 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4627 | if { (ac_try="$ac_compile" |
4628 | case "(($ac_try" in | |
4629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4630 | *) ac_try_echo=$ac_try;; | |
4631 | esac | |
68f2de6d | 4632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4633 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4634 | ac_status=$? |
8a2fc586 AK |
4635 | grep -v '^ *+' conftest.er1 >conftest.err |
4636 | rm -f conftest.er1 | |
4637 | cat conftest.err >&5 | |
68f2de6d | 4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4639 | (exit $ac_status); } && { |
4640 | test -z "$ac_c_werror_flag" || | |
4641 | test ! -s conftest.err | |
4642 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4643 | ac_header_compiler=yes |
4644 | else | |
68f2de6d | 4645 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4646 | sed 's/^/| /' conftest.$ac_ext >&5 |
4647 | ||
4648 | ac_header_compiler=no | |
4649 | fi | |
4650 | ||
4651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4653 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4654 | |
4655 | # Is the header present? | |
68f2de6d AK |
4656 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4657 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4658 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4659 | /* confdefs.h. */ |
4660 | _ACEOF | |
4661 | cat confdefs.h >>conftest.$ac_ext | |
4662 | cat >>conftest.$ac_ext <<_ACEOF | |
4663 | /* end confdefs.h. */ | |
4664 | #include <$ac_header> | |
4665 | _ACEOF | |
7a197a62 AK |
4666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4667 | case "(($ac_try" in | |
4668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4669 | *) ac_try_echo=$ac_try;; | |
4670 | esac | |
68f2de6d | 4671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4673 | ac_status=$? |
4674 | grep -v '^ *+' conftest.er1 >conftest.err | |
4675 | rm -f conftest.er1 | |
4676 | cat conftest.err >&5 | |
68f2de6d | 4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4678 | (exit $ac_status); } >/dev/null && { |
4679 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4680 | test ! -s conftest.err | |
4681 | }; then | |
ad6254c5 AK |
4682 | ac_header_preproc=yes |
4683 | else | |
68f2de6d | 4684 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 |
4686 | ||
4687 | ac_header_preproc=no | |
4688 | fi | |
7a197a62 | 4689 | |
ad6254c5 | 4690 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4691 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4692 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4693 | |
4694 | # So? What about this header? | |
8a2fc586 AK |
4695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4696 | yes:no: ) | |
68f2de6d AK |
4697 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4698 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4699 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4700 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4701 | ac_header_preproc=yes |
ad6254c5 | 4702 | ;; |
8a2fc586 | 4703 | no:yes:* ) |
68f2de6d AK |
4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4705 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4707 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4711 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4713 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4714 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4715 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4716 | |
ad6254c5 AK |
4717 | ;; |
4718 | esac | |
68f2de6d AK |
4719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4723 | else |
8a2fc586 | 4724 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4725 | fi |
68f2de6d AK |
4726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4728 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4729 | |
4730 | fi | |
68f2de6d | 4731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4732 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4734 | _ACEOF |
b896caa1 | 4735 | |
d8ac0fbc | 4736 | else |
68f2de6d AK |
4737 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4738 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4739 | { (exit 1); exit 1; }; } |
80992638 AK |
4740 | fi |
4741 | ||
ad6254c5 | 4742 | done |
d0191583 JM |
4743 | ;; |
4744 | darwin*) | |
d8ac0fbc | 4745 | |
d8ac0fbc | 4746 | |
d0191583 | 4747 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4748 | do |
68f2de6d | 4749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4751 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4753 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4755 | fi |
68f2de6d AK |
4756 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4757 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4758 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4759 | else |
4760 | # Is the header compilable? | |
68f2de6d AK |
4761 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4762 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4763 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4764 | /* confdefs.h. */ |
4765 | _ACEOF | |
4766 | cat confdefs.h >>conftest.$ac_ext | |
4767 | cat >>conftest.$ac_ext <<_ACEOF | |
4768 | /* end confdefs.h. */ | |
4769 | $ac_includes_default | |
4770 | #include <$ac_header> | |
4771 | _ACEOF | |
4772 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4773 | if { (ac_try="$ac_compile" |
4774 | case "(($ac_try" in | |
4775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4776 | *) ac_try_echo=$ac_try;; | |
4777 | esac | |
68f2de6d | 4778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4779 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4780 | ac_status=$? |
8a2fc586 AK |
4781 | grep -v '^ *+' conftest.er1 >conftest.err |
4782 | rm -f conftest.er1 | |
4783 | cat conftest.err >&5 | |
68f2de6d | 4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4785 | (exit $ac_status); } && { |
4786 | test -z "$ac_c_werror_flag" || | |
4787 | test ! -s conftest.err | |
4788 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4789 | ac_header_compiler=yes |
4790 | else | |
68f2de6d | 4791 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4792 | sed 's/^/| /' conftest.$ac_ext >&5 |
4793 | ||
7a197a62 | 4794 | ac_header_compiler=no |
ad6254c5 | 4795 | fi |
7a197a62 AK |
4796 | |
4797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4798 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4799 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4800 | |
4801 | # Is the header present? | |
68f2de6d AK |
4802 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4804 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4805 | /* confdefs.h. */ |
4806 | _ACEOF | |
4807 | cat confdefs.h >>conftest.$ac_ext | |
4808 | cat >>conftest.$ac_ext <<_ACEOF | |
4809 | /* end confdefs.h. */ | |
4810 | #include <$ac_header> | |
4811 | _ACEOF | |
7a197a62 AK |
4812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4813 | case "(($ac_try" in | |
4814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4815 | *) ac_try_echo=$ac_try;; | |
4816 | esac | |
68f2de6d | 4817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4819 | ac_status=$? |
4820 | grep -v '^ *+' conftest.er1 >conftest.err | |
4821 | rm -f conftest.er1 | |
4822 | cat conftest.err >&5 | |
68f2de6d | 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4824 | (exit $ac_status); } >/dev/null && { |
4825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4826 | test ! -s conftest.err | |
4827 | }; then | |
ad6254c5 AK |
4828 | ac_header_preproc=yes |
4829 | else | |
68f2de6d | 4830 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4831 | sed 's/^/| /' conftest.$ac_ext >&5 |
4832 | ||
4833 | ac_header_preproc=no | |
4834 | fi | |
7a197a62 | 4835 | |
ad6254c5 | 4836 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4837 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4838 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4839 | |
4840 | # So? What about this header? | |
8a2fc586 AK |
4841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4842 | yes:no: ) | |
68f2de6d AK |
4843 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4847 | ac_header_preproc=yes |
ad6254c5 | 4848 | ;; |
8a2fc586 | 4849 | no:yes:* ) |
68f2de6d AK |
4850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4854 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4857 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4860 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4862 | |
ad6254c5 AK |
4863 | ;; |
4864 | esac | |
68f2de6d AK |
4865 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4869 | else |
8a2fc586 | 4870 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4871 | fi |
68f2de6d AK |
4872 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4873 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4874 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4875 | |
4876 | fi | |
68f2de6d | 4877 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4878 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4879 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4880 | _ACEOF |
4922197a | 4881 | |
4922197a | 4882 | else |
68f2de6d AK |
4883 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4884 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4885 | { (exit 1); exit 1; }; } |
80992638 AK |
4886 | fi |
4887 | ||
ad6254c5 | 4888 | done |
d0191583 JM |
4889 | ;; |
4890 | esac | |
4922197a | 4891 | |
4922197a | 4892 | |
4922197a | 4893 | |
ad6254c5 AK |
4894 | |
4895 | ||
d0191583 JM |
4896 | |
4897 | ||
4898 | ||
4899 | ||
4900 | ||
4901 | ||
4902 | ||
4903 | ||
4904 | ||
4905 | ||
4906 | ||
4907 | ||
4908 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4909 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4910 | sys/types.h unistd.h | |
ad6254c5 | 4911 | do |
68f2de6d | 4912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4914 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4916 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4918 | fi |
68f2de6d AK |
4919 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4920 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4921 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4922 | else |
ad6254c5 | 4923 | # Is the header compilable? |
68f2de6d AK |
4924 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4925 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4926 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4927 | /* confdefs.h. */ |
4928 | _ACEOF | |
4929 | cat confdefs.h >>conftest.$ac_ext | |
4930 | cat >>conftest.$ac_ext <<_ACEOF | |
4931 | /* end confdefs.h. */ | |
4932 | $ac_includes_default | |
4933 | #include <$ac_header> | |
4934 | _ACEOF | |
4935 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4936 | if { (ac_try="$ac_compile" |
4937 | case "(($ac_try" in | |
4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4939 | *) ac_try_echo=$ac_try;; | |
4940 | esac | |
68f2de6d | 4941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4942 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4943 | ac_status=$? |
8a2fc586 AK |
4944 | grep -v '^ *+' conftest.er1 >conftest.err |
4945 | rm -f conftest.er1 | |
4946 | cat conftest.err >&5 | |
68f2de6d | 4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4948 | (exit $ac_status); } && { |
4949 | test -z "$ac_c_werror_flag" || | |
4950 | test ! -s conftest.err | |
4951 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4952 | ac_header_compiler=yes |
4953 | else | |
68f2de6d | 4954 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
4956 | ||
7a197a62 | 4957 | ac_header_compiler=no |
ad6254c5 | 4958 | fi |
7a197a62 AK |
4959 | |
4960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4961 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4962 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4963 | |
4964 | # Is the header present? | |
68f2de6d AK |
4965 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4966 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4967 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4968 | /* confdefs.h. */ |
4969 | _ACEOF | |
4970 | cat confdefs.h >>conftest.$ac_ext | |
4971 | cat >>conftest.$ac_ext <<_ACEOF | |
4972 | /* end confdefs.h. */ | |
4973 | #include <$ac_header> | |
4974 | _ACEOF | |
7a197a62 AK |
4975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4976 | case "(($ac_try" in | |
4977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4978 | *) ac_try_echo=$ac_try;; | |
4979 | esac | |
68f2de6d | 4980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4982 | ac_status=$? |
4983 | grep -v '^ *+' conftest.er1 >conftest.err | |
4984 | rm -f conftest.er1 | |
4985 | cat conftest.err >&5 | |
68f2de6d | 4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4987 | (exit $ac_status); } >/dev/null && { |
4988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4989 | test ! -s conftest.err | |
4990 | }; then | |
ad6254c5 AK |
4991 | ac_header_preproc=yes |
4992 | else | |
68f2de6d | 4993 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
4995 | ||
4996 | ac_header_preproc=no | |
4997 | fi | |
7a197a62 | 4998 | |
ad6254c5 | 4999 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5001 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5002 | |
5003 | # So? What about this header? | |
8a2fc586 AK |
5004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5005 | yes:no: ) | |
68f2de6d AK |
5006 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5010 | ac_header_preproc=yes |
ad6254c5 | 5011 | ;; |
8a2fc586 | 5012 | no:yes:* ) |
68f2de6d AK |
5013 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5015 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5016 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5017 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5019 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5020 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5023 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5024 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5025 | |
ad6254c5 AK |
5026 | ;; |
5027 | esac | |
68f2de6d AK |
5028 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5032 | else |
8a2fc586 | 5033 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5034 | fi |
68f2de6d AK |
5035 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5037 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 5038 | |
ad6254c5 | 5039 | fi |
68f2de6d | 5040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5041 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5043 | _ACEOF |
795ca3e5 | 5044 | |
795ca3e5 | 5045 | else |
68f2de6d AK |
5046 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5047 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5048 | { (exit 1); exit 1; }; } |
80992638 AK |
5049 | fi |
5050 | ||
ad6254c5 | 5051 | done |
ad6254c5 | 5052 | |
795ca3e5 | 5053 | |
d0191583 JM |
5054 | |
5055 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5056 | do |
68f2de6d | 5057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
5059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5063 | fi |
68f2de6d AK |
5064 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5065 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5066 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5067 | else |
5068 | # Is the header compilable? | |
68f2de6d AK |
5069 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5070 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 5071 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5072 | /* confdefs.h. */ |
5073 | _ACEOF | |
5074 | cat confdefs.h >>conftest.$ac_ext | |
5075 | cat >>conftest.$ac_ext <<_ACEOF | |
5076 | /* end confdefs.h. */ | |
5077 | $ac_includes_default | |
5078 | #include <$ac_header> | |
5079 | _ACEOF | |
5080 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5081 | if { (ac_try="$ac_compile" |
5082 | case "(($ac_try" in | |
5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5084 | *) ac_try_echo=$ac_try;; | |
5085 | esac | |
68f2de6d | 5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5087 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5088 | ac_status=$? |
8a2fc586 AK |
5089 | grep -v '^ *+' conftest.er1 >conftest.err |
5090 | rm -f conftest.er1 | |
5091 | cat conftest.err >&5 | |
68f2de6d | 5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5093 | (exit $ac_status); } && { |
5094 | test -z "$ac_c_werror_flag" || | |
5095 | test ! -s conftest.err | |
5096 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5097 | ac_header_compiler=yes |
5098 | else | |
68f2de6d | 5099 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5100 | sed 's/^/| /' conftest.$ac_ext >&5 |
5101 | ||
7a197a62 | 5102 | ac_header_compiler=no |
ad6254c5 | 5103 | fi |
7a197a62 AK |
5104 | |
5105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
5106 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5107 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5108 | |
5109 | # Is the header present? | |
68f2de6d AK |
5110 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
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 | #include <$ac_header> | |
5119 | _ACEOF | |
7a197a62 AK |
5120 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5121 | case "(($ac_try" in | |
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5123 | *) ac_try_echo=$ac_try;; | |
5124 | esac | |
68f2de6d | 5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5126 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5127 | ac_status=$? |
5128 | grep -v '^ *+' conftest.er1 >conftest.err | |
5129 | rm -f conftest.er1 | |
5130 | cat conftest.err >&5 | |
68f2de6d | 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5132 | (exit $ac_status); } >/dev/null && { |
5133 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5134 | test ! -s conftest.err | |
5135 | }; then | |
ad6254c5 AK |
5136 | ac_header_preproc=yes |
5137 | else | |
68f2de6d | 5138 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
5140 | ||
5141 | ac_header_preproc=no | |
5142 | fi | |
7a197a62 | 5143 | |
ad6254c5 | 5144 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5145 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5146 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5147 | |
5148 | # So? What about this header? | |
8a2fc586 AK |
5149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5150 | yes:no: ) | |
68f2de6d AK |
5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5155 | ac_header_preproc=yes |
ad6254c5 | 5156 | ;; |
8a2fc586 | 5157 | no:yes:* ) |
68f2de6d AK |
5158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5170 | |
ad6254c5 AK |
5171 | ;; |
5172 | esac | |
68f2de6d AK |
5173 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5175 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5177 | else |
8a2fc586 | 5178 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5179 | fi |
68f2de6d AK |
5180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5182 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5183 | |
ad6254c5 | 5184 | fi |
68f2de6d | 5185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5186 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5188 | _ACEOF |
5189 | ||
80992638 AK |
5190 | fi |
5191 | ||
ad6254c5 | 5192 | done |
d0191583 | 5193 | |
d3c8211f | 5194 | |
80992638 | 5195 | ################################################################################ |
68f2de6d AK |
5196 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5197 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5198 | if test "${ac_cv_c_const+set}" = set; then |
68f2de6d | 5199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5200 | else |
ad6254c5 | 5201 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5202 | /* confdefs.h. */ |
5203 | _ACEOF | |
5204 | cat confdefs.h >>conftest.$ac_ext | |
5205 | cat >>conftest.$ac_ext <<_ACEOF | |
5206 | /* end confdefs.h. */ | |
5207 | ||
5208 | int | |
5209 | main () | |
5210 | { | |
5211 | /* FIXME: Include the comments suggested by Paul. */ | |
5212 | #ifndef __cplusplus | |
5213 | /* Ultrix mips cc rejects this. */ | |
5214 | typedef int charset[2]; | |
25fbec5b | 5215 | const charset cs; |
ad6254c5 | 5216 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5217 | char const *const *pcpcc; |
5218 | char **ppc; | |
ad6254c5 AK |
5219 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5220 | struct point {int x, y;}; | |
5221 | static struct point const zero = {0,0}; | |
5222 | /* AIX XL C 1.02.0.0 rejects this. | |
5223 | It does not let you subtract one const X* pointer from another in | |
5224 | an arm of an if-expression whose if-part is not a constant | |
5225 | expression */ | |
5226 | const char *g = "string"; | |
25fbec5b | 5227 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5228 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5229 | ++pcpcc; |
5230 | ppc = (char**) pcpcc; | |
5231 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5232 | { /* SCO 3.2v4 cc rejects this. */ |
5233 | char *t; | |
5234 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5235 | ||
5236 | *t++ = 0; | |
7a197a62 | 5237 | if (s) return 0; |
ad6254c5 AK |
5238 | } |
5239 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5240 | int x[] = {25, 17}; | |
5241 | const int *foo = &x[0]; | |
5242 | ++foo; | |
5243 | } | |
5244 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5245 | typedef const int *iptr; | |
5246 | iptr p = 0; | |
5247 | ++p; | |
5248 | } | |
5249 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5250 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5251 | struct s { int j; const int *ap[3]; }; | |
5252 | struct s *b; b->j = 5; | |
5253 | } | |
5254 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5255 | const int foo = 10; | |
7a197a62 | 5256 | if (!foo) return 0; |
ad6254c5 | 5257 | } |
25fbec5b | 5258 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5259 | #endif |
5260 | ||
5261 | ; | |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
5265 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5266 | if { (ac_try="$ac_compile" |
5267 | case "(($ac_try" in | |
5268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5269 | *) ac_try_echo=$ac_try;; | |
5270 | esac | |
68f2de6d | 5271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5272 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5273 | ac_status=$? |
8a2fc586 AK |
5274 | grep -v '^ *+' conftest.er1 >conftest.err |
5275 | rm -f conftest.er1 | |
5276 | cat conftest.err >&5 | |
68f2de6d | 5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5278 | (exit $ac_status); } && { |
5279 | test -z "$ac_c_werror_flag" || | |
5280 | test ! -s conftest.err | |
5281 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5282 | ac_cv_c_const=yes |
5283 | else | |
68f2de6d | 5284 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5285 | sed 's/^/| /' conftest.$ac_ext >&5 |
5286 | ||
7a197a62 | 5287 | ac_cv_c_const=no |
ad6254c5 | 5288 | fi |
7a197a62 AK |
5289 | |
5290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5291 | fi |
68f2de6d AK |
5292 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5293 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5294 | if test $ac_cv_c_const = no; then |
80992638 | 5295 | |
ad6254c5 | 5296 | cat >>confdefs.h <<\_ACEOF |
68f2de6d | 5297 | #define const |
ad6254c5 | 5298 | _ACEOF |
80992638 | 5299 | |
d3c8211f | 5300 | fi |
d3c8211f | 5301 | |
68f2de6d AK |
5302 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5303 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5304 | if test "${ac_cv_c_inline+set}" = set; then |
68f2de6d | 5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5306 | else |
ad6254c5 AK |
5307 | ac_cv_c_inline=no |
5308 | for ac_kw in inline __inline__ __inline; do | |
5309 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5310 | /* confdefs.h. */ |
5311 | _ACEOF | |
5312 | cat confdefs.h >>conftest.$ac_ext | |
5313 | cat >>conftest.$ac_ext <<_ACEOF | |
5314 | /* end confdefs.h. */ | |
5315 | #ifndef __cplusplus | |
5316 | typedef int foo_t; | |
5317 | static $ac_kw foo_t static_foo () {return 0; } | |
5318 | $ac_kw foo_t foo () {return 0; } | |
5319 | #endif | |
80992638 | 5320 | |
ad6254c5 AK |
5321 | _ACEOF |
5322 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5323 | if { (ac_try="$ac_compile" |
5324 | case "(($ac_try" in | |
5325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5326 | *) ac_try_echo=$ac_try;; | |
5327 | esac | |
68f2de6d | 5328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5329 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5330 | ac_status=$? |
8a2fc586 AK |
5331 | grep -v '^ *+' conftest.er1 >conftest.err |
5332 | rm -f conftest.er1 | |
5333 | cat conftest.err >&5 | |
68f2de6d | 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5335 | (exit $ac_status); } && { |
5336 | test -z "$ac_c_werror_flag" || | |
5337 | test ! -s conftest.err | |
5338 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5339 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5340 | else |
68f2de6d | 5341 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5342 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5343 | |
7a197a62 | 5344 | |
8ce0cbda | 5345 | fi |
7a197a62 AK |
5346 | |
5347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5348 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5349 | done |
8ce0cbda | 5350 | |
8ce0cbda | 5351 | fi |
68f2de6d AK |
5352 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5353 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5354 | |
5355 | ||
ad6254c5 AK |
5356 | case $ac_cv_c_inline in |
5357 | inline | yes) ;; | |
8a2fc586 AK |
5358 | *) |
5359 | case $ac_cv_c_inline in | |
5360 | no) ac_val=;; | |
5361 | *) ac_val=$ac_cv_c_inline;; | |
5362 | esac | |
5363 | cat >>confdefs.h <<_ACEOF | |
5364 | #ifndef __cplusplus | |
5365 | #define inline $ac_val | |
5366 | #endif | |
c1c065a3 | 5367 | _ACEOF |
d0191583 JM |
5368 | ;; |
5369 | esac | |
5370 | ||
68f2de6d AK |
5371 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5372 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5373 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5375 | else |
5376 | cat >conftest.$ac_ext <<_ACEOF | |
5377 | /* confdefs.h. */ | |
5378 | _ACEOF | |
5379 | cat confdefs.h >>conftest.$ac_ext | |
5380 | cat >>conftest.$ac_ext <<_ACEOF | |
5381 | /* end confdefs.h. */ | |
5382 | $ac_includes_default | |
5383 | int | |
5384 | main () | |
5385 | { | |
5386 | static struct stat ac_aggr; | |
5387 | if (ac_aggr.st_rdev) | |
5388 | return 0; | |
5389 | ; | |
5390 | return 0; | |
5391 | } | |
5392 | _ACEOF | |
5393 | rm -f conftest.$ac_objext | |
5394 | if { (ac_try="$ac_compile" | |
5395 | case "(($ac_try" in | |
5396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5397 | *) ac_try_echo=$ac_try;; | |
5398 | esac | |
68f2de6d | 5399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5400 | (eval "$ac_compile") 2>conftest.er1 |
5401 | ac_status=$? | |
5402 | grep -v '^ *+' conftest.er1 >conftest.err | |
5403 | rm -f conftest.er1 | |
5404 | cat conftest.err >&5 | |
68f2de6d | 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5406 | (exit $ac_status); } && { |
5407 | test -z "$ac_c_werror_flag" || | |
5408 | test ! -s conftest.err | |
5409 | } && test -s conftest.$ac_objext; then | |
5410 | ac_cv_member_struct_stat_st_rdev=yes | |
5411 | else | |
68f2de6d | 5412 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
5414 | ||
5415 | cat >conftest.$ac_ext <<_ACEOF | |
5416 | /* confdefs.h. */ | |
5417 | _ACEOF | |
5418 | cat confdefs.h >>conftest.$ac_ext | |
5419 | cat >>conftest.$ac_ext <<_ACEOF | |
5420 | /* end confdefs.h. */ | |
5421 | $ac_includes_default | |
5422 | int | |
5423 | main () | |
5424 | { | |
5425 | static struct stat ac_aggr; | |
5426 | if (sizeof ac_aggr.st_rdev) | |
5427 | return 0; | |
5428 | ; | |
5429 | return 0; | |
5430 | } | |
5431 | _ACEOF | |
5432 | rm -f conftest.$ac_objext | |
5433 | if { (ac_try="$ac_compile" | |
5434 | case "(($ac_try" in | |
5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5436 | *) ac_try_echo=$ac_try;; | |
5437 | esac | |
68f2de6d | 5438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5439 | (eval "$ac_compile") 2>conftest.er1 |
5440 | ac_status=$? | |
5441 | grep -v '^ *+' conftest.er1 >conftest.err | |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
68f2de6d | 5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5445 | (exit $ac_status); } && { |
5446 | test -z "$ac_c_werror_flag" || | |
5447 | test ! -s conftest.err | |
5448 | } && test -s conftest.$ac_objext; then | |
5449 | ac_cv_member_struct_stat_st_rdev=yes | |
5450 | else | |
68f2de6d | 5451 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 |
5453 | ||
5454 | ac_cv_member_struct_stat_st_rdev=no | |
5455 | fi | |
5456 | ||
5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5458 | fi | |
5459 | ||
5460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5461 | fi | |
68f2de6d AK |
5462 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5463 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5464 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5465 | ||
5466 | cat >>confdefs.h <<_ACEOF | |
5467 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5468 | _ACEOF | |
5469 | ||
5470 | ||
5471 | fi | |
8ce0cbda | 5472 | |
68f2de6d AK |
5473 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5474 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5475 | if test "${ac_cv_type_off_t+set}" = set; then |
68f2de6d | 5476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5477 | else |
b145d876 ZK |
5478 | cat >conftest.$ac_ext <<_ACEOF |
5479 | /* confdefs.h. */ | |
5480 | _ACEOF | |
5481 | cat confdefs.h >>conftest.$ac_ext | |
5482 | cat >>conftest.$ac_ext <<_ACEOF | |
5483 | /* end confdefs.h. */ | |
5484 | $ac_includes_default | |
68f2de6d | 5485 | typedef off_t ac__type_new_; |
b145d876 ZK |
5486 | int |
5487 | main () | |
5488 | { | |
68f2de6d AK |
5489 | if ((ac__type_new_ *) 0) |
5490 | return 0; | |
5491 | if (sizeof (ac__type_new_)) | |
5492 | return 0; | |
ad6254c5 AK |
5493 | ; |
5494 | return 0; | |
5495 | } | |
5496 | _ACEOF | |
5497 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5498 | if { (ac_try="$ac_compile" |
5499 | case "(($ac_try" in | |
5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5501 | *) ac_try_echo=$ac_try;; | |
5502 | esac | |
68f2de6d | 5503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5504 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5505 | ac_status=$? |
8a2fc586 AK |
5506 | grep -v '^ *+' conftest.er1 >conftest.err |
5507 | rm -f conftest.er1 | |
5508 | cat conftest.err >&5 | |
68f2de6d | 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5510 | (exit $ac_status); } && { |
5511 | test -z "$ac_c_werror_flag" || | |
5512 | test ! -s conftest.err | |
5513 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5514 | ac_cv_type_off_t=yes |
b145d876 | 5515 | else |
68f2de6d | 5516 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5517 | sed 's/^/| /' conftest.$ac_ext >&5 |
5518 | ||
68f2de6d | 5519 | ac_cv_type_off_t=no |
ad6254c5 | 5520 | fi |
b145d876 ZK |
5521 | |
5522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5523 | fi | |
68f2de6d AK |
5524 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5525 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5526 | if test $ac_cv_type_off_t = yes; then |
5527 | : | |
5528 | else | |
80992638 | 5529 | |
ad6254c5 | 5530 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5531 | #define off_t long int |
ad6254c5 | 5532 | _ACEOF |
199e490e | 5533 | |
b896caa1 AK |
5534 | fi |
5535 | ||
68f2de6d AK |
5536 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5537 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5538 | if test "${ac_cv_type_pid_t+set}" = set; then |
68f2de6d | 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5540 | else |
b145d876 ZK |
5541 | cat >conftest.$ac_ext <<_ACEOF |
5542 | /* confdefs.h. */ | |
5543 | _ACEOF | |
5544 | cat confdefs.h >>conftest.$ac_ext | |
5545 | cat >>conftest.$ac_ext <<_ACEOF | |
5546 | /* end confdefs.h. */ | |
5547 | $ac_includes_default | |
68f2de6d | 5548 | typedef pid_t ac__type_new_; |
b145d876 ZK |
5549 | int |
5550 | main () | |
5551 | { | |
68f2de6d AK |
5552 | if ((ac__type_new_ *) 0) |
5553 | return 0; | |
5554 | if (sizeof (ac__type_new_)) | |
5555 | return 0; | |
ad6254c5 AK |
5556 | ; |
5557 | return 0; | |
5558 | } | |
5559 | _ACEOF | |
5560 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5561 | if { (ac_try="$ac_compile" |
5562 | case "(($ac_try" in | |
5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5564 | *) ac_try_echo=$ac_try;; | |
5565 | esac | |
68f2de6d | 5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5567 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5568 | ac_status=$? |
8a2fc586 AK |
5569 | grep -v '^ *+' conftest.er1 >conftest.err |
5570 | rm -f conftest.er1 | |
5571 | cat conftest.err >&5 | |
68f2de6d | 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5573 | (exit $ac_status); } && { |
5574 | test -z "$ac_c_werror_flag" || | |
5575 | test ! -s conftest.err | |
5576 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5577 | ac_cv_type_pid_t=yes |
ad6254c5 | 5578 | else |
68f2de6d | 5579 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5580 | sed 's/^/| /' conftest.$ac_ext >&5 |
5581 | ||
68f2de6d | 5582 | ac_cv_type_pid_t=no |
ad6254c5 | 5583 | fi |
7a197a62 AK |
5584 | |
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5586 | fi |
68f2de6d AK |
5587 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5588 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5589 | if test $ac_cv_type_pid_t = yes; then |
5590 | : | |
5591 | else | |
80992638 | 5592 | |
ad6254c5 AK |
5593 | cat >>confdefs.h <<_ACEOF |
5594 | #define pid_t int | |
5595 | _ACEOF | |
2dc95e1c | 5596 | |
2dc95e1c AK |
5597 | fi |
5598 | ||
68f2de6d AK |
5599 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5600 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5601 | if test "${ac_cv_type_signal+set}" = set; then |
68f2de6d | 5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5603 | else |
5604 | cat >conftest.$ac_ext <<_ACEOF | |
5605 | /* confdefs.h. */ | |
5606 | _ACEOF | |
5607 | cat confdefs.h >>conftest.$ac_ext | |
5608 | cat >>conftest.$ac_ext <<_ACEOF | |
5609 | /* end confdefs.h. */ | |
5610 | #include <sys/types.h> | |
5611 | #include <signal.h> | |
5612 | ||
5613 | int | |
5614 | main () | |
5615 | { | |
5616 | return *(signal (0, 0)) (0) == 1; | |
5617 | ; | |
5618 | return 0; | |
5619 | } | |
5620 | _ACEOF | |
5621 | rm -f conftest.$ac_objext | |
5622 | if { (ac_try="$ac_compile" | |
5623 | case "(($ac_try" in | |
5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5625 | *) ac_try_echo=$ac_try;; | |
5626 | esac | |
68f2de6d | 5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5628 | (eval "$ac_compile") 2>conftest.er1 |
5629 | ac_status=$? | |
5630 | grep -v '^ *+' conftest.er1 >conftest.err | |
5631 | rm -f conftest.er1 | |
5632 | cat conftest.err >&5 | |
68f2de6d | 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5634 | (exit $ac_status); } && { |
5635 | test -z "$ac_c_werror_flag" || | |
5636 | test ! -s conftest.err | |
5637 | } && test -s conftest.$ac_objext; then | |
5638 | ac_cv_type_signal=int | |
5639 | else | |
68f2de6d | 5640 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5641 | sed 's/^/| /' conftest.$ac_ext >&5 |
5642 | ||
5643 | ac_cv_type_signal=void | |
5644 | fi | |
5645 | ||
5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5647 | fi | |
68f2de6d AK |
5648 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5649 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5650 | |
5651 | cat >>confdefs.h <<_ACEOF | |
5652 | #define RETSIGTYPE $ac_cv_type_signal | |
5653 | _ACEOF | |
5654 | ||
5655 | ||
68f2de6d AK |
5656 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5657 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5658 | if test "${ac_cv_type_size_t+set}" = set; then |
68f2de6d | 5659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5660 | else |
b145d876 ZK |
5661 | cat >conftest.$ac_ext <<_ACEOF |
5662 | /* confdefs.h. */ | |
5663 | _ACEOF | |
5664 | cat confdefs.h >>conftest.$ac_ext | |
5665 | cat >>conftest.$ac_ext <<_ACEOF | |
5666 | /* end confdefs.h. */ | |
5667 | $ac_includes_default | |
68f2de6d | 5668 | typedef size_t ac__type_new_; |
b145d876 ZK |
5669 | int |
5670 | main () | |
5671 | { | |
68f2de6d AK |
5672 | if ((ac__type_new_ *) 0) |
5673 | return 0; | |
5674 | if (sizeof (ac__type_new_)) | |
5675 | return 0; | |
ad6254c5 AK |
5676 | ; |
5677 | return 0; | |
5678 | } | |
5679 | _ACEOF | |
5680 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5681 | if { (ac_try="$ac_compile" |
5682 | case "(($ac_try" in | |
5683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5684 | *) ac_try_echo=$ac_try;; | |
5685 | esac | |
68f2de6d | 5686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5687 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5688 | ac_status=$? |
8a2fc586 AK |
5689 | grep -v '^ *+' conftest.er1 >conftest.err |
5690 | rm -f conftest.er1 | |
5691 | cat conftest.err >&5 | |
68f2de6d | 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5693 | (exit $ac_status); } && { |
5694 | test -z "$ac_c_werror_flag" || | |
5695 | test ! -s conftest.err | |
5696 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5697 | ac_cv_type_size_t=yes |
b145d876 | 5698 | else |
68f2de6d | 5699 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5700 | sed 's/^/| /' conftest.$ac_ext >&5 |
5701 | ||
68f2de6d | 5702 | ac_cv_type_size_t=no |
ad6254c5 | 5703 | fi |
b145d876 ZK |
5704 | |
5705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5706 | fi | |
68f2de6d AK |
5707 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5708 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5709 | if test $ac_cv_type_size_t = yes; then |
5710 | : | |
5711 | else | |
80992638 | 5712 | |
ad6254c5 | 5713 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5714 | #define size_t unsigned int |
ad6254c5 | 5715 | _ACEOF |
8106cdd5 | 5716 | |
8106cdd5 AK |
5717 | fi |
5718 | ||
68f2de6d AK |
5719 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5720 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5721 | if test "${ac_cv_type_mode_t+set}" = set; then |
68f2de6d | 5722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5723 | else |
b145d876 ZK |
5724 | cat >conftest.$ac_ext <<_ACEOF |
5725 | /* confdefs.h. */ | |
5726 | _ACEOF | |
5727 | cat confdefs.h >>conftest.$ac_ext | |
5728 | cat >>conftest.$ac_ext <<_ACEOF | |
5729 | /* end confdefs.h. */ | |
5730 | $ac_includes_default | |
68f2de6d | 5731 | typedef mode_t ac__type_new_; |
b145d876 ZK |
5732 | int |
5733 | main () | |
5734 | { | |
68f2de6d AK |
5735 | if ((ac__type_new_ *) 0) |
5736 | return 0; | |
5737 | if (sizeof (ac__type_new_)) | |
5738 | return 0; | |
ad6254c5 AK |
5739 | ; |
5740 | return 0; | |
5741 | } | |
5742 | _ACEOF | |
5743 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5744 | if { (ac_try="$ac_compile" |
5745 | case "(($ac_try" in | |
5746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5747 | *) ac_try_echo=$ac_try;; | |
5748 | esac | |
68f2de6d | 5749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5750 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5751 | ac_status=$? |
8a2fc586 AK |
5752 | grep -v '^ *+' conftest.er1 >conftest.err |
5753 | rm -f conftest.er1 | |
5754 | cat conftest.err >&5 | |
68f2de6d | 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5756 | (exit $ac_status); } && { |
5757 | test -z "$ac_c_werror_flag" || | |
5758 | test ! -s conftest.err | |
5759 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5760 | ac_cv_type_mode_t=yes |
fddafd51 | 5761 | else |
68f2de6d | 5762 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5763 | sed 's/^/| /' conftest.$ac_ext >&5 |
5764 | ||
68f2de6d | 5765 | ac_cv_type_mode_t=no |
80992638 | 5766 | fi |
7a197a62 AK |
5767 | |
5768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5769 | fi |
68f2de6d AK |
5770 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5771 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5772 | if test $ac_cv_type_mode_t = yes; then |
5773 | : | |
5774 | else | |
80992638 | 5775 | |
ad6254c5 AK |
5776 | cat >>confdefs.h <<_ACEOF |
5777 | #define mode_t int | |
5778 | _ACEOF | |
5779 | ||
5780 | fi | |
5781 | ||
68f2de6d AK |
5782 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5783 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5784 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5786 | else |
5787 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5788 | /* confdefs.h. */ |
5789 | _ACEOF | |
5790 | cat confdefs.h >>conftest.$ac_ext | |
5791 | cat >>conftest.$ac_ext <<_ACEOF | |
5792 | /* end confdefs.h. */ | |
5793 | $ac_includes_default | |
5794 | int | |
5795 | main () | |
5796 | { | |
5797 | static struct stat ac_aggr; | |
5798 | if (ac_aggr.st_rdev) | |
5799 | return 0; | |
5800 | ; | |
5801 | return 0; | |
5802 | } | |
5803 | _ACEOF | |
5804 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5805 | if { (ac_try="$ac_compile" |
5806 | case "(($ac_try" in | |
5807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5808 | *) ac_try_echo=$ac_try;; | |
5809 | esac | |
68f2de6d | 5810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5811 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5812 | ac_status=$? |
8a2fc586 AK |
5813 | grep -v '^ *+' conftest.er1 >conftest.err |
5814 | rm -f conftest.er1 | |
5815 | cat conftest.err >&5 | |
68f2de6d | 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5817 | (exit $ac_status); } && { |
5818 | test -z "$ac_c_werror_flag" || | |
5819 | test ! -s conftest.err | |
5820 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5821 | ac_cv_member_struct_stat_st_rdev=yes |
5822 | else | |
68f2de6d | 5823 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5824 | sed 's/^/| /' conftest.$ac_ext >&5 |
5825 | ||
7a197a62 | 5826 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5827 | /* confdefs.h. */ |
5828 | _ACEOF | |
5829 | cat confdefs.h >>conftest.$ac_ext | |
5830 | cat >>conftest.$ac_ext <<_ACEOF | |
5831 | /* end confdefs.h. */ | |
5832 | $ac_includes_default | |
5833 | int | |
5834 | main () | |
5835 | { | |
5836 | static struct stat ac_aggr; | |
5837 | if (sizeof ac_aggr.st_rdev) | |
5838 | return 0; | |
5839 | ; | |
5840 | return 0; | |
5841 | } | |
5842 | _ACEOF | |
5843 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5844 | if { (ac_try="$ac_compile" |
5845 | case "(($ac_try" in | |
5846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5847 | *) ac_try_echo=$ac_try;; | |
5848 | esac | |
68f2de6d | 5849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5850 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5851 | ac_status=$? |
8a2fc586 AK |
5852 | grep -v '^ *+' conftest.er1 >conftest.err |
5853 | rm -f conftest.er1 | |
5854 | cat conftest.err >&5 | |
68f2de6d | 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5856 | (exit $ac_status); } && { |
5857 | test -z "$ac_c_werror_flag" || | |
5858 | test ! -s conftest.err | |
5859 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5860 | ac_cv_member_struct_stat_st_rdev=yes |
5861 | else | |
68f2de6d | 5862 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5863 | sed 's/^/| /' conftest.$ac_ext >&5 |
5864 | ||
7a197a62 | 5865 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5866 | fi |
7a197a62 AK |
5867 | |
5868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5869 | fi |
7a197a62 AK |
5870 | |
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5872 | fi |
68f2de6d AK |
5873 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5874 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5875 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5876 | ||
5877 | cat >>confdefs.h <<_ACEOF | |
5878 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5879 | _ACEOF | |
5880 | ||
5881 | ||
ad6254c5 AK |
5882 | fi |
5883 | ||
68f2de6d AK |
5884 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5885 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5886 | if test "${ac_cv_struct_tm+set}" = set; then |
68f2de6d | 5887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5888 | else |
5889 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5890 | /* confdefs.h. */ |
5891 | _ACEOF | |
5892 | cat confdefs.h >>conftest.$ac_ext | |
5893 | cat >>conftest.$ac_ext <<_ACEOF | |
5894 | /* end confdefs.h. */ | |
5895 | #include <sys/types.h> | |
5896 | #include <time.h> | |
5897 | ||
5898 | int | |
5899 | main () | |
5900 | { | |
25fbec5b AK |
5901 | struct tm tm; |
5902 | int *p = &tm.tm_sec; | |
68f2de6d | 5903 | return !p; |
ad6254c5 AK |
5904 | ; |
5905 | return 0; | |
5906 | } | |
5907 | _ACEOF | |
5908 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5909 | if { (ac_try="$ac_compile" |
5910 | case "(($ac_try" in | |
5911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5912 | *) ac_try_echo=$ac_try;; | |
5913 | esac | |
68f2de6d | 5914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5915 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5916 | ac_status=$? |
8a2fc586 AK |
5917 | grep -v '^ *+' conftest.er1 >conftest.err |
5918 | rm -f conftest.er1 | |
5919 | cat conftest.err >&5 | |
68f2de6d | 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5921 | (exit $ac_status); } && { |
5922 | test -z "$ac_c_werror_flag" || | |
5923 | test ! -s conftest.err | |
5924 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5925 | ac_cv_struct_tm=time.h |
5926 | else | |
68f2de6d | 5927 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
5929 | ||
7a197a62 | 5930 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5931 | fi |
7a197a62 AK |
5932 | |
5933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5934 | fi |
68f2de6d AK |
5935 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5936 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5937 | if test $ac_cv_struct_tm = sys/time.h; then |
5938 | ||
5939 | cat >>confdefs.h <<\_ACEOF | |
5940 | #define TM_IN_SYS_TIME 1 | |
5941 | _ACEOF | |
5942 | ||
5943 | fi | |
809fae91 | 5944 | |
795ca3e5 | 5945 | |
80992638 | 5946 | ################################################################################ |
ad6254c5 AK |
5947 | |
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
d0191583 JM |
5961 | |
5962 | ||
5963 | ||
5964 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5965 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5966 | uname | |
ad6254c5 | 5967 | do |
68f2de6d AK |
5968 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5969 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5971 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5973 | else |
ad6254c5 | 5974 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5975 | /* confdefs.h. */ |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
8a2fc586 AK |
5980 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5981 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5982 | #define $ac_func innocuous_$ac_func | |
5983 | ||
ad6254c5 AK |
5984 | /* System header to define __stub macros and hopefully few prototypes, |
5985 | which can conflict with char $ac_func (); below. | |
5986 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5987 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5988 | |
ad6254c5 AK |
5989 | #ifdef __STDC__ |
5990 | # include <limits.h> | |
5991 | #else | |
5992 | # include <assert.h> | |
5993 | #endif | |
8a2fc586 AK |
5994 | |
5995 | #undef $ac_func | |
5996 | ||
7a197a62 AK |
5997 | /* Override any GCC internal prototype to avoid an error. |
5998 | Use char because int might match the return type of a GCC | |
5999 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6000 | #ifdef __cplusplus |
6001 | extern "C" | |
ad6254c5 | 6002 | #endif |
ad6254c5 AK |
6003 | char $ac_func (); |
6004 | /* The GNU C library defines this for functions which it implements | |
6005 | to always fail with ENOSYS. Some functions are actually named | |
6006 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6007 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6008 | choke me |
ad6254c5 AK |
6009 | #endif |
6010 | ||
6011 | int | |
6012 | main () | |
6013 | { | |
7a197a62 | 6014 | return $ac_func (); |
ad6254c5 AK |
6015 | ; |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6020 | if { (ac_try="$ac_link" |
6021 | case "(($ac_try" in | |
6022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6023 | *) ac_try_echo=$ac_try;; | |
6024 | esac | |
68f2de6d | 6025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6026 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6027 | ac_status=$? |
8a2fc586 AK |
6028 | grep -v '^ *+' conftest.er1 >conftest.err |
6029 | rm -f conftest.er1 | |
6030 | cat conftest.err >&5 | |
68f2de6d | 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6032 | (exit $ac_status); } && { |
6033 | test -z "$ac_c_werror_flag" || | |
6034 | test ! -s conftest.err | |
68f2de6d AK |
6035 | } && test -s conftest$ac_exeext && |
6036 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
6037 | eval "$as_ac_var=yes" |
6038 | else | |
68f2de6d | 6039 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6040 | sed 's/^/| /' conftest.$ac_ext >&5 |
6041 | ||
6042 | eval "$as_ac_var=no" | |
6043 | fi | |
6044 | ||
25fbec5b | 6045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6046 | conftest$ac_exeext conftest.$ac_ext |
6047 | fi | |
68f2de6d AK |
6048 | ac_res=`eval echo '${'$as_ac_var'}'` |
6049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6050 | echo "${ECHO_T}$ac_res" >&6; } | |
6051 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6052 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6054 | _ACEOF |
6055 | ||
6056 | else | |
68f2de6d AK |
6057 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
6058 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6059 | { (exit 1); exit 1; }; } |
6060 | fi | |
6061 | done | |
795ca3e5 | 6062 | |
ad6254c5 AK |
6063 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6064 | # for constant arguments. Useless! | |
68f2de6d AK |
6065 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6066 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 6067 | if test "${ac_cv_working_alloca_h+set}" = set; then |
68f2de6d | 6068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6069 | else |
6070 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6071 | /* confdefs.h. */ |
6072 | _ACEOF | |
6073 | cat confdefs.h >>conftest.$ac_ext | |
6074 | cat >>conftest.$ac_ext <<_ACEOF | |
6075 | /* end confdefs.h. */ | |
6076 | #include <alloca.h> | |
6077 | int | |
6078 | main () | |
6079 | { | |
6080 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6081 | if (p) return 0; |
ad6254c5 AK |
6082 | ; |
6083 | return 0; | |
6084 | } | |
6085 | _ACEOF | |
6086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6087 | if { (ac_try="$ac_link" |
6088 | case "(($ac_try" in | |
6089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6090 | *) ac_try_echo=$ac_try;; | |
6091 | esac | |
68f2de6d | 6092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6093 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6094 | ac_status=$? |
8a2fc586 AK |
6095 | grep -v '^ *+' conftest.er1 >conftest.err |
6096 | rm -f conftest.er1 | |
6097 | cat conftest.err >&5 | |
68f2de6d | 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6099 | (exit $ac_status); } && { |
6100 | test -z "$ac_c_werror_flag" || | |
6101 | test ! -s conftest.err | |
68f2de6d AK |
6102 | } && test -s conftest$ac_exeext && |
6103 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6104 | ac_cv_working_alloca_h=yes |
6105 | else | |
68f2de6d | 6106 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6107 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6108 | |
7a197a62 | 6109 | ac_cv_working_alloca_h=no |
ad6254c5 | 6110 | fi |
7a197a62 | 6111 | |
25fbec5b | 6112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6113 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6114 | fi |
68f2de6d AK |
6115 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6116 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6117 | if test $ac_cv_working_alloca_h = yes; then |
6118 | ||
6119 | cat >>confdefs.h <<\_ACEOF | |
6120 | #define HAVE_ALLOCA_H 1 | |
6121 | _ACEOF | |
6122 | ||
6123 | fi | |
6124 | ||
68f2de6d AK |
6125 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6126 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6127 | if test "${ac_cv_func_alloca_works+set}" = set; then |
68f2de6d | 6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6129 | else |
6130 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6131 | /* confdefs.h. */ |
6132 | _ACEOF | |
6133 | cat confdefs.h >>conftest.$ac_ext | |
6134 | cat >>conftest.$ac_ext <<_ACEOF | |
6135 | /* end confdefs.h. */ | |
6136 | #ifdef __GNUC__ | |
6137 | # define alloca __builtin_alloca | |
6138 | #else | |
6139 | # ifdef _MSC_VER | |
6140 | # include <malloc.h> | |
6141 | # define alloca _alloca | |
6142 | # else | |
25fbec5b | 6143 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6144 | # include <alloca.h> |
6145 | # else | |
6146 | # ifdef _AIX | |
6147 | #pragma alloca | |
6148 | # else | |
6149 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6150 | char *alloca (); | |
6151 | # endif | |
6152 | # endif | |
6153 | # endif | |
6154 | # endif | |
6155 | #endif | |
6156 | ||
6157 | int | |
6158 | main () | |
6159 | { | |
6160 | char *p = (char *) alloca (1); | |
7a197a62 | 6161 | if (p) return 0; |
ad6254c5 AK |
6162 | ; |
6163 | return 0; | |
6164 | } | |
6165 | _ACEOF | |
6166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6167 | if { (ac_try="$ac_link" |
6168 | case "(($ac_try" in | |
6169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6170 | *) ac_try_echo=$ac_try;; | |
6171 | esac | |
68f2de6d | 6172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6173 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6174 | ac_status=$? |
8a2fc586 AK |
6175 | grep -v '^ *+' conftest.er1 >conftest.err |
6176 | rm -f conftest.er1 | |
6177 | cat conftest.err >&5 | |
68f2de6d | 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6179 | (exit $ac_status); } && { |
6180 | test -z "$ac_c_werror_flag" || | |
6181 | test ! -s conftest.err | |
68f2de6d AK |
6182 | } && test -s conftest$ac_exeext && |
6183 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6184 | ac_cv_func_alloca_works=yes |
6185 | else | |
68f2de6d | 6186 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6187 | sed 's/^/| /' conftest.$ac_ext >&5 |
6188 | ||
7a197a62 | 6189 | ac_cv_func_alloca_works=no |
ad6254c5 | 6190 | fi |
7a197a62 | 6191 | |
25fbec5b | 6192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6193 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6194 | fi |
68f2de6d AK |
6195 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6196 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6197 | |
6198 | if test $ac_cv_func_alloca_works = yes; then | |
6199 | ||
6200 | cat >>confdefs.h <<\_ACEOF | |
6201 | #define HAVE_ALLOCA 1 | |
6202 | _ACEOF | |
6203 | ||
6204 | else | |
6205 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6206 | # that cause trouble. Some versions do not even contain alloca or | |
6207 | # contain a buggy version. If you still want to use their alloca, | |
6208 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6209 | ||
7a197a62 | 6210 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6211 | |
6212 | cat >>confdefs.h <<\_ACEOF | |
6213 | #define C_ALLOCA 1 | |
6214 | _ACEOF | |
6215 | ||
6216 | ||
68f2de6d AK |
6217 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6218 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6219 | if test "${ac_cv_os_cray+set}" = set; then |
68f2de6d | 6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6221 | else |
6222 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6223 | /* confdefs.h. */ |
6224 | _ACEOF | |
6225 | cat confdefs.h >>conftest.$ac_ext | |
6226 | cat >>conftest.$ac_ext <<_ACEOF | |
6227 | /* end confdefs.h. */ | |
7a197a62 | 6228 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6229 | webecray |
6230 | #else | |
6231 | wenotbecray | |
6232 | #endif | |
6233 | ||
6234 | _ACEOF | |
795ca3e5 | 6235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6236 | $EGREP "webecray" >/dev/null 2>&1; then |
6237 | ac_cv_os_cray=yes | |
6238 | else | |
6239 | ac_cv_os_cray=no | |
795ca3e5 AK |
6240 | fi |
6241 | rm -f conftest* | |
6242 | ||
795ca3e5 | 6243 | fi |
68f2de6d AK |
6244 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6245 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6246 | if test $ac_cv_os_cray = yes; then |
6247 | for ac_func in _getb67 GETB67 getb67; do | |
68f2de6d AK |
6248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6249 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6251 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6253 | else |
6254 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6255 | /* confdefs.h. */ |
6256 | _ACEOF | |
6257 | cat confdefs.h >>conftest.$ac_ext | |
6258 | cat >>conftest.$ac_ext <<_ACEOF | |
6259 | /* end confdefs.h. */ | |
8a2fc586 AK |
6260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6262 | #define $ac_func innocuous_$ac_func | |
6263 | ||
ad6254c5 AK |
6264 | /* System header to define __stub macros and hopefully few prototypes, |
6265 | which can conflict with char $ac_func (); below. | |
6266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6267 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6268 | |
ad6254c5 AK |
6269 | #ifdef __STDC__ |
6270 | # include <limits.h> | |
6271 | #else | |
6272 | # include <assert.h> | |
6273 | #endif | |
8a2fc586 AK |
6274 | |
6275 | #undef $ac_func | |
6276 | ||
7a197a62 AK |
6277 | /* Override any GCC internal prototype to avoid an error. |
6278 | Use char because int might match the return type of a GCC | |
6279 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6280 | #ifdef __cplusplus |
6281 | extern "C" | |
ad6254c5 | 6282 | #endif |
ad6254c5 AK |
6283 | char $ac_func (); |
6284 | /* The GNU C library defines this for functions which it implements | |
6285 | to always fail with ENOSYS. Some functions are actually named | |
6286 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6287 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6288 | choke me |
ad6254c5 AK |
6289 | #endif |
6290 | ||
6291 | int | |
6292 | main () | |
6293 | { | |
7a197a62 | 6294 | return $ac_func (); |
ad6254c5 AK |
6295 | ; |
6296 | return 0; | |
6297 | } | |
6298 | _ACEOF | |
6299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6300 | if { (ac_try="$ac_link" |
6301 | case "(($ac_try" in | |
6302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6303 | *) ac_try_echo=$ac_try;; | |
6304 | esac | |
68f2de6d | 6305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6306 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6307 | ac_status=$? |
8a2fc586 AK |
6308 | grep -v '^ *+' conftest.er1 >conftest.err |
6309 | rm -f conftest.er1 | |
6310 | cat conftest.err >&5 | |
68f2de6d | 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6312 | (exit $ac_status); } && { |
6313 | test -z "$ac_c_werror_flag" || | |
6314 | test ! -s conftest.err | |
68f2de6d AK |
6315 | } && test -s conftest$ac_exeext && |
6316 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6317 | eval "$as_ac_var=yes" |
6318 | else | |
68f2de6d | 6319 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
6321 | ||
7a197a62 | 6322 | eval "$as_ac_var=no" |
ad6254c5 | 6323 | fi |
7a197a62 | 6324 | |
25fbec5b | 6325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6326 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6327 | fi |
68f2de6d AK |
6328 | ac_res=`eval echo '${'$as_ac_var'}'` |
6329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6330 | echo "${ECHO_T}$ac_res" >&6; } | |
6331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6332 | |
ad6254c5 AK |
6333 | cat >>confdefs.h <<_ACEOF |
6334 | #define CRAY_STACKSEG_END $ac_func | |
6335 | _ACEOF | |
6336 | ||
6337 | break | |
6338 | fi | |
6339 | ||
6340 | done | |
6341 | fi | |
6342 | ||
68f2de6d AK |
6343 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6344 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6345 | if test "${ac_cv_c_stack_direction+set}" = set; then |
68f2de6d | 6346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6347 | else |
6348 | if test "$cross_compiling" = yes; then | |
6349 | ac_cv_c_stack_direction=0 | |
6350 | else | |
6351 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6352 | /* confdefs.h. */ |
6353 | _ACEOF | |
6354 | cat confdefs.h >>conftest.$ac_ext | |
6355 | cat >>conftest.$ac_ext <<_ACEOF | |
6356 | /* end confdefs.h. */ | |
7a197a62 | 6357 | $ac_includes_default |
ad6254c5 AK |
6358 | int |
6359 | find_stack_direction () | |
6360 | { | |
6361 | static char *addr = 0; | |
6362 | auto char dummy; | |
6363 | if (addr == 0) | |
6364 | { | |
6365 | addr = &dummy; | |
6366 | return find_stack_direction (); | |
6367 | } | |
6368 | else | |
6369 | return (&dummy > addr) ? 1 : -1; | |
6370 | } | |
6371 | ||
6372 | int | |
6373 | main () | |
6374 | { | |
7a197a62 | 6375 | return find_stack_direction () < 0; |
ad6254c5 AK |
6376 | } |
6377 | _ACEOF | |
6378 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6379 | if { (ac_try="$ac_link" |
6380 | case "(($ac_try" in | |
6381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6382 | *) ac_try_echo=$ac_try;; | |
6383 | esac | |
68f2de6d | 6384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6385 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6386 | ac_status=$? |
68f2de6d | 6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6389 | { (case "(($ac_try" in |
6390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6391 | *) ac_try_echo=$ac_try;; | |
6392 | esac | |
68f2de6d | 6393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6394 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6395 | ac_status=$? |
68f2de6d | 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6397 | (exit $ac_status); }; }; then |
6398 | ac_cv_c_stack_direction=1 | |
6399 | else | |
68f2de6d AK |
6400 | echo "$as_me: program exited with status $ac_status" >&5 |
6401 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6402 | sed 's/^/| /' conftest.$ac_ext >&5 |
6403 | ||
6404 | ( exit $ac_status ) | |
6405 | ac_cv_c_stack_direction=-1 | |
6406 | fi | |
7a197a62 | 6407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6408 | fi |
7a197a62 AK |
6409 | |
6410 | ||
ad6254c5 | 6411 | fi |
68f2de6d AK |
6412 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6413 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6414 | |
6415 | cat >>confdefs.h <<_ACEOF | |
6416 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6417 | _ACEOF | |
6418 | ||
6419 | ||
6420 | fi | |
6421 | ||
68f2de6d AK |
6422 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6423 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6424 | if test "${ac_cv_func_closedir_void+set}" = set; then |
68f2de6d | 6425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6426 | else |
6427 | if test "$cross_compiling" = yes; then | |
6428 | ac_cv_func_closedir_void=yes | |
6429 | else | |
6430 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6431 | /* confdefs.h. */ |
6432 | _ACEOF | |
6433 | cat confdefs.h >>conftest.$ac_ext | |
6434 | cat >>conftest.$ac_ext <<_ACEOF | |
6435 | /* end confdefs.h. */ | |
6436 | $ac_includes_default | |
6437 | #include <$ac_header_dirent> | |
6438 | #ifndef __cplusplus | |
6439 | int closedir (); | |
6440 | #endif | |
6441 | ||
6442 | int | |
6443 | main () | |
6444 | { | |
7a197a62 | 6445 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6446 | ; |
6447 | return 0; | |
6448 | } | |
6449 | _ACEOF | |
6450 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6451 | if { (ac_try="$ac_link" |
6452 | case "(($ac_try" in | |
6453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6454 | *) ac_try_echo=$ac_try;; | |
6455 | esac | |
68f2de6d | 6456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6457 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6458 | ac_status=$? |
68f2de6d | 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6461 | { (case "(($ac_try" in |
6462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6463 | *) ac_try_echo=$ac_try;; | |
6464 | esac | |
68f2de6d | 6465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6466 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6467 | ac_status=$? |
68f2de6d | 6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6469 | (exit $ac_status); }; }; then |
6470 | ac_cv_func_closedir_void=no | |
6471 | else | |
68f2de6d AK |
6472 | echo "$as_me: program exited with status $ac_status" >&5 |
6473 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6474 | sed 's/^/| /' conftest.$ac_ext >&5 |
6475 | ||
6476 | ( exit $ac_status ) | |
6477 | ac_cv_func_closedir_void=yes | |
6478 | fi | |
7a197a62 | 6479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6480 | fi |
7a197a62 AK |
6481 | |
6482 | ||
ad6254c5 | 6483 | fi |
68f2de6d AK |
6484 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6485 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6486 | if test $ac_cv_func_closedir_void = yes; then |
6487 | ||
6488 | cat >>confdefs.h <<\_ACEOF | |
6489 | #define CLOSEDIR_VOID 1 | |
6490 | _ACEOF | |
6491 | ||
6492 | fi | |
6493 | ||
6494 | ||
7a197a62 | 6495 | for ac_header in vfork.h |
ad6254c5 | 6496 | do |
68f2de6d | 6497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6498 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
6499 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6501 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6503 | fi |
68f2de6d AK |
6504 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6505 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6506 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6507 | else |
6508 | # Is the header compilable? | |
68f2de6d AK |
6509 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6510 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6511 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6512 | /* confdefs.h. */ |
6513 | _ACEOF | |
6514 | cat confdefs.h >>conftest.$ac_ext | |
6515 | cat >>conftest.$ac_ext <<_ACEOF | |
6516 | /* end confdefs.h. */ | |
6517 | $ac_includes_default | |
6518 | #include <$ac_header> | |
6519 | _ACEOF | |
6520 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6521 | if { (ac_try="$ac_compile" |
6522 | case "(($ac_try" in | |
6523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6524 | *) ac_try_echo=$ac_try;; | |
6525 | esac | |
68f2de6d | 6526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6527 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6528 | ac_status=$? |
8a2fc586 AK |
6529 | grep -v '^ *+' conftest.er1 >conftest.err |
6530 | rm -f conftest.er1 | |
6531 | cat conftest.err >&5 | |
68f2de6d | 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6533 | (exit $ac_status); } && { |
6534 | test -z "$ac_c_werror_flag" || | |
6535 | test ! -s conftest.err | |
6536 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6537 | ac_header_compiler=yes |
6538 | else | |
68f2de6d | 6539 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6540 | sed 's/^/| /' conftest.$ac_ext >&5 |
6541 | ||
7a197a62 | 6542 | ac_header_compiler=no |
ad6254c5 | 6543 | fi |
7a197a62 AK |
6544 | |
6545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
6546 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6547 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6548 | |
6549 | # Is the header present? | |
68f2de6d AK |
6550 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6551 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6552 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6553 | /* confdefs.h. */ |
6554 | _ACEOF | |
6555 | cat confdefs.h >>conftest.$ac_ext | |
6556 | cat >>conftest.$ac_ext <<_ACEOF | |
6557 | /* end confdefs.h. */ | |
6558 | #include <$ac_header> | |
6559 | _ACEOF | |
7a197a62 AK |
6560 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6561 | case "(($ac_try" in | |
6562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6563 | *) ac_try_echo=$ac_try;; | |
6564 | esac | |
68f2de6d | 6565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6566 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6567 | ac_status=$? |
6568 | grep -v '^ *+' conftest.er1 >conftest.err | |
6569 | rm -f conftest.er1 | |
6570 | cat conftest.err >&5 | |
68f2de6d | 6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6572 | (exit $ac_status); } >/dev/null && { |
6573 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6574 | test ! -s conftest.err | |
6575 | }; then | |
ad6254c5 AK |
6576 | ac_header_preproc=yes |
6577 | else | |
68f2de6d | 6578 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
6580 | ||
6581 | ac_header_preproc=no | |
6582 | fi | |
7a197a62 | 6583 | |
ad6254c5 | 6584 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
6585 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6586 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6587 | |
6588 | # So? What about this header? | |
8a2fc586 AK |
6589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6590 | yes:no: ) | |
68f2de6d AK |
6591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6594 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6595 | ac_header_preproc=yes |
ad6254c5 | 6596 | ;; |
8a2fc586 | 6597 | no:yes:* ) |
68f2de6d AK |
6598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6602 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6603 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6604 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6605 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6607 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6608 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6609 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6610 | |
ad6254c5 AK |
6611 | ;; |
6612 | esac | |
68f2de6d AK |
6613 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6615 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6617 | else |
8a2fc586 | 6618 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6619 | fi |
68f2de6d AK |
6620 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6622 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6623 | |
795ca3e5 | 6624 | fi |
68f2de6d | 6625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6626 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6628 | _ACEOF |
6629 | ||
6630 | fi | |
6631 | ||
6632 | done | |
795ca3e5 | 6633 | |
ad6254c5 AK |
6634 | |
6635 | ||
6636 | for ac_func in fork vfork | |
6637 | do | |
68f2de6d AK |
6638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6639 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6641 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6643 | else |
ad6254c5 | 6644 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6645 | /* confdefs.h. */ |
6646 | _ACEOF | |
6647 | cat confdefs.h >>conftest.$ac_ext | |
6648 | cat >>conftest.$ac_ext <<_ACEOF | |
6649 | /* end confdefs.h. */ | |
8a2fc586 AK |
6650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6652 | #define $ac_func innocuous_$ac_func | |
6653 | ||
ad6254c5 AK |
6654 | /* System header to define __stub macros and hopefully few prototypes, |
6655 | which can conflict with char $ac_func (); below. | |
6656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6657 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6658 | |
ad6254c5 AK |
6659 | #ifdef __STDC__ |
6660 | # include <limits.h> | |
6661 | #else | |
6662 | # include <assert.h> | |
795ca3e5 | 6663 | #endif |
8a2fc586 AK |
6664 | |
6665 | #undef $ac_func | |
6666 | ||
7a197a62 AK |
6667 | /* Override any GCC internal prototype to avoid an error. |
6668 | Use char because int might match the return type of a GCC | |
6669 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6670 | #ifdef __cplusplus |
ad6254c5 | 6671 | extern "C" |
ad6254c5 | 6672 | #endif |
ad6254c5 AK |
6673 | char $ac_func (); |
6674 | /* The GNU C library defines this for functions which it implements | |
6675 | to always fail with ENOSYS. Some functions are actually named | |
6676 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6677 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6678 | choke me |
795ca3e5 AK |
6679 | #endif |
6680 | ||
ad6254c5 AK |
6681 | int |
6682 | main () | |
6683 | { | |
7a197a62 | 6684 | return $ac_func (); |
ad6254c5 AK |
6685 | ; |
6686 | return 0; | |
6687 | } | |
6688 | _ACEOF | |
6689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6690 | if { (ac_try="$ac_link" |
6691 | case "(($ac_try" in | |
6692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6693 | *) ac_try_echo=$ac_try;; | |
6694 | esac | |
68f2de6d | 6695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6696 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6697 | ac_status=$? |
8a2fc586 AK |
6698 | grep -v '^ *+' conftest.er1 >conftest.err |
6699 | rm -f conftest.er1 | |
6700 | cat conftest.err >&5 | |
68f2de6d | 6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6702 | (exit $ac_status); } && { |
6703 | test -z "$ac_c_werror_flag" || | |
6704 | test ! -s conftest.err | |
68f2de6d AK |
6705 | } && test -s conftest$ac_exeext && |
6706 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6707 | eval "$as_ac_var=yes" |
795ca3e5 | 6708 | else |
68f2de6d | 6709 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
6711 | ||
7a197a62 | 6712 | eval "$as_ac_var=no" |
795ca3e5 | 6713 | fi |
7a197a62 | 6714 | |
25fbec5b | 6715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6716 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6717 | fi |
68f2de6d AK |
6718 | ac_res=`eval echo '${'$as_ac_var'}'` |
6719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6720 | echo "${ECHO_T}$ac_res" >&6; } | |
6721 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6722 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6724 | _ACEOF |
6725 | ||
6726 | fi | |
6727 | done | |
6728 | ||
6729 | if test "x$ac_cv_func_fork" = xyes; then | |
68f2de6d AK |
6730 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6731 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6732 | if test "${ac_cv_func_fork_works+set}" = set; then |
68f2de6d | 6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6734 | else |
6735 | if test "$cross_compiling" = yes; then | |
6736 | ac_cv_func_fork_works=cross | |
6737 | else | |
6738 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6739 | /* confdefs.h. */ |
6740 | _ACEOF | |
6741 | cat confdefs.h >>conftest.$ac_ext | |
6742 | cat >>conftest.$ac_ext <<_ACEOF | |
6743 | /* end confdefs.h. */ | |
6744 | $ac_includes_default | |
6745 | int | |
6746 | main () | |
6747 | { | |
6748 | ||
6749 | /* By Ruediger Kuhlmann. */ | |
6750 | return fork () < 0; | |
6751 | ||
6752 | ; | |
6753 | return 0; | |
6754 | } | |
ad6254c5 AK |
6755 | _ACEOF |
6756 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6757 | if { (ac_try="$ac_link" |
6758 | case "(($ac_try" in | |
6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6760 | *) ac_try_echo=$ac_try;; | |
6761 | esac | |
68f2de6d | 6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6763 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6764 | ac_status=$? |
68f2de6d | 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6767 | { (case "(($ac_try" in |
6768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6769 | *) ac_try_echo=$ac_try;; | |
6770 | esac | |
68f2de6d | 6771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6772 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6773 | ac_status=$? |
68f2de6d | 6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6775 | (exit $ac_status); }; }; then |
6776 | ac_cv_func_fork_works=yes | |
6777 | else | |
68f2de6d AK |
6778 | echo "$as_me: program exited with status $ac_status" >&5 |
6779 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
6781 | ||
6782 | ( exit $ac_status ) | |
6783 | ac_cv_func_fork_works=no | |
6784 | fi | |
7a197a62 | 6785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6786 | fi |
7a197a62 AK |
6787 | |
6788 | ||
ad6254c5 | 6789 | fi |
68f2de6d AK |
6790 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6791 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6792 | |
6793 | else | |
6794 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6795 | fi | |
6796 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6797 | case $host in | |
6798 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6799 | # Override, as these systems have only a dummy fork() stub | |
6800 | ac_cv_func_fork_works=no | |
6801 | ;; | |
6802 | *) | |
6803 | ac_cv_func_fork_works=yes | |
6804 | ;; | |
6805 | esac | |
68f2de6d AK |
6806 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6807 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6808 | fi |
6809 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6810 | if test "x$ac_cv_func_vfork" = xyes; then | |
68f2de6d AK |
6811 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6812 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6813 | if test "${ac_cv_func_vfork_works+set}" = set; then |
68f2de6d | 6814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6815 | else |
6816 | if test "$cross_compiling" = yes; then | |
6817 | ac_cv_func_vfork_works=cross | |
6818 | else | |
6819 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6820 | /* confdefs.h. */ |
6821 | _ACEOF | |
6822 | cat confdefs.h >>conftest.$ac_ext | |
6823 | cat >>conftest.$ac_ext <<_ACEOF | |
6824 | /* end confdefs.h. */ | |
6825 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6826 | $ac_includes_default |
ad6254c5 | 6827 | #include <sys/wait.h> |
25fbec5b | 6828 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6829 | # include <vfork.h> |
6830 | #endif | |
6831 | /* On some sparc systems, changes by the child to local and incoming | |
6832 | argument registers are propagated back to the parent. The compiler | |
6833 | is told about this with #include <vfork.h>, but some compilers | |
6834 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6835 | static variable whose address is put into a register that is | |
6836 | clobbered by the vfork. */ | |
6837 | static void | |
6838 | #ifdef __cplusplus | |
6839 | sparc_address_test (int arg) | |
6840 | # else | |
6841 | sparc_address_test (arg) int arg; | |
6842 | #endif | |
6843 | { | |
6844 | static pid_t child; | |
6845 | if (!child) { | |
6846 | child = vfork (); | |
6847 | if (child < 0) { | |
6848 | perror ("vfork"); | |
6849 | _exit(2); | |
6850 | } | |
6851 | if (!child) { | |
6852 | arg = getpid(); | |
6853 | write(-1, "", 0); | |
6854 | _exit (arg); | |
6855 | } | |
6856 | } | |
6857 | } | |
6858 | ||
6859 | int | |
6860 | main () | |
6861 | { | |
6862 | pid_t parent = getpid (); | |
6863 | pid_t child; | |
6864 | ||
6865 | sparc_address_test (0); | |
6866 | ||
6867 | child = vfork (); | |
6868 | ||
6869 | if (child == 0) { | |
6870 | /* Here is another test for sparc vfork register problems. This | |
6871 | test uses lots of local variables, at least as many local | |
6872 | variables as main has allocated so far including compiler | |
6873 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6874 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6875 | reuse the register of parent for one of the local variables, | |
6876 | since it will think that parent can't possibly be used any more | |
6877 | in this routine. Assigning to the local variable will thus | |
6878 | munge parent in the parent process. */ | |
6879 | pid_t | |
6880 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6881 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6882 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6883 | use the same hardware register for all 8 local variables. */ | |
6884 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6885 | || p != p5 || p != p6 || p != p7) | |
6886 | _exit(1); | |
6887 | ||
6888 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6889 | from child file descriptors. If the child closes a descriptor | |
6890 | before it execs or exits, this munges the parent's descriptor | |
6891 | as well. Test for this by closing stdout in the child. */ | |
6892 | _exit(close(fileno(stdout)) != 0); | |
6893 | } else { | |
6894 | int status; | |
6895 | struct stat st; | |
6896 | ||
6897 | while (wait(&status) != child) | |
6898 | ; | |
7a197a62 | 6899 | return ( |
ad6254c5 AK |
6900 | /* Was there some problem with vforking? */ |
6901 | child < 0 | |
6902 | ||
6903 | /* Did the child fail? (This shouldn't happen.) */ | |
6904 | || status | |
6905 | ||
6906 | /* Did the vfork/compiler bug occur? */ | |
6907 | || parent != getpid() | |
6908 | ||
6909 | /* Did the file descriptor bug occur? */ | |
6910 | || fstat(fileno(stdout), &st) != 0 | |
6911 | ); | |
6912 | } | |
6913 | } | |
6914 | _ACEOF | |
6915 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6916 | if { (ac_try="$ac_link" |
6917 | case "(($ac_try" in | |
6918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6919 | *) ac_try_echo=$ac_try;; | |
6920 | esac | |
68f2de6d | 6921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6922 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6923 | ac_status=$? |
68f2de6d | 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6926 | { (case "(($ac_try" in |
6927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6928 | *) ac_try_echo=$ac_try;; | |
6929 | esac | |
68f2de6d | 6930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6931 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6932 | ac_status=$? |
68f2de6d | 6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6934 | (exit $ac_status); }; }; then |
6935 | ac_cv_func_vfork_works=yes | |
6936 | else | |
68f2de6d AK |
6937 | echo "$as_me: program exited with status $ac_status" >&5 |
6938 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6939 | sed 's/^/| /' conftest.$ac_ext >&5 |
6940 | ||
6941 | ( exit $ac_status ) | |
6942 | ac_cv_func_vfork_works=no | |
6943 | fi | |
7a197a62 | 6944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6945 | fi |
7a197a62 AK |
6946 | |
6947 | ||
ad6254c5 | 6948 | fi |
68f2de6d AK |
6949 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6950 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6951 | |
6952 | fi; | |
6953 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6954 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
68f2de6d AK |
6955 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6956 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6957 | fi |
6958 | ||
6959 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6960 | ||
6961 | cat >>confdefs.h <<\_ACEOF | |
6962 | #define HAVE_WORKING_VFORK 1 | |
6963 | _ACEOF | |
6964 | ||
6965 | else | |
6966 | ||
6967 | cat >>confdefs.h <<\_ACEOF | |
6968 | #define vfork fork | |
6969 | _ACEOF | |
6970 | ||
6971 | fi | |
6972 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6973 | ||
6974 | cat >>confdefs.h <<\_ACEOF | |
6975 | #define HAVE_WORKING_FORK 1 | |
6976 | _ACEOF | |
6977 | ||
6978 | fi | |
6979 | ||
68f2de6d AK |
6980 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6981 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6982 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
68f2de6d | 6983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6984 | else |
6985 | rm -f conftest.sym conftest.file | |
6986 | echo >conftest.file | |
6987 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6988 | if test "$cross_compiling" = yes; then | |
6989 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6990 | else | |
6991 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6992 | /* confdefs.h. */ |
6993 | _ACEOF | |
6994 | cat confdefs.h >>conftest.$ac_ext | |
6995 | cat >>conftest.$ac_ext <<_ACEOF | |
6996 | /* end confdefs.h. */ | |
6997 | $ac_includes_default | |
6998 | int | |
6999 | main () | |
7000 | { | |
7001 | struct stat sbuf; | |
7002 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7003 | That is better in the sense that it means we will not |
7004 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7005 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7006 | ; |
7007 | return 0; | |
7008 | } | |
7009 | _ACEOF | |
7010 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7011 | if { (ac_try="$ac_link" |
7012 | case "(($ac_try" in | |
7013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7014 | *) ac_try_echo=$ac_try;; | |
7015 | esac | |
68f2de6d | 7016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7017 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7018 | ac_status=$? |
68f2de6d | 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7020 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7021 | { (case "(($ac_try" in |
7022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7023 | *) ac_try_echo=$ac_try;; | |
7024 | esac | |
68f2de6d | 7025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7026 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7027 | ac_status=$? |
68f2de6d | 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7029 | (exit $ac_status); }; }; then |
7030 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7031 | else | |
68f2de6d AK |
7032 | echo "$as_me: program exited with status $ac_status" >&5 |
7033 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7034 | sed 's/^/| /' conftest.$ac_ext >&5 |
7035 | ||
7036 | ( exit $ac_status ) | |
7037 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7038 | fi | |
7a197a62 | 7039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7040 | fi |
7a197a62 AK |
7041 | |
7042 | ||
ad6254c5 AK |
7043 | else |
7044 | # If the `ln -s' command failed, then we probably don't even | |
7045 | # have an lstat function. | |
7046 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7047 | fi | |
7048 | rm -f conftest.sym conftest.file | |
7049 | ||
7050 | fi | |
68f2de6d AK |
7051 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7052 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7053 | |
7054 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7055 | ||
7056 | cat >>confdefs.h <<_ACEOF | |
7057 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7058 | _ACEOF | |
7059 | ||
7060 | ||
7061 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7062 | case " $LIBOBJS " in |
8a2fc586 | 7063 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7064 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7065 | ;; | |
8a2fc586 AK |
7066 | esac |
7067 | ||
ad6254c5 AK |
7068 | fi |
7069 | ||
68f2de6d AK |
7070 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7071 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7072 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
68f2de6d | 7073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7074 | else |
7075 | if test "$cross_compiling" = yes; then | |
7076 | ac_cv_func_lstat_empty_string_bug=yes | |
7077 | else | |
7078 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7079 | /* confdefs.h. */ |
7080 | _ACEOF | |
7081 | cat confdefs.h >>conftest.$ac_ext | |
7082 | cat >>conftest.$ac_ext <<_ACEOF | |
7083 | /* end confdefs.h. */ | |
7084 | $ac_includes_default | |
7085 | int | |
7086 | main () | |
7087 | { | |
7088 | struct stat sbuf; | |
7a197a62 | 7089 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7090 | ; |
7091 | return 0; | |
7092 | } | |
7093 | _ACEOF | |
7094 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7095 | if { (ac_try="$ac_link" |
7096 | case "(($ac_try" in | |
7097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7098 | *) ac_try_echo=$ac_try;; | |
7099 | esac | |
68f2de6d | 7100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7101 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7102 | ac_status=$? |
68f2de6d | 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7105 | { (case "(($ac_try" in |
7106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7107 | *) ac_try_echo=$ac_try;; | |
7108 | esac | |
68f2de6d | 7109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7110 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7111 | ac_status=$? |
68f2de6d | 7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7113 | (exit $ac_status); }; }; then |
7a197a62 | 7114 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7115 | else |
68f2de6d AK |
7116 | echo "$as_me: program exited with status $ac_status" >&5 |
7117 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7118 | sed 's/^/| /' conftest.$ac_ext >&5 |
7119 | ||
7120 | ( exit $ac_status ) | |
7a197a62 | 7121 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7122 | fi |
7a197a62 | 7123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7124 | fi |
7a197a62 AK |
7125 | |
7126 | ||
ad6254c5 | 7127 | fi |
68f2de6d AK |
7128 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7129 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7130 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7131 | case " $LIBOBJS " in |
8a2fc586 | 7132 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7133 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7134 | ;; | |
8a2fc586 AK |
7135 | esac |
7136 | ||
ad6254c5 AK |
7137 | |
7138 | cat >>confdefs.h <<_ACEOF | |
7139 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7140 | _ACEOF | |
7141 | ||
7142 | fi | |
7143 | ||
7144 | ||
7145 | for ac_header in stdlib.h | |
7146 | do | |
68f2de6d | 7147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7149 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7153 | fi |
68f2de6d AK |
7154 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7156 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7157 | else |
7158 | # Is the header compilable? | |
68f2de6d AK |
7159 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7160 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7161 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7162 | /* confdefs.h. */ |
7163 | _ACEOF | |
7164 | cat confdefs.h >>conftest.$ac_ext | |
7165 | cat >>conftest.$ac_ext <<_ACEOF | |
7166 | /* end confdefs.h. */ | |
7167 | $ac_includes_default | |
7168 | #include <$ac_header> | |
7169 | _ACEOF | |
7170 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7171 | if { (ac_try="$ac_compile" |
7172 | case "(($ac_try" in | |
7173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7174 | *) ac_try_echo=$ac_try;; | |
7175 | esac | |
68f2de6d | 7176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7177 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7178 | ac_status=$? |
8a2fc586 AK |
7179 | grep -v '^ *+' conftest.er1 >conftest.err |
7180 | rm -f conftest.er1 | |
7181 | cat conftest.err >&5 | |
68f2de6d | 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7183 | (exit $ac_status); } && { |
7184 | test -z "$ac_c_werror_flag" || | |
7185 | test ! -s conftest.err | |
7186 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7187 | ac_header_compiler=yes |
7188 | else | |
68f2de6d | 7189 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7190 | sed 's/^/| /' conftest.$ac_ext >&5 |
7191 | ||
7a197a62 | 7192 | ac_header_compiler=no |
ad6254c5 | 7193 | fi |
7a197a62 AK |
7194 | |
7195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7196 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7197 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7198 | |
7199 | # Is the header present? | |
68f2de6d AK |
7200 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7201 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7202 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7203 | /* confdefs.h. */ |
7204 | _ACEOF | |
7205 | cat confdefs.h >>conftest.$ac_ext | |
7206 | cat >>conftest.$ac_ext <<_ACEOF | |
7207 | /* end confdefs.h. */ | |
7208 | #include <$ac_header> | |
7209 | _ACEOF | |
7a197a62 AK |
7210 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7211 | case "(($ac_try" in | |
7212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7213 | *) ac_try_echo=$ac_try;; | |
7214 | esac | |
68f2de6d | 7215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7216 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7217 | ac_status=$? |
7218 | grep -v '^ *+' conftest.er1 >conftest.err | |
7219 | rm -f conftest.er1 | |
7220 | cat conftest.err >&5 | |
68f2de6d | 7221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7222 | (exit $ac_status); } >/dev/null && { |
7223 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7224 | test ! -s conftest.err | |
7225 | }; then | |
ad6254c5 AK |
7226 | ac_header_preproc=yes |
7227 | else | |
68f2de6d | 7228 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7229 | sed 's/^/| /' conftest.$ac_ext >&5 |
7230 | ||
7231 | ac_header_preproc=no | |
7232 | fi | |
7a197a62 | 7233 | |
ad6254c5 | 7234 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7235 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7236 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7237 | |
7238 | # So? What about this header? | |
8a2fc586 AK |
7239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7240 | yes:no: ) | |
68f2de6d AK |
7241 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7244 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7245 | ac_header_preproc=yes |
ad6254c5 | 7246 | ;; |
8a2fc586 | 7247 | no:yes:* ) |
68f2de6d AK |
7248 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7249 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7250 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7251 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7252 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7253 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7254 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7255 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7257 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7258 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7259 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7260 | |
ad6254c5 AK |
7261 | ;; |
7262 | esac | |
68f2de6d AK |
7263 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7267 | else |
8a2fc586 | 7268 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7269 | fi |
68f2de6d AK |
7270 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7271 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7272 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7273 | |
7274 | fi | |
68f2de6d | 7275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7276 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7278 | _ACEOF |
7279 | ||
7280 | fi | |
7281 | ||
7282 | done | |
7283 | ||
68f2de6d AK |
7284 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7285 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7286 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
68f2de6d | 7287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7288 | else |
7289 | if test "$cross_compiling" = yes; then | |
7290 | ac_cv_func_malloc_0_nonnull=no | |
7291 | else | |
7292 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7293 | /* confdefs.h. */ |
7294 | _ACEOF | |
7295 | cat confdefs.h >>conftest.$ac_ext | |
7296 | cat >>conftest.$ac_ext <<_ACEOF | |
7297 | /* end confdefs.h. */ | |
25fbec5b | 7298 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7299 | # include <stdlib.h> |
7300 | #else | |
7301 | char *malloc (); | |
7302 | #endif | |
7303 | ||
7304 | int | |
7305 | main () | |
7306 | { | |
7a197a62 | 7307 | return ! malloc (0); |
ad6254c5 AK |
7308 | ; |
7309 | return 0; | |
7310 | } | |
7311 | _ACEOF | |
7312 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7313 | if { (ac_try="$ac_link" |
7314 | case "(($ac_try" in | |
7315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7316 | *) ac_try_echo=$ac_try;; | |
7317 | esac | |
68f2de6d | 7318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7319 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7320 | ac_status=$? |
68f2de6d | 7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7323 | { (case "(($ac_try" in |
7324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7325 | *) ac_try_echo=$ac_try;; | |
7326 | esac | |
68f2de6d | 7327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7328 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7329 | ac_status=$? |
68f2de6d | 7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7331 | (exit $ac_status); }; }; then |
7332 | ac_cv_func_malloc_0_nonnull=yes | |
7333 | else | |
68f2de6d AK |
7334 | echo "$as_me: program exited with status $ac_status" >&5 |
7335 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7336 | sed 's/^/| /' conftest.$ac_ext >&5 |
7337 | ||
7338 | ( exit $ac_status ) | |
7339 | ac_cv_func_malloc_0_nonnull=no | |
7340 | fi | |
7a197a62 | 7341 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7342 | fi |
7a197a62 AK |
7343 | |
7344 | ||
ad6254c5 | 7345 | fi |
68f2de6d AK |
7346 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7347 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7348 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7349 | ||
7350 | cat >>confdefs.h <<\_ACEOF | |
7351 | #define HAVE_MALLOC 1 | |
7352 | _ACEOF | |
7353 | ||
7354 | else | |
7355 | cat >>confdefs.h <<\_ACEOF | |
7356 | #define HAVE_MALLOC 0 | |
7357 | _ACEOF | |
7358 | ||
7a197a62 | 7359 | case " $LIBOBJS " in |
8a2fc586 | 7360 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7361 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7362 | ;; | |
8a2fc586 AK |
7363 | esac |
7364 | ||
ad6254c5 AK |
7365 | |
7366 | cat >>confdefs.h <<\_ACEOF | |
7367 | #define malloc rpl_malloc | |
7368 | _ACEOF | |
7369 | ||
7370 | fi | |
7371 | ||
7372 | ||
7373 | ||
68f2de6d AK |
7374 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7375 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7376 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
68f2de6d | 7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7378 | else |
7379 | if test "$cross_compiling" = yes; then | |
7380 | ac_cv_func_memcmp_working=no | |
7381 | else | |
7382 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7383 | /* confdefs.h. */ |
7384 | _ACEOF | |
7385 | cat confdefs.h >>conftest.$ac_ext | |
7386 | cat >>conftest.$ac_ext <<_ACEOF | |
7387 | /* end confdefs.h. */ | |
8a2fc586 | 7388 | $ac_includes_default |
ad6254c5 AK |
7389 | int |
7390 | main () | |
7391 | { | |
7392 | ||
7393 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7394 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7395 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7396 | return 1; |
ad6254c5 AK |
7397 | |
7398 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7399 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7400 | William Lewis provided this test program. */ | |
7401 | { | |
7402 | char foo[21]; | |
7403 | char bar[21]; | |
7404 | int i; | |
7405 | for (i = 0; i < 4; i++) | |
7406 | { | |
8a2fc586 AK |
7407 | char *a = foo + i; |
7408 | char *b = bar + i; | |
7409 | strcpy (a, "--------01111111"); | |
7410 | strcpy (b, "--------10000000"); | |
7411 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7412 | return 1; |
ad6254c5 | 7413 | } |
7a197a62 | 7414 | return 0; |
ad6254c5 AK |
7415 | } |
7416 | ||
7417 | ; | |
7418 | return 0; | |
7419 | } | |
7420 | _ACEOF | |
7421 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7422 | if { (ac_try="$ac_link" |
7423 | case "(($ac_try" in | |
7424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7425 | *) ac_try_echo=$ac_try;; | |
7426 | esac | |
68f2de6d | 7427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7428 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7429 | ac_status=$? |
68f2de6d | 7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7432 | { (case "(($ac_try" in |
7433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7434 | *) ac_try_echo=$ac_try;; | |
7435 | esac | |
68f2de6d | 7436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7437 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7438 | ac_status=$? |
68f2de6d | 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7440 | (exit $ac_status); }; }; then |
7441 | ac_cv_func_memcmp_working=yes | |
7442 | else | |
68f2de6d AK |
7443 | echo "$as_me: program exited with status $ac_status" >&5 |
7444 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7445 | sed 's/^/| /' conftest.$ac_ext >&5 |
7446 | ||
7447 | ( exit $ac_status ) | |
7448 | ac_cv_func_memcmp_working=no | |
7449 | fi | |
7a197a62 | 7450 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7451 | fi |
7a197a62 AK |
7452 | |
7453 | ||
ad6254c5 | 7454 | fi |
68f2de6d AK |
7455 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7456 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7457 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7458 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7459 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7460 | ;; | |
8a2fc586 AK |
7461 | esac |
7462 | ||
ad6254c5 AK |
7463 | |
7464 | ||
7465 | ||
7466 | for ac_header in stdlib.h unistd.h | |
7467 | do | |
68f2de6d | 7468 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7469 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7470 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7472 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7474 | fi |
68f2de6d AK |
7475 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7476 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7477 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7478 | else |
7479 | # Is the header compilable? | |
68f2de6d AK |
7480 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7481 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7482 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7483 | /* confdefs.h. */ |
7484 | _ACEOF | |
7485 | cat confdefs.h >>conftest.$ac_ext | |
7486 | cat >>conftest.$ac_ext <<_ACEOF | |
7487 | /* end confdefs.h. */ | |
7488 | $ac_includes_default | |
7489 | #include <$ac_header> | |
7490 | _ACEOF | |
7491 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7492 | if { (ac_try="$ac_compile" |
7493 | case "(($ac_try" in | |
7494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7495 | *) ac_try_echo=$ac_try;; | |
7496 | esac | |
68f2de6d | 7497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7498 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7499 | ac_status=$? |
8a2fc586 AK |
7500 | grep -v '^ *+' conftest.er1 >conftest.err |
7501 | rm -f conftest.er1 | |
7502 | cat conftest.err >&5 | |
68f2de6d | 7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7504 | (exit $ac_status); } && { |
7505 | test -z "$ac_c_werror_flag" || | |
7506 | test ! -s conftest.err | |
7507 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7508 | ac_header_compiler=yes |
7509 | else | |
68f2de6d | 7510 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7511 | sed 's/^/| /' conftest.$ac_ext >&5 |
7512 | ||
7a197a62 | 7513 | ac_header_compiler=no |
ad6254c5 | 7514 | fi |
7a197a62 AK |
7515 | |
7516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7517 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7518 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7519 | |
7520 | # Is the header present? | |
68f2de6d AK |
7521 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7522 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7523 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7524 | /* confdefs.h. */ |
7525 | _ACEOF | |
7526 | cat confdefs.h >>conftest.$ac_ext | |
7527 | cat >>conftest.$ac_ext <<_ACEOF | |
7528 | /* end confdefs.h. */ | |
7529 | #include <$ac_header> | |
7530 | _ACEOF | |
7a197a62 AK |
7531 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7532 | case "(($ac_try" in | |
7533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7534 | *) ac_try_echo=$ac_try;; | |
7535 | esac | |
68f2de6d | 7536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7538 | ac_status=$? |
7539 | grep -v '^ *+' conftest.er1 >conftest.err | |
7540 | rm -f conftest.er1 | |
7541 | cat conftest.err >&5 | |
68f2de6d | 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7543 | (exit $ac_status); } >/dev/null && { |
7544 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7545 | test ! -s conftest.err | |
7546 | }; then | |
ad6254c5 AK |
7547 | ac_header_preproc=yes |
7548 | else | |
68f2de6d | 7549 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7550 | sed 's/^/| /' conftest.$ac_ext >&5 |
7551 | ||
7552 | ac_header_preproc=no | |
7553 | fi | |
7a197a62 | 7554 | |
ad6254c5 | 7555 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7556 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7557 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7558 | |
7559 | # So? What about this header? | |
8a2fc586 AK |
7560 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7561 | yes:no: ) | |
68f2de6d AK |
7562 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7563 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7565 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7566 | ac_header_preproc=yes |
ad6254c5 | 7567 | ;; |
8a2fc586 | 7568 | no:yes:* ) |
68f2de6d AK |
7569 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7570 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7571 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7572 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7573 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7574 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7575 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7576 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7578 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7579 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7580 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7581 | |
ad6254c5 AK |
7582 | ;; |
7583 | esac | |
68f2de6d AK |
7584 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7588 | else |
8a2fc586 | 7589 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7590 | fi |
68f2de6d AK |
7591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7593 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7594 | |
7595 | fi | |
68f2de6d | 7596 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7597 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7598 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7599 | _ACEOF |
7600 | ||
7601 | fi | |
7602 | ||
7603 | done | |
7604 | ||
7605 | ||
7606 | for ac_func in getpagesize | |
7607 | do | |
68f2de6d AK |
7608 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7609 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7610 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7611 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7613 | else |
7614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7615 | /* confdefs.h. */ |
7616 | _ACEOF | |
7617 | cat confdefs.h >>conftest.$ac_ext | |
7618 | cat >>conftest.$ac_ext <<_ACEOF | |
7619 | /* end confdefs.h. */ | |
8a2fc586 AK |
7620 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7621 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7622 | #define $ac_func innocuous_$ac_func | |
7623 | ||
ad6254c5 AK |
7624 | /* System header to define __stub macros and hopefully few prototypes, |
7625 | which can conflict with char $ac_func (); below. | |
7626 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7627 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7628 | |
ad6254c5 AK |
7629 | #ifdef __STDC__ |
7630 | # include <limits.h> | |
7631 | #else | |
7632 | # include <assert.h> | |
7633 | #endif | |
8a2fc586 AK |
7634 | |
7635 | #undef $ac_func | |
7636 | ||
7a197a62 AK |
7637 | /* Override any GCC internal prototype to avoid an error. |
7638 | Use char because int might match the return type of a GCC | |
7639 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7640 | #ifdef __cplusplus |
7641 | extern "C" | |
ad6254c5 | 7642 | #endif |
ad6254c5 AK |
7643 | char $ac_func (); |
7644 | /* The GNU C library defines this for functions which it implements | |
7645 | to always fail with ENOSYS. Some functions are actually named | |
7646 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7647 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7648 | choke me |
ad6254c5 AK |
7649 | #endif |
7650 | ||
7651 | int | |
7652 | main () | |
7653 | { | |
7a197a62 | 7654 | return $ac_func (); |
ad6254c5 AK |
7655 | ; |
7656 | return 0; | |
7657 | } | |
7658 | _ACEOF | |
7659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7660 | if { (ac_try="$ac_link" |
7661 | case "(($ac_try" in | |
7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7663 | *) ac_try_echo=$ac_try;; | |
7664 | esac | |
68f2de6d | 7665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7666 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7667 | ac_status=$? |
8a2fc586 AK |
7668 | grep -v '^ *+' conftest.er1 >conftest.err |
7669 | rm -f conftest.er1 | |
7670 | cat conftest.err >&5 | |
68f2de6d | 7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7672 | (exit $ac_status); } && { |
7673 | test -z "$ac_c_werror_flag" || | |
7674 | test ! -s conftest.err | |
68f2de6d AK |
7675 | } && test -s conftest$ac_exeext && |
7676 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7677 | eval "$as_ac_var=yes" |
7678 | else | |
68f2de6d | 7679 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7680 | sed 's/^/| /' conftest.$ac_ext >&5 |
7681 | ||
7a197a62 | 7682 | eval "$as_ac_var=no" |
ad6254c5 | 7683 | fi |
7a197a62 | 7684 | |
25fbec5b | 7685 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7686 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7687 | fi |
68f2de6d AK |
7688 | ac_res=`eval echo '${'$as_ac_var'}'` |
7689 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7690 | echo "${ECHO_T}$ac_res" >&6; } | |
7691 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7692 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7694 | _ACEOF |
7695 | ||
7696 | fi | |
7697 | done | |
7698 | ||
68f2de6d AK |
7699 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7700 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7701 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
68f2de6d | 7702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7703 | else |
7704 | if test "$cross_compiling" = yes; then | |
7705 | ac_cv_func_mmap_fixed_mapped=no | |
7706 | else | |
7707 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7708 | /* confdefs.h. */ |
7709 | _ACEOF | |
7710 | cat confdefs.h >>conftest.$ac_ext | |
7711 | cat >>conftest.$ac_ext <<_ACEOF | |
7712 | /* end confdefs.h. */ | |
7713 | $ac_includes_default | |
7714 | /* malloc might have been renamed as rpl_malloc. */ | |
7715 | #undef malloc | |
7716 | ||
7717 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7718 | Here is a matrix of mmap possibilities: | |
7719 | mmap private not fixed | |
7720 | mmap private fixed at somewhere currently unmapped | |
7721 | mmap private fixed at somewhere already mapped | |
7722 | mmap shared not fixed | |
7723 | mmap shared fixed at somewhere currently unmapped | |
7724 | mmap shared fixed at somewhere already mapped | |
7725 | For private mappings, we should verify that changes cannot be read() | |
7726 | back from the file, nor mmap's back from the file at a different | |
7727 | address. (There have been systems where private was not correctly | |
7728 | implemented like the infamous i386 svr4.0, and systems where the | |
7729 | VM page cache was not coherent with the file system buffer cache | |
7730 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7731 | For shared mappings, we should conversely verify that changes get | |
7732 | propagated back to all the places they're supposed to be. | |
7733 | ||
7734 | Grep wants private fixed already mapped. | |
7735 | The main things grep needs to know about mmap are: | |
7736 | * does it exist and is it safe to write into the mmap'd area | |
7737 | * how to use it (BSD variants) */ | |
7738 | ||
7739 | #include <fcntl.h> | |
7740 | #include <sys/mman.h> | |
7741 | ||
25fbec5b | 7742 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7743 | char *malloc (); |
7744 | #endif | |
7745 | ||
7746 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7747 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7748 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7749 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7750 | # define HAVE_SYS_PARAM_H 1 |
7751 | # endif | |
7752 | ||
7753 | # ifdef _SC_PAGESIZE | |
7754 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7755 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7756 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7757 | # include <sys/param.h> |
7758 | # ifdef EXEC_PAGESIZE | |
7759 | # define getpagesize() EXEC_PAGESIZE | |
7760 | # else /* no EXEC_PAGESIZE */ | |
7761 | # ifdef NBPG | |
7762 | # define getpagesize() NBPG * CLSIZE | |
7763 | # ifndef CLSIZE | |
7764 | # define CLSIZE 1 | |
7765 | # endif /* no CLSIZE */ | |
7766 | # else /* no NBPG */ | |
7767 | # ifdef NBPC | |
7768 | # define getpagesize() NBPC | |
7769 | # else /* no NBPC */ | |
7770 | # ifdef PAGESIZE | |
7771 | # define getpagesize() PAGESIZE | |
7772 | # endif /* PAGESIZE */ | |
7773 | # endif /* no NBPC */ | |
7774 | # endif /* no NBPG */ | |
7775 | # endif /* no EXEC_PAGESIZE */ | |
7776 | # else /* no HAVE_SYS_PARAM_H */ | |
7777 | # define getpagesize() 8192 /* punt totally */ | |
7778 | # endif /* no HAVE_SYS_PARAM_H */ | |
7779 | # endif /* no _SC_PAGESIZE */ | |
7780 | ||
7781 | #endif /* no HAVE_GETPAGESIZE */ | |
7782 | ||
7783 | int | |
7784 | main () | |
7785 | { | |
7786 | char *data, *data2, *data3; | |
7787 | int i, pagesize; | |
7788 | int fd; | |
7789 | ||
7790 | pagesize = getpagesize (); | |
7791 | ||
7792 | /* First, make a file with some known garbage in it. */ | |
7793 | data = (char *) malloc (pagesize); | |
7794 | if (!data) | |
7a197a62 | 7795 | return 1; |
ad6254c5 AK |
7796 | for (i = 0; i < pagesize; ++i) |
7797 | *(data + i) = rand (); | |
7798 | umask (0); | |
7799 | fd = creat ("conftest.mmap", 0600); | |
7800 | if (fd < 0) | |
7a197a62 | 7801 | return 1; |
ad6254c5 | 7802 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7803 | return 1; |
ad6254c5 AK |
7804 | close (fd); |
7805 | ||
7806 | /* Next, try to mmap the file at a fixed address which already has | |
7807 | something else allocated at it. If we can, also make sure that | |
7808 | we see the same garbage. */ | |
7809 | fd = open ("conftest.mmap", O_RDWR); | |
7810 | if (fd < 0) | |
7a197a62 | 7811 | return 1; |
ad6254c5 AK |
7812 | data2 = (char *) malloc (2 * pagesize); |
7813 | if (!data2) | |
7a197a62 AK |
7814 | return 1; |
7815 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7816 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7817 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7818 | return 1; |
ad6254c5 AK |
7819 | for (i = 0; i < pagesize; ++i) |
7820 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7821 | return 1; |
ad6254c5 AK |
7822 | |
7823 | /* Finally, make sure that changes to the mapped area do not | |
7824 | percolate back to the file as seen by read(). (This is a bug on | |
7825 | some variants of i386 svr4.0.) */ | |
7826 | for (i = 0; i < pagesize; ++i) | |
7827 | *(data2 + i) = *(data2 + i) + 1; | |
7828 | data3 = (char *) malloc (pagesize); | |
7829 | if (!data3) | |
7a197a62 | 7830 | return 1; |
ad6254c5 | 7831 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7832 | return 1; |
ad6254c5 AK |
7833 | for (i = 0; i < pagesize; ++i) |
7834 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7835 | return 1; |
ad6254c5 | 7836 | close (fd); |
7a197a62 | 7837 | return 0; |
ad6254c5 AK |
7838 | } |
7839 | _ACEOF | |
7840 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7841 | if { (ac_try="$ac_link" |
7842 | case "(($ac_try" in | |
7843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7844 | *) ac_try_echo=$ac_try;; | |
7845 | esac | |
68f2de6d | 7846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7847 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7848 | ac_status=$? |
68f2de6d | 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7851 | { (case "(($ac_try" in |
7852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7853 | *) ac_try_echo=$ac_try;; | |
7854 | esac | |
68f2de6d | 7855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7856 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7857 | ac_status=$? |
68f2de6d | 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7859 | (exit $ac_status); }; }; then |
7860 | ac_cv_func_mmap_fixed_mapped=yes | |
7861 | else | |
68f2de6d AK |
7862 | echo "$as_me: program exited with status $ac_status" >&5 |
7863 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 |
7865 | ||
7866 | ( exit $ac_status ) | |
7867 | ac_cv_func_mmap_fixed_mapped=no | |
7868 | fi | |
7a197a62 | 7869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7870 | fi |
7a197a62 AK |
7871 | |
7872 | ||
ad6254c5 | 7873 | fi |
68f2de6d AK |
7874 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7875 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7876 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7877 | ||
7878 | cat >>confdefs.h <<\_ACEOF | |
7879 | #define HAVE_MMAP 1 | |
7880 | _ACEOF | |
7881 | ||
7882 | fi | |
7883 | rm -f conftest.mmap | |
7884 | ||
68f2de6d AK |
7885 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7886 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7887 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
68f2de6d | 7888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7889 | else |
7890 | if test "$cross_compiling" = yes; then | |
7891 | ac_cv_func_stat_empty_string_bug=yes | |
7892 | else | |
7893 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7894 | /* confdefs.h. */ |
7895 | _ACEOF | |
7896 | cat confdefs.h >>conftest.$ac_ext | |
7897 | cat >>conftest.$ac_ext <<_ACEOF | |
7898 | /* end confdefs.h. */ | |
7899 | $ac_includes_default | |
7900 | int | |
7901 | main () | |
7902 | { | |
7903 | struct stat sbuf; | |
7a197a62 | 7904 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7905 | ; |
7906 | return 0; | |
7907 | } | |
7908 | _ACEOF | |
7909 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7910 | if { (ac_try="$ac_link" |
7911 | case "(($ac_try" in | |
7912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7913 | *) ac_try_echo=$ac_try;; | |
7914 | esac | |
68f2de6d | 7915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7916 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7917 | ac_status=$? |
68f2de6d | 7918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7920 | { (case "(($ac_try" in |
7921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7922 | *) ac_try_echo=$ac_try;; | |
7923 | esac | |
68f2de6d | 7924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7925 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7926 | ac_status=$? |
68f2de6d | 7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7928 | (exit $ac_status); }; }; then |
7a197a62 | 7929 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7930 | else |
68f2de6d AK |
7931 | echo "$as_me: program exited with status $ac_status" >&5 |
7932 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7933 | sed 's/^/| /' conftest.$ac_ext >&5 |
7934 | ||
7935 | ( exit $ac_status ) | |
7a197a62 | 7936 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7937 | fi |
7a197a62 | 7938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7939 | fi |
7a197a62 AK |
7940 | |
7941 | ||
ad6254c5 | 7942 | fi |
68f2de6d AK |
7943 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7944 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7945 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7946 | case " $LIBOBJS " in |
8a2fc586 | 7947 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7948 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7949 | ;; | |
8a2fc586 AK |
7950 | esac |
7951 | ||
ad6254c5 AK |
7952 | |
7953 | cat >>confdefs.h <<_ACEOF | |
7954 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7955 | _ACEOF | |
7956 | ||
7957 | fi | |
7958 | ||
68f2de6d AK |
7959 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7960 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7961 | if test "${ac_cv_func_strtod+set}" = set; then |
68f2de6d | 7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7963 | else |
7964 | if test "$cross_compiling" = yes; then | |
7965 | ac_cv_func_strtod=no | |
7966 | else | |
7967 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7968 | /* confdefs.h. */ |
7969 | _ACEOF | |
7970 | cat confdefs.h >>conftest.$ac_ext | |
7971 | cat >>conftest.$ac_ext <<_ACEOF | |
7972 | /* end confdefs.h. */ | |
7973 | ||
7a197a62 AK |
7974 | $ac_includes_default |
7975 | #ifndef strtod | |
ad6254c5 | 7976 | double strtod (); |
7a197a62 | 7977 | #endif |
ad6254c5 AK |
7978 | int |
7979 | main() | |
7980 | { | |
7981 | { | |
7982 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7983 | char *string = " +69"; | |
7984 | char *term; | |
7985 | double value; | |
7986 | value = strtod (string, &term); | |
7987 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7988 | return 1; |
ad6254c5 AK |
7989 | } |
7990 | ||
7991 | { | |
7992 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7993 | terminating character under some conditions. */ | |
7994 | char *string = "NaN"; | |
7995 | char *term; | |
7996 | strtod (string, &term); | |
7997 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7998 | return 1; |
ad6254c5 | 7999 | } |
7a197a62 | 8000 | return 0; |
ad6254c5 AK |
8001 | } |
8002 | ||
8003 | _ACEOF | |
8004 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8005 | if { (ac_try="$ac_link" |
8006 | case "(($ac_try" in | |
8007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8008 | *) ac_try_echo=$ac_try;; | |
8009 | esac | |
68f2de6d | 8010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8011 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8012 | ac_status=$? |
68f2de6d | 8013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8015 | { (case "(($ac_try" in |
8016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8017 | *) ac_try_echo=$ac_try;; | |
8018 | esac | |
68f2de6d | 8019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8020 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8021 | ac_status=$? |
68f2de6d | 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8023 | (exit $ac_status); }; }; then |
8024 | ac_cv_func_strtod=yes | |
8025 | else | |
68f2de6d AK |
8026 | echo "$as_me: program exited with status $ac_status" >&5 |
8027 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8028 | sed 's/^/| /' conftest.$ac_ext >&5 |
8029 | ||
8030 | ( exit $ac_status ) | |
8031 | ac_cv_func_strtod=no | |
8032 | fi | |
7a197a62 | 8033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8034 | fi |
7a197a62 AK |
8035 | |
8036 | ||
ad6254c5 | 8037 | fi |
68f2de6d AK |
8038 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8039 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8040 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8041 | case " $LIBOBJS " in |
8a2fc586 | 8042 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8043 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8044 | ;; | |
8a2fc586 AK |
8045 | esac |
8046 | ||
68f2de6d AK |
8047 | { echo "$as_me:$LINENO: checking for pow" >&5 |
8048 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 8049 | if test "${ac_cv_func_pow+set}" = set; then |
68f2de6d | 8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8051 | else |
8052 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8053 | /* confdefs.h. */ |
8054 | _ACEOF | |
8055 | cat confdefs.h >>conftest.$ac_ext | |
8056 | cat >>conftest.$ac_ext <<_ACEOF | |
8057 | /* end confdefs.h. */ | |
8a2fc586 AK |
8058 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8060 | #define pow innocuous_pow | |
8061 | ||
ad6254c5 AK |
8062 | /* System header to define __stub macros and hopefully few prototypes, |
8063 | which can conflict with char pow (); below. | |
8064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8065 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8066 | |
ad6254c5 AK |
8067 | #ifdef __STDC__ |
8068 | # include <limits.h> | |
8069 | #else | |
8070 | # include <assert.h> | |
8071 | #endif | |
8a2fc586 AK |
8072 | |
8073 | #undef pow | |
8074 | ||
7a197a62 AK |
8075 | /* Override any GCC internal prototype to avoid an error. |
8076 | Use char because int might match the return type of a GCC | |
8077 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8078 | #ifdef __cplusplus |
8079 | extern "C" | |
ad6254c5 | 8080 | #endif |
ad6254c5 AK |
8081 | char pow (); |
8082 | /* The GNU C library defines this for functions which it implements | |
8083 | to always fail with ENOSYS. Some functions are actually named | |
8084 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8085 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8086 | choke me |
ad6254c5 AK |
8087 | #endif |
8088 | ||
8089 | int | |
8090 | main () | |
8091 | { | |
7a197a62 | 8092 | return pow (); |
ad6254c5 AK |
8093 | ; |
8094 | return 0; | |
8095 | } | |
8096 | _ACEOF | |
8097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8098 | if { (ac_try="$ac_link" |
8099 | case "(($ac_try" in | |
8100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8101 | *) ac_try_echo=$ac_try;; | |
8102 | esac | |
68f2de6d | 8103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8104 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8105 | ac_status=$? |
8a2fc586 AK |
8106 | grep -v '^ *+' conftest.er1 >conftest.err |
8107 | rm -f conftest.er1 | |
8108 | cat conftest.err >&5 | |
68f2de6d | 8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8110 | (exit $ac_status); } && { |
8111 | test -z "$ac_c_werror_flag" || | |
8112 | test ! -s conftest.err | |
68f2de6d AK |
8113 | } && test -s conftest$ac_exeext && |
8114 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8115 | ac_cv_func_pow=yes |
8116 | else | |
68f2de6d | 8117 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8118 | sed 's/^/| /' conftest.$ac_ext >&5 |
8119 | ||
7a197a62 | 8120 | ac_cv_func_pow=no |
ad6254c5 | 8121 | fi |
7a197a62 | 8122 | |
25fbec5b | 8123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8124 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8125 | fi |
68f2de6d AK |
8126 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8127 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8128 | |
8129 | if test $ac_cv_func_pow = no; then | |
68f2de6d AK |
8130 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8131 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8132 | if test "${ac_cv_lib_m_pow+set}" = set; then |
68f2de6d | 8133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8134 | else |
8135 | ac_check_lib_save_LIBS=$LIBS | |
8136 | LIBS="-lm $LIBS" | |
8137 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8138 | /* confdefs.h. */ |
8139 | _ACEOF | |
8140 | cat confdefs.h >>conftest.$ac_ext | |
8141 | cat >>conftest.$ac_ext <<_ACEOF | |
8142 | /* end confdefs.h. */ | |
8143 | ||
7a197a62 AK |
8144 | /* Override any GCC internal prototype to avoid an error. |
8145 | Use char because int might match the return type of a GCC | |
8146 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8147 | #ifdef __cplusplus |
8148 | extern "C" | |
8149 | #endif | |
ad6254c5 AK |
8150 | char pow (); |
8151 | int | |
8152 | main () | |
8153 | { | |
7a197a62 | 8154 | return pow (); |
ad6254c5 AK |
8155 | ; |
8156 | return 0; | |
8157 | } | |
8158 | _ACEOF | |
8159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8160 | if { (ac_try="$ac_link" |
8161 | case "(($ac_try" in | |
8162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8163 | *) ac_try_echo=$ac_try;; | |
8164 | esac | |
68f2de6d | 8165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8166 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8167 | ac_status=$? |
8a2fc586 AK |
8168 | grep -v '^ *+' conftest.er1 >conftest.err |
8169 | rm -f conftest.er1 | |
8170 | cat conftest.err >&5 | |
68f2de6d | 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8172 | (exit $ac_status); } && { |
8173 | test -z "$ac_c_werror_flag" || | |
8174 | test ! -s conftest.err | |
68f2de6d AK |
8175 | } && test -s conftest$ac_exeext && |
8176 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8177 | ac_cv_lib_m_pow=yes |
8178 | else | |
68f2de6d | 8179 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8180 | sed 's/^/| /' conftest.$ac_ext >&5 |
8181 | ||
7a197a62 | 8182 | ac_cv_lib_m_pow=no |
ad6254c5 | 8183 | fi |
7a197a62 | 8184 | |
25fbec5b | 8185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8186 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8187 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8188 | fi |
68f2de6d AK |
8189 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8190 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8191 | if test $ac_cv_lib_m_pow = yes; then |
8192 | POW_LIB=-lm | |
8193 | else | |
68f2de6d AK |
8194 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8195 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8196 | fi |
72b2cb61 | 8197 | |
d0191583 | 8198 | fi |
72b2cb61 | 8199 | |
ad6254c5 AK |
8200 | fi |
8201 | ||
ad6254c5 | 8202 | |
d0191583 JM |
8203 | for ac_func in vprintf |
8204 | do | |
68f2de6d AK |
8205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8206 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8208 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 8209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8210 | else |
d0191583 JM |
8211 | cat >conftest.$ac_ext <<_ACEOF |
8212 | /* confdefs.h. */ | |
8213 | _ACEOF | |
8214 | cat confdefs.h >>conftest.$ac_ext | |
8215 | cat >>conftest.$ac_ext <<_ACEOF | |
8216 | /* end confdefs.h. */ | |
8217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8219 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8220 | |
d0191583 JM |
8221 | /* System header to define __stub macros and hopefully few prototypes, |
8222 | which can conflict with char $ac_func (); below. | |
8223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8224 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8225 | |
d0191583 JM |
8226 | #ifdef __STDC__ |
8227 | # include <limits.h> | |
8228 | #else | |
8229 | # include <assert.h> | |
8230 | #endif | |
ad6254c5 | 8231 | |
d0191583 | 8232 | #undef $ac_func |
72b2cb61 | 8233 | |
d0191583 JM |
8234 | /* Override any GCC internal prototype to avoid an error. |
8235 | Use char because int might match the return type of a GCC | |
8236 | builtin and then its argument prototype would still apply. */ | |
8237 | #ifdef __cplusplus | |
8238 | extern "C" | |
8239 | #endif | |
8240 | char $ac_func (); | |
8241 | /* The GNU C library defines this for functions which it implements | |
8242 | to always fail with ENOSYS. Some functions are actually named | |
8243 | something starting with __ and the normal name is an alias. */ | |
8244 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8245 | choke me | |
8246 | #endif | |
8247 | ||
8248 | int | |
8249 | main () | |
8250 | { | |
8251 | return $ac_func (); | |
8252 | ; | |
8253 | return 0; | |
8254 | } | |
72b2cb61 | 8255 | _ACEOF |
d0191583 JM |
8256 | rm -f conftest.$ac_objext conftest$ac_exeext |
8257 | if { (ac_try="$ac_link" | |
8258 | case "(($ac_try" in | |
8259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8260 | *) ac_try_echo=$ac_try;; | |
8261 | esac | |
68f2de6d | 8262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8263 | (eval "$ac_link") 2>conftest.er1 |
8264 | ac_status=$? | |
8265 | grep -v '^ *+' conftest.er1 >conftest.err | |
8266 | rm -f conftest.er1 | |
8267 | cat conftest.err >&5 | |
68f2de6d | 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8269 | (exit $ac_status); } && { |
8270 | test -z "$ac_c_werror_flag" || | |
8271 | test ! -s conftest.err | |
68f2de6d AK |
8272 | } && test -s conftest$ac_exeext && |
8273 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8274 | eval "$as_ac_var=yes" |
8275 | else | |
68f2de6d | 8276 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8277 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8278 | |
d0191583 | 8279 | eval "$as_ac_var=no" |
ad6254c5 AK |
8280 | fi |
8281 | ||
d0191583 JM |
8282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8283 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8284 | fi |
68f2de6d AK |
8285 | ac_res=`eval echo '${'$as_ac_var'}'` |
8286 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8287 | echo "${ECHO_T}$ac_res" >&6; } | |
8288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8289 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 8290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8291 | _ACEOF |
7a197a62 | 8292 | |
68f2de6d AK |
8293 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8294 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8295 | if test "${ac_cv_func__doprnt+set}" = set; then |
68f2de6d | 8296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8297 | else |
d0191583 JM |
8298 | cat >conftest.$ac_ext <<_ACEOF |
8299 | /* confdefs.h. */ | |
8300 | _ACEOF | |
8301 | cat confdefs.h >>conftest.$ac_ext | |
8302 | cat >>conftest.$ac_ext <<_ACEOF | |
8303 | /* end confdefs.h. */ | |
8304 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8306 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8307 | |
d0191583 JM |
8308 | /* System header to define __stub macros and hopefully few prototypes, |
8309 | which can conflict with char _doprnt (); below. | |
8310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8311 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8312 | |
d0191583 JM |
8313 | #ifdef __STDC__ |
8314 | # include <limits.h> | |
8315 | #else | |
8316 | # include <assert.h> | |
8317 | #endif | |
72b2cb61 | 8318 | |
d0191583 JM |
8319 | #undef _doprnt |
8320 | ||
8321 | /* Override any GCC internal prototype to avoid an error. | |
8322 | Use char because int might match the return type of a GCC | |
8323 | builtin and then its argument prototype would still apply. */ | |
8324 | #ifdef __cplusplus | |
8325 | extern "C" | |
8326 | #endif | |
8327 | char _doprnt (); | |
8328 | /* The GNU C library defines this for functions which it implements | |
8329 | to always fail with ENOSYS. Some functions are actually named | |
8330 | something starting with __ and the normal name is an alias. */ | |
8331 | #if defined __stub__doprnt || defined __stub____doprnt | |
8332 | choke me | |
8333 | #endif | |
8334 | ||
8335 | int | |
8336 | main () | |
8337 | { | |
8338 | return _doprnt (); | |
8339 | ; | |
8340 | return 0; | |
8341 | } | |
72b2cb61 | 8342 | _ACEOF |
d0191583 JM |
8343 | rm -f conftest.$ac_objext conftest$ac_exeext |
8344 | if { (ac_try="$ac_link" | |
8345 | case "(($ac_try" in | |
8346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8347 | *) ac_try_echo=$ac_try;; | |
8348 | esac | |
68f2de6d | 8349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8350 | (eval "$ac_link") 2>conftest.er1 |
8351 | ac_status=$? | |
8352 | grep -v '^ *+' conftest.er1 >conftest.err | |
8353 | rm -f conftest.er1 | |
8354 | cat conftest.err >&5 | |
68f2de6d | 8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8356 | (exit $ac_status); } && { |
8357 | test -z "$ac_c_werror_flag" || | |
8358 | test ! -s conftest.err | |
68f2de6d AK |
8359 | } && test -s conftest$ac_exeext && |
8360 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8361 | ac_cv_func__doprnt=yes |
8362 | else | |
68f2de6d | 8363 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8364 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8365 | |
d0191583 | 8366 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8367 | fi |
8368 | ||
d0191583 JM |
8369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8370 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8371 | fi |
68f2de6d AK |
8372 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8373 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8374 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8375 | |
d0191583 JM |
8376 | cat >>confdefs.h <<\_ACEOF |
8377 | #define HAVE_DOPRNT 1 | |
8378 | _ACEOF | |
ad6254c5 | 8379 | |
7a197a62 AK |
8380 | fi |
8381 | ||
d0191583 JM |
8382 | fi |
8383 | done | |
8b1a3214 | 8384 | |
ad6254c5 | 8385 | |
7a197a62 | 8386 | |
d0191583 | 8387 | ################################################################################ |
ad6254c5 | 8388 | |
ad6254c5 AK |
8389 | |
8390 | ################################################################################ | |
68f2de6d AK |
8391 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8392 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8393 | OWNER="root" |
8394 | ||
8395 | ||
8396 | # Check whether --with-user was given. | |
8397 | if test "${with_user+set}" = set; then | |
8398 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8399 | fi |
8400 | ||
68f2de6d AK |
8401 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8402 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8403 | |
d0191583 JM |
8404 | if test x$OWNER != x; then |
8405 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8406 | fi |
8407 | ||
8408 | ################################################################################ | |
68f2de6d AK |
8409 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8410 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8411 | GROUP="root" |
ad6254c5 | 8412 | |
d0191583 JM |
8413 | # Check whether --with-group was given. |
8414 | if test "${with_group+set}" = set; then | |
8415 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8416 | fi |
8417 | ||
68f2de6d AK |
8418 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8419 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8420 | |
8421 | if test x$GROUP != x; then | |
8422 | GROUP="-g $GROUP" | |
8423 | fi | |
ad6254c5 AK |
8424 | |
8425 | ################################################################################ | |
68f2de6d AK |
8426 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8427 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8428 | # Check whether --enable-lvm1_fallback was given. |
8429 | if test "${enable_lvm1_fallback+set}" = set; then | |
8430 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8431 | else | |
8432 | LVM1_FALLBACK=no | |
7a197a62 AK |
8433 | fi |
8434 | ||
68f2de6d AK |
8435 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8436 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8437 | |
d0191583 | 8438 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8439 | |
8440 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8441 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8442 | _ACEOF |
8443 | ||
ad6254c5 AK |
8444 | fi |
8445 | ||
8446 | ################################################################################ | |
68f2de6d AK |
8447 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8448 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8449 | |
8450 | # Check whether --with-lvm1 was given. | |
8451 | if test "${with_lvm1+set}" = set; then | |
8452 | withval=$with_lvm1; LVM1="$withval" | |
8453 | else | |
8454 | LVM1="internal" | |
7a197a62 AK |
8455 | fi |
8456 | ||
68f2de6d AK |
8457 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8458 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8459 | |
d0191583 | 8460 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
68f2de6d | 8461 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8462 | " >&5 |
68f2de6d | 8463 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8464 | " >&2;} |
8465 | { (exit 1); exit 1; }; } | |
8466 | fi; | |
8467 | ||
8468 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8469 | |
8470 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8471 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8472 | _ACEOF |
8473 | ||
ad6254c5 AK |
8474 | fi |
8475 | ||
8476 | ################################################################################ | |
68f2de6d AK |
8477 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8478 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8479 | |
8480 | # Check whether --with-pool was given. | |
8481 | if test "${with_pool+set}" = set; then | |
8482 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8483 | else |
d0191583 | 8484 | POOL="internal" |
7a197a62 AK |
8485 | fi |
8486 | ||
68f2de6d AK |
8487 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8488 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8489 | |
d0191583 | 8490 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
68f2de6d | 8491 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8492 | " >&5 |
68f2de6d | 8493 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8494 | " >&2;} |
8495 | { (exit 1); exit 1; }; } | |
8496 | fi; | |
7a197a62 | 8497 | |
d0191583 JM |
8498 | if test x$POOL = xinternal; then |
8499 | ||
8500 | cat >>confdefs.h <<\_ACEOF | |
8501 | #define POOL_INTERNAL 1 | |
8502 | _ACEOF | |
8503 | ||
8504 | fi | |
ad6254c5 | 8505 | |
06f62ad1 | 8506 | ################################################################################ |
68f2de6d AK |
8507 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8508 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8509 | |
8510 | # Check whether --with-cluster was given. | |
8511 | if test "${with_cluster+set}" = set; then | |
8512 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8513 | fi |
8514 | ||
68f2de6d AK |
8515 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8516 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8517 | |
d0191583 | 8518 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
68f2de6d | 8519 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8520 | " >&5 |
68f2de6d | 8521 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8522 | " >&2;} |
8523 | { (exit 1); exit 1; }; } | |
d0191583 | 8524 | fi; |
06f62ad1 | 8525 | |
d0191583 | 8526 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8527 | |
8528 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8529 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8530 | _ACEOF |
8531 | ||
15d91f5a | 8532 | fi |
ad6254c5 AK |
8533 | |
8534 | ################################################################################ | |
68f2de6d AK |
8535 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8536 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8537 | |
d0191583 JM |
8538 | # Check whether --with-snapshots was given. |
8539 | if test "${with_snapshots+set}" = set; then | |
8540 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8541 | else | |
8542 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8543 | fi |
8544 | ||
68f2de6d AK |
8545 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8546 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8547 | |
d0191583 | 8548 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
68f2de6d | 8549 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8550 | " >&5 |
68f2de6d | 8551 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8552 | " >&2;} |
8553 | { (exit 1); exit 1; }; } | |
8554 | fi; | |
8555 | ||
8556 | if test x$SNAPSHOTS = xinternal; then | |
8557 | ||
8558 | cat >>confdefs.h <<\_ACEOF | |
8559 | #define SNAPSHOT_INTERNAL 1 | |
8560 | _ACEOF | |
ad6254c5 | 8561 | |
ad6254c5 | 8562 | fi |
7a197a62 | 8563 | |
d0191583 | 8564 | ################################################################################ |
68f2de6d AK |
8565 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8566 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8567 | |
8568 | # Check whether --with-mirrors was given. | |
8569 | if test "${with_mirrors+set}" = set; then | |
8570 | withval=$with_mirrors; MIRRORS="$withval" | |
8571 | else | |
8572 | MIRRORS="internal" | |
ad6254c5 | 8573 | fi |
ad6254c5 | 8574 | |
68f2de6d AK |
8575 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8576 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8577 | |
d0191583 | 8578 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
68f2de6d | 8579 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8580 | " >&5 |
68f2de6d | 8581 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8582 | " >&2;} |
8583 | { (exit 1); exit 1; }; } | |
8584 | fi; | |
ad6254c5 | 8585 | |
d0191583 | 8586 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8587 | |
d0191583 JM |
8588 | cat >>confdefs.h <<\_ACEOF |
8589 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8590 | _ACEOF |
8a2fc586 | 8591 | |
d0191583 | 8592 | fi |
8a2fc586 | 8593 | |
d0191583 | 8594 | ################################################################################ |
68f2de6d AK |
8595 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8596 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8597 | # Check whether --enable-readline was given. |
8598 | if test "${enable_readline+set}" = set; then | |
8599 | enableval=$enable_readline; READLINE=$enableval | |
8600 | else | |
06e459df | 8601 | READLINE=maybe |
d0191583 | 8602 | fi |
8a2fc586 | 8603 | |
68f2de6d AK |
8604 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8605 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8606 | |
d0191583 | 8607 | ################################################################################ |
68f2de6d AK |
8608 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8609 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8610 | # Check whether --enable-realtime was given. |
8611 | if test "${enable_realtime+set}" = set; then | |
8612 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8613 | fi |
ad6254c5 | 8614 | |
68f2de6d AK |
8615 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8616 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8617 | |
8618 | ################################################################################ | |
68f2de6d AK |
8619 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8620 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8621 | |
8622 | # Check whether --with-clvmd was given. | |
8623 | if test "${with_clvmd+set}" = set; then | |
8624 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8625 | else |
d0191583 JM |
8626 | CLVMD="none" |
8627 | fi | |
8a2fc586 | 8628 | |
d0191583 JM |
8629 | if test x$CLVMD = xyes; then |
8630 | CLVMD=all | |
8631 | fi | |
68f2de6d AK |
8632 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8633 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8634 | |
d0191583 JM |
8635 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8636 | CLUSTER=internal | |
8637 | fi | |
8a2fc586 | 8638 | |
d0191583 | 8639 | ################################################################################ |
68f2de6d AK |
8640 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8641 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8642 | # Check whether --enable-debug was given. |
8643 | if test "${enable_debug+set}" = set; then | |
8644 | enableval=$enable_debug; DEBUG=$enableval | |
8645 | else | |
8646 | DEBUG=no | |
8647 | fi | |
8a2fc586 | 8648 | |
68f2de6d AK |
8649 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8650 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8651 | |
d0191583 JM |
8652 | if test x$DEBUG = xyes; then |
8653 | COPTIMISE_FLAG= | |
fc54be10 | 8654 | else |
d0191583 JM |
8655 | CSCOPE_CMD= |
8656 | fi | |
fc54be10 | 8657 | |
d0191583 | 8658 | ################################################################################ |
68f2de6d AK |
8659 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8660 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8661 | |
8662 | # Check whether --with-optimisation was given. | |
8663 | if test "${with_optimisation+set}" = set; then | |
8664 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8665 | fi | |
8666 | ||
68f2de6d AK |
8667 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8668 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8669 | |
8670 | ################################################################################ | |
68f2de6d AK |
8671 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8672 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8673 | # Check whether --enable-profiling was given. |
8674 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8675 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8676 | else |
5556819a | 8677 | PROFILING=no |
fddafd51 ZK |
8678 | fi |
8679 | ||
68f2de6d AK |
8680 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8681 | echo "${ECHO_T}$PROFILING" >&6; } | |
5556819a AK |
8682 | |
8683 | if test "x$PROFILING" = xyes; then | |
8684 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8685 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8686 | set dummy lcov; ac_word=$2 |
68f2de6d AK |
8687 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8689 | if test "${ac_cv_path_LCOV+set}" = set; then |
68f2de6d | 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8691 | else |
8692 | case $LCOV in | |
8693 | [\\/]* | ?:[\\/]*) | |
8694 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8695 | ;; | |
8696 | *) | |
8697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8698 | for as_dir in $PATH | |
8699 | do | |
8700 | IFS=$as_save_IFS | |
8701 | test -z "$as_dir" && as_dir=. | |
8702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8704 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8706 | break 2 |
8707 | fi | |
8708 | done | |
8709 | done | |
8710 | IFS=$as_save_IFS | |
8711 | ||
b145d876 | 8712 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
8713 | ;; |
8714 | esac | |
8715 | fi | |
8716 | LCOV=$ac_cv_path_LCOV | |
8717 | if test -n "$LCOV"; then | |
68f2de6d AK |
8718 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8719 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8720 | else |
68f2de6d AK |
8721 | { echo "$as_me:$LINENO: result: no" >&5 |
8722 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8723 | fi |
8724 | ||
8725 | ||
5556819a | 8726 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8727 | set dummy genhtml; ac_word=$2 |
68f2de6d AK |
8728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8730 | if test "${ac_cv_path_GENHTML+set}" = set; then |
68f2de6d | 8731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8732 | else |
8733 | case $GENHTML in | |
8734 | [\\/]* | ?:[\\/]*) | |
8735 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8736 | ;; | |
8737 | *) | |
8738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8739 | for as_dir in $PATH | |
8740 | do | |
8741 | IFS=$as_save_IFS | |
8742 | test -z "$as_dir" && as_dir=. | |
8743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8745 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8747 | break 2 |
8748 | fi | |
8749 | done | |
8750 | done | |
8751 | IFS=$as_save_IFS | |
8752 | ||
b145d876 | 8753 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
8754 | ;; |
8755 | esac | |
8756 | fi | |
8757 | GENHTML=$ac_cv_path_GENHTML | |
8758 | if test -n "$GENHTML"; then | |
68f2de6d AK |
8759 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8760 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8761 | else |
68f2de6d AK |
8762 | { echo "$as_me:$LINENO: result: no" >&5 |
8763 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8764 | fi |
8765 | ||
8766 | ||
b145d876 | 8767 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
68f2de6d AK |
8768 | { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
8769 | echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
8770 | { (exit 1); exit 1; }; } |
8771 | fi | |
5556819a | 8772 | fi |
d0191583 JM |
8773 | |
8774 | ################################################################################ | |
68f2de6d AK |
8775 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8776 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8777 | # Check whether --enable-devmapper was given. |
8778 | if test "${enable_devmapper+set}" = set; then | |
8779 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8780 | fi |
8781 | ||
68f2de6d AK |
8782 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8783 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8784 | |
8785 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8786 | |
8787 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8788 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8789 | _ACEOF |
8790 | ||
8791 | fi | |
8792 | ||
d0191583 | 8793 | ################################################################################ |
68f2de6d AK |
8794 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8795 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8796 | # Check whether --enable-o_direct was given. |
8797 | if test "${enable_o_direct+set}" = set; then | |
8798 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8799 | fi |
ad6254c5 | 8800 | |
68f2de6d AK |
8801 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8802 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8803 | |
d0191583 | 8804 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8805 | |
d0191583 JM |
8806 | cat >>confdefs.h <<\_ACEOF |
8807 | #define O_DIRECT_SUPPORT 1 | |
8808 | _ACEOF | |
ad6254c5 | 8809 | |
d0191583 | 8810 | fi |
ad6254c5 | 8811 | |
d0191583 | 8812 | ################################################################################ |
68f2de6d AK |
8813 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8814 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8815 | # Check whether --enable-cmdlib was given. |
8816 | if test "${enable_cmdlib+set}" = set; then | |
8817 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8818 | else |
d0191583 JM |
8819 | CMDLIB=no |
8820 | fi | |
8a2fc586 | 8821 | |
68f2de6d AK |
8822 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8823 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8824 | |
2a9a80c9 | 8825 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8826 | && LVM2CMD_LIB=-llvm2cmd \ |
8827 | || LVM2CMD_LIB= | |
8828 | ||
2a9a80c9 | 8829 | |
d0191583 | 8830 | ################################################################################ |
68f2de6d AK |
8831 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8832 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8833 | # Check whether --enable-fsadm was given. |
8834 | if test "${enable_fsadm+set}" = set; then | |
8835 | enableval=$enable_fsadm; FSADM=$enableval | |
8836 | fi | |
8a2fc586 | 8837 | |
68f2de6d AK |
8838 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8839 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8840 | |
d0191583 | 8841 | ################################################################################ |
68f2de6d AK |
8842 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8843 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8844 | # Check whether --enable-dmeventd was given. |
8845 | if test "${enable_dmeventd+set}" = set; then | |
8846 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8847 | fi | |
ad6254c5 | 8848 | |
68f2de6d AK |
8849 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8850 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8851 | |
2a9a80c9 PR |
8852 | if test x$DMEVENTD = xyes; then |
8853 | if test x$MIRRORS != xinternal; then | |
68f2de6d | 8854 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8855 | " >&5 |
68f2de6d | 8856 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8857 | " >&2;} |
d0191583 | 8858 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8859 | fi |
8860 | if test x$CMDLIB = xno; then | |
68f2de6d | 8861 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 8862 | " >&5 |
68f2de6d | 8863 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
8864 | " >&2;} |
8865 | { (exit 1); exit 1; }; } | |
8866 | fi | |
ad6254c5 | 8867 | fi |
7a197a62 | 8868 | |
d0191583 JM |
8869 | if test x$DMEVENTD = xyes; then |
8870 | ||
8871 | cat >>confdefs.h <<\_ACEOF | |
8872 | #define DMEVENTD 1 | |
ad6254c5 AK |
8873 | _ACEOF |
8874 | ||
ad6254c5 | 8875 | fi |
d0191583 JM |
8876 | ################################################################################ |
8877 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8878 | then exec_prefix=""; | |
8879 | fi; | |
ad6254c5 AK |
8880 | |
8881 | ################################################################################ | |
06e459df | 8882 | if test x$READLINE != xno; then |
68f2de6d AK |
8883 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8884 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 8885 | if test "${ac_cv_search_tgetent+set}" = set; then |
68f2de6d | 8886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8887 | else |
8888 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8889 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8890 | /* confdefs.h. */ |
8891 | _ACEOF | |
8892 | cat confdefs.h >>conftest.$ac_ext | |
8893 | cat >>conftest.$ac_ext <<_ACEOF | |
8894 | /* end confdefs.h. */ | |
8895 | ||
7a197a62 AK |
8896 | /* Override any GCC internal prototype to avoid an error. |
8897 | Use char because int might match the return type of a GCC | |
8898 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8899 | #ifdef __cplusplus |
8900 | extern "C" | |
8901 | #endif | |
ad6254c5 AK |
8902 | char tgetent (); |
8903 | int | |
8904 | main () | |
8905 | { | |
7a197a62 | 8906 | return tgetent (); |
ad6254c5 AK |
8907 | ; |
8908 | return 0; | |
8909 | } | |
8910 | _ACEOF | |
7a197a62 AK |
8911 | for ac_lib in '' ncurses curses termcap termlib; do |
8912 | if test -z "$ac_lib"; then | |
8913 | ac_res="none required" | |
8914 | else | |
8915 | ac_res=-l$ac_lib | |
8916 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8917 | fi | |
8918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8919 | if { (ac_try="$ac_link" | |
8920 | case "(($ac_try" in | |
8921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8922 | *) ac_try_echo=$ac_try;; | |
8923 | esac | |
68f2de6d | 8924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8925 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8926 | ac_status=$? |
8a2fc586 AK |
8927 | grep -v '^ *+' conftest.er1 >conftest.err |
8928 | rm -f conftest.er1 | |
8929 | cat conftest.err >&5 | |
68f2de6d | 8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8931 | (exit $ac_status); } && { |
8932 | test -z "$ac_c_werror_flag" || | |
8933 | test ! -s conftest.err | |
68f2de6d AK |
8934 | } && test -s conftest$ac_exeext && |
8935 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 8936 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 8937 | else |
68f2de6d | 8938 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8939 | sed 's/^/| /' conftest.$ac_ext >&5 |
8940 | ||
ad6254c5 | 8941 | |
7a197a62 | 8942 | fi |
ad6254c5 | 8943 | |
25fbec5b | 8944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
8945 | conftest$ac_exeext |
8946 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8947 | break | |
ad6254c5 | 8948 | fi |
7a197a62 AK |
8949 | done |
8950 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8951 | : | |
8952 | else | |
8953 | ac_cv_search_tgetent=no | |
ad6254c5 | 8954 | fi |
7a197a62 | 8955 | rm conftest.$ac_ext |
ad6254c5 AK |
8956 | LIBS=$ac_func_search_save_LIBS |
8957 | fi | |
68f2de6d AK |
8958 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8959 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8960 | ac_res=$ac_cv_search_tgetent |
8961 | if test "$ac_res" != no; then | |
8962 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 8963 | tg_found=yes |
ad6254c5 | 8964 | else |
06e459df JM |
8965 | tg_found=no |
8966 | fi | |
8967 | ||
8968 | test x$READLINE:$tg_found = xyes:no && | |
68f2de6d | 8969 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
8970 | --enable-readline option (which is enabled by default). Either disable readline |
8971 | support with --disable-readline or download and install termcap from: | |
8972 | ftp.gnu.org/gnu/termcap | |
8973 | Note: if you are using precompiled packages you will also need the development | |
8974 | package as well (which may be called termcap-devel or something similar). | |
8975 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8976 | not found either - but you could try installing that as well. | |
8977 | " >&5 | |
68f2de6d | 8978 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8979 | --enable-readline option (which is enabled by default). Either disable readline |
8980 | support with --disable-readline or download and install termcap from: | |
8981 | ftp.gnu.org/gnu/termcap | |
8982 | Note: if you are using precompiled packages you will also need the development | |
8983 | package as well (which may be called termcap-devel or something similar). | |
8984 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8985 | not found either - but you could try installing that as well. | |
8986 | " >&2;} | |
8987 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
8988 | fi |
8989 | ||
8990 | ################################################################################ | |
68f2de6d AK |
8991 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8992 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 8993 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
68f2de6d | 8994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8995 | else |
8996 | ac_check_lib_save_LIBS=$LIBS | |
8997 | LIBS="-ldl $LIBS" | |
8998 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8999 | /* confdefs.h. */ |
9000 | _ACEOF | |
9001 | cat confdefs.h >>conftest.$ac_ext | |
9002 | cat >>conftest.$ac_ext <<_ACEOF | |
9003 | /* end confdefs.h. */ | |
9004 | ||
7a197a62 AK |
9005 | /* Override any GCC internal prototype to avoid an error. |
9006 | Use char because int might match the return type of a GCC | |
9007 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9008 | #ifdef __cplusplus |
9009 | extern "C" | |
9010 | #endif | |
ad6254c5 AK |
9011 | char dlopen (); |
9012 | int | |
9013 | main () | |
9014 | { | |
7a197a62 | 9015 | return dlopen (); |
ad6254c5 AK |
9016 | ; |
9017 | return 0; | |
9018 | } | |
9019 | _ACEOF | |
9020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9021 | if { (ac_try="$ac_link" |
9022 | case "(($ac_try" in | |
9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9024 | *) ac_try_echo=$ac_try;; | |
9025 | esac | |
68f2de6d | 9026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9027 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9028 | ac_status=$? |
8a2fc586 AK |
9029 | grep -v '^ *+' conftest.er1 >conftest.err |
9030 | rm -f conftest.er1 | |
9031 | cat conftest.err >&5 | |
68f2de6d | 9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9033 | (exit $ac_status); } && { |
9034 | test -z "$ac_c_werror_flag" || | |
9035 | test ! -s conftest.err | |
68f2de6d AK |
9036 | } && test -s conftest$ac_exeext && |
9037 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9038 | ac_cv_lib_dl_dlopen=yes |
9039 | else | |
68f2de6d | 9040 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9041 | sed 's/^/| /' conftest.$ac_ext >&5 |
9042 | ||
7a197a62 | 9043 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9044 | fi |
7a197a62 | 9045 | |
25fbec5b | 9046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9047 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9048 | LIBS=$ac_check_lib_save_LIBS |
9049 | fi | |
68f2de6d AK |
9050 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9051 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9052 | if test $ac_cv_lib_dl_dlopen = yes; then |
9053 | HAVE_LIBDL=yes | |
9054 | else | |
9055 | HAVE_LIBDL=no | |
9056 | fi | |
9057 | ||
9058 | ||
7e9e9502 | 9059 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9060 | |
9061 | cat >>confdefs.h <<\_ACEOF | |
9062 | #define HAVE_LIBDL 1 | |
9063 | _ACEOF | |
9064 | ||
ad6254c5 AK |
9065 | LIBS="-ldl $LIBS" |
9066 | else | |
9067 | HAVE_LIBDL=no | |
9068 | fi | |
9069 | ||
9070 | ################################################################################ | |
9071 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9072 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9073 | \) -a "x$STATIC_LINK" = xyes ]; | |
68f2de6d | 9074 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9075 | " >&5 |
68f2de6d | 9076 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9077 | " >&2;} |
9078 | { (exit 1); exit 1; }; } | |
9079 | fi | |
9080 | ||
d0191583 | 9081 | ################################################################################ |
68f2de6d AK |
9082 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9083 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
9084 | # Check whether --enable-static_link was given. |
9085 | if test "${enable_static_link+set}" = set; then | |
9086 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9087 | else | |
9088 | STATIC_LINK=no | |
9089 | fi | |
9090 | ||
68f2de6d AK |
9091 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9092 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
9093 | |
9094 | ################################################################################ | |
68f2de6d AK |
9095 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9096 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9097 | # Check whether --enable-selinux was given. |
9098 | if test "${enable_selinux+set}" = set; then | |
9099 | enableval=$enable_selinux; SELINUX=$enableval | |
9100 | fi | |
9101 | ||
68f2de6d AK |
9102 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9103 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9104 | |
ad6254c5 AK |
9105 | ################################################################################ |
9106 | if test x$SELINUX = xyes; then | |
68f2de6d AK |
9107 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9108 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9109 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
68f2de6d | 9110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9111 | else |
9112 | ac_check_lib_save_LIBS=$LIBS | |
9113 | LIBS="-lsepol $LIBS" | |
9114 | cat >conftest.$ac_ext <<_ACEOF | |
9115 | /* confdefs.h. */ | |
9116 | _ACEOF | |
9117 | cat confdefs.h >>conftest.$ac_ext | |
9118 | cat >>conftest.$ac_ext <<_ACEOF | |
9119 | /* end confdefs.h. */ | |
9120 | ||
7a197a62 AK |
9121 | /* Override any GCC internal prototype to avoid an error. |
9122 | Use char because int might match the return type of a GCC | |
9123 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9124 | #ifdef __cplusplus |
9125 | extern "C" | |
9126 | #endif | |
8a2fc586 AK |
9127 | char sepol_check_context (); |
9128 | int | |
9129 | main () | |
9130 | { | |
7a197a62 | 9131 | return sepol_check_context (); |
8a2fc586 AK |
9132 | ; |
9133 | return 0; | |
9134 | } | |
9135 | _ACEOF | |
9136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9137 | if { (ac_try="$ac_link" |
9138 | case "(($ac_try" in | |
9139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9140 | *) ac_try_echo=$ac_try;; | |
9141 | esac | |
68f2de6d | 9142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9143 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9144 | ac_status=$? |
9145 | grep -v '^ *+' conftest.er1 >conftest.err | |
9146 | rm -f conftest.er1 | |
9147 | cat conftest.err >&5 | |
68f2de6d | 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9149 | (exit $ac_status); } && { |
9150 | test -z "$ac_c_werror_flag" || | |
9151 | test ! -s conftest.err | |
68f2de6d AK |
9152 | } && test -s conftest$ac_exeext && |
9153 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9154 | ac_cv_lib_sepol_sepol_check_context=yes |
9155 | else | |
68f2de6d | 9156 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9157 | sed 's/^/| /' conftest.$ac_ext >&5 |
9158 | ||
7a197a62 | 9159 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9160 | fi |
7a197a62 | 9161 | |
25fbec5b | 9162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9163 | conftest$ac_exeext conftest.$ac_ext |
9164 | LIBS=$ac_check_lib_save_LIBS | |
9165 | fi | |
68f2de6d AK |
9166 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9167 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9168 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9169 | HAVE_SEPOL=yes | |
9170 | else | |
9171 | HAVE_SEPOL=no | |
9172 | fi | |
9173 | ||
8a2fc586 AK |
9174 | |
9175 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9176 | |
9177 | cat >>confdefs.h <<\_ACEOF | |
9178 | #define HAVE_SEPOL 1 | |
9179 | _ACEOF | |
9180 | ||
8a2fc586 AK |
9181 | LIBS="-lsepol $LIBS" |
9182 | fi | |
9183 | ||
68f2de6d AK |
9184 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9185 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9186 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
68f2de6d | 9187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9188 | else |
9189 | ac_check_lib_save_LIBS=$LIBS | |
9190 | LIBS="-lselinux $LIBS" | |
9191 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9192 | /* confdefs.h. */ |
9193 | _ACEOF | |
9194 | cat confdefs.h >>conftest.$ac_ext | |
9195 | cat >>conftest.$ac_ext <<_ACEOF | |
9196 | /* end confdefs.h. */ | |
9197 | ||
7a197a62 AK |
9198 | /* Override any GCC internal prototype to avoid an error. |
9199 | Use char because int might match the return type of a GCC | |
9200 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9201 | #ifdef __cplusplus |
9202 | extern "C" | |
9203 | #endif | |
ad6254c5 AK |
9204 | char is_selinux_enabled (); |
9205 | int | |
9206 | main () | |
9207 | { | |
7a197a62 | 9208 | return is_selinux_enabled (); |
ad6254c5 AK |
9209 | ; |
9210 | return 0; | |
9211 | } | |
9212 | _ACEOF | |
9213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9214 | if { (ac_try="$ac_link" |
9215 | case "(($ac_try" in | |
9216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9217 | *) ac_try_echo=$ac_try;; | |
9218 | esac | |
68f2de6d | 9219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9220 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9221 | ac_status=$? |
8a2fc586 AK |
9222 | grep -v '^ *+' conftest.er1 >conftest.err |
9223 | rm -f conftest.er1 | |
9224 | cat conftest.err >&5 | |
68f2de6d | 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9226 | (exit $ac_status); } && { |
9227 | test -z "$ac_c_werror_flag" || | |
9228 | test ! -s conftest.err | |
68f2de6d AK |
9229 | } && test -s conftest$ac_exeext && |
9230 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9231 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9232 | else | |
68f2de6d | 9233 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9234 | sed 's/^/| /' conftest.$ac_ext >&5 |
9235 | ||
7a197a62 | 9236 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9237 | fi |
7a197a62 | 9238 | |
25fbec5b | 9239 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9240 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9241 | LIBS=$ac_check_lib_save_LIBS |
9242 | fi | |
68f2de6d AK |
9243 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9244 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9245 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9246 | HAVE_SELINUX=yes | |
9247 | else | |
9248 | HAVE_SELINUX=no | |
9249 | fi | |
9250 | ||
ad6254c5 AK |
9251 | |
9252 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9253 | |
9254 | cat >>confdefs.h <<\_ACEOF | |
9255 | #define HAVE_SELINUX 1 | |
9256 | _ACEOF | |
9257 | ||
ad6254c5 AK |
9258 | LIBS="-lselinux $LIBS" |
9259 | else | |
68f2de6d AK |
9260 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9261 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9262 | fi |
9263 | ||
d0191583 | 9264 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9265 | # fails on at least Debian unstable due to unsatisfied references |
9266 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9267 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9268 | lvm_saved_libs=$LIBS | |
9269 | LIBS="$LIBS -static" | |
68f2de6d AK |
9270 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9271 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9272 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
68f2de6d | 9273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9274 | else |
9275 | ac_func_search_save_LIBS=$LIBS | |
9276 | cat >conftest.$ac_ext <<_ACEOF | |
9277 | /* confdefs.h. */ | |
9278 | _ACEOF | |
9279 | cat confdefs.h >>conftest.$ac_ext | |
9280 | cat >>conftest.$ac_ext <<_ACEOF | |
9281 | /* end confdefs.h. */ | |
9282 | ||
9283 | /* Override any GCC internal prototype to avoid an error. | |
9284 | Use char because int might match the return type of a GCC | |
9285 | builtin and then its argument prototype would still apply. */ | |
9286 | #ifdef __cplusplus | |
9287 | extern "C" | |
9288 | #endif | |
9289 | char pthread_mutex_lock (); | |
9290 | int | |
9291 | main () | |
9292 | { | |
9293 | return pthread_mutex_lock (); | |
9294 | ; | |
9295 | return 0; | |
9296 | } | |
9297 | _ACEOF | |
9298 | for ac_lib in '' pthread; do | |
9299 | if test -z "$ac_lib"; then | |
9300 | ac_res="none required" | |
9301 | else | |
9302 | ac_res=-l$ac_lib | |
9303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9304 | fi | |
9305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9306 | if { (ac_try="$ac_link" | |
9307 | case "(($ac_try" in | |
9308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9309 | *) ac_try_echo=$ac_try;; | |
9310 | esac | |
68f2de6d | 9311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9312 | (eval "$ac_link") 2>conftest.er1 |
9313 | ac_status=$? | |
9314 | grep -v '^ *+' conftest.er1 >conftest.err | |
9315 | rm -f conftest.er1 | |
9316 | cat conftest.err >&5 | |
68f2de6d | 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9318 | (exit $ac_status); } && { |
9319 | test -z "$ac_c_werror_flag" || | |
9320 | test ! -s conftest.err | |
68f2de6d AK |
9321 | } && test -s conftest$ac_exeext && |
9322 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9323 | ac_cv_search_pthread_mutex_lock=$ac_res |
9324 | else | |
68f2de6d | 9325 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9326 | sed 's/^/| /' conftest.$ac_ext >&5 |
9327 | ||
9328 | ||
9329 | fi | |
9330 | ||
25fbec5b | 9331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9332 | conftest$ac_exeext |
9333 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9334 | break | |
9335 | fi | |
9336 | done | |
9337 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9338 | : | |
9339 | else | |
9340 | ac_cv_search_pthread_mutex_lock=no | |
9341 | fi | |
9342 | rm conftest.$ac_ext | |
9343 | LIBS=$ac_func_search_save_LIBS | |
9344 | fi | |
68f2de6d AK |
9345 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9346 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9347 | ac_res=$ac_cv_search_pthread_mutex_lock |
9348 | if test "$ac_res" != no; then | |
9349 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9350 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9351 | LIB_PTHREAD=-lpthread | |
9352 | fi | |
9353 | ||
9354 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9355 | fi |
9356 | fi | |
9357 | ||
8b1a3214 AK |
9358 | ################################################################################ |
9359 | if test x$REALTIME = xyes; then | |
68f2de6d AK |
9360 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9361 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9362 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
68f2de6d | 9363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9364 | else |
9365 | ac_check_lib_save_LIBS=$LIBS | |
9366 | LIBS="-lrt $LIBS" | |
9367 | cat >conftest.$ac_ext <<_ACEOF | |
9368 | /* confdefs.h. */ | |
9369 | _ACEOF | |
9370 | cat confdefs.h >>conftest.$ac_ext | |
9371 | cat >>conftest.$ac_ext <<_ACEOF | |
9372 | /* end confdefs.h. */ | |
9373 | ||
7a197a62 AK |
9374 | /* Override any GCC internal prototype to avoid an error. |
9375 | Use char because int might match the return type of a GCC | |
9376 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9377 | #ifdef __cplusplus |
9378 | extern "C" | |
9379 | #endif | |
8b1a3214 AK |
9380 | char clock_gettime (); |
9381 | int | |
9382 | main () | |
9383 | { | |
7a197a62 | 9384 | return clock_gettime (); |
8b1a3214 AK |
9385 | ; |
9386 | return 0; | |
9387 | } | |
9388 | _ACEOF | |
9389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9390 | if { (ac_try="$ac_link" |
9391 | case "(($ac_try" in | |
9392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9393 | *) ac_try_echo=$ac_try;; | |
9394 | esac | |
68f2de6d | 9395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9396 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9397 | ac_status=$? |
9398 | grep -v '^ *+' conftest.er1 >conftest.err | |
9399 | rm -f conftest.er1 | |
9400 | cat conftest.err >&5 | |
68f2de6d | 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9402 | (exit $ac_status); } && { |
9403 | test -z "$ac_c_werror_flag" || | |
9404 | test ! -s conftest.err | |
68f2de6d AK |
9405 | } && test -s conftest$ac_exeext && |
9406 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9407 | ac_cv_lib_rt_clock_gettime=yes |
9408 | else | |
68f2de6d | 9409 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9410 | sed 's/^/| /' conftest.$ac_ext >&5 |
9411 | ||
7a197a62 | 9412 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9413 | fi |
7a197a62 | 9414 | |
25fbec5b | 9415 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9416 | conftest$ac_exeext conftest.$ac_ext |
9417 | LIBS=$ac_check_lib_save_LIBS | |
9418 | fi | |
68f2de6d AK |
9419 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9420 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9421 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9422 | HAVE_REALTIME=yes | |
9423 | else | |
9424 | HAVE_REALTIME=no | |
9425 | fi | |
9426 | ||
8b1a3214 AK |
9427 | |
9428 | if test x$HAVE_REALTIME = xyes; then | |
9429 | ||
9430 | cat >>confdefs.h <<\_ACEOF | |
9431 | #define HAVE_REALTIME 1 | |
9432 | _ACEOF | |
9433 | ||
9434 | LIBS="-lrt $LIBS" | |
9435 | else | |
68f2de6d AK |
9436 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9437 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9438 | fi |
9439 | fi | |
9440 | ||
ad6254c5 AK |
9441 | ################################################################################ |
9442 | ||
9443 | for ac_header in getopt.h | |
9444 | do | |
68f2de6d | 9445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
9447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9451 | fi |
68f2de6d AK |
9452 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9453 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9454 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9455 | else |
9456 | # Is the header compilable? | |
68f2de6d AK |
9457 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9458 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9459 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9460 | /* confdefs.h. */ |
9461 | _ACEOF | |
9462 | cat confdefs.h >>conftest.$ac_ext | |
9463 | cat >>conftest.$ac_ext <<_ACEOF | |
9464 | /* end confdefs.h. */ | |
9465 | $ac_includes_default | |
9466 | #include <$ac_header> | |
9467 | _ACEOF | |
9468 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9469 | if { (ac_try="$ac_compile" |
9470 | case "(($ac_try" in | |
9471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9472 | *) ac_try_echo=$ac_try;; | |
9473 | esac | |
68f2de6d | 9474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9475 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9476 | ac_status=$? |
8a2fc586 AK |
9477 | grep -v '^ *+' conftest.er1 >conftest.err |
9478 | rm -f conftest.er1 | |
9479 | cat conftest.err >&5 | |
68f2de6d | 9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9481 | (exit $ac_status); } && { |
9482 | test -z "$ac_c_werror_flag" || | |
9483 | test ! -s conftest.err | |
9484 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9485 | ac_header_compiler=yes |
9486 | else | |
68f2de6d | 9487 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9488 | sed 's/^/| /' conftest.$ac_ext >&5 |
9489 | ||
7a197a62 | 9490 | ac_header_compiler=no |
ad6254c5 | 9491 | fi |
7a197a62 AK |
9492 | |
9493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
9494 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9495 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9496 | |
9497 | # Is the header present? | |
68f2de6d AK |
9498 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9499 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 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 | #include <$ac_header> | |
9507 | _ACEOF | |
7a197a62 AK |
9508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9509 | case "(($ac_try" in | |
9510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9511 | *) ac_try_echo=$ac_try;; | |
9512 | esac | |
68f2de6d | 9513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9514 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9515 | ac_status=$? |
9516 | grep -v '^ *+' conftest.er1 >conftest.err | |
9517 | rm -f conftest.er1 | |
9518 | cat conftest.err >&5 | |
68f2de6d | 9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9520 | (exit $ac_status); } >/dev/null && { |
9521 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9522 | test ! -s conftest.err | |
9523 | }; then | |
ad6254c5 AK |
9524 | ac_header_preproc=yes |
9525 | else | |
68f2de6d | 9526 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9527 | sed 's/^/| /' conftest.$ac_ext >&5 |
9528 | ||
9529 | ac_header_preproc=no | |
9530 | fi | |
7a197a62 | 9531 | |
ad6254c5 | 9532 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
9533 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9534 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9535 | |
9536 | # So? What about this header? | |
8a2fc586 AK |
9537 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9538 | yes:no: ) | |
68f2de6d AK |
9539 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9540 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9542 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9543 | ac_header_preproc=yes |
ad6254c5 | 9544 | ;; |
8a2fc586 | 9545 | no:yes:* ) |
68f2de6d AK |
9546 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9547 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9548 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9549 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9550 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9551 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9552 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9553 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9555 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9556 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9557 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9558 | |
ad6254c5 AK |
9559 | ;; |
9560 | esac | |
68f2de6d AK |
9561 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9563 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9565 | else |
8a2fc586 | 9566 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9567 | fi |
68f2de6d AK |
9568 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9570 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9571 | |
9572 | fi | |
68f2de6d | 9573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9574 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9576 | _ACEOF |
72b2cb61 AK |
9577 | |
9578 | cat >>confdefs.h <<\_ACEOF | |
9579 | #define HAVE_GETOPTLONG 1 | |
9580 | _ACEOF | |
9581 | ||
ad6254c5 AK |
9582 | fi |
9583 | ||
9584 | done | |
9585 | ||
9586 | ||
9587 | ################################################################################ | |
06e459df | 9588 | if test x$READLINE != xno; then |
bc1024f8 JM |
9589 | rl_found=yes |
9590 | ||
68f2de6d AK |
9591 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9592 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9593 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
68f2de6d | 9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9595 | else |
9596 | ac_check_lib_save_LIBS=$LIBS | |
9597 | LIBS="-lreadline $LIBS" | |
9598 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9599 | /* confdefs.h. */ |
9600 | _ACEOF | |
9601 | cat confdefs.h >>conftest.$ac_ext | |
9602 | cat >>conftest.$ac_ext <<_ACEOF | |
9603 | /* end confdefs.h. */ | |
9604 | ||
7a197a62 AK |
9605 | /* Override any GCC internal prototype to avoid an error. |
9606 | Use char because int might match the return type of a GCC | |
9607 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9608 | #ifdef __cplusplus |
9609 | extern "C" | |
9610 | #endif | |
ad6254c5 AK |
9611 | char readline (); |
9612 | int | |
9613 | main () | |
9614 | { | |
7a197a62 | 9615 | return readline (); |
ad6254c5 AK |
9616 | ; |
9617 | return 0; | |
9618 | } | |
9619 | _ACEOF | |
9620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9621 | if { (ac_try="$ac_link" |
9622 | case "(($ac_try" in | |
9623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9624 | *) ac_try_echo=$ac_try;; | |
9625 | esac | |
68f2de6d | 9626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9627 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9628 | ac_status=$? |
8a2fc586 AK |
9629 | grep -v '^ *+' conftest.er1 >conftest.err |
9630 | rm -f conftest.er1 | |
9631 | cat conftest.err >&5 | |
68f2de6d | 9632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9633 | (exit $ac_status); } && { |
9634 | test -z "$ac_c_werror_flag" || | |
9635 | test ! -s conftest.err | |
68f2de6d AK |
9636 | } && test -s conftest$ac_exeext && |
9637 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9638 | ac_cv_lib_readline_readline=yes |
9639 | else | |
68f2de6d | 9640 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9641 | sed 's/^/| /' conftest.$ac_ext >&5 |
9642 | ||
7a197a62 | 9643 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9644 | fi |
7a197a62 | 9645 | |
25fbec5b | 9646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9647 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9648 | LIBS=$ac_check_lib_save_LIBS |
9649 | fi | |
68f2de6d AK |
9650 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9651 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 9652 | if test $ac_cv_lib_readline_readline = yes; then |
bc1024f8 JM |
9653 | cat >>confdefs.h <<_ACEOF |
9654 | #define HAVE_LIBREADLINE 1 | |
9655 | _ACEOF | |
9656 | ||
9657 | LIBS="-lreadline $LIBS" | |
9658 | ||
ad6254c5 | 9659 | else |
06e459df JM |
9660 | rl_found=no |
9661 | fi | |
9662 | ||
9663 | test x$READLINE:$rl_found = xyes:no && | |
68f2de6d | 9664 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9665 | --enable-readline option (which is enabled by default). Either disable readline |
9666 | support with --disable-readline or download and install readline from: | |
9667 | ftp.gnu.org/gnu/readline | |
9668 | Note: if you are using precompiled packages you will also need the development | |
9669 | package as well (which may be called readline-devel or something similar). | |
9670 | " >&5 | |
68f2de6d | 9671 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9672 | --enable-readline option (which is enabled by default). Either disable readline |
9673 | support with --disable-readline or download and install readline from: | |
9674 | ftp.gnu.org/gnu/readline | |
9675 | Note: if you are using precompiled packages you will also need the development | |
9676 | package as well (which may be called readline-devel or something similar). | |
9677 | " >&2;} | |
9678 | { (exit 1); exit 1; }; } | |
06e459df | 9679 | if test $rl_found = yes; then |
bc1024f8 JM |
9680 | |
9681 | for ac_func in rl_completion_matches | |
9682 | do | |
68f2de6d AK |
9683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9684 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
bc1024f8 | 9686 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9688 | else |
9689 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9690 | /* confdefs.h. */ |
9691 | _ACEOF | |
9692 | cat confdefs.h >>conftest.$ac_ext | |
9693 | cat >>conftest.$ac_ext <<_ACEOF | |
9694 | /* end confdefs.h. */ | |
bc1024f8 | 9695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 9696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 9697 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 9698 | |
ad6254c5 | 9699 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 9700 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
9701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9702 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9703 | |
ad6254c5 AK |
9704 | #ifdef __STDC__ |
9705 | # include <limits.h> | |
9706 | #else | |
9707 | # include <assert.h> | |
9708 | #endif | |
8a2fc586 | 9709 | |
bc1024f8 | 9710 | #undef $ac_func |
8a2fc586 | 9711 | |
7a197a62 AK |
9712 | /* Override any GCC internal prototype to avoid an error. |
9713 | Use char because int might match the return type of a GCC | |
9714 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9715 | #ifdef __cplusplus |
9716 | extern "C" | |
ad6254c5 | 9717 | #endif |
bc1024f8 | 9718 | char $ac_func (); |
ad6254c5 AK |
9719 | /* The GNU C library defines this for functions which it implements |
9720 | to always fail with ENOSYS. Some functions are actually named | |
9721 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 9722 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9723 | choke me |
ad6254c5 AK |
9724 | #endif |
9725 | ||
9726 | int | |
9727 | main () | |
9728 | { | |
bc1024f8 | 9729 | return $ac_func (); |
ad6254c5 AK |
9730 | ; |
9731 | return 0; | |
9732 | } | |
9733 | _ACEOF | |
9734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9735 | if { (ac_try="$ac_link" |
9736 | case "(($ac_try" in | |
9737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9738 | *) ac_try_echo=$ac_try;; | |
9739 | esac | |
68f2de6d | 9740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9741 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9742 | ac_status=$? |
8a2fc586 AK |
9743 | grep -v '^ *+' conftest.er1 >conftest.err |
9744 | rm -f conftest.er1 | |
9745 | cat conftest.err >&5 | |
68f2de6d | 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9747 | (exit $ac_status); } && { |
9748 | test -z "$ac_c_werror_flag" || | |
9749 | test ! -s conftest.err | |
68f2de6d AK |
9750 | } && test -s conftest$ac_exeext && |
9751 | $as_test_x conftest$ac_exeext; then | |
bc1024f8 | 9752 | eval "$as_ac_var=yes" |
ad6254c5 | 9753 | else |
68f2de6d | 9754 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9755 | sed 's/^/| /' conftest.$ac_ext >&5 |
9756 | ||
bc1024f8 | 9757 | eval "$as_ac_var=no" |
ad6254c5 | 9758 | fi |
7a197a62 | 9759 | |
25fbec5b | 9760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9761 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9762 | fi |
68f2de6d AK |
9763 | ac_res=`eval echo '${'$as_ac_var'}'` |
9764 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9765 | echo "${ECHO_T}$ac_res" >&6; } | |
9766 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
bc1024f8 | 9767 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
9769 | _ACEOF |
9770 | ||
9771 | fi | |
bc1024f8 | 9772 | done |
ad6254c5 | 9773 | |
d179cc7a JM |
9774 | |
9775 | cat >>confdefs.h <<\_ACEOF | |
9776 | #define READLINE_SUPPORT 1 | |
9777 | _ACEOF | |
9778 | ||
06e459df | 9779 | fi |
ad6254c5 AK |
9780 | fi |
9781 | ||
9782 | ################################################################################ | |
68f2de6d AK |
9783 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9784 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9785 | # Check whether --enable-nls was given. |
ad6254c5 | 9786 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9787 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9788 | else |
9789 | INTL=no | |
7a197a62 AK |
9790 | fi |
9791 | ||
68f2de6d AK |
9792 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9793 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9794 | |
9795 | if test x$INTL = xyes; then | |
9796 | INTL_PACKAGE="lvm2" | |
9797 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9798 | set dummy msgfmt; ac_word=$2 | |
68f2de6d AK |
9799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9801 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
68f2de6d | 9802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9803 | else |
9804 | case $MSGFMT in | |
9805 | [\\/]* | ?:[\\/]*) | |
9806 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9807 | ;; | |
9808 | *) | |
9809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9810 | for as_dir in $PATH | |
9811 | do | |
9812 | IFS=$as_save_IFS | |
9813 | test -z "$as_dir" && as_dir=. | |
9814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 9815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9816 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 9817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9818 | break 2 |
9819 | fi | |
9820 | done | |
9821 | done | |
7a197a62 | 9822 | IFS=$as_save_IFS |
ad6254c5 AK |
9823 | |
9824 | ;; | |
9825 | esac | |
9826 | fi | |
9827 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9828 | if test -n "$MSGFMT"; then |
68f2de6d AK |
9829 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9830 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9831 | else |
68f2de6d AK |
9832 | { echo "$as_me:$LINENO: result: no" >&5 |
9833 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9834 | fi |
9835 | ||
7a197a62 | 9836 | |
ad6254c5 | 9837 | if [ "x$MSGFMT" == x ]; |
68f2de6d | 9838 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9839 | " >&5 |
68f2de6d | 9840 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9841 | " >&2;} |
9842 | { (exit 1); exit 1; }; } | |
9843 | fi; | |
9844 | ||
9845 | ||
7a197a62 | 9846 | # Check whether --with-localedir was given. |
ad6254c5 | 9847 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9848 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9849 | else |
9850 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9851 | fi |
9852 | ||
ad6254c5 AK |
9853 | fi |
9854 | ||
9855 | ################################################################################ | |
9856 | ||
7a197a62 | 9857 | # Check whether --with-confdir was given. |
ad6254c5 | 9858 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9859 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9860 | else |
9861 | CONFDIR='/etc' | |
7a197a62 AK |
9862 | fi |
9863 | ||
ad6254c5 AK |
9864 | |
9865 | ||
7a197a62 | 9866 | # Check whether --with-staticdir was given. |
ad6254c5 | 9867 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9868 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9869 | else |
9870 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9871 | fi |
ad6254c5 | 9872 | |
33f732c5 | 9873 | |
7a197a62 AK |
9874 | |
9875 | # Check whether --with-dmdir was given. | |
33f732c5 | 9876 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9877 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9878 | else |
9879 | DMDIR= | |
7a197a62 AK |
9880 | fi |
9881 | ||
33f732c5 | 9882 | |
09339e2b | 9883 | # Convert a relative dir name to absolute. |
25fbec5b AK |
9884 | case $DMDIR in |
9885 | /*) ;; | |
9886 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
9887 | esac |
9888 | ||
68f2de6d AK |
9889 | |
9890 | # Check whether --with-usrlibdir was given. | |
9891 | if test "${with_usrlibdir+set}" = set; then | |
9892 | withval=$with_usrlibdir; usrlibdir="$withval" | |
9893 | else | |
9894 | usrlibdir='${prefix}/lib' | |
9895 | fi | |
9896 | ||
9897 | ||
9898 | ||
9899 | # Check whether --with-usrsbindir was given. | |
9900 | if test "${with_usrsbindir+set}" = set; then | |
9901 | withval=$with_usrsbindir; usrsbindir="$withval" | |
9902 | else | |
9903 | usrsbindir='${prefix}/sbin' | |
9904 | fi | |
9905 | ||
9906 | ||
ad6254c5 AK |
9907 | ################################################################################ |
9908 | if test x$READLINE = xyes; then | |
9909 | ||
9910 | ||
9911 | for ac_header in readline/readline.h readline/history.h | |
9912 | do | |
68f2de6d | 9913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
9915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9919 | fi |
68f2de6d AK |
9920 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9922 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9923 | else |
9924 | # Is the header compilable? | |
68f2de6d AK |
9925 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9926 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9927 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9928 | /* confdefs.h. */ |
9929 | _ACEOF | |
9930 | cat confdefs.h >>conftest.$ac_ext | |
9931 | cat >>conftest.$ac_ext <<_ACEOF | |
9932 | /* end confdefs.h. */ | |
9933 | $ac_includes_default | |
9934 | #include <$ac_header> | |
9935 | _ACEOF | |
9936 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9937 | if { (ac_try="$ac_compile" |
9938 | case "(($ac_try" in | |
9939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9940 | *) ac_try_echo=$ac_try;; | |
9941 | esac | |
68f2de6d | 9942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9943 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9944 | ac_status=$? |
8a2fc586 AK |
9945 | grep -v '^ *+' conftest.er1 >conftest.err |
9946 | rm -f conftest.er1 | |
9947 | cat conftest.err >&5 | |
68f2de6d | 9948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9949 | (exit $ac_status); } && { |
9950 | test -z "$ac_c_werror_flag" || | |
9951 | test ! -s conftest.err | |
9952 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9953 | ac_header_compiler=yes |
9954 | else | |
68f2de6d | 9955 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9956 | sed 's/^/| /' conftest.$ac_ext >&5 |
9957 | ||
7a197a62 | 9958 | ac_header_compiler=no |
ad6254c5 | 9959 | fi |
7a197a62 AK |
9960 | |
9961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
9962 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9963 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9964 | |
9965 | # Is the header present? | |
68f2de6d AK |
9966 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9968 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9969 | /* confdefs.h. */ |
9970 | _ACEOF | |
9971 | cat confdefs.h >>conftest.$ac_ext | |
9972 | cat >>conftest.$ac_ext <<_ACEOF | |
9973 | /* end confdefs.h. */ | |
9974 | #include <$ac_header> | |
9975 | _ACEOF | |
7a197a62 AK |
9976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9977 | case "(($ac_try" in | |
9978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9979 | *) ac_try_echo=$ac_try;; | |
9980 | esac | |
68f2de6d | 9981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9983 | ac_status=$? |
9984 | grep -v '^ *+' conftest.er1 >conftest.err | |
9985 | rm -f conftest.er1 | |
9986 | cat conftest.err >&5 | |
68f2de6d | 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9988 | (exit $ac_status); } >/dev/null && { |
9989 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9990 | test ! -s conftest.err | |
9991 | }; then | |
ad6254c5 AK |
9992 | ac_header_preproc=yes |
9993 | else | |
68f2de6d | 9994 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9995 | sed 's/^/| /' conftest.$ac_ext >&5 |
9996 | ||
9997 | ac_header_preproc=no | |
9998 | fi | |
7a197a62 | 9999 | |
ad6254c5 | 10000 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10001 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10002 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10003 | |
10004 | # So? What about this header? | |
8a2fc586 AK |
10005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10006 | yes:no: ) | |
68f2de6d AK |
10007 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10008 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10010 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10011 | ac_header_preproc=yes |
ad6254c5 | 10012 | ;; |
8a2fc586 | 10013 | no:yes:* ) |
68f2de6d AK |
10014 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10015 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10016 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10017 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10018 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10019 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10020 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10021 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10024 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10025 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10026 | |
ad6254c5 AK |
10027 | ;; |
10028 | esac | |
68f2de6d AK |
10029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10033 | else |
8a2fc586 | 10034 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10035 | fi |
68f2de6d AK |
10036 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10038 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10039 | |
10040 | fi | |
68f2de6d | 10041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10042 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10044 | _ACEOF |
10045 | ||
10046 | else | |
68f2de6d AK |
10047 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10048 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10049 | { (exit 1); exit 1; }; } |
10050 | fi | |
10051 | ||
10052 | done | |
10053 | ||
10054 | fi | |
10055 | ||
5c7fc7c4 | 10056 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10057 | |
10058 | ||
10059 | ||
10060 | ||
10061 | ||
10062 | ||
10063 | ||
10064 | ||
10065 | ||
10066 | ||
10067 | 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 | |
10068 | do | |
68f2de6d | 10069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10071 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10075 | fi |
68f2de6d AK |
10076 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10078 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10079 | else |
10080 | # Is the header compilable? | |
68f2de6d AK |
10081 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10083 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10084 | /* confdefs.h. */ |
10085 | _ACEOF | |
10086 | cat confdefs.h >>conftest.$ac_ext | |
10087 | cat >>conftest.$ac_ext <<_ACEOF | |
10088 | /* end confdefs.h. */ | |
10089 | $ac_includes_default | |
10090 | #include <$ac_header> | |
10091 | _ACEOF | |
10092 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10093 | if { (ac_try="$ac_compile" |
10094 | case "(($ac_try" in | |
10095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10096 | *) ac_try_echo=$ac_try;; | |
10097 | esac | |
68f2de6d | 10098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10099 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10100 | ac_status=$? |
8a2fc586 AK |
10101 | grep -v '^ *+' conftest.er1 >conftest.err |
10102 | rm -f conftest.er1 | |
10103 | cat conftest.err >&5 | |
68f2de6d | 10104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10105 | (exit $ac_status); } && { |
10106 | test -z "$ac_c_werror_flag" || | |
10107 | test ! -s conftest.err | |
10108 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10109 | ac_header_compiler=yes |
10110 | else | |
68f2de6d | 10111 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10112 | sed 's/^/| /' conftest.$ac_ext >&5 |
10113 | ||
7a197a62 | 10114 | ac_header_compiler=no |
ad6254c5 | 10115 | fi |
7a197a62 AK |
10116 | |
10117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10119 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10120 | |
10121 | # Is the header present? | |
68f2de6d AK |
10122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10124 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10125 | /* confdefs.h. */ |
10126 | _ACEOF | |
10127 | cat confdefs.h >>conftest.$ac_ext | |
10128 | cat >>conftest.$ac_ext <<_ACEOF | |
10129 | /* end confdefs.h. */ | |
10130 | #include <$ac_header> | |
10131 | _ACEOF | |
7a197a62 AK |
10132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10133 | case "(($ac_try" in | |
10134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10135 | *) ac_try_echo=$ac_try;; | |
10136 | esac | |
68f2de6d | 10137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10139 | ac_status=$? |
10140 | grep -v '^ *+' conftest.er1 >conftest.err | |
10141 | rm -f conftest.er1 | |
10142 | cat conftest.err >&5 | |
68f2de6d | 10143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10144 | (exit $ac_status); } >/dev/null && { |
10145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10146 | test ! -s conftest.err | |
10147 | }; then | |
ad6254c5 AK |
10148 | ac_header_preproc=yes |
10149 | else | |
68f2de6d | 10150 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10151 | sed 's/^/| /' conftest.$ac_ext >&5 |
10152 | ||
10153 | ac_header_preproc=no | |
10154 | fi | |
7a197a62 | 10155 | |
ad6254c5 | 10156 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10158 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10159 | |
10160 | # So? What about this header? | |
8a2fc586 AK |
10161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10162 | yes:no: ) | |
68f2de6d AK |
10163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10167 | ac_header_preproc=yes |
ad6254c5 | 10168 | ;; |
8a2fc586 | 10169 | no:yes:* ) |
68f2de6d AK |
10170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10182 | |
ad6254c5 AK |
10183 | ;; |
10184 | esac | |
68f2de6d AK |
10185 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10189 | else |
8a2fc586 | 10190 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10191 | fi |
68f2de6d AK |
10192 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10194 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10195 | |
10196 | fi | |
68f2de6d | 10197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10198 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10200 | _ACEOF |
10201 | ||
10202 | else | |
68f2de6d AK |
10203 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10204 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10205 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10206 | fi |
10207 | ||
ad6254c5 AK |
10208 | done |
10209 | ||
10210 | ||
795ca3e5 | 10211 | |
8106cdd5 | 10212 | |
ad6254c5 AK |
10213 | |
10214 | ||
10215 | for ac_func in dup2 getmntent memmove select socket | |
10216 | do | |
68f2de6d AK |
10217 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10218 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10219 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10220 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10222 | else |
ad6254c5 | 10223 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10224 | /* confdefs.h. */ |
10225 | _ACEOF | |
10226 | cat confdefs.h >>conftest.$ac_ext | |
10227 | cat >>conftest.$ac_ext <<_ACEOF | |
10228 | /* end confdefs.h. */ | |
8a2fc586 AK |
10229 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10231 | #define $ac_func innocuous_$ac_func | |
10232 | ||
795ca3e5 | 10233 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10234 | which can conflict with char $ac_func (); below. |
10235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10236 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10237 | |
ad6254c5 AK |
10238 | #ifdef __STDC__ |
10239 | # include <limits.h> | |
10240 | #else | |
10241 | # include <assert.h> | |
10242 | #endif | |
8a2fc586 AK |
10243 | |
10244 | #undef $ac_func | |
10245 | ||
7a197a62 AK |
10246 | /* Override any GCC internal prototype to avoid an error. |
10247 | Use char because int might match the return type of a GCC | |
10248 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10249 | #ifdef __cplusplus |
10250 | extern "C" | |
ad6254c5 | 10251 | #endif |
ad6254c5 | 10252 | char $ac_func (); |
795ca3e5 AK |
10253 | /* The GNU C library defines this for functions which it implements |
10254 | to always fail with ENOSYS. Some functions are actually named | |
10255 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10256 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10257 | choke me |
795ca3e5 AK |
10258 | #endif |
10259 | ||
ad6254c5 AK |
10260 | int |
10261 | main () | |
10262 | { | |
7a197a62 | 10263 | return $ac_func (); |
ad6254c5 AK |
10264 | ; |
10265 | return 0; | |
10266 | } | |
10267 | _ACEOF | |
10268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10269 | if { (ac_try="$ac_link" |
10270 | case "(($ac_try" in | |
10271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10272 | *) ac_try_echo=$ac_try;; | |
10273 | esac | |
68f2de6d | 10274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10275 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10276 | ac_status=$? |
8a2fc586 AK |
10277 | grep -v '^ *+' conftest.er1 >conftest.err |
10278 | rm -f conftest.er1 | |
10279 | cat conftest.err >&5 | |
68f2de6d | 10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10281 | (exit $ac_status); } && { |
10282 | test -z "$ac_c_werror_flag" || | |
10283 | test ! -s conftest.err | |
68f2de6d AK |
10284 | } && test -s conftest$ac_exeext && |
10285 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10286 | eval "$as_ac_var=yes" |
795ca3e5 | 10287 | else |
68f2de6d | 10288 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10289 | sed 's/^/| /' conftest.$ac_ext >&5 |
10290 | ||
7a197a62 | 10291 | eval "$as_ac_var=no" |
80992638 | 10292 | fi |
7a197a62 | 10293 | |
25fbec5b | 10294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10295 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10296 | fi |
68f2de6d AK |
10297 | ac_res=`eval echo '${'$as_ac_var'}'` |
10298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10299 | echo "${ECHO_T}$ac_res" >&6; } | |
10300 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10301 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10303 | _ACEOF |
80992638 AK |
10304 | |
10305 | else | |
68f2de6d AK |
10306 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10307 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10308 | { (exit 1); exit 1; }; } |
8106cdd5 | 10309 | fi |
ad6254c5 | 10310 | done |
795ca3e5 | 10311 | |
25fbec5b AK |
10312 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10313 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
68f2de6d AK |
10314 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10315 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10316 | if test "${ac_cv_search_getmntent+set}" = set; then |
68f2de6d | 10317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10318 | else |
10319 | ac_func_search_save_LIBS=$LIBS | |
10320 | cat >conftest.$ac_ext <<_ACEOF | |
10321 | /* confdefs.h. */ | |
10322 | _ACEOF | |
10323 | cat confdefs.h >>conftest.$ac_ext | |
10324 | cat >>conftest.$ac_ext <<_ACEOF | |
10325 | /* end confdefs.h. */ | |
80992638 | 10326 | |
7a197a62 AK |
10327 | /* Override any GCC internal prototype to avoid an error. |
10328 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10329 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10330 | #ifdef __cplusplus |
10331 | extern "C" | |
10332 | #endif | |
25fbec5b | 10333 | char getmntent (); |
ad6254c5 AK |
10334 | int |
10335 | main () | |
10336 | { | |
25fbec5b | 10337 | return getmntent (); |
ad6254c5 AK |
10338 | ; |
10339 | return 0; | |
10340 | } | |
10341 | _ACEOF | |
25fbec5b AK |
10342 | for ac_lib in '' sun seq gen; do |
10343 | if test -z "$ac_lib"; then | |
10344 | ac_res="none required" | |
10345 | else | |
10346 | ac_res=-l$ac_lib | |
10347 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10348 | fi | |
10349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10350 | if { (ac_try="$ac_link" |
10351 | case "(($ac_try" in | |
10352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10353 | *) ac_try_echo=$ac_try;; | |
10354 | esac | |
68f2de6d | 10355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10356 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10357 | ac_status=$? |
8a2fc586 AK |
10358 | grep -v '^ *+' conftest.er1 >conftest.err |
10359 | rm -f conftest.er1 | |
10360 | cat conftest.err >&5 | |
68f2de6d | 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10362 | (exit $ac_status); } && { |
10363 | test -z "$ac_c_werror_flag" || | |
10364 | test ! -s conftest.err | |
68f2de6d AK |
10365 | } && test -s conftest$ac_exeext && |
10366 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10367 | ac_cv_search_getmntent=$ac_res |
80992638 | 10368 | else |
68f2de6d | 10369 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10370 | sed 's/^/| /' conftest.$ac_ext >&5 |
10371 | ||
25fbec5b | 10372 | |
795ca3e5 AK |
10373 | fi |
10374 | ||
25fbec5b AK |
10375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10376 | conftest$ac_exeext | |
10377 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10378 | break | |
795ca3e5 | 10379 | fi |
25fbec5b AK |
10380 | done |
10381 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10382 | : | |
10383 | else | |
10384 | ac_cv_search_getmntent=no | |
10385 | fi | |
10386 | rm conftest.$ac_ext | |
10387 | LIBS=$ac_func_search_save_LIBS | |
10388 | fi | |
68f2de6d AK |
10389 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10390 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10391 | ac_res=$ac_cv_search_getmntent |
10392 | if test "$ac_res" != no; then | |
10393 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10394 | ac_cv_func_getmntent=yes | |
10395 | ||
10396 | cat >>confdefs.h <<\_ACEOF | |
68f2de6d | 10397 | #define HAVE_GETMNTENT |
ad6254c5 | 10398 | _ACEOF |
795ca3e5 | 10399 | |
25fbec5b AK |
10400 | else |
10401 | ac_cv_func_getmntent=no | |
795ca3e5 | 10402 | fi |
795ca3e5 AK |
10403 | |
10404 | ||
ad6254c5 AK |
10405 | # AC_FUNC_REALLOC |
10406 | ||
10407 | ||
10408 | for ac_header in sys/select.h sys/socket.h | |
10409 | do | |
68f2de6d | 10410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10411 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10412 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10414 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10416 | fi |
68f2de6d AK |
10417 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10418 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10419 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10420 | else |
ad6254c5 | 10421 | # Is the header compilable? |
68f2de6d AK |
10422 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10424 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10425 | /* confdefs.h. */ |
10426 | _ACEOF | |
10427 | cat confdefs.h >>conftest.$ac_ext | |
10428 | cat >>conftest.$ac_ext <<_ACEOF | |
10429 | /* end confdefs.h. */ | |
10430 | $ac_includes_default | |
10431 | #include <$ac_header> | |
10432 | _ACEOF | |
10433 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10434 | if { (ac_try="$ac_compile" |
10435 | case "(($ac_try" in | |
10436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10437 | *) ac_try_echo=$ac_try;; | |
10438 | esac | |
68f2de6d | 10439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10440 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10441 | ac_status=$? |
8a2fc586 AK |
10442 | grep -v '^ *+' conftest.er1 >conftest.err |
10443 | rm -f conftest.er1 | |
10444 | cat conftest.err >&5 | |
68f2de6d | 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10446 | (exit $ac_status); } && { |
10447 | test -z "$ac_c_werror_flag" || | |
10448 | test ! -s conftest.err | |
10449 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10450 | ac_header_compiler=yes |
80992638 | 10451 | else |
68f2de6d | 10452 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10453 | sed 's/^/| /' conftest.$ac_ext >&5 |
10454 | ||
7a197a62 | 10455 | ac_header_compiler=no |
ad6254c5 | 10456 | fi |
7a197a62 AK |
10457 | |
10458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10459 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10460 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10461 | |
10462 | # Is the header present? | |
68f2de6d AK |
10463 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10464 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10465 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10466 | /* confdefs.h. */ |
10467 | _ACEOF | |
10468 | cat confdefs.h >>conftest.$ac_ext | |
10469 | cat >>conftest.$ac_ext <<_ACEOF | |
10470 | /* end confdefs.h. */ | |
10471 | #include <$ac_header> | |
10472 | _ACEOF | |
7a197a62 AK |
10473 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10474 | case "(($ac_try" in | |
10475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10476 | *) ac_try_echo=$ac_try;; | |
10477 | esac | |
68f2de6d | 10478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10479 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10480 | ac_status=$? |
10481 | grep -v '^ *+' conftest.er1 >conftest.err | |
10482 | rm -f conftest.er1 | |
10483 | cat conftest.err >&5 | |
68f2de6d | 10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10485 | (exit $ac_status); } >/dev/null && { |
10486 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10487 | test ! -s conftest.err | |
10488 | }; then | |
ad6254c5 AK |
10489 | ac_header_preproc=yes |
10490 | else | |
68f2de6d | 10491 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10492 | sed 's/^/| /' conftest.$ac_ext >&5 |
10493 | ||
10494 | ac_header_preproc=no | |
10495 | fi | |
7a197a62 | 10496 | |
ad6254c5 | 10497 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10498 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10499 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10500 | |
10501 | # So? What about this header? | |
8a2fc586 AK |
10502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10503 | yes:no: ) | |
68f2de6d AK |
10504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10505 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10508 | ac_header_preproc=yes |
ad6254c5 | 10509 | ;; |
8a2fc586 | 10510 | no:yes:* ) |
68f2de6d AK |
10511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10513 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10514 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10517 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10518 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10520 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10522 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10523 | |
ad6254c5 AK |
10524 | ;; |
10525 | esac | |
68f2de6d AK |
10526 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10530 | else |
8a2fc586 | 10531 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10532 | fi |
68f2de6d AK |
10533 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10535 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10536 | |
795ca3e5 | 10537 | fi |
68f2de6d | 10538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10539 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10541 | _ACEOF |
10542 | ||
795ca3e5 AK |
10543 | fi |
10544 | ||
ad6254c5 AK |
10545 | done |
10546 | ||
68f2de6d AK |
10547 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10548 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10549 | if test "${ac_cv_func_select_args+set}" = set; then |
68f2de6d | 10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10551 | else |
ad6254c5 | 10552 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10553 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10554 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10555 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10556 | /* confdefs.h. */ |
10557 | _ACEOF | |
10558 | cat confdefs.h >>conftest.$ac_ext | |
10559 | cat >>conftest.$ac_ext <<_ACEOF | |
10560 | /* end confdefs.h. */ | |
10561 | $ac_includes_default | |
25fbec5b | 10562 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10563 | # include <sys/select.h> |
10564 | #endif | |
25fbec5b | 10565 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10566 | # include <sys/socket.h> |
10567 | #endif | |
10568 | ||
10569 | int | |
10570 | main () | |
10571 | { | |
10572 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10573 | $ac_arg234, $ac_arg234, $ac_arg234, |
10574 | $ac_arg5); | |
ad6254c5 AK |
10575 | ; |
10576 | return 0; | |
10577 | } | |
10578 | _ACEOF | |
10579 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10580 | if { (ac_try="$ac_compile" |
10581 | case "(($ac_try" in | |
10582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10583 | *) ac_try_echo=$ac_try;; | |
10584 | esac | |
68f2de6d | 10585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10586 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10587 | ac_status=$? |
8a2fc586 AK |
10588 | grep -v '^ *+' conftest.er1 >conftest.err |
10589 | rm -f conftest.er1 | |
10590 | cat conftest.err >&5 | |
68f2de6d | 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10592 | (exit $ac_status); } && { |
10593 | test -z "$ac_c_werror_flag" || | |
10594 | test ! -s conftest.err | |
10595 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10596 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10597 | else | |
68f2de6d | 10598 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10599 | sed 's/^/| /' conftest.$ac_ext >&5 |
10600 | ||
7a197a62 | 10601 | |
ad6254c5 | 10602 | fi |
7a197a62 AK |
10603 | |
10604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10605 | done |
10606 | done | |
10607 | done | |
10608 | # Provide a safe default value. | |
10609 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10610 | ||
26e7f2e0 | 10611 | fi |
68f2de6d AK |
10612 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10613 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10614 | ac_save_IFS=$IFS; IFS=',' |
10615 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10616 | IFS=$ac_save_IFS | |
10617 | shift | |
10618 | ||
10619 | cat >>confdefs.h <<_ACEOF | |
10620 | #define SELECT_TYPE_ARG1 $1 | |
10621 | _ACEOF | |
10622 | ||
10623 | ||
10624 | cat >>confdefs.h <<_ACEOF | |
10625 | #define SELECT_TYPE_ARG234 ($2) | |
10626 | _ACEOF | |
10627 | ||
10628 | ||
10629 | cat >>confdefs.h <<_ACEOF | |
10630 | #define SELECT_TYPE_ARG5 ($3) | |
10631 | _ACEOF | |
10632 | ||
80992638 | 10633 | rm -f conftest* |
80992638 | 10634 | |
8106cdd5 | 10635 | fi |
ad6254c5 | 10636 | |
ad6254c5 AK |
10637 | if test x$CLUSTER != xnone; then |
10638 | ||
10639 | ||
10640 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10641 | do |
68f2de6d | 10642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10648 | fi |
68f2de6d AK |
10649 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10651 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10652 | else |
10653 | # Is the header compilable? | |
68f2de6d AK |
10654 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10656 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10657 | /* confdefs.h. */ |
10658 | _ACEOF | |
10659 | cat confdefs.h >>conftest.$ac_ext | |
10660 | cat >>conftest.$ac_ext <<_ACEOF | |
10661 | /* end confdefs.h. */ | |
10662 | $ac_includes_default | |
10663 | #include <$ac_header> | |
10664 | _ACEOF | |
10665 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10666 | if { (ac_try="$ac_compile" |
10667 | case "(($ac_try" in | |
10668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10669 | *) ac_try_echo=$ac_try;; | |
10670 | esac | |
68f2de6d | 10671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10672 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10673 | ac_status=$? |
8a2fc586 AK |
10674 | grep -v '^ *+' conftest.er1 >conftest.err |
10675 | rm -f conftest.er1 | |
10676 | cat conftest.err >&5 | |
68f2de6d | 10677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10678 | (exit $ac_status); } && { |
10679 | test -z "$ac_c_werror_flag" || | |
10680 | test ! -s conftest.err | |
10681 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10682 | ac_header_compiler=yes |
10683 | else | |
68f2de6d | 10684 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10685 | sed 's/^/| /' conftest.$ac_ext >&5 |
10686 | ||
7a197a62 | 10687 | ac_header_compiler=no |
ad6254c5 | 10688 | fi |
7a197a62 AK |
10689 | |
10690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10691 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10692 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10693 | |
10694 | # Is the header present? | |
68f2de6d AK |
10695 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10696 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10697 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10698 | /* confdefs.h. */ |
10699 | _ACEOF | |
10700 | cat confdefs.h >>conftest.$ac_ext | |
10701 | cat >>conftest.$ac_ext <<_ACEOF | |
10702 | /* end confdefs.h. */ | |
10703 | #include <$ac_header> | |
10704 | _ACEOF | |
7a197a62 AK |
10705 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10706 | case "(($ac_try" in | |
10707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10708 | *) ac_try_echo=$ac_try;; | |
10709 | esac | |
68f2de6d | 10710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10711 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10712 | ac_status=$? |
10713 | grep -v '^ *+' conftest.er1 >conftest.err | |
10714 | rm -f conftest.er1 | |
10715 | cat conftest.err >&5 | |
68f2de6d | 10716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10717 | (exit $ac_status); } >/dev/null && { |
10718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10719 | test ! -s conftest.err | |
10720 | }; then | |
ad6254c5 AK |
10721 | ac_header_preproc=yes |
10722 | else | |
68f2de6d | 10723 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10724 | sed 's/^/| /' conftest.$ac_ext >&5 |
10725 | ||
10726 | ac_header_preproc=no | |
10727 | fi | |
7a197a62 | 10728 | |
ad6254c5 | 10729 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10730 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10731 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10732 | |
10733 | # So? What about this header? | |
8a2fc586 AK |
10734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10735 | yes:no: ) | |
68f2de6d AK |
10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10737 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10739 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10740 | ac_header_preproc=yes |
ad6254c5 | 10741 | ;; |
8a2fc586 | 10742 | no:yes:* ) |
68f2de6d AK |
10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10747 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10748 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10749 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10750 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10752 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10753 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10754 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10755 | |
ad6254c5 AK |
10756 | ;; |
10757 | esac | |
68f2de6d AK |
10758 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10762 | else |
8a2fc586 | 10763 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10764 | fi |
68f2de6d AK |
10765 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10767 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10768 | |
10769 | fi | |
68f2de6d | 10770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10771 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10773 | _ACEOF |
10774 | ||
80992638 | 10775 | else |
68f2de6d AK |
10776 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10777 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10778 | { (exit 1); exit 1; }; } |
b896caa1 | 10779 | fi |
ad6254c5 | 10780 | |
b896caa1 AK |
10781 | done |
10782 | ||
10783 | ||
ad6254c5 AK |
10784 | for ac_func in socket |
10785 | do | |
68f2de6d AK |
10786 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10787 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10788 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10789 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10791 | else |
ad6254c5 | 10792 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10793 | /* confdefs.h. */ |
10794 | _ACEOF | |
10795 | cat confdefs.h >>conftest.$ac_ext | |
10796 | cat >>conftest.$ac_ext <<_ACEOF | |
10797 | /* end confdefs.h. */ | |
8a2fc586 AK |
10798 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10800 | #define $ac_func innocuous_$ac_func | |
10801 | ||
ad6254c5 AK |
10802 | /* System header to define __stub macros and hopefully few prototypes, |
10803 | which can conflict with char $ac_func (); below. | |
10804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10805 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10806 | |
ad6254c5 AK |
10807 | #ifdef __STDC__ |
10808 | # include <limits.h> | |
10809 | #else | |
10810 | # include <assert.h> | |
10811 | #endif | |
8a2fc586 AK |
10812 | |
10813 | #undef $ac_func | |
10814 | ||
7a197a62 AK |
10815 | /* Override any GCC internal prototype to avoid an error. |
10816 | Use char because int might match the return type of a GCC | |
10817 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10818 | #ifdef __cplusplus |
10819 | extern "C" | |
ad6254c5 | 10820 | #endif |
ad6254c5 AK |
10821 | char $ac_func (); |
10822 | /* The GNU C library defines this for functions which it implements | |
10823 | to always fail with ENOSYS. Some functions are actually named | |
10824 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10825 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10826 | choke me |
ad6254c5 AK |
10827 | #endif |
10828 | ||
10829 | int | |
10830 | main () | |
10831 | { | |
7a197a62 | 10832 | return $ac_func (); |
ad6254c5 AK |
10833 | ; |
10834 | return 0; | |
10835 | } | |
10836 | _ACEOF | |
10837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10838 | if { (ac_try="$ac_link" |
10839 | case "(($ac_try" in | |
10840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10841 | *) ac_try_echo=$ac_try;; | |
10842 | esac | |
68f2de6d | 10843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10844 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10845 | ac_status=$? |
8a2fc586 AK |
10846 | grep -v '^ *+' conftest.er1 >conftest.err |
10847 | rm -f conftest.er1 | |
10848 | cat conftest.err >&5 | |
68f2de6d | 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10850 | (exit $ac_status); } && { |
10851 | test -z "$ac_c_werror_flag" || | |
10852 | test ! -s conftest.err | |
68f2de6d AK |
10853 | } && test -s conftest$ac_exeext && |
10854 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10855 | eval "$as_ac_var=yes" |
10856 | else | |
68f2de6d | 10857 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10858 | sed 's/^/| /' conftest.$ac_ext >&5 |
10859 | ||
7a197a62 | 10860 | eval "$as_ac_var=no" |
ad6254c5 | 10861 | fi |
7a197a62 | 10862 | |
25fbec5b | 10863 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10864 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10865 | fi |
68f2de6d AK |
10866 | ac_res=`eval echo '${'$as_ac_var'}'` |
10867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10868 | echo "${ECHO_T}$ac_res" >&6; } | |
10869 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10870 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10871 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10872 | _ACEOF |
10873 | ||
10874 | else | |
68f2de6d AK |
10875 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10876 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10877 | { (exit 1); exit 1; }; } |
10878 | fi | |
10879 | done | |
10880 | ||
10881 | fi | |
10882 | ||
10883 | if test x$HAVE_LIBDL = xyes; then | |
10884 | ||
10885 | for ac_header in dlfcn.h | |
10886 | do | |
68f2de6d | 10887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10889 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10891 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10893 | fi |
68f2de6d AK |
10894 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10896 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10897 | else |
10898 | # Is the header compilable? | |
68f2de6d AK |
10899 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10900 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10901 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10902 | /* confdefs.h. */ |
10903 | _ACEOF | |
10904 | cat confdefs.h >>conftest.$ac_ext | |
10905 | cat >>conftest.$ac_ext <<_ACEOF | |
10906 | /* end confdefs.h. */ | |
10907 | $ac_includes_default | |
10908 | #include <$ac_header> | |
10909 | _ACEOF | |
10910 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10911 | if { (ac_try="$ac_compile" |
10912 | case "(($ac_try" in | |
10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10914 | *) ac_try_echo=$ac_try;; | |
10915 | esac | |
68f2de6d | 10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10917 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10918 | ac_status=$? |
8a2fc586 AK |
10919 | grep -v '^ *+' conftest.er1 >conftest.err |
10920 | rm -f conftest.er1 | |
10921 | cat conftest.err >&5 | |
68f2de6d | 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10923 | (exit $ac_status); } && { |
10924 | test -z "$ac_c_werror_flag" || | |
10925 | test ! -s conftest.err | |
10926 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10927 | ac_header_compiler=yes |
10928 | else | |
68f2de6d | 10929 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10930 | sed 's/^/| /' conftest.$ac_ext >&5 |
10931 | ||
7a197a62 | 10932 | ac_header_compiler=no |
ad6254c5 | 10933 | fi |
7a197a62 AK |
10934 | |
10935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10936 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10937 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10938 | |
10939 | # Is the header present? | |
68f2de6d AK |
10940 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10941 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10942 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10943 | /* confdefs.h. */ |
10944 | _ACEOF | |
10945 | cat confdefs.h >>conftest.$ac_ext | |
10946 | cat >>conftest.$ac_ext <<_ACEOF | |
10947 | /* end confdefs.h. */ | |
10948 | #include <$ac_header> | |
10949 | _ACEOF | |
7a197a62 AK |
10950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10951 | case "(($ac_try" in | |
10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10953 | *) ac_try_echo=$ac_try;; | |
10954 | esac | |
68f2de6d | 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10957 | ac_status=$? |
10958 | grep -v '^ *+' conftest.er1 >conftest.err | |
10959 | rm -f conftest.er1 | |
10960 | cat conftest.err >&5 | |
68f2de6d | 10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10962 | (exit $ac_status); } >/dev/null && { |
10963 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10964 | test ! -s conftest.err | |
10965 | }; then | |
ad6254c5 AK |
10966 | ac_header_preproc=yes |
10967 | else | |
68f2de6d | 10968 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10969 | sed 's/^/| /' conftest.$ac_ext >&5 |
10970 | ||
10971 | ac_header_preproc=no | |
10972 | fi | |
7a197a62 | 10973 | |
ad6254c5 | 10974 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10975 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10976 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10977 | |
10978 | # So? What about this header? | |
8a2fc586 AK |
10979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10980 | yes:no: ) | |
68f2de6d AK |
10981 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10982 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10984 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10985 | ac_header_preproc=yes |
ad6254c5 | 10986 | ;; |
8a2fc586 | 10987 | no:yes:* ) |
68f2de6d AK |
10988 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10989 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10990 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10991 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10992 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10993 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10994 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10995 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10997 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10998 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10999 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11000 | |
ad6254c5 AK |
11001 | ;; |
11002 | esac | |
68f2de6d AK |
11003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11007 | else |
8a2fc586 | 11008 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11009 | fi |
68f2de6d AK |
11010 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11011 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11012 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 11013 | |
8106cdd5 | 11014 | fi |
68f2de6d | 11015 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11016 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11017 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11018 | _ACEOF |
795ca3e5 AK |
11019 | |
11020 | else | |
68f2de6d AK |
11021 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11022 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11023 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11024 | fi |
11025 | ||
ad6254c5 | 11026 | done |
80992638 | 11027 | |
ad6254c5 | 11028 | fi |
80992638 | 11029 | |
ad6254c5 | 11030 | if test x$INTL = xyes; then |
83912faa | 11031 | |
ad6254c5 AK |
11032 | for ac_header in libintl.h |
11033 | do | |
68f2de6d | 11034 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11036 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11040 | fi |
68f2de6d AK |
11041 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11042 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11043 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11044 | else |
ad6254c5 | 11045 | # Is the header compilable? |
68f2de6d AK |
11046 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11047 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11048 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11049 | /* confdefs.h. */ |
11050 | _ACEOF | |
11051 | cat confdefs.h >>conftest.$ac_ext | |
11052 | cat >>conftest.$ac_ext <<_ACEOF | |
11053 | /* end confdefs.h. */ | |
11054 | $ac_includes_default | |
11055 | #include <$ac_header> | |
11056 | _ACEOF | |
11057 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11058 | if { (ac_try="$ac_compile" |
11059 | case "(($ac_try" in | |
11060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11061 | *) ac_try_echo=$ac_try;; | |
11062 | esac | |
68f2de6d | 11063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11064 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11065 | ac_status=$? |
8a2fc586 AK |
11066 | grep -v '^ *+' conftest.er1 >conftest.err |
11067 | rm -f conftest.er1 | |
11068 | cat conftest.err >&5 | |
68f2de6d | 11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11070 | (exit $ac_status); } && { |
11071 | test -z "$ac_c_werror_flag" || | |
11072 | test ! -s conftest.err | |
11073 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11074 | ac_header_compiler=yes |
11075 | else | |
68f2de6d | 11076 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11077 | sed 's/^/| /' conftest.$ac_ext >&5 |
11078 | ||
7a197a62 | 11079 | ac_header_compiler=no |
ad6254c5 | 11080 | fi |
7a197a62 AK |
11081 | |
11082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11083 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11084 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11085 | |
11086 | # Is the header present? | |
68f2de6d AK |
11087 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11088 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11089 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11090 | /* confdefs.h. */ |
11091 | _ACEOF | |
11092 | cat confdefs.h >>conftest.$ac_ext | |
11093 | cat >>conftest.$ac_ext <<_ACEOF | |
11094 | /* end confdefs.h. */ | |
11095 | #include <$ac_header> | |
11096 | _ACEOF | |
7a197a62 AK |
11097 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11098 | case "(($ac_try" in | |
11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11100 | *) ac_try_echo=$ac_try;; | |
11101 | esac | |
68f2de6d | 11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11104 | ac_status=$? |
11105 | grep -v '^ *+' conftest.er1 >conftest.err | |
11106 | rm -f conftest.er1 | |
11107 | cat conftest.err >&5 | |
68f2de6d | 11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11109 | (exit $ac_status); } >/dev/null && { |
11110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11111 | test ! -s conftest.err | |
11112 | }; then | |
ad6254c5 AK |
11113 | ac_header_preproc=yes |
11114 | else | |
68f2de6d | 11115 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11116 | sed 's/^/| /' conftest.$ac_ext >&5 |
11117 | ||
11118 | ac_header_preproc=no | |
11119 | fi | |
7a197a62 | 11120 | |
ad6254c5 | 11121 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11122 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11123 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11124 | |
11125 | # So? What about this header? | |
8a2fc586 AK |
11126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11127 | yes:no: ) | |
68f2de6d AK |
11128 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11129 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11131 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11132 | ac_header_preproc=yes |
ad6254c5 | 11133 | ;; |
8a2fc586 | 11134 | no:yes:* ) |
68f2de6d AK |
11135 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11136 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11137 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11138 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11139 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11140 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11141 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11142 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11143 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11144 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11145 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11146 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11147 | |
ad6254c5 AK |
11148 | ;; |
11149 | esac | |
68f2de6d AK |
11150 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11154 | else |
8a2fc586 | 11155 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11156 | fi |
68f2de6d AK |
11157 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11159 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11160 | |
69792976 | 11161 | fi |
68f2de6d | 11162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11163 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11165 | _ACEOF |
69792976 | 11166 | |
69792976 | 11167 | else |
68f2de6d AK |
11168 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11169 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11170 | { (exit 1); exit 1; }; } |
80992638 AK |
11171 | fi |
11172 | ||
ad6254c5 | 11173 | done |
69792976 | 11174 | |
ad6254c5 AK |
11175 | fi |
11176 | ||
ad6254c5 AK |
11177 | |
11178 | for ac_header in libdevmapper.h | |
11179 | do | |
68f2de6d | 11180 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11182 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11186 | fi |
68f2de6d AK |
11187 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11189 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11190 | else |
ad6254c5 | 11191 | # Is the header compilable? |
68f2de6d AK |
11192 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11193 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11194 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11195 | /* confdefs.h. */ |
11196 | _ACEOF | |
11197 | cat confdefs.h >>conftest.$ac_ext | |
11198 | cat >>conftest.$ac_ext <<_ACEOF | |
11199 | /* end confdefs.h. */ | |
11200 | $ac_includes_default | |
11201 | #include <$ac_header> | |
11202 | _ACEOF | |
11203 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11204 | if { (ac_try="$ac_compile" |
11205 | case "(($ac_try" in | |
11206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11207 | *) ac_try_echo=$ac_try;; | |
11208 | esac | |
68f2de6d | 11209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11210 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11211 | ac_status=$? |
8a2fc586 AK |
11212 | grep -v '^ *+' conftest.er1 >conftest.err |
11213 | rm -f conftest.er1 | |
11214 | cat conftest.err >&5 | |
68f2de6d | 11215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11216 | (exit $ac_status); } && { |
11217 | test -z "$ac_c_werror_flag" || | |
11218 | test ! -s conftest.err | |
11219 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11220 | ac_header_compiler=yes |
11221 | else | |
68f2de6d | 11222 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11223 | sed 's/^/| /' conftest.$ac_ext >&5 |
11224 | ||
7a197a62 | 11225 | ac_header_compiler=no |
ad6254c5 | 11226 | fi |
7a197a62 AK |
11227 | |
11228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11229 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11230 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11231 | |
11232 | # Is the header present? | |
68f2de6d AK |
11233 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11234 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11235 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11236 | /* confdefs.h. */ |
11237 | _ACEOF | |
11238 | cat confdefs.h >>conftest.$ac_ext | |
11239 | cat >>conftest.$ac_ext <<_ACEOF | |
11240 | /* end confdefs.h. */ | |
11241 | #include <$ac_header> | |
11242 | _ACEOF | |
7a197a62 AK |
11243 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11244 | case "(($ac_try" in | |
11245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11246 | *) ac_try_echo=$ac_try;; | |
11247 | esac | |
68f2de6d | 11248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11249 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11250 | ac_status=$? |
11251 | grep -v '^ *+' conftest.er1 >conftest.err | |
11252 | rm -f conftest.er1 | |
11253 | cat conftest.err >&5 | |
68f2de6d | 11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11255 | (exit $ac_status); } >/dev/null && { |
11256 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11257 | test ! -s conftest.err | |
11258 | }; then | |
ad6254c5 AK |
11259 | ac_header_preproc=yes |
11260 | else | |
68f2de6d | 11261 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11262 | sed 's/^/| /' conftest.$ac_ext >&5 |
11263 | ||
11264 | ac_header_preproc=no | |
11265 | fi | |
7a197a62 | 11266 | |
ad6254c5 | 11267 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11268 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11269 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11270 | |
11271 | # So? What about this header? | |
8a2fc586 AK |
11272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11273 | yes:no: ) | |
68f2de6d AK |
11274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11275 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11277 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11278 | ac_header_preproc=yes |
ad6254c5 | 11279 | ;; |
8a2fc586 | 11280 | no:yes:* ) |
68f2de6d AK |
11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11285 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11286 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11287 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11288 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11291 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11292 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11293 | |
ad6254c5 AK |
11294 | ;; |
11295 | esac | |
68f2de6d AK |
11296 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11300 | else |
8a2fc586 | 11301 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11302 | fi |
68f2de6d AK |
11303 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11304 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11305 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11306 | |
ad6254c5 | 11307 | fi |
68f2de6d | 11308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11309 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11311 | _ACEOF |
69792976 | 11312 | |
69792976 | 11313 | else |
68f2de6d AK |
11314 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11315 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11316 | { (exit 1); exit 1; }; } |
83912faa AK |
11317 | fi |
11318 | ||
ad6254c5 AK |
11319 | done |
11320 | ||
4a7f3eb2 | 11321 | |
ad6254c5 AK |
11322 | if test x$HAVE_SELINUX = xyes; then |
11323 | ||
11324 | for ac_header in selinux/selinux.h | |
11325 | do | |
68f2de6d | 11326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11327 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11328 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11332 | fi |
68f2de6d AK |
11333 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11334 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11335 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11336 | else |
ad6254c5 | 11337 | # Is the header compilable? |
68f2de6d AK |
11338 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11340 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11341 | /* confdefs.h. */ |
11342 | _ACEOF | |
11343 | cat confdefs.h >>conftest.$ac_ext | |
11344 | cat >>conftest.$ac_ext <<_ACEOF | |
11345 | /* end confdefs.h. */ | |
11346 | $ac_includes_default | |
11347 | #include <$ac_header> | |
11348 | _ACEOF | |
11349 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11350 | if { (ac_try="$ac_compile" |
11351 | case "(($ac_try" in | |
11352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11353 | *) ac_try_echo=$ac_try;; | |
11354 | esac | |
68f2de6d | 11355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11356 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11357 | ac_status=$? |
8a2fc586 AK |
11358 | grep -v '^ *+' conftest.er1 >conftest.err |
11359 | rm -f conftest.er1 | |
11360 | cat conftest.err >&5 | |
68f2de6d | 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11362 | (exit $ac_status); } && { |
11363 | test -z "$ac_c_werror_flag" || | |
11364 | test ! -s conftest.err | |
11365 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11366 | ac_header_compiler=yes |
11367 | else | |
68f2de6d | 11368 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11369 | sed 's/^/| /' conftest.$ac_ext >&5 |
11370 | ||
7a197a62 | 11371 | ac_header_compiler=no |
ad6254c5 | 11372 | fi |
7a197a62 AK |
11373 | |
11374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11375 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11376 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11377 | |
11378 | # Is the header present? | |
68f2de6d AK |
11379 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11380 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11381 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11382 | /* confdefs.h. */ |
11383 | _ACEOF | |
11384 | cat confdefs.h >>conftest.$ac_ext | |
11385 | cat >>conftest.$ac_ext <<_ACEOF | |
11386 | /* end confdefs.h. */ | |
11387 | #include <$ac_header> | |
11388 | _ACEOF | |
7a197a62 AK |
11389 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11390 | case "(($ac_try" in | |
11391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11392 | *) ac_try_echo=$ac_try;; | |
11393 | esac | |
68f2de6d | 11394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11395 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11396 | ac_status=$? |
11397 | grep -v '^ *+' conftest.er1 >conftest.err | |
11398 | rm -f conftest.er1 | |
11399 | cat conftest.err >&5 | |
68f2de6d | 11400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11401 | (exit $ac_status); } >/dev/null && { |
11402 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11403 | test ! -s conftest.err | |
11404 | }; then | |
ad6254c5 AK |
11405 | ac_header_preproc=yes |
11406 | else | |
68f2de6d | 11407 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11408 | sed 's/^/| /' conftest.$ac_ext >&5 |
11409 | ||
11410 | ac_header_preproc=no | |
11411 | fi | |
7a197a62 | 11412 | |
ad6254c5 | 11413 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11414 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11415 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11416 | |
11417 | # So? What about this header? | |
8a2fc586 AK |
11418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11419 | yes:no: ) | |
68f2de6d AK |
11420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11424 | ac_header_preproc=yes |
ad6254c5 | 11425 | ;; |
8a2fc586 | 11426 | no:yes:* ) |
68f2de6d AK |
11427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11439 | |
ad6254c5 AK |
11440 | ;; |
11441 | esac | |
68f2de6d AK |
11442 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11446 | else |
8a2fc586 | 11447 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11448 | fi |
68f2de6d AK |
11449 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11450 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11451 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11452 | |
ad6254c5 | 11453 | fi |
68f2de6d | 11454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11455 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11457 | _ACEOF |
0a62c911 | 11458 | |
0a62c911 | 11459 | else |
68f2de6d AK |
11460 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11461 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11462 | { (exit 1); exit 1; }; } |
80992638 AK |
11463 | fi |
11464 | ||
ad6254c5 | 11465 | done |
0a62c911 | 11466 | |
ad6254c5 | 11467 | fi |
0a62c911 | 11468 | |
a653923f AK |
11469 | ################################################################################ |
11470 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11471 | set dummy modprobe; ac_word=$2 | |
68f2de6d AK |
11472 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11474 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
68f2de6d | 11475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11476 | else |
11477 | case $MODPROBE_CMD in | |
11478 | [\\/]* | ?:[\\/]*) | |
11479 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11480 | ;; | |
11481 | *) | |
11482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11483 | for as_dir in $PATH | |
11484 | do | |
11485 | IFS=$as_save_IFS | |
11486 | test -z "$as_dir" && as_dir=. | |
11487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11489 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 11490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11491 | break 2 |
11492 | fi | |
11493 | done | |
11494 | done | |
7a197a62 | 11495 | IFS=$as_save_IFS |
72b2cb61 AK |
11496 | |
11497 | ;; | |
11498 | esac | |
11499 | fi | |
11500 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11501 | if test -n "$MODPROBE_CMD"; then |
68f2de6d AK |
11502 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11503 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11504 | else |
68f2de6d AK |
11505 | { echo "$as_me:$LINENO: result: no" >&5 |
11506 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11507 | fi |
11508 | ||
a653923f | 11509 | |
7a197a62 | 11510 | |
a653923f | 11511 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11512 | |
11513 | cat >>confdefs.h <<_ACEOF | |
11514 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11515 | _ACEOF | |
11516 | ||
a653923f AK |
11517 | fi |
11518 | ||
80992638 | 11519 | ################################################################################ |
d0191583 | 11520 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11521 | |
80992638 | 11522 | ################################################################################ |
fae0c576 | 11523 | |
83912faa | 11524 | |
795ca3e5 AK |
11525 | |
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
5a52dca9 | 11531 | |
8ef2b021 | 11532 | |
199e490e | 11533 | |
69792976 AK |
11534 | |
11535 | ||
11536 | ||
d0191583 JM |
11537 | # FIXME: rename to LVM_USE_DMEVENTD |
11538 | ||
69792976 | 11539 | |
8106cdd5 AK |
11540 | |
11541 | ||
11542 | ||
11543 | ||
11544 | ||
d68a82ec | 11545 | |
036f273a | 11546 | |
7d1552c9 | 11547 | |
8106cdd5 | 11548 | |
0a62c911 | 11549 | |
8106cdd5 | 11550 | |
4a7f3eb2 | 11551 | |
4922197a AK |
11552 | |
11553 | ||
d8ac0fbc | 11554 | |
1a9ea74d | 11555 | |
8a2fc586 AK |
11556 | |
11557 | ||
d0191583 JM |
11558 | |
11559 | # FIXME: rename to LVM_CONF_DIR | |
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
8a2fc586 | 11565 | |
8ce0cbda | 11566 | |
8b1a3214 | 11567 | |
33f732c5 | 11568 | |
66e941e8 | 11569 | |
d3c8211f AK |
11570 | |
11571 | ||
68f2de6d AK |
11572 | |
11573 | ||
80992638 | 11574 | ################################################################################ |
d0191583 | 11575 | 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 | 11576 | |
ad6254c5 | 11577 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11578 | # This file is a shell script that caches the results of configure |
11579 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11580 | # scripts and configure runs, see configure's option --config-cache. |
11581 | # It is not useful on other systems. If it contains results you don't | |
11582 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11583 | # |
ad6254c5 AK |
11584 | # config.status only pays attention to the cache file if you give it |
11585 | # the --recheck option to rerun configure. | |
795ca3e5 | 11586 | # |
ad6254c5 AK |
11587 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11588 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11589 | # following values. | |
11590 | ||
11591 | _ACEOF | |
11592 | ||
795ca3e5 AK |
11593 | # The following way of writing the cache mishandles newlines in values, |
11594 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11595 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11596 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11597 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11598 | ( |
11599 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11600 | eval ac_val=\$$ac_var | |
11601 | case $ac_val in #( | |
11602 | *${as_nl}*) | |
11603 | case $ac_var in #( | |
68f2de6d AK |
11604 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11605 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11606 | esac |
11607 | case $ac_var in #( | |
11608 | _ | IFS | as_nl) ;; #( | |
11609 | *) $as_unset $ac_var ;; | |
11610 | esac ;; | |
11611 | esac | |
11612 | done | |
11613 | ||
ad6254c5 | 11614 | (set) 2>&1 | |
7a197a62 AK |
11615 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11616 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11617 | # `set' does not quote correctly, so add quotes (double-quote |
11618 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11619 | sed -n \ | |
8a2fc586 AK |
11620 | "s/'/'\\\\''/g; |
11621 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11622 | ;; #( |
ad6254c5 AK |
11623 | *) |
11624 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11625 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11626 | ;; |
7a197a62 AK |
11627 | esac | |
11628 | sort | |
11629 | ) | | |
ad6254c5 | 11630 | sed ' |
7a197a62 | 11631 | /^ac_cv_env_/b end |
ad6254c5 | 11632 | t clear |
7a197a62 | 11633 | :clear |
ad6254c5 AK |
11634 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11635 | t end | |
7a197a62 AK |
11636 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11637 | :end' >>confcache | |
11638 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11639 | if test -w "$cache_file"; then | |
11640 | test "x$cache_file" != "x/dev/null" && | |
68f2de6d AK |
11641 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11642 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11643 | cat confcache >$cache_file |
795ca3e5 | 11644 | else |
68f2de6d AK |
11645 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11646 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11647 | fi |
11648 | fi | |
11649 | rm -f confcache | |
11650 | ||
795ca3e5 AK |
11651 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11652 | # Let make expand exec_prefix. | |
11653 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11654 | ||
72b2cb61 | 11655 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11656 | |
11657 | ac_libobjs= | |
11658 | ac_ltlibobjs= | |
11659 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11660 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11661 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
68f2de6d | 11662 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11663 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11664 | # will be set to the directory where LIBOBJS objects are built. | |
11665 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11666 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11667 | done |
11668 | LIBOBJS=$ac_libobjs | |
80992638 | 11669 | |
ad6254c5 AK |
11670 | LTLIBOBJS=$ac_ltlibobjs |
11671 | ||
11672 | ||
11673 | ||
11674 | : ${CONFIG_STATUS=./config.status} | |
11675 | ac_clean_files_save=$ac_clean_files | |
11676 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
68f2de6d AK |
11677 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11678 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11679 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11680 | #! $SHELL |
11681 | # Generated by $as_me. | |
795ca3e5 | 11682 | # Run this file to recreate the current configuration. |
795ca3e5 | 11683 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11684 | # configure, is in config.log if it exists. |
11685 | ||
11686 | debug=false | |
11687 | ac_cs_recheck=false | |
11688 | ac_cs_silent=false | |
11689 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11690 | _ACEOF | |
11691 | ||
68f2de6d | 11692 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11693 | ## --------------------- ## |
11694 | ## M4sh Initialization. ## | |
11695 | ## --------------------- ## | |
11696 | ||
25fbec5b AK |
11697 | # Be more Bourne compatible |
11698 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11699 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11700 | emulate sh | |
11701 | NULLCMD=: | |
68f2de6d | 11702 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11703 | # is contrary to our usage. Disable this feature. |
11704 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11705 | setopt NO_GLOB_SUBST |
11706 | else | |
25fbec5b AK |
11707 | case `(set -o) 2>/dev/null` in |
11708 | *posix*) set -o posix ;; | |
11709 | esac | |
11710 | ||
7a197a62 | 11711 | fi |
25fbec5b AK |
11712 | |
11713 | ||
7a197a62 AK |
11714 | |
11715 | ||
11716 | # PATH needs CR | |
11717 | # Avoid depending upon Character Ranges. | |
11718 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11719 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11720 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11721 | as_cr_digits='0123456789' | |
11722 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11723 | ||
b145d876 ZK |
11724 | # The user is always right. |
11725 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d AK |
11726 | echo "#! /bin/sh" >conf$$.sh |
11727 | echo "exit 0" >>conf$$.sh | |
11728 | chmod +x conf$$.sh | |
11729 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11730 | PATH_SEPARATOR=';' | |
11731 | else | |
11732 | PATH_SEPARATOR=: | |
11733 | fi | |
11734 | rm -f conf$$.sh | |
ad6254c5 AK |
11735 | fi |
11736 | ||
11737 | # Support unset when possible. | |
8a2fc586 | 11738 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11739 | as_unset=unset |
11740 | else | |
11741 | as_unset=false | |
11742 | fi | |
8106cdd5 | 11743 | |
ad6254c5 | 11744 | |
7a197a62 AK |
11745 | # IFS |
11746 | # We need space, tab and new line, in precisely that order. Quoting is | |
11747 | # there to prevent editors from complaining about space-tab. | |
11748 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11749 | # splitting by setting IFS to empty value.) | |
68f2de6d AK |
11750 | as_nl=' |
11751 | ' | |
7a197a62 AK |
11752 | IFS=" "" $as_nl" |
11753 | ||
11754 | # Find who we are. Look in the path if we contain no directory separator. | |
11755 | case $0 in | |
11756 | *[\\/]* ) as_myself=$0 ;; | |
11757 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11758 | for as_dir in $PATH | |
11759 | do | |
11760 | IFS=$as_save_IFS | |
11761 | test -z "$as_dir" && as_dir=. | |
11762 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11763 | done | |
11764 | IFS=$as_save_IFS | |
11765 | ||
11766 | ;; | |
11767 | esac | |
11768 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11769 | # in which case we are not to be found in the path. | |
11770 | if test "x$as_myself" = x; then | |
11771 | as_myself=$0 | |
11772 | fi | |
11773 | if test ! -f "$as_myself"; then | |
68f2de6d | 11774 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11775 | { (exit 1); exit 1; } |
11776 | fi | |
11777 | ||
ad6254c5 | 11778 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11779 | for as_var in ENV MAIL MAILPATH |
11780 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11781 | done | |
ad6254c5 AK |
11782 | PS1='$ ' |
11783 | PS2='> ' | |
11784 | PS4='+ ' | |
11785 | ||
11786 | # NLS nuisances. | |
68f2de6d AK |
11787 | for as_var in \ |
11788 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11789 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11790 | LC_TELEPHONE LC_TIME | |
11791 | do | |
11792 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11793 | eval $as_var=C; export $as_var | |
11794 | else | |
11795 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11796 | fi | |
11797 | done | |
8106cdd5 | 11798 | |
ad6254c5 | 11799 | # Required to use basename. |
7a197a62 AK |
11800 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11801 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11802 | as_expr=expr |
11803 | else | |
11804 | as_expr=false | |
11805 | fi | |
8106cdd5 | 11806 | |
7a197a62 | 11807 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11808 | as_basename=basename |
11809 | else | |
11810 | as_basename=false | |
11811 | fi | |
11812 | ||
11813 | ||
11814 | # Name of the executable. | |
7a197a62 | 11815 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11816 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11817 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11818 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 11819 | echo X/"$0" | |
7a197a62 AK |
11820 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11821 | s//\1/ | |
11822 | q | |
11823 | } | |
11824 | /^X\/\(\/\/\)$/{ | |
11825 | s//\1/ | |
11826 | q | |
11827 | } | |
11828 | /^X\/\(\/\).*/{ | |
11829 | s//\1/ | |
11830 | q | |
11831 | } | |
11832 | s/.*/./; q'` | |
ad6254c5 | 11833 | |
7a197a62 AK |
11834 | # CDPATH. |
11835 | $as_unset CDPATH | |
ad6254c5 AK |
11836 | |
11837 | ||
ad6254c5 | 11838 | |
ad6254c5 AK |
11839 | as_lineno_1=$LINENO |
11840 | as_lineno_2=$LINENO | |
ad6254c5 | 11841 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11842 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11843 | |
ad6254c5 AK |
11844 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11845 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11846 | # line-number line after each line using $LINENO; the second 'sed' |
11847 | # does the real work. The second script uses 'N' to pair each | |
11848 | # line-number line with the line containing $LINENO, and appends | |
11849 | # trailing '-' during substitution so that $LINENO is not a special | |
11850 | # case at line end. | |
ad6254c5 | 11851 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11852 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11853 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11854 | sed -n ' | |
11855 | p | |
11856 | /[$]LINENO/= | |
11857 | ' <$as_myself | | |
ad6254c5 | 11858 | sed ' |
7a197a62 AK |
11859 | s/[$]LINENO.*/&-/ |
11860 | t lineno | |
11861 | b | |
11862 | :lineno | |
ad6254c5 | 11863 | N |
7a197a62 AK |
11864 | :loop |
11865 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11866 | t loop |
7a197a62 | 11867 | s/-\n.*// |
ad6254c5 | 11868 | ' >$as_me.lineno && |
7a197a62 | 11869 | chmod +x "$as_me.lineno" || |
68f2de6d | 11870 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11871 | { (exit 1); exit 1; }; } |
11872 | ||
11873 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11874 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11875 | # original and so on. Autoconf is especially sensitive to this). |
11876 | . "./$as_me.lineno" | |
ad6254c5 AK |
11877 | # Exit status is that of the last command. |
11878 | exit | |
11879 | } | |
11880 | ||
11881 | ||
7a197a62 AK |
11882 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11883 | as_dirname=dirname | |
11884 | else | |
11885 | as_dirname=false | |
11886 | fi | |
11887 | ||
11888 | ECHO_C= ECHO_N= ECHO_T= | |
11889 | case `echo -n x` in | |
11890 | -n*) | |
11891 | case `echo 'x\c'` in | |
11892 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11893 | *) ECHO_C='\c';; | |
11894 | esac;; | |
11895 | *) | |
11896 | ECHO_N='-n';; | |
ad6254c5 | 11897 | esac |
68f2de6d | 11898 | |
7a197a62 AK |
11899 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11900 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11901 | as_expr=expr |
11902 | else | |
11903 | as_expr=false | |
11904 | fi | |
80992638 | 11905 | |
ad6254c5 | 11906 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11907 | if test -d conf$$.dir; then |
11908 | rm -f conf$$.dir/conf$$.file | |
11909 | else | |
11910 | rm -f conf$$.dir | |
68f2de6d AK |
11911 | mkdir conf$$.dir |
11912 | fi | |
11913 | echo >conf$$.file | |
11914 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11915 | as_ln_s='ln -s' | |
11916 | # ... but there are two gotchas: | |
11917 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11918 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11919 | # In both cases, we have to default to `cp -p'. | |
11920 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11921 | as_ln_s='cp -p' |
68f2de6d AK |
11922 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11923 | as_ln_s=ln | |
ad6254c5 AK |
11924 | else |
11925 | as_ln_s='cp -p' | |
11926 | fi | |
7a197a62 AK |
11927 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11928 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11929 | |
ad6254c5 AK |
11930 | if mkdir -p . 2>/dev/null; then |
11931 | as_mkdir_p=: | |
11932 | else | |
8a2fc586 | 11933 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11934 | as_mkdir_p=false |
11935 | fi | |
11936 | ||
25fbec5b AK |
11937 | if test -x / >/dev/null 2>&1; then |
11938 | as_test_x='test -x' | |
7a197a62 | 11939 | else |
25fbec5b AK |
11940 | if ls -dL / >/dev/null 2>&1; then |
11941 | as_ls_L_option=L | |
11942 | else | |
11943 | as_ls_L_option= | |
11944 | fi | |
11945 | as_test_x=' | |
11946 | eval sh -c '\'' | |
11947 | if test -d "$1"; then | |
68f2de6d | 11948 | test -d "$1/."; |
25fbec5b AK |
11949 | else |
11950 | case $1 in | |
68f2de6d | 11951 | -*)set "./$1";; |
25fbec5b AK |
11952 | esac; |
11953 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11954 | ???[sx]*):;;*)false;;esac;fi | |
11955 | '\'' sh | |
11956 | ' | |
7a197a62 | 11957 | fi |
25fbec5b | 11958 | as_executable_p=$as_test_x |
ad6254c5 AK |
11959 | |
11960 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11961 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11962 | |
11963 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11964 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11965 | |
11966 | ||
ad6254c5 AK |
11967 | exec 6>&1 |
11968 | ||
7a197a62 | 11969 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11970 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11971 | # values after options handling. |
11972 | ac_log=" | |
ad6254c5 | 11973 | This file was extended by $as_me, which was |
68f2de6d | 11974 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11975 | |
11976 | CONFIG_FILES = $CONFIG_FILES | |
11977 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11978 | CONFIG_LINKS = $CONFIG_LINKS | |
11979 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11980 | $ $0 $@ | |
11981 | ||
7a197a62 AK |
11982 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11983 | " | |
11984 | ||
ad6254c5 AK |
11985 | _ACEOF |
11986 | ||
68f2de6d | 11987 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11988 | # Files that config.status was made for. |
68f2de6d AK |
11989 | config_files="$ac_config_files" |
11990 | config_headers="$ac_config_headers" | |
ad6254c5 | 11991 | |
7a197a62 | 11992 | _ACEOF |
ad6254c5 | 11993 | |
68f2de6d | 11994 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11995 | ac_cs_usage="\ |
11996 | \`$as_me' instantiates files from templates according to the | |
11997 | current configuration. | |
11998 | ||
11999 | Usage: $0 [OPTIONS] [FILE]... | |
12000 | ||
12001 | -h, --help print this help, then exit | |
25fbec5b | 12002 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12003 | -q, --quiet do not print progress messages |
12004 | -d, --debug don't remove temporary files | |
12005 | --recheck update $as_me by reconfiguring in the same conditions | |
12006 | --file=FILE[:TEMPLATE] | |
68f2de6d | 12007 | instantiate the configuration file FILE |
72b2cb61 | 12008 | --header=FILE[:TEMPLATE] |
68f2de6d | 12009 | instantiate the configuration header FILE |
ad6254c5 AK |
12010 | |
12011 | Configuration files: | |
12012 | $config_files | |
12013 | ||
72b2cb61 AK |
12014 | Configuration headers: |
12015 | $config_headers | |
12016 | ||
ad6254c5 | 12017 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12018 | |
7a197a62 | 12019 | _ACEOF |
68f2de6d | 12020 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
12021 | ac_cs_version="\\ |
12022 | config.status | |
68f2de6d AK |
12023 | configured by $0, generated by GNU Autoconf 2.61, |
12024 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12025 | |
68f2de6d | 12026 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12027 | This config.status script is free software; the Free Software Foundation |
12028 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12029 | |
12030 | ac_pwd='$ac_pwd' | |
12031 | srcdir='$srcdir' | |
12032 | INSTALL='$INSTALL' | |
fddafd51 | 12033 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
12034 | _ACEOF |
12035 | ||
68f2de6d AK |
12036 | cat >>$CONFIG_STATUS <<\_ACEOF |
12037 | # If no file are specified by the user, then we need to provide default | |
12038 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
12039 | ac_need_defaults=: |
12040 | while test $# != 0 | |
12041 | do | |
12042 | case $1 in | |
12043 | --*=*) | |
7a197a62 AK |
12044 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12045 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12046 | ac_shift=: |
12047 | ;; | |
7a197a62 | 12048 | *) |
ad6254c5 AK |
12049 | ac_option=$1 |
12050 | ac_optarg=$2 | |
12051 | ac_shift=shift | |
12052 | ;; | |
ad6254c5 AK |
12053 | esac |
12054 | ||
12055 | case $ac_option in | |
12056 | # Handling of the options. | |
ad6254c5 AK |
12057 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12058 | ac_cs_recheck=: ;; | |
7a197a62 | 12059 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
68f2de6d | 12060 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 12061 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12062 | debug=: ;; |
12063 | --file | --fil | --fi | --f ) | |
12064 | $ac_shift | |
68f2de6d | 12065 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
12066 | ac_need_defaults=false;; |
12067 | --header | --heade | --head | --hea ) | |
12068 | $ac_shift | |
68f2de6d | 12069 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 12070 | ac_need_defaults=false;; |
7a197a62 AK |
12071 | --he | --h) |
12072 | # Conflict between --help and --header | |
68f2de6d | 12073 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12074 | Try \`$0 --help' for more information." >&2 |
12075 | { (exit 1); exit 1; }; };; | |
12076 | --help | --hel | -h ) | |
68f2de6d | 12077 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12079 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12080 | ac_cs_silent=: ;; | |
12081 | ||
12082 | # This is an error. | |
68f2de6d | 12083 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12084 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12085 | { (exit 1); exit 1; }; } ;; |
12086 | ||
7a197a62 AK |
12087 | *) ac_config_targets="$ac_config_targets $1" |
12088 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12089 | |
12090 | esac | |
12091 | shift | |
12092 | done | |
12093 | ||
12094 | ac_configure_extra_args= | |
12095 | ||
12096 | if $ac_cs_silent; then | |
12097 | exec 6>/dev/null | |
12098 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12099 | fi | |
12100 | ||
12101 | _ACEOF | |
68f2de6d | 12102 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12103 | if \$ac_cs_recheck; then |
68f2de6d AK |
12104 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12105 | CONFIG_SHELL=$SHELL | |
7a197a62 | 12106 | export CONFIG_SHELL |
68f2de6d | 12107 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
12108 | fi |
12109 | ||
12110 | _ACEOF | |
68f2de6d | 12111 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12112 | exec 5>>config.log |
12113 | { | |
12114 | echo | |
12115 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12116 | ## Running $as_me. ## | |
12117 | _ASBOX | |
68f2de6d | 12118 | echo "$ac_log" |
7a197a62 | 12119 | } >&5 |
ad6254c5 | 12120 | |
7a197a62 | 12121 | _ACEOF |
68f2de6d | 12122 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 12123 | _ACEOF |
ad6254c5 | 12124 | |
68f2de6d | 12125 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12126 | |
12127 | # Handling of arguments. | |
ad6254c5 AK |
12128 | for ac_config_target in $ac_config_targets |
12129 | do | |
7a197a62 AK |
12130 | case $ac_config_target in |
12131 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12132 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12133 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
d0191583 JM |
12134 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12135 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12136 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12137 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12138 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
7a197a62 AK |
12139 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
12140 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
7a197a62 | 12141 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; |
d0191583 | 12142 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 | 12143 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
7a197a62 AK |
12144 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12145 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12146 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12147 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12148 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12149 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12150 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
12151 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12152 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12153 | |
68f2de6d AK |
12154 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12155 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12156 | { (exit 1); exit 1; }; };; |
80992638 | 12157 | esac |
ad6254c5 AK |
12158 | done |
12159 | ||
7a197a62 | 12160 | |
ad6254c5 AK |
12161 | # If the user did not use the arguments to specify the items to instantiate, |
12162 | # then the envvar interface is used. Set only those that are not. | |
12163 | # We use the long form for the default assignment because of an extremely | |
12164 | # bizarre bug on SunOS 4.1.3. | |
12165 | if $ac_need_defaults; then | |
12166 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12167 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12168 | fi |
12169 | ||
12170 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12171 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12172 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12173 | # Hook for its removal unless debugging. |
12174 | # Note that there is a small window in which the directory will not be cleaned: | |
12175 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12176 | $debug || |
12177 | { | |
7a197a62 AK |
12178 | tmp= |
12179 | trap 'exit_status=$? | |
12180 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12181 | ' 0 | |
ad6254c5 AK |
12182 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12183 | } | |
ad6254c5 AK |
12184 | # Create a (secure) tmp directory for tmp files. |
12185 | ||
12186 | { | |
7a197a62 | 12187 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12188 | test -n "$tmp" && test -d "$tmp" |
12189 | } || | |
12190 | { | |
7a197a62 AK |
12191 | tmp=./conf$$-$RANDOM |
12192 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12193 | } || |
12194 | { | |
68f2de6d | 12195 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12196 | { (exit 1); exit 1; } |
12197 | } | |
12198 | ||
68f2de6d AK |
12199 | # |
12200 | # Set up the sed scripts for CONFIG_FILES section. | |
12201 | # | |
12202 | ||
12203 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12204 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12205 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12206 | |
68f2de6d | 12207 | _ACEOF |
5556819a | 12208 | |
68f2de6d AK |
12209 | |
12210 | ||
12211 | ac_delim='%!_!# ' | |
12212 | for ac_last_try in false false false false false :; do | |
12213 | cat >conf$$subs.sed <<_ACEOF | |
12214 | SHELL!$SHELL$ac_delim | |
12215 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12216 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12217 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12218 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12219 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12220 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12221 | exec_prefix!$exec_prefix$ac_delim | |
12222 | prefix!$prefix$ac_delim | |
12223 | program_transform_name!$program_transform_name$ac_delim | |
12224 | bindir!$bindir$ac_delim | |
12225 | sbindir!$sbindir$ac_delim | |
12226 | libexecdir!$libexecdir$ac_delim | |
12227 | datarootdir!$datarootdir$ac_delim | |
12228 | datadir!$datadir$ac_delim | |
12229 | sysconfdir!$sysconfdir$ac_delim | |
12230 | sharedstatedir!$sharedstatedir$ac_delim | |
12231 | localstatedir!$localstatedir$ac_delim | |
12232 | includedir!$includedir$ac_delim | |
12233 | oldincludedir!$oldincludedir$ac_delim | |
12234 | docdir!$docdir$ac_delim | |
12235 | infodir!$infodir$ac_delim | |
12236 | htmldir!$htmldir$ac_delim | |
12237 | dvidir!$dvidir$ac_delim | |
12238 | pdfdir!$pdfdir$ac_delim | |
12239 | psdir!$psdir$ac_delim | |
12240 | libdir!$libdir$ac_delim | |
12241 | localedir!$localedir$ac_delim | |
12242 | mandir!$mandir$ac_delim | |
12243 | DEFS!$DEFS$ac_delim | |
12244 | ECHO_C!$ECHO_C$ac_delim | |
12245 | ECHO_N!$ECHO_N$ac_delim | |
12246 | ECHO_T!$ECHO_T$ac_delim | |
12247 | LIBS!$LIBS$ac_delim | |
12248 | build_alias!$build_alias$ac_delim | |
12249 | host_alias!$host_alias$ac_delim | |
12250 | target_alias!$target_alias$ac_delim | |
12251 | build!$build$ac_delim | |
12252 | build_cpu!$build_cpu$ac_delim | |
12253 | build_vendor!$build_vendor$ac_delim | |
12254 | build_os!$build_os$ac_delim | |
12255 | host!$host$ac_delim | |
12256 | host_cpu!$host_cpu$ac_delim | |
12257 | host_vendor!$host_vendor$ac_delim | |
12258 | host_os!$host_os$ac_delim | |
12259 | target!$target$ac_delim | |
12260 | target_cpu!$target_cpu$ac_delim | |
12261 | target_vendor!$target_vendor$ac_delim | |
12262 | target_os!$target_os$ac_delim | |
5951ef33 | 12263 | SED!$SED$ac_delim |
68f2de6d AK |
12264 | AWK!$AWK$ac_delim |
12265 | CC!$CC$ac_delim | |
12266 | CFLAGS!$CFLAGS$ac_delim | |
12267 | LDFLAGS!$LDFLAGS$ac_delim | |
12268 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12269 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12270 | EXEEXT!$EXEEXT$ac_delim | |
12271 | OBJEXT!$OBJEXT$ac_delim | |
12272 | CPP!$CPP$ac_delim | |
12273 | GREP!$GREP$ac_delim | |
12274 | EGREP!$EGREP$ac_delim | |
12275 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12276 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12277 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12278 | LN_S!$LN_S$ac_delim | |
12279 | SET_MAKE!$SET_MAKE$ac_delim | |
12280 | RANLIB!$RANLIB$ac_delim | |
12281 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12282 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12283 | ALLOCA!$ALLOCA$ac_delim | |
12284 | LIBOBJS!$LIBOBJS$ac_delim | |
12285 | POW_LIB!$POW_LIB$ac_delim | |
12286 | LCOV!$LCOV$ac_delim | |
12287 | GENHTML!$GENHTML$ac_delim | |
12288 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12289 | MSGFMT!$MSGFMT$ac_delim | |
12290 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12291 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12292 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12293 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12294 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12295 | CLUSTER!$CLUSTER$ac_delim | |
12296 | CLVMD!$CLVMD$ac_delim | |
12297 | CMDLIB!$CMDLIB$ac_delim | |
12298 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12299 | DEBUG!$DEBUG$ac_delim | |
12300 | DEVMAPPER!$DEVMAPPER$ac_delim | |
12301 | DMDIR!$DMDIR$ac_delim | |
12302 | DMEVENTD!$DMEVENTD$ac_delim | |
12303 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12304 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12305 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12306 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12307 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12308 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12309 | FSADM!$FSADM$ac_delim | |
12310 | GROUP!$GROUP$ac_delim | |
68f2de6d AK |
12311 | _ACEOF |
12312 | ||
12313 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12314 | break | |
12315 | elif $ac_last_try; then | |
12316 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12317 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12318 | { (exit 1); exit 1; }; } | |
12319 | else | |
12320 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12321 | fi | |
12322 | done | |
12323 | ||
12324 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12325 | if test -n "$ac_eof"; then | |
12326 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12327 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12328 | fi |
7a197a62 | 12329 | |
68f2de6d AK |
12330 | cat >>$CONFIG_STATUS <<_ACEOF |
12331 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12332 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12333 | _ACEOF | |
12334 | sed ' | |
12335 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12336 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12337 | :n | |
12338 | t n | |
12339 | s/'"$ac_delim"'$/,g/; t | |
12340 | s/$/\\/; p | |
12341 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12342 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12343 | rm -f conf$$subs.sed | |
12344 | cat >>$CONFIG_STATUS <<_ACEOF | |
12345 | CEOF$ac_eof | |
1995c9ff | 12346 | _ACEOF |
7a197a62 | 12347 | |
8106cdd5 | 12348 | |
1995c9ff AK |
12349 | ac_delim='%!_!# ' |
12350 | for ac_last_try in false false false false false :; do | |
68f2de6d | 12351 | cat >conf$$subs.sed <<_ACEOF |
5951ef33 | 12352 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim |
68f2de6d AK |
12353 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim |
12354 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12355 | INTL!$INTL$ac_delim | |
12356 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12357 | JOBS!$JOBS$ac_delim | |
12358 | LDDEPS!$LDDEPS$ac_delim | |
12359 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12360 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12361 | LVM1!$LVM1$ac_delim | |
12362 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12363 | CONFDIR!$CONFDIR$ac_delim | |
12364 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12365 | MIRRORS!$MIRRORS$ac_delim | |
12366 | OWNER!$OWNER$ac_delim | |
12367 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12368 | POOL!$POOL$ac_delim | |
12369 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12370 | STATICDIR!$STATICDIR$ac_delim | |
12371 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12372 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
12373 | usrlibdir!$usrlibdir$ac_delim | |
12374 | usrsbindir!$usrsbindir$ac_delim | |
12375 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12376 | _ACEOF | |
12377 | ||
5951ef33 | 12378 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then |
1995c9ff AK |
12379 | break |
12380 | elif $ac_last_try; then | |
68f2de6d AK |
12381 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12382 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12383 | { (exit 1); exit 1; }; } |
12384 | else | |
12385 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12386 | fi | |
12387 | done | |
7a197a62 | 12388 | |
68f2de6d AK |
12389 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12390 | if test -n "$ac_eof"; then | |
12391 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12392 | ac_eof=`expr $ac_eof + 1` | |
12393 | fi | |
fddafd51 | 12394 | |
68f2de6d AK |
12395 | cat >>$CONFIG_STATUS <<_ACEOF |
12396 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12397 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12398 | _ACEOF |
68f2de6d AK |
12399 | sed ' |
12400 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12401 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12402 | :n | |
12403 | t n | |
12404 | s/'"$ac_delim"'$/,g/; t | |
12405 | s/$/\\/; p | |
12406 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12407 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12408 | rm -f conf$$subs.sed | |
12409 | cat >>$CONFIG_STATUS <<_ACEOF | |
12410 | :end | |
12411 | s/|#_!!_#|//g | |
12412 | CEOF$ac_eof | |
7a197a62 AK |
12413 | _ACEOF |
12414 | ||
68f2de6d | 12415 | |
7a197a62 AK |
12416 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12417 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12418 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12419 | # (actually we leave an empty line to preserve line numbers). | |
12420 | if test "x$srcdir" = x.; then | |
12421 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12422 | s/:*\$(srcdir):*/:/ | |
12423 | s/:*\${srcdir}:*/:/ | |
12424 | s/:*@srcdir@:*/:/ | |
12425 | s/^\([^=]*=[ ]*\):*/\1/ | |
12426 | s/:*$// | |
12427 | s/^[^=]*=[ ]*$// | |
12428 | }' | |
12429 | fi | |
12430 | ||
68f2de6d | 12431 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12432 | fi # test -n "$CONFIG_FILES" |
12433 | ||
12434 | ||
68f2de6d | 12435 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12436 | do |
12437 | case $ac_tag in | |
12438 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12439 | esac | |
12440 | case $ac_mode$ac_tag in | |
12441 | :[FHL]*:*);; | |
68f2de6d AK |
12442 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12443 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12444 | { (exit 1); exit 1; }; };; |
12445 | :[FH]-) ac_tag=-:-;; | |
12446 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12447 | esac | |
12448 | ac_save_IFS=$IFS | |
12449 | IFS=: | |
12450 | set x $ac_tag | |
12451 | IFS=$ac_save_IFS | |
12452 | shift | |
12453 | ac_file=$1 | |
12454 | shift | |
12455 | ||
12456 | case $ac_mode in | |
12457 | :L) ac_source=$1;; | |
12458 | :[FH]) | |
12459 | ac_file_inputs= | |
12460 | for ac_f | |
12461 | do | |
12462 | case $ac_f in | |
12463 | -) ac_f="$tmp/stdin";; | |
12464 | *) # Look for the file first in the build tree, then in the source tree | |
12465 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12466 | # because $ac_f cannot contain `:'. | |
12467 | test -f "$ac_f" || | |
12468 | case $ac_f in | |
12469 | [\\/$]*) false;; | |
12470 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12471 | esac || | |
68f2de6d AK |
12472 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12473 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12474 | { (exit 1); exit 1; }; };; |
12475 | esac | |
68f2de6d | 12476 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12477 | done |
12478 | ||
12479 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12480 | # use $as_me), people would be surprised to read: | |
12481 | # /* config.h. Generated by config.status. */ | |
68f2de6d AK |
12482 | configure_input="Generated from "`IFS=: |
12483 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12484 | if test x"$ac_file" != x-; then |
12485 | configure_input="$ac_file. $configure_input" | |
68f2de6d AK |
12486 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12487 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12488 | fi |
12489 | ||
12490 | case $ac_tag in | |
68f2de6d | 12491 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12492 | esac |
12493 | ;; | |
80992638 | 12494 | esac |
8106cdd5 | 12495 | |
7a197a62 | 12496 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12497 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12498 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12499 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12500 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12501 | echo X"$ac_file" | |
7a197a62 AK |
12502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12503 | s//\1/ | |
12504 | q | |
12505 | } | |
12506 | /^X\(\/\/\)[^/].*/{ | |
12507 | s//\1/ | |
12508 | q | |
12509 | } | |
12510 | /^X\(\/\/\)$/{ | |
12511 | s//\1/ | |
12512 | q | |
12513 | } | |
12514 | /^X\(\/\).*/{ | |
12515 | s//\1/ | |
12516 | q | |
12517 | } | |
12518 | s/.*/./; q'` | |
12519 | { as_dir="$ac_dir" | |
12520 | case $as_dir in #( | |
12521 | -*) as_dir=./$as_dir;; | |
12522 | esac | |
12523 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12524 | as_dirs= |
7a197a62 AK |
12525 | while :; do |
12526 | case $as_dir in #( | |
68f2de6d | 12527 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12528 | *) as_qdir=$as_dir;; |
12529 | esac | |
12530 | as_dirs="'$as_qdir' $as_dirs" | |
12531 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12532 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12533 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12534 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12535 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12536 | echo X"$as_dir" | |
7a197a62 AK |
12537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12538 | s//\1/ | |
12539 | q | |
12540 | } | |
12541 | /^X\(\/\/\)[^/].*/{ | |
12542 | s//\1/ | |
12543 | q | |
12544 | } | |
12545 | /^X\(\/\/\)$/{ | |
12546 | s//\1/ | |
12547 | q | |
12548 | } | |
12549 | /^X\(\/\).*/{ | |
12550 | s//\1/ | |
12551 | q | |
12552 | } | |
12553 | s/.*/./; q'` | |
12554 | test -d "$as_dir" && break | |
ad6254c5 | 12555 | done |
7a197a62 | 12556 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
68f2de6d AK |
12557 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12558 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12559 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12560 | ac_builddir=. |
12561 | ||
7a197a62 AK |
12562 | case "$ac_dir" in |
12563 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12564 | *) | |
68f2de6d | 12565 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12566 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 12567 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12568 | case $ac_top_builddir_sub in |
12569 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12570 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12571 | esac ;; | |
12572 | esac | |
12573 | ac_abs_top_builddir=$ac_pwd | |
12574 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12575 | # for backward compatibility: | |
12576 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12577 | |
12578 | case $srcdir in | |
7a197a62 | 12579 | .) # We are building in place. |
ad6254c5 | 12580 | ac_srcdir=. |
7a197a62 AK |
12581 | ac_top_srcdir=$ac_top_builddir_sub |
12582 | ac_abs_top_srcdir=$ac_pwd ;; | |
12583 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12584 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12585 | ac_top_srcdir=$srcdir |
12586 | ac_abs_top_srcdir=$srcdir ;; | |
12587 | *) # Relative name. | |
12588 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12589 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12590 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12591 | esac |
7a197a62 | 12592 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12593 | |
ad6254c5 | 12594 | |
7a197a62 AK |
12595 | case $ac_mode in |
12596 | :F) | |
12597 | # | |
12598 | # CONFIG_FILE | |
12599 | # | |
ad6254c5 AK |
12600 | |
12601 | case $INSTALL in | |
12602 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12603 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12604 | esac |
fddafd51 ZK |
12605 | ac_MKDIR_P=$MKDIR_P |
12606 | case $MKDIR_P in | |
12607 | [\\/$]* | ?:[\\/]* ) ;; | |
12608 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12609 | esac | |
7a197a62 | 12610 | _ACEOF |
795ca3e5 | 12611 | |
68f2de6d | 12612 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12613 | # If the template does not know about datarootdir, expand it. |
12614 | # FIXME: This hack should be removed a few years after 2.60. | |
12615 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12616 | ||
68f2de6d | 12617 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12618 | p |
12619 | q | |
12620 | } | |
12621 | /@datadir@/p | |
12622 | /@docdir@/p | |
12623 | /@infodir@/p | |
12624 | /@localedir@/p | |
12625 | /@mandir@/p | |
68f2de6d | 12626 | ' $ac_file_inputs` in |
7a197a62 AK |
12627 | *datarootdir*) ac_datarootdir_seen=yes;; |
12628 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
68f2de6d AK |
12629 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12630 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12631 | _ACEOF |
68f2de6d | 12632 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12633 | ac_datarootdir_hack=' |
12634 | s&@datadir@&$datadir&g | |
12635 | s&@docdir@&$docdir&g | |
12636 | s&@infodir@&$infodir&g | |
12637 | s&@localedir@&$localedir&g | |
12638 | s&@mandir@&$mandir&g | |
12639 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12640 | esac | |
12641 | _ACEOF | |
12642 | ||
12643 | # Neutralize VPATH when `$srcdir' = `.'. | |
12644 | # Shell code in configure.ac might set extrasub. | |
12645 | # FIXME: do we really want to maintain this feature? | |
68f2de6d AK |
12646 | cat >>$CONFIG_STATUS <<_ACEOF |
12647 | sed "$ac_vpsub | |
ad6254c5 AK |
12648 | $extrasub |
12649 | _ACEOF | |
68f2de6d | 12650 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12651 | :t |
12652 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
68f2de6d | 12653 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12654 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12655 | s&@srcdir@&$ac_srcdir&;t t | |
12656 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12657 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12658 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12659 | s&@builddir@&$ac_builddir&;t t | |
12660 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12661 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12662 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12663 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12664 | $ac_datarootdir_hack |
68f2de6d | 12665 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12666 | |
12667 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12668 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12669 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
68f2de6d | 12670 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12671 | which seems to be undefined. Please make sure it is defined." >&5 |
68f2de6d | 12672 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12673 | which seems to be undefined. Please make sure it is defined." >&2;} |
12674 | ||
12675 | rm -f "$tmp/stdin" | |
72b2cb61 | 12676 | case $ac_file in |
68f2de6d AK |
12677 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12678 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12679 | esac | |
7a197a62 AK |
12680 | ;; |
12681 | :H) | |
12682 | # | |
12683 | # CONFIG_HEADER | |
12684 | # | |
68f2de6d AK |
12685 | _ACEOF |
12686 | ||
12687 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12688 | # substitutes the proper values into config.h.in to produce config.h. | |
12689 | rm -f conftest.defines conftest.tail | |
12690 | # First, append a space to every undef/define line, to ease matching. | |
12691 | echo 's/$/ /' >conftest.defines | |
12692 | # Then, protect against being on the right side of a sed subst, or in | |
12693 | # an unquoted here document, in config.status. If some macros were | |
12694 | # called several times there might be several #defines for the same | |
12695 | # symbol, which is useless. But do not sort them, since the last | |
12696 | # AC_DEFINE must be honored. | |
12697 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12698 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12699 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12700 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12701 | # just an empty string. | |
12702 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12703 | ac_dB='\\)[ (].*,\\1define\\2' | |
12704 | ac_dC=' ' | |
12705 | ac_dD=' ,' | |
12706 | ||
12707 | uniq confdefs.h | | |
12708 | sed -n ' | |
12709 | t rset | |
12710 | :rset | |
12711 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12712 | t ok | |
12713 | d | |
12714 | :ok | |
12715 | s/[\\&,]/\\&/g | |
12716 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12717 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12718 | ' >>conftest.defines | |
12719 | ||
12720 | # Remove the space that was appended to ease matching. | |
12721 | # Then replace #undef with comments. This is necessary, for | |
12722 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12723 | # on some systems where configure will not decide to define it. | |
12724 | # (The regexp can be short, since the line contains either #define or #undef.) | |
12725 | echo 's/ $// | |
12726 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12727 | ||
12728 | # Break up conftest.defines: | |
12729 | ac_max_sed_lines=50 | |
12730 | ||
12731 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12732 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12733 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12734 | # et cetera. | |
12735 | ac_in='$ac_file_inputs' | |
12736 | ac_out='"$tmp/out1"' | |
12737 | ac_nxt='"$tmp/out2"' | |
12738 | ||
12739 | while : | |
12740 | do | |
12741 | # Write a here document: | |
12742 | cat >>$CONFIG_STATUS <<_ACEOF | |
12743 | # First, check the format of the line: | |
12744 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12745 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12746 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12747 | b | |
12748 | :def | |
12749 | _ACEOF | |
12750 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
12751 | echo 'CEOF | |
12752 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
12753 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12754 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12755 | grep . conftest.tail >/dev/null || break | |
12756 | rm -f conftest.defines | |
12757 | mv conftest.tail conftest.defines | |
12758 | done | |
12759 | rm -f conftest.defines conftest.tail | |
12760 | ||
12761 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
12762 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 12763 | if test x"$ac_file" != x-; then |
68f2de6d AK |
12764 | echo "/* $configure_input */" >"$tmp/config.h" |
12765 | cat "$ac_result" >>"$tmp/config.h" | |
12766 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
12767 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12768 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12769 | else |
68f2de6d AK |
12770 | rm -f $ac_file |
12771 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
12772 | fi |
12773 | else | |
68f2de6d AK |
12774 | echo "/* $configure_input */" |
12775 | cat "$ac_result" | |
72b2cb61 | 12776 | fi |
68f2de6d | 12777 | rm -f "$tmp/out12" |
7a197a62 AK |
12778 | ;; |
12779 | ||
12780 | ||
12781 | esac | |
12782 | ||
12783 | done # for ac_tag | |
795ca3e5 | 12784 | |
795ca3e5 | 12785 | |
ad6254c5 AK |
12786 | { (exit 0); exit 0; } |
12787 | _ACEOF | |
795ca3e5 | 12788 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12789 | ac_clean_files=$ac_clean_files_save |
12790 | ||
12791 | ||
12792 | # configure is writing to config.log, and then calls config.status. | |
12793 | # config.status does its own redirection, appending to config.log. | |
12794 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12795 | # by configure, so config.status won't be able to write to it; its | |
12796 | # output is simply discarded. So we exec the FD to /dev/null, | |
12797 | # effectively closing config.log, so it can be properly (re)opened and | |
12798 | # appended to by config.status. When coming back to configure, we | |
12799 | # need to make the FD available again. | |
12800 | if test "$no_create" != yes; then | |
12801 | ac_cs_success=: | |
12802 | ac_config_status_args= | |
12803 | test "$silent" = yes && | |
12804 | ac_config_status_args="$ac_config_status_args --quiet" | |
12805 | exec 5>/dev/null | |
12806 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12807 | exec 5>>config.log | |
12808 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12809 | # would make configure fail if this is the last instruction. | |
12810 | $ac_cs_success || { (exit 1); exit 1; } | |
12811 | fi | |
795ca3e5 | 12812 | |
2dc95e1c AK |
12813 | |
12814 | if test x$ODIRECT != xyes; then | |
68f2de6d AK |
12815 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12816 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12817 | fi |
809fae91 AK |
12818 | |
12819 | if test x$FSADM == xyes; then | |
68f2de6d AK |
12820 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12821 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12822 | fi |
06f62ad1 AK |
12823 | |
12824 | if test x$DMEVENTD == xyes; then | |
68f2de6d AK |
12825 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12826 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12827 | fi |