]>
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 | |
7e3fe830 | 711 | DM_LIB_PATCHLEVEL |
d0191583 JM |
712 | FSADM |
713 | GROUP | |
7a197a62 | 714 | HAVE_LIBDL |
7a197a62 | 715 | HAVE_REALTIME |
d0191583 JM |
716 | HAVE_SELINUX |
717 | INTL | |
718 | INTL_PACKAGE | |
719 | JOBS | |
720 | LDDEPS | |
721 | LIB_SUFFIX | |
7a197a62 | 722 | LOCALEDIR |
d0191583 JM |
723 | LVM1 |
724 | LVM1_FALLBACK | |
7a197a62 | 725 | CONFDIR |
d0191583 JM |
726 | LVM_VERSION |
727 | MIRRORS | |
728 | OWNER | |
729 | PKGCONFIG | |
730 | POOL | |
731 | SNAPSHOTS | |
7a197a62 | 732 | STATICDIR |
d0191583 | 733 | STATIC_LINK |
66e941e8 | 734 | LIB_PTHREAD |
93bd259b AK |
735 | interface |
736 | kerneldir | |
737 | missingkernel | |
738 | kernelvsn | |
739 | tmpdir | |
68f2de6d AK |
740 | usrlibdir |
741 | usrsbindir | |
7a197a62 | 742 | LTLIBOBJS' |
ad6254c5 | 743 | ac_subst_files='' |
7a197a62 AK |
744 | ac_precious_vars='build_alias |
745 | host_alias | |
746 | target_alias | |
747 | CC | |
748 | CFLAGS | |
749 | LDFLAGS | |
25fbec5b | 750 | LIBS |
7a197a62 AK |
751 | CPPFLAGS |
752 | CPP' | |
753 | ||
795ca3e5 AK |
754 | |
755 | # Initialize some variables set by options. | |
ad6254c5 AK |
756 | ac_init_help= |
757 | ac_init_version=false | |
795ca3e5 AK |
758 | # The variables have the same names as the options, with |
759 | # dashes changed to underlines. | |
ad6254c5 | 760 | cache_file=/dev/null |
795ca3e5 | 761 | exec_prefix=NONE |
795ca3e5 | 762 | no_create= |
795ca3e5 AK |
763 | no_recursion= |
764 | prefix=NONE | |
765 | program_prefix=NONE | |
766 | program_suffix=NONE | |
767 | program_transform_name=s,x,x, | |
768 | silent= | |
769 | site= | |
770 | srcdir= | |
795ca3e5 AK |
771 | verbose= |
772 | x_includes=NONE | |
773 | x_libraries=NONE | |
ad6254c5 AK |
774 | |
775 | # Installation directory options. | |
776 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
777 | # and all the variables that are supposed to be based on exec_prefix | |
778 | # by default will actually change. | |
779 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 780 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
781 | bindir='${exec_prefix}/bin' |
782 | sbindir='${exec_prefix}/sbin' | |
783 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
784 | datarootdir='${prefix}/share' |
785 | datadir='${datarootdir}' | |
795ca3e5 AK |
786 | sysconfdir='${prefix}/etc' |
787 | sharedstatedir='${prefix}/com' | |
788 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
789 | includedir='${prefix}/include' |
790 | oldincludedir='/usr/include' | |
7a197a62 AK |
791 | docdir='${datarootdir}/doc/${PACKAGE}' |
792 | infodir='${datarootdir}/info' | |
793 | htmldir='${docdir}' | |
794 | dvidir='${docdir}' | |
795 | pdfdir='${docdir}' | |
796 | psdir='${docdir}' | |
797 | libdir='${exec_prefix}/lib' | |
798 | localedir='${datarootdir}/locale' | |
799 | mandir='${datarootdir}/man' | |
795ca3e5 | 800 | |
795ca3e5 | 801 | ac_prev= |
7a197a62 | 802 | ac_dashdash= |
795ca3e5 AK |
803 | for ac_option |
804 | do | |
795ca3e5 AK |
805 | # If the previous option needs an argument, assign it. |
806 | if test -n "$ac_prev"; then | |
7a197a62 | 807 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
808 | ac_prev= |
809 | continue | |
810 | fi | |
811 | ||
7a197a62 AK |
812 | case $ac_option in |
813 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
814 | *) ac_optarg=yes ;; | |
815 | esac | |
795ca3e5 AK |
816 | |
817 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
818 | ||
7a197a62 AK |
819 | case $ac_dashdash$ac_option in |
820 | --) | |
821 | ac_dashdash=yes ;; | |
795ca3e5 AK |
822 | |
823 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
824 | ac_prev=bindir ;; | |
825 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 826 | bindir=$ac_optarg ;; |
795ca3e5 AK |
827 | |
828 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 829 | ac_prev=build_alias ;; |
795ca3e5 | 830 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 831 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
832 | |
833 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
834 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
835 | ac_prev=cache_file ;; | |
836 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
837 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
838 | cache_file=$ac_optarg ;; |
839 | ||
840 | --config-cache | -C) | |
841 | cache_file=config.cache ;; | |
795ca3e5 | 842 | |
7a197a62 | 843 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 844 | ac_prev=datadir ;; |
7a197a62 | 845 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 846 | datadir=$ac_optarg ;; |
795ca3e5 | 847 | |
7a197a62 AK |
848 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
849 | | --dataroo | --dataro | --datar) | |
850 | ac_prev=datarootdir ;; | |
851 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
852 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
853 | datarootdir=$ac_optarg ;; | |
854 | ||
795ca3e5 | 855 | -disable-* | --disable-*) |
68f2de6d | 856 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 857 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
858 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
859 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 860 | { (exit 1); exit 1; }; } |
68f2de6d AK |
861 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
862 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
863 | |
864 | -docdir | --docdir | --docdi | --doc | --do) | |
865 | ac_prev=docdir ;; | |
866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
867 | docdir=$ac_optarg ;; | |
868 | ||
869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
870 | ac_prev=dvidir ;; | |
871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
872 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
873 | |
874 | -enable-* | --enable-*) | |
68f2de6d | 875 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 876 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
877 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
878 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 879 | { (exit 1); exit 1; }; } |
68f2de6d AK |
880 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
881 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
882 | |
883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
885 | | --exec | --exe | --ex) | |
886 | ac_prev=exec_prefix ;; | |
887 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
888 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
889 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 890 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
891 | |
892 | -gas | --gas | --ga | --g) | |
893 | # Obsolete; use --with-gas. | |
894 | with_gas=yes ;; | |
895 | ||
ad6254c5 AK |
896 | -help | --help | --hel | --he | -h) |
897 | ac_init_help=long ;; | |
898 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
899 | ac_init_help=recursive ;; | |
900 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
901 | ac_init_help=short ;; | |
795ca3e5 AK |
902 | |
903 | -host | --host | --hos | --ho) | |
ad6254c5 | 904 | ac_prev=host_alias ;; |
795ca3e5 | 905 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 906 | host_alias=$ac_optarg ;; |
795ca3e5 | 907 | |
7a197a62 AK |
908 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
909 | ac_prev=htmldir ;; | |
910 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
911 | | --ht=*) | |
912 | htmldir=$ac_optarg ;; | |
913 | ||
795ca3e5 AK |
914 | -includedir | --includedir | --includedi | --included | --include \ |
915 | | --includ | --inclu | --incl | --inc) | |
916 | ac_prev=includedir ;; | |
917 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
918 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 919 | includedir=$ac_optarg ;; |
795ca3e5 AK |
920 | |
921 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
922 | ac_prev=infodir ;; | |
923 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 924 | infodir=$ac_optarg ;; |
795ca3e5 AK |
925 | |
926 | -libdir | --libdir | --libdi | --libd) | |
927 | ac_prev=libdir ;; | |
928 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 929 | libdir=$ac_optarg ;; |
795ca3e5 AK |
930 | |
931 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
932 | | --libexe | --libex | --libe) | |
933 | ac_prev=libexecdir ;; | |
934 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
935 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 936 | libexecdir=$ac_optarg ;; |
795ca3e5 | 937 | |
7a197a62 AK |
938 | -localedir | --localedir | --localedi | --localed | --locale) |
939 | ac_prev=localedir ;; | |
940 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
941 | localedir=$ac_optarg ;; | |
942 | ||
795ca3e5 | 943 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 944 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
945 | ac_prev=localstatedir ;; |
946 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 947 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 948 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
949 | |
950 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
951 | ac_prev=mandir ;; | |
952 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 953 | mandir=$ac_optarg ;; |
795ca3e5 AK |
954 | |
955 | -nfp | --nfp | --nf) | |
956 | # Obsolete; use --without-fp. | |
957 | with_fp=no ;; | |
958 | ||
959 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 960 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
961 | no_create=yes ;; |
962 | ||
963 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
964 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
965 | no_recursion=yes ;; | |
966 | ||
967 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
968 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
969 | | --oldin | --oldi | --old | --ol | --o) | |
970 | ac_prev=oldincludedir ;; | |
971 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
972 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
973 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 974 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
975 | |
976 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
977 | ac_prev=prefix ;; | |
978 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 979 | prefix=$ac_optarg ;; |
795ca3e5 AK |
980 | |
981 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
982 | | --program-pre | --program-pr | --program-p) | |
983 | ac_prev=program_prefix ;; | |
984 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
985 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 986 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
987 | |
988 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
989 | | --program-suf | --program-su | --program-s) | |
990 | ac_prev=program_suffix ;; | |
991 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
992 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 993 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
994 | |
995 | -program-transform-name | --program-transform-name \ | |
996 | | --program-transform-nam | --program-transform-na \ | |
997 | | --program-transform-n | --program-transform- \ | |
998 | | --program-transform | --program-transfor \ | |
999 | | --program-transfo | --program-transf \ | |
1000 | | --program-trans | --program-tran \ | |
1001 | | --progr-tra | --program-tr | --program-t) | |
1002 | ac_prev=program_transform_name ;; | |
1003 | -program-transform-name=* | --program-transform-name=* \ | |
1004 | | --program-transform-nam=* | --program-transform-na=* \ | |
1005 | | --program-transform-n=* | --program-transform-=* \ | |
1006 | | --program-transform=* | --program-transfor=* \ | |
1007 | | --program-transfo=* | --program-transf=* \ | |
1008 | | --program-trans=* | --program-tran=* \ | |
1009 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1010 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1011 | |
7a197a62 AK |
1012 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1013 | ac_prev=pdfdir ;; | |
1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1015 | pdfdir=$ac_optarg ;; | |
1016 | ||
1017 | -psdir | --psdir | --psdi | --psd | --ps) | |
1018 | ac_prev=psdir ;; | |
1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1020 | psdir=$ac_optarg ;; | |
1021 | ||
795ca3e5 AK |
1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1023 | | -silent | --silent | --silen | --sile | --sil) | |
1024 | silent=yes ;; | |
1025 | ||
1026 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1027 | ac_prev=sbindir ;; | |
1028 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1029 | | --sbi=* | --sb=*) | |
ad6254c5 | 1030 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1031 | |
1032 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1033 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1034 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1035 | | --sha | --sh) | |
1036 | ac_prev=sharedstatedir ;; | |
1037 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1038 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1039 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1040 | | --sha=* | --sh=*) | |
ad6254c5 | 1041 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -site | --site | --sit) | |
1044 | ac_prev=site ;; | |
1045 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1046 | site=$ac_optarg ;; |
795ca3e5 AK |
1047 | |
1048 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1049 | ac_prev=srcdir ;; | |
1050 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1051 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1052 | |
1053 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1054 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1055 | ac_prev=sysconfdir ;; | |
1056 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1057 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1058 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1059 | |
1060 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1061 | ac_prev=target_alias ;; |
795ca3e5 | 1062 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1063 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1064 | |
1065 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1066 | verbose=yes ;; | |
1067 | ||
ad6254c5 AK |
1068 | -version | --version | --versio | --versi | --vers | -V) |
1069 | ac_init_version=: ;; | |
795ca3e5 AK |
1070 | |
1071 | -with-* | --with-*) | |
68f2de6d | 1072 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1073 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1074 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1075 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1076 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1077 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1078 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1079 | |
1080 | -without-* | --without-*) | |
68f2de6d | 1081 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1082 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1083 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1084 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1085 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1086 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1087 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1088 | |
1089 | --x) | |
1090 | # Obsolete; use --with-x. | |
1091 | with_x=yes ;; | |
1092 | ||
1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1094 | | --x-incl | --x-inc | --x-in | --x-i) | |
1095 | ac_prev=x_includes ;; | |
1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1098 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1102 | ac_prev=x_libraries ;; | |
1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1104 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1105 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1106 | |
68f2de6d | 1107 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1108 | Try \`$0 --help' for more information." >&2 |
1109 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1110 | ;; |
1111 | ||
ad6254c5 AK |
1112 | *=*) |
1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1114 | # Reject names that are not valid shell variable names. | |
1115 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
68f2de6d | 1116 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1117 | { (exit 1); exit 1; }; } |
7a197a62 | 1118 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1119 | export $ac_envvar ;; |
1120 | ||
795ca3e5 | 1121 | *) |
ad6254c5 | 1122 | # FIXME: should be removed in autoconf 3.0. |
68f2de6d | 1123 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
68f2de6d | 1125 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1126 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1127 | ;; |
1128 | ||
1129 | esac | |
1130 | done | |
1131 | ||
1132 | if test -n "$ac_prev"; then | |
ad6254c5 | 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
68f2de6d | 1134 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1135 | { (exit 1); exit 1; }; } |
795ca3e5 | 1136 | fi |
795ca3e5 | 1137 | |
68f2de6d | 1138 | # Be sure to have absolute directory names. |
7a197a62 AK |
1139 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1140 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1141 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1142 | libdir localedir mandir | |
795ca3e5 | 1143 | do |
7a197a62 | 1144 | eval ac_val=\$$ac_var |
ad6254c5 | 1145 | case $ac_val in |
7a197a62 AK |
1146 | [\\/$]* | ?:[\\/]* ) continue;; |
1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1148 | esac |
68f2de6d | 1149 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1150 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1151 | done |
1152 | ||
ad6254c5 AK |
1153 | # There might be people who depend on the old broken behavior: `$host' |
1154 | # used to hold the argument of --host etc. | |
1155 | # FIXME: To remove some day. | |
1156 | build=$build_alias | |
1157 | host=$host_alias | |
1158 | target=$target_alias | |
1159 | ||
1160 | # FIXME: To remove some day. | |
1161 | if test "x$host_alias" != x; then | |
1162 | if test "x$build_alias" = x; then | |
1163 | cross_compiling=maybe | |
68f2de6d | 1164 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1165 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1166 | elif test "x$build_alias" != "x$host_alias"; then | |
1167 | cross_compiling=yes | |
1168 | fi | |
1169 | fi | |
8106cdd5 | 1170 | |
ad6254c5 AK |
1171 | ac_tool_prefix= |
1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1173 | ||
1174 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1175 | |
795ca3e5 | 1176 | |
7a197a62 AK |
1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1178 | ac_ls_di=`ls -di .` && | |
1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
68f2de6d | 1180 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1181 | { (exit 1); exit 1; }; } |
1182 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
68f2de6d | 1183 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1184 | { (exit 1); exit 1; }; } |
1185 | ||
1186 | ||
795ca3e5 AK |
1187 | # Find the source files, if location was not specified. |
1188 | if test -z "$srcdir"; then | |
1189 | ac_srcdir_defaulted=yes | |
7a197a62 | 1190 | # Try the directory containing this script, then the parent directory. |
68f2de6d AK |
1191 | ac_confdir=`$as_dirname -- "$0" || |
1192 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1193 | X"$0" : 'X\(//\)[^/]' \| \ | |
1194 | X"$0" : 'X\(//\)$' \| \ | |
1195 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1196 | echo X"$0" | | |
7a197a62 AK |
1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1198 | s//\1/ | |
1199 | q | |
1200 | } | |
1201 | /^X\(\/\/\)[^/].*/{ | |
1202 | s//\1/ | |
1203 | q | |
1204 | } | |
1205 | /^X\(\/\/\)$/{ | |
1206 | s//\1/ | |
1207 | q | |
1208 | } | |
1209 | /^X\(\/\).*/{ | |
1210 | s//\1/ | |
1211 | q | |
1212 | } | |
1213 | s/.*/./; q'` | |
795ca3e5 | 1214 | srcdir=$ac_confdir |
7a197a62 | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1216 | srcdir=.. |
1217 | fi | |
1218 | else | |
1219 | ac_srcdir_defaulted=no | |
1220 | fi | |
7a197a62 AK |
1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
68f2de6d | 1223 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1224 | { (exit 1); exit 1; }; } |
795ca3e5 | 1225 | fi |
7a197a62 AK |
1226 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1227 | ac_abs_confdir=`( | |
68f2de6d | 1228 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1229 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1230 | pwd)` |
1231 | # When building in place, set srcdir=. | |
1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1233 | srcdir=. | |
1234 | fi | |
1235 | # Remove unnecessary trailing slashes from srcdir. | |
1236 | # Double slashes in file names in object file debugging info | |
1237 | # mess up M-x gdb in Emacs. | |
1238 | case $srcdir in | |
1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1240 | esac | |
1241 | for ac_var in $ac_precious_vars; do | |
1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1243 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1246 | done | |
ad6254c5 AK |
1247 | |
1248 | # | |
1249 | # Report the --help message. | |
1250 | # | |
1251 | if test "$ac_init_help" = "long"; then | |
1252 | # Omit some internal or obsolete options to make the list less imposing. | |
1253 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1254 | cat <<_ACEOF | |
1255 | \`configure' configures this package to adapt to many kinds of systems. | |
1256 | ||
1257 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1258 | ||
1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1260 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1261 | ||
1262 | Defaults for the options are specified in brackets. | |
1263 | ||
1264 | Configuration: | |
1265 | -h, --help display this help and exit | |
1266 | --help=short display options specific to this package | |
1267 | --help=recursive display the short help of all the included packages | |
1268 | -V, --version display version information and exit | |
1269 | -q, --quiet, --silent do not print \`checking...' messages | |
1270 | --cache-file=FILE cache test results in FILE [disabled] | |
1271 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1272 | -n, --no-create do not create output files | |
1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1274 | ||
ad6254c5 AK |
1275 | Installation directories: |
1276 | --prefix=PREFIX install architecture-independent files in PREFIX | |
68f2de6d | 1277 | [$ac_default_prefix] |
ad6254c5 | 1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
68f2de6d | 1279 | [PREFIX] |
ad6254c5 AK |
1280 | |
1281 | By default, \`make install' will install all the files in | |
1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1284 | for instance \`--prefix=\$HOME'. | |
1285 | ||
1286 | For better control, use the options below. | |
1287 | ||
1288 | Fine tuning of the installation directories: | |
68f2de6d AK |
1289 | --bindir=DIR user executables [EPREFIX/bin] |
1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1291 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1295 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1296 | --includedir=DIR C header files [PREFIX/include] | |
1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1300 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1302 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1304 | --htmldir=DIR html documentation [DOCDIR] | |
1305 | --dvidir=DIR dvi documentation [DOCDIR] | |
1306 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1307 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1308 | _ACEOF |
1309 | ||
1310 | cat <<\_ACEOF | |
1311 | ||
1312 | System types: | |
1313 | --build=BUILD configure for building on BUILD [guessed] | |
1314 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1315 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1316 | _ACEOF | |
1317 | fi | |
1318 | ||
1319 | if test -n "$ac_init_help"; then | |
1320 | ||
1321 | cat <<\_ACEOF | |
1322 | ||
1323 | Optional Features: | |
1324 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1325 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1326 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1327 | device-mapper is missing from the kernel | |
1b523347 | 1328 | --disable-readline Disable readline support |
3d978351 | 1329 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1330 | --enable-debug Enable debugging |
5556819a | 1331 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1332 | --disable-devmapper Disable LVM2 device-mapper interaction |
1333 | --enable-compat Enable support for old device-mapper versions | |
1334 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 AK |
1335 | --disable-o_direct Disable O_DIRECT |
1336 | --enable-cmdlib Build shared command library | |
93bd259b | 1337 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1338 | --enable-fsadm Enable fsadm |
15d91f5a | 1339 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1340 | --enable-static_link Use this to link the tools to their libraries |
1341 | statically. Default is dynamic linking | |
1342 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1343 | --enable-nls Enable Native Language Support |
1344 | ||
1345 | Optional Packages: | |
1346 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1347 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1348 | --with-user=USER Set the owner of installed files [USER=root] |
1349 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1350 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1351 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1352 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1353 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1354 | TYPE=internal | |
1355 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1356 | TYPE=internal | |
1357 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1358 | TYPE=internal | |
1359 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1360 | TYPE=internal | |
1361 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1362 | TYPE=internal | |
5c7fc7c4 | 1363 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1364 | TYPE=none |
d0191583 JM |
1365 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1366 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1367 | --with-confdir=DIR Configuration files in DIR /etc |
1368 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1369 | --with-usrlibdir=DIR |
1370 | --with-usrsbindir=DIR | |
93bd259b AK |
1371 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1372 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1373 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1374 | |
1375 | Some influential environment variables: | |
1376 | CC C compiler command | |
1377 | CFLAGS C compiler flags | |
1378 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1379 | nonstandard directory <lib dir> | |
25fbec5b | 1380 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1381 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1382 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1383 | CPP C preprocessor |
1384 | ||
1385 | Use these variables to override the choices made by `configure' or to help | |
1386 | it to find libraries and programs with nonstandard names/locations. | |
1387 | ||
1388 | _ACEOF | |
7a197a62 | 1389 | ac_status=$? |
ad6254c5 AK |
1390 | fi |
1391 | ||
1392 | if test "$ac_init_help" = "recursive"; then | |
1393 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1394 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
68f2de6d | 1395 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1396 | ac_builddir=. |
1397 | ||
7a197a62 AK |
1398 | case "$ac_dir" in |
1399 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1400 | *) | |
68f2de6d | 1401 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1402 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 1403 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1404 | case $ac_top_builddir_sub in |
1405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1407 | esac ;; | |
1408 | esac | |
1409 | ac_abs_top_builddir=$ac_pwd | |
1410 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1411 | # for backward compatibility: | |
1412 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1413 | |
1414 | case $srcdir in | |
7a197a62 | 1415 | .) # We are building in place. |
ad6254c5 | 1416 | ac_srcdir=. |
7a197a62 AK |
1417 | ac_top_srcdir=$ac_top_builddir_sub |
1418 | ac_abs_top_srcdir=$ac_pwd ;; | |
1419 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1420 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1421 | ac_top_srcdir=$srcdir |
1422 | ac_abs_top_srcdir=$srcdir ;; | |
1423 | *) # Relative name. | |
1424 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1425 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1426 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1427 | esac |
7a197a62 AK |
1428 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1429 | ||
1430 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1431 | # Check for guested configure. | |
1432 | if test -f "$ac_srcdir/configure.gnu"; then | |
1433 | echo && | |
1434 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1435 | elif test -f "$ac_srcdir/configure"; then | |
1436 | echo && | |
1437 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1438 | else |
68f2de6d | 1439 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1440 | fi || ac_status=$? |
1441 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1442 | done |
1443 | fi | |
1444 | ||
7a197a62 | 1445 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1446 | if $ac_init_version; then |
1447 | cat <<\_ACEOF | |
7a197a62 | 1448 | configure |
68f2de6d | 1449 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1450 | |
7a197a62 | 1451 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 1452 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1453 | This configure script is free software; the Free Software Foundation |
1454 | gives unlimited permission to copy, distribute and modify it. | |
1455 | _ACEOF | |
7a197a62 | 1456 | exit |
ad6254c5 | 1457 | fi |
7a197a62 | 1458 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1459 | This file contains any messages produced by compilers while |
1460 | running configure, to aid debugging if configure makes a mistake. | |
1461 | ||
1462 | It was created by $as_me, which was | |
68f2de6d | 1463 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1464 | |
1465 | $ $0 $@ | |
1466 | ||
1467 | _ACEOF | |
7a197a62 | 1468 | exec 5>>config.log |
ad6254c5 AK |
1469 | { |
1470 | cat <<_ASUNAME | |
1471 | ## --------- ## | |
1472 | ## Platform. ## | |
1473 | ## --------- ## | |
1474 | ||
1475 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1476 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1477 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1478 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1479 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1480 | ||
1481 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1482 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1483 | ||
1484 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1485 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1486 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1487 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1488 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1489 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1490 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1491 | ||
1492 | _ASUNAME | |
1493 | ||
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1495 | for as_dir in $PATH | |
1496 | do | |
1497 | IFS=$as_save_IFS | |
1498 | test -z "$as_dir" && as_dir=. | |
68f2de6d | 1499 | echo "PATH: $as_dir" |
ad6254c5 | 1500 | done |
7a197a62 | 1501 | IFS=$as_save_IFS |
ad6254c5 AK |
1502 | |
1503 | } >&5 | |
1504 | ||
1505 | cat >&5 <<_ACEOF | |
1506 | ||
1507 | ||
1508 | ## ----------- ## | |
1509 | ## Core tests. ## | |
1510 | ## ----------- ## | |
1511 | ||
1512 | _ACEOF | |
1513 | ||
1514 | ||
1515 | # Keep a trace of the command line. | |
1516 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1517 | # Strip out --silent because we don't want to record it for future runs. | |
1518 | # Also quote any args containing shell meta-characters. | |
1519 | # Make two passes to allow for proper duplicate-argument suppression. | |
1520 | ac_configure_args= | |
1521 | ac_configure_args0= | |
1522 | ac_configure_args1= | |
ad6254c5 AK |
1523 | ac_must_keep_next=false |
1524 | for ac_pass in 1 2 | |
1525 | do | |
1526 | for ac_arg | |
1527 | do | |
1528 | case $ac_arg in | |
1529 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1530 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1531 | | -silent | --silent | --silen | --sile | --sil) | |
1532 | continue ;; | |
7a197a62 | 1533 | *\'*) |
68f2de6d | 1534 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1535 | esac |
1536 | case $ac_pass in | |
1537 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1538 | 2) | |
1539 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1540 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1541 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1542 | else |
8a2fc586 AK |
1543 | case $ac_arg in |
1544 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1545 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1546 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1547 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1548 | case "$ac_configure_args0 " in | |
1549 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1550 | esac | |
1551 | ;; | |
1552 | -* ) ac_must_keep_next=true ;; | |
1553 | esac | |
ad6254c5 | 1554 | fi |
7a197a62 | 1555 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1556 | ;; |
1557 | esac | |
1558 | done | |
1559 | done | |
1560 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1561 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1562 | ||
1563 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1564 | # config.log. We remove comments because anyway the quotes in there | |
1565 | # would cause problems or look ugly. | |
7a197a62 AK |
1566 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1567 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1568 | trap 'exit_status=$? |
1569 | # Save into config.log some information that might help in debugging. | |
1570 | { | |
1571 | echo | |
1572 | ||
1573 | cat <<\_ASBOX | |
1574 | ## ---------------- ## | |
1575 | ## Cache variables. ## | |
1576 | ## ---------------- ## | |
1577 | _ASBOX | |
1578 | echo | |
1579 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1580 | ( |
1581 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1582 | eval ac_val=\$$ac_var | |
1583 | case $ac_val in #( | |
1584 | *${as_nl}*) | |
1585 | case $ac_var in #( | |
68f2de6d AK |
1586 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1587 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1588 | esac |
1589 | case $ac_var in #( | |
1590 | _ | IFS | as_nl) ;; #( | |
1591 | *) $as_unset $ac_var ;; | |
1592 | esac ;; | |
1593 | esac | |
1594 | done | |
ad6254c5 | 1595 | (set) 2>&1 | |
7a197a62 AK |
1596 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1597 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1598 | sed -n \ |
7a197a62 AK |
1599 | "s/'\''/'\''\\\\'\'''\''/g; |
1600 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1601 | ;; #( | |
ad6254c5 | 1602 | *) |
7a197a62 | 1603 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1604 | ;; |
7a197a62 AK |
1605 | esac | |
1606 | sort | |
1607 | ) | |
ad6254c5 AK |
1608 | echo |
1609 | ||
1610 | cat <<\_ASBOX | |
1611 | ## ----------------- ## | |
1612 | ## Output variables. ## | |
1613 | ## ----------------- ## | |
1614 | _ASBOX | |
1615 | echo | |
1616 | for ac_var in $ac_subst_vars | |
1617 | do | |
7a197a62 AK |
1618 | eval ac_val=\$$ac_var |
1619 | case $ac_val in | |
68f2de6d | 1620 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1621 | esac |
68f2de6d | 1622 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1623 | done | sort |
1624 | echo | |
1625 | ||
1626 | if test -n "$ac_subst_files"; then | |
1627 | cat <<\_ASBOX | |
7a197a62 AK |
1628 | ## ------------------- ## |
1629 | ## File substitutions. ## | |
1630 | ## ------------------- ## | |
ad6254c5 AK |
1631 | _ASBOX |
1632 | echo | |
1633 | for ac_var in $ac_subst_files | |
1634 | do | |
7a197a62 AK |
1635 | eval ac_val=\$$ac_var |
1636 | case $ac_val in | |
68f2de6d | 1637 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1638 | esac |
68f2de6d | 1639 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1640 | done | sort |
1641 | echo | |
1642 | fi | |
1643 | ||
1644 | if test -s confdefs.h; then | |
1645 | cat <<\_ASBOX | |
1646 | ## ----------- ## | |
1647 | ## confdefs.h. ## | |
1648 | ## ----------- ## | |
1649 | _ASBOX | |
1650 | echo | |
7a197a62 | 1651 | cat confdefs.h |
ad6254c5 AK |
1652 | echo |
1653 | fi | |
1654 | test "$ac_signal" != 0 && | |
68f2de6d AK |
1655 | echo "$as_me: caught signal $ac_signal" |
1656 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1657 | } >&5 |
7a197a62 AK |
1658 | rm -f core *.core core.conftest.* && |
1659 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1660 | exit $exit_status |
7a197a62 | 1661 | ' 0 |
ad6254c5 AK |
1662 | for ac_signal in 1 2 13 15; do |
1663 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1664 | done | |
1665 | ac_signal=0 | |
1666 | ||
1667 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1668 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1669 | |
1670 | # Predefined preprocessor variables. | |
1671 | ||
1672 | cat >>confdefs.h <<_ACEOF | |
1673 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1674 | _ACEOF | |
1675 | ||
1676 | ||
1677 | cat >>confdefs.h <<_ACEOF | |
1678 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1679 | _ACEOF | |
1680 | ||
1681 | ||
1682 | cat >>confdefs.h <<_ACEOF | |
1683 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1684 | _ACEOF | |
8106cdd5 | 1685 | |
ad6254c5 AK |
1686 | |
1687 | cat >>confdefs.h <<_ACEOF | |
1688 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1689 | _ACEOF | |
1690 | ||
1691 | ||
1692 | cat >>confdefs.h <<_ACEOF | |
1693 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1694 | _ACEOF | |
1695 | ||
1696 | ||
1697 | # Let the site file select an alternate cache file if it wants to. | |
68f2de6d | 1698 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1699 | if test -n "$CONFIG_SITE"; then |
68f2de6d | 1700 | set x "$CONFIG_SITE" |
7a197a62 | 1701 | elif test "x$prefix" != xNONE; then |
68f2de6d | 1702 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1703 | else |
68f2de6d AK |
1704 | set x "$ac_default_prefix/share/config.site" \ |
1705 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1706 | fi |
68f2de6d AK |
1707 | shift |
1708 | for ac_site_file | |
7a197a62 | 1709 | do |
795ca3e5 | 1710 | if test -r "$ac_site_file"; then |
68f2de6d AK |
1711 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1712 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1713 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1714 | . "$ac_site_file" |
1715 | fi | |
1716 | done | |
1717 | ||
1718 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1719 | # Some versions of bash will fail to source /dev/null (special |
1720 | # files actually), so we avoid doing that. | |
1721 | if test -f "$cache_file"; then | |
68f2de6d AK |
1722 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1723 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1724 | case $cache_file in |
7a197a62 AK |
1725 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1726 | *) . "./$cache_file";; | |
ad6254c5 AK |
1727 | esac |
1728 | fi | |
795ca3e5 | 1729 | else |
68f2de6d AK |
1730 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1731 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1732 | >$cache_file |
1733 | fi | |
1734 | ||
1735 | # Check that the precious variables saved in the cache have kept the same | |
1736 | # value. | |
1737 | ac_cache_corrupted=false | |
7a197a62 | 1738 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1739 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1740 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1741 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1742 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1743 | case $ac_old_set,$ac_new_set in |
1744 | set,) | |
68f2de6d AK |
1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1746 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1747 | ac_cache_corrupted=: ;; |
1748 | ,set) | |
68f2de6d AK |
1749 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1750 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1751 | ac_cache_corrupted=: ;; |
1752 | ,);; | |
1753 | *) | |
1754 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
68f2de6d AK |
1755 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1756 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1757 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1758 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1759 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1760 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1761 | ac_cache_corrupted=: | |
ad6254c5 AK |
1762 | fi;; |
1763 | esac | |
1764 | # Pass precious variables to config.status. | |
1765 | if test "$ac_new_set" = set; then | |
1766 | case $ac_new_val in | |
68f2de6d | 1767 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1768 | *) ac_arg=$ac_var=$ac_new_val ;; |
1769 | esac | |
1770 | case " $ac_configure_args " in | |
1771 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1772 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1773 | esac | |
1774 | fi | |
1775 | done | |
1776 | if $ac_cache_corrupted; then | |
68f2de6d AK |
1777 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1778 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1779 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1780 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1781 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1782 | fi |
1783 | ||
ad6254c5 AK |
1784 | |
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
1799 | ||
7a197a62 AK |
1800 | ac_ext=c |
1801 | ac_cpp='$CPP $CPPFLAGS' | |
1802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1805 | |
795ca3e5 AK |
1806 | |
1807 | ||
7a197a62 | 1808 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1809 | |
1810 | ||
80992638 | 1811 | ################################################################################ |
795ca3e5 | 1812 | ac_aux_dir= |
7a197a62 AK |
1813 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1814 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1815 | ac_aux_dir=$ac_dir |
1816 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1817 | break | |
7a197a62 | 1818 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1819 | ac_aux_dir=$ac_dir |
1820 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1821 | break | |
7a197a62 | 1822 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1823 | ac_aux_dir=$ac_dir |
1824 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1825 | break | |
795ca3e5 AK |
1826 | fi |
1827 | done | |
1828 | if test -z "$ac_aux_dir"; then | |
68f2de6d AK |
1829 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1830 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1831 | { (exit 1); exit 1; }; } |
795ca3e5 | 1832 | fi |
7a197a62 AK |
1833 | |
1834 | # These three variables are undocumented and unsupported, | |
1835 | # and are intended to be withdrawn in a future Autoconf release. | |
1836 | # They can cause serious problems if a builder's source tree is in a directory | |
1837 | # whose full name contains unusual characters. | |
1838 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1839 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1840 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1841 | ||
8ce0cbda AK |
1842 | |
1843 | ||
ad6254c5 | 1844 | ################################################################################ |
8ce0cbda | 1845 | # Make sure we can run config.sub. |
7a197a62 | 1846 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
68f2de6d AK |
1847 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1848 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1849 | { (exit 1); exit 1; }; } |
1850 | ||
68f2de6d AK |
1851 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1852 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1853 | if test "${ac_cv_build+set}" = set; then |
68f2de6d | 1854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1855 | else |
7a197a62 AK |
1856 | ac_build_alias=$build_alias |
1857 | test "x$ac_build_alias" = x && | |
1858 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1859 | test "x$ac_build_alias" = x && | |
68f2de6d AK |
1860 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1861 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1862 | { (exit 1); exit 1; }; } |
7a197a62 | 1863 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
68f2de6d AK |
1864 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1865 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1866 | { (exit 1); exit 1; }; } |
1867 | ||
1868 | fi | |
68f2de6d AK |
1869 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1870 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1871 | case $ac_cv_build in |
1872 | *-*-*) ;; | |
68f2de6d AK |
1873 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1874 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1875 | { (exit 1); exit 1; }; };; |
1876 | esac | |
ad6254c5 | 1877 | build=$ac_cv_build |
7a197a62 AK |
1878 | ac_save_IFS=$IFS; IFS='-' |
1879 | set x $ac_cv_build | |
1880 | shift | |
1881 | build_cpu=$1 | |
1882 | build_vendor=$2 | |
1883 | shift; shift | |
1884 | # Remember, the first character of IFS is used to create $*, | |
1885 | # except with old shells: | |
1886 | build_os=$* | |
1887 | IFS=$ac_save_IFS | |
1888 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1889 | |
1890 | ||
68f2de6d AK |
1891 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1892 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1893 | if test "${ac_cv_host+set}" = set; then |
68f2de6d | 1894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1895 | else |
7a197a62 AK |
1896 | if test "x$host_alias" = x; then |
1897 | ac_cv_host=$ac_cv_build | |
1898 | else | |
1899 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
68f2de6d AK |
1900 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1901 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1902 | { (exit 1); exit 1; }; } |
7a197a62 | 1903 | fi |
ad6254c5 AK |
1904 | |
1905 | fi | |
68f2de6d AK |
1906 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1907 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1908 | case $ac_cv_host in |
1909 | *-*-*) ;; | |
68f2de6d AK |
1910 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1911 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1912 | { (exit 1); exit 1; }; };; |
1913 | esac | |
ad6254c5 | 1914 | host=$ac_cv_host |
7a197a62 AK |
1915 | ac_save_IFS=$IFS; IFS='-' |
1916 | set x $ac_cv_host | |
1917 | shift | |
1918 | host_cpu=$1 | |
1919 | host_vendor=$2 | |
1920 | shift; shift | |
1921 | # Remember, the first character of IFS is used to create $*, | |
1922 | # except with old shells: | |
1923 | host_os=$* | |
1924 | IFS=$ac_save_IFS | |
1925 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1926 | |
1927 | ||
68f2de6d AK |
1928 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1929 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1930 | if test "${ac_cv_target+set}" = set; then |
68f2de6d | 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1932 | else |
7a197a62 AK |
1933 | if test "x$target_alias" = x; then |
1934 | ac_cv_target=$ac_cv_host | |
1935 | else | |
1936 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
68f2de6d AK |
1937 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1938 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1939 | { (exit 1); exit 1; }; } |
7a197a62 | 1940 | fi |
8ce0cbda | 1941 | |
ad6254c5 | 1942 | fi |
68f2de6d AK |
1943 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1944 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1945 | case $ac_cv_target in |
1946 | *-*-*) ;; | |
68f2de6d AK |
1947 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1948 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1949 | { (exit 1); exit 1; }; };; |
1950 | esac | |
ad6254c5 | 1951 | target=$ac_cv_target |
7a197a62 AK |
1952 | ac_save_IFS=$IFS; IFS='-' |
1953 | set x $ac_cv_target | |
1954 | shift | |
1955 | target_cpu=$1 | |
1956 | target_vendor=$2 | |
1957 | shift; shift | |
1958 | # Remember, the first character of IFS is used to create $*, | |
1959 | # except with old shells: | |
1960 | target_os=$* | |
1961 | IFS=$ac_save_IFS | |
1962 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1963 | |
8ce0cbda | 1964 | |
ad6254c5 AK |
1965 | # The aliases save the names the user supplied, while $host etc. |
1966 | # will get canonicalized. | |
1967 | test -n "$target_alias" && | |
8ce0cbda AK |
1968 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1969 | NONENONEs,x,x, && | |
1970 | program_prefix=${target_alias}- | |
1971 | ||
8ce0cbda AK |
1972 | case "$host_os" in |
1973 | linux*) | |
8ce0cbda AK |
1974 | COPTIMISE_FLAG="-O2" |
1975 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1976 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1977 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1978 | LDDEPS="$LDDEPS .export.sym" | |
1979 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1980 | LIB_SUFFIX=so |
8ce0cbda AK |
1981 | DEVMAPPER=yes |
1982 | ODIRECT=yes | |
d0191583 | 1983 | DM_IOCTLS=yes |
8ce0cbda | 1984 | SELINUX=yes |
8b1a3214 | 1985 | REALTIME=yes |
8ce0cbda | 1986 | CLUSTER=internal |
93bd259b | 1987 | FSADM=yes |
d0191583 | 1988 | ;; |
8ce0cbda AK |
1989 | darwin*) |
1990 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1991 | COPTIMISE_FLAG="-O2" | |
1992 | CLDFLAGS="$CLDFLAGS" | |
1993 | CLDWHOLEARCHIVE="-all_load" | |
1994 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1995 | LIB_SUFFIX=dylib |
a653923f | 1996 | DEVMAPPER=yes |
8ce0cbda | 1997 | ODIRECT=no |
d0191583 | 1998 | DM_IOCTLS=no |
8ce0cbda | 1999 | SELINUX=no |
8b1a3214 | 2000 | REALTIME=no |
8ce0cbda | 2001 | CLUSTER=none |
d0191583 JM |
2002 | FSADM=no |
2003 | ;; | |
8ce0cbda AK |
2004 | esac |
2005 | ||
80992638 | 2006 | ################################################################################ |
5951ef33 AK |
2007 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2008 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
2009 | if test "${ac_cv_path_SED+set}" = set; then | |
2010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2011 | else | |
2012 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2013 | for ac_i in 1 2 3 4 5 6 7; do | |
2014 | ac_script="$ac_script$as_nl$ac_script" | |
2015 | done | |
2016 | echo "$ac_script" | sed 99q >conftest.sed | |
2017 | $as_unset ac_script || ac_script= | |
2018 | # Extract the first word of "sed gsed" to use in msg output | |
2019 | if test -z "$SED"; then | |
2020 | set dummy sed gsed; ac_prog_name=$2 | |
2021 | if test "${ac_cv_path_SED+set}" = set; then | |
2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2023 | else | |
2024 | ac_path_SED_found=false | |
2025 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2027 | for as_dir in $PATH | |
2028 | do | |
2029 | IFS=$as_save_IFS | |
2030 | test -z "$as_dir" && as_dir=. | |
2031 | for ac_prog in sed gsed; do | |
2032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2033 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2034 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2035 | # Check for GNU ac_path_SED and select it if it is found. | |
2036 | # Check for GNU $ac_path_SED | |
2037 | case `"$ac_path_SED" --version 2>&1` in | |
2038 | *GNU*) | |
2039 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2040 | *) | |
2041 | ac_count=0 | |
2042 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2043 | while : | |
2044 | do | |
2045 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2046 | mv "conftest.tmp" "conftest.in" | |
2047 | cp "conftest.in" "conftest.nl" | |
2048 | echo '' >> "conftest.nl" | |
2049 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2050 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2051 | ac_count=`expr $ac_count + 1` | |
2052 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2053 | # Best one so far, save it but keep looking for a better one | |
2054 | ac_cv_path_SED="$ac_path_SED" | |
2055 | ac_path_SED_max=$ac_count | |
2056 | fi | |
2057 | # 10*(2^10) chars as input seems more than enough | |
2058 | test $ac_count -gt 10 && break | |
2059 | done | |
2060 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2061 | esac | |
2062 | ||
2063 | ||
2064 | $ac_path_SED_found && break 3 | |
2065 | done | |
2066 | done | |
2067 | ||
2068 | done | |
2069 | IFS=$as_save_IFS | |
2070 | ||
2071 | ||
2072 | fi | |
2073 | ||
2074 | SED="$ac_cv_path_SED" | |
2075 | if test -z "$SED"; then | |
2076 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
2077 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
2078 | { (exit 1); exit 1; }; } | |
2079 | fi | |
2080 | ||
2081 | else | |
2082 | ac_cv_path_SED=$SED | |
2083 | fi | |
2084 | ||
2085 | fi | |
2086 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
2087 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
2088 | SED="$ac_cv_path_SED" | |
2089 | rm -f conftest.sed | |
2090 | ||
ad6254c5 | 2091 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2092 | do |
ad6254c5 | 2093 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2094 | set dummy $ac_prog; ac_word=$2 |
68f2de6d AK |
2095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2097 | if test "${ac_cv_prog_AWK+set}" = set; then |
68f2de6d | 2098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2099 | else |
2100 | if test -n "$AWK"; then | |
2101 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2102 | else | |
ad6254c5 AK |
2103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2104 | for as_dir in $PATH | |
2105 | do | |
2106 | IFS=$as_save_IFS | |
2107 | test -z "$as_dir" && as_dir=. | |
2108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2110 | ac_cv_prog_AWK="$ac_prog" |
68f2de6d | 2111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2112 | break 2 |
2113 | fi | |
2114 | done | |
2115 | done | |
7a197a62 | 2116 | IFS=$as_save_IFS |
ad6254c5 | 2117 | |
795ca3e5 AK |
2118 | fi |
2119 | fi | |
ad6254c5 | 2120 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2121 | if test -n "$AWK"; then |
68f2de6d AK |
2122 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2123 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2124 | else |
68f2de6d AK |
2125 | { echo "$as_me:$LINENO: result: no" >&5 |
2126 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2127 | fi |
2128 | ||
7a197a62 | 2129 | |
ad6254c5 AK |
2130 | test -n "$AWK" && break |
2131 | done | |
2132 | ||
2133 | ac_ext=c | |
2134 | ac_cpp='$CPP $CPPFLAGS' | |
2135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2138 | if test -n "$ac_tool_prefix"; then | |
2139 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2140 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
68f2de6d AK |
2141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2143 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2145 | else |
2146 | if test -n "$CC"; then | |
2147 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2148 | else | |
2149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2150 | for as_dir in $PATH | |
2151 | do | |
2152 | IFS=$as_save_IFS | |
2153 | test -z "$as_dir" && as_dir=. | |
2154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2156 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
68f2de6d | 2157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2158 | break 2 |
2159 | fi | |
2160 | done | |
8106cdd5 | 2161 | done |
7a197a62 | 2162 | IFS=$as_save_IFS |
8106cdd5 | 2163 | |
ad6254c5 AK |
2164 | fi |
2165 | fi | |
2166 | CC=$ac_cv_prog_CC | |
2167 | if test -n "$CC"; then | |
68f2de6d AK |
2168 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2169 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2170 | else |
68f2de6d AK |
2171 | { echo "$as_me:$LINENO: result: no" >&5 |
2172 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2173 | fi |
2174 | ||
7a197a62 | 2175 | |
ad6254c5 AK |
2176 | fi |
2177 | if test -z "$ac_cv_prog_CC"; then | |
2178 | ac_ct_CC=$CC | |
2179 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2180 | set dummy gcc; ac_word=$2 |
68f2de6d AK |
2181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2183 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2185 | else |
2186 | if test -n "$ac_ct_CC"; then | |
2187 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2188 | else | |
2189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2190 | for as_dir in $PATH | |
2191 | do | |
2192 | IFS=$as_save_IFS | |
2193 | test -z "$as_dir" && as_dir=. | |
2194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2196 | ac_cv_prog_ac_ct_CC="gcc" |
68f2de6d | 2197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2198 | break 2 |
2199 | fi | |
2200 | done | |
2201 | done | |
7a197a62 | 2202 | IFS=$as_save_IFS |
ad6254c5 AK |
2203 | |
2204 | fi | |
2205 | fi | |
2206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2207 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2208 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2209 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2210 | else |
68f2de6d AK |
2211 | { echo "$as_me:$LINENO: result: no" >&5 |
2212 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2213 | fi |
2214 | ||
7a197a62 AK |
2215 | if test "x$ac_ct_CC" = x; then |
2216 | CC="" | |
2217 | else | |
2218 | case $cross_compiling:$ac_tool_warned in | |
2219 | yes:) | |
68f2de6d | 2220 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2221 | whose name does not start with the host triplet. If you think this |
2222 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2223 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2224 | whose name does not start with the host triplet. If you think this |
2225 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2226 | ac_tool_warned=yes ;; | |
2227 | esac | |
2228 | CC=$ac_ct_CC | |
2229 | fi | |
ad6254c5 AK |
2230 | else |
2231 | CC="$ac_cv_prog_CC" | |
2232 | fi | |
2233 | ||
2234 | if test -z "$CC"; then | |
7a197a62 AK |
2235 | if test -n "$ac_tool_prefix"; then |
2236 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2237 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
68f2de6d AK |
2238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2240 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2242 | else |
2243 | if test -n "$CC"; then | |
2244 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2245 | else | |
ad6254c5 AK |
2246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2247 | for as_dir in $PATH | |
2248 | do | |
2249 | IFS=$as_save_IFS | |
2250 | test -z "$as_dir" && as_dir=. | |
2251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2253 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
68f2de6d | 2254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2255 | break 2 |
2256 | fi | |
2257 | done | |
2258 | done | |
7a197a62 | 2259 | IFS=$as_save_IFS |
ad6254c5 | 2260 | |
8106cdd5 AK |
2261 | fi |
2262 | fi | |
ad6254c5 | 2263 | CC=$ac_cv_prog_CC |
8106cdd5 | 2264 | if test -n "$CC"; then |
68f2de6d AK |
2265 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2266 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2267 | else |
68f2de6d AK |
2268 | { echo "$as_me:$LINENO: result: no" >&5 |
2269 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2270 | fi |
2271 | ||
8106cdd5 | 2272 | |
7a197a62 | 2273 | fi |
ad6254c5 | 2274 | fi |
795ca3e5 AK |
2275 | if test -z "$CC"; then |
2276 | # Extract the first word of "cc", so it can be a program name with args. | |
2277 | set dummy cc; ac_word=$2 | |
68f2de6d AK |
2278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2280 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2282 | else |
2283 | if test -n "$CC"; then | |
2284 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2285 | else | |
795ca3e5 | 2286 | ac_prog_rejected=no |
ad6254c5 AK |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2288 | for as_dir in $PATH | |
2289 | do | |
2290 | IFS=$as_save_IFS | |
2291 | test -z "$as_dir" && as_dir=. | |
2292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2294 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2295 | ac_prog_rejected=yes | |
2296 | continue | |
2297 | fi | |
2298 | ac_cv_prog_CC="cc" | |
68f2de6d | 2299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2300 | break 2 |
2301 | fi | |
2302 | done | |
2303 | done | |
7a197a62 | 2304 | IFS=$as_save_IFS |
ad6254c5 | 2305 | |
795ca3e5 AK |
2306 | if test $ac_prog_rejected = yes; then |
2307 | # We found a bogon in the path, so make sure we never use it. | |
2308 | set dummy $ac_cv_prog_CC | |
2309 | shift | |
ad6254c5 | 2310 | if test $# != 0; then |
795ca3e5 AK |
2311 | # We chose a different compiler from the bogus one. |
2312 | # However, it has the same basename, so the bogon will be chosen | |
2313 | # first if we set CC to just the basename; use the full file name. | |
2314 | shift | |
ad6254c5 | 2315 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2316 | fi |
2317 | fi | |
2318 | fi | |
2319 | fi | |
ad6254c5 | 2320 | CC=$ac_cv_prog_CC |
795ca3e5 | 2321 | if test -n "$CC"; then |
68f2de6d AK |
2322 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2323 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2324 | else |
68f2de6d AK |
2325 | { echo "$as_me:$LINENO: result: no" >&5 |
2326 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2327 | fi |
2328 | ||
7a197a62 | 2329 | |
ad6254c5 AK |
2330 | fi |
2331 | if test -z "$CC"; then | |
2332 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2333 | for ac_prog in cl.exe |
ad6254c5 AK |
2334 | do |
2335 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2336 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
68f2de6d AK |
2337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2339 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2341 | else |
2342 | if test -n "$CC"; then | |
2343 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2344 | else | |
ad6254c5 AK |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2346 | for as_dir in $PATH | |
2347 | do | |
2348 | IFS=$as_save_IFS | |
2349 | test -z "$as_dir" && as_dir=. | |
2350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2352 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
68f2de6d | 2353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2354 | break 2 |
2355 | fi | |
2356 | done | |
2357 | done | |
7a197a62 | 2358 | IFS=$as_save_IFS |
ad6254c5 | 2359 | |
795ca3e5 AK |
2360 | fi |
2361 | fi | |
ad6254c5 | 2362 | CC=$ac_cv_prog_CC |
795ca3e5 | 2363 | if test -n "$CC"; then |
68f2de6d AK |
2364 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2365 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2366 | else |
68f2de6d AK |
2367 | { echo "$as_me:$LINENO: result: no" >&5 |
2368 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2369 | fi |
ad6254c5 | 2370 | |
7a197a62 | 2371 | |
ad6254c5 AK |
2372 | test -n "$CC" && break |
2373 | done | |
2374 | fi | |
2375 | if test -z "$CC"; then | |
2376 | ac_ct_CC=$CC | |
7a197a62 | 2377 | for ac_prog in cl.exe |
ad6254c5 AK |
2378 | do |
2379 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2380 | set dummy $ac_prog; ac_word=$2 | |
68f2de6d AK |
2381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2383 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2385 | else |
2386 | if test -n "$ac_ct_CC"; then | |
2387 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2388 | else | |
2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2390 | for as_dir in $PATH | |
2391 | do | |
2392 | IFS=$as_save_IFS | |
2393 | test -z "$as_dir" && as_dir=. | |
2394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2396 | ac_cv_prog_ac_ct_CC="$ac_prog" |
68f2de6d | 2397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2398 | break 2 |
795ca3e5 | 2399 | fi |
ad6254c5 AK |
2400 | done |
2401 | done | |
7a197a62 | 2402 | IFS=$as_save_IFS |
ad6254c5 AK |
2403 | |
2404 | fi | |
2405 | fi | |
2406 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2407 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2408 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2409 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2410 | else |
68f2de6d AK |
2411 | { echo "$as_me:$LINENO: result: no" >&5 |
2412 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2413 | fi |
2414 | ||
7a197a62 | 2415 | |
ad6254c5 AK |
2416 | test -n "$ac_ct_CC" && break |
2417 | done | |
795ca3e5 | 2418 | |
7a197a62 AK |
2419 | if test "x$ac_ct_CC" = x; then |
2420 | CC="" | |
2421 | else | |
2422 | case $cross_compiling:$ac_tool_warned in | |
2423 | yes:) | |
68f2de6d | 2424 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2425 | whose name does not start with the host triplet. If you think this |
2426 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2427 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2428 | whose name does not start with the host triplet. If you think this |
2429 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2430 | ac_tool_warned=yes ;; | |
2431 | esac | |
2432 | CC=$ac_ct_CC | |
2433 | fi | |
ad6254c5 AK |
2434 | fi |
2435 | ||
2436 | fi | |
2437 | ||
2438 | ||
68f2de6d | 2439 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2440 | See \`config.log' for more details." >&5 |
68f2de6d | 2441 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2442 | See \`config.log' for more details." >&2;} |
2443 | { (exit 1); exit 1; }; } | |
2444 | ||
2445 | # Provide some information about the compiler. | |
68f2de6d AK |
2446 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2447 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2448 | { (ac_try="$ac_compiler --version >&5" |
2449 | case "(($ac_try" in | |
2450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2451 | *) ac_try_echo=$ac_try;; | |
2452 | esac | |
68f2de6d | 2453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2454 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2455 | ac_status=$? |
68f2de6d | 2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2457 | (exit $ac_status); } |
7a197a62 AK |
2458 | { (ac_try="$ac_compiler -v >&5" |
2459 | case "(($ac_try" in | |
2460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2461 | *) ac_try_echo=$ac_try;; | |
2462 | esac | |
68f2de6d | 2463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2464 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2465 | ac_status=$? |
68f2de6d | 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2467 | (exit $ac_status); } |
7a197a62 AK |
2468 | { (ac_try="$ac_compiler -V >&5" |
2469 | case "(($ac_try" in | |
2470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2471 | *) ac_try_echo=$ac_try;; | |
2472 | esac | |
68f2de6d | 2473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2474 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2475 | ac_status=$? |
68f2de6d | 2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2477 | (exit $ac_status); } |
2478 | ||
2479 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2480 | /* confdefs.h. */ |
2481 | _ACEOF | |
2482 | cat confdefs.h >>conftest.$ac_ext | |
2483 | cat >>conftest.$ac_ext <<_ACEOF | |
2484 | /* end confdefs.h. */ | |
2485 | ||
2486 | int | |
2487 | main () | |
2488 | { | |
2489 | ||
2490 | ; | |
2491 | return 0; | |
2492 | } | |
2493 | _ACEOF | |
2494 | ac_clean_files_save=$ac_clean_files | |
68f2de6d | 2495 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2496 | # Try to create an executable without -o first, disregard a.out. |
2497 | # It will help us diagnose broken compilers, and finding out an intuition | |
2498 | # of exeext. | |
68f2de6d AK |
2499 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2500 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2501 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2502 | # | |
2503 | # List of possible output files, starting from the most likely. | |
2504 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2505 | # only as a last resort. b.out is created by i960 compilers. | |
2506 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2507 | # | |
2508 | # The IRIX 6 linker writes into existing files which may not be | |
2509 | # executable, retaining their permissions. Remove them first so a | |
2510 | # subsequent execution test works. | |
7a197a62 AK |
2511 | ac_rmfiles= |
2512 | for ac_file in $ac_files | |
2513 | do | |
2514 | case $ac_file in | |
68f2de6d | 2515 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2516 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2517 | esac | |
2518 | done | |
2519 | rm -f $ac_rmfiles | |
2520 | ||
2521 | if { (ac_try="$ac_link_default" | |
2522 | case "(($ac_try" in | |
2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2524 | *) ac_try_echo=$ac_try;; | |
2525 | esac | |
68f2de6d | 2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2527 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2528 | ac_status=$? |
68f2de6d | 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2530 | (exit $ac_status); }; then |
7a197a62 AK |
2531 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2532 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2533 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2534 | # so that the user can short-circuit this test for compilers unknown to | |
2535 | # Autoconf. | |
25fbec5b | 2536 | for ac_file in $ac_files '' |
ad6254c5 AK |
2537 | do |
2538 | test -f "$ac_file" || continue | |
2539 | case $ac_file in | |
68f2de6d | 2540 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2541 | ;; |
ad6254c5 | 2542 | [ab].out ) |
8a2fc586 AK |
2543 | # We found the default executable, but exeext='' is most |
2544 | # certainly right. | |
2545 | break;; | |
ad6254c5 | 2546 | *.* ) |
7a197a62 AK |
2547 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2548 | then :; else | |
2549 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2550 | fi | |
2551 | # We set ac_cv_exeext here because the later test for it is not | |
2552 | # safe: cross compilers may not add the suffix if given an `-o' | |
2553 | # argument, so we may need to know it at that point already. | |
2554 | # Even if this section looks crufty: it has the advantage of | |
2555 | # actually working. | |
8a2fc586 | 2556 | break;; |
ad6254c5 | 2557 | * ) |
8a2fc586 | 2558 | break;; |
ad6254c5 AK |
2559 | esac |
2560 | done | |
7a197a62 AK |
2561 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2562 | ||
ad6254c5 | 2563 | else |
25fbec5b AK |
2564 | ac_file='' |
2565 | fi | |
2566 | ||
68f2de6d AK |
2567 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2568 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2569 | if test -z "$ac_file"; then |
68f2de6d | 2570 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2571 | sed 's/^/| /' conftest.$ac_ext >&5 |
2572 | ||
68f2de6d | 2573 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2574 | See \`config.log' for more details." >&5 |
68f2de6d | 2575 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2576 | See \`config.log' for more details." >&2;} |
2577 | { (exit 77); exit 77; }; } | |
2578 | fi | |
2579 | ||
2580 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2581 | |
7a197a62 | 2582 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2583 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2584 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2585 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2586 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2587 | # If not cross compiling, check that we can run a simple program. | |
2588 | if test "$cross_compiling" != yes; then | |
2589 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2590 | { (case "(($ac_try" in |
2591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2592 | *) ac_try_echo=$ac_try;; | |
2593 | esac | |
68f2de6d | 2594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2595 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2596 | ac_status=$? |
68f2de6d | 2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2598 | (exit $ac_status); }; }; then |
2599 | cross_compiling=no | |
795ca3e5 | 2600 | else |
ad6254c5 AK |
2601 | if test "$cross_compiling" = maybe; then |
2602 | cross_compiling=yes | |
2603 | else | |
68f2de6d | 2604 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2605 | If you meant to cross compile, use \`--host'. |
2606 | See \`config.log' for more details." >&5 | |
68f2de6d | 2607 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2608 | If you meant to cross compile, use \`--host'. |
2609 | See \`config.log' for more details." >&2;} | |
2610 | { (exit 1); exit 1; }; } | |
2611 | fi | |
795ca3e5 | 2612 | fi |
80992638 | 2613 | fi |
68f2de6d AK |
2614 | { echo "$as_me:$LINENO: result: yes" >&5 |
2615 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2616 | |
68f2de6d | 2617 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2618 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2619 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2620 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2621 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2622 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2623 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2624 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2625 | |
68f2de6d AK |
2626 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2627 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2628 | if { (ac_try="$ac_link" |
2629 | case "(($ac_try" in | |
2630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2631 | *) ac_try_echo=$ac_try;; | |
2632 | esac | |
68f2de6d | 2633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2634 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2635 | ac_status=$? |
68f2de6d | 2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2637 | (exit $ac_status); }; then |
2638 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2639 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2640 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2641 | # `rm'. | |
2642 | for ac_file in conftest.exe conftest conftest.*; do | |
2643 | test -f "$ac_file" || continue | |
2644 | case $ac_file in | |
68f2de6d | 2645 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2646 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2647 | break;; |
ad6254c5 AK |
2648 | * ) break;; |
2649 | esac | |
2650 | done | |
80992638 | 2651 | else |
68f2de6d | 2652 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2653 | See \`config.log' for more details." >&5 |
68f2de6d | 2654 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2655 | See \`config.log' for more details." >&2;} |
2656 | { (exit 1); exit 1; }; } | |
2657 | fi | |
2658 | ||
2659 | rm -f conftest$ac_cv_exeext | |
68f2de6d AK |
2660 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2661 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2662 | |
2663 | rm -f conftest.$ac_ext | |
2664 | EXEEXT=$ac_cv_exeext | |
2665 | ac_exeext=$EXEEXT | |
68f2de6d AK |
2666 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2667 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2668 | if test "${ac_cv_objext+set}" = set; then |
68f2de6d | 2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2670 | else |
ad6254c5 | 2671 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2672 | /* confdefs.h. */ |
2673 | _ACEOF | |
2674 | cat confdefs.h >>conftest.$ac_ext | |
2675 | cat >>conftest.$ac_ext <<_ACEOF | |
2676 | /* end confdefs.h. */ | |
2677 | ||
2678 | int | |
2679 | main () | |
2680 | { | |
2681 | ||
2682 | ; | |
2683 | return 0; | |
2684 | } | |
2685 | _ACEOF | |
2686 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2687 | if { (ac_try="$ac_compile" |
2688 | case "(($ac_try" in | |
2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2690 | *) ac_try_echo=$ac_try;; | |
2691 | esac | |
68f2de6d | 2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2693 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2694 | ac_status=$? |
68f2de6d | 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2696 | (exit $ac_status); }; then |
7a197a62 AK |
2697 | for ac_file in conftest.o conftest.obj conftest.*; do |
2698 | test -f "$ac_file" || continue; | |
ad6254c5 | 2699 | case $ac_file in |
68f2de6d | 2700 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2701 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2702 | break;; | |
2703 | esac | |
2704 | done | |
2705 | else | |
68f2de6d | 2706 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2707 | sed 's/^/| /' conftest.$ac_ext >&5 |
2708 | ||
68f2de6d | 2709 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2710 | See \`config.log' for more details." >&5 |
68f2de6d | 2711 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2712 | See \`config.log' for more details." >&2;} |
2713 | { (exit 1); exit 1; }; } | |
2714 | fi | |
2715 | ||
2716 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2717 | fi | |
68f2de6d AK |
2718 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2719 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2720 | OBJEXT=$ac_cv_objext |
2721 | ac_objext=$OBJEXT | |
68f2de6d AK |
2722 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2723 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2724 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
68f2de6d | 2725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2726 | else |
2727 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2728 | /* confdefs.h. */ |
2729 | _ACEOF | |
2730 | cat confdefs.h >>conftest.$ac_ext | |
2731 | cat >>conftest.$ac_ext <<_ACEOF | |
2732 | /* end confdefs.h. */ | |
2733 | ||
2734 | int | |
2735 | main () | |
2736 | { | |
2737 | #ifndef __GNUC__ | |
2738 | choke me | |
2739 | #endif | |
80992638 | 2740 | |
ad6254c5 AK |
2741 | ; |
2742 | return 0; | |
2743 | } | |
2744 | _ACEOF | |
2745 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2746 | if { (ac_try="$ac_compile" |
2747 | case "(($ac_try" in | |
2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2749 | *) ac_try_echo=$ac_try;; | |
2750 | esac | |
68f2de6d | 2751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2752 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2753 | ac_status=$? |
8a2fc586 AK |
2754 | grep -v '^ *+' conftest.er1 >conftest.err |
2755 | rm -f conftest.er1 | |
2756 | cat conftest.err >&5 | |
68f2de6d | 2757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2758 | (exit $ac_status); } && { |
2759 | test -z "$ac_c_werror_flag" || | |
2760 | test ! -s conftest.err | |
2761 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2762 | ac_compiler_gnu=yes |
80992638 | 2763 | else |
68f2de6d | 2764 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2765 | sed 's/^/| /' conftest.$ac_ext >&5 |
2766 | ||
7a197a62 | 2767 | ac_compiler_gnu=no |
8106cdd5 | 2768 | fi |
7a197a62 AK |
2769 | |
2770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2771 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2772 | |
ad6254c5 | 2773 | fi |
68f2de6d AK |
2774 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2775 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2776 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2777 | ac_test_CFLAGS=${CFLAGS+set} |
2778 | ac_save_CFLAGS=$CFLAGS | |
68f2de6d AK |
2779 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2780 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2781 | if test "${ac_cv_prog_cc_g+set}" = set; then |
68f2de6d | 2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2783 | else |
7a197a62 AK |
2784 | ac_save_c_werror_flag=$ac_c_werror_flag |
2785 | ac_c_werror_flag=yes | |
2786 | ac_cv_prog_cc_g=no | |
2787 | CFLAGS="-g" | |
2788 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2789 | /* confdefs.h. */ |
2790 | _ACEOF | |
2791 | cat confdefs.h >>conftest.$ac_ext | |
2792 | cat >>conftest.$ac_ext <<_ACEOF | |
2793 | /* end confdefs.h. */ | |
2794 | ||
2795 | int | |
2796 | main () | |
2797 | { | |
2798 | ||
2799 | ; | |
2800 | return 0; | |
2801 | } | |
2802 | _ACEOF | |
2803 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2804 | if { (ac_try="$ac_compile" |
2805 | case "(($ac_try" in | |
2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2807 | *) ac_try_echo=$ac_try;; | |
2808 | esac | |
68f2de6d | 2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2810 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2811 | ac_status=$? |
8a2fc586 AK |
2812 | grep -v '^ *+' conftest.er1 >conftest.err |
2813 | rm -f conftest.er1 | |
2814 | cat conftest.err >&5 | |
68f2de6d | 2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2816 | (exit $ac_status); } && { |
2817 | test -z "$ac_c_werror_flag" || | |
2818 | test ! -s conftest.err | |
2819 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2820 | ac_cv_prog_cc_g=yes |
2821 | else | |
68f2de6d | 2822 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2823 | sed 's/^/| /' conftest.$ac_ext >&5 |
2824 | ||
2825 | CFLAGS="" | |
2826 | cat >conftest.$ac_ext <<_ACEOF | |
2827 | /* confdefs.h. */ | |
2828 | _ACEOF | |
2829 | cat confdefs.h >>conftest.$ac_ext | |
2830 | cat >>conftest.$ac_ext <<_ACEOF | |
2831 | /* end confdefs.h. */ | |
2832 | ||
2833 | int | |
2834 | main () | |
2835 | { | |
2836 | ||
2837 | ; | |
2838 | return 0; | |
2839 | } | |
2840 | _ACEOF | |
2841 | rm -f conftest.$ac_objext | |
2842 | if { (ac_try="$ac_compile" | |
2843 | case "(($ac_try" in | |
2844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2845 | *) ac_try_echo=$ac_try;; | |
2846 | esac | |
68f2de6d | 2847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2848 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2849 | ac_status=$? |
7a197a62 AK |
2850 | grep -v '^ *+' conftest.er1 >conftest.err |
2851 | rm -f conftest.er1 | |
2852 | cat conftest.err >&5 | |
68f2de6d | 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2854 | (exit $ac_status); } && { |
2855 | test -z "$ac_c_werror_flag" || | |
2856 | test ! -s conftest.err | |
2857 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2858 | : |
2859 | else | |
68f2de6d | 2860 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
2862 | ||
2863 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2864 | CFLAGS="-g" | |
2865 | cat >conftest.$ac_ext <<_ACEOF | |
2866 | /* confdefs.h. */ | |
2867 | _ACEOF | |
2868 | cat confdefs.h >>conftest.$ac_ext | |
2869 | cat >>conftest.$ac_ext <<_ACEOF | |
2870 | /* end confdefs.h. */ | |
2871 | ||
2872 | int | |
2873 | main () | |
2874 | { | |
2875 | ||
2876 | ; | |
2877 | return 0; | |
2878 | } | |
2879 | _ACEOF | |
2880 | rm -f conftest.$ac_objext | |
2881 | if { (ac_try="$ac_compile" | |
2882 | case "(($ac_try" in | |
2883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2884 | *) ac_try_echo=$ac_try;; | |
2885 | esac | |
68f2de6d | 2886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2887 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2888 | ac_status=$? |
7a197a62 AK |
2889 | grep -v '^ *+' conftest.er1 >conftest.err |
2890 | rm -f conftest.er1 | |
2891 | cat conftest.err >&5 | |
68f2de6d | 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2893 | (exit $ac_status); } && { |
2894 | test -z "$ac_c_werror_flag" || | |
2895 | test ! -s conftest.err | |
2896 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2897 | ac_cv_prog_cc_g=yes |
2898 | else | |
68f2de6d | 2899 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2900 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2901 | |
7a197a62 AK |
2902 | |
2903 | fi | |
2904 | ||
2905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2906 | fi | |
2907 | ||
2908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2909 | fi |
7a197a62 AK |
2910 | |
2911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2912 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2913 | fi |
68f2de6d AK |
2914 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2915 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2916 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2917 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2918 | elif test $ac_cv_prog_cc_g = yes; then |
2919 | if test "$GCC" = yes; then | |
2920 | CFLAGS="-g -O2" | |
2921 | else | |
2922 | CFLAGS="-g" | |
2923 | fi | |
2924 | else | |
2925 | if test "$GCC" = yes; then | |
2926 | CFLAGS="-O2" | |
2927 | else | |
2928 | CFLAGS= | |
2929 | fi | |
2930 | fi | |
68f2de6d AK |
2931 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2932 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2933 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
68f2de6d | 2934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2935 | else |
7a197a62 | 2936 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2937 | ac_save_CC=$CC |
2938 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2939 | /* confdefs.h. */ |
2940 | _ACEOF | |
2941 | cat confdefs.h >>conftest.$ac_ext | |
2942 | cat >>conftest.$ac_ext <<_ACEOF | |
2943 | /* end confdefs.h. */ | |
2944 | #include <stdarg.h> | |
2945 | #include <stdio.h> | |
2946 | #include <sys/types.h> | |
2947 | #include <sys/stat.h> | |
2948 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2949 | struct buf { int x; }; | |
2950 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2951 | static char *e (p, i) | |
2952 | char **p; | |
2953 | int i; | |
2954 | { | |
2955 | return p[i]; | |
2956 | } | |
2957 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2958 | { | |
2959 | char *s; | |
2960 | va_list v; | |
2961 | va_start (v,p); | |
2962 | s = g (p, va_arg (v,int)); | |
2963 | va_end (v); | |
2964 | return s; | |
2965 | } | |
8a2fc586 AK |
2966 | |
2967 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2968 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2969 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2970 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2971 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2972 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2973 | that's true only with -std. */ |
8a2fc586 AK |
2974 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2975 | ||
7a197a62 AK |
2976 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2977 | inside strings and character constants. */ | |
2978 | #define FOO(x) 'x' | |
2979 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2980 | ||
ad6254c5 AK |
2981 | int test (int i, double x); |
2982 | struct s1 {int (*f) (int a);}; | |
2983 | struct s2 {int (*f) (double a);}; | |
2984 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2985 | int argc; | |
2986 | char **argv; | |
2987 | int | |
2988 | main () | |
2989 | { | |
2990 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2991 | ; | |
2992 | return 0; | |
2993 | } | |
2994 | _ACEOF | |
7a197a62 AK |
2995 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2996 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2997 | do |
2998 | CC="$ac_save_CC $ac_arg" | |
2999 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3000 | if { (ac_try="$ac_compile" |
3001 | case "(($ac_try" in | |
3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3003 | *) ac_try_echo=$ac_try;; | |
3004 | esac | |
68f2de6d | 3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3006 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3007 | ac_status=$? |
8a2fc586 AK |
3008 | grep -v '^ *+' conftest.er1 >conftest.err |
3009 | rm -f conftest.er1 | |
3010 | cat conftest.err >&5 | |
68f2de6d | 3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3012 | (exit $ac_status); } && { |
3013 | test -z "$ac_c_werror_flag" || | |
3014 | test ! -s conftest.err | |
3015 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3016 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3017 | else |
68f2de6d | 3018 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3019 | sed 's/^/| /' conftest.$ac_ext >&5 |
3020 | ||
7a197a62 | 3021 | |
ad6254c5 | 3022 | fi |
7a197a62 AK |
3023 | |
3024 | rm -f core conftest.err conftest.$ac_objext | |
3025 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3026 | done |
7a197a62 | 3027 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3028 | CC=$ac_save_CC |
3029 | ||
3030 | fi | |
7a197a62 AK |
3031 | # AC_CACHE_VAL |
3032 | case "x$ac_cv_prog_cc_c89" in | |
3033 | x) | |
68f2de6d AK |
3034 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3035 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 3036 | xno) |
68f2de6d AK |
3037 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3038 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 3039 | *) |
7a197a62 | 3040 | CC="$CC $ac_cv_prog_cc_c89" |
68f2de6d AK |
3041 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3042 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3043 | esac |
3044 | ||
ad6254c5 | 3045 | |
ad6254c5 AK |
3046 | ac_ext=c |
3047 | ac_cpp='$CPP $CPPFLAGS' | |
3048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3051 | |
d0191583 JM |
3052 | |
3053 | ||
3054 | ac_ext=c | |
3055 | ac_cpp='$CPP $CPPFLAGS' | |
3056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
68f2de6d AK |
3059 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3060 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
3061 | # On Suns, sometimes $CPP names a directory. |
3062 | if test -n "$CPP" && test -d "$CPP"; then | |
3063 | CPP= | |
3064 | fi | |
3065 | if test -z "$CPP"; then | |
3066 | if test "${ac_cv_prog_CPP+set}" = set; then | |
68f2de6d | 3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3068 | else |
d0191583 JM |
3069 | # Double quotes because CPP needs to be expanded |
3070 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3071 | do | |
3072 | ac_preproc_ok=false | |
3073 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3074 | do |
d0191583 JM |
3075 | # Use a header file that comes with gcc, so configuring glibc |
3076 | # with a fresh cross-compiler works. | |
3077 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3078 | # <limits.h> exists even on freestanding compilers. | |
3079 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3080 | # not just through cpp. "Syntax error" is here to catch this case. | |
3081 | cat >conftest.$ac_ext <<_ACEOF | |
3082 | /* confdefs.h. */ | |
3083 | _ACEOF | |
3084 | cat confdefs.h >>conftest.$ac_ext | |
3085 | cat >>conftest.$ac_ext <<_ACEOF | |
3086 | /* end confdefs.h. */ | |
3087 | #ifdef __STDC__ | |
3088 | # include <limits.h> | |
3089 | #else | |
3090 | # include <assert.h> | |
3091 | #endif | |
3092 | Syntax error | |
3093 | _ACEOF | |
3094 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3095 | case "(($ac_try" in | |
3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3097 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3098 | esac |
68f2de6d | 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3101 | ac_status=$? | |
3102 | grep -v '^ *+' conftest.er1 >conftest.err | |
3103 | rm -f conftest.er1 | |
3104 | cat conftest.err >&5 | |
68f2de6d | 3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3106 | (exit $ac_status); } >/dev/null && { |
3107 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3108 | test ! -s conftest.err | |
3109 | }; then | |
3110 | : | |
3111 | else | |
68f2de6d | 3112 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3114 | |
d0191583 JM |
3115 | # Broken: fails on valid input. |
3116 | continue | |
795ca3e5 | 3117 | fi |
795ca3e5 | 3118 | |
d0191583 | 3119 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3120 | |
d0191583 JM |
3121 | # OK, works on sane cases. Now check whether nonexistent headers |
3122 | # can be detected and how. | |
3123 | cat >conftest.$ac_ext <<_ACEOF | |
3124 | /* confdefs.h. */ | |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
3129 | #include <ac_nonexistent.h> | |
3130 | _ACEOF | |
3131 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3132 | case "(($ac_try" in | |
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3134 | *) ac_try_echo=$ac_try;; | |
3135 | esac | |
68f2de6d | 3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3137 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3138 | ac_status=$? | |
3139 | grep -v '^ *+' conftest.er1 >conftest.err | |
3140 | rm -f conftest.er1 | |
3141 | cat conftest.err >&5 | |
68f2de6d | 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3143 | (exit $ac_status); } >/dev/null && { |
3144 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3145 | test ! -s conftest.err | |
3146 | }; then | |
3147 | # Broken: success on invalid input. | |
3148 | continue | |
3149 | else | |
68f2de6d | 3150 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3151 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3152 | |
d0191583 JM |
3153 | # Passes both tests. |
3154 | ac_preproc_ok=: | |
3155 | break | |
3156 | fi | |
795ca3e5 | 3157 | |
d0191583 JM |
3158 | rm -f conftest.err conftest.$ac_ext |
3159 | ||
3160 | done | |
3161 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3162 | rm -f conftest.err conftest.$ac_ext | |
3163 | if $ac_preproc_ok; then | |
3164 | break | |
795ca3e5 AK |
3165 | fi |
3166 | ||
d0191583 JM |
3167 | done |
3168 | ac_cv_prog_CPP=$CPP | |
3169 | ||
3170 | fi | |
3171 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3172 | else |
d0191583 JM |
3173 | ac_cv_prog_CPP=$CPP |
3174 | fi | |
68f2de6d AK |
3175 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3176 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3177 | ac_preproc_ok=false |
3178 | for ac_c_preproc_warn_flag in '' yes | |
3179 | do | |
3180 | # Use a header file that comes with gcc, so configuring glibc | |
3181 | # with a fresh cross-compiler works. | |
3182 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3183 | # <limits.h> exists even on freestanding compilers. | |
3184 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3185 | # not just through cpp. "Syntax error" is here to catch this case. | |
3186 | cat >conftest.$ac_ext <<_ACEOF | |
3187 | /* confdefs.h. */ | |
ad6254c5 | 3188 | _ACEOF |
d0191583 JM |
3189 | cat confdefs.h >>conftest.$ac_ext |
3190 | cat >>conftest.$ac_ext <<_ACEOF | |
3191 | /* end confdefs.h. */ | |
3192 | #ifdef __STDC__ | |
3193 | # include <limits.h> | |
3194 | #else | |
3195 | # include <assert.h> | |
3196 | #endif | |
3197 | Syntax error | |
3198 | _ACEOF | |
3199 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3200 | case "(($ac_try" in | |
3201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3202 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3203 | esac |
68f2de6d | 3204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3205 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3206 | ac_status=$? | |
3207 | grep -v '^ *+' conftest.er1 >conftest.err | |
3208 | rm -f conftest.er1 | |
3209 | cat conftest.err >&5 | |
68f2de6d | 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3211 | (exit $ac_status); } >/dev/null && { |
3212 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3213 | test ! -s conftest.err | |
3214 | }; then | |
3215 | : | |
795ca3e5 | 3216 | else |
68f2de6d | 3217 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3218 | sed 's/^/| /' conftest.$ac_ext >&5 |
3219 | ||
3220 | # Broken: fails on valid input. | |
3221 | continue | |
795ca3e5 AK |
3222 | fi |
3223 | ||
d0191583 JM |
3224 | rm -f conftest.err conftest.$ac_ext |
3225 | ||
3226 | # OK, works on sane cases. Now check whether nonexistent headers | |
3227 | # can be detected and how. | |
3228 | cat >conftest.$ac_ext <<_ACEOF | |
3229 | /* confdefs.h. */ | |
3230 | _ACEOF | |
3231 | cat confdefs.h >>conftest.$ac_ext | |
3232 | cat >>conftest.$ac_ext <<_ACEOF | |
3233 | /* end confdefs.h. */ | |
3234 | #include <ac_nonexistent.h> | |
3235 | _ACEOF | |
3236 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3237 | case "(($ac_try" in | |
3238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3239 | *) ac_try_echo=$ac_try;; | |
3240 | esac | |
68f2de6d | 3241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3242 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3243 | ac_status=$? | |
3244 | grep -v '^ *+' conftest.er1 >conftest.err | |
3245 | rm -f conftest.er1 | |
3246 | cat conftest.err >&5 | |
68f2de6d | 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3248 | (exit $ac_status); } >/dev/null && { |
3249 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3250 | test ! -s conftest.err | |
3251 | }; then | |
3252 | # Broken: success on invalid input. | |
3253 | continue | |
795ca3e5 | 3254 | else |
68f2de6d | 3255 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3257 | |
d0191583 JM |
3258 | # Passes both tests. |
3259 | ac_preproc_ok=: | |
3260 | break | |
795ca3e5 | 3261 | fi |
d0191583 JM |
3262 | |
3263 | rm -f conftest.err conftest.$ac_ext | |
3264 | ||
3265 | done | |
3266 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3267 | rm -f conftest.err conftest.$ac_ext | |
3268 | if $ac_preproc_ok; then | |
3269 | : | |
8106cdd5 | 3270 | else |
68f2de6d | 3271 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3272 | See \`config.log' for more details." >&5 |
68f2de6d | 3273 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3274 | See \`config.log' for more details." >&2;} |
3275 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3276 | fi |
3277 | ||
d0191583 JM |
3278 | ac_ext=c |
3279 | ac_cpp='$CPP $CPPFLAGS' | |
3280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3283 | ||
7a197a62 | 3284 | |
68f2de6d AK |
3285 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3286 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3287 | if test "${ac_cv_path_GREP+set}" = set; then | |
3288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3289 | else | |
3290 | # Extract the first word of "grep ggrep" to use in msg output | |
3291 | if test -z "$GREP"; then | |
3292 | set dummy grep ggrep; ac_prog_name=$2 | |
5556819a | 3293 | if test "${ac_cv_path_GREP+set}" = set; then |
68f2de6d | 3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3295 | else |
d0191583 | 3296 | ac_path_GREP_found=false |
68f2de6d AK |
3297 | # Loop through the user's path and test for each of PROGNAME-LIST |
3298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3299 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3300 | do |
3301 | IFS=$as_save_IFS | |
3302 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3303 | for ac_prog in grep ggrep; do |
68f2de6d AK |
3304 | for ac_exec_ext in '' $ac_executable_extensions; do |
3305 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3306 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3307 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3308 | # Check for GNU $ac_path_GREP |
3309 | case `"$ac_path_GREP" --version 2>&1` in | |
3310 | *GNU*) | |
3311 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3312 | *) | |
3313 | ac_count=0 | |
68f2de6d | 3314 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3315 | while : |
3316 | do | |
3317 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3318 | mv "conftest.tmp" "conftest.in" | |
3319 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3320 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3321 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3322 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3323 | ac_count=`expr $ac_count + 1` | |
3324 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3325 | # Best one so far, save it but keep looking for a better one | |
3326 | ac_cv_path_GREP="$ac_path_GREP" | |
3327 | ac_path_GREP_max=$ac_count | |
3328 | fi | |
3329 | # 10*(2^10) chars as input seems more than enough | |
3330 | test $ac_count -gt 10 && break | |
3331 | done | |
3332 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3333 | esac | |
3334 | ||
68f2de6d AK |
3335 | |
3336 | $ac_path_GREP_found && break 3 | |
d0191583 | 3337 | done |
ad6254c5 | 3338 | done |
68f2de6d AK |
3339 | |
3340 | done | |
7a197a62 | 3341 | IFS=$as_save_IFS |
68f2de6d AK |
3342 | |
3343 | ||
3344 | fi | |
3345 | ||
3346 | GREP="$ac_cv_path_GREP" | |
3347 | if test -z "$GREP"; then | |
3348 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3349 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3350 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3351 | fi |
3352 | ||
80992638 | 3353 | else |
d0191583 | 3354 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3355 | fi |
8106cdd5 | 3356 | |
68f2de6d | 3357 | |
80992638 | 3358 | fi |
68f2de6d AK |
3359 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3360 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3361 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3362 | |
d0191583 | 3363 | |
68f2de6d AK |
3364 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3365 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3366 | if test "${ac_cv_path_EGREP+set}" = set; then |
68f2de6d | 3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3368 | else |
d0191583 JM |
3369 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3370 | then ac_cv_path_EGREP="$GREP -E" | |
3371 | else | |
68f2de6d AK |
3372 | # Extract the first word of "egrep" to use in msg output |
3373 | if test -z "$EGREP"; then | |
3374 | set dummy egrep; ac_prog_name=$2 | |
3375 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3377 | else | |
d0191583 | 3378 | ac_path_EGREP_found=false |
68f2de6d AK |
3379 | # Loop through the user's path and test for each of PROGNAME-LIST |
3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3381 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3382 | do |
3383 | IFS=$as_save_IFS | |
3384 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3385 | for ac_prog in egrep; do |
68f2de6d AK |
3386 | for ac_exec_ext in '' $ac_executable_extensions; do |
3387 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3388 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3389 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3390 | # Check for GNU $ac_path_EGREP |
3391 | case `"$ac_path_EGREP" --version 2>&1` in | |
3392 | *GNU*) | |
3393 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3394 | *) | |
3395 | ac_count=0 | |
68f2de6d | 3396 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3397 | while : |
3398 | do | |
3399 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3400 | mv "conftest.tmp" "conftest.in" | |
3401 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3402 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3403 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3404 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3405 | ac_count=`expr $ac_count + 1` | |
3406 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3407 | # Best one so far, save it but keep looking for a better one | |
3408 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3409 | ac_path_EGREP_max=$ac_count | |
3410 | fi | |
3411 | # 10*(2^10) chars as input seems more than enough | |
3412 | test $ac_count -gt 10 && break | |
3413 | done | |
3414 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3415 | esac |
8a2fc586 | 3416 | |
68f2de6d AK |
3417 | |
3418 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3419 | done |
8a2fc586 | 3420 | done |
68f2de6d AK |
3421 | |
3422 | done | |
7a197a62 | 3423 | IFS=$as_save_IFS |
68f2de6d AK |
3424 | |
3425 | ||
3426 | fi | |
3427 | ||
3428 | EGREP="$ac_cv_path_EGREP" | |
3429 | if test -z "$EGREP"; then | |
3430 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3431 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3432 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3433 | fi |
3434 | ||
d0191583 JM |
3435 | else |
3436 | ac_cv_path_EGREP=$EGREP | |
3437 | fi | |
ad6254c5 | 3438 | |
68f2de6d | 3439 | |
d0191583 JM |
3440 | fi |
3441 | fi | |
68f2de6d AK |
3442 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3443 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3444 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3445 | |
3446 | ||
d0191583 | 3447 | if test $ac_cv_c_compiler_gnu = yes; then |
68f2de6d AK |
3448 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3449 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3450 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
68f2de6d | 3451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3452 | else |
d0191583 | 3453 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3454 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3455 | /* confdefs.h. */ |
3456 | _ACEOF | |
3457 | cat confdefs.h >>conftest.$ac_ext | |
3458 | cat >>conftest.$ac_ext <<_ACEOF | |
3459 | /* end confdefs.h. */ | |
d0191583 JM |
3460 | #include <sgtty.h> |
3461 | Autoconf TIOCGETP | |
ad6254c5 | 3462 | _ACEOF |
d0191583 JM |
3463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3464 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3465 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3466 | else |
d0191583 | 3467 | ac_cv_prog_gcc_traditional=no |
80992638 | 3468 | fi |
d0191583 | 3469 | rm -f conftest* |
ad6254c5 | 3470 | |
8106cdd5 | 3471 | |
d0191583 JM |
3472 | if test $ac_cv_prog_gcc_traditional = no; then |
3473 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3474 | /* confdefs.h. */ |
3475 | _ACEOF | |
3476 | cat confdefs.h >>conftest.$ac_ext | |
3477 | cat >>conftest.$ac_ext <<_ACEOF | |
3478 | /* end confdefs.h. */ | |
d0191583 JM |
3479 | #include <termio.h> |
3480 | Autoconf TCGETA | |
ad6254c5 | 3481 | _ACEOF |
d0191583 JM |
3482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3483 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3484 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3485 | fi |
d0191583 | 3486 | rm -f conftest* |
795ca3e5 | 3487 | |
d0191583 | 3488 | fi |
795ca3e5 | 3489 | fi |
68f2de6d AK |
3490 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3491 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3492 | if test $ac_cv_prog_gcc_traditional = yes; then |
3493 | CC="$CC -traditional" | |
3494 | fi | |
795ca3e5 AK |
3495 | fi |
3496 | ||
d0191583 JM |
3497 | # Find a good install program. We prefer a C program (faster), |
3498 | # so one script is as good as another. But avoid the broken or | |
3499 | # incompatible versions: | |
3500 | # SysV /etc/install, /usr/sbin/install | |
3501 | # SunOS /usr/etc/install | |
3502 | # IRIX /sbin/install | |
3503 | # AIX /bin/install | |
3504 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3505 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3506 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3507 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3508 | # OS/2's system install, which has a completely different semantic | |
3509 | # ./install, which can be erroneously created by make from ./install.sh. | |
68f2de6d AK |
3510 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3511 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3512 | if test -z "$INSTALL"; then |
3513 | if test "${ac_cv_path_install+set}" = set; then | |
68f2de6d | 3514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3515 | else |
d0191583 JM |
3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3517 | for as_dir in $PATH | |
3518 | do | |
3519 | IFS=$as_save_IFS | |
3520 | test -z "$as_dir" && as_dir=. | |
3521 | # Account for people who put trailing slashes in PATH elements. | |
3522 | case $as_dir/ in | |
3523 | ./ | .// | /cC/* | \ | |
3524 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3525 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3526 | /usr/ucb/* ) ;; | |
3527 | *) | |
3528 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3529 | # Don't use installbsd from OSF since it installs stuff as root | |
3530 | # by default. | |
3531 | for ac_prog in ginstall scoinst install; do | |
3532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3533 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3534 | if test $ac_prog = install && | |
3535 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3536 | # AIX install. It has an incompatible calling convention. | |
3537 | : | |
3538 | elif test $ac_prog = install && | |
3539 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3540 | # program-specific install script used by HP pwplus--don't use. | |
3541 | : | |
3542 | else | |
68f2de6d AK |
3543 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3544 | break 3 | |
d0191583 JM |
3545 | fi |
3546 | fi | |
3547 | done | |
3548 | done | |
3549 | ;; | |
3550 | esac | |
3551 | done | |
3552 | IFS=$as_save_IFS | |
80992638 | 3553 | |
d0191583 JM |
3554 | |
3555 | fi | |
3556 | if test "${ac_cv_path_install+set}" = set; then | |
3557 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3558 | else |
d0191583 JM |
3559 | # As a last resort, use the slow shell script. Don't cache a |
3560 | # value for INSTALL within a source directory, because that will | |
3561 | # break other packages using the cache if that directory is | |
3562 | # removed, or if the value is a relative name. | |
3563 | INSTALL=$ac_install_sh | |
7a197a62 | 3564 | fi |
d0191583 | 3565 | fi |
68f2de6d AK |
3566 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3567 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3568 | |
d0191583 JM |
3569 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3570 | # It thinks the first close brace ends the variable substitution. | |
3571 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3572 | |
d0191583 | 3573 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3574 | |
d0191583 JM |
3575 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3576 | ||
68f2de6d AK |
3577 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3578 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3579 | LN_S=$as_ln_s |
3580 | if test "$LN_S" = "ln -s"; then | |
68f2de6d AK |
3581 | { echo "$as_me:$LINENO: result: yes" >&5 |
3582 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3583 | else |
68f2de6d AK |
3584 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3585 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3586 | fi |
d0191583 | 3587 | |
68f2de6d AK |
3588 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3589 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3590 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3591 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3593 | else |
d0191583 JM |
3594 | cat >conftest.make <<\_ACEOF |
3595 | SHELL = /bin/sh | |
3596 | all: | |
3597 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3598 | _ACEOF | |
3599 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3600 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3601 | *@@@%%%=?*=@@@%%%*) | |
3602 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3603 | *) | |
3604 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3605 | esac | |
3606 | rm -f conftest.make | |
ad6254c5 | 3607 | fi |
d0191583 | 3608 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
68f2de6d AK |
3609 | { echo "$as_me:$LINENO: result: yes" >&5 |
3610 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3611 | SET_MAKE= |
3612 | else | |
68f2de6d AK |
3613 | { echo "$as_me:$LINENO: result: no" >&5 |
3614 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3615 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3616 | fi |
8106cdd5 | 3617 | |
68f2de6d AK |
3618 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3619 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
5556819a AK |
3620 | if test -z "$MKDIR_P"; then |
3621 | if test "${ac_cv_path_mkdir+set}" = set; then | |
68f2de6d | 3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5556819a AK |
3623 | else |
3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3625 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3626 | do | |
3627 | IFS=$as_save_IFS | |
3628 | test -z "$as_dir" && as_dir=. | |
3629 | for ac_prog in mkdir gmkdir; do | |
3630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3631 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3632 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3633 | 'mkdir (GNU coreutils) '* | \ | |
3634 | 'mkdir (coreutils) '* | \ | |
3635 | 'mkdir (fileutils) '4.1*) | |
3636 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3637 | break 3;; | |
3638 | esac | |
3639 | done | |
3640 | done | |
3641 | done | |
3642 | IFS=$as_save_IFS | |
3643 | ||
3644 | fi | |
3645 | ||
3646 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3647 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3648 | else | |
3649 | # As a last resort, use the slow shell script. Don't cache a | |
3650 | # value for MKDIR_P within a source directory, because that will | |
3651 | # break other packages using the cache if that directory is | |
3652 | # removed, or if the value is a relative name. | |
3653 | test -d ./--version && rmdir ./--version | |
3654 | MKDIR_P="$ac_install_sh -d" | |
3655 | fi | |
3656 | fi | |
68f2de6d AK |
3657 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3658 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
5556819a | 3659 | |
d0191583 JM |
3660 | if test -n "$ac_tool_prefix"; then |
3661 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3662 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
68f2de6d AK |
3663 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3665 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
68f2de6d | 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3667 | else |
3668 | if test -n "$RANLIB"; then | |
3669 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3670 | else | |
3671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3672 | for as_dir in $PATH | |
3673 | do | |
3674 | IFS=$as_save_IFS | |
3675 | test -z "$as_dir" && as_dir=. | |
3676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3678 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
68f2de6d | 3679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3680 | break 2 |
3681 | fi | |
3682 | done | |
3683 | done | |
3684 | IFS=$as_save_IFS | |
8106cdd5 | 3685 | |
795ca3e5 | 3686 | fi |
d0191583 JM |
3687 | fi |
3688 | RANLIB=$ac_cv_prog_RANLIB | |
3689 | if test -n "$RANLIB"; then | |
68f2de6d AK |
3690 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3691 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3692 | else |
68f2de6d AK |
3693 | { echo "$as_me:$LINENO: result: no" >&5 |
3694 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3695 | fi |
3696 | ||
8106cdd5 | 3697 | |
ad6254c5 | 3698 | fi |
d0191583 JM |
3699 | if test -z "$ac_cv_prog_RANLIB"; then |
3700 | ac_ct_RANLIB=$RANLIB | |
3701 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3702 | set dummy ranlib; ac_word=$2 | |
68f2de6d AK |
3703 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3705 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
68f2de6d | 3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3707 | else |
d0191583 JM |
3708 | if test -n "$ac_ct_RANLIB"; then |
3709 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3710 | else | |
3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3712 | for as_dir in $PATH | |
8106cdd5 | 3713 | do |
d0191583 JM |
3714 | IFS=$as_save_IFS |
3715 | test -z "$as_dir" && as_dir=. | |
3716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3718 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
68f2de6d | 3719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3720 | break 2 |
3721 | fi | |
3722 | done | |
3723 | done | |
3724 | IFS=$as_save_IFS | |
3725 | ||
3726 | fi | |
3727 | fi | |
3728 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3729 | if test -n "$ac_ct_RANLIB"; then | |
68f2de6d AK |
3730 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3731 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3732 | else |
68f2de6d AK |
3733 | { echo "$as_me:$LINENO: result: no" >&5 |
3734 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3735 | fi |
ad6254c5 | 3736 | |
d0191583 JM |
3737 | if test "x$ac_ct_RANLIB" = x; then |
3738 | RANLIB=":" | |
3739 | else | |
3740 | case $cross_compiling:$ac_tool_warned in | |
3741 | yes:) | |
68f2de6d | 3742 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3743 | whose name does not start with the host triplet. If you think this |
3744 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 3745 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3746 | whose name does not start with the host triplet. If you think this |
3747 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3748 | ac_tool_warned=yes ;; | |
3749 | esac | |
3750 | RANLIB=$ac_ct_RANLIB | |
3751 | fi | |
3752 | else | |
3753 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3754 | fi |
7a197a62 | 3755 | |
d0191583 JM |
3756 | # Extract the first word of "cflow", so it can be a program name with args. |
3757 | set dummy cflow; ac_word=$2 | |
68f2de6d AK |
3758 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3760 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
68f2de6d | 3761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3762 | else |
3763 | case $CFLOW_CMD in | |
3764 | [\\/]* | ?:[\\/]*) | |
3765 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3766 | ;; | |
3767 | *) | |
3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3769 | for as_dir in $PATH | |
3770 | do | |
3771 | IFS=$as_save_IFS | |
3772 | test -z "$as_dir" && as_dir=. | |
3773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3775 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3777 | break 2 |
3778 | fi | |
3779 | done | |
3780 | done | |
3781 | IFS=$as_save_IFS | |
ad6254c5 | 3782 | |
d0191583 | 3783 | ;; |
7a197a62 | 3784 | esac |
d0191583 JM |
3785 | fi |
3786 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3787 | if test -n "$CFLOW_CMD"; then | |
68f2de6d AK |
3788 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3789 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3790 | else |
68f2de6d AK |
3791 | { echo "$as_me:$LINENO: result: no" >&5 |
3792 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3793 | fi |
7a197a62 | 3794 | |
ad6254c5 | 3795 | |
d0191583 JM |
3796 | # Extract the first word of "cscope", so it can be a program name with args. |
3797 | set dummy cscope; ac_word=$2 | |
68f2de6d AK |
3798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3800 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
68f2de6d | 3801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3802 | else |
3803 | case $CSCOPE_CMD in | |
3804 | [\\/]* | ?:[\\/]*) | |
3805 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3806 | ;; | |
3807 | *) | |
3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3809 | for as_dir in $PATH | |
3810 | do | |
3811 | IFS=$as_save_IFS | |
3812 | test -z "$as_dir" && as_dir=. | |
3813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3815 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3817 | break 2 |
3818 | fi | |
795ca3e5 | 3819 | done |
d0191583 JM |
3820 | done |
3821 | IFS=$as_save_IFS | |
795ca3e5 | 3822 | |
d0191583 JM |
3823 | ;; |
3824 | esac | |
ad6254c5 | 3825 | fi |
d0191583 JM |
3826 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3827 | if test -n "$CSCOPE_CMD"; then | |
68f2de6d AK |
3828 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3829 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3830 | else |
68f2de6d AK |
3831 | { echo "$as_me:$LINENO: result: no" >&5 |
3832 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3833 | fi |
ad6254c5 | 3834 | |
7a197a62 | 3835 | |
ad6254c5 | 3836 | |
d0191583 JM |
3837 | ################################################################################ |
3838 | ||
3839 | ||
3840 | ||
3841 | ||
3842 | ||
3843 | ac_header_dirent=no | |
3844 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
68f2de6d AK |
3845 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3846 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3847 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3850 | else |
ad6254c5 | 3851 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3852 | /* confdefs.h. */ |
3853 | _ACEOF | |
3854 | cat confdefs.h >>conftest.$ac_ext | |
3855 | cat >>conftest.$ac_ext <<_ACEOF | |
3856 | /* end confdefs.h. */ | |
d0191583 JM |
3857 | #include <sys/types.h> |
3858 | #include <$ac_hdr> | |
3859 | ||
3860 | int | |
3861 | main () | |
3862 | { | |
3863 | if ((DIR *) 0) | |
3864 | return 0; | |
3865 | ; | |
3866 | return 0; | |
3867 | } | |
ad6254c5 | 3868 | _ACEOF |
d0191583 JM |
3869 | rm -f conftest.$ac_objext |
3870 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3871 | case "(($ac_try" in |
3872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3873 | *) ac_try_echo=$ac_try;; | |
3874 | esac | |
68f2de6d | 3875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3876 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3877 | ac_status=$? |
3878 | grep -v '^ *+' conftest.er1 >conftest.err | |
3879 | rm -f conftest.er1 | |
3880 | cat conftest.err >&5 | |
68f2de6d | 3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3882 | (exit $ac_status); } && { |
3883 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3884 | test ! -s conftest.err |
d0191583 JM |
3885 | } && test -s conftest.$ac_objext; then |
3886 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3887 | else |
68f2de6d | 3888 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3889 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3890 | |
d0191583 | 3891 | eval "$as_ac_Header=no" |
795ca3e5 | 3892 | fi |
7a197a62 | 3893 | |
d0191583 | 3894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3895 | fi |
68f2de6d AK |
3896 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3897 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3898 | echo "${ECHO_T}$ac_res" >&6; } | |
3899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3900 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 3901 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3902 | _ACEOF |
795ca3e5 | 3903 | |
d0191583 JM |
3904 | ac_header_dirent=$ac_hdr; break |
3905 | fi | |
ad6254c5 | 3906 | |
d0191583 JM |
3907 | done |
3908 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3909 | if test $ac_header_dirent = dirent.h; then | |
68f2de6d AK |
3910 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3911 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3912 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3914 | else |
d0191583 JM |
3915 | ac_func_search_save_LIBS=$LIBS |
3916 | cat >conftest.$ac_ext <<_ACEOF | |
3917 | /* confdefs.h. */ | |
3918 | _ACEOF | |
3919 | cat confdefs.h >>conftest.$ac_ext | |
3920 | cat >>conftest.$ac_ext <<_ACEOF | |
3921 | /* end confdefs.h. */ | |
ad6254c5 | 3922 | |
d0191583 JM |
3923 | /* Override any GCC internal prototype to avoid an error. |
3924 | Use char because int might match the return type of a GCC | |
3925 | builtin and then its argument prototype would still apply. */ | |
3926 | #ifdef __cplusplus | |
3927 | extern "C" | |
3928 | #endif | |
3929 | char opendir (); | |
3930 | int | |
3931 | main () | |
3932 | { | |
3933 | return opendir (); | |
3934 | ; | |
3935 | return 0; | |
3936 | } | |
3937 | _ACEOF | |
3938 | for ac_lib in '' dir; do | |
3939 | if test -z "$ac_lib"; then | |
3940 | ac_res="none required" | |
3941 | else | |
3942 | ac_res=-l$ac_lib | |
3943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3944 | fi | |
3945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3946 | if { (ac_try="$ac_link" | |
3947 | case "(($ac_try" in | |
3948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3949 | *) ac_try_echo=$ac_try;; | |
3950 | esac | |
68f2de6d | 3951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3952 | (eval "$ac_link") 2>conftest.er1 |
3953 | ac_status=$? | |
3954 | grep -v '^ *+' conftest.er1 >conftest.err | |
3955 | rm -f conftest.er1 | |
3956 | cat conftest.err >&5 | |
68f2de6d | 3957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3958 | (exit $ac_status); } && { |
3959 | test -z "$ac_c_werror_flag" || | |
3960 | test ! -s conftest.err | |
68f2de6d AK |
3961 | } && test -s conftest$ac_exeext && |
3962 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3963 | ac_cv_search_opendir=$ac_res |
3964 | else | |
68f2de6d | 3965 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3966 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3967 | |
ad6254c5 | 3968 | |
795ca3e5 | 3969 | fi |
ad6254c5 | 3970 | |
d0191583 JM |
3971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3972 | conftest$ac_exeext | |
3973 | if test "${ac_cv_search_opendir+set}" = set; then | |
3974 | break | |
7a197a62 | 3975 | fi |
d0191583 JM |
3976 | done |
3977 | if test "${ac_cv_search_opendir+set}" = set; then | |
3978 | : | |
7a197a62 | 3979 | else |
d0191583 | 3980 | ac_cv_search_opendir=no |
7a197a62 | 3981 | fi |
d0191583 JM |
3982 | rm conftest.$ac_ext |
3983 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3984 | fi |
68f2de6d AK |
3985 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3986 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3987 | ac_res=$ac_cv_search_opendir |
3988 | if test "$ac_res" != no; then | |
3989 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3990 | |
d0191583 | 3991 | fi |
7a197a62 | 3992 | |
7a197a62 | 3993 | else |
68f2de6d AK |
3994 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3995 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3996 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3998 | else |
d0191583 JM |
3999 | ac_func_search_save_LIBS=$LIBS |
4000 | cat >conftest.$ac_ext <<_ACEOF | |
4001 | /* confdefs.h. */ | |
4002 | _ACEOF | |
4003 | cat confdefs.h >>conftest.$ac_ext | |
4004 | cat >>conftest.$ac_ext <<_ACEOF | |
4005 | /* end confdefs.h. */ | |
7a197a62 | 4006 | |
d0191583 JM |
4007 | /* Override any GCC internal prototype to avoid an error. |
4008 | Use char because int might match the return type of a GCC | |
4009 | builtin and then its argument prototype would still apply. */ | |
4010 | #ifdef __cplusplus | |
4011 | extern "C" | |
4012 | #endif | |
4013 | char opendir (); | |
4014 | int | |
4015 | main () | |
4016 | { | |
4017 | return opendir (); | |
4018 | ; | |
4019 | return 0; | |
4020 | } | |
4021 | _ACEOF | |
4022 | for ac_lib in '' x; do | |
4023 | if test -z "$ac_lib"; then | |
4024 | ac_res="none required" | |
4025 | else | |
4026 | ac_res=-l$ac_lib | |
4027 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4028 | fi | |
4029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4030 | if { (ac_try="$ac_link" | |
4031 | case "(($ac_try" in | |
4032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4033 | *) ac_try_echo=$ac_try;; | |
4034 | esac | |
68f2de6d | 4035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4036 | (eval "$ac_link") 2>conftest.er1 |
4037 | ac_status=$? | |
4038 | grep -v '^ *+' conftest.er1 >conftest.err | |
4039 | rm -f conftest.er1 | |
4040 | cat conftest.err >&5 | |
68f2de6d | 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4042 | (exit $ac_status); } && { |
4043 | test -z "$ac_c_werror_flag" || | |
4044 | test ! -s conftest.err | |
68f2de6d AK |
4045 | } && test -s conftest$ac_exeext && |
4046 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
4047 | ac_cv_search_opendir=$ac_res |
4048 | else | |
68f2de6d | 4049 | echo "$as_me: failed program was:" >&5 |
d0191583 | 4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4051 | |
4052 | ||
4053 | fi | |
4054 | ||
d0191583 JM |
4055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4056 | conftest$ac_exeext | |
4057 | if test "${ac_cv_search_opendir+set}" = set; then | |
4058 | break | |
7a197a62 | 4059 | fi |
d0191583 JM |
4060 | done |
4061 | if test "${ac_cv_search_opendir+set}" = set; then | |
4062 | : | |
7a197a62 | 4063 | else |
d0191583 | 4064 | ac_cv_search_opendir=no |
7a197a62 | 4065 | fi |
d0191583 JM |
4066 | rm conftest.$ac_ext |
4067 | LIBS=$ac_func_search_save_LIBS | |
4068 | fi | |
68f2de6d AK |
4069 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4070 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4071 | ac_res=$ac_cv_search_opendir |
4072 | if test "$ac_res" != no; then | |
4073 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4074 | |
7a197a62 | 4075 | fi |
7a197a62 | 4076 | |
d0191583 | 4077 | fi |
7a197a62 | 4078 | |
68f2de6d AK |
4079 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4080 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 4081 | if test "${ac_cv_header_stdc+set}" = set; then |
68f2de6d | 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
4083 | else |
4084 | cat >conftest.$ac_ext <<_ACEOF | |
4085 | /* confdefs.h. */ | |
4086 | _ACEOF | |
4087 | cat confdefs.h >>conftest.$ac_ext | |
4088 | cat >>conftest.$ac_ext <<_ACEOF | |
4089 | /* end confdefs.h. */ | |
4090 | #include <stdlib.h> | |
4091 | #include <stdarg.h> | |
4092 | #include <string.h> | |
4093 | #include <float.h> | |
4094 | ||
4095 | int | |
4096 | main () | |
4097 | { | |
4098 | ||
4099 | ; | |
4100 | return 0; | |
4101 | } | |
4102 | _ACEOF | |
4103 | rm -f conftest.$ac_objext | |
4104 | if { (ac_try="$ac_compile" | |
4105 | case "(($ac_try" in | |
4106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4107 | *) ac_try_echo=$ac_try;; | |
4108 | esac | |
68f2de6d | 4109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4110 | (eval "$ac_compile") 2>conftest.er1 |
4111 | ac_status=$? | |
4112 | grep -v '^ *+' conftest.er1 >conftest.err | |
4113 | rm -f conftest.er1 | |
4114 | cat conftest.err >&5 | |
68f2de6d | 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4116 | (exit $ac_status); } && { |
4117 | test -z "$ac_c_werror_flag" || | |
4118 | test ! -s conftest.err | |
4119 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4120 | ac_cv_header_stdc=yes |
4121 | else | |
68f2de6d | 4122 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
4124 | ||
4125 | ac_cv_header_stdc=no | |
4126 | fi | |
4127 | ||
4128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4129 | ||
4130 | if test $ac_cv_header_stdc = yes; then | |
4131 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4132 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4133 | /* confdefs.h. */ |
4134 | _ACEOF | |
4135 | cat confdefs.h >>conftest.$ac_ext | |
4136 | cat >>conftest.$ac_ext <<_ACEOF | |
4137 | /* end confdefs.h. */ | |
4138 | #include <string.h> | |
8106cdd5 | 4139 | |
ad6254c5 AK |
4140 | _ACEOF |
4141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4142 | $EGREP "memchr" >/dev/null 2>&1; then | |
4143 | : | |
4144 | else | |
4145 | ac_cv_header_stdc=no | |
80992638 | 4146 | fi |
ad6254c5 | 4147 | rm -f conftest* |
795ca3e5 AK |
4148 | |
4149 | fi | |
4150 | ||
ad6254c5 AK |
4151 | if test $ac_cv_header_stdc = yes; then |
4152 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4153 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4154 | /* confdefs.h. */ |
4155 | _ACEOF | |
4156 | cat confdefs.h >>conftest.$ac_ext | |
4157 | cat >>conftest.$ac_ext <<_ACEOF | |
4158 | /* end confdefs.h. */ | |
80992638 | 4159 | #include <stdlib.h> |
ad6254c5 AK |
4160 | |
4161 | _ACEOF | |
80992638 | 4162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4163 | $EGREP "free" >/dev/null 2>&1; then |
4164 | : | |
795ca3e5 | 4165 | else |
ad6254c5 | 4166 | ac_cv_header_stdc=no |
795ca3e5 | 4167 | fi |
80992638 | 4168 | rm -f conftest* |
8106cdd5 | 4169 | |
795ca3e5 AK |
4170 | fi |
4171 | ||
ad6254c5 AK |
4172 | if test $ac_cv_header_stdc = yes; then |
4173 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4174 | if test "$cross_compiling" = yes; then | |
4175 | : | |
795ca3e5 | 4176 | else |
ad6254c5 | 4177 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4178 | /* confdefs.h. */ |
4179 | _ACEOF | |
4180 | cat confdefs.h >>conftest.$ac_ext | |
4181 | cat >>conftest.$ac_ext <<_ACEOF | |
4182 | /* end confdefs.h. */ | |
4183 | #include <ctype.h> | |
7a197a62 | 4184 | #include <stdlib.h> |
ad6254c5 AK |
4185 | #if ((' ' & 0x0FF) == 0x020) |
4186 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4187 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4188 | #else | |
4189 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4190 | (('a' <= (c) && (c) <= 'i') \ |
4191 | || ('j' <= (c) && (c) <= 'r') \ | |
4192 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4193 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4194 | #endif |
ad6254c5 AK |
4195 | |
4196 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4197 | int | |
4198 | main () | |
4199 | { | |
4200 | int i; | |
4201 | for (i = 0; i < 256; i++) | |
4202 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4203 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4204 | return 2; |
4205 | return 0; | |
ad6254c5 AK |
4206 | } |
4207 | _ACEOF | |
4208 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4209 | if { (ac_try="$ac_link" |
4210 | case "(($ac_try" in | |
4211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4212 | *) ac_try_echo=$ac_try;; | |
4213 | esac | |
68f2de6d | 4214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4215 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4216 | ac_status=$? |
68f2de6d | 4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4219 | { (case "(($ac_try" in |
4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4221 | *) ac_try_echo=$ac_try;; | |
4222 | esac | |
68f2de6d | 4223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4224 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4225 | ac_status=$? |
68f2de6d | 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4227 | (exit $ac_status); }; }; then |
4228 | : | |
795ca3e5 | 4229 | else |
68f2de6d AK |
4230 | echo "$as_me: program exited with status $ac_status" >&5 |
4231 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4232 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4233 | |
ad6254c5 AK |
4234 | ( exit $ac_status ) |
4235 | ac_cv_header_stdc=no | |
80992638 | 4236 | fi |
7a197a62 | 4237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4238 | fi |
7a197a62 AK |
4239 | |
4240 | ||
ad6254c5 AK |
4241 | fi |
4242 | fi | |
68f2de6d AK |
4243 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4244 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4245 | if test $ac_cv_header_stdc = yes; then |
4246 | ||
4247 | cat >>confdefs.h <<\_ACEOF | |
4248 | #define STDC_HEADERS 1 | |
4249 | _ACEOF | |
795ca3e5 AK |
4250 | |
4251 | fi | |
4252 | ||
68f2de6d AK |
4253 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4254 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4255 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
68f2de6d | 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4257 | else |
ad6254c5 | 4258 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4259 | /* confdefs.h. */ |
4260 | _ACEOF | |
4261 | cat confdefs.h >>conftest.$ac_ext | |
4262 | cat >>conftest.$ac_ext <<_ACEOF | |
4263 | /* end confdefs.h. */ | |
80992638 | 4264 | #include <sys/types.h> |
ad6254c5 AK |
4265 | #include <sys/wait.h> |
4266 | #ifndef WEXITSTATUS | |
7a197a62 | 4267 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4268 | #endif |
4269 | #ifndef WIFEXITED | |
4270 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4271 | #endif | |
4272 | ||
4273 | int | |
4274 | main () | |
4275 | { | |
4276 | int s; | |
4277 | wait (&s); | |
4278 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4279 | ; | |
4280 | return 0; | |
4281 | } | |
4282 | _ACEOF | |
4283 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4284 | if { (ac_try="$ac_compile" |
4285 | case "(($ac_try" in | |
4286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4287 | *) ac_try_echo=$ac_try;; | |
4288 | esac | |
68f2de6d | 4289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4290 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4291 | ac_status=$? |
8a2fc586 AK |
4292 | grep -v '^ *+' conftest.er1 >conftest.err |
4293 | rm -f conftest.er1 | |
4294 | cat conftest.err >&5 | |
68f2de6d | 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4296 | (exit $ac_status); } && { |
4297 | test -z "$ac_c_werror_flag" || | |
4298 | test ! -s conftest.err | |
4299 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4300 | ac_cv_header_sys_wait_h=yes |
4301 | else | |
68f2de6d | 4302 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4303 | sed 's/^/| /' conftest.$ac_ext >&5 |
4304 | ||
7a197a62 | 4305 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4306 | fi |
7a197a62 AK |
4307 | |
4308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4309 | fi |
68f2de6d AK |
4310 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4311 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4312 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4313 | |
ad6254c5 AK |
4314 | cat >>confdefs.h <<\_ACEOF |
4315 | #define HAVE_SYS_WAIT_H 1 | |
4316 | _ACEOF | |
795ca3e5 AK |
4317 | |
4318 | fi | |
4319 | ||
68f2de6d AK |
4320 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4321 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4322 | if test "${ac_cv_header_time+set}" = set; then |
68f2de6d | 4323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4324 | else |
ad6254c5 | 4325 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4326 | /* confdefs.h. */ |
4327 | _ACEOF | |
4328 | cat confdefs.h >>conftest.$ac_ext | |
4329 | cat >>conftest.$ac_ext <<_ACEOF | |
4330 | /* end confdefs.h. */ | |
795ca3e5 AK |
4331 | #include <sys/types.h> |
4332 | #include <sys/time.h> | |
4333 | #include <time.h> | |
ad6254c5 AK |
4334 | |
4335 | int | |
4336 | main () | |
4337 | { | |
4338 | if ((struct tm *) 0) | |
4339 | return 0; | |
4340 | ; | |
4341 | return 0; | |
4342 | } | |
4343 | _ACEOF | |
4344 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4345 | if { (ac_try="$ac_compile" |
4346 | case "(($ac_try" in | |
4347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4348 | *) ac_try_echo=$ac_try;; | |
4349 | esac | |
68f2de6d | 4350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4351 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4352 | ac_status=$? |
8a2fc586 AK |
4353 | grep -v '^ *+' conftest.er1 >conftest.err |
4354 | rm -f conftest.er1 | |
4355 | cat conftest.err >&5 | |
68f2de6d | 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4357 | (exit $ac_status); } && { |
4358 | test -z "$ac_c_werror_flag" || | |
4359 | test ! -s conftest.err | |
4360 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4361 | ac_cv_header_time=yes |
4362 | else | |
68f2de6d | 4363 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4364 | sed 's/^/| /' conftest.$ac_ext >&5 |
4365 | ||
7a197a62 | 4366 | ac_cv_header_time=no |
795ca3e5 | 4367 | fi |
7a197a62 AK |
4368 | |
4369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4370 | fi |
68f2de6d AK |
4371 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4372 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4373 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4374 | |
4375 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4376 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4377 | _ACEOF |
b896caa1 | 4378 | |
8106cdd5 | 4379 | fi |
b896caa1 | 4380 | |
b896caa1 | 4381 | |
d0191583 JM |
4382 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4383 | ||
4384 | ||
4385 | ||
4386 | ||
4387 | ||
4388 | ||
4389 | ||
4390 | ||
4391 | ||
4392 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4393 | inttypes.h stdint.h unistd.h | |
4394 | do | |
68f2de6d AK |
4395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4400 | else |
4401 | cat >conftest.$ac_ext <<_ACEOF | |
4402 | /* confdefs.h. */ | |
4403 | _ACEOF | |
4404 | cat confdefs.h >>conftest.$ac_ext | |
4405 | cat >>conftest.$ac_ext <<_ACEOF | |
4406 | /* end confdefs.h. */ | |
4407 | $ac_includes_default | |
4408 | ||
4409 | #include <$ac_header> | |
4410 | _ACEOF | |
4411 | rm -f conftest.$ac_objext | |
4412 | if { (ac_try="$ac_compile" | |
4413 | case "(($ac_try" in | |
4414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4415 | *) ac_try_echo=$ac_try;; | |
4416 | esac | |
68f2de6d | 4417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4418 | (eval "$ac_compile") 2>conftest.er1 |
4419 | ac_status=$? | |
4420 | grep -v '^ *+' conftest.er1 >conftest.err | |
4421 | rm -f conftest.er1 | |
4422 | cat conftest.err >&5 | |
68f2de6d | 4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4424 | (exit $ac_status); } && { |
4425 | test -z "$ac_c_werror_flag" || | |
4426 | test ! -s conftest.err | |
4427 | } && test -s conftest.$ac_objext; then | |
4428 | eval "$as_ac_Header=yes" | |
4429 | else | |
68f2de6d | 4430 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4431 | sed 's/^/| /' conftest.$ac_ext >&5 |
4432 | ||
4433 | eval "$as_ac_Header=no" | |
4434 | fi | |
4435 | ||
4436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4437 | fi | |
68f2de6d AK |
4438 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4439 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4440 | echo "${ECHO_T}$ac_res" >&6; } | |
4441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4442 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4444 | _ACEOF |
4445 | ||
4446 | fi | |
4447 | ||
4448 | done | |
4449 | ||
b896caa1 | 4450 | |
b896caa1 AK |
4451 | |
4452 | ||
795ca3e5 | 4453 | |
8106cdd5 | 4454 | |
80992638 | 4455 | |
795ca3e5 | 4456 | |
a38df97f | 4457 | |
80992638 | 4458 | |
d0191583 JM |
4459 | |
4460 | ||
4461 | ||
4462 | ||
4463 | ||
4464 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4465 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4466 | do |
68f2de6d | 4467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4469 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4473 | fi |
68f2de6d AK |
4474 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4476 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4477 | else |
d0191583 | 4478 | # Is the header compilable? |
68f2de6d AK |
4479 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4480 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 4481 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4482 | /* confdefs.h. */ |
4483 | _ACEOF | |
4484 | cat confdefs.h >>conftest.$ac_ext | |
4485 | cat >>conftest.$ac_ext <<_ACEOF | |
4486 | /* end confdefs.h. */ | |
4487 | $ac_includes_default | |
ad6254c5 AK |
4488 | #include <$ac_header> |
4489 | _ACEOF | |
4490 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4491 | if { (ac_try="$ac_compile" |
4492 | case "(($ac_try" in | |
4493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4494 | *) ac_try_echo=$ac_try;; | |
4495 | esac | |
68f2de6d | 4496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4497 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4498 | ac_status=$? |
8a2fc586 AK |
4499 | grep -v '^ *+' conftest.er1 >conftest.err |
4500 | rm -f conftest.er1 | |
4501 | cat conftest.err >&5 | |
68f2de6d | 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4503 | (exit $ac_status); } && { |
4504 | test -z "$ac_c_werror_flag" || | |
4505 | test ! -s conftest.err | |
4506 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4507 | ac_header_compiler=yes |
ad6254c5 | 4508 | else |
68f2de6d | 4509 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4510 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4511 | |
d0191583 | 4512 | ac_header_compiler=no |
ad6254c5 | 4513 | fi |
7a197a62 AK |
4514 | |
4515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4516 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4517 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4518 | |
4519 | # Is the header present? | |
68f2de6d AK |
4520 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4521 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4522 | cat >conftest.$ac_ext <<_ACEOF |
4523 | /* confdefs.h. */ | |
4524 | _ACEOF | |
4525 | cat confdefs.h >>conftest.$ac_ext | |
4526 | cat >>conftest.$ac_ext <<_ACEOF | |
4527 | /* end confdefs.h. */ | |
4528 | #include <$ac_header> | |
4529 | _ACEOF | |
4530 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4531 | case "(($ac_try" in | |
4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4533 | *) ac_try_echo=$ac_try;; | |
4534 | esac | |
68f2de6d | 4535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4537 | ac_status=$? | |
4538 | grep -v '^ *+' conftest.er1 >conftest.err | |
4539 | rm -f conftest.er1 | |
4540 | cat conftest.err >&5 | |
68f2de6d | 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4542 | (exit $ac_status); } >/dev/null && { |
4543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4544 | test ! -s conftest.err | |
4545 | }; then | |
4546 | ac_header_preproc=yes | |
4547 | else | |
68f2de6d | 4548 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4549 | sed 's/^/| /' conftest.$ac_ext >&5 |
4550 | ||
4551 | ac_header_preproc=no | |
4552 | fi | |
4553 | ||
4554 | rm -f conftest.err conftest.$ac_ext | |
68f2de6d AK |
4555 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4556 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4557 | |
4558 | # So? What about this header? | |
4559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4560 | yes:no: ) | |
68f2de6d AK |
4561 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4562 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4564 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4565 | ac_header_preproc=yes |
4566 | ;; | |
4567 | no:yes:* ) | |
68f2de6d AK |
4568 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4569 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4570 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4571 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4572 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4573 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4574 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4575 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4577 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4578 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4579 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4580 | |
4581 | ;; | |
4582 | esac | |
68f2de6d AK |
4583 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4587 | else |
4588 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4589 | fi |
68f2de6d AK |
4590 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4592 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4593 | |
4594 | fi | |
68f2de6d | 4595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4596 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4598 | _ACEOF |
a38df97f | 4599 | |
d0191583 | 4600 | else |
68f2de6d AK |
4601 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4602 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4603 | { (exit 1); exit 1; }; } |
80992638 AK |
4604 | fi |
4605 | ||
ad6254c5 AK |
4606 | done |
4607 | ||
7d1552c9 | 4608 | |
d0191583 JM |
4609 | case "$host_os" in |
4610 | linux*) | |
7d1552c9 | 4611 | |
80992638 | 4612 | |
5a52dca9 | 4613 | |
d0191583 | 4614 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4615 | do |
68f2de6d | 4616 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4618 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4620 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4622 | fi |
68f2de6d AK |
4623 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4624 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4625 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4626 | else |
4627 | # Is the header compilable? | |
68f2de6d AK |
4628 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4629 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4630 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4631 | /* confdefs.h. */ |
4632 | _ACEOF | |
4633 | cat confdefs.h >>conftest.$ac_ext | |
4634 | cat >>conftest.$ac_ext <<_ACEOF | |
4635 | /* end confdefs.h. */ | |
4636 | $ac_includes_default | |
4637 | #include <$ac_header> | |
4638 | _ACEOF | |
4639 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4640 | if { (ac_try="$ac_compile" |
4641 | case "(($ac_try" in | |
4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4643 | *) ac_try_echo=$ac_try;; | |
4644 | esac | |
68f2de6d | 4645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4646 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4647 | ac_status=$? |
8a2fc586 AK |
4648 | grep -v '^ *+' conftest.er1 >conftest.err |
4649 | rm -f conftest.er1 | |
4650 | cat conftest.err >&5 | |
68f2de6d | 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4652 | (exit $ac_status); } && { |
4653 | test -z "$ac_c_werror_flag" || | |
4654 | test ! -s conftest.err | |
4655 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4656 | ac_header_compiler=yes |
4657 | else | |
68f2de6d | 4658 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4659 | sed 's/^/| /' conftest.$ac_ext >&5 |
4660 | ||
4661 | ac_header_compiler=no | |
4662 | fi | |
4663 | ||
4664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4665 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4666 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4667 | |
4668 | # Is the header present? | |
68f2de6d AK |
4669 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4670 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4671 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4672 | /* confdefs.h. */ |
4673 | _ACEOF | |
4674 | cat confdefs.h >>conftest.$ac_ext | |
4675 | cat >>conftest.$ac_ext <<_ACEOF | |
4676 | /* end confdefs.h. */ | |
4677 | #include <$ac_header> | |
4678 | _ACEOF | |
7a197a62 AK |
4679 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4680 | case "(($ac_try" in | |
4681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4682 | *) ac_try_echo=$ac_try;; | |
4683 | esac | |
68f2de6d | 4684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4686 | ac_status=$? |
4687 | grep -v '^ *+' conftest.er1 >conftest.err | |
4688 | rm -f conftest.er1 | |
4689 | cat conftest.err >&5 | |
68f2de6d | 4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4691 | (exit $ac_status); } >/dev/null && { |
4692 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4693 | test ! -s conftest.err | |
4694 | }; then | |
ad6254c5 AK |
4695 | ac_header_preproc=yes |
4696 | else | |
68f2de6d | 4697 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4698 | sed 's/^/| /' conftest.$ac_ext >&5 |
4699 | ||
4700 | ac_header_preproc=no | |
4701 | fi | |
7a197a62 | 4702 | |
ad6254c5 | 4703 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4704 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4705 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4706 | |
4707 | # So? What about this header? | |
8a2fc586 AK |
4708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4709 | yes:no: ) | |
68f2de6d AK |
4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4711 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4713 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4714 | ac_header_preproc=yes |
ad6254c5 | 4715 | ;; |
8a2fc586 | 4716 | no:yes:* ) |
68f2de6d AK |
4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4718 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4720 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4722 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4724 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4727 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4728 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4729 | |
ad6254c5 AK |
4730 | ;; |
4731 | esac | |
68f2de6d AK |
4732 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4736 | else |
8a2fc586 | 4737 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4738 | fi |
68f2de6d AK |
4739 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4740 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4741 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4742 | |
4743 | fi | |
68f2de6d | 4744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4745 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4747 | _ACEOF |
b896caa1 | 4748 | |
d8ac0fbc | 4749 | else |
68f2de6d AK |
4750 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4751 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4752 | { (exit 1); exit 1; }; } |
80992638 AK |
4753 | fi |
4754 | ||
ad6254c5 | 4755 | done |
d0191583 JM |
4756 | ;; |
4757 | darwin*) | |
d8ac0fbc | 4758 | |
d8ac0fbc | 4759 | |
d0191583 | 4760 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4761 | do |
68f2de6d | 4762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4764 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4768 | fi |
68f2de6d AK |
4769 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4771 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4772 | else |
4773 | # Is the header compilable? | |
68f2de6d AK |
4774 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4775 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4776 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4777 | /* confdefs.h. */ |
4778 | _ACEOF | |
4779 | cat confdefs.h >>conftest.$ac_ext | |
4780 | cat >>conftest.$ac_ext <<_ACEOF | |
4781 | /* end confdefs.h. */ | |
4782 | $ac_includes_default | |
4783 | #include <$ac_header> | |
4784 | _ACEOF | |
4785 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4786 | if { (ac_try="$ac_compile" |
4787 | case "(($ac_try" in | |
4788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4789 | *) ac_try_echo=$ac_try;; | |
4790 | esac | |
68f2de6d | 4791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4792 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4793 | ac_status=$? |
8a2fc586 AK |
4794 | grep -v '^ *+' conftest.er1 >conftest.err |
4795 | rm -f conftest.er1 | |
4796 | cat conftest.err >&5 | |
68f2de6d | 4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4798 | (exit $ac_status); } && { |
4799 | test -z "$ac_c_werror_flag" || | |
4800 | test ! -s conftest.err | |
4801 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4802 | ac_header_compiler=yes |
4803 | else | |
68f2de6d | 4804 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
4806 | ||
7a197a62 | 4807 | ac_header_compiler=no |
ad6254c5 | 4808 | fi |
7a197a62 AK |
4809 | |
4810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4811 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4812 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4813 | |
4814 | # Is the header present? | |
68f2de6d AK |
4815 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4817 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4818 | /* confdefs.h. */ |
4819 | _ACEOF | |
4820 | cat confdefs.h >>conftest.$ac_ext | |
4821 | cat >>conftest.$ac_ext <<_ACEOF | |
4822 | /* end confdefs.h. */ | |
4823 | #include <$ac_header> | |
4824 | _ACEOF | |
7a197a62 AK |
4825 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4826 | case "(($ac_try" in | |
4827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4828 | *) ac_try_echo=$ac_try;; | |
4829 | esac | |
68f2de6d | 4830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4831 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4832 | ac_status=$? |
4833 | grep -v '^ *+' conftest.er1 >conftest.err | |
4834 | rm -f conftest.er1 | |
4835 | cat conftest.err >&5 | |
68f2de6d | 4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4837 | (exit $ac_status); } >/dev/null && { |
4838 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4839 | test ! -s conftest.err | |
4840 | }; then | |
ad6254c5 AK |
4841 | ac_header_preproc=yes |
4842 | else | |
68f2de6d | 4843 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4844 | sed 's/^/| /' conftest.$ac_ext >&5 |
4845 | ||
4846 | ac_header_preproc=no | |
4847 | fi | |
7a197a62 | 4848 | |
ad6254c5 | 4849 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4850 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4851 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4852 | |
4853 | # So? What about this header? | |
8a2fc586 AK |
4854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4855 | yes:no: ) | |
68f2de6d AK |
4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4860 | ac_header_preproc=yes |
ad6254c5 | 4861 | ;; |
8a2fc586 | 4862 | no:yes:* ) |
68f2de6d AK |
4863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4875 | |
ad6254c5 AK |
4876 | ;; |
4877 | esac | |
68f2de6d AK |
4878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4882 | else |
8a2fc586 | 4883 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4884 | fi |
68f2de6d AK |
4885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4887 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4888 | |
4889 | fi | |
68f2de6d | 4890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4891 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4893 | _ACEOF |
4922197a | 4894 | |
4922197a | 4895 | else |
68f2de6d AK |
4896 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4897 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4898 | { (exit 1); exit 1; }; } |
80992638 AK |
4899 | fi |
4900 | ||
ad6254c5 | 4901 | done |
d0191583 JM |
4902 | ;; |
4903 | esac | |
4922197a | 4904 | |
4922197a | 4905 | |
4922197a | 4906 | |
ad6254c5 AK |
4907 | |
4908 | ||
d0191583 JM |
4909 | |
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4922 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4923 | sys/types.h unistd.h | |
ad6254c5 | 4924 | do |
68f2de6d | 4925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4927 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4931 | fi |
68f2de6d AK |
4932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4934 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4935 | else |
ad6254c5 | 4936 | # Is the header compilable? |
68f2de6d AK |
4937 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4939 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4940 | /* confdefs.h. */ |
4941 | _ACEOF | |
4942 | cat confdefs.h >>conftest.$ac_ext | |
4943 | cat >>conftest.$ac_ext <<_ACEOF | |
4944 | /* end confdefs.h. */ | |
4945 | $ac_includes_default | |
4946 | #include <$ac_header> | |
4947 | _ACEOF | |
4948 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4949 | if { (ac_try="$ac_compile" |
4950 | case "(($ac_try" in | |
4951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4952 | *) ac_try_echo=$ac_try;; | |
4953 | esac | |
68f2de6d | 4954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4955 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4956 | ac_status=$? |
8a2fc586 AK |
4957 | grep -v '^ *+' conftest.er1 >conftest.err |
4958 | rm -f conftest.er1 | |
4959 | cat conftest.err >&5 | |
68f2de6d | 4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4961 | (exit $ac_status); } && { |
4962 | test -z "$ac_c_werror_flag" || | |
4963 | test ! -s conftest.err | |
4964 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4965 | ac_header_compiler=yes |
4966 | else | |
68f2de6d | 4967 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4968 | sed 's/^/| /' conftest.$ac_ext >&5 |
4969 | ||
7a197a62 | 4970 | ac_header_compiler=no |
ad6254c5 | 4971 | fi |
7a197a62 AK |
4972 | |
4973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4974 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4975 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4976 | |
4977 | # Is the header present? | |
68f2de6d AK |
4978 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4980 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4981 | /* confdefs.h. */ |
4982 | _ACEOF | |
4983 | cat confdefs.h >>conftest.$ac_ext | |
4984 | cat >>conftest.$ac_ext <<_ACEOF | |
4985 | /* end confdefs.h. */ | |
4986 | #include <$ac_header> | |
4987 | _ACEOF | |
7a197a62 AK |
4988 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4989 | case "(($ac_try" in | |
4990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4991 | *) ac_try_echo=$ac_try;; | |
4992 | esac | |
68f2de6d | 4993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4995 | ac_status=$? |
4996 | grep -v '^ *+' conftest.er1 >conftest.err | |
4997 | rm -f conftest.er1 | |
4998 | cat conftest.err >&5 | |
68f2de6d | 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5000 | (exit $ac_status); } >/dev/null && { |
5001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5002 | test ! -s conftest.err | |
5003 | }; then | |
ad6254c5 AK |
5004 | ac_header_preproc=yes |
5005 | else | |
68f2de6d | 5006 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 |
5008 | ||
5009 | ac_header_preproc=no | |
5010 | fi | |
7a197a62 | 5011 | |
ad6254c5 | 5012 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5013 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5014 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5015 | |
5016 | # So? What about this header? | |
8a2fc586 AK |
5017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5018 | yes:no: ) | |
68f2de6d AK |
5019 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5020 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5022 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5023 | ac_header_preproc=yes |
ad6254c5 | 5024 | ;; |
8a2fc586 | 5025 | no:yes:* ) |
68f2de6d AK |
5026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5030 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5031 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5032 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5033 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5035 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5036 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5037 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5038 | |
ad6254c5 AK |
5039 | ;; |
5040 | esac | |
68f2de6d AK |
5041 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5045 | else |
8a2fc586 | 5046 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5047 | fi |
68f2de6d AK |
5048 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5050 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 5051 | |
ad6254c5 | 5052 | fi |
68f2de6d | 5053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5054 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5056 | _ACEOF |
795ca3e5 | 5057 | |
795ca3e5 | 5058 | else |
68f2de6d AK |
5059 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5060 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5061 | { (exit 1); exit 1; }; } |
80992638 AK |
5062 | fi |
5063 | ||
ad6254c5 | 5064 | done |
ad6254c5 | 5065 | |
795ca3e5 | 5066 | |
d0191583 JM |
5067 | |
5068 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5069 | do |
68f2de6d | 5070 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5071 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
5072 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5076 | fi |
68f2de6d AK |
5077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5079 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5080 | else |
5081 | # Is the header compilable? | |
68f2de6d AK |
5082 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5083 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 5084 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5085 | /* confdefs.h. */ |
5086 | _ACEOF | |
5087 | cat confdefs.h >>conftest.$ac_ext | |
5088 | cat >>conftest.$ac_ext <<_ACEOF | |
5089 | /* end confdefs.h. */ | |
5090 | $ac_includes_default | |
5091 | #include <$ac_header> | |
5092 | _ACEOF | |
5093 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5094 | if { (ac_try="$ac_compile" |
5095 | case "(($ac_try" in | |
5096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5097 | *) ac_try_echo=$ac_try;; | |
5098 | esac | |
68f2de6d | 5099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5100 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5101 | ac_status=$? |
8a2fc586 AK |
5102 | grep -v '^ *+' conftest.er1 >conftest.err |
5103 | rm -f conftest.er1 | |
5104 | cat conftest.err >&5 | |
68f2de6d | 5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5106 | (exit $ac_status); } && { |
5107 | test -z "$ac_c_werror_flag" || | |
5108 | test ! -s conftest.err | |
5109 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5110 | ac_header_compiler=yes |
5111 | else | |
68f2de6d | 5112 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5113 | sed 's/^/| /' conftest.$ac_ext >&5 |
5114 | ||
7a197a62 | 5115 | ac_header_compiler=no |
ad6254c5 | 5116 | fi |
7a197a62 AK |
5117 | |
5118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
5119 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5120 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5121 | |
5122 | # Is the header present? | |
68f2de6d AK |
5123 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5125 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5126 | /* confdefs.h. */ |
5127 | _ACEOF | |
5128 | cat confdefs.h >>conftest.$ac_ext | |
5129 | cat >>conftest.$ac_ext <<_ACEOF | |
5130 | /* end confdefs.h. */ | |
5131 | #include <$ac_header> | |
5132 | _ACEOF | |
7a197a62 AK |
5133 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5134 | case "(($ac_try" in | |
5135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5136 | *) ac_try_echo=$ac_try;; | |
5137 | esac | |
68f2de6d | 5138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5139 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5140 | ac_status=$? |
5141 | grep -v '^ *+' conftest.er1 >conftest.err | |
5142 | rm -f conftest.er1 | |
5143 | cat conftest.err >&5 | |
68f2de6d | 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5145 | (exit $ac_status); } >/dev/null && { |
5146 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5147 | test ! -s conftest.err | |
5148 | }; then | |
ad6254c5 AK |
5149 | ac_header_preproc=yes |
5150 | else | |
68f2de6d | 5151 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5152 | sed 's/^/| /' conftest.$ac_ext >&5 |
5153 | ||
5154 | ac_header_preproc=no | |
5155 | fi | |
7a197a62 | 5156 | |
ad6254c5 | 5157 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5158 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5159 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5160 | |
5161 | # So? What about this header? | |
8a2fc586 AK |
5162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5163 | yes:no: ) | |
68f2de6d AK |
5164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5168 | ac_header_preproc=yes |
ad6254c5 | 5169 | ;; |
8a2fc586 | 5170 | no:yes:* ) |
68f2de6d AK |
5171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5183 | |
ad6254c5 AK |
5184 | ;; |
5185 | esac | |
68f2de6d AK |
5186 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5190 | else |
8a2fc586 | 5191 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5192 | fi |
68f2de6d AK |
5193 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5194 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5195 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5196 | |
ad6254c5 | 5197 | fi |
68f2de6d | 5198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5199 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5201 | _ACEOF |
5202 | ||
80992638 AK |
5203 | fi |
5204 | ||
ad6254c5 | 5205 | done |
d0191583 | 5206 | |
d3c8211f | 5207 | |
80992638 | 5208 | ################################################################################ |
68f2de6d AK |
5209 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5210 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5211 | if test "${ac_cv_c_const+set}" = set; then |
68f2de6d | 5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5213 | else |
ad6254c5 | 5214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5215 | /* confdefs.h. */ |
5216 | _ACEOF | |
5217 | cat confdefs.h >>conftest.$ac_ext | |
5218 | cat >>conftest.$ac_ext <<_ACEOF | |
5219 | /* end confdefs.h. */ | |
5220 | ||
5221 | int | |
5222 | main () | |
5223 | { | |
5224 | /* FIXME: Include the comments suggested by Paul. */ | |
5225 | #ifndef __cplusplus | |
5226 | /* Ultrix mips cc rejects this. */ | |
5227 | typedef int charset[2]; | |
25fbec5b | 5228 | const charset cs; |
ad6254c5 | 5229 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5230 | char const *const *pcpcc; |
5231 | char **ppc; | |
ad6254c5 AK |
5232 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5233 | struct point {int x, y;}; | |
5234 | static struct point const zero = {0,0}; | |
5235 | /* AIX XL C 1.02.0.0 rejects this. | |
5236 | It does not let you subtract one const X* pointer from another in | |
5237 | an arm of an if-expression whose if-part is not a constant | |
5238 | expression */ | |
5239 | const char *g = "string"; | |
25fbec5b | 5240 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5241 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5242 | ++pcpcc; |
5243 | ppc = (char**) pcpcc; | |
5244 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5245 | { /* SCO 3.2v4 cc rejects this. */ |
5246 | char *t; | |
5247 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5248 | ||
5249 | *t++ = 0; | |
7a197a62 | 5250 | if (s) return 0; |
ad6254c5 AK |
5251 | } |
5252 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5253 | int x[] = {25, 17}; | |
5254 | const int *foo = &x[0]; | |
5255 | ++foo; | |
5256 | } | |
5257 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5258 | typedef const int *iptr; | |
5259 | iptr p = 0; | |
5260 | ++p; | |
5261 | } | |
5262 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5263 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5264 | struct s { int j; const int *ap[3]; }; | |
5265 | struct s *b; b->j = 5; | |
5266 | } | |
5267 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5268 | const int foo = 10; | |
7a197a62 | 5269 | if (!foo) return 0; |
ad6254c5 | 5270 | } |
25fbec5b | 5271 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5272 | #endif |
5273 | ||
5274 | ; | |
5275 | return 0; | |
5276 | } | |
5277 | _ACEOF | |
5278 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5279 | if { (ac_try="$ac_compile" |
5280 | case "(($ac_try" in | |
5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5282 | *) ac_try_echo=$ac_try;; | |
5283 | esac | |
68f2de6d | 5284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5285 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5286 | ac_status=$? |
8a2fc586 AK |
5287 | grep -v '^ *+' conftest.er1 >conftest.err |
5288 | rm -f conftest.er1 | |
5289 | cat conftest.err >&5 | |
68f2de6d | 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5291 | (exit $ac_status); } && { |
5292 | test -z "$ac_c_werror_flag" || | |
5293 | test ! -s conftest.err | |
5294 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5295 | ac_cv_c_const=yes |
5296 | else | |
68f2de6d | 5297 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
5299 | ||
7a197a62 | 5300 | ac_cv_c_const=no |
ad6254c5 | 5301 | fi |
7a197a62 AK |
5302 | |
5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5304 | fi |
68f2de6d AK |
5305 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5306 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5307 | if test $ac_cv_c_const = no; then |
80992638 | 5308 | |
ad6254c5 | 5309 | cat >>confdefs.h <<\_ACEOF |
68f2de6d | 5310 | #define const |
ad6254c5 | 5311 | _ACEOF |
80992638 | 5312 | |
d3c8211f | 5313 | fi |
d3c8211f | 5314 | |
68f2de6d AK |
5315 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5316 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5317 | if test "${ac_cv_c_inline+set}" = set; then |
68f2de6d | 5318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5319 | else |
ad6254c5 AK |
5320 | ac_cv_c_inline=no |
5321 | for ac_kw in inline __inline__ __inline; do | |
5322 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5323 | /* confdefs.h. */ |
5324 | _ACEOF | |
5325 | cat confdefs.h >>conftest.$ac_ext | |
5326 | cat >>conftest.$ac_ext <<_ACEOF | |
5327 | /* end confdefs.h. */ | |
5328 | #ifndef __cplusplus | |
5329 | typedef int foo_t; | |
5330 | static $ac_kw foo_t static_foo () {return 0; } | |
5331 | $ac_kw foo_t foo () {return 0; } | |
5332 | #endif | |
80992638 | 5333 | |
ad6254c5 AK |
5334 | _ACEOF |
5335 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5336 | if { (ac_try="$ac_compile" |
5337 | case "(($ac_try" in | |
5338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5339 | *) ac_try_echo=$ac_try;; | |
5340 | esac | |
68f2de6d | 5341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5342 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5343 | ac_status=$? |
8a2fc586 AK |
5344 | grep -v '^ *+' conftest.er1 >conftest.err |
5345 | rm -f conftest.er1 | |
5346 | cat conftest.err >&5 | |
68f2de6d | 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5348 | (exit $ac_status); } && { |
5349 | test -z "$ac_c_werror_flag" || | |
5350 | test ! -s conftest.err | |
5351 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5352 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5353 | else |
68f2de6d | 5354 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5355 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5356 | |
7a197a62 | 5357 | |
8ce0cbda | 5358 | fi |
7a197a62 AK |
5359 | |
5360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5361 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5362 | done |
8ce0cbda | 5363 | |
8ce0cbda | 5364 | fi |
68f2de6d AK |
5365 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5366 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5367 | |
5368 | ||
ad6254c5 AK |
5369 | case $ac_cv_c_inline in |
5370 | inline | yes) ;; | |
8a2fc586 AK |
5371 | *) |
5372 | case $ac_cv_c_inline in | |
5373 | no) ac_val=;; | |
5374 | *) ac_val=$ac_cv_c_inline;; | |
5375 | esac | |
5376 | cat >>confdefs.h <<_ACEOF | |
5377 | #ifndef __cplusplus | |
5378 | #define inline $ac_val | |
5379 | #endif | |
c1c065a3 | 5380 | _ACEOF |
d0191583 JM |
5381 | ;; |
5382 | esac | |
5383 | ||
68f2de6d AK |
5384 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5385 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5386 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5388 | else |
5389 | cat >conftest.$ac_ext <<_ACEOF | |
5390 | /* confdefs.h. */ | |
5391 | _ACEOF | |
5392 | cat confdefs.h >>conftest.$ac_ext | |
5393 | cat >>conftest.$ac_ext <<_ACEOF | |
5394 | /* end confdefs.h. */ | |
5395 | $ac_includes_default | |
5396 | int | |
5397 | main () | |
5398 | { | |
5399 | static struct stat ac_aggr; | |
5400 | if (ac_aggr.st_rdev) | |
5401 | return 0; | |
5402 | ; | |
5403 | return 0; | |
5404 | } | |
5405 | _ACEOF | |
5406 | rm -f conftest.$ac_objext | |
5407 | if { (ac_try="$ac_compile" | |
5408 | case "(($ac_try" in | |
5409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5410 | *) ac_try_echo=$ac_try;; | |
5411 | esac | |
68f2de6d | 5412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5413 | (eval "$ac_compile") 2>conftest.er1 |
5414 | ac_status=$? | |
5415 | grep -v '^ *+' conftest.er1 >conftest.err | |
5416 | rm -f conftest.er1 | |
5417 | cat conftest.err >&5 | |
68f2de6d | 5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5419 | (exit $ac_status); } && { |
5420 | test -z "$ac_c_werror_flag" || | |
5421 | test ! -s conftest.err | |
5422 | } && test -s conftest.$ac_objext; then | |
5423 | ac_cv_member_struct_stat_st_rdev=yes | |
5424 | else | |
68f2de6d | 5425 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
5427 | ||
5428 | cat >conftest.$ac_ext <<_ACEOF | |
5429 | /* confdefs.h. */ | |
5430 | _ACEOF | |
5431 | cat confdefs.h >>conftest.$ac_ext | |
5432 | cat >>conftest.$ac_ext <<_ACEOF | |
5433 | /* end confdefs.h. */ | |
5434 | $ac_includes_default | |
5435 | int | |
5436 | main () | |
5437 | { | |
5438 | static struct stat ac_aggr; | |
5439 | if (sizeof ac_aggr.st_rdev) | |
5440 | return 0; | |
5441 | ; | |
5442 | return 0; | |
5443 | } | |
5444 | _ACEOF | |
5445 | rm -f conftest.$ac_objext | |
5446 | if { (ac_try="$ac_compile" | |
5447 | case "(($ac_try" in | |
5448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5449 | *) ac_try_echo=$ac_try;; | |
5450 | esac | |
68f2de6d | 5451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5452 | (eval "$ac_compile") 2>conftest.er1 |
5453 | ac_status=$? | |
5454 | grep -v '^ *+' conftest.er1 >conftest.err | |
5455 | rm -f conftest.er1 | |
5456 | cat conftest.err >&5 | |
68f2de6d | 5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5458 | (exit $ac_status); } && { |
5459 | test -z "$ac_c_werror_flag" || | |
5460 | test ! -s conftest.err | |
5461 | } && test -s conftest.$ac_objext; then | |
5462 | ac_cv_member_struct_stat_st_rdev=yes | |
5463 | else | |
68f2de6d | 5464 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5465 | sed 's/^/| /' conftest.$ac_ext >&5 |
5466 | ||
5467 | ac_cv_member_struct_stat_st_rdev=no | |
5468 | fi | |
5469 | ||
5470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5471 | fi | |
5472 | ||
5473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5474 | fi | |
68f2de6d AK |
5475 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5476 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5477 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5478 | ||
5479 | cat >>confdefs.h <<_ACEOF | |
5480 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5481 | _ACEOF | |
5482 | ||
5483 | ||
5484 | fi | |
8ce0cbda | 5485 | |
68f2de6d AK |
5486 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5487 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5488 | if test "${ac_cv_type_off_t+set}" = set; then |
68f2de6d | 5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5490 | else |
b145d876 ZK |
5491 | cat >conftest.$ac_ext <<_ACEOF |
5492 | /* confdefs.h. */ | |
5493 | _ACEOF | |
5494 | cat confdefs.h >>conftest.$ac_ext | |
5495 | cat >>conftest.$ac_ext <<_ACEOF | |
5496 | /* end confdefs.h. */ | |
5497 | $ac_includes_default | |
68f2de6d | 5498 | typedef off_t ac__type_new_; |
b145d876 ZK |
5499 | int |
5500 | main () | |
5501 | { | |
68f2de6d AK |
5502 | if ((ac__type_new_ *) 0) |
5503 | return 0; | |
5504 | if (sizeof (ac__type_new_)) | |
5505 | return 0; | |
ad6254c5 AK |
5506 | ; |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
5510 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5511 | if { (ac_try="$ac_compile" |
5512 | case "(($ac_try" in | |
5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5514 | *) ac_try_echo=$ac_try;; | |
5515 | esac | |
68f2de6d | 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5517 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5518 | ac_status=$? |
8a2fc586 AK |
5519 | grep -v '^ *+' conftest.er1 >conftest.err |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
68f2de6d | 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5523 | (exit $ac_status); } && { |
5524 | test -z "$ac_c_werror_flag" || | |
5525 | test ! -s conftest.err | |
5526 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5527 | ac_cv_type_off_t=yes |
b145d876 | 5528 | else |
68f2de6d | 5529 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 |
5531 | ||
68f2de6d | 5532 | ac_cv_type_off_t=no |
ad6254c5 | 5533 | fi |
b145d876 ZK |
5534 | |
5535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5536 | fi | |
68f2de6d AK |
5537 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5538 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5539 | if test $ac_cv_type_off_t = yes; then |
5540 | : | |
5541 | else | |
80992638 | 5542 | |
ad6254c5 | 5543 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5544 | #define off_t long int |
ad6254c5 | 5545 | _ACEOF |
199e490e | 5546 | |
b896caa1 AK |
5547 | fi |
5548 | ||
68f2de6d AK |
5549 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5550 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5551 | if test "${ac_cv_type_pid_t+set}" = set; then |
68f2de6d | 5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5553 | else |
b145d876 ZK |
5554 | cat >conftest.$ac_ext <<_ACEOF |
5555 | /* confdefs.h. */ | |
5556 | _ACEOF | |
5557 | cat confdefs.h >>conftest.$ac_ext | |
5558 | cat >>conftest.$ac_ext <<_ACEOF | |
5559 | /* end confdefs.h. */ | |
5560 | $ac_includes_default | |
68f2de6d | 5561 | typedef pid_t ac__type_new_; |
b145d876 ZK |
5562 | int |
5563 | main () | |
5564 | { | |
68f2de6d AK |
5565 | if ((ac__type_new_ *) 0) |
5566 | return 0; | |
5567 | if (sizeof (ac__type_new_)) | |
5568 | return 0; | |
ad6254c5 AK |
5569 | ; |
5570 | return 0; | |
5571 | } | |
5572 | _ACEOF | |
5573 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5574 | if { (ac_try="$ac_compile" |
5575 | case "(($ac_try" in | |
5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5577 | *) ac_try_echo=$ac_try;; | |
5578 | esac | |
68f2de6d | 5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5580 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5581 | ac_status=$? |
8a2fc586 AK |
5582 | grep -v '^ *+' conftest.er1 >conftest.err |
5583 | rm -f conftest.er1 | |
5584 | cat conftest.err >&5 | |
68f2de6d | 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5586 | (exit $ac_status); } && { |
5587 | test -z "$ac_c_werror_flag" || | |
5588 | test ! -s conftest.err | |
5589 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5590 | ac_cv_type_pid_t=yes |
ad6254c5 | 5591 | else |
68f2de6d | 5592 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5593 | sed 's/^/| /' conftest.$ac_ext >&5 |
5594 | ||
68f2de6d | 5595 | ac_cv_type_pid_t=no |
ad6254c5 | 5596 | fi |
7a197a62 AK |
5597 | |
5598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5599 | fi |
68f2de6d AK |
5600 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5601 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5602 | if test $ac_cv_type_pid_t = yes; then |
5603 | : | |
5604 | else | |
80992638 | 5605 | |
ad6254c5 AK |
5606 | cat >>confdefs.h <<_ACEOF |
5607 | #define pid_t int | |
5608 | _ACEOF | |
2dc95e1c | 5609 | |
2dc95e1c AK |
5610 | fi |
5611 | ||
68f2de6d AK |
5612 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5613 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5614 | if test "${ac_cv_type_signal+set}" = set; then |
68f2de6d | 5615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5616 | else |
5617 | cat >conftest.$ac_ext <<_ACEOF | |
5618 | /* confdefs.h. */ | |
5619 | _ACEOF | |
5620 | cat confdefs.h >>conftest.$ac_ext | |
5621 | cat >>conftest.$ac_ext <<_ACEOF | |
5622 | /* end confdefs.h. */ | |
5623 | #include <sys/types.h> | |
5624 | #include <signal.h> | |
5625 | ||
5626 | int | |
5627 | main () | |
5628 | { | |
5629 | return *(signal (0, 0)) (0) == 1; | |
5630 | ; | |
5631 | return 0; | |
5632 | } | |
5633 | _ACEOF | |
5634 | rm -f conftest.$ac_objext | |
5635 | if { (ac_try="$ac_compile" | |
5636 | case "(($ac_try" in | |
5637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5638 | *) ac_try_echo=$ac_try;; | |
5639 | esac | |
68f2de6d | 5640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5641 | (eval "$ac_compile") 2>conftest.er1 |
5642 | ac_status=$? | |
5643 | grep -v '^ *+' conftest.er1 >conftest.err | |
5644 | rm -f conftest.er1 | |
5645 | cat conftest.err >&5 | |
68f2de6d | 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5647 | (exit $ac_status); } && { |
5648 | test -z "$ac_c_werror_flag" || | |
5649 | test ! -s conftest.err | |
5650 | } && test -s conftest.$ac_objext; then | |
5651 | ac_cv_type_signal=int | |
5652 | else | |
68f2de6d | 5653 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5654 | sed 's/^/| /' conftest.$ac_ext >&5 |
5655 | ||
5656 | ac_cv_type_signal=void | |
5657 | fi | |
5658 | ||
5659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5660 | fi | |
68f2de6d AK |
5661 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5662 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5663 | |
5664 | cat >>confdefs.h <<_ACEOF | |
5665 | #define RETSIGTYPE $ac_cv_type_signal | |
5666 | _ACEOF | |
5667 | ||
5668 | ||
68f2de6d AK |
5669 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5670 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5671 | if test "${ac_cv_type_size_t+set}" = set; then |
68f2de6d | 5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5673 | else |
b145d876 ZK |
5674 | cat >conftest.$ac_ext <<_ACEOF |
5675 | /* confdefs.h. */ | |
5676 | _ACEOF | |
5677 | cat confdefs.h >>conftest.$ac_ext | |
5678 | cat >>conftest.$ac_ext <<_ACEOF | |
5679 | /* end confdefs.h. */ | |
5680 | $ac_includes_default | |
68f2de6d | 5681 | typedef size_t ac__type_new_; |
b145d876 ZK |
5682 | int |
5683 | main () | |
5684 | { | |
68f2de6d AK |
5685 | if ((ac__type_new_ *) 0) |
5686 | return 0; | |
5687 | if (sizeof (ac__type_new_)) | |
5688 | return 0; | |
ad6254c5 AK |
5689 | ; |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
5693 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5694 | if { (ac_try="$ac_compile" |
5695 | case "(($ac_try" in | |
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5697 | *) ac_try_echo=$ac_try;; | |
5698 | esac | |
68f2de6d | 5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5700 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5701 | ac_status=$? |
8a2fc586 AK |
5702 | grep -v '^ *+' conftest.er1 >conftest.err |
5703 | rm -f conftest.er1 | |
5704 | cat conftest.err >&5 | |
68f2de6d | 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5706 | (exit $ac_status); } && { |
5707 | test -z "$ac_c_werror_flag" || | |
5708 | test ! -s conftest.err | |
5709 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5710 | ac_cv_type_size_t=yes |
b145d876 | 5711 | else |
68f2de6d | 5712 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5713 | sed 's/^/| /' conftest.$ac_ext >&5 |
5714 | ||
68f2de6d | 5715 | ac_cv_type_size_t=no |
ad6254c5 | 5716 | fi |
b145d876 ZK |
5717 | |
5718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5719 | fi | |
68f2de6d AK |
5720 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5721 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5722 | if test $ac_cv_type_size_t = yes; then |
5723 | : | |
5724 | else | |
80992638 | 5725 | |
ad6254c5 | 5726 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5727 | #define size_t unsigned int |
ad6254c5 | 5728 | _ACEOF |
8106cdd5 | 5729 | |
8106cdd5 AK |
5730 | fi |
5731 | ||
68f2de6d AK |
5732 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5733 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5734 | if test "${ac_cv_type_mode_t+set}" = set; then |
68f2de6d | 5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5736 | else |
b145d876 ZK |
5737 | cat >conftest.$ac_ext <<_ACEOF |
5738 | /* confdefs.h. */ | |
5739 | _ACEOF | |
5740 | cat confdefs.h >>conftest.$ac_ext | |
5741 | cat >>conftest.$ac_ext <<_ACEOF | |
5742 | /* end confdefs.h. */ | |
5743 | $ac_includes_default | |
68f2de6d | 5744 | typedef mode_t ac__type_new_; |
b145d876 ZK |
5745 | int |
5746 | main () | |
5747 | { | |
68f2de6d AK |
5748 | if ((ac__type_new_ *) 0) |
5749 | return 0; | |
5750 | if (sizeof (ac__type_new_)) | |
5751 | return 0; | |
ad6254c5 AK |
5752 | ; |
5753 | return 0; | |
5754 | } | |
5755 | _ACEOF | |
5756 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5757 | if { (ac_try="$ac_compile" |
5758 | case "(($ac_try" in | |
5759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5760 | *) ac_try_echo=$ac_try;; | |
5761 | esac | |
68f2de6d | 5762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5763 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5764 | ac_status=$? |
8a2fc586 AK |
5765 | grep -v '^ *+' conftest.er1 >conftest.err |
5766 | rm -f conftest.er1 | |
5767 | cat conftest.err >&5 | |
68f2de6d | 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5769 | (exit $ac_status); } && { |
5770 | test -z "$ac_c_werror_flag" || | |
5771 | test ! -s conftest.err | |
5772 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5773 | ac_cv_type_mode_t=yes |
fddafd51 | 5774 | else |
68f2de6d | 5775 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5776 | sed 's/^/| /' conftest.$ac_ext >&5 |
5777 | ||
68f2de6d | 5778 | ac_cv_type_mode_t=no |
80992638 | 5779 | fi |
7a197a62 AK |
5780 | |
5781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5782 | fi |
68f2de6d AK |
5783 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5784 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5785 | if test $ac_cv_type_mode_t = yes; then |
5786 | : | |
5787 | else | |
80992638 | 5788 | |
ad6254c5 AK |
5789 | cat >>confdefs.h <<_ACEOF |
5790 | #define mode_t int | |
5791 | _ACEOF | |
5792 | ||
5793 | fi | |
5794 | ||
68f2de6d AK |
5795 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5796 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5797 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5799 | else |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5801 | /* confdefs.h. */ |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
5806 | $ac_includes_default | |
5807 | int | |
5808 | main () | |
5809 | { | |
5810 | static struct stat ac_aggr; | |
5811 | if (ac_aggr.st_rdev) | |
5812 | return 0; | |
5813 | ; | |
5814 | return 0; | |
5815 | } | |
5816 | _ACEOF | |
5817 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5818 | if { (ac_try="$ac_compile" |
5819 | case "(($ac_try" in | |
5820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5821 | *) ac_try_echo=$ac_try;; | |
5822 | esac | |
68f2de6d | 5823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5824 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5825 | ac_status=$? |
8a2fc586 AK |
5826 | grep -v '^ *+' conftest.er1 >conftest.err |
5827 | rm -f conftest.er1 | |
5828 | cat conftest.err >&5 | |
68f2de6d | 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5830 | (exit $ac_status); } && { |
5831 | test -z "$ac_c_werror_flag" || | |
5832 | test ! -s conftest.err | |
5833 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5834 | ac_cv_member_struct_stat_st_rdev=yes |
5835 | else | |
68f2de6d | 5836 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
5838 | ||
7a197a62 | 5839 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5840 | /* confdefs.h. */ |
5841 | _ACEOF | |
5842 | cat confdefs.h >>conftest.$ac_ext | |
5843 | cat >>conftest.$ac_ext <<_ACEOF | |
5844 | /* end confdefs.h. */ | |
5845 | $ac_includes_default | |
5846 | int | |
5847 | main () | |
5848 | { | |
5849 | static struct stat ac_aggr; | |
5850 | if (sizeof ac_aggr.st_rdev) | |
5851 | return 0; | |
5852 | ; | |
5853 | return 0; | |
5854 | } | |
5855 | _ACEOF | |
5856 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5857 | if { (ac_try="$ac_compile" |
5858 | case "(($ac_try" in | |
5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5860 | *) ac_try_echo=$ac_try;; | |
5861 | esac | |
68f2de6d | 5862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5863 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5864 | ac_status=$? |
8a2fc586 AK |
5865 | grep -v '^ *+' conftest.er1 >conftest.err |
5866 | rm -f conftest.er1 | |
5867 | cat conftest.err >&5 | |
68f2de6d | 5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5869 | (exit $ac_status); } && { |
5870 | test -z "$ac_c_werror_flag" || | |
5871 | test ! -s conftest.err | |
5872 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5873 | ac_cv_member_struct_stat_st_rdev=yes |
5874 | else | |
68f2de6d | 5875 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5876 | sed 's/^/| /' conftest.$ac_ext >&5 |
5877 | ||
7a197a62 | 5878 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5879 | fi |
7a197a62 AK |
5880 | |
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5882 | fi |
7a197a62 AK |
5883 | |
5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5885 | fi |
68f2de6d AK |
5886 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5887 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5888 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5889 | ||
5890 | cat >>confdefs.h <<_ACEOF | |
5891 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5892 | _ACEOF | |
5893 | ||
5894 | ||
ad6254c5 AK |
5895 | fi |
5896 | ||
68f2de6d AK |
5897 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5898 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5899 | if test "${ac_cv_struct_tm+set}" = set; then |
68f2de6d | 5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5901 | else |
5902 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5903 | /* confdefs.h. */ |
5904 | _ACEOF | |
5905 | cat confdefs.h >>conftest.$ac_ext | |
5906 | cat >>conftest.$ac_ext <<_ACEOF | |
5907 | /* end confdefs.h. */ | |
5908 | #include <sys/types.h> | |
5909 | #include <time.h> | |
5910 | ||
5911 | int | |
5912 | main () | |
5913 | { | |
25fbec5b AK |
5914 | struct tm tm; |
5915 | int *p = &tm.tm_sec; | |
68f2de6d | 5916 | return !p; |
ad6254c5 AK |
5917 | ; |
5918 | return 0; | |
5919 | } | |
5920 | _ACEOF | |
5921 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5922 | if { (ac_try="$ac_compile" |
5923 | case "(($ac_try" in | |
5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5925 | *) ac_try_echo=$ac_try;; | |
5926 | esac | |
68f2de6d | 5927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5928 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5929 | ac_status=$? |
8a2fc586 AK |
5930 | grep -v '^ *+' conftest.er1 >conftest.err |
5931 | rm -f conftest.er1 | |
5932 | cat conftest.err >&5 | |
68f2de6d | 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5934 | (exit $ac_status); } && { |
5935 | test -z "$ac_c_werror_flag" || | |
5936 | test ! -s conftest.err | |
5937 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5938 | ac_cv_struct_tm=time.h |
5939 | else | |
68f2de6d | 5940 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5941 | sed 's/^/| /' conftest.$ac_ext >&5 |
5942 | ||
7a197a62 | 5943 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5944 | fi |
7a197a62 AK |
5945 | |
5946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5947 | fi |
68f2de6d AK |
5948 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5949 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5950 | if test $ac_cv_struct_tm = sys/time.h; then |
5951 | ||
5952 | cat >>confdefs.h <<\_ACEOF | |
5953 | #define TM_IN_SYS_TIME 1 | |
5954 | _ACEOF | |
5955 | ||
5956 | fi | |
809fae91 | 5957 | |
795ca3e5 | 5958 | |
80992638 | 5959 | ################################################################################ |
ad6254c5 AK |
5960 | |
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
d0191583 JM |
5974 | |
5975 | ||
5976 | ||
5977 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5978 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5979 | uname | |
ad6254c5 | 5980 | do |
68f2de6d AK |
5981 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5982 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5983 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5984 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5986 | else |
ad6254c5 | 5987 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5988 | /* confdefs.h. */ |
5989 | _ACEOF | |
5990 | cat confdefs.h >>conftest.$ac_ext | |
5991 | cat >>conftest.$ac_ext <<_ACEOF | |
5992 | /* end confdefs.h. */ | |
8a2fc586 AK |
5993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5995 | #define $ac_func innocuous_$ac_func | |
5996 | ||
ad6254c5 AK |
5997 | /* System header to define __stub macros and hopefully few prototypes, |
5998 | which can conflict with char $ac_func (); below. | |
5999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6000 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6001 | |
ad6254c5 AK |
6002 | #ifdef __STDC__ |
6003 | # include <limits.h> | |
6004 | #else | |
6005 | # include <assert.h> | |
6006 | #endif | |
8a2fc586 AK |
6007 | |
6008 | #undef $ac_func | |
6009 | ||
7a197a62 AK |
6010 | /* Override any GCC internal prototype to avoid an error. |
6011 | Use char because int might match the return type of a GCC | |
6012 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6013 | #ifdef __cplusplus |
6014 | extern "C" | |
ad6254c5 | 6015 | #endif |
ad6254c5 AK |
6016 | char $ac_func (); |
6017 | /* The GNU C library defines this for functions which it implements | |
6018 | to always fail with ENOSYS. Some functions are actually named | |
6019 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6020 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6021 | choke me |
ad6254c5 AK |
6022 | #endif |
6023 | ||
6024 | int | |
6025 | main () | |
6026 | { | |
7a197a62 | 6027 | return $ac_func (); |
ad6254c5 AK |
6028 | ; |
6029 | return 0; | |
6030 | } | |
6031 | _ACEOF | |
6032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6033 | if { (ac_try="$ac_link" |
6034 | case "(($ac_try" in | |
6035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6036 | *) ac_try_echo=$ac_try;; | |
6037 | esac | |
68f2de6d | 6038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6039 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6040 | ac_status=$? |
8a2fc586 AK |
6041 | grep -v '^ *+' conftest.er1 >conftest.err |
6042 | rm -f conftest.er1 | |
6043 | cat conftest.err >&5 | |
68f2de6d | 6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6045 | (exit $ac_status); } && { |
6046 | test -z "$ac_c_werror_flag" || | |
6047 | test ! -s conftest.err | |
68f2de6d AK |
6048 | } && test -s conftest$ac_exeext && |
6049 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
6050 | eval "$as_ac_var=yes" |
6051 | else | |
68f2de6d | 6052 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
6054 | ||
6055 | eval "$as_ac_var=no" | |
6056 | fi | |
6057 | ||
25fbec5b | 6058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6059 | conftest$ac_exeext conftest.$ac_ext |
6060 | fi | |
68f2de6d AK |
6061 | ac_res=`eval echo '${'$as_ac_var'}'` |
6062 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6063 | echo "${ECHO_T}$ac_res" >&6; } | |
6064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6065 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6067 | _ACEOF |
6068 | ||
6069 | else | |
68f2de6d AK |
6070 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
6071 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6072 | { (exit 1); exit 1; }; } |
6073 | fi | |
6074 | done | |
795ca3e5 | 6075 | |
ad6254c5 AK |
6076 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6077 | # for constant arguments. Useless! | |
68f2de6d AK |
6078 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6079 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 6080 | if test "${ac_cv_working_alloca_h+set}" = set; then |
68f2de6d | 6081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6082 | else |
6083 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6084 | /* confdefs.h. */ |
6085 | _ACEOF | |
6086 | cat confdefs.h >>conftest.$ac_ext | |
6087 | cat >>conftest.$ac_ext <<_ACEOF | |
6088 | /* end confdefs.h. */ | |
6089 | #include <alloca.h> | |
6090 | int | |
6091 | main () | |
6092 | { | |
6093 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6094 | if (p) return 0; |
ad6254c5 AK |
6095 | ; |
6096 | return 0; | |
6097 | } | |
6098 | _ACEOF | |
6099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6100 | if { (ac_try="$ac_link" |
6101 | case "(($ac_try" in | |
6102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6103 | *) ac_try_echo=$ac_try;; | |
6104 | esac | |
68f2de6d | 6105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6106 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6107 | ac_status=$? |
8a2fc586 AK |
6108 | grep -v '^ *+' conftest.er1 >conftest.err |
6109 | rm -f conftest.er1 | |
6110 | cat conftest.err >&5 | |
68f2de6d | 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6112 | (exit $ac_status); } && { |
6113 | test -z "$ac_c_werror_flag" || | |
6114 | test ! -s conftest.err | |
68f2de6d AK |
6115 | } && test -s conftest$ac_exeext && |
6116 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6117 | ac_cv_working_alloca_h=yes |
6118 | else | |
68f2de6d | 6119 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6120 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6121 | |
7a197a62 | 6122 | ac_cv_working_alloca_h=no |
ad6254c5 | 6123 | fi |
7a197a62 | 6124 | |
25fbec5b | 6125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6126 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6127 | fi |
68f2de6d AK |
6128 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6129 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6130 | if test $ac_cv_working_alloca_h = yes; then |
6131 | ||
6132 | cat >>confdefs.h <<\_ACEOF | |
6133 | #define HAVE_ALLOCA_H 1 | |
6134 | _ACEOF | |
6135 | ||
6136 | fi | |
6137 | ||
68f2de6d AK |
6138 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6139 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6140 | if test "${ac_cv_func_alloca_works+set}" = set; then |
68f2de6d | 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6142 | else |
6143 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6144 | /* confdefs.h. */ |
6145 | _ACEOF | |
6146 | cat confdefs.h >>conftest.$ac_ext | |
6147 | cat >>conftest.$ac_ext <<_ACEOF | |
6148 | /* end confdefs.h. */ | |
6149 | #ifdef __GNUC__ | |
6150 | # define alloca __builtin_alloca | |
6151 | #else | |
6152 | # ifdef _MSC_VER | |
6153 | # include <malloc.h> | |
6154 | # define alloca _alloca | |
6155 | # else | |
25fbec5b | 6156 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6157 | # include <alloca.h> |
6158 | # else | |
6159 | # ifdef _AIX | |
6160 | #pragma alloca | |
6161 | # else | |
6162 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6163 | char *alloca (); | |
6164 | # endif | |
6165 | # endif | |
6166 | # endif | |
6167 | # endif | |
6168 | #endif | |
6169 | ||
6170 | int | |
6171 | main () | |
6172 | { | |
6173 | char *p = (char *) alloca (1); | |
7a197a62 | 6174 | if (p) return 0; |
ad6254c5 AK |
6175 | ; |
6176 | return 0; | |
6177 | } | |
6178 | _ACEOF | |
6179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6180 | if { (ac_try="$ac_link" |
6181 | case "(($ac_try" in | |
6182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6183 | *) ac_try_echo=$ac_try;; | |
6184 | esac | |
68f2de6d | 6185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6186 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6187 | ac_status=$? |
8a2fc586 AK |
6188 | grep -v '^ *+' conftest.er1 >conftest.err |
6189 | rm -f conftest.er1 | |
6190 | cat conftest.err >&5 | |
68f2de6d | 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6192 | (exit $ac_status); } && { |
6193 | test -z "$ac_c_werror_flag" || | |
6194 | test ! -s conftest.err | |
68f2de6d AK |
6195 | } && test -s conftest$ac_exeext && |
6196 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6197 | ac_cv_func_alloca_works=yes |
6198 | else | |
68f2de6d | 6199 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6200 | sed 's/^/| /' conftest.$ac_ext >&5 |
6201 | ||
7a197a62 | 6202 | ac_cv_func_alloca_works=no |
ad6254c5 | 6203 | fi |
7a197a62 | 6204 | |
25fbec5b | 6205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6206 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6207 | fi |
68f2de6d AK |
6208 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6209 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6210 | |
6211 | if test $ac_cv_func_alloca_works = yes; then | |
6212 | ||
6213 | cat >>confdefs.h <<\_ACEOF | |
6214 | #define HAVE_ALLOCA 1 | |
6215 | _ACEOF | |
6216 | ||
6217 | else | |
6218 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6219 | # that cause trouble. Some versions do not even contain alloca or | |
6220 | # contain a buggy version. If you still want to use their alloca, | |
6221 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6222 | ||
7a197a62 | 6223 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6224 | |
6225 | cat >>confdefs.h <<\_ACEOF | |
6226 | #define C_ALLOCA 1 | |
6227 | _ACEOF | |
6228 | ||
6229 | ||
68f2de6d AK |
6230 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6231 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6232 | if test "${ac_cv_os_cray+set}" = set; then |
68f2de6d | 6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6234 | else |
6235 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6236 | /* confdefs.h. */ |
6237 | _ACEOF | |
6238 | cat confdefs.h >>conftest.$ac_ext | |
6239 | cat >>conftest.$ac_ext <<_ACEOF | |
6240 | /* end confdefs.h. */ | |
7a197a62 | 6241 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6242 | webecray |
6243 | #else | |
6244 | wenotbecray | |
6245 | #endif | |
6246 | ||
6247 | _ACEOF | |
795ca3e5 | 6248 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6249 | $EGREP "webecray" >/dev/null 2>&1; then |
6250 | ac_cv_os_cray=yes | |
6251 | else | |
6252 | ac_cv_os_cray=no | |
795ca3e5 AK |
6253 | fi |
6254 | rm -f conftest* | |
6255 | ||
795ca3e5 | 6256 | fi |
68f2de6d AK |
6257 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6258 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6259 | if test $ac_cv_os_cray = yes; then |
6260 | for ac_func in _getb67 GETB67 getb67; do | |
68f2de6d AK |
6261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6262 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6264 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6266 | else |
6267 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6268 | /* confdefs.h. */ |
6269 | _ACEOF | |
6270 | cat confdefs.h >>conftest.$ac_ext | |
6271 | cat >>conftest.$ac_ext <<_ACEOF | |
6272 | /* end confdefs.h. */ | |
8a2fc586 AK |
6273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6275 | #define $ac_func innocuous_$ac_func | |
6276 | ||
ad6254c5 AK |
6277 | /* System header to define __stub macros and hopefully few prototypes, |
6278 | which can conflict with char $ac_func (); below. | |
6279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6280 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6281 | |
ad6254c5 AK |
6282 | #ifdef __STDC__ |
6283 | # include <limits.h> | |
6284 | #else | |
6285 | # include <assert.h> | |
6286 | #endif | |
8a2fc586 AK |
6287 | |
6288 | #undef $ac_func | |
6289 | ||
7a197a62 AK |
6290 | /* Override any GCC internal prototype to avoid an error. |
6291 | Use char because int might match the return type of a GCC | |
6292 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6293 | #ifdef __cplusplus |
6294 | extern "C" | |
ad6254c5 | 6295 | #endif |
ad6254c5 AK |
6296 | char $ac_func (); |
6297 | /* The GNU C library defines this for functions which it implements | |
6298 | to always fail with ENOSYS. Some functions are actually named | |
6299 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6300 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6301 | choke me |
ad6254c5 AK |
6302 | #endif |
6303 | ||
6304 | int | |
6305 | main () | |
6306 | { | |
7a197a62 | 6307 | return $ac_func (); |
ad6254c5 AK |
6308 | ; |
6309 | return 0; | |
6310 | } | |
6311 | _ACEOF | |
6312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6313 | if { (ac_try="$ac_link" |
6314 | case "(($ac_try" in | |
6315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6316 | *) ac_try_echo=$ac_try;; | |
6317 | esac | |
68f2de6d | 6318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6319 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6320 | ac_status=$? |
8a2fc586 AK |
6321 | grep -v '^ *+' conftest.er1 >conftest.err |
6322 | rm -f conftest.er1 | |
6323 | cat conftest.err >&5 | |
68f2de6d | 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6325 | (exit $ac_status); } && { |
6326 | test -z "$ac_c_werror_flag" || | |
6327 | test ! -s conftest.err | |
68f2de6d AK |
6328 | } && test -s conftest$ac_exeext && |
6329 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6330 | eval "$as_ac_var=yes" |
6331 | else | |
68f2de6d | 6332 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
6334 | ||
7a197a62 | 6335 | eval "$as_ac_var=no" |
ad6254c5 | 6336 | fi |
7a197a62 | 6337 | |
25fbec5b | 6338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6339 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6340 | fi |
68f2de6d AK |
6341 | ac_res=`eval echo '${'$as_ac_var'}'` |
6342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6343 | echo "${ECHO_T}$ac_res" >&6; } | |
6344 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6345 | |
ad6254c5 AK |
6346 | cat >>confdefs.h <<_ACEOF |
6347 | #define CRAY_STACKSEG_END $ac_func | |
6348 | _ACEOF | |
6349 | ||
6350 | break | |
6351 | fi | |
6352 | ||
6353 | done | |
6354 | fi | |
6355 | ||
68f2de6d AK |
6356 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6357 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6358 | if test "${ac_cv_c_stack_direction+set}" = set; then |
68f2de6d | 6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6360 | else |
6361 | if test "$cross_compiling" = yes; then | |
6362 | ac_cv_c_stack_direction=0 | |
6363 | else | |
6364 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6365 | /* confdefs.h. */ |
6366 | _ACEOF | |
6367 | cat confdefs.h >>conftest.$ac_ext | |
6368 | cat >>conftest.$ac_ext <<_ACEOF | |
6369 | /* end confdefs.h. */ | |
7a197a62 | 6370 | $ac_includes_default |
ad6254c5 AK |
6371 | int |
6372 | find_stack_direction () | |
6373 | { | |
6374 | static char *addr = 0; | |
6375 | auto char dummy; | |
6376 | if (addr == 0) | |
6377 | { | |
6378 | addr = &dummy; | |
6379 | return find_stack_direction (); | |
6380 | } | |
6381 | else | |
6382 | return (&dummy > addr) ? 1 : -1; | |
6383 | } | |
6384 | ||
6385 | int | |
6386 | main () | |
6387 | { | |
7a197a62 | 6388 | return find_stack_direction () < 0; |
ad6254c5 AK |
6389 | } |
6390 | _ACEOF | |
6391 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6392 | if { (ac_try="$ac_link" |
6393 | case "(($ac_try" in | |
6394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6395 | *) ac_try_echo=$ac_try;; | |
6396 | esac | |
68f2de6d | 6397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6398 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6399 | ac_status=$? |
68f2de6d | 6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6402 | { (case "(($ac_try" in |
6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6404 | *) ac_try_echo=$ac_try;; | |
6405 | esac | |
68f2de6d | 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6407 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6408 | ac_status=$? |
68f2de6d | 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6410 | (exit $ac_status); }; }; then |
6411 | ac_cv_c_stack_direction=1 | |
6412 | else | |
68f2de6d AK |
6413 | echo "$as_me: program exited with status $ac_status" >&5 |
6414 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6415 | sed 's/^/| /' conftest.$ac_ext >&5 |
6416 | ||
6417 | ( exit $ac_status ) | |
6418 | ac_cv_c_stack_direction=-1 | |
6419 | fi | |
7a197a62 | 6420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6421 | fi |
7a197a62 AK |
6422 | |
6423 | ||
ad6254c5 | 6424 | fi |
68f2de6d AK |
6425 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6426 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6427 | |
6428 | cat >>confdefs.h <<_ACEOF | |
6429 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6430 | _ACEOF | |
6431 | ||
6432 | ||
6433 | fi | |
6434 | ||
68f2de6d AK |
6435 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6436 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6437 | if test "${ac_cv_func_closedir_void+set}" = set; then |
68f2de6d | 6438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6439 | else |
6440 | if test "$cross_compiling" = yes; then | |
6441 | ac_cv_func_closedir_void=yes | |
6442 | else | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6444 | /* confdefs.h. */ |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | $ac_includes_default | |
6450 | #include <$ac_header_dirent> | |
6451 | #ifndef __cplusplus | |
6452 | int closedir (); | |
6453 | #endif | |
6454 | ||
6455 | int | |
6456 | main () | |
6457 | { | |
7a197a62 | 6458 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6459 | ; |
6460 | return 0; | |
6461 | } | |
6462 | _ACEOF | |
6463 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6464 | if { (ac_try="$ac_link" |
6465 | case "(($ac_try" in | |
6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6467 | *) ac_try_echo=$ac_try;; | |
6468 | esac | |
68f2de6d | 6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6470 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6471 | ac_status=$? |
68f2de6d | 6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6474 | { (case "(($ac_try" in |
6475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6476 | *) ac_try_echo=$ac_try;; | |
6477 | esac | |
68f2de6d | 6478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6479 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6480 | ac_status=$? |
68f2de6d | 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6482 | (exit $ac_status); }; }; then |
6483 | ac_cv_func_closedir_void=no | |
6484 | else | |
68f2de6d AK |
6485 | echo "$as_me: program exited with status $ac_status" >&5 |
6486 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6487 | sed 's/^/| /' conftest.$ac_ext >&5 |
6488 | ||
6489 | ( exit $ac_status ) | |
6490 | ac_cv_func_closedir_void=yes | |
6491 | fi | |
7a197a62 | 6492 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6493 | fi |
7a197a62 AK |
6494 | |
6495 | ||
ad6254c5 | 6496 | fi |
68f2de6d AK |
6497 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6498 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6499 | if test $ac_cv_func_closedir_void = yes; then |
6500 | ||
6501 | cat >>confdefs.h <<\_ACEOF | |
6502 | #define CLOSEDIR_VOID 1 | |
6503 | _ACEOF | |
6504 | ||
6505 | fi | |
6506 | ||
6507 | ||
7a197a62 | 6508 | for ac_header in vfork.h |
ad6254c5 | 6509 | do |
68f2de6d | 6510 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
6512 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6513 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6516 | fi |
68f2de6d AK |
6517 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6518 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6519 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6520 | else |
6521 | # Is the header compilable? | |
68f2de6d AK |
6522 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6524 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6525 | /* confdefs.h. */ |
6526 | _ACEOF | |
6527 | cat confdefs.h >>conftest.$ac_ext | |
6528 | cat >>conftest.$ac_ext <<_ACEOF | |
6529 | /* end confdefs.h. */ | |
6530 | $ac_includes_default | |
6531 | #include <$ac_header> | |
6532 | _ACEOF | |
6533 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6534 | if { (ac_try="$ac_compile" |
6535 | case "(($ac_try" in | |
6536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6537 | *) ac_try_echo=$ac_try;; | |
6538 | esac | |
68f2de6d | 6539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6540 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6541 | ac_status=$? |
8a2fc586 AK |
6542 | grep -v '^ *+' conftest.er1 >conftest.err |
6543 | rm -f conftest.er1 | |
6544 | cat conftest.err >&5 | |
68f2de6d | 6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6546 | (exit $ac_status); } && { |
6547 | test -z "$ac_c_werror_flag" || | |
6548 | test ! -s conftest.err | |
6549 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6550 | ac_header_compiler=yes |
6551 | else | |
68f2de6d | 6552 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6553 | sed 's/^/| /' conftest.$ac_ext >&5 |
6554 | ||
7a197a62 | 6555 | ac_header_compiler=no |
ad6254c5 | 6556 | fi |
7a197a62 AK |
6557 | |
6558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
6559 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6560 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6561 | |
6562 | # Is the header present? | |
68f2de6d AK |
6563 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6564 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6565 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6566 | /* confdefs.h. */ |
6567 | _ACEOF | |
6568 | cat confdefs.h >>conftest.$ac_ext | |
6569 | cat >>conftest.$ac_ext <<_ACEOF | |
6570 | /* end confdefs.h. */ | |
6571 | #include <$ac_header> | |
6572 | _ACEOF | |
7a197a62 AK |
6573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6574 | case "(($ac_try" in | |
6575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6576 | *) ac_try_echo=$ac_try;; | |
6577 | esac | |
68f2de6d | 6578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6580 | ac_status=$? |
6581 | grep -v '^ *+' conftest.er1 >conftest.err | |
6582 | rm -f conftest.er1 | |
6583 | cat conftest.err >&5 | |
68f2de6d | 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6585 | (exit $ac_status); } >/dev/null && { |
6586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6587 | test ! -s conftest.err | |
6588 | }; then | |
ad6254c5 AK |
6589 | ac_header_preproc=yes |
6590 | else | |
68f2de6d | 6591 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6592 | sed 's/^/| /' conftest.$ac_ext >&5 |
6593 | ||
6594 | ac_header_preproc=no | |
6595 | fi | |
7a197a62 | 6596 | |
ad6254c5 | 6597 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
6598 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6599 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6600 | |
6601 | # So? What about this header? | |
8a2fc586 AK |
6602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6603 | yes:no: ) | |
68f2de6d AK |
6604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6608 | ac_header_preproc=yes |
ad6254c5 | 6609 | ;; |
8a2fc586 | 6610 | no:yes:* ) |
68f2de6d AK |
6611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6623 | |
ad6254c5 AK |
6624 | ;; |
6625 | esac | |
68f2de6d AK |
6626 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6630 | else |
8a2fc586 | 6631 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6632 | fi |
68f2de6d AK |
6633 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6635 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6636 | |
795ca3e5 | 6637 | fi |
68f2de6d | 6638 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6639 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6640 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6641 | _ACEOF |
6642 | ||
6643 | fi | |
6644 | ||
6645 | done | |
795ca3e5 | 6646 | |
ad6254c5 AK |
6647 | |
6648 | ||
6649 | for ac_func in fork vfork | |
6650 | do | |
68f2de6d AK |
6651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6652 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6654 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6656 | else |
ad6254c5 | 6657 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6658 | /* confdefs.h. */ |
6659 | _ACEOF | |
6660 | cat confdefs.h >>conftest.$ac_ext | |
6661 | cat >>conftest.$ac_ext <<_ACEOF | |
6662 | /* end confdefs.h. */ | |
8a2fc586 AK |
6663 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6665 | #define $ac_func innocuous_$ac_func | |
6666 | ||
ad6254c5 AK |
6667 | /* System header to define __stub macros and hopefully few prototypes, |
6668 | which can conflict with char $ac_func (); below. | |
6669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6670 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6671 | |
ad6254c5 AK |
6672 | #ifdef __STDC__ |
6673 | # include <limits.h> | |
6674 | #else | |
6675 | # include <assert.h> | |
795ca3e5 | 6676 | #endif |
8a2fc586 AK |
6677 | |
6678 | #undef $ac_func | |
6679 | ||
7a197a62 AK |
6680 | /* Override any GCC internal prototype to avoid an error. |
6681 | Use char because int might match the return type of a GCC | |
6682 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6683 | #ifdef __cplusplus |
ad6254c5 | 6684 | extern "C" |
ad6254c5 | 6685 | #endif |
ad6254c5 AK |
6686 | char $ac_func (); |
6687 | /* The GNU C library defines this for functions which it implements | |
6688 | to always fail with ENOSYS. Some functions are actually named | |
6689 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6690 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6691 | choke me |
795ca3e5 AK |
6692 | #endif |
6693 | ||
ad6254c5 AK |
6694 | int |
6695 | main () | |
6696 | { | |
7a197a62 | 6697 | return $ac_func (); |
ad6254c5 AK |
6698 | ; |
6699 | return 0; | |
6700 | } | |
6701 | _ACEOF | |
6702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6703 | if { (ac_try="$ac_link" |
6704 | case "(($ac_try" in | |
6705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6706 | *) ac_try_echo=$ac_try;; | |
6707 | esac | |
68f2de6d | 6708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6709 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6710 | ac_status=$? |
8a2fc586 AK |
6711 | grep -v '^ *+' conftest.er1 >conftest.err |
6712 | rm -f conftest.er1 | |
6713 | cat conftest.err >&5 | |
68f2de6d | 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6715 | (exit $ac_status); } && { |
6716 | test -z "$ac_c_werror_flag" || | |
6717 | test ! -s conftest.err | |
68f2de6d AK |
6718 | } && test -s conftest$ac_exeext && |
6719 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6720 | eval "$as_ac_var=yes" |
795ca3e5 | 6721 | else |
68f2de6d | 6722 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6723 | sed 's/^/| /' conftest.$ac_ext >&5 |
6724 | ||
7a197a62 | 6725 | eval "$as_ac_var=no" |
795ca3e5 | 6726 | fi |
7a197a62 | 6727 | |
25fbec5b | 6728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6729 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6730 | fi |
68f2de6d AK |
6731 | ac_res=`eval echo '${'$as_ac_var'}'` |
6732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6733 | echo "${ECHO_T}$ac_res" >&6; } | |
6734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6735 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6737 | _ACEOF |
6738 | ||
6739 | fi | |
6740 | done | |
6741 | ||
6742 | if test "x$ac_cv_func_fork" = xyes; then | |
68f2de6d AK |
6743 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6744 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6745 | if test "${ac_cv_func_fork_works+set}" = set; then |
68f2de6d | 6746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6747 | else |
6748 | if test "$cross_compiling" = yes; then | |
6749 | ac_cv_func_fork_works=cross | |
6750 | else | |
6751 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6752 | /* confdefs.h. */ |
6753 | _ACEOF | |
6754 | cat confdefs.h >>conftest.$ac_ext | |
6755 | cat >>conftest.$ac_ext <<_ACEOF | |
6756 | /* end confdefs.h. */ | |
6757 | $ac_includes_default | |
6758 | int | |
6759 | main () | |
6760 | { | |
6761 | ||
6762 | /* By Ruediger Kuhlmann. */ | |
6763 | return fork () < 0; | |
6764 | ||
6765 | ; | |
6766 | return 0; | |
6767 | } | |
ad6254c5 AK |
6768 | _ACEOF |
6769 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6770 | if { (ac_try="$ac_link" |
6771 | case "(($ac_try" in | |
6772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6773 | *) ac_try_echo=$ac_try;; | |
6774 | esac | |
68f2de6d | 6775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6776 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6777 | ac_status=$? |
68f2de6d | 6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6780 | { (case "(($ac_try" in |
6781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6782 | *) ac_try_echo=$ac_try;; | |
6783 | esac | |
68f2de6d | 6784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6785 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6786 | ac_status=$? |
68f2de6d | 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6788 | (exit $ac_status); }; }; then |
6789 | ac_cv_func_fork_works=yes | |
6790 | else | |
68f2de6d AK |
6791 | echo "$as_me: program exited with status $ac_status" >&5 |
6792 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6793 | sed 's/^/| /' conftest.$ac_ext >&5 |
6794 | ||
6795 | ( exit $ac_status ) | |
6796 | ac_cv_func_fork_works=no | |
6797 | fi | |
7a197a62 | 6798 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6799 | fi |
7a197a62 AK |
6800 | |
6801 | ||
ad6254c5 | 6802 | fi |
68f2de6d AK |
6803 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6804 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6805 | |
6806 | else | |
6807 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6808 | fi | |
6809 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6810 | case $host in | |
6811 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6812 | # Override, as these systems have only a dummy fork() stub | |
6813 | ac_cv_func_fork_works=no | |
6814 | ;; | |
6815 | *) | |
6816 | ac_cv_func_fork_works=yes | |
6817 | ;; | |
6818 | esac | |
68f2de6d AK |
6819 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6820 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6821 | fi |
6822 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6823 | if test "x$ac_cv_func_vfork" = xyes; then | |
68f2de6d AK |
6824 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6825 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6826 | if test "${ac_cv_func_vfork_works+set}" = set; then |
68f2de6d | 6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6828 | else |
6829 | if test "$cross_compiling" = yes; then | |
6830 | ac_cv_func_vfork_works=cross | |
6831 | else | |
6832 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6833 | /* confdefs.h. */ |
6834 | _ACEOF | |
6835 | cat confdefs.h >>conftest.$ac_ext | |
6836 | cat >>conftest.$ac_ext <<_ACEOF | |
6837 | /* end confdefs.h. */ | |
6838 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6839 | $ac_includes_default |
ad6254c5 | 6840 | #include <sys/wait.h> |
25fbec5b | 6841 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6842 | # include <vfork.h> |
6843 | #endif | |
6844 | /* On some sparc systems, changes by the child to local and incoming | |
6845 | argument registers are propagated back to the parent. The compiler | |
6846 | is told about this with #include <vfork.h>, but some compilers | |
6847 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6848 | static variable whose address is put into a register that is | |
6849 | clobbered by the vfork. */ | |
6850 | static void | |
6851 | #ifdef __cplusplus | |
6852 | sparc_address_test (int arg) | |
6853 | # else | |
6854 | sparc_address_test (arg) int arg; | |
6855 | #endif | |
6856 | { | |
6857 | static pid_t child; | |
6858 | if (!child) { | |
6859 | child = vfork (); | |
6860 | if (child < 0) { | |
6861 | perror ("vfork"); | |
6862 | _exit(2); | |
6863 | } | |
6864 | if (!child) { | |
6865 | arg = getpid(); | |
6866 | write(-1, "", 0); | |
6867 | _exit (arg); | |
6868 | } | |
6869 | } | |
6870 | } | |
6871 | ||
6872 | int | |
6873 | main () | |
6874 | { | |
6875 | pid_t parent = getpid (); | |
6876 | pid_t child; | |
6877 | ||
6878 | sparc_address_test (0); | |
6879 | ||
6880 | child = vfork (); | |
6881 | ||
6882 | if (child == 0) { | |
6883 | /* Here is another test for sparc vfork register problems. This | |
6884 | test uses lots of local variables, at least as many local | |
6885 | variables as main has allocated so far including compiler | |
6886 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6887 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6888 | reuse the register of parent for one of the local variables, | |
6889 | since it will think that parent can't possibly be used any more | |
6890 | in this routine. Assigning to the local variable will thus | |
6891 | munge parent in the parent process. */ | |
6892 | pid_t | |
6893 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6894 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6895 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6896 | use the same hardware register for all 8 local variables. */ | |
6897 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6898 | || p != p5 || p != p6 || p != p7) | |
6899 | _exit(1); | |
6900 | ||
6901 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6902 | from child file descriptors. If the child closes a descriptor | |
6903 | before it execs or exits, this munges the parent's descriptor | |
6904 | as well. Test for this by closing stdout in the child. */ | |
6905 | _exit(close(fileno(stdout)) != 0); | |
6906 | } else { | |
6907 | int status; | |
6908 | struct stat st; | |
6909 | ||
6910 | while (wait(&status) != child) | |
6911 | ; | |
7a197a62 | 6912 | return ( |
ad6254c5 AK |
6913 | /* Was there some problem with vforking? */ |
6914 | child < 0 | |
6915 | ||
6916 | /* Did the child fail? (This shouldn't happen.) */ | |
6917 | || status | |
6918 | ||
6919 | /* Did the vfork/compiler bug occur? */ | |
6920 | || parent != getpid() | |
6921 | ||
6922 | /* Did the file descriptor bug occur? */ | |
6923 | || fstat(fileno(stdout), &st) != 0 | |
6924 | ); | |
6925 | } | |
6926 | } | |
6927 | _ACEOF | |
6928 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6929 | if { (ac_try="$ac_link" |
6930 | case "(($ac_try" in | |
6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6932 | *) ac_try_echo=$ac_try;; | |
6933 | esac | |
68f2de6d | 6934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6935 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6936 | ac_status=$? |
68f2de6d | 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6939 | { (case "(($ac_try" in |
6940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6941 | *) ac_try_echo=$ac_try;; | |
6942 | esac | |
68f2de6d | 6943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6944 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6945 | ac_status=$? |
68f2de6d | 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6947 | (exit $ac_status); }; }; then |
6948 | ac_cv_func_vfork_works=yes | |
6949 | else | |
68f2de6d AK |
6950 | echo "$as_me: program exited with status $ac_status" >&5 |
6951 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
6953 | ||
6954 | ( exit $ac_status ) | |
6955 | ac_cv_func_vfork_works=no | |
6956 | fi | |
7a197a62 | 6957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6958 | fi |
7a197a62 AK |
6959 | |
6960 | ||
ad6254c5 | 6961 | fi |
68f2de6d AK |
6962 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6963 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6964 | |
6965 | fi; | |
6966 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6967 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
68f2de6d AK |
6968 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6969 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6970 | fi |
6971 | ||
6972 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6973 | ||
6974 | cat >>confdefs.h <<\_ACEOF | |
6975 | #define HAVE_WORKING_VFORK 1 | |
6976 | _ACEOF | |
6977 | ||
6978 | else | |
6979 | ||
6980 | cat >>confdefs.h <<\_ACEOF | |
6981 | #define vfork fork | |
6982 | _ACEOF | |
6983 | ||
6984 | fi | |
6985 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6986 | ||
6987 | cat >>confdefs.h <<\_ACEOF | |
6988 | #define HAVE_WORKING_FORK 1 | |
6989 | _ACEOF | |
6990 | ||
6991 | fi | |
6992 | ||
68f2de6d AK |
6993 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6994 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6995 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
68f2de6d | 6996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6997 | else |
6998 | rm -f conftest.sym conftest.file | |
6999 | echo >conftest.file | |
7000 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7001 | if test "$cross_compiling" = yes; then | |
7002 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7003 | else | |
7004 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7005 | /* confdefs.h. */ |
7006 | _ACEOF | |
7007 | cat confdefs.h >>conftest.$ac_ext | |
7008 | cat >>conftest.$ac_ext <<_ACEOF | |
7009 | /* end confdefs.h. */ | |
7010 | $ac_includes_default | |
7011 | int | |
7012 | main () | |
7013 | { | |
7014 | struct stat sbuf; | |
7015 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7016 | That is better in the sense that it means we will not |
7017 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7018 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7019 | ; |
7020 | return 0; | |
7021 | } | |
7022 | _ACEOF | |
7023 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7024 | if { (ac_try="$ac_link" |
7025 | case "(($ac_try" in | |
7026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7027 | *) ac_try_echo=$ac_try;; | |
7028 | esac | |
68f2de6d | 7029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7030 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7031 | ac_status=$? |
68f2de6d | 7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7034 | { (case "(($ac_try" in |
7035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7036 | *) ac_try_echo=$ac_try;; | |
7037 | esac | |
68f2de6d | 7038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7039 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7040 | ac_status=$? |
68f2de6d | 7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7042 | (exit $ac_status); }; }; then |
7043 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7044 | else | |
68f2de6d AK |
7045 | echo "$as_me: program exited with status $ac_status" >&5 |
7046 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7047 | sed 's/^/| /' conftest.$ac_ext >&5 |
7048 | ||
7049 | ( exit $ac_status ) | |
7050 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7051 | fi | |
7a197a62 | 7052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7053 | fi |
7a197a62 AK |
7054 | |
7055 | ||
ad6254c5 AK |
7056 | else |
7057 | # If the `ln -s' command failed, then we probably don't even | |
7058 | # have an lstat function. | |
7059 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7060 | fi | |
7061 | rm -f conftest.sym conftest.file | |
7062 | ||
7063 | fi | |
68f2de6d AK |
7064 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7065 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7066 | |
7067 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7068 | ||
7069 | cat >>confdefs.h <<_ACEOF | |
7070 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7071 | _ACEOF | |
7072 | ||
7073 | ||
7074 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7075 | case " $LIBOBJS " in |
8a2fc586 | 7076 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7077 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7078 | ;; | |
8a2fc586 AK |
7079 | esac |
7080 | ||
ad6254c5 AK |
7081 | fi |
7082 | ||
68f2de6d AK |
7083 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7084 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7085 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
68f2de6d | 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7087 | else |
7088 | if test "$cross_compiling" = yes; then | |
7089 | ac_cv_func_lstat_empty_string_bug=yes | |
7090 | else | |
7091 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7092 | /* confdefs.h. */ |
7093 | _ACEOF | |
7094 | cat confdefs.h >>conftest.$ac_ext | |
7095 | cat >>conftest.$ac_ext <<_ACEOF | |
7096 | /* end confdefs.h. */ | |
7097 | $ac_includes_default | |
7098 | int | |
7099 | main () | |
7100 | { | |
7101 | struct stat sbuf; | |
7a197a62 | 7102 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7103 | ; |
7104 | return 0; | |
7105 | } | |
7106 | _ACEOF | |
7107 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7108 | if { (ac_try="$ac_link" |
7109 | case "(($ac_try" in | |
7110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7111 | *) ac_try_echo=$ac_try;; | |
7112 | esac | |
68f2de6d | 7113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7114 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7115 | ac_status=$? |
68f2de6d | 7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7117 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7118 | { (case "(($ac_try" in |
7119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7120 | *) ac_try_echo=$ac_try;; | |
7121 | esac | |
68f2de6d | 7122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7123 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7124 | ac_status=$? |
68f2de6d | 7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7126 | (exit $ac_status); }; }; then |
7a197a62 | 7127 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7128 | else |
68f2de6d AK |
7129 | echo "$as_me: program exited with status $ac_status" >&5 |
7130 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7131 | sed 's/^/| /' conftest.$ac_ext >&5 |
7132 | ||
7133 | ( exit $ac_status ) | |
7a197a62 | 7134 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7135 | fi |
7a197a62 | 7136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7137 | fi |
7a197a62 AK |
7138 | |
7139 | ||
ad6254c5 | 7140 | fi |
68f2de6d AK |
7141 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7142 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7143 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7144 | case " $LIBOBJS " in |
8a2fc586 | 7145 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7146 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7147 | ;; | |
8a2fc586 AK |
7148 | esac |
7149 | ||
ad6254c5 AK |
7150 | |
7151 | cat >>confdefs.h <<_ACEOF | |
7152 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7153 | _ACEOF | |
7154 | ||
7155 | fi | |
7156 | ||
7157 | ||
7158 | for ac_header in stdlib.h | |
7159 | do | |
68f2de6d | 7160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7162 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7164 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7166 | fi |
68f2de6d AK |
7167 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7169 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7170 | else |
7171 | # Is the header compilable? | |
68f2de6d AK |
7172 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7173 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7174 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7175 | /* confdefs.h. */ |
7176 | _ACEOF | |
7177 | cat confdefs.h >>conftest.$ac_ext | |
7178 | cat >>conftest.$ac_ext <<_ACEOF | |
7179 | /* end confdefs.h. */ | |
7180 | $ac_includes_default | |
7181 | #include <$ac_header> | |
7182 | _ACEOF | |
7183 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7184 | if { (ac_try="$ac_compile" |
7185 | case "(($ac_try" in | |
7186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7187 | *) ac_try_echo=$ac_try;; | |
7188 | esac | |
68f2de6d | 7189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7190 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7191 | ac_status=$? |
8a2fc586 AK |
7192 | grep -v '^ *+' conftest.er1 >conftest.err |
7193 | rm -f conftest.er1 | |
7194 | cat conftest.err >&5 | |
68f2de6d | 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7196 | (exit $ac_status); } && { |
7197 | test -z "$ac_c_werror_flag" || | |
7198 | test ! -s conftest.err | |
7199 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7200 | ac_header_compiler=yes |
7201 | else | |
68f2de6d | 7202 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7203 | sed 's/^/| /' conftest.$ac_ext >&5 |
7204 | ||
7a197a62 | 7205 | ac_header_compiler=no |
ad6254c5 | 7206 | fi |
7a197a62 AK |
7207 | |
7208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7209 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7210 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7211 | |
7212 | # Is the header present? | |
68f2de6d AK |
7213 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7215 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7216 | /* confdefs.h. */ |
7217 | _ACEOF | |
7218 | cat confdefs.h >>conftest.$ac_ext | |
7219 | cat >>conftest.$ac_ext <<_ACEOF | |
7220 | /* end confdefs.h. */ | |
7221 | #include <$ac_header> | |
7222 | _ACEOF | |
7a197a62 AK |
7223 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7224 | case "(($ac_try" in | |
7225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7226 | *) ac_try_echo=$ac_try;; | |
7227 | esac | |
68f2de6d | 7228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7229 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7230 | ac_status=$? |
7231 | grep -v '^ *+' conftest.er1 >conftest.err | |
7232 | rm -f conftest.er1 | |
7233 | cat conftest.err >&5 | |
68f2de6d | 7234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7235 | (exit $ac_status); } >/dev/null && { |
7236 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7237 | test ! -s conftest.err | |
7238 | }; then | |
ad6254c5 AK |
7239 | ac_header_preproc=yes |
7240 | else | |
68f2de6d | 7241 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7242 | sed 's/^/| /' conftest.$ac_ext >&5 |
7243 | ||
7244 | ac_header_preproc=no | |
7245 | fi | |
7a197a62 | 7246 | |
ad6254c5 | 7247 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7248 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7249 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7250 | |
7251 | # So? What about this header? | |
8a2fc586 AK |
7252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7253 | yes:no: ) | |
68f2de6d AK |
7254 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7255 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7257 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7258 | ac_header_preproc=yes |
ad6254c5 | 7259 | ;; |
8a2fc586 | 7260 | no:yes:* ) |
68f2de6d AK |
7261 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7262 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7263 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7264 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7265 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7266 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7267 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7268 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7271 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7272 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7273 | |
ad6254c5 AK |
7274 | ;; |
7275 | esac | |
68f2de6d AK |
7276 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7280 | else |
8a2fc586 | 7281 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7282 | fi |
68f2de6d AK |
7283 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7284 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7285 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7286 | |
7287 | fi | |
68f2de6d | 7288 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7289 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7290 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7291 | _ACEOF |
7292 | ||
7293 | fi | |
7294 | ||
7295 | done | |
7296 | ||
68f2de6d AK |
7297 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7298 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7299 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
68f2de6d | 7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7301 | else |
7302 | if test "$cross_compiling" = yes; then | |
7303 | ac_cv_func_malloc_0_nonnull=no | |
7304 | else | |
7305 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7306 | /* confdefs.h. */ |
7307 | _ACEOF | |
7308 | cat confdefs.h >>conftest.$ac_ext | |
7309 | cat >>conftest.$ac_ext <<_ACEOF | |
7310 | /* end confdefs.h. */ | |
25fbec5b | 7311 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7312 | # include <stdlib.h> |
7313 | #else | |
7314 | char *malloc (); | |
7315 | #endif | |
7316 | ||
7317 | int | |
7318 | main () | |
7319 | { | |
7a197a62 | 7320 | return ! malloc (0); |
ad6254c5 AK |
7321 | ; |
7322 | return 0; | |
7323 | } | |
7324 | _ACEOF | |
7325 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7326 | if { (ac_try="$ac_link" |
7327 | case "(($ac_try" in | |
7328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7329 | *) ac_try_echo=$ac_try;; | |
7330 | esac | |
68f2de6d | 7331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7332 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7333 | ac_status=$? |
68f2de6d | 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7336 | { (case "(($ac_try" in |
7337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7338 | *) ac_try_echo=$ac_try;; | |
7339 | esac | |
68f2de6d | 7340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7341 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7342 | ac_status=$? |
68f2de6d | 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7344 | (exit $ac_status); }; }; then |
7345 | ac_cv_func_malloc_0_nonnull=yes | |
7346 | else | |
68f2de6d AK |
7347 | echo "$as_me: program exited with status $ac_status" >&5 |
7348 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7349 | sed 's/^/| /' conftest.$ac_ext >&5 |
7350 | ||
7351 | ( exit $ac_status ) | |
7352 | ac_cv_func_malloc_0_nonnull=no | |
7353 | fi | |
7a197a62 | 7354 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7355 | fi |
7a197a62 AK |
7356 | |
7357 | ||
ad6254c5 | 7358 | fi |
68f2de6d AK |
7359 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7360 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7361 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7362 | ||
7363 | cat >>confdefs.h <<\_ACEOF | |
7364 | #define HAVE_MALLOC 1 | |
7365 | _ACEOF | |
7366 | ||
7367 | else | |
7368 | cat >>confdefs.h <<\_ACEOF | |
7369 | #define HAVE_MALLOC 0 | |
7370 | _ACEOF | |
7371 | ||
7a197a62 | 7372 | case " $LIBOBJS " in |
8a2fc586 | 7373 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7374 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7375 | ;; | |
8a2fc586 AK |
7376 | esac |
7377 | ||
ad6254c5 AK |
7378 | |
7379 | cat >>confdefs.h <<\_ACEOF | |
7380 | #define malloc rpl_malloc | |
7381 | _ACEOF | |
7382 | ||
7383 | fi | |
7384 | ||
7385 | ||
7386 | ||
68f2de6d AK |
7387 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7388 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7389 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
68f2de6d | 7390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7391 | else |
7392 | if test "$cross_compiling" = yes; then | |
7393 | ac_cv_func_memcmp_working=no | |
7394 | else | |
7395 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7396 | /* confdefs.h. */ |
7397 | _ACEOF | |
7398 | cat confdefs.h >>conftest.$ac_ext | |
7399 | cat >>conftest.$ac_ext <<_ACEOF | |
7400 | /* end confdefs.h. */ | |
8a2fc586 | 7401 | $ac_includes_default |
ad6254c5 AK |
7402 | int |
7403 | main () | |
7404 | { | |
7405 | ||
7406 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7407 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7408 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7409 | return 1; |
ad6254c5 AK |
7410 | |
7411 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7412 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7413 | William Lewis provided this test program. */ | |
7414 | { | |
7415 | char foo[21]; | |
7416 | char bar[21]; | |
7417 | int i; | |
7418 | for (i = 0; i < 4; i++) | |
7419 | { | |
8a2fc586 AK |
7420 | char *a = foo + i; |
7421 | char *b = bar + i; | |
7422 | strcpy (a, "--------01111111"); | |
7423 | strcpy (b, "--------10000000"); | |
7424 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7425 | return 1; |
ad6254c5 | 7426 | } |
7a197a62 | 7427 | return 0; |
ad6254c5 AK |
7428 | } |
7429 | ||
7430 | ; | |
7431 | return 0; | |
7432 | } | |
7433 | _ACEOF | |
7434 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7435 | if { (ac_try="$ac_link" |
7436 | case "(($ac_try" in | |
7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7438 | *) ac_try_echo=$ac_try;; | |
7439 | esac | |
68f2de6d | 7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7441 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7442 | ac_status=$? |
68f2de6d | 7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7445 | { (case "(($ac_try" in |
7446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7447 | *) ac_try_echo=$ac_try;; | |
7448 | esac | |
68f2de6d | 7449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7450 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7451 | ac_status=$? |
68f2de6d | 7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7453 | (exit $ac_status); }; }; then |
7454 | ac_cv_func_memcmp_working=yes | |
7455 | else | |
68f2de6d AK |
7456 | echo "$as_me: program exited with status $ac_status" >&5 |
7457 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7458 | sed 's/^/| /' conftest.$ac_ext >&5 |
7459 | ||
7460 | ( exit $ac_status ) | |
7461 | ac_cv_func_memcmp_working=no | |
7462 | fi | |
7a197a62 | 7463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7464 | fi |
7a197a62 AK |
7465 | |
7466 | ||
ad6254c5 | 7467 | fi |
68f2de6d AK |
7468 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7469 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7470 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7471 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7472 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7473 | ;; | |
8a2fc586 AK |
7474 | esac |
7475 | ||
ad6254c5 AK |
7476 | |
7477 | ||
7478 | ||
7479 | for ac_header in stdlib.h unistd.h | |
7480 | do | |
68f2de6d | 7481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7485 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7487 | fi |
68f2de6d AK |
7488 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7490 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7491 | else |
7492 | # Is the header compilable? | |
68f2de6d AK |
7493 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7494 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7495 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7496 | /* confdefs.h. */ |
7497 | _ACEOF | |
7498 | cat confdefs.h >>conftest.$ac_ext | |
7499 | cat >>conftest.$ac_ext <<_ACEOF | |
7500 | /* end confdefs.h. */ | |
7501 | $ac_includes_default | |
7502 | #include <$ac_header> | |
7503 | _ACEOF | |
7504 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7505 | if { (ac_try="$ac_compile" |
7506 | case "(($ac_try" in | |
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7508 | *) ac_try_echo=$ac_try;; | |
7509 | esac | |
68f2de6d | 7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7511 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7512 | ac_status=$? |
8a2fc586 AK |
7513 | grep -v '^ *+' conftest.er1 >conftest.err |
7514 | rm -f conftest.er1 | |
7515 | cat conftest.err >&5 | |
68f2de6d | 7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7517 | (exit $ac_status); } && { |
7518 | test -z "$ac_c_werror_flag" || | |
7519 | test ! -s conftest.err | |
7520 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7521 | ac_header_compiler=yes |
7522 | else | |
68f2de6d | 7523 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7524 | sed 's/^/| /' conftest.$ac_ext >&5 |
7525 | ||
7a197a62 | 7526 | ac_header_compiler=no |
ad6254c5 | 7527 | fi |
7a197a62 AK |
7528 | |
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7530 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7531 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7532 | |
7533 | # Is the header present? | |
68f2de6d AK |
7534 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7535 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7536 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7537 | /* confdefs.h. */ |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
7542 | #include <$ac_header> | |
7543 | _ACEOF | |
7a197a62 AK |
7544 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
68f2de6d | 7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7551 | ac_status=$? |
7552 | grep -v '^ *+' conftest.er1 >conftest.err | |
7553 | rm -f conftest.er1 | |
7554 | cat conftest.err >&5 | |
68f2de6d | 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7556 | (exit $ac_status); } >/dev/null && { |
7557 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7558 | test ! -s conftest.err | |
7559 | }; then | |
ad6254c5 AK |
7560 | ac_header_preproc=yes |
7561 | else | |
68f2de6d | 7562 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7563 | sed 's/^/| /' conftest.$ac_ext >&5 |
7564 | ||
7565 | ac_header_preproc=no | |
7566 | fi | |
7a197a62 | 7567 | |
ad6254c5 | 7568 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7569 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7570 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7571 | |
7572 | # So? What about this header? | |
8a2fc586 AK |
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7574 | yes:no: ) | |
68f2de6d AK |
7575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7579 | ac_header_preproc=yes |
ad6254c5 | 7580 | ;; |
8a2fc586 | 7581 | no:yes:* ) |
68f2de6d AK |
7582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7594 | |
ad6254c5 AK |
7595 | ;; |
7596 | esac | |
68f2de6d AK |
7597 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7601 | else |
8a2fc586 | 7602 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7603 | fi |
68f2de6d AK |
7604 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7605 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7606 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7607 | |
7608 | fi | |
68f2de6d | 7609 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7610 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7611 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7612 | _ACEOF |
7613 | ||
7614 | fi | |
7615 | ||
7616 | done | |
7617 | ||
7618 | ||
7619 | for ac_func in getpagesize | |
7620 | do | |
68f2de6d AK |
7621 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7622 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7624 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7626 | else |
7627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7628 | /* confdefs.h. */ |
7629 | _ACEOF | |
7630 | cat confdefs.h >>conftest.$ac_ext | |
7631 | cat >>conftest.$ac_ext <<_ACEOF | |
7632 | /* end confdefs.h. */ | |
8a2fc586 AK |
7633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7635 | #define $ac_func innocuous_$ac_func | |
7636 | ||
ad6254c5 AK |
7637 | /* System header to define __stub macros and hopefully few prototypes, |
7638 | which can conflict with char $ac_func (); below. | |
7639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7640 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7641 | |
ad6254c5 AK |
7642 | #ifdef __STDC__ |
7643 | # include <limits.h> | |
7644 | #else | |
7645 | # include <assert.h> | |
7646 | #endif | |
8a2fc586 AK |
7647 | |
7648 | #undef $ac_func | |
7649 | ||
7a197a62 AK |
7650 | /* Override any GCC internal prototype to avoid an error. |
7651 | Use char because int might match the return type of a GCC | |
7652 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7653 | #ifdef __cplusplus |
7654 | extern "C" | |
ad6254c5 | 7655 | #endif |
ad6254c5 AK |
7656 | char $ac_func (); |
7657 | /* The GNU C library defines this for functions which it implements | |
7658 | to always fail with ENOSYS. Some functions are actually named | |
7659 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7660 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7661 | choke me |
ad6254c5 AK |
7662 | #endif |
7663 | ||
7664 | int | |
7665 | main () | |
7666 | { | |
7a197a62 | 7667 | return $ac_func (); |
ad6254c5 AK |
7668 | ; |
7669 | return 0; | |
7670 | } | |
7671 | _ACEOF | |
7672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7673 | if { (ac_try="$ac_link" |
7674 | case "(($ac_try" in | |
7675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7676 | *) ac_try_echo=$ac_try;; | |
7677 | esac | |
68f2de6d | 7678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7679 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7680 | ac_status=$? |
8a2fc586 AK |
7681 | grep -v '^ *+' conftest.er1 >conftest.err |
7682 | rm -f conftest.er1 | |
7683 | cat conftest.err >&5 | |
68f2de6d | 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7685 | (exit $ac_status); } && { |
7686 | test -z "$ac_c_werror_flag" || | |
7687 | test ! -s conftest.err | |
68f2de6d AK |
7688 | } && test -s conftest$ac_exeext && |
7689 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7690 | eval "$as_ac_var=yes" |
7691 | else | |
68f2de6d | 7692 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7693 | sed 's/^/| /' conftest.$ac_ext >&5 |
7694 | ||
7a197a62 | 7695 | eval "$as_ac_var=no" |
ad6254c5 | 7696 | fi |
7a197a62 | 7697 | |
25fbec5b | 7698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7699 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7700 | fi |
68f2de6d AK |
7701 | ac_res=`eval echo '${'$as_ac_var'}'` |
7702 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7703 | echo "${ECHO_T}$ac_res" >&6; } | |
7704 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7705 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7706 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7707 | _ACEOF |
7708 | ||
7709 | fi | |
7710 | done | |
7711 | ||
68f2de6d AK |
7712 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7713 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7714 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
68f2de6d | 7715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7716 | else |
7717 | if test "$cross_compiling" = yes; then | |
7718 | ac_cv_func_mmap_fixed_mapped=no | |
7719 | else | |
7720 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7721 | /* confdefs.h. */ |
7722 | _ACEOF | |
7723 | cat confdefs.h >>conftest.$ac_ext | |
7724 | cat >>conftest.$ac_ext <<_ACEOF | |
7725 | /* end confdefs.h. */ | |
7726 | $ac_includes_default | |
7727 | /* malloc might have been renamed as rpl_malloc. */ | |
7728 | #undef malloc | |
7729 | ||
7730 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7731 | Here is a matrix of mmap possibilities: | |
7732 | mmap private not fixed | |
7733 | mmap private fixed at somewhere currently unmapped | |
7734 | mmap private fixed at somewhere already mapped | |
7735 | mmap shared not fixed | |
7736 | mmap shared fixed at somewhere currently unmapped | |
7737 | mmap shared fixed at somewhere already mapped | |
7738 | For private mappings, we should verify that changes cannot be read() | |
7739 | back from the file, nor mmap's back from the file at a different | |
7740 | address. (There have been systems where private was not correctly | |
7741 | implemented like the infamous i386 svr4.0, and systems where the | |
7742 | VM page cache was not coherent with the file system buffer cache | |
7743 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7744 | For shared mappings, we should conversely verify that changes get | |
7745 | propagated back to all the places they're supposed to be. | |
7746 | ||
7747 | Grep wants private fixed already mapped. | |
7748 | The main things grep needs to know about mmap are: | |
7749 | * does it exist and is it safe to write into the mmap'd area | |
7750 | * how to use it (BSD variants) */ | |
7751 | ||
7752 | #include <fcntl.h> | |
7753 | #include <sys/mman.h> | |
7754 | ||
25fbec5b | 7755 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7756 | char *malloc (); |
7757 | #endif | |
7758 | ||
7759 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7760 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7761 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7762 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7763 | # define HAVE_SYS_PARAM_H 1 |
7764 | # endif | |
7765 | ||
7766 | # ifdef _SC_PAGESIZE | |
7767 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7768 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7769 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7770 | # include <sys/param.h> |
7771 | # ifdef EXEC_PAGESIZE | |
7772 | # define getpagesize() EXEC_PAGESIZE | |
7773 | # else /* no EXEC_PAGESIZE */ | |
7774 | # ifdef NBPG | |
7775 | # define getpagesize() NBPG * CLSIZE | |
7776 | # ifndef CLSIZE | |
7777 | # define CLSIZE 1 | |
7778 | # endif /* no CLSIZE */ | |
7779 | # else /* no NBPG */ | |
7780 | # ifdef NBPC | |
7781 | # define getpagesize() NBPC | |
7782 | # else /* no NBPC */ | |
7783 | # ifdef PAGESIZE | |
7784 | # define getpagesize() PAGESIZE | |
7785 | # endif /* PAGESIZE */ | |
7786 | # endif /* no NBPC */ | |
7787 | # endif /* no NBPG */ | |
7788 | # endif /* no EXEC_PAGESIZE */ | |
7789 | # else /* no HAVE_SYS_PARAM_H */ | |
7790 | # define getpagesize() 8192 /* punt totally */ | |
7791 | # endif /* no HAVE_SYS_PARAM_H */ | |
7792 | # endif /* no _SC_PAGESIZE */ | |
7793 | ||
7794 | #endif /* no HAVE_GETPAGESIZE */ | |
7795 | ||
7796 | int | |
7797 | main () | |
7798 | { | |
7799 | char *data, *data2, *data3; | |
7800 | int i, pagesize; | |
7801 | int fd; | |
7802 | ||
7803 | pagesize = getpagesize (); | |
7804 | ||
7805 | /* First, make a file with some known garbage in it. */ | |
7806 | data = (char *) malloc (pagesize); | |
7807 | if (!data) | |
7a197a62 | 7808 | return 1; |
ad6254c5 AK |
7809 | for (i = 0; i < pagesize; ++i) |
7810 | *(data + i) = rand (); | |
7811 | umask (0); | |
7812 | fd = creat ("conftest.mmap", 0600); | |
7813 | if (fd < 0) | |
7a197a62 | 7814 | return 1; |
ad6254c5 | 7815 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7816 | return 1; |
ad6254c5 AK |
7817 | close (fd); |
7818 | ||
7819 | /* Next, try to mmap the file at a fixed address which already has | |
7820 | something else allocated at it. If we can, also make sure that | |
7821 | we see the same garbage. */ | |
7822 | fd = open ("conftest.mmap", O_RDWR); | |
7823 | if (fd < 0) | |
7a197a62 | 7824 | return 1; |
ad6254c5 AK |
7825 | data2 = (char *) malloc (2 * pagesize); |
7826 | if (!data2) | |
7a197a62 AK |
7827 | return 1; |
7828 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7829 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7830 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7831 | return 1; |
ad6254c5 AK |
7832 | for (i = 0; i < pagesize; ++i) |
7833 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7834 | return 1; |
ad6254c5 AK |
7835 | |
7836 | /* Finally, make sure that changes to the mapped area do not | |
7837 | percolate back to the file as seen by read(). (This is a bug on | |
7838 | some variants of i386 svr4.0.) */ | |
7839 | for (i = 0; i < pagesize; ++i) | |
7840 | *(data2 + i) = *(data2 + i) + 1; | |
7841 | data3 = (char *) malloc (pagesize); | |
7842 | if (!data3) | |
7a197a62 | 7843 | return 1; |
ad6254c5 | 7844 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7845 | return 1; |
ad6254c5 AK |
7846 | for (i = 0; i < pagesize; ++i) |
7847 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7848 | return 1; |
ad6254c5 | 7849 | close (fd); |
7a197a62 | 7850 | return 0; |
ad6254c5 AK |
7851 | } |
7852 | _ACEOF | |
7853 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7854 | if { (ac_try="$ac_link" |
7855 | case "(($ac_try" in | |
7856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7857 | *) ac_try_echo=$ac_try;; | |
7858 | esac | |
68f2de6d | 7859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7860 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7861 | ac_status=$? |
68f2de6d | 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7864 | { (case "(($ac_try" in |
7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7866 | *) ac_try_echo=$ac_try;; | |
7867 | esac | |
68f2de6d | 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7869 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7870 | ac_status=$? |
68f2de6d | 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7872 | (exit $ac_status); }; }; then |
7873 | ac_cv_func_mmap_fixed_mapped=yes | |
7874 | else | |
68f2de6d AK |
7875 | echo "$as_me: program exited with status $ac_status" >&5 |
7876 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7877 | sed 's/^/| /' conftest.$ac_ext >&5 |
7878 | ||
7879 | ( exit $ac_status ) | |
7880 | ac_cv_func_mmap_fixed_mapped=no | |
7881 | fi | |
7a197a62 | 7882 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7883 | fi |
7a197a62 AK |
7884 | |
7885 | ||
ad6254c5 | 7886 | fi |
68f2de6d AK |
7887 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7888 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7889 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7890 | ||
7891 | cat >>confdefs.h <<\_ACEOF | |
7892 | #define HAVE_MMAP 1 | |
7893 | _ACEOF | |
7894 | ||
7895 | fi | |
7896 | rm -f conftest.mmap | |
7897 | ||
68f2de6d AK |
7898 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7899 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7900 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
68f2de6d | 7901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7902 | else |
7903 | if test "$cross_compiling" = yes; then | |
7904 | ac_cv_func_stat_empty_string_bug=yes | |
7905 | else | |
7906 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7907 | /* confdefs.h. */ |
7908 | _ACEOF | |
7909 | cat confdefs.h >>conftest.$ac_ext | |
7910 | cat >>conftest.$ac_ext <<_ACEOF | |
7911 | /* end confdefs.h. */ | |
7912 | $ac_includes_default | |
7913 | int | |
7914 | main () | |
7915 | { | |
7916 | struct stat sbuf; | |
7a197a62 | 7917 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7918 | ; |
7919 | return 0; | |
7920 | } | |
7921 | _ACEOF | |
7922 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7923 | if { (ac_try="$ac_link" |
7924 | case "(($ac_try" in | |
7925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7926 | *) ac_try_echo=$ac_try;; | |
7927 | esac | |
68f2de6d | 7928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7929 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7930 | ac_status=$? |
68f2de6d | 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7933 | { (case "(($ac_try" in |
7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7935 | *) ac_try_echo=$ac_try;; | |
7936 | esac | |
68f2de6d | 7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7938 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7939 | ac_status=$? |
68f2de6d | 7940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7941 | (exit $ac_status); }; }; then |
7a197a62 | 7942 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7943 | else |
68f2de6d AK |
7944 | echo "$as_me: program exited with status $ac_status" >&5 |
7945 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7946 | sed 's/^/| /' conftest.$ac_ext >&5 |
7947 | ||
7948 | ( exit $ac_status ) | |
7a197a62 | 7949 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7950 | fi |
7a197a62 | 7951 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7952 | fi |
7a197a62 AK |
7953 | |
7954 | ||
ad6254c5 | 7955 | fi |
68f2de6d AK |
7956 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7957 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7958 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7959 | case " $LIBOBJS " in |
8a2fc586 | 7960 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7961 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7962 | ;; | |
8a2fc586 AK |
7963 | esac |
7964 | ||
ad6254c5 AK |
7965 | |
7966 | cat >>confdefs.h <<_ACEOF | |
7967 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7968 | _ACEOF | |
7969 | ||
7970 | fi | |
7971 | ||
68f2de6d AK |
7972 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7973 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7974 | if test "${ac_cv_func_strtod+set}" = set; then |
68f2de6d | 7975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7976 | else |
7977 | if test "$cross_compiling" = yes; then | |
7978 | ac_cv_func_strtod=no | |
7979 | else | |
7980 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7981 | /* confdefs.h. */ |
7982 | _ACEOF | |
7983 | cat confdefs.h >>conftest.$ac_ext | |
7984 | cat >>conftest.$ac_ext <<_ACEOF | |
7985 | /* end confdefs.h. */ | |
7986 | ||
7a197a62 AK |
7987 | $ac_includes_default |
7988 | #ifndef strtod | |
ad6254c5 | 7989 | double strtod (); |
7a197a62 | 7990 | #endif |
ad6254c5 AK |
7991 | int |
7992 | main() | |
7993 | { | |
7994 | { | |
7995 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7996 | char *string = " +69"; | |
7997 | char *term; | |
7998 | double value; | |
7999 | value = strtod (string, &term); | |
8000 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8001 | return 1; |
ad6254c5 AK |
8002 | } |
8003 | ||
8004 | { | |
8005 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8006 | terminating character under some conditions. */ | |
8007 | char *string = "NaN"; | |
8008 | char *term; | |
8009 | strtod (string, &term); | |
8010 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8011 | return 1; |
ad6254c5 | 8012 | } |
7a197a62 | 8013 | return 0; |
ad6254c5 AK |
8014 | } |
8015 | ||
8016 | _ACEOF | |
8017 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8018 | if { (ac_try="$ac_link" |
8019 | case "(($ac_try" in | |
8020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8021 | *) ac_try_echo=$ac_try;; | |
8022 | esac | |
68f2de6d | 8023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8024 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8025 | ac_status=$? |
68f2de6d | 8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8028 | { (case "(($ac_try" in |
8029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8030 | *) ac_try_echo=$ac_try;; | |
8031 | esac | |
68f2de6d | 8032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8033 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8034 | ac_status=$? |
68f2de6d | 8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8036 | (exit $ac_status); }; }; then |
8037 | ac_cv_func_strtod=yes | |
8038 | else | |
68f2de6d AK |
8039 | echo "$as_me: program exited with status $ac_status" >&5 |
8040 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8041 | sed 's/^/| /' conftest.$ac_ext >&5 |
8042 | ||
8043 | ( exit $ac_status ) | |
8044 | ac_cv_func_strtod=no | |
8045 | fi | |
7a197a62 | 8046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8047 | fi |
7a197a62 AK |
8048 | |
8049 | ||
ad6254c5 | 8050 | fi |
68f2de6d AK |
8051 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8052 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8053 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8054 | case " $LIBOBJS " in |
8a2fc586 | 8055 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8056 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8057 | ;; | |
8a2fc586 AK |
8058 | esac |
8059 | ||
68f2de6d AK |
8060 | { echo "$as_me:$LINENO: checking for pow" >&5 |
8061 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 8062 | if test "${ac_cv_func_pow+set}" = set; then |
68f2de6d | 8063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8064 | else |
8065 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8066 | /* confdefs.h. */ |
8067 | _ACEOF | |
8068 | cat confdefs.h >>conftest.$ac_ext | |
8069 | cat >>conftest.$ac_ext <<_ACEOF | |
8070 | /* end confdefs.h. */ | |
8a2fc586 AK |
8071 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8073 | #define pow innocuous_pow | |
8074 | ||
ad6254c5 AK |
8075 | /* System header to define __stub macros and hopefully few prototypes, |
8076 | which can conflict with char pow (); below. | |
8077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8078 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8079 | |
ad6254c5 AK |
8080 | #ifdef __STDC__ |
8081 | # include <limits.h> | |
8082 | #else | |
8083 | # include <assert.h> | |
8084 | #endif | |
8a2fc586 AK |
8085 | |
8086 | #undef pow | |
8087 | ||
7a197a62 AK |
8088 | /* Override any GCC internal prototype to avoid an error. |
8089 | Use char because int might match the return type of a GCC | |
8090 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8091 | #ifdef __cplusplus |
8092 | extern "C" | |
ad6254c5 | 8093 | #endif |
ad6254c5 AK |
8094 | char pow (); |
8095 | /* The GNU C library defines this for functions which it implements | |
8096 | to always fail with ENOSYS. Some functions are actually named | |
8097 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8098 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8099 | choke me |
ad6254c5 AK |
8100 | #endif |
8101 | ||
8102 | int | |
8103 | main () | |
8104 | { | |
7a197a62 | 8105 | return pow (); |
ad6254c5 AK |
8106 | ; |
8107 | return 0; | |
8108 | } | |
8109 | _ACEOF | |
8110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8111 | if { (ac_try="$ac_link" |
8112 | case "(($ac_try" in | |
8113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8114 | *) ac_try_echo=$ac_try;; | |
8115 | esac | |
68f2de6d | 8116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8117 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8118 | ac_status=$? |
8a2fc586 AK |
8119 | grep -v '^ *+' conftest.er1 >conftest.err |
8120 | rm -f conftest.er1 | |
8121 | cat conftest.err >&5 | |
68f2de6d | 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8123 | (exit $ac_status); } && { |
8124 | test -z "$ac_c_werror_flag" || | |
8125 | test ! -s conftest.err | |
68f2de6d AK |
8126 | } && test -s conftest$ac_exeext && |
8127 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8128 | ac_cv_func_pow=yes |
8129 | else | |
68f2de6d | 8130 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
8132 | ||
7a197a62 | 8133 | ac_cv_func_pow=no |
ad6254c5 | 8134 | fi |
7a197a62 | 8135 | |
25fbec5b | 8136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8137 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8138 | fi |
68f2de6d AK |
8139 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8140 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8141 | |
8142 | if test $ac_cv_func_pow = no; then | |
68f2de6d AK |
8143 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8144 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8145 | if test "${ac_cv_lib_m_pow+set}" = set; then |
68f2de6d | 8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8147 | else |
8148 | ac_check_lib_save_LIBS=$LIBS | |
8149 | LIBS="-lm $LIBS" | |
8150 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8151 | /* confdefs.h. */ |
8152 | _ACEOF | |
8153 | cat confdefs.h >>conftest.$ac_ext | |
8154 | cat >>conftest.$ac_ext <<_ACEOF | |
8155 | /* end confdefs.h. */ | |
8156 | ||
7a197a62 AK |
8157 | /* Override any GCC internal prototype to avoid an error. |
8158 | Use char because int might match the return type of a GCC | |
8159 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8160 | #ifdef __cplusplus |
8161 | extern "C" | |
8162 | #endif | |
ad6254c5 AK |
8163 | char pow (); |
8164 | int | |
8165 | main () | |
8166 | { | |
7a197a62 | 8167 | return pow (); |
ad6254c5 AK |
8168 | ; |
8169 | return 0; | |
8170 | } | |
8171 | _ACEOF | |
8172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8173 | if { (ac_try="$ac_link" |
8174 | case "(($ac_try" in | |
8175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8176 | *) ac_try_echo=$ac_try;; | |
8177 | esac | |
68f2de6d | 8178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8179 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8180 | ac_status=$? |
8a2fc586 AK |
8181 | grep -v '^ *+' conftest.er1 >conftest.err |
8182 | rm -f conftest.er1 | |
8183 | cat conftest.err >&5 | |
68f2de6d | 8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8185 | (exit $ac_status); } && { |
8186 | test -z "$ac_c_werror_flag" || | |
8187 | test ! -s conftest.err | |
68f2de6d AK |
8188 | } && test -s conftest$ac_exeext && |
8189 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8190 | ac_cv_lib_m_pow=yes |
8191 | else | |
68f2de6d | 8192 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8193 | sed 's/^/| /' conftest.$ac_ext >&5 |
8194 | ||
7a197a62 | 8195 | ac_cv_lib_m_pow=no |
ad6254c5 | 8196 | fi |
7a197a62 | 8197 | |
25fbec5b | 8198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8199 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8200 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8201 | fi |
68f2de6d AK |
8202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8203 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8204 | if test $ac_cv_lib_m_pow = yes; then |
8205 | POW_LIB=-lm | |
8206 | else | |
68f2de6d AK |
8207 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8208 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8209 | fi |
72b2cb61 | 8210 | |
d0191583 | 8211 | fi |
72b2cb61 | 8212 | |
ad6254c5 AK |
8213 | fi |
8214 | ||
ad6254c5 | 8215 | |
d0191583 JM |
8216 | for ac_func in vprintf |
8217 | do | |
68f2de6d AK |
8218 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8219 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8220 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8221 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8223 | else |
d0191583 JM |
8224 | cat >conftest.$ac_ext <<_ACEOF |
8225 | /* confdefs.h. */ | |
8226 | _ACEOF | |
8227 | cat confdefs.h >>conftest.$ac_ext | |
8228 | cat >>conftest.$ac_ext <<_ACEOF | |
8229 | /* end confdefs.h. */ | |
8230 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8231 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8232 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8233 | |
d0191583 JM |
8234 | /* System header to define __stub macros and hopefully few prototypes, |
8235 | which can conflict with char $ac_func (); below. | |
8236 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8237 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8238 | |
d0191583 JM |
8239 | #ifdef __STDC__ |
8240 | # include <limits.h> | |
8241 | #else | |
8242 | # include <assert.h> | |
8243 | #endif | |
ad6254c5 | 8244 | |
d0191583 | 8245 | #undef $ac_func |
72b2cb61 | 8246 | |
d0191583 JM |
8247 | /* Override any GCC internal prototype to avoid an error. |
8248 | Use char because int might match the return type of a GCC | |
8249 | builtin and then its argument prototype would still apply. */ | |
8250 | #ifdef __cplusplus | |
8251 | extern "C" | |
8252 | #endif | |
8253 | char $ac_func (); | |
8254 | /* The GNU C library defines this for functions which it implements | |
8255 | to always fail with ENOSYS. Some functions are actually named | |
8256 | something starting with __ and the normal name is an alias. */ | |
8257 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8258 | choke me | |
8259 | #endif | |
8260 | ||
8261 | int | |
8262 | main () | |
8263 | { | |
8264 | return $ac_func (); | |
8265 | ; | |
8266 | return 0; | |
8267 | } | |
72b2cb61 | 8268 | _ACEOF |
d0191583 JM |
8269 | rm -f conftest.$ac_objext conftest$ac_exeext |
8270 | if { (ac_try="$ac_link" | |
8271 | case "(($ac_try" in | |
8272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8273 | *) ac_try_echo=$ac_try;; | |
8274 | esac | |
68f2de6d | 8275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8276 | (eval "$ac_link") 2>conftest.er1 |
8277 | ac_status=$? | |
8278 | grep -v '^ *+' conftest.er1 >conftest.err | |
8279 | rm -f conftest.er1 | |
8280 | cat conftest.err >&5 | |
68f2de6d | 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8282 | (exit $ac_status); } && { |
8283 | test -z "$ac_c_werror_flag" || | |
8284 | test ! -s conftest.err | |
68f2de6d AK |
8285 | } && test -s conftest$ac_exeext && |
8286 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8287 | eval "$as_ac_var=yes" |
8288 | else | |
68f2de6d | 8289 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8290 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8291 | |
d0191583 | 8292 | eval "$as_ac_var=no" |
ad6254c5 AK |
8293 | fi |
8294 | ||
d0191583 JM |
8295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8296 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8297 | fi |
68f2de6d AK |
8298 | ac_res=`eval echo '${'$as_ac_var'}'` |
8299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8300 | echo "${ECHO_T}$ac_res" >&6; } | |
8301 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8302 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 8303 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8304 | _ACEOF |
7a197a62 | 8305 | |
68f2de6d AK |
8306 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8307 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8308 | if test "${ac_cv_func__doprnt+set}" = set; then |
68f2de6d | 8309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8310 | else |
d0191583 JM |
8311 | cat >conftest.$ac_ext <<_ACEOF |
8312 | /* confdefs.h. */ | |
8313 | _ACEOF | |
8314 | cat confdefs.h >>conftest.$ac_ext | |
8315 | cat >>conftest.$ac_ext <<_ACEOF | |
8316 | /* end confdefs.h. */ | |
8317 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8319 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8320 | |
d0191583 JM |
8321 | /* System header to define __stub macros and hopefully few prototypes, |
8322 | which can conflict with char _doprnt (); below. | |
8323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8324 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8325 | |
d0191583 JM |
8326 | #ifdef __STDC__ |
8327 | # include <limits.h> | |
8328 | #else | |
8329 | # include <assert.h> | |
8330 | #endif | |
72b2cb61 | 8331 | |
d0191583 JM |
8332 | #undef _doprnt |
8333 | ||
8334 | /* Override any GCC internal prototype to avoid an error. | |
8335 | Use char because int might match the return type of a GCC | |
8336 | builtin and then its argument prototype would still apply. */ | |
8337 | #ifdef __cplusplus | |
8338 | extern "C" | |
8339 | #endif | |
8340 | char _doprnt (); | |
8341 | /* The GNU C library defines this for functions which it implements | |
8342 | to always fail with ENOSYS. Some functions are actually named | |
8343 | something starting with __ and the normal name is an alias. */ | |
8344 | #if defined __stub__doprnt || defined __stub____doprnt | |
8345 | choke me | |
8346 | #endif | |
8347 | ||
8348 | int | |
8349 | main () | |
8350 | { | |
8351 | return _doprnt (); | |
8352 | ; | |
8353 | return 0; | |
8354 | } | |
72b2cb61 | 8355 | _ACEOF |
d0191583 JM |
8356 | rm -f conftest.$ac_objext conftest$ac_exeext |
8357 | if { (ac_try="$ac_link" | |
8358 | case "(($ac_try" in | |
8359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8360 | *) ac_try_echo=$ac_try;; | |
8361 | esac | |
68f2de6d | 8362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8363 | (eval "$ac_link") 2>conftest.er1 |
8364 | ac_status=$? | |
8365 | grep -v '^ *+' conftest.er1 >conftest.err | |
8366 | rm -f conftest.er1 | |
8367 | cat conftest.err >&5 | |
68f2de6d | 8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8369 | (exit $ac_status); } && { |
8370 | test -z "$ac_c_werror_flag" || | |
8371 | test ! -s conftest.err | |
68f2de6d AK |
8372 | } && test -s conftest$ac_exeext && |
8373 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8374 | ac_cv_func__doprnt=yes |
8375 | else | |
68f2de6d | 8376 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8377 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8378 | |
d0191583 | 8379 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8380 | fi |
8381 | ||
d0191583 JM |
8382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8383 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8384 | fi |
68f2de6d AK |
8385 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8386 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8387 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8388 | |
d0191583 JM |
8389 | cat >>confdefs.h <<\_ACEOF |
8390 | #define HAVE_DOPRNT 1 | |
8391 | _ACEOF | |
ad6254c5 | 8392 | |
7a197a62 AK |
8393 | fi |
8394 | ||
d0191583 JM |
8395 | fi |
8396 | done | |
8b1a3214 | 8397 | |
ad6254c5 | 8398 | |
7a197a62 | 8399 | |
d0191583 | 8400 | ################################################################################ |
ad6254c5 | 8401 | |
ad6254c5 AK |
8402 | |
8403 | ################################################################################ | |
68f2de6d AK |
8404 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8405 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8406 | OWNER="root" |
8407 | ||
8408 | ||
8409 | # Check whether --with-user was given. | |
8410 | if test "${with_user+set}" = set; then | |
8411 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8412 | fi |
8413 | ||
68f2de6d AK |
8414 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8415 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8416 | |
d0191583 JM |
8417 | if test x$OWNER != x; then |
8418 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8419 | fi |
8420 | ||
8421 | ################################################################################ | |
68f2de6d AK |
8422 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8423 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8424 | GROUP="root" |
ad6254c5 | 8425 | |
d0191583 JM |
8426 | # Check whether --with-group was given. |
8427 | if test "${with_group+set}" = set; then | |
8428 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8429 | fi |
8430 | ||
68f2de6d AK |
8431 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8432 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8433 | |
8434 | if test x$GROUP != x; then | |
8435 | GROUP="-g $GROUP" | |
8436 | fi | |
ad6254c5 | 8437 | |
24bbc4d7 AK |
8438 | ################################################################################ |
8439 | { echo "$as_me:$LINENO: checking device node uid" >&5 | |
8440 | echo $ECHO_N "checking device node uid... $ECHO_C" >&6; } | |
8441 | ||
8442 | ||
8443 | # Check whether --with-device-uid was given. | |
8444 | if test "${with_device_uid+set}" = set; then | |
8445 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8446 | else | |
8447 | DM_DEVICE_UID="0" | |
8448 | fi | |
8449 | ||
8450 | { echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 | |
8451 | echo "${ECHO_T}$DM_DEVICE_UID" >&6; } | |
8452 | ||
8453 | ################################################################################ | |
8454 | { echo "$as_me:$LINENO: checking device node gid" >&5 | |
8455 | echo $ECHO_N "checking device node gid... $ECHO_C" >&6; } | |
8456 | ||
8457 | ||
8458 | # Check whether --with-device-gid was given. | |
8459 | if test "${with_device_gid+set}" = set; then | |
8460 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8461 | else | |
8462 | DM_DEVICE_GID="0" | |
8463 | fi | |
8464 | ||
8465 | { echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 | |
8466 | echo "${ECHO_T}$DM_DEVICE_GID" >&6; } | |
8467 | ||
93bd259b AK |
8468 | ################################################################################ |
8469 | { echo "$as_me:$LINENO: checking device node mode" >&5 | |
8470 | echo $ECHO_N "checking device node mode... $ECHO_C" >&6; } | |
8471 | ||
8472 | ||
8473 | # Check whether --with-device-mode was given. | |
8474 | if test "${with_device_mode+set}" = set; then | |
8475 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8476 | else | |
8477 | DM_DEVICE_MODE="0600" | |
8478 | fi | |
8479 | ||
8480 | { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 | |
8481 | echo "${ECHO_T}$DM_DEVICE_MODE" >&6; } | |
8482 | ||
ad6254c5 | 8483 | ################################################################################ |
68f2de6d AK |
8484 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8485 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8486 | # Check whether --enable-lvm1_fallback was given. |
8487 | if test "${enable_lvm1_fallback+set}" = set; then | |
8488 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8489 | else | |
8490 | LVM1_FALLBACK=no | |
7a197a62 AK |
8491 | fi |
8492 | ||
68f2de6d AK |
8493 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8494 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8495 | |
d0191583 | 8496 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8497 | |
8498 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8499 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8500 | _ACEOF |
8501 | ||
ad6254c5 AK |
8502 | fi |
8503 | ||
8504 | ################################################################################ | |
68f2de6d AK |
8505 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8506 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8507 | |
8508 | # Check whether --with-lvm1 was given. | |
8509 | if test "${with_lvm1+set}" = set; then | |
8510 | withval=$with_lvm1; LVM1="$withval" | |
8511 | else | |
8512 | LVM1="internal" | |
7a197a62 AK |
8513 | fi |
8514 | ||
68f2de6d AK |
8515 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8516 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8517 | |
d0191583 | 8518 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
68f2de6d | 8519 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8520 | " >&5 |
68f2de6d | 8521 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8522 | " >&2;} |
8523 | { (exit 1); exit 1; }; } | |
8524 | fi; | |
8525 | ||
8526 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8527 | |
8528 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8529 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8530 | _ACEOF |
8531 | ||
ad6254c5 AK |
8532 | fi |
8533 | ||
8534 | ################################################################################ | |
68f2de6d AK |
8535 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8536 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8537 | |
8538 | # Check whether --with-pool was given. | |
8539 | if test "${with_pool+set}" = set; then | |
8540 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8541 | else |
d0191583 | 8542 | POOL="internal" |
7a197a62 AK |
8543 | fi |
8544 | ||
68f2de6d AK |
8545 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8546 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8547 | |
d0191583 | 8548 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
68f2de6d | 8549 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8550 | " >&5 |
68f2de6d | 8551 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8552 | " >&2;} |
8553 | { (exit 1); exit 1; }; } | |
8554 | fi; | |
7a197a62 | 8555 | |
d0191583 JM |
8556 | if test x$POOL = xinternal; then |
8557 | ||
8558 | cat >>confdefs.h <<\_ACEOF | |
8559 | #define POOL_INTERNAL 1 | |
8560 | _ACEOF | |
8561 | ||
8562 | fi | |
ad6254c5 | 8563 | |
06f62ad1 | 8564 | ################################################################################ |
68f2de6d AK |
8565 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8566 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8567 | |
8568 | # Check whether --with-cluster was given. | |
8569 | if test "${with_cluster+set}" = set; then | |
8570 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8571 | fi |
8572 | ||
68f2de6d AK |
8573 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8574 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8575 | |
d0191583 | 8576 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
68f2de6d | 8577 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8578 | " >&5 |
68f2de6d | 8579 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8580 | " >&2;} |
8581 | { (exit 1); exit 1; }; } | |
d0191583 | 8582 | fi; |
06f62ad1 | 8583 | |
d0191583 | 8584 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8585 | |
8586 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8587 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8588 | _ACEOF |
8589 | ||
15d91f5a | 8590 | fi |
ad6254c5 AK |
8591 | |
8592 | ################################################################################ | |
68f2de6d AK |
8593 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8594 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8595 | |
d0191583 JM |
8596 | # Check whether --with-snapshots was given. |
8597 | if test "${with_snapshots+set}" = set; then | |
8598 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8599 | else | |
8600 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8601 | fi |
8602 | ||
68f2de6d AK |
8603 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8604 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8605 | |
d0191583 | 8606 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
68f2de6d | 8607 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8608 | " >&5 |
68f2de6d | 8609 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8610 | " >&2;} |
8611 | { (exit 1); exit 1; }; } | |
8612 | fi; | |
8613 | ||
8614 | if test x$SNAPSHOTS = xinternal; then | |
8615 | ||
8616 | cat >>confdefs.h <<\_ACEOF | |
8617 | #define SNAPSHOT_INTERNAL 1 | |
8618 | _ACEOF | |
ad6254c5 | 8619 | |
ad6254c5 | 8620 | fi |
7a197a62 | 8621 | |
d0191583 | 8622 | ################################################################################ |
68f2de6d AK |
8623 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8624 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8625 | |
8626 | # Check whether --with-mirrors was given. | |
8627 | if test "${with_mirrors+set}" = set; then | |
8628 | withval=$with_mirrors; MIRRORS="$withval" | |
8629 | else | |
8630 | MIRRORS="internal" | |
ad6254c5 | 8631 | fi |
ad6254c5 | 8632 | |
68f2de6d AK |
8633 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8634 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8635 | |
d0191583 | 8636 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
68f2de6d | 8637 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8638 | " >&5 |
68f2de6d | 8639 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8640 | " >&2;} |
8641 | { (exit 1); exit 1; }; } | |
8642 | fi; | |
ad6254c5 | 8643 | |
d0191583 | 8644 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8645 | |
d0191583 JM |
8646 | cat >>confdefs.h <<\_ACEOF |
8647 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8648 | _ACEOF |
8a2fc586 | 8649 | |
d0191583 | 8650 | fi |
8a2fc586 | 8651 | |
d0191583 | 8652 | ################################################################################ |
68f2de6d AK |
8653 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8654 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8655 | # Check whether --enable-readline was given. |
8656 | if test "${enable_readline+set}" = set; then | |
8657 | enableval=$enable_readline; READLINE=$enableval | |
8658 | else | |
06e459df | 8659 | READLINE=maybe |
d0191583 | 8660 | fi |
8a2fc586 | 8661 | |
68f2de6d AK |
8662 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8663 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8664 | |
d0191583 | 8665 | ################################################################################ |
68f2de6d AK |
8666 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8667 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8668 | # Check whether --enable-realtime was given. |
8669 | if test "${enable_realtime+set}" = set; then | |
8670 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8671 | fi |
ad6254c5 | 8672 | |
68f2de6d AK |
8673 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8674 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8675 | |
8676 | ################################################################################ | |
68f2de6d AK |
8677 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8678 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8679 | |
8680 | # Check whether --with-clvmd was given. | |
8681 | if test "${with_clvmd+set}" = set; then | |
8682 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8683 | else |
d0191583 JM |
8684 | CLVMD="none" |
8685 | fi | |
8a2fc586 | 8686 | |
d0191583 JM |
8687 | if test x$CLVMD = xyes; then |
8688 | CLVMD=all | |
8689 | fi | |
68f2de6d AK |
8690 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8691 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8692 | |
d0191583 JM |
8693 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8694 | CLUSTER=internal | |
8695 | fi | |
8a2fc586 | 8696 | |
d0191583 | 8697 | ################################################################################ |
68f2de6d AK |
8698 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8699 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8700 | # Check whether --enable-debug was given. |
8701 | if test "${enable_debug+set}" = set; then | |
8702 | enableval=$enable_debug; DEBUG=$enableval | |
8703 | else | |
8704 | DEBUG=no | |
8705 | fi | |
8a2fc586 | 8706 | |
68f2de6d AK |
8707 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8708 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8709 | |
d0191583 JM |
8710 | if test x$DEBUG = xyes; then |
8711 | COPTIMISE_FLAG= | |
fc54be10 | 8712 | else |
d0191583 JM |
8713 | CSCOPE_CMD= |
8714 | fi | |
fc54be10 | 8715 | |
d0191583 | 8716 | ################################################################################ |
68f2de6d AK |
8717 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8718 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8719 | |
8720 | # Check whether --with-optimisation was given. | |
8721 | if test "${with_optimisation+set}" = set; then | |
8722 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8723 | fi | |
8724 | ||
68f2de6d AK |
8725 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8726 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8727 | |
8728 | ################################################################################ | |
68f2de6d AK |
8729 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8730 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8731 | # Check whether --enable-profiling was given. |
8732 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8733 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8734 | else |
5556819a | 8735 | PROFILING=no |
fddafd51 ZK |
8736 | fi |
8737 | ||
68f2de6d AK |
8738 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8739 | echo "${ECHO_T}$PROFILING" >&6; } | |
5556819a AK |
8740 | |
8741 | if test "x$PROFILING" = xyes; then | |
8742 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8743 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8744 | set dummy lcov; ac_word=$2 |
68f2de6d AK |
8745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8747 | if test "${ac_cv_path_LCOV+set}" = set; then |
68f2de6d | 8748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8749 | else |
8750 | case $LCOV in | |
8751 | [\\/]* | ?:[\\/]*) | |
8752 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8753 | ;; | |
8754 | *) | |
8755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8756 | for as_dir in $PATH | |
8757 | do | |
8758 | IFS=$as_save_IFS | |
8759 | test -z "$as_dir" && as_dir=. | |
8760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8762 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8764 | break 2 |
8765 | fi | |
8766 | done | |
8767 | done | |
8768 | IFS=$as_save_IFS | |
8769 | ||
b145d876 | 8770 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
8771 | ;; |
8772 | esac | |
8773 | fi | |
8774 | LCOV=$ac_cv_path_LCOV | |
8775 | if test -n "$LCOV"; then | |
68f2de6d AK |
8776 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8777 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8778 | else |
68f2de6d AK |
8779 | { echo "$as_me:$LINENO: result: no" >&5 |
8780 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8781 | fi |
8782 | ||
8783 | ||
5556819a | 8784 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8785 | set dummy genhtml; ac_word=$2 |
68f2de6d AK |
8786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8788 | if test "${ac_cv_path_GENHTML+set}" = set; then |
68f2de6d | 8789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8790 | else |
8791 | case $GENHTML in | |
8792 | [\\/]* | ?:[\\/]*) | |
8793 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8794 | ;; | |
8795 | *) | |
8796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8797 | for as_dir in $PATH | |
8798 | do | |
8799 | IFS=$as_save_IFS | |
8800 | test -z "$as_dir" && as_dir=. | |
8801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8803 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8805 | break 2 |
8806 | fi | |
8807 | done | |
8808 | done | |
8809 | IFS=$as_save_IFS | |
8810 | ||
b145d876 | 8811 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
8812 | ;; |
8813 | esac | |
8814 | fi | |
8815 | GENHTML=$ac_cv_path_GENHTML | |
8816 | if test -n "$GENHTML"; then | |
68f2de6d AK |
8817 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8818 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8819 | else |
68f2de6d AK |
8820 | { echo "$as_me:$LINENO: result: no" >&5 |
8821 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8822 | fi |
8823 | ||
8824 | ||
b145d876 | 8825 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
68f2de6d AK |
8826 | { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
8827 | echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
8828 | { (exit 1); exit 1; }; } |
8829 | fi | |
5556819a | 8830 | fi |
d0191583 JM |
8831 | |
8832 | ################################################################################ | |
68f2de6d AK |
8833 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8834 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8835 | # Check whether --enable-devmapper was given. |
8836 | if test "${enable_devmapper+set}" = set; then | |
8837 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8838 | fi |
8839 | ||
68f2de6d AK |
8840 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8841 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8842 | |
8843 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8844 | |
8845 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8846 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8847 | _ACEOF |
8848 | ||
8849 | fi | |
8850 | ||
93bd259b AK |
8851 | ################################################################################ |
8852 | # Check whether --enable-compat was given. | |
8853 | if test "${enable_compat+set}" = set; then | |
8854 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8855 | else | |
8856 | DM_COMPAT=no | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | ################################################################################ | |
8861 | # Check whether --enable-ioctl was given. | |
8862 | if test "${enable_ioctl+set}" = set; then | |
8863 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
8864 | fi | |
8865 | ||
8866 | ||
d0191583 | 8867 | ################################################################################ |
68f2de6d AK |
8868 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8869 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8870 | # Check whether --enable-o_direct was given. |
8871 | if test "${enable_o_direct+set}" = set; then | |
8872 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8873 | fi |
ad6254c5 | 8874 | |
68f2de6d AK |
8875 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8876 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8877 | |
d0191583 | 8878 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8879 | |
d0191583 JM |
8880 | cat >>confdefs.h <<\_ACEOF |
8881 | #define O_DIRECT_SUPPORT 1 | |
8882 | _ACEOF | |
ad6254c5 | 8883 | |
d0191583 | 8884 | fi |
ad6254c5 | 8885 | |
d0191583 | 8886 | ################################################################################ |
68f2de6d AK |
8887 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8888 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8889 | # Check whether --enable-cmdlib was given. |
8890 | if test "${enable_cmdlib+set}" = set; then | |
8891 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8892 | else |
d0191583 JM |
8893 | CMDLIB=no |
8894 | fi | |
8a2fc586 | 8895 | |
68f2de6d AK |
8896 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8897 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8898 | |
2a9a80c9 | 8899 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8900 | && LVM2CMD_LIB=-llvm2cmd \ |
8901 | || LVM2CMD_LIB= | |
8902 | ||
93bd259b AK |
8903 | ################################################################################ |
8904 | # Check whether --enable-pkgconfig was given. | |
8905 | if test "${enable_pkgconfig+set}" = set; then | |
8906 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
8907 | else | |
8908 | PKGCONFIG=no | |
8909 | fi | |
8910 | ||
2a9a80c9 | 8911 | |
d0191583 | 8912 | ################################################################################ |
68f2de6d AK |
8913 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8914 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8915 | # Check whether --enable-fsadm was given. |
8916 | if test "${enable_fsadm+set}" = set; then | |
8917 | enableval=$enable_fsadm; FSADM=$enableval | |
8918 | fi | |
8a2fc586 | 8919 | |
68f2de6d AK |
8920 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8921 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8922 | |
d0191583 | 8923 | ################################################################################ |
68f2de6d AK |
8924 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8925 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8926 | # Check whether --enable-dmeventd was given. |
8927 | if test "${enable_dmeventd+set}" = set; then | |
8928 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8929 | fi | |
ad6254c5 | 8930 | |
68f2de6d AK |
8931 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8932 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8933 | |
93bd259b AK |
8934 | BUILD_DMEVENTD=$DMEVENTD |
8935 | ||
2a9a80c9 PR |
8936 | if test x$DMEVENTD = xyes; then |
8937 | if test x$MIRRORS != xinternal; then | |
68f2de6d | 8938 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8939 | " >&5 |
68f2de6d | 8940 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8941 | " >&2;} |
d0191583 | 8942 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8943 | fi |
8944 | if test x$CMDLIB = xno; then | |
68f2de6d | 8945 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 8946 | " >&5 |
68f2de6d | 8947 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
8948 | " >&2;} |
8949 | { (exit 1); exit 1; }; } | |
8950 | fi | |
ad6254c5 | 8951 | fi |
7a197a62 | 8952 | |
d0191583 JM |
8953 | if test x$DMEVENTD = xyes; then |
8954 | ||
8955 | cat >>confdefs.h <<\_ACEOF | |
8956 | #define DMEVENTD 1 | |
ad6254c5 AK |
8957 | _ACEOF |
8958 | ||
ad6254c5 | 8959 | fi |
93bd259b AK |
8960 | |
8961 | ################################################################################ | |
8962 | ||
8963 | { echo "$as_me:$LINENO: checking for getline in -lc" >&5 | |
8964 | echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; } | |
8965 | if test "${ac_cv_lib_c_getline+set}" = set; then | |
8966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8967 | else | |
8968 | ac_check_lib_save_LIBS=$LIBS | |
8969 | LIBS="-lc $LIBS" | |
8970 | cat >conftest.$ac_ext <<_ACEOF | |
8971 | /* confdefs.h. */ | |
8972 | _ACEOF | |
8973 | cat confdefs.h >>conftest.$ac_ext | |
8974 | cat >>conftest.$ac_ext <<_ACEOF | |
8975 | /* end confdefs.h. */ | |
8976 | ||
8977 | /* Override any GCC internal prototype to avoid an error. | |
8978 | Use char because int might match the return type of a GCC | |
8979 | builtin and then its argument prototype would still apply. */ | |
8980 | #ifdef __cplusplus | |
8981 | extern "C" | |
8982 | #endif | |
8983 | char getline (); | |
8984 | int | |
8985 | main () | |
8986 | { | |
8987 | return getline (); | |
8988 | ; | |
8989 | return 0; | |
8990 | } | |
8991 | _ACEOF | |
8992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8993 | if { (ac_try="$ac_link" | |
8994 | case "(($ac_try" in | |
8995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8996 | *) ac_try_echo=$ac_try;; | |
8997 | esac | |
8998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8999 | (eval "$ac_link") 2>conftest.er1 | |
9000 | ac_status=$? | |
9001 | grep -v '^ *+' conftest.er1 >conftest.err | |
9002 | rm -f conftest.er1 | |
9003 | cat conftest.err >&5 | |
9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9005 | (exit $ac_status); } && { | |
9006 | test -z "$ac_c_werror_flag" || | |
9007 | test ! -s conftest.err | |
9008 | } && test -s conftest$ac_exeext && | |
9009 | $as_test_x conftest$ac_exeext; then | |
9010 | ac_cv_lib_c_getline=yes | |
9011 | else | |
9012 | echo "$as_me: failed program was:" >&5 | |
9013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9014 | ||
9015 | ac_cv_lib_c_getline=no | |
9016 | fi | |
9017 | ||
9018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9019 | conftest$ac_exeext conftest.$ac_ext | |
9020 | LIBS=$ac_check_lib_save_LIBS | |
9021 | fi | |
9022 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 | |
9023 | echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; } | |
9024 | if test $ac_cv_lib_c_getline = yes; then | |
9025 | ||
9026 | cat >>confdefs.h <<\_ACEOF | |
9027 | #define HAVE_GETLINE 1 | |
9028 | _ACEOF | |
9029 | ||
9030 | fi | |
9031 | ||
9032 | ||
9033 | ################################################################################ | |
9034 | ||
9035 | { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 | |
9036 | echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; } | |
9037 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then | |
9038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9039 | else | |
9040 | ac_check_lib_save_LIBS=$LIBS | |
9041 | LIBS="-lc $LIBS" | |
9042 | cat >conftest.$ac_ext <<_ACEOF | |
9043 | /* confdefs.h. */ | |
9044 | _ACEOF | |
9045 | cat confdefs.h >>conftest.$ac_ext | |
9046 | cat >>conftest.$ac_ext <<_ACEOF | |
9047 | /* end confdefs.h. */ | |
9048 | ||
9049 | /* Override any GCC internal prototype to avoid an error. | |
9050 | Use char because int might match the return type of a GCC | |
9051 | builtin and then its argument prototype would still apply. */ | |
9052 | #ifdef __cplusplus | |
9053 | extern "C" | |
9054 | #endif | |
9055 | char canonicalize_file_name (); | |
9056 | int | |
9057 | main () | |
9058 | { | |
9059 | return canonicalize_file_name (); | |
9060 | ; | |
9061 | return 0; | |
9062 | } | |
9063 | _ACEOF | |
9064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9065 | if { (ac_try="$ac_link" | |
9066 | case "(($ac_try" in | |
9067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9068 | *) ac_try_echo=$ac_try;; | |
9069 | esac | |
9070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9071 | (eval "$ac_link") 2>conftest.er1 | |
9072 | ac_status=$? | |
9073 | grep -v '^ *+' conftest.er1 >conftest.err | |
9074 | rm -f conftest.er1 | |
9075 | cat conftest.err >&5 | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); } && { | |
9078 | test -z "$ac_c_werror_flag" || | |
9079 | test ! -s conftest.err | |
9080 | } && test -s conftest$ac_exeext && | |
9081 | $as_test_x conftest$ac_exeext; then | |
9082 | ac_cv_lib_c_canonicalize_file_name=yes | |
9083 | else | |
9084 | echo "$as_me: failed program was:" >&5 | |
9085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9086 | ||
9087 | ac_cv_lib_c_canonicalize_file_name=no | |
9088 | fi | |
9089 | ||
9090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9091 | conftest$ac_exeext conftest.$ac_ext | |
9092 | LIBS=$ac_check_lib_save_LIBS | |
9093 | fi | |
9094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9095 | echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9096 | if test $ac_cv_lib_c_canonicalize_file_name = yes; then | |
9097 | ||
9098 | cat >>confdefs.h <<\_ACEOF | |
9099 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9100 | _ACEOF | |
9101 | ||
9102 | fi | |
9103 | ||
9104 | ||
d0191583 JM |
9105 | ################################################################################ |
9106 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9107 | then exec_prefix=""; | |
9108 | fi; | |
ad6254c5 AK |
9109 | |
9110 | ################################################################################ | |
06e459df | 9111 | if test x$READLINE != xno; then |
68f2de6d AK |
9112 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9113 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 9114 | if test "${ac_cv_search_tgetent+set}" = set; then |
68f2de6d | 9115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9116 | else |
9117 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9118 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9119 | /* confdefs.h. */ |
9120 | _ACEOF | |
9121 | cat confdefs.h >>conftest.$ac_ext | |
9122 | cat >>conftest.$ac_ext <<_ACEOF | |
9123 | /* end confdefs.h. */ | |
9124 | ||
7a197a62 AK |
9125 | /* Override any GCC internal prototype to avoid an error. |
9126 | Use char because int might match the return type of a GCC | |
9127 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9128 | #ifdef __cplusplus |
9129 | extern "C" | |
9130 | #endif | |
ad6254c5 AK |
9131 | char tgetent (); |
9132 | int | |
9133 | main () | |
9134 | { | |
7a197a62 | 9135 | return tgetent (); |
ad6254c5 AK |
9136 | ; |
9137 | return 0; | |
9138 | } | |
9139 | _ACEOF | |
18dcfb69 | 9140 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
9141 | if test -z "$ac_lib"; then |
9142 | ac_res="none required" | |
9143 | else | |
9144 | ac_res=-l$ac_lib | |
9145 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9146 | fi | |
9147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9148 | if { (ac_try="$ac_link" | |
9149 | case "(($ac_try" in | |
9150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9151 | *) ac_try_echo=$ac_try;; | |
9152 | esac | |
68f2de6d | 9153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9154 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9155 | ac_status=$? |
8a2fc586 AK |
9156 | grep -v '^ *+' conftest.er1 >conftest.err |
9157 | rm -f conftest.er1 | |
9158 | cat conftest.err >&5 | |
68f2de6d | 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9160 | (exit $ac_status); } && { |
9161 | test -z "$ac_c_werror_flag" || | |
9162 | test ! -s conftest.err | |
68f2de6d AK |
9163 | } && test -s conftest$ac_exeext && |
9164 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 9165 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9166 | else |
68f2de6d | 9167 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9168 | sed 's/^/| /' conftest.$ac_ext >&5 |
9169 | ||
ad6254c5 | 9170 | |
7a197a62 | 9171 | fi |
ad6254c5 | 9172 | |
25fbec5b | 9173 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
9174 | conftest$ac_exeext |
9175 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9176 | break | |
ad6254c5 | 9177 | fi |
7a197a62 AK |
9178 | done |
9179 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9180 | : | |
9181 | else | |
9182 | ac_cv_search_tgetent=no | |
ad6254c5 | 9183 | fi |
7a197a62 | 9184 | rm conftest.$ac_ext |
ad6254c5 AK |
9185 | LIBS=$ac_func_search_save_LIBS |
9186 | fi | |
68f2de6d AK |
9187 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9188 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9189 | ac_res=$ac_cv_search_tgetent |
9190 | if test "$ac_res" != no; then | |
9191 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 9192 | tg_found=yes |
ad6254c5 | 9193 | else |
06e459df JM |
9194 | tg_found=no |
9195 | fi | |
9196 | ||
9197 | test x$READLINE:$tg_found = xyes:no && | |
68f2de6d | 9198 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9199 | --enable-readline option (which is enabled by default). Either disable readline |
9200 | support with --disable-readline or download and install termcap from: | |
9201 | ftp.gnu.org/gnu/termcap | |
9202 | Note: if you are using precompiled packages you will also need the development | |
9203 | package as well (which may be called termcap-devel or something similar). | |
9204 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9205 | not found either - but you could try installing that as well. | |
9206 | " >&5 | |
68f2de6d | 9207 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9208 | --enable-readline option (which is enabled by default). Either disable readline |
9209 | support with --disable-readline or download and install termcap from: | |
9210 | ftp.gnu.org/gnu/termcap | |
9211 | Note: if you are using precompiled packages you will also need the development | |
9212 | package as well (which may be called termcap-devel or something similar). | |
9213 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9214 | not found either - but you could try installing that as well. | |
9215 | " >&2;} | |
9216 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
9217 | fi |
9218 | ||
9219 | ################################################################################ | |
68f2de6d AK |
9220 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9221 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 9222 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
68f2de6d | 9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9224 | else |
9225 | ac_check_lib_save_LIBS=$LIBS | |
9226 | LIBS="-ldl $LIBS" | |
9227 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9228 | /* confdefs.h. */ |
9229 | _ACEOF | |
9230 | cat confdefs.h >>conftest.$ac_ext | |
9231 | cat >>conftest.$ac_ext <<_ACEOF | |
9232 | /* end confdefs.h. */ | |
9233 | ||
7a197a62 AK |
9234 | /* Override any GCC internal prototype to avoid an error. |
9235 | Use char because int might match the return type of a GCC | |
9236 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9237 | #ifdef __cplusplus |
9238 | extern "C" | |
9239 | #endif | |
ad6254c5 AK |
9240 | char dlopen (); |
9241 | int | |
9242 | main () | |
9243 | { | |
7a197a62 | 9244 | return dlopen (); |
ad6254c5 AK |
9245 | ; |
9246 | return 0; | |
9247 | } | |
9248 | _ACEOF | |
9249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9250 | if { (ac_try="$ac_link" |
9251 | case "(($ac_try" in | |
9252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9253 | *) ac_try_echo=$ac_try;; | |
9254 | esac | |
68f2de6d | 9255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9256 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9257 | ac_status=$? |
8a2fc586 AK |
9258 | grep -v '^ *+' conftest.er1 >conftest.err |
9259 | rm -f conftest.er1 | |
9260 | cat conftest.err >&5 | |
68f2de6d | 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9262 | (exit $ac_status); } && { |
9263 | test -z "$ac_c_werror_flag" || | |
9264 | test ! -s conftest.err | |
68f2de6d AK |
9265 | } && test -s conftest$ac_exeext && |
9266 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9267 | ac_cv_lib_dl_dlopen=yes |
9268 | else | |
68f2de6d | 9269 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9270 | sed 's/^/| /' conftest.$ac_ext >&5 |
9271 | ||
7a197a62 | 9272 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9273 | fi |
7a197a62 | 9274 | |
25fbec5b | 9275 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9276 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9277 | LIBS=$ac_check_lib_save_LIBS |
9278 | fi | |
68f2de6d AK |
9279 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9280 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9281 | if test $ac_cv_lib_dl_dlopen = yes; then |
9282 | HAVE_LIBDL=yes | |
9283 | else | |
9284 | HAVE_LIBDL=no | |
9285 | fi | |
9286 | ||
9287 | ||
7e9e9502 | 9288 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9289 | |
9290 | cat >>confdefs.h <<\_ACEOF | |
9291 | #define HAVE_LIBDL 1 | |
9292 | _ACEOF | |
9293 | ||
ad6254c5 AK |
9294 | LIBS="-ldl $LIBS" |
9295 | else | |
9296 | HAVE_LIBDL=no | |
9297 | fi | |
9298 | ||
9299 | ################################################################################ | |
9300 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9301 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9302 | \) -a "x$STATIC_LINK" = xyes ]; | |
68f2de6d | 9303 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9304 | " >&5 |
68f2de6d | 9305 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9306 | " >&2;} |
9307 | { (exit 1); exit 1; }; } | |
9308 | fi | |
9309 | ||
d0191583 | 9310 | ################################################################################ |
68f2de6d AK |
9311 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9312 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
9313 | # Check whether --enable-static_link was given. |
9314 | if test "${enable_static_link+set}" = set; then | |
9315 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9316 | else | |
9317 | STATIC_LINK=no | |
9318 | fi | |
9319 | ||
68f2de6d AK |
9320 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9321 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
9322 | |
9323 | ################################################################################ | |
68f2de6d AK |
9324 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9325 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9326 | # Check whether --enable-selinux was given. |
9327 | if test "${enable_selinux+set}" = set; then | |
9328 | enableval=$enable_selinux; SELINUX=$enableval | |
9329 | fi | |
9330 | ||
68f2de6d AK |
9331 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9332 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9333 | |
ad6254c5 AK |
9334 | ################################################################################ |
9335 | if test x$SELINUX = xyes; then | |
68f2de6d AK |
9336 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9337 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9338 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
68f2de6d | 9339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9340 | else |
9341 | ac_check_lib_save_LIBS=$LIBS | |
9342 | LIBS="-lsepol $LIBS" | |
9343 | cat >conftest.$ac_ext <<_ACEOF | |
9344 | /* confdefs.h. */ | |
9345 | _ACEOF | |
9346 | cat confdefs.h >>conftest.$ac_ext | |
9347 | cat >>conftest.$ac_ext <<_ACEOF | |
9348 | /* end confdefs.h. */ | |
9349 | ||
7a197a62 AK |
9350 | /* Override any GCC internal prototype to avoid an error. |
9351 | Use char because int might match the return type of a GCC | |
9352 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9353 | #ifdef __cplusplus |
9354 | extern "C" | |
9355 | #endif | |
8a2fc586 AK |
9356 | char sepol_check_context (); |
9357 | int | |
9358 | main () | |
9359 | { | |
7a197a62 | 9360 | return sepol_check_context (); |
8a2fc586 AK |
9361 | ; |
9362 | return 0; | |
9363 | } | |
9364 | _ACEOF | |
9365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9366 | if { (ac_try="$ac_link" |
9367 | case "(($ac_try" in | |
9368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9369 | *) ac_try_echo=$ac_try;; | |
9370 | esac | |
68f2de6d | 9371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9372 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9373 | ac_status=$? |
9374 | grep -v '^ *+' conftest.er1 >conftest.err | |
9375 | rm -f conftest.er1 | |
9376 | cat conftest.err >&5 | |
68f2de6d | 9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9378 | (exit $ac_status); } && { |
9379 | test -z "$ac_c_werror_flag" || | |
9380 | test ! -s conftest.err | |
68f2de6d AK |
9381 | } && test -s conftest$ac_exeext && |
9382 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9383 | ac_cv_lib_sepol_sepol_check_context=yes |
9384 | else | |
68f2de6d | 9385 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9386 | sed 's/^/| /' conftest.$ac_ext >&5 |
9387 | ||
7a197a62 | 9388 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9389 | fi |
7a197a62 | 9390 | |
25fbec5b | 9391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9392 | conftest$ac_exeext conftest.$ac_ext |
9393 | LIBS=$ac_check_lib_save_LIBS | |
9394 | fi | |
68f2de6d AK |
9395 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9396 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9397 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9398 | HAVE_SEPOL=yes | |
9399 | else | |
9400 | HAVE_SEPOL=no | |
9401 | fi | |
9402 | ||
8a2fc586 AK |
9403 | |
9404 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9405 | |
9406 | cat >>confdefs.h <<\_ACEOF | |
9407 | #define HAVE_SEPOL 1 | |
9408 | _ACEOF | |
9409 | ||
8a2fc586 AK |
9410 | LIBS="-lsepol $LIBS" |
9411 | fi | |
9412 | ||
68f2de6d AK |
9413 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9414 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9415 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
68f2de6d | 9416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9417 | else |
9418 | ac_check_lib_save_LIBS=$LIBS | |
9419 | LIBS="-lselinux $LIBS" | |
9420 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9421 | /* confdefs.h. */ |
9422 | _ACEOF | |
9423 | cat confdefs.h >>conftest.$ac_ext | |
9424 | cat >>conftest.$ac_ext <<_ACEOF | |
9425 | /* end confdefs.h. */ | |
9426 | ||
7a197a62 AK |
9427 | /* Override any GCC internal prototype to avoid an error. |
9428 | Use char because int might match the return type of a GCC | |
9429 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9430 | #ifdef __cplusplus |
9431 | extern "C" | |
9432 | #endif | |
ad6254c5 AK |
9433 | char is_selinux_enabled (); |
9434 | int | |
9435 | main () | |
9436 | { | |
7a197a62 | 9437 | return is_selinux_enabled (); |
ad6254c5 AK |
9438 | ; |
9439 | return 0; | |
9440 | } | |
9441 | _ACEOF | |
9442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9443 | if { (ac_try="$ac_link" |
9444 | case "(($ac_try" in | |
9445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9446 | *) ac_try_echo=$ac_try;; | |
9447 | esac | |
68f2de6d | 9448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9449 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9450 | ac_status=$? |
8a2fc586 AK |
9451 | grep -v '^ *+' conftest.er1 >conftest.err |
9452 | rm -f conftest.er1 | |
9453 | cat conftest.err >&5 | |
68f2de6d | 9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9455 | (exit $ac_status); } && { |
9456 | test -z "$ac_c_werror_flag" || | |
9457 | test ! -s conftest.err | |
68f2de6d AK |
9458 | } && test -s conftest$ac_exeext && |
9459 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9460 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9461 | else | |
68f2de6d | 9462 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
9464 | ||
7a197a62 | 9465 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9466 | fi |
7a197a62 | 9467 | |
25fbec5b | 9468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9469 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9470 | LIBS=$ac_check_lib_save_LIBS |
9471 | fi | |
68f2de6d AK |
9472 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9473 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9474 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9475 | HAVE_SELINUX=yes | |
9476 | else | |
9477 | HAVE_SELINUX=no | |
9478 | fi | |
9479 | ||
ad6254c5 AK |
9480 | |
9481 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9482 | |
9483 | cat >>confdefs.h <<\_ACEOF | |
9484 | #define HAVE_SELINUX 1 | |
9485 | _ACEOF | |
9486 | ||
ad6254c5 AK |
9487 | LIBS="-lselinux $LIBS" |
9488 | else | |
68f2de6d AK |
9489 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9490 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9491 | fi |
9492 | ||
d0191583 | 9493 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9494 | # fails on at least Debian unstable due to unsatisfied references |
9495 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9496 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9497 | lvm_saved_libs=$LIBS | |
9498 | LIBS="$LIBS -static" | |
68f2de6d AK |
9499 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9500 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9501 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
68f2de6d | 9502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9503 | else |
9504 | ac_func_search_save_LIBS=$LIBS | |
9505 | cat >conftest.$ac_ext <<_ACEOF | |
9506 | /* confdefs.h. */ | |
9507 | _ACEOF | |
9508 | cat confdefs.h >>conftest.$ac_ext | |
9509 | cat >>conftest.$ac_ext <<_ACEOF | |
9510 | /* end confdefs.h. */ | |
9511 | ||
9512 | /* Override any GCC internal prototype to avoid an error. | |
9513 | Use char because int might match the return type of a GCC | |
9514 | builtin and then its argument prototype would still apply. */ | |
9515 | #ifdef __cplusplus | |
9516 | extern "C" | |
9517 | #endif | |
9518 | char pthread_mutex_lock (); | |
9519 | int | |
9520 | main () | |
9521 | { | |
9522 | return pthread_mutex_lock (); | |
9523 | ; | |
9524 | return 0; | |
9525 | } | |
9526 | _ACEOF | |
9527 | for ac_lib in '' pthread; do | |
9528 | if test -z "$ac_lib"; then | |
9529 | ac_res="none required" | |
9530 | else | |
9531 | ac_res=-l$ac_lib | |
9532 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9533 | fi | |
9534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9535 | if { (ac_try="$ac_link" | |
9536 | case "(($ac_try" in | |
9537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9538 | *) ac_try_echo=$ac_try;; | |
9539 | esac | |
68f2de6d | 9540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9541 | (eval "$ac_link") 2>conftest.er1 |
9542 | ac_status=$? | |
9543 | grep -v '^ *+' conftest.er1 >conftest.err | |
9544 | rm -f conftest.er1 | |
9545 | cat conftest.err >&5 | |
68f2de6d | 9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9547 | (exit $ac_status); } && { |
9548 | test -z "$ac_c_werror_flag" || | |
9549 | test ! -s conftest.err | |
68f2de6d AK |
9550 | } && test -s conftest$ac_exeext && |
9551 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9552 | ac_cv_search_pthread_mutex_lock=$ac_res |
9553 | else | |
68f2de6d | 9554 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
9556 | ||
9557 | ||
9558 | fi | |
9559 | ||
25fbec5b | 9560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9561 | conftest$ac_exeext |
9562 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9563 | break | |
9564 | fi | |
9565 | done | |
9566 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9567 | : | |
9568 | else | |
9569 | ac_cv_search_pthread_mutex_lock=no | |
9570 | fi | |
9571 | rm conftest.$ac_ext | |
9572 | LIBS=$ac_func_search_save_LIBS | |
9573 | fi | |
68f2de6d AK |
9574 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9575 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9576 | ac_res=$ac_cv_search_pthread_mutex_lock |
9577 | if test "$ac_res" != no; then | |
9578 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9579 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9580 | LIB_PTHREAD=-lpthread | |
9581 | fi | |
9582 | ||
9583 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9584 | fi |
9585 | fi | |
9586 | ||
8b1a3214 AK |
9587 | ################################################################################ |
9588 | if test x$REALTIME = xyes; then | |
68f2de6d AK |
9589 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9590 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9591 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
68f2de6d | 9592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9593 | else |
9594 | ac_check_lib_save_LIBS=$LIBS | |
9595 | LIBS="-lrt $LIBS" | |
9596 | cat >conftest.$ac_ext <<_ACEOF | |
9597 | /* confdefs.h. */ | |
9598 | _ACEOF | |
9599 | cat confdefs.h >>conftest.$ac_ext | |
9600 | cat >>conftest.$ac_ext <<_ACEOF | |
9601 | /* end confdefs.h. */ | |
9602 | ||
7a197a62 AK |
9603 | /* Override any GCC internal prototype to avoid an error. |
9604 | Use char because int might match the return type of a GCC | |
9605 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9606 | #ifdef __cplusplus |
9607 | extern "C" | |
9608 | #endif | |
8b1a3214 AK |
9609 | char clock_gettime (); |
9610 | int | |
9611 | main () | |
9612 | { | |
7a197a62 | 9613 | return clock_gettime (); |
8b1a3214 AK |
9614 | ; |
9615 | return 0; | |
9616 | } | |
9617 | _ACEOF | |
9618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9619 | if { (ac_try="$ac_link" |
9620 | case "(($ac_try" in | |
9621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9622 | *) ac_try_echo=$ac_try;; | |
9623 | esac | |
68f2de6d | 9624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9625 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9626 | ac_status=$? |
9627 | grep -v '^ *+' conftest.er1 >conftest.err | |
9628 | rm -f conftest.er1 | |
9629 | cat conftest.err >&5 | |
68f2de6d | 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9631 | (exit $ac_status); } && { |
9632 | test -z "$ac_c_werror_flag" || | |
9633 | test ! -s conftest.err | |
68f2de6d AK |
9634 | } && test -s conftest$ac_exeext && |
9635 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9636 | ac_cv_lib_rt_clock_gettime=yes |
9637 | else | |
68f2de6d | 9638 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9639 | sed 's/^/| /' conftest.$ac_ext >&5 |
9640 | ||
7a197a62 | 9641 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9642 | fi |
7a197a62 | 9643 | |
25fbec5b | 9644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9645 | conftest$ac_exeext conftest.$ac_ext |
9646 | LIBS=$ac_check_lib_save_LIBS | |
9647 | fi | |
68f2de6d AK |
9648 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9649 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9650 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9651 | HAVE_REALTIME=yes | |
9652 | else | |
9653 | HAVE_REALTIME=no | |
9654 | fi | |
9655 | ||
8b1a3214 AK |
9656 | |
9657 | if test x$HAVE_REALTIME = xyes; then | |
9658 | ||
9659 | cat >>confdefs.h <<\_ACEOF | |
9660 | #define HAVE_REALTIME 1 | |
9661 | _ACEOF | |
9662 | ||
9663 | LIBS="-lrt $LIBS" | |
9664 | else | |
68f2de6d AK |
9665 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9666 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9667 | fi |
9668 | fi | |
9669 | ||
ad6254c5 AK |
9670 | ################################################################################ |
9671 | ||
9672 | for ac_header in getopt.h | |
9673 | do | |
68f2de6d | 9674 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9675 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
9676 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9677 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9680 | fi |
68f2de6d AK |
9681 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9682 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9683 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9684 | else |
9685 | # Is the header compilable? | |
68f2de6d AK |
9686 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9688 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9689 | /* confdefs.h. */ |
9690 | _ACEOF | |
9691 | cat confdefs.h >>conftest.$ac_ext | |
9692 | cat >>conftest.$ac_ext <<_ACEOF | |
9693 | /* end confdefs.h. */ | |
9694 | $ac_includes_default | |
9695 | #include <$ac_header> | |
9696 | _ACEOF | |
9697 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9698 | if { (ac_try="$ac_compile" |
9699 | case "(($ac_try" in | |
9700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9701 | *) ac_try_echo=$ac_try;; | |
9702 | esac | |
68f2de6d | 9703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9704 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9705 | ac_status=$? |
8a2fc586 AK |
9706 | grep -v '^ *+' conftest.er1 >conftest.err |
9707 | rm -f conftest.er1 | |
9708 | cat conftest.err >&5 | |
68f2de6d | 9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9710 | (exit $ac_status); } && { |
9711 | test -z "$ac_c_werror_flag" || | |
9712 | test ! -s conftest.err | |
9713 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9714 | ac_header_compiler=yes |
9715 | else | |
68f2de6d | 9716 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9717 | sed 's/^/| /' conftest.$ac_ext >&5 |
9718 | ||
7a197a62 | 9719 | ac_header_compiler=no |
ad6254c5 | 9720 | fi |
7a197a62 AK |
9721 | |
9722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
9723 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9724 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9725 | |
9726 | # Is the header present? | |
68f2de6d AK |
9727 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9729 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9730 | /* confdefs.h. */ |
9731 | _ACEOF | |
9732 | cat confdefs.h >>conftest.$ac_ext | |
9733 | cat >>conftest.$ac_ext <<_ACEOF | |
9734 | /* end confdefs.h. */ | |
9735 | #include <$ac_header> | |
9736 | _ACEOF | |
7a197a62 AK |
9737 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9738 | case "(($ac_try" in | |
9739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9740 | *) ac_try_echo=$ac_try;; | |
9741 | esac | |
68f2de6d | 9742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9743 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9744 | ac_status=$? |
9745 | grep -v '^ *+' conftest.er1 >conftest.err | |
9746 | rm -f conftest.er1 | |
9747 | cat conftest.err >&5 | |
68f2de6d | 9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9749 | (exit $ac_status); } >/dev/null && { |
9750 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9751 | test ! -s conftest.err | |
9752 | }; then | |
ad6254c5 AK |
9753 | ac_header_preproc=yes |
9754 | else | |
68f2de6d | 9755 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9756 | sed 's/^/| /' conftest.$ac_ext >&5 |
9757 | ||
9758 | ac_header_preproc=no | |
9759 | fi | |
7a197a62 | 9760 | |
ad6254c5 | 9761 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
9762 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9763 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9764 | |
9765 | # So? What about this header? | |
8a2fc586 AK |
9766 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9767 | yes:no: ) | |
68f2de6d AK |
9768 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9769 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9771 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9772 | ac_header_preproc=yes |
ad6254c5 | 9773 | ;; |
8a2fc586 | 9774 | no:yes:* ) |
68f2de6d AK |
9775 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9776 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9777 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9778 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9779 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9780 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9781 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9782 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9784 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9785 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9786 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9787 | |
ad6254c5 AK |
9788 | ;; |
9789 | esac | |
68f2de6d AK |
9790 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9794 | else |
8a2fc586 | 9795 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9796 | fi |
68f2de6d AK |
9797 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9799 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9800 | |
9801 | fi | |
68f2de6d | 9802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9803 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9805 | _ACEOF |
72b2cb61 AK |
9806 | |
9807 | cat >>confdefs.h <<\_ACEOF | |
9808 | #define HAVE_GETOPTLONG 1 | |
9809 | _ACEOF | |
9810 | ||
ad6254c5 AK |
9811 | fi |
9812 | ||
9813 | done | |
9814 | ||
9815 | ||
9816 | ################################################################################ | |
06e459df | 9817 | if test x$READLINE != xno; then |
bc1024f8 JM |
9818 | rl_found=yes |
9819 | ||
68f2de6d AK |
9820 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9821 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9822 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
68f2de6d | 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9824 | else |
9825 | ac_check_lib_save_LIBS=$LIBS | |
9826 | LIBS="-lreadline $LIBS" | |
9827 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9828 | /* confdefs.h. */ |
9829 | _ACEOF | |
9830 | cat confdefs.h >>conftest.$ac_ext | |
9831 | cat >>conftest.$ac_ext <<_ACEOF | |
9832 | /* end confdefs.h. */ | |
9833 | ||
7a197a62 AK |
9834 | /* Override any GCC internal prototype to avoid an error. |
9835 | Use char because int might match the return type of a GCC | |
9836 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9837 | #ifdef __cplusplus |
9838 | extern "C" | |
9839 | #endif | |
ad6254c5 AK |
9840 | char readline (); |
9841 | int | |
9842 | main () | |
9843 | { | |
7a197a62 | 9844 | return readline (); |
ad6254c5 AK |
9845 | ; |
9846 | return 0; | |
9847 | } | |
9848 | _ACEOF | |
9849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9850 | if { (ac_try="$ac_link" |
9851 | case "(($ac_try" in | |
9852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9853 | *) ac_try_echo=$ac_try;; | |
9854 | esac | |
68f2de6d | 9855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9856 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9857 | ac_status=$? |
8a2fc586 AK |
9858 | grep -v '^ *+' conftest.er1 >conftest.err |
9859 | rm -f conftest.er1 | |
9860 | cat conftest.err >&5 | |
68f2de6d | 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9862 | (exit $ac_status); } && { |
9863 | test -z "$ac_c_werror_flag" || | |
9864 | test ! -s conftest.err | |
68f2de6d AK |
9865 | } && test -s conftest$ac_exeext && |
9866 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9867 | ac_cv_lib_readline_readline=yes |
9868 | else | |
68f2de6d | 9869 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9870 | sed 's/^/| /' conftest.$ac_ext >&5 |
9871 | ||
7a197a62 | 9872 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9873 | fi |
7a197a62 | 9874 | |
25fbec5b | 9875 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9876 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9877 | LIBS=$ac_check_lib_save_LIBS |
9878 | fi | |
68f2de6d AK |
9879 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9880 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 9881 | if test $ac_cv_lib_readline_readline = yes; then |
bc1024f8 JM |
9882 | cat >>confdefs.h <<_ACEOF |
9883 | #define HAVE_LIBREADLINE 1 | |
9884 | _ACEOF | |
9885 | ||
9886 | LIBS="-lreadline $LIBS" | |
9887 | ||
ad6254c5 | 9888 | else |
06e459df JM |
9889 | rl_found=no |
9890 | fi | |
9891 | ||
9892 | test x$READLINE:$rl_found = xyes:no && | |
68f2de6d | 9893 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9894 | --enable-readline option (which is enabled by default). Either disable readline |
9895 | support with --disable-readline or download and install readline from: | |
9896 | ftp.gnu.org/gnu/readline | |
9897 | Note: if you are using precompiled packages you will also need the development | |
9898 | package as well (which may be called readline-devel or something similar). | |
9899 | " >&5 | |
68f2de6d | 9900 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9901 | --enable-readline option (which is enabled by default). Either disable readline |
9902 | support with --disable-readline or download and install readline from: | |
9903 | ftp.gnu.org/gnu/readline | |
9904 | Note: if you are using precompiled packages you will also need the development | |
9905 | package as well (which may be called readline-devel or something similar). | |
9906 | " >&2;} | |
9907 | { (exit 1); exit 1; }; } | |
06e459df | 9908 | if test $rl_found = yes; then |
bc1024f8 JM |
9909 | |
9910 | for ac_func in rl_completion_matches | |
9911 | do | |
68f2de6d AK |
9912 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9913 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9914 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
bc1024f8 | 9915 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9917 | else |
9918 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9919 | /* confdefs.h. */ |
9920 | _ACEOF | |
9921 | cat confdefs.h >>conftest.$ac_ext | |
9922 | cat >>conftest.$ac_ext <<_ACEOF | |
9923 | /* end confdefs.h. */ | |
bc1024f8 | 9924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 9925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 9926 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 9927 | |
ad6254c5 | 9928 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 9929 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
9930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9931 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9932 | |
ad6254c5 AK |
9933 | #ifdef __STDC__ |
9934 | # include <limits.h> | |
9935 | #else | |
9936 | # include <assert.h> | |
9937 | #endif | |
8a2fc586 | 9938 | |
bc1024f8 | 9939 | #undef $ac_func |
8a2fc586 | 9940 | |
7a197a62 AK |
9941 | /* Override any GCC internal prototype to avoid an error. |
9942 | Use char because int might match the return type of a GCC | |
9943 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9944 | #ifdef __cplusplus |
9945 | extern "C" | |
ad6254c5 | 9946 | #endif |
bc1024f8 | 9947 | char $ac_func (); |
ad6254c5 AK |
9948 | /* The GNU C library defines this for functions which it implements |
9949 | to always fail with ENOSYS. Some functions are actually named | |
9950 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 9951 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9952 | choke me |
ad6254c5 AK |
9953 | #endif |
9954 | ||
9955 | int | |
9956 | main () | |
9957 | { | |
bc1024f8 | 9958 | return $ac_func (); |
ad6254c5 AK |
9959 | ; |
9960 | return 0; | |
9961 | } | |
9962 | _ACEOF | |
9963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9964 | if { (ac_try="$ac_link" |
9965 | case "(($ac_try" in | |
9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9967 | *) ac_try_echo=$ac_try;; | |
9968 | esac | |
68f2de6d | 9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9970 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9971 | ac_status=$? |
8a2fc586 AK |
9972 | grep -v '^ *+' conftest.er1 >conftest.err |
9973 | rm -f conftest.er1 | |
9974 | cat conftest.err >&5 | |
68f2de6d | 9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9976 | (exit $ac_status); } && { |
9977 | test -z "$ac_c_werror_flag" || | |
9978 | test ! -s conftest.err | |
68f2de6d AK |
9979 | } && test -s conftest$ac_exeext && |
9980 | $as_test_x conftest$ac_exeext; then | |
bc1024f8 | 9981 | eval "$as_ac_var=yes" |
ad6254c5 | 9982 | else |
68f2de6d | 9983 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
9985 | ||
bc1024f8 | 9986 | eval "$as_ac_var=no" |
ad6254c5 | 9987 | fi |
7a197a62 | 9988 | |
25fbec5b | 9989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9990 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9991 | fi |
68f2de6d AK |
9992 | ac_res=`eval echo '${'$as_ac_var'}'` |
9993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9994 | echo "${ECHO_T}$ac_res" >&6; } | |
9995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
bc1024f8 | 9996 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
9998 | _ACEOF |
9999 | ||
10000 | fi | |
bc1024f8 | 10001 | done |
ad6254c5 | 10002 | |
d179cc7a JM |
10003 | |
10004 | cat >>confdefs.h <<\_ACEOF | |
10005 | #define READLINE_SUPPORT 1 | |
10006 | _ACEOF | |
10007 | ||
06e459df | 10008 | fi |
ad6254c5 AK |
10009 | fi |
10010 | ||
10011 | ################################################################################ | |
68f2de6d AK |
10012 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10013 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 10014 | # Check whether --enable-nls was given. |
ad6254c5 | 10015 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10016 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10017 | else |
10018 | INTL=no | |
7a197a62 AK |
10019 | fi |
10020 | ||
68f2de6d AK |
10021 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
10022 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
10023 | |
10024 | if test x$INTL = xyes; then | |
93bd259b | 10025 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10026 | INTL_PACKAGE="lvm2" |
10027 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10028 | set dummy msgfmt; ac_word=$2 | |
68f2de6d AK |
10029 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 10031 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
68f2de6d | 10032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10033 | else |
10034 | case $MSGFMT in | |
10035 | [\\/]* | ?:[\\/]*) | |
10036 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10037 | ;; | |
10038 | *) | |
10039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10040 | for as_dir in $PATH | |
10041 | do | |
10042 | IFS=$as_save_IFS | |
10043 | test -z "$as_dir" && as_dir=. | |
10044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10046 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 10047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10048 | break 2 |
10049 | fi | |
10050 | done | |
10051 | done | |
7a197a62 | 10052 | IFS=$as_save_IFS |
ad6254c5 AK |
10053 | |
10054 | ;; | |
10055 | esac | |
10056 | fi | |
10057 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10058 | if test -n "$MSGFMT"; then |
68f2de6d AK |
10059 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10060 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 10061 | else |
68f2de6d AK |
10062 | { echo "$as_me:$LINENO: result: no" >&5 |
10063 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
10064 | fi |
10065 | ||
7a197a62 | 10066 | |
ad6254c5 | 10067 | if [ "x$MSGFMT" == x ]; |
68f2de6d | 10068 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10069 | " >&5 |
68f2de6d | 10070 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10071 | " >&2;} |
10072 | { (exit 1); exit 1; }; } | |
10073 | fi; | |
10074 | ||
10075 | ||
7a197a62 | 10076 | # Check whether --with-localedir was given. |
ad6254c5 | 10077 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10078 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10079 | else |
10080 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10081 | fi |
10082 | ||
ad6254c5 AK |
10083 | fi |
10084 | ||
10085 | ################################################################################ | |
10086 | ||
7a197a62 | 10087 | # Check whether --with-confdir was given. |
ad6254c5 | 10088 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10089 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10090 | else |
10091 | CONFDIR='/etc' | |
7a197a62 AK |
10092 | fi |
10093 | ||
ad6254c5 AK |
10094 | |
10095 | ||
7a197a62 | 10096 | # Check whether --with-staticdir was given. |
ad6254c5 | 10097 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10098 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10099 | else |
10100 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10101 | fi |
ad6254c5 | 10102 | |
33f732c5 | 10103 | |
7a197a62 | 10104 | |
68f2de6d AK |
10105 | # Check whether --with-usrlibdir was given. |
10106 | if test "${with_usrlibdir+set}" = set; then | |
10107 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10108 | else | |
10109 | usrlibdir='${prefix}/lib' | |
10110 | fi | |
10111 | ||
10112 | ||
10113 | ||
10114 | # Check whether --with-usrsbindir was given. | |
10115 | if test "${with_usrsbindir+set}" = set; then | |
10116 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10117 | else | |
10118 | usrsbindir='${prefix}/sbin' | |
10119 | fi | |
10120 | ||
10121 | ||
ad6254c5 AK |
10122 | ################################################################################ |
10123 | if test x$READLINE = xyes; then | |
10124 | ||
10125 | ||
10126 | for ac_header in readline/readline.h readline/history.h | |
10127 | do | |
68f2de6d | 10128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10134 | fi |
68f2de6d AK |
10135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10137 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10138 | else |
10139 | # Is the header compilable? | |
68f2de6d AK |
10140 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10142 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10143 | /* confdefs.h. */ |
10144 | _ACEOF | |
10145 | cat confdefs.h >>conftest.$ac_ext | |
10146 | cat >>conftest.$ac_ext <<_ACEOF | |
10147 | /* end confdefs.h. */ | |
10148 | $ac_includes_default | |
10149 | #include <$ac_header> | |
10150 | _ACEOF | |
10151 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10152 | if { (ac_try="$ac_compile" |
10153 | case "(($ac_try" in | |
10154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10155 | *) ac_try_echo=$ac_try;; | |
10156 | esac | |
68f2de6d | 10157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10158 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10159 | ac_status=$? |
8a2fc586 AK |
10160 | grep -v '^ *+' conftest.er1 >conftest.err |
10161 | rm -f conftest.er1 | |
10162 | cat conftest.err >&5 | |
68f2de6d | 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10164 | (exit $ac_status); } && { |
10165 | test -z "$ac_c_werror_flag" || | |
10166 | test ! -s conftest.err | |
10167 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10168 | ac_header_compiler=yes |
10169 | else | |
68f2de6d | 10170 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10171 | sed 's/^/| /' conftest.$ac_ext >&5 |
10172 | ||
7a197a62 | 10173 | ac_header_compiler=no |
ad6254c5 | 10174 | fi |
7a197a62 AK |
10175 | |
10176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10177 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10178 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10179 | |
10180 | # Is the header present? | |
68f2de6d AK |
10181 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10182 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10183 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10184 | /* confdefs.h. */ |
10185 | _ACEOF | |
10186 | cat confdefs.h >>conftest.$ac_ext | |
10187 | cat >>conftest.$ac_ext <<_ACEOF | |
10188 | /* end confdefs.h. */ | |
10189 | #include <$ac_header> | |
10190 | _ACEOF | |
7a197a62 AK |
10191 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10192 | case "(($ac_try" in | |
10193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10194 | *) ac_try_echo=$ac_try;; | |
10195 | esac | |
68f2de6d | 10196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10198 | ac_status=$? |
10199 | grep -v '^ *+' conftest.er1 >conftest.err | |
10200 | rm -f conftest.er1 | |
10201 | cat conftest.err >&5 | |
68f2de6d | 10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10203 | (exit $ac_status); } >/dev/null && { |
10204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10205 | test ! -s conftest.err | |
10206 | }; then | |
ad6254c5 AK |
10207 | ac_header_preproc=yes |
10208 | else | |
68f2de6d | 10209 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 |
10211 | ||
10212 | ac_header_preproc=no | |
10213 | fi | |
7a197a62 | 10214 | |
ad6254c5 | 10215 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10216 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10217 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10218 | |
10219 | # So? What about this header? | |
8a2fc586 AK |
10220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10221 | yes:no: ) | |
68f2de6d AK |
10222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10225 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10226 | ac_header_preproc=yes |
ad6254c5 | 10227 | ;; |
8a2fc586 | 10228 | no:yes:* ) |
68f2de6d AK |
10229 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10230 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10231 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10232 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10233 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10234 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10235 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10236 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10238 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10239 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10240 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10241 | |
ad6254c5 AK |
10242 | ;; |
10243 | esac | |
68f2de6d AK |
10244 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10248 | else |
8a2fc586 | 10249 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10250 | fi |
68f2de6d AK |
10251 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10252 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10253 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10254 | |
10255 | fi | |
68f2de6d | 10256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10257 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10259 | _ACEOF |
10260 | ||
10261 | else | |
68f2de6d AK |
10262 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10263 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10264 | { (exit 1); exit 1; }; } |
10265 | fi | |
10266 | ||
10267 | done | |
10268 | ||
10269 | fi | |
10270 | ||
5c7fc7c4 | 10271 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10272 | |
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | 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 | |
10283 | do | |
68f2de6d | 10284 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10286 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10290 | fi |
68f2de6d AK |
10291 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10292 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10293 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10294 | else |
10295 | # Is the header compilable? | |
68f2de6d AK |
10296 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10298 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10299 | /* confdefs.h. */ |
10300 | _ACEOF | |
10301 | cat confdefs.h >>conftest.$ac_ext | |
10302 | cat >>conftest.$ac_ext <<_ACEOF | |
10303 | /* end confdefs.h. */ | |
10304 | $ac_includes_default | |
10305 | #include <$ac_header> | |
10306 | _ACEOF | |
10307 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10308 | if { (ac_try="$ac_compile" |
10309 | case "(($ac_try" in | |
10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10311 | *) ac_try_echo=$ac_try;; | |
10312 | esac | |
68f2de6d | 10313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10314 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10315 | ac_status=$? |
8a2fc586 AK |
10316 | grep -v '^ *+' conftest.er1 >conftest.err |
10317 | rm -f conftest.er1 | |
10318 | cat conftest.err >&5 | |
68f2de6d | 10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10320 | (exit $ac_status); } && { |
10321 | test -z "$ac_c_werror_flag" || | |
10322 | test ! -s conftest.err | |
10323 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10324 | ac_header_compiler=yes |
10325 | else | |
68f2de6d | 10326 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10327 | sed 's/^/| /' conftest.$ac_ext >&5 |
10328 | ||
7a197a62 | 10329 | ac_header_compiler=no |
ad6254c5 | 10330 | fi |
7a197a62 AK |
10331 | |
10332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10334 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10335 | |
10336 | # Is the header present? | |
68f2de6d AK |
10337 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10339 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10340 | /* confdefs.h. */ |
10341 | _ACEOF | |
10342 | cat confdefs.h >>conftest.$ac_ext | |
10343 | cat >>conftest.$ac_ext <<_ACEOF | |
10344 | /* end confdefs.h. */ | |
10345 | #include <$ac_header> | |
10346 | _ACEOF | |
7a197a62 AK |
10347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10348 | case "(($ac_try" in | |
10349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10350 | *) ac_try_echo=$ac_try;; | |
10351 | esac | |
68f2de6d | 10352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10354 | ac_status=$? |
10355 | grep -v '^ *+' conftest.er1 >conftest.err | |
10356 | rm -f conftest.er1 | |
10357 | cat conftest.err >&5 | |
68f2de6d | 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10359 | (exit $ac_status); } >/dev/null && { |
10360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10361 | test ! -s conftest.err | |
10362 | }; then | |
ad6254c5 AK |
10363 | ac_header_preproc=yes |
10364 | else | |
68f2de6d | 10365 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10366 | sed 's/^/| /' conftest.$ac_ext >&5 |
10367 | ||
10368 | ac_header_preproc=no | |
10369 | fi | |
7a197a62 | 10370 | |
ad6254c5 | 10371 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10372 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10373 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10374 | |
10375 | # So? What about this header? | |
8a2fc586 AK |
10376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10377 | yes:no: ) | |
68f2de6d AK |
10378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10382 | ac_header_preproc=yes |
ad6254c5 | 10383 | ;; |
8a2fc586 | 10384 | no:yes:* ) |
68f2de6d AK |
10385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10397 | |
ad6254c5 AK |
10398 | ;; |
10399 | esac | |
68f2de6d AK |
10400 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10404 | else |
8a2fc586 | 10405 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10406 | fi |
68f2de6d AK |
10407 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10409 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10410 | |
10411 | fi | |
68f2de6d | 10412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10413 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10415 | _ACEOF |
10416 | ||
10417 | else | |
68f2de6d AK |
10418 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10419 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10420 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10421 | fi |
10422 | ||
ad6254c5 AK |
10423 | done |
10424 | ||
10425 | ||
795ca3e5 | 10426 | |
8106cdd5 | 10427 | |
ad6254c5 AK |
10428 | |
10429 | ||
10430 | for ac_func in dup2 getmntent memmove select socket | |
10431 | do | |
68f2de6d AK |
10432 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10433 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10434 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10435 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10437 | else |
ad6254c5 | 10438 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10439 | /* confdefs.h. */ |
10440 | _ACEOF | |
10441 | cat confdefs.h >>conftest.$ac_ext | |
10442 | cat >>conftest.$ac_ext <<_ACEOF | |
10443 | /* end confdefs.h. */ | |
8a2fc586 AK |
10444 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10445 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10446 | #define $ac_func innocuous_$ac_func | |
10447 | ||
795ca3e5 | 10448 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10449 | which can conflict with char $ac_func (); below. |
10450 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10451 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10452 | |
ad6254c5 AK |
10453 | #ifdef __STDC__ |
10454 | # include <limits.h> | |
10455 | #else | |
10456 | # include <assert.h> | |
10457 | #endif | |
8a2fc586 AK |
10458 | |
10459 | #undef $ac_func | |
10460 | ||
7a197a62 AK |
10461 | /* Override any GCC internal prototype to avoid an error. |
10462 | Use char because int might match the return type of a GCC | |
10463 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10464 | #ifdef __cplusplus |
10465 | extern "C" | |
ad6254c5 | 10466 | #endif |
ad6254c5 | 10467 | char $ac_func (); |
795ca3e5 AK |
10468 | /* The GNU C library defines this for functions which it implements |
10469 | to always fail with ENOSYS. Some functions are actually named | |
10470 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10471 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10472 | choke me |
795ca3e5 AK |
10473 | #endif |
10474 | ||
ad6254c5 AK |
10475 | int |
10476 | main () | |
10477 | { | |
7a197a62 | 10478 | return $ac_func (); |
ad6254c5 AK |
10479 | ; |
10480 | return 0; | |
10481 | } | |
10482 | _ACEOF | |
10483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10484 | if { (ac_try="$ac_link" |
10485 | case "(($ac_try" in | |
10486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10487 | *) ac_try_echo=$ac_try;; | |
10488 | esac | |
68f2de6d | 10489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10490 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10491 | ac_status=$? |
8a2fc586 AK |
10492 | grep -v '^ *+' conftest.er1 >conftest.err |
10493 | rm -f conftest.er1 | |
10494 | cat conftest.err >&5 | |
68f2de6d | 10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10496 | (exit $ac_status); } && { |
10497 | test -z "$ac_c_werror_flag" || | |
10498 | test ! -s conftest.err | |
68f2de6d AK |
10499 | } && test -s conftest$ac_exeext && |
10500 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10501 | eval "$as_ac_var=yes" |
795ca3e5 | 10502 | else |
68f2de6d | 10503 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10504 | sed 's/^/| /' conftest.$ac_ext >&5 |
10505 | ||
7a197a62 | 10506 | eval "$as_ac_var=no" |
80992638 | 10507 | fi |
7a197a62 | 10508 | |
25fbec5b | 10509 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10510 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10511 | fi |
68f2de6d AK |
10512 | ac_res=`eval echo '${'$as_ac_var'}'` |
10513 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10514 | echo "${ECHO_T}$ac_res" >&6; } | |
10515 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10516 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10518 | _ACEOF |
80992638 AK |
10519 | |
10520 | else | |
68f2de6d AK |
10521 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10522 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10523 | { (exit 1); exit 1; }; } |
8106cdd5 | 10524 | fi |
ad6254c5 | 10525 | done |
795ca3e5 | 10526 | |
25fbec5b AK |
10527 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10528 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
68f2de6d AK |
10529 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10530 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10531 | if test "${ac_cv_search_getmntent+set}" = set; then |
68f2de6d | 10532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10533 | else |
10534 | ac_func_search_save_LIBS=$LIBS | |
10535 | cat >conftest.$ac_ext <<_ACEOF | |
10536 | /* confdefs.h. */ | |
10537 | _ACEOF | |
10538 | cat confdefs.h >>conftest.$ac_ext | |
10539 | cat >>conftest.$ac_ext <<_ACEOF | |
10540 | /* end confdefs.h. */ | |
80992638 | 10541 | |
7a197a62 AK |
10542 | /* Override any GCC internal prototype to avoid an error. |
10543 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10544 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10545 | #ifdef __cplusplus |
10546 | extern "C" | |
10547 | #endif | |
25fbec5b | 10548 | char getmntent (); |
ad6254c5 AK |
10549 | int |
10550 | main () | |
10551 | { | |
25fbec5b | 10552 | return getmntent (); |
ad6254c5 AK |
10553 | ; |
10554 | return 0; | |
10555 | } | |
10556 | _ACEOF | |
25fbec5b AK |
10557 | for ac_lib in '' sun seq gen; do |
10558 | if test -z "$ac_lib"; then | |
10559 | ac_res="none required" | |
10560 | else | |
10561 | ac_res=-l$ac_lib | |
10562 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10563 | fi | |
10564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10565 | if { (ac_try="$ac_link" |
10566 | case "(($ac_try" in | |
10567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10568 | *) ac_try_echo=$ac_try;; | |
10569 | esac | |
68f2de6d | 10570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10571 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10572 | ac_status=$? |
8a2fc586 AK |
10573 | grep -v '^ *+' conftest.er1 >conftest.err |
10574 | rm -f conftest.er1 | |
10575 | cat conftest.err >&5 | |
68f2de6d | 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10577 | (exit $ac_status); } && { |
10578 | test -z "$ac_c_werror_flag" || | |
10579 | test ! -s conftest.err | |
68f2de6d AK |
10580 | } && test -s conftest$ac_exeext && |
10581 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10582 | ac_cv_search_getmntent=$ac_res |
80992638 | 10583 | else |
68f2de6d | 10584 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10585 | sed 's/^/| /' conftest.$ac_ext >&5 |
10586 | ||
25fbec5b | 10587 | |
795ca3e5 AK |
10588 | fi |
10589 | ||
25fbec5b AK |
10590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10591 | conftest$ac_exeext | |
10592 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10593 | break | |
795ca3e5 | 10594 | fi |
25fbec5b AK |
10595 | done |
10596 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10597 | : | |
10598 | else | |
10599 | ac_cv_search_getmntent=no | |
10600 | fi | |
10601 | rm conftest.$ac_ext | |
10602 | LIBS=$ac_func_search_save_LIBS | |
10603 | fi | |
68f2de6d AK |
10604 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10605 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10606 | ac_res=$ac_cv_search_getmntent |
10607 | if test "$ac_res" != no; then | |
10608 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10609 | ac_cv_func_getmntent=yes | |
10610 | ||
10611 | cat >>confdefs.h <<\_ACEOF | |
68f2de6d | 10612 | #define HAVE_GETMNTENT |
ad6254c5 | 10613 | _ACEOF |
795ca3e5 | 10614 | |
25fbec5b AK |
10615 | else |
10616 | ac_cv_func_getmntent=no | |
795ca3e5 | 10617 | fi |
795ca3e5 AK |
10618 | |
10619 | ||
ad6254c5 AK |
10620 | # AC_FUNC_REALLOC |
10621 | ||
10622 | ||
10623 | for ac_header in sys/select.h sys/socket.h | |
10624 | do | |
68f2de6d | 10625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10627 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10631 | fi |
68f2de6d AK |
10632 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10633 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10634 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10635 | else |
ad6254c5 | 10636 | # Is the header compilable? |
68f2de6d AK |
10637 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10638 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10639 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10640 | /* confdefs.h. */ |
10641 | _ACEOF | |
10642 | cat confdefs.h >>conftest.$ac_ext | |
10643 | cat >>conftest.$ac_ext <<_ACEOF | |
10644 | /* end confdefs.h. */ | |
10645 | $ac_includes_default | |
10646 | #include <$ac_header> | |
10647 | _ACEOF | |
10648 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10649 | if { (ac_try="$ac_compile" |
10650 | case "(($ac_try" in | |
10651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10652 | *) ac_try_echo=$ac_try;; | |
10653 | esac | |
68f2de6d | 10654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10655 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10656 | ac_status=$? |
8a2fc586 AK |
10657 | grep -v '^ *+' conftest.er1 >conftest.err |
10658 | rm -f conftest.er1 | |
10659 | cat conftest.err >&5 | |
68f2de6d | 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10661 | (exit $ac_status); } && { |
10662 | test -z "$ac_c_werror_flag" || | |
10663 | test ! -s conftest.err | |
10664 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10665 | ac_header_compiler=yes |
80992638 | 10666 | else |
68f2de6d | 10667 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10668 | sed 's/^/| /' conftest.$ac_ext >&5 |
10669 | ||
7a197a62 | 10670 | ac_header_compiler=no |
ad6254c5 | 10671 | fi |
7a197a62 AK |
10672 | |
10673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10674 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10675 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10676 | |
10677 | # Is the header present? | |
68f2de6d AK |
10678 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10679 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10680 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10681 | /* confdefs.h. */ |
10682 | _ACEOF | |
10683 | cat confdefs.h >>conftest.$ac_ext | |
10684 | cat >>conftest.$ac_ext <<_ACEOF | |
10685 | /* end confdefs.h. */ | |
10686 | #include <$ac_header> | |
10687 | _ACEOF | |
7a197a62 AK |
10688 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10689 | case "(($ac_try" in | |
10690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10691 | *) ac_try_echo=$ac_try;; | |
10692 | esac | |
68f2de6d | 10693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10695 | ac_status=$? |
10696 | grep -v '^ *+' conftest.er1 >conftest.err | |
10697 | rm -f conftest.er1 | |
10698 | cat conftest.err >&5 | |
68f2de6d | 10699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10700 | (exit $ac_status); } >/dev/null && { |
10701 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10702 | test ! -s conftest.err | |
10703 | }; then | |
ad6254c5 AK |
10704 | ac_header_preproc=yes |
10705 | else | |
68f2de6d | 10706 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10707 | sed 's/^/| /' conftest.$ac_ext >&5 |
10708 | ||
10709 | ac_header_preproc=no | |
10710 | fi | |
7a197a62 | 10711 | |
ad6254c5 | 10712 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10713 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10714 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10715 | |
10716 | # So? What about this header? | |
8a2fc586 AK |
10717 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10718 | yes:no: ) | |
68f2de6d AK |
10719 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10720 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10722 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10723 | ac_header_preproc=yes |
ad6254c5 | 10724 | ;; |
8a2fc586 | 10725 | no:yes:* ) |
68f2de6d AK |
10726 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10727 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10728 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10729 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10731 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10733 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10737 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10738 | |
ad6254c5 AK |
10739 | ;; |
10740 | esac | |
68f2de6d AK |
10741 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10745 | else |
8a2fc586 | 10746 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10747 | fi |
68f2de6d AK |
10748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10750 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10751 | |
795ca3e5 | 10752 | fi |
68f2de6d | 10753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10754 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10756 | _ACEOF |
10757 | ||
795ca3e5 AK |
10758 | fi |
10759 | ||
ad6254c5 AK |
10760 | done |
10761 | ||
68f2de6d AK |
10762 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10763 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10764 | if test "${ac_cv_func_select_args+set}" = set; then |
68f2de6d | 10765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10766 | else |
ad6254c5 | 10767 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10768 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10769 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10770 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10771 | /* confdefs.h. */ |
10772 | _ACEOF | |
10773 | cat confdefs.h >>conftest.$ac_ext | |
10774 | cat >>conftest.$ac_ext <<_ACEOF | |
10775 | /* end confdefs.h. */ | |
10776 | $ac_includes_default | |
25fbec5b | 10777 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10778 | # include <sys/select.h> |
10779 | #endif | |
25fbec5b | 10780 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10781 | # include <sys/socket.h> |
10782 | #endif | |
10783 | ||
10784 | int | |
10785 | main () | |
10786 | { | |
10787 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10788 | $ac_arg234, $ac_arg234, $ac_arg234, |
10789 | $ac_arg5); | |
ad6254c5 AK |
10790 | ; |
10791 | return 0; | |
10792 | } | |
10793 | _ACEOF | |
10794 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10795 | if { (ac_try="$ac_compile" |
10796 | case "(($ac_try" in | |
10797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10798 | *) ac_try_echo=$ac_try;; | |
10799 | esac | |
68f2de6d | 10800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10801 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10802 | ac_status=$? |
8a2fc586 AK |
10803 | grep -v '^ *+' conftest.er1 >conftest.err |
10804 | rm -f conftest.er1 | |
10805 | cat conftest.err >&5 | |
68f2de6d | 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10807 | (exit $ac_status); } && { |
10808 | test -z "$ac_c_werror_flag" || | |
10809 | test ! -s conftest.err | |
10810 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10811 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10812 | else | |
68f2de6d | 10813 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10814 | sed 's/^/| /' conftest.$ac_ext >&5 |
10815 | ||
7a197a62 | 10816 | |
ad6254c5 | 10817 | fi |
7a197a62 AK |
10818 | |
10819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10820 | done |
10821 | done | |
10822 | done | |
10823 | # Provide a safe default value. | |
10824 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10825 | ||
26e7f2e0 | 10826 | fi |
68f2de6d AK |
10827 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10828 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10829 | ac_save_IFS=$IFS; IFS=',' |
10830 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10831 | IFS=$ac_save_IFS | |
10832 | shift | |
10833 | ||
10834 | cat >>confdefs.h <<_ACEOF | |
10835 | #define SELECT_TYPE_ARG1 $1 | |
10836 | _ACEOF | |
10837 | ||
10838 | ||
10839 | cat >>confdefs.h <<_ACEOF | |
10840 | #define SELECT_TYPE_ARG234 ($2) | |
10841 | _ACEOF | |
10842 | ||
10843 | ||
10844 | cat >>confdefs.h <<_ACEOF | |
10845 | #define SELECT_TYPE_ARG5 ($3) | |
10846 | _ACEOF | |
10847 | ||
80992638 | 10848 | rm -f conftest* |
80992638 | 10849 | |
8106cdd5 | 10850 | fi |
ad6254c5 | 10851 | |
ad6254c5 AK |
10852 | if test x$CLUSTER != xnone; then |
10853 | ||
10854 | ||
10855 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10856 | do |
68f2de6d | 10857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10859 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10863 | fi |
68f2de6d AK |
10864 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10865 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10866 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10867 | else |
10868 | # Is the header compilable? | |
68f2de6d AK |
10869 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10871 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10872 | /* confdefs.h. */ |
10873 | _ACEOF | |
10874 | cat confdefs.h >>conftest.$ac_ext | |
10875 | cat >>conftest.$ac_ext <<_ACEOF | |
10876 | /* end confdefs.h. */ | |
10877 | $ac_includes_default | |
10878 | #include <$ac_header> | |
10879 | _ACEOF | |
10880 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10881 | if { (ac_try="$ac_compile" |
10882 | case "(($ac_try" in | |
10883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10884 | *) ac_try_echo=$ac_try;; | |
10885 | esac | |
68f2de6d | 10886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10887 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10888 | ac_status=$? |
8a2fc586 AK |
10889 | grep -v '^ *+' conftest.er1 >conftest.err |
10890 | rm -f conftest.er1 | |
10891 | cat conftest.err >&5 | |
68f2de6d | 10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10893 | (exit $ac_status); } && { |
10894 | test -z "$ac_c_werror_flag" || | |
10895 | test ! -s conftest.err | |
10896 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10897 | ac_header_compiler=yes |
10898 | else | |
68f2de6d | 10899 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10900 | sed 's/^/| /' conftest.$ac_ext >&5 |
10901 | ||
7a197a62 | 10902 | ac_header_compiler=no |
ad6254c5 | 10903 | fi |
7a197a62 AK |
10904 | |
10905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10906 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10907 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10908 | |
10909 | # Is the header present? | |
68f2de6d AK |
10910 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10911 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10912 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10913 | /* confdefs.h. */ |
10914 | _ACEOF | |
10915 | cat confdefs.h >>conftest.$ac_ext | |
10916 | cat >>conftest.$ac_ext <<_ACEOF | |
10917 | /* end confdefs.h. */ | |
10918 | #include <$ac_header> | |
10919 | _ACEOF | |
7a197a62 AK |
10920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10921 | case "(($ac_try" in | |
10922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10923 | *) ac_try_echo=$ac_try;; | |
10924 | esac | |
68f2de6d | 10925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10927 | ac_status=$? |
10928 | grep -v '^ *+' conftest.er1 >conftest.err | |
10929 | rm -f conftest.er1 | |
10930 | cat conftest.err >&5 | |
68f2de6d | 10931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10932 | (exit $ac_status); } >/dev/null && { |
10933 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10934 | test ! -s conftest.err | |
10935 | }; then | |
ad6254c5 AK |
10936 | ac_header_preproc=yes |
10937 | else | |
68f2de6d | 10938 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10939 | sed 's/^/| /' conftest.$ac_ext >&5 |
10940 | ||
10941 | ac_header_preproc=no | |
10942 | fi | |
7a197a62 | 10943 | |
ad6254c5 | 10944 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10945 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10946 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10947 | |
10948 | # So? What about this header? | |
8a2fc586 AK |
10949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10950 | yes:no: ) | |
68f2de6d AK |
10951 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10952 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10953 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10954 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10955 | ac_header_preproc=yes |
ad6254c5 | 10956 | ;; |
8a2fc586 | 10957 | no:yes:* ) |
68f2de6d AK |
10958 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10959 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10960 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10961 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10962 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10963 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10964 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10965 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10967 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10968 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10969 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10970 | |
ad6254c5 AK |
10971 | ;; |
10972 | esac | |
68f2de6d AK |
10973 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10975 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10977 | else |
8a2fc586 | 10978 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10979 | fi |
68f2de6d AK |
10980 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10982 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10983 | |
10984 | fi | |
68f2de6d | 10985 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10986 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10987 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10988 | _ACEOF |
10989 | ||
80992638 | 10990 | else |
68f2de6d AK |
10991 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10992 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10993 | { (exit 1); exit 1; }; } |
b896caa1 | 10994 | fi |
ad6254c5 | 10995 | |
b896caa1 AK |
10996 | done |
10997 | ||
10998 | ||
ad6254c5 AK |
10999 | for ac_func in socket |
11000 | do | |
68f2de6d AK |
11001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11002 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 11004 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 11006 | else |
ad6254c5 | 11007 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11008 | /* confdefs.h. */ |
11009 | _ACEOF | |
11010 | cat confdefs.h >>conftest.$ac_ext | |
11011 | cat >>conftest.$ac_ext <<_ACEOF | |
11012 | /* end confdefs.h. */ | |
8a2fc586 AK |
11013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11015 | #define $ac_func innocuous_$ac_func | |
11016 | ||
ad6254c5 AK |
11017 | /* System header to define __stub macros and hopefully few prototypes, |
11018 | which can conflict with char $ac_func (); below. | |
11019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11020 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11021 | |
ad6254c5 AK |
11022 | #ifdef __STDC__ |
11023 | # include <limits.h> | |
11024 | #else | |
11025 | # include <assert.h> | |
11026 | #endif | |
8a2fc586 AK |
11027 | |
11028 | #undef $ac_func | |
11029 | ||
7a197a62 AK |
11030 | /* Override any GCC internal prototype to avoid an error. |
11031 | Use char because int might match the return type of a GCC | |
11032 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11033 | #ifdef __cplusplus |
11034 | extern "C" | |
ad6254c5 | 11035 | #endif |
ad6254c5 AK |
11036 | char $ac_func (); |
11037 | /* The GNU C library defines this for functions which it implements | |
11038 | to always fail with ENOSYS. Some functions are actually named | |
11039 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11040 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11041 | choke me |
ad6254c5 AK |
11042 | #endif |
11043 | ||
11044 | int | |
11045 | main () | |
11046 | { | |
7a197a62 | 11047 | return $ac_func (); |
ad6254c5 AK |
11048 | ; |
11049 | return 0; | |
11050 | } | |
11051 | _ACEOF | |
11052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11053 | if { (ac_try="$ac_link" |
11054 | case "(($ac_try" in | |
11055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11056 | *) ac_try_echo=$ac_try;; | |
11057 | esac | |
68f2de6d | 11058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11059 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11060 | ac_status=$? |
8a2fc586 AK |
11061 | grep -v '^ *+' conftest.er1 >conftest.err |
11062 | rm -f conftest.er1 | |
11063 | cat conftest.err >&5 | |
68f2de6d | 11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11065 | (exit $ac_status); } && { |
11066 | test -z "$ac_c_werror_flag" || | |
11067 | test ! -s conftest.err | |
68f2de6d AK |
11068 | } && test -s conftest$ac_exeext && |
11069 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
11070 | eval "$as_ac_var=yes" |
11071 | else | |
68f2de6d | 11072 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11073 | sed 's/^/| /' conftest.$ac_ext >&5 |
11074 | ||
7a197a62 | 11075 | eval "$as_ac_var=no" |
ad6254c5 | 11076 | fi |
7a197a62 | 11077 | |
25fbec5b | 11078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11079 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11080 | fi |
68f2de6d AK |
11081 | ac_res=`eval echo '${'$as_ac_var'}'` |
11082 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11083 | echo "${ECHO_T}$ac_res" >&6; } | |
11084 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 11085 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11086 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11087 | _ACEOF |
11088 | ||
11089 | else | |
68f2de6d AK |
11090 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11091 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11092 | { (exit 1); exit 1; }; } |
11093 | fi | |
11094 | done | |
11095 | ||
11096 | fi | |
11097 | ||
11098 | if test x$HAVE_LIBDL = xyes; then | |
11099 | ||
11100 | for ac_header in dlfcn.h | |
11101 | do | |
68f2de6d | 11102 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11103 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11104 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11108 | fi |
68f2de6d AK |
11109 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11110 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11111 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11112 | else |
11113 | # Is the header compilable? | |
68f2de6d AK |
11114 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11115 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11116 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11117 | /* confdefs.h. */ |
11118 | _ACEOF | |
11119 | cat confdefs.h >>conftest.$ac_ext | |
11120 | cat >>conftest.$ac_ext <<_ACEOF | |
11121 | /* end confdefs.h. */ | |
11122 | $ac_includes_default | |
11123 | #include <$ac_header> | |
11124 | _ACEOF | |
11125 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11126 | if { (ac_try="$ac_compile" |
11127 | case "(($ac_try" in | |
11128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11129 | *) ac_try_echo=$ac_try;; | |
11130 | esac | |
68f2de6d | 11131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11132 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11133 | ac_status=$? |
8a2fc586 AK |
11134 | grep -v '^ *+' conftest.er1 >conftest.err |
11135 | rm -f conftest.er1 | |
11136 | cat conftest.err >&5 | |
68f2de6d | 11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11138 | (exit $ac_status); } && { |
11139 | test -z "$ac_c_werror_flag" || | |
11140 | test ! -s conftest.err | |
11141 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11142 | ac_header_compiler=yes |
11143 | else | |
68f2de6d | 11144 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11145 | sed 's/^/| /' conftest.$ac_ext >&5 |
11146 | ||
7a197a62 | 11147 | ac_header_compiler=no |
ad6254c5 | 11148 | fi |
7a197a62 AK |
11149 | |
11150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11151 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11152 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11153 | |
11154 | # Is the header present? | |
68f2de6d AK |
11155 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11156 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11157 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11158 | /* confdefs.h. */ |
11159 | _ACEOF | |
11160 | cat confdefs.h >>conftest.$ac_ext | |
11161 | cat >>conftest.$ac_ext <<_ACEOF | |
11162 | /* end confdefs.h. */ | |
11163 | #include <$ac_header> | |
11164 | _ACEOF | |
7a197a62 AK |
11165 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11166 | case "(($ac_try" in | |
11167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11168 | *) ac_try_echo=$ac_try;; | |
11169 | esac | |
68f2de6d | 11170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11172 | ac_status=$? |
11173 | grep -v '^ *+' conftest.er1 >conftest.err | |
11174 | rm -f conftest.er1 | |
11175 | cat conftest.err >&5 | |
68f2de6d | 11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11177 | (exit $ac_status); } >/dev/null && { |
11178 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11179 | test ! -s conftest.err | |
11180 | }; then | |
ad6254c5 AK |
11181 | ac_header_preproc=yes |
11182 | else | |
68f2de6d | 11183 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11184 | sed 's/^/| /' conftest.$ac_ext >&5 |
11185 | ||
11186 | ac_header_preproc=no | |
11187 | fi | |
7a197a62 | 11188 | |
ad6254c5 | 11189 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11190 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11191 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11192 | |
11193 | # So? What about this header? | |
8a2fc586 AK |
11194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11195 | yes:no: ) | |
68f2de6d AK |
11196 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11197 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11199 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11200 | ac_header_preproc=yes |
ad6254c5 | 11201 | ;; |
8a2fc586 | 11202 | no:yes:* ) |
68f2de6d AK |
11203 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11204 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11205 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11206 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11207 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11208 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11209 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11210 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11212 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11213 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11214 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11215 | |
ad6254c5 AK |
11216 | ;; |
11217 | esac | |
68f2de6d AK |
11218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11222 | else |
8a2fc586 | 11223 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11224 | fi |
68f2de6d AK |
11225 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11226 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11227 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 11228 | |
8106cdd5 | 11229 | fi |
68f2de6d | 11230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11231 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11233 | _ACEOF |
795ca3e5 AK |
11234 | |
11235 | else | |
68f2de6d AK |
11236 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11237 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11238 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11239 | fi |
11240 | ||
ad6254c5 | 11241 | done |
80992638 | 11242 | |
ad6254c5 | 11243 | fi |
80992638 | 11244 | |
ad6254c5 | 11245 | if test x$INTL = xyes; then |
83912faa | 11246 | |
ad6254c5 AK |
11247 | for ac_header in libintl.h |
11248 | do | |
68f2de6d | 11249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11251 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11253 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11255 | fi |
68f2de6d AK |
11256 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11258 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11259 | else |
ad6254c5 | 11260 | # Is the header compilable? |
68f2de6d AK |
11261 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11262 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11263 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11264 | /* confdefs.h. */ |
11265 | _ACEOF | |
11266 | cat confdefs.h >>conftest.$ac_ext | |
11267 | cat >>conftest.$ac_ext <<_ACEOF | |
11268 | /* end confdefs.h. */ | |
11269 | $ac_includes_default | |
11270 | #include <$ac_header> | |
11271 | _ACEOF | |
11272 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11273 | if { (ac_try="$ac_compile" |
11274 | case "(($ac_try" in | |
11275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11276 | *) ac_try_echo=$ac_try;; | |
11277 | esac | |
68f2de6d | 11278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11279 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11280 | ac_status=$? |
8a2fc586 AK |
11281 | grep -v '^ *+' conftest.er1 >conftest.err |
11282 | rm -f conftest.er1 | |
11283 | cat conftest.err >&5 | |
68f2de6d | 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11285 | (exit $ac_status); } && { |
11286 | test -z "$ac_c_werror_flag" || | |
11287 | test ! -s conftest.err | |
11288 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11289 | ac_header_compiler=yes |
11290 | else | |
68f2de6d | 11291 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11292 | sed 's/^/| /' conftest.$ac_ext >&5 |
11293 | ||
7a197a62 | 11294 | ac_header_compiler=no |
ad6254c5 | 11295 | fi |
7a197a62 AK |
11296 | |
11297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11298 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11299 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11300 | |
11301 | # Is the header present? | |
68f2de6d AK |
11302 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11304 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11305 | /* confdefs.h. */ |
11306 | _ACEOF | |
11307 | cat confdefs.h >>conftest.$ac_ext | |
11308 | cat >>conftest.$ac_ext <<_ACEOF | |
11309 | /* end confdefs.h. */ | |
11310 | #include <$ac_header> | |
11311 | _ACEOF | |
7a197a62 AK |
11312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11313 | case "(($ac_try" in | |
11314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11315 | *) ac_try_echo=$ac_try;; | |
11316 | esac | |
68f2de6d | 11317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11319 | ac_status=$? |
11320 | grep -v '^ *+' conftest.er1 >conftest.err | |
11321 | rm -f conftest.er1 | |
11322 | cat conftest.err >&5 | |
68f2de6d | 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11324 | (exit $ac_status); } >/dev/null && { |
11325 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11326 | test ! -s conftest.err | |
11327 | }; then | |
ad6254c5 AK |
11328 | ac_header_preproc=yes |
11329 | else | |
68f2de6d | 11330 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11331 | sed 's/^/| /' conftest.$ac_ext >&5 |
11332 | ||
11333 | ac_header_preproc=no | |
11334 | fi | |
7a197a62 | 11335 | |
ad6254c5 | 11336 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11337 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11338 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11339 | |
11340 | # So? What about this header? | |
8a2fc586 AK |
11341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11342 | yes:no: ) | |
68f2de6d AK |
11343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11347 | ac_header_preproc=yes |
ad6254c5 | 11348 | ;; |
8a2fc586 | 11349 | no:yes:* ) |
68f2de6d AK |
11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11362 | |
ad6254c5 AK |
11363 | ;; |
11364 | esac | |
68f2de6d AK |
11365 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11369 | else |
8a2fc586 | 11370 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11371 | fi |
68f2de6d AK |
11372 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11374 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11375 | |
69792976 | 11376 | fi |
68f2de6d | 11377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11378 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11380 | _ACEOF |
69792976 | 11381 | |
69792976 | 11382 | else |
68f2de6d AK |
11383 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11384 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11385 | { (exit 1); exit 1; }; } |
80992638 AK |
11386 | fi |
11387 | ||
ad6254c5 | 11388 | done |
69792976 | 11389 | |
ad6254c5 AK |
11390 | fi |
11391 | ||
ad6254c5 AK |
11392 | if test x$HAVE_SELINUX = xyes; then |
11393 | ||
11394 | for ac_header in selinux/selinux.h | |
11395 | do | |
68f2de6d | 11396 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11398 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11399 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11400 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11402 | fi |
68f2de6d AK |
11403 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11405 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11406 | else |
ad6254c5 | 11407 | # Is the header compilable? |
68f2de6d AK |
11408 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11409 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11410 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11411 | /* confdefs.h. */ |
11412 | _ACEOF | |
11413 | cat confdefs.h >>conftest.$ac_ext | |
11414 | cat >>conftest.$ac_ext <<_ACEOF | |
11415 | /* end confdefs.h. */ | |
11416 | $ac_includes_default | |
11417 | #include <$ac_header> | |
11418 | _ACEOF | |
11419 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11420 | if { (ac_try="$ac_compile" |
11421 | case "(($ac_try" in | |
11422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11423 | *) ac_try_echo=$ac_try;; | |
11424 | esac | |
68f2de6d | 11425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11426 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11427 | ac_status=$? |
8a2fc586 AK |
11428 | grep -v '^ *+' conftest.er1 >conftest.err |
11429 | rm -f conftest.er1 | |
11430 | cat conftest.err >&5 | |
68f2de6d | 11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11432 | (exit $ac_status); } && { |
11433 | test -z "$ac_c_werror_flag" || | |
11434 | test ! -s conftest.err | |
11435 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11436 | ac_header_compiler=yes |
11437 | else | |
68f2de6d | 11438 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11439 | sed 's/^/| /' conftest.$ac_ext >&5 |
11440 | ||
7a197a62 | 11441 | ac_header_compiler=no |
ad6254c5 | 11442 | fi |
7a197a62 AK |
11443 | |
11444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11445 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11446 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11447 | |
11448 | # Is the header present? | |
68f2de6d AK |
11449 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11450 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11451 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11452 | /* confdefs.h. */ |
11453 | _ACEOF | |
11454 | cat confdefs.h >>conftest.$ac_ext | |
11455 | cat >>conftest.$ac_ext <<_ACEOF | |
11456 | /* end confdefs.h. */ | |
11457 | #include <$ac_header> | |
11458 | _ACEOF | |
7a197a62 AK |
11459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11460 | case "(($ac_try" in | |
11461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11462 | *) ac_try_echo=$ac_try;; | |
11463 | esac | |
68f2de6d | 11464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11466 | ac_status=$? |
11467 | grep -v '^ *+' conftest.er1 >conftest.err | |
11468 | rm -f conftest.er1 | |
11469 | cat conftest.err >&5 | |
68f2de6d | 11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11471 | (exit $ac_status); } >/dev/null && { |
11472 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11473 | test ! -s conftest.err | |
11474 | }; then | |
ad6254c5 AK |
11475 | ac_header_preproc=yes |
11476 | else | |
68f2de6d | 11477 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11478 | sed 's/^/| /' conftest.$ac_ext >&5 |
11479 | ||
11480 | ac_header_preproc=no | |
11481 | fi | |
7a197a62 | 11482 | |
ad6254c5 | 11483 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11484 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11485 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11486 | |
11487 | # So? What about this header? | |
8a2fc586 AK |
11488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11489 | yes:no: ) | |
68f2de6d AK |
11490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11494 | ac_header_preproc=yes |
ad6254c5 | 11495 | ;; |
8a2fc586 | 11496 | no:yes:* ) |
68f2de6d AK |
11497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11509 | |
ad6254c5 AK |
11510 | ;; |
11511 | esac | |
68f2de6d AK |
11512 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11513 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11516 | else |
8a2fc586 | 11517 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11518 | fi |
68f2de6d AK |
11519 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11520 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11521 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11522 | |
ad6254c5 | 11523 | fi |
68f2de6d | 11524 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11525 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11526 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11527 | _ACEOF |
0a62c911 | 11528 | |
0a62c911 | 11529 | else |
68f2de6d AK |
11530 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11531 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11532 | { (exit 1); exit 1; }; } |
80992638 AK |
11533 | fi |
11534 | ||
ad6254c5 | 11535 | done |
0a62c911 | 11536 | |
ad6254c5 | 11537 | fi |
0a62c911 | 11538 | |
a653923f AK |
11539 | ################################################################################ |
11540 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11541 | set dummy modprobe; ac_word=$2 | |
68f2de6d AK |
11542 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11544 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
68f2de6d | 11545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11546 | else |
11547 | case $MODPROBE_CMD in | |
11548 | [\\/]* | ?:[\\/]*) | |
11549 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11550 | ;; | |
11551 | *) | |
11552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11553 | for as_dir in $PATH | |
11554 | do | |
11555 | IFS=$as_save_IFS | |
11556 | test -z "$as_dir" && as_dir=. | |
11557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11559 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 11560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11561 | break 2 |
11562 | fi | |
11563 | done | |
11564 | done | |
7a197a62 | 11565 | IFS=$as_save_IFS |
72b2cb61 AK |
11566 | |
11567 | ;; | |
11568 | esac | |
11569 | fi | |
11570 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11571 | if test -n "$MODPROBE_CMD"; then |
68f2de6d AK |
11572 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11573 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11574 | else |
68f2de6d AK |
11575 | { echo "$as_me:$LINENO: result: no" >&5 |
11576 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11577 | fi |
11578 | ||
a653923f | 11579 | |
7a197a62 | 11580 | |
a653923f | 11581 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11582 | |
11583 | cat >>confdefs.h <<_ACEOF | |
11584 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11585 | _ACEOF | |
11586 | ||
a653923f AK |
11587 | fi |
11588 | ||
80992638 | 11589 | ################################################################################ |
93bd259b AK |
11590 | |
11591 | ||
11592 | if test "$BUILD_DMEVENTD" = yes; then | |
11593 | ||
11594 | # Check whether --with-dmeventd-pidfile was given. | |
11595 | if test "${with_dmeventd_pidfile+set}" = set; then | |
11596 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
11597 | #define DMEVENTD_PIDFILE "$withval" | |
11598 | _ACEOF | |
11599 | ||
11600 | else | |
11601 | cat >>confdefs.h <<_ACEOF | |
11602 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
11603 | _ACEOF | |
11604 | ||
11605 | fi | |
11606 | ||
11607 | fi | |
11608 | ||
11609 | ||
11610 | ||
11611 | if test "$BUILD_DMEVENTD" = yes; then | |
11612 | dmeventd_prefix="$exec_prefix" | |
11613 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11614 | dmeventd_prefix="$prefix" | |
11615 | fi | |
11616 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11617 | dmeventd_prefix="" | |
11618 | fi | |
11619 | ||
11620 | # Check whether --with-dmeventd-path was given. | |
11621 | if test "${with_dmeventd_path+set}" = set; then | |
11622 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
11623 | #define DMEVENTD_PATH "$withval" | |
11624 | _ACEOF | |
11625 | ||
11626 | else | |
11627 | cat >>confdefs.h <<_ACEOF | |
11628 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
11629 | _ACEOF | |
11630 | ||
11631 | fi | |
11632 | ||
11633 | fi | |
11634 | ||
11635 | ################################################################################ | |
11636 | { echo "$as_me:$LINENO: checking for kernel interface choice" >&5 | |
11637 | echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; } | |
11638 | ||
11639 | # Check whether --with-interface was given. | |
11640 | if test "${with_interface+set}" = set; then | |
11641 | withval=$with_interface; interface="$withval" | |
11642 | else | |
11643 | interface=ioctl | |
11644 | fi | |
11645 | ||
11646 | if [ "x$interface" != xioctl ]; | |
11647 | then | |
11648 | { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 | |
11649 | echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
11650 | { (exit 1); exit 1; }; } | |
11651 | fi | |
11652 | { echo "$as_me:$LINENO: result: $interface" >&5 | |
11653 | echo "${ECHO_T}$interface" >&6; } | |
11654 | ||
11655 | ################################################################################ | |
2c44337b | 11656 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
11657 | |
11658 | cat >>confdefs.h <<_ACEOF | |
11659 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
11660 | _ACEOF | |
11661 | ||
11662 | ||
2c44337b | 11663 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | awk -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 11664 | |
d0191583 | 11665 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11666 | |
80992638 | 11667 | ################################################################################ |
fae0c576 | 11668 | |
83912faa | 11669 | |
795ca3e5 AK |
11670 | |
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
5a52dca9 | 11676 | |
8ef2b021 | 11677 | |
199e490e | 11678 | |
69792976 AK |
11679 | |
11680 | ||
11681 | ||
d0191583 | 11682 | |
69792976 | 11683 | |
8106cdd5 AK |
11684 | |
11685 | ||
11686 | ||
11687 | ||
11688 | ||
d68a82ec | 11689 | |
036f273a | 11690 | |
7d1552c9 | 11691 | |
8106cdd5 | 11692 | |
0a62c911 | 11693 | |
8106cdd5 | 11694 | |
4a7f3eb2 | 11695 | |
4922197a AK |
11696 | |
11697 | ||
d8ac0fbc | 11698 | |
1a9ea74d | 11699 | |
8a2fc586 AK |
11700 | |
11701 | ||
d0191583 | 11702 | |
93bd259b AK |
11703 | |
11704 | ||
11705 | ||
11706 | ||
11707 | ||
d0191583 JM |
11708 | |
11709 | ||
11710 | ||
11711 | ||
11712 | ||
8a2fc586 | 11713 | |
8ce0cbda | 11714 | |
8b1a3214 | 11715 | |
33f732c5 | 11716 | |
66e941e8 | 11717 | |
d3c8211f | 11718 | |
7e3fe830 | 11719 | |
68f2de6d AK |
11720 | |
11721 | ||
80992638 | 11722 | ################################################################################ |
75ad7143 | 11723 | 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/clvmd_init_red_hat scripts/Makefile test/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11724 | |
ad6254c5 | 11725 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11726 | # This file is a shell script that caches the results of configure |
11727 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11728 | # scripts and configure runs, see configure's option --config-cache. |
11729 | # It is not useful on other systems. If it contains results you don't | |
11730 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11731 | # |
ad6254c5 AK |
11732 | # config.status only pays attention to the cache file if you give it |
11733 | # the --recheck option to rerun configure. | |
795ca3e5 | 11734 | # |
ad6254c5 AK |
11735 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11736 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11737 | # following values. | |
11738 | ||
11739 | _ACEOF | |
11740 | ||
795ca3e5 AK |
11741 | # The following way of writing the cache mishandles newlines in values, |
11742 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11743 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11744 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11745 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11746 | ( |
11747 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11748 | eval ac_val=\$$ac_var | |
11749 | case $ac_val in #( | |
11750 | *${as_nl}*) | |
11751 | case $ac_var in #( | |
68f2de6d AK |
11752 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11753 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11754 | esac |
11755 | case $ac_var in #( | |
11756 | _ | IFS | as_nl) ;; #( | |
11757 | *) $as_unset $ac_var ;; | |
11758 | esac ;; | |
11759 | esac | |
11760 | done | |
11761 | ||
ad6254c5 | 11762 | (set) 2>&1 | |
7a197a62 AK |
11763 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11764 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11765 | # `set' does not quote correctly, so add quotes (double-quote |
11766 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11767 | sed -n \ | |
8a2fc586 AK |
11768 | "s/'/'\\\\''/g; |
11769 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11770 | ;; #( |
ad6254c5 AK |
11771 | *) |
11772 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11773 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11774 | ;; |
7a197a62 AK |
11775 | esac | |
11776 | sort | |
11777 | ) | | |
ad6254c5 | 11778 | sed ' |
7a197a62 | 11779 | /^ac_cv_env_/b end |
ad6254c5 | 11780 | t clear |
7a197a62 | 11781 | :clear |
ad6254c5 AK |
11782 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11783 | t end | |
7a197a62 AK |
11784 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11785 | :end' >>confcache | |
11786 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11787 | if test -w "$cache_file"; then | |
11788 | test "x$cache_file" != "x/dev/null" && | |
68f2de6d AK |
11789 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11790 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11791 | cat confcache >$cache_file |
795ca3e5 | 11792 | else |
68f2de6d AK |
11793 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11794 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11795 | fi |
11796 | fi | |
11797 | rm -f confcache | |
11798 | ||
795ca3e5 AK |
11799 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11800 | # Let make expand exec_prefix. | |
11801 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11802 | ||
72b2cb61 | 11803 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11804 | |
11805 | ac_libobjs= | |
11806 | ac_ltlibobjs= | |
11807 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11808 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11809 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
68f2de6d | 11810 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11811 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11812 | # will be set to the directory where LIBOBJS objects are built. | |
11813 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11814 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11815 | done |
11816 | LIBOBJS=$ac_libobjs | |
80992638 | 11817 | |
ad6254c5 AK |
11818 | LTLIBOBJS=$ac_ltlibobjs |
11819 | ||
11820 | ||
11821 | ||
11822 | : ${CONFIG_STATUS=./config.status} | |
11823 | ac_clean_files_save=$ac_clean_files | |
11824 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
68f2de6d AK |
11825 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11826 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11827 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11828 | #! $SHELL |
11829 | # Generated by $as_me. | |
795ca3e5 | 11830 | # Run this file to recreate the current configuration. |
795ca3e5 | 11831 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11832 | # configure, is in config.log if it exists. |
11833 | ||
11834 | debug=false | |
11835 | ac_cs_recheck=false | |
11836 | ac_cs_silent=false | |
11837 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11838 | _ACEOF | |
11839 | ||
68f2de6d | 11840 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11841 | ## --------------------- ## |
11842 | ## M4sh Initialization. ## | |
11843 | ## --------------------- ## | |
11844 | ||
25fbec5b AK |
11845 | # Be more Bourne compatible |
11846 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11847 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11848 | emulate sh | |
11849 | NULLCMD=: | |
68f2de6d | 11850 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11851 | # is contrary to our usage. Disable this feature. |
11852 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11853 | setopt NO_GLOB_SUBST |
11854 | else | |
25fbec5b AK |
11855 | case `(set -o) 2>/dev/null` in |
11856 | *posix*) set -o posix ;; | |
11857 | esac | |
11858 | ||
7a197a62 | 11859 | fi |
25fbec5b AK |
11860 | |
11861 | ||
7a197a62 AK |
11862 | |
11863 | ||
11864 | # PATH needs CR | |
11865 | # Avoid depending upon Character Ranges. | |
11866 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11867 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11868 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11869 | as_cr_digits='0123456789' | |
11870 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11871 | ||
b145d876 ZK |
11872 | # The user is always right. |
11873 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d AK |
11874 | echo "#! /bin/sh" >conf$$.sh |
11875 | echo "exit 0" >>conf$$.sh | |
11876 | chmod +x conf$$.sh | |
11877 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11878 | PATH_SEPARATOR=';' | |
11879 | else | |
11880 | PATH_SEPARATOR=: | |
11881 | fi | |
11882 | rm -f conf$$.sh | |
ad6254c5 AK |
11883 | fi |
11884 | ||
11885 | # Support unset when possible. | |
8a2fc586 | 11886 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11887 | as_unset=unset |
11888 | else | |
11889 | as_unset=false | |
11890 | fi | |
8106cdd5 | 11891 | |
ad6254c5 | 11892 | |
7a197a62 AK |
11893 | # IFS |
11894 | # We need space, tab and new line, in precisely that order. Quoting is | |
11895 | # there to prevent editors from complaining about space-tab. | |
11896 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11897 | # splitting by setting IFS to empty value.) | |
68f2de6d AK |
11898 | as_nl=' |
11899 | ' | |
7a197a62 AK |
11900 | IFS=" "" $as_nl" |
11901 | ||
11902 | # Find who we are. Look in the path if we contain no directory separator. | |
11903 | case $0 in | |
11904 | *[\\/]* ) as_myself=$0 ;; | |
11905 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11906 | for as_dir in $PATH | |
11907 | do | |
11908 | IFS=$as_save_IFS | |
11909 | test -z "$as_dir" && as_dir=. | |
11910 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11911 | done | |
11912 | IFS=$as_save_IFS | |
11913 | ||
11914 | ;; | |
11915 | esac | |
11916 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11917 | # in which case we are not to be found in the path. | |
11918 | if test "x$as_myself" = x; then | |
11919 | as_myself=$0 | |
11920 | fi | |
11921 | if test ! -f "$as_myself"; then | |
68f2de6d | 11922 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11923 | { (exit 1); exit 1; } |
11924 | fi | |
11925 | ||
ad6254c5 | 11926 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11927 | for as_var in ENV MAIL MAILPATH |
11928 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11929 | done | |
ad6254c5 AK |
11930 | PS1='$ ' |
11931 | PS2='> ' | |
11932 | PS4='+ ' | |
11933 | ||
11934 | # NLS nuisances. | |
68f2de6d AK |
11935 | for as_var in \ |
11936 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11937 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11938 | LC_TELEPHONE LC_TIME | |
11939 | do | |
11940 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11941 | eval $as_var=C; export $as_var | |
11942 | else | |
11943 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11944 | fi | |
11945 | done | |
8106cdd5 | 11946 | |
ad6254c5 | 11947 | # Required to use basename. |
7a197a62 AK |
11948 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11949 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11950 | as_expr=expr |
11951 | else | |
11952 | as_expr=false | |
11953 | fi | |
8106cdd5 | 11954 | |
7a197a62 | 11955 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11956 | as_basename=basename |
11957 | else | |
11958 | as_basename=false | |
11959 | fi | |
11960 | ||
11961 | ||
11962 | # Name of the executable. | |
7a197a62 | 11963 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11964 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11965 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11966 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 11967 | echo X/"$0" | |
7a197a62 AK |
11968 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11969 | s//\1/ | |
11970 | q | |
11971 | } | |
11972 | /^X\/\(\/\/\)$/{ | |
11973 | s//\1/ | |
11974 | q | |
11975 | } | |
11976 | /^X\/\(\/\).*/{ | |
11977 | s//\1/ | |
11978 | q | |
11979 | } | |
11980 | s/.*/./; q'` | |
ad6254c5 | 11981 | |
7a197a62 AK |
11982 | # CDPATH. |
11983 | $as_unset CDPATH | |
ad6254c5 AK |
11984 | |
11985 | ||
ad6254c5 | 11986 | |
ad6254c5 AK |
11987 | as_lineno_1=$LINENO |
11988 | as_lineno_2=$LINENO | |
ad6254c5 | 11989 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11990 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11991 | |
ad6254c5 AK |
11992 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11993 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11994 | # line-number line after each line using $LINENO; the second 'sed' |
11995 | # does the real work. The second script uses 'N' to pair each | |
11996 | # line-number line with the line containing $LINENO, and appends | |
11997 | # trailing '-' during substitution so that $LINENO is not a special | |
11998 | # case at line end. | |
ad6254c5 | 11999 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12000 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12001 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12002 | sed -n ' | |
12003 | p | |
12004 | /[$]LINENO/= | |
12005 | ' <$as_myself | | |
ad6254c5 | 12006 | sed ' |
7a197a62 AK |
12007 | s/[$]LINENO.*/&-/ |
12008 | t lineno | |
12009 | b | |
12010 | :lineno | |
ad6254c5 | 12011 | N |
7a197a62 AK |
12012 | :loop |
12013 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12014 | t loop |
7a197a62 | 12015 | s/-\n.*// |
ad6254c5 | 12016 | ' >$as_me.lineno && |
7a197a62 | 12017 | chmod +x "$as_me.lineno" || |
68f2de6d | 12018 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12019 | { (exit 1); exit 1; }; } |
12020 | ||
12021 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12022 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12023 | # original and so on. Autoconf is especially sensitive to this). |
12024 | . "./$as_me.lineno" | |
ad6254c5 AK |
12025 | # Exit status is that of the last command. |
12026 | exit | |
12027 | } | |
12028 | ||
12029 | ||
7a197a62 AK |
12030 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12031 | as_dirname=dirname | |
12032 | else | |
12033 | as_dirname=false | |
12034 | fi | |
12035 | ||
12036 | ECHO_C= ECHO_N= ECHO_T= | |
12037 | case `echo -n x` in | |
12038 | -n*) | |
12039 | case `echo 'x\c'` in | |
12040 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12041 | *) ECHO_C='\c';; | |
12042 | esac;; | |
12043 | *) | |
12044 | ECHO_N='-n';; | |
ad6254c5 | 12045 | esac |
68f2de6d | 12046 | |
7a197a62 AK |
12047 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12048 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12049 | as_expr=expr |
12050 | else | |
12051 | as_expr=false | |
12052 | fi | |
80992638 | 12053 | |
ad6254c5 | 12054 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12055 | if test -d conf$$.dir; then |
12056 | rm -f conf$$.dir/conf$$.file | |
12057 | else | |
12058 | rm -f conf$$.dir | |
68f2de6d AK |
12059 | mkdir conf$$.dir |
12060 | fi | |
12061 | echo >conf$$.file | |
12062 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12063 | as_ln_s='ln -s' | |
12064 | # ... but there are two gotchas: | |
12065 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12066 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12067 | # In both cases, we have to default to `cp -p'. | |
12068 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 12069 | as_ln_s='cp -p' |
68f2de6d AK |
12070 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12071 | as_ln_s=ln | |
ad6254c5 AK |
12072 | else |
12073 | as_ln_s='cp -p' | |
12074 | fi | |
7a197a62 AK |
12075 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12076 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12077 | |
ad6254c5 AK |
12078 | if mkdir -p . 2>/dev/null; then |
12079 | as_mkdir_p=: | |
12080 | else | |
8a2fc586 | 12081 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12082 | as_mkdir_p=false |
12083 | fi | |
12084 | ||
25fbec5b AK |
12085 | if test -x / >/dev/null 2>&1; then |
12086 | as_test_x='test -x' | |
7a197a62 | 12087 | else |
25fbec5b AK |
12088 | if ls -dL / >/dev/null 2>&1; then |
12089 | as_ls_L_option=L | |
12090 | else | |
12091 | as_ls_L_option= | |
12092 | fi | |
12093 | as_test_x=' | |
12094 | eval sh -c '\'' | |
12095 | if test -d "$1"; then | |
68f2de6d | 12096 | test -d "$1/."; |
25fbec5b AK |
12097 | else |
12098 | case $1 in | |
68f2de6d | 12099 | -*)set "./$1";; |
25fbec5b AK |
12100 | esac; |
12101 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12102 | ???[sx]*):;;*)false;;esac;fi | |
12103 | '\'' sh | |
12104 | ' | |
7a197a62 | 12105 | fi |
25fbec5b | 12106 | as_executable_p=$as_test_x |
ad6254c5 AK |
12107 | |
12108 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12109 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12110 | |
12111 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12112 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12113 | |
12114 | ||
ad6254c5 AK |
12115 | exec 6>&1 |
12116 | ||
7a197a62 | 12117 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12118 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12119 | # values after options handling. |
12120 | ac_log=" | |
ad6254c5 | 12121 | This file was extended by $as_me, which was |
68f2de6d | 12122 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
12123 | |
12124 | CONFIG_FILES = $CONFIG_FILES | |
12125 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12126 | CONFIG_LINKS = $CONFIG_LINKS | |
12127 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12128 | $ $0 $@ | |
12129 | ||
7a197a62 AK |
12130 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12131 | " | |
12132 | ||
ad6254c5 AK |
12133 | _ACEOF |
12134 | ||
68f2de6d | 12135 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12136 | # Files that config.status was made for. |
68f2de6d AK |
12137 | config_files="$ac_config_files" |
12138 | config_headers="$ac_config_headers" | |
ad6254c5 | 12139 | |
7a197a62 | 12140 | _ACEOF |
ad6254c5 | 12141 | |
68f2de6d | 12142 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12143 | ac_cs_usage="\ |
12144 | \`$as_me' instantiates files from templates according to the | |
12145 | current configuration. | |
12146 | ||
12147 | Usage: $0 [OPTIONS] [FILE]... | |
12148 | ||
12149 | -h, --help print this help, then exit | |
25fbec5b | 12150 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12151 | -q, --quiet do not print progress messages |
12152 | -d, --debug don't remove temporary files | |
12153 | --recheck update $as_me by reconfiguring in the same conditions | |
12154 | --file=FILE[:TEMPLATE] | |
68f2de6d | 12155 | instantiate the configuration file FILE |
72b2cb61 | 12156 | --header=FILE[:TEMPLATE] |
68f2de6d | 12157 | instantiate the configuration header FILE |
ad6254c5 AK |
12158 | |
12159 | Configuration files: | |
12160 | $config_files | |
12161 | ||
72b2cb61 AK |
12162 | Configuration headers: |
12163 | $config_headers | |
12164 | ||
ad6254c5 | 12165 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12166 | |
7a197a62 | 12167 | _ACEOF |
68f2de6d | 12168 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
12169 | ac_cs_version="\\ |
12170 | config.status | |
68f2de6d AK |
12171 | configured by $0, generated by GNU Autoconf 2.61, |
12172 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12173 | |
68f2de6d | 12174 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12175 | This config.status script is free software; the Free Software Foundation |
12176 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12177 | |
12178 | ac_pwd='$ac_pwd' | |
12179 | srcdir='$srcdir' | |
12180 | INSTALL='$INSTALL' | |
fddafd51 | 12181 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
12182 | _ACEOF |
12183 | ||
68f2de6d AK |
12184 | cat >>$CONFIG_STATUS <<\_ACEOF |
12185 | # If no file are specified by the user, then we need to provide default | |
12186 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
12187 | ac_need_defaults=: |
12188 | while test $# != 0 | |
12189 | do | |
12190 | case $1 in | |
12191 | --*=*) | |
7a197a62 AK |
12192 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12193 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12194 | ac_shift=: |
12195 | ;; | |
7a197a62 | 12196 | *) |
ad6254c5 AK |
12197 | ac_option=$1 |
12198 | ac_optarg=$2 | |
12199 | ac_shift=shift | |
12200 | ;; | |
ad6254c5 AK |
12201 | esac |
12202 | ||
12203 | case $ac_option in | |
12204 | # Handling of the options. | |
ad6254c5 AK |
12205 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12206 | ac_cs_recheck=: ;; | |
7a197a62 | 12207 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
68f2de6d | 12208 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 12209 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12210 | debug=: ;; |
12211 | --file | --fil | --fi | --f ) | |
12212 | $ac_shift | |
68f2de6d | 12213 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
12214 | ac_need_defaults=false;; |
12215 | --header | --heade | --head | --hea ) | |
12216 | $ac_shift | |
68f2de6d | 12217 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 12218 | ac_need_defaults=false;; |
7a197a62 AK |
12219 | --he | --h) |
12220 | # Conflict between --help and --header | |
68f2de6d | 12221 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12222 | Try \`$0 --help' for more information." >&2 |
12223 | { (exit 1); exit 1; }; };; | |
12224 | --help | --hel | -h ) | |
68f2de6d | 12225 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12226 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12227 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12228 | ac_cs_silent=: ;; | |
12229 | ||
12230 | # This is an error. | |
68f2de6d | 12231 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12232 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12233 | { (exit 1); exit 1; }; } ;; |
12234 | ||
7a197a62 AK |
12235 | *) ac_config_targets="$ac_config_targets $1" |
12236 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12237 | |
12238 | esac | |
12239 | shift | |
12240 | done | |
12241 | ||
12242 | ac_configure_extra_args= | |
12243 | ||
12244 | if $ac_cs_silent; then | |
12245 | exec 6>/dev/null | |
12246 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12247 | fi | |
12248 | ||
12249 | _ACEOF | |
68f2de6d | 12250 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12251 | if \$ac_cs_recheck; then |
68f2de6d AK |
12252 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12253 | CONFIG_SHELL=$SHELL | |
7a197a62 | 12254 | export CONFIG_SHELL |
68f2de6d | 12255 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
12256 | fi |
12257 | ||
12258 | _ACEOF | |
68f2de6d | 12259 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12260 | exec 5>>config.log |
12261 | { | |
12262 | echo | |
12263 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12264 | ## Running $as_me. ## | |
12265 | _ASBOX | |
68f2de6d | 12266 | echo "$ac_log" |
7a197a62 | 12267 | } >&5 |
ad6254c5 | 12268 | |
7a197a62 | 12269 | _ACEOF |
68f2de6d | 12270 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 12271 | _ACEOF |
ad6254c5 | 12272 | |
68f2de6d | 12273 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12274 | |
12275 | # Handling of arguments. | |
ad6254c5 AK |
12276 | for ac_config_target in $ac_config_targets |
12277 | do | |
7a197a62 AK |
12278 | case $ac_config_target in |
12279 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12280 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12281 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12282 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12283 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
12284 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
12285 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 12286 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
12287 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
12288 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 12289 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
12290 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12291 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
12292 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12293 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12294 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12295 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12296 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
93bd259b AK |
12297 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
12298 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
12299 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12300 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 12301 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 12302 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 12303 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12304 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
12305 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12306 | |
68f2de6d AK |
12307 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12308 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12309 | { (exit 1); exit 1; }; };; |
80992638 | 12310 | esac |
ad6254c5 AK |
12311 | done |
12312 | ||
7a197a62 | 12313 | |
ad6254c5 AK |
12314 | # If the user did not use the arguments to specify the items to instantiate, |
12315 | # then the envvar interface is used. Set only those that are not. | |
12316 | # We use the long form for the default assignment because of an extremely | |
12317 | # bizarre bug on SunOS 4.1.3. | |
12318 | if $ac_need_defaults; then | |
12319 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12320 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12321 | fi |
12322 | ||
12323 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12324 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12325 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12326 | # Hook for its removal unless debugging. |
12327 | # Note that there is a small window in which the directory will not be cleaned: | |
12328 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12329 | $debug || |
12330 | { | |
7a197a62 AK |
12331 | tmp= |
12332 | trap 'exit_status=$? | |
12333 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12334 | ' 0 | |
ad6254c5 AK |
12335 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12336 | } | |
ad6254c5 AK |
12337 | # Create a (secure) tmp directory for tmp files. |
12338 | ||
12339 | { | |
7a197a62 | 12340 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12341 | test -n "$tmp" && test -d "$tmp" |
12342 | } || | |
12343 | { | |
7a197a62 AK |
12344 | tmp=./conf$$-$RANDOM |
12345 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12346 | } || |
12347 | { | |
68f2de6d | 12348 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12349 | { (exit 1); exit 1; } |
12350 | } | |
12351 | ||
68f2de6d AK |
12352 | # |
12353 | # Set up the sed scripts for CONFIG_FILES section. | |
12354 | # | |
12355 | ||
12356 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12357 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12358 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12359 | |
68f2de6d | 12360 | _ACEOF |
5556819a | 12361 | |
68f2de6d AK |
12362 | |
12363 | ||
12364 | ac_delim='%!_!# ' | |
12365 | for ac_last_try in false false false false false :; do | |
12366 | cat >conf$$subs.sed <<_ACEOF | |
12367 | SHELL!$SHELL$ac_delim | |
12368 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12369 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12370 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12371 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12372 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12373 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12374 | exec_prefix!$exec_prefix$ac_delim | |
12375 | prefix!$prefix$ac_delim | |
12376 | program_transform_name!$program_transform_name$ac_delim | |
12377 | bindir!$bindir$ac_delim | |
12378 | sbindir!$sbindir$ac_delim | |
12379 | libexecdir!$libexecdir$ac_delim | |
12380 | datarootdir!$datarootdir$ac_delim | |
12381 | datadir!$datadir$ac_delim | |
12382 | sysconfdir!$sysconfdir$ac_delim | |
12383 | sharedstatedir!$sharedstatedir$ac_delim | |
12384 | localstatedir!$localstatedir$ac_delim | |
12385 | includedir!$includedir$ac_delim | |
12386 | oldincludedir!$oldincludedir$ac_delim | |
12387 | docdir!$docdir$ac_delim | |
12388 | infodir!$infodir$ac_delim | |
12389 | htmldir!$htmldir$ac_delim | |
12390 | dvidir!$dvidir$ac_delim | |
12391 | pdfdir!$pdfdir$ac_delim | |
12392 | psdir!$psdir$ac_delim | |
12393 | libdir!$libdir$ac_delim | |
12394 | localedir!$localedir$ac_delim | |
12395 | mandir!$mandir$ac_delim | |
12396 | DEFS!$DEFS$ac_delim | |
12397 | ECHO_C!$ECHO_C$ac_delim | |
12398 | ECHO_N!$ECHO_N$ac_delim | |
12399 | ECHO_T!$ECHO_T$ac_delim | |
12400 | LIBS!$LIBS$ac_delim | |
12401 | build_alias!$build_alias$ac_delim | |
12402 | host_alias!$host_alias$ac_delim | |
12403 | target_alias!$target_alias$ac_delim | |
12404 | build!$build$ac_delim | |
12405 | build_cpu!$build_cpu$ac_delim | |
12406 | build_vendor!$build_vendor$ac_delim | |
12407 | build_os!$build_os$ac_delim | |
12408 | host!$host$ac_delim | |
12409 | host_cpu!$host_cpu$ac_delim | |
12410 | host_vendor!$host_vendor$ac_delim | |
12411 | host_os!$host_os$ac_delim | |
12412 | target!$target$ac_delim | |
12413 | target_cpu!$target_cpu$ac_delim | |
12414 | target_vendor!$target_vendor$ac_delim | |
12415 | target_os!$target_os$ac_delim | |
5951ef33 | 12416 | SED!$SED$ac_delim |
68f2de6d AK |
12417 | AWK!$AWK$ac_delim |
12418 | CC!$CC$ac_delim | |
12419 | CFLAGS!$CFLAGS$ac_delim | |
12420 | LDFLAGS!$LDFLAGS$ac_delim | |
12421 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12422 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12423 | EXEEXT!$EXEEXT$ac_delim | |
12424 | OBJEXT!$OBJEXT$ac_delim | |
12425 | CPP!$CPP$ac_delim | |
12426 | GREP!$GREP$ac_delim | |
12427 | EGREP!$EGREP$ac_delim | |
12428 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12429 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12430 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12431 | LN_S!$LN_S$ac_delim | |
12432 | SET_MAKE!$SET_MAKE$ac_delim | |
12433 | RANLIB!$RANLIB$ac_delim | |
12434 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12435 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12436 | ALLOCA!$ALLOCA$ac_delim | |
12437 | LIBOBJS!$LIBOBJS$ac_delim | |
12438 | POW_LIB!$POW_LIB$ac_delim | |
12439 | LCOV!$LCOV$ac_delim | |
12440 | GENHTML!$GENHTML$ac_delim | |
12441 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12442 | MSGFMT!$MSGFMT$ac_delim | |
12443 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12444 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12445 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12446 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12447 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12448 | CLUSTER!$CLUSTER$ac_delim | |
12449 | CLVMD!$CLVMD$ac_delim | |
12450 | CMDLIB!$CMDLIB$ac_delim | |
12451 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12452 | DEBUG!$DEBUG$ac_delim | |
12453 | DEVMAPPER!$DEVMAPPER$ac_delim | |
68f2de6d AK |
12454 | DMEVENTD!$DMEVENTD$ac_delim |
12455 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12456 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12457 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12458 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12459 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12460 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
7e3fe830 | 12461 | DM_LIB_PATCHLEVEL!$DM_LIB_PATCHLEVEL$ac_delim |
68f2de6d AK |
12462 | FSADM!$FSADM$ac_delim |
12463 | GROUP!$GROUP$ac_delim | |
68f2de6d AK |
12464 | _ACEOF |
12465 | ||
12466 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12467 | break | |
12468 | elif $ac_last_try; then | |
12469 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12470 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12471 | { (exit 1); exit 1; }; } | |
12472 | else | |
12473 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12474 | fi | |
12475 | done | |
12476 | ||
12477 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12478 | if test -n "$ac_eof"; then | |
12479 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12480 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12481 | fi |
7a197a62 | 12482 | |
68f2de6d AK |
12483 | cat >>$CONFIG_STATUS <<_ACEOF |
12484 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12485 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12486 | _ACEOF | |
12487 | sed ' | |
12488 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12489 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12490 | :n | |
12491 | t n | |
12492 | s/'"$ac_delim"'$/,g/; t | |
12493 | s/$/\\/; p | |
12494 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12495 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12496 | rm -f conf$$subs.sed | |
12497 | cat >>$CONFIG_STATUS <<_ACEOF | |
12498 | CEOF$ac_eof | |
1995c9ff | 12499 | _ACEOF |
7a197a62 | 12500 | |
8106cdd5 | 12501 | |
1995c9ff AK |
12502 | ac_delim='%!_!# ' |
12503 | for ac_last_try in false false false false false :; do | |
68f2de6d | 12504 | cat >conf$$subs.sed <<_ACEOF |
7e3fe830 | 12505 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim |
68f2de6d AK |
12506 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim |
12507 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12508 | INTL!$INTL$ac_delim | |
12509 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12510 | JOBS!$JOBS$ac_delim | |
12511 | LDDEPS!$LDDEPS$ac_delim | |
12512 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12513 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12514 | LVM1!$LVM1$ac_delim | |
12515 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12516 | CONFDIR!$CONFDIR$ac_delim | |
12517 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12518 | MIRRORS!$MIRRORS$ac_delim | |
12519 | OWNER!$OWNER$ac_delim | |
12520 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12521 | POOL!$POOL$ac_delim | |
12522 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12523 | STATICDIR!$STATICDIR$ac_delim | |
12524 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12525 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
93bd259b AK |
12526 | interface!$interface$ac_delim |
12527 | kerneldir!$kerneldir$ac_delim | |
12528 | missingkernel!$missingkernel$ac_delim | |
12529 | kernelvsn!$kernelvsn$ac_delim | |
12530 | tmpdir!$tmpdir$ac_delim | |
68f2de6d AK |
12531 | usrlibdir!$usrlibdir$ac_delim |
12532 | usrsbindir!$usrsbindir$ac_delim | |
12533 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12534 | _ACEOF | |
12535 | ||
7e3fe830 | 12536 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then |
1995c9ff AK |
12537 | break |
12538 | elif $ac_last_try; then | |
68f2de6d AK |
12539 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12540 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12541 | { (exit 1); exit 1; }; } |
12542 | else | |
12543 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12544 | fi | |
12545 | done | |
7a197a62 | 12546 | |
68f2de6d AK |
12547 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12548 | if test -n "$ac_eof"; then | |
12549 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12550 | ac_eof=`expr $ac_eof + 1` | |
12551 | fi | |
fddafd51 | 12552 | |
68f2de6d AK |
12553 | cat >>$CONFIG_STATUS <<_ACEOF |
12554 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12555 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12556 | _ACEOF |
68f2de6d AK |
12557 | sed ' |
12558 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12559 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12560 | :n | |
12561 | t n | |
12562 | s/'"$ac_delim"'$/,g/; t | |
12563 | s/$/\\/; p | |
12564 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12565 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12566 | rm -f conf$$subs.sed | |
12567 | cat >>$CONFIG_STATUS <<_ACEOF | |
12568 | :end | |
12569 | s/|#_!!_#|//g | |
12570 | CEOF$ac_eof | |
7a197a62 AK |
12571 | _ACEOF |
12572 | ||
68f2de6d | 12573 | |
7a197a62 AK |
12574 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12575 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12576 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12577 | # (actually we leave an empty line to preserve line numbers). | |
12578 | if test "x$srcdir" = x.; then | |
12579 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12580 | s/:*\$(srcdir):*/:/ | |
12581 | s/:*\${srcdir}:*/:/ | |
12582 | s/:*@srcdir@:*/:/ | |
12583 | s/^\([^=]*=[ ]*\):*/\1/ | |
12584 | s/:*$// | |
12585 | s/^[^=]*=[ ]*$// | |
12586 | }' | |
12587 | fi | |
12588 | ||
68f2de6d | 12589 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12590 | fi # test -n "$CONFIG_FILES" |
12591 | ||
12592 | ||
68f2de6d | 12593 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12594 | do |
12595 | case $ac_tag in | |
12596 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12597 | esac | |
12598 | case $ac_mode$ac_tag in | |
12599 | :[FHL]*:*);; | |
68f2de6d AK |
12600 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12601 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12602 | { (exit 1); exit 1; }; };; |
12603 | :[FH]-) ac_tag=-:-;; | |
12604 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12605 | esac | |
12606 | ac_save_IFS=$IFS | |
12607 | IFS=: | |
12608 | set x $ac_tag | |
12609 | IFS=$ac_save_IFS | |
12610 | shift | |
12611 | ac_file=$1 | |
12612 | shift | |
12613 | ||
12614 | case $ac_mode in | |
12615 | :L) ac_source=$1;; | |
12616 | :[FH]) | |
12617 | ac_file_inputs= | |
12618 | for ac_f | |
12619 | do | |
12620 | case $ac_f in | |
12621 | -) ac_f="$tmp/stdin";; | |
12622 | *) # Look for the file first in the build tree, then in the source tree | |
12623 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12624 | # because $ac_f cannot contain `:'. | |
12625 | test -f "$ac_f" || | |
12626 | case $ac_f in | |
12627 | [\\/$]*) false;; | |
12628 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12629 | esac || | |
68f2de6d AK |
12630 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12631 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12632 | { (exit 1); exit 1; }; };; |
12633 | esac | |
68f2de6d | 12634 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12635 | done |
12636 | ||
12637 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12638 | # use $as_me), people would be surprised to read: | |
12639 | # /* config.h. Generated by config.status. */ | |
68f2de6d AK |
12640 | configure_input="Generated from "`IFS=: |
12641 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12642 | if test x"$ac_file" != x-; then |
12643 | configure_input="$ac_file. $configure_input" | |
68f2de6d AK |
12644 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12645 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12646 | fi |
12647 | ||
12648 | case $ac_tag in | |
68f2de6d | 12649 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12650 | esac |
12651 | ;; | |
80992638 | 12652 | esac |
8106cdd5 | 12653 | |
7a197a62 | 12654 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12655 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12656 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12657 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12658 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12659 | echo X"$ac_file" | |
7a197a62 AK |
12660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12661 | s//\1/ | |
12662 | q | |
12663 | } | |
12664 | /^X\(\/\/\)[^/].*/{ | |
12665 | s//\1/ | |
12666 | q | |
12667 | } | |
12668 | /^X\(\/\/\)$/{ | |
12669 | s//\1/ | |
12670 | q | |
12671 | } | |
12672 | /^X\(\/\).*/{ | |
12673 | s//\1/ | |
12674 | q | |
12675 | } | |
12676 | s/.*/./; q'` | |
12677 | { as_dir="$ac_dir" | |
12678 | case $as_dir in #( | |
12679 | -*) as_dir=./$as_dir;; | |
12680 | esac | |
12681 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12682 | as_dirs= |
7a197a62 AK |
12683 | while :; do |
12684 | case $as_dir in #( | |
68f2de6d | 12685 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12686 | *) as_qdir=$as_dir;; |
12687 | esac | |
12688 | as_dirs="'$as_qdir' $as_dirs" | |
12689 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12690 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12691 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12692 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12693 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12694 | echo X"$as_dir" | |
7a197a62 AK |
12695 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12696 | s//\1/ | |
12697 | q | |
12698 | } | |
12699 | /^X\(\/\/\)[^/].*/{ | |
12700 | s//\1/ | |
12701 | q | |
12702 | } | |
12703 | /^X\(\/\/\)$/{ | |
12704 | s//\1/ | |
12705 | q | |
12706 | } | |
12707 | /^X\(\/\).*/{ | |
12708 | s//\1/ | |
12709 | q | |
12710 | } | |
12711 | s/.*/./; q'` | |
12712 | test -d "$as_dir" && break | |
ad6254c5 | 12713 | done |
7a197a62 | 12714 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
68f2de6d AK |
12715 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12716 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12717 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12718 | ac_builddir=. |
12719 | ||
7a197a62 AK |
12720 | case "$ac_dir" in |
12721 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12722 | *) | |
68f2de6d | 12723 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12724 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 12725 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12726 | case $ac_top_builddir_sub in |
12727 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12728 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12729 | esac ;; | |
12730 | esac | |
12731 | ac_abs_top_builddir=$ac_pwd | |
12732 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12733 | # for backward compatibility: | |
12734 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12735 | |
12736 | case $srcdir in | |
7a197a62 | 12737 | .) # We are building in place. |
ad6254c5 | 12738 | ac_srcdir=. |
7a197a62 AK |
12739 | ac_top_srcdir=$ac_top_builddir_sub |
12740 | ac_abs_top_srcdir=$ac_pwd ;; | |
12741 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12742 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12743 | ac_top_srcdir=$srcdir |
12744 | ac_abs_top_srcdir=$srcdir ;; | |
12745 | *) # Relative name. | |
12746 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12747 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12748 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12749 | esac |
7a197a62 | 12750 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12751 | |
ad6254c5 | 12752 | |
7a197a62 AK |
12753 | case $ac_mode in |
12754 | :F) | |
12755 | # | |
12756 | # CONFIG_FILE | |
12757 | # | |
ad6254c5 AK |
12758 | |
12759 | case $INSTALL in | |
12760 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12761 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12762 | esac |
fddafd51 ZK |
12763 | ac_MKDIR_P=$MKDIR_P |
12764 | case $MKDIR_P in | |
12765 | [\\/$]* | ?:[\\/]* ) ;; | |
12766 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12767 | esac | |
7a197a62 | 12768 | _ACEOF |
795ca3e5 | 12769 | |
68f2de6d | 12770 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12771 | # If the template does not know about datarootdir, expand it. |
12772 | # FIXME: This hack should be removed a few years after 2.60. | |
12773 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12774 | ||
68f2de6d | 12775 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12776 | p |
12777 | q | |
12778 | } | |
12779 | /@datadir@/p | |
12780 | /@docdir@/p | |
12781 | /@infodir@/p | |
12782 | /@localedir@/p | |
12783 | /@mandir@/p | |
68f2de6d | 12784 | ' $ac_file_inputs` in |
7a197a62 AK |
12785 | *datarootdir*) ac_datarootdir_seen=yes;; |
12786 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
68f2de6d AK |
12787 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12788 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12789 | _ACEOF |
68f2de6d | 12790 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12791 | ac_datarootdir_hack=' |
12792 | s&@datadir@&$datadir&g | |
12793 | s&@docdir@&$docdir&g | |
12794 | s&@infodir@&$infodir&g | |
12795 | s&@localedir@&$localedir&g | |
12796 | s&@mandir@&$mandir&g | |
12797 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12798 | esac | |
12799 | _ACEOF | |
12800 | ||
12801 | # Neutralize VPATH when `$srcdir' = `.'. | |
12802 | # Shell code in configure.ac might set extrasub. | |
12803 | # FIXME: do we really want to maintain this feature? | |
68f2de6d AK |
12804 | cat >>$CONFIG_STATUS <<_ACEOF |
12805 | sed "$ac_vpsub | |
ad6254c5 AK |
12806 | $extrasub |
12807 | _ACEOF | |
68f2de6d | 12808 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12809 | :t |
12810 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
68f2de6d | 12811 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12812 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12813 | s&@srcdir@&$ac_srcdir&;t t | |
12814 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12815 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12816 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12817 | s&@builddir@&$ac_builddir&;t t | |
12818 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12819 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12820 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12821 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12822 | $ac_datarootdir_hack |
68f2de6d | 12823 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12824 | |
12825 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12826 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12827 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
68f2de6d | 12828 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12829 | which seems to be undefined. Please make sure it is defined." >&5 |
68f2de6d | 12830 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12831 | which seems to be undefined. Please make sure it is defined." >&2;} |
12832 | ||
12833 | rm -f "$tmp/stdin" | |
72b2cb61 | 12834 | case $ac_file in |
68f2de6d AK |
12835 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12836 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12837 | esac | |
7a197a62 AK |
12838 | ;; |
12839 | :H) | |
12840 | # | |
12841 | # CONFIG_HEADER | |
12842 | # | |
68f2de6d AK |
12843 | _ACEOF |
12844 | ||
12845 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12846 | # substitutes the proper values into config.h.in to produce config.h. | |
12847 | rm -f conftest.defines conftest.tail | |
12848 | # First, append a space to every undef/define line, to ease matching. | |
12849 | echo 's/$/ /' >conftest.defines | |
12850 | # Then, protect against being on the right side of a sed subst, or in | |
12851 | # an unquoted here document, in config.status. If some macros were | |
12852 | # called several times there might be several #defines for the same | |
12853 | # symbol, which is useless. But do not sort them, since the last | |
12854 | # AC_DEFINE must be honored. | |
12855 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12856 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12857 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12858 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12859 | # just an empty string. | |
12860 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12861 | ac_dB='\\)[ (].*,\\1define\\2' | |
12862 | ac_dC=' ' | |
12863 | ac_dD=' ,' | |
12864 | ||
12865 | uniq confdefs.h | | |
12866 | sed -n ' | |
12867 | t rset | |
12868 | :rset | |
12869 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12870 | t ok | |
12871 | d | |
12872 | :ok | |
12873 | s/[\\&,]/\\&/g | |
12874 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12875 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12876 | ' >>conftest.defines | |
12877 | ||
12878 | # Remove the space that was appended to ease matching. | |
12879 | # Then replace #undef with comments. This is necessary, for | |
12880 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12881 | # on some systems where configure will not decide to define it. | |
12882 | # (The regexp can be short, since the line contains either #define or #undef.) | |
12883 | echo 's/ $// | |
12884 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12885 | ||
12886 | # Break up conftest.defines: | |
12887 | ac_max_sed_lines=50 | |
12888 | ||
12889 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12890 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12891 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12892 | # et cetera. | |
12893 | ac_in='$ac_file_inputs' | |
12894 | ac_out='"$tmp/out1"' | |
12895 | ac_nxt='"$tmp/out2"' | |
12896 | ||
12897 | while : | |
12898 | do | |
12899 | # Write a here document: | |
12900 | cat >>$CONFIG_STATUS <<_ACEOF | |
12901 | # First, check the format of the line: | |
12902 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12903 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12904 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12905 | b | |
12906 | :def | |
12907 | _ACEOF | |
12908 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
12909 | echo 'CEOF | |
12910 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
12911 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12912 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12913 | grep . conftest.tail >/dev/null || break | |
12914 | rm -f conftest.defines | |
12915 | mv conftest.tail conftest.defines | |
12916 | done | |
12917 | rm -f conftest.defines conftest.tail | |
12918 | ||
12919 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
12920 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 12921 | if test x"$ac_file" != x-; then |
68f2de6d AK |
12922 | echo "/* $configure_input */" >"$tmp/config.h" |
12923 | cat "$ac_result" >>"$tmp/config.h" | |
12924 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
12925 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12926 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12927 | else |
68f2de6d AK |
12928 | rm -f $ac_file |
12929 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
12930 | fi |
12931 | else | |
68f2de6d AK |
12932 | echo "/* $configure_input */" |
12933 | cat "$ac_result" | |
72b2cb61 | 12934 | fi |
68f2de6d | 12935 | rm -f "$tmp/out12" |
7a197a62 AK |
12936 | ;; |
12937 | ||
12938 | ||
12939 | esac | |
12940 | ||
12941 | done # for ac_tag | |
795ca3e5 | 12942 | |
795ca3e5 | 12943 | |
ad6254c5 AK |
12944 | { (exit 0); exit 0; } |
12945 | _ACEOF | |
795ca3e5 | 12946 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12947 | ac_clean_files=$ac_clean_files_save |
12948 | ||
12949 | ||
12950 | # configure is writing to config.log, and then calls config.status. | |
12951 | # config.status does its own redirection, appending to config.log. | |
12952 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12953 | # by configure, so config.status won't be able to write to it; its | |
12954 | # output is simply discarded. So we exec the FD to /dev/null, | |
12955 | # effectively closing config.log, so it can be properly (re)opened and | |
12956 | # appended to by config.status. When coming back to configure, we | |
12957 | # need to make the FD available again. | |
12958 | if test "$no_create" != yes; then | |
12959 | ac_cs_success=: | |
12960 | ac_config_status_args= | |
12961 | test "$silent" = yes && | |
12962 | ac_config_status_args="$ac_config_status_args --quiet" | |
12963 | exec 5>/dev/null | |
12964 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12965 | exec 5>>config.log | |
12966 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12967 | # would make configure fail if this is the last instruction. | |
12968 | $ac_cs_success || { (exit 1); exit 1; } | |
12969 | fi | |
795ca3e5 | 12970 | |
2dc95e1c AK |
12971 | |
12972 | if test x$ODIRECT != xyes; then | |
68f2de6d AK |
12973 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12974 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12975 | fi |