]>
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 | DMEVENTD |
705 | DM_COMPAT | |
706 | DM_DEVICE_GID | |
707 | DM_DEVICE_MODE | |
708 | DM_DEVICE_UID | |
709 | DM_IOCTLS | |
710 | DM_LIB_VERSION | |
711 | FSADM | |
712 | GROUP | |
7a197a62 | 713 | HAVE_LIBDL |
7a197a62 | 714 | HAVE_REALTIME |
d0191583 JM |
715 | HAVE_SELINUX |
716 | INTL | |
717 | INTL_PACKAGE | |
718 | JOBS | |
719 | LDDEPS | |
720 | LIB_SUFFIX | |
7a197a62 | 721 | LOCALEDIR |
d0191583 JM |
722 | LVM1 |
723 | LVM1_FALLBACK | |
7a197a62 | 724 | CONFDIR |
d0191583 JM |
725 | LVM_VERSION |
726 | MIRRORS | |
727 | OWNER | |
728 | PKGCONFIG | |
729 | POOL | |
730 | SNAPSHOTS | |
7a197a62 | 731 | STATICDIR |
d0191583 | 732 | STATIC_LINK |
66e941e8 | 733 | LIB_PTHREAD |
93bd259b AK |
734 | interface |
735 | kerneldir | |
736 | missingkernel | |
737 | kernelvsn | |
738 | tmpdir | |
68f2de6d AK |
739 | usrlibdir |
740 | usrsbindir | |
7a197a62 | 741 | LTLIBOBJS' |
ad6254c5 | 742 | ac_subst_files='' |
7a197a62 AK |
743 | ac_precious_vars='build_alias |
744 | host_alias | |
745 | target_alias | |
746 | CC | |
747 | CFLAGS | |
748 | LDFLAGS | |
25fbec5b | 749 | LIBS |
7a197a62 AK |
750 | CPPFLAGS |
751 | CPP' | |
752 | ||
795ca3e5 AK |
753 | |
754 | # Initialize some variables set by options. | |
ad6254c5 AK |
755 | ac_init_help= |
756 | ac_init_version=false | |
795ca3e5 AK |
757 | # The variables have the same names as the options, with |
758 | # dashes changed to underlines. | |
ad6254c5 | 759 | cache_file=/dev/null |
795ca3e5 | 760 | exec_prefix=NONE |
795ca3e5 | 761 | no_create= |
795ca3e5 AK |
762 | no_recursion= |
763 | prefix=NONE | |
764 | program_prefix=NONE | |
765 | program_suffix=NONE | |
766 | program_transform_name=s,x,x, | |
767 | silent= | |
768 | site= | |
769 | srcdir= | |
795ca3e5 AK |
770 | verbose= |
771 | x_includes=NONE | |
772 | x_libraries=NONE | |
ad6254c5 AK |
773 | |
774 | # Installation directory options. | |
775 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
776 | # and all the variables that are supposed to be based on exec_prefix | |
777 | # by default will actually change. | |
778 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 779 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
780 | bindir='${exec_prefix}/bin' |
781 | sbindir='${exec_prefix}/sbin' | |
782 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
783 | datarootdir='${prefix}/share' |
784 | datadir='${datarootdir}' | |
795ca3e5 AK |
785 | sysconfdir='${prefix}/etc' |
786 | sharedstatedir='${prefix}/com' | |
787 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
788 | includedir='${prefix}/include' |
789 | oldincludedir='/usr/include' | |
7a197a62 AK |
790 | docdir='${datarootdir}/doc/${PACKAGE}' |
791 | infodir='${datarootdir}/info' | |
792 | htmldir='${docdir}' | |
793 | dvidir='${docdir}' | |
794 | pdfdir='${docdir}' | |
795 | psdir='${docdir}' | |
796 | libdir='${exec_prefix}/lib' | |
797 | localedir='${datarootdir}/locale' | |
798 | mandir='${datarootdir}/man' | |
795ca3e5 | 799 | |
795ca3e5 | 800 | ac_prev= |
7a197a62 | 801 | ac_dashdash= |
795ca3e5 AK |
802 | for ac_option |
803 | do | |
795ca3e5 AK |
804 | # If the previous option needs an argument, assign it. |
805 | if test -n "$ac_prev"; then | |
7a197a62 | 806 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
807 | ac_prev= |
808 | continue | |
809 | fi | |
810 | ||
7a197a62 AK |
811 | case $ac_option in |
812 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
813 | *) ac_optarg=yes ;; | |
814 | esac | |
795ca3e5 AK |
815 | |
816 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
817 | ||
7a197a62 AK |
818 | case $ac_dashdash$ac_option in |
819 | --) | |
820 | ac_dashdash=yes ;; | |
795ca3e5 AK |
821 | |
822 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
823 | ac_prev=bindir ;; | |
824 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 825 | bindir=$ac_optarg ;; |
795ca3e5 AK |
826 | |
827 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 828 | ac_prev=build_alias ;; |
795ca3e5 | 829 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 830 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
831 | |
832 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
833 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
834 | ac_prev=cache_file ;; | |
835 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
836 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
837 | cache_file=$ac_optarg ;; |
838 | ||
839 | --config-cache | -C) | |
840 | cache_file=config.cache ;; | |
795ca3e5 | 841 | |
7a197a62 | 842 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 843 | ac_prev=datadir ;; |
7a197a62 | 844 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 845 | datadir=$ac_optarg ;; |
795ca3e5 | 846 | |
7a197a62 AK |
847 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
848 | | --dataroo | --dataro | --datar) | |
849 | ac_prev=datarootdir ;; | |
850 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
851 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
852 | datarootdir=$ac_optarg ;; | |
853 | ||
795ca3e5 | 854 | -disable-* | --disable-*) |
68f2de6d | 855 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 856 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
857 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 859 | { (exit 1); exit 1; }; } |
68f2de6d AK |
860 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
861 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
862 | |
863 | -docdir | --docdir | --docdi | --doc | --do) | |
864 | ac_prev=docdir ;; | |
865 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
866 | docdir=$ac_optarg ;; | |
867 | ||
868 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
869 | ac_prev=dvidir ;; | |
870 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
871 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
872 | |
873 | -enable-* | --enable-*) | |
68f2de6d | 874 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 875 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
876 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
877 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 878 | { (exit 1); exit 1; }; } |
68f2de6d AK |
879 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
880 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
881 | |
882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
884 | | --exec | --exe | --ex) | |
885 | ac_prev=exec_prefix ;; | |
886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
888 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 889 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
890 | |
891 | -gas | --gas | --ga | --g) | |
892 | # Obsolete; use --with-gas. | |
893 | with_gas=yes ;; | |
894 | ||
ad6254c5 AK |
895 | -help | --help | --hel | --he | -h) |
896 | ac_init_help=long ;; | |
897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
898 | ac_init_help=recursive ;; | |
899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
900 | ac_init_help=short ;; | |
795ca3e5 AK |
901 | |
902 | -host | --host | --hos | --ho) | |
ad6254c5 | 903 | ac_prev=host_alias ;; |
795ca3e5 | 904 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 905 | host_alias=$ac_optarg ;; |
795ca3e5 | 906 | |
7a197a62 AK |
907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
908 | ac_prev=htmldir ;; | |
909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
910 | | --ht=*) | |
911 | htmldir=$ac_optarg ;; | |
912 | ||
795ca3e5 AK |
913 | -includedir | --includedir | --includedi | --included | --include \ |
914 | | --includ | --inclu | --incl | --inc) | |
915 | ac_prev=includedir ;; | |
916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
917 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 918 | includedir=$ac_optarg ;; |
795ca3e5 AK |
919 | |
920 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
921 | ac_prev=infodir ;; | |
922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 923 | infodir=$ac_optarg ;; |
795ca3e5 AK |
924 | |
925 | -libdir | --libdir | --libdi | --libd) | |
926 | ac_prev=libdir ;; | |
927 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 928 | libdir=$ac_optarg ;; |
795ca3e5 AK |
929 | |
930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
931 | | --libexe | --libex | --libe) | |
932 | ac_prev=libexecdir ;; | |
933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
934 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 935 | libexecdir=$ac_optarg ;; |
795ca3e5 | 936 | |
7a197a62 AK |
937 | -localedir | --localedir | --localedi | --localed | --locale) |
938 | ac_prev=localedir ;; | |
939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
940 | localedir=$ac_optarg ;; | |
941 | ||
795ca3e5 | 942 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 943 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
944 | ac_prev=localstatedir ;; |
945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 947 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
948 | |
949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
950 | ac_prev=mandir ;; | |
951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 952 | mandir=$ac_optarg ;; |
795ca3e5 AK |
953 | |
954 | -nfp | --nfp | --nf) | |
955 | # Obsolete; use --without-fp. | |
956 | with_fp=no ;; | |
957 | ||
958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 959 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
960 | no_create=yes ;; |
961 | ||
962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
964 | no_recursion=yes ;; | |
965 | ||
966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
968 | | --oldin | --oldi | --old | --ol | --o) | |
969 | ac_prev=oldincludedir ;; | |
970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 973 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
974 | |
975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
976 | ac_prev=prefix ;; | |
977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 978 | prefix=$ac_optarg ;; |
795ca3e5 AK |
979 | |
980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
981 | | --program-pre | --program-pr | --program-p) | |
982 | ac_prev=program_prefix ;; | |
983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 985 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
988 | | --program-suf | --program-su | --program-s) | |
989 | ac_prev=program_suffix ;; | |
990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 992 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
993 | |
994 | -program-transform-name | --program-transform-name \ | |
995 | | --program-transform-nam | --program-transform-na \ | |
996 | | --program-transform-n | --program-transform- \ | |
997 | | --program-transform | --program-transfor \ | |
998 | | --program-transfo | --program-transf \ | |
999 | | --program-trans | --program-tran \ | |
1000 | | --progr-tra | --program-tr | --program-t) | |
1001 | ac_prev=program_transform_name ;; | |
1002 | -program-transform-name=* | --program-transform-name=* \ | |
1003 | | --program-transform-nam=* | --program-transform-na=* \ | |
1004 | | --program-transform-n=* | --program-transform-=* \ | |
1005 | | --program-transform=* | --program-transfor=* \ | |
1006 | | --program-transfo=* | --program-transf=* \ | |
1007 | | --program-trans=* | --program-tran=* \ | |
1008 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1009 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1010 | |
7a197a62 AK |
1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1012 | ac_prev=pdfdir ;; | |
1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1014 | pdfdir=$ac_optarg ;; | |
1015 | ||
1016 | -psdir | --psdir | --psdi | --psd | --ps) | |
1017 | ac_prev=psdir ;; | |
1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1019 | psdir=$ac_optarg ;; | |
1020 | ||
795ca3e5 AK |
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1022 | | -silent | --silent | --silen | --sile | --sil) | |
1023 | silent=yes ;; | |
1024 | ||
1025 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1026 | ac_prev=sbindir ;; | |
1027 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1028 | | --sbi=* | --sb=*) | |
ad6254c5 | 1029 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1030 | |
1031 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1032 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1033 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1034 | | --sha | --sh) | |
1035 | ac_prev=sharedstatedir ;; | |
1036 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1037 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1038 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1039 | | --sha=* | --sh=*) | |
ad6254c5 | 1040 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1041 | |
1042 | -site | --site | --sit) | |
1043 | ac_prev=site ;; | |
1044 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1045 | site=$ac_optarg ;; |
795ca3e5 AK |
1046 | |
1047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1048 | ac_prev=srcdir ;; | |
1049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1050 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1051 | |
1052 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1053 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1054 | ac_prev=sysconfdir ;; | |
1055 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1056 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1057 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1058 | |
1059 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1060 | ac_prev=target_alias ;; |
795ca3e5 | 1061 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1062 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1063 | |
1064 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1065 | verbose=yes ;; | |
1066 | ||
ad6254c5 AK |
1067 | -version | --version | --versio | --versi | --vers | -V) |
1068 | ac_init_version=: ;; | |
795ca3e5 AK |
1069 | |
1070 | -with-* | --with-*) | |
68f2de6d | 1071 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1072 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1073 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1074 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1075 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1076 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1077 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1078 | |
1079 | -without-* | --without-*) | |
68f2de6d | 1080 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1081 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1082 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1083 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1084 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1085 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1086 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1087 | |
1088 | --x) | |
1089 | # Obsolete; use --with-x. | |
1090 | with_x=yes ;; | |
1091 | ||
1092 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1093 | | --x-incl | --x-inc | --x-in | --x-i) | |
1094 | ac_prev=x_includes ;; | |
1095 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1096 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1097 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1098 | |
1099 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1100 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1101 | ac_prev=x_libraries ;; | |
1102 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1103 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1104 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1105 | |
68f2de6d | 1106 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1107 | Try \`$0 --help' for more information." >&2 |
1108 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1109 | ;; |
1110 | ||
ad6254c5 AK |
1111 | *=*) |
1112 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1113 | # Reject names that are not valid shell variable names. | |
1114 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
68f2de6d | 1115 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1116 | { (exit 1); exit 1; }; } |
7a197a62 | 1117 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1118 | export $ac_envvar ;; |
1119 | ||
795ca3e5 | 1120 | *) |
ad6254c5 | 1121 | # FIXME: should be removed in autoconf 3.0. |
68f2de6d | 1122 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1123 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
68f2de6d | 1124 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1125 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1126 | ;; |
1127 | ||
1128 | esac | |
1129 | done | |
1130 | ||
1131 | if test -n "$ac_prev"; then | |
ad6254c5 | 1132 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
68f2de6d | 1133 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1134 | { (exit 1); exit 1; }; } |
795ca3e5 | 1135 | fi |
795ca3e5 | 1136 | |
68f2de6d | 1137 | # Be sure to have absolute directory names. |
7a197a62 AK |
1138 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1139 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1140 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1141 | libdir localedir mandir | |
795ca3e5 | 1142 | do |
7a197a62 | 1143 | eval ac_val=\$$ac_var |
ad6254c5 | 1144 | case $ac_val in |
7a197a62 AK |
1145 | [\\/$]* | ?:[\\/]* ) continue;; |
1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1147 | esac |
68f2de6d | 1148 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1149 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1150 | done |
1151 | ||
ad6254c5 AK |
1152 | # There might be people who depend on the old broken behavior: `$host' |
1153 | # used to hold the argument of --host etc. | |
1154 | # FIXME: To remove some day. | |
1155 | build=$build_alias | |
1156 | host=$host_alias | |
1157 | target=$target_alias | |
1158 | ||
1159 | # FIXME: To remove some day. | |
1160 | if test "x$host_alias" != x; then | |
1161 | if test "x$build_alias" = x; then | |
1162 | cross_compiling=maybe | |
68f2de6d | 1163 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1164 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1165 | elif test "x$build_alias" != "x$host_alias"; then | |
1166 | cross_compiling=yes | |
1167 | fi | |
1168 | fi | |
8106cdd5 | 1169 | |
ad6254c5 AK |
1170 | ac_tool_prefix= |
1171 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1172 | ||
1173 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1174 | |
795ca3e5 | 1175 | |
7a197a62 AK |
1176 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1177 | ac_ls_di=`ls -di .` && | |
1178 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
68f2de6d | 1179 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1180 | { (exit 1); exit 1; }; } |
1181 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
68f2de6d | 1182 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1183 | { (exit 1); exit 1; }; } |
1184 | ||
1185 | ||
795ca3e5 AK |
1186 | # Find the source files, if location was not specified. |
1187 | if test -z "$srcdir"; then | |
1188 | ac_srcdir_defaulted=yes | |
7a197a62 | 1189 | # Try the directory containing this script, then the parent directory. |
68f2de6d AK |
1190 | ac_confdir=`$as_dirname -- "$0" || |
1191 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1192 | X"$0" : 'X\(//\)[^/]' \| \ | |
1193 | X"$0" : 'X\(//\)$' \| \ | |
1194 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1195 | echo X"$0" | | |
7a197a62 AK |
1196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1197 | s//\1/ | |
1198 | q | |
1199 | } | |
1200 | /^X\(\/\/\)[^/].*/{ | |
1201 | s//\1/ | |
1202 | q | |
1203 | } | |
1204 | /^X\(\/\/\)$/{ | |
1205 | s//\1/ | |
1206 | q | |
1207 | } | |
1208 | /^X\(\/\).*/{ | |
1209 | s//\1/ | |
1210 | q | |
1211 | } | |
1212 | s/.*/./; q'` | |
795ca3e5 | 1213 | srcdir=$ac_confdir |
7a197a62 | 1214 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1215 | srcdir=.. |
1216 | fi | |
1217 | else | |
1218 | ac_srcdir_defaulted=no | |
1219 | fi | |
7a197a62 AK |
1220 | if test ! -r "$srcdir/$ac_unique_file"; then |
1221 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
68f2de6d | 1222 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1223 | { (exit 1); exit 1; }; } |
795ca3e5 | 1224 | fi |
7a197a62 AK |
1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1226 | ac_abs_confdir=`( | |
68f2de6d | 1227 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1228 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1229 | pwd)` |
1230 | # When building in place, set srcdir=. | |
1231 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1232 | srcdir=. | |
1233 | fi | |
1234 | # Remove unnecessary trailing slashes from srcdir. | |
1235 | # Double slashes in file names in object file debugging info | |
1236 | # mess up M-x gdb in Emacs. | |
1237 | case $srcdir in | |
1238 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1239 | esac | |
1240 | for ac_var in $ac_precious_vars; do | |
1241 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1242 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1243 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1244 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1245 | done | |
ad6254c5 AK |
1246 | |
1247 | # | |
1248 | # Report the --help message. | |
1249 | # | |
1250 | if test "$ac_init_help" = "long"; then | |
1251 | # Omit some internal or obsolete options to make the list less imposing. | |
1252 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1253 | cat <<_ACEOF | |
1254 | \`configure' configures this package to adapt to many kinds of systems. | |
1255 | ||
1256 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1257 | ||
1258 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1259 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1260 | ||
1261 | Defaults for the options are specified in brackets. | |
1262 | ||
1263 | Configuration: | |
1264 | -h, --help display this help and exit | |
1265 | --help=short display options specific to this package | |
1266 | --help=recursive display the short help of all the included packages | |
1267 | -V, --version display version information and exit | |
1268 | -q, --quiet, --silent do not print \`checking...' messages | |
1269 | --cache-file=FILE cache test results in FILE [disabled] | |
1270 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1271 | -n, --no-create do not create output files | |
1272 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1273 | ||
ad6254c5 AK |
1274 | Installation directories: |
1275 | --prefix=PREFIX install architecture-independent files in PREFIX | |
68f2de6d | 1276 | [$ac_default_prefix] |
ad6254c5 | 1277 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
68f2de6d | 1278 | [PREFIX] |
ad6254c5 AK |
1279 | |
1280 | By default, \`make install' will install all the files in | |
1281 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1282 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1283 | for instance \`--prefix=\$HOME'. | |
1284 | ||
1285 | For better control, use the options below. | |
1286 | ||
1287 | Fine tuning of the installation directories: | |
68f2de6d AK |
1288 | --bindir=DIR user executables [EPREFIX/bin] |
1289 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1290 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1291 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1292 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1293 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1294 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1295 | --includedir=DIR C header files [PREFIX/include] | |
1296 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1297 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1298 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1299 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1300 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1301 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1302 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1303 | --htmldir=DIR html documentation [DOCDIR] | |
1304 | --dvidir=DIR dvi documentation [DOCDIR] | |
1305 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1306 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1307 | _ACEOF |
1308 | ||
1309 | cat <<\_ACEOF | |
1310 | ||
1311 | System types: | |
1312 | --build=BUILD configure for building on BUILD [guessed] | |
1313 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1314 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1315 | _ACEOF | |
1316 | fi | |
1317 | ||
1318 | if test -n "$ac_init_help"; then | |
1319 | ||
1320 | cat <<\_ACEOF | |
1321 | ||
1322 | Optional Features: | |
1323 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1324 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1325 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1326 | device-mapper is missing from the kernel | |
1b523347 | 1327 | --disable-readline Disable readline support |
3d978351 | 1328 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1329 | --enable-debug Enable debugging |
5556819a | 1330 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1331 | --disable-devmapper Disable LVM2 device-mapper interaction |
1332 | --enable-compat Enable support for old device-mapper versions | |
1333 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 AK |
1334 | --disable-o_direct Disable O_DIRECT |
1335 | --enable-cmdlib Build shared command library | |
93bd259b | 1336 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1337 | --enable-fsadm Enable fsadm |
15d91f5a | 1338 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1339 | --enable-static_link Use this to link the tools to their libraries |
1340 | statically. Default is dynamic linking | |
1341 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1342 | --enable-nls Enable Native Language Support |
1343 | ||
1344 | Optional Packages: | |
1345 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1346 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1347 | --with-user=USER Set the owner of installed files [USER=root] |
1348 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1349 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1350 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1351 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1352 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1353 | TYPE=internal | |
1354 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1355 | TYPE=internal | |
1356 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1357 | TYPE=internal | |
1358 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1359 | TYPE=internal | |
1360 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1361 | TYPE=internal | |
5c7fc7c4 | 1362 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1363 | TYPE=none |
d0191583 JM |
1364 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1365 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1366 | --with-confdir=DIR Configuration files in DIR /etc |
1367 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1368 | --with-usrlibdir=DIR |
1369 | --with-usrsbindir=DIR | |
93bd259b AK |
1370 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1371 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1372 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1373 | |
1374 | Some influential environment variables: | |
1375 | CC C compiler command | |
1376 | CFLAGS C compiler flags | |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1378 | nonstandard directory <lib dir> | |
25fbec5b | 1379 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1382 | CPP C preprocessor |
1383 | ||
1384 | Use these variables to override the choices made by `configure' or to help | |
1385 | it to find libraries and programs with nonstandard names/locations. | |
1386 | ||
1387 | _ACEOF | |
7a197a62 | 1388 | ac_status=$? |
ad6254c5 AK |
1389 | fi |
1390 | ||
1391 | if test "$ac_init_help" = "recursive"; then | |
1392 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1393 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
68f2de6d | 1394 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1395 | ac_builddir=. |
1396 | ||
7a197a62 AK |
1397 | case "$ac_dir" in |
1398 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1399 | *) | |
68f2de6d | 1400 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1401 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 1402 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1403 | case $ac_top_builddir_sub in |
1404 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1405 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1406 | esac ;; | |
1407 | esac | |
1408 | ac_abs_top_builddir=$ac_pwd | |
1409 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1410 | # for backward compatibility: | |
1411 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1412 | |
1413 | case $srcdir in | |
7a197a62 | 1414 | .) # We are building in place. |
ad6254c5 | 1415 | ac_srcdir=. |
7a197a62 AK |
1416 | ac_top_srcdir=$ac_top_builddir_sub |
1417 | ac_abs_top_srcdir=$ac_pwd ;; | |
1418 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1419 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1420 | ac_top_srcdir=$srcdir |
1421 | ac_abs_top_srcdir=$srcdir ;; | |
1422 | *) # Relative name. | |
1423 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1424 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1425 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1426 | esac |
7a197a62 AK |
1427 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1428 | ||
1429 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1430 | # Check for guested configure. | |
1431 | if test -f "$ac_srcdir/configure.gnu"; then | |
1432 | echo && | |
1433 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1434 | elif test -f "$ac_srcdir/configure"; then | |
1435 | echo && | |
1436 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1437 | else |
68f2de6d | 1438 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1439 | fi || ac_status=$? |
1440 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1441 | done |
1442 | fi | |
1443 | ||
7a197a62 | 1444 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1445 | if $ac_init_version; then |
1446 | cat <<\_ACEOF | |
7a197a62 | 1447 | configure |
68f2de6d | 1448 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1449 | |
7a197a62 | 1450 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 1451 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1452 | This configure script is free software; the Free Software Foundation |
1453 | gives unlimited permission to copy, distribute and modify it. | |
1454 | _ACEOF | |
7a197a62 | 1455 | exit |
ad6254c5 | 1456 | fi |
7a197a62 | 1457 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1458 | This file contains any messages produced by compilers while |
1459 | running configure, to aid debugging if configure makes a mistake. | |
1460 | ||
1461 | It was created by $as_me, which was | |
68f2de6d | 1462 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1463 | |
1464 | $ $0 $@ | |
1465 | ||
1466 | _ACEOF | |
7a197a62 | 1467 | exec 5>>config.log |
ad6254c5 AK |
1468 | { |
1469 | cat <<_ASUNAME | |
1470 | ## --------- ## | |
1471 | ## Platform. ## | |
1472 | ## --------- ## | |
1473 | ||
1474 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1475 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1476 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1477 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1478 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1479 | ||
1480 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1481 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1482 | ||
1483 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1484 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1485 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1486 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1487 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1488 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1489 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1490 | ||
1491 | _ASUNAME | |
1492 | ||
1493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1494 | for as_dir in $PATH | |
1495 | do | |
1496 | IFS=$as_save_IFS | |
1497 | test -z "$as_dir" && as_dir=. | |
68f2de6d | 1498 | echo "PATH: $as_dir" |
ad6254c5 | 1499 | done |
7a197a62 | 1500 | IFS=$as_save_IFS |
ad6254c5 AK |
1501 | |
1502 | } >&5 | |
1503 | ||
1504 | cat >&5 <<_ACEOF | |
1505 | ||
1506 | ||
1507 | ## ----------- ## | |
1508 | ## Core tests. ## | |
1509 | ## ----------- ## | |
1510 | ||
1511 | _ACEOF | |
1512 | ||
1513 | ||
1514 | # Keep a trace of the command line. | |
1515 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1516 | # Strip out --silent because we don't want to record it for future runs. | |
1517 | # Also quote any args containing shell meta-characters. | |
1518 | # Make two passes to allow for proper duplicate-argument suppression. | |
1519 | ac_configure_args= | |
1520 | ac_configure_args0= | |
1521 | ac_configure_args1= | |
ad6254c5 AK |
1522 | ac_must_keep_next=false |
1523 | for ac_pass in 1 2 | |
1524 | do | |
1525 | for ac_arg | |
1526 | do | |
1527 | case $ac_arg in | |
1528 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1529 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1530 | | -silent | --silent | --silen | --sile | --sil) | |
1531 | continue ;; | |
7a197a62 | 1532 | *\'*) |
68f2de6d | 1533 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1534 | esac |
1535 | case $ac_pass in | |
1536 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1537 | 2) | |
1538 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1539 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1540 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1541 | else |
8a2fc586 AK |
1542 | case $ac_arg in |
1543 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1544 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1545 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1546 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1547 | case "$ac_configure_args0 " in | |
1548 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1549 | esac | |
1550 | ;; | |
1551 | -* ) ac_must_keep_next=true ;; | |
1552 | esac | |
ad6254c5 | 1553 | fi |
7a197a62 | 1554 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1555 | ;; |
1556 | esac | |
1557 | done | |
1558 | done | |
1559 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1560 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1561 | ||
1562 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1563 | # config.log. We remove comments because anyway the quotes in there | |
1564 | # would cause problems or look ugly. | |
7a197a62 AK |
1565 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1566 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1567 | trap 'exit_status=$? |
1568 | # Save into config.log some information that might help in debugging. | |
1569 | { | |
1570 | echo | |
1571 | ||
1572 | cat <<\_ASBOX | |
1573 | ## ---------------- ## | |
1574 | ## Cache variables. ## | |
1575 | ## ---------------- ## | |
1576 | _ASBOX | |
1577 | echo | |
1578 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1579 | ( |
1580 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1581 | eval ac_val=\$$ac_var | |
1582 | case $ac_val in #( | |
1583 | *${as_nl}*) | |
1584 | case $ac_var in #( | |
68f2de6d AK |
1585 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1586 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1587 | esac |
1588 | case $ac_var in #( | |
1589 | _ | IFS | as_nl) ;; #( | |
1590 | *) $as_unset $ac_var ;; | |
1591 | esac ;; | |
1592 | esac | |
1593 | done | |
ad6254c5 | 1594 | (set) 2>&1 | |
7a197a62 AK |
1595 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1596 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1597 | sed -n \ |
7a197a62 AK |
1598 | "s/'\''/'\''\\\\'\'''\''/g; |
1599 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1600 | ;; #( | |
ad6254c5 | 1601 | *) |
7a197a62 | 1602 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1603 | ;; |
7a197a62 AK |
1604 | esac | |
1605 | sort | |
1606 | ) | |
ad6254c5 AK |
1607 | echo |
1608 | ||
1609 | cat <<\_ASBOX | |
1610 | ## ----------------- ## | |
1611 | ## Output variables. ## | |
1612 | ## ----------------- ## | |
1613 | _ASBOX | |
1614 | echo | |
1615 | for ac_var in $ac_subst_vars | |
1616 | do | |
7a197a62 AK |
1617 | eval ac_val=\$$ac_var |
1618 | case $ac_val in | |
68f2de6d | 1619 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1620 | esac |
68f2de6d | 1621 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1622 | done | sort |
1623 | echo | |
1624 | ||
1625 | if test -n "$ac_subst_files"; then | |
1626 | cat <<\_ASBOX | |
7a197a62 AK |
1627 | ## ------------------- ## |
1628 | ## File substitutions. ## | |
1629 | ## ------------------- ## | |
ad6254c5 AK |
1630 | _ASBOX |
1631 | echo | |
1632 | for ac_var in $ac_subst_files | |
1633 | do | |
7a197a62 AK |
1634 | eval ac_val=\$$ac_var |
1635 | case $ac_val in | |
68f2de6d | 1636 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1637 | esac |
68f2de6d | 1638 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1639 | done | sort |
1640 | echo | |
1641 | fi | |
1642 | ||
1643 | if test -s confdefs.h; then | |
1644 | cat <<\_ASBOX | |
1645 | ## ----------- ## | |
1646 | ## confdefs.h. ## | |
1647 | ## ----------- ## | |
1648 | _ASBOX | |
1649 | echo | |
7a197a62 | 1650 | cat confdefs.h |
ad6254c5 AK |
1651 | echo |
1652 | fi | |
1653 | test "$ac_signal" != 0 && | |
68f2de6d AK |
1654 | echo "$as_me: caught signal $ac_signal" |
1655 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1656 | } >&5 |
7a197a62 AK |
1657 | rm -f core *.core core.conftest.* && |
1658 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1659 | exit $exit_status |
7a197a62 | 1660 | ' 0 |
ad6254c5 AK |
1661 | for ac_signal in 1 2 13 15; do |
1662 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1663 | done | |
1664 | ac_signal=0 | |
1665 | ||
1666 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1667 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1668 | |
1669 | # Predefined preprocessor variables. | |
1670 | ||
1671 | cat >>confdefs.h <<_ACEOF | |
1672 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1673 | _ACEOF | |
1674 | ||
1675 | ||
1676 | cat >>confdefs.h <<_ACEOF | |
1677 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1678 | _ACEOF | |
1679 | ||
1680 | ||
1681 | cat >>confdefs.h <<_ACEOF | |
1682 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1683 | _ACEOF | |
8106cdd5 | 1684 | |
ad6254c5 AK |
1685 | |
1686 | cat >>confdefs.h <<_ACEOF | |
1687 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1688 | _ACEOF | |
1689 | ||
1690 | ||
1691 | cat >>confdefs.h <<_ACEOF | |
1692 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1693 | _ACEOF | |
1694 | ||
1695 | ||
1696 | # Let the site file select an alternate cache file if it wants to. | |
68f2de6d | 1697 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1698 | if test -n "$CONFIG_SITE"; then |
68f2de6d | 1699 | set x "$CONFIG_SITE" |
7a197a62 | 1700 | elif test "x$prefix" != xNONE; then |
68f2de6d | 1701 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1702 | else |
68f2de6d AK |
1703 | set x "$ac_default_prefix/share/config.site" \ |
1704 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1705 | fi |
68f2de6d AK |
1706 | shift |
1707 | for ac_site_file | |
7a197a62 | 1708 | do |
795ca3e5 | 1709 | if test -r "$ac_site_file"; then |
68f2de6d AK |
1710 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1711 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1712 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1713 | . "$ac_site_file" |
1714 | fi | |
1715 | done | |
1716 | ||
1717 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1718 | # Some versions of bash will fail to source /dev/null (special |
1719 | # files actually), so we avoid doing that. | |
1720 | if test -f "$cache_file"; then | |
68f2de6d AK |
1721 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1722 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1723 | case $cache_file in |
7a197a62 AK |
1724 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1725 | *) . "./$cache_file";; | |
ad6254c5 AK |
1726 | esac |
1727 | fi | |
795ca3e5 | 1728 | else |
68f2de6d AK |
1729 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1730 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1731 | >$cache_file |
1732 | fi | |
1733 | ||
1734 | # Check that the precious variables saved in the cache have kept the same | |
1735 | # value. | |
1736 | ac_cache_corrupted=false | |
7a197a62 | 1737 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1738 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1739 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1740 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1741 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1742 | case $ac_old_set,$ac_new_set in |
1743 | set,) | |
68f2de6d AK |
1744 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1745 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1746 | ac_cache_corrupted=: ;; |
1747 | ,set) | |
68f2de6d AK |
1748 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1749 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1750 | ac_cache_corrupted=: ;; |
1751 | ,);; | |
1752 | *) | |
1753 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
68f2de6d AK |
1754 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1755 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1756 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1757 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1758 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1759 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1760 | ac_cache_corrupted=: | |
ad6254c5 AK |
1761 | fi;; |
1762 | esac | |
1763 | # Pass precious variables to config.status. | |
1764 | if test "$ac_new_set" = set; then | |
1765 | case $ac_new_val in | |
68f2de6d | 1766 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1767 | *) ac_arg=$ac_var=$ac_new_val ;; |
1768 | esac | |
1769 | case " $ac_configure_args " in | |
1770 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1771 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1772 | esac | |
1773 | fi | |
1774 | done | |
1775 | if $ac_cache_corrupted; then | |
68f2de6d AK |
1776 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1777 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1778 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1779 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1780 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1781 | fi |
1782 | ||
ad6254c5 AK |
1783 | |
1784 | ||
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
7a197a62 AK |
1799 | ac_ext=c |
1800 | ac_cpp='$CPP $CPPFLAGS' | |
1801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1804 | |
795ca3e5 AK |
1805 | |
1806 | ||
7a197a62 | 1807 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1808 | |
1809 | ||
80992638 | 1810 | ################################################################################ |
795ca3e5 | 1811 | ac_aux_dir= |
7a197a62 AK |
1812 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1813 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1814 | ac_aux_dir=$ac_dir |
1815 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1816 | break | |
7a197a62 | 1817 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1818 | ac_aux_dir=$ac_dir |
1819 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1820 | break | |
7a197a62 | 1821 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1822 | ac_aux_dir=$ac_dir |
1823 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1824 | break | |
795ca3e5 AK |
1825 | fi |
1826 | done | |
1827 | if test -z "$ac_aux_dir"; then | |
68f2de6d AK |
1828 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1829 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1830 | { (exit 1); exit 1; }; } |
795ca3e5 | 1831 | fi |
7a197a62 AK |
1832 | |
1833 | # These three variables are undocumented and unsupported, | |
1834 | # and are intended to be withdrawn in a future Autoconf release. | |
1835 | # They can cause serious problems if a builder's source tree is in a directory | |
1836 | # whose full name contains unusual characters. | |
1837 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1838 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1839 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1840 | ||
8ce0cbda AK |
1841 | |
1842 | ||
ad6254c5 | 1843 | ################################################################################ |
8ce0cbda | 1844 | # Make sure we can run config.sub. |
7a197a62 | 1845 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
68f2de6d AK |
1846 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1847 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1848 | { (exit 1); exit 1; }; } |
1849 | ||
68f2de6d AK |
1850 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1851 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1852 | if test "${ac_cv_build+set}" = set; then |
68f2de6d | 1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1854 | else |
7a197a62 AK |
1855 | ac_build_alias=$build_alias |
1856 | test "x$ac_build_alias" = x && | |
1857 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1858 | test "x$ac_build_alias" = x && | |
68f2de6d AK |
1859 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1860 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1861 | { (exit 1); exit 1; }; } |
7a197a62 | 1862 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
68f2de6d AK |
1863 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1864 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1865 | { (exit 1); exit 1; }; } |
1866 | ||
1867 | fi | |
68f2de6d AK |
1868 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1869 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1870 | case $ac_cv_build in |
1871 | *-*-*) ;; | |
68f2de6d AK |
1872 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1873 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1874 | { (exit 1); exit 1; }; };; |
1875 | esac | |
ad6254c5 | 1876 | build=$ac_cv_build |
7a197a62 AK |
1877 | ac_save_IFS=$IFS; IFS='-' |
1878 | set x $ac_cv_build | |
1879 | shift | |
1880 | build_cpu=$1 | |
1881 | build_vendor=$2 | |
1882 | shift; shift | |
1883 | # Remember, the first character of IFS is used to create $*, | |
1884 | # except with old shells: | |
1885 | build_os=$* | |
1886 | IFS=$ac_save_IFS | |
1887 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1888 | |
1889 | ||
68f2de6d AK |
1890 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1891 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1892 | if test "${ac_cv_host+set}" = set; then |
68f2de6d | 1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1894 | else |
7a197a62 AK |
1895 | if test "x$host_alias" = x; then |
1896 | ac_cv_host=$ac_cv_build | |
1897 | else | |
1898 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
68f2de6d AK |
1899 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1900 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1901 | { (exit 1); exit 1; }; } |
7a197a62 | 1902 | fi |
ad6254c5 AK |
1903 | |
1904 | fi | |
68f2de6d AK |
1905 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1906 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1907 | case $ac_cv_host in |
1908 | *-*-*) ;; | |
68f2de6d AK |
1909 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1910 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1911 | { (exit 1); exit 1; }; };; |
1912 | esac | |
ad6254c5 | 1913 | host=$ac_cv_host |
7a197a62 AK |
1914 | ac_save_IFS=$IFS; IFS='-' |
1915 | set x $ac_cv_host | |
1916 | shift | |
1917 | host_cpu=$1 | |
1918 | host_vendor=$2 | |
1919 | shift; shift | |
1920 | # Remember, the first character of IFS is used to create $*, | |
1921 | # except with old shells: | |
1922 | host_os=$* | |
1923 | IFS=$ac_save_IFS | |
1924 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1925 | |
1926 | ||
68f2de6d AK |
1927 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1928 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1929 | if test "${ac_cv_target+set}" = set; then |
68f2de6d | 1930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1931 | else |
7a197a62 AK |
1932 | if test "x$target_alias" = x; then |
1933 | ac_cv_target=$ac_cv_host | |
1934 | else | |
1935 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
68f2de6d AK |
1936 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1937 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1938 | { (exit 1); exit 1; }; } |
7a197a62 | 1939 | fi |
8ce0cbda | 1940 | |
ad6254c5 | 1941 | fi |
68f2de6d AK |
1942 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1943 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1944 | case $ac_cv_target in |
1945 | *-*-*) ;; | |
68f2de6d AK |
1946 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1947 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1948 | { (exit 1); exit 1; }; };; |
1949 | esac | |
ad6254c5 | 1950 | target=$ac_cv_target |
7a197a62 AK |
1951 | ac_save_IFS=$IFS; IFS='-' |
1952 | set x $ac_cv_target | |
1953 | shift | |
1954 | target_cpu=$1 | |
1955 | target_vendor=$2 | |
1956 | shift; shift | |
1957 | # Remember, the first character of IFS is used to create $*, | |
1958 | # except with old shells: | |
1959 | target_os=$* | |
1960 | IFS=$ac_save_IFS | |
1961 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1962 | |
8ce0cbda | 1963 | |
ad6254c5 AK |
1964 | # The aliases save the names the user supplied, while $host etc. |
1965 | # will get canonicalized. | |
1966 | test -n "$target_alias" && | |
8ce0cbda AK |
1967 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1968 | NONENONEs,x,x, && | |
1969 | program_prefix=${target_alias}- | |
1970 | ||
8ce0cbda AK |
1971 | case "$host_os" in |
1972 | linux*) | |
8ce0cbda AK |
1973 | COPTIMISE_FLAG="-O2" |
1974 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1975 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1976 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1977 | LDDEPS="$LDDEPS .export.sym" | |
1978 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1979 | LIB_SUFFIX=so |
8ce0cbda AK |
1980 | DEVMAPPER=yes |
1981 | ODIRECT=yes | |
d0191583 | 1982 | DM_IOCTLS=yes |
8ce0cbda | 1983 | SELINUX=yes |
8b1a3214 | 1984 | REALTIME=yes |
8ce0cbda | 1985 | CLUSTER=internal |
93bd259b | 1986 | FSADM=yes |
d0191583 | 1987 | ;; |
8ce0cbda AK |
1988 | darwin*) |
1989 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1990 | COPTIMISE_FLAG="-O2" | |
1991 | CLDFLAGS="$CLDFLAGS" | |
1992 | CLDWHOLEARCHIVE="-all_load" | |
1993 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1994 | LIB_SUFFIX=dylib |
a653923f | 1995 | DEVMAPPER=yes |
8ce0cbda | 1996 | ODIRECT=no |
d0191583 | 1997 | DM_IOCTLS=no |
8ce0cbda | 1998 | SELINUX=no |
8b1a3214 | 1999 | REALTIME=no |
8ce0cbda | 2000 | CLUSTER=none |
d0191583 JM |
2001 | FSADM=no |
2002 | ;; | |
8ce0cbda AK |
2003 | esac |
2004 | ||
80992638 | 2005 | ################################################################################ |
5951ef33 AK |
2006 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2007 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
2008 | if test "${ac_cv_path_SED+set}" = set; then | |
2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2010 | else | |
2011 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2012 | for ac_i in 1 2 3 4 5 6 7; do | |
2013 | ac_script="$ac_script$as_nl$ac_script" | |
2014 | done | |
2015 | echo "$ac_script" | sed 99q >conftest.sed | |
2016 | $as_unset ac_script || ac_script= | |
2017 | # Extract the first word of "sed gsed" to use in msg output | |
2018 | if test -z "$SED"; then | |
2019 | set dummy sed gsed; ac_prog_name=$2 | |
2020 | if test "${ac_cv_path_SED+set}" = set; then | |
2021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2022 | else | |
2023 | ac_path_SED_found=false | |
2024 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2026 | for as_dir in $PATH | |
2027 | do | |
2028 | IFS=$as_save_IFS | |
2029 | test -z "$as_dir" && as_dir=. | |
2030 | for ac_prog in sed gsed; do | |
2031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2032 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2033 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2034 | # Check for GNU ac_path_SED and select it if it is found. | |
2035 | # Check for GNU $ac_path_SED | |
2036 | case `"$ac_path_SED" --version 2>&1` in | |
2037 | *GNU*) | |
2038 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2039 | *) | |
2040 | ac_count=0 | |
2041 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2042 | while : | |
2043 | do | |
2044 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2045 | mv "conftest.tmp" "conftest.in" | |
2046 | cp "conftest.in" "conftest.nl" | |
2047 | echo '' >> "conftest.nl" | |
2048 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2049 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2050 | ac_count=`expr $ac_count + 1` | |
2051 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2052 | # Best one so far, save it but keep looking for a better one | |
2053 | ac_cv_path_SED="$ac_path_SED" | |
2054 | ac_path_SED_max=$ac_count | |
2055 | fi | |
2056 | # 10*(2^10) chars as input seems more than enough | |
2057 | test $ac_count -gt 10 && break | |
2058 | done | |
2059 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2060 | esac | |
2061 | ||
2062 | ||
2063 | $ac_path_SED_found && break 3 | |
2064 | done | |
2065 | done | |
2066 | ||
2067 | done | |
2068 | IFS=$as_save_IFS | |
2069 | ||
2070 | ||
2071 | fi | |
2072 | ||
2073 | SED="$ac_cv_path_SED" | |
2074 | if test -z "$SED"; then | |
2075 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
2076 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
2077 | { (exit 1); exit 1; }; } | |
2078 | fi | |
2079 | ||
2080 | else | |
2081 | ac_cv_path_SED=$SED | |
2082 | fi | |
2083 | ||
2084 | fi | |
2085 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
2086 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
2087 | SED="$ac_cv_path_SED" | |
2088 | rm -f conftest.sed | |
2089 | ||
ad6254c5 | 2090 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2091 | do |
ad6254c5 | 2092 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2093 | set dummy $ac_prog; ac_word=$2 |
68f2de6d AK |
2094 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2096 | if test "${ac_cv_prog_AWK+set}" = set; then |
68f2de6d | 2097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2098 | else |
2099 | if test -n "$AWK"; then | |
2100 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2101 | else | |
ad6254c5 AK |
2102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2103 | for as_dir in $PATH | |
2104 | do | |
2105 | IFS=$as_save_IFS | |
2106 | test -z "$as_dir" && as_dir=. | |
2107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2109 | ac_cv_prog_AWK="$ac_prog" |
68f2de6d | 2110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2111 | break 2 |
2112 | fi | |
2113 | done | |
2114 | done | |
7a197a62 | 2115 | IFS=$as_save_IFS |
ad6254c5 | 2116 | |
795ca3e5 AK |
2117 | fi |
2118 | fi | |
ad6254c5 | 2119 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2120 | if test -n "$AWK"; then |
68f2de6d AK |
2121 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2122 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2123 | else |
68f2de6d AK |
2124 | { echo "$as_me:$LINENO: result: no" >&5 |
2125 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2126 | fi |
2127 | ||
7a197a62 | 2128 | |
ad6254c5 AK |
2129 | test -n "$AWK" && break |
2130 | done | |
2131 | ||
2132 | ac_ext=c | |
2133 | ac_cpp='$CPP $CPPFLAGS' | |
2134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2137 | if test -n "$ac_tool_prefix"; then | |
2138 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2139 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
68f2de6d AK |
2140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2142 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2144 | else |
2145 | if test -n "$CC"; then | |
2146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2147 | else | |
2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2149 | for as_dir in $PATH | |
2150 | do | |
2151 | IFS=$as_save_IFS | |
2152 | test -z "$as_dir" && as_dir=. | |
2153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2155 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
68f2de6d | 2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2157 | break 2 |
2158 | fi | |
2159 | done | |
8106cdd5 | 2160 | done |
7a197a62 | 2161 | IFS=$as_save_IFS |
8106cdd5 | 2162 | |
ad6254c5 AK |
2163 | fi |
2164 | fi | |
2165 | CC=$ac_cv_prog_CC | |
2166 | if test -n "$CC"; then | |
68f2de6d AK |
2167 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2168 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2169 | else |
68f2de6d AK |
2170 | { echo "$as_me:$LINENO: result: no" >&5 |
2171 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2172 | fi |
2173 | ||
7a197a62 | 2174 | |
ad6254c5 AK |
2175 | fi |
2176 | if test -z "$ac_cv_prog_CC"; then | |
2177 | ac_ct_CC=$CC | |
2178 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2179 | set dummy gcc; ac_word=$2 |
68f2de6d AK |
2180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2182 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2184 | else |
2185 | if test -n "$ac_ct_CC"; then | |
2186 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2187 | else | |
2188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2189 | for as_dir in $PATH | |
2190 | do | |
2191 | IFS=$as_save_IFS | |
2192 | test -z "$as_dir" && as_dir=. | |
2193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2195 | ac_cv_prog_ac_ct_CC="gcc" |
68f2de6d | 2196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2197 | break 2 |
2198 | fi | |
2199 | done | |
2200 | done | |
7a197a62 | 2201 | IFS=$as_save_IFS |
ad6254c5 AK |
2202 | |
2203 | fi | |
2204 | fi | |
2205 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2206 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2207 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2208 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2209 | else |
68f2de6d AK |
2210 | { echo "$as_me:$LINENO: result: no" >&5 |
2211 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2212 | fi |
2213 | ||
7a197a62 AK |
2214 | if test "x$ac_ct_CC" = x; then |
2215 | CC="" | |
2216 | else | |
2217 | case $cross_compiling:$ac_tool_warned in | |
2218 | yes:) | |
68f2de6d | 2219 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2220 | whose name does not start with the host triplet. If you think this |
2221 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2222 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2223 | whose name does not start with the host triplet. If you think this |
2224 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2225 | ac_tool_warned=yes ;; | |
2226 | esac | |
2227 | CC=$ac_ct_CC | |
2228 | fi | |
ad6254c5 AK |
2229 | else |
2230 | CC="$ac_cv_prog_CC" | |
2231 | fi | |
2232 | ||
2233 | if test -z "$CC"; then | |
7a197a62 AK |
2234 | if test -n "$ac_tool_prefix"; then |
2235 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2236 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
68f2de6d AK |
2237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2239 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2241 | else |
2242 | if test -n "$CC"; then | |
2243 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2244 | else | |
ad6254c5 AK |
2245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2246 | for as_dir in $PATH | |
2247 | do | |
2248 | IFS=$as_save_IFS | |
2249 | test -z "$as_dir" && as_dir=. | |
2250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2252 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
68f2de6d | 2253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2254 | break 2 |
2255 | fi | |
2256 | done | |
2257 | done | |
7a197a62 | 2258 | IFS=$as_save_IFS |
ad6254c5 | 2259 | |
8106cdd5 AK |
2260 | fi |
2261 | fi | |
ad6254c5 | 2262 | CC=$ac_cv_prog_CC |
8106cdd5 | 2263 | if test -n "$CC"; then |
68f2de6d AK |
2264 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2265 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2266 | else |
68f2de6d AK |
2267 | { echo "$as_me:$LINENO: result: no" >&5 |
2268 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2269 | fi |
2270 | ||
8106cdd5 | 2271 | |
7a197a62 | 2272 | fi |
ad6254c5 | 2273 | fi |
795ca3e5 AK |
2274 | if test -z "$CC"; then |
2275 | # Extract the first word of "cc", so it can be a program name with args. | |
2276 | set dummy cc; ac_word=$2 | |
68f2de6d AK |
2277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2279 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2281 | else |
2282 | if test -n "$CC"; then | |
2283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2284 | else | |
795ca3e5 | 2285 | ac_prog_rejected=no |
ad6254c5 AK |
2286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2287 | for as_dir in $PATH | |
2288 | do | |
2289 | IFS=$as_save_IFS | |
2290 | test -z "$as_dir" && as_dir=. | |
2291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2293 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2294 | ac_prog_rejected=yes | |
2295 | continue | |
2296 | fi | |
2297 | ac_cv_prog_CC="cc" | |
68f2de6d | 2298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2299 | break 2 |
2300 | fi | |
2301 | done | |
2302 | done | |
7a197a62 | 2303 | IFS=$as_save_IFS |
ad6254c5 | 2304 | |
795ca3e5 AK |
2305 | if test $ac_prog_rejected = yes; then |
2306 | # We found a bogon in the path, so make sure we never use it. | |
2307 | set dummy $ac_cv_prog_CC | |
2308 | shift | |
ad6254c5 | 2309 | if test $# != 0; then |
795ca3e5 AK |
2310 | # We chose a different compiler from the bogus one. |
2311 | # However, it has the same basename, so the bogon will be chosen | |
2312 | # first if we set CC to just the basename; use the full file name. | |
2313 | shift | |
ad6254c5 | 2314 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2315 | fi |
2316 | fi | |
2317 | fi | |
2318 | fi | |
ad6254c5 | 2319 | CC=$ac_cv_prog_CC |
795ca3e5 | 2320 | if test -n "$CC"; then |
68f2de6d AK |
2321 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2322 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2323 | else |
68f2de6d AK |
2324 | { echo "$as_me:$LINENO: result: no" >&5 |
2325 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2326 | fi |
2327 | ||
7a197a62 | 2328 | |
ad6254c5 AK |
2329 | fi |
2330 | if test -z "$CC"; then | |
2331 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2332 | for ac_prog in cl.exe |
ad6254c5 AK |
2333 | do |
2334 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2335 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
68f2de6d AK |
2336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2338 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2340 | else |
2341 | if test -n "$CC"; then | |
2342 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2343 | else | |
ad6254c5 AK |
2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2345 | for as_dir in $PATH | |
2346 | do | |
2347 | IFS=$as_save_IFS | |
2348 | test -z "$as_dir" && as_dir=. | |
2349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2351 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
68f2de6d | 2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2353 | break 2 |
2354 | fi | |
2355 | done | |
2356 | done | |
7a197a62 | 2357 | IFS=$as_save_IFS |
ad6254c5 | 2358 | |
795ca3e5 AK |
2359 | fi |
2360 | fi | |
ad6254c5 | 2361 | CC=$ac_cv_prog_CC |
795ca3e5 | 2362 | if test -n "$CC"; then |
68f2de6d AK |
2363 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2364 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2365 | else |
68f2de6d AK |
2366 | { echo "$as_me:$LINENO: result: no" >&5 |
2367 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2368 | fi |
ad6254c5 | 2369 | |
7a197a62 | 2370 | |
ad6254c5 AK |
2371 | test -n "$CC" && break |
2372 | done | |
2373 | fi | |
2374 | if test -z "$CC"; then | |
2375 | ac_ct_CC=$CC | |
7a197a62 | 2376 | for ac_prog in cl.exe |
ad6254c5 AK |
2377 | do |
2378 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2379 | set dummy $ac_prog; ac_word=$2 | |
68f2de6d AK |
2380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2382 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2384 | else |
2385 | if test -n "$ac_ct_CC"; then | |
2386 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2387 | else | |
2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2389 | for as_dir in $PATH | |
2390 | do | |
2391 | IFS=$as_save_IFS | |
2392 | test -z "$as_dir" && as_dir=. | |
2393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2395 | ac_cv_prog_ac_ct_CC="$ac_prog" |
68f2de6d | 2396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2397 | break 2 |
795ca3e5 | 2398 | fi |
ad6254c5 AK |
2399 | done |
2400 | done | |
7a197a62 | 2401 | IFS=$as_save_IFS |
ad6254c5 AK |
2402 | |
2403 | fi | |
2404 | fi | |
2405 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2406 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2407 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2408 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2409 | else |
68f2de6d AK |
2410 | { echo "$as_me:$LINENO: result: no" >&5 |
2411 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2412 | fi |
2413 | ||
7a197a62 | 2414 | |
ad6254c5 AK |
2415 | test -n "$ac_ct_CC" && break |
2416 | done | |
795ca3e5 | 2417 | |
7a197a62 AK |
2418 | if test "x$ac_ct_CC" = x; then |
2419 | CC="" | |
2420 | else | |
2421 | case $cross_compiling:$ac_tool_warned in | |
2422 | yes:) | |
68f2de6d | 2423 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2424 | whose name does not start with the host triplet. If you think this |
2425 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2426 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2427 | whose name does not start with the host triplet. If you think this |
2428 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2429 | ac_tool_warned=yes ;; | |
2430 | esac | |
2431 | CC=$ac_ct_CC | |
2432 | fi | |
ad6254c5 AK |
2433 | fi |
2434 | ||
2435 | fi | |
2436 | ||
2437 | ||
68f2de6d | 2438 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2439 | See \`config.log' for more details." >&5 |
68f2de6d | 2440 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2441 | See \`config.log' for more details." >&2;} |
2442 | { (exit 1); exit 1; }; } | |
2443 | ||
2444 | # Provide some information about the compiler. | |
68f2de6d AK |
2445 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2446 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2447 | { (ac_try="$ac_compiler --version >&5" |
2448 | case "(($ac_try" in | |
2449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2450 | *) ac_try_echo=$ac_try;; | |
2451 | esac | |
68f2de6d | 2452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2453 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2454 | ac_status=$? |
68f2de6d | 2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2456 | (exit $ac_status); } |
7a197a62 AK |
2457 | { (ac_try="$ac_compiler -v >&5" |
2458 | case "(($ac_try" in | |
2459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2460 | *) ac_try_echo=$ac_try;; | |
2461 | esac | |
68f2de6d | 2462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2463 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2464 | ac_status=$? |
68f2de6d | 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2466 | (exit $ac_status); } |
7a197a62 AK |
2467 | { (ac_try="$ac_compiler -V >&5" |
2468 | case "(($ac_try" in | |
2469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2470 | *) ac_try_echo=$ac_try;; | |
2471 | esac | |
68f2de6d | 2472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2473 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2474 | ac_status=$? |
68f2de6d | 2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2476 | (exit $ac_status); } |
2477 | ||
2478 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2479 | /* confdefs.h. */ |
2480 | _ACEOF | |
2481 | cat confdefs.h >>conftest.$ac_ext | |
2482 | cat >>conftest.$ac_ext <<_ACEOF | |
2483 | /* end confdefs.h. */ | |
2484 | ||
2485 | int | |
2486 | main () | |
2487 | { | |
2488 | ||
2489 | ; | |
2490 | return 0; | |
2491 | } | |
2492 | _ACEOF | |
2493 | ac_clean_files_save=$ac_clean_files | |
68f2de6d | 2494 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2495 | # Try to create an executable without -o first, disregard a.out. |
2496 | # It will help us diagnose broken compilers, and finding out an intuition | |
2497 | # of exeext. | |
68f2de6d AK |
2498 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2499 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2500 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2501 | # | |
2502 | # List of possible output files, starting from the most likely. | |
2503 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2504 | # only as a last resort. b.out is created by i960 compilers. | |
2505 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2506 | # | |
2507 | # The IRIX 6 linker writes into existing files which may not be | |
2508 | # executable, retaining their permissions. Remove them first so a | |
2509 | # subsequent execution test works. | |
7a197a62 AK |
2510 | ac_rmfiles= |
2511 | for ac_file in $ac_files | |
2512 | do | |
2513 | case $ac_file in | |
68f2de6d | 2514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2515 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2516 | esac | |
2517 | done | |
2518 | rm -f $ac_rmfiles | |
2519 | ||
2520 | if { (ac_try="$ac_link_default" | |
2521 | case "(($ac_try" in | |
2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2523 | *) ac_try_echo=$ac_try;; | |
2524 | esac | |
68f2de6d | 2525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2526 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2527 | ac_status=$? |
68f2de6d | 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2529 | (exit $ac_status); }; then |
7a197a62 AK |
2530 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2531 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2532 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2533 | # so that the user can short-circuit this test for compilers unknown to | |
2534 | # Autoconf. | |
25fbec5b | 2535 | for ac_file in $ac_files '' |
ad6254c5 AK |
2536 | do |
2537 | test -f "$ac_file" || continue | |
2538 | case $ac_file in | |
68f2de6d | 2539 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2540 | ;; |
ad6254c5 | 2541 | [ab].out ) |
8a2fc586 AK |
2542 | # We found the default executable, but exeext='' is most |
2543 | # certainly right. | |
2544 | break;; | |
ad6254c5 | 2545 | *.* ) |
7a197a62 AK |
2546 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2547 | then :; else | |
2548 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2549 | fi | |
2550 | # We set ac_cv_exeext here because the later test for it is not | |
2551 | # safe: cross compilers may not add the suffix if given an `-o' | |
2552 | # argument, so we may need to know it at that point already. | |
2553 | # Even if this section looks crufty: it has the advantage of | |
2554 | # actually working. | |
8a2fc586 | 2555 | break;; |
ad6254c5 | 2556 | * ) |
8a2fc586 | 2557 | break;; |
ad6254c5 AK |
2558 | esac |
2559 | done | |
7a197a62 AK |
2560 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2561 | ||
ad6254c5 | 2562 | else |
25fbec5b AK |
2563 | ac_file='' |
2564 | fi | |
2565 | ||
68f2de6d AK |
2566 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2567 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2568 | if test -z "$ac_file"; then |
68f2de6d | 2569 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2570 | sed 's/^/| /' conftest.$ac_ext >&5 |
2571 | ||
68f2de6d | 2572 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2573 | See \`config.log' for more details." >&5 |
68f2de6d | 2574 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2575 | See \`config.log' for more details." >&2;} |
2576 | { (exit 77); exit 77; }; } | |
2577 | fi | |
2578 | ||
2579 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2580 | |
7a197a62 | 2581 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2582 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2583 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2584 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2585 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2586 | # If not cross compiling, check that we can run a simple program. | |
2587 | if test "$cross_compiling" != yes; then | |
2588 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2589 | { (case "(($ac_try" in |
2590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2591 | *) ac_try_echo=$ac_try;; | |
2592 | esac | |
68f2de6d | 2593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2594 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2595 | ac_status=$? |
68f2de6d | 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2597 | (exit $ac_status); }; }; then |
2598 | cross_compiling=no | |
795ca3e5 | 2599 | else |
ad6254c5 AK |
2600 | if test "$cross_compiling" = maybe; then |
2601 | cross_compiling=yes | |
2602 | else | |
68f2de6d | 2603 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2604 | If you meant to cross compile, use \`--host'. |
2605 | See \`config.log' for more details." >&5 | |
68f2de6d | 2606 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2607 | If you meant to cross compile, use \`--host'. |
2608 | See \`config.log' for more details." >&2;} | |
2609 | { (exit 1); exit 1; }; } | |
2610 | fi | |
795ca3e5 | 2611 | fi |
80992638 | 2612 | fi |
68f2de6d AK |
2613 | { echo "$as_me:$LINENO: result: yes" >&5 |
2614 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2615 | |
68f2de6d | 2616 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2617 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2618 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2619 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2620 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2621 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2622 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2623 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2624 | |
68f2de6d AK |
2625 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2626 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2627 | if { (ac_try="$ac_link" |
2628 | case "(($ac_try" in | |
2629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2630 | *) ac_try_echo=$ac_try;; | |
2631 | esac | |
68f2de6d | 2632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2633 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2634 | ac_status=$? |
68f2de6d | 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2636 | (exit $ac_status); }; then |
2637 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2638 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2639 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2640 | # `rm'. | |
2641 | for ac_file in conftest.exe conftest conftest.*; do | |
2642 | test -f "$ac_file" || continue | |
2643 | case $ac_file in | |
68f2de6d | 2644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2645 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2646 | break;; |
ad6254c5 AK |
2647 | * ) break;; |
2648 | esac | |
2649 | done | |
80992638 | 2650 | else |
68f2de6d | 2651 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2652 | See \`config.log' for more details." >&5 |
68f2de6d | 2653 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2654 | See \`config.log' for more details." >&2;} |
2655 | { (exit 1); exit 1; }; } | |
2656 | fi | |
2657 | ||
2658 | rm -f conftest$ac_cv_exeext | |
68f2de6d AK |
2659 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2660 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2661 | |
2662 | rm -f conftest.$ac_ext | |
2663 | EXEEXT=$ac_cv_exeext | |
2664 | ac_exeext=$EXEEXT | |
68f2de6d AK |
2665 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2666 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2667 | if test "${ac_cv_objext+set}" = set; then |
68f2de6d | 2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2669 | else |
ad6254c5 | 2670 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2671 | /* confdefs.h. */ |
2672 | _ACEOF | |
2673 | cat confdefs.h >>conftest.$ac_ext | |
2674 | cat >>conftest.$ac_ext <<_ACEOF | |
2675 | /* end confdefs.h. */ | |
2676 | ||
2677 | int | |
2678 | main () | |
2679 | { | |
2680 | ||
2681 | ; | |
2682 | return 0; | |
2683 | } | |
2684 | _ACEOF | |
2685 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2686 | if { (ac_try="$ac_compile" |
2687 | case "(($ac_try" in | |
2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2689 | *) ac_try_echo=$ac_try;; | |
2690 | esac | |
68f2de6d | 2691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2692 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2693 | ac_status=$? |
68f2de6d | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2695 | (exit $ac_status); }; then |
7a197a62 AK |
2696 | for ac_file in conftest.o conftest.obj conftest.*; do |
2697 | test -f "$ac_file" || continue; | |
ad6254c5 | 2698 | case $ac_file in |
68f2de6d | 2699 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2700 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2701 | break;; | |
2702 | esac | |
2703 | done | |
2704 | else | |
68f2de6d | 2705 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2706 | sed 's/^/| /' conftest.$ac_ext >&5 |
2707 | ||
68f2de6d | 2708 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2709 | See \`config.log' for more details." >&5 |
68f2de6d | 2710 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2711 | See \`config.log' for more details." >&2;} |
2712 | { (exit 1); exit 1; }; } | |
2713 | fi | |
2714 | ||
2715 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2716 | fi | |
68f2de6d AK |
2717 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2718 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2719 | OBJEXT=$ac_cv_objext |
2720 | ac_objext=$OBJEXT | |
68f2de6d AK |
2721 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2722 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2723 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
68f2de6d | 2724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2725 | else |
2726 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2727 | /* confdefs.h. */ |
2728 | _ACEOF | |
2729 | cat confdefs.h >>conftest.$ac_ext | |
2730 | cat >>conftest.$ac_ext <<_ACEOF | |
2731 | /* end confdefs.h. */ | |
2732 | ||
2733 | int | |
2734 | main () | |
2735 | { | |
2736 | #ifndef __GNUC__ | |
2737 | choke me | |
2738 | #endif | |
80992638 | 2739 | |
ad6254c5 AK |
2740 | ; |
2741 | return 0; | |
2742 | } | |
2743 | _ACEOF | |
2744 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2745 | if { (ac_try="$ac_compile" |
2746 | case "(($ac_try" in | |
2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2748 | *) ac_try_echo=$ac_try;; | |
2749 | esac | |
68f2de6d | 2750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2751 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2752 | ac_status=$? |
8a2fc586 AK |
2753 | grep -v '^ *+' conftest.er1 >conftest.err |
2754 | rm -f conftest.er1 | |
2755 | cat conftest.err >&5 | |
68f2de6d | 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2757 | (exit $ac_status); } && { |
2758 | test -z "$ac_c_werror_flag" || | |
2759 | test ! -s conftest.err | |
2760 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2761 | ac_compiler_gnu=yes |
80992638 | 2762 | else |
68f2de6d | 2763 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2764 | sed 's/^/| /' conftest.$ac_ext >&5 |
2765 | ||
7a197a62 | 2766 | ac_compiler_gnu=no |
8106cdd5 | 2767 | fi |
7a197a62 AK |
2768 | |
2769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2770 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2771 | |
ad6254c5 | 2772 | fi |
68f2de6d AK |
2773 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2774 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2775 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2776 | ac_test_CFLAGS=${CFLAGS+set} |
2777 | ac_save_CFLAGS=$CFLAGS | |
68f2de6d AK |
2778 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2779 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2780 | if test "${ac_cv_prog_cc_g+set}" = set; then |
68f2de6d | 2781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2782 | else |
7a197a62 AK |
2783 | ac_save_c_werror_flag=$ac_c_werror_flag |
2784 | ac_c_werror_flag=yes | |
2785 | ac_cv_prog_cc_g=no | |
2786 | CFLAGS="-g" | |
2787 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2788 | /* confdefs.h. */ |
2789 | _ACEOF | |
2790 | cat confdefs.h >>conftest.$ac_ext | |
2791 | cat >>conftest.$ac_ext <<_ACEOF | |
2792 | /* end confdefs.h. */ | |
2793 | ||
2794 | int | |
2795 | main () | |
2796 | { | |
2797 | ||
2798 | ; | |
2799 | return 0; | |
2800 | } | |
2801 | _ACEOF | |
2802 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2803 | if { (ac_try="$ac_compile" |
2804 | case "(($ac_try" in | |
2805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2806 | *) ac_try_echo=$ac_try;; | |
2807 | esac | |
68f2de6d | 2808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2809 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2810 | ac_status=$? |
8a2fc586 AK |
2811 | grep -v '^ *+' conftest.er1 >conftest.err |
2812 | rm -f conftest.er1 | |
2813 | cat conftest.err >&5 | |
68f2de6d | 2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2815 | (exit $ac_status); } && { |
2816 | test -z "$ac_c_werror_flag" || | |
2817 | test ! -s conftest.err | |
2818 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2819 | ac_cv_prog_cc_g=yes |
2820 | else | |
68f2de6d | 2821 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2822 | sed 's/^/| /' conftest.$ac_ext >&5 |
2823 | ||
2824 | CFLAGS="" | |
2825 | cat >conftest.$ac_ext <<_ACEOF | |
2826 | /* confdefs.h. */ | |
2827 | _ACEOF | |
2828 | cat confdefs.h >>conftest.$ac_ext | |
2829 | cat >>conftest.$ac_ext <<_ACEOF | |
2830 | /* end confdefs.h. */ | |
2831 | ||
2832 | int | |
2833 | main () | |
2834 | { | |
2835 | ||
2836 | ; | |
2837 | return 0; | |
2838 | } | |
2839 | _ACEOF | |
2840 | rm -f conftest.$ac_objext | |
2841 | if { (ac_try="$ac_compile" | |
2842 | case "(($ac_try" in | |
2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2844 | *) ac_try_echo=$ac_try;; | |
2845 | esac | |
68f2de6d | 2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2847 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2848 | ac_status=$? |
7a197a62 AK |
2849 | grep -v '^ *+' conftest.er1 >conftest.err |
2850 | rm -f conftest.er1 | |
2851 | cat conftest.err >&5 | |
68f2de6d | 2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2853 | (exit $ac_status); } && { |
2854 | test -z "$ac_c_werror_flag" || | |
2855 | test ! -s conftest.err | |
2856 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2857 | : |
2858 | else | |
68f2de6d | 2859 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 |
2861 | ||
2862 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2863 | CFLAGS="-g" | |
2864 | cat >conftest.$ac_ext <<_ACEOF | |
2865 | /* confdefs.h. */ | |
2866 | _ACEOF | |
2867 | cat confdefs.h >>conftest.$ac_ext | |
2868 | cat >>conftest.$ac_ext <<_ACEOF | |
2869 | /* end confdefs.h. */ | |
2870 | ||
2871 | int | |
2872 | main () | |
2873 | { | |
2874 | ||
2875 | ; | |
2876 | return 0; | |
2877 | } | |
2878 | _ACEOF | |
2879 | rm -f conftest.$ac_objext | |
2880 | if { (ac_try="$ac_compile" | |
2881 | case "(($ac_try" in | |
2882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2883 | *) ac_try_echo=$ac_try;; | |
2884 | esac | |
68f2de6d | 2885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2886 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2887 | ac_status=$? |
7a197a62 AK |
2888 | grep -v '^ *+' conftest.er1 >conftest.err |
2889 | rm -f conftest.er1 | |
2890 | cat conftest.err >&5 | |
68f2de6d | 2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2892 | (exit $ac_status); } && { |
2893 | test -z "$ac_c_werror_flag" || | |
2894 | test ! -s conftest.err | |
2895 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2896 | ac_cv_prog_cc_g=yes |
2897 | else | |
68f2de6d | 2898 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2899 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2900 | |
7a197a62 AK |
2901 | |
2902 | fi | |
2903 | ||
2904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2905 | fi | |
2906 | ||
2907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2908 | fi |
7a197a62 AK |
2909 | |
2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2911 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2912 | fi |
68f2de6d AK |
2913 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2914 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2915 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2916 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2917 | elif test $ac_cv_prog_cc_g = yes; then |
2918 | if test "$GCC" = yes; then | |
2919 | CFLAGS="-g -O2" | |
2920 | else | |
2921 | CFLAGS="-g" | |
2922 | fi | |
2923 | else | |
2924 | if test "$GCC" = yes; then | |
2925 | CFLAGS="-O2" | |
2926 | else | |
2927 | CFLAGS= | |
2928 | fi | |
2929 | fi | |
68f2de6d AK |
2930 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2931 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2932 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
68f2de6d | 2933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2934 | else |
7a197a62 | 2935 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2936 | ac_save_CC=$CC |
2937 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2938 | /* confdefs.h. */ |
2939 | _ACEOF | |
2940 | cat confdefs.h >>conftest.$ac_ext | |
2941 | cat >>conftest.$ac_ext <<_ACEOF | |
2942 | /* end confdefs.h. */ | |
2943 | #include <stdarg.h> | |
2944 | #include <stdio.h> | |
2945 | #include <sys/types.h> | |
2946 | #include <sys/stat.h> | |
2947 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2948 | struct buf { int x; }; | |
2949 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2950 | static char *e (p, i) | |
2951 | char **p; | |
2952 | int i; | |
2953 | { | |
2954 | return p[i]; | |
2955 | } | |
2956 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2957 | { | |
2958 | char *s; | |
2959 | va_list v; | |
2960 | va_start (v,p); | |
2961 | s = g (p, va_arg (v,int)); | |
2962 | va_end (v); | |
2963 | return s; | |
2964 | } | |
8a2fc586 AK |
2965 | |
2966 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2967 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2968 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2969 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2970 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2971 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2972 | that's true only with -std. */ |
8a2fc586 AK |
2973 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2974 | ||
7a197a62 AK |
2975 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2976 | inside strings and character constants. */ | |
2977 | #define FOO(x) 'x' | |
2978 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2979 | ||
ad6254c5 AK |
2980 | int test (int i, double x); |
2981 | struct s1 {int (*f) (int a);}; | |
2982 | struct s2 {int (*f) (double a);}; | |
2983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2984 | int argc; | |
2985 | char **argv; | |
2986 | int | |
2987 | main () | |
2988 | { | |
2989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2990 | ; | |
2991 | return 0; | |
2992 | } | |
2993 | _ACEOF | |
7a197a62 AK |
2994 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2995 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2996 | do |
2997 | CC="$ac_save_CC $ac_arg" | |
2998 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2999 | if { (ac_try="$ac_compile" |
3000 | case "(($ac_try" in | |
3001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3002 | *) ac_try_echo=$ac_try;; | |
3003 | esac | |
68f2de6d | 3004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3005 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3006 | ac_status=$? |
8a2fc586 AK |
3007 | grep -v '^ *+' conftest.er1 >conftest.err |
3008 | rm -f conftest.er1 | |
3009 | cat conftest.err >&5 | |
68f2de6d | 3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3011 | (exit $ac_status); } && { |
3012 | test -z "$ac_c_werror_flag" || | |
3013 | test ! -s conftest.err | |
3014 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3015 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3016 | else |
68f2de6d | 3017 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3018 | sed 's/^/| /' conftest.$ac_ext >&5 |
3019 | ||
7a197a62 | 3020 | |
ad6254c5 | 3021 | fi |
7a197a62 AK |
3022 | |
3023 | rm -f core conftest.err conftest.$ac_objext | |
3024 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3025 | done |
7a197a62 | 3026 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3027 | CC=$ac_save_CC |
3028 | ||
3029 | fi | |
7a197a62 AK |
3030 | # AC_CACHE_VAL |
3031 | case "x$ac_cv_prog_cc_c89" in | |
3032 | x) | |
68f2de6d AK |
3033 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3034 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 3035 | xno) |
68f2de6d AK |
3036 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3037 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 3038 | *) |
7a197a62 | 3039 | CC="$CC $ac_cv_prog_cc_c89" |
68f2de6d AK |
3040 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3041 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3042 | esac |
3043 | ||
ad6254c5 | 3044 | |
ad6254c5 AK |
3045 | ac_ext=c |
3046 | ac_cpp='$CPP $CPPFLAGS' | |
3047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3050 | |
d0191583 JM |
3051 | |
3052 | ||
3053 | ac_ext=c | |
3054 | ac_cpp='$CPP $CPPFLAGS' | |
3055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
68f2de6d AK |
3058 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3059 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
3060 | # On Suns, sometimes $CPP names a directory. |
3061 | if test -n "$CPP" && test -d "$CPP"; then | |
3062 | CPP= | |
3063 | fi | |
3064 | if test -z "$CPP"; then | |
3065 | if test "${ac_cv_prog_CPP+set}" = set; then | |
68f2de6d | 3066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3067 | else |
d0191583 JM |
3068 | # Double quotes because CPP needs to be expanded |
3069 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3070 | do | |
3071 | ac_preproc_ok=false | |
3072 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3073 | do |
d0191583 JM |
3074 | # Use a header file that comes with gcc, so configuring glibc |
3075 | # with a fresh cross-compiler works. | |
3076 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3077 | # <limits.h> exists even on freestanding compilers. | |
3078 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3079 | # not just through cpp. "Syntax error" is here to catch this case. | |
3080 | cat >conftest.$ac_ext <<_ACEOF | |
3081 | /* confdefs.h. */ | |
3082 | _ACEOF | |
3083 | cat confdefs.h >>conftest.$ac_ext | |
3084 | cat >>conftest.$ac_ext <<_ACEOF | |
3085 | /* end confdefs.h. */ | |
3086 | #ifdef __STDC__ | |
3087 | # include <limits.h> | |
3088 | #else | |
3089 | # include <assert.h> | |
3090 | #endif | |
3091 | Syntax error | |
3092 | _ACEOF | |
3093 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3094 | case "(($ac_try" in | |
3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3096 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3097 | esac |
68f2de6d | 3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3100 | ac_status=$? | |
3101 | grep -v '^ *+' conftest.er1 >conftest.err | |
3102 | rm -f conftest.er1 | |
3103 | cat conftest.err >&5 | |
68f2de6d | 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3105 | (exit $ac_status); } >/dev/null && { |
3106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3107 | test ! -s conftest.err | |
3108 | }; then | |
3109 | : | |
3110 | else | |
68f2de6d | 3111 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3113 | |
d0191583 JM |
3114 | # Broken: fails on valid input. |
3115 | continue | |
795ca3e5 | 3116 | fi |
795ca3e5 | 3117 | |
d0191583 | 3118 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3119 | |
d0191583 JM |
3120 | # OK, works on sane cases. Now check whether nonexistent headers |
3121 | # can be detected and how. | |
3122 | cat >conftest.$ac_ext <<_ACEOF | |
3123 | /* confdefs.h. */ | |
3124 | _ACEOF | |
3125 | cat confdefs.h >>conftest.$ac_ext | |
3126 | cat >>conftest.$ac_ext <<_ACEOF | |
3127 | /* end confdefs.h. */ | |
3128 | #include <ac_nonexistent.h> | |
3129 | _ACEOF | |
3130 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3131 | case "(($ac_try" in | |
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3133 | *) ac_try_echo=$ac_try;; | |
3134 | esac | |
68f2de6d | 3135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3136 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3137 | ac_status=$? | |
3138 | grep -v '^ *+' conftest.er1 >conftest.err | |
3139 | rm -f conftest.er1 | |
3140 | cat conftest.err >&5 | |
68f2de6d | 3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3142 | (exit $ac_status); } >/dev/null && { |
3143 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3144 | test ! -s conftest.err | |
3145 | }; then | |
3146 | # Broken: success on invalid input. | |
3147 | continue | |
3148 | else | |
68f2de6d | 3149 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3151 | |
d0191583 JM |
3152 | # Passes both tests. |
3153 | ac_preproc_ok=: | |
3154 | break | |
3155 | fi | |
795ca3e5 | 3156 | |
d0191583 JM |
3157 | rm -f conftest.err conftest.$ac_ext |
3158 | ||
3159 | done | |
3160 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3161 | rm -f conftest.err conftest.$ac_ext | |
3162 | if $ac_preproc_ok; then | |
3163 | break | |
795ca3e5 AK |
3164 | fi |
3165 | ||
d0191583 JM |
3166 | done |
3167 | ac_cv_prog_CPP=$CPP | |
3168 | ||
3169 | fi | |
3170 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3171 | else |
d0191583 JM |
3172 | ac_cv_prog_CPP=$CPP |
3173 | fi | |
68f2de6d AK |
3174 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3175 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3176 | ac_preproc_ok=false |
3177 | for ac_c_preproc_warn_flag in '' yes | |
3178 | do | |
3179 | # Use a header file that comes with gcc, so configuring glibc | |
3180 | # with a fresh cross-compiler works. | |
3181 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3182 | # <limits.h> exists even on freestanding compilers. | |
3183 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3184 | # not just through cpp. "Syntax error" is here to catch this case. | |
3185 | cat >conftest.$ac_ext <<_ACEOF | |
3186 | /* confdefs.h. */ | |
ad6254c5 | 3187 | _ACEOF |
d0191583 JM |
3188 | cat confdefs.h >>conftest.$ac_ext |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
3191 | #ifdef __STDC__ | |
3192 | # include <limits.h> | |
3193 | #else | |
3194 | # include <assert.h> | |
3195 | #endif | |
3196 | Syntax error | |
3197 | _ACEOF | |
3198 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3199 | case "(($ac_try" in | |
3200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3201 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3202 | esac |
68f2de6d | 3203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3204 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3205 | ac_status=$? | |
3206 | grep -v '^ *+' conftest.er1 >conftest.err | |
3207 | rm -f conftest.er1 | |
3208 | cat conftest.err >&5 | |
68f2de6d | 3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3210 | (exit $ac_status); } >/dev/null && { |
3211 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3212 | test ! -s conftest.err | |
3213 | }; then | |
3214 | : | |
795ca3e5 | 3215 | else |
68f2de6d | 3216 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3217 | sed 's/^/| /' conftest.$ac_ext >&5 |
3218 | ||
3219 | # Broken: fails on valid input. | |
3220 | continue | |
795ca3e5 AK |
3221 | fi |
3222 | ||
d0191583 JM |
3223 | rm -f conftest.err conftest.$ac_ext |
3224 | ||
3225 | # OK, works on sane cases. Now check whether nonexistent headers | |
3226 | # can be detected and how. | |
3227 | cat >conftest.$ac_ext <<_ACEOF | |
3228 | /* confdefs.h. */ | |
3229 | _ACEOF | |
3230 | cat confdefs.h >>conftest.$ac_ext | |
3231 | cat >>conftest.$ac_ext <<_ACEOF | |
3232 | /* end confdefs.h. */ | |
3233 | #include <ac_nonexistent.h> | |
3234 | _ACEOF | |
3235 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3236 | case "(($ac_try" in | |
3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3238 | *) ac_try_echo=$ac_try;; | |
3239 | esac | |
68f2de6d | 3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3242 | ac_status=$? | |
3243 | grep -v '^ *+' conftest.er1 >conftest.err | |
3244 | rm -f conftest.er1 | |
3245 | cat conftest.err >&5 | |
68f2de6d | 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3247 | (exit $ac_status); } >/dev/null && { |
3248 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3249 | test ! -s conftest.err | |
3250 | }; then | |
3251 | # Broken: success on invalid input. | |
3252 | continue | |
795ca3e5 | 3253 | else |
68f2de6d | 3254 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3255 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3256 | |
d0191583 JM |
3257 | # Passes both tests. |
3258 | ac_preproc_ok=: | |
3259 | break | |
795ca3e5 | 3260 | fi |
d0191583 JM |
3261 | |
3262 | rm -f conftest.err conftest.$ac_ext | |
3263 | ||
3264 | done | |
3265 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3266 | rm -f conftest.err conftest.$ac_ext | |
3267 | if $ac_preproc_ok; then | |
3268 | : | |
8106cdd5 | 3269 | else |
68f2de6d | 3270 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3271 | See \`config.log' for more details." >&5 |
68f2de6d | 3272 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3273 | See \`config.log' for more details." >&2;} |
3274 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3275 | fi |
3276 | ||
d0191583 JM |
3277 | ac_ext=c |
3278 | ac_cpp='$CPP $CPPFLAGS' | |
3279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3282 | ||
7a197a62 | 3283 | |
68f2de6d AK |
3284 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3285 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3286 | if test "${ac_cv_path_GREP+set}" = set; then | |
3287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3288 | else | |
3289 | # Extract the first word of "grep ggrep" to use in msg output | |
3290 | if test -z "$GREP"; then | |
3291 | set dummy grep ggrep; ac_prog_name=$2 | |
5556819a | 3292 | if test "${ac_cv_path_GREP+set}" = set; then |
68f2de6d | 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3294 | else |
d0191583 | 3295 | ac_path_GREP_found=false |
68f2de6d AK |
3296 | # Loop through the user's path and test for each of PROGNAME-LIST |
3297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3298 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3299 | do |
3300 | IFS=$as_save_IFS | |
3301 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3302 | for ac_prog in grep ggrep; do |
68f2de6d AK |
3303 | for ac_exec_ext in '' $ac_executable_extensions; do |
3304 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3305 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3306 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3307 | # Check for GNU $ac_path_GREP |
3308 | case `"$ac_path_GREP" --version 2>&1` in | |
3309 | *GNU*) | |
3310 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3311 | *) | |
3312 | ac_count=0 | |
68f2de6d | 3313 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3314 | while : |
3315 | do | |
3316 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3317 | mv "conftest.tmp" "conftest.in" | |
3318 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3319 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3320 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3321 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3322 | ac_count=`expr $ac_count + 1` | |
3323 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3324 | # Best one so far, save it but keep looking for a better one | |
3325 | ac_cv_path_GREP="$ac_path_GREP" | |
3326 | ac_path_GREP_max=$ac_count | |
3327 | fi | |
3328 | # 10*(2^10) chars as input seems more than enough | |
3329 | test $ac_count -gt 10 && break | |
3330 | done | |
3331 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3332 | esac | |
3333 | ||
68f2de6d AK |
3334 | |
3335 | $ac_path_GREP_found && break 3 | |
d0191583 | 3336 | done |
ad6254c5 | 3337 | done |
68f2de6d AK |
3338 | |
3339 | done | |
7a197a62 | 3340 | IFS=$as_save_IFS |
68f2de6d AK |
3341 | |
3342 | ||
3343 | fi | |
3344 | ||
3345 | GREP="$ac_cv_path_GREP" | |
3346 | if test -z "$GREP"; then | |
3347 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3348 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3349 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3350 | fi |
3351 | ||
80992638 | 3352 | else |
d0191583 | 3353 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3354 | fi |
8106cdd5 | 3355 | |
68f2de6d | 3356 | |
80992638 | 3357 | fi |
68f2de6d AK |
3358 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3359 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3360 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3361 | |
d0191583 | 3362 | |
68f2de6d AK |
3363 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3364 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3365 | if test "${ac_cv_path_EGREP+set}" = set; then |
68f2de6d | 3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3367 | else |
d0191583 JM |
3368 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3369 | then ac_cv_path_EGREP="$GREP -E" | |
3370 | else | |
68f2de6d AK |
3371 | # Extract the first word of "egrep" to use in msg output |
3372 | if test -z "$EGREP"; then | |
3373 | set dummy egrep; ac_prog_name=$2 | |
3374 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3376 | else | |
d0191583 | 3377 | ac_path_EGREP_found=false |
68f2de6d AK |
3378 | # Loop through the user's path and test for each of PROGNAME-LIST |
3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3380 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3381 | do |
3382 | IFS=$as_save_IFS | |
3383 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3384 | for ac_prog in egrep; do |
68f2de6d AK |
3385 | for ac_exec_ext in '' $ac_executable_extensions; do |
3386 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3387 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3388 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3389 | # Check for GNU $ac_path_EGREP |
3390 | case `"$ac_path_EGREP" --version 2>&1` in | |
3391 | *GNU*) | |
3392 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3393 | *) | |
3394 | ac_count=0 | |
68f2de6d | 3395 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3396 | while : |
3397 | do | |
3398 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3399 | mv "conftest.tmp" "conftest.in" | |
3400 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3401 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3402 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3403 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3404 | ac_count=`expr $ac_count + 1` | |
3405 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3406 | # Best one so far, save it but keep looking for a better one | |
3407 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3408 | ac_path_EGREP_max=$ac_count | |
3409 | fi | |
3410 | # 10*(2^10) chars as input seems more than enough | |
3411 | test $ac_count -gt 10 && break | |
3412 | done | |
3413 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3414 | esac |
8a2fc586 | 3415 | |
68f2de6d AK |
3416 | |
3417 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3418 | done |
8a2fc586 | 3419 | done |
68f2de6d AK |
3420 | |
3421 | done | |
7a197a62 | 3422 | IFS=$as_save_IFS |
68f2de6d AK |
3423 | |
3424 | ||
3425 | fi | |
3426 | ||
3427 | EGREP="$ac_cv_path_EGREP" | |
3428 | if test -z "$EGREP"; then | |
3429 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3430 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3431 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3432 | fi |
3433 | ||
d0191583 JM |
3434 | else |
3435 | ac_cv_path_EGREP=$EGREP | |
3436 | fi | |
ad6254c5 | 3437 | |
68f2de6d | 3438 | |
d0191583 JM |
3439 | fi |
3440 | fi | |
68f2de6d AK |
3441 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3442 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3443 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3444 | |
3445 | ||
d0191583 | 3446 | if test $ac_cv_c_compiler_gnu = yes; then |
68f2de6d AK |
3447 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3448 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3449 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
68f2de6d | 3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3451 | else |
d0191583 | 3452 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3453 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3454 | /* confdefs.h. */ |
3455 | _ACEOF | |
3456 | cat confdefs.h >>conftest.$ac_ext | |
3457 | cat >>conftest.$ac_ext <<_ACEOF | |
3458 | /* end confdefs.h. */ | |
d0191583 JM |
3459 | #include <sgtty.h> |
3460 | Autoconf TIOCGETP | |
ad6254c5 | 3461 | _ACEOF |
d0191583 JM |
3462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3463 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3464 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3465 | else |
d0191583 | 3466 | ac_cv_prog_gcc_traditional=no |
80992638 | 3467 | fi |
d0191583 | 3468 | rm -f conftest* |
ad6254c5 | 3469 | |
8106cdd5 | 3470 | |
d0191583 JM |
3471 | if test $ac_cv_prog_gcc_traditional = no; then |
3472 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3473 | /* confdefs.h. */ |
3474 | _ACEOF | |
3475 | cat confdefs.h >>conftest.$ac_ext | |
3476 | cat >>conftest.$ac_ext <<_ACEOF | |
3477 | /* end confdefs.h. */ | |
d0191583 JM |
3478 | #include <termio.h> |
3479 | Autoconf TCGETA | |
ad6254c5 | 3480 | _ACEOF |
d0191583 JM |
3481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3482 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3483 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3484 | fi |
d0191583 | 3485 | rm -f conftest* |
795ca3e5 | 3486 | |
d0191583 | 3487 | fi |
795ca3e5 | 3488 | fi |
68f2de6d AK |
3489 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3490 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3491 | if test $ac_cv_prog_gcc_traditional = yes; then |
3492 | CC="$CC -traditional" | |
3493 | fi | |
795ca3e5 AK |
3494 | fi |
3495 | ||
d0191583 JM |
3496 | # Find a good install program. We prefer a C program (faster), |
3497 | # so one script is as good as another. But avoid the broken or | |
3498 | # incompatible versions: | |
3499 | # SysV /etc/install, /usr/sbin/install | |
3500 | # SunOS /usr/etc/install | |
3501 | # IRIX /sbin/install | |
3502 | # AIX /bin/install | |
3503 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3504 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3505 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3506 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3507 | # OS/2's system install, which has a completely different semantic | |
3508 | # ./install, which can be erroneously created by make from ./install.sh. | |
68f2de6d AK |
3509 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3510 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3511 | if test -z "$INSTALL"; then |
3512 | if test "${ac_cv_path_install+set}" = set; then | |
68f2de6d | 3513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3514 | else |
d0191583 JM |
3515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3516 | for as_dir in $PATH | |
3517 | do | |
3518 | IFS=$as_save_IFS | |
3519 | test -z "$as_dir" && as_dir=. | |
3520 | # Account for people who put trailing slashes in PATH elements. | |
3521 | case $as_dir/ in | |
3522 | ./ | .// | /cC/* | \ | |
3523 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3524 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3525 | /usr/ucb/* ) ;; | |
3526 | *) | |
3527 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3528 | # Don't use installbsd from OSF since it installs stuff as root | |
3529 | # by default. | |
3530 | for ac_prog in ginstall scoinst install; do | |
3531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3532 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3533 | if test $ac_prog = install && | |
3534 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3535 | # AIX install. It has an incompatible calling convention. | |
3536 | : | |
3537 | elif test $ac_prog = install && | |
3538 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3539 | # program-specific install script used by HP pwplus--don't use. | |
3540 | : | |
3541 | else | |
68f2de6d AK |
3542 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3543 | break 3 | |
d0191583 JM |
3544 | fi |
3545 | fi | |
3546 | done | |
3547 | done | |
3548 | ;; | |
3549 | esac | |
3550 | done | |
3551 | IFS=$as_save_IFS | |
80992638 | 3552 | |
d0191583 JM |
3553 | |
3554 | fi | |
3555 | if test "${ac_cv_path_install+set}" = set; then | |
3556 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3557 | else |
d0191583 JM |
3558 | # As a last resort, use the slow shell script. Don't cache a |
3559 | # value for INSTALL within a source directory, because that will | |
3560 | # break other packages using the cache if that directory is | |
3561 | # removed, or if the value is a relative name. | |
3562 | INSTALL=$ac_install_sh | |
7a197a62 | 3563 | fi |
d0191583 | 3564 | fi |
68f2de6d AK |
3565 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3566 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3567 | |
d0191583 JM |
3568 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3569 | # It thinks the first close brace ends the variable substitution. | |
3570 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3571 | |
d0191583 | 3572 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3573 | |
d0191583 JM |
3574 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3575 | ||
68f2de6d AK |
3576 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3577 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3578 | LN_S=$as_ln_s |
3579 | if test "$LN_S" = "ln -s"; then | |
68f2de6d AK |
3580 | { echo "$as_me:$LINENO: result: yes" >&5 |
3581 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3582 | else |
68f2de6d AK |
3583 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3584 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3585 | fi |
d0191583 | 3586 | |
68f2de6d AK |
3587 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3588 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3589 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3590 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3592 | else |
d0191583 JM |
3593 | cat >conftest.make <<\_ACEOF |
3594 | SHELL = /bin/sh | |
3595 | all: | |
3596 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3597 | _ACEOF | |
3598 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3599 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3600 | *@@@%%%=?*=@@@%%%*) | |
3601 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3602 | *) | |
3603 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3604 | esac | |
3605 | rm -f conftest.make | |
ad6254c5 | 3606 | fi |
d0191583 | 3607 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
68f2de6d AK |
3608 | { echo "$as_me:$LINENO: result: yes" >&5 |
3609 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3610 | SET_MAKE= |
3611 | else | |
68f2de6d AK |
3612 | { echo "$as_me:$LINENO: result: no" >&5 |
3613 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3614 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3615 | fi |
8106cdd5 | 3616 | |
68f2de6d AK |
3617 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3618 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
5556819a AK |
3619 | if test -z "$MKDIR_P"; then |
3620 | if test "${ac_cv_path_mkdir+set}" = set; then | |
68f2de6d | 3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5556819a AK |
3622 | else |
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3624 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3625 | do | |
3626 | IFS=$as_save_IFS | |
3627 | test -z "$as_dir" && as_dir=. | |
3628 | for ac_prog in mkdir gmkdir; do | |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3630 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3631 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3632 | 'mkdir (GNU coreutils) '* | \ | |
3633 | 'mkdir (coreutils) '* | \ | |
3634 | 'mkdir (fileutils) '4.1*) | |
3635 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3636 | break 3;; | |
3637 | esac | |
3638 | done | |
3639 | done | |
3640 | done | |
3641 | IFS=$as_save_IFS | |
3642 | ||
3643 | fi | |
3644 | ||
3645 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3646 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3647 | else | |
3648 | # As a last resort, use the slow shell script. Don't cache a | |
3649 | # value for MKDIR_P within a source directory, because that will | |
3650 | # break other packages using the cache if that directory is | |
3651 | # removed, or if the value is a relative name. | |
3652 | test -d ./--version && rmdir ./--version | |
3653 | MKDIR_P="$ac_install_sh -d" | |
3654 | fi | |
3655 | fi | |
68f2de6d AK |
3656 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3657 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
5556819a | 3658 | |
d0191583 JM |
3659 | if test -n "$ac_tool_prefix"; then |
3660 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3661 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
68f2de6d AK |
3662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3664 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
68f2de6d | 3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3666 | else |
3667 | if test -n "$RANLIB"; then | |
3668 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3669 | else | |
3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3671 | for as_dir in $PATH | |
3672 | do | |
3673 | IFS=$as_save_IFS | |
3674 | test -z "$as_dir" && as_dir=. | |
3675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3677 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
68f2de6d | 3678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3679 | break 2 |
3680 | fi | |
3681 | done | |
3682 | done | |
3683 | IFS=$as_save_IFS | |
8106cdd5 | 3684 | |
795ca3e5 | 3685 | fi |
d0191583 JM |
3686 | fi |
3687 | RANLIB=$ac_cv_prog_RANLIB | |
3688 | if test -n "$RANLIB"; then | |
68f2de6d AK |
3689 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3690 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3691 | else |
68f2de6d AK |
3692 | { echo "$as_me:$LINENO: result: no" >&5 |
3693 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3694 | fi |
3695 | ||
8106cdd5 | 3696 | |
ad6254c5 | 3697 | fi |
d0191583 JM |
3698 | if test -z "$ac_cv_prog_RANLIB"; then |
3699 | ac_ct_RANLIB=$RANLIB | |
3700 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3701 | set dummy ranlib; ac_word=$2 | |
68f2de6d AK |
3702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3704 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
68f2de6d | 3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3706 | else |
d0191583 JM |
3707 | if test -n "$ac_ct_RANLIB"; then |
3708 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3709 | else | |
3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3711 | for as_dir in $PATH | |
8106cdd5 | 3712 | do |
d0191583 JM |
3713 | IFS=$as_save_IFS |
3714 | test -z "$as_dir" && as_dir=. | |
3715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3717 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
68f2de6d | 3718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3719 | break 2 |
3720 | fi | |
3721 | done | |
3722 | done | |
3723 | IFS=$as_save_IFS | |
3724 | ||
3725 | fi | |
3726 | fi | |
3727 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3728 | if test -n "$ac_ct_RANLIB"; then | |
68f2de6d AK |
3729 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3730 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3731 | else |
68f2de6d AK |
3732 | { echo "$as_me:$LINENO: result: no" >&5 |
3733 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3734 | fi |
ad6254c5 | 3735 | |
d0191583 JM |
3736 | if test "x$ac_ct_RANLIB" = x; then |
3737 | RANLIB=":" | |
3738 | else | |
3739 | case $cross_compiling:$ac_tool_warned in | |
3740 | yes:) | |
68f2de6d | 3741 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3742 | whose name does not start with the host triplet. If you think this |
3743 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 3744 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3745 | whose name does not start with the host triplet. If you think this |
3746 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3747 | ac_tool_warned=yes ;; | |
3748 | esac | |
3749 | RANLIB=$ac_ct_RANLIB | |
3750 | fi | |
3751 | else | |
3752 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3753 | fi |
7a197a62 | 3754 | |
d0191583 JM |
3755 | # Extract the first word of "cflow", so it can be a program name with args. |
3756 | set dummy cflow; ac_word=$2 | |
68f2de6d AK |
3757 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3759 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
68f2de6d | 3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3761 | else |
3762 | case $CFLOW_CMD in | |
3763 | [\\/]* | ?:[\\/]*) | |
3764 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3765 | ;; | |
3766 | *) | |
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3768 | for as_dir in $PATH | |
3769 | do | |
3770 | IFS=$as_save_IFS | |
3771 | test -z "$as_dir" && as_dir=. | |
3772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3774 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3776 | break 2 |
3777 | fi | |
3778 | done | |
3779 | done | |
3780 | IFS=$as_save_IFS | |
ad6254c5 | 3781 | |
d0191583 | 3782 | ;; |
7a197a62 | 3783 | esac |
d0191583 JM |
3784 | fi |
3785 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3786 | if test -n "$CFLOW_CMD"; then | |
68f2de6d AK |
3787 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3788 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3789 | else |
68f2de6d AK |
3790 | { echo "$as_me:$LINENO: result: no" >&5 |
3791 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3792 | fi |
7a197a62 | 3793 | |
ad6254c5 | 3794 | |
d0191583 JM |
3795 | # Extract the first word of "cscope", so it can be a program name with args. |
3796 | set dummy cscope; ac_word=$2 | |
68f2de6d AK |
3797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3799 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
68f2de6d | 3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3801 | else |
3802 | case $CSCOPE_CMD in | |
3803 | [\\/]* | ?:[\\/]*) | |
3804 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3805 | ;; | |
3806 | *) | |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3808 | for as_dir in $PATH | |
3809 | do | |
3810 | IFS=$as_save_IFS | |
3811 | test -z "$as_dir" && as_dir=. | |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3814 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3816 | break 2 |
3817 | fi | |
795ca3e5 | 3818 | done |
d0191583 JM |
3819 | done |
3820 | IFS=$as_save_IFS | |
795ca3e5 | 3821 | |
d0191583 JM |
3822 | ;; |
3823 | esac | |
ad6254c5 | 3824 | fi |
d0191583 JM |
3825 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3826 | if test -n "$CSCOPE_CMD"; then | |
68f2de6d AK |
3827 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3828 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3829 | else |
68f2de6d AK |
3830 | { echo "$as_me:$LINENO: result: no" >&5 |
3831 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3832 | fi |
ad6254c5 | 3833 | |
7a197a62 | 3834 | |
ad6254c5 | 3835 | |
d0191583 JM |
3836 | ################################################################################ |
3837 | ||
3838 | ||
3839 | ||
3840 | ||
3841 | ||
3842 | ac_header_dirent=no | |
3843 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
68f2de6d AK |
3844 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3845 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3846 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3849 | else |
ad6254c5 | 3850 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3851 | /* confdefs.h. */ |
3852 | _ACEOF | |
3853 | cat confdefs.h >>conftest.$ac_ext | |
3854 | cat >>conftest.$ac_ext <<_ACEOF | |
3855 | /* end confdefs.h. */ | |
d0191583 JM |
3856 | #include <sys/types.h> |
3857 | #include <$ac_hdr> | |
3858 | ||
3859 | int | |
3860 | main () | |
3861 | { | |
3862 | if ((DIR *) 0) | |
3863 | return 0; | |
3864 | ; | |
3865 | return 0; | |
3866 | } | |
ad6254c5 | 3867 | _ACEOF |
d0191583 JM |
3868 | rm -f conftest.$ac_objext |
3869 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3870 | case "(($ac_try" in |
3871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3872 | *) ac_try_echo=$ac_try;; | |
3873 | esac | |
68f2de6d | 3874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3875 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3876 | ac_status=$? |
3877 | grep -v '^ *+' conftest.er1 >conftest.err | |
3878 | rm -f conftest.er1 | |
3879 | cat conftest.err >&5 | |
68f2de6d | 3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3881 | (exit $ac_status); } && { |
3882 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3883 | test ! -s conftest.err |
d0191583 JM |
3884 | } && test -s conftest.$ac_objext; then |
3885 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3886 | else |
68f2de6d | 3887 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3888 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3889 | |
d0191583 | 3890 | eval "$as_ac_Header=no" |
795ca3e5 | 3891 | fi |
7a197a62 | 3892 | |
d0191583 | 3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3894 | fi |
68f2de6d AK |
3895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3897 | echo "${ECHO_T}$ac_res" >&6; } | |
3898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3899 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 3900 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3901 | _ACEOF |
795ca3e5 | 3902 | |
d0191583 JM |
3903 | ac_header_dirent=$ac_hdr; break |
3904 | fi | |
ad6254c5 | 3905 | |
d0191583 JM |
3906 | done |
3907 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3908 | if test $ac_header_dirent = dirent.h; then | |
68f2de6d AK |
3909 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3910 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3911 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3913 | else |
d0191583 JM |
3914 | ac_func_search_save_LIBS=$LIBS |
3915 | cat >conftest.$ac_ext <<_ACEOF | |
3916 | /* confdefs.h. */ | |
3917 | _ACEOF | |
3918 | cat confdefs.h >>conftest.$ac_ext | |
3919 | cat >>conftest.$ac_ext <<_ACEOF | |
3920 | /* end confdefs.h. */ | |
ad6254c5 | 3921 | |
d0191583 JM |
3922 | /* Override any GCC internal prototype to avoid an error. |
3923 | Use char because int might match the return type of a GCC | |
3924 | builtin and then its argument prototype would still apply. */ | |
3925 | #ifdef __cplusplus | |
3926 | extern "C" | |
3927 | #endif | |
3928 | char opendir (); | |
3929 | int | |
3930 | main () | |
3931 | { | |
3932 | return opendir (); | |
3933 | ; | |
3934 | return 0; | |
3935 | } | |
3936 | _ACEOF | |
3937 | for ac_lib in '' dir; do | |
3938 | if test -z "$ac_lib"; then | |
3939 | ac_res="none required" | |
3940 | else | |
3941 | ac_res=-l$ac_lib | |
3942 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3943 | fi | |
3944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3945 | if { (ac_try="$ac_link" | |
3946 | case "(($ac_try" in | |
3947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3948 | *) ac_try_echo=$ac_try;; | |
3949 | esac | |
68f2de6d | 3950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3951 | (eval "$ac_link") 2>conftest.er1 |
3952 | ac_status=$? | |
3953 | grep -v '^ *+' conftest.er1 >conftest.err | |
3954 | rm -f conftest.er1 | |
3955 | cat conftest.err >&5 | |
68f2de6d | 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3957 | (exit $ac_status); } && { |
3958 | test -z "$ac_c_werror_flag" || | |
3959 | test ! -s conftest.err | |
68f2de6d AK |
3960 | } && test -s conftest$ac_exeext && |
3961 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3962 | ac_cv_search_opendir=$ac_res |
3963 | else | |
68f2de6d | 3964 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3965 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3966 | |
ad6254c5 | 3967 | |
795ca3e5 | 3968 | fi |
ad6254c5 | 3969 | |
d0191583 JM |
3970 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3971 | conftest$ac_exeext | |
3972 | if test "${ac_cv_search_opendir+set}" = set; then | |
3973 | break | |
7a197a62 | 3974 | fi |
d0191583 JM |
3975 | done |
3976 | if test "${ac_cv_search_opendir+set}" = set; then | |
3977 | : | |
7a197a62 | 3978 | else |
d0191583 | 3979 | ac_cv_search_opendir=no |
7a197a62 | 3980 | fi |
d0191583 JM |
3981 | rm conftest.$ac_ext |
3982 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3983 | fi |
68f2de6d AK |
3984 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3985 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3986 | ac_res=$ac_cv_search_opendir |
3987 | if test "$ac_res" != no; then | |
3988 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3989 | |
d0191583 | 3990 | fi |
7a197a62 | 3991 | |
7a197a62 | 3992 | else |
68f2de6d AK |
3993 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3994 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3995 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3997 | else |
d0191583 JM |
3998 | ac_func_search_save_LIBS=$LIBS |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
4000 | /* confdefs.h. */ | |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
7a197a62 | 4005 | |
d0191583 JM |
4006 | /* Override any GCC internal prototype to avoid an error. |
4007 | Use char because int might match the return type of a GCC | |
4008 | builtin and then its argument prototype would still apply. */ | |
4009 | #ifdef __cplusplus | |
4010 | extern "C" | |
4011 | #endif | |
4012 | char opendir (); | |
4013 | int | |
4014 | main () | |
4015 | { | |
4016 | return opendir (); | |
4017 | ; | |
4018 | return 0; | |
4019 | } | |
4020 | _ACEOF | |
4021 | for ac_lib in '' x; do | |
4022 | if test -z "$ac_lib"; then | |
4023 | ac_res="none required" | |
4024 | else | |
4025 | ac_res=-l$ac_lib | |
4026 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4027 | fi | |
4028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4029 | if { (ac_try="$ac_link" | |
4030 | case "(($ac_try" in | |
4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4032 | *) ac_try_echo=$ac_try;; | |
4033 | esac | |
68f2de6d | 4034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4035 | (eval "$ac_link") 2>conftest.er1 |
4036 | ac_status=$? | |
4037 | grep -v '^ *+' conftest.er1 >conftest.err | |
4038 | rm -f conftest.er1 | |
4039 | cat conftest.err >&5 | |
68f2de6d | 4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4041 | (exit $ac_status); } && { |
4042 | test -z "$ac_c_werror_flag" || | |
4043 | test ! -s conftest.err | |
68f2de6d AK |
4044 | } && test -s conftest$ac_exeext && |
4045 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
4046 | ac_cv_search_opendir=$ac_res |
4047 | else | |
68f2de6d | 4048 | echo "$as_me: failed program was:" >&5 |
d0191583 | 4049 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4050 | |
4051 | ||
4052 | fi | |
4053 | ||
d0191583 JM |
4054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4055 | conftest$ac_exeext | |
4056 | if test "${ac_cv_search_opendir+set}" = set; then | |
4057 | break | |
7a197a62 | 4058 | fi |
d0191583 JM |
4059 | done |
4060 | if test "${ac_cv_search_opendir+set}" = set; then | |
4061 | : | |
7a197a62 | 4062 | else |
d0191583 | 4063 | ac_cv_search_opendir=no |
7a197a62 | 4064 | fi |
d0191583 JM |
4065 | rm conftest.$ac_ext |
4066 | LIBS=$ac_func_search_save_LIBS | |
4067 | fi | |
68f2de6d AK |
4068 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4069 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4070 | ac_res=$ac_cv_search_opendir |
4071 | if test "$ac_res" != no; then | |
4072 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4073 | |
7a197a62 | 4074 | fi |
7a197a62 | 4075 | |
d0191583 | 4076 | fi |
7a197a62 | 4077 | |
68f2de6d AK |
4078 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4079 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 4080 | if test "${ac_cv_header_stdc+set}" = set; then |
68f2de6d | 4081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
4082 | else |
4083 | cat >conftest.$ac_ext <<_ACEOF | |
4084 | /* confdefs.h. */ | |
4085 | _ACEOF | |
4086 | cat confdefs.h >>conftest.$ac_ext | |
4087 | cat >>conftest.$ac_ext <<_ACEOF | |
4088 | /* end confdefs.h. */ | |
4089 | #include <stdlib.h> | |
4090 | #include <stdarg.h> | |
4091 | #include <string.h> | |
4092 | #include <float.h> | |
4093 | ||
4094 | int | |
4095 | main () | |
4096 | { | |
4097 | ||
4098 | ; | |
4099 | return 0; | |
4100 | } | |
4101 | _ACEOF | |
4102 | rm -f conftest.$ac_objext | |
4103 | if { (ac_try="$ac_compile" | |
4104 | case "(($ac_try" in | |
4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4106 | *) ac_try_echo=$ac_try;; | |
4107 | esac | |
68f2de6d | 4108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4109 | (eval "$ac_compile") 2>conftest.er1 |
4110 | ac_status=$? | |
4111 | grep -v '^ *+' conftest.er1 >conftest.err | |
4112 | rm -f conftest.er1 | |
4113 | cat conftest.err >&5 | |
68f2de6d | 4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4115 | (exit $ac_status); } && { |
4116 | test -z "$ac_c_werror_flag" || | |
4117 | test ! -s conftest.err | |
4118 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4119 | ac_cv_header_stdc=yes |
4120 | else | |
68f2de6d | 4121 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4122 | sed 's/^/| /' conftest.$ac_ext >&5 |
4123 | ||
4124 | ac_cv_header_stdc=no | |
4125 | fi | |
4126 | ||
4127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4128 | ||
4129 | if test $ac_cv_header_stdc = yes; then | |
4130 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4131 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4132 | /* confdefs.h. */ |
4133 | _ACEOF | |
4134 | cat confdefs.h >>conftest.$ac_ext | |
4135 | cat >>conftest.$ac_ext <<_ACEOF | |
4136 | /* end confdefs.h. */ | |
4137 | #include <string.h> | |
8106cdd5 | 4138 | |
ad6254c5 AK |
4139 | _ACEOF |
4140 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4141 | $EGREP "memchr" >/dev/null 2>&1; then | |
4142 | : | |
4143 | else | |
4144 | ac_cv_header_stdc=no | |
80992638 | 4145 | fi |
ad6254c5 | 4146 | rm -f conftest* |
795ca3e5 AK |
4147 | |
4148 | fi | |
4149 | ||
ad6254c5 AK |
4150 | if test $ac_cv_header_stdc = yes; then |
4151 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4152 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4153 | /* confdefs.h. */ |
4154 | _ACEOF | |
4155 | cat confdefs.h >>conftest.$ac_ext | |
4156 | cat >>conftest.$ac_ext <<_ACEOF | |
4157 | /* end confdefs.h. */ | |
80992638 | 4158 | #include <stdlib.h> |
ad6254c5 AK |
4159 | |
4160 | _ACEOF | |
80992638 | 4161 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4162 | $EGREP "free" >/dev/null 2>&1; then |
4163 | : | |
795ca3e5 | 4164 | else |
ad6254c5 | 4165 | ac_cv_header_stdc=no |
795ca3e5 | 4166 | fi |
80992638 | 4167 | rm -f conftest* |
8106cdd5 | 4168 | |
795ca3e5 AK |
4169 | fi |
4170 | ||
ad6254c5 AK |
4171 | if test $ac_cv_header_stdc = yes; then |
4172 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4173 | if test "$cross_compiling" = yes; then | |
4174 | : | |
795ca3e5 | 4175 | else |
ad6254c5 | 4176 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4177 | /* confdefs.h. */ |
4178 | _ACEOF | |
4179 | cat confdefs.h >>conftest.$ac_ext | |
4180 | cat >>conftest.$ac_ext <<_ACEOF | |
4181 | /* end confdefs.h. */ | |
4182 | #include <ctype.h> | |
7a197a62 | 4183 | #include <stdlib.h> |
ad6254c5 AK |
4184 | #if ((' ' & 0x0FF) == 0x020) |
4185 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4186 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4187 | #else | |
4188 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4189 | (('a' <= (c) && (c) <= 'i') \ |
4190 | || ('j' <= (c) && (c) <= 'r') \ | |
4191 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4192 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4193 | #endif |
ad6254c5 AK |
4194 | |
4195 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4196 | int | |
4197 | main () | |
4198 | { | |
4199 | int i; | |
4200 | for (i = 0; i < 256; i++) | |
4201 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4202 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4203 | return 2; |
4204 | return 0; | |
ad6254c5 AK |
4205 | } |
4206 | _ACEOF | |
4207 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4208 | if { (ac_try="$ac_link" |
4209 | case "(($ac_try" in | |
4210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4211 | *) ac_try_echo=$ac_try;; | |
4212 | esac | |
68f2de6d | 4213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4214 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4215 | ac_status=$? |
68f2de6d | 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4218 | { (case "(($ac_try" in |
4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4220 | *) ac_try_echo=$ac_try;; | |
4221 | esac | |
68f2de6d | 4222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4223 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4224 | ac_status=$? |
68f2de6d | 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4226 | (exit $ac_status); }; }; then |
4227 | : | |
795ca3e5 | 4228 | else |
68f2de6d AK |
4229 | echo "$as_me: program exited with status $ac_status" >&5 |
4230 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4231 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4232 | |
ad6254c5 AK |
4233 | ( exit $ac_status ) |
4234 | ac_cv_header_stdc=no | |
80992638 | 4235 | fi |
7a197a62 | 4236 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4237 | fi |
7a197a62 AK |
4238 | |
4239 | ||
ad6254c5 AK |
4240 | fi |
4241 | fi | |
68f2de6d AK |
4242 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4243 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4244 | if test $ac_cv_header_stdc = yes; then |
4245 | ||
4246 | cat >>confdefs.h <<\_ACEOF | |
4247 | #define STDC_HEADERS 1 | |
4248 | _ACEOF | |
795ca3e5 AK |
4249 | |
4250 | fi | |
4251 | ||
68f2de6d AK |
4252 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4253 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4254 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
68f2de6d | 4255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4256 | else |
ad6254c5 | 4257 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4258 | /* confdefs.h. */ |
4259 | _ACEOF | |
4260 | cat confdefs.h >>conftest.$ac_ext | |
4261 | cat >>conftest.$ac_ext <<_ACEOF | |
4262 | /* end confdefs.h. */ | |
80992638 | 4263 | #include <sys/types.h> |
ad6254c5 AK |
4264 | #include <sys/wait.h> |
4265 | #ifndef WEXITSTATUS | |
7a197a62 | 4266 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4267 | #endif |
4268 | #ifndef WIFEXITED | |
4269 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4270 | #endif | |
4271 | ||
4272 | int | |
4273 | main () | |
4274 | { | |
4275 | int s; | |
4276 | wait (&s); | |
4277 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4278 | ; | |
4279 | return 0; | |
4280 | } | |
4281 | _ACEOF | |
4282 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4283 | if { (ac_try="$ac_compile" |
4284 | case "(($ac_try" in | |
4285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4286 | *) ac_try_echo=$ac_try;; | |
4287 | esac | |
68f2de6d | 4288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4289 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4290 | ac_status=$? |
8a2fc586 AK |
4291 | grep -v '^ *+' conftest.er1 >conftest.err |
4292 | rm -f conftest.er1 | |
4293 | cat conftest.err >&5 | |
68f2de6d | 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4295 | (exit $ac_status); } && { |
4296 | test -z "$ac_c_werror_flag" || | |
4297 | test ! -s conftest.err | |
4298 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4299 | ac_cv_header_sys_wait_h=yes |
4300 | else | |
68f2de6d | 4301 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4302 | sed 's/^/| /' conftest.$ac_ext >&5 |
4303 | ||
7a197a62 | 4304 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4305 | fi |
7a197a62 AK |
4306 | |
4307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4308 | fi |
68f2de6d AK |
4309 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4310 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4311 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4312 | |
ad6254c5 AK |
4313 | cat >>confdefs.h <<\_ACEOF |
4314 | #define HAVE_SYS_WAIT_H 1 | |
4315 | _ACEOF | |
795ca3e5 AK |
4316 | |
4317 | fi | |
4318 | ||
68f2de6d AK |
4319 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4320 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4321 | if test "${ac_cv_header_time+set}" = set; then |
68f2de6d | 4322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4323 | else |
ad6254c5 | 4324 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4325 | /* confdefs.h. */ |
4326 | _ACEOF | |
4327 | cat confdefs.h >>conftest.$ac_ext | |
4328 | cat >>conftest.$ac_ext <<_ACEOF | |
4329 | /* end confdefs.h. */ | |
795ca3e5 AK |
4330 | #include <sys/types.h> |
4331 | #include <sys/time.h> | |
4332 | #include <time.h> | |
ad6254c5 AK |
4333 | |
4334 | int | |
4335 | main () | |
4336 | { | |
4337 | if ((struct tm *) 0) | |
4338 | return 0; | |
4339 | ; | |
4340 | return 0; | |
4341 | } | |
4342 | _ACEOF | |
4343 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4344 | if { (ac_try="$ac_compile" |
4345 | case "(($ac_try" in | |
4346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4347 | *) ac_try_echo=$ac_try;; | |
4348 | esac | |
68f2de6d | 4349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4350 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4351 | ac_status=$? |
8a2fc586 AK |
4352 | grep -v '^ *+' conftest.er1 >conftest.err |
4353 | rm -f conftest.er1 | |
4354 | cat conftest.err >&5 | |
68f2de6d | 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4356 | (exit $ac_status); } && { |
4357 | test -z "$ac_c_werror_flag" || | |
4358 | test ! -s conftest.err | |
4359 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4360 | ac_cv_header_time=yes |
4361 | else | |
68f2de6d | 4362 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4363 | sed 's/^/| /' conftest.$ac_ext >&5 |
4364 | ||
7a197a62 | 4365 | ac_cv_header_time=no |
795ca3e5 | 4366 | fi |
7a197a62 AK |
4367 | |
4368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4369 | fi |
68f2de6d AK |
4370 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4371 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4372 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4373 | |
4374 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4375 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4376 | _ACEOF |
b896caa1 | 4377 | |
8106cdd5 | 4378 | fi |
b896caa1 | 4379 | |
b896caa1 | 4380 | |
d0191583 JM |
4381 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4382 | ||
4383 | ||
4384 | ||
4385 | ||
4386 | ||
4387 | ||
4388 | ||
4389 | ||
4390 | ||
4391 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4392 | inttypes.h stdint.h unistd.h | |
4393 | do | |
68f2de6d AK |
4394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4395 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4399 | else |
4400 | cat >conftest.$ac_ext <<_ACEOF | |
4401 | /* confdefs.h. */ | |
4402 | _ACEOF | |
4403 | cat confdefs.h >>conftest.$ac_ext | |
4404 | cat >>conftest.$ac_ext <<_ACEOF | |
4405 | /* end confdefs.h. */ | |
4406 | $ac_includes_default | |
4407 | ||
4408 | #include <$ac_header> | |
4409 | _ACEOF | |
4410 | rm -f conftest.$ac_objext | |
4411 | if { (ac_try="$ac_compile" | |
4412 | case "(($ac_try" in | |
4413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4414 | *) ac_try_echo=$ac_try;; | |
4415 | esac | |
68f2de6d | 4416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4417 | (eval "$ac_compile") 2>conftest.er1 |
4418 | ac_status=$? | |
4419 | grep -v '^ *+' conftest.er1 >conftest.err | |
4420 | rm -f conftest.er1 | |
4421 | cat conftest.err >&5 | |
68f2de6d | 4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4423 | (exit $ac_status); } && { |
4424 | test -z "$ac_c_werror_flag" || | |
4425 | test ! -s conftest.err | |
4426 | } && test -s conftest.$ac_objext; then | |
4427 | eval "$as_ac_Header=yes" | |
4428 | else | |
68f2de6d | 4429 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
4431 | ||
4432 | eval "$as_ac_Header=no" | |
4433 | fi | |
4434 | ||
4435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4436 | fi | |
68f2de6d AK |
4437 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4439 | echo "${ECHO_T}$ac_res" >&6; } | |
4440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4441 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4443 | _ACEOF |
4444 | ||
4445 | fi | |
4446 | ||
4447 | done | |
4448 | ||
b896caa1 | 4449 | |
b896caa1 AK |
4450 | |
4451 | ||
795ca3e5 | 4452 | |
8106cdd5 | 4453 | |
80992638 | 4454 | |
795ca3e5 | 4455 | |
a38df97f | 4456 | |
80992638 | 4457 | |
d0191583 JM |
4458 | |
4459 | ||
4460 | ||
4461 | ||
4462 | ||
4463 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4464 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4465 | do |
68f2de6d | 4466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4468 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4472 | fi |
68f2de6d AK |
4473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4475 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4476 | else |
d0191583 | 4477 | # Is the header compilable? |
68f2de6d AK |
4478 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4479 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 4480 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4481 | /* confdefs.h. */ |
4482 | _ACEOF | |
4483 | cat confdefs.h >>conftest.$ac_ext | |
4484 | cat >>conftest.$ac_ext <<_ACEOF | |
4485 | /* end confdefs.h. */ | |
4486 | $ac_includes_default | |
ad6254c5 AK |
4487 | #include <$ac_header> |
4488 | _ACEOF | |
4489 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4490 | if { (ac_try="$ac_compile" |
4491 | case "(($ac_try" in | |
4492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4493 | *) ac_try_echo=$ac_try;; | |
4494 | esac | |
68f2de6d | 4495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4496 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4497 | ac_status=$? |
8a2fc586 AK |
4498 | grep -v '^ *+' conftest.er1 >conftest.err |
4499 | rm -f conftest.er1 | |
4500 | cat conftest.err >&5 | |
68f2de6d | 4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4502 | (exit $ac_status); } && { |
4503 | test -z "$ac_c_werror_flag" || | |
4504 | test ! -s conftest.err | |
4505 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4506 | ac_header_compiler=yes |
ad6254c5 | 4507 | else |
68f2de6d | 4508 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4509 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4510 | |
d0191583 | 4511 | ac_header_compiler=no |
ad6254c5 | 4512 | fi |
7a197a62 AK |
4513 | |
4514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4515 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4516 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4517 | |
4518 | # Is the header present? | |
68f2de6d AK |
4519 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4520 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4521 | cat >conftest.$ac_ext <<_ACEOF |
4522 | /* confdefs.h. */ | |
4523 | _ACEOF | |
4524 | cat confdefs.h >>conftest.$ac_ext | |
4525 | cat >>conftest.$ac_ext <<_ACEOF | |
4526 | /* end confdefs.h. */ | |
4527 | #include <$ac_header> | |
4528 | _ACEOF | |
4529 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4530 | case "(($ac_try" in | |
4531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4532 | *) ac_try_echo=$ac_try;; | |
4533 | esac | |
68f2de6d | 4534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4535 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4536 | ac_status=$? | |
4537 | grep -v '^ *+' conftest.er1 >conftest.err | |
4538 | rm -f conftest.er1 | |
4539 | cat conftest.err >&5 | |
68f2de6d | 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4541 | (exit $ac_status); } >/dev/null && { |
4542 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4543 | test ! -s conftest.err | |
4544 | }; then | |
4545 | ac_header_preproc=yes | |
4546 | else | |
68f2de6d | 4547 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4548 | sed 's/^/| /' conftest.$ac_ext >&5 |
4549 | ||
4550 | ac_header_preproc=no | |
4551 | fi | |
4552 | ||
4553 | rm -f conftest.err conftest.$ac_ext | |
68f2de6d AK |
4554 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4555 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4556 | |
4557 | # So? What about this header? | |
4558 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4559 | yes:no: ) | |
68f2de6d AK |
4560 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4561 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4563 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4564 | ac_header_preproc=yes |
4565 | ;; | |
4566 | no:yes:* ) | |
68f2de6d AK |
4567 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4568 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4569 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4570 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4571 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4572 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4573 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4574 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4576 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4577 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4578 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4579 | |
4580 | ;; | |
4581 | esac | |
68f2de6d AK |
4582 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4586 | else |
4587 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4588 | fi |
68f2de6d AK |
4589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4591 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4592 | |
4593 | fi | |
68f2de6d | 4594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4595 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4597 | _ACEOF |
a38df97f | 4598 | |
d0191583 | 4599 | else |
68f2de6d AK |
4600 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4601 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4602 | { (exit 1); exit 1; }; } |
80992638 AK |
4603 | fi |
4604 | ||
ad6254c5 AK |
4605 | done |
4606 | ||
7d1552c9 | 4607 | |
d0191583 JM |
4608 | case "$host_os" in |
4609 | linux*) | |
7d1552c9 | 4610 | |
80992638 | 4611 | |
5a52dca9 | 4612 | |
d0191583 | 4613 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4614 | do |
68f2de6d | 4615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4621 | fi |
68f2de6d AK |
4622 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4624 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4625 | else |
4626 | # Is the header compilable? | |
68f2de6d AK |
4627 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4629 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4630 | /* confdefs.h. */ |
4631 | _ACEOF | |
4632 | cat confdefs.h >>conftest.$ac_ext | |
4633 | cat >>conftest.$ac_ext <<_ACEOF | |
4634 | /* end confdefs.h. */ | |
4635 | $ac_includes_default | |
4636 | #include <$ac_header> | |
4637 | _ACEOF | |
4638 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4639 | if { (ac_try="$ac_compile" |
4640 | case "(($ac_try" in | |
4641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4642 | *) ac_try_echo=$ac_try;; | |
4643 | esac | |
68f2de6d | 4644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4645 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4646 | ac_status=$? |
8a2fc586 AK |
4647 | grep -v '^ *+' conftest.er1 >conftest.err |
4648 | rm -f conftest.er1 | |
4649 | cat conftest.err >&5 | |
68f2de6d | 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4651 | (exit $ac_status); } && { |
4652 | test -z "$ac_c_werror_flag" || | |
4653 | test ! -s conftest.err | |
4654 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4655 | ac_header_compiler=yes |
4656 | else | |
68f2de6d | 4657 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4658 | sed 's/^/| /' conftest.$ac_ext >&5 |
4659 | ||
4660 | ac_header_compiler=no | |
4661 | fi | |
4662 | ||
4663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4664 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4665 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4666 | |
4667 | # Is the header present? | |
68f2de6d AK |
4668 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4669 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4670 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4671 | /* confdefs.h. */ |
4672 | _ACEOF | |
4673 | cat confdefs.h >>conftest.$ac_ext | |
4674 | cat >>conftest.$ac_ext <<_ACEOF | |
4675 | /* end confdefs.h. */ | |
4676 | #include <$ac_header> | |
4677 | _ACEOF | |
7a197a62 AK |
4678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4679 | case "(($ac_try" in | |
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 | *) ac_try_echo=$ac_try;; | |
4682 | esac | |
68f2de6d | 4683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4685 | ac_status=$? |
4686 | grep -v '^ *+' conftest.er1 >conftest.err | |
4687 | rm -f conftest.er1 | |
4688 | cat conftest.err >&5 | |
68f2de6d | 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4690 | (exit $ac_status); } >/dev/null && { |
4691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4692 | test ! -s conftest.err | |
4693 | }; then | |
ad6254c5 AK |
4694 | ac_header_preproc=yes |
4695 | else | |
68f2de6d | 4696 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4697 | sed 's/^/| /' conftest.$ac_ext >&5 |
4698 | ||
4699 | ac_header_preproc=no | |
4700 | fi | |
7a197a62 | 4701 | |
ad6254c5 | 4702 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4703 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4704 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4705 | |
4706 | # So? What about this header? | |
8a2fc586 AK |
4707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4708 | yes:no: ) | |
68f2de6d AK |
4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4713 | ac_header_preproc=yes |
ad6254c5 | 4714 | ;; |
8a2fc586 | 4715 | no:yes:* ) |
68f2de6d AK |
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4728 | |
ad6254c5 AK |
4729 | ;; |
4730 | esac | |
68f2de6d AK |
4731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4735 | else |
8a2fc586 | 4736 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4737 | fi |
68f2de6d AK |
4738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4740 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4741 | |
4742 | fi | |
68f2de6d | 4743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4744 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4746 | _ACEOF |
b896caa1 | 4747 | |
d8ac0fbc | 4748 | else |
68f2de6d AK |
4749 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4750 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4751 | { (exit 1); exit 1; }; } |
80992638 AK |
4752 | fi |
4753 | ||
ad6254c5 | 4754 | done |
d0191583 JM |
4755 | ;; |
4756 | darwin*) | |
d8ac0fbc | 4757 | |
d8ac0fbc | 4758 | |
d0191583 | 4759 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4760 | do |
68f2de6d | 4761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4763 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4767 | fi |
68f2de6d AK |
4768 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4769 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4770 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4771 | else |
4772 | # Is the header compilable? | |
68f2de6d AK |
4773 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4774 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4775 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4776 | /* confdefs.h. */ |
4777 | _ACEOF | |
4778 | cat confdefs.h >>conftest.$ac_ext | |
4779 | cat >>conftest.$ac_ext <<_ACEOF | |
4780 | /* end confdefs.h. */ | |
4781 | $ac_includes_default | |
4782 | #include <$ac_header> | |
4783 | _ACEOF | |
4784 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4785 | if { (ac_try="$ac_compile" |
4786 | case "(($ac_try" in | |
4787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4788 | *) ac_try_echo=$ac_try;; | |
4789 | esac | |
68f2de6d | 4790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4791 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4792 | ac_status=$? |
8a2fc586 AK |
4793 | grep -v '^ *+' conftest.er1 >conftest.err |
4794 | rm -f conftest.er1 | |
4795 | cat conftest.err >&5 | |
68f2de6d | 4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4797 | (exit $ac_status); } && { |
4798 | test -z "$ac_c_werror_flag" || | |
4799 | test ! -s conftest.err | |
4800 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4801 | ac_header_compiler=yes |
4802 | else | |
68f2de6d | 4803 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 |
4805 | ||
7a197a62 | 4806 | ac_header_compiler=no |
ad6254c5 | 4807 | fi |
7a197a62 AK |
4808 | |
4809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4810 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4811 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4812 | |
4813 | # Is the header present? | |
68f2de6d AK |
4814 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4816 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4817 | /* confdefs.h. */ |
4818 | _ACEOF | |
4819 | cat confdefs.h >>conftest.$ac_ext | |
4820 | cat >>conftest.$ac_ext <<_ACEOF | |
4821 | /* end confdefs.h. */ | |
4822 | #include <$ac_header> | |
4823 | _ACEOF | |
7a197a62 AK |
4824 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4825 | case "(($ac_try" in | |
4826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4827 | *) ac_try_echo=$ac_try;; | |
4828 | esac | |
68f2de6d | 4829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4831 | ac_status=$? |
4832 | grep -v '^ *+' conftest.er1 >conftest.err | |
4833 | rm -f conftest.er1 | |
4834 | cat conftest.err >&5 | |
68f2de6d | 4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4836 | (exit $ac_status); } >/dev/null && { |
4837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4838 | test ! -s conftest.err | |
4839 | }; then | |
ad6254c5 AK |
4840 | ac_header_preproc=yes |
4841 | else | |
68f2de6d | 4842 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4843 | sed 's/^/| /' conftest.$ac_ext >&5 |
4844 | ||
4845 | ac_header_preproc=no | |
4846 | fi | |
7a197a62 | 4847 | |
ad6254c5 | 4848 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4849 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4850 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4851 | |
4852 | # So? What about this header? | |
8a2fc586 AK |
4853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4854 | yes:no: ) | |
68f2de6d AK |
4855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4858 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4859 | ac_header_preproc=yes |
ad6254c5 | 4860 | ;; |
8a2fc586 | 4861 | no:yes:* ) |
68f2de6d AK |
4862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4873 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4874 | |
ad6254c5 AK |
4875 | ;; |
4876 | esac | |
68f2de6d AK |
4877 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4881 | else |
8a2fc586 | 4882 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4883 | fi |
68f2de6d AK |
4884 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4885 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4886 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4887 | |
4888 | fi | |
68f2de6d | 4889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4890 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4892 | _ACEOF |
4922197a | 4893 | |
4922197a | 4894 | else |
68f2de6d AK |
4895 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4896 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4897 | { (exit 1); exit 1; }; } |
80992638 AK |
4898 | fi |
4899 | ||
ad6254c5 | 4900 | done |
d0191583 JM |
4901 | ;; |
4902 | esac | |
4922197a | 4903 | |
4922197a | 4904 | |
4922197a | 4905 | |
ad6254c5 AK |
4906 | |
4907 | ||
d0191583 JM |
4908 | |
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4921 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4922 | sys/types.h unistd.h | |
ad6254c5 | 4923 | do |
68f2de6d | 4924 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4926 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4930 | fi |
68f2de6d AK |
4931 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4932 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4933 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4934 | else |
ad6254c5 | 4935 | # Is the header compilable? |
68f2de6d AK |
4936 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4938 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4939 | /* confdefs.h. */ |
4940 | _ACEOF | |
4941 | cat confdefs.h >>conftest.$ac_ext | |
4942 | cat >>conftest.$ac_ext <<_ACEOF | |
4943 | /* end confdefs.h. */ | |
4944 | $ac_includes_default | |
4945 | #include <$ac_header> | |
4946 | _ACEOF | |
4947 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4948 | if { (ac_try="$ac_compile" |
4949 | case "(($ac_try" in | |
4950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4951 | *) ac_try_echo=$ac_try;; | |
4952 | esac | |
68f2de6d | 4953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4954 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4955 | ac_status=$? |
8a2fc586 AK |
4956 | grep -v '^ *+' conftest.er1 >conftest.err |
4957 | rm -f conftest.er1 | |
4958 | cat conftest.err >&5 | |
68f2de6d | 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4960 | (exit $ac_status); } && { |
4961 | test -z "$ac_c_werror_flag" || | |
4962 | test ! -s conftest.err | |
4963 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4964 | ac_header_compiler=yes |
4965 | else | |
68f2de6d | 4966 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4967 | sed 's/^/| /' conftest.$ac_ext >&5 |
4968 | ||
7a197a62 | 4969 | ac_header_compiler=no |
ad6254c5 | 4970 | fi |
7a197a62 AK |
4971 | |
4972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4973 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4974 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4975 | |
4976 | # Is the header present? | |
68f2de6d AK |
4977 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4978 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4979 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4980 | /* confdefs.h. */ |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
4985 | #include <$ac_header> | |
4986 | _ACEOF | |
7a197a62 AK |
4987 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4988 | case "(($ac_try" in | |
4989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4990 | *) ac_try_echo=$ac_try;; | |
4991 | esac | |
68f2de6d | 4992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4994 | ac_status=$? |
4995 | grep -v '^ *+' conftest.er1 >conftest.err | |
4996 | rm -f conftest.er1 | |
4997 | cat conftest.err >&5 | |
68f2de6d | 4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4999 | (exit $ac_status); } >/dev/null && { |
5000 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5001 | test ! -s conftest.err | |
5002 | }; then | |
ad6254c5 AK |
5003 | ac_header_preproc=yes |
5004 | else | |
68f2de6d | 5005 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5006 | sed 's/^/| /' conftest.$ac_ext >&5 |
5007 | ||
5008 | ac_header_preproc=no | |
5009 | fi | |
7a197a62 | 5010 | |
ad6254c5 | 5011 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5012 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5013 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5014 | |
5015 | # So? What about this header? | |
8a2fc586 AK |
5016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5017 | yes:no: ) | |
68f2de6d AK |
5018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5022 | ac_header_preproc=yes |
ad6254c5 | 5023 | ;; |
8a2fc586 | 5024 | no:yes:* ) |
68f2de6d AK |
5025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5037 | |
ad6254c5 AK |
5038 | ;; |
5039 | esac | |
68f2de6d AK |
5040 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5044 | else |
8a2fc586 | 5045 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5046 | fi |
68f2de6d AK |
5047 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5048 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5049 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 5050 | |
ad6254c5 | 5051 | fi |
68f2de6d | 5052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5053 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5055 | _ACEOF |
795ca3e5 | 5056 | |
795ca3e5 | 5057 | else |
68f2de6d AK |
5058 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5059 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5060 | { (exit 1); exit 1; }; } |
80992638 AK |
5061 | fi |
5062 | ||
ad6254c5 | 5063 | done |
ad6254c5 | 5064 | |
795ca3e5 | 5065 | |
d0191583 JM |
5066 | |
5067 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5068 | do |
68f2de6d | 5069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
5071 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5075 | fi |
68f2de6d AK |
5076 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5078 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5079 | else |
5080 | # Is the header compilable? | |
68f2de6d AK |
5081 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 5083 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5084 | /* confdefs.h. */ |
5085 | _ACEOF | |
5086 | cat confdefs.h >>conftest.$ac_ext | |
5087 | cat >>conftest.$ac_ext <<_ACEOF | |
5088 | /* end confdefs.h. */ | |
5089 | $ac_includes_default | |
5090 | #include <$ac_header> | |
5091 | _ACEOF | |
5092 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5093 | if { (ac_try="$ac_compile" |
5094 | case "(($ac_try" in | |
5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5096 | *) ac_try_echo=$ac_try;; | |
5097 | esac | |
68f2de6d | 5098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5099 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5100 | ac_status=$? |
8a2fc586 AK |
5101 | grep -v '^ *+' conftest.er1 >conftest.err |
5102 | rm -f conftest.er1 | |
5103 | cat conftest.err >&5 | |
68f2de6d | 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5105 | (exit $ac_status); } && { |
5106 | test -z "$ac_c_werror_flag" || | |
5107 | test ! -s conftest.err | |
5108 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5109 | ac_header_compiler=yes |
5110 | else | |
68f2de6d | 5111 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5112 | sed 's/^/| /' conftest.$ac_ext >&5 |
5113 | ||
7a197a62 | 5114 | ac_header_compiler=no |
ad6254c5 | 5115 | fi |
7a197a62 AK |
5116 | |
5117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
5118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5119 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5120 | |
5121 | # Is the header present? | |
68f2de6d AK |
5122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5124 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5125 | /* confdefs.h. */ |
5126 | _ACEOF | |
5127 | cat confdefs.h >>conftest.$ac_ext | |
5128 | cat >>conftest.$ac_ext <<_ACEOF | |
5129 | /* end confdefs.h. */ | |
5130 | #include <$ac_header> | |
5131 | _ACEOF | |
7a197a62 AK |
5132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5133 | case "(($ac_try" in | |
5134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5135 | *) ac_try_echo=$ac_try;; | |
5136 | esac | |
68f2de6d | 5137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5139 | ac_status=$? |
5140 | grep -v '^ *+' conftest.er1 >conftest.err | |
5141 | rm -f conftest.er1 | |
5142 | cat conftest.err >&5 | |
68f2de6d | 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5144 | (exit $ac_status); } >/dev/null && { |
5145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5146 | test ! -s conftest.err | |
5147 | }; then | |
ad6254c5 AK |
5148 | ac_header_preproc=yes |
5149 | else | |
68f2de6d | 5150 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 |
5152 | ||
5153 | ac_header_preproc=no | |
5154 | fi | |
7a197a62 | 5155 | |
ad6254c5 | 5156 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5158 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5159 | |
5160 | # So? What about this header? | |
8a2fc586 AK |
5161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5162 | yes:no: ) | |
68f2de6d AK |
5163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5167 | ac_header_preproc=yes |
ad6254c5 | 5168 | ;; |
8a2fc586 | 5169 | no:yes:* ) |
68f2de6d AK |
5170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5182 | |
ad6254c5 AK |
5183 | ;; |
5184 | esac | |
68f2de6d AK |
5185 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5189 | else |
8a2fc586 | 5190 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5191 | fi |
68f2de6d AK |
5192 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5194 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5195 | |
ad6254c5 | 5196 | fi |
68f2de6d | 5197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5198 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5200 | _ACEOF |
5201 | ||
80992638 AK |
5202 | fi |
5203 | ||
ad6254c5 | 5204 | done |
d0191583 | 5205 | |
d3c8211f | 5206 | |
80992638 | 5207 | ################################################################################ |
68f2de6d AK |
5208 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5209 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5210 | if test "${ac_cv_c_const+set}" = set; then |
68f2de6d | 5211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5212 | else |
ad6254c5 | 5213 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5214 | /* confdefs.h. */ |
5215 | _ACEOF | |
5216 | cat confdefs.h >>conftest.$ac_ext | |
5217 | cat >>conftest.$ac_ext <<_ACEOF | |
5218 | /* end confdefs.h. */ | |
5219 | ||
5220 | int | |
5221 | main () | |
5222 | { | |
5223 | /* FIXME: Include the comments suggested by Paul. */ | |
5224 | #ifndef __cplusplus | |
5225 | /* Ultrix mips cc rejects this. */ | |
5226 | typedef int charset[2]; | |
25fbec5b | 5227 | const charset cs; |
ad6254c5 | 5228 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5229 | char const *const *pcpcc; |
5230 | char **ppc; | |
ad6254c5 AK |
5231 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5232 | struct point {int x, y;}; | |
5233 | static struct point const zero = {0,0}; | |
5234 | /* AIX XL C 1.02.0.0 rejects this. | |
5235 | It does not let you subtract one const X* pointer from another in | |
5236 | an arm of an if-expression whose if-part is not a constant | |
5237 | expression */ | |
5238 | const char *g = "string"; | |
25fbec5b | 5239 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5240 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5241 | ++pcpcc; |
5242 | ppc = (char**) pcpcc; | |
5243 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5244 | { /* SCO 3.2v4 cc rejects this. */ |
5245 | char *t; | |
5246 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5247 | ||
5248 | *t++ = 0; | |
7a197a62 | 5249 | if (s) return 0; |
ad6254c5 AK |
5250 | } |
5251 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5252 | int x[] = {25, 17}; | |
5253 | const int *foo = &x[0]; | |
5254 | ++foo; | |
5255 | } | |
5256 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5257 | typedef const int *iptr; | |
5258 | iptr p = 0; | |
5259 | ++p; | |
5260 | } | |
5261 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5262 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5263 | struct s { int j; const int *ap[3]; }; | |
5264 | struct s *b; b->j = 5; | |
5265 | } | |
5266 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5267 | const int foo = 10; | |
7a197a62 | 5268 | if (!foo) return 0; |
ad6254c5 | 5269 | } |
25fbec5b | 5270 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5271 | #endif |
5272 | ||
5273 | ; | |
5274 | return 0; | |
5275 | } | |
5276 | _ACEOF | |
5277 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5278 | if { (ac_try="$ac_compile" |
5279 | case "(($ac_try" in | |
5280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5281 | *) ac_try_echo=$ac_try;; | |
5282 | esac | |
68f2de6d | 5283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5284 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5285 | ac_status=$? |
8a2fc586 AK |
5286 | grep -v '^ *+' conftest.er1 >conftest.err |
5287 | rm -f conftest.er1 | |
5288 | cat conftest.err >&5 | |
68f2de6d | 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5290 | (exit $ac_status); } && { |
5291 | test -z "$ac_c_werror_flag" || | |
5292 | test ! -s conftest.err | |
5293 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5294 | ac_cv_c_const=yes |
5295 | else | |
68f2de6d | 5296 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5297 | sed 's/^/| /' conftest.$ac_ext >&5 |
5298 | ||
7a197a62 | 5299 | ac_cv_c_const=no |
ad6254c5 | 5300 | fi |
7a197a62 AK |
5301 | |
5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5303 | fi |
68f2de6d AK |
5304 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5305 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5306 | if test $ac_cv_c_const = no; then |
80992638 | 5307 | |
ad6254c5 | 5308 | cat >>confdefs.h <<\_ACEOF |
68f2de6d | 5309 | #define const |
ad6254c5 | 5310 | _ACEOF |
80992638 | 5311 | |
d3c8211f | 5312 | fi |
d3c8211f | 5313 | |
68f2de6d AK |
5314 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5315 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5316 | if test "${ac_cv_c_inline+set}" = set; then |
68f2de6d | 5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5318 | else |
ad6254c5 AK |
5319 | ac_cv_c_inline=no |
5320 | for ac_kw in inline __inline__ __inline; do | |
5321 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5322 | /* confdefs.h. */ |
5323 | _ACEOF | |
5324 | cat confdefs.h >>conftest.$ac_ext | |
5325 | cat >>conftest.$ac_ext <<_ACEOF | |
5326 | /* end confdefs.h. */ | |
5327 | #ifndef __cplusplus | |
5328 | typedef int foo_t; | |
5329 | static $ac_kw foo_t static_foo () {return 0; } | |
5330 | $ac_kw foo_t foo () {return 0; } | |
5331 | #endif | |
80992638 | 5332 | |
ad6254c5 AK |
5333 | _ACEOF |
5334 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5335 | if { (ac_try="$ac_compile" |
5336 | case "(($ac_try" in | |
5337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5338 | *) ac_try_echo=$ac_try;; | |
5339 | esac | |
68f2de6d | 5340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5341 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5342 | ac_status=$? |
8a2fc586 AK |
5343 | grep -v '^ *+' conftest.er1 >conftest.err |
5344 | rm -f conftest.er1 | |
5345 | cat conftest.err >&5 | |
68f2de6d | 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5347 | (exit $ac_status); } && { |
5348 | test -z "$ac_c_werror_flag" || | |
5349 | test ! -s conftest.err | |
5350 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5351 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5352 | else |
68f2de6d | 5353 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5355 | |
7a197a62 | 5356 | |
8ce0cbda | 5357 | fi |
7a197a62 AK |
5358 | |
5359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5360 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5361 | done |
8ce0cbda | 5362 | |
8ce0cbda | 5363 | fi |
68f2de6d AK |
5364 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5365 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5366 | |
5367 | ||
ad6254c5 AK |
5368 | case $ac_cv_c_inline in |
5369 | inline | yes) ;; | |
8a2fc586 AK |
5370 | *) |
5371 | case $ac_cv_c_inline in | |
5372 | no) ac_val=;; | |
5373 | *) ac_val=$ac_cv_c_inline;; | |
5374 | esac | |
5375 | cat >>confdefs.h <<_ACEOF | |
5376 | #ifndef __cplusplus | |
5377 | #define inline $ac_val | |
5378 | #endif | |
c1c065a3 | 5379 | _ACEOF |
d0191583 JM |
5380 | ;; |
5381 | esac | |
5382 | ||
68f2de6d AK |
5383 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5384 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5385 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5387 | else |
5388 | cat >conftest.$ac_ext <<_ACEOF | |
5389 | /* confdefs.h. */ | |
5390 | _ACEOF | |
5391 | cat confdefs.h >>conftest.$ac_ext | |
5392 | cat >>conftest.$ac_ext <<_ACEOF | |
5393 | /* end confdefs.h. */ | |
5394 | $ac_includes_default | |
5395 | int | |
5396 | main () | |
5397 | { | |
5398 | static struct stat ac_aggr; | |
5399 | if (ac_aggr.st_rdev) | |
5400 | return 0; | |
5401 | ; | |
5402 | return 0; | |
5403 | } | |
5404 | _ACEOF | |
5405 | rm -f conftest.$ac_objext | |
5406 | if { (ac_try="$ac_compile" | |
5407 | case "(($ac_try" in | |
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5409 | *) ac_try_echo=$ac_try;; | |
5410 | esac | |
68f2de6d | 5411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5412 | (eval "$ac_compile") 2>conftest.er1 |
5413 | ac_status=$? | |
5414 | grep -v '^ *+' conftest.er1 >conftest.err | |
5415 | rm -f conftest.er1 | |
5416 | cat conftest.err >&5 | |
68f2de6d | 5417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5418 | (exit $ac_status); } && { |
5419 | test -z "$ac_c_werror_flag" || | |
5420 | test ! -s conftest.err | |
5421 | } && test -s conftest.$ac_objext; then | |
5422 | ac_cv_member_struct_stat_st_rdev=yes | |
5423 | else | |
68f2de6d | 5424 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5425 | sed 's/^/| /' conftest.$ac_ext >&5 |
5426 | ||
5427 | cat >conftest.$ac_ext <<_ACEOF | |
5428 | /* confdefs.h. */ | |
5429 | _ACEOF | |
5430 | cat confdefs.h >>conftest.$ac_ext | |
5431 | cat >>conftest.$ac_ext <<_ACEOF | |
5432 | /* end confdefs.h. */ | |
5433 | $ac_includes_default | |
5434 | int | |
5435 | main () | |
5436 | { | |
5437 | static struct stat ac_aggr; | |
5438 | if (sizeof ac_aggr.st_rdev) | |
5439 | return 0; | |
5440 | ; | |
5441 | return 0; | |
5442 | } | |
5443 | _ACEOF | |
5444 | rm -f conftest.$ac_objext | |
5445 | if { (ac_try="$ac_compile" | |
5446 | case "(($ac_try" in | |
5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5448 | *) ac_try_echo=$ac_try;; | |
5449 | esac | |
68f2de6d | 5450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5451 | (eval "$ac_compile") 2>conftest.er1 |
5452 | ac_status=$? | |
5453 | grep -v '^ *+' conftest.er1 >conftest.err | |
5454 | rm -f conftest.er1 | |
5455 | cat conftest.err >&5 | |
68f2de6d | 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5457 | (exit $ac_status); } && { |
5458 | test -z "$ac_c_werror_flag" || | |
5459 | test ! -s conftest.err | |
5460 | } && test -s conftest.$ac_objext; then | |
5461 | ac_cv_member_struct_stat_st_rdev=yes | |
5462 | else | |
68f2de6d | 5463 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5464 | sed 's/^/| /' conftest.$ac_ext >&5 |
5465 | ||
5466 | ac_cv_member_struct_stat_st_rdev=no | |
5467 | fi | |
5468 | ||
5469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5470 | fi | |
5471 | ||
5472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5473 | fi | |
68f2de6d AK |
5474 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5475 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5476 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5477 | ||
5478 | cat >>confdefs.h <<_ACEOF | |
5479 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5480 | _ACEOF | |
5481 | ||
5482 | ||
5483 | fi | |
8ce0cbda | 5484 | |
68f2de6d AK |
5485 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5486 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5487 | if test "${ac_cv_type_off_t+set}" = set; then |
68f2de6d | 5488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5489 | else |
b145d876 ZK |
5490 | cat >conftest.$ac_ext <<_ACEOF |
5491 | /* confdefs.h. */ | |
5492 | _ACEOF | |
5493 | cat confdefs.h >>conftest.$ac_ext | |
5494 | cat >>conftest.$ac_ext <<_ACEOF | |
5495 | /* end confdefs.h. */ | |
5496 | $ac_includes_default | |
68f2de6d | 5497 | typedef off_t ac__type_new_; |
b145d876 ZK |
5498 | int |
5499 | main () | |
5500 | { | |
68f2de6d AK |
5501 | if ((ac__type_new_ *) 0) |
5502 | return 0; | |
5503 | if (sizeof (ac__type_new_)) | |
5504 | return 0; | |
ad6254c5 AK |
5505 | ; |
5506 | return 0; | |
5507 | } | |
5508 | _ACEOF | |
5509 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5510 | if { (ac_try="$ac_compile" |
5511 | case "(($ac_try" in | |
5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5513 | *) ac_try_echo=$ac_try;; | |
5514 | esac | |
68f2de6d | 5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5516 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5517 | ac_status=$? |
8a2fc586 AK |
5518 | grep -v '^ *+' conftest.er1 >conftest.err |
5519 | rm -f conftest.er1 | |
5520 | cat conftest.err >&5 | |
68f2de6d | 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5522 | (exit $ac_status); } && { |
5523 | test -z "$ac_c_werror_flag" || | |
5524 | test ! -s conftest.err | |
5525 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5526 | ac_cv_type_off_t=yes |
b145d876 | 5527 | else |
68f2de6d | 5528 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5529 | sed 's/^/| /' conftest.$ac_ext >&5 |
5530 | ||
68f2de6d | 5531 | ac_cv_type_off_t=no |
ad6254c5 | 5532 | fi |
b145d876 ZK |
5533 | |
5534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5535 | fi | |
68f2de6d AK |
5536 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5537 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5538 | if test $ac_cv_type_off_t = yes; then |
5539 | : | |
5540 | else | |
80992638 | 5541 | |
ad6254c5 | 5542 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5543 | #define off_t long int |
ad6254c5 | 5544 | _ACEOF |
199e490e | 5545 | |
b896caa1 AK |
5546 | fi |
5547 | ||
68f2de6d AK |
5548 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5549 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5550 | if test "${ac_cv_type_pid_t+set}" = set; then |
68f2de6d | 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5552 | else |
b145d876 ZK |
5553 | cat >conftest.$ac_ext <<_ACEOF |
5554 | /* confdefs.h. */ | |
5555 | _ACEOF | |
5556 | cat confdefs.h >>conftest.$ac_ext | |
5557 | cat >>conftest.$ac_ext <<_ACEOF | |
5558 | /* end confdefs.h. */ | |
5559 | $ac_includes_default | |
68f2de6d | 5560 | typedef pid_t ac__type_new_; |
b145d876 ZK |
5561 | int |
5562 | main () | |
5563 | { | |
68f2de6d AK |
5564 | if ((ac__type_new_ *) 0) |
5565 | return 0; | |
5566 | if (sizeof (ac__type_new_)) | |
5567 | return 0; | |
ad6254c5 AK |
5568 | ; |
5569 | return 0; | |
5570 | } | |
5571 | _ACEOF | |
5572 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5573 | if { (ac_try="$ac_compile" |
5574 | case "(($ac_try" in | |
5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5576 | *) ac_try_echo=$ac_try;; | |
5577 | esac | |
68f2de6d | 5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5579 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5580 | ac_status=$? |
8a2fc586 AK |
5581 | grep -v '^ *+' conftest.er1 >conftest.err |
5582 | rm -f conftest.er1 | |
5583 | cat conftest.err >&5 | |
68f2de6d | 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5585 | (exit $ac_status); } && { |
5586 | test -z "$ac_c_werror_flag" || | |
5587 | test ! -s conftest.err | |
5588 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5589 | ac_cv_type_pid_t=yes |
ad6254c5 | 5590 | else |
68f2de6d | 5591 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5592 | sed 's/^/| /' conftest.$ac_ext >&5 |
5593 | ||
68f2de6d | 5594 | ac_cv_type_pid_t=no |
ad6254c5 | 5595 | fi |
7a197a62 AK |
5596 | |
5597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5598 | fi |
68f2de6d AK |
5599 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5600 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5601 | if test $ac_cv_type_pid_t = yes; then |
5602 | : | |
5603 | else | |
80992638 | 5604 | |
ad6254c5 AK |
5605 | cat >>confdefs.h <<_ACEOF |
5606 | #define pid_t int | |
5607 | _ACEOF | |
2dc95e1c | 5608 | |
2dc95e1c AK |
5609 | fi |
5610 | ||
68f2de6d AK |
5611 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5612 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5613 | if test "${ac_cv_type_signal+set}" = set; then |
68f2de6d | 5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5615 | else |
5616 | cat >conftest.$ac_ext <<_ACEOF | |
5617 | /* confdefs.h. */ | |
5618 | _ACEOF | |
5619 | cat confdefs.h >>conftest.$ac_ext | |
5620 | cat >>conftest.$ac_ext <<_ACEOF | |
5621 | /* end confdefs.h. */ | |
5622 | #include <sys/types.h> | |
5623 | #include <signal.h> | |
5624 | ||
5625 | int | |
5626 | main () | |
5627 | { | |
5628 | return *(signal (0, 0)) (0) == 1; | |
5629 | ; | |
5630 | return 0; | |
5631 | } | |
5632 | _ACEOF | |
5633 | rm -f conftest.$ac_objext | |
5634 | if { (ac_try="$ac_compile" | |
5635 | case "(($ac_try" in | |
5636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5637 | *) ac_try_echo=$ac_try;; | |
5638 | esac | |
68f2de6d | 5639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5640 | (eval "$ac_compile") 2>conftest.er1 |
5641 | ac_status=$? | |
5642 | grep -v '^ *+' conftest.er1 >conftest.err | |
5643 | rm -f conftest.er1 | |
5644 | cat conftest.err >&5 | |
68f2de6d | 5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5646 | (exit $ac_status); } && { |
5647 | test -z "$ac_c_werror_flag" || | |
5648 | test ! -s conftest.err | |
5649 | } && test -s conftest.$ac_objext; then | |
5650 | ac_cv_type_signal=int | |
5651 | else | |
68f2de6d | 5652 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
5654 | ||
5655 | ac_cv_type_signal=void | |
5656 | fi | |
5657 | ||
5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5659 | fi | |
68f2de6d AK |
5660 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5661 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5662 | |
5663 | cat >>confdefs.h <<_ACEOF | |
5664 | #define RETSIGTYPE $ac_cv_type_signal | |
5665 | _ACEOF | |
5666 | ||
5667 | ||
68f2de6d AK |
5668 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5669 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5670 | if test "${ac_cv_type_size_t+set}" = set; then |
68f2de6d | 5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5672 | else |
b145d876 ZK |
5673 | cat >conftest.$ac_ext <<_ACEOF |
5674 | /* confdefs.h. */ | |
5675 | _ACEOF | |
5676 | cat confdefs.h >>conftest.$ac_ext | |
5677 | cat >>conftest.$ac_ext <<_ACEOF | |
5678 | /* end confdefs.h. */ | |
5679 | $ac_includes_default | |
68f2de6d | 5680 | typedef size_t ac__type_new_; |
b145d876 ZK |
5681 | int |
5682 | main () | |
5683 | { | |
68f2de6d AK |
5684 | if ((ac__type_new_ *) 0) |
5685 | return 0; | |
5686 | if (sizeof (ac__type_new_)) | |
5687 | return 0; | |
ad6254c5 AK |
5688 | ; |
5689 | return 0; | |
5690 | } | |
5691 | _ACEOF | |
5692 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5693 | if { (ac_try="$ac_compile" |
5694 | case "(($ac_try" in | |
5695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5696 | *) ac_try_echo=$ac_try;; | |
5697 | esac | |
68f2de6d | 5698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5699 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5700 | ac_status=$? |
8a2fc586 AK |
5701 | grep -v '^ *+' conftest.er1 >conftest.err |
5702 | rm -f conftest.er1 | |
5703 | cat conftest.err >&5 | |
68f2de6d | 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5705 | (exit $ac_status); } && { |
5706 | test -z "$ac_c_werror_flag" || | |
5707 | test ! -s conftest.err | |
5708 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5709 | ac_cv_type_size_t=yes |
b145d876 | 5710 | else |
68f2de6d | 5711 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5712 | sed 's/^/| /' conftest.$ac_ext >&5 |
5713 | ||
68f2de6d | 5714 | ac_cv_type_size_t=no |
ad6254c5 | 5715 | fi |
b145d876 ZK |
5716 | |
5717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5718 | fi | |
68f2de6d AK |
5719 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5720 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5721 | if test $ac_cv_type_size_t = yes; then |
5722 | : | |
5723 | else | |
80992638 | 5724 | |
ad6254c5 | 5725 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5726 | #define size_t unsigned int |
ad6254c5 | 5727 | _ACEOF |
8106cdd5 | 5728 | |
8106cdd5 AK |
5729 | fi |
5730 | ||
68f2de6d AK |
5731 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5732 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5733 | if test "${ac_cv_type_mode_t+set}" = set; then |
68f2de6d | 5734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5735 | else |
b145d876 ZK |
5736 | cat >conftest.$ac_ext <<_ACEOF |
5737 | /* confdefs.h. */ | |
5738 | _ACEOF | |
5739 | cat confdefs.h >>conftest.$ac_ext | |
5740 | cat >>conftest.$ac_ext <<_ACEOF | |
5741 | /* end confdefs.h. */ | |
5742 | $ac_includes_default | |
68f2de6d | 5743 | typedef mode_t ac__type_new_; |
b145d876 ZK |
5744 | int |
5745 | main () | |
5746 | { | |
68f2de6d AK |
5747 | if ((ac__type_new_ *) 0) |
5748 | return 0; | |
5749 | if (sizeof (ac__type_new_)) | |
5750 | return 0; | |
ad6254c5 AK |
5751 | ; |
5752 | return 0; | |
5753 | } | |
5754 | _ACEOF | |
5755 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5756 | if { (ac_try="$ac_compile" |
5757 | case "(($ac_try" in | |
5758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5759 | *) ac_try_echo=$ac_try;; | |
5760 | esac | |
68f2de6d | 5761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5762 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5763 | ac_status=$? |
8a2fc586 AK |
5764 | grep -v '^ *+' conftest.er1 >conftest.err |
5765 | rm -f conftest.er1 | |
5766 | cat conftest.err >&5 | |
68f2de6d | 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5768 | (exit $ac_status); } && { |
5769 | test -z "$ac_c_werror_flag" || | |
5770 | test ! -s conftest.err | |
5771 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5772 | ac_cv_type_mode_t=yes |
fddafd51 | 5773 | else |
68f2de6d | 5774 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 |
5776 | ||
68f2de6d | 5777 | ac_cv_type_mode_t=no |
80992638 | 5778 | fi |
7a197a62 AK |
5779 | |
5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5781 | fi |
68f2de6d AK |
5782 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5783 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5784 | if test $ac_cv_type_mode_t = yes; then |
5785 | : | |
5786 | else | |
80992638 | 5787 | |
ad6254c5 AK |
5788 | cat >>confdefs.h <<_ACEOF |
5789 | #define mode_t int | |
5790 | _ACEOF | |
5791 | ||
5792 | fi | |
5793 | ||
68f2de6d AK |
5794 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5795 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5796 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5798 | else |
5799 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5800 | /* confdefs.h. */ |
5801 | _ACEOF | |
5802 | cat confdefs.h >>conftest.$ac_ext | |
5803 | cat >>conftest.$ac_ext <<_ACEOF | |
5804 | /* end confdefs.h. */ | |
5805 | $ac_includes_default | |
5806 | int | |
5807 | main () | |
5808 | { | |
5809 | static struct stat ac_aggr; | |
5810 | if (ac_aggr.st_rdev) | |
5811 | return 0; | |
5812 | ; | |
5813 | return 0; | |
5814 | } | |
5815 | _ACEOF | |
5816 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5817 | if { (ac_try="$ac_compile" |
5818 | case "(($ac_try" in | |
5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5820 | *) ac_try_echo=$ac_try;; | |
5821 | esac | |
68f2de6d | 5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5823 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5824 | ac_status=$? |
8a2fc586 AK |
5825 | grep -v '^ *+' conftest.er1 >conftest.err |
5826 | rm -f conftest.er1 | |
5827 | cat conftest.err >&5 | |
68f2de6d | 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5829 | (exit $ac_status); } && { |
5830 | test -z "$ac_c_werror_flag" || | |
5831 | test ! -s conftest.err | |
5832 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5833 | ac_cv_member_struct_stat_st_rdev=yes |
5834 | else | |
68f2de6d | 5835 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5836 | sed 's/^/| /' conftest.$ac_ext >&5 |
5837 | ||
7a197a62 | 5838 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5839 | /* confdefs.h. */ |
5840 | _ACEOF | |
5841 | cat confdefs.h >>conftest.$ac_ext | |
5842 | cat >>conftest.$ac_ext <<_ACEOF | |
5843 | /* end confdefs.h. */ | |
5844 | $ac_includes_default | |
5845 | int | |
5846 | main () | |
5847 | { | |
5848 | static struct stat ac_aggr; | |
5849 | if (sizeof ac_aggr.st_rdev) | |
5850 | return 0; | |
5851 | ; | |
5852 | return 0; | |
5853 | } | |
5854 | _ACEOF | |
5855 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5856 | if { (ac_try="$ac_compile" |
5857 | case "(($ac_try" in | |
5858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5859 | *) ac_try_echo=$ac_try;; | |
5860 | esac | |
68f2de6d | 5861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5862 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5863 | ac_status=$? |
8a2fc586 AK |
5864 | grep -v '^ *+' conftest.er1 >conftest.err |
5865 | rm -f conftest.er1 | |
5866 | cat conftest.err >&5 | |
68f2de6d | 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5868 | (exit $ac_status); } && { |
5869 | test -z "$ac_c_werror_flag" || | |
5870 | test ! -s conftest.err | |
5871 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5872 | ac_cv_member_struct_stat_st_rdev=yes |
5873 | else | |
68f2de6d | 5874 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
5876 | ||
7a197a62 | 5877 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5878 | fi |
7a197a62 AK |
5879 | |
5880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5881 | fi |
7a197a62 AK |
5882 | |
5883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5884 | fi |
68f2de6d AK |
5885 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5886 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5887 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5888 | ||
5889 | cat >>confdefs.h <<_ACEOF | |
5890 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5891 | _ACEOF | |
5892 | ||
5893 | ||
ad6254c5 AK |
5894 | fi |
5895 | ||
68f2de6d AK |
5896 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5897 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5898 | if test "${ac_cv_struct_tm+set}" = set; then |
68f2de6d | 5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5900 | else |
5901 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5902 | /* confdefs.h. */ |
5903 | _ACEOF | |
5904 | cat confdefs.h >>conftest.$ac_ext | |
5905 | cat >>conftest.$ac_ext <<_ACEOF | |
5906 | /* end confdefs.h. */ | |
5907 | #include <sys/types.h> | |
5908 | #include <time.h> | |
5909 | ||
5910 | int | |
5911 | main () | |
5912 | { | |
25fbec5b AK |
5913 | struct tm tm; |
5914 | int *p = &tm.tm_sec; | |
68f2de6d | 5915 | return !p; |
ad6254c5 AK |
5916 | ; |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
5920 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5921 | if { (ac_try="$ac_compile" |
5922 | case "(($ac_try" in | |
5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5924 | *) ac_try_echo=$ac_try;; | |
5925 | esac | |
68f2de6d | 5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5927 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5928 | ac_status=$? |
8a2fc586 AK |
5929 | grep -v '^ *+' conftest.er1 >conftest.err |
5930 | rm -f conftest.er1 | |
5931 | cat conftest.err >&5 | |
68f2de6d | 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5933 | (exit $ac_status); } && { |
5934 | test -z "$ac_c_werror_flag" || | |
5935 | test ! -s conftest.err | |
5936 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5937 | ac_cv_struct_tm=time.h |
5938 | else | |
68f2de6d | 5939 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
5941 | ||
7a197a62 | 5942 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5943 | fi |
7a197a62 AK |
5944 | |
5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5946 | fi |
68f2de6d AK |
5947 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5948 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5949 | if test $ac_cv_struct_tm = sys/time.h; then |
5950 | ||
5951 | cat >>confdefs.h <<\_ACEOF | |
5952 | #define TM_IN_SYS_TIME 1 | |
5953 | _ACEOF | |
5954 | ||
5955 | fi | |
809fae91 | 5956 | |
795ca3e5 | 5957 | |
80992638 | 5958 | ################################################################################ |
ad6254c5 AK |
5959 | |
5960 | ||
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
d0191583 JM |
5973 | |
5974 | ||
5975 | ||
5976 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5977 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5978 | uname | |
ad6254c5 | 5979 | do |
68f2de6d AK |
5980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5981 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5983 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5985 | else |
ad6254c5 | 5986 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5987 | /* confdefs.h. */ |
5988 | _ACEOF | |
5989 | cat confdefs.h >>conftest.$ac_ext | |
5990 | cat >>conftest.$ac_ext <<_ACEOF | |
5991 | /* end confdefs.h. */ | |
8a2fc586 AK |
5992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5994 | #define $ac_func innocuous_$ac_func | |
5995 | ||
ad6254c5 AK |
5996 | /* System header to define __stub macros and hopefully few prototypes, |
5997 | which can conflict with char $ac_func (); below. | |
5998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5999 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6000 | |
ad6254c5 AK |
6001 | #ifdef __STDC__ |
6002 | # include <limits.h> | |
6003 | #else | |
6004 | # include <assert.h> | |
6005 | #endif | |
8a2fc586 AK |
6006 | |
6007 | #undef $ac_func | |
6008 | ||
7a197a62 AK |
6009 | /* Override any GCC internal prototype to avoid an error. |
6010 | Use char because int might match the return type of a GCC | |
6011 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6012 | #ifdef __cplusplus |
6013 | extern "C" | |
ad6254c5 | 6014 | #endif |
ad6254c5 AK |
6015 | char $ac_func (); |
6016 | /* The GNU C library defines this for functions which it implements | |
6017 | to always fail with ENOSYS. Some functions are actually named | |
6018 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6019 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6020 | choke me |
ad6254c5 AK |
6021 | #endif |
6022 | ||
6023 | int | |
6024 | main () | |
6025 | { | |
7a197a62 | 6026 | return $ac_func (); |
ad6254c5 AK |
6027 | ; |
6028 | return 0; | |
6029 | } | |
6030 | _ACEOF | |
6031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6032 | if { (ac_try="$ac_link" |
6033 | case "(($ac_try" in | |
6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6035 | *) ac_try_echo=$ac_try;; | |
6036 | esac | |
68f2de6d | 6037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6038 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6039 | ac_status=$? |
8a2fc586 AK |
6040 | grep -v '^ *+' conftest.er1 >conftest.err |
6041 | rm -f conftest.er1 | |
6042 | cat conftest.err >&5 | |
68f2de6d | 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6044 | (exit $ac_status); } && { |
6045 | test -z "$ac_c_werror_flag" || | |
6046 | test ! -s conftest.err | |
68f2de6d AK |
6047 | } && test -s conftest$ac_exeext && |
6048 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
6049 | eval "$as_ac_var=yes" |
6050 | else | |
68f2de6d | 6051 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6052 | sed 's/^/| /' conftest.$ac_ext >&5 |
6053 | ||
6054 | eval "$as_ac_var=no" | |
6055 | fi | |
6056 | ||
25fbec5b | 6057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6058 | conftest$ac_exeext conftest.$ac_ext |
6059 | fi | |
68f2de6d AK |
6060 | ac_res=`eval echo '${'$as_ac_var'}'` |
6061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6062 | echo "${ECHO_T}$ac_res" >&6; } | |
6063 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6064 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6066 | _ACEOF |
6067 | ||
6068 | else | |
68f2de6d AK |
6069 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
6070 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6071 | { (exit 1); exit 1; }; } |
6072 | fi | |
6073 | done | |
795ca3e5 | 6074 | |
ad6254c5 AK |
6075 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6076 | # for constant arguments. Useless! | |
68f2de6d AK |
6077 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6078 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 6079 | if test "${ac_cv_working_alloca_h+set}" = set; then |
68f2de6d | 6080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6081 | else |
6082 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6083 | /* confdefs.h. */ |
6084 | _ACEOF | |
6085 | cat confdefs.h >>conftest.$ac_ext | |
6086 | cat >>conftest.$ac_ext <<_ACEOF | |
6087 | /* end confdefs.h. */ | |
6088 | #include <alloca.h> | |
6089 | int | |
6090 | main () | |
6091 | { | |
6092 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6093 | if (p) return 0; |
ad6254c5 AK |
6094 | ; |
6095 | return 0; | |
6096 | } | |
6097 | _ACEOF | |
6098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6099 | if { (ac_try="$ac_link" |
6100 | case "(($ac_try" in | |
6101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6102 | *) ac_try_echo=$ac_try;; | |
6103 | esac | |
68f2de6d | 6104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6105 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6106 | ac_status=$? |
8a2fc586 AK |
6107 | grep -v '^ *+' conftest.er1 >conftest.err |
6108 | rm -f conftest.er1 | |
6109 | cat conftest.err >&5 | |
68f2de6d | 6110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6111 | (exit $ac_status); } && { |
6112 | test -z "$ac_c_werror_flag" || | |
6113 | test ! -s conftest.err | |
68f2de6d AK |
6114 | } && test -s conftest$ac_exeext && |
6115 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6116 | ac_cv_working_alloca_h=yes |
6117 | else | |
68f2de6d | 6118 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6119 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6120 | |
7a197a62 | 6121 | ac_cv_working_alloca_h=no |
ad6254c5 | 6122 | fi |
7a197a62 | 6123 | |
25fbec5b | 6124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6125 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6126 | fi |
68f2de6d AK |
6127 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6128 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6129 | if test $ac_cv_working_alloca_h = yes; then |
6130 | ||
6131 | cat >>confdefs.h <<\_ACEOF | |
6132 | #define HAVE_ALLOCA_H 1 | |
6133 | _ACEOF | |
6134 | ||
6135 | fi | |
6136 | ||
68f2de6d AK |
6137 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6138 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6139 | if test "${ac_cv_func_alloca_works+set}" = set; then |
68f2de6d | 6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6141 | else |
6142 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6143 | /* confdefs.h. */ |
6144 | _ACEOF | |
6145 | cat confdefs.h >>conftest.$ac_ext | |
6146 | cat >>conftest.$ac_ext <<_ACEOF | |
6147 | /* end confdefs.h. */ | |
6148 | #ifdef __GNUC__ | |
6149 | # define alloca __builtin_alloca | |
6150 | #else | |
6151 | # ifdef _MSC_VER | |
6152 | # include <malloc.h> | |
6153 | # define alloca _alloca | |
6154 | # else | |
25fbec5b | 6155 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6156 | # include <alloca.h> |
6157 | # else | |
6158 | # ifdef _AIX | |
6159 | #pragma alloca | |
6160 | # else | |
6161 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6162 | char *alloca (); | |
6163 | # endif | |
6164 | # endif | |
6165 | # endif | |
6166 | # endif | |
6167 | #endif | |
6168 | ||
6169 | int | |
6170 | main () | |
6171 | { | |
6172 | char *p = (char *) alloca (1); | |
7a197a62 | 6173 | if (p) return 0; |
ad6254c5 AK |
6174 | ; |
6175 | return 0; | |
6176 | } | |
6177 | _ACEOF | |
6178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6179 | if { (ac_try="$ac_link" |
6180 | case "(($ac_try" in | |
6181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6182 | *) ac_try_echo=$ac_try;; | |
6183 | esac | |
68f2de6d | 6184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6185 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6186 | ac_status=$? |
8a2fc586 AK |
6187 | grep -v '^ *+' conftest.er1 >conftest.err |
6188 | rm -f conftest.er1 | |
6189 | cat conftest.err >&5 | |
68f2de6d | 6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6191 | (exit $ac_status); } && { |
6192 | test -z "$ac_c_werror_flag" || | |
6193 | test ! -s conftest.err | |
68f2de6d AK |
6194 | } && test -s conftest$ac_exeext && |
6195 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6196 | ac_cv_func_alloca_works=yes |
6197 | else | |
68f2de6d | 6198 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6199 | sed 's/^/| /' conftest.$ac_ext >&5 |
6200 | ||
7a197a62 | 6201 | ac_cv_func_alloca_works=no |
ad6254c5 | 6202 | fi |
7a197a62 | 6203 | |
25fbec5b | 6204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6205 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6206 | fi |
68f2de6d AK |
6207 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6208 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6209 | |
6210 | if test $ac_cv_func_alloca_works = yes; then | |
6211 | ||
6212 | cat >>confdefs.h <<\_ACEOF | |
6213 | #define HAVE_ALLOCA 1 | |
6214 | _ACEOF | |
6215 | ||
6216 | else | |
6217 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6218 | # that cause trouble. Some versions do not even contain alloca or | |
6219 | # contain a buggy version. If you still want to use their alloca, | |
6220 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6221 | ||
7a197a62 | 6222 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6223 | |
6224 | cat >>confdefs.h <<\_ACEOF | |
6225 | #define C_ALLOCA 1 | |
6226 | _ACEOF | |
6227 | ||
6228 | ||
68f2de6d AK |
6229 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6230 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6231 | if test "${ac_cv_os_cray+set}" = set; then |
68f2de6d | 6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6233 | else |
6234 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6235 | /* confdefs.h. */ |
6236 | _ACEOF | |
6237 | cat confdefs.h >>conftest.$ac_ext | |
6238 | cat >>conftest.$ac_ext <<_ACEOF | |
6239 | /* end confdefs.h. */ | |
7a197a62 | 6240 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6241 | webecray |
6242 | #else | |
6243 | wenotbecray | |
6244 | #endif | |
6245 | ||
6246 | _ACEOF | |
795ca3e5 | 6247 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6248 | $EGREP "webecray" >/dev/null 2>&1; then |
6249 | ac_cv_os_cray=yes | |
6250 | else | |
6251 | ac_cv_os_cray=no | |
795ca3e5 AK |
6252 | fi |
6253 | rm -f conftest* | |
6254 | ||
795ca3e5 | 6255 | fi |
68f2de6d AK |
6256 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6257 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6258 | if test $ac_cv_os_cray = yes; then |
6259 | for ac_func in _getb67 GETB67 getb67; do | |
68f2de6d AK |
6260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6261 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6263 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6265 | else |
6266 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6267 | /* confdefs.h. */ |
6268 | _ACEOF | |
6269 | cat confdefs.h >>conftest.$ac_ext | |
6270 | cat >>conftest.$ac_ext <<_ACEOF | |
6271 | /* end confdefs.h. */ | |
8a2fc586 AK |
6272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6274 | #define $ac_func innocuous_$ac_func | |
6275 | ||
ad6254c5 AK |
6276 | /* System header to define __stub macros and hopefully few prototypes, |
6277 | which can conflict with char $ac_func (); below. | |
6278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6279 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6280 | |
ad6254c5 AK |
6281 | #ifdef __STDC__ |
6282 | # include <limits.h> | |
6283 | #else | |
6284 | # include <assert.h> | |
6285 | #endif | |
8a2fc586 AK |
6286 | |
6287 | #undef $ac_func | |
6288 | ||
7a197a62 AK |
6289 | /* Override any GCC internal prototype to avoid an error. |
6290 | Use char because int might match the return type of a GCC | |
6291 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6292 | #ifdef __cplusplus |
6293 | extern "C" | |
ad6254c5 | 6294 | #endif |
ad6254c5 AK |
6295 | char $ac_func (); |
6296 | /* The GNU C library defines this for functions which it implements | |
6297 | to always fail with ENOSYS. Some functions are actually named | |
6298 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6299 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6300 | choke me |
ad6254c5 AK |
6301 | #endif |
6302 | ||
6303 | int | |
6304 | main () | |
6305 | { | |
7a197a62 | 6306 | return $ac_func (); |
ad6254c5 AK |
6307 | ; |
6308 | return 0; | |
6309 | } | |
6310 | _ACEOF | |
6311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6312 | if { (ac_try="$ac_link" |
6313 | case "(($ac_try" in | |
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6315 | *) ac_try_echo=$ac_try;; | |
6316 | esac | |
68f2de6d | 6317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6318 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6319 | ac_status=$? |
8a2fc586 AK |
6320 | grep -v '^ *+' conftest.er1 >conftest.err |
6321 | rm -f conftest.er1 | |
6322 | cat conftest.err >&5 | |
68f2de6d | 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6324 | (exit $ac_status); } && { |
6325 | test -z "$ac_c_werror_flag" || | |
6326 | test ! -s conftest.err | |
68f2de6d AK |
6327 | } && test -s conftest$ac_exeext && |
6328 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6329 | eval "$as_ac_var=yes" |
6330 | else | |
68f2de6d | 6331 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6332 | sed 's/^/| /' conftest.$ac_ext >&5 |
6333 | ||
7a197a62 | 6334 | eval "$as_ac_var=no" |
ad6254c5 | 6335 | fi |
7a197a62 | 6336 | |
25fbec5b | 6337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6338 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6339 | fi |
68f2de6d AK |
6340 | ac_res=`eval echo '${'$as_ac_var'}'` |
6341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6342 | echo "${ECHO_T}$ac_res" >&6; } | |
6343 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6344 | |
ad6254c5 AK |
6345 | cat >>confdefs.h <<_ACEOF |
6346 | #define CRAY_STACKSEG_END $ac_func | |
6347 | _ACEOF | |
6348 | ||
6349 | break | |
6350 | fi | |
6351 | ||
6352 | done | |
6353 | fi | |
6354 | ||
68f2de6d AK |
6355 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6356 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6357 | if test "${ac_cv_c_stack_direction+set}" = set; then |
68f2de6d | 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6359 | else |
6360 | if test "$cross_compiling" = yes; then | |
6361 | ac_cv_c_stack_direction=0 | |
6362 | else | |
6363 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6364 | /* confdefs.h. */ |
6365 | _ACEOF | |
6366 | cat confdefs.h >>conftest.$ac_ext | |
6367 | cat >>conftest.$ac_ext <<_ACEOF | |
6368 | /* end confdefs.h. */ | |
7a197a62 | 6369 | $ac_includes_default |
ad6254c5 AK |
6370 | int |
6371 | find_stack_direction () | |
6372 | { | |
6373 | static char *addr = 0; | |
6374 | auto char dummy; | |
6375 | if (addr == 0) | |
6376 | { | |
6377 | addr = &dummy; | |
6378 | return find_stack_direction (); | |
6379 | } | |
6380 | else | |
6381 | return (&dummy > addr) ? 1 : -1; | |
6382 | } | |
6383 | ||
6384 | int | |
6385 | main () | |
6386 | { | |
7a197a62 | 6387 | return find_stack_direction () < 0; |
ad6254c5 AK |
6388 | } |
6389 | _ACEOF | |
6390 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6391 | if { (ac_try="$ac_link" |
6392 | case "(($ac_try" in | |
6393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6394 | *) ac_try_echo=$ac_try;; | |
6395 | esac | |
68f2de6d | 6396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6397 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6398 | ac_status=$? |
68f2de6d | 6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6401 | { (case "(($ac_try" in |
6402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6403 | *) ac_try_echo=$ac_try;; | |
6404 | esac | |
68f2de6d | 6405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6406 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6407 | ac_status=$? |
68f2de6d | 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6409 | (exit $ac_status); }; }; then |
6410 | ac_cv_c_stack_direction=1 | |
6411 | else | |
68f2de6d AK |
6412 | echo "$as_me: program exited with status $ac_status" >&5 |
6413 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6414 | sed 's/^/| /' conftest.$ac_ext >&5 |
6415 | ||
6416 | ( exit $ac_status ) | |
6417 | ac_cv_c_stack_direction=-1 | |
6418 | fi | |
7a197a62 | 6419 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6420 | fi |
7a197a62 AK |
6421 | |
6422 | ||
ad6254c5 | 6423 | fi |
68f2de6d AK |
6424 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6425 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6426 | |
6427 | cat >>confdefs.h <<_ACEOF | |
6428 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6429 | _ACEOF | |
6430 | ||
6431 | ||
6432 | fi | |
6433 | ||
68f2de6d AK |
6434 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6435 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6436 | if test "${ac_cv_func_closedir_void+set}" = set; then |
68f2de6d | 6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6438 | else |
6439 | if test "$cross_compiling" = yes; then | |
6440 | ac_cv_func_closedir_void=yes | |
6441 | else | |
6442 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6443 | /* confdefs.h. */ |
6444 | _ACEOF | |
6445 | cat confdefs.h >>conftest.$ac_ext | |
6446 | cat >>conftest.$ac_ext <<_ACEOF | |
6447 | /* end confdefs.h. */ | |
6448 | $ac_includes_default | |
6449 | #include <$ac_header_dirent> | |
6450 | #ifndef __cplusplus | |
6451 | int closedir (); | |
6452 | #endif | |
6453 | ||
6454 | int | |
6455 | main () | |
6456 | { | |
7a197a62 | 6457 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6458 | ; |
6459 | return 0; | |
6460 | } | |
6461 | _ACEOF | |
6462 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6463 | if { (ac_try="$ac_link" |
6464 | case "(($ac_try" in | |
6465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6466 | *) ac_try_echo=$ac_try;; | |
6467 | esac | |
68f2de6d | 6468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6469 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6470 | ac_status=$? |
68f2de6d | 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6473 | { (case "(($ac_try" in |
6474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6475 | *) ac_try_echo=$ac_try;; | |
6476 | esac | |
68f2de6d | 6477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6478 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6479 | ac_status=$? |
68f2de6d | 6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6481 | (exit $ac_status); }; }; then |
6482 | ac_cv_func_closedir_void=no | |
6483 | else | |
68f2de6d AK |
6484 | echo "$as_me: program exited with status $ac_status" >&5 |
6485 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
6487 | ||
6488 | ( exit $ac_status ) | |
6489 | ac_cv_func_closedir_void=yes | |
6490 | fi | |
7a197a62 | 6491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6492 | fi |
7a197a62 AK |
6493 | |
6494 | ||
ad6254c5 | 6495 | fi |
68f2de6d AK |
6496 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6497 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6498 | if test $ac_cv_func_closedir_void = yes; then |
6499 | ||
6500 | cat >>confdefs.h <<\_ACEOF | |
6501 | #define CLOSEDIR_VOID 1 | |
6502 | _ACEOF | |
6503 | ||
6504 | fi | |
6505 | ||
6506 | ||
7a197a62 | 6507 | for ac_header in vfork.h |
ad6254c5 | 6508 | do |
68f2de6d | 6509 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
6511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6515 | fi |
68f2de6d AK |
6516 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6518 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6519 | else |
6520 | # Is the header compilable? | |
68f2de6d AK |
6521 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6522 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6523 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6524 | /* confdefs.h. */ |
6525 | _ACEOF | |
6526 | cat confdefs.h >>conftest.$ac_ext | |
6527 | cat >>conftest.$ac_ext <<_ACEOF | |
6528 | /* end confdefs.h. */ | |
6529 | $ac_includes_default | |
6530 | #include <$ac_header> | |
6531 | _ACEOF | |
6532 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6533 | if { (ac_try="$ac_compile" |
6534 | case "(($ac_try" in | |
6535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6536 | *) ac_try_echo=$ac_try;; | |
6537 | esac | |
68f2de6d | 6538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6539 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6540 | ac_status=$? |
8a2fc586 AK |
6541 | grep -v '^ *+' conftest.er1 >conftest.err |
6542 | rm -f conftest.er1 | |
6543 | cat conftest.err >&5 | |
68f2de6d | 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6545 | (exit $ac_status); } && { |
6546 | test -z "$ac_c_werror_flag" || | |
6547 | test ! -s conftest.err | |
6548 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6549 | ac_header_compiler=yes |
6550 | else | |
68f2de6d | 6551 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6552 | sed 's/^/| /' conftest.$ac_ext >&5 |
6553 | ||
7a197a62 | 6554 | ac_header_compiler=no |
ad6254c5 | 6555 | fi |
7a197a62 AK |
6556 | |
6557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
6558 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6559 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6560 | |
6561 | # Is the header present? | |
68f2de6d AK |
6562 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6563 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6564 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6565 | /* confdefs.h. */ |
6566 | _ACEOF | |
6567 | cat confdefs.h >>conftest.$ac_ext | |
6568 | cat >>conftest.$ac_ext <<_ACEOF | |
6569 | /* end confdefs.h. */ | |
6570 | #include <$ac_header> | |
6571 | _ACEOF | |
7a197a62 AK |
6572 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6573 | case "(($ac_try" in | |
6574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6575 | *) ac_try_echo=$ac_try;; | |
6576 | esac | |
68f2de6d | 6577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6578 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6579 | ac_status=$? |
6580 | grep -v '^ *+' conftest.er1 >conftest.err | |
6581 | rm -f conftest.er1 | |
6582 | cat conftest.err >&5 | |
68f2de6d | 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6584 | (exit $ac_status); } >/dev/null && { |
6585 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6586 | test ! -s conftest.err | |
6587 | }; then | |
ad6254c5 AK |
6588 | ac_header_preproc=yes |
6589 | else | |
68f2de6d | 6590 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6591 | sed 's/^/| /' conftest.$ac_ext >&5 |
6592 | ||
6593 | ac_header_preproc=no | |
6594 | fi | |
7a197a62 | 6595 | |
ad6254c5 | 6596 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
6597 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6598 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6599 | |
6600 | # So? What about this header? | |
8a2fc586 AK |
6601 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6602 | yes:no: ) | |
68f2de6d AK |
6603 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6604 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6606 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6607 | ac_header_preproc=yes |
ad6254c5 | 6608 | ;; |
8a2fc586 | 6609 | no:yes:* ) |
68f2de6d AK |
6610 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6611 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6612 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6613 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6614 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6615 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6616 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6617 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6619 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6620 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6621 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6622 | |
ad6254c5 AK |
6623 | ;; |
6624 | esac | |
68f2de6d AK |
6625 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6626 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6627 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6629 | else |
8a2fc586 | 6630 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6631 | fi |
68f2de6d AK |
6632 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6633 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6634 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6635 | |
795ca3e5 | 6636 | fi |
68f2de6d | 6637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6638 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6640 | _ACEOF |
6641 | ||
6642 | fi | |
6643 | ||
6644 | done | |
795ca3e5 | 6645 | |
ad6254c5 AK |
6646 | |
6647 | ||
6648 | for ac_func in fork vfork | |
6649 | do | |
68f2de6d AK |
6650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6651 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6653 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6655 | else |
ad6254c5 | 6656 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6657 | /* confdefs.h. */ |
6658 | _ACEOF | |
6659 | cat confdefs.h >>conftest.$ac_ext | |
6660 | cat >>conftest.$ac_ext <<_ACEOF | |
6661 | /* end confdefs.h. */ | |
8a2fc586 AK |
6662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6664 | #define $ac_func innocuous_$ac_func | |
6665 | ||
ad6254c5 AK |
6666 | /* System header to define __stub macros and hopefully few prototypes, |
6667 | which can conflict with char $ac_func (); below. | |
6668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6669 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6670 | |
ad6254c5 AK |
6671 | #ifdef __STDC__ |
6672 | # include <limits.h> | |
6673 | #else | |
6674 | # include <assert.h> | |
795ca3e5 | 6675 | #endif |
8a2fc586 AK |
6676 | |
6677 | #undef $ac_func | |
6678 | ||
7a197a62 AK |
6679 | /* Override any GCC internal prototype to avoid an error. |
6680 | Use char because int might match the return type of a GCC | |
6681 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6682 | #ifdef __cplusplus |
ad6254c5 | 6683 | extern "C" |
ad6254c5 | 6684 | #endif |
ad6254c5 AK |
6685 | char $ac_func (); |
6686 | /* The GNU C library defines this for functions which it implements | |
6687 | to always fail with ENOSYS. Some functions are actually named | |
6688 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6689 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6690 | choke me |
795ca3e5 AK |
6691 | #endif |
6692 | ||
ad6254c5 AK |
6693 | int |
6694 | main () | |
6695 | { | |
7a197a62 | 6696 | return $ac_func (); |
ad6254c5 AK |
6697 | ; |
6698 | return 0; | |
6699 | } | |
6700 | _ACEOF | |
6701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6702 | if { (ac_try="$ac_link" |
6703 | case "(($ac_try" in | |
6704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6705 | *) ac_try_echo=$ac_try;; | |
6706 | esac | |
68f2de6d | 6707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6708 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6709 | ac_status=$? |
8a2fc586 AK |
6710 | grep -v '^ *+' conftest.er1 >conftest.err |
6711 | rm -f conftest.er1 | |
6712 | cat conftest.err >&5 | |
68f2de6d | 6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6714 | (exit $ac_status); } && { |
6715 | test -z "$ac_c_werror_flag" || | |
6716 | test ! -s conftest.err | |
68f2de6d AK |
6717 | } && test -s conftest$ac_exeext && |
6718 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6719 | eval "$as_ac_var=yes" |
795ca3e5 | 6720 | else |
68f2de6d | 6721 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6722 | sed 's/^/| /' conftest.$ac_ext >&5 |
6723 | ||
7a197a62 | 6724 | eval "$as_ac_var=no" |
795ca3e5 | 6725 | fi |
7a197a62 | 6726 | |
25fbec5b | 6727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6728 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6729 | fi |
68f2de6d AK |
6730 | ac_res=`eval echo '${'$as_ac_var'}'` |
6731 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6732 | echo "${ECHO_T}$ac_res" >&6; } | |
6733 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6734 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6735 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6736 | _ACEOF |
6737 | ||
6738 | fi | |
6739 | done | |
6740 | ||
6741 | if test "x$ac_cv_func_fork" = xyes; then | |
68f2de6d AK |
6742 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6743 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6744 | if test "${ac_cv_func_fork_works+set}" = set; then |
68f2de6d | 6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6746 | else |
6747 | if test "$cross_compiling" = yes; then | |
6748 | ac_cv_func_fork_works=cross | |
6749 | else | |
6750 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6751 | /* confdefs.h. */ |
6752 | _ACEOF | |
6753 | cat confdefs.h >>conftest.$ac_ext | |
6754 | cat >>conftest.$ac_ext <<_ACEOF | |
6755 | /* end confdefs.h. */ | |
6756 | $ac_includes_default | |
6757 | int | |
6758 | main () | |
6759 | { | |
6760 | ||
6761 | /* By Ruediger Kuhlmann. */ | |
6762 | return fork () < 0; | |
6763 | ||
6764 | ; | |
6765 | return 0; | |
6766 | } | |
ad6254c5 AK |
6767 | _ACEOF |
6768 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6769 | if { (ac_try="$ac_link" |
6770 | case "(($ac_try" in | |
6771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6772 | *) ac_try_echo=$ac_try;; | |
6773 | esac | |
68f2de6d | 6774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6775 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6776 | ac_status=$? |
68f2de6d | 6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6778 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6779 | { (case "(($ac_try" in |
6780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6781 | *) ac_try_echo=$ac_try;; | |
6782 | esac | |
68f2de6d | 6783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6784 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6785 | ac_status=$? |
68f2de6d | 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6787 | (exit $ac_status); }; }; then |
6788 | ac_cv_func_fork_works=yes | |
6789 | else | |
68f2de6d AK |
6790 | echo "$as_me: program exited with status $ac_status" >&5 |
6791 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6792 | sed 's/^/| /' conftest.$ac_ext >&5 |
6793 | ||
6794 | ( exit $ac_status ) | |
6795 | ac_cv_func_fork_works=no | |
6796 | fi | |
7a197a62 | 6797 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6798 | fi |
7a197a62 AK |
6799 | |
6800 | ||
ad6254c5 | 6801 | fi |
68f2de6d AK |
6802 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6803 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6804 | |
6805 | else | |
6806 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6807 | fi | |
6808 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6809 | case $host in | |
6810 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6811 | # Override, as these systems have only a dummy fork() stub | |
6812 | ac_cv_func_fork_works=no | |
6813 | ;; | |
6814 | *) | |
6815 | ac_cv_func_fork_works=yes | |
6816 | ;; | |
6817 | esac | |
68f2de6d AK |
6818 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6819 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6820 | fi |
6821 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6822 | if test "x$ac_cv_func_vfork" = xyes; then | |
68f2de6d AK |
6823 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6824 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6825 | if test "${ac_cv_func_vfork_works+set}" = set; then |
68f2de6d | 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6827 | else |
6828 | if test "$cross_compiling" = yes; then | |
6829 | ac_cv_func_vfork_works=cross | |
6830 | else | |
6831 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6832 | /* confdefs.h. */ |
6833 | _ACEOF | |
6834 | cat confdefs.h >>conftest.$ac_ext | |
6835 | cat >>conftest.$ac_ext <<_ACEOF | |
6836 | /* end confdefs.h. */ | |
6837 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6838 | $ac_includes_default |
ad6254c5 | 6839 | #include <sys/wait.h> |
25fbec5b | 6840 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6841 | # include <vfork.h> |
6842 | #endif | |
6843 | /* On some sparc systems, changes by the child to local and incoming | |
6844 | argument registers are propagated back to the parent. The compiler | |
6845 | is told about this with #include <vfork.h>, but some compilers | |
6846 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6847 | static variable whose address is put into a register that is | |
6848 | clobbered by the vfork. */ | |
6849 | static void | |
6850 | #ifdef __cplusplus | |
6851 | sparc_address_test (int arg) | |
6852 | # else | |
6853 | sparc_address_test (arg) int arg; | |
6854 | #endif | |
6855 | { | |
6856 | static pid_t child; | |
6857 | if (!child) { | |
6858 | child = vfork (); | |
6859 | if (child < 0) { | |
6860 | perror ("vfork"); | |
6861 | _exit(2); | |
6862 | } | |
6863 | if (!child) { | |
6864 | arg = getpid(); | |
6865 | write(-1, "", 0); | |
6866 | _exit (arg); | |
6867 | } | |
6868 | } | |
6869 | } | |
6870 | ||
6871 | int | |
6872 | main () | |
6873 | { | |
6874 | pid_t parent = getpid (); | |
6875 | pid_t child; | |
6876 | ||
6877 | sparc_address_test (0); | |
6878 | ||
6879 | child = vfork (); | |
6880 | ||
6881 | if (child == 0) { | |
6882 | /* Here is another test for sparc vfork register problems. This | |
6883 | test uses lots of local variables, at least as many local | |
6884 | variables as main has allocated so far including compiler | |
6885 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6886 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6887 | reuse the register of parent for one of the local variables, | |
6888 | since it will think that parent can't possibly be used any more | |
6889 | in this routine. Assigning to the local variable will thus | |
6890 | munge parent in the parent process. */ | |
6891 | pid_t | |
6892 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6893 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6894 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6895 | use the same hardware register for all 8 local variables. */ | |
6896 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6897 | || p != p5 || p != p6 || p != p7) | |
6898 | _exit(1); | |
6899 | ||
6900 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6901 | from child file descriptors. If the child closes a descriptor | |
6902 | before it execs or exits, this munges the parent's descriptor | |
6903 | as well. Test for this by closing stdout in the child. */ | |
6904 | _exit(close(fileno(stdout)) != 0); | |
6905 | } else { | |
6906 | int status; | |
6907 | struct stat st; | |
6908 | ||
6909 | while (wait(&status) != child) | |
6910 | ; | |
7a197a62 | 6911 | return ( |
ad6254c5 AK |
6912 | /* Was there some problem with vforking? */ |
6913 | child < 0 | |
6914 | ||
6915 | /* Did the child fail? (This shouldn't happen.) */ | |
6916 | || status | |
6917 | ||
6918 | /* Did the vfork/compiler bug occur? */ | |
6919 | || parent != getpid() | |
6920 | ||
6921 | /* Did the file descriptor bug occur? */ | |
6922 | || fstat(fileno(stdout), &st) != 0 | |
6923 | ); | |
6924 | } | |
6925 | } | |
6926 | _ACEOF | |
6927 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6928 | if { (ac_try="$ac_link" |
6929 | case "(($ac_try" in | |
6930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6931 | *) ac_try_echo=$ac_try;; | |
6932 | esac | |
68f2de6d | 6933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6934 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6935 | ac_status=$? |
68f2de6d | 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6938 | { (case "(($ac_try" in |
6939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6940 | *) ac_try_echo=$ac_try;; | |
6941 | esac | |
68f2de6d | 6942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6943 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6944 | ac_status=$? |
68f2de6d | 6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6946 | (exit $ac_status); }; }; then |
6947 | ac_cv_func_vfork_works=yes | |
6948 | else | |
68f2de6d AK |
6949 | echo "$as_me: program exited with status $ac_status" >&5 |
6950 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6951 | sed 's/^/| /' conftest.$ac_ext >&5 |
6952 | ||
6953 | ( exit $ac_status ) | |
6954 | ac_cv_func_vfork_works=no | |
6955 | fi | |
7a197a62 | 6956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6957 | fi |
7a197a62 AK |
6958 | |
6959 | ||
ad6254c5 | 6960 | fi |
68f2de6d AK |
6961 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6962 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6963 | |
6964 | fi; | |
6965 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6966 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
68f2de6d AK |
6967 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6968 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6969 | fi |
6970 | ||
6971 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6972 | ||
6973 | cat >>confdefs.h <<\_ACEOF | |
6974 | #define HAVE_WORKING_VFORK 1 | |
6975 | _ACEOF | |
6976 | ||
6977 | else | |
6978 | ||
6979 | cat >>confdefs.h <<\_ACEOF | |
6980 | #define vfork fork | |
6981 | _ACEOF | |
6982 | ||
6983 | fi | |
6984 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6985 | ||
6986 | cat >>confdefs.h <<\_ACEOF | |
6987 | #define HAVE_WORKING_FORK 1 | |
6988 | _ACEOF | |
6989 | ||
6990 | fi | |
6991 | ||
68f2de6d AK |
6992 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6993 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6994 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
68f2de6d | 6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6996 | else |
6997 | rm -f conftest.sym conftest.file | |
6998 | echo >conftest.file | |
6999 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7000 | if test "$cross_compiling" = yes; then | |
7001 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7002 | else | |
7003 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7004 | /* confdefs.h. */ |
7005 | _ACEOF | |
7006 | cat confdefs.h >>conftest.$ac_ext | |
7007 | cat >>conftest.$ac_ext <<_ACEOF | |
7008 | /* end confdefs.h. */ | |
7009 | $ac_includes_default | |
7010 | int | |
7011 | main () | |
7012 | { | |
7013 | struct stat sbuf; | |
7014 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7015 | That is better in the sense that it means we will not |
7016 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7017 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7018 | ; |
7019 | return 0; | |
7020 | } | |
7021 | _ACEOF | |
7022 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7023 | if { (ac_try="$ac_link" |
7024 | case "(($ac_try" in | |
7025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7026 | *) ac_try_echo=$ac_try;; | |
7027 | esac | |
68f2de6d | 7028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7029 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7030 | ac_status=$? |
68f2de6d | 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7033 | { (case "(($ac_try" in |
7034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7035 | *) ac_try_echo=$ac_try;; | |
7036 | esac | |
68f2de6d | 7037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7038 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7039 | ac_status=$? |
68f2de6d | 7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7041 | (exit $ac_status); }; }; then |
7042 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7043 | else | |
68f2de6d AK |
7044 | echo "$as_me: program exited with status $ac_status" >&5 |
7045 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7046 | sed 's/^/| /' conftest.$ac_ext >&5 |
7047 | ||
7048 | ( exit $ac_status ) | |
7049 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7050 | fi | |
7a197a62 | 7051 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7052 | fi |
7a197a62 AK |
7053 | |
7054 | ||
ad6254c5 AK |
7055 | else |
7056 | # If the `ln -s' command failed, then we probably don't even | |
7057 | # have an lstat function. | |
7058 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7059 | fi | |
7060 | rm -f conftest.sym conftest.file | |
7061 | ||
7062 | fi | |
68f2de6d AK |
7063 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7064 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7065 | |
7066 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7067 | ||
7068 | cat >>confdefs.h <<_ACEOF | |
7069 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7070 | _ACEOF | |
7071 | ||
7072 | ||
7073 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7074 | case " $LIBOBJS " in |
8a2fc586 | 7075 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7076 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7077 | ;; | |
8a2fc586 AK |
7078 | esac |
7079 | ||
ad6254c5 AK |
7080 | fi |
7081 | ||
68f2de6d AK |
7082 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7083 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7084 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
68f2de6d | 7085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7086 | else |
7087 | if test "$cross_compiling" = yes; then | |
7088 | ac_cv_func_lstat_empty_string_bug=yes | |
7089 | else | |
7090 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7091 | /* confdefs.h. */ |
7092 | _ACEOF | |
7093 | cat confdefs.h >>conftest.$ac_ext | |
7094 | cat >>conftest.$ac_ext <<_ACEOF | |
7095 | /* end confdefs.h. */ | |
7096 | $ac_includes_default | |
7097 | int | |
7098 | main () | |
7099 | { | |
7100 | struct stat sbuf; | |
7a197a62 | 7101 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7102 | ; |
7103 | return 0; | |
7104 | } | |
7105 | _ACEOF | |
7106 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7107 | if { (ac_try="$ac_link" |
7108 | case "(($ac_try" in | |
7109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7110 | *) ac_try_echo=$ac_try;; | |
7111 | esac | |
68f2de6d | 7112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7113 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7114 | ac_status=$? |
68f2de6d | 7115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7117 | { (case "(($ac_try" in |
7118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7119 | *) ac_try_echo=$ac_try;; | |
7120 | esac | |
68f2de6d | 7121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7122 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7123 | ac_status=$? |
68f2de6d | 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7125 | (exit $ac_status); }; }; then |
7a197a62 | 7126 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7127 | else |
68f2de6d AK |
7128 | echo "$as_me: program exited with status $ac_status" >&5 |
7129 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7130 | sed 's/^/| /' conftest.$ac_ext >&5 |
7131 | ||
7132 | ( exit $ac_status ) | |
7a197a62 | 7133 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7134 | fi |
7a197a62 | 7135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7136 | fi |
7a197a62 AK |
7137 | |
7138 | ||
ad6254c5 | 7139 | fi |
68f2de6d AK |
7140 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7141 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7142 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7143 | case " $LIBOBJS " in |
8a2fc586 | 7144 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7145 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7146 | ;; | |
8a2fc586 AK |
7147 | esac |
7148 | ||
ad6254c5 AK |
7149 | |
7150 | cat >>confdefs.h <<_ACEOF | |
7151 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7152 | _ACEOF | |
7153 | ||
7154 | fi | |
7155 | ||
7156 | ||
7157 | for ac_header in stdlib.h | |
7158 | do | |
68f2de6d | 7159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7161 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7165 | fi |
68f2de6d AK |
7166 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7168 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7169 | else |
7170 | # Is the header compilable? | |
68f2de6d AK |
7171 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7173 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7174 | /* confdefs.h. */ |
7175 | _ACEOF | |
7176 | cat confdefs.h >>conftest.$ac_ext | |
7177 | cat >>conftest.$ac_ext <<_ACEOF | |
7178 | /* end confdefs.h. */ | |
7179 | $ac_includes_default | |
7180 | #include <$ac_header> | |
7181 | _ACEOF | |
7182 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7183 | if { (ac_try="$ac_compile" |
7184 | case "(($ac_try" in | |
7185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7186 | *) ac_try_echo=$ac_try;; | |
7187 | esac | |
68f2de6d | 7188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7189 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7190 | ac_status=$? |
8a2fc586 AK |
7191 | grep -v '^ *+' conftest.er1 >conftest.err |
7192 | rm -f conftest.er1 | |
7193 | cat conftest.err >&5 | |
68f2de6d | 7194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7195 | (exit $ac_status); } && { |
7196 | test -z "$ac_c_werror_flag" || | |
7197 | test ! -s conftest.err | |
7198 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7199 | ac_header_compiler=yes |
7200 | else | |
68f2de6d | 7201 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7202 | sed 's/^/| /' conftest.$ac_ext >&5 |
7203 | ||
7a197a62 | 7204 | ac_header_compiler=no |
ad6254c5 | 7205 | fi |
7a197a62 AK |
7206 | |
7207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7208 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7209 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7210 | |
7211 | # Is the header present? | |
68f2de6d AK |
7212 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7213 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7215 | /* confdefs.h. */ |
7216 | _ACEOF | |
7217 | cat confdefs.h >>conftest.$ac_ext | |
7218 | cat >>conftest.$ac_ext <<_ACEOF | |
7219 | /* end confdefs.h. */ | |
7220 | #include <$ac_header> | |
7221 | _ACEOF | |
7a197a62 AK |
7222 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7223 | case "(($ac_try" in | |
7224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7225 | *) ac_try_echo=$ac_try;; | |
7226 | esac | |
68f2de6d | 7227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7229 | ac_status=$? |
7230 | grep -v '^ *+' conftest.er1 >conftest.err | |
7231 | rm -f conftest.er1 | |
7232 | cat conftest.err >&5 | |
68f2de6d | 7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7234 | (exit $ac_status); } >/dev/null && { |
7235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7236 | test ! -s conftest.err | |
7237 | }; then | |
ad6254c5 AK |
7238 | ac_header_preproc=yes |
7239 | else | |
68f2de6d | 7240 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7241 | sed 's/^/| /' conftest.$ac_ext >&5 |
7242 | ||
7243 | ac_header_preproc=no | |
7244 | fi | |
7a197a62 | 7245 | |
ad6254c5 | 7246 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7247 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7248 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7249 | |
7250 | # So? What about this header? | |
8a2fc586 AK |
7251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7252 | yes:no: ) | |
68f2de6d AK |
7253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7257 | ac_header_preproc=yes |
ad6254c5 | 7258 | ;; |
8a2fc586 | 7259 | no:yes:* ) |
68f2de6d AK |
7260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7272 | |
ad6254c5 AK |
7273 | ;; |
7274 | esac | |
68f2de6d AK |
7275 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7279 | else |
8a2fc586 | 7280 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7281 | fi |
68f2de6d AK |
7282 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7283 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7284 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7285 | |
7286 | fi | |
68f2de6d | 7287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7288 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7290 | _ACEOF |
7291 | ||
7292 | fi | |
7293 | ||
7294 | done | |
7295 | ||
68f2de6d AK |
7296 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7297 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7298 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
68f2de6d | 7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7300 | else |
7301 | if test "$cross_compiling" = yes; then | |
7302 | ac_cv_func_malloc_0_nonnull=no | |
7303 | else | |
7304 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7305 | /* confdefs.h. */ |
7306 | _ACEOF | |
7307 | cat confdefs.h >>conftest.$ac_ext | |
7308 | cat >>conftest.$ac_ext <<_ACEOF | |
7309 | /* end confdefs.h. */ | |
25fbec5b | 7310 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7311 | # include <stdlib.h> |
7312 | #else | |
7313 | char *malloc (); | |
7314 | #endif | |
7315 | ||
7316 | int | |
7317 | main () | |
7318 | { | |
7a197a62 | 7319 | return ! malloc (0); |
ad6254c5 AK |
7320 | ; |
7321 | return 0; | |
7322 | } | |
7323 | _ACEOF | |
7324 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7325 | if { (ac_try="$ac_link" |
7326 | case "(($ac_try" in | |
7327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7328 | *) ac_try_echo=$ac_try;; | |
7329 | esac | |
68f2de6d | 7330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7331 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7332 | ac_status=$? |
68f2de6d | 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7335 | { (case "(($ac_try" in |
7336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7337 | *) ac_try_echo=$ac_try;; | |
7338 | esac | |
68f2de6d | 7339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7340 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7341 | ac_status=$? |
68f2de6d | 7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7343 | (exit $ac_status); }; }; then |
7344 | ac_cv_func_malloc_0_nonnull=yes | |
7345 | else | |
68f2de6d AK |
7346 | echo "$as_me: program exited with status $ac_status" >&5 |
7347 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
7349 | ||
7350 | ( exit $ac_status ) | |
7351 | ac_cv_func_malloc_0_nonnull=no | |
7352 | fi | |
7a197a62 | 7353 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7354 | fi |
7a197a62 AK |
7355 | |
7356 | ||
ad6254c5 | 7357 | fi |
68f2de6d AK |
7358 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7359 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7360 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7361 | ||
7362 | cat >>confdefs.h <<\_ACEOF | |
7363 | #define HAVE_MALLOC 1 | |
7364 | _ACEOF | |
7365 | ||
7366 | else | |
7367 | cat >>confdefs.h <<\_ACEOF | |
7368 | #define HAVE_MALLOC 0 | |
7369 | _ACEOF | |
7370 | ||
7a197a62 | 7371 | case " $LIBOBJS " in |
8a2fc586 | 7372 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7373 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7374 | ;; | |
8a2fc586 AK |
7375 | esac |
7376 | ||
ad6254c5 AK |
7377 | |
7378 | cat >>confdefs.h <<\_ACEOF | |
7379 | #define malloc rpl_malloc | |
7380 | _ACEOF | |
7381 | ||
7382 | fi | |
7383 | ||
7384 | ||
7385 | ||
68f2de6d AK |
7386 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7387 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7388 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
68f2de6d | 7389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7390 | else |
7391 | if test "$cross_compiling" = yes; then | |
7392 | ac_cv_func_memcmp_working=no | |
7393 | else | |
7394 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7395 | /* confdefs.h. */ |
7396 | _ACEOF | |
7397 | cat confdefs.h >>conftest.$ac_ext | |
7398 | cat >>conftest.$ac_ext <<_ACEOF | |
7399 | /* end confdefs.h. */ | |
8a2fc586 | 7400 | $ac_includes_default |
ad6254c5 AK |
7401 | int |
7402 | main () | |
7403 | { | |
7404 | ||
7405 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7406 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7407 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7408 | return 1; |
ad6254c5 AK |
7409 | |
7410 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7411 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7412 | William Lewis provided this test program. */ | |
7413 | { | |
7414 | char foo[21]; | |
7415 | char bar[21]; | |
7416 | int i; | |
7417 | for (i = 0; i < 4; i++) | |
7418 | { | |
8a2fc586 AK |
7419 | char *a = foo + i; |
7420 | char *b = bar + i; | |
7421 | strcpy (a, "--------01111111"); | |
7422 | strcpy (b, "--------10000000"); | |
7423 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7424 | return 1; |
ad6254c5 | 7425 | } |
7a197a62 | 7426 | return 0; |
ad6254c5 AK |
7427 | } |
7428 | ||
7429 | ; | |
7430 | return 0; | |
7431 | } | |
7432 | _ACEOF | |
7433 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7434 | if { (ac_try="$ac_link" |
7435 | case "(($ac_try" in | |
7436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7437 | *) ac_try_echo=$ac_try;; | |
7438 | esac | |
68f2de6d | 7439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7440 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7441 | ac_status=$? |
68f2de6d | 7442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7444 | { (case "(($ac_try" in |
7445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7446 | *) ac_try_echo=$ac_try;; | |
7447 | esac | |
68f2de6d | 7448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7449 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7450 | ac_status=$? |
68f2de6d | 7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7452 | (exit $ac_status); }; }; then |
7453 | ac_cv_func_memcmp_working=yes | |
7454 | else | |
68f2de6d AK |
7455 | echo "$as_me: program exited with status $ac_status" >&5 |
7456 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7457 | sed 's/^/| /' conftest.$ac_ext >&5 |
7458 | ||
7459 | ( exit $ac_status ) | |
7460 | ac_cv_func_memcmp_working=no | |
7461 | fi | |
7a197a62 | 7462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7463 | fi |
7a197a62 AK |
7464 | |
7465 | ||
ad6254c5 | 7466 | fi |
68f2de6d AK |
7467 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7468 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7469 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7470 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7471 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7472 | ;; | |
8a2fc586 AK |
7473 | esac |
7474 | ||
ad6254c5 AK |
7475 | |
7476 | ||
7477 | ||
7478 | for ac_header in stdlib.h unistd.h | |
7479 | do | |
68f2de6d | 7480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7482 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7484 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7486 | fi |
68f2de6d AK |
7487 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7488 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7489 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7490 | else |
7491 | # Is the header compilable? | |
68f2de6d AK |
7492 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7494 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7495 | /* confdefs.h. */ |
7496 | _ACEOF | |
7497 | cat confdefs.h >>conftest.$ac_ext | |
7498 | cat >>conftest.$ac_ext <<_ACEOF | |
7499 | /* end confdefs.h. */ | |
7500 | $ac_includes_default | |
7501 | #include <$ac_header> | |
7502 | _ACEOF | |
7503 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7504 | if { (ac_try="$ac_compile" |
7505 | case "(($ac_try" in | |
7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7507 | *) ac_try_echo=$ac_try;; | |
7508 | esac | |
68f2de6d | 7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7510 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7511 | ac_status=$? |
8a2fc586 AK |
7512 | grep -v '^ *+' conftest.er1 >conftest.err |
7513 | rm -f conftest.er1 | |
7514 | cat conftest.err >&5 | |
68f2de6d | 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7516 | (exit $ac_status); } && { |
7517 | test -z "$ac_c_werror_flag" || | |
7518 | test ! -s conftest.err | |
7519 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7520 | ac_header_compiler=yes |
7521 | else | |
68f2de6d | 7522 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7523 | sed 's/^/| /' conftest.$ac_ext >&5 |
7524 | ||
7a197a62 | 7525 | ac_header_compiler=no |
ad6254c5 | 7526 | fi |
7a197a62 AK |
7527 | |
7528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7529 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7530 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7531 | |
7532 | # Is the header present? | |
68f2de6d AK |
7533 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7535 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7536 | /* confdefs.h. */ |
7537 | _ACEOF | |
7538 | cat confdefs.h >>conftest.$ac_ext | |
7539 | cat >>conftest.$ac_ext <<_ACEOF | |
7540 | /* end confdefs.h. */ | |
7541 | #include <$ac_header> | |
7542 | _ACEOF | |
7a197a62 AK |
7543 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7544 | case "(($ac_try" in | |
7545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7546 | *) ac_try_echo=$ac_try;; | |
7547 | esac | |
68f2de6d | 7548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7550 | ac_status=$? |
7551 | grep -v '^ *+' conftest.er1 >conftest.err | |
7552 | rm -f conftest.er1 | |
7553 | cat conftest.err >&5 | |
68f2de6d | 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7555 | (exit $ac_status); } >/dev/null && { |
7556 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7557 | test ! -s conftest.err | |
7558 | }; then | |
ad6254c5 AK |
7559 | ac_header_preproc=yes |
7560 | else | |
68f2de6d | 7561 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7562 | sed 's/^/| /' conftest.$ac_ext >&5 |
7563 | ||
7564 | ac_header_preproc=no | |
7565 | fi | |
7a197a62 | 7566 | |
ad6254c5 | 7567 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7568 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7569 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7570 | |
7571 | # So? What about this header? | |
8a2fc586 AK |
7572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7573 | yes:no: ) | |
68f2de6d AK |
7574 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7575 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7577 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7578 | ac_header_preproc=yes |
ad6254c5 | 7579 | ;; |
8a2fc586 | 7580 | no:yes:* ) |
68f2de6d AK |
7581 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7582 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7583 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7584 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7585 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7586 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7587 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7588 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7590 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7591 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7592 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7593 | |
ad6254c5 AK |
7594 | ;; |
7595 | esac | |
68f2de6d AK |
7596 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7600 | else |
8a2fc586 | 7601 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7602 | fi |
68f2de6d AK |
7603 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7604 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7605 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7606 | |
7607 | fi | |
68f2de6d | 7608 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7609 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7610 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7611 | _ACEOF |
7612 | ||
7613 | fi | |
7614 | ||
7615 | done | |
7616 | ||
7617 | ||
7618 | for ac_func in getpagesize | |
7619 | do | |
68f2de6d AK |
7620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7621 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7623 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7625 | else |
7626 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7627 | /* confdefs.h. */ |
7628 | _ACEOF | |
7629 | cat confdefs.h >>conftest.$ac_ext | |
7630 | cat >>conftest.$ac_ext <<_ACEOF | |
7631 | /* end confdefs.h. */ | |
8a2fc586 AK |
7632 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7634 | #define $ac_func innocuous_$ac_func | |
7635 | ||
ad6254c5 AK |
7636 | /* System header to define __stub macros and hopefully few prototypes, |
7637 | which can conflict with char $ac_func (); below. | |
7638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7639 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7640 | |
ad6254c5 AK |
7641 | #ifdef __STDC__ |
7642 | # include <limits.h> | |
7643 | #else | |
7644 | # include <assert.h> | |
7645 | #endif | |
8a2fc586 AK |
7646 | |
7647 | #undef $ac_func | |
7648 | ||
7a197a62 AK |
7649 | /* Override any GCC internal prototype to avoid an error. |
7650 | Use char because int might match the return type of a GCC | |
7651 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7652 | #ifdef __cplusplus |
7653 | extern "C" | |
ad6254c5 | 7654 | #endif |
ad6254c5 AK |
7655 | char $ac_func (); |
7656 | /* The GNU C library defines this for functions which it implements | |
7657 | to always fail with ENOSYS. Some functions are actually named | |
7658 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7659 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7660 | choke me |
ad6254c5 AK |
7661 | #endif |
7662 | ||
7663 | int | |
7664 | main () | |
7665 | { | |
7a197a62 | 7666 | return $ac_func (); |
ad6254c5 AK |
7667 | ; |
7668 | return 0; | |
7669 | } | |
7670 | _ACEOF | |
7671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7672 | if { (ac_try="$ac_link" |
7673 | case "(($ac_try" in | |
7674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7675 | *) ac_try_echo=$ac_try;; | |
7676 | esac | |
68f2de6d | 7677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7678 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7679 | ac_status=$? |
8a2fc586 AK |
7680 | grep -v '^ *+' conftest.er1 >conftest.err |
7681 | rm -f conftest.er1 | |
7682 | cat conftest.err >&5 | |
68f2de6d | 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7684 | (exit $ac_status); } && { |
7685 | test -z "$ac_c_werror_flag" || | |
7686 | test ! -s conftest.err | |
68f2de6d AK |
7687 | } && test -s conftest$ac_exeext && |
7688 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7689 | eval "$as_ac_var=yes" |
7690 | else | |
68f2de6d | 7691 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7692 | sed 's/^/| /' conftest.$ac_ext >&5 |
7693 | ||
7a197a62 | 7694 | eval "$as_ac_var=no" |
ad6254c5 | 7695 | fi |
7a197a62 | 7696 | |
25fbec5b | 7697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7698 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7699 | fi |
68f2de6d AK |
7700 | ac_res=`eval echo '${'$as_ac_var'}'` |
7701 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7702 | echo "${ECHO_T}$ac_res" >&6; } | |
7703 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7704 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7705 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7706 | _ACEOF |
7707 | ||
7708 | fi | |
7709 | done | |
7710 | ||
68f2de6d AK |
7711 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7712 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7713 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
68f2de6d | 7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7715 | else |
7716 | if test "$cross_compiling" = yes; then | |
7717 | ac_cv_func_mmap_fixed_mapped=no | |
7718 | else | |
7719 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7720 | /* confdefs.h. */ |
7721 | _ACEOF | |
7722 | cat confdefs.h >>conftest.$ac_ext | |
7723 | cat >>conftest.$ac_ext <<_ACEOF | |
7724 | /* end confdefs.h. */ | |
7725 | $ac_includes_default | |
7726 | /* malloc might have been renamed as rpl_malloc. */ | |
7727 | #undef malloc | |
7728 | ||
7729 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7730 | Here is a matrix of mmap possibilities: | |
7731 | mmap private not fixed | |
7732 | mmap private fixed at somewhere currently unmapped | |
7733 | mmap private fixed at somewhere already mapped | |
7734 | mmap shared not fixed | |
7735 | mmap shared fixed at somewhere currently unmapped | |
7736 | mmap shared fixed at somewhere already mapped | |
7737 | For private mappings, we should verify that changes cannot be read() | |
7738 | back from the file, nor mmap's back from the file at a different | |
7739 | address. (There have been systems where private was not correctly | |
7740 | implemented like the infamous i386 svr4.0, and systems where the | |
7741 | VM page cache was not coherent with the file system buffer cache | |
7742 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7743 | For shared mappings, we should conversely verify that changes get | |
7744 | propagated back to all the places they're supposed to be. | |
7745 | ||
7746 | Grep wants private fixed already mapped. | |
7747 | The main things grep needs to know about mmap are: | |
7748 | * does it exist and is it safe to write into the mmap'd area | |
7749 | * how to use it (BSD variants) */ | |
7750 | ||
7751 | #include <fcntl.h> | |
7752 | #include <sys/mman.h> | |
7753 | ||
25fbec5b | 7754 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7755 | char *malloc (); |
7756 | #endif | |
7757 | ||
7758 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7759 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7760 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7761 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7762 | # define HAVE_SYS_PARAM_H 1 |
7763 | # endif | |
7764 | ||
7765 | # ifdef _SC_PAGESIZE | |
7766 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7767 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7768 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7769 | # include <sys/param.h> |
7770 | # ifdef EXEC_PAGESIZE | |
7771 | # define getpagesize() EXEC_PAGESIZE | |
7772 | # else /* no EXEC_PAGESIZE */ | |
7773 | # ifdef NBPG | |
7774 | # define getpagesize() NBPG * CLSIZE | |
7775 | # ifndef CLSIZE | |
7776 | # define CLSIZE 1 | |
7777 | # endif /* no CLSIZE */ | |
7778 | # else /* no NBPG */ | |
7779 | # ifdef NBPC | |
7780 | # define getpagesize() NBPC | |
7781 | # else /* no NBPC */ | |
7782 | # ifdef PAGESIZE | |
7783 | # define getpagesize() PAGESIZE | |
7784 | # endif /* PAGESIZE */ | |
7785 | # endif /* no NBPC */ | |
7786 | # endif /* no NBPG */ | |
7787 | # endif /* no EXEC_PAGESIZE */ | |
7788 | # else /* no HAVE_SYS_PARAM_H */ | |
7789 | # define getpagesize() 8192 /* punt totally */ | |
7790 | # endif /* no HAVE_SYS_PARAM_H */ | |
7791 | # endif /* no _SC_PAGESIZE */ | |
7792 | ||
7793 | #endif /* no HAVE_GETPAGESIZE */ | |
7794 | ||
7795 | int | |
7796 | main () | |
7797 | { | |
7798 | char *data, *data2, *data3; | |
7799 | int i, pagesize; | |
7800 | int fd; | |
7801 | ||
7802 | pagesize = getpagesize (); | |
7803 | ||
7804 | /* First, make a file with some known garbage in it. */ | |
7805 | data = (char *) malloc (pagesize); | |
7806 | if (!data) | |
7a197a62 | 7807 | return 1; |
ad6254c5 AK |
7808 | for (i = 0; i < pagesize; ++i) |
7809 | *(data + i) = rand (); | |
7810 | umask (0); | |
7811 | fd = creat ("conftest.mmap", 0600); | |
7812 | if (fd < 0) | |
7a197a62 | 7813 | return 1; |
ad6254c5 | 7814 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7815 | return 1; |
ad6254c5 AK |
7816 | close (fd); |
7817 | ||
7818 | /* Next, try to mmap the file at a fixed address which already has | |
7819 | something else allocated at it. If we can, also make sure that | |
7820 | we see the same garbage. */ | |
7821 | fd = open ("conftest.mmap", O_RDWR); | |
7822 | if (fd < 0) | |
7a197a62 | 7823 | return 1; |
ad6254c5 AK |
7824 | data2 = (char *) malloc (2 * pagesize); |
7825 | if (!data2) | |
7a197a62 AK |
7826 | return 1; |
7827 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7828 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7829 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7830 | return 1; |
ad6254c5 AK |
7831 | for (i = 0; i < pagesize; ++i) |
7832 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7833 | return 1; |
ad6254c5 AK |
7834 | |
7835 | /* Finally, make sure that changes to the mapped area do not | |
7836 | percolate back to the file as seen by read(). (This is a bug on | |
7837 | some variants of i386 svr4.0.) */ | |
7838 | for (i = 0; i < pagesize; ++i) | |
7839 | *(data2 + i) = *(data2 + i) + 1; | |
7840 | data3 = (char *) malloc (pagesize); | |
7841 | if (!data3) | |
7a197a62 | 7842 | return 1; |
ad6254c5 | 7843 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7844 | return 1; |
ad6254c5 AK |
7845 | for (i = 0; i < pagesize; ++i) |
7846 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7847 | return 1; |
ad6254c5 | 7848 | close (fd); |
7a197a62 | 7849 | return 0; |
ad6254c5 AK |
7850 | } |
7851 | _ACEOF | |
7852 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7853 | if { (ac_try="$ac_link" |
7854 | case "(($ac_try" in | |
7855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7856 | *) ac_try_echo=$ac_try;; | |
7857 | esac | |
68f2de6d | 7858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7859 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7860 | ac_status=$? |
68f2de6d | 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7863 | { (case "(($ac_try" in |
7864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7865 | *) ac_try_echo=$ac_try;; | |
7866 | esac | |
68f2de6d | 7867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7868 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7869 | ac_status=$? |
68f2de6d | 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7871 | (exit $ac_status); }; }; then |
7872 | ac_cv_func_mmap_fixed_mapped=yes | |
7873 | else | |
68f2de6d AK |
7874 | echo "$as_me: program exited with status $ac_status" >&5 |
7875 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7876 | sed 's/^/| /' conftest.$ac_ext >&5 |
7877 | ||
7878 | ( exit $ac_status ) | |
7879 | ac_cv_func_mmap_fixed_mapped=no | |
7880 | fi | |
7a197a62 | 7881 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7882 | fi |
7a197a62 AK |
7883 | |
7884 | ||
ad6254c5 | 7885 | fi |
68f2de6d AK |
7886 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7887 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7888 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7889 | ||
7890 | cat >>confdefs.h <<\_ACEOF | |
7891 | #define HAVE_MMAP 1 | |
7892 | _ACEOF | |
7893 | ||
7894 | fi | |
7895 | rm -f conftest.mmap | |
7896 | ||
68f2de6d AK |
7897 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7898 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7899 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
68f2de6d | 7900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7901 | else |
7902 | if test "$cross_compiling" = yes; then | |
7903 | ac_cv_func_stat_empty_string_bug=yes | |
7904 | else | |
7905 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7906 | /* confdefs.h. */ |
7907 | _ACEOF | |
7908 | cat confdefs.h >>conftest.$ac_ext | |
7909 | cat >>conftest.$ac_ext <<_ACEOF | |
7910 | /* end confdefs.h. */ | |
7911 | $ac_includes_default | |
7912 | int | |
7913 | main () | |
7914 | { | |
7915 | struct stat sbuf; | |
7a197a62 | 7916 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7917 | ; |
7918 | return 0; | |
7919 | } | |
7920 | _ACEOF | |
7921 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7922 | if { (ac_try="$ac_link" |
7923 | case "(($ac_try" in | |
7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7925 | *) ac_try_echo=$ac_try;; | |
7926 | esac | |
68f2de6d | 7927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7928 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7929 | ac_status=$? |
68f2de6d | 7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7932 | { (case "(($ac_try" in |
7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7934 | *) ac_try_echo=$ac_try;; | |
7935 | esac | |
68f2de6d | 7936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7937 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7938 | ac_status=$? |
68f2de6d | 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7940 | (exit $ac_status); }; }; then |
7a197a62 | 7941 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7942 | else |
68f2de6d AK |
7943 | echo "$as_me: program exited with status $ac_status" >&5 |
7944 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7945 | sed 's/^/| /' conftest.$ac_ext >&5 |
7946 | ||
7947 | ( exit $ac_status ) | |
7a197a62 | 7948 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7949 | fi |
7a197a62 | 7950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7951 | fi |
7a197a62 AK |
7952 | |
7953 | ||
ad6254c5 | 7954 | fi |
68f2de6d AK |
7955 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7956 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7957 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7958 | case " $LIBOBJS " in |
8a2fc586 | 7959 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7960 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7961 | ;; | |
8a2fc586 AK |
7962 | esac |
7963 | ||
ad6254c5 AK |
7964 | |
7965 | cat >>confdefs.h <<_ACEOF | |
7966 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7967 | _ACEOF | |
7968 | ||
7969 | fi | |
7970 | ||
68f2de6d AK |
7971 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7972 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7973 | if test "${ac_cv_func_strtod+set}" = set; then |
68f2de6d | 7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7975 | else |
7976 | if test "$cross_compiling" = yes; then | |
7977 | ac_cv_func_strtod=no | |
7978 | else | |
7979 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7980 | /* confdefs.h. */ |
7981 | _ACEOF | |
7982 | cat confdefs.h >>conftest.$ac_ext | |
7983 | cat >>conftest.$ac_ext <<_ACEOF | |
7984 | /* end confdefs.h. */ | |
7985 | ||
7a197a62 AK |
7986 | $ac_includes_default |
7987 | #ifndef strtod | |
ad6254c5 | 7988 | double strtod (); |
7a197a62 | 7989 | #endif |
ad6254c5 AK |
7990 | int |
7991 | main() | |
7992 | { | |
7993 | { | |
7994 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7995 | char *string = " +69"; | |
7996 | char *term; | |
7997 | double value; | |
7998 | value = strtod (string, &term); | |
7999 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8000 | return 1; |
ad6254c5 AK |
8001 | } |
8002 | ||
8003 | { | |
8004 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8005 | terminating character under some conditions. */ | |
8006 | char *string = "NaN"; | |
8007 | char *term; | |
8008 | strtod (string, &term); | |
8009 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8010 | return 1; |
ad6254c5 | 8011 | } |
7a197a62 | 8012 | return 0; |
ad6254c5 AK |
8013 | } |
8014 | ||
8015 | _ACEOF | |
8016 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8017 | if { (ac_try="$ac_link" |
8018 | case "(($ac_try" in | |
8019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8020 | *) ac_try_echo=$ac_try;; | |
8021 | esac | |
68f2de6d | 8022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8023 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8024 | ac_status=$? |
68f2de6d | 8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8027 | { (case "(($ac_try" in |
8028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8029 | *) ac_try_echo=$ac_try;; | |
8030 | esac | |
68f2de6d | 8031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8032 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8033 | ac_status=$? |
68f2de6d | 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8035 | (exit $ac_status); }; }; then |
8036 | ac_cv_func_strtod=yes | |
8037 | else | |
68f2de6d AK |
8038 | echo "$as_me: program exited with status $ac_status" >&5 |
8039 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
8041 | ||
8042 | ( exit $ac_status ) | |
8043 | ac_cv_func_strtod=no | |
8044 | fi | |
7a197a62 | 8045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8046 | fi |
7a197a62 AK |
8047 | |
8048 | ||
ad6254c5 | 8049 | fi |
68f2de6d AK |
8050 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8051 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8052 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8053 | case " $LIBOBJS " in |
8a2fc586 | 8054 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8055 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8056 | ;; | |
8a2fc586 AK |
8057 | esac |
8058 | ||
68f2de6d AK |
8059 | { echo "$as_me:$LINENO: checking for pow" >&5 |
8060 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 8061 | if test "${ac_cv_func_pow+set}" = set; then |
68f2de6d | 8062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8063 | else |
8064 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8065 | /* confdefs.h. */ |
8066 | _ACEOF | |
8067 | cat confdefs.h >>conftest.$ac_ext | |
8068 | cat >>conftest.$ac_ext <<_ACEOF | |
8069 | /* end confdefs.h. */ | |
8a2fc586 AK |
8070 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8072 | #define pow innocuous_pow | |
8073 | ||
ad6254c5 AK |
8074 | /* System header to define __stub macros and hopefully few prototypes, |
8075 | which can conflict with char pow (); below. | |
8076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8077 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8078 | |
ad6254c5 AK |
8079 | #ifdef __STDC__ |
8080 | # include <limits.h> | |
8081 | #else | |
8082 | # include <assert.h> | |
8083 | #endif | |
8a2fc586 AK |
8084 | |
8085 | #undef pow | |
8086 | ||
7a197a62 AK |
8087 | /* Override any GCC internal prototype to avoid an error. |
8088 | Use char because int might match the return type of a GCC | |
8089 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8090 | #ifdef __cplusplus |
8091 | extern "C" | |
ad6254c5 | 8092 | #endif |
ad6254c5 AK |
8093 | char pow (); |
8094 | /* The GNU C library defines this for functions which it implements | |
8095 | to always fail with ENOSYS. Some functions are actually named | |
8096 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8097 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8098 | choke me |
ad6254c5 AK |
8099 | #endif |
8100 | ||
8101 | int | |
8102 | main () | |
8103 | { | |
7a197a62 | 8104 | return pow (); |
ad6254c5 AK |
8105 | ; |
8106 | return 0; | |
8107 | } | |
8108 | _ACEOF | |
8109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8110 | if { (ac_try="$ac_link" |
8111 | case "(($ac_try" in | |
8112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8113 | *) ac_try_echo=$ac_try;; | |
8114 | esac | |
68f2de6d | 8115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8116 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8117 | ac_status=$? |
8a2fc586 AK |
8118 | grep -v '^ *+' conftest.er1 >conftest.err |
8119 | rm -f conftest.er1 | |
8120 | cat conftest.err >&5 | |
68f2de6d | 8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8122 | (exit $ac_status); } && { |
8123 | test -z "$ac_c_werror_flag" || | |
8124 | test ! -s conftest.err | |
68f2de6d AK |
8125 | } && test -s conftest$ac_exeext && |
8126 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8127 | ac_cv_func_pow=yes |
8128 | else | |
68f2de6d | 8129 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8130 | sed 's/^/| /' conftest.$ac_ext >&5 |
8131 | ||
7a197a62 | 8132 | ac_cv_func_pow=no |
ad6254c5 | 8133 | fi |
7a197a62 | 8134 | |
25fbec5b | 8135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8136 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8137 | fi |
68f2de6d AK |
8138 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8139 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8140 | |
8141 | if test $ac_cv_func_pow = no; then | |
68f2de6d AK |
8142 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8143 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8144 | if test "${ac_cv_lib_m_pow+set}" = set; then |
68f2de6d | 8145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8146 | else |
8147 | ac_check_lib_save_LIBS=$LIBS | |
8148 | LIBS="-lm $LIBS" | |
8149 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8150 | /* confdefs.h. */ |
8151 | _ACEOF | |
8152 | cat confdefs.h >>conftest.$ac_ext | |
8153 | cat >>conftest.$ac_ext <<_ACEOF | |
8154 | /* end confdefs.h. */ | |
8155 | ||
7a197a62 AK |
8156 | /* Override any GCC internal prototype to avoid an error. |
8157 | Use char because int might match the return type of a GCC | |
8158 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8159 | #ifdef __cplusplus |
8160 | extern "C" | |
8161 | #endif | |
ad6254c5 AK |
8162 | char pow (); |
8163 | int | |
8164 | main () | |
8165 | { | |
7a197a62 | 8166 | return pow (); |
ad6254c5 AK |
8167 | ; |
8168 | return 0; | |
8169 | } | |
8170 | _ACEOF | |
8171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8172 | if { (ac_try="$ac_link" |
8173 | case "(($ac_try" in | |
8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8175 | *) ac_try_echo=$ac_try;; | |
8176 | esac | |
68f2de6d | 8177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8178 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8179 | ac_status=$? |
8a2fc586 AK |
8180 | grep -v '^ *+' conftest.er1 >conftest.err |
8181 | rm -f conftest.er1 | |
8182 | cat conftest.err >&5 | |
68f2de6d | 8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8184 | (exit $ac_status); } && { |
8185 | test -z "$ac_c_werror_flag" || | |
8186 | test ! -s conftest.err | |
68f2de6d AK |
8187 | } && test -s conftest$ac_exeext && |
8188 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8189 | ac_cv_lib_m_pow=yes |
8190 | else | |
68f2de6d | 8191 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
8193 | ||
7a197a62 | 8194 | ac_cv_lib_m_pow=no |
ad6254c5 | 8195 | fi |
7a197a62 | 8196 | |
25fbec5b | 8197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8198 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8199 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8200 | fi |
68f2de6d AK |
8201 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8202 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8203 | if test $ac_cv_lib_m_pow = yes; then |
8204 | POW_LIB=-lm | |
8205 | else | |
68f2de6d AK |
8206 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8207 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8208 | fi |
72b2cb61 | 8209 | |
d0191583 | 8210 | fi |
72b2cb61 | 8211 | |
ad6254c5 AK |
8212 | fi |
8213 | ||
ad6254c5 | 8214 | |
d0191583 JM |
8215 | for ac_func in vprintf |
8216 | do | |
68f2de6d AK |
8217 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8218 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8219 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8220 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 8221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8222 | else |
d0191583 JM |
8223 | cat >conftest.$ac_ext <<_ACEOF |
8224 | /* confdefs.h. */ | |
8225 | _ACEOF | |
8226 | cat confdefs.h >>conftest.$ac_ext | |
8227 | cat >>conftest.$ac_ext <<_ACEOF | |
8228 | /* end confdefs.h. */ | |
8229 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8231 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8232 | |
d0191583 JM |
8233 | /* System header to define __stub macros and hopefully few prototypes, |
8234 | which can conflict with char $ac_func (); below. | |
8235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8236 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8237 | |
d0191583 JM |
8238 | #ifdef __STDC__ |
8239 | # include <limits.h> | |
8240 | #else | |
8241 | # include <assert.h> | |
8242 | #endif | |
ad6254c5 | 8243 | |
d0191583 | 8244 | #undef $ac_func |
72b2cb61 | 8245 | |
d0191583 JM |
8246 | /* Override any GCC internal prototype to avoid an error. |
8247 | Use char because int might match the return type of a GCC | |
8248 | builtin and then its argument prototype would still apply. */ | |
8249 | #ifdef __cplusplus | |
8250 | extern "C" | |
8251 | #endif | |
8252 | char $ac_func (); | |
8253 | /* The GNU C library defines this for functions which it implements | |
8254 | to always fail with ENOSYS. Some functions are actually named | |
8255 | something starting with __ and the normal name is an alias. */ | |
8256 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8257 | choke me | |
8258 | #endif | |
8259 | ||
8260 | int | |
8261 | main () | |
8262 | { | |
8263 | return $ac_func (); | |
8264 | ; | |
8265 | return 0; | |
8266 | } | |
72b2cb61 | 8267 | _ACEOF |
d0191583 JM |
8268 | rm -f conftest.$ac_objext conftest$ac_exeext |
8269 | if { (ac_try="$ac_link" | |
8270 | case "(($ac_try" in | |
8271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8272 | *) ac_try_echo=$ac_try;; | |
8273 | esac | |
68f2de6d | 8274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8275 | (eval "$ac_link") 2>conftest.er1 |
8276 | ac_status=$? | |
8277 | grep -v '^ *+' conftest.er1 >conftest.err | |
8278 | rm -f conftest.er1 | |
8279 | cat conftest.err >&5 | |
68f2de6d | 8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8281 | (exit $ac_status); } && { |
8282 | test -z "$ac_c_werror_flag" || | |
8283 | test ! -s conftest.err | |
68f2de6d AK |
8284 | } && test -s conftest$ac_exeext && |
8285 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8286 | eval "$as_ac_var=yes" |
8287 | else | |
68f2de6d | 8288 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8289 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8290 | |
d0191583 | 8291 | eval "$as_ac_var=no" |
ad6254c5 AK |
8292 | fi |
8293 | ||
d0191583 JM |
8294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8295 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8296 | fi |
68f2de6d AK |
8297 | ac_res=`eval echo '${'$as_ac_var'}'` |
8298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8299 | echo "${ECHO_T}$ac_res" >&6; } | |
8300 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8301 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 8302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8303 | _ACEOF |
7a197a62 | 8304 | |
68f2de6d AK |
8305 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8306 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8307 | if test "${ac_cv_func__doprnt+set}" = set; then |
68f2de6d | 8308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8309 | else |
d0191583 JM |
8310 | cat >conftest.$ac_ext <<_ACEOF |
8311 | /* confdefs.h. */ | |
8312 | _ACEOF | |
8313 | cat confdefs.h >>conftest.$ac_ext | |
8314 | cat >>conftest.$ac_ext <<_ACEOF | |
8315 | /* end confdefs.h. */ | |
8316 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8318 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8319 | |
d0191583 JM |
8320 | /* System header to define __stub macros and hopefully few prototypes, |
8321 | which can conflict with char _doprnt (); below. | |
8322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8323 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8324 | |
d0191583 JM |
8325 | #ifdef __STDC__ |
8326 | # include <limits.h> | |
8327 | #else | |
8328 | # include <assert.h> | |
8329 | #endif | |
72b2cb61 | 8330 | |
d0191583 JM |
8331 | #undef _doprnt |
8332 | ||
8333 | /* Override any GCC internal prototype to avoid an error. | |
8334 | Use char because int might match the return type of a GCC | |
8335 | builtin and then its argument prototype would still apply. */ | |
8336 | #ifdef __cplusplus | |
8337 | extern "C" | |
8338 | #endif | |
8339 | char _doprnt (); | |
8340 | /* The GNU C library defines this for functions which it implements | |
8341 | to always fail with ENOSYS. Some functions are actually named | |
8342 | something starting with __ and the normal name is an alias. */ | |
8343 | #if defined __stub__doprnt || defined __stub____doprnt | |
8344 | choke me | |
8345 | #endif | |
8346 | ||
8347 | int | |
8348 | main () | |
8349 | { | |
8350 | return _doprnt (); | |
8351 | ; | |
8352 | return 0; | |
8353 | } | |
72b2cb61 | 8354 | _ACEOF |
d0191583 JM |
8355 | rm -f conftest.$ac_objext conftest$ac_exeext |
8356 | if { (ac_try="$ac_link" | |
8357 | case "(($ac_try" in | |
8358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8359 | *) ac_try_echo=$ac_try;; | |
8360 | esac | |
68f2de6d | 8361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8362 | (eval "$ac_link") 2>conftest.er1 |
8363 | ac_status=$? | |
8364 | grep -v '^ *+' conftest.er1 >conftest.err | |
8365 | rm -f conftest.er1 | |
8366 | cat conftest.err >&5 | |
68f2de6d | 8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8368 | (exit $ac_status); } && { |
8369 | test -z "$ac_c_werror_flag" || | |
8370 | test ! -s conftest.err | |
68f2de6d AK |
8371 | } && test -s conftest$ac_exeext && |
8372 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8373 | ac_cv_func__doprnt=yes |
8374 | else | |
68f2de6d | 8375 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8377 | |
d0191583 | 8378 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8379 | fi |
8380 | ||
d0191583 JM |
8381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8382 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8383 | fi |
68f2de6d AK |
8384 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8385 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8386 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8387 | |
d0191583 JM |
8388 | cat >>confdefs.h <<\_ACEOF |
8389 | #define HAVE_DOPRNT 1 | |
8390 | _ACEOF | |
ad6254c5 | 8391 | |
7a197a62 AK |
8392 | fi |
8393 | ||
d0191583 JM |
8394 | fi |
8395 | done | |
8b1a3214 | 8396 | |
ad6254c5 | 8397 | |
7a197a62 | 8398 | |
d0191583 | 8399 | ################################################################################ |
ad6254c5 | 8400 | |
ad6254c5 AK |
8401 | |
8402 | ################################################################################ | |
68f2de6d AK |
8403 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8404 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8405 | OWNER="root" |
8406 | ||
8407 | ||
8408 | # Check whether --with-user was given. | |
8409 | if test "${with_user+set}" = set; then | |
8410 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8411 | fi |
8412 | ||
68f2de6d AK |
8413 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8414 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8415 | |
d0191583 JM |
8416 | if test x$OWNER != x; then |
8417 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8418 | fi |
8419 | ||
8420 | ################################################################################ | |
68f2de6d AK |
8421 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8422 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8423 | GROUP="root" |
ad6254c5 | 8424 | |
d0191583 JM |
8425 | # Check whether --with-group was given. |
8426 | if test "${with_group+set}" = set; then | |
8427 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8428 | fi |
8429 | ||
68f2de6d AK |
8430 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8431 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8432 | |
8433 | if test x$GROUP != x; then | |
8434 | GROUP="-g $GROUP" | |
8435 | fi | |
ad6254c5 | 8436 | |
24bbc4d7 AK |
8437 | ################################################################################ |
8438 | { echo "$as_me:$LINENO: checking device node uid" >&5 | |
8439 | echo $ECHO_N "checking device node uid... $ECHO_C" >&6; } | |
8440 | ||
8441 | ||
8442 | # Check whether --with-device-uid was given. | |
8443 | if test "${with_device_uid+set}" = set; then | |
8444 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8445 | else | |
8446 | DM_DEVICE_UID="0" | |
8447 | fi | |
8448 | ||
8449 | { echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 | |
8450 | echo "${ECHO_T}$DM_DEVICE_UID" >&6; } | |
8451 | ||
8452 | ################################################################################ | |
8453 | { echo "$as_me:$LINENO: checking device node gid" >&5 | |
8454 | echo $ECHO_N "checking device node gid... $ECHO_C" >&6; } | |
8455 | ||
8456 | ||
8457 | # Check whether --with-device-gid was given. | |
8458 | if test "${with_device_gid+set}" = set; then | |
8459 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8460 | else | |
8461 | DM_DEVICE_GID="0" | |
8462 | fi | |
8463 | ||
8464 | { echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 | |
8465 | echo "${ECHO_T}$DM_DEVICE_GID" >&6; } | |
8466 | ||
93bd259b AK |
8467 | ################################################################################ |
8468 | { echo "$as_me:$LINENO: checking device node mode" >&5 | |
8469 | echo $ECHO_N "checking device node mode... $ECHO_C" >&6; } | |
8470 | ||
8471 | ||
8472 | # Check whether --with-device-mode was given. | |
8473 | if test "${with_device_mode+set}" = set; then | |
8474 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8475 | else | |
8476 | DM_DEVICE_MODE="0600" | |
8477 | fi | |
8478 | ||
8479 | { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 | |
8480 | echo "${ECHO_T}$DM_DEVICE_MODE" >&6; } | |
8481 | ||
ad6254c5 | 8482 | ################################################################################ |
68f2de6d AK |
8483 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8484 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8485 | # Check whether --enable-lvm1_fallback was given. |
8486 | if test "${enable_lvm1_fallback+set}" = set; then | |
8487 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8488 | else | |
8489 | LVM1_FALLBACK=no | |
7a197a62 AK |
8490 | fi |
8491 | ||
68f2de6d AK |
8492 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8493 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8494 | |
d0191583 | 8495 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8496 | |
8497 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8498 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8499 | _ACEOF |
8500 | ||
ad6254c5 AK |
8501 | fi |
8502 | ||
8503 | ################################################################################ | |
68f2de6d AK |
8504 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8505 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8506 | |
8507 | # Check whether --with-lvm1 was given. | |
8508 | if test "${with_lvm1+set}" = set; then | |
8509 | withval=$with_lvm1; LVM1="$withval" | |
8510 | else | |
8511 | LVM1="internal" | |
7a197a62 AK |
8512 | fi |
8513 | ||
68f2de6d AK |
8514 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8515 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8516 | |
d0191583 | 8517 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
68f2de6d | 8518 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8519 | " >&5 |
68f2de6d | 8520 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8521 | " >&2;} |
8522 | { (exit 1); exit 1; }; } | |
8523 | fi; | |
8524 | ||
8525 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8526 | |
8527 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8528 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8529 | _ACEOF |
8530 | ||
ad6254c5 AK |
8531 | fi |
8532 | ||
8533 | ################################################################################ | |
68f2de6d AK |
8534 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8535 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8536 | |
8537 | # Check whether --with-pool was given. | |
8538 | if test "${with_pool+set}" = set; then | |
8539 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8540 | else |
d0191583 | 8541 | POOL="internal" |
7a197a62 AK |
8542 | fi |
8543 | ||
68f2de6d AK |
8544 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8545 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8546 | |
d0191583 | 8547 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
68f2de6d | 8548 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8549 | " >&5 |
68f2de6d | 8550 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8551 | " >&2;} |
8552 | { (exit 1); exit 1; }; } | |
8553 | fi; | |
7a197a62 | 8554 | |
d0191583 JM |
8555 | if test x$POOL = xinternal; then |
8556 | ||
8557 | cat >>confdefs.h <<\_ACEOF | |
8558 | #define POOL_INTERNAL 1 | |
8559 | _ACEOF | |
8560 | ||
8561 | fi | |
ad6254c5 | 8562 | |
06f62ad1 | 8563 | ################################################################################ |
68f2de6d AK |
8564 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8565 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8566 | |
8567 | # Check whether --with-cluster was given. | |
8568 | if test "${with_cluster+set}" = set; then | |
8569 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8570 | fi |
8571 | ||
68f2de6d AK |
8572 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8573 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8574 | |
d0191583 | 8575 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
68f2de6d | 8576 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8577 | " >&5 |
68f2de6d | 8578 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8579 | " >&2;} |
8580 | { (exit 1); exit 1; }; } | |
d0191583 | 8581 | fi; |
06f62ad1 | 8582 | |
d0191583 | 8583 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8584 | |
8585 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8586 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8587 | _ACEOF |
8588 | ||
15d91f5a | 8589 | fi |
ad6254c5 AK |
8590 | |
8591 | ################################################################################ | |
68f2de6d AK |
8592 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8593 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8594 | |
d0191583 JM |
8595 | # Check whether --with-snapshots was given. |
8596 | if test "${with_snapshots+set}" = set; then | |
8597 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8598 | else | |
8599 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8600 | fi |
8601 | ||
68f2de6d AK |
8602 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8603 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8604 | |
d0191583 | 8605 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
68f2de6d | 8606 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8607 | " >&5 |
68f2de6d | 8608 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8609 | " >&2;} |
8610 | { (exit 1); exit 1; }; } | |
8611 | fi; | |
8612 | ||
8613 | if test x$SNAPSHOTS = xinternal; then | |
8614 | ||
8615 | cat >>confdefs.h <<\_ACEOF | |
8616 | #define SNAPSHOT_INTERNAL 1 | |
8617 | _ACEOF | |
ad6254c5 | 8618 | |
ad6254c5 | 8619 | fi |
7a197a62 | 8620 | |
d0191583 | 8621 | ################################################################################ |
68f2de6d AK |
8622 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8623 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8624 | |
8625 | # Check whether --with-mirrors was given. | |
8626 | if test "${with_mirrors+set}" = set; then | |
8627 | withval=$with_mirrors; MIRRORS="$withval" | |
8628 | else | |
8629 | MIRRORS="internal" | |
ad6254c5 | 8630 | fi |
ad6254c5 | 8631 | |
68f2de6d AK |
8632 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8633 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8634 | |
d0191583 | 8635 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
68f2de6d | 8636 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8637 | " >&5 |
68f2de6d | 8638 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8639 | " >&2;} |
8640 | { (exit 1); exit 1; }; } | |
8641 | fi; | |
ad6254c5 | 8642 | |
d0191583 | 8643 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8644 | |
d0191583 JM |
8645 | cat >>confdefs.h <<\_ACEOF |
8646 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8647 | _ACEOF |
8a2fc586 | 8648 | |
d0191583 | 8649 | fi |
8a2fc586 | 8650 | |
d0191583 | 8651 | ################################################################################ |
68f2de6d AK |
8652 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8653 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8654 | # Check whether --enable-readline was given. |
8655 | if test "${enable_readline+set}" = set; then | |
8656 | enableval=$enable_readline; READLINE=$enableval | |
8657 | else | |
06e459df | 8658 | READLINE=maybe |
d0191583 | 8659 | fi |
8a2fc586 | 8660 | |
68f2de6d AK |
8661 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8662 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8663 | |
d0191583 | 8664 | ################################################################################ |
68f2de6d AK |
8665 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8666 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8667 | # Check whether --enable-realtime was given. |
8668 | if test "${enable_realtime+set}" = set; then | |
8669 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8670 | fi |
ad6254c5 | 8671 | |
68f2de6d AK |
8672 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8673 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8674 | |
8675 | ################################################################################ | |
68f2de6d AK |
8676 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8677 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8678 | |
8679 | # Check whether --with-clvmd was given. | |
8680 | if test "${with_clvmd+set}" = set; then | |
8681 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8682 | else |
d0191583 JM |
8683 | CLVMD="none" |
8684 | fi | |
8a2fc586 | 8685 | |
d0191583 JM |
8686 | if test x$CLVMD = xyes; then |
8687 | CLVMD=all | |
8688 | fi | |
68f2de6d AK |
8689 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8690 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8691 | |
d0191583 JM |
8692 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8693 | CLUSTER=internal | |
8694 | fi | |
8a2fc586 | 8695 | |
d0191583 | 8696 | ################################################################################ |
68f2de6d AK |
8697 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8698 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8699 | # Check whether --enable-debug was given. |
8700 | if test "${enable_debug+set}" = set; then | |
8701 | enableval=$enable_debug; DEBUG=$enableval | |
8702 | else | |
8703 | DEBUG=no | |
8704 | fi | |
8a2fc586 | 8705 | |
68f2de6d AK |
8706 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8707 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8708 | |
d0191583 JM |
8709 | if test x$DEBUG = xyes; then |
8710 | COPTIMISE_FLAG= | |
fc54be10 | 8711 | else |
d0191583 JM |
8712 | CSCOPE_CMD= |
8713 | fi | |
fc54be10 | 8714 | |
d0191583 | 8715 | ################################################################################ |
68f2de6d AK |
8716 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8717 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8718 | |
8719 | # Check whether --with-optimisation was given. | |
8720 | if test "${with_optimisation+set}" = set; then | |
8721 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8722 | fi | |
8723 | ||
68f2de6d AK |
8724 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8725 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8726 | |
8727 | ################################################################################ | |
68f2de6d AK |
8728 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8729 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8730 | # Check whether --enable-profiling was given. |
8731 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8732 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8733 | else |
5556819a | 8734 | PROFILING=no |
fddafd51 ZK |
8735 | fi |
8736 | ||
68f2de6d AK |
8737 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8738 | echo "${ECHO_T}$PROFILING" >&6; } | |
5556819a AK |
8739 | |
8740 | if test "x$PROFILING" = xyes; then | |
8741 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8742 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8743 | set dummy lcov; ac_word=$2 |
68f2de6d AK |
8744 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8746 | if test "${ac_cv_path_LCOV+set}" = set; then |
68f2de6d | 8747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8748 | else |
8749 | case $LCOV in | |
8750 | [\\/]* | ?:[\\/]*) | |
8751 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8752 | ;; | |
8753 | *) | |
8754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8755 | for as_dir in $PATH | |
8756 | do | |
8757 | IFS=$as_save_IFS | |
8758 | test -z "$as_dir" && as_dir=. | |
8759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8761 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8763 | break 2 |
8764 | fi | |
8765 | done | |
8766 | done | |
8767 | IFS=$as_save_IFS | |
8768 | ||
b145d876 | 8769 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
8770 | ;; |
8771 | esac | |
8772 | fi | |
8773 | LCOV=$ac_cv_path_LCOV | |
8774 | if test -n "$LCOV"; then | |
68f2de6d AK |
8775 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8776 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8777 | else |
68f2de6d AK |
8778 | { echo "$as_me:$LINENO: result: no" >&5 |
8779 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8780 | fi |
8781 | ||
8782 | ||
5556819a | 8783 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8784 | set dummy genhtml; ac_word=$2 |
68f2de6d AK |
8785 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8787 | if test "${ac_cv_path_GENHTML+set}" = set; then |
68f2de6d | 8788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8789 | else |
8790 | case $GENHTML in | |
8791 | [\\/]* | ?:[\\/]*) | |
8792 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8793 | ;; | |
8794 | *) | |
8795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8796 | for as_dir in $PATH | |
8797 | do | |
8798 | IFS=$as_save_IFS | |
8799 | test -z "$as_dir" && as_dir=. | |
8800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8802 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8804 | break 2 |
8805 | fi | |
8806 | done | |
8807 | done | |
8808 | IFS=$as_save_IFS | |
8809 | ||
b145d876 | 8810 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
8811 | ;; |
8812 | esac | |
8813 | fi | |
8814 | GENHTML=$ac_cv_path_GENHTML | |
8815 | if test -n "$GENHTML"; then | |
68f2de6d AK |
8816 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8817 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8818 | else |
68f2de6d AK |
8819 | { echo "$as_me:$LINENO: result: no" >&5 |
8820 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8821 | fi |
8822 | ||
8823 | ||
b145d876 | 8824 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
68f2de6d AK |
8825 | { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
8826 | echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
8827 | { (exit 1); exit 1; }; } |
8828 | fi | |
5556819a | 8829 | fi |
d0191583 JM |
8830 | |
8831 | ################################################################################ | |
68f2de6d AK |
8832 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8833 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8834 | # Check whether --enable-devmapper was given. |
8835 | if test "${enable_devmapper+set}" = set; then | |
8836 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8837 | fi |
8838 | ||
68f2de6d AK |
8839 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8840 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8841 | |
8842 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8843 | |
8844 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8845 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8846 | _ACEOF |
8847 | ||
8848 | fi | |
8849 | ||
93bd259b AK |
8850 | ################################################################################ |
8851 | # Check whether --enable-compat was given. | |
8852 | if test "${enable_compat+set}" = set; then | |
8853 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8854 | else | |
8855 | DM_COMPAT=no | |
8856 | fi | |
8857 | ||
8858 | ||
8859 | ################################################################################ | |
8860 | # Check whether --enable-ioctl was given. | |
8861 | if test "${enable_ioctl+set}" = set; then | |
8862 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
8863 | fi | |
8864 | ||
8865 | ||
d0191583 | 8866 | ################################################################################ |
68f2de6d AK |
8867 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8868 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8869 | # Check whether --enable-o_direct was given. |
8870 | if test "${enable_o_direct+set}" = set; then | |
8871 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8872 | fi |
ad6254c5 | 8873 | |
68f2de6d AK |
8874 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8875 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8876 | |
d0191583 | 8877 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8878 | |
d0191583 JM |
8879 | cat >>confdefs.h <<\_ACEOF |
8880 | #define O_DIRECT_SUPPORT 1 | |
8881 | _ACEOF | |
ad6254c5 | 8882 | |
d0191583 | 8883 | fi |
ad6254c5 | 8884 | |
d0191583 | 8885 | ################################################################################ |
68f2de6d AK |
8886 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8887 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8888 | # Check whether --enable-cmdlib was given. |
8889 | if test "${enable_cmdlib+set}" = set; then | |
8890 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8891 | else |
d0191583 JM |
8892 | CMDLIB=no |
8893 | fi | |
8a2fc586 | 8894 | |
68f2de6d AK |
8895 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8896 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8897 | |
2a9a80c9 | 8898 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8899 | && LVM2CMD_LIB=-llvm2cmd \ |
8900 | || LVM2CMD_LIB= | |
8901 | ||
93bd259b AK |
8902 | ################################################################################ |
8903 | # Check whether --enable-pkgconfig was given. | |
8904 | if test "${enable_pkgconfig+set}" = set; then | |
8905 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
8906 | else | |
8907 | PKGCONFIG=no | |
8908 | fi | |
8909 | ||
2a9a80c9 | 8910 | |
d0191583 | 8911 | ################################################################################ |
68f2de6d AK |
8912 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8913 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8914 | # Check whether --enable-fsadm was given. |
8915 | if test "${enable_fsadm+set}" = set; then | |
8916 | enableval=$enable_fsadm; FSADM=$enableval | |
8917 | fi | |
8a2fc586 | 8918 | |
68f2de6d AK |
8919 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8920 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8921 | |
d0191583 | 8922 | ################################################################################ |
68f2de6d AK |
8923 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8924 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8925 | # Check whether --enable-dmeventd was given. |
8926 | if test "${enable_dmeventd+set}" = set; then | |
8927 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8928 | fi | |
ad6254c5 | 8929 | |
68f2de6d AK |
8930 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8931 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8932 | |
93bd259b AK |
8933 | BUILD_DMEVENTD=$DMEVENTD |
8934 | ||
2a9a80c9 PR |
8935 | if test x$DMEVENTD = xyes; then |
8936 | if test x$MIRRORS != xinternal; then | |
68f2de6d | 8937 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8938 | " >&5 |
68f2de6d | 8939 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8940 | " >&2;} |
d0191583 | 8941 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8942 | fi |
8943 | if test x$CMDLIB = xno; then | |
68f2de6d | 8944 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 8945 | " >&5 |
68f2de6d | 8946 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
8947 | " >&2;} |
8948 | { (exit 1); exit 1; }; } | |
8949 | fi | |
ad6254c5 | 8950 | fi |
7a197a62 | 8951 | |
d0191583 JM |
8952 | if test x$DMEVENTD = xyes; then |
8953 | ||
8954 | cat >>confdefs.h <<\_ACEOF | |
8955 | #define DMEVENTD 1 | |
ad6254c5 AK |
8956 | _ACEOF |
8957 | ||
ad6254c5 | 8958 | fi |
93bd259b AK |
8959 | |
8960 | ################################################################################ | |
8961 | ||
8962 | { echo "$as_me:$LINENO: checking for getline in -lc" >&5 | |
8963 | echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; } | |
8964 | if test "${ac_cv_lib_c_getline+set}" = set; then | |
8965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8966 | else | |
8967 | ac_check_lib_save_LIBS=$LIBS | |
8968 | LIBS="-lc $LIBS" | |
8969 | cat >conftest.$ac_ext <<_ACEOF | |
8970 | /* confdefs.h. */ | |
8971 | _ACEOF | |
8972 | cat confdefs.h >>conftest.$ac_ext | |
8973 | cat >>conftest.$ac_ext <<_ACEOF | |
8974 | /* end confdefs.h. */ | |
8975 | ||
8976 | /* Override any GCC internal prototype to avoid an error. | |
8977 | Use char because int might match the return type of a GCC | |
8978 | builtin and then its argument prototype would still apply. */ | |
8979 | #ifdef __cplusplus | |
8980 | extern "C" | |
8981 | #endif | |
8982 | char getline (); | |
8983 | int | |
8984 | main () | |
8985 | { | |
8986 | return getline (); | |
8987 | ; | |
8988 | return 0; | |
8989 | } | |
8990 | _ACEOF | |
8991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8992 | if { (ac_try="$ac_link" | |
8993 | case "(($ac_try" in | |
8994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8995 | *) ac_try_echo=$ac_try;; | |
8996 | esac | |
8997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8998 | (eval "$ac_link") 2>conftest.er1 | |
8999 | ac_status=$? | |
9000 | grep -v '^ *+' conftest.er1 >conftest.err | |
9001 | rm -f conftest.er1 | |
9002 | cat conftest.err >&5 | |
9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9004 | (exit $ac_status); } && { | |
9005 | test -z "$ac_c_werror_flag" || | |
9006 | test ! -s conftest.err | |
9007 | } && test -s conftest$ac_exeext && | |
9008 | $as_test_x conftest$ac_exeext; then | |
9009 | ac_cv_lib_c_getline=yes | |
9010 | else | |
9011 | echo "$as_me: failed program was:" >&5 | |
9012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9013 | ||
9014 | ac_cv_lib_c_getline=no | |
9015 | fi | |
9016 | ||
9017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9018 | conftest$ac_exeext conftest.$ac_ext | |
9019 | LIBS=$ac_check_lib_save_LIBS | |
9020 | fi | |
9021 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 | |
9022 | echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; } | |
9023 | if test $ac_cv_lib_c_getline = yes; then | |
9024 | ||
9025 | cat >>confdefs.h <<\_ACEOF | |
9026 | #define HAVE_GETLINE 1 | |
9027 | _ACEOF | |
9028 | ||
9029 | fi | |
9030 | ||
9031 | ||
9032 | ################################################################################ | |
9033 | ||
9034 | { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 | |
9035 | echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; } | |
9036 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then | |
9037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9038 | else | |
9039 | ac_check_lib_save_LIBS=$LIBS | |
9040 | LIBS="-lc $LIBS" | |
9041 | cat >conftest.$ac_ext <<_ACEOF | |
9042 | /* confdefs.h. */ | |
9043 | _ACEOF | |
9044 | cat confdefs.h >>conftest.$ac_ext | |
9045 | cat >>conftest.$ac_ext <<_ACEOF | |
9046 | /* end confdefs.h. */ | |
9047 | ||
9048 | /* Override any GCC internal prototype to avoid an error. | |
9049 | Use char because int might match the return type of a GCC | |
9050 | builtin and then its argument prototype would still apply. */ | |
9051 | #ifdef __cplusplus | |
9052 | extern "C" | |
9053 | #endif | |
9054 | char canonicalize_file_name (); | |
9055 | int | |
9056 | main () | |
9057 | { | |
9058 | return canonicalize_file_name (); | |
9059 | ; | |
9060 | return 0; | |
9061 | } | |
9062 | _ACEOF | |
9063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9064 | if { (ac_try="$ac_link" | |
9065 | case "(($ac_try" in | |
9066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9067 | *) ac_try_echo=$ac_try;; | |
9068 | esac | |
9069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9070 | (eval "$ac_link") 2>conftest.er1 | |
9071 | ac_status=$? | |
9072 | grep -v '^ *+' conftest.er1 >conftest.err | |
9073 | rm -f conftest.er1 | |
9074 | cat conftest.err >&5 | |
9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9076 | (exit $ac_status); } && { | |
9077 | test -z "$ac_c_werror_flag" || | |
9078 | test ! -s conftest.err | |
9079 | } && test -s conftest$ac_exeext && | |
9080 | $as_test_x conftest$ac_exeext; then | |
9081 | ac_cv_lib_c_canonicalize_file_name=yes | |
9082 | else | |
9083 | echo "$as_me: failed program was:" >&5 | |
9084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9085 | ||
9086 | ac_cv_lib_c_canonicalize_file_name=no | |
9087 | fi | |
9088 | ||
9089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9090 | conftest$ac_exeext conftest.$ac_ext | |
9091 | LIBS=$ac_check_lib_save_LIBS | |
9092 | fi | |
9093 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9094 | echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9095 | if test $ac_cv_lib_c_canonicalize_file_name = yes; then | |
9096 | ||
9097 | cat >>confdefs.h <<\_ACEOF | |
9098 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9099 | _ACEOF | |
9100 | ||
9101 | fi | |
9102 | ||
9103 | ||
d0191583 JM |
9104 | ################################################################################ |
9105 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9106 | then exec_prefix=""; | |
9107 | fi; | |
ad6254c5 AK |
9108 | |
9109 | ################################################################################ | |
06e459df | 9110 | if test x$READLINE != xno; then |
68f2de6d AK |
9111 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9112 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 9113 | if test "${ac_cv_search_tgetent+set}" = set; then |
68f2de6d | 9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9115 | else |
9116 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9117 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9118 | /* confdefs.h. */ |
9119 | _ACEOF | |
9120 | cat confdefs.h >>conftest.$ac_ext | |
9121 | cat >>conftest.$ac_ext <<_ACEOF | |
9122 | /* end confdefs.h. */ | |
9123 | ||
7a197a62 AK |
9124 | /* Override any GCC internal prototype to avoid an error. |
9125 | Use char because int might match the return type of a GCC | |
9126 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9127 | #ifdef __cplusplus |
9128 | extern "C" | |
9129 | #endif | |
ad6254c5 AK |
9130 | char tgetent (); |
9131 | int | |
9132 | main () | |
9133 | { | |
7a197a62 | 9134 | return tgetent (); |
ad6254c5 AK |
9135 | ; |
9136 | return 0; | |
9137 | } | |
9138 | _ACEOF | |
7a197a62 AK |
9139 | for ac_lib in '' ncurses curses termcap termlib; do |
9140 | if test -z "$ac_lib"; then | |
9141 | ac_res="none required" | |
9142 | else | |
9143 | ac_res=-l$ac_lib | |
9144 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9145 | fi | |
9146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9147 | if { (ac_try="$ac_link" | |
9148 | case "(($ac_try" in | |
9149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9150 | *) ac_try_echo=$ac_try;; | |
9151 | esac | |
68f2de6d | 9152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9153 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9154 | ac_status=$? |
8a2fc586 AK |
9155 | grep -v '^ *+' conftest.er1 >conftest.err |
9156 | rm -f conftest.er1 | |
9157 | cat conftest.err >&5 | |
68f2de6d | 9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9159 | (exit $ac_status); } && { |
9160 | test -z "$ac_c_werror_flag" || | |
9161 | test ! -s conftest.err | |
68f2de6d AK |
9162 | } && test -s conftest$ac_exeext && |
9163 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 9164 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9165 | else |
68f2de6d | 9166 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9167 | sed 's/^/| /' conftest.$ac_ext >&5 |
9168 | ||
ad6254c5 | 9169 | |
7a197a62 | 9170 | fi |
ad6254c5 | 9171 | |
25fbec5b | 9172 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
9173 | conftest$ac_exeext |
9174 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9175 | break | |
ad6254c5 | 9176 | fi |
7a197a62 AK |
9177 | done |
9178 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9179 | : | |
9180 | else | |
9181 | ac_cv_search_tgetent=no | |
ad6254c5 | 9182 | fi |
7a197a62 | 9183 | rm conftest.$ac_ext |
ad6254c5 AK |
9184 | LIBS=$ac_func_search_save_LIBS |
9185 | fi | |
68f2de6d AK |
9186 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9187 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9188 | ac_res=$ac_cv_search_tgetent |
9189 | if test "$ac_res" != no; then | |
9190 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 9191 | tg_found=yes |
ad6254c5 | 9192 | else |
06e459df JM |
9193 | tg_found=no |
9194 | fi | |
9195 | ||
9196 | test x$READLINE:$tg_found = xyes:no && | |
68f2de6d | 9197 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9198 | --enable-readline option (which is enabled by default). Either disable readline |
9199 | support with --disable-readline or download and install termcap from: | |
9200 | ftp.gnu.org/gnu/termcap | |
9201 | Note: if you are using precompiled packages you will also need the development | |
9202 | package as well (which may be called termcap-devel or something similar). | |
9203 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9204 | not found either - but you could try installing that as well. | |
9205 | " >&5 | |
68f2de6d | 9206 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9207 | --enable-readline option (which is enabled by default). Either disable readline |
9208 | support with --disable-readline or download and install termcap from: | |
9209 | ftp.gnu.org/gnu/termcap | |
9210 | Note: if you are using precompiled packages you will also need the development | |
9211 | package as well (which may be called termcap-devel or something similar). | |
9212 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9213 | not found either - but you could try installing that as well. | |
9214 | " >&2;} | |
9215 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
9216 | fi |
9217 | ||
9218 | ################################################################################ | |
68f2de6d AK |
9219 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9220 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 9221 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
68f2de6d | 9222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9223 | else |
9224 | ac_check_lib_save_LIBS=$LIBS | |
9225 | LIBS="-ldl $LIBS" | |
9226 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9227 | /* confdefs.h. */ |
9228 | _ACEOF | |
9229 | cat confdefs.h >>conftest.$ac_ext | |
9230 | cat >>conftest.$ac_ext <<_ACEOF | |
9231 | /* end confdefs.h. */ | |
9232 | ||
7a197a62 AK |
9233 | /* Override any GCC internal prototype to avoid an error. |
9234 | Use char because int might match the return type of a GCC | |
9235 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9236 | #ifdef __cplusplus |
9237 | extern "C" | |
9238 | #endif | |
ad6254c5 AK |
9239 | char dlopen (); |
9240 | int | |
9241 | main () | |
9242 | { | |
7a197a62 | 9243 | return dlopen (); |
ad6254c5 AK |
9244 | ; |
9245 | return 0; | |
9246 | } | |
9247 | _ACEOF | |
9248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9249 | if { (ac_try="$ac_link" |
9250 | case "(($ac_try" in | |
9251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9252 | *) ac_try_echo=$ac_try;; | |
9253 | esac | |
68f2de6d | 9254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9255 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9256 | ac_status=$? |
8a2fc586 AK |
9257 | grep -v '^ *+' conftest.er1 >conftest.err |
9258 | rm -f conftest.er1 | |
9259 | cat conftest.err >&5 | |
68f2de6d | 9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9261 | (exit $ac_status); } && { |
9262 | test -z "$ac_c_werror_flag" || | |
9263 | test ! -s conftest.err | |
68f2de6d AK |
9264 | } && test -s conftest$ac_exeext && |
9265 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9266 | ac_cv_lib_dl_dlopen=yes |
9267 | else | |
68f2de6d | 9268 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9269 | sed 's/^/| /' conftest.$ac_ext >&5 |
9270 | ||
7a197a62 | 9271 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9272 | fi |
7a197a62 | 9273 | |
25fbec5b | 9274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9275 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9276 | LIBS=$ac_check_lib_save_LIBS |
9277 | fi | |
68f2de6d AK |
9278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9279 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9280 | if test $ac_cv_lib_dl_dlopen = yes; then |
9281 | HAVE_LIBDL=yes | |
9282 | else | |
9283 | HAVE_LIBDL=no | |
9284 | fi | |
9285 | ||
9286 | ||
7e9e9502 | 9287 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9288 | |
9289 | cat >>confdefs.h <<\_ACEOF | |
9290 | #define HAVE_LIBDL 1 | |
9291 | _ACEOF | |
9292 | ||
ad6254c5 AK |
9293 | LIBS="-ldl $LIBS" |
9294 | else | |
9295 | HAVE_LIBDL=no | |
9296 | fi | |
9297 | ||
9298 | ################################################################################ | |
9299 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9300 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9301 | \) -a "x$STATIC_LINK" = xyes ]; | |
68f2de6d | 9302 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9303 | " >&5 |
68f2de6d | 9304 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9305 | " >&2;} |
9306 | { (exit 1); exit 1; }; } | |
9307 | fi | |
9308 | ||
d0191583 | 9309 | ################################################################################ |
68f2de6d AK |
9310 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9311 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
9312 | # Check whether --enable-static_link was given. |
9313 | if test "${enable_static_link+set}" = set; then | |
9314 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9315 | else | |
9316 | STATIC_LINK=no | |
9317 | fi | |
9318 | ||
68f2de6d AK |
9319 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9320 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
9321 | |
9322 | ################################################################################ | |
68f2de6d AK |
9323 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9324 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9325 | # Check whether --enable-selinux was given. |
9326 | if test "${enable_selinux+set}" = set; then | |
9327 | enableval=$enable_selinux; SELINUX=$enableval | |
9328 | fi | |
9329 | ||
68f2de6d AK |
9330 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9331 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9332 | |
ad6254c5 AK |
9333 | ################################################################################ |
9334 | if test x$SELINUX = xyes; then | |
68f2de6d AK |
9335 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9336 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9337 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
68f2de6d | 9338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9339 | else |
9340 | ac_check_lib_save_LIBS=$LIBS | |
9341 | LIBS="-lsepol $LIBS" | |
9342 | cat >conftest.$ac_ext <<_ACEOF | |
9343 | /* confdefs.h. */ | |
9344 | _ACEOF | |
9345 | cat confdefs.h >>conftest.$ac_ext | |
9346 | cat >>conftest.$ac_ext <<_ACEOF | |
9347 | /* end confdefs.h. */ | |
9348 | ||
7a197a62 AK |
9349 | /* Override any GCC internal prototype to avoid an error. |
9350 | Use char because int might match the return type of a GCC | |
9351 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9352 | #ifdef __cplusplus |
9353 | extern "C" | |
9354 | #endif | |
8a2fc586 AK |
9355 | char sepol_check_context (); |
9356 | int | |
9357 | main () | |
9358 | { | |
7a197a62 | 9359 | return sepol_check_context (); |
8a2fc586 AK |
9360 | ; |
9361 | return 0; | |
9362 | } | |
9363 | _ACEOF | |
9364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9365 | if { (ac_try="$ac_link" |
9366 | case "(($ac_try" in | |
9367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9368 | *) ac_try_echo=$ac_try;; | |
9369 | esac | |
68f2de6d | 9370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9371 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9372 | ac_status=$? |
9373 | grep -v '^ *+' conftest.er1 >conftest.err | |
9374 | rm -f conftest.er1 | |
9375 | cat conftest.err >&5 | |
68f2de6d | 9376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9377 | (exit $ac_status); } && { |
9378 | test -z "$ac_c_werror_flag" || | |
9379 | test ! -s conftest.err | |
68f2de6d AK |
9380 | } && test -s conftest$ac_exeext && |
9381 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9382 | ac_cv_lib_sepol_sepol_check_context=yes |
9383 | else | |
68f2de6d | 9384 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9385 | sed 's/^/| /' conftest.$ac_ext >&5 |
9386 | ||
7a197a62 | 9387 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9388 | fi |
7a197a62 | 9389 | |
25fbec5b | 9390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9391 | conftest$ac_exeext conftest.$ac_ext |
9392 | LIBS=$ac_check_lib_save_LIBS | |
9393 | fi | |
68f2de6d AK |
9394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9395 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9396 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9397 | HAVE_SEPOL=yes | |
9398 | else | |
9399 | HAVE_SEPOL=no | |
9400 | fi | |
9401 | ||
8a2fc586 AK |
9402 | |
9403 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9404 | |
9405 | cat >>confdefs.h <<\_ACEOF | |
9406 | #define HAVE_SEPOL 1 | |
9407 | _ACEOF | |
9408 | ||
8a2fc586 AK |
9409 | LIBS="-lsepol $LIBS" |
9410 | fi | |
9411 | ||
68f2de6d AK |
9412 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9413 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9414 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
68f2de6d | 9415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9416 | else |
9417 | ac_check_lib_save_LIBS=$LIBS | |
9418 | LIBS="-lselinux $LIBS" | |
9419 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9420 | /* confdefs.h. */ |
9421 | _ACEOF | |
9422 | cat confdefs.h >>conftest.$ac_ext | |
9423 | cat >>conftest.$ac_ext <<_ACEOF | |
9424 | /* end confdefs.h. */ | |
9425 | ||
7a197a62 AK |
9426 | /* Override any GCC internal prototype to avoid an error. |
9427 | Use char because int might match the return type of a GCC | |
9428 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9429 | #ifdef __cplusplus |
9430 | extern "C" | |
9431 | #endif | |
ad6254c5 AK |
9432 | char is_selinux_enabled (); |
9433 | int | |
9434 | main () | |
9435 | { | |
7a197a62 | 9436 | return is_selinux_enabled (); |
ad6254c5 AK |
9437 | ; |
9438 | return 0; | |
9439 | } | |
9440 | _ACEOF | |
9441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9442 | if { (ac_try="$ac_link" |
9443 | case "(($ac_try" in | |
9444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9445 | *) ac_try_echo=$ac_try;; | |
9446 | esac | |
68f2de6d | 9447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9448 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9449 | ac_status=$? |
8a2fc586 AK |
9450 | grep -v '^ *+' conftest.er1 >conftest.err |
9451 | rm -f conftest.er1 | |
9452 | cat conftest.err >&5 | |
68f2de6d | 9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9454 | (exit $ac_status); } && { |
9455 | test -z "$ac_c_werror_flag" || | |
9456 | test ! -s conftest.err | |
68f2de6d AK |
9457 | } && test -s conftest$ac_exeext && |
9458 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9459 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9460 | else | |
68f2de6d | 9461 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9462 | sed 's/^/| /' conftest.$ac_ext >&5 |
9463 | ||
7a197a62 | 9464 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9465 | fi |
7a197a62 | 9466 | |
25fbec5b | 9467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9468 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9469 | LIBS=$ac_check_lib_save_LIBS |
9470 | fi | |
68f2de6d AK |
9471 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9472 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9473 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9474 | HAVE_SELINUX=yes | |
9475 | else | |
9476 | HAVE_SELINUX=no | |
9477 | fi | |
9478 | ||
ad6254c5 AK |
9479 | |
9480 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9481 | |
9482 | cat >>confdefs.h <<\_ACEOF | |
9483 | #define HAVE_SELINUX 1 | |
9484 | _ACEOF | |
9485 | ||
ad6254c5 AK |
9486 | LIBS="-lselinux $LIBS" |
9487 | else | |
68f2de6d AK |
9488 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9489 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9490 | fi |
9491 | ||
d0191583 | 9492 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9493 | # fails on at least Debian unstable due to unsatisfied references |
9494 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9495 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9496 | lvm_saved_libs=$LIBS | |
9497 | LIBS="$LIBS -static" | |
68f2de6d AK |
9498 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9499 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9500 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
68f2de6d | 9501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9502 | else |
9503 | ac_func_search_save_LIBS=$LIBS | |
9504 | cat >conftest.$ac_ext <<_ACEOF | |
9505 | /* confdefs.h. */ | |
9506 | _ACEOF | |
9507 | cat confdefs.h >>conftest.$ac_ext | |
9508 | cat >>conftest.$ac_ext <<_ACEOF | |
9509 | /* end confdefs.h. */ | |
9510 | ||
9511 | /* Override any GCC internal prototype to avoid an error. | |
9512 | Use char because int might match the return type of a GCC | |
9513 | builtin and then its argument prototype would still apply. */ | |
9514 | #ifdef __cplusplus | |
9515 | extern "C" | |
9516 | #endif | |
9517 | char pthread_mutex_lock (); | |
9518 | int | |
9519 | main () | |
9520 | { | |
9521 | return pthread_mutex_lock (); | |
9522 | ; | |
9523 | return 0; | |
9524 | } | |
9525 | _ACEOF | |
9526 | for ac_lib in '' pthread; do | |
9527 | if test -z "$ac_lib"; then | |
9528 | ac_res="none required" | |
9529 | else | |
9530 | ac_res=-l$ac_lib | |
9531 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9532 | fi | |
9533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9534 | if { (ac_try="$ac_link" | |
9535 | case "(($ac_try" in | |
9536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9537 | *) ac_try_echo=$ac_try;; | |
9538 | esac | |
68f2de6d | 9539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9540 | (eval "$ac_link") 2>conftest.er1 |
9541 | ac_status=$? | |
9542 | grep -v '^ *+' conftest.er1 >conftest.err | |
9543 | rm -f conftest.er1 | |
9544 | cat conftest.err >&5 | |
68f2de6d | 9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9546 | (exit $ac_status); } && { |
9547 | test -z "$ac_c_werror_flag" || | |
9548 | test ! -s conftest.err | |
68f2de6d AK |
9549 | } && test -s conftest$ac_exeext && |
9550 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9551 | ac_cv_search_pthread_mutex_lock=$ac_res |
9552 | else | |
68f2de6d | 9553 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9554 | sed 's/^/| /' conftest.$ac_ext >&5 |
9555 | ||
9556 | ||
9557 | fi | |
9558 | ||
25fbec5b | 9559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9560 | conftest$ac_exeext |
9561 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9562 | break | |
9563 | fi | |
9564 | done | |
9565 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9566 | : | |
9567 | else | |
9568 | ac_cv_search_pthread_mutex_lock=no | |
9569 | fi | |
9570 | rm conftest.$ac_ext | |
9571 | LIBS=$ac_func_search_save_LIBS | |
9572 | fi | |
68f2de6d AK |
9573 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9574 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9575 | ac_res=$ac_cv_search_pthread_mutex_lock |
9576 | if test "$ac_res" != no; then | |
9577 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9578 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9579 | LIB_PTHREAD=-lpthread | |
9580 | fi | |
9581 | ||
9582 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9583 | fi |
9584 | fi | |
9585 | ||
8b1a3214 AK |
9586 | ################################################################################ |
9587 | if test x$REALTIME = xyes; then | |
68f2de6d AK |
9588 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9589 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9590 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
68f2de6d | 9591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9592 | else |
9593 | ac_check_lib_save_LIBS=$LIBS | |
9594 | LIBS="-lrt $LIBS" | |
9595 | cat >conftest.$ac_ext <<_ACEOF | |
9596 | /* confdefs.h. */ | |
9597 | _ACEOF | |
9598 | cat confdefs.h >>conftest.$ac_ext | |
9599 | cat >>conftest.$ac_ext <<_ACEOF | |
9600 | /* end confdefs.h. */ | |
9601 | ||
7a197a62 AK |
9602 | /* Override any GCC internal prototype to avoid an error. |
9603 | Use char because int might match the return type of a GCC | |
9604 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9605 | #ifdef __cplusplus |
9606 | extern "C" | |
9607 | #endif | |
8b1a3214 AK |
9608 | char clock_gettime (); |
9609 | int | |
9610 | main () | |
9611 | { | |
7a197a62 | 9612 | return clock_gettime (); |
8b1a3214 AK |
9613 | ; |
9614 | return 0; | |
9615 | } | |
9616 | _ACEOF | |
9617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9618 | if { (ac_try="$ac_link" |
9619 | case "(($ac_try" in | |
9620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9621 | *) ac_try_echo=$ac_try;; | |
9622 | esac | |
68f2de6d | 9623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9624 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9625 | ac_status=$? |
9626 | grep -v '^ *+' conftest.er1 >conftest.err | |
9627 | rm -f conftest.er1 | |
9628 | cat conftest.err >&5 | |
68f2de6d | 9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9630 | (exit $ac_status); } && { |
9631 | test -z "$ac_c_werror_flag" || | |
9632 | test ! -s conftest.err | |
68f2de6d AK |
9633 | } && test -s conftest$ac_exeext && |
9634 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9635 | ac_cv_lib_rt_clock_gettime=yes |
9636 | else | |
68f2de6d | 9637 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9638 | sed 's/^/| /' conftest.$ac_ext >&5 |
9639 | ||
7a197a62 | 9640 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9641 | fi |
7a197a62 | 9642 | |
25fbec5b | 9643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9644 | conftest$ac_exeext conftest.$ac_ext |
9645 | LIBS=$ac_check_lib_save_LIBS | |
9646 | fi | |
68f2de6d AK |
9647 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9648 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9649 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9650 | HAVE_REALTIME=yes | |
9651 | else | |
9652 | HAVE_REALTIME=no | |
9653 | fi | |
9654 | ||
8b1a3214 AK |
9655 | |
9656 | if test x$HAVE_REALTIME = xyes; then | |
9657 | ||
9658 | cat >>confdefs.h <<\_ACEOF | |
9659 | #define HAVE_REALTIME 1 | |
9660 | _ACEOF | |
9661 | ||
9662 | LIBS="-lrt $LIBS" | |
9663 | else | |
68f2de6d AK |
9664 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9665 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9666 | fi |
9667 | fi | |
9668 | ||
ad6254c5 AK |
9669 | ################################################################################ |
9670 | ||
9671 | for ac_header in getopt.h | |
9672 | do | |
68f2de6d | 9673 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
9675 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9679 | fi |
68f2de6d AK |
9680 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9681 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9682 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9683 | else |
9684 | # Is the header compilable? | |
68f2de6d AK |
9685 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9686 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9687 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9688 | /* confdefs.h. */ |
9689 | _ACEOF | |
9690 | cat confdefs.h >>conftest.$ac_ext | |
9691 | cat >>conftest.$ac_ext <<_ACEOF | |
9692 | /* end confdefs.h. */ | |
9693 | $ac_includes_default | |
9694 | #include <$ac_header> | |
9695 | _ACEOF | |
9696 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9697 | if { (ac_try="$ac_compile" |
9698 | case "(($ac_try" in | |
9699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9700 | *) ac_try_echo=$ac_try;; | |
9701 | esac | |
68f2de6d | 9702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9703 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9704 | ac_status=$? |
8a2fc586 AK |
9705 | grep -v '^ *+' conftest.er1 >conftest.err |
9706 | rm -f conftest.er1 | |
9707 | cat conftest.err >&5 | |
68f2de6d | 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9709 | (exit $ac_status); } && { |
9710 | test -z "$ac_c_werror_flag" || | |
9711 | test ! -s conftest.err | |
9712 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9713 | ac_header_compiler=yes |
9714 | else | |
68f2de6d | 9715 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9716 | sed 's/^/| /' conftest.$ac_ext >&5 |
9717 | ||
7a197a62 | 9718 | ac_header_compiler=no |
ad6254c5 | 9719 | fi |
7a197a62 AK |
9720 | |
9721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
9722 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9723 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9724 | |
9725 | # Is the header present? | |
68f2de6d AK |
9726 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9727 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9728 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9729 | /* confdefs.h. */ |
9730 | _ACEOF | |
9731 | cat confdefs.h >>conftest.$ac_ext | |
9732 | cat >>conftest.$ac_ext <<_ACEOF | |
9733 | /* end confdefs.h. */ | |
9734 | #include <$ac_header> | |
9735 | _ACEOF | |
7a197a62 AK |
9736 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9737 | case "(($ac_try" in | |
9738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9739 | *) ac_try_echo=$ac_try;; | |
9740 | esac | |
68f2de6d | 9741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9742 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9743 | ac_status=$? |
9744 | grep -v '^ *+' conftest.er1 >conftest.err | |
9745 | rm -f conftest.er1 | |
9746 | cat conftest.err >&5 | |
68f2de6d | 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9748 | (exit $ac_status); } >/dev/null && { |
9749 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9750 | test ! -s conftest.err | |
9751 | }; then | |
ad6254c5 AK |
9752 | ac_header_preproc=yes |
9753 | else | |
68f2de6d | 9754 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9755 | sed 's/^/| /' conftest.$ac_ext >&5 |
9756 | ||
9757 | ac_header_preproc=no | |
9758 | fi | |
7a197a62 | 9759 | |
ad6254c5 | 9760 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
9761 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9762 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9763 | |
9764 | # So? What about this header? | |
8a2fc586 AK |
9765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9766 | yes:no: ) | |
68f2de6d AK |
9767 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9768 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9770 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9771 | ac_header_preproc=yes |
ad6254c5 | 9772 | ;; |
8a2fc586 | 9773 | no:yes:* ) |
68f2de6d AK |
9774 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9775 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9776 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9777 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9778 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9779 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9780 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9781 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9782 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9783 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9784 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9785 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9786 | |
ad6254c5 AK |
9787 | ;; |
9788 | esac | |
68f2de6d AK |
9789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9793 | else |
8a2fc586 | 9794 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9795 | fi |
68f2de6d AK |
9796 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9798 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9799 | |
9800 | fi | |
68f2de6d | 9801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9802 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9804 | _ACEOF |
72b2cb61 AK |
9805 | |
9806 | cat >>confdefs.h <<\_ACEOF | |
9807 | #define HAVE_GETOPTLONG 1 | |
9808 | _ACEOF | |
9809 | ||
ad6254c5 AK |
9810 | fi |
9811 | ||
9812 | done | |
9813 | ||
9814 | ||
9815 | ################################################################################ | |
06e459df | 9816 | if test x$READLINE != xno; then |
bc1024f8 JM |
9817 | rl_found=yes |
9818 | ||
68f2de6d AK |
9819 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9820 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9821 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
68f2de6d | 9822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9823 | else |
9824 | ac_check_lib_save_LIBS=$LIBS | |
9825 | LIBS="-lreadline $LIBS" | |
9826 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9827 | /* confdefs.h. */ |
9828 | _ACEOF | |
9829 | cat confdefs.h >>conftest.$ac_ext | |
9830 | cat >>conftest.$ac_ext <<_ACEOF | |
9831 | /* end confdefs.h. */ | |
9832 | ||
7a197a62 AK |
9833 | /* Override any GCC internal prototype to avoid an error. |
9834 | Use char because int might match the return type of a GCC | |
9835 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9836 | #ifdef __cplusplus |
9837 | extern "C" | |
9838 | #endif | |
ad6254c5 AK |
9839 | char readline (); |
9840 | int | |
9841 | main () | |
9842 | { | |
7a197a62 | 9843 | return readline (); |
ad6254c5 AK |
9844 | ; |
9845 | return 0; | |
9846 | } | |
9847 | _ACEOF | |
9848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9849 | if { (ac_try="$ac_link" |
9850 | case "(($ac_try" in | |
9851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9852 | *) ac_try_echo=$ac_try;; | |
9853 | esac | |
68f2de6d | 9854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9855 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9856 | ac_status=$? |
8a2fc586 AK |
9857 | grep -v '^ *+' conftest.er1 >conftest.err |
9858 | rm -f conftest.er1 | |
9859 | cat conftest.err >&5 | |
68f2de6d | 9860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9861 | (exit $ac_status); } && { |
9862 | test -z "$ac_c_werror_flag" || | |
9863 | test ! -s conftest.err | |
68f2de6d AK |
9864 | } && test -s conftest$ac_exeext && |
9865 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9866 | ac_cv_lib_readline_readline=yes |
9867 | else | |
68f2de6d | 9868 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9869 | sed 's/^/| /' conftest.$ac_ext >&5 |
9870 | ||
7a197a62 | 9871 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9872 | fi |
7a197a62 | 9873 | |
25fbec5b | 9874 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9875 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9876 | LIBS=$ac_check_lib_save_LIBS |
9877 | fi | |
68f2de6d AK |
9878 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9879 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 9880 | if test $ac_cv_lib_readline_readline = yes; then |
bc1024f8 JM |
9881 | cat >>confdefs.h <<_ACEOF |
9882 | #define HAVE_LIBREADLINE 1 | |
9883 | _ACEOF | |
9884 | ||
9885 | LIBS="-lreadline $LIBS" | |
9886 | ||
ad6254c5 | 9887 | else |
06e459df JM |
9888 | rl_found=no |
9889 | fi | |
9890 | ||
9891 | test x$READLINE:$rl_found = xyes:no && | |
68f2de6d | 9892 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9893 | --enable-readline option (which is enabled by default). Either disable readline |
9894 | support with --disable-readline or download and install readline from: | |
9895 | ftp.gnu.org/gnu/readline | |
9896 | Note: if you are using precompiled packages you will also need the development | |
9897 | package as well (which may be called readline-devel or something similar). | |
9898 | " >&5 | |
68f2de6d | 9899 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9900 | --enable-readline option (which is enabled by default). Either disable readline |
9901 | support with --disable-readline or download and install readline from: | |
9902 | ftp.gnu.org/gnu/readline | |
9903 | Note: if you are using precompiled packages you will also need the development | |
9904 | package as well (which may be called readline-devel or something similar). | |
9905 | " >&2;} | |
9906 | { (exit 1); exit 1; }; } | |
06e459df | 9907 | if test $rl_found = yes; then |
bc1024f8 JM |
9908 | |
9909 | for ac_func in rl_completion_matches | |
9910 | do | |
68f2de6d AK |
9911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
bc1024f8 | 9914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9916 | else |
9917 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9918 | /* confdefs.h. */ |
9919 | _ACEOF | |
9920 | cat confdefs.h >>conftest.$ac_ext | |
9921 | cat >>conftest.$ac_ext <<_ACEOF | |
9922 | /* end confdefs.h. */ | |
bc1024f8 | 9923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 9924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 9925 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 9926 | |
ad6254c5 | 9927 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 9928 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
9929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9930 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9931 | |
ad6254c5 AK |
9932 | #ifdef __STDC__ |
9933 | # include <limits.h> | |
9934 | #else | |
9935 | # include <assert.h> | |
9936 | #endif | |
8a2fc586 | 9937 | |
bc1024f8 | 9938 | #undef $ac_func |
8a2fc586 | 9939 | |
7a197a62 AK |
9940 | /* Override any GCC internal prototype to avoid an error. |
9941 | Use char because int might match the return type of a GCC | |
9942 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9943 | #ifdef __cplusplus |
9944 | extern "C" | |
ad6254c5 | 9945 | #endif |
bc1024f8 | 9946 | char $ac_func (); |
ad6254c5 AK |
9947 | /* The GNU C library defines this for functions which it implements |
9948 | to always fail with ENOSYS. Some functions are actually named | |
9949 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 9950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9951 | choke me |
ad6254c5 AK |
9952 | #endif |
9953 | ||
9954 | int | |
9955 | main () | |
9956 | { | |
bc1024f8 | 9957 | return $ac_func (); |
ad6254c5 AK |
9958 | ; |
9959 | return 0; | |
9960 | } | |
9961 | _ACEOF | |
9962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9963 | if { (ac_try="$ac_link" |
9964 | case "(($ac_try" in | |
9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9966 | *) ac_try_echo=$ac_try;; | |
9967 | esac | |
68f2de6d | 9968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9969 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9970 | ac_status=$? |
8a2fc586 AK |
9971 | grep -v '^ *+' conftest.er1 >conftest.err |
9972 | rm -f conftest.er1 | |
9973 | cat conftest.err >&5 | |
68f2de6d | 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9975 | (exit $ac_status); } && { |
9976 | test -z "$ac_c_werror_flag" || | |
9977 | test ! -s conftest.err | |
68f2de6d AK |
9978 | } && test -s conftest$ac_exeext && |
9979 | $as_test_x conftest$ac_exeext; then | |
bc1024f8 | 9980 | eval "$as_ac_var=yes" |
ad6254c5 | 9981 | else |
68f2de6d | 9982 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
9984 | ||
bc1024f8 | 9985 | eval "$as_ac_var=no" |
ad6254c5 | 9986 | fi |
7a197a62 | 9987 | |
25fbec5b | 9988 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9989 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9990 | fi |
68f2de6d AK |
9991 | ac_res=`eval echo '${'$as_ac_var'}'` |
9992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9993 | echo "${ECHO_T}$ac_res" >&6; } | |
9994 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
bc1024f8 | 9995 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
9997 | _ACEOF |
9998 | ||
9999 | fi | |
bc1024f8 | 10000 | done |
ad6254c5 | 10001 | |
d179cc7a JM |
10002 | |
10003 | cat >>confdefs.h <<\_ACEOF | |
10004 | #define READLINE_SUPPORT 1 | |
10005 | _ACEOF | |
10006 | ||
06e459df | 10007 | fi |
ad6254c5 AK |
10008 | fi |
10009 | ||
10010 | ################################################################################ | |
68f2de6d AK |
10011 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10012 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 10013 | # Check whether --enable-nls was given. |
ad6254c5 | 10014 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10015 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10016 | else |
10017 | INTL=no | |
7a197a62 AK |
10018 | fi |
10019 | ||
68f2de6d AK |
10020 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
10021 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
10022 | |
10023 | if test x$INTL = xyes; then | |
93bd259b | 10024 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10025 | INTL_PACKAGE="lvm2" |
10026 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10027 | set dummy msgfmt; ac_word=$2 | |
68f2de6d AK |
10028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 10030 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
68f2de6d | 10031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10032 | else |
10033 | case $MSGFMT in | |
10034 | [\\/]* | ?:[\\/]*) | |
10035 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10036 | ;; | |
10037 | *) | |
10038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10039 | for as_dir in $PATH | |
10040 | do | |
10041 | IFS=$as_save_IFS | |
10042 | test -z "$as_dir" && as_dir=. | |
10043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10045 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 10046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10047 | break 2 |
10048 | fi | |
10049 | done | |
10050 | done | |
7a197a62 | 10051 | IFS=$as_save_IFS |
ad6254c5 AK |
10052 | |
10053 | ;; | |
10054 | esac | |
10055 | fi | |
10056 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10057 | if test -n "$MSGFMT"; then |
68f2de6d AK |
10058 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10059 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 10060 | else |
68f2de6d AK |
10061 | { echo "$as_me:$LINENO: result: no" >&5 |
10062 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
10063 | fi |
10064 | ||
7a197a62 | 10065 | |
ad6254c5 | 10066 | if [ "x$MSGFMT" == x ]; |
68f2de6d | 10067 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10068 | " >&5 |
68f2de6d | 10069 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10070 | " >&2;} |
10071 | { (exit 1); exit 1; }; } | |
10072 | fi; | |
10073 | ||
10074 | ||
7a197a62 | 10075 | # Check whether --with-localedir was given. |
ad6254c5 | 10076 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10077 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10078 | else |
10079 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10080 | fi |
10081 | ||
ad6254c5 AK |
10082 | fi |
10083 | ||
10084 | ################################################################################ | |
10085 | ||
7a197a62 | 10086 | # Check whether --with-confdir was given. |
ad6254c5 | 10087 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10088 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10089 | else |
10090 | CONFDIR='/etc' | |
7a197a62 AK |
10091 | fi |
10092 | ||
ad6254c5 AK |
10093 | |
10094 | ||
7a197a62 | 10095 | # Check whether --with-staticdir was given. |
ad6254c5 | 10096 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10097 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10098 | else |
10099 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10100 | fi |
ad6254c5 | 10101 | |
33f732c5 | 10102 | |
7a197a62 | 10103 | |
68f2de6d AK |
10104 | # Check whether --with-usrlibdir was given. |
10105 | if test "${with_usrlibdir+set}" = set; then | |
10106 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10107 | else | |
10108 | usrlibdir='${prefix}/lib' | |
10109 | fi | |
10110 | ||
10111 | ||
10112 | ||
10113 | # Check whether --with-usrsbindir was given. | |
10114 | if test "${with_usrsbindir+set}" = set; then | |
10115 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10116 | else | |
10117 | usrsbindir='${prefix}/sbin' | |
10118 | fi | |
10119 | ||
10120 | ||
ad6254c5 AK |
10121 | ################################################################################ |
10122 | if test x$READLINE = xyes; then | |
10123 | ||
10124 | ||
10125 | for ac_header in readline/readline.h readline/history.h | |
10126 | do | |
68f2de6d | 10127 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10129 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10133 | fi |
68f2de6d AK |
10134 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10135 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10136 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10137 | else |
10138 | # Is the header compilable? | |
68f2de6d AK |
10139 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10140 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10141 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10142 | /* confdefs.h. */ |
10143 | _ACEOF | |
10144 | cat confdefs.h >>conftest.$ac_ext | |
10145 | cat >>conftest.$ac_ext <<_ACEOF | |
10146 | /* end confdefs.h. */ | |
10147 | $ac_includes_default | |
10148 | #include <$ac_header> | |
10149 | _ACEOF | |
10150 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10151 | if { (ac_try="$ac_compile" |
10152 | case "(($ac_try" in | |
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10154 | *) ac_try_echo=$ac_try;; | |
10155 | esac | |
68f2de6d | 10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10157 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10158 | ac_status=$? |
8a2fc586 AK |
10159 | grep -v '^ *+' conftest.er1 >conftest.err |
10160 | rm -f conftest.er1 | |
10161 | cat conftest.err >&5 | |
68f2de6d | 10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10163 | (exit $ac_status); } && { |
10164 | test -z "$ac_c_werror_flag" || | |
10165 | test ! -s conftest.err | |
10166 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10167 | ac_header_compiler=yes |
10168 | else | |
68f2de6d | 10169 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10170 | sed 's/^/| /' conftest.$ac_ext >&5 |
10171 | ||
7a197a62 | 10172 | ac_header_compiler=no |
ad6254c5 | 10173 | fi |
7a197a62 AK |
10174 | |
10175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10176 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10177 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10178 | |
10179 | # Is the header present? | |
68f2de6d AK |
10180 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10181 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10182 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10183 | /* confdefs.h. */ |
10184 | _ACEOF | |
10185 | cat confdefs.h >>conftest.$ac_ext | |
10186 | cat >>conftest.$ac_ext <<_ACEOF | |
10187 | /* end confdefs.h. */ | |
10188 | #include <$ac_header> | |
10189 | _ACEOF | |
7a197a62 AK |
10190 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10191 | case "(($ac_try" in | |
10192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10193 | *) ac_try_echo=$ac_try;; | |
10194 | esac | |
68f2de6d | 10195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10196 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10197 | ac_status=$? |
10198 | grep -v '^ *+' conftest.er1 >conftest.err | |
10199 | rm -f conftest.er1 | |
10200 | cat conftest.err >&5 | |
68f2de6d | 10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10202 | (exit $ac_status); } >/dev/null && { |
10203 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10204 | test ! -s conftest.err | |
10205 | }; then | |
ad6254c5 AK |
10206 | ac_header_preproc=yes |
10207 | else | |
68f2de6d | 10208 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10209 | sed 's/^/| /' conftest.$ac_ext >&5 |
10210 | ||
10211 | ac_header_preproc=no | |
10212 | fi | |
7a197a62 | 10213 | |
ad6254c5 | 10214 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10215 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10216 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10217 | |
10218 | # So? What about this header? | |
8a2fc586 AK |
10219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10220 | yes:no: ) | |
68f2de6d AK |
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10225 | ac_header_preproc=yes |
ad6254c5 | 10226 | ;; |
8a2fc586 | 10227 | no:yes:* ) |
68f2de6d AK |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10240 | |
ad6254c5 AK |
10241 | ;; |
10242 | esac | |
68f2de6d AK |
10243 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10244 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10245 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10247 | else |
8a2fc586 | 10248 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10249 | fi |
68f2de6d AK |
10250 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10251 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10252 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10253 | |
10254 | fi | |
68f2de6d | 10255 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10256 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10257 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10258 | _ACEOF |
10259 | ||
10260 | else | |
68f2de6d AK |
10261 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10262 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10263 | { (exit 1); exit 1; }; } |
10264 | fi | |
10265 | ||
10266 | done | |
10267 | ||
10268 | fi | |
10269 | ||
5c7fc7c4 | 10270 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10271 | |
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | 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 | |
10282 | do | |
68f2de6d | 10283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10285 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10287 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10289 | fi |
68f2de6d AK |
10290 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10291 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10292 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10293 | else |
10294 | # Is the header compilable? | |
68f2de6d AK |
10295 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10296 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10297 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10298 | /* confdefs.h. */ |
10299 | _ACEOF | |
10300 | cat confdefs.h >>conftest.$ac_ext | |
10301 | cat >>conftest.$ac_ext <<_ACEOF | |
10302 | /* end confdefs.h. */ | |
10303 | $ac_includes_default | |
10304 | #include <$ac_header> | |
10305 | _ACEOF | |
10306 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10307 | if { (ac_try="$ac_compile" |
10308 | case "(($ac_try" in | |
10309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10310 | *) ac_try_echo=$ac_try;; | |
10311 | esac | |
68f2de6d | 10312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10313 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10314 | ac_status=$? |
8a2fc586 AK |
10315 | grep -v '^ *+' conftest.er1 >conftest.err |
10316 | rm -f conftest.er1 | |
10317 | cat conftest.err >&5 | |
68f2de6d | 10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10319 | (exit $ac_status); } && { |
10320 | test -z "$ac_c_werror_flag" || | |
10321 | test ! -s conftest.err | |
10322 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10323 | ac_header_compiler=yes |
10324 | else | |
68f2de6d | 10325 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10326 | sed 's/^/| /' conftest.$ac_ext >&5 |
10327 | ||
7a197a62 | 10328 | ac_header_compiler=no |
ad6254c5 | 10329 | fi |
7a197a62 AK |
10330 | |
10331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10332 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10333 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10334 | |
10335 | # Is the header present? | |
68f2de6d AK |
10336 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10337 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10338 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10339 | /* confdefs.h. */ |
10340 | _ACEOF | |
10341 | cat confdefs.h >>conftest.$ac_ext | |
10342 | cat >>conftest.$ac_ext <<_ACEOF | |
10343 | /* end confdefs.h. */ | |
10344 | #include <$ac_header> | |
10345 | _ACEOF | |
7a197a62 AK |
10346 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10347 | case "(($ac_try" in | |
10348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10349 | *) ac_try_echo=$ac_try;; | |
10350 | esac | |
68f2de6d | 10351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10352 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10353 | ac_status=$? |
10354 | grep -v '^ *+' conftest.er1 >conftest.err | |
10355 | rm -f conftest.er1 | |
10356 | cat conftest.err >&5 | |
68f2de6d | 10357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10358 | (exit $ac_status); } >/dev/null && { |
10359 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10360 | test ! -s conftest.err | |
10361 | }; then | |
ad6254c5 AK |
10362 | ac_header_preproc=yes |
10363 | else | |
68f2de6d | 10364 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10365 | sed 's/^/| /' conftest.$ac_ext >&5 |
10366 | ||
10367 | ac_header_preproc=no | |
10368 | fi | |
7a197a62 | 10369 | |
ad6254c5 | 10370 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10371 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10372 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10373 | |
10374 | # So? What about this header? | |
8a2fc586 AK |
10375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10376 | yes:no: ) | |
68f2de6d AK |
10377 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10378 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10380 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10381 | ac_header_preproc=yes |
ad6254c5 | 10382 | ;; |
8a2fc586 | 10383 | no:yes:* ) |
68f2de6d AK |
10384 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10385 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10386 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10387 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10388 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10389 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10390 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10391 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10393 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10394 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10395 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10396 | |
ad6254c5 AK |
10397 | ;; |
10398 | esac | |
68f2de6d AK |
10399 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10400 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10401 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10403 | else |
8a2fc586 | 10404 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10405 | fi |
68f2de6d AK |
10406 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10407 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10408 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10409 | |
10410 | fi | |
68f2de6d | 10411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10412 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10414 | _ACEOF |
10415 | ||
10416 | else | |
68f2de6d AK |
10417 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10418 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10419 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10420 | fi |
10421 | ||
ad6254c5 AK |
10422 | done |
10423 | ||
10424 | ||
795ca3e5 | 10425 | |
8106cdd5 | 10426 | |
ad6254c5 AK |
10427 | |
10428 | ||
10429 | for ac_func in dup2 getmntent memmove select socket | |
10430 | do | |
68f2de6d AK |
10431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10432 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10434 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10436 | else |
ad6254c5 | 10437 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10438 | /* confdefs.h. */ |
10439 | _ACEOF | |
10440 | cat confdefs.h >>conftest.$ac_ext | |
10441 | cat >>conftest.$ac_ext <<_ACEOF | |
10442 | /* end confdefs.h. */ | |
8a2fc586 AK |
10443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10445 | #define $ac_func innocuous_$ac_func | |
10446 | ||
795ca3e5 | 10447 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10448 | which can conflict with char $ac_func (); below. |
10449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10450 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10451 | |
ad6254c5 AK |
10452 | #ifdef __STDC__ |
10453 | # include <limits.h> | |
10454 | #else | |
10455 | # include <assert.h> | |
10456 | #endif | |
8a2fc586 AK |
10457 | |
10458 | #undef $ac_func | |
10459 | ||
7a197a62 AK |
10460 | /* Override any GCC internal prototype to avoid an error. |
10461 | Use char because int might match the return type of a GCC | |
10462 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10463 | #ifdef __cplusplus |
10464 | extern "C" | |
ad6254c5 | 10465 | #endif |
ad6254c5 | 10466 | char $ac_func (); |
795ca3e5 AK |
10467 | /* The GNU C library defines this for functions which it implements |
10468 | to always fail with ENOSYS. Some functions are actually named | |
10469 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10470 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10471 | choke me |
795ca3e5 AK |
10472 | #endif |
10473 | ||
ad6254c5 AK |
10474 | int |
10475 | main () | |
10476 | { | |
7a197a62 | 10477 | return $ac_func (); |
ad6254c5 AK |
10478 | ; |
10479 | return 0; | |
10480 | } | |
10481 | _ACEOF | |
10482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10483 | if { (ac_try="$ac_link" |
10484 | case "(($ac_try" in | |
10485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10486 | *) ac_try_echo=$ac_try;; | |
10487 | esac | |
68f2de6d | 10488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10489 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10490 | ac_status=$? |
8a2fc586 AK |
10491 | grep -v '^ *+' conftest.er1 >conftest.err |
10492 | rm -f conftest.er1 | |
10493 | cat conftest.err >&5 | |
68f2de6d | 10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10495 | (exit $ac_status); } && { |
10496 | test -z "$ac_c_werror_flag" || | |
10497 | test ! -s conftest.err | |
68f2de6d AK |
10498 | } && test -s conftest$ac_exeext && |
10499 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10500 | eval "$as_ac_var=yes" |
795ca3e5 | 10501 | else |
68f2de6d | 10502 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10503 | sed 's/^/| /' conftest.$ac_ext >&5 |
10504 | ||
7a197a62 | 10505 | eval "$as_ac_var=no" |
80992638 | 10506 | fi |
7a197a62 | 10507 | |
25fbec5b | 10508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10509 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10510 | fi |
68f2de6d AK |
10511 | ac_res=`eval echo '${'$as_ac_var'}'` |
10512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10513 | echo "${ECHO_T}$ac_res" >&6; } | |
10514 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10515 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10516 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10517 | _ACEOF |
80992638 AK |
10518 | |
10519 | else | |
68f2de6d AK |
10520 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10521 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10522 | { (exit 1); exit 1; }; } |
8106cdd5 | 10523 | fi |
ad6254c5 | 10524 | done |
795ca3e5 | 10525 | |
25fbec5b AK |
10526 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10527 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
68f2de6d AK |
10528 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10529 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10530 | if test "${ac_cv_search_getmntent+set}" = set; then |
68f2de6d | 10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10532 | else |
10533 | ac_func_search_save_LIBS=$LIBS | |
10534 | cat >conftest.$ac_ext <<_ACEOF | |
10535 | /* confdefs.h. */ | |
10536 | _ACEOF | |
10537 | cat confdefs.h >>conftest.$ac_ext | |
10538 | cat >>conftest.$ac_ext <<_ACEOF | |
10539 | /* end confdefs.h. */ | |
80992638 | 10540 | |
7a197a62 AK |
10541 | /* Override any GCC internal prototype to avoid an error. |
10542 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10543 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10544 | #ifdef __cplusplus |
10545 | extern "C" | |
10546 | #endif | |
25fbec5b | 10547 | char getmntent (); |
ad6254c5 AK |
10548 | int |
10549 | main () | |
10550 | { | |
25fbec5b | 10551 | return getmntent (); |
ad6254c5 AK |
10552 | ; |
10553 | return 0; | |
10554 | } | |
10555 | _ACEOF | |
25fbec5b AK |
10556 | for ac_lib in '' sun seq gen; do |
10557 | if test -z "$ac_lib"; then | |
10558 | ac_res="none required" | |
10559 | else | |
10560 | ac_res=-l$ac_lib | |
10561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10562 | fi | |
10563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10564 | if { (ac_try="$ac_link" |
10565 | case "(($ac_try" in | |
10566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10567 | *) ac_try_echo=$ac_try;; | |
10568 | esac | |
68f2de6d | 10569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10570 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10571 | ac_status=$? |
8a2fc586 AK |
10572 | grep -v '^ *+' conftest.er1 >conftest.err |
10573 | rm -f conftest.er1 | |
10574 | cat conftest.err >&5 | |
68f2de6d | 10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10576 | (exit $ac_status); } && { |
10577 | test -z "$ac_c_werror_flag" || | |
10578 | test ! -s conftest.err | |
68f2de6d AK |
10579 | } && test -s conftest$ac_exeext && |
10580 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10581 | ac_cv_search_getmntent=$ac_res |
80992638 | 10582 | else |
68f2de6d | 10583 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10584 | sed 's/^/| /' conftest.$ac_ext >&5 |
10585 | ||
25fbec5b | 10586 | |
795ca3e5 AK |
10587 | fi |
10588 | ||
25fbec5b AK |
10589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10590 | conftest$ac_exeext | |
10591 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10592 | break | |
795ca3e5 | 10593 | fi |
25fbec5b AK |
10594 | done |
10595 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10596 | : | |
10597 | else | |
10598 | ac_cv_search_getmntent=no | |
10599 | fi | |
10600 | rm conftest.$ac_ext | |
10601 | LIBS=$ac_func_search_save_LIBS | |
10602 | fi | |
68f2de6d AK |
10603 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10604 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10605 | ac_res=$ac_cv_search_getmntent |
10606 | if test "$ac_res" != no; then | |
10607 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10608 | ac_cv_func_getmntent=yes | |
10609 | ||
10610 | cat >>confdefs.h <<\_ACEOF | |
68f2de6d | 10611 | #define HAVE_GETMNTENT |
ad6254c5 | 10612 | _ACEOF |
795ca3e5 | 10613 | |
25fbec5b AK |
10614 | else |
10615 | ac_cv_func_getmntent=no | |
795ca3e5 | 10616 | fi |
795ca3e5 AK |
10617 | |
10618 | ||
ad6254c5 AK |
10619 | # AC_FUNC_REALLOC |
10620 | ||
10621 | ||
10622 | for ac_header in sys/select.h sys/socket.h | |
10623 | do | |
68f2de6d | 10624 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10626 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10630 | fi |
68f2de6d AK |
10631 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10633 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10634 | else |
ad6254c5 | 10635 | # Is the header compilable? |
68f2de6d AK |
10636 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10637 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10638 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10639 | /* confdefs.h. */ |
10640 | _ACEOF | |
10641 | cat confdefs.h >>conftest.$ac_ext | |
10642 | cat >>conftest.$ac_ext <<_ACEOF | |
10643 | /* end confdefs.h. */ | |
10644 | $ac_includes_default | |
10645 | #include <$ac_header> | |
10646 | _ACEOF | |
10647 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10648 | if { (ac_try="$ac_compile" |
10649 | case "(($ac_try" in | |
10650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10651 | *) ac_try_echo=$ac_try;; | |
10652 | esac | |
68f2de6d | 10653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10654 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10655 | ac_status=$? |
8a2fc586 AK |
10656 | grep -v '^ *+' conftest.er1 >conftest.err |
10657 | rm -f conftest.er1 | |
10658 | cat conftest.err >&5 | |
68f2de6d | 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10660 | (exit $ac_status); } && { |
10661 | test -z "$ac_c_werror_flag" || | |
10662 | test ! -s conftest.err | |
10663 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10664 | ac_header_compiler=yes |
80992638 | 10665 | else |
68f2de6d | 10666 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10667 | sed 's/^/| /' conftest.$ac_ext >&5 |
10668 | ||
7a197a62 | 10669 | ac_header_compiler=no |
ad6254c5 | 10670 | fi |
7a197a62 AK |
10671 | |
10672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10673 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10674 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10675 | |
10676 | # Is the header present? | |
68f2de6d AK |
10677 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10678 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10679 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10680 | /* confdefs.h. */ |
10681 | _ACEOF | |
10682 | cat confdefs.h >>conftest.$ac_ext | |
10683 | cat >>conftest.$ac_ext <<_ACEOF | |
10684 | /* end confdefs.h. */ | |
10685 | #include <$ac_header> | |
10686 | _ACEOF | |
7a197a62 AK |
10687 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10688 | case "(($ac_try" in | |
10689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10690 | *) ac_try_echo=$ac_try;; | |
10691 | esac | |
68f2de6d | 10692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10694 | ac_status=$? |
10695 | grep -v '^ *+' conftest.er1 >conftest.err | |
10696 | rm -f conftest.er1 | |
10697 | cat conftest.err >&5 | |
68f2de6d | 10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10699 | (exit $ac_status); } >/dev/null && { |
10700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10701 | test ! -s conftest.err | |
10702 | }; then | |
ad6254c5 AK |
10703 | ac_header_preproc=yes |
10704 | else | |
68f2de6d | 10705 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10706 | sed 's/^/| /' conftest.$ac_ext >&5 |
10707 | ||
10708 | ac_header_preproc=no | |
10709 | fi | |
7a197a62 | 10710 | |
ad6254c5 | 10711 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10712 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10713 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10714 | |
10715 | # So? What about this header? | |
8a2fc586 AK |
10716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10717 | yes:no: ) | |
68f2de6d AK |
10718 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10719 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10721 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10722 | ac_header_preproc=yes |
ad6254c5 | 10723 | ;; |
8a2fc586 | 10724 | no:yes:* ) |
68f2de6d AK |
10725 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10726 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10727 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10728 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10729 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10730 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10731 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10732 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10734 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10735 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10736 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10737 | |
ad6254c5 AK |
10738 | ;; |
10739 | esac | |
68f2de6d AK |
10740 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10744 | else |
8a2fc586 | 10745 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10746 | fi |
68f2de6d AK |
10747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10749 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10750 | |
795ca3e5 | 10751 | fi |
68f2de6d | 10752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10753 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10755 | _ACEOF |
10756 | ||
795ca3e5 AK |
10757 | fi |
10758 | ||
ad6254c5 AK |
10759 | done |
10760 | ||
68f2de6d AK |
10761 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10762 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10763 | if test "${ac_cv_func_select_args+set}" = set; then |
68f2de6d | 10764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10765 | else |
ad6254c5 | 10766 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10767 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10768 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10769 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10770 | /* confdefs.h. */ |
10771 | _ACEOF | |
10772 | cat confdefs.h >>conftest.$ac_ext | |
10773 | cat >>conftest.$ac_ext <<_ACEOF | |
10774 | /* end confdefs.h. */ | |
10775 | $ac_includes_default | |
25fbec5b | 10776 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10777 | # include <sys/select.h> |
10778 | #endif | |
25fbec5b | 10779 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10780 | # include <sys/socket.h> |
10781 | #endif | |
10782 | ||
10783 | int | |
10784 | main () | |
10785 | { | |
10786 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10787 | $ac_arg234, $ac_arg234, $ac_arg234, |
10788 | $ac_arg5); | |
ad6254c5 AK |
10789 | ; |
10790 | return 0; | |
10791 | } | |
10792 | _ACEOF | |
10793 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10794 | if { (ac_try="$ac_compile" |
10795 | case "(($ac_try" in | |
10796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10797 | *) ac_try_echo=$ac_try;; | |
10798 | esac | |
68f2de6d | 10799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10800 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10801 | ac_status=$? |
8a2fc586 AK |
10802 | grep -v '^ *+' conftest.er1 >conftest.err |
10803 | rm -f conftest.er1 | |
10804 | cat conftest.err >&5 | |
68f2de6d | 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10806 | (exit $ac_status); } && { |
10807 | test -z "$ac_c_werror_flag" || | |
10808 | test ! -s conftest.err | |
10809 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10810 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10811 | else | |
68f2de6d | 10812 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10813 | sed 's/^/| /' conftest.$ac_ext >&5 |
10814 | ||
7a197a62 | 10815 | |
ad6254c5 | 10816 | fi |
7a197a62 AK |
10817 | |
10818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10819 | done |
10820 | done | |
10821 | done | |
10822 | # Provide a safe default value. | |
10823 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10824 | ||
26e7f2e0 | 10825 | fi |
68f2de6d AK |
10826 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10827 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10828 | ac_save_IFS=$IFS; IFS=',' |
10829 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10830 | IFS=$ac_save_IFS | |
10831 | shift | |
10832 | ||
10833 | cat >>confdefs.h <<_ACEOF | |
10834 | #define SELECT_TYPE_ARG1 $1 | |
10835 | _ACEOF | |
10836 | ||
10837 | ||
10838 | cat >>confdefs.h <<_ACEOF | |
10839 | #define SELECT_TYPE_ARG234 ($2) | |
10840 | _ACEOF | |
10841 | ||
10842 | ||
10843 | cat >>confdefs.h <<_ACEOF | |
10844 | #define SELECT_TYPE_ARG5 ($3) | |
10845 | _ACEOF | |
10846 | ||
80992638 | 10847 | rm -f conftest* |
80992638 | 10848 | |
8106cdd5 | 10849 | fi |
ad6254c5 | 10850 | |
ad6254c5 AK |
10851 | if test x$CLUSTER != xnone; then |
10852 | ||
10853 | ||
10854 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10855 | do |
68f2de6d | 10856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10857 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10858 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10862 | fi |
68f2de6d AK |
10863 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10864 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10865 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10866 | else |
10867 | # Is the header compilable? | |
68f2de6d AK |
10868 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10869 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10870 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10871 | /* confdefs.h. */ |
10872 | _ACEOF | |
10873 | cat confdefs.h >>conftest.$ac_ext | |
10874 | cat >>conftest.$ac_ext <<_ACEOF | |
10875 | /* end confdefs.h. */ | |
10876 | $ac_includes_default | |
10877 | #include <$ac_header> | |
10878 | _ACEOF | |
10879 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10880 | if { (ac_try="$ac_compile" |
10881 | case "(($ac_try" in | |
10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10883 | *) ac_try_echo=$ac_try;; | |
10884 | esac | |
68f2de6d | 10885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10886 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10887 | ac_status=$? |
8a2fc586 AK |
10888 | grep -v '^ *+' conftest.er1 >conftest.err |
10889 | rm -f conftest.er1 | |
10890 | cat conftest.err >&5 | |
68f2de6d | 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10892 | (exit $ac_status); } && { |
10893 | test -z "$ac_c_werror_flag" || | |
10894 | test ! -s conftest.err | |
10895 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10896 | ac_header_compiler=yes |
10897 | else | |
68f2de6d | 10898 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10899 | sed 's/^/| /' conftest.$ac_ext >&5 |
10900 | ||
7a197a62 | 10901 | ac_header_compiler=no |
ad6254c5 | 10902 | fi |
7a197a62 AK |
10903 | |
10904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10905 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10906 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10907 | |
10908 | # Is the header present? | |
68f2de6d AK |
10909 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10910 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10911 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10912 | /* confdefs.h. */ |
10913 | _ACEOF | |
10914 | cat confdefs.h >>conftest.$ac_ext | |
10915 | cat >>conftest.$ac_ext <<_ACEOF | |
10916 | /* end confdefs.h. */ | |
10917 | #include <$ac_header> | |
10918 | _ACEOF | |
7a197a62 AK |
10919 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10920 | case "(($ac_try" in | |
10921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10922 | *) ac_try_echo=$ac_try;; | |
10923 | esac | |
68f2de6d | 10924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10926 | ac_status=$? |
10927 | grep -v '^ *+' conftest.er1 >conftest.err | |
10928 | rm -f conftest.er1 | |
10929 | cat conftest.err >&5 | |
68f2de6d | 10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10931 | (exit $ac_status); } >/dev/null && { |
10932 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10933 | test ! -s conftest.err | |
10934 | }; then | |
ad6254c5 AK |
10935 | ac_header_preproc=yes |
10936 | else | |
68f2de6d | 10937 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10938 | sed 's/^/| /' conftest.$ac_ext >&5 |
10939 | ||
10940 | ac_header_preproc=no | |
10941 | fi | |
7a197a62 | 10942 | |
ad6254c5 | 10943 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10944 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10945 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10946 | |
10947 | # So? What about this header? | |
8a2fc586 AK |
10948 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10949 | yes:no: ) | |
68f2de6d AK |
10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10951 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10953 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10954 | ac_header_preproc=yes |
ad6254c5 | 10955 | ;; |
8a2fc586 | 10956 | no:yes:* ) |
68f2de6d AK |
10957 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10958 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10960 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10961 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10962 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10963 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10964 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10966 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10967 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10968 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10969 | |
ad6254c5 AK |
10970 | ;; |
10971 | esac | |
68f2de6d AK |
10972 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10976 | else |
8a2fc586 | 10977 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10978 | fi |
68f2de6d AK |
10979 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10981 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10982 | |
10983 | fi | |
68f2de6d | 10984 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10985 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10986 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10987 | _ACEOF |
10988 | ||
80992638 | 10989 | else |
68f2de6d AK |
10990 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10991 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10992 | { (exit 1); exit 1; }; } |
b896caa1 | 10993 | fi |
ad6254c5 | 10994 | |
b896caa1 AK |
10995 | done |
10996 | ||
10997 | ||
ad6254c5 AK |
10998 | for ac_func in socket |
10999 | do | |
68f2de6d AK |
11000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11001 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 11003 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 11005 | else |
ad6254c5 | 11006 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11007 | /* confdefs.h. */ |
11008 | _ACEOF | |
11009 | cat confdefs.h >>conftest.$ac_ext | |
11010 | cat >>conftest.$ac_ext <<_ACEOF | |
11011 | /* end confdefs.h. */ | |
8a2fc586 AK |
11012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11014 | #define $ac_func innocuous_$ac_func | |
11015 | ||
ad6254c5 AK |
11016 | /* System header to define __stub macros and hopefully few prototypes, |
11017 | which can conflict with char $ac_func (); below. | |
11018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11019 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11020 | |
ad6254c5 AK |
11021 | #ifdef __STDC__ |
11022 | # include <limits.h> | |
11023 | #else | |
11024 | # include <assert.h> | |
11025 | #endif | |
8a2fc586 AK |
11026 | |
11027 | #undef $ac_func | |
11028 | ||
7a197a62 AK |
11029 | /* Override any GCC internal prototype to avoid an error. |
11030 | Use char because int might match the return type of a GCC | |
11031 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11032 | #ifdef __cplusplus |
11033 | extern "C" | |
ad6254c5 | 11034 | #endif |
ad6254c5 AK |
11035 | char $ac_func (); |
11036 | /* The GNU C library defines this for functions which it implements | |
11037 | to always fail with ENOSYS. Some functions are actually named | |
11038 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11040 | choke me |
ad6254c5 AK |
11041 | #endif |
11042 | ||
11043 | int | |
11044 | main () | |
11045 | { | |
7a197a62 | 11046 | return $ac_func (); |
ad6254c5 AK |
11047 | ; |
11048 | return 0; | |
11049 | } | |
11050 | _ACEOF | |
11051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11052 | if { (ac_try="$ac_link" |
11053 | case "(($ac_try" in | |
11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11055 | *) ac_try_echo=$ac_try;; | |
11056 | esac | |
68f2de6d | 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11058 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11059 | ac_status=$? |
8a2fc586 AK |
11060 | grep -v '^ *+' conftest.er1 >conftest.err |
11061 | rm -f conftest.er1 | |
11062 | cat conftest.err >&5 | |
68f2de6d | 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11064 | (exit $ac_status); } && { |
11065 | test -z "$ac_c_werror_flag" || | |
11066 | test ! -s conftest.err | |
68f2de6d AK |
11067 | } && test -s conftest$ac_exeext && |
11068 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
11069 | eval "$as_ac_var=yes" |
11070 | else | |
68f2de6d | 11071 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11072 | sed 's/^/| /' conftest.$ac_ext >&5 |
11073 | ||
7a197a62 | 11074 | eval "$as_ac_var=no" |
ad6254c5 | 11075 | fi |
7a197a62 | 11076 | |
25fbec5b | 11077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11078 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11079 | fi |
68f2de6d AK |
11080 | ac_res=`eval echo '${'$as_ac_var'}'` |
11081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11082 | echo "${ECHO_T}$ac_res" >&6; } | |
11083 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 11084 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11086 | _ACEOF |
11087 | ||
11088 | else | |
68f2de6d AK |
11089 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11090 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11091 | { (exit 1); exit 1; }; } |
11092 | fi | |
11093 | done | |
11094 | ||
11095 | fi | |
11096 | ||
11097 | if test x$HAVE_LIBDL = xyes; then | |
11098 | ||
11099 | for ac_header in dlfcn.h | |
11100 | do | |
68f2de6d | 11101 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11107 | fi |
68f2de6d AK |
11108 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11109 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11110 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11111 | else |
11112 | # Is the header compilable? | |
68f2de6d AK |
11113 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11115 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11116 | /* confdefs.h. */ |
11117 | _ACEOF | |
11118 | cat confdefs.h >>conftest.$ac_ext | |
11119 | cat >>conftest.$ac_ext <<_ACEOF | |
11120 | /* end confdefs.h. */ | |
11121 | $ac_includes_default | |
11122 | #include <$ac_header> | |
11123 | _ACEOF | |
11124 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11125 | if { (ac_try="$ac_compile" |
11126 | case "(($ac_try" in | |
11127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11128 | *) ac_try_echo=$ac_try;; | |
11129 | esac | |
68f2de6d | 11130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11131 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11132 | ac_status=$? |
8a2fc586 AK |
11133 | grep -v '^ *+' conftest.er1 >conftest.err |
11134 | rm -f conftest.er1 | |
11135 | cat conftest.err >&5 | |
68f2de6d | 11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11137 | (exit $ac_status); } && { |
11138 | test -z "$ac_c_werror_flag" || | |
11139 | test ! -s conftest.err | |
11140 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11141 | ac_header_compiler=yes |
11142 | else | |
68f2de6d | 11143 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11144 | sed 's/^/| /' conftest.$ac_ext >&5 |
11145 | ||
7a197a62 | 11146 | ac_header_compiler=no |
ad6254c5 | 11147 | fi |
7a197a62 AK |
11148 | |
11149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11151 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11152 | |
11153 | # Is the header present? | |
68f2de6d AK |
11154 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11156 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11157 | /* confdefs.h. */ |
11158 | _ACEOF | |
11159 | cat confdefs.h >>conftest.$ac_ext | |
11160 | cat >>conftest.$ac_ext <<_ACEOF | |
11161 | /* end confdefs.h. */ | |
11162 | #include <$ac_header> | |
11163 | _ACEOF | |
7a197a62 AK |
11164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11165 | case "(($ac_try" in | |
11166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11167 | *) ac_try_echo=$ac_try;; | |
11168 | esac | |
68f2de6d | 11169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11171 | ac_status=$? |
11172 | grep -v '^ *+' conftest.er1 >conftest.err | |
11173 | rm -f conftest.er1 | |
11174 | cat conftest.err >&5 | |
68f2de6d | 11175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11176 | (exit $ac_status); } >/dev/null && { |
11177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11178 | test ! -s conftest.err | |
11179 | }; then | |
ad6254c5 AK |
11180 | ac_header_preproc=yes |
11181 | else | |
68f2de6d | 11182 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11183 | sed 's/^/| /' conftest.$ac_ext >&5 |
11184 | ||
11185 | ac_header_preproc=no | |
11186 | fi | |
7a197a62 | 11187 | |
ad6254c5 | 11188 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11189 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11190 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11191 | |
11192 | # So? What about this header? | |
8a2fc586 AK |
11193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11194 | yes:no: ) | |
68f2de6d AK |
11195 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11196 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11197 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11198 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11199 | ac_header_preproc=yes |
ad6254c5 | 11200 | ;; |
8a2fc586 | 11201 | no:yes:* ) |
68f2de6d AK |
11202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11206 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11207 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11208 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11209 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11211 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11212 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11213 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11214 | |
ad6254c5 AK |
11215 | ;; |
11216 | esac | |
68f2de6d AK |
11217 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11219 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11221 | else |
8a2fc586 | 11222 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11223 | fi |
68f2de6d AK |
11224 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11226 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 11227 | |
8106cdd5 | 11228 | fi |
68f2de6d | 11229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11230 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11232 | _ACEOF |
795ca3e5 AK |
11233 | |
11234 | else | |
68f2de6d AK |
11235 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11236 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11237 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11238 | fi |
11239 | ||
ad6254c5 | 11240 | done |
80992638 | 11241 | |
ad6254c5 | 11242 | fi |
80992638 | 11243 | |
ad6254c5 | 11244 | if test x$INTL = xyes; then |
83912faa | 11245 | |
ad6254c5 AK |
11246 | for ac_header in libintl.h |
11247 | do | |
68f2de6d | 11248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11250 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11254 | fi |
68f2de6d AK |
11255 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11256 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11257 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11258 | else |
ad6254c5 | 11259 | # Is the header compilable? |
68f2de6d AK |
11260 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11262 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11263 | /* confdefs.h. */ |
11264 | _ACEOF | |
11265 | cat confdefs.h >>conftest.$ac_ext | |
11266 | cat >>conftest.$ac_ext <<_ACEOF | |
11267 | /* end confdefs.h. */ | |
11268 | $ac_includes_default | |
11269 | #include <$ac_header> | |
11270 | _ACEOF | |
11271 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11272 | if { (ac_try="$ac_compile" |
11273 | case "(($ac_try" in | |
11274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11275 | *) ac_try_echo=$ac_try;; | |
11276 | esac | |
68f2de6d | 11277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11278 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11279 | ac_status=$? |
8a2fc586 AK |
11280 | grep -v '^ *+' conftest.er1 >conftest.err |
11281 | rm -f conftest.er1 | |
11282 | cat conftest.err >&5 | |
68f2de6d | 11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11284 | (exit $ac_status); } && { |
11285 | test -z "$ac_c_werror_flag" || | |
11286 | test ! -s conftest.err | |
11287 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11288 | ac_header_compiler=yes |
11289 | else | |
68f2de6d | 11290 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11291 | sed 's/^/| /' conftest.$ac_ext >&5 |
11292 | ||
7a197a62 | 11293 | ac_header_compiler=no |
ad6254c5 | 11294 | fi |
7a197a62 AK |
11295 | |
11296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11297 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11298 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11299 | |
11300 | # Is the header present? | |
68f2de6d AK |
11301 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11303 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11304 | /* confdefs.h. */ |
11305 | _ACEOF | |
11306 | cat confdefs.h >>conftest.$ac_ext | |
11307 | cat >>conftest.$ac_ext <<_ACEOF | |
11308 | /* end confdefs.h. */ | |
11309 | #include <$ac_header> | |
11310 | _ACEOF | |
7a197a62 AK |
11311 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11312 | case "(($ac_try" in | |
11313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11314 | *) ac_try_echo=$ac_try;; | |
11315 | esac | |
68f2de6d | 11316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11317 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11318 | ac_status=$? |
11319 | grep -v '^ *+' conftest.er1 >conftest.err | |
11320 | rm -f conftest.er1 | |
11321 | cat conftest.err >&5 | |
68f2de6d | 11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11323 | (exit $ac_status); } >/dev/null && { |
11324 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11325 | test ! -s conftest.err | |
11326 | }; then | |
ad6254c5 AK |
11327 | ac_header_preproc=yes |
11328 | else | |
68f2de6d | 11329 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11330 | sed 's/^/| /' conftest.$ac_ext >&5 |
11331 | ||
11332 | ac_header_preproc=no | |
11333 | fi | |
7a197a62 | 11334 | |
ad6254c5 | 11335 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11336 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11337 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11338 | |
11339 | # So? What about this header? | |
8a2fc586 AK |
11340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11341 | yes:no: ) | |
68f2de6d AK |
11342 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11343 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11345 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11346 | ac_header_preproc=yes |
ad6254c5 | 11347 | ;; |
8a2fc586 | 11348 | no:yes:* ) |
68f2de6d AK |
11349 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11350 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11351 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11352 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11353 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11354 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11356 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11358 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11360 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11361 | |
ad6254c5 AK |
11362 | ;; |
11363 | esac | |
68f2de6d AK |
11364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11368 | else |
8a2fc586 | 11369 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11370 | fi |
68f2de6d AK |
11371 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11372 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11373 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11374 | |
69792976 | 11375 | fi |
68f2de6d | 11376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11377 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11379 | _ACEOF |
69792976 | 11380 | |
69792976 | 11381 | else |
68f2de6d AK |
11382 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11383 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11384 | { (exit 1); exit 1; }; } |
80992638 AK |
11385 | fi |
11386 | ||
ad6254c5 | 11387 | done |
69792976 | 11388 | |
ad6254c5 AK |
11389 | fi |
11390 | ||
ad6254c5 AK |
11391 | |
11392 | for ac_header in libdevmapper.h | |
11393 | do | |
68f2de6d | 11394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11400 | fi |
68f2de6d AK |
11401 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11403 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11404 | else |
ad6254c5 | 11405 | # Is the header compilable? |
68f2de6d AK |
11406 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11408 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11409 | /* confdefs.h. */ |
11410 | _ACEOF | |
11411 | cat confdefs.h >>conftest.$ac_ext | |
11412 | cat >>conftest.$ac_ext <<_ACEOF | |
11413 | /* end confdefs.h. */ | |
11414 | $ac_includes_default | |
11415 | #include <$ac_header> | |
11416 | _ACEOF | |
11417 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11418 | if { (ac_try="$ac_compile" |
11419 | case "(($ac_try" in | |
11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11421 | *) ac_try_echo=$ac_try;; | |
11422 | esac | |
68f2de6d | 11423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11424 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11425 | ac_status=$? |
8a2fc586 AK |
11426 | grep -v '^ *+' conftest.er1 >conftest.err |
11427 | rm -f conftest.er1 | |
11428 | cat conftest.err >&5 | |
68f2de6d | 11429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11430 | (exit $ac_status); } && { |
11431 | test -z "$ac_c_werror_flag" || | |
11432 | test ! -s conftest.err | |
11433 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11434 | ac_header_compiler=yes |
11435 | else | |
68f2de6d | 11436 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
11438 | ||
7a197a62 | 11439 | ac_header_compiler=no |
ad6254c5 | 11440 | fi |
7a197a62 AK |
11441 | |
11442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11443 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11444 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11445 | |
11446 | # Is the header present? | |
68f2de6d AK |
11447 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11448 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11449 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11450 | /* confdefs.h. */ |
11451 | _ACEOF | |
11452 | cat confdefs.h >>conftest.$ac_ext | |
11453 | cat >>conftest.$ac_ext <<_ACEOF | |
11454 | /* end confdefs.h. */ | |
11455 | #include <$ac_header> | |
11456 | _ACEOF | |
7a197a62 AK |
11457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11458 | case "(($ac_try" in | |
11459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11460 | *) ac_try_echo=$ac_try;; | |
11461 | esac | |
68f2de6d | 11462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11464 | ac_status=$? |
11465 | grep -v '^ *+' conftest.er1 >conftest.err | |
11466 | rm -f conftest.er1 | |
11467 | cat conftest.err >&5 | |
68f2de6d | 11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11469 | (exit $ac_status); } >/dev/null && { |
11470 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11471 | test ! -s conftest.err | |
11472 | }; then | |
ad6254c5 AK |
11473 | ac_header_preproc=yes |
11474 | else | |
68f2de6d | 11475 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11476 | sed 's/^/| /' conftest.$ac_ext >&5 |
11477 | ||
11478 | ac_header_preproc=no | |
11479 | fi | |
7a197a62 | 11480 | |
ad6254c5 | 11481 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11482 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11483 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11484 | |
11485 | # So? What about this header? | |
8a2fc586 AK |
11486 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11487 | yes:no: ) | |
68f2de6d AK |
11488 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11489 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11490 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11491 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11492 | ac_header_preproc=yes |
ad6254c5 | 11493 | ;; |
8a2fc586 | 11494 | no:yes:* ) |
68f2de6d AK |
11495 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11496 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11497 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11498 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11499 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11500 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11501 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11502 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11504 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11505 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11506 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11507 | |
ad6254c5 AK |
11508 | ;; |
11509 | esac | |
68f2de6d AK |
11510 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11514 | else |
8a2fc586 | 11515 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11516 | fi |
68f2de6d AK |
11517 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11518 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11519 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11520 | |
ad6254c5 | 11521 | fi |
68f2de6d | 11522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11523 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11525 | _ACEOF |
69792976 | 11526 | |
69792976 | 11527 | else |
68f2de6d AK |
11528 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11529 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11530 | { (exit 1); exit 1; }; } |
83912faa AK |
11531 | fi |
11532 | ||
ad6254c5 AK |
11533 | done |
11534 | ||
4a7f3eb2 | 11535 | |
ad6254c5 AK |
11536 | if test x$HAVE_SELINUX = xyes; then |
11537 | ||
11538 | for ac_header in selinux/selinux.h | |
11539 | do | |
68f2de6d | 11540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11542 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11544 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11546 | fi |
68f2de6d AK |
11547 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11548 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11549 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11550 | else |
ad6254c5 | 11551 | # Is the header compilable? |
68f2de6d AK |
11552 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11553 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11554 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11555 | /* confdefs.h. */ |
11556 | _ACEOF | |
11557 | cat confdefs.h >>conftest.$ac_ext | |
11558 | cat >>conftest.$ac_ext <<_ACEOF | |
11559 | /* end confdefs.h. */ | |
11560 | $ac_includes_default | |
11561 | #include <$ac_header> | |
11562 | _ACEOF | |
11563 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11564 | if { (ac_try="$ac_compile" |
11565 | case "(($ac_try" in | |
11566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11567 | *) ac_try_echo=$ac_try;; | |
11568 | esac | |
68f2de6d | 11569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11570 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11571 | ac_status=$? |
8a2fc586 AK |
11572 | grep -v '^ *+' conftest.er1 >conftest.err |
11573 | rm -f conftest.er1 | |
11574 | cat conftest.err >&5 | |
68f2de6d | 11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11576 | (exit $ac_status); } && { |
11577 | test -z "$ac_c_werror_flag" || | |
11578 | test ! -s conftest.err | |
11579 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11580 | ac_header_compiler=yes |
11581 | else | |
68f2de6d | 11582 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11583 | sed 's/^/| /' conftest.$ac_ext >&5 |
11584 | ||
7a197a62 | 11585 | ac_header_compiler=no |
ad6254c5 | 11586 | fi |
7a197a62 AK |
11587 | |
11588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11589 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11590 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11591 | |
11592 | # Is the header present? | |
68f2de6d AK |
11593 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11594 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11595 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11596 | /* confdefs.h. */ |
11597 | _ACEOF | |
11598 | cat confdefs.h >>conftest.$ac_ext | |
11599 | cat >>conftest.$ac_ext <<_ACEOF | |
11600 | /* end confdefs.h. */ | |
11601 | #include <$ac_header> | |
11602 | _ACEOF | |
7a197a62 AK |
11603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11604 | case "(($ac_try" in | |
11605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11606 | *) ac_try_echo=$ac_try;; | |
11607 | esac | |
68f2de6d | 11608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11610 | ac_status=$? |
11611 | grep -v '^ *+' conftest.er1 >conftest.err | |
11612 | rm -f conftest.er1 | |
11613 | cat conftest.err >&5 | |
68f2de6d | 11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11615 | (exit $ac_status); } >/dev/null && { |
11616 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11617 | test ! -s conftest.err | |
11618 | }; then | |
ad6254c5 AK |
11619 | ac_header_preproc=yes |
11620 | else | |
68f2de6d | 11621 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11622 | sed 's/^/| /' conftest.$ac_ext >&5 |
11623 | ||
11624 | ac_header_preproc=no | |
11625 | fi | |
7a197a62 | 11626 | |
ad6254c5 | 11627 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11628 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11629 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11630 | |
11631 | # So? What about this header? | |
8a2fc586 AK |
11632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11633 | yes:no: ) | |
68f2de6d AK |
11634 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11635 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11637 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11638 | ac_header_preproc=yes |
ad6254c5 | 11639 | ;; |
8a2fc586 | 11640 | no:yes:* ) |
68f2de6d AK |
11641 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11642 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11643 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11644 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11645 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11646 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11647 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11648 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11651 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11652 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11653 | |
ad6254c5 AK |
11654 | ;; |
11655 | esac | |
68f2de6d AK |
11656 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11660 | else |
8a2fc586 | 11661 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11662 | fi |
68f2de6d AK |
11663 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11665 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11666 | |
ad6254c5 | 11667 | fi |
68f2de6d | 11668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11669 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11671 | _ACEOF |
0a62c911 | 11672 | |
0a62c911 | 11673 | else |
68f2de6d AK |
11674 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11675 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11676 | { (exit 1); exit 1; }; } |
80992638 AK |
11677 | fi |
11678 | ||
ad6254c5 | 11679 | done |
0a62c911 | 11680 | |
ad6254c5 | 11681 | fi |
0a62c911 | 11682 | |
a653923f AK |
11683 | ################################################################################ |
11684 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11685 | set dummy modprobe; ac_word=$2 | |
68f2de6d AK |
11686 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11688 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
68f2de6d | 11689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11690 | else |
11691 | case $MODPROBE_CMD in | |
11692 | [\\/]* | ?:[\\/]*) | |
11693 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11694 | ;; | |
11695 | *) | |
11696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11697 | for as_dir in $PATH | |
11698 | do | |
11699 | IFS=$as_save_IFS | |
11700 | test -z "$as_dir" && as_dir=. | |
11701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11703 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 11704 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11705 | break 2 |
11706 | fi | |
11707 | done | |
11708 | done | |
7a197a62 | 11709 | IFS=$as_save_IFS |
72b2cb61 AK |
11710 | |
11711 | ;; | |
11712 | esac | |
11713 | fi | |
11714 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11715 | if test -n "$MODPROBE_CMD"; then |
68f2de6d AK |
11716 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11717 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11718 | else |
68f2de6d AK |
11719 | { echo "$as_me:$LINENO: result: no" >&5 |
11720 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11721 | fi |
11722 | ||
a653923f | 11723 | |
7a197a62 | 11724 | |
a653923f | 11725 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11726 | |
11727 | cat >>confdefs.h <<_ACEOF | |
11728 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11729 | _ACEOF | |
11730 | ||
a653923f AK |
11731 | fi |
11732 | ||
80992638 | 11733 | ################################################################################ |
93bd259b AK |
11734 | |
11735 | ||
11736 | if test "$BUILD_DMEVENTD" = yes; then | |
11737 | ||
11738 | # Check whether --with-dmeventd-pidfile was given. | |
11739 | if test "${with_dmeventd_pidfile+set}" = set; then | |
11740 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
11741 | #define DMEVENTD_PIDFILE "$withval" | |
11742 | _ACEOF | |
11743 | ||
11744 | else | |
11745 | cat >>confdefs.h <<_ACEOF | |
11746 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
11747 | _ACEOF | |
11748 | ||
11749 | fi | |
11750 | ||
11751 | fi | |
11752 | ||
11753 | ||
11754 | ||
11755 | if test "$BUILD_DMEVENTD" = yes; then | |
11756 | dmeventd_prefix="$exec_prefix" | |
11757 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11758 | dmeventd_prefix="$prefix" | |
11759 | fi | |
11760 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11761 | dmeventd_prefix="" | |
11762 | fi | |
11763 | ||
11764 | # Check whether --with-dmeventd-path was given. | |
11765 | if test "${with_dmeventd_path+set}" = set; then | |
11766 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
11767 | #define DMEVENTD_PATH "$withval" | |
11768 | _ACEOF | |
11769 | ||
11770 | else | |
11771 | cat >>confdefs.h <<_ACEOF | |
11772 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
11773 | _ACEOF | |
11774 | ||
11775 | fi | |
11776 | ||
11777 | fi | |
11778 | ||
11779 | ################################################################################ | |
11780 | { echo "$as_me:$LINENO: checking for kernel interface choice" >&5 | |
11781 | echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; } | |
11782 | ||
11783 | # Check whether --with-interface was given. | |
11784 | if test "${with_interface+set}" = set; then | |
11785 | withval=$with_interface; interface="$withval" | |
11786 | else | |
11787 | interface=ioctl | |
11788 | fi | |
11789 | ||
11790 | if [ "x$interface" != xioctl ]; | |
11791 | then | |
11792 | { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 | |
11793 | echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
11794 | { (exit 1); exit 1; }; } | |
11795 | fi | |
11796 | { echo "$as_me:$LINENO: result: $interface" >&5 | |
11797 | echo "${ECHO_T}$interface" >&6; } | |
11798 | ||
11799 | ################################################################################ | |
11800 | DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\"" | |
24bbc4d7 AK |
11801 | |
11802 | cat >>confdefs.h <<_ACEOF | |
11803 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
11804 | _ACEOF | |
11805 | ||
11806 | ||
d0191583 | 11807 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11808 | |
80992638 | 11809 | ################################################################################ |
fae0c576 | 11810 | |
83912faa | 11811 | |
795ca3e5 AK |
11812 | |
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | ||
5a52dca9 | 11818 | |
8ef2b021 | 11819 | |
199e490e | 11820 | |
69792976 AK |
11821 | |
11822 | ||
11823 | ||
d0191583 | 11824 | |
69792976 | 11825 | |
8106cdd5 AK |
11826 | |
11827 | ||
11828 | ||
11829 | ||
11830 | ||
d68a82ec | 11831 | |
036f273a | 11832 | |
7d1552c9 | 11833 | |
8106cdd5 | 11834 | |
0a62c911 | 11835 | |
8106cdd5 | 11836 | |
4a7f3eb2 | 11837 | |
4922197a AK |
11838 | |
11839 | ||
d8ac0fbc | 11840 | |
1a9ea74d | 11841 | |
8a2fc586 AK |
11842 | |
11843 | ||
d0191583 | 11844 | |
93bd259b AK |
11845 | |
11846 | ||
11847 | ||
11848 | ||
11849 | ||
d0191583 JM |
11850 | |
11851 | ||
11852 | ||
11853 | ||
11854 | ||
8a2fc586 | 11855 | |
8ce0cbda | 11856 | |
8b1a3214 | 11857 | |
33f732c5 | 11858 | |
66e941e8 | 11859 | |
d3c8211f | 11860 | |
68f2de6d AK |
11861 | |
11862 | ||
80992638 | 11863 | ################################################################################ |
04f06bc9 | 11864 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11865 | |
ad6254c5 | 11866 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11867 | # This file is a shell script that caches the results of configure |
11868 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11869 | # scripts and configure runs, see configure's option --config-cache. |
11870 | # It is not useful on other systems. If it contains results you don't | |
11871 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11872 | # |
ad6254c5 AK |
11873 | # config.status only pays attention to the cache file if you give it |
11874 | # the --recheck option to rerun configure. | |
795ca3e5 | 11875 | # |
ad6254c5 AK |
11876 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11877 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11878 | # following values. | |
11879 | ||
11880 | _ACEOF | |
11881 | ||
795ca3e5 AK |
11882 | # The following way of writing the cache mishandles newlines in values, |
11883 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11884 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11885 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11886 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11887 | ( |
11888 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11889 | eval ac_val=\$$ac_var | |
11890 | case $ac_val in #( | |
11891 | *${as_nl}*) | |
11892 | case $ac_var in #( | |
68f2de6d AK |
11893 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11894 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11895 | esac |
11896 | case $ac_var in #( | |
11897 | _ | IFS | as_nl) ;; #( | |
11898 | *) $as_unset $ac_var ;; | |
11899 | esac ;; | |
11900 | esac | |
11901 | done | |
11902 | ||
ad6254c5 | 11903 | (set) 2>&1 | |
7a197a62 AK |
11904 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11905 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11906 | # `set' does not quote correctly, so add quotes (double-quote |
11907 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11908 | sed -n \ | |
8a2fc586 AK |
11909 | "s/'/'\\\\''/g; |
11910 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11911 | ;; #( |
ad6254c5 AK |
11912 | *) |
11913 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11914 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11915 | ;; |
7a197a62 AK |
11916 | esac | |
11917 | sort | |
11918 | ) | | |
ad6254c5 | 11919 | sed ' |
7a197a62 | 11920 | /^ac_cv_env_/b end |
ad6254c5 | 11921 | t clear |
7a197a62 | 11922 | :clear |
ad6254c5 AK |
11923 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11924 | t end | |
7a197a62 AK |
11925 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11926 | :end' >>confcache | |
11927 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11928 | if test -w "$cache_file"; then | |
11929 | test "x$cache_file" != "x/dev/null" && | |
68f2de6d AK |
11930 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11931 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11932 | cat confcache >$cache_file |
795ca3e5 | 11933 | else |
68f2de6d AK |
11934 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11935 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11936 | fi |
11937 | fi | |
11938 | rm -f confcache | |
11939 | ||
795ca3e5 AK |
11940 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11941 | # Let make expand exec_prefix. | |
11942 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11943 | ||
72b2cb61 | 11944 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11945 | |
11946 | ac_libobjs= | |
11947 | ac_ltlibobjs= | |
11948 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11949 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11950 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
68f2de6d | 11951 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11952 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11953 | # will be set to the directory where LIBOBJS objects are built. | |
11954 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11955 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11956 | done |
11957 | LIBOBJS=$ac_libobjs | |
80992638 | 11958 | |
ad6254c5 AK |
11959 | LTLIBOBJS=$ac_ltlibobjs |
11960 | ||
11961 | ||
11962 | ||
11963 | : ${CONFIG_STATUS=./config.status} | |
11964 | ac_clean_files_save=$ac_clean_files | |
11965 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
68f2de6d AK |
11966 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11967 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11968 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11969 | #! $SHELL |
11970 | # Generated by $as_me. | |
795ca3e5 | 11971 | # Run this file to recreate the current configuration. |
795ca3e5 | 11972 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11973 | # configure, is in config.log if it exists. |
11974 | ||
11975 | debug=false | |
11976 | ac_cs_recheck=false | |
11977 | ac_cs_silent=false | |
11978 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11979 | _ACEOF | |
11980 | ||
68f2de6d | 11981 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11982 | ## --------------------- ## |
11983 | ## M4sh Initialization. ## | |
11984 | ## --------------------- ## | |
11985 | ||
25fbec5b AK |
11986 | # Be more Bourne compatible |
11987 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11988 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11989 | emulate sh | |
11990 | NULLCMD=: | |
68f2de6d | 11991 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11992 | # is contrary to our usage. Disable this feature. |
11993 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11994 | setopt NO_GLOB_SUBST |
11995 | else | |
25fbec5b AK |
11996 | case `(set -o) 2>/dev/null` in |
11997 | *posix*) set -o posix ;; | |
11998 | esac | |
11999 | ||
7a197a62 | 12000 | fi |
25fbec5b AK |
12001 | |
12002 | ||
7a197a62 AK |
12003 | |
12004 | ||
12005 | # PATH needs CR | |
12006 | # Avoid depending upon Character Ranges. | |
12007 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12008 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12009 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12010 | as_cr_digits='0123456789' | |
12011 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12012 | ||
b145d876 ZK |
12013 | # The user is always right. |
12014 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d AK |
12015 | echo "#! /bin/sh" >conf$$.sh |
12016 | echo "exit 0" >>conf$$.sh | |
12017 | chmod +x conf$$.sh | |
12018 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12019 | PATH_SEPARATOR=';' | |
12020 | else | |
12021 | PATH_SEPARATOR=: | |
12022 | fi | |
12023 | rm -f conf$$.sh | |
ad6254c5 AK |
12024 | fi |
12025 | ||
12026 | # Support unset when possible. | |
8a2fc586 | 12027 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12028 | as_unset=unset |
12029 | else | |
12030 | as_unset=false | |
12031 | fi | |
8106cdd5 | 12032 | |
ad6254c5 | 12033 | |
7a197a62 AK |
12034 | # IFS |
12035 | # We need space, tab and new line, in precisely that order. Quoting is | |
12036 | # there to prevent editors from complaining about space-tab. | |
12037 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12038 | # splitting by setting IFS to empty value.) | |
68f2de6d AK |
12039 | as_nl=' |
12040 | ' | |
7a197a62 AK |
12041 | IFS=" "" $as_nl" |
12042 | ||
12043 | # Find who we are. Look in the path if we contain no directory separator. | |
12044 | case $0 in | |
12045 | *[\\/]* ) as_myself=$0 ;; | |
12046 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12047 | for as_dir in $PATH | |
12048 | do | |
12049 | IFS=$as_save_IFS | |
12050 | test -z "$as_dir" && as_dir=. | |
12051 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12052 | done | |
12053 | IFS=$as_save_IFS | |
12054 | ||
12055 | ;; | |
12056 | esac | |
12057 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12058 | # in which case we are not to be found in the path. | |
12059 | if test "x$as_myself" = x; then | |
12060 | as_myself=$0 | |
12061 | fi | |
12062 | if test ! -f "$as_myself"; then | |
68f2de6d | 12063 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12064 | { (exit 1); exit 1; } |
12065 | fi | |
12066 | ||
ad6254c5 | 12067 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12068 | for as_var in ENV MAIL MAILPATH |
12069 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12070 | done | |
ad6254c5 AK |
12071 | PS1='$ ' |
12072 | PS2='> ' | |
12073 | PS4='+ ' | |
12074 | ||
12075 | # NLS nuisances. | |
68f2de6d AK |
12076 | for as_var in \ |
12077 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12078 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12079 | LC_TELEPHONE LC_TIME | |
12080 | do | |
12081 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12082 | eval $as_var=C; export $as_var | |
12083 | else | |
12084 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12085 | fi | |
12086 | done | |
8106cdd5 | 12087 | |
ad6254c5 | 12088 | # Required to use basename. |
7a197a62 AK |
12089 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12090 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12091 | as_expr=expr |
12092 | else | |
12093 | as_expr=false | |
12094 | fi | |
8106cdd5 | 12095 | |
7a197a62 | 12096 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12097 | as_basename=basename |
12098 | else | |
12099 | as_basename=false | |
12100 | fi | |
12101 | ||
12102 | ||
12103 | # Name of the executable. | |
7a197a62 | 12104 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12105 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12106 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12107 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12108 | echo X/"$0" | |
7a197a62 AK |
12109 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12110 | s//\1/ | |
12111 | q | |
12112 | } | |
12113 | /^X\/\(\/\/\)$/{ | |
12114 | s//\1/ | |
12115 | q | |
12116 | } | |
12117 | /^X\/\(\/\).*/{ | |
12118 | s//\1/ | |
12119 | q | |
12120 | } | |
12121 | s/.*/./; q'` | |
ad6254c5 | 12122 | |
7a197a62 AK |
12123 | # CDPATH. |
12124 | $as_unset CDPATH | |
ad6254c5 AK |
12125 | |
12126 | ||
ad6254c5 | 12127 | |
ad6254c5 AK |
12128 | as_lineno_1=$LINENO |
12129 | as_lineno_2=$LINENO | |
ad6254c5 | 12130 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12131 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12132 | |
ad6254c5 AK |
12133 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12134 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12135 | # line-number line after each line using $LINENO; the second 'sed' |
12136 | # does the real work. The second script uses 'N' to pair each | |
12137 | # line-number line with the line containing $LINENO, and appends | |
12138 | # trailing '-' during substitution so that $LINENO is not a special | |
12139 | # case at line end. | |
ad6254c5 | 12140 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12141 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12142 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12143 | sed -n ' | |
12144 | p | |
12145 | /[$]LINENO/= | |
12146 | ' <$as_myself | | |
ad6254c5 | 12147 | sed ' |
7a197a62 AK |
12148 | s/[$]LINENO.*/&-/ |
12149 | t lineno | |
12150 | b | |
12151 | :lineno | |
ad6254c5 | 12152 | N |
7a197a62 AK |
12153 | :loop |
12154 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12155 | t loop |
7a197a62 | 12156 | s/-\n.*// |
ad6254c5 | 12157 | ' >$as_me.lineno && |
7a197a62 | 12158 | chmod +x "$as_me.lineno" || |
68f2de6d | 12159 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12160 | { (exit 1); exit 1; }; } |
12161 | ||
12162 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12163 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12164 | # original and so on. Autoconf is especially sensitive to this). |
12165 | . "./$as_me.lineno" | |
ad6254c5 AK |
12166 | # Exit status is that of the last command. |
12167 | exit | |
12168 | } | |
12169 | ||
12170 | ||
7a197a62 AK |
12171 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12172 | as_dirname=dirname | |
12173 | else | |
12174 | as_dirname=false | |
12175 | fi | |
12176 | ||
12177 | ECHO_C= ECHO_N= ECHO_T= | |
12178 | case `echo -n x` in | |
12179 | -n*) | |
12180 | case `echo 'x\c'` in | |
12181 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12182 | *) ECHO_C='\c';; | |
12183 | esac;; | |
12184 | *) | |
12185 | ECHO_N='-n';; | |
ad6254c5 | 12186 | esac |
68f2de6d | 12187 | |
7a197a62 AK |
12188 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12189 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12190 | as_expr=expr |
12191 | else | |
12192 | as_expr=false | |
12193 | fi | |
80992638 | 12194 | |
ad6254c5 | 12195 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12196 | if test -d conf$$.dir; then |
12197 | rm -f conf$$.dir/conf$$.file | |
12198 | else | |
12199 | rm -f conf$$.dir | |
68f2de6d AK |
12200 | mkdir conf$$.dir |
12201 | fi | |
12202 | echo >conf$$.file | |
12203 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12204 | as_ln_s='ln -s' | |
12205 | # ... but there are two gotchas: | |
12206 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12207 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12208 | # In both cases, we have to default to `cp -p'. | |
12209 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 12210 | as_ln_s='cp -p' |
68f2de6d AK |
12211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12212 | as_ln_s=ln | |
ad6254c5 AK |
12213 | else |
12214 | as_ln_s='cp -p' | |
12215 | fi | |
7a197a62 AK |
12216 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12217 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12218 | |
ad6254c5 AK |
12219 | if mkdir -p . 2>/dev/null; then |
12220 | as_mkdir_p=: | |
12221 | else | |
8a2fc586 | 12222 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12223 | as_mkdir_p=false |
12224 | fi | |
12225 | ||
25fbec5b AK |
12226 | if test -x / >/dev/null 2>&1; then |
12227 | as_test_x='test -x' | |
7a197a62 | 12228 | else |
25fbec5b AK |
12229 | if ls -dL / >/dev/null 2>&1; then |
12230 | as_ls_L_option=L | |
12231 | else | |
12232 | as_ls_L_option= | |
12233 | fi | |
12234 | as_test_x=' | |
12235 | eval sh -c '\'' | |
12236 | if test -d "$1"; then | |
68f2de6d | 12237 | test -d "$1/."; |
25fbec5b AK |
12238 | else |
12239 | case $1 in | |
68f2de6d | 12240 | -*)set "./$1";; |
25fbec5b AK |
12241 | esac; |
12242 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12243 | ???[sx]*):;;*)false;;esac;fi | |
12244 | '\'' sh | |
12245 | ' | |
7a197a62 | 12246 | fi |
25fbec5b | 12247 | as_executable_p=$as_test_x |
ad6254c5 AK |
12248 | |
12249 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12250 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12251 | |
12252 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12253 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12254 | |
12255 | ||
ad6254c5 AK |
12256 | exec 6>&1 |
12257 | ||
7a197a62 | 12258 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12259 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12260 | # values after options handling. |
12261 | ac_log=" | |
ad6254c5 | 12262 | This file was extended by $as_me, which was |
68f2de6d | 12263 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
12264 | |
12265 | CONFIG_FILES = $CONFIG_FILES | |
12266 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12267 | CONFIG_LINKS = $CONFIG_LINKS | |
12268 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12269 | $ $0 $@ | |
12270 | ||
7a197a62 AK |
12271 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12272 | " | |
12273 | ||
ad6254c5 AK |
12274 | _ACEOF |
12275 | ||
68f2de6d | 12276 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12277 | # Files that config.status was made for. |
68f2de6d AK |
12278 | config_files="$ac_config_files" |
12279 | config_headers="$ac_config_headers" | |
ad6254c5 | 12280 | |
7a197a62 | 12281 | _ACEOF |
ad6254c5 | 12282 | |
68f2de6d | 12283 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12284 | ac_cs_usage="\ |
12285 | \`$as_me' instantiates files from templates according to the | |
12286 | current configuration. | |
12287 | ||
12288 | Usage: $0 [OPTIONS] [FILE]... | |
12289 | ||
12290 | -h, --help print this help, then exit | |
25fbec5b | 12291 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12292 | -q, --quiet do not print progress messages |
12293 | -d, --debug don't remove temporary files | |
12294 | --recheck update $as_me by reconfiguring in the same conditions | |
12295 | --file=FILE[:TEMPLATE] | |
68f2de6d | 12296 | instantiate the configuration file FILE |
72b2cb61 | 12297 | --header=FILE[:TEMPLATE] |
68f2de6d | 12298 | instantiate the configuration header FILE |
ad6254c5 AK |
12299 | |
12300 | Configuration files: | |
12301 | $config_files | |
12302 | ||
72b2cb61 AK |
12303 | Configuration headers: |
12304 | $config_headers | |
12305 | ||
ad6254c5 | 12306 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12307 | |
7a197a62 | 12308 | _ACEOF |
68f2de6d | 12309 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
12310 | ac_cs_version="\\ |
12311 | config.status | |
68f2de6d AK |
12312 | configured by $0, generated by GNU Autoconf 2.61, |
12313 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12314 | |
68f2de6d | 12315 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12316 | This config.status script is free software; the Free Software Foundation |
12317 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12318 | |
12319 | ac_pwd='$ac_pwd' | |
12320 | srcdir='$srcdir' | |
12321 | INSTALL='$INSTALL' | |
fddafd51 | 12322 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
12323 | _ACEOF |
12324 | ||
68f2de6d AK |
12325 | cat >>$CONFIG_STATUS <<\_ACEOF |
12326 | # If no file are specified by the user, then we need to provide default | |
12327 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
12328 | ac_need_defaults=: |
12329 | while test $# != 0 | |
12330 | do | |
12331 | case $1 in | |
12332 | --*=*) | |
7a197a62 AK |
12333 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12334 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12335 | ac_shift=: |
12336 | ;; | |
7a197a62 | 12337 | *) |
ad6254c5 AK |
12338 | ac_option=$1 |
12339 | ac_optarg=$2 | |
12340 | ac_shift=shift | |
12341 | ;; | |
ad6254c5 AK |
12342 | esac |
12343 | ||
12344 | case $ac_option in | |
12345 | # Handling of the options. | |
ad6254c5 AK |
12346 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12347 | ac_cs_recheck=: ;; | |
7a197a62 | 12348 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
68f2de6d | 12349 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 12350 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12351 | debug=: ;; |
12352 | --file | --fil | --fi | --f ) | |
12353 | $ac_shift | |
68f2de6d | 12354 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
12355 | ac_need_defaults=false;; |
12356 | --header | --heade | --head | --hea ) | |
12357 | $ac_shift | |
68f2de6d | 12358 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 12359 | ac_need_defaults=false;; |
7a197a62 AK |
12360 | --he | --h) |
12361 | # Conflict between --help and --header | |
68f2de6d | 12362 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12363 | Try \`$0 --help' for more information." >&2 |
12364 | { (exit 1); exit 1; }; };; | |
12365 | --help | --hel | -h ) | |
68f2de6d | 12366 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12367 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12368 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12369 | ac_cs_silent=: ;; | |
12370 | ||
12371 | # This is an error. | |
68f2de6d | 12372 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12373 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12374 | { (exit 1); exit 1; }; } ;; |
12375 | ||
7a197a62 AK |
12376 | *) ac_config_targets="$ac_config_targets $1" |
12377 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12378 | |
12379 | esac | |
12380 | shift | |
12381 | done | |
12382 | ||
12383 | ac_configure_extra_args= | |
12384 | ||
12385 | if $ac_cs_silent; then | |
12386 | exec 6>/dev/null | |
12387 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12388 | fi | |
12389 | ||
12390 | _ACEOF | |
68f2de6d | 12391 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12392 | if \$ac_cs_recheck; then |
68f2de6d AK |
12393 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12394 | CONFIG_SHELL=$SHELL | |
7a197a62 | 12395 | export CONFIG_SHELL |
68f2de6d | 12396 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
12397 | fi |
12398 | ||
12399 | _ACEOF | |
68f2de6d | 12400 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12401 | exec 5>>config.log |
12402 | { | |
12403 | echo | |
12404 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12405 | ## Running $as_me. ## | |
12406 | _ASBOX | |
68f2de6d | 12407 | echo "$ac_log" |
7a197a62 | 12408 | } >&5 |
ad6254c5 | 12409 | |
7a197a62 | 12410 | _ACEOF |
68f2de6d | 12411 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 12412 | _ACEOF |
ad6254c5 | 12413 | |
68f2de6d | 12414 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12415 | |
12416 | # Handling of arguments. | |
ad6254c5 AK |
12417 | for ac_config_target in $ac_config_targets |
12418 | do | |
7a197a62 AK |
12419 | case $ac_config_target in |
12420 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12421 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12422 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12423 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12424 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
12425 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
12426 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 12427 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
12428 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
12429 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 12430 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
12431 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12432 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
12433 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12434 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12435 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12436 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12437 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
93bd259b AK |
12438 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
12439 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
12440 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12441 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
7a197a62 | 12442 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 12443 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12444 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
12445 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12446 | |
68f2de6d AK |
12447 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12448 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12449 | { (exit 1); exit 1; }; };; |
80992638 | 12450 | esac |
ad6254c5 AK |
12451 | done |
12452 | ||
7a197a62 | 12453 | |
ad6254c5 AK |
12454 | # If the user did not use the arguments to specify the items to instantiate, |
12455 | # then the envvar interface is used. Set only those that are not. | |
12456 | # We use the long form for the default assignment because of an extremely | |
12457 | # bizarre bug on SunOS 4.1.3. | |
12458 | if $ac_need_defaults; then | |
12459 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12460 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12461 | fi |
12462 | ||
12463 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12464 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12465 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12466 | # Hook for its removal unless debugging. |
12467 | # Note that there is a small window in which the directory will not be cleaned: | |
12468 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12469 | $debug || |
12470 | { | |
7a197a62 AK |
12471 | tmp= |
12472 | trap 'exit_status=$? | |
12473 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12474 | ' 0 | |
ad6254c5 AK |
12475 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12476 | } | |
ad6254c5 AK |
12477 | # Create a (secure) tmp directory for tmp files. |
12478 | ||
12479 | { | |
7a197a62 | 12480 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12481 | test -n "$tmp" && test -d "$tmp" |
12482 | } || | |
12483 | { | |
7a197a62 AK |
12484 | tmp=./conf$$-$RANDOM |
12485 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12486 | } || |
12487 | { | |
68f2de6d | 12488 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12489 | { (exit 1); exit 1; } |
12490 | } | |
12491 | ||
68f2de6d AK |
12492 | # |
12493 | # Set up the sed scripts for CONFIG_FILES section. | |
12494 | # | |
12495 | ||
12496 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12497 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12498 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12499 | |
68f2de6d | 12500 | _ACEOF |
5556819a | 12501 | |
68f2de6d AK |
12502 | |
12503 | ||
12504 | ac_delim='%!_!# ' | |
12505 | for ac_last_try in false false false false false :; do | |
12506 | cat >conf$$subs.sed <<_ACEOF | |
12507 | SHELL!$SHELL$ac_delim | |
12508 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12509 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12510 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12511 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12512 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12513 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12514 | exec_prefix!$exec_prefix$ac_delim | |
12515 | prefix!$prefix$ac_delim | |
12516 | program_transform_name!$program_transform_name$ac_delim | |
12517 | bindir!$bindir$ac_delim | |
12518 | sbindir!$sbindir$ac_delim | |
12519 | libexecdir!$libexecdir$ac_delim | |
12520 | datarootdir!$datarootdir$ac_delim | |
12521 | datadir!$datadir$ac_delim | |
12522 | sysconfdir!$sysconfdir$ac_delim | |
12523 | sharedstatedir!$sharedstatedir$ac_delim | |
12524 | localstatedir!$localstatedir$ac_delim | |
12525 | includedir!$includedir$ac_delim | |
12526 | oldincludedir!$oldincludedir$ac_delim | |
12527 | docdir!$docdir$ac_delim | |
12528 | infodir!$infodir$ac_delim | |
12529 | htmldir!$htmldir$ac_delim | |
12530 | dvidir!$dvidir$ac_delim | |
12531 | pdfdir!$pdfdir$ac_delim | |
12532 | psdir!$psdir$ac_delim | |
12533 | libdir!$libdir$ac_delim | |
12534 | localedir!$localedir$ac_delim | |
12535 | mandir!$mandir$ac_delim | |
12536 | DEFS!$DEFS$ac_delim | |
12537 | ECHO_C!$ECHO_C$ac_delim | |
12538 | ECHO_N!$ECHO_N$ac_delim | |
12539 | ECHO_T!$ECHO_T$ac_delim | |
12540 | LIBS!$LIBS$ac_delim | |
12541 | build_alias!$build_alias$ac_delim | |
12542 | host_alias!$host_alias$ac_delim | |
12543 | target_alias!$target_alias$ac_delim | |
12544 | build!$build$ac_delim | |
12545 | build_cpu!$build_cpu$ac_delim | |
12546 | build_vendor!$build_vendor$ac_delim | |
12547 | build_os!$build_os$ac_delim | |
12548 | host!$host$ac_delim | |
12549 | host_cpu!$host_cpu$ac_delim | |
12550 | host_vendor!$host_vendor$ac_delim | |
12551 | host_os!$host_os$ac_delim | |
12552 | target!$target$ac_delim | |
12553 | target_cpu!$target_cpu$ac_delim | |
12554 | target_vendor!$target_vendor$ac_delim | |
12555 | target_os!$target_os$ac_delim | |
5951ef33 | 12556 | SED!$SED$ac_delim |
68f2de6d AK |
12557 | AWK!$AWK$ac_delim |
12558 | CC!$CC$ac_delim | |
12559 | CFLAGS!$CFLAGS$ac_delim | |
12560 | LDFLAGS!$LDFLAGS$ac_delim | |
12561 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12562 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12563 | EXEEXT!$EXEEXT$ac_delim | |
12564 | OBJEXT!$OBJEXT$ac_delim | |
12565 | CPP!$CPP$ac_delim | |
12566 | GREP!$GREP$ac_delim | |
12567 | EGREP!$EGREP$ac_delim | |
12568 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12569 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12570 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12571 | LN_S!$LN_S$ac_delim | |
12572 | SET_MAKE!$SET_MAKE$ac_delim | |
12573 | RANLIB!$RANLIB$ac_delim | |
12574 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12575 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12576 | ALLOCA!$ALLOCA$ac_delim | |
12577 | LIBOBJS!$LIBOBJS$ac_delim | |
12578 | POW_LIB!$POW_LIB$ac_delim | |
12579 | LCOV!$LCOV$ac_delim | |
12580 | GENHTML!$GENHTML$ac_delim | |
12581 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12582 | MSGFMT!$MSGFMT$ac_delim | |
12583 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12584 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12585 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12586 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12587 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12588 | CLUSTER!$CLUSTER$ac_delim | |
12589 | CLVMD!$CLVMD$ac_delim | |
12590 | CMDLIB!$CMDLIB$ac_delim | |
12591 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12592 | DEBUG!$DEBUG$ac_delim | |
12593 | DEVMAPPER!$DEVMAPPER$ac_delim | |
68f2de6d AK |
12594 | DMEVENTD!$DMEVENTD$ac_delim |
12595 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12596 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12597 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12598 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12599 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12600 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12601 | FSADM!$FSADM$ac_delim | |
12602 | GROUP!$GROUP$ac_delim | |
04f06bc9 | 12603 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim |
68f2de6d AK |
12604 | _ACEOF |
12605 | ||
12606 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12607 | break | |
12608 | elif $ac_last_try; then | |
12609 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12610 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12611 | { (exit 1); exit 1; }; } | |
12612 | else | |
12613 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12614 | fi | |
12615 | done | |
12616 | ||
12617 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12618 | if test -n "$ac_eof"; then | |
12619 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12620 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12621 | fi |
7a197a62 | 12622 | |
68f2de6d AK |
12623 | cat >>$CONFIG_STATUS <<_ACEOF |
12624 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12625 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12626 | _ACEOF | |
12627 | sed ' | |
12628 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12629 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12630 | :n | |
12631 | t n | |
12632 | s/'"$ac_delim"'$/,g/; t | |
12633 | s/$/\\/; p | |
12634 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12635 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12636 | rm -f conf$$subs.sed | |
12637 | cat >>$CONFIG_STATUS <<_ACEOF | |
12638 | CEOF$ac_eof | |
1995c9ff | 12639 | _ACEOF |
7a197a62 | 12640 | |
8106cdd5 | 12641 | |
1995c9ff AK |
12642 | ac_delim='%!_!# ' |
12643 | for ac_last_try in false false false false false :; do | |
68f2de6d AK |
12644 | cat >conf$$subs.sed <<_ACEOF |
12645 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
12646 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12647 | INTL!$INTL$ac_delim | |
12648 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12649 | JOBS!$JOBS$ac_delim | |
12650 | LDDEPS!$LDDEPS$ac_delim | |
12651 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12652 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12653 | LVM1!$LVM1$ac_delim | |
12654 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12655 | CONFDIR!$CONFDIR$ac_delim | |
12656 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12657 | MIRRORS!$MIRRORS$ac_delim | |
12658 | OWNER!$OWNER$ac_delim | |
12659 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12660 | POOL!$POOL$ac_delim | |
12661 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12662 | STATICDIR!$STATICDIR$ac_delim | |
12663 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12664 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
93bd259b AK |
12665 | interface!$interface$ac_delim |
12666 | kerneldir!$kerneldir$ac_delim | |
12667 | missingkernel!$missingkernel$ac_delim | |
12668 | kernelvsn!$kernelvsn$ac_delim | |
12669 | tmpdir!$tmpdir$ac_delim | |
68f2de6d AK |
12670 | usrlibdir!$usrlibdir$ac_delim |
12671 | usrsbindir!$usrsbindir$ac_delim | |
12672 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12673 | _ACEOF | |
12674 | ||
04f06bc9 | 12675 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then |
1995c9ff AK |
12676 | break |
12677 | elif $ac_last_try; then | |
68f2de6d AK |
12678 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12679 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12680 | { (exit 1); exit 1; }; } |
12681 | else | |
12682 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12683 | fi | |
12684 | done | |
7a197a62 | 12685 | |
68f2de6d AK |
12686 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12687 | if test -n "$ac_eof"; then | |
12688 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12689 | ac_eof=`expr $ac_eof + 1` | |
12690 | fi | |
fddafd51 | 12691 | |
68f2de6d AK |
12692 | cat >>$CONFIG_STATUS <<_ACEOF |
12693 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12694 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12695 | _ACEOF |
68f2de6d AK |
12696 | sed ' |
12697 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12698 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12699 | :n | |
12700 | t n | |
12701 | s/'"$ac_delim"'$/,g/; t | |
12702 | s/$/\\/; p | |
12703 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12704 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12705 | rm -f conf$$subs.sed | |
12706 | cat >>$CONFIG_STATUS <<_ACEOF | |
12707 | :end | |
12708 | s/|#_!!_#|//g | |
12709 | CEOF$ac_eof | |
7a197a62 AK |
12710 | _ACEOF |
12711 | ||
68f2de6d | 12712 | |
7a197a62 AK |
12713 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12714 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12715 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12716 | # (actually we leave an empty line to preserve line numbers). | |
12717 | if test "x$srcdir" = x.; then | |
12718 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12719 | s/:*\$(srcdir):*/:/ | |
12720 | s/:*\${srcdir}:*/:/ | |
12721 | s/:*@srcdir@:*/:/ | |
12722 | s/^\([^=]*=[ ]*\):*/\1/ | |
12723 | s/:*$// | |
12724 | s/^[^=]*=[ ]*$// | |
12725 | }' | |
12726 | fi | |
12727 | ||
68f2de6d | 12728 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12729 | fi # test -n "$CONFIG_FILES" |
12730 | ||
12731 | ||
68f2de6d | 12732 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12733 | do |
12734 | case $ac_tag in | |
12735 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12736 | esac | |
12737 | case $ac_mode$ac_tag in | |
12738 | :[FHL]*:*);; | |
68f2de6d AK |
12739 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12740 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12741 | { (exit 1); exit 1; }; };; |
12742 | :[FH]-) ac_tag=-:-;; | |
12743 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12744 | esac | |
12745 | ac_save_IFS=$IFS | |
12746 | IFS=: | |
12747 | set x $ac_tag | |
12748 | IFS=$ac_save_IFS | |
12749 | shift | |
12750 | ac_file=$1 | |
12751 | shift | |
12752 | ||
12753 | case $ac_mode in | |
12754 | :L) ac_source=$1;; | |
12755 | :[FH]) | |
12756 | ac_file_inputs= | |
12757 | for ac_f | |
12758 | do | |
12759 | case $ac_f in | |
12760 | -) ac_f="$tmp/stdin";; | |
12761 | *) # Look for the file first in the build tree, then in the source tree | |
12762 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12763 | # because $ac_f cannot contain `:'. | |
12764 | test -f "$ac_f" || | |
12765 | case $ac_f in | |
12766 | [\\/$]*) false;; | |
12767 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12768 | esac || | |
68f2de6d AK |
12769 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12770 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12771 | { (exit 1); exit 1; }; };; |
12772 | esac | |
68f2de6d | 12773 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12774 | done |
12775 | ||
12776 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12777 | # use $as_me), people would be surprised to read: | |
12778 | # /* config.h. Generated by config.status. */ | |
68f2de6d AK |
12779 | configure_input="Generated from "`IFS=: |
12780 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12781 | if test x"$ac_file" != x-; then |
12782 | configure_input="$ac_file. $configure_input" | |
68f2de6d AK |
12783 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12784 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12785 | fi |
12786 | ||
12787 | case $ac_tag in | |
68f2de6d | 12788 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12789 | esac |
12790 | ;; | |
80992638 | 12791 | esac |
8106cdd5 | 12792 | |
7a197a62 | 12793 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12794 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12795 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12796 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12797 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12798 | echo X"$ac_file" | |
7a197a62 AK |
12799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12800 | s//\1/ | |
12801 | q | |
12802 | } | |
12803 | /^X\(\/\/\)[^/].*/{ | |
12804 | s//\1/ | |
12805 | q | |
12806 | } | |
12807 | /^X\(\/\/\)$/{ | |
12808 | s//\1/ | |
12809 | q | |
12810 | } | |
12811 | /^X\(\/\).*/{ | |
12812 | s//\1/ | |
12813 | q | |
12814 | } | |
12815 | s/.*/./; q'` | |
12816 | { as_dir="$ac_dir" | |
12817 | case $as_dir in #( | |
12818 | -*) as_dir=./$as_dir;; | |
12819 | esac | |
12820 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12821 | as_dirs= |
7a197a62 AK |
12822 | while :; do |
12823 | case $as_dir in #( | |
68f2de6d | 12824 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12825 | *) as_qdir=$as_dir;; |
12826 | esac | |
12827 | as_dirs="'$as_qdir' $as_dirs" | |
12828 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12829 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12830 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12831 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12832 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12833 | echo X"$as_dir" | |
7a197a62 AK |
12834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12835 | s//\1/ | |
12836 | q | |
12837 | } | |
12838 | /^X\(\/\/\)[^/].*/{ | |
12839 | s//\1/ | |
12840 | q | |
12841 | } | |
12842 | /^X\(\/\/\)$/{ | |
12843 | s//\1/ | |
12844 | q | |
12845 | } | |
12846 | /^X\(\/\).*/{ | |
12847 | s//\1/ | |
12848 | q | |
12849 | } | |
12850 | s/.*/./; q'` | |
12851 | test -d "$as_dir" && break | |
ad6254c5 | 12852 | done |
7a197a62 | 12853 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
68f2de6d AK |
12854 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12855 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12856 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12857 | ac_builddir=. |
12858 | ||
7a197a62 AK |
12859 | case "$ac_dir" in |
12860 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12861 | *) | |
68f2de6d | 12862 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12863 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 12864 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12865 | case $ac_top_builddir_sub in |
12866 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12867 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12868 | esac ;; | |
12869 | esac | |
12870 | ac_abs_top_builddir=$ac_pwd | |
12871 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12872 | # for backward compatibility: | |
12873 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12874 | |
12875 | case $srcdir in | |
7a197a62 | 12876 | .) # We are building in place. |
ad6254c5 | 12877 | ac_srcdir=. |
7a197a62 AK |
12878 | ac_top_srcdir=$ac_top_builddir_sub |
12879 | ac_abs_top_srcdir=$ac_pwd ;; | |
12880 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12881 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12882 | ac_top_srcdir=$srcdir |
12883 | ac_abs_top_srcdir=$srcdir ;; | |
12884 | *) # Relative name. | |
12885 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12886 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12887 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12888 | esac |
7a197a62 | 12889 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12890 | |
ad6254c5 | 12891 | |
7a197a62 AK |
12892 | case $ac_mode in |
12893 | :F) | |
12894 | # | |
12895 | # CONFIG_FILE | |
12896 | # | |
ad6254c5 AK |
12897 | |
12898 | case $INSTALL in | |
12899 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12900 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12901 | esac |
fddafd51 ZK |
12902 | ac_MKDIR_P=$MKDIR_P |
12903 | case $MKDIR_P in | |
12904 | [\\/$]* | ?:[\\/]* ) ;; | |
12905 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12906 | esac | |
7a197a62 | 12907 | _ACEOF |
795ca3e5 | 12908 | |
68f2de6d | 12909 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12910 | # If the template does not know about datarootdir, expand it. |
12911 | # FIXME: This hack should be removed a few years after 2.60. | |
12912 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12913 | ||
68f2de6d | 12914 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12915 | p |
12916 | q | |
12917 | } | |
12918 | /@datadir@/p | |
12919 | /@docdir@/p | |
12920 | /@infodir@/p | |
12921 | /@localedir@/p | |
12922 | /@mandir@/p | |
68f2de6d | 12923 | ' $ac_file_inputs` in |
7a197a62 AK |
12924 | *datarootdir*) ac_datarootdir_seen=yes;; |
12925 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
68f2de6d AK |
12926 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12927 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12928 | _ACEOF |
68f2de6d | 12929 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12930 | ac_datarootdir_hack=' |
12931 | s&@datadir@&$datadir&g | |
12932 | s&@docdir@&$docdir&g | |
12933 | s&@infodir@&$infodir&g | |
12934 | s&@localedir@&$localedir&g | |
12935 | s&@mandir@&$mandir&g | |
12936 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12937 | esac | |
12938 | _ACEOF | |
12939 | ||
12940 | # Neutralize VPATH when `$srcdir' = `.'. | |
12941 | # Shell code in configure.ac might set extrasub. | |
12942 | # FIXME: do we really want to maintain this feature? | |
68f2de6d AK |
12943 | cat >>$CONFIG_STATUS <<_ACEOF |
12944 | sed "$ac_vpsub | |
ad6254c5 AK |
12945 | $extrasub |
12946 | _ACEOF | |
68f2de6d | 12947 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12948 | :t |
12949 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
68f2de6d | 12950 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12951 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12952 | s&@srcdir@&$ac_srcdir&;t t | |
12953 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12954 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12955 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12956 | s&@builddir@&$ac_builddir&;t t | |
12957 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12958 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12959 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12960 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12961 | $ac_datarootdir_hack |
68f2de6d | 12962 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12963 | |
12964 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12965 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12966 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
68f2de6d | 12967 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12968 | which seems to be undefined. Please make sure it is defined." >&5 |
68f2de6d | 12969 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12970 | which seems to be undefined. Please make sure it is defined." >&2;} |
12971 | ||
12972 | rm -f "$tmp/stdin" | |
72b2cb61 | 12973 | case $ac_file in |
68f2de6d AK |
12974 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12975 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12976 | esac | |
7a197a62 AK |
12977 | ;; |
12978 | :H) | |
12979 | # | |
12980 | # CONFIG_HEADER | |
12981 | # | |
68f2de6d AK |
12982 | _ACEOF |
12983 | ||
12984 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12985 | # substitutes the proper values into config.h.in to produce config.h. | |
12986 | rm -f conftest.defines conftest.tail | |
12987 | # First, append a space to every undef/define line, to ease matching. | |
12988 | echo 's/$/ /' >conftest.defines | |
12989 | # Then, protect against being on the right side of a sed subst, or in | |
12990 | # an unquoted here document, in config.status. If some macros were | |
12991 | # called several times there might be several #defines for the same | |
12992 | # symbol, which is useless. But do not sort them, since the last | |
12993 | # AC_DEFINE must be honored. | |
12994 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12995 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12996 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12997 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12998 | # just an empty string. | |
12999 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
13000 | ac_dB='\\)[ (].*,\\1define\\2' | |
13001 | ac_dC=' ' | |
13002 | ac_dD=' ,' | |
13003 | ||
13004 | uniq confdefs.h | | |
13005 | sed -n ' | |
13006 | t rset | |
13007 | :rset | |
13008 | s/^[ ]*#[ ]*define[ ][ ]*// | |
13009 | t ok | |
13010 | d | |
13011 | :ok | |
13012 | s/[\\&,]/\\&/g | |
13013 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
13014 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
13015 | ' >>conftest.defines | |
13016 | ||
13017 | # Remove the space that was appended to ease matching. | |
13018 | # Then replace #undef with comments. This is necessary, for | |
13019 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13020 | # on some systems where configure will not decide to define it. | |
13021 | # (The regexp can be short, since the line contains either #define or #undef.) | |
13022 | echo 's/ $// | |
13023 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
13024 | ||
13025 | # Break up conftest.defines: | |
13026 | ac_max_sed_lines=50 | |
13027 | ||
13028 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
13029 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
13030 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
13031 | # et cetera. | |
13032 | ac_in='$ac_file_inputs' | |
13033 | ac_out='"$tmp/out1"' | |
13034 | ac_nxt='"$tmp/out2"' | |
13035 | ||
13036 | while : | |
13037 | do | |
13038 | # Write a here document: | |
13039 | cat >>$CONFIG_STATUS <<_ACEOF | |
13040 | # First, check the format of the line: | |
13041 | cat >"\$tmp/defines.sed" <<\\CEOF | |
13042 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
13043 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
13044 | b | |
13045 | :def | |
13046 | _ACEOF | |
13047 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
13048 | echo 'CEOF | |
13049 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
13050 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
13051 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
13052 | grep . conftest.tail >/dev/null || break | |
13053 | rm -f conftest.defines | |
13054 | mv conftest.tail conftest.defines | |
13055 | done | |
13056 | rm -f conftest.defines conftest.tail | |
13057 | ||
13058 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
13059 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 13060 | if test x"$ac_file" != x-; then |
68f2de6d AK |
13061 | echo "/* $configure_input */" >"$tmp/config.h" |
13062 | cat "$ac_result" >>"$tmp/config.h" | |
13063 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
13064 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13065 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13066 | else |
68f2de6d AK |
13067 | rm -f $ac_file |
13068 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
13069 | fi |
13070 | else | |
68f2de6d AK |
13071 | echo "/* $configure_input */" |
13072 | cat "$ac_result" | |
72b2cb61 | 13073 | fi |
68f2de6d | 13074 | rm -f "$tmp/out12" |
7a197a62 AK |
13075 | ;; |
13076 | ||
13077 | ||
13078 | esac | |
13079 | ||
13080 | done # for ac_tag | |
795ca3e5 | 13081 | |
795ca3e5 | 13082 | |
ad6254c5 AK |
13083 | { (exit 0); exit 0; } |
13084 | _ACEOF | |
795ca3e5 | 13085 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13086 | ac_clean_files=$ac_clean_files_save |
13087 | ||
13088 | ||
13089 | # configure is writing to config.log, and then calls config.status. | |
13090 | # config.status does its own redirection, appending to config.log. | |
13091 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13092 | # by configure, so config.status won't be able to write to it; its | |
13093 | # output is simply discarded. So we exec the FD to /dev/null, | |
13094 | # effectively closing config.log, so it can be properly (re)opened and | |
13095 | # appended to by config.status. When coming back to configure, we | |
13096 | # need to make the FD available again. | |
13097 | if test "$no_create" != yes; then | |
13098 | ac_cs_success=: | |
13099 | ac_config_status_args= | |
13100 | test "$silent" = yes && | |
13101 | ac_config_status_args="$ac_config_status_args --quiet" | |
13102 | exec 5>/dev/null | |
13103 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13104 | exec 5>>config.log | |
13105 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13106 | # would make configure fail if this is the last instruction. | |
13107 | $ac_cs_success || { (exit 1); exit 1; } | |
13108 | fi | |
795ca3e5 | 13109 | |
2dc95e1c AK |
13110 | |
13111 | if test x$ODIRECT != xyes; then | |
68f2de6d AK |
13112 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13113 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13114 | fi |