]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
b145d876 | 3 | # Generated by GNU Autoconf 2.62. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
b145d876 | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: | |
b145d876 | 18 | # Pre-4.2 versions of Zsh do 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 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
5556819a | 54 | else |
b145d876 ZK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5556819a | 67 | fi |
b145d876 ZK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
b145d876 | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
b145d876 ZK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b145d876 | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
b145d876 | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
b145d876 | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
b145d876 | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
b145d876 ZK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
b145d876 ZK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
b145d876 | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
b145d876 ZK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
b145d876 | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
b145d876 | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
b145d876 | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
7a197a62 AK |
639 | ac_subst_vars='SHELL |
640 | PATH_SEPARATOR | |
641 | PACKAGE_NAME | |
642 | PACKAGE_TARNAME | |
643 | PACKAGE_VERSION | |
644 | PACKAGE_STRING | |
645 | PACKAGE_BUGREPORT | |
646 | exec_prefix | |
647 | prefix | |
648 | program_transform_name | |
649 | bindir | |
650 | sbindir | |
651 | libexecdir | |
652 | datarootdir | |
653 | datadir | |
654 | sysconfdir | |
655 | sharedstatedir | |
656 | localstatedir | |
657 | includedir | |
658 | oldincludedir | |
659 | docdir | |
660 | infodir | |
661 | htmldir | |
662 | dvidir | |
663 | pdfdir | |
664 | psdir | |
665 | libdir | |
666 | localedir | |
667 | mandir | |
668 | DEFS | |
669 | ECHO_C | |
670 | ECHO_N | |
671 | ECHO_T | |
672 | LIBS | |
673 | build_alias | |
674 | host_alias | |
675 | target_alias | |
676 | build | |
677 | build_cpu | |
678 | build_vendor | |
679 | build_os | |
680 | host | |
681 | host_cpu | |
682 | host_vendor | |
683 | host_os | |
684 | target | |
685 | target_cpu | |
686 | target_vendor | |
687 | target_os | |
688 | AWK | |
689 | CC | |
690 | CFLAGS | |
691 | LDFLAGS | |
692 | CPPFLAGS | |
693 | ac_ct_CC | |
694 | EXEEXT | |
695 | OBJEXT | |
d0191583 JM |
696 | CPP |
697 | GREP | |
698 | EGREP | |
7a197a62 AK |
699 | INSTALL_PROGRAM |
700 | INSTALL_SCRIPT | |
701 | INSTALL_DATA | |
702 | LN_S | |
703 | SET_MAKE | |
b145d876 | 704 | MKDIR_P |
7a197a62 AK |
705 | RANLIB |
706 | CFLOW_CMD | |
707 | CSCOPE_CMD | |
7a197a62 AK |
708 | ALLOCA |
709 | LIBOBJS | |
710 | POW_LIB | |
fddafd51 ZK |
711 | LCOV |
712 | GENHTML | |
d179cc7a | 713 | LVM2CMD_LIB |
7a197a62 AK |
714 | MSGFMT |
715 | MODPROBE_CMD | |
d0191583 | 716 | BUILD_DMEVENTD |
7a197a62 | 717 | CLDFLAGS |
7a197a62 | 718 | CLDNOWHOLEARCHIVE |
d0191583 JM |
719 | CLDWHOLEARCHIVE |
720 | CLUSTER | |
721 | CLVMD | |
722 | CMDLIB | |
723 | COPTIMISE_FLAG | |
7a197a62 AK |
724 | DEBUG |
725 | DEVMAPPER | |
d0191583 JM |
726 | DMDIR |
727 | DMEVENTD | |
728 | DM_COMPAT | |
729 | DM_DEVICE_GID | |
730 | DM_DEVICE_MODE | |
731 | DM_DEVICE_UID | |
732 | DM_IOCTLS | |
733 | DM_LIB_VERSION | |
734 | FSADM | |
735 | GROUP | |
7a197a62 | 736 | HAVE_LIBDL |
7a197a62 | 737 | HAVE_REALTIME |
d0191583 JM |
738 | HAVE_SELINUX |
739 | INTL | |
740 | INTL_PACKAGE | |
741 | JOBS | |
742 | LDDEPS | |
743 | LIB_SUFFIX | |
7a197a62 | 744 | LOCALEDIR |
d0191583 JM |
745 | LVM1 |
746 | LVM1_FALLBACK | |
7a197a62 | 747 | CONFDIR |
d0191583 JM |
748 | LVM_VERSION |
749 | MIRRORS | |
750 | OWNER | |
751 | PKGCONFIG | |
752 | POOL | |
753 | SNAPSHOTS | |
7a197a62 | 754 | STATICDIR |
d0191583 | 755 | STATIC_LINK |
66e941e8 | 756 | LIB_PTHREAD |
7a197a62 | 757 | LTLIBOBJS' |
ad6254c5 | 758 | ac_subst_files='' |
b145d876 ZK |
759 | ac_user_opts=' |
760 | enable_option_checking | |
761 | with_user | |
762 | with_group | |
763 | enable_lvm1_fallback | |
764 | with_lvm1 | |
765 | with_pool | |
766 | with_cluster | |
767 | with_snapshots | |
768 | with_mirrors | |
769 | enable_readline | |
770 | enable_realtime | |
771 | with_clvmd | |
772 | enable_debug | |
773 | with_optimisation | |
774 | enable_profiling | |
775 | enable_devmapper | |
776 | enable_o_direct | |
777 | enable_cmdlib | |
778 | enable_fsadm | |
779 | enable_dmeventd | |
780 | enable_static_link | |
781 | enable_selinux | |
782 | enable_nls | |
783 | with_localedir | |
784 | with_confdir | |
785 | with_staticdir | |
786 | with_dmdir | |
787 | ' | |
7a197a62 AK |
788 | ac_precious_vars='build_alias |
789 | host_alias | |
790 | target_alias | |
791 | CC | |
792 | CFLAGS | |
793 | LDFLAGS | |
25fbec5b | 794 | LIBS |
7a197a62 AK |
795 | CPPFLAGS |
796 | CPP' | |
797 | ||
795ca3e5 AK |
798 | |
799 | # Initialize some variables set by options. | |
ad6254c5 AK |
800 | ac_init_help= |
801 | ac_init_version=false | |
b145d876 ZK |
802 | ac_unrecognized_opts= |
803 | ac_unrecognized_sep= | |
795ca3e5 AK |
804 | # The variables have the same names as the options, with |
805 | # dashes changed to underlines. | |
ad6254c5 | 806 | cache_file=/dev/null |
795ca3e5 | 807 | exec_prefix=NONE |
795ca3e5 | 808 | no_create= |
795ca3e5 AK |
809 | no_recursion= |
810 | prefix=NONE | |
811 | program_prefix=NONE | |
812 | program_suffix=NONE | |
813 | program_transform_name=s,x,x, | |
814 | silent= | |
815 | site= | |
816 | srcdir= | |
795ca3e5 AK |
817 | verbose= |
818 | x_includes=NONE | |
819 | x_libraries=NONE | |
ad6254c5 AK |
820 | |
821 | # Installation directory options. | |
822 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
823 | # and all the variables that are supposed to be based on exec_prefix | |
824 | # by default will actually change. | |
825 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 826 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
827 | bindir='${exec_prefix}/bin' |
828 | sbindir='${exec_prefix}/sbin' | |
829 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
830 | datarootdir='${prefix}/share' |
831 | datadir='${datarootdir}' | |
795ca3e5 AK |
832 | sysconfdir='${prefix}/etc' |
833 | sharedstatedir='${prefix}/com' | |
834 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
835 | includedir='${prefix}/include' |
836 | oldincludedir='/usr/include' | |
7a197a62 AK |
837 | docdir='${datarootdir}/doc/${PACKAGE}' |
838 | infodir='${datarootdir}/info' | |
839 | htmldir='${docdir}' | |
840 | dvidir='${docdir}' | |
841 | pdfdir='${docdir}' | |
842 | psdir='${docdir}' | |
843 | libdir='${exec_prefix}/lib' | |
844 | localedir='${datarootdir}/locale' | |
845 | mandir='${datarootdir}/man' | |
795ca3e5 | 846 | |
795ca3e5 | 847 | ac_prev= |
7a197a62 | 848 | ac_dashdash= |
795ca3e5 AK |
849 | for ac_option |
850 | do | |
795ca3e5 AK |
851 | # If the previous option needs an argument, assign it. |
852 | if test -n "$ac_prev"; then | |
7a197a62 | 853 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
854 | ac_prev= |
855 | continue | |
856 | fi | |
857 | ||
7a197a62 AK |
858 | case $ac_option in |
859 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
860 | *) ac_optarg=yes ;; | |
861 | esac | |
795ca3e5 AK |
862 | |
863 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
864 | ||
7a197a62 AK |
865 | case $ac_dashdash$ac_option in |
866 | --) | |
867 | ac_dashdash=yes ;; | |
795ca3e5 AK |
868 | |
869 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
870 | ac_prev=bindir ;; | |
871 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 872 | bindir=$ac_optarg ;; |
795ca3e5 AK |
873 | |
874 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 875 | ac_prev=build_alias ;; |
795ca3e5 | 876 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 877 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
878 | |
879 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
880 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
881 | ac_prev=cache_file ;; | |
882 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
883 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
884 | cache_file=$ac_optarg ;; |
885 | ||
886 | --config-cache | -C) | |
887 | cache_file=config.cache ;; | |
795ca3e5 | 888 | |
7a197a62 | 889 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 890 | ac_prev=datadir ;; |
7a197a62 | 891 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 892 | datadir=$ac_optarg ;; |
795ca3e5 | 893 | |
7a197a62 AK |
894 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
895 | | --dataroo | --dataro | --datar) | |
896 | ac_prev=datarootdir ;; | |
897 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
898 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
899 | datarootdir=$ac_optarg ;; | |
900 | ||
795ca3e5 | 901 | -disable-* | --disable-*) |
b145d876 | 902 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 903 | # Reject names that are not valid shell variable names. |
b145d876 ZK |
904 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
905 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 906 | { (exit 1); exit 1; }; } |
b145d876 ZK |
907 | ac_useropt_orig=$ac_useropt |
908 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
909 | case $ac_user_opts in | |
910 | *" | |
911 | "enable_$ac_useropt" | |
912 | "*) ;; | |
913 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
914 | ac_unrecognized_sep=', ';; | |
915 | esac | |
916 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
917 | |
918 | -docdir | --docdir | --docdi | --doc | --do) | |
919 | ac_prev=docdir ;; | |
920 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
921 | docdir=$ac_optarg ;; | |
922 | ||
923 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
924 | ac_prev=dvidir ;; | |
925 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
926 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
927 | |
928 | -enable-* | --enable-*) | |
b145d876 | 929 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 930 | # Reject names that are not valid shell variable names. |
b145d876 ZK |
931 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
932 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 933 | { (exit 1); exit 1; }; } |
b145d876 ZK |
934 | ac_useropt_orig=$ac_useropt |
935 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
936 | case $ac_user_opts in | |
937 | *" | |
938 | "enable_$ac_useropt" | |
939 | "*) ;; | |
940 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
941 | ac_unrecognized_sep=', ';; | |
942 | esac | |
943 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
944 | |
945 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
946 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
947 | | --exec | --exe | --ex) | |
948 | ac_prev=exec_prefix ;; | |
949 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
950 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
951 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 952 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
953 | |
954 | -gas | --gas | --ga | --g) | |
955 | # Obsolete; use --with-gas. | |
956 | with_gas=yes ;; | |
957 | ||
ad6254c5 AK |
958 | -help | --help | --hel | --he | -h) |
959 | ac_init_help=long ;; | |
960 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
961 | ac_init_help=recursive ;; | |
962 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
963 | ac_init_help=short ;; | |
795ca3e5 AK |
964 | |
965 | -host | --host | --hos | --ho) | |
ad6254c5 | 966 | ac_prev=host_alias ;; |
795ca3e5 | 967 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 968 | host_alias=$ac_optarg ;; |
795ca3e5 | 969 | |
7a197a62 AK |
970 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
971 | ac_prev=htmldir ;; | |
972 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
973 | | --ht=*) | |
974 | htmldir=$ac_optarg ;; | |
975 | ||
795ca3e5 AK |
976 | -includedir | --includedir | --includedi | --included | --include \ |
977 | | --includ | --inclu | --incl | --inc) | |
978 | ac_prev=includedir ;; | |
979 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
980 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 981 | includedir=$ac_optarg ;; |
795ca3e5 AK |
982 | |
983 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
984 | ac_prev=infodir ;; | |
985 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 986 | infodir=$ac_optarg ;; |
795ca3e5 AK |
987 | |
988 | -libdir | --libdir | --libdi | --libd) | |
989 | ac_prev=libdir ;; | |
990 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 991 | libdir=$ac_optarg ;; |
795ca3e5 AK |
992 | |
993 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
994 | | --libexe | --libex | --libe) | |
995 | ac_prev=libexecdir ;; | |
996 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
997 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 998 | libexecdir=$ac_optarg ;; |
795ca3e5 | 999 | |
7a197a62 AK |
1000 | -localedir | --localedir | --localedi | --localed | --locale) |
1001 | ac_prev=localedir ;; | |
1002 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1003 | localedir=$ac_optarg ;; | |
1004 | ||
795ca3e5 | 1005 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1006 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1007 | ac_prev=localstatedir ;; |
1008 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1009 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1010 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1011 | |
1012 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1013 | ac_prev=mandir ;; | |
1014 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1015 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1016 | |
1017 | -nfp | --nfp | --nf) | |
1018 | # Obsolete; use --without-fp. | |
1019 | with_fp=no ;; | |
1020 | ||
1021 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1022 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1023 | no_create=yes ;; |
1024 | ||
1025 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1026 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1027 | no_recursion=yes ;; | |
1028 | ||
1029 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1030 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1031 | | --oldin | --oldi | --old | --ol | --o) | |
1032 | ac_prev=oldincludedir ;; | |
1033 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1034 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1035 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1036 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1037 | |
1038 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1039 | ac_prev=prefix ;; | |
1040 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1041 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1042 | |
1043 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1044 | | --program-pre | --program-pr | --program-p) | |
1045 | ac_prev=program_prefix ;; | |
1046 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1047 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1048 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1049 | |
1050 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1051 | | --program-suf | --program-su | --program-s) | |
1052 | ac_prev=program_suffix ;; | |
1053 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1054 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1055 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1056 | |
1057 | -program-transform-name | --program-transform-name \ | |
1058 | | --program-transform-nam | --program-transform-na \ | |
1059 | | --program-transform-n | --program-transform- \ | |
1060 | | --program-transform | --program-transfor \ | |
1061 | | --program-transfo | --program-transf \ | |
1062 | | --program-trans | --program-tran \ | |
1063 | | --progr-tra | --program-tr | --program-t) | |
1064 | ac_prev=program_transform_name ;; | |
1065 | -program-transform-name=* | --program-transform-name=* \ | |
1066 | | --program-transform-nam=* | --program-transform-na=* \ | |
1067 | | --program-transform-n=* | --program-transform-=* \ | |
1068 | | --program-transform=* | --program-transfor=* \ | |
1069 | | --program-transfo=* | --program-transf=* \ | |
1070 | | --program-trans=* | --program-tran=* \ | |
1071 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1072 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1073 | |
7a197a62 AK |
1074 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1075 | ac_prev=pdfdir ;; | |
1076 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1077 | pdfdir=$ac_optarg ;; | |
1078 | ||
1079 | -psdir | --psdir | --psdi | --psd | --ps) | |
1080 | ac_prev=psdir ;; | |
1081 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1082 | psdir=$ac_optarg ;; | |
1083 | ||
795ca3e5 AK |
1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1085 | | -silent | --silent | --silen | --sile | --sil) | |
1086 | silent=yes ;; | |
1087 | ||
1088 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1089 | ac_prev=sbindir ;; | |
1090 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1091 | | --sbi=* | --sb=*) | |
ad6254c5 | 1092 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1093 | |
1094 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1095 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1096 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1097 | | --sha | --sh) | |
1098 | ac_prev=sharedstatedir ;; | |
1099 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1100 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1101 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1102 | | --sha=* | --sh=*) | |
ad6254c5 | 1103 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1104 | |
1105 | -site | --site | --sit) | |
1106 | ac_prev=site ;; | |
1107 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1108 | site=$ac_optarg ;; |
795ca3e5 AK |
1109 | |
1110 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1111 | ac_prev=srcdir ;; | |
1112 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1113 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1114 | |
1115 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1116 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1117 | ac_prev=sysconfdir ;; | |
1118 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1119 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1120 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1121 | |
1122 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1123 | ac_prev=target_alias ;; |
795ca3e5 | 1124 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1125 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1128 | verbose=yes ;; | |
1129 | ||
ad6254c5 AK |
1130 | -version | --version | --versio | --versi | --vers | -V) |
1131 | ac_init_version=: ;; | |
795ca3e5 AK |
1132 | |
1133 | -with-* | --with-*) | |
b145d876 | 1134 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1135 | # Reject names that are not valid shell variable names. |
b145d876 ZK |
1136 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1137 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1138 | { (exit 1); exit 1; }; } |
b145d876 ZK |
1139 | ac_useropt_orig=$ac_useropt |
1140 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1141 | case $ac_user_opts in | |
1142 | *" | |
1143 | "with_$ac_useropt" | |
1144 | "*) ;; | |
1145 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1146 | ac_unrecognized_sep=', ';; | |
1147 | esac | |
1148 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1149 | |
1150 | -without-* | --without-*) | |
b145d876 | 1151 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1152 | # Reject names that are not valid shell variable names. |
b145d876 ZK |
1153 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1154 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1155 | { (exit 1); exit 1; }; } |
b145d876 ZK |
1156 | ac_useropt_orig=$ac_useropt |
1157 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1158 | case $ac_user_opts in | |
1159 | *" | |
1160 | "with_$ac_useropt" | |
1161 | "*) ;; | |
1162 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1163 | ac_unrecognized_sep=', ';; | |
1164 | esac | |
1165 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1166 | |
1167 | --x) | |
1168 | # Obsolete; use --with-x. | |
1169 | with_x=yes ;; | |
1170 | ||
1171 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1172 | | --x-incl | --x-inc | --x-in | --x-i) | |
1173 | ac_prev=x_includes ;; | |
1174 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1175 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1176 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1177 | |
1178 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1179 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1180 | ac_prev=x_libraries ;; | |
1181 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1182 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1183 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1184 | |
b145d876 | 1185 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1186 | Try \`$0 --help' for more information." >&2 |
1187 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1188 | ;; |
1189 | ||
ad6254c5 AK |
1190 | *=*) |
1191 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1192 | # Reject names that are not valid shell variable names. | |
1193 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
b145d876 | 1194 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1195 | { (exit 1); exit 1; }; } |
7a197a62 | 1196 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1197 | export $ac_envvar ;; |
1198 | ||
795ca3e5 | 1199 | *) |
ad6254c5 | 1200 | # FIXME: should be removed in autoconf 3.0. |
b145d876 | 1201 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1202 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b145d876 | 1203 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1204 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1205 | ;; |
1206 | ||
1207 | esac | |
1208 | done | |
1209 | ||
1210 | if test -n "$ac_prev"; then | |
ad6254c5 | 1211 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
b145d876 | 1212 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1213 | { (exit 1); exit 1; }; } |
795ca3e5 | 1214 | fi |
795ca3e5 | 1215 | |
b145d876 ZK |
1216 | if test -n "$ac_unrecognized_opts"; then |
1217 | case $enable_option_checking in | |
1218 | no) ;; | |
1219 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 | |
1220 | { (exit 1); exit 1; }; } ;; | |
1221 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1222 | esac | |
1223 | fi | |
1224 | ||
1225 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1226 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1227 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1228 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1229 | libdir localedir mandir | |
795ca3e5 | 1230 | do |
7a197a62 | 1231 | eval ac_val=\$$ac_var |
b145d876 ZK |
1232 | # Remove trailing slashes. |
1233 | case $ac_val in | |
1234 | */ ) | |
1235 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1236 | eval $ac_var=\$ac_val;; | |
1237 | esac | |
1238 | # Be sure to have absolute directory names. | |
ad6254c5 | 1239 | case $ac_val in |
7a197a62 AK |
1240 | [\\/$]* | ?:[\\/]* ) continue;; |
1241 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1242 | esac |
b145d876 | 1243 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1244 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1245 | done |
1246 | ||
ad6254c5 AK |
1247 | # There might be people who depend on the old broken behavior: `$host' |
1248 | # used to hold the argument of --host etc. | |
1249 | # FIXME: To remove some day. | |
1250 | build=$build_alias | |
1251 | host=$host_alias | |
1252 | target=$target_alias | |
1253 | ||
1254 | # FIXME: To remove some day. | |
1255 | if test "x$host_alias" != x; then | |
1256 | if test "x$build_alias" = x; then | |
1257 | cross_compiling=maybe | |
b145d876 | 1258 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1259 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1260 | elif test "x$build_alias" != "x$host_alias"; then | |
1261 | cross_compiling=yes | |
1262 | fi | |
1263 | fi | |
8106cdd5 | 1264 | |
ad6254c5 AK |
1265 | ac_tool_prefix= |
1266 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1267 | ||
1268 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1269 | |
795ca3e5 | 1270 | |
7a197a62 AK |
1271 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1272 | ac_ls_di=`ls -di .` && | |
1273 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b145d876 | 1274 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1275 | { (exit 1); exit 1; }; } |
1276 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
b145d876 | 1277 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1278 | { (exit 1); exit 1; }; } |
1279 | ||
1280 | ||
795ca3e5 AK |
1281 | # Find the source files, if location was not specified. |
1282 | if test -z "$srcdir"; then | |
1283 | ac_srcdir_defaulted=yes | |
7a197a62 | 1284 | # Try the directory containing this script, then the parent directory. |
b145d876 ZK |
1285 | ac_confdir=`$as_dirname -- "$as_myself" || |
1286 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1287 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1288 | X"$as_myself" : 'X\(//\)$' \| \ | |
1289 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1290 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | /^X\(\/\/\)[^/].*/{ | |
1296 | s//\1/ | |
1297 | q | |
1298 | } | |
1299 | /^X\(\/\/\)$/{ | |
1300 | s//\1/ | |
1301 | q | |
1302 | } | |
1303 | /^X\(\/\).*/{ | |
1304 | s//\1/ | |
1305 | q | |
1306 | } | |
1307 | s/.*/./; q'` | |
795ca3e5 | 1308 | srcdir=$ac_confdir |
7a197a62 | 1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1310 | srcdir=.. |
1311 | fi | |
1312 | else | |
1313 | ac_srcdir_defaulted=no | |
1314 | fi | |
7a197a62 AK |
1315 | if test ! -r "$srcdir/$ac_unique_file"; then |
1316 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b145d876 | 1317 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1318 | { (exit 1); exit 1; }; } |
795ca3e5 | 1319 | fi |
7a197a62 AK |
1320 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1321 | ac_abs_confdir=`( | |
b145d876 | 1322 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1323 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1324 | pwd)` |
1325 | # When building in place, set srcdir=. | |
1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1327 | srcdir=. | |
1328 | fi | |
1329 | # Remove unnecessary trailing slashes from srcdir. | |
1330 | # Double slashes in file names in object file debugging info | |
1331 | # mess up M-x gdb in Emacs. | |
1332 | case $srcdir in | |
1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1334 | esac | |
1335 | for ac_var in $ac_precious_vars; do | |
1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1337 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1340 | done | |
ad6254c5 AK |
1341 | |
1342 | # | |
1343 | # Report the --help message. | |
1344 | # | |
1345 | if test "$ac_init_help" = "long"; then | |
1346 | # Omit some internal or obsolete options to make the list less imposing. | |
1347 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1348 | cat <<_ACEOF | |
1349 | \`configure' configures this package to adapt to many kinds of systems. | |
1350 | ||
1351 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1352 | ||
1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1354 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1355 | ||
1356 | Defaults for the options are specified in brackets. | |
1357 | ||
1358 | Configuration: | |
1359 | -h, --help display this help and exit | |
1360 | --help=short display options specific to this package | |
1361 | --help=recursive display the short help of all the included packages | |
1362 | -V, --version display version information and exit | |
1363 | -q, --quiet, --silent do not print \`checking...' messages | |
1364 | --cache-file=FILE cache test results in FILE [disabled] | |
1365 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1366 | -n, --no-create do not create output files | |
1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1368 | ||
ad6254c5 AK |
1369 | Installation directories: |
1370 | --prefix=PREFIX install architecture-independent files in PREFIX | |
b145d876 | 1371 | [$ac_default_prefix] |
ad6254c5 | 1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
b145d876 | 1373 | [PREFIX] |
ad6254c5 AK |
1374 | |
1375 | By default, \`make install' will install all the files in | |
1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1378 | for instance \`--prefix=\$HOME'. | |
1379 | ||
1380 | For better control, use the options below. | |
1381 | ||
1382 | Fine tuning of the installation directories: | |
b145d876 ZK |
1383 | --bindir=DIR user executables [EPREFIX/bin] |
1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1385 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1389 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1390 | --includedir=DIR C header files [PREFIX/include] | |
1391 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1392 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1393 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1394 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1395 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1396 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1397 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1398 | --htmldir=DIR html documentation [DOCDIR] | |
1399 | --dvidir=DIR dvi documentation [DOCDIR] | |
1400 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1401 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1402 | _ACEOF |
1403 | ||
1404 | cat <<\_ACEOF | |
1405 | ||
1406 | System types: | |
1407 | --build=BUILD configure for building on BUILD [guessed] | |
1408 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1409 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1410 | _ACEOF | |
1411 | fi | |
1412 | ||
1413 | if test -n "$ac_init_help"; then | |
1414 | ||
1415 | cat <<\_ACEOF | |
1416 | ||
1417 | Optional Features: | |
b145d876 | 1418 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1419 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1420 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1421 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1422 | device-mapper is missing from the kernel | |
1b523347 | 1423 | --disable-readline Disable readline support |
3d978351 | 1424 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1425 | --enable-debug Enable debugging |
5556819a | 1426 | --enable-profiling Gather gcov profiling data |
ad6254c5 AK |
1427 | --disable-devmapper Disable device-mapper interaction |
1428 | --disable-o_direct Disable O_DIRECT | |
1429 | --enable-cmdlib Build shared command library | |
1430 | --enable-fsadm Enable fsadm | |
15d91f5a | 1431 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1432 | --enable-static_link Use this to link the tools to their libraries |
1433 | statically. Default is dynamic linking | |
1434 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1435 | --enable-nls Enable Native Language Support |
1436 | ||
1437 | Optional Packages: | |
1438 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1439 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1440 | --with-user=USER Set the owner of installed files [USER=root] |
1441 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
ad6254c5 AK |
1442 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1443 | TYPE=internal | |
1444 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1445 | TYPE=internal | |
1446 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1447 | TYPE=internal | |
1448 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1449 | TYPE=internal | |
1450 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1451 | TYPE=internal | |
5c7fc7c4 | 1452 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1453 | TYPE=none |
d0191583 JM |
1454 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1455 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1456 | --with-confdir=DIR Configuration files in DIR /etc |
1457 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1458 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1459 | |
1460 | Some influential environment variables: | |
1461 | CC C compiler command | |
1462 | CFLAGS C compiler flags | |
1463 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1464 | nonstandard directory <lib dir> | |
25fbec5b | 1465 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1466 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1467 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1468 | CPP C preprocessor |
1469 | ||
1470 | Use these variables to override the choices made by `configure' or to help | |
1471 | it to find libraries and programs with nonstandard names/locations. | |
1472 | ||
1473 | _ACEOF | |
7a197a62 | 1474 | ac_status=$? |
ad6254c5 AK |
1475 | fi |
1476 | ||
1477 | if test "$ac_init_help" = "recursive"; then | |
1478 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1479 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
b145d876 ZK |
1480 | test -d "$ac_dir" || |
1481 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1482 | continue | |
ad6254c5 AK |
1483 | ac_builddir=. |
1484 | ||
7a197a62 AK |
1485 | case "$ac_dir" in |
1486 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1487 | *) | |
b145d876 | 1488 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1489 | # A ".." for each directory in $ac_dir_suffix. |
b145d876 | 1490 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1491 | case $ac_top_builddir_sub in |
1492 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1493 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1494 | esac ;; | |
1495 | esac | |
1496 | ac_abs_top_builddir=$ac_pwd | |
1497 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1498 | # for backward compatibility: | |
1499 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1500 | |
1501 | case $srcdir in | |
7a197a62 | 1502 | .) # We are building in place. |
ad6254c5 | 1503 | ac_srcdir=. |
7a197a62 AK |
1504 | ac_top_srcdir=$ac_top_builddir_sub |
1505 | ac_abs_top_srcdir=$ac_pwd ;; | |
1506 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1507 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1508 | ac_top_srcdir=$srcdir |
1509 | ac_abs_top_srcdir=$srcdir ;; | |
1510 | *) # Relative name. | |
1511 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1512 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1513 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1514 | esac |
7a197a62 AK |
1515 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1516 | ||
1517 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1518 | # Check for guested configure. | |
1519 | if test -f "$ac_srcdir/configure.gnu"; then | |
1520 | echo && | |
1521 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1522 | elif test -f "$ac_srcdir/configure"; then | |
1523 | echo && | |
1524 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1525 | else |
b145d876 | 1526 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1527 | fi || ac_status=$? |
1528 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1529 | done |
1530 | fi | |
1531 | ||
7a197a62 | 1532 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1533 | if $ac_init_version; then |
1534 | cat <<\_ACEOF | |
7a197a62 | 1535 | configure |
b145d876 | 1536 | generated by GNU Autoconf 2.62 |
ad6254c5 | 1537 | |
7a197a62 | 1538 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
b145d876 | 1539 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1540 | This configure script is free software; the Free Software Foundation |
1541 | gives unlimited permission to copy, distribute and modify it. | |
1542 | _ACEOF | |
7a197a62 | 1543 | exit |
ad6254c5 | 1544 | fi |
7a197a62 | 1545 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1546 | This file contains any messages produced by compilers while |
1547 | running configure, to aid debugging if configure makes a mistake. | |
1548 | ||
1549 | It was created by $as_me, which was | |
b145d876 | 1550 | generated by GNU Autoconf 2.62. Invocation command line was |
ad6254c5 AK |
1551 | |
1552 | $ $0 $@ | |
1553 | ||
1554 | _ACEOF | |
7a197a62 | 1555 | exec 5>>config.log |
ad6254c5 AK |
1556 | { |
1557 | cat <<_ASUNAME | |
1558 | ## --------- ## | |
1559 | ## Platform. ## | |
1560 | ## --------- ## | |
1561 | ||
1562 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1563 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1564 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1565 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1566 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1567 | ||
1568 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1569 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1570 | ||
1571 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1572 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1573 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1574 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1575 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1576 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1577 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1578 | ||
1579 | _ASUNAME | |
1580 | ||
1581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1582 | for as_dir in $PATH | |
1583 | do | |
1584 | IFS=$as_save_IFS | |
1585 | test -z "$as_dir" && as_dir=. | |
b145d876 | 1586 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1587 | done |
7a197a62 | 1588 | IFS=$as_save_IFS |
ad6254c5 AK |
1589 | |
1590 | } >&5 | |
1591 | ||
1592 | cat >&5 <<_ACEOF | |
1593 | ||
1594 | ||
1595 | ## ----------- ## | |
1596 | ## Core tests. ## | |
1597 | ## ----------- ## | |
1598 | ||
1599 | _ACEOF | |
1600 | ||
1601 | ||
1602 | # Keep a trace of the command line. | |
1603 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1604 | # Strip out --silent because we don't want to record it for future runs. | |
1605 | # Also quote any args containing shell meta-characters. | |
1606 | # Make two passes to allow for proper duplicate-argument suppression. | |
1607 | ac_configure_args= | |
1608 | ac_configure_args0= | |
1609 | ac_configure_args1= | |
ad6254c5 AK |
1610 | ac_must_keep_next=false |
1611 | for ac_pass in 1 2 | |
1612 | do | |
1613 | for ac_arg | |
1614 | do | |
1615 | case $ac_arg in | |
1616 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1617 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1618 | | -silent | --silent | --silen | --sile | --sil) | |
1619 | continue ;; | |
7a197a62 | 1620 | *\'*) |
b145d876 | 1621 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1622 | esac |
1623 | case $ac_pass in | |
1624 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1625 | 2) | |
1626 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1627 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1628 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1629 | else |
8a2fc586 AK |
1630 | case $ac_arg in |
1631 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1632 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1633 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1634 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1635 | case "$ac_configure_args0 " in | |
1636 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1637 | esac | |
1638 | ;; | |
1639 | -* ) ac_must_keep_next=true ;; | |
1640 | esac | |
ad6254c5 | 1641 | fi |
7a197a62 | 1642 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1643 | ;; |
1644 | esac | |
1645 | done | |
1646 | done | |
1647 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1648 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1649 | ||
1650 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1651 | # config.log. We remove comments because anyway the quotes in there | |
1652 | # would cause problems or look ugly. | |
7a197a62 AK |
1653 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1654 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1655 | trap 'exit_status=$? |
1656 | # Save into config.log some information that might help in debugging. | |
1657 | { | |
1658 | echo | |
1659 | ||
1660 | cat <<\_ASBOX | |
1661 | ## ---------------- ## | |
1662 | ## Cache variables. ## | |
1663 | ## ---------------- ## | |
1664 | _ASBOX | |
1665 | echo | |
1666 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1667 | ( |
1668 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1669 | eval ac_val=\$$ac_var | |
1670 | case $ac_val in #( | |
1671 | *${as_nl}*) | |
1672 | case $ac_var in #( | |
b145d876 ZK |
1673 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1674 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1675 | esac |
1676 | case $ac_var in #( | |
1677 | _ | IFS | as_nl) ;; #( | |
b145d876 | 1678 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1679 | *) $as_unset $ac_var ;; |
1680 | esac ;; | |
1681 | esac | |
1682 | done | |
ad6254c5 | 1683 | (set) 2>&1 | |
7a197a62 AK |
1684 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1685 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1686 | sed -n \ |
7a197a62 AK |
1687 | "s/'\''/'\''\\\\'\'''\''/g; |
1688 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1689 | ;; #( | |
ad6254c5 | 1690 | *) |
7a197a62 | 1691 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1692 | ;; |
7a197a62 AK |
1693 | esac | |
1694 | sort | |
1695 | ) | |
ad6254c5 AK |
1696 | echo |
1697 | ||
1698 | cat <<\_ASBOX | |
1699 | ## ----------------- ## | |
1700 | ## Output variables. ## | |
1701 | ## ----------------- ## | |
1702 | _ASBOX | |
1703 | echo | |
1704 | for ac_var in $ac_subst_vars | |
1705 | do | |
7a197a62 AK |
1706 | eval ac_val=\$$ac_var |
1707 | case $ac_val in | |
b145d876 | 1708 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1709 | esac |
b145d876 | 1710 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1711 | done | sort |
1712 | echo | |
1713 | ||
1714 | if test -n "$ac_subst_files"; then | |
1715 | cat <<\_ASBOX | |
7a197a62 AK |
1716 | ## ------------------- ## |
1717 | ## File substitutions. ## | |
1718 | ## ------------------- ## | |
ad6254c5 AK |
1719 | _ASBOX |
1720 | echo | |
1721 | for ac_var in $ac_subst_files | |
1722 | do | |
7a197a62 AK |
1723 | eval ac_val=\$$ac_var |
1724 | case $ac_val in | |
b145d876 | 1725 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1726 | esac |
b145d876 | 1727 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1728 | done | sort |
1729 | echo | |
1730 | fi | |
1731 | ||
1732 | if test -s confdefs.h; then | |
1733 | cat <<\_ASBOX | |
1734 | ## ----------- ## | |
1735 | ## confdefs.h. ## | |
1736 | ## ----------- ## | |
1737 | _ASBOX | |
1738 | echo | |
7a197a62 | 1739 | cat confdefs.h |
ad6254c5 AK |
1740 | echo |
1741 | fi | |
1742 | test "$ac_signal" != 0 && | |
b145d876 ZK |
1743 | $as_echo "$as_me: caught signal $ac_signal" |
1744 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1745 | } >&5 |
7a197a62 AK |
1746 | rm -f core *.core core.conftest.* && |
1747 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1748 | exit $exit_status |
7a197a62 | 1749 | ' 0 |
ad6254c5 AK |
1750 | for ac_signal in 1 2 13 15; do |
1751 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1752 | done | |
1753 | ac_signal=0 | |
1754 | ||
1755 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1756 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1757 | |
1758 | # Predefined preprocessor variables. | |
1759 | ||
1760 | cat >>confdefs.h <<_ACEOF | |
1761 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1762 | _ACEOF | |
1763 | ||
1764 | ||
1765 | cat >>confdefs.h <<_ACEOF | |
1766 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1767 | _ACEOF | |
1768 | ||
1769 | ||
1770 | cat >>confdefs.h <<_ACEOF | |
1771 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1772 | _ACEOF | |
8106cdd5 | 1773 | |
ad6254c5 AK |
1774 | |
1775 | cat >>confdefs.h <<_ACEOF | |
1776 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1777 | _ACEOF | |
1778 | ||
1779 | ||
1780 | cat >>confdefs.h <<_ACEOF | |
1781 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1782 | _ACEOF | |
1783 | ||
1784 | ||
1785 | # Let the site file select an alternate cache file if it wants to. | |
b145d876 ZK |
1786 | # Prefer an explicitly selected file to automatically selected ones. |
1787 | ac_site_file1=NONE | |
1788 | ac_site_file2=NONE | |
7a197a62 | 1789 | if test -n "$CONFIG_SITE"; then |
b145d876 | 1790 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1791 | elif test "x$prefix" != xNONE; then |
b145d876 ZK |
1792 | ac_site_file1=$prefix/share/config.site |
1793 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1794 | else |
b145d876 ZK |
1795 | ac_site_file1=$ac_default_prefix/share/config.site |
1796 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1797 | fi |
b145d876 | 1798 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1799 | do |
b145d876 | 1800 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1801 | if test -r "$ac_site_file"; then |
b145d876 ZK |
1802 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1803 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1804 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1805 | . "$ac_site_file" |
1806 | fi | |
1807 | done | |
1808 | ||
1809 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1810 | # Some versions of bash will fail to source /dev/null (special |
1811 | # files actually), so we avoid doing that. | |
1812 | if test -f "$cache_file"; then | |
b145d876 ZK |
1813 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1814 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1815 | case $cache_file in |
7a197a62 AK |
1816 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1817 | *) . "./$cache_file";; | |
ad6254c5 AK |
1818 | esac |
1819 | fi | |
795ca3e5 | 1820 | else |
b145d876 ZK |
1821 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1822 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1823 | >$cache_file |
1824 | fi | |
1825 | ||
1826 | # Check that the precious variables saved in the cache have kept the same | |
1827 | # value. | |
1828 | ac_cache_corrupted=false | |
7a197a62 | 1829 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1830 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1831 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1832 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1833 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1834 | case $ac_old_set,$ac_new_set in |
1835 | set,) | |
b145d876 ZK |
1836 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1837 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1838 | ac_cache_corrupted=: ;; |
1839 | ,set) | |
b145d876 ZK |
1840 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1841 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1842 | ac_cache_corrupted=: ;; |
1843 | ,);; | |
1844 | *) | |
1845 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
b145d876 ZK |
1846 | # differences in whitespace do not lead to failure. |
1847 | ac_old_val_w=`echo x $ac_old_val` | |
1848 | ac_new_val_w=`echo x $ac_new_val` | |
1849 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1850 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1851 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1852 | ac_cache_corrupted=: | |
1853 | else | |
1854 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1855 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1856 | eval $ac_var=\$ac_old_val | |
1857 | fi | |
1858 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1859 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1860 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1861 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1862 | fi;; |
1863 | esac | |
1864 | # Pass precious variables to config.status. | |
1865 | if test "$ac_new_set" = set; then | |
1866 | case $ac_new_val in | |
b145d876 | 1867 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1868 | *) ac_arg=$ac_var=$ac_new_val ;; |
1869 | esac | |
1870 | case " $ac_configure_args " in | |
1871 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1872 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1873 | esac | |
1874 | fi | |
1875 | done | |
1876 | if $ac_cache_corrupted; then | |
b145d876 ZK |
1877 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1878 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1879 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1880 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1881 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1882 | fi |
1883 | ||
ad6254c5 AK |
1884 | |
1885 | ||
1886 | ||
1887 | ||
1888 | ||
1889 | ||
1890 | ||
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | ||
1897 | ||
1898 | ||
1899 | ||
7a197a62 AK |
1900 | ac_ext=c |
1901 | ac_cpp='$CPP $CPPFLAGS' | |
1902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1905 | |
795ca3e5 AK |
1906 | |
1907 | ||
7a197a62 | 1908 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1909 | |
1910 | ||
80992638 | 1911 | ################################################################################ |
795ca3e5 | 1912 | ac_aux_dir= |
7a197a62 AK |
1913 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1914 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1915 | ac_aux_dir=$ac_dir |
1916 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1917 | break | |
7a197a62 | 1918 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1919 | ac_aux_dir=$ac_dir |
1920 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1921 | break | |
7a197a62 | 1922 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1923 | ac_aux_dir=$ac_dir |
1924 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1925 | break | |
795ca3e5 AK |
1926 | fi |
1927 | done | |
1928 | if test -z "$ac_aux_dir"; then | |
b145d876 ZK |
1929 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1930 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1931 | { (exit 1); exit 1; }; } |
795ca3e5 | 1932 | fi |
7a197a62 AK |
1933 | |
1934 | # These three variables are undocumented and unsupported, | |
1935 | # and are intended to be withdrawn in a future Autoconf release. | |
1936 | # They can cause serious problems if a builder's source tree is in a directory | |
1937 | # whose full name contains unusual characters. | |
1938 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1939 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1940 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1941 | ||
8ce0cbda AK |
1942 | |
1943 | ||
ad6254c5 | 1944 | ################################################################################ |
8ce0cbda | 1945 | # Make sure we can run config.sub. |
7a197a62 | 1946 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b145d876 ZK |
1947 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1948 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1949 | { (exit 1); exit 1; }; } |
1950 | ||
b145d876 ZK |
1951 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
1952 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 1953 | if test "${ac_cv_build+set}" = set; then |
b145d876 | 1954 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1955 | else |
7a197a62 AK |
1956 | ac_build_alias=$build_alias |
1957 | test "x$ac_build_alias" = x && | |
1958 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1959 | test "x$ac_build_alias" = x && | |
b145d876 ZK |
1960 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1961 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1962 | { (exit 1); exit 1; }; } |
7a197a62 | 1963 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b145d876 ZK |
1964 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1965 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1966 | { (exit 1); exit 1; }; } |
1967 | ||
1968 | fi | |
b145d876 ZK |
1969 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1970 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
1971 | case $ac_cv_build in |
1972 | *-*-*) ;; | |
b145d876 ZK |
1973 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1974 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1975 | { (exit 1); exit 1; }; };; |
1976 | esac | |
ad6254c5 | 1977 | build=$ac_cv_build |
7a197a62 AK |
1978 | ac_save_IFS=$IFS; IFS='-' |
1979 | set x $ac_cv_build | |
1980 | shift | |
1981 | build_cpu=$1 | |
1982 | build_vendor=$2 | |
1983 | shift; shift | |
1984 | # Remember, the first character of IFS is used to create $*, | |
1985 | # except with old shells: | |
1986 | build_os=$* | |
1987 | IFS=$ac_save_IFS | |
1988 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1989 | |
1990 | ||
b145d876 ZK |
1991 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
1992 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 1993 | if test "${ac_cv_host+set}" = set; then |
b145d876 | 1994 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1995 | else |
7a197a62 AK |
1996 | if test "x$host_alias" = x; then |
1997 | ac_cv_host=$ac_cv_build | |
1998 | else | |
1999 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b145d876 ZK |
2000 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2001 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2002 | { (exit 1); exit 1; }; } |
7a197a62 | 2003 | fi |
ad6254c5 AK |
2004 | |
2005 | fi | |
b145d876 ZK |
2006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2007 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2008 | case $ac_cv_host in |
2009 | *-*-*) ;; | |
b145d876 ZK |
2010 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2011 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2012 | { (exit 1); exit 1; }; };; |
2013 | esac | |
ad6254c5 | 2014 | host=$ac_cv_host |
7a197a62 AK |
2015 | ac_save_IFS=$IFS; IFS='-' |
2016 | set x $ac_cv_host | |
2017 | shift | |
2018 | host_cpu=$1 | |
2019 | host_vendor=$2 | |
2020 | shift; shift | |
2021 | # Remember, the first character of IFS is used to create $*, | |
2022 | # except with old shells: | |
2023 | host_os=$* | |
2024 | IFS=$ac_save_IFS | |
2025 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2026 | |
2027 | ||
b145d876 ZK |
2028 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2029 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2030 | if test "${ac_cv_target+set}" = set; then |
b145d876 | 2031 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2032 | else |
7a197a62 AK |
2033 | if test "x$target_alias" = x; then |
2034 | ac_cv_target=$ac_cv_host | |
2035 | else | |
2036 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
b145d876 ZK |
2037 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2038 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2039 | { (exit 1); exit 1; }; } |
7a197a62 | 2040 | fi |
8ce0cbda | 2041 | |
ad6254c5 | 2042 | fi |
b145d876 ZK |
2043 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2044 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2045 | case $ac_cv_target in |
2046 | *-*-*) ;; | |
b145d876 ZK |
2047 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2048 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2049 | { (exit 1); exit 1; }; };; |
2050 | esac | |
ad6254c5 | 2051 | target=$ac_cv_target |
7a197a62 AK |
2052 | ac_save_IFS=$IFS; IFS='-' |
2053 | set x $ac_cv_target | |
2054 | shift | |
2055 | target_cpu=$1 | |
2056 | target_vendor=$2 | |
2057 | shift; shift | |
2058 | # Remember, the first character of IFS is used to create $*, | |
2059 | # except with old shells: | |
2060 | target_os=$* | |
2061 | IFS=$ac_save_IFS | |
2062 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2063 | |
8ce0cbda | 2064 | |
ad6254c5 AK |
2065 | # The aliases save the names the user supplied, while $host etc. |
2066 | # will get canonicalized. | |
2067 | test -n "$target_alias" && | |
8ce0cbda AK |
2068 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2069 | NONENONEs,x,x, && | |
2070 | program_prefix=${target_alias}- | |
2071 | ||
8ce0cbda AK |
2072 | case "$host_os" in |
2073 | linux*) | |
8ce0cbda AK |
2074 | COPTIMISE_FLAG="-O2" |
2075 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2076 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2077 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2078 | LDDEPS="$LDDEPS .export.sym" | |
2079 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2080 | LIB_SUFFIX=so |
8ce0cbda AK |
2081 | DEVMAPPER=yes |
2082 | ODIRECT=yes | |
d0191583 | 2083 | DM_IOCTLS=yes |
8ce0cbda | 2084 | SELINUX=yes |
8b1a3214 | 2085 | REALTIME=yes |
8ce0cbda | 2086 | CLUSTER=internal |
d0191583 JM |
2087 | FSADM=no |
2088 | ;; | |
8ce0cbda AK |
2089 | darwin*) |
2090 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2091 | COPTIMISE_FLAG="-O2" | |
2092 | CLDFLAGS="$CLDFLAGS" | |
2093 | CLDWHOLEARCHIVE="-all_load" | |
2094 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2095 | LIB_SUFFIX=dylib |
a653923f | 2096 | DEVMAPPER=yes |
8ce0cbda | 2097 | ODIRECT=no |
d0191583 | 2098 | DM_IOCTLS=no |
8ce0cbda | 2099 | SELINUX=no |
8b1a3214 | 2100 | REALTIME=no |
8ce0cbda | 2101 | CLUSTER=none |
d0191583 JM |
2102 | FSADM=no |
2103 | ;; | |
8ce0cbda AK |
2104 | esac |
2105 | ||
80992638 | 2106 | ################################################################################ |
ad6254c5 | 2107 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2108 | do |
ad6254c5 | 2109 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2110 | set dummy $ac_prog; ac_word=$2 |
b145d876 ZK |
2111 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2112 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2113 | if test "${ac_cv_prog_AWK+set}" = set; then |
b145d876 | 2114 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2115 | else |
2116 | if test -n "$AWK"; then | |
2117 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2118 | else | |
ad6254c5 AK |
2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2120 | for as_dir in $PATH | |
2121 | do | |
2122 | IFS=$as_save_IFS | |
2123 | test -z "$as_dir" && as_dir=. | |
2124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2126 | ac_cv_prog_AWK="$ac_prog" |
b145d876 | 2127 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2128 | break 2 |
2129 | fi | |
2130 | done | |
2131 | done | |
7a197a62 | 2132 | IFS=$as_save_IFS |
ad6254c5 | 2133 | |
795ca3e5 AK |
2134 | fi |
2135 | fi | |
ad6254c5 | 2136 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2137 | if test -n "$AWK"; then |
b145d876 ZK |
2138 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2139 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2140 | else |
b145d876 ZK |
2141 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2142 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2143 | fi |
2144 | ||
7a197a62 | 2145 | |
ad6254c5 AK |
2146 | test -n "$AWK" && break |
2147 | done | |
2148 | ||
2149 | ac_ext=c | |
2150 | ac_cpp='$CPP $CPPFLAGS' | |
2151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2154 | if test -n "$ac_tool_prefix"; then | |
2155 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2156 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b145d876 ZK |
2157 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2158 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2159 | if test "${ac_cv_prog_CC+set}" = set; then |
b145d876 | 2160 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2161 | else |
2162 | if test -n "$CC"; then | |
2163 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2164 | else | |
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2166 | for as_dir in $PATH | |
2167 | do | |
2168 | IFS=$as_save_IFS | |
2169 | test -z "$as_dir" && as_dir=. | |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2172 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b145d876 | 2173 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2174 | break 2 |
2175 | fi | |
2176 | done | |
8106cdd5 | 2177 | done |
7a197a62 | 2178 | IFS=$as_save_IFS |
8106cdd5 | 2179 | |
ad6254c5 AK |
2180 | fi |
2181 | fi | |
2182 | CC=$ac_cv_prog_CC | |
2183 | if test -n "$CC"; then | |
b145d876 ZK |
2184 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2185 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2186 | else |
b145d876 ZK |
2187 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2188 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2189 | fi |
2190 | ||
7a197a62 | 2191 | |
ad6254c5 AK |
2192 | fi |
2193 | if test -z "$ac_cv_prog_CC"; then | |
2194 | ac_ct_CC=$CC | |
2195 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2196 | set dummy gcc; ac_word=$2 |
b145d876 ZK |
2197 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2198 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2199 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
b145d876 | 2200 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2201 | else |
2202 | if test -n "$ac_ct_CC"; then | |
2203 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2204 | else | |
2205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2206 | for as_dir in $PATH | |
2207 | do | |
2208 | IFS=$as_save_IFS | |
2209 | test -z "$as_dir" && as_dir=. | |
2210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2212 | ac_cv_prog_ac_ct_CC="gcc" |
b145d876 | 2213 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2214 | break 2 |
2215 | fi | |
2216 | done | |
2217 | done | |
7a197a62 | 2218 | IFS=$as_save_IFS |
ad6254c5 AK |
2219 | |
2220 | fi | |
2221 | fi | |
2222 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2223 | if test -n "$ac_ct_CC"; then | |
b145d876 ZK |
2224 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2225 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2226 | else |
b145d876 ZK |
2227 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2228 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2229 | fi |
2230 | ||
7a197a62 AK |
2231 | if test "x$ac_ct_CC" = x; then |
2232 | CC="" | |
2233 | else | |
2234 | case $cross_compiling:$ac_tool_warned in | |
2235 | yes:) | |
b145d876 | 2236 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2237 | whose name does not start with the host triplet. If you think this |
2238 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
b145d876 | 2239 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2240 | whose name does not start with the host triplet. If you think this |
2241 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2242 | ac_tool_warned=yes ;; | |
2243 | esac | |
2244 | CC=$ac_ct_CC | |
2245 | fi | |
ad6254c5 AK |
2246 | else |
2247 | CC="$ac_cv_prog_CC" | |
2248 | fi | |
2249 | ||
2250 | if test -z "$CC"; then | |
7a197a62 AK |
2251 | if test -n "$ac_tool_prefix"; then |
2252 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2253 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b145d876 ZK |
2254 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2255 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2256 | if test "${ac_cv_prog_CC+set}" = set; then |
b145d876 | 2257 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2258 | else |
2259 | if test -n "$CC"; then | |
2260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2261 | else | |
ad6254c5 AK |
2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2263 | for as_dir in $PATH | |
2264 | do | |
2265 | IFS=$as_save_IFS | |
2266 | test -z "$as_dir" && as_dir=. | |
2267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2269 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b145d876 | 2270 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2271 | break 2 |
2272 | fi | |
2273 | done | |
2274 | done | |
7a197a62 | 2275 | IFS=$as_save_IFS |
ad6254c5 | 2276 | |
8106cdd5 AK |
2277 | fi |
2278 | fi | |
ad6254c5 | 2279 | CC=$ac_cv_prog_CC |
8106cdd5 | 2280 | if test -n "$CC"; then |
b145d876 ZK |
2281 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2282 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2283 | else |
b145d876 ZK |
2284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2285 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2286 | fi |
2287 | ||
8106cdd5 | 2288 | |
7a197a62 | 2289 | fi |
ad6254c5 | 2290 | fi |
795ca3e5 AK |
2291 | if test -z "$CC"; then |
2292 | # Extract the first word of "cc", so it can be a program name with args. | |
2293 | set dummy cc; ac_word=$2 | |
b145d876 ZK |
2294 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2295 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2296 | if test "${ac_cv_prog_CC+set}" = set; then |
b145d876 | 2297 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2298 | else |
2299 | if test -n "$CC"; then | |
2300 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2301 | else | |
795ca3e5 | 2302 | ac_prog_rejected=no |
ad6254c5 AK |
2303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2304 | for as_dir in $PATH | |
2305 | do | |
2306 | IFS=$as_save_IFS | |
2307 | test -z "$as_dir" && as_dir=. | |
2308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2310 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2311 | ac_prog_rejected=yes | |
2312 | continue | |
2313 | fi | |
2314 | ac_cv_prog_CC="cc" | |
b145d876 | 2315 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2316 | break 2 |
2317 | fi | |
2318 | done | |
2319 | done | |
7a197a62 | 2320 | IFS=$as_save_IFS |
ad6254c5 | 2321 | |
795ca3e5 AK |
2322 | if test $ac_prog_rejected = yes; then |
2323 | # We found a bogon in the path, so make sure we never use it. | |
2324 | set dummy $ac_cv_prog_CC | |
2325 | shift | |
ad6254c5 | 2326 | if test $# != 0; then |
795ca3e5 AK |
2327 | # We chose a different compiler from the bogus one. |
2328 | # However, it has the same basename, so the bogon will be chosen | |
2329 | # first if we set CC to just the basename; use the full file name. | |
2330 | shift | |
ad6254c5 | 2331 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2332 | fi |
2333 | fi | |
2334 | fi | |
2335 | fi | |
ad6254c5 | 2336 | CC=$ac_cv_prog_CC |
795ca3e5 | 2337 | if test -n "$CC"; then |
b145d876 ZK |
2338 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2339 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2340 | else |
b145d876 ZK |
2341 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2342 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2343 | fi |
2344 | ||
7a197a62 | 2345 | |
ad6254c5 AK |
2346 | fi |
2347 | if test -z "$CC"; then | |
2348 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2349 | for ac_prog in cl.exe |
ad6254c5 AK |
2350 | do |
2351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b145d876 ZK |
2353 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2354 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2355 | if test "${ac_cv_prog_CC+set}" = set; then |
b145d876 | 2356 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2357 | else |
2358 | if test -n "$CC"; then | |
2359 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2360 | else | |
ad6254c5 AK |
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2362 | for as_dir in $PATH | |
2363 | do | |
2364 | IFS=$as_save_IFS | |
2365 | test -z "$as_dir" && as_dir=. | |
2366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2368 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b145d876 | 2369 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2370 | break 2 |
2371 | fi | |
2372 | done | |
2373 | done | |
7a197a62 | 2374 | IFS=$as_save_IFS |
ad6254c5 | 2375 | |
795ca3e5 AK |
2376 | fi |
2377 | fi | |
ad6254c5 | 2378 | CC=$ac_cv_prog_CC |
795ca3e5 | 2379 | if test -n "$CC"; then |
b145d876 ZK |
2380 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2381 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2382 | else |
b145d876 ZK |
2383 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2384 | $as_echo "no" >&6; } | |
795ca3e5 | 2385 | fi |
ad6254c5 | 2386 | |
7a197a62 | 2387 | |
ad6254c5 AK |
2388 | test -n "$CC" && break |
2389 | done | |
2390 | fi | |
2391 | if test -z "$CC"; then | |
2392 | ac_ct_CC=$CC | |
7a197a62 | 2393 | for ac_prog in cl.exe |
ad6254c5 AK |
2394 | do |
2395 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2396 | set dummy $ac_prog; ac_word=$2 | |
b145d876 ZK |
2397 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2398 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2399 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
b145d876 | 2400 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2401 | else |
2402 | if test -n "$ac_ct_CC"; then | |
2403 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2404 | else | |
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2406 | for as_dir in $PATH | |
2407 | do | |
2408 | IFS=$as_save_IFS | |
2409 | test -z "$as_dir" && as_dir=. | |
2410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2412 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b145d876 | 2413 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2414 | break 2 |
795ca3e5 | 2415 | fi |
ad6254c5 AK |
2416 | done |
2417 | done | |
7a197a62 | 2418 | IFS=$as_save_IFS |
ad6254c5 AK |
2419 | |
2420 | fi | |
2421 | fi | |
2422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2423 | if test -n "$ac_ct_CC"; then | |
b145d876 ZK |
2424 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2425 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2426 | else |
b145d876 ZK |
2427 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2428 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2429 | fi |
2430 | ||
7a197a62 | 2431 | |
ad6254c5 AK |
2432 | test -n "$ac_ct_CC" && break |
2433 | done | |
795ca3e5 | 2434 | |
7a197a62 AK |
2435 | if test "x$ac_ct_CC" = x; then |
2436 | CC="" | |
2437 | else | |
2438 | case $cross_compiling:$ac_tool_warned in | |
2439 | yes:) | |
b145d876 | 2440 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2441 | whose name does not start with the host triplet. If you think this |
2442 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
b145d876 | 2443 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2444 | whose name does not start with the host triplet. If you think this |
2445 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2446 | ac_tool_warned=yes ;; | |
2447 | esac | |
2448 | CC=$ac_ct_CC | |
2449 | fi | |
ad6254c5 AK |
2450 | fi |
2451 | ||
2452 | fi | |
2453 | ||
2454 | ||
b145d876 | 2455 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2456 | See \`config.log' for more details." >&5 |
b145d876 | 2457 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2458 | See \`config.log' for more details." >&2;} |
2459 | { (exit 1); exit 1; }; } | |
2460 | ||
2461 | # Provide some information about the compiler. | |
b145d876 ZK |
2462 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2463 | set X $ac_compile | |
2464 | ac_compiler=$2 | |
7a197a62 AK |
2465 | { (ac_try="$ac_compiler --version >&5" |
2466 | case "(($ac_try" in | |
2467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2468 | *) ac_try_echo=$ac_try;; | |
2469 | esac | |
b145d876 ZK |
2470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2471 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2472 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2473 | ac_status=$? |
b145d876 | 2474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2475 | (exit $ac_status); } |
7a197a62 AK |
2476 | { (ac_try="$ac_compiler -v >&5" |
2477 | case "(($ac_try" in | |
2478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2479 | *) ac_try_echo=$ac_try;; | |
2480 | esac | |
b145d876 ZK |
2481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2482 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2483 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2484 | ac_status=$? |
b145d876 | 2485 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2486 | (exit $ac_status); } |
7a197a62 AK |
2487 | { (ac_try="$ac_compiler -V >&5" |
2488 | case "(($ac_try" in | |
2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2490 | *) ac_try_echo=$ac_try;; | |
2491 | esac | |
b145d876 ZK |
2492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2493 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2494 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2495 | ac_status=$? |
b145d876 | 2496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2497 | (exit $ac_status); } |
2498 | ||
2499 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2500 | /* confdefs.h. */ |
2501 | _ACEOF | |
2502 | cat confdefs.h >>conftest.$ac_ext | |
2503 | cat >>conftest.$ac_ext <<_ACEOF | |
2504 | /* end confdefs.h. */ | |
2505 | ||
2506 | int | |
2507 | main () | |
2508 | { | |
2509 | ||
2510 | ; | |
2511 | return 0; | |
2512 | } | |
2513 | _ACEOF | |
2514 | ac_clean_files_save=$ac_clean_files | |
b145d876 | 2515 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2516 | # Try to create an executable without -o first, disregard a.out. |
2517 | # It will help us diagnose broken compilers, and finding out an intuition | |
2518 | # of exeext. | |
b145d876 ZK |
2519 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2520 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2521 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2522 | ||
2523 | # The possible output files: | |
2524 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2525 | ||
7a197a62 AK |
2526 | ac_rmfiles= |
2527 | for ac_file in $ac_files | |
2528 | do | |
2529 | case $ac_file in | |
b145d876 | 2530 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2531 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2532 | esac | |
2533 | done | |
2534 | rm -f $ac_rmfiles | |
2535 | ||
2536 | if { (ac_try="$ac_link_default" | |
2537 | case "(($ac_try" in | |
2538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2539 | *) ac_try_echo=$ac_try;; | |
2540 | esac | |
b145d876 ZK |
2541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2542 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2543 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2544 | ac_status=$? |
b145d876 | 2545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2546 | (exit $ac_status); }; then |
7a197a62 AK |
2547 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2548 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2549 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2550 | # so that the user can short-circuit this test for compilers unknown to | |
2551 | # Autoconf. | |
25fbec5b | 2552 | for ac_file in $ac_files '' |
ad6254c5 AK |
2553 | do |
2554 | test -f "$ac_file" || continue | |
2555 | case $ac_file in | |
b145d876 | 2556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2557 | ;; |
ad6254c5 | 2558 | [ab].out ) |
8a2fc586 AK |
2559 | # We found the default executable, but exeext='' is most |
2560 | # certainly right. | |
2561 | break;; | |
ad6254c5 | 2562 | *.* ) |
7a197a62 AK |
2563 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2564 | then :; else | |
2565 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2566 | fi | |
2567 | # We set ac_cv_exeext here because the later test for it is not | |
2568 | # safe: cross compilers may not add the suffix if given an `-o' | |
2569 | # argument, so we may need to know it at that point already. | |
2570 | # Even if this section looks crufty: it has the advantage of | |
2571 | # actually working. | |
8a2fc586 | 2572 | break;; |
ad6254c5 | 2573 | * ) |
8a2fc586 | 2574 | break;; |
ad6254c5 AK |
2575 | esac |
2576 | done | |
7a197a62 AK |
2577 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2578 | ||
ad6254c5 | 2579 | else |
25fbec5b AK |
2580 | ac_file='' |
2581 | fi | |
2582 | ||
b145d876 ZK |
2583 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2584 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2585 | if test -z "$ac_file"; then |
b145d876 | 2586 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2587 | sed 's/^/| /' conftest.$ac_ext >&5 |
2588 | ||
b145d876 | 2589 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2590 | See \`config.log' for more details." >&5 |
b145d876 | 2591 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2592 | See \`config.log' for more details." >&2;} |
2593 | { (exit 77); exit 77; }; } | |
2594 | fi | |
2595 | ||
2596 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2597 | |
7a197a62 | 2598 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2599 | # the compiler is broken, or we cross compile. |
b145d876 ZK |
2600 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2601 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2602 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2603 | # If not cross compiling, check that we can run a simple program. | |
2604 | if test "$cross_compiling" != yes; then | |
2605 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2606 | { (case "(($ac_try" in |
2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2608 | *) ac_try_echo=$ac_try;; | |
2609 | esac | |
b145d876 ZK |
2610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2612 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2613 | ac_status=$? |
b145d876 | 2614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2615 | (exit $ac_status); }; }; then |
2616 | cross_compiling=no | |
795ca3e5 | 2617 | else |
ad6254c5 AK |
2618 | if test "$cross_compiling" = maybe; then |
2619 | cross_compiling=yes | |
2620 | else | |
b145d876 | 2621 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2622 | If you meant to cross compile, use \`--host'. |
2623 | See \`config.log' for more details." >&5 | |
b145d876 | 2624 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2625 | If you meant to cross compile, use \`--host'. |
2626 | See \`config.log' for more details." >&2;} | |
2627 | { (exit 1); exit 1; }; } | |
2628 | fi | |
795ca3e5 | 2629 | fi |
80992638 | 2630 | fi |
b145d876 ZK |
2631 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2632 | $as_echo "yes" >&6; } | |
ad6254c5 | 2633 | |
b145d876 | 2634 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2635 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2636 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2637 | # the compiler is broken, or we cross compile. |
b145d876 ZK |
2638 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2639 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2640 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2641 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2642 | |
b145d876 ZK |
2643 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2644 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2645 | if { (ac_try="$ac_link" |
2646 | case "(($ac_try" in | |
2647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2648 | *) ac_try_echo=$ac_try;; | |
2649 | esac | |
b145d876 ZK |
2650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2651 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2652 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2653 | ac_status=$? |
b145d876 | 2654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2655 | (exit $ac_status); }; then |
2656 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2657 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2658 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2659 | # `rm'. | |
2660 | for ac_file in conftest.exe conftest conftest.*; do | |
2661 | test -f "$ac_file" || continue | |
2662 | case $ac_file in | |
b145d876 | 2663 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2664 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2665 | break;; |
ad6254c5 AK |
2666 | * ) break;; |
2667 | esac | |
2668 | done | |
80992638 | 2669 | else |
b145d876 | 2670 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2671 | See \`config.log' for more details." >&5 |
b145d876 | 2672 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2673 | See \`config.log' for more details." >&2;} |
2674 | { (exit 1); exit 1; }; } | |
2675 | fi | |
2676 | ||
2677 | rm -f conftest$ac_cv_exeext | |
b145d876 ZK |
2678 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2679 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2680 | |
2681 | rm -f conftest.$ac_ext | |
2682 | EXEEXT=$ac_cv_exeext | |
2683 | ac_exeext=$EXEEXT | |
b145d876 ZK |
2684 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2685 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2686 | if test "${ac_cv_objext+set}" = set; then |
b145d876 | 2687 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2688 | else |
ad6254c5 | 2689 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2690 | /* confdefs.h. */ |
2691 | _ACEOF | |
2692 | cat confdefs.h >>conftest.$ac_ext | |
2693 | cat >>conftest.$ac_ext <<_ACEOF | |
2694 | /* end confdefs.h. */ | |
2695 | ||
2696 | int | |
2697 | main () | |
2698 | { | |
2699 | ||
2700 | ; | |
2701 | return 0; | |
2702 | } | |
2703 | _ACEOF | |
2704 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2705 | if { (ac_try="$ac_compile" |
2706 | case "(($ac_try" in | |
2707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2708 | *) ac_try_echo=$ac_try;; | |
2709 | esac | |
b145d876 ZK |
2710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2711 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2712 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2713 | ac_status=$? |
b145d876 | 2714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2715 | (exit $ac_status); }; then |
7a197a62 AK |
2716 | for ac_file in conftest.o conftest.obj conftest.*; do |
2717 | test -f "$ac_file" || continue; | |
ad6254c5 | 2718 | case $ac_file in |
b145d876 | 2719 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2720 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2721 | break;; | |
2722 | esac | |
2723 | done | |
2724 | else | |
b145d876 | 2725 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2726 | sed 's/^/| /' conftest.$ac_ext >&5 |
2727 | ||
b145d876 | 2728 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2729 | See \`config.log' for more details." >&5 |
b145d876 | 2730 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2731 | See \`config.log' for more details." >&2;} |
2732 | { (exit 1); exit 1; }; } | |
2733 | fi | |
2734 | ||
2735 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2736 | fi | |
b145d876 ZK |
2737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2738 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2739 | OBJEXT=$ac_cv_objext |
2740 | ac_objext=$OBJEXT | |
b145d876 ZK |
2741 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2742 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2743 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
b145d876 | 2744 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2745 | else |
2746 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2747 | /* confdefs.h. */ |
2748 | _ACEOF | |
2749 | cat confdefs.h >>conftest.$ac_ext | |
2750 | cat >>conftest.$ac_ext <<_ACEOF | |
2751 | /* end confdefs.h. */ | |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | #ifndef __GNUC__ | |
2757 | choke me | |
2758 | #endif | |
80992638 | 2759 | |
ad6254c5 AK |
2760 | ; |
2761 | return 0; | |
2762 | } | |
2763 | _ACEOF | |
2764 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2765 | if { (ac_try="$ac_compile" |
2766 | case "(($ac_try" in | |
2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2768 | *) ac_try_echo=$ac_try;; | |
2769 | esac | |
b145d876 ZK |
2770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2771 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2772 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2773 | ac_status=$? |
8a2fc586 AK |
2774 | grep -v '^ *+' conftest.er1 >conftest.err |
2775 | rm -f conftest.er1 | |
2776 | cat conftest.err >&5 | |
b145d876 | 2777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2778 | (exit $ac_status); } && { |
2779 | test -z "$ac_c_werror_flag" || | |
2780 | test ! -s conftest.err | |
2781 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2782 | ac_compiler_gnu=yes |
80992638 | 2783 | else |
b145d876 | 2784 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2785 | sed 's/^/| /' conftest.$ac_ext >&5 |
2786 | ||
7a197a62 | 2787 | ac_compiler_gnu=no |
8106cdd5 | 2788 | fi |
7a197a62 AK |
2789 | |
2790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2791 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2792 | |
ad6254c5 | 2793 | fi |
b145d876 ZK |
2794 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2795 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2796 | if test $ac_compiler_gnu = yes; then | |
2797 | GCC=yes | |
2798 | else | |
2799 | GCC= | |
2800 | fi | |
ad6254c5 AK |
2801 | ac_test_CFLAGS=${CFLAGS+set} |
2802 | ac_save_CFLAGS=$CFLAGS | |
b145d876 ZK |
2803 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2804 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2805 | if test "${ac_cv_prog_cc_g+set}" = set; then |
b145d876 | 2806 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2807 | else |
7a197a62 AK |
2808 | ac_save_c_werror_flag=$ac_c_werror_flag |
2809 | ac_c_werror_flag=yes | |
2810 | ac_cv_prog_cc_g=no | |
2811 | CFLAGS="-g" | |
2812 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2813 | /* confdefs.h. */ |
2814 | _ACEOF | |
2815 | cat confdefs.h >>conftest.$ac_ext | |
2816 | cat >>conftest.$ac_ext <<_ACEOF | |
2817 | /* end confdefs.h. */ | |
2818 | ||
2819 | int | |
2820 | main () | |
2821 | { | |
2822 | ||
2823 | ; | |
2824 | return 0; | |
2825 | } | |
2826 | _ACEOF | |
2827 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2828 | if { (ac_try="$ac_compile" |
2829 | case "(($ac_try" in | |
2830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2831 | *) ac_try_echo=$ac_try;; | |
2832 | esac | |
b145d876 ZK |
2833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2834 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2835 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2836 | ac_status=$? |
8a2fc586 AK |
2837 | grep -v '^ *+' conftest.er1 >conftest.err |
2838 | rm -f conftest.er1 | |
2839 | cat conftest.err >&5 | |
b145d876 | 2840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2841 | (exit $ac_status); } && { |
2842 | test -z "$ac_c_werror_flag" || | |
2843 | test ! -s conftest.err | |
2844 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2845 | ac_cv_prog_cc_g=yes |
2846 | else | |
b145d876 | 2847 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2848 | sed 's/^/| /' conftest.$ac_ext >&5 |
2849 | ||
2850 | CFLAGS="" | |
2851 | cat >conftest.$ac_ext <<_ACEOF | |
2852 | /* confdefs.h. */ | |
2853 | _ACEOF | |
2854 | cat confdefs.h >>conftest.$ac_ext | |
2855 | cat >>conftest.$ac_ext <<_ACEOF | |
2856 | /* end confdefs.h. */ | |
2857 | ||
2858 | int | |
2859 | main () | |
2860 | { | |
2861 | ||
2862 | ; | |
2863 | return 0; | |
2864 | } | |
2865 | _ACEOF | |
2866 | rm -f conftest.$ac_objext | |
2867 | if { (ac_try="$ac_compile" | |
2868 | case "(($ac_try" in | |
2869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2870 | *) ac_try_echo=$ac_try;; | |
2871 | esac | |
b145d876 ZK |
2872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2873 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2874 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2875 | ac_status=$? |
7a197a62 AK |
2876 | grep -v '^ *+' conftest.er1 >conftest.err |
2877 | rm -f conftest.er1 | |
2878 | cat conftest.err >&5 | |
b145d876 | 2879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2880 | (exit $ac_status); } && { |
2881 | test -z "$ac_c_werror_flag" || | |
2882 | test ! -s conftest.err | |
2883 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2884 | : |
2885 | else | |
b145d876 | 2886 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2887 | sed 's/^/| /' conftest.$ac_ext >&5 |
2888 | ||
2889 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2890 | CFLAGS="-g" | |
2891 | cat >conftest.$ac_ext <<_ACEOF | |
2892 | /* confdefs.h. */ | |
2893 | _ACEOF | |
2894 | cat confdefs.h >>conftest.$ac_ext | |
2895 | cat >>conftest.$ac_ext <<_ACEOF | |
2896 | /* end confdefs.h. */ | |
2897 | ||
2898 | int | |
2899 | main () | |
2900 | { | |
2901 | ||
2902 | ; | |
2903 | return 0; | |
2904 | } | |
2905 | _ACEOF | |
2906 | rm -f conftest.$ac_objext | |
2907 | if { (ac_try="$ac_compile" | |
2908 | case "(($ac_try" in | |
2909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2910 | *) ac_try_echo=$ac_try;; | |
2911 | esac | |
b145d876 ZK |
2912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2913 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2914 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2915 | ac_status=$? |
7a197a62 AK |
2916 | grep -v '^ *+' conftest.er1 >conftest.err |
2917 | rm -f conftest.er1 | |
2918 | cat conftest.err >&5 | |
b145d876 | 2919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2920 | (exit $ac_status); } && { |
2921 | test -z "$ac_c_werror_flag" || | |
2922 | test ! -s conftest.err | |
2923 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2924 | ac_cv_prog_cc_g=yes |
2925 | else | |
b145d876 | 2926 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2927 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2928 | |
7a197a62 AK |
2929 | |
2930 | fi | |
2931 | ||
2932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2933 | fi | |
2934 | ||
2935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2936 | fi |
7a197a62 AK |
2937 | |
2938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2939 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2940 | fi |
b145d876 ZK |
2941 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2942 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2943 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2944 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2945 | elif test $ac_cv_prog_cc_g = yes; then |
2946 | if test "$GCC" = yes; then | |
2947 | CFLAGS="-g -O2" | |
2948 | else | |
2949 | CFLAGS="-g" | |
2950 | fi | |
2951 | else | |
2952 | if test "$GCC" = yes; then | |
2953 | CFLAGS="-O2" | |
2954 | else | |
2955 | CFLAGS= | |
2956 | fi | |
2957 | fi | |
b145d876 ZK |
2958 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2959 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 2960 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
b145d876 | 2961 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2962 | else |
7a197a62 | 2963 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2964 | ac_save_CC=$CC |
2965 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2966 | /* confdefs.h. */ |
2967 | _ACEOF | |
2968 | cat confdefs.h >>conftest.$ac_ext | |
2969 | cat >>conftest.$ac_ext <<_ACEOF | |
2970 | /* end confdefs.h. */ | |
2971 | #include <stdarg.h> | |
2972 | #include <stdio.h> | |
2973 | #include <sys/types.h> | |
2974 | #include <sys/stat.h> | |
2975 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2976 | struct buf { int x; }; | |
2977 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2978 | static char *e (p, i) | |
2979 | char **p; | |
2980 | int i; | |
2981 | { | |
2982 | return p[i]; | |
2983 | } | |
2984 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2985 | { | |
2986 | char *s; | |
2987 | va_list v; | |
2988 | va_start (v,p); | |
2989 | s = g (p, va_arg (v,int)); | |
2990 | va_end (v); | |
2991 | return s; | |
2992 | } | |
8a2fc586 AK |
2993 | |
2994 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2995 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2996 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2997 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2998 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2999 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3000 | that's true only with -std. */ |
8a2fc586 AK |
3001 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3002 | ||
7a197a62 AK |
3003 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3004 | inside strings and character constants. */ | |
3005 | #define FOO(x) 'x' | |
3006 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3007 | ||
ad6254c5 AK |
3008 | int test (int i, double x); |
3009 | struct s1 {int (*f) (int a);}; | |
3010 | struct s2 {int (*f) (double a);}; | |
3011 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3012 | int argc; | |
3013 | char **argv; | |
3014 | int | |
3015 | main () | |
3016 | { | |
3017 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3018 | ; | |
3019 | return 0; | |
3020 | } | |
3021 | _ACEOF | |
7a197a62 AK |
3022 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3023 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3024 | do |
3025 | CC="$ac_save_CC $ac_arg" | |
3026 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3027 | if { (ac_try="$ac_compile" |
3028 | case "(($ac_try" in | |
3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3030 | *) ac_try_echo=$ac_try;; | |
3031 | esac | |
b145d876 ZK |
3032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3033 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3034 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3035 | ac_status=$? |
8a2fc586 AK |
3036 | grep -v '^ *+' conftest.er1 >conftest.err |
3037 | rm -f conftest.er1 | |
3038 | cat conftest.err >&5 | |
b145d876 | 3039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3040 | (exit $ac_status); } && { |
3041 | test -z "$ac_c_werror_flag" || | |
3042 | test ! -s conftest.err | |
3043 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3044 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3045 | else |
b145d876 | 3046 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
3048 | ||
7a197a62 | 3049 | |
ad6254c5 | 3050 | fi |
7a197a62 AK |
3051 | |
3052 | rm -f core conftest.err conftest.$ac_objext | |
3053 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3054 | done |
7a197a62 | 3055 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3056 | CC=$ac_save_CC |
3057 | ||
3058 | fi | |
7a197a62 AK |
3059 | # AC_CACHE_VAL |
3060 | case "x$ac_cv_prog_cc_c89" in | |
3061 | x) | |
b145d876 ZK |
3062 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3063 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3064 | xno) |
b145d876 ZK |
3065 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3066 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3067 | *) |
7a197a62 | 3068 | CC="$CC $ac_cv_prog_cc_c89" |
b145d876 ZK |
3069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3070 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3071 | esac |
3072 | ||
ad6254c5 | 3073 | |
ad6254c5 AK |
3074 | ac_ext=c |
3075 | ac_cpp='$CPP $CPPFLAGS' | |
3076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3079 | |
d0191583 JM |
3080 | |
3081 | ||
3082 | ac_ext=c | |
3083 | ac_cpp='$CPP $CPPFLAGS' | |
3084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b145d876 ZK |
3087 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3088 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3089 | # On Suns, sometimes $CPP names a directory. |
3090 | if test -n "$CPP" && test -d "$CPP"; then | |
3091 | CPP= | |
3092 | fi | |
3093 | if test -z "$CPP"; then | |
3094 | if test "${ac_cv_prog_CPP+set}" = set; then | |
b145d876 | 3095 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3096 | else |
d0191583 JM |
3097 | # Double quotes because CPP needs to be expanded |
3098 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3099 | do | |
3100 | ac_preproc_ok=false | |
3101 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3102 | do |
d0191583 JM |
3103 | # Use a header file that comes with gcc, so configuring glibc |
3104 | # with a fresh cross-compiler works. | |
3105 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3106 | # <limits.h> exists even on freestanding compilers. | |
3107 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3108 | # not just through cpp. "Syntax error" is here to catch this case. | |
3109 | cat >conftest.$ac_ext <<_ACEOF | |
3110 | /* confdefs.h. */ | |
3111 | _ACEOF | |
3112 | cat confdefs.h >>conftest.$ac_ext | |
3113 | cat >>conftest.$ac_ext <<_ACEOF | |
3114 | /* end confdefs.h. */ | |
3115 | #ifdef __STDC__ | |
3116 | # include <limits.h> | |
3117 | #else | |
3118 | # include <assert.h> | |
3119 | #endif | |
3120 | Syntax error | |
3121 | _ACEOF | |
3122 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3123 | case "(($ac_try" in | |
3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3125 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3126 | esac |
b145d876 ZK |
3127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3128 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3129 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3130 | ac_status=$? | |
3131 | grep -v '^ *+' conftest.er1 >conftest.err | |
3132 | rm -f conftest.er1 | |
3133 | cat conftest.err >&5 | |
b145d876 | 3134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3135 | (exit $ac_status); } >/dev/null && { |
3136 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3137 | test ! -s conftest.err | |
3138 | }; then | |
3139 | : | |
3140 | else | |
b145d876 | 3141 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3143 | |
d0191583 JM |
3144 | # Broken: fails on valid input. |
3145 | continue | |
795ca3e5 | 3146 | fi |
795ca3e5 | 3147 | |
d0191583 | 3148 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3149 | |
d0191583 JM |
3150 | # OK, works on sane cases. Now check whether nonexistent headers |
3151 | # can be detected and how. | |
3152 | cat >conftest.$ac_ext <<_ACEOF | |
3153 | /* confdefs.h. */ | |
3154 | _ACEOF | |
3155 | cat confdefs.h >>conftest.$ac_ext | |
3156 | cat >>conftest.$ac_ext <<_ACEOF | |
3157 | /* end confdefs.h. */ | |
3158 | #include <ac_nonexistent.h> | |
3159 | _ACEOF | |
3160 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3161 | case "(($ac_try" in | |
3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3163 | *) ac_try_echo=$ac_try;; | |
3164 | esac | |
b145d876 ZK |
3165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3166 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3167 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3168 | ac_status=$? | |
3169 | grep -v '^ *+' conftest.er1 >conftest.err | |
3170 | rm -f conftest.er1 | |
3171 | cat conftest.err >&5 | |
b145d876 | 3172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3173 | (exit $ac_status); } >/dev/null && { |
3174 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3175 | test ! -s conftest.err | |
3176 | }; then | |
3177 | # Broken: success on invalid input. | |
3178 | continue | |
3179 | else | |
b145d876 | 3180 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3181 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3182 | |
d0191583 JM |
3183 | # Passes both tests. |
3184 | ac_preproc_ok=: | |
3185 | break | |
3186 | fi | |
795ca3e5 | 3187 | |
d0191583 JM |
3188 | rm -f conftest.err conftest.$ac_ext |
3189 | ||
3190 | done | |
3191 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3192 | rm -f conftest.err conftest.$ac_ext | |
3193 | if $ac_preproc_ok; then | |
3194 | break | |
795ca3e5 AK |
3195 | fi |
3196 | ||
d0191583 JM |
3197 | done |
3198 | ac_cv_prog_CPP=$CPP | |
3199 | ||
3200 | fi | |
3201 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3202 | else |
d0191583 JM |
3203 | ac_cv_prog_CPP=$CPP |
3204 | fi | |
b145d876 ZK |
3205 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3206 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3207 | ac_preproc_ok=false |
3208 | for ac_c_preproc_warn_flag in '' yes | |
3209 | do | |
3210 | # Use a header file that comes with gcc, so configuring glibc | |
3211 | # with a fresh cross-compiler works. | |
3212 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3213 | # <limits.h> exists even on freestanding compilers. | |
3214 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3215 | # not just through cpp. "Syntax error" is here to catch this case. | |
3216 | cat >conftest.$ac_ext <<_ACEOF | |
3217 | /* confdefs.h. */ | |
ad6254c5 | 3218 | _ACEOF |
d0191583 JM |
3219 | cat confdefs.h >>conftest.$ac_ext |
3220 | cat >>conftest.$ac_ext <<_ACEOF | |
3221 | /* end confdefs.h. */ | |
3222 | #ifdef __STDC__ | |
3223 | # include <limits.h> | |
3224 | #else | |
3225 | # include <assert.h> | |
3226 | #endif | |
3227 | Syntax error | |
3228 | _ACEOF | |
3229 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3230 | case "(($ac_try" in | |
3231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3232 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3233 | esac |
b145d876 ZK |
3234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3235 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3237 | ac_status=$? | |
3238 | grep -v '^ *+' conftest.er1 >conftest.err | |
3239 | rm -f conftest.er1 | |
3240 | cat conftest.err >&5 | |
b145d876 | 3241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3242 | (exit $ac_status); } >/dev/null && { |
3243 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3244 | test ! -s conftest.err | |
3245 | }; then | |
3246 | : | |
795ca3e5 | 3247 | else |
b145d876 | 3248 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3249 | sed 's/^/| /' conftest.$ac_ext >&5 |
3250 | ||
3251 | # Broken: fails on valid input. | |
3252 | continue | |
795ca3e5 AK |
3253 | fi |
3254 | ||
d0191583 JM |
3255 | rm -f conftest.err conftest.$ac_ext |
3256 | ||
3257 | # OK, works on sane cases. Now check whether nonexistent headers | |
3258 | # can be detected and how. | |
3259 | cat >conftest.$ac_ext <<_ACEOF | |
3260 | /* confdefs.h. */ | |
3261 | _ACEOF | |
3262 | cat confdefs.h >>conftest.$ac_ext | |
3263 | cat >>conftest.$ac_ext <<_ACEOF | |
3264 | /* end confdefs.h. */ | |
3265 | #include <ac_nonexistent.h> | |
3266 | _ACEOF | |
3267 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3268 | case "(($ac_try" in | |
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3270 | *) ac_try_echo=$ac_try;; | |
3271 | esac | |
b145d876 ZK |
3272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3273 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3274 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3275 | ac_status=$? | |
3276 | grep -v '^ *+' conftest.er1 >conftest.err | |
3277 | rm -f conftest.er1 | |
3278 | cat conftest.err >&5 | |
b145d876 | 3279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3280 | (exit $ac_status); } >/dev/null && { |
3281 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3282 | test ! -s conftest.err | |
3283 | }; then | |
3284 | # Broken: success on invalid input. | |
3285 | continue | |
795ca3e5 | 3286 | else |
b145d876 | 3287 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3288 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3289 | |
d0191583 JM |
3290 | # Passes both tests. |
3291 | ac_preproc_ok=: | |
3292 | break | |
795ca3e5 | 3293 | fi |
d0191583 JM |
3294 | |
3295 | rm -f conftest.err conftest.$ac_ext | |
3296 | ||
3297 | done | |
3298 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3299 | rm -f conftest.err conftest.$ac_ext | |
3300 | if $ac_preproc_ok; then | |
3301 | : | |
8106cdd5 | 3302 | else |
b145d876 | 3303 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3304 | See \`config.log' for more details." >&5 |
b145d876 | 3305 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3306 | See \`config.log' for more details." >&2;} |
3307 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3308 | fi |
3309 | ||
d0191583 JM |
3310 | ac_ext=c |
3311 | ac_cpp='$CPP $CPPFLAGS' | |
3312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3315 | ||
7a197a62 | 3316 | |
b145d876 ZK |
3317 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3318 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3319 | if test "${ac_cv_path_GREP+set}" = set; then |
b145d876 | 3320 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3321 | else |
b145d876 | 3322 | if test -z "$GREP"; then |
d0191583 | 3323 | ac_path_GREP_found=false |
b145d876 ZK |
3324 | # Loop through the user's path and test for each of PROGNAME-LIST |
3325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3326 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3327 | do |
3328 | IFS=$as_save_IFS | |
3329 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3330 | for ac_prog in grep ggrep; do |
b145d876 ZK |
3331 | for ac_exec_ext in '' $ac_executable_extensions; do |
3332 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3333 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3334 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3335 | # Check for GNU $ac_path_GREP |
3336 | case `"$ac_path_GREP" --version 2>&1` in | |
3337 | *GNU*) | |
3338 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3339 | *) | |
3340 | ac_count=0 | |
b145d876 | 3341 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3342 | while : |
3343 | do | |
3344 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3345 | mv "conftest.tmp" "conftest.in" | |
3346 | cp "conftest.in" "conftest.nl" | |
b145d876 | 3347 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3348 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3349 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3350 | ac_count=`expr $ac_count + 1` | |
3351 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3352 | # Best one so far, save it but keep looking for a better one | |
3353 | ac_cv_path_GREP="$ac_path_GREP" | |
3354 | ac_path_GREP_max=$ac_count | |
3355 | fi | |
3356 | # 10*(2^10) chars as input seems more than enough | |
3357 | test $ac_count -gt 10 && break | |
3358 | done | |
3359 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3360 | esac | |
3361 | ||
b145d876 ZK |
3362 | $ac_path_GREP_found && break 3 |
3363 | done | |
d0191583 | 3364 | done |
ad6254c5 | 3365 | done |
7a197a62 | 3366 | IFS=$as_save_IFS |
b145d876 ZK |
3367 | if test -z "$ac_cv_path_GREP"; then |
3368 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3369 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3370 | { (exit 1); exit 1; }; } |
b145d876 | 3371 | fi |
80992638 | 3372 | else |
d0191583 | 3373 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3374 | fi |
8106cdd5 | 3375 | |
80992638 | 3376 | fi |
b145d876 ZK |
3377 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3378 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3379 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3380 | |
d0191583 | 3381 | |
b145d876 ZK |
3382 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3383 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3384 | if test "${ac_cv_path_EGREP+set}" = set; then |
b145d876 | 3385 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3386 | else |
d0191583 JM |
3387 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3388 | then ac_cv_path_EGREP="$GREP -E" | |
3389 | else | |
b145d876 | 3390 | if test -z "$EGREP"; then |
d0191583 | 3391 | ac_path_EGREP_found=false |
b145d876 ZK |
3392 | # Loop through the user's path and test for each of PROGNAME-LIST |
3393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3394 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3395 | do |
3396 | IFS=$as_save_IFS | |
3397 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3398 | for ac_prog in egrep; do |
b145d876 ZK |
3399 | for ac_exec_ext in '' $ac_executable_extensions; do |
3400 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3401 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3402 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3403 | # Check for GNU $ac_path_EGREP |
3404 | case `"$ac_path_EGREP" --version 2>&1` in | |
3405 | *GNU*) | |
3406 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3407 | *) | |
3408 | ac_count=0 | |
b145d876 | 3409 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3410 | while : |
3411 | do | |
3412 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3413 | mv "conftest.tmp" "conftest.in" | |
3414 | cp "conftest.in" "conftest.nl" | |
b145d876 | 3415 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3416 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3417 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3418 | ac_count=`expr $ac_count + 1` | |
3419 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3420 | # Best one so far, save it but keep looking for a better one | |
3421 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3422 | ac_path_EGREP_max=$ac_count | |
3423 | fi | |
3424 | # 10*(2^10) chars as input seems more than enough | |
3425 | test $ac_count -gt 10 && break | |
3426 | done | |
3427 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3428 | esac |
8a2fc586 | 3429 | |
b145d876 ZK |
3430 | $ac_path_EGREP_found && break 3 |
3431 | done | |
d0191583 | 3432 | done |
8a2fc586 | 3433 | done |
7a197a62 | 3434 | IFS=$as_save_IFS |
b145d876 ZK |
3435 | if test -z "$ac_cv_path_EGREP"; then |
3436 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3437 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3438 | { (exit 1); exit 1; }; } |
b145d876 | 3439 | fi |
d0191583 JM |
3440 | else |
3441 | ac_cv_path_EGREP=$EGREP | |
3442 | fi | |
ad6254c5 | 3443 | |
d0191583 JM |
3444 | fi |
3445 | fi | |
b145d876 ZK |
3446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3447 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3448 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3449 | |
3450 | ||
d0191583 | 3451 | if test $ac_cv_c_compiler_gnu = yes; then |
b145d876 ZK |
3452 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3453 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3454 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
b145d876 | 3455 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3456 | else |
d0191583 | 3457 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3458 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3459 | /* confdefs.h. */ |
3460 | _ACEOF | |
3461 | cat confdefs.h >>conftest.$ac_ext | |
3462 | cat >>conftest.$ac_ext <<_ACEOF | |
3463 | /* end confdefs.h. */ | |
d0191583 JM |
3464 | #include <sgtty.h> |
3465 | Autoconf TIOCGETP | |
ad6254c5 | 3466 | _ACEOF |
d0191583 JM |
3467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3468 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3469 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3470 | else |
d0191583 | 3471 | ac_cv_prog_gcc_traditional=no |
80992638 | 3472 | fi |
d0191583 | 3473 | rm -f conftest* |
ad6254c5 | 3474 | |
8106cdd5 | 3475 | |
d0191583 JM |
3476 | if test $ac_cv_prog_gcc_traditional = no; then |
3477 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3478 | /* confdefs.h. */ |
3479 | _ACEOF | |
3480 | cat confdefs.h >>conftest.$ac_ext | |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
d0191583 JM |
3483 | #include <termio.h> |
3484 | Autoconf TCGETA | |
ad6254c5 | 3485 | _ACEOF |
d0191583 JM |
3486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3487 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3488 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3489 | fi |
d0191583 | 3490 | rm -f conftest* |
795ca3e5 | 3491 | |
d0191583 | 3492 | fi |
795ca3e5 | 3493 | fi |
b145d876 ZK |
3494 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3495 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3496 | if test $ac_cv_prog_gcc_traditional = yes; then |
3497 | CC="$CC -traditional" | |
3498 | fi | |
795ca3e5 AK |
3499 | fi |
3500 | ||
d0191583 JM |
3501 | # Find a good install program. We prefer a C program (faster), |
3502 | # so one script is as good as another. But avoid the broken or | |
3503 | # incompatible versions: | |
3504 | # SysV /etc/install, /usr/sbin/install | |
3505 | # SunOS /usr/etc/install | |
3506 | # IRIX /sbin/install | |
3507 | # AIX /bin/install | |
3508 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3509 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3510 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3511 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3512 | # OS/2's system install, which has a completely different semantic | |
3513 | # ./install, which can be erroneously created by make from ./install.sh. | |
b145d876 ZK |
3514 | # Reject install programs that cannot install multiple files. |
3515 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3516 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3517 | if test -z "$INSTALL"; then |
3518 | if test "${ac_cv_path_install+set}" = set; then | |
b145d876 | 3519 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3520 | else |
d0191583 JM |
3521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3522 | for as_dir in $PATH | |
3523 | do | |
3524 | IFS=$as_save_IFS | |
3525 | test -z "$as_dir" && as_dir=. | |
3526 | # Account for people who put trailing slashes in PATH elements. | |
3527 | case $as_dir/ in | |
3528 | ./ | .// | /cC/* | \ | |
3529 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3530 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3531 | /usr/ucb/* ) ;; | |
3532 | *) | |
3533 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3534 | # Don't use installbsd from OSF since it installs stuff as root | |
3535 | # by default. | |
3536 | for ac_prog in ginstall scoinst install; do | |
3537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3538 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3539 | if test $ac_prog = install && | |
3540 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3541 | # AIX install. It has an incompatible calling convention. | |
3542 | : | |
3543 | elif test $ac_prog = install && | |
3544 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3545 | # program-specific install script used by HP pwplus--don't use. | |
3546 | : | |
3547 | else | |
b145d876 ZK |
3548 | rm -rf conftest.one conftest.two conftest.dir |
3549 | echo one > conftest.one | |
3550 | echo two > conftest.two | |
3551 | mkdir conftest.dir | |
3552 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3553 | test -s conftest.one && test -s conftest.two && | |
3554 | test -s conftest.dir/conftest.one && | |
3555 | test -s conftest.dir/conftest.two | |
3556 | then | |
3557 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3558 | break 3 | |
3559 | fi | |
d0191583 JM |
3560 | fi |
3561 | fi | |
3562 | done | |
3563 | done | |
3564 | ;; | |
3565 | esac | |
b145d876 | 3566 | |
d0191583 JM |
3567 | done |
3568 | IFS=$as_save_IFS | |
80992638 | 3569 | |
b145d876 | 3570 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3571 | |
3572 | fi | |
3573 | if test "${ac_cv_path_install+set}" = set; then | |
3574 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3575 | else |
d0191583 JM |
3576 | # As a last resort, use the slow shell script. Don't cache a |
3577 | # value for INSTALL within a source directory, because that will | |
3578 | # break other packages using the cache if that directory is | |
3579 | # removed, or if the value is a relative name. | |
3580 | INSTALL=$ac_install_sh | |
7a197a62 | 3581 | fi |
d0191583 | 3582 | fi |
b145d876 ZK |
3583 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3584 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3585 | |
d0191583 JM |
3586 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3587 | # It thinks the first close brace ends the variable substitution. | |
3588 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3589 | |
d0191583 | 3590 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3591 | |
d0191583 JM |
3592 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3593 | ||
b145d876 ZK |
3594 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3595 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3596 | LN_S=$as_ln_s |
3597 | if test "$LN_S" = "ln -s"; then | |
b145d876 ZK |
3598 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3599 | $as_echo "yes" >&6; } | |
d0191583 | 3600 | else |
b145d876 ZK |
3601 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3602 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3603 | fi |
d0191583 | 3604 | |
b145d876 ZK |
3605 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3606 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3607 | set x ${MAKE-make} | |
3608 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3609 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 3610 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3611 | else |
d0191583 JM |
3612 | cat >conftest.make <<\_ACEOF |
3613 | SHELL = /bin/sh | |
3614 | all: | |
3615 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3616 | _ACEOF | |
3617 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3618 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3619 | *@@@%%%=?*=@@@%%%*) | |
3620 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3621 | *) | |
3622 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3623 | esac | |
3624 | rm -f conftest.make | |
ad6254c5 | 3625 | fi |
d0191583 | 3626 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b145d876 ZK |
3627 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3628 | $as_echo "yes" >&6; } | |
d0191583 JM |
3629 | SET_MAKE= |
3630 | else | |
b145d876 ZK |
3631 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3632 | $as_echo "no" >&6; } | |
d0191583 | 3633 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3634 | fi |
8106cdd5 | 3635 | |
b145d876 ZK |
3636 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3637 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3638 | if test -z "$MKDIR_P"; then |
3639 | if test "${ac_cv_path_mkdir+set}" = set; then | |
b145d876 | 3640 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3641 | else |
3642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3643 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3644 | do | |
3645 | IFS=$as_save_IFS | |
3646 | test -z "$as_dir" && as_dir=. | |
3647 | for ac_prog in mkdir gmkdir; do | |
3648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3649 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3650 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3651 | 'mkdir (GNU coreutils) '* | \ | |
3652 | 'mkdir (coreutils) '* | \ | |
3653 | 'mkdir (fileutils) '4.1*) | |
3654 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3655 | break 3;; | |
3656 | esac | |
3657 | done | |
3658 | done | |
3659 | done | |
3660 | IFS=$as_save_IFS | |
3661 | ||
3662 | fi | |
3663 | ||
3664 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3665 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3666 | else | |
3667 | # As a last resort, use the slow shell script. Don't cache a | |
3668 | # value for MKDIR_P within a source directory, because that will | |
3669 | # break other packages using the cache if that directory is | |
3670 | # removed, or if the value is a relative name. | |
3671 | test -d ./--version && rmdir ./--version | |
3672 | MKDIR_P="$ac_install_sh -d" | |
3673 | fi | |
3674 | fi | |
b145d876 ZK |
3675 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3676 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3677 | |
d0191583 JM |
3678 | if test -n "$ac_tool_prefix"; then |
3679 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3680 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b145d876 ZK |
3681 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3682 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3683 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
b145d876 | 3684 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3685 | else |
3686 | if test -n "$RANLIB"; then | |
3687 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3688 | else | |
3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3690 | for as_dir in $PATH | |
3691 | do | |
3692 | IFS=$as_save_IFS | |
3693 | test -z "$as_dir" && as_dir=. | |
3694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3696 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
b145d876 | 3697 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3698 | break 2 |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | IFS=$as_save_IFS | |
8106cdd5 | 3703 | |
795ca3e5 | 3704 | fi |
d0191583 JM |
3705 | fi |
3706 | RANLIB=$ac_cv_prog_RANLIB | |
3707 | if test -n "$RANLIB"; then | |
b145d876 ZK |
3708 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3709 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3710 | else |
b145d876 ZK |
3711 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3712 | $as_echo "no" >&6; } | |
d0191583 JM |
3713 | fi |
3714 | ||
8106cdd5 | 3715 | |
ad6254c5 | 3716 | fi |
d0191583 JM |
3717 | if test -z "$ac_cv_prog_RANLIB"; then |
3718 | ac_ct_RANLIB=$RANLIB | |
3719 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3720 | set dummy ranlib; ac_word=$2 | |
b145d876 ZK |
3721 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3722 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3723 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
b145d876 | 3724 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3725 | else |
d0191583 JM |
3726 | if test -n "$ac_ct_RANLIB"; then |
3727 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3728 | else | |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3730 | for as_dir in $PATH | |
8106cdd5 | 3731 | do |
d0191583 JM |
3732 | IFS=$as_save_IFS |
3733 | test -z "$as_dir" && as_dir=. | |
3734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3736 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
b145d876 | 3737 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3738 | break 2 |
3739 | fi | |
3740 | done | |
3741 | done | |
3742 | IFS=$as_save_IFS | |
3743 | ||
3744 | fi | |
3745 | fi | |
3746 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3747 | if test -n "$ac_ct_RANLIB"; then | |
b145d876 ZK |
3748 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3749 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3750 | else |
b145d876 ZK |
3751 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3752 | $as_echo "no" >&6; } | |
d0191583 | 3753 | fi |
ad6254c5 | 3754 | |
d0191583 JM |
3755 | if test "x$ac_ct_RANLIB" = x; then |
3756 | RANLIB=":" | |
3757 | else | |
3758 | case $cross_compiling:$ac_tool_warned in | |
3759 | yes:) | |
b145d876 | 3760 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3761 | whose name does not start with the host triplet. If you think this |
3762 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
b145d876 | 3763 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3764 | whose name does not start with the host triplet. If you think this |
3765 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3766 | ac_tool_warned=yes ;; | |
3767 | esac | |
3768 | RANLIB=$ac_ct_RANLIB | |
3769 | fi | |
3770 | else | |
3771 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3772 | fi |
7a197a62 | 3773 | |
d0191583 JM |
3774 | # Extract the first word of "cflow", so it can be a program name with args. |
3775 | set dummy cflow; ac_word=$2 | |
b145d876 ZK |
3776 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3777 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3778 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
b145d876 | 3779 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3780 | else |
3781 | case $CFLOW_CMD in | |
3782 | [\\/]* | ?:[\\/]*) | |
3783 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3784 | ;; | |
3785 | *) | |
3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3787 | for as_dir in $PATH | |
3788 | do | |
3789 | IFS=$as_save_IFS | |
3790 | test -z "$as_dir" && as_dir=. | |
3791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3793 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
b145d876 | 3794 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3795 | break 2 |
3796 | fi | |
3797 | done | |
3798 | done | |
3799 | IFS=$as_save_IFS | |
ad6254c5 | 3800 | |
d0191583 | 3801 | ;; |
7a197a62 | 3802 | esac |
d0191583 JM |
3803 | fi |
3804 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3805 | if test -n "$CFLOW_CMD"; then | |
b145d876 ZK |
3806 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3807 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3808 | else |
b145d876 ZK |
3809 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3810 | $as_echo "no" >&6; } | |
795ca3e5 | 3811 | fi |
7a197a62 | 3812 | |
ad6254c5 | 3813 | |
d0191583 JM |
3814 | # Extract the first word of "cscope", so it can be a program name with args. |
3815 | set dummy cscope; ac_word=$2 | |
b145d876 ZK |
3816 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3817 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3818 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
b145d876 | 3819 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3820 | else |
3821 | case $CSCOPE_CMD in | |
3822 | [\\/]* | ?:[\\/]*) | |
3823 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3824 | ;; | |
3825 | *) | |
3826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3827 | for as_dir in $PATH | |
3828 | do | |
3829 | IFS=$as_save_IFS | |
3830 | test -z "$as_dir" && as_dir=. | |
3831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3833 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
b145d876 | 3834 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3835 | break 2 |
3836 | fi | |
795ca3e5 | 3837 | done |
d0191583 JM |
3838 | done |
3839 | IFS=$as_save_IFS | |
795ca3e5 | 3840 | |
d0191583 JM |
3841 | ;; |
3842 | esac | |
ad6254c5 | 3843 | fi |
d0191583 JM |
3844 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3845 | if test -n "$CSCOPE_CMD"; then | |
b145d876 ZK |
3846 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3847 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3848 | else |
b145d876 ZK |
3849 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3850 | $as_echo "no" >&6; } | |
795ca3e5 | 3851 | fi |
ad6254c5 | 3852 | |
7a197a62 | 3853 | |
ad6254c5 | 3854 | |
d0191583 JM |
3855 | ################################################################################ |
3856 | ||
3857 | ||
3858 | ||
3859 | ||
3860 | ||
3861 | ac_header_dirent=no | |
3862 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
b145d876 ZK |
3863 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3864 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3865 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 3866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 3867 | $as_echo_n "(cached) " >&6 |
d0191583 | 3868 | else |
ad6254c5 | 3869 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3870 | /* confdefs.h. */ |
3871 | _ACEOF | |
3872 | cat confdefs.h >>conftest.$ac_ext | |
3873 | cat >>conftest.$ac_ext <<_ACEOF | |
3874 | /* end confdefs.h. */ | |
d0191583 JM |
3875 | #include <sys/types.h> |
3876 | #include <$ac_hdr> | |
3877 | ||
3878 | int | |
3879 | main () | |
3880 | { | |
3881 | if ((DIR *) 0) | |
3882 | return 0; | |
3883 | ; | |
3884 | return 0; | |
3885 | } | |
ad6254c5 | 3886 | _ACEOF |
d0191583 JM |
3887 | rm -f conftest.$ac_objext |
3888 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3889 | case "(($ac_try" in |
3890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3891 | *) ac_try_echo=$ac_try;; | |
3892 | esac | |
b145d876 ZK |
3893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3894 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 3895 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3896 | ac_status=$? |
3897 | grep -v '^ *+' conftest.er1 >conftest.err | |
3898 | rm -f conftest.er1 | |
3899 | cat conftest.err >&5 | |
b145d876 | 3900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3901 | (exit $ac_status); } && { |
3902 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3903 | test ! -s conftest.err |
d0191583 JM |
3904 | } && test -s conftest.$ac_objext; then |
3905 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3906 | else |
b145d876 | 3907 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3908 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3909 | |
d0191583 | 3910 | eval "$as_ac_Header=no" |
795ca3e5 | 3911 | fi |
7a197a62 | 3912 | |
d0191583 | 3913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3914 | fi |
b145d876 ZK |
3915 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3916 | $as_echo "$as_val"'` | |
3917 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3918 | $as_echo "$ac_res" >&6; } | |
3919 | if test `eval 'as_val=${'$as_ac_Header'} | |
3920 | $as_echo "$as_val"'` = yes; then | |
d0191583 | 3921 | cat >>confdefs.h <<_ACEOF |
b145d876 | 3922 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3923 | _ACEOF |
795ca3e5 | 3924 | |
d0191583 JM |
3925 | ac_header_dirent=$ac_hdr; break |
3926 | fi | |
ad6254c5 | 3927 | |
d0191583 JM |
3928 | done |
3929 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3930 | if test $ac_header_dirent = dirent.h; then | |
b145d876 ZK |
3931 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3932 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 3933 | if test "${ac_cv_search_opendir+set}" = set; then |
b145d876 | 3934 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3935 | else |
d0191583 JM |
3936 | ac_func_search_save_LIBS=$LIBS |
3937 | cat >conftest.$ac_ext <<_ACEOF | |
3938 | /* confdefs.h. */ | |
3939 | _ACEOF | |
3940 | cat confdefs.h >>conftest.$ac_ext | |
3941 | cat >>conftest.$ac_ext <<_ACEOF | |
3942 | /* end confdefs.h. */ | |
ad6254c5 | 3943 | |
d0191583 JM |
3944 | /* Override any GCC internal prototype to avoid an error. |
3945 | Use char because int might match the return type of a GCC | |
3946 | builtin and then its argument prototype would still apply. */ | |
3947 | #ifdef __cplusplus | |
3948 | extern "C" | |
3949 | #endif | |
3950 | char opendir (); | |
3951 | int | |
3952 | main () | |
3953 | { | |
3954 | return opendir (); | |
3955 | ; | |
3956 | return 0; | |
3957 | } | |
3958 | _ACEOF | |
3959 | for ac_lib in '' dir; do | |
3960 | if test -z "$ac_lib"; then | |
3961 | ac_res="none required" | |
3962 | else | |
3963 | ac_res=-l$ac_lib | |
3964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3965 | fi | |
3966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3967 | if { (ac_try="$ac_link" | |
3968 | case "(($ac_try" in | |
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3970 | *) ac_try_echo=$ac_try;; | |
3971 | esac | |
b145d876 ZK |
3972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3973 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3974 | (eval "$ac_link") 2>conftest.er1 |
3975 | ac_status=$? | |
3976 | grep -v '^ *+' conftest.er1 >conftest.err | |
3977 | rm -f conftest.er1 | |
3978 | cat conftest.err >&5 | |
b145d876 | 3979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3980 | (exit $ac_status); } && { |
3981 | test -z "$ac_c_werror_flag" || | |
3982 | test ! -s conftest.err | |
b145d876 ZK |
3983 | } && test -s conftest$ac_exeext && { |
3984 | test "$cross_compiling" = yes || | |
3985 | $as_test_x conftest$ac_exeext | |
3986 | }; then | |
d0191583 JM |
3987 | ac_cv_search_opendir=$ac_res |
3988 | else | |
b145d876 | 3989 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3990 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3991 | |
ad6254c5 | 3992 | |
795ca3e5 | 3993 | fi |
ad6254c5 | 3994 | |
b145d876 | 3995 | rm -rf conftest.dSYM |
d0191583 JM |
3996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3997 | conftest$ac_exeext | |
3998 | if test "${ac_cv_search_opendir+set}" = set; then | |
3999 | break | |
7a197a62 | 4000 | fi |
d0191583 JM |
4001 | done |
4002 | if test "${ac_cv_search_opendir+set}" = set; then | |
4003 | : | |
7a197a62 | 4004 | else |
d0191583 | 4005 | ac_cv_search_opendir=no |
7a197a62 | 4006 | fi |
d0191583 JM |
4007 | rm conftest.$ac_ext |
4008 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4009 | fi |
b145d876 ZK |
4010 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4011 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4012 | ac_res=$ac_cv_search_opendir |
4013 | if test "$ac_res" != no; then | |
4014 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4015 | |
d0191583 | 4016 | fi |
7a197a62 | 4017 | |
7a197a62 | 4018 | else |
b145d876 ZK |
4019 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4020 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4021 | if test "${ac_cv_search_opendir+set}" = set; then |
b145d876 | 4022 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4023 | else |
d0191583 JM |
4024 | ac_func_search_save_LIBS=$LIBS |
4025 | cat >conftest.$ac_ext <<_ACEOF | |
4026 | /* confdefs.h. */ | |
4027 | _ACEOF | |
4028 | cat confdefs.h >>conftest.$ac_ext | |
4029 | cat >>conftest.$ac_ext <<_ACEOF | |
4030 | /* end confdefs.h. */ | |
7a197a62 | 4031 | |
d0191583 JM |
4032 | /* Override any GCC internal prototype to avoid an error. |
4033 | Use char because int might match the return type of a GCC | |
4034 | builtin and then its argument prototype would still apply. */ | |
4035 | #ifdef __cplusplus | |
4036 | extern "C" | |
4037 | #endif | |
4038 | char opendir (); | |
4039 | int | |
4040 | main () | |
4041 | { | |
4042 | return opendir (); | |
4043 | ; | |
4044 | return 0; | |
4045 | } | |
4046 | _ACEOF | |
4047 | for ac_lib in '' x; do | |
4048 | if test -z "$ac_lib"; then | |
4049 | ac_res="none required" | |
4050 | else | |
4051 | ac_res=-l$ac_lib | |
4052 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4053 | fi | |
4054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4055 | if { (ac_try="$ac_link" | |
4056 | case "(($ac_try" in | |
4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4058 | *) ac_try_echo=$ac_try;; | |
4059 | esac | |
b145d876 ZK |
4060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4061 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4062 | (eval "$ac_link") 2>conftest.er1 |
4063 | ac_status=$? | |
4064 | grep -v '^ *+' conftest.er1 >conftest.err | |
4065 | rm -f conftest.er1 | |
4066 | cat conftest.err >&5 | |
b145d876 | 4067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4068 | (exit $ac_status); } && { |
4069 | test -z "$ac_c_werror_flag" || | |
4070 | test ! -s conftest.err | |
b145d876 ZK |
4071 | } && test -s conftest$ac_exeext && { |
4072 | test "$cross_compiling" = yes || | |
4073 | $as_test_x conftest$ac_exeext | |
4074 | }; then | |
d0191583 JM |
4075 | ac_cv_search_opendir=$ac_res |
4076 | else | |
b145d876 | 4077 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4078 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4079 | |
4080 | ||
4081 | fi | |
4082 | ||
b145d876 | 4083 | rm -rf conftest.dSYM |
d0191583 JM |
4084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4085 | conftest$ac_exeext | |
4086 | if test "${ac_cv_search_opendir+set}" = set; then | |
4087 | break | |
7a197a62 | 4088 | fi |
d0191583 JM |
4089 | done |
4090 | if test "${ac_cv_search_opendir+set}" = set; then | |
4091 | : | |
7a197a62 | 4092 | else |
d0191583 | 4093 | ac_cv_search_opendir=no |
7a197a62 | 4094 | fi |
d0191583 JM |
4095 | rm conftest.$ac_ext |
4096 | LIBS=$ac_func_search_save_LIBS | |
4097 | fi | |
b145d876 ZK |
4098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4099 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4100 | ac_res=$ac_cv_search_opendir |
4101 | if test "$ac_res" != no; then | |
4102 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4103 | |
7a197a62 | 4104 | fi |
7a197a62 | 4105 | |
d0191583 | 4106 | fi |
7a197a62 | 4107 | |
b145d876 ZK |
4108 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4109 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4110 | if test "${ac_cv_header_stdc+set}" = set; then |
b145d876 | 4111 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4112 | else |
4113 | cat >conftest.$ac_ext <<_ACEOF | |
4114 | /* confdefs.h. */ | |
4115 | _ACEOF | |
4116 | cat confdefs.h >>conftest.$ac_ext | |
4117 | cat >>conftest.$ac_ext <<_ACEOF | |
4118 | /* end confdefs.h. */ | |
4119 | #include <stdlib.h> | |
4120 | #include <stdarg.h> | |
4121 | #include <string.h> | |
4122 | #include <float.h> | |
4123 | ||
4124 | int | |
4125 | main () | |
4126 | { | |
4127 | ||
4128 | ; | |
4129 | return 0; | |
4130 | } | |
4131 | _ACEOF | |
4132 | rm -f conftest.$ac_objext | |
4133 | if { (ac_try="$ac_compile" | |
4134 | case "(($ac_try" in | |
4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4136 | *) ac_try_echo=$ac_try;; | |
4137 | esac | |
b145d876 ZK |
4138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4139 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4140 | (eval "$ac_compile") 2>conftest.er1 |
4141 | ac_status=$? | |
4142 | grep -v '^ *+' conftest.er1 >conftest.err | |
4143 | rm -f conftest.er1 | |
4144 | cat conftest.err >&5 | |
b145d876 | 4145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4146 | (exit $ac_status); } && { |
4147 | test -z "$ac_c_werror_flag" || | |
4148 | test ! -s conftest.err | |
4149 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4150 | ac_cv_header_stdc=yes |
4151 | else | |
b145d876 | 4152 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
4154 | ||
4155 | ac_cv_header_stdc=no | |
4156 | fi | |
4157 | ||
4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4159 | ||
4160 | if test $ac_cv_header_stdc = yes; then | |
4161 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4162 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4163 | /* confdefs.h. */ |
4164 | _ACEOF | |
4165 | cat confdefs.h >>conftest.$ac_ext | |
4166 | cat >>conftest.$ac_ext <<_ACEOF | |
4167 | /* end confdefs.h. */ | |
4168 | #include <string.h> | |
8106cdd5 | 4169 | |
ad6254c5 AK |
4170 | _ACEOF |
4171 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4172 | $EGREP "memchr" >/dev/null 2>&1; then | |
4173 | : | |
4174 | else | |
4175 | ac_cv_header_stdc=no | |
80992638 | 4176 | fi |
ad6254c5 | 4177 | rm -f conftest* |
795ca3e5 AK |
4178 | |
4179 | fi | |
4180 | ||
ad6254c5 AK |
4181 | if test $ac_cv_header_stdc = yes; then |
4182 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4183 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4184 | /* confdefs.h. */ |
4185 | _ACEOF | |
4186 | cat confdefs.h >>conftest.$ac_ext | |
4187 | cat >>conftest.$ac_ext <<_ACEOF | |
4188 | /* end confdefs.h. */ | |
80992638 | 4189 | #include <stdlib.h> |
ad6254c5 AK |
4190 | |
4191 | _ACEOF | |
80992638 | 4192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4193 | $EGREP "free" >/dev/null 2>&1; then |
4194 | : | |
795ca3e5 | 4195 | else |
ad6254c5 | 4196 | ac_cv_header_stdc=no |
795ca3e5 | 4197 | fi |
80992638 | 4198 | rm -f conftest* |
8106cdd5 | 4199 | |
795ca3e5 AK |
4200 | fi |
4201 | ||
ad6254c5 AK |
4202 | if test $ac_cv_header_stdc = yes; then |
4203 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4204 | if test "$cross_compiling" = yes; then | |
4205 | : | |
795ca3e5 | 4206 | else |
ad6254c5 | 4207 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4208 | /* confdefs.h. */ |
4209 | _ACEOF | |
4210 | cat confdefs.h >>conftest.$ac_ext | |
4211 | cat >>conftest.$ac_ext <<_ACEOF | |
4212 | /* end confdefs.h. */ | |
4213 | #include <ctype.h> | |
7a197a62 | 4214 | #include <stdlib.h> |
ad6254c5 AK |
4215 | #if ((' ' & 0x0FF) == 0x020) |
4216 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4217 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4218 | #else | |
4219 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4220 | (('a' <= (c) && (c) <= 'i') \ |
4221 | || ('j' <= (c) && (c) <= 'r') \ | |
4222 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4223 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4224 | #endif |
ad6254c5 AK |
4225 | |
4226 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4227 | int | |
4228 | main () | |
4229 | { | |
4230 | int i; | |
4231 | for (i = 0; i < 256; i++) | |
4232 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4233 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4234 | return 2; |
4235 | return 0; | |
ad6254c5 AK |
4236 | } |
4237 | _ACEOF | |
4238 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4239 | if { (ac_try="$ac_link" |
4240 | case "(($ac_try" in | |
4241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4242 | *) ac_try_echo=$ac_try;; | |
4243 | esac | |
b145d876 ZK |
4244 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4245 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4246 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4247 | ac_status=$? |
b145d876 | 4248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4250 | { (case "(($ac_try" in |
4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4252 | *) ac_try_echo=$ac_try;; | |
4253 | esac | |
b145d876 ZK |
4254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4255 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4256 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4257 | ac_status=$? |
b145d876 | 4258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4259 | (exit $ac_status); }; }; then |
4260 | : | |
795ca3e5 | 4261 | else |
b145d876 ZK |
4262 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4263 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4264 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4265 | |
ad6254c5 AK |
4266 | ( exit $ac_status ) |
4267 | ac_cv_header_stdc=no | |
80992638 | 4268 | fi |
b145d876 | 4269 | rm -rf conftest.dSYM |
7a197a62 | 4270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4271 | fi |
7a197a62 AK |
4272 | |
4273 | ||
ad6254c5 AK |
4274 | fi |
4275 | fi | |
b145d876 ZK |
4276 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4277 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4278 | if test $ac_cv_header_stdc = yes; then |
4279 | ||
4280 | cat >>confdefs.h <<\_ACEOF | |
4281 | #define STDC_HEADERS 1 | |
4282 | _ACEOF | |
795ca3e5 AK |
4283 | |
4284 | fi | |
4285 | ||
b145d876 ZK |
4286 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4287 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4288 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
b145d876 | 4289 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4290 | else |
ad6254c5 | 4291 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4292 | /* confdefs.h. */ |
4293 | _ACEOF | |
4294 | cat confdefs.h >>conftest.$ac_ext | |
4295 | cat >>conftest.$ac_ext <<_ACEOF | |
4296 | /* end confdefs.h. */ | |
80992638 | 4297 | #include <sys/types.h> |
ad6254c5 AK |
4298 | #include <sys/wait.h> |
4299 | #ifndef WEXITSTATUS | |
7a197a62 | 4300 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4301 | #endif |
4302 | #ifndef WIFEXITED | |
4303 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4304 | #endif | |
4305 | ||
4306 | int | |
4307 | main () | |
4308 | { | |
4309 | int s; | |
4310 | wait (&s); | |
4311 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4312 | ; | |
4313 | return 0; | |
4314 | } | |
4315 | _ACEOF | |
4316 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4317 | if { (ac_try="$ac_compile" |
4318 | case "(($ac_try" in | |
4319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4320 | *) ac_try_echo=$ac_try;; | |
4321 | esac | |
b145d876 ZK |
4322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4323 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4324 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4325 | ac_status=$? |
8a2fc586 AK |
4326 | grep -v '^ *+' conftest.er1 >conftest.err |
4327 | rm -f conftest.er1 | |
4328 | cat conftest.err >&5 | |
b145d876 | 4329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4330 | (exit $ac_status); } && { |
4331 | test -z "$ac_c_werror_flag" || | |
4332 | test ! -s conftest.err | |
4333 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4334 | ac_cv_header_sys_wait_h=yes |
4335 | else | |
b145d876 | 4336 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4337 | sed 's/^/| /' conftest.$ac_ext >&5 |
4338 | ||
7a197a62 | 4339 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4340 | fi |
7a197a62 AK |
4341 | |
4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4343 | fi |
b145d876 ZK |
4344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4345 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4346 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4347 | |
ad6254c5 AK |
4348 | cat >>confdefs.h <<\_ACEOF |
4349 | #define HAVE_SYS_WAIT_H 1 | |
4350 | _ACEOF | |
795ca3e5 AK |
4351 | |
4352 | fi | |
4353 | ||
b145d876 ZK |
4354 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4355 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4356 | if test "${ac_cv_header_time+set}" = set; then |
b145d876 | 4357 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4358 | else |
ad6254c5 | 4359 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4360 | /* confdefs.h. */ |
4361 | _ACEOF | |
4362 | cat confdefs.h >>conftest.$ac_ext | |
4363 | cat >>conftest.$ac_ext <<_ACEOF | |
4364 | /* end confdefs.h. */ | |
795ca3e5 AK |
4365 | #include <sys/types.h> |
4366 | #include <sys/time.h> | |
4367 | #include <time.h> | |
ad6254c5 AK |
4368 | |
4369 | int | |
4370 | main () | |
4371 | { | |
4372 | if ((struct tm *) 0) | |
4373 | return 0; | |
4374 | ; | |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4379 | if { (ac_try="$ac_compile" |
4380 | case "(($ac_try" in | |
4381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4382 | *) ac_try_echo=$ac_try;; | |
4383 | esac | |
b145d876 ZK |
4384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4385 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4386 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4387 | ac_status=$? |
8a2fc586 AK |
4388 | grep -v '^ *+' conftest.er1 >conftest.err |
4389 | rm -f conftest.er1 | |
4390 | cat conftest.err >&5 | |
b145d876 | 4391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4392 | (exit $ac_status); } && { |
4393 | test -z "$ac_c_werror_flag" || | |
4394 | test ! -s conftest.err | |
4395 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4396 | ac_cv_header_time=yes |
4397 | else | |
b145d876 | 4398 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4399 | sed 's/^/| /' conftest.$ac_ext >&5 |
4400 | ||
7a197a62 | 4401 | ac_cv_header_time=no |
795ca3e5 | 4402 | fi |
7a197a62 AK |
4403 | |
4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4405 | fi |
b145d876 ZK |
4406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4407 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4408 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4409 | |
4410 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4411 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4412 | _ACEOF |
b896caa1 | 4413 | |
8106cdd5 | 4414 | fi |
b896caa1 | 4415 | |
b896caa1 | 4416 | |
d0191583 JM |
4417 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4418 | ||
4419 | ||
4420 | ||
4421 | ||
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4428 | inttypes.h stdint.h unistd.h | |
4429 | do | |
b145d876 ZK |
4430 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4431 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4432 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4434 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4435 | else |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
4437 | /* confdefs.h. */ | |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
4442 | $ac_includes_default | |
4443 | ||
4444 | #include <$ac_header> | |
4445 | _ACEOF | |
4446 | rm -f conftest.$ac_objext | |
4447 | if { (ac_try="$ac_compile" | |
4448 | case "(($ac_try" in | |
4449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4450 | *) ac_try_echo=$ac_try;; | |
4451 | esac | |
b145d876 ZK |
4452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4453 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4454 | (eval "$ac_compile") 2>conftest.er1 |
4455 | ac_status=$? | |
4456 | grep -v '^ *+' conftest.er1 >conftest.err | |
4457 | rm -f conftest.er1 | |
4458 | cat conftest.err >&5 | |
b145d876 | 4459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4460 | (exit $ac_status); } && { |
4461 | test -z "$ac_c_werror_flag" || | |
4462 | test ! -s conftest.err | |
4463 | } && test -s conftest.$ac_objext; then | |
4464 | eval "$as_ac_Header=yes" | |
4465 | else | |
b145d876 | 4466 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4467 | sed 's/^/| /' conftest.$ac_ext >&5 |
4468 | ||
4469 | eval "$as_ac_Header=no" | |
4470 | fi | |
4471 | ||
4472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4473 | fi | |
b145d876 ZK |
4474 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4475 | $as_echo "$as_val"'` | |
4476 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4477 | $as_echo "$ac_res" >&6; } | |
4478 | if test `eval 'as_val=${'$as_ac_Header'} | |
4479 | $as_echo "$as_val"'` = yes; then | |
d0191583 | 4480 | cat >>confdefs.h <<_ACEOF |
b145d876 | 4481 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4482 | _ACEOF |
4483 | ||
4484 | fi | |
4485 | ||
4486 | done | |
4487 | ||
b896caa1 | 4488 | |
b896caa1 AK |
4489 | |
4490 | ||
795ca3e5 | 4491 | |
8106cdd5 | 4492 | |
80992638 | 4493 | |
795ca3e5 | 4494 | |
a38df97f | 4495 | |
80992638 | 4496 | |
d0191583 JM |
4497 | |
4498 | ||
4499 | ||
4500 | ||
4501 | ||
4502 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4503 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4504 | do |
b145d876 | 4505 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
4507 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4508 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4510 | $as_echo_n "(cached) " >&6 |
d0191583 | 4511 | fi |
b145d876 ZK |
4512 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4513 | $as_echo "$as_val"'` | |
4514 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4515 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4516 | else |
d0191583 | 4517 | # Is the header compilable? |
b145d876 ZK |
4518 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4519 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4520 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4521 | /* confdefs.h. */ |
4522 | _ACEOF | |
4523 | cat confdefs.h >>conftest.$ac_ext | |
4524 | cat >>conftest.$ac_ext <<_ACEOF | |
4525 | /* end confdefs.h. */ | |
4526 | $ac_includes_default | |
ad6254c5 AK |
4527 | #include <$ac_header> |
4528 | _ACEOF | |
4529 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4530 | if { (ac_try="$ac_compile" |
4531 | case "(($ac_try" in | |
4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4533 | *) ac_try_echo=$ac_try;; | |
4534 | esac | |
b145d876 ZK |
4535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4536 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4537 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4538 | ac_status=$? |
8a2fc586 AK |
4539 | grep -v '^ *+' conftest.er1 >conftest.err |
4540 | rm -f conftest.er1 | |
4541 | cat conftest.err >&5 | |
b145d876 | 4542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4543 | (exit $ac_status); } && { |
4544 | test -z "$ac_c_werror_flag" || | |
4545 | test ! -s conftest.err | |
4546 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4547 | ac_header_compiler=yes |
ad6254c5 | 4548 | else |
b145d876 | 4549 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4550 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4551 | |
d0191583 | 4552 | ac_header_compiler=no |
ad6254c5 | 4553 | fi |
7a197a62 AK |
4554 | |
4555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
4556 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4557 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4558 | |
4559 | # Is the header present? | |
b145d876 ZK |
4560 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4561 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4562 | cat >conftest.$ac_ext <<_ACEOF |
4563 | /* confdefs.h. */ | |
4564 | _ACEOF | |
4565 | cat confdefs.h >>conftest.$ac_ext | |
4566 | cat >>conftest.$ac_ext <<_ACEOF | |
4567 | /* end confdefs.h. */ | |
4568 | #include <$ac_header> | |
4569 | _ACEOF | |
4570 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4571 | case "(($ac_try" in | |
4572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4573 | *) ac_try_echo=$ac_try;; | |
4574 | esac | |
b145d876 ZK |
4575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4576 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4578 | ac_status=$? | |
4579 | grep -v '^ *+' conftest.er1 >conftest.err | |
4580 | rm -f conftest.er1 | |
4581 | cat conftest.err >&5 | |
b145d876 | 4582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4583 | (exit $ac_status); } >/dev/null && { |
4584 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4585 | test ! -s conftest.err | |
4586 | }; then | |
4587 | ac_header_preproc=yes | |
4588 | else | |
b145d876 | 4589 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4590 | sed 's/^/| /' conftest.$ac_ext >&5 |
4591 | ||
4592 | ac_header_preproc=no | |
4593 | fi | |
4594 | ||
4595 | rm -f conftest.err conftest.$ac_ext | |
b145d876 ZK |
4596 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4597 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4598 | |
4599 | # So? What about this header? | |
4600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4601 | yes:no: ) | |
b145d876 ZK |
4602 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4603 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4604 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4605 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4606 | ac_header_preproc=yes |
4607 | ;; | |
4608 | no:yes:* ) | |
b145d876 ZK |
4609 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4610 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4611 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4612 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4613 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4614 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4615 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4616 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4617 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4618 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4620 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4621 | |
4622 | ;; | |
4623 | esac | |
b145d876 ZK |
4624 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4625 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4627 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4628 | else |
4629 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4630 | fi |
b145d876 ZK |
4631 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4632 | $as_echo "$as_val"'` | |
4633 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4634 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4635 | |
4636 | fi | |
b145d876 ZK |
4637 | if test `eval 'as_val=${'$as_ac_Header'} |
4638 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4639 | cat >>confdefs.h <<_ACEOF |
b145d876 | 4640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4641 | _ACEOF |
a38df97f | 4642 | |
d0191583 | 4643 | else |
b145d876 ZK |
4644 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4645 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4646 | { (exit 1); exit 1; }; } |
80992638 AK |
4647 | fi |
4648 | ||
ad6254c5 AK |
4649 | done |
4650 | ||
7d1552c9 | 4651 | |
d0191583 JM |
4652 | case "$host_os" in |
4653 | linux*) | |
7d1552c9 | 4654 | |
80992638 | 4655 | |
5a52dca9 | 4656 | |
d0191583 | 4657 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4658 | do |
b145d876 | 4659 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
4661 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4662 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4664 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4665 | fi |
b145d876 ZK |
4666 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4667 | $as_echo "$as_val"'` | |
4668 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4669 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4670 | else |
4671 | # Is the header compilable? | |
b145d876 ZK |
4672 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4673 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4674 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4675 | /* confdefs.h. */ |
4676 | _ACEOF | |
4677 | cat confdefs.h >>conftest.$ac_ext | |
4678 | cat >>conftest.$ac_ext <<_ACEOF | |
4679 | /* end confdefs.h. */ | |
4680 | $ac_includes_default | |
4681 | #include <$ac_header> | |
4682 | _ACEOF | |
4683 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4684 | if { (ac_try="$ac_compile" |
4685 | case "(($ac_try" in | |
4686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4687 | *) ac_try_echo=$ac_try;; | |
4688 | esac | |
b145d876 ZK |
4689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4690 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4691 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4692 | ac_status=$? |
8a2fc586 AK |
4693 | grep -v '^ *+' conftest.er1 >conftest.err |
4694 | rm -f conftest.er1 | |
4695 | cat conftest.err >&5 | |
b145d876 | 4696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4697 | (exit $ac_status); } && { |
4698 | test -z "$ac_c_werror_flag" || | |
4699 | test ! -s conftest.err | |
4700 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4701 | ac_header_compiler=yes |
4702 | else | |
b145d876 | 4703 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4704 | sed 's/^/| /' conftest.$ac_ext >&5 |
4705 | ||
4706 | ac_header_compiler=no | |
4707 | fi | |
4708 | ||
4709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
4710 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4711 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4712 | |
4713 | # Is the header present? | |
b145d876 ZK |
4714 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4715 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4716 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4717 | /* confdefs.h. */ |
4718 | _ACEOF | |
4719 | cat confdefs.h >>conftest.$ac_ext | |
4720 | cat >>conftest.$ac_ext <<_ACEOF | |
4721 | /* end confdefs.h. */ | |
4722 | #include <$ac_header> | |
4723 | _ACEOF | |
7a197a62 AK |
4724 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4725 | case "(($ac_try" in | |
4726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4727 | *) ac_try_echo=$ac_try;; | |
4728 | esac | |
b145d876 ZK |
4729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4730 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4732 | ac_status=$? |
4733 | grep -v '^ *+' conftest.er1 >conftest.err | |
4734 | rm -f conftest.er1 | |
4735 | cat conftest.err >&5 | |
b145d876 | 4736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4737 | (exit $ac_status); } >/dev/null && { |
4738 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4739 | test ! -s conftest.err | |
4740 | }; then | |
ad6254c5 AK |
4741 | ac_header_preproc=yes |
4742 | else | |
b145d876 | 4743 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4744 | sed 's/^/| /' conftest.$ac_ext >&5 |
4745 | ||
4746 | ac_header_preproc=no | |
4747 | fi | |
7a197a62 | 4748 | |
ad6254c5 | 4749 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
4750 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4751 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4752 | |
4753 | # So? What about this header? | |
8a2fc586 AK |
4754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4755 | yes:no: ) | |
b145d876 ZK |
4756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4757 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4759 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4760 | ac_header_preproc=yes |
ad6254c5 | 4761 | ;; |
8a2fc586 | 4762 | no:yes:* ) |
b145d876 ZK |
4763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4764 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4766 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4768 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4770 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4772 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4774 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4775 | |
ad6254c5 AK |
4776 | ;; |
4777 | esac | |
b145d876 ZK |
4778 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4779 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4781 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4782 | else |
8a2fc586 | 4783 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4784 | fi |
b145d876 ZK |
4785 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4786 | $as_echo "$as_val"'` | |
4787 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4788 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4789 | |
4790 | fi | |
b145d876 ZK |
4791 | if test `eval 'as_val=${'$as_ac_Header'} |
4792 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4793 | cat >>confdefs.h <<_ACEOF |
b145d876 | 4794 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4795 | _ACEOF |
b896caa1 | 4796 | |
d8ac0fbc | 4797 | else |
b145d876 ZK |
4798 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4799 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4800 | { (exit 1); exit 1; }; } |
80992638 AK |
4801 | fi |
4802 | ||
ad6254c5 | 4803 | done |
d0191583 JM |
4804 | ;; |
4805 | darwin*) | |
d8ac0fbc | 4806 | |
d8ac0fbc | 4807 | |
d0191583 | 4808 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4809 | do |
b145d876 | 4810 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
4812 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4813 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4814 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4815 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4816 | fi |
b145d876 ZK |
4817 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4818 | $as_echo "$as_val"'` | |
4819 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4820 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4821 | else |
4822 | # Is the header compilable? | |
b145d876 ZK |
4823 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4824 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4825 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4826 | /* confdefs.h. */ |
4827 | _ACEOF | |
4828 | cat confdefs.h >>conftest.$ac_ext | |
4829 | cat >>conftest.$ac_ext <<_ACEOF | |
4830 | /* end confdefs.h. */ | |
4831 | $ac_includes_default | |
4832 | #include <$ac_header> | |
4833 | _ACEOF | |
4834 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4835 | if { (ac_try="$ac_compile" |
4836 | case "(($ac_try" in | |
4837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4838 | *) ac_try_echo=$ac_try;; | |
4839 | esac | |
b145d876 ZK |
4840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4841 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4842 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4843 | ac_status=$? |
8a2fc586 AK |
4844 | grep -v '^ *+' conftest.er1 >conftest.err |
4845 | rm -f conftest.er1 | |
4846 | cat conftest.err >&5 | |
b145d876 | 4847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4848 | (exit $ac_status); } && { |
4849 | test -z "$ac_c_werror_flag" || | |
4850 | test ! -s conftest.err | |
4851 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4852 | ac_header_compiler=yes |
4853 | else | |
b145d876 | 4854 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4855 | sed 's/^/| /' conftest.$ac_ext >&5 |
4856 | ||
7a197a62 | 4857 | ac_header_compiler=no |
ad6254c5 | 4858 | fi |
7a197a62 AK |
4859 | |
4860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
4861 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4862 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4863 | |
4864 | # Is the header present? | |
b145d876 ZK |
4865 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4866 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4867 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4868 | /* confdefs.h. */ |
4869 | _ACEOF | |
4870 | cat confdefs.h >>conftest.$ac_ext | |
4871 | cat >>conftest.$ac_ext <<_ACEOF | |
4872 | /* end confdefs.h. */ | |
4873 | #include <$ac_header> | |
4874 | _ACEOF | |
7a197a62 AK |
4875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4876 | case "(($ac_try" in | |
4877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4878 | *) ac_try_echo=$ac_try;; | |
4879 | esac | |
b145d876 ZK |
4880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4882 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4883 | ac_status=$? |
4884 | grep -v '^ *+' conftest.er1 >conftest.err | |
4885 | rm -f conftest.er1 | |
4886 | cat conftest.err >&5 | |
b145d876 | 4887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4888 | (exit $ac_status); } >/dev/null && { |
4889 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4890 | test ! -s conftest.err | |
4891 | }; then | |
ad6254c5 AK |
4892 | ac_header_preproc=yes |
4893 | else | |
b145d876 | 4894 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
4896 | ||
4897 | ac_header_preproc=no | |
4898 | fi | |
7a197a62 | 4899 | |
ad6254c5 | 4900 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
4901 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4902 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4903 | |
4904 | # So? What about this header? | |
8a2fc586 AK |
4905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4906 | yes:no: ) | |
b145d876 ZK |
4907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4908 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4910 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4911 | ac_header_preproc=yes |
ad6254c5 | 4912 | ;; |
8a2fc586 | 4913 | no:yes:* ) |
b145d876 ZK |
4914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4915 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4916 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4917 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4918 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4919 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4921 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4922 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4923 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4925 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4926 | |
ad6254c5 AK |
4927 | ;; |
4928 | esac | |
b145d876 ZK |
4929 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4930 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4932 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4933 | else |
8a2fc586 | 4934 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4935 | fi |
b145d876 ZK |
4936 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4937 | $as_echo "$as_val"'` | |
4938 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4939 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4940 | |
4941 | fi | |
b145d876 ZK |
4942 | if test `eval 'as_val=${'$as_ac_Header'} |
4943 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 4944 | cat >>confdefs.h <<_ACEOF |
b145d876 | 4945 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4946 | _ACEOF |
4922197a | 4947 | |
4922197a | 4948 | else |
b145d876 ZK |
4949 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4950 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4951 | { (exit 1); exit 1; }; } |
80992638 AK |
4952 | fi |
4953 | ||
ad6254c5 | 4954 | done |
d0191583 JM |
4955 | ;; |
4956 | esac | |
4922197a | 4957 | |
4922197a | 4958 | |
4922197a | 4959 | |
ad6254c5 AK |
4960 | |
4961 | ||
d0191583 JM |
4962 | |
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4975 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4976 | sys/types.h unistd.h | |
ad6254c5 | 4977 | do |
b145d876 | 4978 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
4980 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4981 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 4983 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4984 | fi |
b145d876 ZK |
4985 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4986 | $as_echo "$as_val"'` | |
4987 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4988 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 4989 | else |
ad6254c5 | 4990 | # Is the header compilable? |
b145d876 ZK |
4991 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4992 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4993 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4994 | /* confdefs.h. */ |
4995 | _ACEOF | |
4996 | cat confdefs.h >>conftest.$ac_ext | |
4997 | cat >>conftest.$ac_ext <<_ACEOF | |
4998 | /* end confdefs.h. */ | |
4999 | $ac_includes_default | |
5000 | #include <$ac_header> | |
5001 | _ACEOF | |
5002 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5003 | if { (ac_try="$ac_compile" |
5004 | case "(($ac_try" in | |
5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5006 | *) ac_try_echo=$ac_try;; | |
5007 | esac | |
b145d876 ZK |
5008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5009 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5010 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5011 | ac_status=$? |
8a2fc586 AK |
5012 | grep -v '^ *+' conftest.er1 >conftest.err |
5013 | rm -f conftest.er1 | |
5014 | cat conftest.err >&5 | |
b145d876 | 5015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5016 | (exit $ac_status); } && { |
5017 | test -z "$ac_c_werror_flag" || | |
5018 | test ! -s conftest.err | |
5019 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5020 | ac_header_compiler=yes |
5021 | else | |
b145d876 | 5022 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
5024 | ||
7a197a62 | 5025 | ac_header_compiler=no |
ad6254c5 | 5026 | fi |
7a197a62 AK |
5027 | |
5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
5029 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5030 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5031 | |
5032 | # Is the header present? | |
b145d876 ZK |
5033 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5034 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5035 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5036 | /* confdefs.h. */ |
5037 | _ACEOF | |
5038 | cat confdefs.h >>conftest.$ac_ext | |
5039 | cat >>conftest.$ac_ext <<_ACEOF | |
5040 | /* end confdefs.h. */ | |
5041 | #include <$ac_header> | |
5042 | _ACEOF | |
7a197a62 AK |
5043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5044 | case "(($ac_try" in | |
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5046 | *) ac_try_echo=$ac_try;; | |
5047 | esac | |
b145d876 ZK |
5048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5050 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5051 | ac_status=$? |
5052 | grep -v '^ *+' conftest.er1 >conftest.err | |
5053 | rm -f conftest.er1 | |
5054 | cat conftest.err >&5 | |
b145d876 | 5055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5056 | (exit $ac_status); } >/dev/null && { |
5057 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5058 | test ! -s conftest.err | |
5059 | }; then | |
ad6254c5 AK |
5060 | ac_header_preproc=yes |
5061 | else | |
b145d876 | 5062 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
5064 | ||
5065 | ac_header_preproc=no | |
5066 | fi | |
7a197a62 | 5067 | |
ad6254c5 | 5068 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
5069 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5070 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5071 | |
5072 | # So? What about this header? | |
8a2fc586 AK |
5073 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5074 | yes:no: ) | |
b145d876 ZK |
5075 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5076 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5077 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5078 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5079 | ac_header_preproc=yes |
ad6254c5 | 5080 | ;; |
8a2fc586 | 5081 | no:yes:* ) |
b145d876 ZK |
5082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5083 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5085 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5087 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5089 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5091 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5093 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5094 | |
ad6254c5 AK |
5095 | ;; |
5096 | esac | |
b145d876 ZK |
5097 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5098 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 5100 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5101 | else |
8a2fc586 | 5102 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5103 | fi |
b145d876 ZK |
5104 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5105 | $as_echo "$as_val"'` | |
5106 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5107 | $as_echo "$ac_res" >&6; } | |
80992638 | 5108 | |
ad6254c5 | 5109 | fi |
b145d876 ZK |
5110 | if test `eval 'as_val=${'$as_ac_Header'} |
5111 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 5112 | cat >>confdefs.h <<_ACEOF |
b145d876 | 5113 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5114 | _ACEOF |
795ca3e5 | 5115 | |
795ca3e5 | 5116 | else |
b145d876 ZK |
5117 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5118 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5119 | { (exit 1); exit 1; }; } |
80992638 AK |
5120 | fi |
5121 | ||
ad6254c5 | 5122 | done |
ad6254c5 | 5123 | |
795ca3e5 | 5124 | |
d0191583 JM |
5125 | |
5126 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5127 | do |
b145d876 | 5128 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
5130 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5131 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 5133 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5134 | fi |
b145d876 ZK |
5135 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5136 | $as_echo "$as_val"'` | |
5137 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5138 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5139 | else |
5140 | # Is the header compilable? | |
b145d876 ZK |
5141 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5142 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5143 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5144 | /* confdefs.h. */ |
5145 | _ACEOF | |
5146 | cat confdefs.h >>conftest.$ac_ext | |
5147 | cat >>conftest.$ac_ext <<_ACEOF | |
5148 | /* end confdefs.h. */ | |
5149 | $ac_includes_default | |
5150 | #include <$ac_header> | |
5151 | _ACEOF | |
5152 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5153 | if { (ac_try="$ac_compile" |
5154 | case "(($ac_try" in | |
5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5156 | *) ac_try_echo=$ac_try;; | |
5157 | esac | |
b145d876 ZK |
5158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5159 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5160 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5161 | ac_status=$? |
8a2fc586 AK |
5162 | grep -v '^ *+' conftest.er1 >conftest.err |
5163 | rm -f conftest.er1 | |
5164 | cat conftest.err >&5 | |
b145d876 | 5165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5166 | (exit $ac_status); } && { |
5167 | test -z "$ac_c_werror_flag" || | |
5168 | test ! -s conftest.err | |
5169 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5170 | ac_header_compiler=yes |
5171 | else | |
b145d876 | 5172 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5173 | sed 's/^/| /' conftest.$ac_ext >&5 |
5174 | ||
7a197a62 | 5175 | ac_header_compiler=no |
ad6254c5 | 5176 | fi |
7a197a62 AK |
5177 | |
5178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
5179 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5180 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5181 | |
5182 | # Is the header present? | |
b145d876 ZK |
5183 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5184 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5185 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5186 | /* confdefs.h. */ |
5187 | _ACEOF | |
5188 | cat confdefs.h >>conftest.$ac_ext | |
5189 | cat >>conftest.$ac_ext <<_ACEOF | |
5190 | /* end confdefs.h. */ | |
5191 | #include <$ac_header> | |
5192 | _ACEOF | |
7a197a62 AK |
5193 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5194 | case "(($ac_try" in | |
5195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5196 | *) ac_try_echo=$ac_try;; | |
5197 | esac | |
b145d876 ZK |
5198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5199 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5200 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5201 | ac_status=$? |
5202 | grep -v '^ *+' conftest.er1 >conftest.err | |
5203 | rm -f conftest.er1 | |
5204 | cat conftest.err >&5 | |
b145d876 | 5205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5206 | (exit $ac_status); } >/dev/null && { |
5207 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5208 | test ! -s conftest.err | |
5209 | }; then | |
ad6254c5 AK |
5210 | ac_header_preproc=yes |
5211 | else | |
b145d876 | 5212 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5213 | sed 's/^/| /' conftest.$ac_ext >&5 |
5214 | ||
5215 | ac_header_preproc=no | |
5216 | fi | |
7a197a62 | 5217 | |
ad6254c5 | 5218 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
5219 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5220 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5221 | |
5222 | # So? What about this header? | |
8a2fc586 AK |
5223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5224 | yes:no: ) | |
b145d876 ZK |
5225 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5226 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5228 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5229 | ac_header_preproc=yes |
ad6254c5 | 5230 | ;; |
8a2fc586 | 5231 | no:yes:* ) |
b145d876 ZK |
5232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5233 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5234 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5235 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5236 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5237 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5239 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5241 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5243 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5244 | |
ad6254c5 AK |
5245 | ;; |
5246 | esac | |
b145d876 ZK |
5247 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5248 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 5250 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5251 | else |
8a2fc586 | 5252 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5253 | fi |
b145d876 ZK |
5254 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5255 | $as_echo "$as_val"'` | |
5256 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5257 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5258 | |
ad6254c5 | 5259 | fi |
b145d876 ZK |
5260 | if test `eval 'as_val=${'$as_ac_Header'} |
5261 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 5262 | cat >>confdefs.h <<_ACEOF |
b145d876 | 5263 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5264 | _ACEOF |
5265 | ||
80992638 AK |
5266 | fi |
5267 | ||
ad6254c5 | 5268 | done |
d0191583 | 5269 | |
d3c8211f | 5270 | |
80992638 | 5271 | ################################################################################ |
b145d876 ZK |
5272 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5273 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5274 | if test "${ac_cv_c_const+set}" = set; then |
b145d876 | 5275 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5276 | else |
ad6254c5 | 5277 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5278 | /* confdefs.h. */ |
5279 | _ACEOF | |
5280 | cat confdefs.h >>conftest.$ac_ext | |
5281 | cat >>conftest.$ac_ext <<_ACEOF | |
5282 | /* end confdefs.h. */ | |
5283 | ||
5284 | int | |
5285 | main () | |
5286 | { | |
5287 | /* FIXME: Include the comments suggested by Paul. */ | |
5288 | #ifndef __cplusplus | |
5289 | /* Ultrix mips cc rejects this. */ | |
5290 | typedef int charset[2]; | |
25fbec5b | 5291 | const charset cs; |
ad6254c5 | 5292 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5293 | char const *const *pcpcc; |
5294 | char **ppc; | |
ad6254c5 AK |
5295 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5296 | struct point {int x, y;}; | |
5297 | static struct point const zero = {0,0}; | |
5298 | /* AIX XL C 1.02.0.0 rejects this. | |
5299 | It does not let you subtract one const X* pointer from another in | |
5300 | an arm of an if-expression whose if-part is not a constant | |
5301 | expression */ | |
5302 | const char *g = "string"; | |
25fbec5b | 5303 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5304 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5305 | ++pcpcc; |
5306 | ppc = (char**) pcpcc; | |
5307 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5308 | { /* SCO 3.2v4 cc rejects this. */ |
5309 | char *t; | |
5310 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5311 | ||
5312 | *t++ = 0; | |
7a197a62 | 5313 | if (s) return 0; |
ad6254c5 AK |
5314 | } |
5315 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5316 | int x[] = {25, 17}; | |
5317 | const int *foo = &x[0]; | |
5318 | ++foo; | |
5319 | } | |
5320 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5321 | typedef const int *iptr; | |
5322 | iptr p = 0; | |
5323 | ++p; | |
5324 | } | |
5325 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5326 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5327 | struct s { int j; const int *ap[3]; }; | |
5328 | struct s *b; b->j = 5; | |
5329 | } | |
5330 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5331 | const int foo = 10; | |
7a197a62 | 5332 | if (!foo) return 0; |
ad6254c5 | 5333 | } |
25fbec5b | 5334 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5335 | #endif |
5336 | ||
5337 | ; | |
5338 | return 0; | |
5339 | } | |
5340 | _ACEOF | |
5341 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5342 | if { (ac_try="$ac_compile" |
5343 | case "(($ac_try" in | |
5344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5345 | *) ac_try_echo=$ac_try;; | |
5346 | esac | |
b145d876 ZK |
5347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5348 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5349 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5350 | ac_status=$? |
8a2fc586 AK |
5351 | grep -v '^ *+' conftest.er1 >conftest.err |
5352 | rm -f conftest.er1 | |
5353 | cat conftest.err >&5 | |
b145d876 | 5354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5355 | (exit $ac_status); } && { |
5356 | test -z "$ac_c_werror_flag" || | |
5357 | test ! -s conftest.err | |
5358 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5359 | ac_cv_c_const=yes |
5360 | else | |
b145d876 | 5361 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5362 | sed 's/^/| /' conftest.$ac_ext >&5 |
5363 | ||
7a197a62 | 5364 | ac_cv_c_const=no |
ad6254c5 | 5365 | fi |
7a197a62 AK |
5366 | |
5367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5368 | fi |
b145d876 ZK |
5369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5370 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5371 | if test $ac_cv_c_const = no; then |
80992638 | 5372 | |
ad6254c5 | 5373 | cat >>confdefs.h <<\_ACEOF |
b145d876 | 5374 | #define const /**/ |
ad6254c5 | 5375 | _ACEOF |
80992638 | 5376 | |
d3c8211f | 5377 | fi |
d3c8211f | 5378 | |
b145d876 ZK |
5379 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5380 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5381 | if test "${ac_cv_c_inline+set}" = set; then |
b145d876 | 5382 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5383 | else |
ad6254c5 AK |
5384 | ac_cv_c_inline=no |
5385 | for ac_kw in inline __inline__ __inline; do | |
5386 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5387 | /* confdefs.h. */ |
5388 | _ACEOF | |
5389 | cat confdefs.h >>conftest.$ac_ext | |
5390 | cat >>conftest.$ac_ext <<_ACEOF | |
5391 | /* end confdefs.h. */ | |
5392 | #ifndef __cplusplus | |
5393 | typedef int foo_t; | |
5394 | static $ac_kw foo_t static_foo () {return 0; } | |
5395 | $ac_kw foo_t foo () {return 0; } | |
5396 | #endif | |
80992638 | 5397 | |
ad6254c5 AK |
5398 | _ACEOF |
5399 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5400 | if { (ac_try="$ac_compile" |
5401 | case "(($ac_try" in | |
5402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5403 | *) ac_try_echo=$ac_try;; | |
5404 | esac | |
b145d876 ZK |
5405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5406 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5407 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5408 | ac_status=$? |
8a2fc586 AK |
5409 | grep -v '^ *+' conftest.er1 >conftest.err |
5410 | rm -f conftest.er1 | |
5411 | cat conftest.err >&5 | |
b145d876 | 5412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5413 | (exit $ac_status); } && { |
5414 | test -z "$ac_c_werror_flag" || | |
5415 | test ! -s conftest.err | |
5416 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5417 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5418 | else |
b145d876 | 5419 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5420 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5421 | |
7a197a62 | 5422 | |
8ce0cbda | 5423 | fi |
7a197a62 AK |
5424 | |
5425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5426 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5427 | done |
8ce0cbda | 5428 | |
8ce0cbda | 5429 | fi |
b145d876 ZK |
5430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5431 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5432 | |
5433 | ||
ad6254c5 AK |
5434 | case $ac_cv_c_inline in |
5435 | inline | yes) ;; | |
8a2fc586 AK |
5436 | *) |
5437 | case $ac_cv_c_inline in | |
5438 | no) ac_val=;; | |
5439 | *) ac_val=$ac_cv_c_inline;; | |
5440 | esac | |
5441 | cat >>confdefs.h <<_ACEOF | |
5442 | #ifndef __cplusplus | |
5443 | #define inline $ac_val | |
5444 | #endif | |
c1c065a3 | 5445 | _ACEOF |
d0191583 JM |
5446 | ;; |
5447 | esac | |
5448 | ||
b145d876 ZK |
5449 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5450 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5451 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
b145d876 | 5452 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5453 | else |
5454 | cat >conftest.$ac_ext <<_ACEOF | |
5455 | /* confdefs.h. */ | |
5456 | _ACEOF | |
5457 | cat confdefs.h >>conftest.$ac_ext | |
5458 | cat >>conftest.$ac_ext <<_ACEOF | |
5459 | /* end confdefs.h. */ | |
5460 | $ac_includes_default | |
5461 | int | |
5462 | main () | |
5463 | { | |
5464 | static struct stat ac_aggr; | |
5465 | if (ac_aggr.st_rdev) | |
5466 | return 0; | |
5467 | ; | |
5468 | return 0; | |
5469 | } | |
5470 | _ACEOF | |
5471 | rm -f conftest.$ac_objext | |
5472 | if { (ac_try="$ac_compile" | |
5473 | case "(($ac_try" in | |
5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5475 | *) ac_try_echo=$ac_try;; | |
5476 | esac | |
b145d876 ZK |
5477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5478 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5479 | (eval "$ac_compile") 2>conftest.er1 |
5480 | ac_status=$? | |
5481 | grep -v '^ *+' conftest.er1 >conftest.err | |
5482 | rm -f conftest.er1 | |
5483 | cat conftest.err >&5 | |
b145d876 | 5484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5485 | (exit $ac_status); } && { |
5486 | test -z "$ac_c_werror_flag" || | |
5487 | test ! -s conftest.err | |
5488 | } && test -s conftest.$ac_objext; then | |
5489 | ac_cv_member_struct_stat_st_rdev=yes | |
5490 | else | |
b145d876 | 5491 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5492 | sed 's/^/| /' conftest.$ac_ext >&5 |
5493 | ||
5494 | cat >conftest.$ac_ext <<_ACEOF | |
5495 | /* confdefs.h. */ | |
5496 | _ACEOF | |
5497 | cat confdefs.h >>conftest.$ac_ext | |
5498 | cat >>conftest.$ac_ext <<_ACEOF | |
5499 | /* end confdefs.h. */ | |
5500 | $ac_includes_default | |
5501 | int | |
5502 | main () | |
5503 | { | |
5504 | static struct stat ac_aggr; | |
5505 | if (sizeof ac_aggr.st_rdev) | |
5506 | return 0; | |
5507 | ; | |
5508 | return 0; | |
5509 | } | |
5510 | _ACEOF | |
5511 | rm -f conftest.$ac_objext | |
5512 | if { (ac_try="$ac_compile" | |
5513 | case "(($ac_try" in | |
5514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5515 | *) ac_try_echo=$ac_try;; | |
5516 | esac | |
b145d876 ZK |
5517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5518 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5519 | (eval "$ac_compile") 2>conftest.er1 |
5520 | ac_status=$? | |
5521 | grep -v '^ *+' conftest.er1 >conftest.err | |
5522 | rm -f conftest.er1 | |
5523 | cat conftest.err >&5 | |
b145d876 | 5524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5525 | (exit $ac_status); } && { |
5526 | test -z "$ac_c_werror_flag" || | |
5527 | test ! -s conftest.err | |
5528 | } && test -s conftest.$ac_objext; then | |
5529 | ac_cv_member_struct_stat_st_rdev=yes | |
5530 | else | |
b145d876 | 5531 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5532 | sed 's/^/| /' conftest.$ac_ext >&5 |
5533 | ||
5534 | ac_cv_member_struct_stat_st_rdev=no | |
5535 | fi | |
5536 | ||
5537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5538 | fi | |
5539 | ||
5540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5541 | fi | |
b145d876 ZK |
5542 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5543 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5544 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5545 | ||
5546 | cat >>confdefs.h <<_ACEOF | |
5547 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5548 | _ACEOF | |
5549 | ||
5550 | ||
5551 | fi | |
8ce0cbda | 5552 | |
b145d876 ZK |
5553 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
5554 | $as_echo_n "checking for off_t... " >&6; } | |
ad6254c5 | 5555 | if test "${ac_cv_type_off_t+set}" = set; then |
b145d876 | 5556 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5557 | else |
b145d876 ZK |
5558 | ac_cv_type_off_t=no |
5559 | cat >conftest.$ac_ext <<_ACEOF | |
fddafd51 ZK |
5560 | /* confdefs.h. */ |
5561 | _ACEOF | |
5562 | cat confdefs.h >>conftest.$ac_ext | |
5563 | cat >>conftest.$ac_ext <<_ACEOF | |
5564 | /* end confdefs.h. */ | |
5565 | $ac_includes_default | |
5566 | int | |
5567 | main () | |
5568 | { | |
b145d876 ZK |
5569 | if (sizeof (off_t)) |
5570 | return 0; | |
5571 | ; | |
5556819a | 5572 | return 0; |
b145d876 ZK |
5573 | } |
5574 | _ACEOF | |
5575 | rm -f conftest.$ac_objext | |
5576 | if { (ac_try="$ac_compile" | |
5577 | case "(($ac_try" in | |
5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5579 | *) ac_try_echo=$ac_try;; | |
5580 | esac | |
5581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5582 | $as_echo "$ac_try_echo") >&5 | |
5583 | (eval "$ac_compile") 2>conftest.er1 | |
5584 | ac_status=$? | |
5585 | grep -v '^ *+' conftest.er1 >conftest.err | |
5586 | rm -f conftest.er1 | |
5587 | cat conftest.err >&5 | |
5588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5589 | (exit $ac_status); } && { | |
5590 | test -z "$ac_c_werror_flag" || | |
5591 | test ! -s conftest.err | |
5592 | } && test -s conftest.$ac_objext; then | |
5593 | cat >conftest.$ac_ext <<_ACEOF | |
5594 | /* confdefs.h. */ | |
5595 | _ACEOF | |
5596 | cat confdefs.h >>conftest.$ac_ext | |
5597 | cat >>conftest.$ac_ext <<_ACEOF | |
5598 | /* end confdefs.h. */ | |
5599 | $ac_includes_default | |
5600 | int | |
5601 | main () | |
5602 | { | |
5603 | if (sizeof ((off_t))) | |
5604 | return 0; | |
ad6254c5 AK |
5605 | ; |
5606 | return 0; | |
5607 | } | |
5608 | _ACEOF | |
5609 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5610 | if { (ac_try="$ac_compile" |
5611 | case "(($ac_try" in | |
5612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5613 | *) ac_try_echo=$ac_try;; | |
5614 | esac | |
b145d876 ZK |
5615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5616 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5617 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5618 | ac_status=$? |
8a2fc586 AK |
5619 | grep -v '^ *+' conftest.er1 >conftest.err |
5620 | rm -f conftest.er1 | |
5621 | cat conftest.err >&5 | |
b145d876 | 5622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5623 | (exit $ac_status); } && { |
5624 | test -z "$ac_c_werror_flag" || | |
5625 | test ! -s conftest.err | |
5626 | } && test -s conftest.$ac_objext; then | |
b145d876 | 5627 | : |
ad6254c5 | 5628 | else |
b145d876 | 5629 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5630 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5631 | |
b145d876 | 5632 | ac_cv_type_off_t=yes |
80992638 | 5633 | fi |
7a197a62 AK |
5634 | |
5635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
5636 | else |
5637 | $as_echo "$as_me: failed program was:" >&5 | |
5638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5639 | ||
5640 | ||
ad6254c5 | 5641 | fi |
b145d876 ZK |
5642 | |
5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5644 | fi | |
5645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5646 | $as_echo "$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5647 | if test $ac_cv_type_off_t = yes; then |
5648 | : | |
5649 | else | |
80992638 | 5650 | |
ad6254c5 | 5651 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5652 | #define off_t long int |
ad6254c5 | 5653 | _ACEOF |
199e490e | 5654 | |
b896caa1 AK |
5655 | fi |
5656 | ||
b145d876 ZK |
5657 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
5658 | $as_echo_n "checking for pid_t... " >&6; } | |
ad6254c5 | 5659 | if test "${ac_cv_type_pid_t+set}" = set; then |
b145d876 | 5660 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5661 | else |
b145d876 ZK |
5662 | ac_cv_type_pid_t=no |
5663 | cat >conftest.$ac_ext <<_ACEOF | |
fddafd51 ZK |
5664 | /* confdefs.h. */ |
5665 | _ACEOF | |
5666 | cat confdefs.h >>conftest.$ac_ext | |
5667 | cat >>conftest.$ac_ext <<_ACEOF | |
5668 | /* end confdefs.h. */ | |
5669 | $ac_includes_default | |
5670 | int | |
5671 | main () | |
5672 | { | |
b145d876 ZK |
5673 | if (sizeof (pid_t)) |
5674 | return 0; | |
5675 | ; | |
5556819a | 5676 | return 0; |
b145d876 ZK |
5677 | } |
5678 | _ACEOF | |
5679 | rm -f conftest.$ac_objext | |
5680 | if { (ac_try="$ac_compile" | |
5681 | case "(($ac_try" in | |
5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5683 | *) ac_try_echo=$ac_try;; | |
5684 | esac | |
5685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5686 | $as_echo "$ac_try_echo") >&5 | |
5687 | (eval "$ac_compile") 2>conftest.er1 | |
5688 | ac_status=$? | |
5689 | grep -v '^ *+' conftest.er1 >conftest.err | |
5690 | rm -f conftest.er1 | |
5691 | cat conftest.err >&5 | |
5692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5693 | (exit $ac_status); } && { | |
5694 | test -z "$ac_c_werror_flag" || | |
5695 | test ! -s conftest.err | |
5696 | } && test -s conftest.$ac_objext; then | |
5697 | cat >conftest.$ac_ext <<_ACEOF | |
5698 | /* confdefs.h. */ | |
5699 | _ACEOF | |
5700 | cat confdefs.h >>conftest.$ac_ext | |
5701 | cat >>conftest.$ac_ext <<_ACEOF | |
5702 | /* end confdefs.h. */ | |
5703 | $ac_includes_default | |
5704 | int | |
5705 | main () | |
5706 | { | |
5707 | if (sizeof ((pid_t))) | |
5708 | return 0; | |
ad6254c5 AK |
5709 | ; |
5710 | return 0; | |
5711 | } | |
5712 | _ACEOF | |
5713 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5714 | if { (ac_try="$ac_compile" |
5715 | case "(($ac_try" in | |
5716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5717 | *) ac_try_echo=$ac_try;; | |
5718 | esac | |
b145d876 ZK |
5719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5720 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5721 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5722 | ac_status=$? |
8a2fc586 AK |
5723 | grep -v '^ *+' conftest.er1 >conftest.err |
5724 | rm -f conftest.er1 | |
5725 | cat conftest.err >&5 | |
b145d876 | 5726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5727 | (exit $ac_status); } && { |
5728 | test -z "$ac_c_werror_flag" || | |
5729 | test ! -s conftest.err | |
5730 | } && test -s conftest.$ac_objext; then | |
b145d876 | 5731 | : |
ad6254c5 | 5732 | else |
b145d876 | 5733 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5734 | sed 's/^/| /' conftest.$ac_ext >&5 |
5735 | ||
b145d876 | 5736 | ac_cv_type_pid_t=yes |
ad6254c5 | 5737 | fi |
7a197a62 AK |
5738 | |
5739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
5740 | else |
5741 | $as_echo "$as_me: failed program was:" >&5 | |
5742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5743 | ||
5744 | ||
80992638 | 5745 | fi |
b145d876 ZK |
5746 | |
5747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5748 | fi | |
5749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
5750 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5751 | if test $ac_cv_type_pid_t = yes; then |
5752 | : | |
5753 | else | |
80992638 | 5754 | |
ad6254c5 AK |
5755 | cat >>confdefs.h <<_ACEOF |
5756 | #define pid_t int | |
5757 | _ACEOF | |
2dc95e1c | 5758 | |
2dc95e1c AK |
5759 | fi |
5760 | ||
b145d876 ZK |
5761 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5762 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
d0191583 | 5763 | if test "${ac_cv_type_signal+set}" = set; then |
b145d876 | 5764 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5765 | else |
5766 | cat >conftest.$ac_ext <<_ACEOF | |
5767 | /* confdefs.h. */ | |
5768 | _ACEOF | |
5769 | cat confdefs.h >>conftest.$ac_ext | |
5770 | cat >>conftest.$ac_ext <<_ACEOF | |
5771 | /* end confdefs.h. */ | |
5772 | #include <sys/types.h> | |
5773 | #include <signal.h> | |
5774 | ||
5775 | int | |
5776 | main () | |
5777 | { | |
5778 | return *(signal (0, 0)) (0) == 1; | |
5779 | ; | |
5780 | return 0; | |
5781 | } | |
5782 | _ACEOF | |
5783 | rm -f conftest.$ac_objext | |
5784 | if { (ac_try="$ac_compile" | |
5785 | case "(($ac_try" in | |
5786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5787 | *) ac_try_echo=$ac_try;; | |
5788 | esac | |
b145d876 ZK |
5789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5790 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5791 | (eval "$ac_compile") 2>conftest.er1 |
5792 | ac_status=$? | |
5793 | grep -v '^ *+' conftest.er1 >conftest.err | |
5794 | rm -f conftest.er1 | |
5795 | cat conftest.err >&5 | |
b145d876 | 5796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5797 | (exit $ac_status); } && { |
5798 | test -z "$ac_c_werror_flag" || | |
5799 | test ! -s conftest.err | |
5800 | } && test -s conftest.$ac_objext; then | |
5801 | ac_cv_type_signal=int | |
5802 | else | |
b145d876 | 5803 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5804 | sed 's/^/| /' conftest.$ac_ext >&5 |
5805 | ||
5806 | ac_cv_type_signal=void | |
5807 | fi | |
5808 | ||
5809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5810 | fi | |
b145d876 ZK |
5811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5812 | $as_echo "$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5813 | |
5814 | cat >>confdefs.h <<_ACEOF | |
5815 | #define RETSIGTYPE $ac_cv_type_signal | |
5816 | _ACEOF | |
5817 | ||
5818 | ||
b145d876 ZK |
5819 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5820 | $as_echo_n "checking for size_t... " >&6; } | |
ad6254c5 | 5821 | if test "${ac_cv_type_size_t+set}" = set; then |
b145d876 | 5822 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 5823 | else |
b145d876 ZK |
5824 | ac_cv_type_size_t=no |
5825 | cat >conftest.$ac_ext <<_ACEOF | |
fddafd51 ZK |
5826 | /* confdefs.h. */ |
5827 | _ACEOF | |
5828 | cat confdefs.h >>conftest.$ac_ext | |
5829 | cat >>conftest.$ac_ext <<_ACEOF | |
5830 | /* end confdefs.h. */ | |
5831 | $ac_includes_default | |
5832 | int | |
5833 | main () | |
5834 | { | |
b145d876 ZK |
5835 | if (sizeof (size_t)) |
5836 | return 0; | |
5837 | ; | |
5556819a | 5838 | return 0; |
b145d876 ZK |
5839 | } |
5840 | _ACEOF | |
5841 | rm -f conftest.$ac_objext | |
5842 | if { (ac_try="$ac_compile" | |
5843 | case "(($ac_try" in | |
5844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5845 | *) ac_try_echo=$ac_try;; | |
5846 | esac | |
5847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5848 | $as_echo "$ac_try_echo") >&5 | |
5849 | (eval "$ac_compile") 2>conftest.er1 | |
5850 | ac_status=$? | |
5851 | grep -v '^ *+' conftest.er1 >conftest.err | |
5852 | rm -f conftest.er1 | |
5853 | cat conftest.err >&5 | |
5854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5855 | (exit $ac_status); } && { | |
5856 | test -z "$ac_c_werror_flag" || | |
5857 | test ! -s conftest.err | |
5858 | } && test -s conftest.$ac_objext; then | |
5859 | cat >conftest.$ac_ext <<_ACEOF | |
5860 | /* confdefs.h. */ | |
5861 | _ACEOF | |
5862 | cat confdefs.h >>conftest.$ac_ext | |
5863 | cat >>conftest.$ac_ext <<_ACEOF | |
5864 | /* end confdefs.h. */ | |
5865 | $ac_includes_default | |
5866 | int | |
5867 | main () | |
5868 | { | |
5869 | if (sizeof ((size_t))) | |
5870 | return 0; | |
ad6254c5 AK |
5871 | ; |
5872 | return 0; | |
5873 | } | |
5874 | _ACEOF | |
5875 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5876 | if { (ac_try="$ac_compile" |
5877 | case "(($ac_try" in | |
5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5879 | *) ac_try_echo=$ac_try;; | |
5880 | esac | |
b145d876 ZK |
5881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5882 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5883 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5884 | ac_status=$? |
8a2fc586 AK |
5885 | grep -v '^ *+' conftest.er1 >conftest.err |
5886 | rm -f conftest.er1 | |
5887 | cat conftest.err >&5 | |
b145d876 | 5888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5889 | (exit $ac_status); } && { |
5890 | test -z "$ac_c_werror_flag" || | |
5891 | test ! -s conftest.err | |
5892 | } && test -s conftest.$ac_objext; then | |
b145d876 | 5893 | : |
ad6254c5 | 5894 | else |
b145d876 | 5895 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
5897 | ||
b145d876 | 5898 | ac_cv_type_size_t=yes |
80992638 | 5899 | fi |
7a197a62 AK |
5900 | |
5901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
5902 | else |
5903 | $as_echo "$as_me: failed program was:" >&5 | |
5904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5905 | ||
5906 | ||
ad6254c5 | 5907 | fi |
b145d876 ZK |
5908 | |
5909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5910 | fi | |
5911 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5912 | $as_echo "$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5913 | if test $ac_cv_type_size_t = yes; then |
5914 | : | |
5915 | else | |
80992638 | 5916 | |
ad6254c5 | 5917 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5918 | #define size_t unsigned int |
ad6254c5 | 5919 | _ACEOF |
8106cdd5 | 5920 | |
8106cdd5 AK |
5921 | fi |
5922 | ||
b145d876 ZK |
5923 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
5924 | $as_echo_n "checking for mode_t... " >&6; } | |
ad6254c5 | 5925 | if test "${ac_cv_type_mode_t+set}" = set; then |
b145d876 | 5926 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5927 | else |
b145d876 ZK |
5928 | ac_cv_type_mode_t=no |
5929 | cat >conftest.$ac_ext <<_ACEOF | |
fddafd51 ZK |
5930 | /* confdefs.h. */ |
5931 | _ACEOF | |
5932 | cat confdefs.h >>conftest.$ac_ext | |
5933 | cat >>conftest.$ac_ext <<_ACEOF | |
5934 | /* end confdefs.h. */ | |
5935 | $ac_includes_default | |
5936 | int | |
5937 | main () | |
5938 | { | |
b145d876 ZK |
5939 | if (sizeof (mode_t)) |
5940 | return 0; | |
5941 | ; | |
5556819a | 5942 | return 0; |
b145d876 ZK |
5943 | } |
5944 | _ACEOF | |
5945 | rm -f conftest.$ac_objext | |
5946 | if { (ac_try="$ac_compile" | |
5947 | case "(($ac_try" in | |
5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5949 | *) ac_try_echo=$ac_try;; | |
5950 | esac | |
5951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5952 | $as_echo "$ac_try_echo") >&5 | |
5953 | (eval "$ac_compile") 2>conftest.er1 | |
5954 | ac_status=$? | |
5955 | grep -v '^ *+' conftest.er1 >conftest.err | |
5956 | rm -f conftest.er1 | |
5957 | cat conftest.err >&5 | |
5958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 | (exit $ac_status); } && { | |
5960 | test -z "$ac_c_werror_flag" || | |
5961 | test ! -s conftest.err | |
5962 | } && test -s conftest.$ac_objext; then | |
5963 | cat >conftest.$ac_ext <<_ACEOF | |
5964 | /* confdefs.h. */ | |
5965 | _ACEOF | |
5966 | cat confdefs.h >>conftest.$ac_ext | |
5967 | cat >>conftest.$ac_ext <<_ACEOF | |
5968 | /* end confdefs.h. */ | |
5969 | $ac_includes_default | |
5970 | int | |
5971 | main () | |
5972 | { | |
5973 | if (sizeof ((mode_t))) | |
5974 | return 0; | |
ad6254c5 AK |
5975 | ; |
5976 | return 0; | |
5977 | } | |
5978 | _ACEOF | |
5979 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5980 | if { (ac_try="$ac_compile" |
5981 | case "(($ac_try" in | |
5982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5983 | *) ac_try_echo=$ac_try;; | |
5984 | esac | |
b145d876 ZK |
5985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5987 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5988 | ac_status=$? |
8a2fc586 AK |
5989 | grep -v '^ *+' conftest.er1 >conftest.err |
5990 | rm -f conftest.er1 | |
5991 | cat conftest.err >&5 | |
b145d876 | 5992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5993 | (exit $ac_status); } && { |
5994 | test -z "$ac_c_werror_flag" || | |
5995 | test ! -s conftest.err | |
5996 | } && test -s conftest.$ac_objext; then | |
b145d876 | 5997 | : |
fddafd51 | 5998 | else |
b145d876 | 5999 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6000 | sed 's/^/| /' conftest.$ac_ext >&5 |
6001 | ||
b145d876 ZK |
6002 | ac_cv_type_mode_t=yes |
6003 | fi | |
6004 | ||
6005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6006 | else | |
6007 | $as_echo "$as_me: failed program was:" >&5 | |
6008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6009 | ||
6010 | ||
80992638 | 6011 | fi |
7a197a62 AK |
6012 | |
6013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6014 | fi |
b145d876 ZK |
6015 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6016 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
6017 | if test $ac_cv_type_mode_t = yes; then |
6018 | : | |
6019 | else | |
80992638 | 6020 | |
ad6254c5 AK |
6021 | cat >>confdefs.h <<_ACEOF |
6022 | #define mode_t int | |
6023 | _ACEOF | |
6024 | ||
6025 | fi | |
6026 | ||
b145d876 ZK |
6027 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6028 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6029 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
b145d876 | 6030 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6031 | else |
6032 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6033 | /* confdefs.h. */ |
6034 | _ACEOF | |
6035 | cat confdefs.h >>conftest.$ac_ext | |
6036 | cat >>conftest.$ac_ext <<_ACEOF | |
6037 | /* end confdefs.h. */ | |
6038 | $ac_includes_default | |
6039 | int | |
6040 | main () | |
6041 | { | |
6042 | static struct stat ac_aggr; | |
6043 | if (ac_aggr.st_rdev) | |
6044 | return 0; | |
6045 | ; | |
6046 | return 0; | |
6047 | } | |
6048 | _ACEOF | |
6049 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6050 | if { (ac_try="$ac_compile" |
6051 | case "(($ac_try" in | |
6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6053 | *) ac_try_echo=$ac_try;; | |
6054 | esac | |
b145d876 ZK |
6055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6056 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6057 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6058 | ac_status=$? |
8a2fc586 AK |
6059 | grep -v '^ *+' conftest.er1 >conftest.err |
6060 | rm -f conftest.er1 | |
6061 | cat conftest.err >&5 | |
b145d876 | 6062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6063 | (exit $ac_status); } && { |
6064 | test -z "$ac_c_werror_flag" || | |
6065 | test ! -s conftest.err | |
6066 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6067 | ac_cv_member_struct_stat_st_rdev=yes |
6068 | else | |
b145d876 | 6069 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
6071 | ||
7a197a62 | 6072 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6073 | /* confdefs.h. */ |
6074 | _ACEOF | |
6075 | cat confdefs.h >>conftest.$ac_ext | |
6076 | cat >>conftest.$ac_ext <<_ACEOF | |
6077 | /* end confdefs.h. */ | |
6078 | $ac_includes_default | |
6079 | int | |
6080 | main () | |
6081 | { | |
6082 | static struct stat ac_aggr; | |
6083 | if (sizeof ac_aggr.st_rdev) | |
6084 | return 0; | |
6085 | ; | |
6086 | return 0; | |
6087 | } | |
6088 | _ACEOF | |
6089 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6090 | if { (ac_try="$ac_compile" |
6091 | case "(($ac_try" in | |
6092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6093 | *) ac_try_echo=$ac_try;; | |
6094 | esac | |
b145d876 ZK |
6095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6096 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6097 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6098 | ac_status=$? |
8a2fc586 AK |
6099 | grep -v '^ *+' conftest.er1 >conftest.err |
6100 | rm -f conftest.er1 | |
6101 | cat conftest.err >&5 | |
b145d876 | 6102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6103 | (exit $ac_status); } && { |
6104 | test -z "$ac_c_werror_flag" || | |
6105 | test ! -s conftest.err | |
6106 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6107 | ac_cv_member_struct_stat_st_rdev=yes |
6108 | else | |
b145d876 | 6109 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6110 | sed 's/^/| /' conftest.$ac_ext >&5 |
6111 | ||
7a197a62 | 6112 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6113 | fi |
7a197a62 AK |
6114 | |
6115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6116 | fi |
7a197a62 AK |
6117 | |
6118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6119 | fi |
b145d876 ZK |
6120 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6121 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
6122 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
6123 | ||
6124 | cat >>confdefs.h <<_ACEOF | |
6125 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6126 | _ACEOF | |
6127 | ||
6128 | ||
ad6254c5 AK |
6129 | fi |
6130 | ||
b145d876 ZK |
6131 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6132 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6133 | if test "${ac_cv_struct_tm+set}" = set; then |
b145d876 | 6134 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6135 | else |
6136 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6137 | /* confdefs.h. */ |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
6142 | #include <sys/types.h> | |
6143 | #include <time.h> | |
6144 | ||
6145 | int | |
6146 | main () | |
6147 | { | |
25fbec5b AK |
6148 | struct tm tm; |
6149 | int *p = &tm.tm_sec; | |
b145d876 | 6150 | return !p; |
ad6254c5 AK |
6151 | ; |
6152 | return 0; | |
6153 | } | |
6154 | _ACEOF | |
6155 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6156 | if { (ac_try="$ac_compile" |
6157 | case "(($ac_try" in | |
6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6159 | *) ac_try_echo=$ac_try;; | |
6160 | esac | |
b145d876 ZK |
6161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6162 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6163 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6164 | ac_status=$? |
8a2fc586 AK |
6165 | grep -v '^ *+' conftest.er1 >conftest.err |
6166 | rm -f conftest.er1 | |
6167 | cat conftest.err >&5 | |
b145d876 | 6168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6169 | (exit $ac_status); } && { |
6170 | test -z "$ac_c_werror_flag" || | |
6171 | test ! -s conftest.err | |
6172 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6173 | ac_cv_struct_tm=time.h |
6174 | else | |
b145d876 | 6175 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6176 | sed 's/^/| /' conftest.$ac_ext >&5 |
6177 | ||
7a197a62 | 6178 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6179 | fi |
7a197a62 AK |
6180 | |
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6182 | fi |
b145d876 ZK |
6183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6184 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6185 | if test $ac_cv_struct_tm = sys/time.h; then |
6186 | ||
6187 | cat >>confdefs.h <<\_ACEOF | |
6188 | #define TM_IN_SYS_TIME 1 | |
6189 | _ACEOF | |
6190 | ||
6191 | fi | |
809fae91 | 6192 | |
795ca3e5 | 6193 | |
80992638 | 6194 | ################################################################################ |
ad6254c5 AK |
6195 | |
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | ||
6201 | ||
6202 | ||
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
d0191583 JM |
6209 | |
6210 | ||
6211 | ||
6212 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6213 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6214 | uname | |
ad6254c5 | 6215 | do |
b145d876 ZK |
6216 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6217 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6218 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6219 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 6220 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6221 | else |
ad6254c5 | 6222 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6223 | /* confdefs.h. */ |
6224 | _ACEOF | |
6225 | cat confdefs.h >>conftest.$ac_ext | |
6226 | cat >>conftest.$ac_ext <<_ACEOF | |
6227 | /* end confdefs.h. */ | |
8a2fc586 AK |
6228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6230 | #define $ac_func innocuous_$ac_func | |
6231 | ||
ad6254c5 AK |
6232 | /* System header to define __stub macros and hopefully few prototypes, |
6233 | which can conflict with char $ac_func (); below. | |
6234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6235 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6236 | |
ad6254c5 AK |
6237 | #ifdef __STDC__ |
6238 | # include <limits.h> | |
6239 | #else | |
6240 | # include <assert.h> | |
6241 | #endif | |
8a2fc586 AK |
6242 | |
6243 | #undef $ac_func | |
6244 | ||
7a197a62 AK |
6245 | /* Override any GCC internal prototype to avoid an error. |
6246 | Use char because int might match the return type of a GCC | |
6247 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6248 | #ifdef __cplusplus |
6249 | extern "C" | |
ad6254c5 | 6250 | #endif |
ad6254c5 AK |
6251 | char $ac_func (); |
6252 | /* The GNU C library defines this for functions which it implements | |
6253 | to always fail with ENOSYS. Some functions are actually named | |
6254 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6255 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6256 | choke me |
ad6254c5 AK |
6257 | #endif |
6258 | ||
6259 | int | |
6260 | main () | |
6261 | { | |
7a197a62 | 6262 | return $ac_func (); |
ad6254c5 AK |
6263 | ; |
6264 | return 0; | |
6265 | } | |
6266 | _ACEOF | |
6267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6268 | if { (ac_try="$ac_link" |
6269 | case "(($ac_try" in | |
6270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6271 | *) ac_try_echo=$ac_try;; | |
6272 | esac | |
b145d876 ZK |
6273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6274 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6275 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6276 | ac_status=$? |
8a2fc586 AK |
6277 | grep -v '^ *+' conftest.er1 >conftest.err |
6278 | rm -f conftest.er1 | |
6279 | cat conftest.err >&5 | |
b145d876 | 6280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6281 | (exit $ac_status); } && { |
6282 | test -z "$ac_c_werror_flag" || | |
6283 | test ! -s conftest.err | |
b145d876 ZK |
6284 | } && test -s conftest$ac_exeext && { |
6285 | test "$cross_compiling" = yes || | |
6286 | $as_test_x conftest$ac_exeext | |
6287 | }; then | |
fc54be10 AK |
6288 | eval "$as_ac_var=yes" |
6289 | else | |
b145d876 | 6290 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6291 | sed 's/^/| /' conftest.$ac_ext >&5 |
6292 | ||
6293 | eval "$as_ac_var=no" | |
6294 | fi | |
6295 | ||
b145d876 | 6296 | rm -rf conftest.dSYM |
25fbec5b | 6297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6298 | conftest$ac_exeext conftest.$ac_ext |
6299 | fi | |
b145d876 ZK |
6300 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6301 | $as_echo "$as_val"'` | |
6302 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6303 | $as_echo "$ac_res" >&6; } | |
6304 | if test `eval 'as_val=${'$as_ac_var'} | |
6305 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 6306 | cat >>confdefs.h <<_ACEOF |
b145d876 | 6307 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6308 | _ACEOF |
6309 | ||
6310 | else | |
b145d876 ZK |
6311 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6312 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6313 | { (exit 1); exit 1; }; } |
6314 | fi | |
6315 | done | |
795ca3e5 | 6316 | |
ad6254c5 AK |
6317 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6318 | # for constant arguments. Useless! | |
b145d876 ZK |
6319 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6320 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6321 | if test "${ac_cv_working_alloca_h+set}" = set; then |
b145d876 | 6322 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6323 | else |
6324 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6325 | /* confdefs.h. */ |
6326 | _ACEOF | |
6327 | cat confdefs.h >>conftest.$ac_ext | |
6328 | cat >>conftest.$ac_ext <<_ACEOF | |
6329 | /* end confdefs.h. */ | |
6330 | #include <alloca.h> | |
6331 | int | |
6332 | main () | |
6333 | { | |
6334 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6335 | if (p) return 0; |
ad6254c5 AK |
6336 | ; |
6337 | return 0; | |
6338 | } | |
6339 | _ACEOF | |
6340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6341 | if { (ac_try="$ac_link" |
6342 | case "(($ac_try" in | |
6343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6344 | *) ac_try_echo=$ac_try;; | |
6345 | esac | |
b145d876 ZK |
6346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6347 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6348 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6349 | ac_status=$? |
8a2fc586 AK |
6350 | grep -v '^ *+' conftest.er1 >conftest.err |
6351 | rm -f conftest.er1 | |
6352 | cat conftest.err >&5 | |
b145d876 | 6353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6354 | (exit $ac_status); } && { |
6355 | test -z "$ac_c_werror_flag" || | |
6356 | test ! -s conftest.err | |
b145d876 ZK |
6357 | } && test -s conftest$ac_exeext && { |
6358 | test "$cross_compiling" = yes || | |
6359 | $as_test_x conftest$ac_exeext | |
6360 | }; then | |
ad6254c5 AK |
6361 | ac_cv_working_alloca_h=yes |
6362 | else | |
b145d876 | 6363 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6364 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6365 | |
7a197a62 | 6366 | ac_cv_working_alloca_h=no |
ad6254c5 | 6367 | fi |
7a197a62 | 6368 | |
b145d876 | 6369 | rm -rf conftest.dSYM |
25fbec5b | 6370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6371 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6372 | fi |
b145d876 ZK |
6373 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6374 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6375 | if test $ac_cv_working_alloca_h = yes; then |
6376 | ||
6377 | cat >>confdefs.h <<\_ACEOF | |
6378 | #define HAVE_ALLOCA_H 1 | |
6379 | _ACEOF | |
6380 | ||
6381 | fi | |
6382 | ||
b145d876 ZK |
6383 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6384 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6385 | if test "${ac_cv_func_alloca_works+set}" = set; then |
b145d876 | 6386 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6387 | else |
6388 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6389 | /* confdefs.h. */ |
6390 | _ACEOF | |
6391 | cat confdefs.h >>conftest.$ac_ext | |
6392 | cat >>conftest.$ac_ext <<_ACEOF | |
6393 | /* end confdefs.h. */ | |
6394 | #ifdef __GNUC__ | |
6395 | # define alloca __builtin_alloca | |
6396 | #else | |
6397 | # ifdef _MSC_VER | |
6398 | # include <malloc.h> | |
6399 | # define alloca _alloca | |
6400 | # else | |
25fbec5b | 6401 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6402 | # include <alloca.h> |
6403 | # else | |
6404 | # ifdef _AIX | |
6405 | #pragma alloca | |
6406 | # else | |
6407 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6408 | char *alloca (); | |
6409 | # endif | |
6410 | # endif | |
6411 | # endif | |
6412 | # endif | |
6413 | #endif | |
6414 | ||
6415 | int | |
6416 | main () | |
6417 | { | |
6418 | char *p = (char *) alloca (1); | |
7a197a62 | 6419 | if (p) return 0; |
ad6254c5 AK |
6420 | ; |
6421 | return 0; | |
6422 | } | |
6423 | _ACEOF | |
6424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6425 | if { (ac_try="$ac_link" |
6426 | case "(($ac_try" in | |
6427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6428 | *) ac_try_echo=$ac_try;; | |
6429 | esac | |
b145d876 ZK |
6430 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6431 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6432 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6433 | ac_status=$? |
8a2fc586 AK |
6434 | grep -v '^ *+' conftest.er1 >conftest.err |
6435 | rm -f conftest.er1 | |
6436 | cat conftest.err >&5 | |
b145d876 | 6437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6438 | (exit $ac_status); } && { |
6439 | test -z "$ac_c_werror_flag" || | |
6440 | test ! -s conftest.err | |
b145d876 ZK |
6441 | } && test -s conftest$ac_exeext && { |
6442 | test "$cross_compiling" = yes || | |
6443 | $as_test_x conftest$ac_exeext | |
6444 | }; then | |
ad6254c5 AK |
6445 | ac_cv_func_alloca_works=yes |
6446 | else | |
b145d876 | 6447 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6448 | sed 's/^/| /' conftest.$ac_ext >&5 |
6449 | ||
7a197a62 | 6450 | ac_cv_func_alloca_works=no |
ad6254c5 | 6451 | fi |
7a197a62 | 6452 | |
b145d876 | 6453 | rm -rf conftest.dSYM |
25fbec5b | 6454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6455 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6456 | fi |
b145d876 ZK |
6457 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6458 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6459 | |
6460 | if test $ac_cv_func_alloca_works = yes; then | |
6461 | ||
6462 | cat >>confdefs.h <<\_ACEOF | |
6463 | #define HAVE_ALLOCA 1 | |
6464 | _ACEOF | |
6465 | ||
6466 | else | |
6467 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6468 | # that cause trouble. Some versions do not even contain alloca or | |
6469 | # contain a buggy version. If you still want to use their alloca, | |
6470 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6471 | ||
7a197a62 | 6472 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6473 | |
6474 | cat >>confdefs.h <<\_ACEOF | |
6475 | #define C_ALLOCA 1 | |
6476 | _ACEOF | |
6477 | ||
6478 | ||
b145d876 ZK |
6479 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6480 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6481 | if test "${ac_cv_os_cray+set}" = set; then |
b145d876 | 6482 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6483 | else |
6484 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6485 | /* confdefs.h. */ |
6486 | _ACEOF | |
6487 | cat confdefs.h >>conftest.$ac_ext | |
6488 | cat >>conftest.$ac_ext <<_ACEOF | |
6489 | /* end confdefs.h. */ | |
7a197a62 | 6490 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6491 | webecray |
6492 | #else | |
6493 | wenotbecray | |
6494 | #endif | |
6495 | ||
6496 | _ACEOF | |
795ca3e5 | 6497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6498 | $EGREP "webecray" >/dev/null 2>&1; then |
6499 | ac_cv_os_cray=yes | |
6500 | else | |
6501 | ac_cv_os_cray=no | |
795ca3e5 AK |
6502 | fi |
6503 | rm -f conftest* | |
6504 | ||
795ca3e5 | 6505 | fi |
b145d876 ZK |
6506 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6507 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6508 | if test $ac_cv_os_cray = yes; then |
6509 | for ac_func in _getb67 GETB67 getb67; do | |
b145d876 ZK |
6510 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6511 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6512 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6513 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 6514 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6515 | else |
6516 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6517 | /* confdefs.h. */ |
6518 | _ACEOF | |
6519 | cat confdefs.h >>conftest.$ac_ext | |
6520 | cat >>conftest.$ac_ext <<_ACEOF | |
6521 | /* end confdefs.h. */ | |
8a2fc586 AK |
6522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6524 | #define $ac_func innocuous_$ac_func | |
6525 | ||
ad6254c5 AK |
6526 | /* System header to define __stub macros and hopefully few prototypes, |
6527 | which can conflict with char $ac_func (); below. | |
6528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6529 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6530 | |
ad6254c5 AK |
6531 | #ifdef __STDC__ |
6532 | # include <limits.h> | |
6533 | #else | |
6534 | # include <assert.h> | |
6535 | #endif | |
8a2fc586 AK |
6536 | |
6537 | #undef $ac_func | |
6538 | ||
7a197a62 AK |
6539 | /* Override any GCC internal prototype to avoid an error. |
6540 | Use char because int might match the return type of a GCC | |
6541 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6542 | #ifdef __cplusplus |
6543 | extern "C" | |
ad6254c5 | 6544 | #endif |
ad6254c5 AK |
6545 | char $ac_func (); |
6546 | /* The GNU C library defines this for functions which it implements | |
6547 | to always fail with ENOSYS. Some functions are actually named | |
6548 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6549 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6550 | choke me |
ad6254c5 AK |
6551 | #endif |
6552 | ||
6553 | int | |
6554 | main () | |
6555 | { | |
7a197a62 | 6556 | return $ac_func (); |
ad6254c5 AK |
6557 | ; |
6558 | return 0; | |
6559 | } | |
6560 | _ACEOF | |
6561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6562 | if { (ac_try="$ac_link" |
6563 | case "(($ac_try" in | |
6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6565 | *) ac_try_echo=$ac_try;; | |
6566 | esac | |
b145d876 ZK |
6567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6568 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6569 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6570 | ac_status=$? |
8a2fc586 AK |
6571 | grep -v '^ *+' conftest.er1 >conftest.err |
6572 | rm -f conftest.er1 | |
6573 | cat conftest.err >&5 | |
b145d876 | 6574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6575 | (exit $ac_status); } && { |
6576 | test -z "$ac_c_werror_flag" || | |
6577 | test ! -s conftest.err | |
b145d876 ZK |
6578 | } && test -s conftest$ac_exeext && { |
6579 | test "$cross_compiling" = yes || | |
6580 | $as_test_x conftest$ac_exeext | |
6581 | }; then | |
ad6254c5 AK |
6582 | eval "$as_ac_var=yes" |
6583 | else | |
b145d876 | 6584 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6585 | sed 's/^/| /' conftest.$ac_ext >&5 |
6586 | ||
7a197a62 | 6587 | eval "$as_ac_var=no" |
ad6254c5 | 6588 | fi |
7a197a62 | 6589 | |
b145d876 | 6590 | rm -rf conftest.dSYM |
25fbec5b | 6591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6592 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6593 | fi |
b145d876 ZK |
6594 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6595 | $as_echo "$as_val"'` | |
6596 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6597 | $as_echo "$ac_res" >&6; } | |
6598 | if test `eval 'as_val=${'$as_ac_var'} | |
6599 | $as_echo "$as_val"'` = yes; then | |
80992638 | 6600 | |
ad6254c5 AK |
6601 | cat >>confdefs.h <<_ACEOF |
6602 | #define CRAY_STACKSEG_END $ac_func | |
6603 | _ACEOF | |
6604 | ||
6605 | break | |
6606 | fi | |
6607 | ||
6608 | done | |
6609 | fi | |
6610 | ||
b145d876 ZK |
6611 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6612 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6613 | if test "${ac_cv_c_stack_direction+set}" = set; then |
b145d876 | 6614 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6615 | else |
6616 | if test "$cross_compiling" = yes; then | |
6617 | ac_cv_c_stack_direction=0 | |
6618 | else | |
6619 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6620 | /* confdefs.h. */ |
6621 | _ACEOF | |
6622 | cat confdefs.h >>conftest.$ac_ext | |
6623 | cat >>conftest.$ac_ext <<_ACEOF | |
6624 | /* end confdefs.h. */ | |
7a197a62 | 6625 | $ac_includes_default |
ad6254c5 AK |
6626 | int |
6627 | find_stack_direction () | |
6628 | { | |
6629 | static char *addr = 0; | |
6630 | auto char dummy; | |
6631 | if (addr == 0) | |
6632 | { | |
6633 | addr = &dummy; | |
6634 | return find_stack_direction (); | |
6635 | } | |
6636 | else | |
6637 | return (&dummy > addr) ? 1 : -1; | |
6638 | } | |
6639 | ||
6640 | int | |
6641 | main () | |
6642 | { | |
7a197a62 | 6643 | return find_stack_direction () < 0; |
ad6254c5 AK |
6644 | } |
6645 | _ACEOF | |
6646 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6647 | if { (ac_try="$ac_link" |
6648 | case "(($ac_try" in | |
6649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6650 | *) ac_try_echo=$ac_try;; | |
6651 | esac | |
b145d876 ZK |
6652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6653 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6654 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6655 | ac_status=$? |
b145d876 | 6656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6658 | { (case "(($ac_try" in |
6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6660 | *) ac_try_echo=$ac_try;; | |
6661 | esac | |
b145d876 ZK |
6662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6663 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6664 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6665 | ac_status=$? |
b145d876 | 6666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6667 | (exit $ac_status); }; }; then |
6668 | ac_cv_c_stack_direction=1 | |
6669 | else | |
b145d876 ZK |
6670 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6671 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6672 | sed 's/^/| /' conftest.$ac_ext >&5 |
6673 | ||
6674 | ( exit $ac_status ) | |
6675 | ac_cv_c_stack_direction=-1 | |
6676 | fi | |
b145d876 | 6677 | rm -rf conftest.dSYM |
7a197a62 | 6678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6679 | fi |
7a197a62 AK |
6680 | |
6681 | ||
ad6254c5 | 6682 | fi |
b145d876 ZK |
6683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6684 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6685 | |
6686 | cat >>confdefs.h <<_ACEOF | |
6687 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6688 | _ACEOF | |
6689 | ||
6690 | ||
6691 | fi | |
6692 | ||
b145d876 ZK |
6693 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6694 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6695 | if test "${ac_cv_func_closedir_void+set}" = set; then |
b145d876 | 6696 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6697 | else |
6698 | if test "$cross_compiling" = yes; then | |
6699 | ac_cv_func_closedir_void=yes | |
6700 | else | |
6701 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6702 | /* confdefs.h. */ |
6703 | _ACEOF | |
6704 | cat confdefs.h >>conftest.$ac_ext | |
6705 | cat >>conftest.$ac_ext <<_ACEOF | |
6706 | /* end confdefs.h. */ | |
6707 | $ac_includes_default | |
6708 | #include <$ac_header_dirent> | |
6709 | #ifndef __cplusplus | |
6710 | int closedir (); | |
6711 | #endif | |
6712 | ||
6713 | int | |
6714 | main () | |
6715 | { | |
7a197a62 | 6716 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6717 | ; |
6718 | return 0; | |
6719 | } | |
6720 | _ACEOF | |
6721 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6722 | if { (ac_try="$ac_link" |
6723 | case "(($ac_try" in | |
6724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6725 | *) ac_try_echo=$ac_try;; | |
6726 | esac | |
b145d876 ZK |
6727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6728 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6729 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6730 | ac_status=$? |
b145d876 | 6731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6733 | { (case "(($ac_try" in |
6734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6735 | *) ac_try_echo=$ac_try;; | |
6736 | esac | |
b145d876 ZK |
6737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6738 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6739 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6740 | ac_status=$? |
b145d876 | 6741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6742 | (exit $ac_status); }; }; then |
6743 | ac_cv_func_closedir_void=no | |
6744 | else | |
b145d876 ZK |
6745 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6746 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6747 | sed 's/^/| /' conftest.$ac_ext >&5 |
6748 | ||
6749 | ( exit $ac_status ) | |
6750 | ac_cv_func_closedir_void=yes | |
6751 | fi | |
b145d876 | 6752 | rm -rf conftest.dSYM |
7a197a62 | 6753 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6754 | fi |
7a197a62 AK |
6755 | |
6756 | ||
ad6254c5 | 6757 | fi |
b145d876 ZK |
6758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6759 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6760 | if test $ac_cv_func_closedir_void = yes; then |
6761 | ||
6762 | cat >>confdefs.h <<\_ACEOF | |
6763 | #define CLOSEDIR_VOID 1 | |
6764 | _ACEOF | |
6765 | ||
6766 | fi | |
6767 | ||
6768 | ||
7a197a62 | 6769 | for ac_header in vfork.h |
ad6254c5 | 6770 | do |
b145d876 | 6771 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
6773 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6774 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 6776 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6777 | fi |
b145d876 ZK |
6778 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6779 | $as_echo "$as_val"'` | |
6780 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6781 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6782 | else |
6783 | # Is the header compilable? | |
b145d876 ZK |
6784 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6785 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6786 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6787 | /* confdefs.h. */ |
6788 | _ACEOF | |
6789 | cat confdefs.h >>conftest.$ac_ext | |
6790 | cat >>conftest.$ac_ext <<_ACEOF | |
6791 | /* end confdefs.h. */ | |
6792 | $ac_includes_default | |
6793 | #include <$ac_header> | |
6794 | _ACEOF | |
6795 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6796 | if { (ac_try="$ac_compile" |
6797 | case "(($ac_try" in | |
6798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6799 | *) ac_try_echo=$ac_try;; | |
6800 | esac | |
b145d876 ZK |
6801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6802 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6803 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6804 | ac_status=$? |
8a2fc586 AK |
6805 | grep -v '^ *+' conftest.er1 >conftest.err |
6806 | rm -f conftest.er1 | |
6807 | cat conftest.err >&5 | |
b145d876 | 6808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6809 | (exit $ac_status); } && { |
6810 | test -z "$ac_c_werror_flag" || | |
6811 | test ! -s conftest.err | |
6812 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6813 | ac_header_compiler=yes |
6814 | else | |
b145d876 | 6815 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6816 | sed 's/^/| /' conftest.$ac_ext >&5 |
6817 | ||
7a197a62 | 6818 | ac_header_compiler=no |
ad6254c5 | 6819 | fi |
7a197a62 AK |
6820 | |
6821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
6822 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6823 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6824 | |
6825 | # Is the header present? | |
b145d876 ZK |
6826 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6827 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6828 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6829 | /* confdefs.h. */ |
6830 | _ACEOF | |
6831 | cat confdefs.h >>conftest.$ac_ext | |
6832 | cat >>conftest.$ac_ext <<_ACEOF | |
6833 | /* end confdefs.h. */ | |
6834 | #include <$ac_header> | |
6835 | _ACEOF | |
7a197a62 AK |
6836 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6837 | case "(($ac_try" in | |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
b145d876 ZK |
6841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6844 | ac_status=$? |
6845 | grep -v '^ *+' conftest.er1 >conftest.err | |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
b145d876 | 6848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6849 | (exit $ac_status); } >/dev/null && { |
6850 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6851 | test ! -s conftest.err | |
6852 | }; then | |
ad6254c5 AK |
6853 | ac_header_preproc=yes |
6854 | else | |
b145d876 | 6855 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6856 | sed 's/^/| /' conftest.$ac_ext >&5 |
6857 | ||
6858 | ac_header_preproc=no | |
6859 | fi | |
7a197a62 | 6860 | |
ad6254c5 | 6861 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
6862 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6863 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6864 | |
6865 | # So? What about this header? | |
8a2fc586 AK |
6866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6867 | yes:no: ) | |
b145d876 ZK |
6868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6869 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6871 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6872 | ac_header_preproc=yes |
ad6254c5 | 6873 | ;; |
8a2fc586 | 6874 | no:yes:* ) |
b145d876 ZK |
6875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6876 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6878 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6880 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6882 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6884 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6886 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6887 | |
ad6254c5 AK |
6888 | ;; |
6889 | esac | |
b145d876 ZK |
6890 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6891 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 6893 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6894 | else |
8a2fc586 | 6895 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6896 | fi |
b145d876 ZK |
6897 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6898 | $as_echo "$as_val"'` | |
6899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6900 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 6901 | |
795ca3e5 | 6902 | fi |
b145d876 ZK |
6903 | if test `eval 'as_val=${'$as_ac_Header'} |
6904 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 6905 | cat >>confdefs.h <<_ACEOF |
b145d876 | 6906 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6907 | _ACEOF |
6908 | ||
6909 | fi | |
6910 | ||
6911 | done | |
795ca3e5 | 6912 | |
ad6254c5 AK |
6913 | |
6914 | ||
6915 | for ac_func in fork vfork | |
6916 | do | |
b145d876 ZK |
6917 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6918 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6919 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6920 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 6921 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6922 | else |
ad6254c5 | 6923 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6924 | /* confdefs.h. */ |
6925 | _ACEOF | |
6926 | cat confdefs.h >>conftest.$ac_ext | |
6927 | cat >>conftest.$ac_ext <<_ACEOF | |
6928 | /* end confdefs.h. */ | |
8a2fc586 AK |
6929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6931 | #define $ac_func innocuous_$ac_func | |
6932 | ||
ad6254c5 AK |
6933 | /* System header to define __stub macros and hopefully few prototypes, |
6934 | which can conflict with char $ac_func (); below. | |
6935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6936 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6937 | |
ad6254c5 AK |
6938 | #ifdef __STDC__ |
6939 | # include <limits.h> | |
6940 | #else | |
6941 | # include <assert.h> | |
795ca3e5 | 6942 | #endif |
8a2fc586 AK |
6943 | |
6944 | #undef $ac_func | |
6945 | ||
7a197a62 AK |
6946 | /* Override any GCC internal prototype to avoid an error. |
6947 | Use char because int might match the return type of a GCC | |
6948 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6949 | #ifdef __cplusplus |
ad6254c5 | 6950 | extern "C" |
ad6254c5 | 6951 | #endif |
ad6254c5 AK |
6952 | char $ac_func (); |
6953 | /* The GNU C library defines this for functions which it implements | |
6954 | to always fail with ENOSYS. Some functions are actually named | |
6955 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6956 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6957 | choke me |
795ca3e5 AK |
6958 | #endif |
6959 | ||
ad6254c5 AK |
6960 | int |
6961 | main () | |
6962 | { | |
7a197a62 | 6963 | return $ac_func (); |
ad6254c5 AK |
6964 | ; |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
6968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6969 | if { (ac_try="$ac_link" |
6970 | case "(($ac_try" in | |
6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6972 | *) ac_try_echo=$ac_try;; | |
6973 | esac | |
b145d876 ZK |
6974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6975 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6976 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6977 | ac_status=$? |
8a2fc586 AK |
6978 | grep -v '^ *+' conftest.er1 >conftest.err |
6979 | rm -f conftest.er1 | |
6980 | cat conftest.err >&5 | |
b145d876 | 6981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6982 | (exit $ac_status); } && { |
6983 | test -z "$ac_c_werror_flag" || | |
6984 | test ! -s conftest.err | |
b145d876 ZK |
6985 | } && test -s conftest$ac_exeext && { |
6986 | test "$cross_compiling" = yes || | |
6987 | $as_test_x conftest$ac_exeext | |
6988 | }; then | |
ad6254c5 | 6989 | eval "$as_ac_var=yes" |
795ca3e5 | 6990 | else |
b145d876 | 6991 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
6993 | ||
7a197a62 | 6994 | eval "$as_ac_var=no" |
795ca3e5 | 6995 | fi |
7a197a62 | 6996 | |
b145d876 | 6997 | rm -rf conftest.dSYM |
25fbec5b | 6998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6999 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7000 | fi |
b145d876 ZK |
7001 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7002 | $as_echo "$as_val"'` | |
7003 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7004 | $as_echo "$ac_res" >&6; } | |
7005 | if test `eval 'as_val=${'$as_ac_var'} | |
7006 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 7007 | cat >>confdefs.h <<_ACEOF |
b145d876 | 7008 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7009 | _ACEOF |
7010 | ||
7011 | fi | |
7012 | done | |
7013 | ||
7014 | if test "x$ac_cv_func_fork" = xyes; then | |
b145d876 ZK |
7015 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7016 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7017 | if test "${ac_cv_func_fork_works+set}" = set; then |
b145d876 | 7018 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7019 | else |
7020 | if test "$cross_compiling" = yes; then | |
7021 | ac_cv_func_fork_works=cross | |
7022 | else | |
7023 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7024 | /* confdefs.h. */ |
7025 | _ACEOF | |
7026 | cat confdefs.h >>conftest.$ac_ext | |
7027 | cat >>conftest.$ac_ext <<_ACEOF | |
7028 | /* end confdefs.h. */ | |
7029 | $ac_includes_default | |
7030 | int | |
7031 | main () | |
7032 | { | |
7033 | ||
7034 | /* By Ruediger Kuhlmann. */ | |
7035 | return fork () < 0; | |
7036 | ||
7037 | ; | |
7038 | return 0; | |
7039 | } | |
ad6254c5 AK |
7040 | _ACEOF |
7041 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7042 | if { (ac_try="$ac_link" |
7043 | case "(($ac_try" in | |
7044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7045 | *) ac_try_echo=$ac_try;; | |
7046 | esac | |
b145d876 ZK |
7047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7048 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7049 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7050 | ac_status=$? |
b145d876 | 7051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7053 | { (case "(($ac_try" in |
7054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7055 | *) ac_try_echo=$ac_try;; | |
7056 | esac | |
b145d876 ZK |
7057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7058 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7059 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7060 | ac_status=$? |
b145d876 | 7061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7062 | (exit $ac_status); }; }; then |
7063 | ac_cv_func_fork_works=yes | |
7064 | else | |
b145d876 ZK |
7065 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7066 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 |
7068 | ||
7069 | ( exit $ac_status ) | |
7070 | ac_cv_func_fork_works=no | |
7071 | fi | |
b145d876 | 7072 | rm -rf conftest.dSYM |
7a197a62 | 7073 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7074 | fi |
7a197a62 AK |
7075 | |
7076 | ||
ad6254c5 | 7077 | fi |
b145d876 ZK |
7078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7079 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7080 | |
7081 | else | |
7082 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7083 | fi | |
7084 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7085 | case $host in | |
7086 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7087 | # Override, as these systems have only a dummy fork() stub | |
7088 | ac_cv_func_fork_works=no | |
7089 | ;; | |
7090 | *) | |
7091 | ac_cv_func_fork_works=yes | |
7092 | ;; | |
7093 | esac | |
b145d876 ZK |
7094 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7095 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7096 | fi |
7097 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7098 | if test "x$ac_cv_func_vfork" = xyes; then | |
b145d876 ZK |
7099 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7100 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7101 | if test "${ac_cv_func_vfork_works+set}" = set; then |
b145d876 | 7102 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7103 | else |
7104 | if test "$cross_compiling" = yes; then | |
7105 | ac_cv_func_vfork_works=cross | |
7106 | else | |
7107 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7108 | /* confdefs.h. */ |
7109 | _ACEOF | |
7110 | cat confdefs.h >>conftest.$ac_ext | |
7111 | cat >>conftest.$ac_ext <<_ACEOF | |
7112 | /* end confdefs.h. */ | |
7113 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7114 | $ac_includes_default |
ad6254c5 | 7115 | #include <sys/wait.h> |
25fbec5b | 7116 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7117 | # include <vfork.h> |
7118 | #endif | |
7119 | /* On some sparc systems, changes by the child to local and incoming | |
7120 | argument registers are propagated back to the parent. The compiler | |
7121 | is told about this with #include <vfork.h>, but some compilers | |
7122 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7123 | static variable whose address is put into a register that is | |
7124 | clobbered by the vfork. */ | |
7125 | static void | |
7126 | #ifdef __cplusplus | |
7127 | sparc_address_test (int arg) | |
7128 | # else | |
7129 | sparc_address_test (arg) int arg; | |
7130 | #endif | |
7131 | { | |
7132 | static pid_t child; | |
7133 | if (!child) { | |
7134 | child = vfork (); | |
7135 | if (child < 0) { | |
7136 | perror ("vfork"); | |
7137 | _exit(2); | |
7138 | } | |
7139 | if (!child) { | |
7140 | arg = getpid(); | |
7141 | write(-1, "", 0); | |
7142 | _exit (arg); | |
7143 | } | |
7144 | } | |
7145 | } | |
7146 | ||
7147 | int | |
7148 | main () | |
7149 | { | |
7150 | pid_t parent = getpid (); | |
7151 | pid_t child; | |
7152 | ||
7153 | sparc_address_test (0); | |
7154 | ||
7155 | child = vfork (); | |
7156 | ||
7157 | if (child == 0) { | |
7158 | /* Here is another test for sparc vfork register problems. This | |
7159 | test uses lots of local variables, at least as many local | |
7160 | variables as main has allocated so far including compiler | |
7161 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7162 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7163 | reuse the register of parent for one of the local variables, | |
7164 | since it will think that parent can't possibly be used any more | |
7165 | in this routine. Assigning to the local variable will thus | |
7166 | munge parent in the parent process. */ | |
7167 | pid_t | |
7168 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7169 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7170 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7171 | use the same hardware register for all 8 local variables. */ | |
7172 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7173 | || p != p5 || p != p6 || p != p7) | |
7174 | _exit(1); | |
7175 | ||
7176 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7177 | from child file descriptors. If the child closes a descriptor | |
7178 | before it execs or exits, this munges the parent's descriptor | |
7179 | as well. Test for this by closing stdout in the child. */ | |
7180 | _exit(close(fileno(stdout)) != 0); | |
7181 | } else { | |
7182 | int status; | |
7183 | struct stat st; | |
7184 | ||
7185 | while (wait(&status) != child) | |
7186 | ; | |
7a197a62 | 7187 | return ( |
ad6254c5 AK |
7188 | /* Was there some problem with vforking? */ |
7189 | child < 0 | |
7190 | ||
7191 | /* Did the child fail? (This shouldn't happen.) */ | |
7192 | || status | |
7193 | ||
7194 | /* Did the vfork/compiler bug occur? */ | |
7195 | || parent != getpid() | |
7196 | ||
7197 | /* Did the file descriptor bug occur? */ | |
7198 | || fstat(fileno(stdout), &st) != 0 | |
7199 | ); | |
7200 | } | |
7201 | } | |
7202 | _ACEOF | |
7203 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7204 | if { (ac_try="$ac_link" |
7205 | case "(($ac_try" in | |
7206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7207 | *) ac_try_echo=$ac_try;; | |
7208 | esac | |
b145d876 ZK |
7209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7210 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7211 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7212 | ac_status=$? |
b145d876 | 7213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7214 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7215 | { (case "(($ac_try" in |
7216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7217 | *) ac_try_echo=$ac_try;; | |
7218 | esac | |
b145d876 ZK |
7219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7220 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7221 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7222 | ac_status=$? |
b145d876 | 7223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7224 | (exit $ac_status); }; }; then |
7225 | ac_cv_func_vfork_works=yes | |
7226 | else | |
b145d876 ZK |
7227 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7228 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7229 | sed 's/^/| /' conftest.$ac_ext >&5 |
7230 | ||
7231 | ( exit $ac_status ) | |
7232 | ac_cv_func_vfork_works=no | |
7233 | fi | |
b145d876 | 7234 | rm -rf conftest.dSYM |
7a197a62 | 7235 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7236 | fi |
7a197a62 AK |
7237 | |
7238 | ||
ad6254c5 | 7239 | fi |
b145d876 ZK |
7240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7241 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7242 | |
7243 | fi; | |
7244 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7245 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
b145d876 ZK |
7246 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7247 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7248 | fi |
7249 | ||
7250 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7251 | ||
7252 | cat >>confdefs.h <<\_ACEOF | |
7253 | #define HAVE_WORKING_VFORK 1 | |
7254 | _ACEOF | |
7255 | ||
7256 | else | |
7257 | ||
7258 | cat >>confdefs.h <<\_ACEOF | |
7259 | #define vfork fork | |
7260 | _ACEOF | |
7261 | ||
7262 | fi | |
7263 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7264 | ||
7265 | cat >>confdefs.h <<\_ACEOF | |
7266 | #define HAVE_WORKING_FORK 1 | |
7267 | _ACEOF | |
7268 | ||
7269 | fi | |
7270 | ||
b145d876 ZK |
7271 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7272 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7273 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
b145d876 | 7274 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7275 | else |
7276 | rm -f conftest.sym conftest.file | |
7277 | echo >conftest.file | |
7278 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7279 | if test "$cross_compiling" = yes; then | |
7280 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7281 | else | |
7282 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7283 | /* confdefs.h. */ |
7284 | _ACEOF | |
7285 | cat confdefs.h >>conftest.$ac_ext | |
7286 | cat >>conftest.$ac_ext <<_ACEOF | |
7287 | /* end confdefs.h. */ | |
7288 | $ac_includes_default | |
7289 | int | |
7290 | main () | |
7291 | { | |
7292 | struct stat sbuf; | |
7293 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7294 | That is better in the sense that it means we will not |
7295 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7296 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7297 | ; |
7298 | return 0; | |
7299 | } | |
7300 | _ACEOF | |
7301 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7302 | if { (ac_try="$ac_link" |
7303 | case "(($ac_try" in | |
7304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7305 | *) ac_try_echo=$ac_try;; | |
7306 | esac | |
b145d876 ZK |
7307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7308 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7309 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7310 | ac_status=$? |
b145d876 | 7311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7312 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7313 | { (case "(($ac_try" in |
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7315 | *) ac_try_echo=$ac_try;; | |
7316 | esac | |
b145d876 ZK |
7317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7318 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7319 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7320 | ac_status=$? |
b145d876 | 7321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7322 | (exit $ac_status); }; }; then |
7323 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7324 | else | |
b145d876 ZK |
7325 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7326 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7327 | sed 's/^/| /' conftest.$ac_ext >&5 |
7328 | ||
7329 | ( exit $ac_status ) | |
7330 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7331 | fi | |
b145d876 | 7332 | rm -rf conftest.dSYM |
7a197a62 | 7333 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7334 | fi |
7a197a62 AK |
7335 | |
7336 | ||
ad6254c5 AK |
7337 | else |
7338 | # If the `ln -s' command failed, then we probably don't even | |
7339 | # have an lstat function. | |
7340 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7341 | fi | |
7342 | rm -f conftest.sym conftest.file | |
7343 | ||
7344 | fi | |
b145d876 ZK |
7345 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7346 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7347 | |
7348 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7349 | ||
7350 | cat >>confdefs.h <<_ACEOF | |
7351 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7352 | _ACEOF | |
7353 | ||
7354 | ||
7355 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7356 | case " $LIBOBJS " in |
8a2fc586 | 7357 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7358 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7359 | ;; | |
8a2fc586 AK |
7360 | esac |
7361 | ||
ad6254c5 AK |
7362 | fi |
7363 | ||
b145d876 ZK |
7364 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7365 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7366 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
b145d876 | 7367 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7368 | else |
7369 | if test "$cross_compiling" = yes; then | |
7370 | ac_cv_func_lstat_empty_string_bug=yes | |
7371 | else | |
7372 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7373 | /* confdefs.h. */ |
7374 | _ACEOF | |
7375 | cat confdefs.h >>conftest.$ac_ext | |
7376 | cat >>conftest.$ac_ext <<_ACEOF | |
7377 | /* end confdefs.h. */ | |
7378 | $ac_includes_default | |
7379 | int | |
7380 | main () | |
7381 | { | |
7382 | struct stat sbuf; | |
7a197a62 | 7383 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7384 | ; |
7385 | return 0; | |
7386 | } | |
7387 | _ACEOF | |
7388 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7389 | if { (ac_try="$ac_link" |
7390 | case "(($ac_try" in | |
7391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7392 | *) ac_try_echo=$ac_try;; | |
7393 | esac | |
b145d876 ZK |
7394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7395 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7396 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7397 | ac_status=$? |
b145d876 | 7398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7400 | { (case "(($ac_try" in |
7401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7402 | *) ac_try_echo=$ac_try;; | |
7403 | esac | |
b145d876 ZK |
7404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7405 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7406 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7407 | ac_status=$? |
b145d876 | 7408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7409 | (exit $ac_status); }; }; then |
7a197a62 | 7410 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7411 | else |
b145d876 ZK |
7412 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7413 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7414 | sed 's/^/| /' conftest.$ac_ext >&5 |
7415 | ||
7416 | ( exit $ac_status ) | |
7a197a62 | 7417 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7418 | fi |
b145d876 | 7419 | rm -rf conftest.dSYM |
7a197a62 | 7420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7421 | fi |
7a197a62 AK |
7422 | |
7423 | ||
ad6254c5 | 7424 | fi |
b145d876 ZK |
7425 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7426 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7427 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7428 | case " $LIBOBJS " in |
8a2fc586 | 7429 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7430 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7431 | ;; | |
8a2fc586 AK |
7432 | esac |
7433 | ||
ad6254c5 AK |
7434 | |
7435 | cat >>confdefs.h <<_ACEOF | |
7436 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7437 | _ACEOF | |
7438 | ||
7439 | fi | |
7440 | ||
7441 | ||
7442 | for ac_header in stdlib.h | |
7443 | do | |
b145d876 | 7444 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
7446 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7447 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7448 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 7449 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7450 | fi |
b145d876 ZK |
7451 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7452 | $as_echo "$as_val"'` | |
7453 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7454 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7455 | else |
7456 | # Is the header compilable? | |
b145d876 ZK |
7457 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7458 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7459 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7460 | /* confdefs.h. */ |
7461 | _ACEOF | |
7462 | cat confdefs.h >>conftest.$ac_ext | |
7463 | cat >>conftest.$ac_ext <<_ACEOF | |
7464 | /* end confdefs.h. */ | |
7465 | $ac_includes_default | |
7466 | #include <$ac_header> | |
7467 | _ACEOF | |
7468 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7469 | if { (ac_try="$ac_compile" |
7470 | case "(($ac_try" in | |
7471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7472 | *) ac_try_echo=$ac_try;; | |
7473 | esac | |
b145d876 ZK |
7474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7475 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7476 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7477 | ac_status=$? |
8a2fc586 AK |
7478 | grep -v '^ *+' conftest.er1 >conftest.err |
7479 | rm -f conftest.er1 | |
7480 | cat conftest.err >&5 | |
b145d876 | 7481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7482 | (exit $ac_status); } && { |
7483 | test -z "$ac_c_werror_flag" || | |
7484 | test ! -s conftest.err | |
7485 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7486 | ac_header_compiler=yes |
7487 | else | |
b145d876 | 7488 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7489 | sed 's/^/| /' conftest.$ac_ext >&5 |
7490 | ||
7a197a62 | 7491 | ac_header_compiler=no |
ad6254c5 | 7492 | fi |
7a197a62 AK |
7493 | |
7494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
7495 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7496 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7497 | |
7498 | # Is the header present? | |
b145d876 ZK |
7499 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7500 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7501 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7502 | /* confdefs.h. */ |
7503 | _ACEOF | |
7504 | cat confdefs.h >>conftest.$ac_ext | |
7505 | cat >>conftest.$ac_ext <<_ACEOF | |
7506 | /* end confdefs.h. */ | |
7507 | #include <$ac_header> | |
7508 | _ACEOF | |
7a197a62 AK |
7509 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7510 | case "(($ac_try" in | |
7511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7512 | *) ac_try_echo=$ac_try;; | |
7513 | esac | |
b145d876 ZK |
7514 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7515 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7517 | ac_status=$? |
7518 | grep -v '^ *+' conftest.er1 >conftest.err | |
7519 | rm -f conftest.er1 | |
7520 | cat conftest.err >&5 | |
b145d876 | 7521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7522 | (exit $ac_status); } >/dev/null && { |
7523 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7524 | test ! -s conftest.err | |
7525 | }; then | |
ad6254c5 AK |
7526 | ac_header_preproc=yes |
7527 | else | |
b145d876 | 7528 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7529 | sed 's/^/| /' conftest.$ac_ext >&5 |
7530 | ||
7531 | ac_header_preproc=no | |
7532 | fi | |
7a197a62 | 7533 | |
ad6254c5 | 7534 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
7535 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7536 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7537 | |
7538 | # So? What about this header? | |
8a2fc586 AK |
7539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7540 | yes:no: ) | |
b145d876 ZK |
7541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7542 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7544 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7545 | ac_header_preproc=yes |
ad6254c5 | 7546 | ;; |
8a2fc586 | 7547 | no:yes:* ) |
b145d876 ZK |
7548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7549 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7551 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7552 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7553 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7554 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7555 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7556 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7557 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7558 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7559 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7560 | |
ad6254c5 AK |
7561 | ;; |
7562 | esac | |
b145d876 ZK |
7563 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7564 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 7566 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7567 | else |
8a2fc586 | 7568 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7569 | fi |
b145d876 ZK |
7570 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7571 | $as_echo "$as_val"'` | |
7572 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7573 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7574 | |
7575 | fi | |
b145d876 ZK |
7576 | if test `eval 'as_val=${'$as_ac_Header'} |
7577 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 7578 | cat >>confdefs.h <<_ACEOF |
b145d876 | 7579 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7580 | _ACEOF |
7581 | ||
7582 | fi | |
7583 | ||
7584 | done | |
7585 | ||
b145d876 ZK |
7586 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7587 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7588 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
b145d876 | 7589 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7590 | else |
7591 | if test "$cross_compiling" = yes; then | |
7592 | ac_cv_func_malloc_0_nonnull=no | |
7593 | else | |
7594 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7595 | /* confdefs.h. */ |
7596 | _ACEOF | |
7597 | cat confdefs.h >>conftest.$ac_ext | |
7598 | cat >>conftest.$ac_ext <<_ACEOF | |
7599 | /* end confdefs.h. */ | |
25fbec5b | 7600 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7601 | # include <stdlib.h> |
7602 | #else | |
7603 | char *malloc (); | |
7604 | #endif | |
7605 | ||
7606 | int | |
7607 | main () | |
7608 | { | |
7a197a62 | 7609 | return ! malloc (0); |
ad6254c5 AK |
7610 | ; |
7611 | return 0; | |
7612 | } | |
7613 | _ACEOF | |
7614 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7615 | if { (ac_try="$ac_link" |
7616 | case "(($ac_try" in | |
7617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7618 | *) ac_try_echo=$ac_try;; | |
7619 | esac | |
b145d876 ZK |
7620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7621 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7622 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7623 | ac_status=$? |
b145d876 | 7624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7626 | { (case "(($ac_try" in |
7627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7628 | *) ac_try_echo=$ac_try;; | |
7629 | esac | |
b145d876 ZK |
7630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7631 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7632 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7633 | ac_status=$? |
b145d876 | 7634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7635 | (exit $ac_status); }; }; then |
7636 | ac_cv_func_malloc_0_nonnull=yes | |
7637 | else | |
b145d876 ZK |
7638 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7639 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
7641 | ||
7642 | ( exit $ac_status ) | |
7643 | ac_cv_func_malloc_0_nonnull=no | |
7644 | fi | |
b145d876 | 7645 | rm -rf conftest.dSYM |
7a197a62 | 7646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7647 | fi |
7a197a62 AK |
7648 | |
7649 | ||
ad6254c5 | 7650 | fi |
b145d876 ZK |
7651 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7652 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7653 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7654 | ||
7655 | cat >>confdefs.h <<\_ACEOF | |
7656 | #define HAVE_MALLOC 1 | |
7657 | _ACEOF | |
7658 | ||
7659 | else | |
7660 | cat >>confdefs.h <<\_ACEOF | |
7661 | #define HAVE_MALLOC 0 | |
7662 | _ACEOF | |
7663 | ||
7a197a62 | 7664 | case " $LIBOBJS " in |
8a2fc586 | 7665 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7666 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7667 | ;; | |
8a2fc586 AK |
7668 | esac |
7669 | ||
ad6254c5 AK |
7670 | |
7671 | cat >>confdefs.h <<\_ACEOF | |
7672 | #define malloc rpl_malloc | |
7673 | _ACEOF | |
7674 | ||
7675 | fi | |
7676 | ||
7677 | ||
7678 | ||
b145d876 ZK |
7679 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7680 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7681 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
b145d876 | 7682 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7683 | else |
7684 | if test "$cross_compiling" = yes; then | |
7685 | ac_cv_func_memcmp_working=no | |
7686 | else | |
7687 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7688 | /* confdefs.h. */ |
7689 | _ACEOF | |
7690 | cat confdefs.h >>conftest.$ac_ext | |
7691 | cat >>conftest.$ac_ext <<_ACEOF | |
7692 | /* end confdefs.h. */ | |
8a2fc586 | 7693 | $ac_includes_default |
ad6254c5 AK |
7694 | int |
7695 | main () | |
7696 | { | |
7697 | ||
7698 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7699 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7700 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7701 | return 1; |
ad6254c5 AK |
7702 | |
7703 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7704 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7705 | William Lewis provided this test program. */ | |
7706 | { | |
7707 | char foo[21]; | |
7708 | char bar[21]; | |
7709 | int i; | |
7710 | for (i = 0; i < 4; i++) | |
7711 | { | |
8a2fc586 AK |
7712 | char *a = foo + i; |
7713 | char *b = bar + i; | |
7714 | strcpy (a, "--------01111111"); | |
7715 | strcpy (b, "--------10000000"); | |
7716 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7717 | return 1; |
ad6254c5 | 7718 | } |
7a197a62 | 7719 | return 0; |
ad6254c5 AK |
7720 | } |
7721 | ||
7722 | ; | |
7723 | return 0; | |
7724 | } | |
7725 | _ACEOF | |
7726 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7727 | if { (ac_try="$ac_link" |
7728 | case "(($ac_try" in | |
7729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7730 | *) ac_try_echo=$ac_try;; | |
7731 | esac | |
b145d876 ZK |
7732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7733 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7734 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7735 | ac_status=$? |
b145d876 | 7736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7738 | { (case "(($ac_try" in |
7739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7740 | *) ac_try_echo=$ac_try;; | |
7741 | esac | |
b145d876 ZK |
7742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7743 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7744 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7745 | ac_status=$? |
b145d876 | 7746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7747 | (exit $ac_status); }; }; then |
7748 | ac_cv_func_memcmp_working=yes | |
7749 | else | |
b145d876 ZK |
7750 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7751 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7752 | sed 's/^/| /' conftest.$ac_ext >&5 |
7753 | ||
7754 | ( exit $ac_status ) | |
7755 | ac_cv_func_memcmp_working=no | |
7756 | fi | |
b145d876 | 7757 | rm -rf conftest.dSYM |
7a197a62 | 7758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7759 | fi |
7a197a62 AK |
7760 | |
7761 | ||
ad6254c5 | 7762 | fi |
b145d876 ZK |
7763 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7764 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7765 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7766 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7767 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7768 | ;; | |
8a2fc586 AK |
7769 | esac |
7770 | ||
ad6254c5 AK |
7771 | |
7772 | ||
7773 | ||
7774 | for ac_header in stdlib.h unistd.h | |
7775 | do | |
b145d876 | 7776 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7777 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
7778 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7779 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 7781 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7782 | fi |
b145d876 ZK |
7783 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7784 | $as_echo "$as_val"'` | |
7785 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7786 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7787 | else |
7788 | # Is the header compilable? | |
b145d876 ZK |
7789 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7790 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7791 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7792 | /* confdefs.h. */ |
7793 | _ACEOF | |
7794 | cat confdefs.h >>conftest.$ac_ext | |
7795 | cat >>conftest.$ac_ext <<_ACEOF | |
7796 | /* end confdefs.h. */ | |
7797 | $ac_includes_default | |
7798 | #include <$ac_header> | |
7799 | _ACEOF | |
7800 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7801 | if { (ac_try="$ac_compile" |
7802 | case "(($ac_try" in | |
7803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7804 | *) ac_try_echo=$ac_try;; | |
7805 | esac | |
b145d876 ZK |
7806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7807 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7808 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7809 | ac_status=$? |
8a2fc586 AK |
7810 | grep -v '^ *+' conftest.er1 >conftest.err |
7811 | rm -f conftest.er1 | |
7812 | cat conftest.err >&5 | |
b145d876 | 7813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7814 | (exit $ac_status); } && { |
7815 | test -z "$ac_c_werror_flag" || | |
7816 | test ! -s conftest.err | |
7817 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7818 | ac_header_compiler=yes |
7819 | else | |
b145d876 | 7820 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7821 | sed 's/^/| /' conftest.$ac_ext >&5 |
7822 | ||
7a197a62 | 7823 | ac_header_compiler=no |
ad6254c5 | 7824 | fi |
7a197a62 AK |
7825 | |
7826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
7827 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7828 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7829 | |
7830 | # Is the header present? | |
b145d876 ZK |
7831 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7832 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7833 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7834 | /* confdefs.h. */ |
7835 | _ACEOF | |
7836 | cat confdefs.h >>conftest.$ac_ext | |
7837 | cat >>conftest.$ac_ext <<_ACEOF | |
7838 | /* end confdefs.h. */ | |
7839 | #include <$ac_header> | |
7840 | _ACEOF | |
7a197a62 AK |
7841 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7842 | case "(($ac_try" in | |
7843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7844 | *) ac_try_echo=$ac_try;; | |
7845 | esac | |
b145d876 ZK |
7846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7847 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7849 | ac_status=$? |
7850 | grep -v '^ *+' conftest.er1 >conftest.err | |
7851 | rm -f conftest.er1 | |
7852 | cat conftest.err >&5 | |
b145d876 | 7853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7854 | (exit $ac_status); } >/dev/null && { |
7855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7856 | test ! -s conftest.err | |
7857 | }; then | |
ad6254c5 AK |
7858 | ac_header_preproc=yes |
7859 | else | |
b145d876 | 7860 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7861 | sed 's/^/| /' conftest.$ac_ext >&5 |
7862 | ||
7863 | ac_header_preproc=no | |
7864 | fi | |
7a197a62 | 7865 | |
ad6254c5 | 7866 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
7867 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7868 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7869 | |
7870 | # So? What about this header? | |
8a2fc586 AK |
7871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7872 | yes:no: ) | |
b145d876 ZK |
7873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7874 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7876 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7877 | ac_header_preproc=yes |
ad6254c5 | 7878 | ;; |
8a2fc586 | 7879 | no:yes:* ) |
b145d876 ZK |
7880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7881 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7883 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7885 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7887 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7889 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7891 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7892 | |
ad6254c5 AK |
7893 | ;; |
7894 | esac | |
b145d876 ZK |
7895 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7896 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 7898 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7899 | else |
8a2fc586 | 7900 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7901 | fi |
b145d876 ZK |
7902 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7903 | $as_echo "$as_val"'` | |
7904 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7905 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7906 | |
7907 | fi | |
b145d876 ZK |
7908 | if test `eval 'as_val=${'$as_ac_Header'} |
7909 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 7910 | cat >>confdefs.h <<_ACEOF |
b145d876 | 7911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7912 | _ACEOF |
7913 | ||
7914 | fi | |
7915 | ||
7916 | done | |
7917 | ||
7918 | ||
7919 | for ac_func in getpagesize | |
7920 | do | |
b145d876 ZK |
7921 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7922 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7923 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7924 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 7925 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7926 | else |
7927 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7928 | /* confdefs.h. */ |
7929 | _ACEOF | |
7930 | cat confdefs.h >>conftest.$ac_ext | |
7931 | cat >>conftest.$ac_ext <<_ACEOF | |
7932 | /* end confdefs.h. */ | |
8a2fc586 AK |
7933 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7935 | #define $ac_func innocuous_$ac_func | |
7936 | ||
ad6254c5 AK |
7937 | /* System header to define __stub macros and hopefully few prototypes, |
7938 | which can conflict with char $ac_func (); below. | |
7939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7940 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7941 | |
ad6254c5 AK |
7942 | #ifdef __STDC__ |
7943 | # include <limits.h> | |
7944 | #else | |
7945 | # include <assert.h> | |
7946 | #endif | |
8a2fc586 AK |
7947 | |
7948 | #undef $ac_func | |
7949 | ||
7a197a62 AK |
7950 | /* Override any GCC internal prototype to avoid an error. |
7951 | Use char because int might match the return type of a GCC | |
7952 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7953 | #ifdef __cplusplus |
7954 | extern "C" | |
ad6254c5 | 7955 | #endif |
ad6254c5 AK |
7956 | char $ac_func (); |
7957 | /* The GNU C library defines this for functions which it implements | |
7958 | to always fail with ENOSYS. Some functions are actually named | |
7959 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7960 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7961 | choke me |
ad6254c5 AK |
7962 | #endif |
7963 | ||
7964 | int | |
7965 | main () | |
7966 | { | |
7a197a62 | 7967 | return $ac_func (); |
ad6254c5 AK |
7968 | ; |
7969 | return 0; | |
7970 | } | |
7971 | _ACEOF | |
7972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7973 | if { (ac_try="$ac_link" |
7974 | case "(($ac_try" in | |
7975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7976 | *) ac_try_echo=$ac_try;; | |
7977 | esac | |
b145d876 ZK |
7978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7979 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7980 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7981 | ac_status=$? |
8a2fc586 AK |
7982 | grep -v '^ *+' conftest.er1 >conftest.err |
7983 | rm -f conftest.er1 | |
7984 | cat conftest.err >&5 | |
b145d876 | 7985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7986 | (exit $ac_status); } && { |
7987 | test -z "$ac_c_werror_flag" || | |
7988 | test ! -s conftest.err | |
b145d876 ZK |
7989 | } && test -s conftest$ac_exeext && { |
7990 | test "$cross_compiling" = yes || | |
7991 | $as_test_x conftest$ac_exeext | |
7992 | }; then | |
ad6254c5 AK |
7993 | eval "$as_ac_var=yes" |
7994 | else | |
b145d876 | 7995 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7996 | sed 's/^/| /' conftest.$ac_ext >&5 |
7997 | ||
7a197a62 | 7998 | eval "$as_ac_var=no" |
ad6254c5 | 7999 | fi |
7a197a62 | 8000 | |
b145d876 | 8001 | rm -rf conftest.dSYM |
25fbec5b | 8002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8003 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8004 | fi |
b145d876 ZK |
8005 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8006 | $as_echo "$as_val"'` | |
8007 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8008 | $as_echo "$ac_res" >&6; } | |
8009 | if test `eval 'as_val=${'$as_ac_var'} | |
8010 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 8011 | cat >>confdefs.h <<_ACEOF |
b145d876 | 8012 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8013 | _ACEOF |
8014 | ||
8015 | fi | |
8016 | done | |
8017 | ||
b145d876 ZK |
8018 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8019 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8020 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
b145d876 | 8021 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8022 | else |
8023 | if test "$cross_compiling" = yes; then | |
8024 | ac_cv_func_mmap_fixed_mapped=no | |
8025 | else | |
8026 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8027 | /* confdefs.h. */ |
8028 | _ACEOF | |
8029 | cat confdefs.h >>conftest.$ac_ext | |
8030 | cat >>conftest.$ac_ext <<_ACEOF | |
8031 | /* end confdefs.h. */ | |
8032 | $ac_includes_default | |
8033 | /* malloc might have been renamed as rpl_malloc. */ | |
8034 | #undef malloc | |
8035 | ||
8036 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8037 | Here is a matrix of mmap possibilities: | |
8038 | mmap private not fixed | |
8039 | mmap private fixed at somewhere currently unmapped | |
8040 | mmap private fixed at somewhere already mapped | |
8041 | mmap shared not fixed | |
8042 | mmap shared fixed at somewhere currently unmapped | |
8043 | mmap shared fixed at somewhere already mapped | |
8044 | For private mappings, we should verify that changes cannot be read() | |
8045 | back from the file, nor mmap's back from the file at a different | |
8046 | address. (There have been systems where private was not correctly | |
8047 | implemented like the infamous i386 svr4.0, and systems where the | |
8048 | VM page cache was not coherent with the file system buffer cache | |
8049 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8050 | For shared mappings, we should conversely verify that changes get | |
8051 | propagated back to all the places they're supposed to be. | |
8052 | ||
8053 | Grep wants private fixed already mapped. | |
8054 | The main things grep needs to know about mmap are: | |
8055 | * does it exist and is it safe to write into the mmap'd area | |
8056 | * how to use it (BSD variants) */ | |
8057 | ||
8058 | #include <fcntl.h> | |
8059 | #include <sys/mman.h> | |
8060 | ||
25fbec5b | 8061 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8062 | char *malloc (); |
8063 | #endif | |
8064 | ||
8065 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8066 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8067 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8068 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8069 | # define HAVE_SYS_PARAM_H 1 |
8070 | # endif | |
8071 | ||
8072 | # ifdef _SC_PAGESIZE | |
8073 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8074 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8075 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8076 | # include <sys/param.h> |
8077 | # ifdef EXEC_PAGESIZE | |
8078 | # define getpagesize() EXEC_PAGESIZE | |
8079 | # else /* no EXEC_PAGESIZE */ | |
8080 | # ifdef NBPG | |
8081 | # define getpagesize() NBPG * CLSIZE | |
8082 | # ifndef CLSIZE | |
8083 | # define CLSIZE 1 | |
8084 | # endif /* no CLSIZE */ | |
8085 | # else /* no NBPG */ | |
8086 | # ifdef NBPC | |
8087 | # define getpagesize() NBPC | |
8088 | # else /* no NBPC */ | |
8089 | # ifdef PAGESIZE | |
8090 | # define getpagesize() PAGESIZE | |
8091 | # endif /* PAGESIZE */ | |
8092 | # endif /* no NBPC */ | |
8093 | # endif /* no NBPG */ | |
8094 | # endif /* no EXEC_PAGESIZE */ | |
8095 | # else /* no HAVE_SYS_PARAM_H */ | |
8096 | # define getpagesize() 8192 /* punt totally */ | |
8097 | # endif /* no HAVE_SYS_PARAM_H */ | |
8098 | # endif /* no _SC_PAGESIZE */ | |
8099 | ||
8100 | #endif /* no HAVE_GETPAGESIZE */ | |
8101 | ||
8102 | int | |
8103 | main () | |
8104 | { | |
8105 | char *data, *data2, *data3; | |
8106 | int i, pagesize; | |
8107 | int fd; | |
8108 | ||
8109 | pagesize = getpagesize (); | |
8110 | ||
8111 | /* First, make a file with some known garbage in it. */ | |
8112 | data = (char *) malloc (pagesize); | |
8113 | if (!data) | |
7a197a62 | 8114 | return 1; |
ad6254c5 AK |
8115 | for (i = 0; i < pagesize; ++i) |
8116 | *(data + i) = rand (); | |
8117 | umask (0); | |
8118 | fd = creat ("conftest.mmap", 0600); | |
8119 | if (fd < 0) | |
7a197a62 | 8120 | return 1; |
ad6254c5 | 8121 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8122 | return 1; |
ad6254c5 AK |
8123 | close (fd); |
8124 | ||
8125 | /* Next, try to mmap the file at a fixed address which already has | |
8126 | something else allocated at it. If we can, also make sure that | |
8127 | we see the same garbage. */ | |
8128 | fd = open ("conftest.mmap", O_RDWR); | |
8129 | if (fd < 0) | |
7a197a62 | 8130 | return 1; |
ad6254c5 AK |
8131 | data2 = (char *) malloc (2 * pagesize); |
8132 | if (!data2) | |
7a197a62 AK |
8133 | return 1; |
8134 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8135 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8136 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8137 | return 1; |
ad6254c5 AK |
8138 | for (i = 0; i < pagesize; ++i) |
8139 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8140 | return 1; |
ad6254c5 AK |
8141 | |
8142 | /* Finally, make sure that changes to the mapped area do not | |
8143 | percolate back to the file as seen by read(). (This is a bug on | |
8144 | some variants of i386 svr4.0.) */ | |
8145 | for (i = 0; i < pagesize; ++i) | |
8146 | *(data2 + i) = *(data2 + i) + 1; | |
8147 | data3 = (char *) malloc (pagesize); | |
8148 | if (!data3) | |
7a197a62 | 8149 | return 1; |
ad6254c5 | 8150 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8151 | return 1; |
ad6254c5 AK |
8152 | for (i = 0; i < pagesize; ++i) |
8153 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8154 | return 1; |
ad6254c5 | 8155 | close (fd); |
7a197a62 | 8156 | return 0; |
ad6254c5 AK |
8157 | } |
8158 | _ACEOF | |
8159 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8160 | if { (ac_try="$ac_link" |
8161 | case "(($ac_try" in | |
8162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8163 | *) ac_try_echo=$ac_try;; | |
8164 | esac | |
b145d876 ZK |
8165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8166 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8167 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8168 | ac_status=$? |
b145d876 | 8169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8170 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8171 | { (case "(($ac_try" in |
8172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8173 | *) ac_try_echo=$ac_try;; | |
8174 | esac | |
b145d876 ZK |
8175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8176 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8177 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8178 | ac_status=$? |
b145d876 | 8179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8180 | (exit $ac_status); }; }; then |
8181 | ac_cv_func_mmap_fixed_mapped=yes | |
8182 | else | |
b145d876 ZK |
8183 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8184 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
8186 | ||
8187 | ( exit $ac_status ) | |
8188 | ac_cv_func_mmap_fixed_mapped=no | |
8189 | fi | |
b145d876 | 8190 | rm -rf conftest.dSYM |
7a197a62 | 8191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8192 | fi |
7a197a62 AK |
8193 | |
8194 | ||
ad6254c5 | 8195 | fi |
b145d876 ZK |
8196 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8197 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8198 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8199 | ||
8200 | cat >>confdefs.h <<\_ACEOF | |
8201 | #define HAVE_MMAP 1 | |
8202 | _ACEOF | |
8203 | ||
8204 | fi | |
8205 | rm -f conftest.mmap | |
8206 | ||
b145d876 ZK |
8207 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8208 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8209 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
b145d876 | 8210 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8211 | else |
8212 | if test "$cross_compiling" = yes; then | |
8213 | ac_cv_func_stat_empty_string_bug=yes | |
8214 | else | |
8215 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8216 | /* confdefs.h. */ |
8217 | _ACEOF | |
8218 | cat confdefs.h >>conftest.$ac_ext | |
8219 | cat >>conftest.$ac_ext <<_ACEOF | |
8220 | /* end confdefs.h. */ | |
8221 | $ac_includes_default | |
8222 | int | |
8223 | main () | |
8224 | { | |
8225 | struct stat sbuf; | |
7a197a62 | 8226 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8227 | ; |
8228 | return 0; | |
8229 | } | |
8230 | _ACEOF | |
8231 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8232 | if { (ac_try="$ac_link" |
8233 | case "(($ac_try" in | |
8234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8235 | *) ac_try_echo=$ac_try;; | |
8236 | esac | |
b145d876 ZK |
8237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8238 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8239 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8240 | ac_status=$? |
b145d876 | 8241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8243 | { (case "(($ac_try" in |
8244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8245 | *) ac_try_echo=$ac_try;; | |
8246 | esac | |
b145d876 ZK |
8247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8248 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8249 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8250 | ac_status=$? |
b145d876 | 8251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8252 | (exit $ac_status); }; }; then |
7a197a62 | 8253 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8254 | else |
b145d876 ZK |
8255 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8256 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
8258 | ||
8259 | ( exit $ac_status ) | |
7a197a62 | 8260 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8261 | fi |
b145d876 | 8262 | rm -rf conftest.dSYM |
7a197a62 | 8263 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8264 | fi |
7a197a62 AK |
8265 | |
8266 | ||
ad6254c5 | 8267 | fi |
b145d876 ZK |
8268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8269 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8270 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8271 | case " $LIBOBJS " in |
8a2fc586 | 8272 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8273 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8274 | ;; | |
8a2fc586 AK |
8275 | esac |
8276 | ||
ad6254c5 AK |
8277 | |
8278 | cat >>confdefs.h <<_ACEOF | |
8279 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8280 | _ACEOF | |
8281 | ||
8282 | fi | |
8283 | ||
b145d876 ZK |
8284 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8285 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8286 | if test "${ac_cv_func_strtod+set}" = set; then |
b145d876 | 8287 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8288 | else |
8289 | if test "$cross_compiling" = yes; then | |
8290 | ac_cv_func_strtod=no | |
8291 | else | |
8292 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8293 | /* confdefs.h. */ |
8294 | _ACEOF | |
8295 | cat confdefs.h >>conftest.$ac_ext | |
8296 | cat >>conftest.$ac_ext <<_ACEOF | |
8297 | /* end confdefs.h. */ | |
8298 | ||
7a197a62 AK |
8299 | $ac_includes_default |
8300 | #ifndef strtod | |
ad6254c5 | 8301 | double strtod (); |
7a197a62 | 8302 | #endif |
ad6254c5 AK |
8303 | int |
8304 | main() | |
8305 | { | |
8306 | { | |
8307 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8308 | char *string = " +69"; | |
8309 | char *term; | |
8310 | double value; | |
8311 | value = strtod (string, &term); | |
8312 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8313 | return 1; |
ad6254c5 AK |
8314 | } |
8315 | ||
8316 | { | |
8317 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8318 | terminating character under some conditions. */ | |
8319 | char *string = "NaN"; | |
8320 | char *term; | |
8321 | strtod (string, &term); | |
8322 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8323 | return 1; |
ad6254c5 | 8324 | } |
7a197a62 | 8325 | return 0; |
ad6254c5 AK |
8326 | } |
8327 | ||
8328 | _ACEOF | |
8329 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8330 | if { (ac_try="$ac_link" |
8331 | case "(($ac_try" in | |
8332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8333 | *) ac_try_echo=$ac_try;; | |
8334 | esac | |
b145d876 ZK |
8335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8336 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8337 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8338 | ac_status=$? |
b145d876 | 8339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8341 | { (case "(($ac_try" in |
8342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8343 | *) ac_try_echo=$ac_try;; | |
8344 | esac | |
b145d876 ZK |
8345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8346 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8347 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8348 | ac_status=$? |
b145d876 | 8349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8350 | (exit $ac_status); }; }; then |
8351 | ac_cv_func_strtod=yes | |
8352 | else | |
b145d876 ZK |
8353 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8354 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8355 | sed 's/^/| /' conftest.$ac_ext >&5 |
8356 | ||
8357 | ( exit $ac_status ) | |
8358 | ac_cv_func_strtod=no | |
8359 | fi | |
b145d876 | 8360 | rm -rf conftest.dSYM |
7a197a62 | 8361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8362 | fi |
7a197a62 AK |
8363 | |
8364 | ||
ad6254c5 | 8365 | fi |
b145d876 ZK |
8366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8367 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8368 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8369 | case " $LIBOBJS " in |
8a2fc586 | 8370 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8371 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8372 | ;; | |
8a2fc586 AK |
8373 | esac |
8374 | ||
b145d876 ZK |
8375 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8376 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8377 | if test "${ac_cv_func_pow+set}" = set; then |
b145d876 | 8378 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8379 | else |
8380 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8381 | /* confdefs.h. */ |
8382 | _ACEOF | |
8383 | cat confdefs.h >>conftest.$ac_ext | |
8384 | cat >>conftest.$ac_ext <<_ACEOF | |
8385 | /* end confdefs.h. */ | |
8a2fc586 AK |
8386 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8388 | #define pow innocuous_pow | |
8389 | ||
ad6254c5 AK |
8390 | /* System header to define __stub macros and hopefully few prototypes, |
8391 | which can conflict with char pow (); below. | |
8392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8393 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8394 | |
ad6254c5 AK |
8395 | #ifdef __STDC__ |
8396 | # include <limits.h> | |
8397 | #else | |
8398 | # include <assert.h> | |
8399 | #endif | |
8a2fc586 AK |
8400 | |
8401 | #undef pow | |
8402 | ||
7a197a62 AK |
8403 | /* Override any GCC internal prototype to avoid an error. |
8404 | Use char because int might match the return type of a GCC | |
8405 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8406 | #ifdef __cplusplus |
8407 | extern "C" | |
ad6254c5 | 8408 | #endif |
ad6254c5 AK |
8409 | char pow (); |
8410 | /* The GNU C library defines this for functions which it implements | |
8411 | to always fail with ENOSYS. Some functions are actually named | |
8412 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8413 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8414 | choke me |
ad6254c5 AK |
8415 | #endif |
8416 | ||
8417 | int | |
8418 | main () | |
8419 | { | |
7a197a62 | 8420 | return pow (); |
ad6254c5 AK |
8421 | ; |
8422 | return 0; | |
8423 | } | |
8424 | _ACEOF | |
8425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8426 | if { (ac_try="$ac_link" |
8427 | case "(($ac_try" in | |
8428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8429 | *) ac_try_echo=$ac_try;; | |
8430 | esac | |
b145d876 ZK |
8431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8432 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8433 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8434 | ac_status=$? |
8a2fc586 AK |
8435 | grep -v '^ *+' conftest.er1 >conftest.err |
8436 | rm -f conftest.er1 | |
8437 | cat conftest.err >&5 | |
b145d876 | 8438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8439 | (exit $ac_status); } && { |
8440 | test -z "$ac_c_werror_flag" || | |
8441 | test ! -s conftest.err | |
b145d876 ZK |
8442 | } && test -s conftest$ac_exeext && { |
8443 | test "$cross_compiling" = yes || | |
8444 | $as_test_x conftest$ac_exeext | |
8445 | }; then | |
ad6254c5 AK |
8446 | ac_cv_func_pow=yes |
8447 | else | |
b145d876 | 8448 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8449 | sed 's/^/| /' conftest.$ac_ext >&5 |
8450 | ||
7a197a62 | 8451 | ac_cv_func_pow=no |
ad6254c5 | 8452 | fi |
7a197a62 | 8453 | |
b145d876 | 8454 | rm -rf conftest.dSYM |
25fbec5b | 8455 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8456 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8457 | fi |
b145d876 ZK |
8458 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8459 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8460 | |
8461 | if test $ac_cv_func_pow = no; then | |
b145d876 ZK |
8462 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8463 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8464 | if test "${ac_cv_lib_m_pow+set}" = set; then |
b145d876 | 8465 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8466 | else |
8467 | ac_check_lib_save_LIBS=$LIBS | |
8468 | LIBS="-lm $LIBS" | |
8469 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8470 | /* confdefs.h. */ |
8471 | _ACEOF | |
8472 | cat confdefs.h >>conftest.$ac_ext | |
8473 | cat >>conftest.$ac_ext <<_ACEOF | |
8474 | /* end confdefs.h. */ | |
8475 | ||
7a197a62 AK |
8476 | /* Override any GCC internal prototype to avoid an error. |
8477 | Use char because int might match the return type of a GCC | |
8478 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8479 | #ifdef __cplusplus |
8480 | extern "C" | |
8481 | #endif | |
ad6254c5 AK |
8482 | char pow (); |
8483 | int | |
8484 | main () | |
8485 | { | |
7a197a62 | 8486 | return pow (); |
ad6254c5 AK |
8487 | ; |
8488 | return 0; | |
8489 | } | |
8490 | _ACEOF | |
8491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8492 | if { (ac_try="$ac_link" |
8493 | case "(($ac_try" in | |
8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8495 | *) ac_try_echo=$ac_try;; | |
8496 | esac | |
b145d876 ZK |
8497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8498 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8499 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8500 | ac_status=$? |
8a2fc586 AK |
8501 | grep -v '^ *+' conftest.er1 >conftest.err |
8502 | rm -f conftest.er1 | |
8503 | cat conftest.err >&5 | |
b145d876 | 8504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8505 | (exit $ac_status); } && { |
8506 | test -z "$ac_c_werror_flag" || | |
8507 | test ! -s conftest.err | |
b145d876 ZK |
8508 | } && test -s conftest$ac_exeext && { |
8509 | test "$cross_compiling" = yes || | |
8510 | $as_test_x conftest$ac_exeext | |
8511 | }; then | |
ad6254c5 AK |
8512 | ac_cv_lib_m_pow=yes |
8513 | else | |
b145d876 | 8514 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
8516 | ||
7a197a62 | 8517 | ac_cv_lib_m_pow=no |
ad6254c5 | 8518 | fi |
7a197a62 | 8519 | |
b145d876 | 8520 | rm -rf conftest.dSYM |
25fbec5b | 8521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8522 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8523 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8524 | fi |
b145d876 ZK |
8525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8526 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8527 | if test $ac_cv_lib_m_pow = yes; then |
8528 | POW_LIB=-lm | |
8529 | else | |
b145d876 ZK |
8530 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8531 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8532 | fi |
72b2cb61 | 8533 | |
d0191583 | 8534 | fi |
72b2cb61 | 8535 | |
ad6254c5 AK |
8536 | fi |
8537 | ||
ad6254c5 | 8538 | |
d0191583 JM |
8539 | for ac_func in vprintf |
8540 | do | |
b145d876 ZK |
8541 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8542 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8543 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8544 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 8545 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8546 | else |
d0191583 JM |
8547 | cat >conftest.$ac_ext <<_ACEOF |
8548 | /* confdefs.h. */ | |
8549 | _ACEOF | |
8550 | cat confdefs.h >>conftest.$ac_ext | |
8551 | cat >>conftest.$ac_ext <<_ACEOF | |
8552 | /* end confdefs.h. */ | |
8553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8555 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8556 | |
d0191583 JM |
8557 | /* System header to define __stub macros and hopefully few prototypes, |
8558 | which can conflict with char $ac_func (); below. | |
8559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8560 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8561 | |
d0191583 JM |
8562 | #ifdef __STDC__ |
8563 | # include <limits.h> | |
8564 | #else | |
8565 | # include <assert.h> | |
8566 | #endif | |
ad6254c5 | 8567 | |
d0191583 | 8568 | #undef $ac_func |
72b2cb61 | 8569 | |
d0191583 JM |
8570 | /* Override any GCC internal prototype to avoid an error. |
8571 | Use char because int might match the return type of a GCC | |
8572 | builtin and then its argument prototype would still apply. */ | |
8573 | #ifdef __cplusplus | |
8574 | extern "C" | |
8575 | #endif | |
8576 | char $ac_func (); | |
8577 | /* The GNU C library defines this for functions which it implements | |
8578 | to always fail with ENOSYS. Some functions are actually named | |
8579 | something starting with __ and the normal name is an alias. */ | |
8580 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8581 | choke me | |
8582 | #endif | |
8583 | ||
8584 | int | |
8585 | main () | |
8586 | { | |
8587 | return $ac_func (); | |
8588 | ; | |
8589 | return 0; | |
8590 | } | |
72b2cb61 | 8591 | _ACEOF |
d0191583 JM |
8592 | rm -f conftest.$ac_objext conftest$ac_exeext |
8593 | if { (ac_try="$ac_link" | |
8594 | case "(($ac_try" in | |
8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8596 | *) ac_try_echo=$ac_try;; | |
8597 | esac | |
b145d876 ZK |
8598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8599 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8600 | (eval "$ac_link") 2>conftest.er1 |
8601 | ac_status=$? | |
8602 | grep -v '^ *+' conftest.er1 >conftest.err | |
8603 | rm -f conftest.er1 | |
8604 | cat conftest.err >&5 | |
b145d876 | 8605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8606 | (exit $ac_status); } && { |
8607 | test -z "$ac_c_werror_flag" || | |
8608 | test ! -s conftest.err | |
b145d876 ZK |
8609 | } && test -s conftest$ac_exeext && { |
8610 | test "$cross_compiling" = yes || | |
8611 | $as_test_x conftest$ac_exeext | |
8612 | }; then | |
d0191583 JM |
8613 | eval "$as_ac_var=yes" |
8614 | else | |
b145d876 | 8615 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8616 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8617 | |
d0191583 | 8618 | eval "$as_ac_var=no" |
ad6254c5 AK |
8619 | fi |
8620 | ||
b145d876 | 8621 | rm -rf conftest.dSYM |
d0191583 JM |
8622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8623 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8624 | fi |
b145d876 ZK |
8625 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8626 | $as_echo "$as_val"'` | |
8627 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8628 | $as_echo "$ac_res" >&6; } | |
8629 | if test `eval 'as_val=${'$as_ac_var'} | |
8630 | $as_echo "$as_val"'` = yes; then | |
d0191583 | 8631 | cat >>confdefs.h <<_ACEOF |
b145d876 | 8632 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8633 | _ACEOF |
7a197a62 | 8634 | |
b145d876 ZK |
8635 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8636 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8637 | if test "${ac_cv_func__doprnt+set}" = set; then |
b145d876 | 8638 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8639 | else |
d0191583 JM |
8640 | cat >conftest.$ac_ext <<_ACEOF |
8641 | /* confdefs.h. */ | |
8642 | _ACEOF | |
8643 | cat confdefs.h >>conftest.$ac_ext | |
8644 | cat >>conftest.$ac_ext <<_ACEOF | |
8645 | /* end confdefs.h. */ | |
8646 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8647 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8648 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8649 | |
d0191583 JM |
8650 | /* System header to define __stub macros and hopefully few prototypes, |
8651 | which can conflict with char _doprnt (); below. | |
8652 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8653 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8654 | |
d0191583 JM |
8655 | #ifdef __STDC__ |
8656 | # include <limits.h> | |
8657 | #else | |
8658 | # include <assert.h> | |
8659 | #endif | |
72b2cb61 | 8660 | |
d0191583 JM |
8661 | #undef _doprnt |
8662 | ||
8663 | /* Override any GCC internal prototype to avoid an error. | |
8664 | Use char because int might match the return type of a GCC | |
8665 | builtin and then its argument prototype would still apply. */ | |
8666 | #ifdef __cplusplus | |
8667 | extern "C" | |
8668 | #endif | |
8669 | char _doprnt (); | |
8670 | /* The GNU C library defines this for functions which it implements | |
8671 | to always fail with ENOSYS. Some functions are actually named | |
8672 | something starting with __ and the normal name is an alias. */ | |
8673 | #if defined __stub__doprnt || defined __stub____doprnt | |
8674 | choke me | |
8675 | #endif | |
8676 | ||
8677 | int | |
8678 | main () | |
8679 | { | |
8680 | return _doprnt (); | |
8681 | ; | |
8682 | return 0; | |
8683 | } | |
72b2cb61 | 8684 | _ACEOF |
d0191583 JM |
8685 | rm -f conftest.$ac_objext conftest$ac_exeext |
8686 | if { (ac_try="$ac_link" | |
8687 | case "(($ac_try" in | |
8688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8689 | *) ac_try_echo=$ac_try;; | |
8690 | esac | |
b145d876 ZK |
8691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8692 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8693 | (eval "$ac_link") 2>conftest.er1 |
8694 | ac_status=$? | |
8695 | grep -v '^ *+' conftest.er1 >conftest.err | |
8696 | rm -f conftest.er1 | |
8697 | cat conftest.err >&5 | |
b145d876 | 8698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8699 | (exit $ac_status); } && { |
8700 | test -z "$ac_c_werror_flag" || | |
8701 | test ! -s conftest.err | |
b145d876 ZK |
8702 | } && test -s conftest$ac_exeext && { |
8703 | test "$cross_compiling" = yes || | |
8704 | $as_test_x conftest$ac_exeext | |
8705 | }; then | |
d0191583 JM |
8706 | ac_cv_func__doprnt=yes |
8707 | else | |
b145d876 | 8708 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8709 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8710 | |
d0191583 | 8711 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8712 | fi |
8713 | ||
b145d876 | 8714 | rm -rf conftest.dSYM |
d0191583 JM |
8715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8716 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8717 | fi |
b145d876 ZK |
8718 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8719 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8720 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8721 | |
d0191583 JM |
8722 | cat >>confdefs.h <<\_ACEOF |
8723 | #define HAVE_DOPRNT 1 | |
8724 | _ACEOF | |
ad6254c5 | 8725 | |
7a197a62 AK |
8726 | fi |
8727 | ||
d0191583 JM |
8728 | fi |
8729 | done | |
8b1a3214 | 8730 | |
ad6254c5 | 8731 | |
7a197a62 | 8732 | |
d0191583 | 8733 | ################################################################################ |
ad6254c5 | 8734 | |
ad6254c5 AK |
8735 | |
8736 | ################################################################################ | |
b145d876 ZK |
8737 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8738 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8739 | OWNER="root" |
8740 | ||
8741 | ||
8742 | # Check whether --with-user was given. | |
8743 | if test "${with_user+set}" = set; then | |
8744 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8745 | fi |
8746 | ||
b145d876 ZK |
8747 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8748 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8749 | |
d0191583 JM |
8750 | if test x$OWNER != x; then |
8751 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8752 | fi |
8753 | ||
8754 | ################################################################################ | |
b145d876 ZK |
8755 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8756 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8757 | GROUP="root" |
ad6254c5 | 8758 | |
d0191583 JM |
8759 | # Check whether --with-group was given. |
8760 | if test "${with_group+set}" = set; then | |
8761 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8762 | fi |
8763 | ||
b145d876 ZK |
8764 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8765 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8766 | |
8767 | if test x$GROUP != x; then | |
8768 | GROUP="-g $GROUP" | |
8769 | fi | |
ad6254c5 AK |
8770 | |
8771 | ################################################################################ | |
b145d876 ZK |
8772 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8773 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8774 | # Check whether --enable-lvm1_fallback was given. |
8775 | if test "${enable_lvm1_fallback+set}" = set; then | |
8776 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8777 | else | |
8778 | LVM1_FALLBACK=no | |
7a197a62 AK |
8779 | fi |
8780 | ||
b145d876 ZK |
8781 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8782 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8783 | |
d0191583 | 8784 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8785 | |
8786 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8787 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8788 | _ACEOF |
8789 | ||
ad6254c5 AK |
8790 | fi |
8791 | ||
8792 | ################################################################################ | |
b145d876 ZK |
8793 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8794 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
8795 | |
8796 | # Check whether --with-lvm1 was given. | |
8797 | if test "${with_lvm1+set}" = set; then | |
8798 | withval=$with_lvm1; LVM1="$withval" | |
8799 | else | |
8800 | LVM1="internal" | |
7a197a62 AK |
8801 | fi |
8802 | ||
b145d876 ZK |
8803 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
8804 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 8805 | |
d0191583 | 8806 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
b145d876 | 8807 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8808 | " >&5 |
b145d876 | 8809 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8810 | " >&2;} |
8811 | { (exit 1); exit 1; }; } | |
8812 | fi; | |
8813 | ||
8814 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8815 | |
8816 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8817 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8818 | _ACEOF |
8819 | ||
ad6254c5 AK |
8820 | fi |
8821 | ||
8822 | ################################################################################ | |
b145d876 ZK |
8823 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8824 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
8825 | |
8826 | # Check whether --with-pool was given. | |
8827 | if test "${with_pool+set}" = set; then | |
8828 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8829 | else |
d0191583 | 8830 | POOL="internal" |
7a197a62 AK |
8831 | fi |
8832 | ||
b145d876 ZK |
8833 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
8834 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 8835 | |
d0191583 | 8836 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
b145d876 | 8837 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8838 | " >&5 |
b145d876 | 8839 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8840 | " >&2;} |
8841 | { (exit 1); exit 1; }; } | |
8842 | fi; | |
7a197a62 | 8843 | |
d0191583 JM |
8844 | if test x$POOL = xinternal; then |
8845 | ||
8846 | cat >>confdefs.h <<\_ACEOF | |
8847 | #define POOL_INTERNAL 1 | |
8848 | _ACEOF | |
8849 | ||
8850 | fi | |
ad6254c5 | 8851 | |
06f62ad1 | 8852 | ################################################################################ |
b145d876 ZK |
8853 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8854 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
8855 | |
8856 | # Check whether --with-cluster was given. | |
8857 | if test "${with_cluster+set}" = set; then | |
8858 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8859 | fi |
8860 | ||
b145d876 ZK |
8861 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8862 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 8863 | |
d0191583 | 8864 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
b145d876 | 8865 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8866 | " >&5 |
b145d876 | 8867 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8868 | " >&2;} |
8869 | { (exit 1); exit 1; }; } | |
d0191583 | 8870 | fi; |
06f62ad1 | 8871 | |
d0191583 | 8872 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8873 | |
8874 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8875 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8876 | _ACEOF |
8877 | ||
15d91f5a | 8878 | fi |
ad6254c5 AK |
8879 | |
8880 | ################################################################################ | |
b145d876 ZK |
8881 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8882 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 8883 | |
d0191583 JM |
8884 | # Check whether --with-snapshots was given. |
8885 | if test "${with_snapshots+set}" = set; then | |
8886 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8887 | else | |
8888 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8889 | fi |
8890 | ||
b145d876 ZK |
8891 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8892 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 8893 | |
d0191583 | 8894 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
b145d876 | 8895 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8896 | " >&5 |
b145d876 | 8897 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8898 | " >&2;} |
8899 | { (exit 1); exit 1; }; } | |
8900 | fi; | |
8901 | ||
8902 | if test x$SNAPSHOTS = xinternal; then | |
8903 | ||
8904 | cat >>confdefs.h <<\_ACEOF | |
8905 | #define SNAPSHOT_INTERNAL 1 | |
8906 | _ACEOF | |
ad6254c5 | 8907 | |
ad6254c5 | 8908 | fi |
7a197a62 | 8909 | |
d0191583 | 8910 | ################################################################################ |
b145d876 ZK |
8911 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8912 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
8913 | |
8914 | # Check whether --with-mirrors was given. | |
8915 | if test "${with_mirrors+set}" = set; then | |
8916 | withval=$with_mirrors; MIRRORS="$withval" | |
8917 | else | |
8918 | MIRRORS="internal" | |
ad6254c5 | 8919 | fi |
ad6254c5 | 8920 | |
b145d876 ZK |
8921 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8922 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 8923 | |
d0191583 | 8924 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
b145d876 | 8925 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8926 | " >&5 |
b145d876 | 8927 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8928 | " >&2;} |
8929 | { (exit 1); exit 1; }; } | |
8930 | fi; | |
ad6254c5 | 8931 | |
d0191583 | 8932 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8933 | |
d0191583 JM |
8934 | cat >>confdefs.h <<\_ACEOF |
8935 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8936 | _ACEOF |
8a2fc586 | 8937 | |
d0191583 | 8938 | fi |
8a2fc586 | 8939 | |
d0191583 | 8940 | ################################################################################ |
b145d876 ZK |
8941 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8942 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
8943 | # Check whether --enable-readline was given. |
8944 | if test "${enable_readline+set}" = set; then | |
8945 | enableval=$enable_readline; READLINE=$enableval | |
8946 | else | |
06e459df | 8947 | READLINE=maybe |
d0191583 | 8948 | fi |
8a2fc586 | 8949 | |
b145d876 ZK |
8950 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
8951 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 8952 | |
d0191583 | 8953 | ################################################################################ |
b145d876 ZK |
8954 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8955 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
8956 | # Check whether --enable-realtime was given. |
8957 | if test "${enable_realtime+set}" = set; then | |
8958 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8959 | fi |
ad6254c5 | 8960 | |
b145d876 ZK |
8961 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8962 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
8963 | |
8964 | ################################################################################ | |
b145d876 ZK |
8965 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8966 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
8967 | |
8968 | # Check whether --with-clvmd was given. | |
8969 | if test "${with_clvmd+set}" = set; then | |
8970 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8971 | else |
d0191583 JM |
8972 | CLVMD="none" |
8973 | fi | |
8a2fc586 | 8974 | |
d0191583 JM |
8975 | if test x$CLVMD = xyes; then |
8976 | CLVMD=all | |
8977 | fi | |
b145d876 ZK |
8978 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8979 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 8980 | |
d0191583 JM |
8981 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8982 | CLUSTER=internal | |
8983 | fi | |
8a2fc586 | 8984 | |
d0191583 | 8985 | ################################################################################ |
b145d876 ZK |
8986 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8987 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
8988 | # Check whether --enable-debug was given. |
8989 | if test "${enable_debug+set}" = set; then | |
8990 | enableval=$enable_debug; DEBUG=$enableval | |
8991 | else | |
8992 | DEBUG=no | |
8993 | fi | |
8a2fc586 | 8994 | |
b145d876 ZK |
8995 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8996 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 8997 | |
d0191583 JM |
8998 | if test x$DEBUG = xyes; then |
8999 | COPTIMISE_FLAG= | |
fc54be10 | 9000 | else |
d0191583 JM |
9001 | CSCOPE_CMD= |
9002 | fi | |
fc54be10 | 9003 | |
d0191583 | 9004 | ################################################################################ |
b145d876 ZK |
9005 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9006 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9007 | |
9008 | # Check whether --with-optimisation was given. | |
9009 | if test "${with_optimisation+set}" = set; then | |
9010 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9011 | fi | |
9012 | ||
b145d876 ZK |
9013 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9014 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9015 | |
9016 | ################################################################################ | |
b145d876 ZK |
9017 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9018 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9019 | # Check whether --enable-profiling was given. |
9020 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9021 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9022 | else |
5556819a | 9023 | PROFILING=no |
fddafd51 ZK |
9024 | fi |
9025 | ||
b145d876 ZK |
9026 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9027 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9028 | |
9029 | if test "x$PROFILING" = xyes; then | |
9030 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9031 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9032 | set dummy lcov; ac_word=$2 |
b145d876 ZK |
9033 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9034 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9035 | if test "${ac_cv_path_LCOV+set}" = set; then |
b145d876 | 9036 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9037 | else |
9038 | case $LCOV in | |
9039 | [\\/]* | ?:[\\/]*) | |
9040 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9041 | ;; | |
9042 | *) | |
9043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9044 | for as_dir in $PATH | |
9045 | do | |
9046 | IFS=$as_save_IFS | |
9047 | test -z "$as_dir" && as_dir=. | |
9048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9050 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
b145d876 | 9051 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9052 | break 2 |
9053 | fi | |
9054 | done | |
9055 | done | |
9056 | IFS=$as_save_IFS | |
9057 | ||
b145d876 | 9058 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9059 | ;; |
9060 | esac | |
9061 | fi | |
9062 | LCOV=$ac_cv_path_LCOV | |
9063 | if test -n "$LCOV"; then | |
b145d876 ZK |
9064 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9065 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9066 | else |
b145d876 ZK |
9067 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9068 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9069 | fi |
9070 | ||
9071 | ||
5556819a | 9072 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9073 | set dummy genhtml; ac_word=$2 |
b145d876 ZK |
9074 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9075 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9076 | if test "${ac_cv_path_GENHTML+set}" = set; then |
b145d876 | 9077 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9078 | else |
9079 | case $GENHTML in | |
9080 | [\\/]* | ?:[\\/]*) | |
9081 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9082 | ;; | |
9083 | *) | |
9084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9085 | for as_dir in $PATH | |
9086 | do | |
9087 | IFS=$as_save_IFS | |
9088 | test -z "$as_dir" && as_dir=. | |
9089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9091 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
b145d876 | 9092 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9093 | break 2 |
9094 | fi | |
9095 | done | |
9096 | done | |
9097 | IFS=$as_save_IFS | |
9098 | ||
b145d876 | 9099 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9100 | ;; |
9101 | esac | |
9102 | fi | |
9103 | GENHTML=$ac_cv_path_GENHTML | |
9104 | if test -n "$GENHTML"; then | |
b145d876 ZK |
9105 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9106 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9107 | else |
b145d876 ZK |
9108 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9109 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9110 | fi |
9111 | ||
9112 | ||
b145d876 ZK |
9113 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
9114 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 | |
9115 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
9116 | { (exit 1); exit 1; }; } | |
9117 | fi | |
5556819a | 9118 | fi |
d0191583 JM |
9119 | |
9120 | ################################################################################ | |
b145d876 ZK |
9121 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9122 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9123 | # Check whether --enable-devmapper was given. |
9124 | if test "${enable_devmapper+set}" = set; then | |
9125 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9126 | fi |
9127 | ||
b145d876 ZK |
9128 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9129 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9130 | |
9131 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9132 | |
9133 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9134 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9135 | _ACEOF |
9136 | ||
9137 | fi | |
9138 | ||
d0191583 | 9139 | ################################################################################ |
b145d876 ZK |
9140 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9141 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9142 | # Check whether --enable-o_direct was given. |
9143 | if test "${enable_o_direct+set}" = set; then | |
9144 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9145 | fi |
ad6254c5 | 9146 | |
b145d876 ZK |
9147 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9148 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9149 | |
d0191583 | 9150 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9151 | |
d0191583 JM |
9152 | cat >>confdefs.h <<\_ACEOF |
9153 | #define O_DIRECT_SUPPORT 1 | |
9154 | _ACEOF | |
ad6254c5 | 9155 | |
d0191583 | 9156 | fi |
ad6254c5 | 9157 | |
d0191583 | 9158 | ################################################################################ |
b145d876 ZK |
9159 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9160 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9161 | # Check whether --enable-cmdlib was given. |
9162 | if test "${enable_cmdlib+set}" = set; then | |
9163 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9164 | else |
d0191583 JM |
9165 | CMDLIB=no |
9166 | fi | |
8a2fc586 | 9167 | |
b145d876 ZK |
9168 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9169 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9170 | |
2a9a80c9 | 9171 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9172 | && LVM2CMD_LIB=-llvm2cmd \ |
9173 | || LVM2CMD_LIB= | |
9174 | ||
2a9a80c9 | 9175 | |
d0191583 | 9176 | ################################################################################ |
b145d876 ZK |
9177 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9178 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9179 | # Check whether --enable-fsadm was given. |
9180 | if test "${enable_fsadm+set}" = set; then | |
9181 | enableval=$enable_fsadm; FSADM=$enableval | |
9182 | fi | |
8a2fc586 | 9183 | |
b145d876 ZK |
9184 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9185 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9186 | |
d0191583 | 9187 | ################################################################################ |
b145d876 ZK |
9188 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9189 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9190 | # Check whether --enable-dmeventd was given. |
9191 | if test "${enable_dmeventd+set}" = set; then | |
9192 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9193 | fi | |
ad6254c5 | 9194 | |
b145d876 ZK |
9195 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9196 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9197 | |
2a9a80c9 PR |
9198 | if test x$DMEVENTD = xyes; then |
9199 | if test x$MIRRORS != xinternal; then | |
b145d876 | 9200 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9201 | " >&5 |
b145d876 | 9202 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9203 | " >&2;} |
d0191583 | 9204 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9205 | fi |
9206 | if test x$CMDLIB = xno; then | |
b145d876 | 9207 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9208 | " >&5 |
b145d876 | 9209 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9210 | " >&2;} |
9211 | { (exit 1); exit 1; }; } | |
9212 | fi | |
ad6254c5 | 9213 | fi |
7a197a62 | 9214 | |
d0191583 JM |
9215 | if test x$DMEVENTD = xyes; then |
9216 | ||
9217 | cat >>confdefs.h <<\_ACEOF | |
9218 | #define DMEVENTD 1 | |
ad6254c5 AK |
9219 | _ACEOF |
9220 | ||
ad6254c5 | 9221 | fi |
d0191583 JM |
9222 | ################################################################################ |
9223 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9224 | then exec_prefix=""; | |
9225 | fi; | |
ad6254c5 AK |
9226 | |
9227 | ################################################################################ | |
06e459df | 9228 | if test x$READLINE != xno; then |
b145d876 ZK |
9229 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9230 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 9231 | if test "${ac_cv_search_tgetent+set}" = set; then |
b145d876 | 9232 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9233 | else |
9234 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9235 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9236 | /* confdefs.h. */ |
9237 | _ACEOF | |
9238 | cat confdefs.h >>conftest.$ac_ext | |
9239 | cat >>conftest.$ac_ext <<_ACEOF | |
9240 | /* end confdefs.h. */ | |
9241 | ||
7a197a62 AK |
9242 | /* Override any GCC internal prototype to avoid an error. |
9243 | Use char because int might match the return type of a GCC | |
9244 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9245 | #ifdef __cplusplus |
9246 | extern "C" | |
9247 | #endif | |
ad6254c5 AK |
9248 | char tgetent (); |
9249 | int | |
9250 | main () | |
9251 | { | |
7a197a62 | 9252 | return tgetent (); |
ad6254c5 AK |
9253 | ; |
9254 | return 0; | |
9255 | } | |
9256 | _ACEOF | |
7a197a62 AK |
9257 | for ac_lib in '' ncurses curses termcap termlib; do |
9258 | if test -z "$ac_lib"; then | |
9259 | ac_res="none required" | |
9260 | else | |
9261 | ac_res=-l$ac_lib | |
9262 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9263 | fi | |
9264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9265 | if { (ac_try="$ac_link" | |
9266 | case "(($ac_try" in | |
9267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9268 | *) ac_try_echo=$ac_try;; | |
9269 | esac | |
b145d876 ZK |
9270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9271 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9272 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9273 | ac_status=$? |
8a2fc586 AK |
9274 | grep -v '^ *+' conftest.er1 >conftest.err |
9275 | rm -f conftest.er1 | |
9276 | cat conftest.err >&5 | |
b145d876 | 9277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9278 | (exit $ac_status); } && { |
9279 | test -z "$ac_c_werror_flag" || | |
9280 | test ! -s conftest.err | |
b145d876 ZK |
9281 | } && test -s conftest$ac_exeext && { |
9282 | test "$cross_compiling" = yes || | |
9283 | $as_test_x conftest$ac_exeext | |
9284 | }; then | |
7a197a62 | 9285 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9286 | else |
b145d876 | 9287 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9288 | sed 's/^/| /' conftest.$ac_ext >&5 |
9289 | ||
ad6254c5 | 9290 | |
7a197a62 | 9291 | fi |
ad6254c5 | 9292 | |
b145d876 | 9293 | rm -rf conftest.dSYM |
25fbec5b | 9294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
9295 | conftest$ac_exeext |
9296 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9297 | break | |
ad6254c5 | 9298 | fi |
7a197a62 AK |
9299 | done |
9300 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9301 | : | |
9302 | else | |
9303 | ac_cv_search_tgetent=no | |
ad6254c5 | 9304 | fi |
7a197a62 | 9305 | rm conftest.$ac_ext |
ad6254c5 AK |
9306 | LIBS=$ac_func_search_save_LIBS |
9307 | fi | |
b145d876 ZK |
9308 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9309 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9310 | ac_res=$ac_cv_search_tgetent |
9311 | if test "$ac_res" != no; then | |
9312 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 9313 | tg_found=yes |
ad6254c5 | 9314 | else |
06e459df JM |
9315 | tg_found=no |
9316 | fi | |
9317 | ||
9318 | test x$READLINE:$tg_found = xyes:no && | |
b145d876 | 9319 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9320 | --enable-readline option (which is enabled by default). Either disable readline |
9321 | support with --disable-readline or download and install termcap from: | |
9322 | ftp.gnu.org/gnu/termcap | |
9323 | Note: if you are using precompiled packages you will also need the development | |
9324 | package as well (which may be called termcap-devel or something similar). | |
9325 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9326 | not found either - but you could try installing that as well. | |
9327 | " >&5 | |
b145d876 | 9328 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9329 | --enable-readline option (which is enabled by default). Either disable readline |
9330 | support with --disable-readline or download and install termcap from: | |
9331 | ftp.gnu.org/gnu/termcap | |
9332 | Note: if you are using precompiled packages you will also need the development | |
9333 | package as well (which may be called termcap-devel or something similar). | |
9334 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9335 | not found either - but you could try installing that as well. | |
9336 | " >&2;} | |
9337 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
9338 | fi |
9339 | ||
9340 | ################################################################################ | |
b145d876 ZK |
9341 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9342 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 9343 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
b145d876 | 9344 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9345 | else |
9346 | ac_check_lib_save_LIBS=$LIBS | |
9347 | LIBS="-ldl $LIBS" | |
9348 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9349 | /* confdefs.h. */ |
9350 | _ACEOF | |
9351 | cat confdefs.h >>conftest.$ac_ext | |
9352 | cat >>conftest.$ac_ext <<_ACEOF | |
9353 | /* end confdefs.h. */ | |
9354 | ||
7a197a62 AK |
9355 | /* Override any GCC internal prototype to avoid an error. |
9356 | Use char because int might match the return type of a GCC | |
9357 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9358 | #ifdef __cplusplus |
9359 | extern "C" | |
9360 | #endif | |
ad6254c5 AK |
9361 | char dlopen (); |
9362 | int | |
9363 | main () | |
9364 | { | |
7a197a62 | 9365 | return dlopen (); |
ad6254c5 AK |
9366 | ; |
9367 | return 0; | |
9368 | } | |
9369 | _ACEOF | |
9370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9371 | if { (ac_try="$ac_link" |
9372 | case "(($ac_try" in | |
9373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9374 | *) ac_try_echo=$ac_try;; | |
9375 | esac | |
b145d876 ZK |
9376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9377 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9378 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9379 | ac_status=$? |
8a2fc586 AK |
9380 | grep -v '^ *+' conftest.er1 >conftest.err |
9381 | rm -f conftest.er1 | |
9382 | cat conftest.err >&5 | |
b145d876 | 9383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9384 | (exit $ac_status); } && { |
9385 | test -z "$ac_c_werror_flag" || | |
9386 | test ! -s conftest.err | |
b145d876 ZK |
9387 | } && test -s conftest$ac_exeext && { |
9388 | test "$cross_compiling" = yes || | |
9389 | $as_test_x conftest$ac_exeext | |
9390 | }; then | |
ad6254c5 AK |
9391 | ac_cv_lib_dl_dlopen=yes |
9392 | else | |
b145d876 | 9393 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9394 | sed 's/^/| /' conftest.$ac_ext >&5 |
9395 | ||
7a197a62 | 9396 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9397 | fi |
7a197a62 | 9398 | |
b145d876 | 9399 | rm -rf conftest.dSYM |
25fbec5b | 9400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9401 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9402 | LIBS=$ac_check_lib_save_LIBS |
9403 | fi | |
b145d876 ZK |
9404 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9405 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9406 | if test $ac_cv_lib_dl_dlopen = yes; then |
9407 | HAVE_LIBDL=yes | |
9408 | else | |
9409 | HAVE_LIBDL=no | |
9410 | fi | |
9411 | ||
9412 | ||
7e9e9502 | 9413 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9414 | |
9415 | cat >>confdefs.h <<\_ACEOF | |
9416 | #define HAVE_LIBDL 1 | |
9417 | _ACEOF | |
9418 | ||
ad6254c5 AK |
9419 | LIBS="-ldl $LIBS" |
9420 | else | |
9421 | HAVE_LIBDL=no | |
9422 | fi | |
9423 | ||
9424 | ################################################################################ | |
9425 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9426 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9427 | \) -a "x$STATIC_LINK" = xyes ]; | |
b145d876 | 9428 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9429 | " >&5 |
b145d876 | 9430 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9431 | " >&2;} |
9432 | { (exit 1); exit 1; }; } | |
9433 | fi | |
9434 | ||
d0191583 | 9435 | ################################################################################ |
b145d876 ZK |
9436 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9437 | $as_echo_n "checking whether to use static linking... " >&6; } | |
d0191583 JM |
9438 | # Check whether --enable-static_link was given. |
9439 | if test "${enable_static_link+set}" = set; then | |
9440 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9441 | else | |
9442 | STATIC_LINK=no | |
9443 | fi | |
9444 | ||
b145d876 ZK |
9445 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9446 | $as_echo "$STATIC_LINK" >&6; } | |
d0191583 JM |
9447 | |
9448 | ################################################################################ | |
b145d876 ZK |
9449 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9450 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
9451 | # Check whether --enable-selinux was given. |
9452 | if test "${enable_selinux+set}" = set; then | |
9453 | enableval=$enable_selinux; SELINUX=$enableval | |
9454 | fi | |
9455 | ||
b145d876 ZK |
9456 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9457 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 9458 | |
ad6254c5 AK |
9459 | ################################################################################ |
9460 | if test x$SELINUX = xyes; then | |
b145d876 ZK |
9461 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9462 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 9463 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
b145d876 | 9464 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
9465 | else |
9466 | ac_check_lib_save_LIBS=$LIBS | |
9467 | LIBS="-lsepol $LIBS" | |
9468 | cat >conftest.$ac_ext <<_ACEOF | |
9469 | /* confdefs.h. */ | |
9470 | _ACEOF | |
9471 | cat confdefs.h >>conftest.$ac_ext | |
9472 | cat >>conftest.$ac_ext <<_ACEOF | |
9473 | /* end confdefs.h. */ | |
9474 | ||
7a197a62 AK |
9475 | /* Override any GCC internal prototype to avoid an error. |
9476 | Use char because int might match the return type of a GCC | |
9477 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9478 | #ifdef __cplusplus |
9479 | extern "C" | |
9480 | #endif | |
8a2fc586 AK |
9481 | char sepol_check_context (); |
9482 | int | |
9483 | main () | |
9484 | { | |
7a197a62 | 9485 | return sepol_check_context (); |
8a2fc586 AK |
9486 | ; |
9487 | return 0; | |
9488 | } | |
9489 | _ACEOF | |
9490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9491 | if { (ac_try="$ac_link" |
9492 | case "(($ac_try" in | |
9493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9494 | *) ac_try_echo=$ac_try;; | |
9495 | esac | |
b145d876 ZK |
9496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9497 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9498 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9499 | ac_status=$? |
9500 | grep -v '^ *+' conftest.er1 >conftest.err | |
9501 | rm -f conftest.er1 | |
9502 | cat conftest.err >&5 | |
b145d876 | 9503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9504 | (exit $ac_status); } && { |
9505 | test -z "$ac_c_werror_flag" || | |
9506 | test ! -s conftest.err | |
b145d876 ZK |
9507 | } && test -s conftest$ac_exeext && { |
9508 | test "$cross_compiling" = yes || | |
9509 | $as_test_x conftest$ac_exeext | |
9510 | }; then | |
8a2fc586 AK |
9511 | ac_cv_lib_sepol_sepol_check_context=yes |
9512 | else | |
b145d876 | 9513 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9514 | sed 's/^/| /' conftest.$ac_ext >&5 |
9515 | ||
7a197a62 | 9516 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9517 | fi |
7a197a62 | 9518 | |
b145d876 | 9519 | rm -rf conftest.dSYM |
25fbec5b | 9520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9521 | conftest$ac_exeext conftest.$ac_ext |
9522 | LIBS=$ac_check_lib_save_LIBS | |
9523 | fi | |
b145d876 ZK |
9524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9525 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9526 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9527 | HAVE_SEPOL=yes | |
9528 | else | |
9529 | HAVE_SEPOL=no | |
9530 | fi | |
9531 | ||
8a2fc586 AK |
9532 | |
9533 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9534 | |
9535 | cat >>confdefs.h <<\_ACEOF | |
9536 | #define HAVE_SEPOL 1 | |
9537 | _ACEOF | |
9538 | ||
8a2fc586 AK |
9539 | LIBS="-lsepol $LIBS" |
9540 | fi | |
9541 | ||
b145d876 ZK |
9542 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9543 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 9544 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
b145d876 | 9545 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9546 | else |
9547 | ac_check_lib_save_LIBS=$LIBS | |
9548 | LIBS="-lselinux $LIBS" | |
9549 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9550 | /* confdefs.h. */ |
9551 | _ACEOF | |
9552 | cat confdefs.h >>conftest.$ac_ext | |
9553 | cat >>conftest.$ac_ext <<_ACEOF | |
9554 | /* end confdefs.h. */ | |
9555 | ||
7a197a62 AK |
9556 | /* Override any GCC internal prototype to avoid an error. |
9557 | Use char because int might match the return type of a GCC | |
9558 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9559 | #ifdef __cplusplus |
9560 | extern "C" | |
9561 | #endif | |
ad6254c5 AK |
9562 | char is_selinux_enabled (); |
9563 | int | |
9564 | main () | |
9565 | { | |
7a197a62 | 9566 | return is_selinux_enabled (); |
ad6254c5 AK |
9567 | ; |
9568 | return 0; | |
9569 | } | |
9570 | _ACEOF | |
9571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9572 | if { (ac_try="$ac_link" |
9573 | case "(($ac_try" in | |
9574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9575 | *) ac_try_echo=$ac_try;; | |
9576 | esac | |
b145d876 ZK |
9577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9578 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9579 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9580 | ac_status=$? |
8a2fc586 AK |
9581 | grep -v '^ *+' conftest.er1 >conftest.err |
9582 | rm -f conftest.er1 | |
9583 | cat conftest.err >&5 | |
b145d876 | 9584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9585 | (exit $ac_status); } && { |
9586 | test -z "$ac_c_werror_flag" || | |
9587 | test ! -s conftest.err | |
b145d876 ZK |
9588 | } && test -s conftest$ac_exeext && { |
9589 | test "$cross_compiling" = yes || | |
9590 | $as_test_x conftest$ac_exeext | |
9591 | }; then | |
ad6254c5 AK |
9592 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9593 | else | |
b145d876 | 9594 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9595 | sed 's/^/| /' conftest.$ac_ext >&5 |
9596 | ||
7a197a62 | 9597 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9598 | fi |
7a197a62 | 9599 | |
b145d876 | 9600 | rm -rf conftest.dSYM |
25fbec5b | 9601 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9602 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9603 | LIBS=$ac_check_lib_save_LIBS |
9604 | fi | |
b145d876 ZK |
9605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9606 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9607 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9608 | HAVE_SELINUX=yes | |
9609 | else | |
9610 | HAVE_SELINUX=no | |
9611 | fi | |
9612 | ||
ad6254c5 AK |
9613 | |
9614 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9615 | |
9616 | cat >>confdefs.h <<\_ACEOF | |
9617 | #define HAVE_SELINUX 1 | |
9618 | _ACEOF | |
9619 | ||
ad6254c5 AK |
9620 | LIBS="-lselinux $LIBS" |
9621 | else | |
b145d876 ZK |
9622 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9623 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9624 | fi |
9625 | ||
d0191583 | 9626 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9627 | # fails on at least Debian unstable due to unsatisfied references |
9628 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9629 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9630 | lvm_saved_libs=$LIBS | |
9631 | LIBS="$LIBS -static" | |
b145d876 ZK |
9632 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9633 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 9634 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
b145d876 | 9635 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
9636 | else |
9637 | ac_func_search_save_LIBS=$LIBS | |
9638 | cat >conftest.$ac_ext <<_ACEOF | |
9639 | /* confdefs.h. */ | |
9640 | _ACEOF | |
9641 | cat confdefs.h >>conftest.$ac_ext | |
9642 | cat >>conftest.$ac_ext <<_ACEOF | |
9643 | /* end confdefs.h. */ | |
9644 | ||
9645 | /* Override any GCC internal prototype to avoid an error. | |
9646 | Use char because int might match the return type of a GCC | |
9647 | builtin and then its argument prototype would still apply. */ | |
9648 | #ifdef __cplusplus | |
9649 | extern "C" | |
9650 | #endif | |
9651 | char pthread_mutex_lock (); | |
9652 | int | |
9653 | main () | |
9654 | { | |
9655 | return pthread_mutex_lock (); | |
9656 | ; | |
9657 | return 0; | |
9658 | } | |
9659 | _ACEOF | |
9660 | for ac_lib in '' pthread; do | |
9661 | if test -z "$ac_lib"; then | |
9662 | ac_res="none required" | |
9663 | else | |
9664 | ac_res=-l$ac_lib | |
9665 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9666 | fi | |
9667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9668 | if { (ac_try="$ac_link" | |
9669 | case "(($ac_try" in | |
9670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9671 | *) ac_try_echo=$ac_try;; | |
9672 | esac | |
b145d876 ZK |
9673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9674 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
9675 | (eval "$ac_link") 2>conftest.er1 |
9676 | ac_status=$? | |
9677 | grep -v '^ *+' conftest.er1 >conftest.err | |
9678 | rm -f conftest.er1 | |
9679 | cat conftest.err >&5 | |
b145d876 | 9680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9681 | (exit $ac_status); } && { |
9682 | test -z "$ac_c_werror_flag" || | |
9683 | test ! -s conftest.err | |
b145d876 ZK |
9684 | } && test -s conftest$ac_exeext && { |
9685 | test "$cross_compiling" = yes || | |
9686 | $as_test_x conftest$ac_exeext | |
9687 | }; then | |
66e941e8 JM |
9688 | ac_cv_search_pthread_mutex_lock=$ac_res |
9689 | else | |
b145d876 | 9690 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9691 | sed 's/^/| /' conftest.$ac_ext >&5 |
9692 | ||
9693 | ||
9694 | fi | |
9695 | ||
b145d876 | 9696 | rm -rf conftest.dSYM |
25fbec5b | 9697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9698 | conftest$ac_exeext |
9699 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9700 | break | |
9701 | fi | |
9702 | done | |
9703 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9704 | : | |
9705 | else | |
9706 | ac_cv_search_pthread_mutex_lock=no | |
9707 | fi | |
9708 | rm conftest.$ac_ext | |
9709 | LIBS=$ac_func_search_save_LIBS | |
9710 | fi | |
b145d876 ZK |
9711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9712 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9713 | ac_res=$ac_cv_search_pthread_mutex_lock |
9714 | if test "$ac_res" != no; then | |
9715 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9716 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9717 | LIB_PTHREAD=-lpthread | |
9718 | fi | |
9719 | ||
9720 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9721 | fi |
9722 | fi | |
9723 | ||
8b1a3214 AK |
9724 | ################################################################################ |
9725 | if test x$REALTIME = xyes; then | |
b145d876 ZK |
9726 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9727 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 9728 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
b145d876 | 9729 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
9730 | else |
9731 | ac_check_lib_save_LIBS=$LIBS | |
9732 | LIBS="-lrt $LIBS" | |
9733 | cat >conftest.$ac_ext <<_ACEOF | |
9734 | /* confdefs.h. */ | |
9735 | _ACEOF | |
9736 | cat confdefs.h >>conftest.$ac_ext | |
9737 | cat >>conftest.$ac_ext <<_ACEOF | |
9738 | /* end confdefs.h. */ | |
9739 | ||
7a197a62 AK |
9740 | /* Override any GCC internal prototype to avoid an error. |
9741 | Use char because int might match the return type of a GCC | |
9742 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9743 | #ifdef __cplusplus |
9744 | extern "C" | |
9745 | #endif | |
8b1a3214 AK |
9746 | char clock_gettime (); |
9747 | int | |
9748 | main () | |
9749 | { | |
7a197a62 | 9750 | return clock_gettime (); |
8b1a3214 AK |
9751 | ; |
9752 | return 0; | |
9753 | } | |
9754 | _ACEOF | |
9755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9756 | if { (ac_try="$ac_link" |
9757 | case "(($ac_try" in | |
9758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9759 | *) ac_try_echo=$ac_try;; | |
9760 | esac | |
b145d876 ZK |
9761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9762 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9763 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9764 | ac_status=$? |
9765 | grep -v '^ *+' conftest.er1 >conftest.err | |
9766 | rm -f conftest.er1 | |
9767 | cat conftest.err >&5 | |
b145d876 | 9768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9769 | (exit $ac_status); } && { |
9770 | test -z "$ac_c_werror_flag" || | |
9771 | test ! -s conftest.err | |
b145d876 ZK |
9772 | } && test -s conftest$ac_exeext && { |
9773 | test "$cross_compiling" = yes || | |
9774 | $as_test_x conftest$ac_exeext | |
9775 | }; then | |
8b1a3214 AK |
9776 | ac_cv_lib_rt_clock_gettime=yes |
9777 | else | |
b145d876 | 9778 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
9780 | ||
7a197a62 | 9781 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9782 | fi |
7a197a62 | 9783 | |
b145d876 | 9784 | rm -rf conftest.dSYM |
25fbec5b | 9785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9786 | conftest$ac_exeext conftest.$ac_ext |
9787 | LIBS=$ac_check_lib_save_LIBS | |
9788 | fi | |
b145d876 ZK |
9789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9790 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9791 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9792 | HAVE_REALTIME=yes | |
9793 | else | |
9794 | HAVE_REALTIME=no | |
9795 | fi | |
9796 | ||
8b1a3214 AK |
9797 | |
9798 | if test x$HAVE_REALTIME = xyes; then | |
9799 | ||
9800 | cat >>confdefs.h <<\_ACEOF | |
9801 | #define HAVE_REALTIME 1 | |
9802 | _ACEOF | |
9803 | ||
9804 | LIBS="-lrt $LIBS" | |
9805 | else | |
b145d876 ZK |
9806 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9807 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9808 | fi |
9809 | fi | |
9810 | ||
ad6254c5 AK |
9811 | ################################################################################ |
9812 | ||
9813 | for ac_header in getopt.h | |
9814 | do | |
b145d876 | 9815 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
9817 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9818 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 9820 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9821 | fi |
b145d876 ZK |
9822 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9823 | $as_echo "$as_val"'` | |
9824 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9825 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9826 | else |
9827 | # Is the header compilable? | |
b145d876 ZK |
9828 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9829 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9830 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9831 | /* confdefs.h. */ |
9832 | _ACEOF | |
9833 | cat confdefs.h >>conftest.$ac_ext | |
9834 | cat >>conftest.$ac_ext <<_ACEOF | |
9835 | /* end confdefs.h. */ | |
9836 | $ac_includes_default | |
9837 | #include <$ac_header> | |
9838 | _ACEOF | |
9839 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9840 | if { (ac_try="$ac_compile" |
9841 | case "(($ac_try" in | |
9842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9843 | *) ac_try_echo=$ac_try;; | |
9844 | esac | |
b145d876 ZK |
9845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9846 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9847 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9848 | ac_status=$? |
8a2fc586 AK |
9849 | grep -v '^ *+' conftest.er1 >conftest.err |
9850 | rm -f conftest.er1 | |
9851 | cat conftest.err >&5 | |
b145d876 | 9852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9853 | (exit $ac_status); } && { |
9854 | test -z "$ac_c_werror_flag" || | |
9855 | test ! -s conftest.err | |
9856 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9857 | ac_header_compiler=yes |
9858 | else | |
b145d876 | 9859 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
9861 | ||
7a197a62 | 9862 | ac_header_compiler=no |
ad6254c5 | 9863 | fi |
7a197a62 AK |
9864 | |
9865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
9866 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9867 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9868 | |
9869 | # Is the header present? | |
b145d876 ZK |
9870 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9871 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9872 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9873 | /* confdefs.h. */ |
9874 | _ACEOF | |
9875 | cat confdefs.h >>conftest.$ac_ext | |
9876 | cat >>conftest.$ac_ext <<_ACEOF | |
9877 | /* end confdefs.h. */ | |
9878 | #include <$ac_header> | |
9879 | _ACEOF | |
7a197a62 AK |
9880 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9881 | case "(($ac_try" in | |
9882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9883 | *) ac_try_echo=$ac_try;; | |
9884 | esac | |
b145d876 ZK |
9885 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9886 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9887 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9888 | ac_status=$? |
9889 | grep -v '^ *+' conftest.er1 >conftest.err | |
9890 | rm -f conftest.er1 | |
9891 | cat conftest.err >&5 | |
b145d876 | 9892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9893 | (exit $ac_status); } >/dev/null && { |
9894 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9895 | test ! -s conftest.err | |
9896 | }; then | |
ad6254c5 AK |
9897 | ac_header_preproc=yes |
9898 | else | |
b145d876 | 9899 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9900 | sed 's/^/| /' conftest.$ac_ext >&5 |
9901 | ||
9902 | ac_header_preproc=no | |
9903 | fi | |
7a197a62 | 9904 | |
ad6254c5 | 9905 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
9906 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9907 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9908 | |
9909 | # So? What about this header? | |
8a2fc586 AK |
9910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9911 | yes:no: ) | |
b145d876 ZK |
9912 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9913 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9915 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9916 | ac_header_preproc=yes |
ad6254c5 | 9917 | ;; |
8a2fc586 | 9918 | no:yes:* ) |
b145d876 ZK |
9919 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9920 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9922 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9923 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9924 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9925 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9926 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9927 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9928 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9929 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9930 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9931 | |
ad6254c5 AK |
9932 | ;; |
9933 | esac | |
b145d876 ZK |
9934 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9935 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 9937 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9938 | else |
8a2fc586 | 9939 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9940 | fi |
b145d876 ZK |
9941 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9942 | $as_echo "$as_val"'` | |
9943 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9944 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9945 | |
9946 | fi | |
b145d876 ZK |
9947 | if test `eval 'as_val=${'$as_ac_Header'} |
9948 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 9949 | cat >>confdefs.h <<_ACEOF |
b145d876 | 9950 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9951 | _ACEOF |
72b2cb61 AK |
9952 | |
9953 | cat >>confdefs.h <<\_ACEOF | |
9954 | #define HAVE_GETOPTLONG 1 | |
9955 | _ACEOF | |
9956 | ||
ad6254c5 AK |
9957 | fi |
9958 | ||
9959 | done | |
9960 | ||
9961 | ||
9962 | ################################################################################ | |
06e459df | 9963 | if test x$READLINE != xno; then |
bc1024f8 JM |
9964 | rl_found=yes |
9965 | ||
b145d876 ZK |
9966 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9967 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 9968 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
b145d876 | 9969 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9970 | else |
9971 | ac_check_lib_save_LIBS=$LIBS | |
9972 | LIBS="-lreadline $LIBS" | |
9973 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9974 | /* confdefs.h. */ |
9975 | _ACEOF | |
9976 | cat confdefs.h >>conftest.$ac_ext | |
9977 | cat >>conftest.$ac_ext <<_ACEOF | |
9978 | /* end confdefs.h. */ | |
9979 | ||
7a197a62 AK |
9980 | /* Override any GCC internal prototype to avoid an error. |
9981 | Use char because int might match the return type of a GCC | |
9982 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9983 | #ifdef __cplusplus |
9984 | extern "C" | |
9985 | #endif | |
ad6254c5 AK |
9986 | char readline (); |
9987 | int | |
9988 | main () | |
9989 | { | |
7a197a62 | 9990 | return readline (); |
ad6254c5 AK |
9991 | ; |
9992 | return 0; | |
9993 | } | |
9994 | _ACEOF | |
9995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9996 | if { (ac_try="$ac_link" |
9997 | case "(($ac_try" in | |
9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9999 | *) ac_try_echo=$ac_try;; | |
10000 | esac | |
b145d876 ZK |
10001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10002 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10003 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10004 | ac_status=$? |
8a2fc586 AK |
10005 | grep -v '^ *+' conftest.er1 >conftest.err |
10006 | rm -f conftest.er1 | |
10007 | cat conftest.err >&5 | |
b145d876 | 10008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10009 | (exit $ac_status); } && { |
10010 | test -z "$ac_c_werror_flag" || | |
10011 | test ! -s conftest.err | |
b145d876 ZK |
10012 | } && test -s conftest$ac_exeext && { |
10013 | test "$cross_compiling" = yes || | |
10014 | $as_test_x conftest$ac_exeext | |
10015 | }; then | |
ad6254c5 AK |
10016 | ac_cv_lib_readline_readline=yes |
10017 | else | |
b145d876 | 10018 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10019 | sed 's/^/| /' conftest.$ac_ext >&5 |
10020 | ||
7a197a62 | 10021 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10022 | fi |
7a197a62 | 10023 | |
b145d876 | 10024 | rm -rf conftest.dSYM |
25fbec5b | 10025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10026 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10027 | LIBS=$ac_check_lib_save_LIBS |
10028 | fi | |
b145d876 ZK |
10029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10030 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 10031 | if test $ac_cv_lib_readline_readline = yes; then |
bc1024f8 JM |
10032 | cat >>confdefs.h <<_ACEOF |
10033 | #define HAVE_LIBREADLINE 1 | |
10034 | _ACEOF | |
10035 | ||
10036 | LIBS="-lreadline $LIBS" | |
10037 | ||
ad6254c5 | 10038 | else |
06e459df JM |
10039 | rl_found=no |
10040 | fi | |
10041 | ||
10042 | test x$READLINE:$rl_found = xyes:no && | |
b145d876 | 10043 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10044 | --enable-readline option (which is enabled by default). Either disable readline |
10045 | support with --disable-readline or download and install readline from: | |
10046 | ftp.gnu.org/gnu/readline | |
10047 | Note: if you are using precompiled packages you will also need the development | |
10048 | package as well (which may be called readline-devel or something similar). | |
10049 | " >&5 | |
b145d876 | 10050 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10051 | --enable-readline option (which is enabled by default). Either disable readline |
10052 | support with --disable-readline or download and install readline from: | |
10053 | ftp.gnu.org/gnu/readline | |
10054 | Note: if you are using precompiled packages you will also need the development | |
10055 | package as well (which may be called readline-devel or something similar). | |
10056 | " >&2;} | |
10057 | { (exit 1); exit 1; }; } | |
06e459df | 10058 | if test $rl_found = yes; then |
bc1024f8 JM |
10059 | |
10060 | for ac_func in rl_completion_matches | |
10061 | do | |
b145d876 ZK |
10062 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10063 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10064 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10065 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10066 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10067 | else |
10068 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10069 | /* confdefs.h. */ |
10070 | _ACEOF | |
10071 | cat confdefs.h >>conftest.$ac_ext | |
10072 | cat >>conftest.$ac_ext <<_ACEOF | |
10073 | /* end confdefs.h. */ | |
bc1024f8 | 10074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10076 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10077 | |
ad6254c5 | 10078 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10079 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10081 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10082 | |
ad6254c5 AK |
10083 | #ifdef __STDC__ |
10084 | # include <limits.h> | |
10085 | #else | |
10086 | # include <assert.h> | |
10087 | #endif | |
8a2fc586 | 10088 | |
bc1024f8 | 10089 | #undef $ac_func |
8a2fc586 | 10090 | |
7a197a62 AK |
10091 | /* Override any GCC internal prototype to avoid an error. |
10092 | Use char because int might match the return type of a GCC | |
10093 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10094 | #ifdef __cplusplus |
10095 | extern "C" | |
ad6254c5 | 10096 | #endif |
bc1024f8 | 10097 | char $ac_func (); |
ad6254c5 AK |
10098 | /* The GNU C library defines this for functions which it implements |
10099 | to always fail with ENOSYS. Some functions are actually named | |
10100 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10101 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10102 | choke me |
ad6254c5 AK |
10103 | #endif |
10104 | ||
10105 | int | |
10106 | main () | |
10107 | { | |
bc1024f8 | 10108 | return $ac_func (); |
ad6254c5 AK |
10109 | ; |
10110 | return 0; | |
10111 | } | |
10112 | _ACEOF | |
10113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10114 | if { (ac_try="$ac_link" |
10115 | case "(($ac_try" in | |
10116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10117 | *) ac_try_echo=$ac_try;; | |
10118 | esac | |
b145d876 ZK |
10119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10120 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10121 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10122 | ac_status=$? |
8a2fc586 AK |
10123 | grep -v '^ *+' conftest.er1 >conftest.err |
10124 | rm -f conftest.er1 | |
10125 | cat conftest.err >&5 | |
b145d876 | 10126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10127 | (exit $ac_status); } && { |
10128 | test -z "$ac_c_werror_flag" || | |
10129 | test ! -s conftest.err | |
b145d876 ZK |
10130 | } && test -s conftest$ac_exeext && { |
10131 | test "$cross_compiling" = yes || | |
10132 | $as_test_x conftest$ac_exeext | |
10133 | }; then | |
bc1024f8 | 10134 | eval "$as_ac_var=yes" |
ad6254c5 | 10135 | else |
b145d876 | 10136 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10137 | sed 's/^/| /' conftest.$ac_ext >&5 |
10138 | ||
bc1024f8 | 10139 | eval "$as_ac_var=no" |
ad6254c5 | 10140 | fi |
7a197a62 | 10141 | |
b145d876 | 10142 | rm -rf conftest.dSYM |
25fbec5b | 10143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10144 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10145 | fi |
b145d876 ZK |
10146 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10147 | $as_echo "$as_val"'` | |
10148 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10149 | $as_echo "$ac_res" >&6; } | |
10150 | if test `eval 'as_val=${'$as_ac_var'} | |
10151 | $as_echo "$as_val"'` = yes; then | |
bc1024f8 | 10152 | cat >>confdefs.h <<_ACEOF |
b145d876 | 10153 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10154 | _ACEOF |
10155 | ||
10156 | fi | |
bc1024f8 | 10157 | done |
ad6254c5 | 10158 | |
d179cc7a JM |
10159 | |
10160 | cat >>confdefs.h <<\_ACEOF | |
10161 | #define READLINE_SUPPORT 1 | |
10162 | _ACEOF | |
10163 | ||
06e459df | 10164 | fi |
ad6254c5 AK |
10165 | fi |
10166 | ||
10167 | ################################################################################ | |
b145d876 ZK |
10168 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10169 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10170 | # Check whether --enable-nls was given. |
ad6254c5 | 10171 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10172 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10173 | else |
10174 | INTL=no | |
7a197a62 AK |
10175 | fi |
10176 | ||
b145d876 ZK |
10177 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10178 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10179 | |
10180 | if test x$INTL = xyes; then | |
10181 | INTL_PACKAGE="lvm2" | |
10182 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10183 | set dummy msgfmt; ac_word=$2 | |
b145d876 ZK |
10184 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10185 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10186 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
b145d876 | 10187 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10188 | else |
10189 | case $MSGFMT in | |
10190 | [\\/]* | ?:[\\/]*) | |
10191 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10192 | ;; | |
10193 | *) | |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10195 | for as_dir in $PATH | |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
10199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10201 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
b145d876 | 10202 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10203 | break 2 |
10204 | fi | |
10205 | done | |
10206 | done | |
7a197a62 | 10207 | IFS=$as_save_IFS |
ad6254c5 AK |
10208 | |
10209 | ;; | |
10210 | esac | |
10211 | fi | |
10212 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10213 | if test -n "$MSGFMT"; then |
b145d876 ZK |
10214 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10215 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10216 | else |
b145d876 ZK |
10217 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10218 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10219 | fi |
10220 | ||
7a197a62 | 10221 | |
ad6254c5 | 10222 | if [ "x$MSGFMT" == x ]; |
b145d876 | 10223 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10224 | " >&5 |
b145d876 | 10225 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10226 | " >&2;} |
10227 | { (exit 1); exit 1; }; } | |
10228 | fi; | |
10229 | ||
10230 | ||
7a197a62 | 10231 | # Check whether --with-localedir was given. |
ad6254c5 | 10232 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10233 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10234 | else |
10235 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10236 | fi |
10237 | ||
ad6254c5 AK |
10238 | fi |
10239 | ||
10240 | ################################################################################ | |
10241 | ||
7a197a62 | 10242 | # Check whether --with-confdir was given. |
ad6254c5 | 10243 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10244 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10245 | else |
10246 | CONFDIR='/etc' | |
7a197a62 AK |
10247 | fi |
10248 | ||
ad6254c5 AK |
10249 | |
10250 | ||
7a197a62 | 10251 | # Check whether --with-staticdir was given. |
ad6254c5 | 10252 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10253 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10254 | else |
10255 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10256 | fi |
ad6254c5 | 10257 | |
33f732c5 | 10258 | |
7a197a62 AK |
10259 | |
10260 | # Check whether --with-dmdir was given. | |
33f732c5 | 10261 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 10262 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
10263 | else |
10264 | DMDIR= | |
7a197a62 AK |
10265 | fi |
10266 | ||
33f732c5 | 10267 | |
09339e2b | 10268 | # Convert a relative dir name to absolute. |
25fbec5b AK |
10269 | case $DMDIR in |
10270 | /*) ;; | |
10271 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
10272 | esac |
10273 | ||
ad6254c5 AK |
10274 | ################################################################################ |
10275 | if test x$READLINE = xyes; then | |
10276 | ||
10277 | ||
10278 | for ac_header in readline/readline.h readline/history.h | |
10279 | do | |
b145d876 | 10280 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
10282 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10283 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10285 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10286 | fi |
b145d876 ZK |
10287 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10288 | $as_echo "$as_val"'` | |
10289 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10290 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10291 | else |
10292 | # Is the header compilable? | |
b145d876 ZK |
10293 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10294 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10295 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10296 | /* confdefs.h. */ |
10297 | _ACEOF | |
10298 | cat confdefs.h >>conftest.$ac_ext | |
10299 | cat >>conftest.$ac_ext <<_ACEOF | |
10300 | /* end confdefs.h. */ | |
10301 | $ac_includes_default | |
10302 | #include <$ac_header> | |
10303 | _ACEOF | |
10304 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10305 | if { (ac_try="$ac_compile" |
10306 | case "(($ac_try" in | |
10307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10308 | *) ac_try_echo=$ac_try;; | |
10309 | esac | |
b145d876 ZK |
10310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10311 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10312 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10313 | ac_status=$? |
8a2fc586 AK |
10314 | grep -v '^ *+' conftest.er1 >conftest.err |
10315 | rm -f conftest.er1 | |
10316 | cat conftest.err >&5 | |
b145d876 | 10317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10318 | (exit $ac_status); } && { |
10319 | test -z "$ac_c_werror_flag" || | |
10320 | test ! -s conftest.err | |
10321 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10322 | ac_header_compiler=yes |
10323 | else | |
b145d876 | 10324 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10325 | sed 's/^/| /' conftest.$ac_ext >&5 |
10326 | ||
7a197a62 | 10327 | ac_header_compiler=no |
ad6254c5 | 10328 | fi |
7a197a62 AK |
10329 | |
10330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
10331 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10332 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10333 | |
10334 | # Is the header present? | |
b145d876 ZK |
10335 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10336 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10337 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10338 | /* confdefs.h. */ |
10339 | _ACEOF | |
10340 | cat confdefs.h >>conftest.$ac_ext | |
10341 | cat >>conftest.$ac_ext <<_ACEOF | |
10342 | /* end confdefs.h. */ | |
10343 | #include <$ac_header> | |
10344 | _ACEOF | |
7a197a62 AK |
10345 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10346 | case "(($ac_try" in | |
10347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10348 | *) ac_try_echo=$ac_try;; | |
10349 | esac | |
b145d876 ZK |
10350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10351 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10352 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10353 | ac_status=$? |
10354 | grep -v '^ *+' conftest.er1 >conftest.err | |
10355 | rm -f conftest.er1 | |
10356 | cat conftest.err >&5 | |
b145d876 | 10357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10358 | (exit $ac_status); } >/dev/null && { |
10359 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10360 | test ! -s conftest.err | |
10361 | }; then | |
ad6254c5 AK |
10362 | ac_header_preproc=yes |
10363 | else | |
b145d876 | 10364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10365 | sed 's/^/| /' conftest.$ac_ext >&5 |
10366 | ||
10367 | ac_header_preproc=no | |
10368 | fi | |
7a197a62 | 10369 | |
ad6254c5 | 10370 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
10371 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10372 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10373 | |
10374 | # So? What about this header? | |
8a2fc586 AK |
10375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10376 | yes:no: ) | |
b145d876 ZK |
10377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10378 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10380 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10381 | ac_header_preproc=yes |
ad6254c5 | 10382 | ;; |
8a2fc586 | 10383 | no:yes:* ) |
b145d876 ZK |
10384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10385 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10387 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10389 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10391 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10393 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10395 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10396 | |
ad6254c5 AK |
10397 | ;; |
10398 | esac | |
b145d876 ZK |
10399 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10400 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10401 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10402 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10403 | else |
8a2fc586 | 10404 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10405 | fi |
b145d876 ZK |
10406 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10407 | $as_echo "$as_val"'` | |
10408 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10409 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10410 | |
10411 | fi | |
b145d876 ZK |
10412 | if test `eval 'as_val=${'$as_ac_Header'} |
10413 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10414 | cat >>confdefs.h <<_ACEOF |
b145d876 | 10415 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10416 | _ACEOF |
10417 | ||
10418 | else | |
b145d876 ZK |
10419 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10420 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10421 | { (exit 1); exit 1; }; } |
10422 | fi | |
10423 | ||
10424 | done | |
10425 | ||
10426 | fi | |
10427 | ||
5c7fc7c4 | 10428 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10429 | |
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | 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 | |
10440 | do | |
b145d876 | 10441 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
10443 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10444 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10446 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10447 | fi |
b145d876 ZK |
10448 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10449 | $as_echo "$as_val"'` | |
10450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10451 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10452 | else |
10453 | # Is the header compilable? | |
b145d876 ZK |
10454 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10455 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10456 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10457 | /* confdefs.h. */ |
10458 | _ACEOF | |
10459 | cat confdefs.h >>conftest.$ac_ext | |
10460 | cat >>conftest.$ac_ext <<_ACEOF | |
10461 | /* end confdefs.h. */ | |
10462 | $ac_includes_default | |
10463 | #include <$ac_header> | |
10464 | _ACEOF | |
10465 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10466 | if { (ac_try="$ac_compile" |
10467 | case "(($ac_try" in | |
10468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10469 | *) ac_try_echo=$ac_try;; | |
10470 | esac | |
b145d876 ZK |
10471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10472 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10473 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10474 | ac_status=$? |
8a2fc586 AK |
10475 | grep -v '^ *+' conftest.er1 >conftest.err |
10476 | rm -f conftest.er1 | |
10477 | cat conftest.err >&5 | |
b145d876 | 10478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10479 | (exit $ac_status); } && { |
10480 | test -z "$ac_c_werror_flag" || | |
10481 | test ! -s conftest.err | |
10482 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10483 | ac_header_compiler=yes |
10484 | else | |
b145d876 | 10485 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10486 | sed 's/^/| /' conftest.$ac_ext >&5 |
10487 | ||
7a197a62 | 10488 | ac_header_compiler=no |
ad6254c5 | 10489 | fi |
7a197a62 AK |
10490 | |
10491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
10492 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10493 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10494 | |
10495 | # Is the header present? | |
b145d876 ZK |
10496 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10497 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10498 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10499 | /* confdefs.h. */ |
10500 | _ACEOF | |
10501 | cat confdefs.h >>conftest.$ac_ext | |
10502 | cat >>conftest.$ac_ext <<_ACEOF | |
10503 | /* end confdefs.h. */ | |
10504 | #include <$ac_header> | |
10505 | _ACEOF | |
7a197a62 AK |
10506 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10507 | case "(($ac_try" in | |
10508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10509 | *) ac_try_echo=$ac_try;; | |
10510 | esac | |
b145d876 ZK |
10511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10512 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10514 | ac_status=$? |
10515 | grep -v '^ *+' conftest.er1 >conftest.err | |
10516 | rm -f conftest.er1 | |
10517 | cat conftest.err >&5 | |
b145d876 | 10518 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10519 | (exit $ac_status); } >/dev/null && { |
10520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10521 | test ! -s conftest.err | |
10522 | }; then | |
ad6254c5 AK |
10523 | ac_header_preproc=yes |
10524 | else | |
b145d876 | 10525 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10526 | sed 's/^/| /' conftest.$ac_ext >&5 |
10527 | ||
10528 | ac_header_preproc=no | |
10529 | fi | |
7a197a62 | 10530 | |
ad6254c5 | 10531 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
10532 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10533 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10534 | |
10535 | # So? What about this header? | |
8a2fc586 AK |
10536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10537 | yes:no: ) | |
b145d876 ZK |
10538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10539 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10541 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10542 | ac_header_preproc=yes |
ad6254c5 | 10543 | ;; |
8a2fc586 | 10544 | no:yes:* ) |
b145d876 ZK |
10545 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10546 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10548 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10550 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10552 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10554 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10556 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10557 | |
ad6254c5 AK |
10558 | ;; |
10559 | esac | |
b145d876 ZK |
10560 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10561 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10563 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10564 | else |
8a2fc586 | 10565 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10566 | fi |
b145d876 ZK |
10567 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10568 | $as_echo "$as_val"'` | |
10569 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10570 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10571 | |
10572 | fi | |
b145d876 ZK |
10573 | if test `eval 'as_val=${'$as_ac_Header'} |
10574 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10575 | cat >>confdefs.h <<_ACEOF |
b145d876 | 10576 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10577 | _ACEOF |
10578 | ||
10579 | else | |
b145d876 ZK |
10580 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10581 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10582 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10583 | fi |
10584 | ||
ad6254c5 AK |
10585 | done |
10586 | ||
10587 | ||
795ca3e5 | 10588 | |
8106cdd5 | 10589 | |
ad6254c5 AK |
10590 | |
10591 | ||
10592 | for ac_func in dup2 getmntent memmove select socket | |
10593 | do | |
b145d876 ZK |
10594 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10595 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10596 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10597 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10598 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 10599 | else |
ad6254c5 | 10600 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10601 | /* confdefs.h. */ |
10602 | _ACEOF | |
10603 | cat confdefs.h >>conftest.$ac_ext | |
10604 | cat >>conftest.$ac_ext <<_ACEOF | |
10605 | /* end confdefs.h. */ | |
8a2fc586 AK |
10606 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10608 | #define $ac_func innocuous_$ac_func | |
10609 | ||
795ca3e5 | 10610 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10611 | which can conflict with char $ac_func (); below. |
10612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10613 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10614 | |
ad6254c5 AK |
10615 | #ifdef __STDC__ |
10616 | # include <limits.h> | |
10617 | #else | |
10618 | # include <assert.h> | |
10619 | #endif | |
8a2fc586 AK |
10620 | |
10621 | #undef $ac_func | |
10622 | ||
7a197a62 AK |
10623 | /* Override any GCC internal prototype to avoid an error. |
10624 | Use char because int might match the return type of a GCC | |
10625 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10626 | #ifdef __cplusplus |
10627 | extern "C" | |
ad6254c5 | 10628 | #endif |
ad6254c5 | 10629 | char $ac_func (); |
795ca3e5 AK |
10630 | /* The GNU C library defines this for functions which it implements |
10631 | to always fail with ENOSYS. Some functions are actually named | |
10632 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10633 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10634 | choke me |
795ca3e5 AK |
10635 | #endif |
10636 | ||
ad6254c5 AK |
10637 | int |
10638 | main () | |
10639 | { | |
7a197a62 | 10640 | return $ac_func (); |
ad6254c5 AK |
10641 | ; |
10642 | return 0; | |
10643 | } | |
10644 | _ACEOF | |
10645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10646 | if { (ac_try="$ac_link" |
10647 | case "(($ac_try" in | |
10648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10649 | *) ac_try_echo=$ac_try;; | |
10650 | esac | |
b145d876 ZK |
10651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10652 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10653 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10654 | ac_status=$? |
8a2fc586 AK |
10655 | grep -v '^ *+' conftest.er1 >conftest.err |
10656 | rm -f conftest.er1 | |
10657 | cat conftest.err >&5 | |
b145d876 | 10658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10659 | (exit $ac_status); } && { |
10660 | test -z "$ac_c_werror_flag" || | |
10661 | test ! -s conftest.err | |
b145d876 ZK |
10662 | } && test -s conftest$ac_exeext && { |
10663 | test "$cross_compiling" = yes || | |
10664 | $as_test_x conftest$ac_exeext | |
10665 | }; then | |
ad6254c5 | 10666 | eval "$as_ac_var=yes" |
795ca3e5 | 10667 | else |
b145d876 | 10668 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10669 | sed 's/^/| /' conftest.$ac_ext >&5 |
10670 | ||
7a197a62 | 10671 | eval "$as_ac_var=no" |
80992638 | 10672 | fi |
7a197a62 | 10673 | |
b145d876 | 10674 | rm -rf conftest.dSYM |
25fbec5b | 10675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10676 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10677 | fi |
b145d876 ZK |
10678 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10679 | $as_echo "$as_val"'` | |
10680 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10681 | $as_echo "$ac_res" >&6; } | |
10682 | if test `eval 'as_val=${'$as_ac_var'} | |
10683 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10684 | cat >>confdefs.h <<_ACEOF |
b145d876 | 10685 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10686 | _ACEOF |
80992638 AK |
10687 | |
10688 | else | |
b145d876 ZK |
10689 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
10690 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10691 | { (exit 1); exit 1; }; } |
8106cdd5 | 10692 | fi |
ad6254c5 | 10693 | done |
795ca3e5 | 10694 | |
25fbec5b AK |
10695 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10696 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
b145d876 ZK |
10697 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10698 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 10699 | if test "${ac_cv_search_getmntent+set}" = set; then |
b145d876 | 10700 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
10701 | else |
10702 | ac_func_search_save_LIBS=$LIBS | |
10703 | cat >conftest.$ac_ext <<_ACEOF | |
10704 | /* confdefs.h. */ | |
10705 | _ACEOF | |
10706 | cat confdefs.h >>conftest.$ac_ext | |
10707 | cat >>conftest.$ac_ext <<_ACEOF | |
10708 | /* end confdefs.h. */ | |
80992638 | 10709 | |
7a197a62 AK |
10710 | /* Override any GCC internal prototype to avoid an error. |
10711 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10712 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10713 | #ifdef __cplusplus |
10714 | extern "C" | |
10715 | #endif | |
25fbec5b | 10716 | char getmntent (); |
ad6254c5 AK |
10717 | int |
10718 | main () | |
10719 | { | |
25fbec5b | 10720 | return getmntent (); |
ad6254c5 AK |
10721 | ; |
10722 | return 0; | |
10723 | } | |
10724 | _ACEOF | |
25fbec5b AK |
10725 | for ac_lib in '' sun seq gen; do |
10726 | if test -z "$ac_lib"; then | |
10727 | ac_res="none required" | |
10728 | else | |
10729 | ac_res=-l$ac_lib | |
10730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10731 | fi | |
10732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10733 | if { (ac_try="$ac_link" |
10734 | case "(($ac_try" in | |
10735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10736 | *) ac_try_echo=$ac_try;; | |
10737 | esac | |
b145d876 ZK |
10738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10739 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10740 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10741 | ac_status=$? |
8a2fc586 AK |
10742 | grep -v '^ *+' conftest.er1 >conftest.err |
10743 | rm -f conftest.er1 | |
10744 | cat conftest.err >&5 | |
b145d876 | 10745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10746 | (exit $ac_status); } && { |
10747 | test -z "$ac_c_werror_flag" || | |
10748 | test ! -s conftest.err | |
b145d876 ZK |
10749 | } && test -s conftest$ac_exeext && { |
10750 | test "$cross_compiling" = yes || | |
10751 | $as_test_x conftest$ac_exeext | |
10752 | }; then | |
25fbec5b | 10753 | ac_cv_search_getmntent=$ac_res |
80992638 | 10754 | else |
b145d876 | 10755 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10756 | sed 's/^/| /' conftest.$ac_ext >&5 |
10757 | ||
25fbec5b | 10758 | |
795ca3e5 AK |
10759 | fi |
10760 | ||
b145d876 | 10761 | rm -rf conftest.dSYM |
25fbec5b AK |
10762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10763 | conftest$ac_exeext | |
10764 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10765 | break | |
795ca3e5 | 10766 | fi |
25fbec5b AK |
10767 | done |
10768 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10769 | : | |
10770 | else | |
10771 | ac_cv_search_getmntent=no | |
10772 | fi | |
10773 | rm conftest.$ac_ext | |
10774 | LIBS=$ac_func_search_save_LIBS | |
10775 | fi | |
b145d876 ZK |
10776 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10777 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10778 | ac_res=$ac_cv_search_getmntent |
10779 | if test "$ac_res" != no; then | |
10780 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10781 | ac_cv_func_getmntent=yes | |
10782 | ||
10783 | cat >>confdefs.h <<\_ACEOF | |
2a9a80c9 | 10784 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 10785 | _ACEOF |
795ca3e5 | 10786 | |
25fbec5b AK |
10787 | else |
10788 | ac_cv_func_getmntent=no | |
795ca3e5 | 10789 | fi |
795ca3e5 AK |
10790 | |
10791 | ||
ad6254c5 AK |
10792 | # AC_FUNC_REALLOC |
10793 | ||
10794 | ||
10795 | for ac_header in sys/select.h sys/socket.h | |
10796 | do | |
b145d876 | 10797 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10798 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
10799 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10800 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10801 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10802 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10803 | fi |
b145d876 ZK |
10804 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10805 | $as_echo "$as_val"'` | |
10806 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10807 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 10808 | else |
ad6254c5 | 10809 | # Is the header compilable? |
b145d876 ZK |
10810 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10811 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10812 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10813 | /* confdefs.h. */ |
10814 | _ACEOF | |
10815 | cat confdefs.h >>conftest.$ac_ext | |
10816 | cat >>conftest.$ac_ext <<_ACEOF | |
10817 | /* end confdefs.h. */ | |
10818 | $ac_includes_default | |
10819 | #include <$ac_header> | |
10820 | _ACEOF | |
10821 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10822 | if { (ac_try="$ac_compile" |
10823 | case "(($ac_try" in | |
10824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10825 | *) ac_try_echo=$ac_try;; | |
10826 | esac | |
b145d876 ZK |
10827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10828 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10829 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10830 | ac_status=$? |
8a2fc586 AK |
10831 | grep -v '^ *+' conftest.er1 >conftest.err |
10832 | rm -f conftest.er1 | |
10833 | cat conftest.err >&5 | |
b145d876 | 10834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10835 | (exit $ac_status); } && { |
10836 | test -z "$ac_c_werror_flag" || | |
10837 | test ! -s conftest.err | |
10838 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10839 | ac_header_compiler=yes |
80992638 | 10840 | else |
b145d876 | 10841 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10842 | sed 's/^/| /' conftest.$ac_ext >&5 |
10843 | ||
7a197a62 | 10844 | ac_header_compiler=no |
ad6254c5 | 10845 | fi |
7a197a62 AK |
10846 | |
10847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
10848 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10849 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10850 | |
10851 | # Is the header present? | |
b145d876 ZK |
10852 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10853 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10854 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10855 | /* confdefs.h. */ |
10856 | _ACEOF | |
10857 | cat confdefs.h >>conftest.$ac_ext | |
10858 | cat >>conftest.$ac_ext <<_ACEOF | |
10859 | /* end confdefs.h. */ | |
10860 | #include <$ac_header> | |
10861 | _ACEOF | |
7a197a62 AK |
10862 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10863 | case "(($ac_try" in | |
10864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10865 | *) ac_try_echo=$ac_try;; | |
10866 | esac | |
b145d876 ZK |
10867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10868 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10869 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10870 | ac_status=$? |
10871 | grep -v '^ *+' conftest.er1 >conftest.err | |
10872 | rm -f conftest.er1 | |
10873 | cat conftest.err >&5 | |
b145d876 | 10874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10875 | (exit $ac_status); } >/dev/null && { |
10876 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10877 | test ! -s conftest.err | |
10878 | }; then | |
ad6254c5 AK |
10879 | ac_header_preproc=yes |
10880 | else | |
b145d876 | 10881 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10882 | sed 's/^/| /' conftest.$ac_ext >&5 |
10883 | ||
10884 | ac_header_preproc=no | |
10885 | fi | |
7a197a62 | 10886 | |
ad6254c5 | 10887 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
10888 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10889 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10890 | |
10891 | # So? What about this header? | |
8a2fc586 AK |
10892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10893 | yes:no: ) | |
b145d876 ZK |
10894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10895 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10897 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10898 | ac_header_preproc=yes |
ad6254c5 | 10899 | ;; |
8a2fc586 | 10900 | no:yes:* ) |
b145d876 ZK |
10901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10902 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10904 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10906 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10908 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10910 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10912 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10913 | |
ad6254c5 AK |
10914 | ;; |
10915 | esac | |
b145d876 ZK |
10916 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10917 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 10919 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10920 | else |
8a2fc586 | 10921 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10922 | fi |
b145d876 ZK |
10923 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10924 | $as_echo "$as_val"'` | |
10925 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10926 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 10927 | |
795ca3e5 | 10928 | fi |
b145d876 ZK |
10929 | if test `eval 'as_val=${'$as_ac_Header'} |
10930 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 10931 | cat >>confdefs.h <<_ACEOF |
b145d876 | 10932 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10933 | _ACEOF |
10934 | ||
795ca3e5 AK |
10935 | fi |
10936 | ||
ad6254c5 AK |
10937 | done |
10938 | ||
b145d876 ZK |
10939 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10940 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 10941 | if test "${ac_cv_func_select_args+set}" = set; then |
b145d876 | 10942 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 10943 | else |
ad6254c5 | 10944 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10945 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10946 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10947 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10948 | /* confdefs.h. */ |
10949 | _ACEOF | |
10950 | cat confdefs.h >>conftest.$ac_ext | |
10951 | cat >>conftest.$ac_ext <<_ACEOF | |
10952 | /* end confdefs.h. */ | |
10953 | $ac_includes_default | |
25fbec5b | 10954 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10955 | # include <sys/select.h> |
10956 | #endif | |
25fbec5b | 10957 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10958 | # include <sys/socket.h> |
10959 | #endif | |
10960 | ||
10961 | int | |
10962 | main () | |
10963 | { | |
10964 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10965 | $ac_arg234, $ac_arg234, $ac_arg234, |
10966 | $ac_arg5); | |
ad6254c5 AK |
10967 | ; |
10968 | return 0; | |
10969 | } | |
10970 | _ACEOF | |
10971 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10972 | if { (ac_try="$ac_compile" |
10973 | case "(($ac_try" in | |
10974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10975 | *) ac_try_echo=$ac_try;; | |
10976 | esac | |
b145d876 ZK |
10977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10979 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10980 | ac_status=$? |
8a2fc586 AK |
10981 | grep -v '^ *+' conftest.er1 >conftest.err |
10982 | rm -f conftest.er1 | |
10983 | cat conftest.err >&5 | |
b145d876 | 10984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10985 | (exit $ac_status); } && { |
10986 | test -z "$ac_c_werror_flag" || | |
10987 | test ! -s conftest.err | |
10988 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10989 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10990 | else | |
b145d876 | 10991 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10992 | sed 's/^/| /' conftest.$ac_ext >&5 |
10993 | ||
7a197a62 | 10994 | |
ad6254c5 | 10995 | fi |
7a197a62 AK |
10996 | |
10997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10998 | done |
10999 | done | |
11000 | done | |
11001 | # Provide a safe default value. | |
11002 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11003 | ||
26e7f2e0 | 11004 | fi |
b145d876 ZK |
11005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11006 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11007 | ac_save_IFS=$IFS; IFS=',' |
11008 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11009 | IFS=$ac_save_IFS | |
11010 | shift | |
11011 | ||
11012 | cat >>confdefs.h <<_ACEOF | |
11013 | #define SELECT_TYPE_ARG1 $1 | |
11014 | _ACEOF | |
11015 | ||
11016 | ||
11017 | cat >>confdefs.h <<_ACEOF | |
11018 | #define SELECT_TYPE_ARG234 ($2) | |
11019 | _ACEOF | |
11020 | ||
11021 | ||
11022 | cat >>confdefs.h <<_ACEOF | |
11023 | #define SELECT_TYPE_ARG5 ($3) | |
11024 | _ACEOF | |
11025 | ||
80992638 | 11026 | rm -f conftest* |
80992638 | 11027 | |
8106cdd5 | 11028 | fi |
ad6254c5 | 11029 | |
ad6254c5 AK |
11030 | if test x$CLUSTER != xnone; then |
11031 | ||
11032 | ||
11033 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11034 | do |
b145d876 | 11035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
11037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11038 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11040 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11041 | fi |
b145d876 ZK |
11042 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11043 | $as_echo "$as_val"'` | |
11044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11045 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11046 | else |
11047 | # Is the header compilable? | |
b145d876 ZK |
11048 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11049 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11050 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11051 | /* confdefs.h. */ |
11052 | _ACEOF | |
11053 | cat confdefs.h >>conftest.$ac_ext | |
11054 | cat >>conftest.$ac_ext <<_ACEOF | |
11055 | /* end confdefs.h. */ | |
11056 | $ac_includes_default | |
11057 | #include <$ac_header> | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11060 | if { (ac_try="$ac_compile" |
11061 | case "(($ac_try" in | |
11062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11063 | *) ac_try_echo=$ac_try;; | |
11064 | esac | |
b145d876 ZK |
11065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11066 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11067 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11068 | ac_status=$? |
8a2fc586 AK |
11069 | grep -v '^ *+' conftest.er1 >conftest.err |
11070 | rm -f conftest.er1 | |
11071 | cat conftest.err >&5 | |
b145d876 | 11072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11073 | (exit $ac_status); } && { |
11074 | test -z "$ac_c_werror_flag" || | |
11075 | test ! -s conftest.err | |
11076 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11077 | ac_header_compiler=yes |
11078 | else | |
b145d876 | 11079 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11080 | sed 's/^/| /' conftest.$ac_ext >&5 |
11081 | ||
7a197a62 | 11082 | ac_header_compiler=no |
ad6254c5 | 11083 | fi |
7a197a62 AK |
11084 | |
11085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
11086 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11087 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11088 | |
11089 | # Is the header present? | |
b145d876 ZK |
11090 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11091 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11092 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11093 | /* confdefs.h. */ |
11094 | _ACEOF | |
11095 | cat confdefs.h >>conftest.$ac_ext | |
11096 | cat >>conftest.$ac_ext <<_ACEOF | |
11097 | /* end confdefs.h. */ | |
11098 | #include <$ac_header> | |
11099 | _ACEOF | |
7a197a62 AK |
11100 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11101 | case "(($ac_try" in | |
11102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11103 | *) ac_try_echo=$ac_try;; | |
11104 | esac | |
b145d876 ZK |
11105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11106 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11108 | ac_status=$? |
11109 | grep -v '^ *+' conftest.er1 >conftest.err | |
11110 | rm -f conftest.er1 | |
11111 | cat conftest.err >&5 | |
b145d876 | 11112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11113 | (exit $ac_status); } >/dev/null && { |
11114 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11115 | test ! -s conftest.err | |
11116 | }; then | |
ad6254c5 AK |
11117 | ac_header_preproc=yes |
11118 | else | |
b145d876 | 11119 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11120 | sed 's/^/| /' conftest.$ac_ext >&5 |
11121 | ||
11122 | ac_header_preproc=no | |
11123 | fi | |
7a197a62 | 11124 | |
ad6254c5 | 11125 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
11126 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11127 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11128 | |
11129 | # So? What about this header? | |
8a2fc586 AK |
11130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11131 | yes:no: ) | |
b145d876 ZK |
11132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11133 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11135 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11136 | ac_header_preproc=yes |
ad6254c5 | 11137 | ;; |
8a2fc586 | 11138 | no:yes:* ) |
b145d876 ZK |
11139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11140 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11142 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11144 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11146 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11147 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11148 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11149 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11150 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11151 | |
ad6254c5 AK |
11152 | ;; |
11153 | esac | |
b145d876 ZK |
11154 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11155 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11157 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11158 | else |
8a2fc586 | 11159 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11160 | fi |
b145d876 ZK |
11161 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11162 | $as_echo "$as_val"'` | |
11163 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11164 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11165 | |
11166 | fi | |
b145d876 ZK |
11167 | if test `eval 'as_val=${'$as_ac_Header'} |
11168 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11169 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11170 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11171 | _ACEOF |
11172 | ||
80992638 | 11173 | else |
b145d876 ZK |
11174 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11175 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11176 | { (exit 1); exit 1; }; } |
b896caa1 | 11177 | fi |
ad6254c5 | 11178 | |
b896caa1 AK |
11179 | done |
11180 | ||
11181 | ||
ad6254c5 AK |
11182 | for ac_func in socket |
11183 | do | |
b145d876 ZK |
11184 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11185 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11186 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11187 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11188 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11189 | else |
ad6254c5 | 11190 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11191 | /* confdefs.h. */ |
11192 | _ACEOF | |
11193 | cat confdefs.h >>conftest.$ac_ext | |
11194 | cat >>conftest.$ac_ext <<_ACEOF | |
11195 | /* end confdefs.h. */ | |
8a2fc586 AK |
11196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11198 | #define $ac_func innocuous_$ac_func | |
11199 | ||
ad6254c5 AK |
11200 | /* System header to define __stub macros and hopefully few prototypes, |
11201 | which can conflict with char $ac_func (); below. | |
11202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11203 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11204 | |
ad6254c5 AK |
11205 | #ifdef __STDC__ |
11206 | # include <limits.h> | |
11207 | #else | |
11208 | # include <assert.h> | |
11209 | #endif | |
8a2fc586 AK |
11210 | |
11211 | #undef $ac_func | |
11212 | ||
7a197a62 AK |
11213 | /* Override any GCC internal prototype to avoid an error. |
11214 | Use char because int might match the return type of a GCC | |
11215 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11216 | #ifdef __cplusplus |
11217 | extern "C" | |
ad6254c5 | 11218 | #endif |
ad6254c5 AK |
11219 | char $ac_func (); |
11220 | /* The GNU C library defines this for functions which it implements | |
11221 | to always fail with ENOSYS. Some functions are actually named | |
11222 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11223 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11224 | choke me |
ad6254c5 AK |
11225 | #endif |
11226 | ||
11227 | int | |
11228 | main () | |
11229 | { | |
7a197a62 | 11230 | return $ac_func (); |
ad6254c5 AK |
11231 | ; |
11232 | return 0; | |
11233 | } | |
11234 | _ACEOF | |
11235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11236 | if { (ac_try="$ac_link" |
11237 | case "(($ac_try" in | |
11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11239 | *) ac_try_echo=$ac_try;; | |
11240 | esac | |
b145d876 ZK |
11241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11242 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11243 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11244 | ac_status=$? |
8a2fc586 AK |
11245 | grep -v '^ *+' conftest.er1 >conftest.err |
11246 | rm -f conftest.er1 | |
11247 | cat conftest.err >&5 | |
b145d876 | 11248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11249 | (exit $ac_status); } && { |
11250 | test -z "$ac_c_werror_flag" || | |
11251 | test ! -s conftest.err | |
b145d876 ZK |
11252 | } && test -s conftest$ac_exeext && { |
11253 | test "$cross_compiling" = yes || | |
11254 | $as_test_x conftest$ac_exeext | |
11255 | }; then | |
ad6254c5 AK |
11256 | eval "$as_ac_var=yes" |
11257 | else | |
b145d876 | 11258 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
11260 | ||
7a197a62 | 11261 | eval "$as_ac_var=no" |
ad6254c5 | 11262 | fi |
7a197a62 | 11263 | |
b145d876 | 11264 | rm -rf conftest.dSYM |
25fbec5b | 11265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11266 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11267 | fi |
b145d876 ZK |
11268 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11269 | $as_echo "$as_val"'` | |
11270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11271 | $as_echo "$ac_res" >&6; } | |
11272 | if test `eval 'as_val=${'$as_ac_var'} | |
11273 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11274 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11275 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11276 | _ACEOF |
11277 | ||
11278 | else | |
b145d876 ZK |
11279 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11280 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11281 | { (exit 1); exit 1; }; } |
11282 | fi | |
11283 | done | |
11284 | ||
11285 | fi | |
11286 | ||
11287 | if test x$HAVE_LIBDL = xyes; then | |
11288 | ||
11289 | for ac_header in dlfcn.h | |
11290 | do | |
b145d876 | 11291 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
11293 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11294 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11295 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11296 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11297 | fi |
b145d876 ZK |
11298 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11299 | $as_echo "$as_val"'` | |
11300 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11301 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11302 | else |
11303 | # Is the header compilable? | |
b145d876 ZK |
11304 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11305 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11306 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11307 | /* confdefs.h. */ |
11308 | _ACEOF | |
11309 | cat confdefs.h >>conftest.$ac_ext | |
11310 | cat >>conftest.$ac_ext <<_ACEOF | |
11311 | /* end confdefs.h. */ | |
11312 | $ac_includes_default | |
11313 | #include <$ac_header> | |
11314 | _ACEOF | |
11315 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11316 | if { (ac_try="$ac_compile" |
11317 | case "(($ac_try" in | |
11318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11319 | *) ac_try_echo=$ac_try;; | |
11320 | esac | |
b145d876 ZK |
11321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11322 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11323 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11324 | ac_status=$? |
8a2fc586 AK |
11325 | grep -v '^ *+' conftest.er1 >conftest.err |
11326 | rm -f conftest.er1 | |
11327 | cat conftest.err >&5 | |
b145d876 | 11328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11329 | (exit $ac_status); } && { |
11330 | test -z "$ac_c_werror_flag" || | |
11331 | test ! -s conftest.err | |
11332 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11333 | ac_header_compiler=yes |
11334 | else | |
b145d876 | 11335 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
11337 | ||
7a197a62 | 11338 | ac_header_compiler=no |
ad6254c5 | 11339 | fi |
7a197a62 AK |
11340 | |
11341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
11342 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11343 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11344 | |
11345 | # Is the header present? | |
b145d876 ZK |
11346 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11347 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11348 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11349 | /* confdefs.h. */ |
11350 | _ACEOF | |
11351 | cat confdefs.h >>conftest.$ac_ext | |
11352 | cat >>conftest.$ac_ext <<_ACEOF | |
11353 | /* end confdefs.h. */ | |
11354 | #include <$ac_header> | |
11355 | _ACEOF | |
7a197a62 AK |
11356 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11357 | case "(($ac_try" in | |
11358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11359 | *) ac_try_echo=$ac_try;; | |
11360 | esac | |
b145d876 ZK |
11361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11362 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11364 | ac_status=$? |
11365 | grep -v '^ *+' conftest.er1 >conftest.err | |
11366 | rm -f conftest.er1 | |
11367 | cat conftest.err >&5 | |
b145d876 | 11368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11369 | (exit $ac_status); } >/dev/null && { |
11370 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11371 | test ! -s conftest.err | |
11372 | }; then | |
ad6254c5 AK |
11373 | ac_header_preproc=yes |
11374 | else | |
b145d876 | 11375 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11376 | sed 's/^/| /' conftest.$ac_ext >&5 |
11377 | ||
11378 | ac_header_preproc=no | |
11379 | fi | |
7a197a62 | 11380 | |
ad6254c5 | 11381 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
11382 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11383 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11384 | |
11385 | # So? What about this header? | |
8a2fc586 AK |
11386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11387 | yes:no: ) | |
b145d876 ZK |
11388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11389 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11391 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11392 | ac_header_preproc=yes |
ad6254c5 | 11393 | ;; |
8a2fc586 | 11394 | no:yes:* ) |
b145d876 ZK |
11395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11396 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11397 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11398 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11399 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11400 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11401 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11402 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11404 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11406 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11407 | |
ad6254c5 AK |
11408 | ;; |
11409 | esac | |
b145d876 ZK |
11410 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11411 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11413 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11414 | else |
8a2fc586 | 11415 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11416 | fi |
b145d876 ZK |
11417 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11418 | $as_echo "$as_val"'` | |
11419 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11420 | $as_echo "$ac_res" >&6; } | |
80992638 | 11421 | |
8106cdd5 | 11422 | fi |
b145d876 ZK |
11423 | if test `eval 'as_val=${'$as_ac_Header'} |
11424 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11425 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11426 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11427 | _ACEOF |
795ca3e5 AK |
11428 | |
11429 | else | |
b145d876 ZK |
11430 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11431 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11432 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11433 | fi |
11434 | ||
ad6254c5 | 11435 | done |
80992638 | 11436 | |
ad6254c5 | 11437 | fi |
80992638 | 11438 | |
ad6254c5 | 11439 | if test x$INTL = xyes; then |
83912faa | 11440 | |
ad6254c5 AK |
11441 | for ac_header in libintl.h |
11442 | do | |
b145d876 | 11443 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
11445 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11446 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11447 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11448 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11449 | fi |
b145d876 ZK |
11450 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11451 | $as_echo "$as_val"'` | |
11452 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11453 | $as_echo "$ac_res" >&6; } | |
83912faa | 11454 | else |
ad6254c5 | 11455 | # Is the header compilable? |
b145d876 ZK |
11456 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11457 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11458 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11459 | /* confdefs.h. */ |
11460 | _ACEOF | |
11461 | cat confdefs.h >>conftest.$ac_ext | |
11462 | cat >>conftest.$ac_ext <<_ACEOF | |
11463 | /* end confdefs.h. */ | |
11464 | $ac_includes_default | |
11465 | #include <$ac_header> | |
11466 | _ACEOF | |
11467 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11468 | if { (ac_try="$ac_compile" |
11469 | case "(($ac_try" in | |
11470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11471 | *) ac_try_echo=$ac_try;; | |
11472 | esac | |
b145d876 ZK |
11473 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11474 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11475 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11476 | ac_status=$? |
8a2fc586 AK |
11477 | grep -v '^ *+' conftest.er1 >conftest.err |
11478 | rm -f conftest.er1 | |
11479 | cat conftest.err >&5 | |
b145d876 | 11480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11481 | (exit $ac_status); } && { |
11482 | test -z "$ac_c_werror_flag" || | |
11483 | test ! -s conftest.err | |
11484 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11485 | ac_header_compiler=yes |
11486 | else | |
b145d876 | 11487 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11488 | sed 's/^/| /' conftest.$ac_ext >&5 |
11489 | ||
7a197a62 | 11490 | ac_header_compiler=no |
ad6254c5 | 11491 | fi |
7a197a62 AK |
11492 | |
11493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
11494 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11495 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11496 | |
11497 | # Is the header present? | |
b145d876 ZK |
11498 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11499 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11500 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11501 | /* confdefs.h. */ |
11502 | _ACEOF | |
11503 | cat confdefs.h >>conftest.$ac_ext | |
11504 | cat >>conftest.$ac_ext <<_ACEOF | |
11505 | /* end confdefs.h. */ | |
11506 | #include <$ac_header> | |
11507 | _ACEOF | |
7a197a62 AK |
11508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11509 | case "(($ac_try" in | |
11510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11511 | *) ac_try_echo=$ac_try;; | |
11512 | esac | |
b145d876 ZK |
11513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11514 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11516 | ac_status=$? |
11517 | grep -v '^ *+' conftest.er1 >conftest.err | |
11518 | rm -f conftest.er1 | |
11519 | cat conftest.err >&5 | |
b145d876 | 11520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11521 | (exit $ac_status); } >/dev/null && { |
11522 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11523 | test ! -s conftest.err | |
11524 | }; then | |
ad6254c5 AK |
11525 | ac_header_preproc=yes |
11526 | else | |
b145d876 | 11527 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11528 | sed 's/^/| /' conftest.$ac_ext >&5 |
11529 | ||
11530 | ac_header_preproc=no | |
11531 | fi | |
7a197a62 | 11532 | |
ad6254c5 | 11533 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
11534 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11535 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11536 | |
11537 | # So? What about this header? | |
8a2fc586 AK |
11538 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11539 | yes:no: ) | |
b145d876 ZK |
11540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11541 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11543 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11544 | ac_header_preproc=yes |
ad6254c5 | 11545 | ;; |
8a2fc586 | 11546 | no:yes:* ) |
b145d876 ZK |
11547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11548 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11550 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11552 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11554 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11556 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11558 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11559 | |
ad6254c5 AK |
11560 | ;; |
11561 | esac | |
b145d876 ZK |
11562 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11563 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11565 | $as_echo_n "(cached) " >&6 |
80992638 | 11566 | else |
8a2fc586 | 11567 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11568 | fi |
b145d876 ZK |
11569 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11570 | $as_echo "$as_val"'` | |
11571 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11572 | $as_echo "$ac_res" >&6; } | |
83912faa | 11573 | |
69792976 | 11574 | fi |
b145d876 ZK |
11575 | if test `eval 'as_val=${'$as_ac_Header'} |
11576 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11577 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11578 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11579 | _ACEOF |
69792976 | 11580 | |
69792976 | 11581 | else |
b145d876 ZK |
11582 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11583 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11584 | { (exit 1); exit 1; }; } |
80992638 AK |
11585 | fi |
11586 | ||
ad6254c5 | 11587 | done |
69792976 | 11588 | |
ad6254c5 AK |
11589 | fi |
11590 | ||
ad6254c5 AK |
11591 | |
11592 | for ac_header in libdevmapper.h | |
11593 | do | |
b145d876 | 11594 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
11596 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11597 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11599 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11600 | fi |
b145d876 ZK |
11601 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11602 | $as_echo "$as_val"'` | |
11603 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11604 | $as_echo "$ac_res" >&6; } | |
69792976 | 11605 | else |
ad6254c5 | 11606 | # Is the header compilable? |
b145d876 ZK |
11607 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11608 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11610 | /* confdefs.h. */ |
11611 | _ACEOF | |
11612 | cat confdefs.h >>conftest.$ac_ext | |
11613 | cat >>conftest.$ac_ext <<_ACEOF | |
11614 | /* end confdefs.h. */ | |
11615 | $ac_includes_default | |
11616 | #include <$ac_header> | |
11617 | _ACEOF | |
11618 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11619 | if { (ac_try="$ac_compile" |
11620 | case "(($ac_try" in | |
11621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11622 | *) ac_try_echo=$ac_try;; | |
11623 | esac | |
b145d876 ZK |
11624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11625 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11626 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11627 | ac_status=$? |
8a2fc586 AK |
11628 | grep -v '^ *+' conftest.er1 >conftest.err |
11629 | rm -f conftest.er1 | |
11630 | cat conftest.err >&5 | |
b145d876 | 11631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11632 | (exit $ac_status); } && { |
11633 | test -z "$ac_c_werror_flag" || | |
11634 | test ! -s conftest.err | |
11635 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11636 | ac_header_compiler=yes |
11637 | else | |
b145d876 | 11638 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11639 | sed 's/^/| /' conftest.$ac_ext >&5 |
11640 | ||
7a197a62 | 11641 | ac_header_compiler=no |
ad6254c5 | 11642 | fi |
7a197a62 AK |
11643 | |
11644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
11645 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11646 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11647 | |
11648 | # Is the header present? | |
b145d876 ZK |
11649 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11650 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11651 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11652 | /* confdefs.h. */ |
11653 | _ACEOF | |
11654 | cat confdefs.h >>conftest.$ac_ext | |
11655 | cat >>conftest.$ac_ext <<_ACEOF | |
11656 | /* end confdefs.h. */ | |
11657 | #include <$ac_header> | |
11658 | _ACEOF | |
7a197a62 AK |
11659 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11660 | case "(($ac_try" in | |
11661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11662 | *) ac_try_echo=$ac_try;; | |
11663 | esac | |
b145d876 ZK |
11664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11665 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11667 | ac_status=$? |
11668 | grep -v '^ *+' conftest.er1 >conftest.err | |
11669 | rm -f conftest.er1 | |
11670 | cat conftest.err >&5 | |
b145d876 | 11671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11672 | (exit $ac_status); } >/dev/null && { |
11673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11674 | test ! -s conftest.err | |
11675 | }; then | |
ad6254c5 AK |
11676 | ac_header_preproc=yes |
11677 | else | |
b145d876 | 11678 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11679 | sed 's/^/| /' conftest.$ac_ext >&5 |
11680 | ||
11681 | ac_header_preproc=no | |
11682 | fi | |
7a197a62 | 11683 | |
ad6254c5 | 11684 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
11685 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11686 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11687 | |
11688 | # So? What about this header? | |
8a2fc586 AK |
11689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11690 | yes:no: ) | |
b145d876 ZK |
11691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11692 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11694 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11695 | ac_header_preproc=yes |
ad6254c5 | 11696 | ;; |
8a2fc586 | 11697 | no:yes:* ) |
b145d876 ZK |
11698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11699 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11701 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11703 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11705 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11707 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11709 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11710 | |
ad6254c5 AK |
11711 | ;; |
11712 | esac | |
b145d876 ZK |
11713 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11714 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11715 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11716 | $as_echo_n "(cached) " >&6 |
69792976 | 11717 | else |
8a2fc586 | 11718 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11719 | fi |
b145d876 ZK |
11720 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11721 | $as_echo "$as_val"'` | |
11722 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11723 | $as_echo "$ac_res" >&6; } | |
69792976 | 11724 | |
ad6254c5 | 11725 | fi |
b145d876 ZK |
11726 | if test `eval 'as_val=${'$as_ac_Header'} |
11727 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11728 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11729 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11730 | _ACEOF |
69792976 | 11731 | |
69792976 | 11732 | else |
b145d876 ZK |
11733 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11734 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11735 | { (exit 1); exit 1; }; } |
83912faa AK |
11736 | fi |
11737 | ||
ad6254c5 AK |
11738 | done |
11739 | ||
4a7f3eb2 | 11740 | |
ad6254c5 AK |
11741 | if test x$HAVE_SELINUX = xyes; then |
11742 | ||
11743 | for ac_header in selinux/selinux.h | |
11744 | do | |
b145d876 | 11745 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 ZK |
11747 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11748 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11750 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11751 | fi |
b145d876 ZK |
11752 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11753 | $as_echo "$as_val"'` | |
11754 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11755 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 11756 | else |
ad6254c5 | 11757 | # Is the header compilable? |
b145d876 ZK |
11758 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11759 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11760 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11761 | /* confdefs.h. */ |
11762 | _ACEOF | |
11763 | cat confdefs.h >>conftest.$ac_ext | |
11764 | cat >>conftest.$ac_ext <<_ACEOF | |
11765 | /* end confdefs.h. */ | |
11766 | $ac_includes_default | |
11767 | #include <$ac_header> | |
11768 | _ACEOF | |
11769 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11770 | if { (ac_try="$ac_compile" |
11771 | case "(($ac_try" in | |
11772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11773 | *) ac_try_echo=$ac_try;; | |
11774 | esac | |
b145d876 ZK |
11775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11776 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11777 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11778 | ac_status=$? |
8a2fc586 AK |
11779 | grep -v '^ *+' conftest.er1 >conftest.err |
11780 | rm -f conftest.er1 | |
11781 | cat conftest.err >&5 | |
b145d876 | 11782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11783 | (exit $ac_status); } && { |
11784 | test -z "$ac_c_werror_flag" || | |
11785 | test ! -s conftest.err | |
11786 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11787 | ac_header_compiler=yes |
11788 | else | |
b145d876 | 11789 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11790 | sed 's/^/| /' conftest.$ac_ext >&5 |
11791 | ||
7a197a62 | 11792 | ac_header_compiler=no |
ad6254c5 | 11793 | fi |
7a197a62 AK |
11794 | |
11795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b145d876 ZK |
11796 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11797 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11798 | |
11799 | # Is the header present? | |
b145d876 ZK |
11800 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11801 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11802 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11803 | /* confdefs.h. */ |
11804 | _ACEOF | |
11805 | cat confdefs.h >>conftest.$ac_ext | |
11806 | cat >>conftest.$ac_ext <<_ACEOF | |
11807 | /* end confdefs.h. */ | |
11808 | #include <$ac_header> | |
11809 | _ACEOF | |
7a197a62 AK |
11810 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11811 | case "(($ac_try" in | |
11812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11813 | *) ac_try_echo=$ac_try;; | |
11814 | esac | |
b145d876 ZK |
11815 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11816 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11817 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11818 | ac_status=$? |
11819 | grep -v '^ *+' conftest.er1 >conftest.err | |
11820 | rm -f conftest.er1 | |
11821 | cat conftest.err >&5 | |
b145d876 | 11822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11823 | (exit $ac_status); } >/dev/null && { |
11824 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11825 | test ! -s conftest.err | |
11826 | }; then | |
ad6254c5 AK |
11827 | ac_header_preproc=yes |
11828 | else | |
b145d876 | 11829 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11830 | sed 's/^/| /' conftest.$ac_ext >&5 |
11831 | ||
11832 | ac_header_preproc=no | |
11833 | fi | |
7a197a62 | 11834 | |
ad6254c5 | 11835 | rm -f conftest.err conftest.$ac_ext |
b145d876 ZK |
11836 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11837 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11838 | |
11839 | # So? What about this header? | |
8a2fc586 AK |
11840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11841 | yes:no: ) | |
b145d876 ZK |
11842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11843 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11844 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11845 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11846 | ac_header_preproc=yes |
ad6254c5 | 11847 | ;; |
8a2fc586 | 11848 | no:yes:* ) |
b145d876 ZK |
11849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11850 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11852 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11854 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11856 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11858 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11860 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11861 | |
ad6254c5 AK |
11862 | ;; |
11863 | esac | |
b145d876 ZK |
11864 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11865 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
b145d876 | 11867 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11868 | else |
8a2fc586 | 11869 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11870 | fi |
b145d876 ZK |
11871 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11872 | $as_echo "$as_val"'` | |
11873 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11874 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 11875 | |
ad6254c5 | 11876 | fi |
b145d876 ZK |
11877 | if test `eval 'as_val=${'$as_ac_Header'} |
11878 | $as_echo "$as_val"'` = yes; then | |
ad6254c5 | 11879 | cat >>confdefs.h <<_ACEOF |
b145d876 | 11880 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11881 | _ACEOF |
0a62c911 | 11882 | |
0a62c911 | 11883 | else |
b145d876 ZK |
11884 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11885 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11886 | { (exit 1); exit 1; }; } |
80992638 AK |
11887 | fi |
11888 | ||
ad6254c5 | 11889 | done |
0a62c911 | 11890 | |
ad6254c5 | 11891 | fi |
0a62c911 | 11892 | |
a653923f AK |
11893 | ################################################################################ |
11894 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11895 | set dummy modprobe; ac_word=$2 | |
b145d876 ZK |
11896 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11897 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 11898 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
b145d876 | 11899 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
11900 | else |
11901 | case $MODPROBE_CMD in | |
11902 | [\\/]* | ?:[\\/]*) | |
11903 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11904 | ;; | |
11905 | *) | |
11906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11907 | for as_dir in $PATH | |
11908 | do | |
11909 | IFS=$as_save_IFS | |
11910 | test -z "$as_dir" && as_dir=. | |
11911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11913 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
b145d876 | 11914 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11915 | break 2 |
11916 | fi | |
11917 | done | |
11918 | done | |
7a197a62 | 11919 | IFS=$as_save_IFS |
72b2cb61 AK |
11920 | |
11921 | ;; | |
11922 | esac | |
11923 | fi | |
11924 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11925 | if test -n "$MODPROBE_CMD"; then |
b145d876 ZK |
11926 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11927 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11928 | else |
b145d876 ZK |
11929 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11930 | $as_echo "no" >&6; } | |
72b2cb61 AK |
11931 | fi |
11932 | ||
a653923f | 11933 | |
7a197a62 | 11934 | |
a653923f | 11935 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11936 | |
11937 | cat >>confdefs.h <<_ACEOF | |
11938 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11939 | _ACEOF | |
11940 | ||
a653923f AK |
11941 | fi |
11942 | ||
80992638 | 11943 | ################################################################################ |
d0191583 | 11944 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11945 | |
80992638 | 11946 | ################################################################################ |
fae0c576 | 11947 | |
83912faa | 11948 | |
795ca3e5 AK |
11949 | |
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | ||
5a52dca9 | 11955 | |
8ef2b021 | 11956 | |
199e490e | 11957 | |
69792976 AK |
11958 | |
11959 | ||
11960 | ||
d0191583 JM |
11961 | # FIXME: rename to LVM_USE_DMEVENTD |
11962 | ||
69792976 | 11963 | |
8106cdd5 AK |
11964 | |
11965 | ||
11966 | ||
11967 | ||
11968 | ||
d68a82ec | 11969 | |
036f273a | 11970 | |
7d1552c9 | 11971 | |
8106cdd5 | 11972 | |
0a62c911 | 11973 | |
8106cdd5 | 11974 | |
4a7f3eb2 | 11975 | |
4922197a AK |
11976 | |
11977 | ||
d8ac0fbc | 11978 | |
1a9ea74d | 11979 | |
8a2fc586 AK |
11980 | |
11981 | ||
d0191583 JM |
11982 | |
11983 | # FIXME: rename to LVM_CONF_DIR | |
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
8a2fc586 | 11989 | |
8ce0cbda | 11990 | |
8b1a3214 | 11991 | |
33f732c5 | 11992 | |
66e941e8 | 11993 | |
d3c8211f AK |
11994 | |
11995 | ||
80992638 | 11996 | ################################################################################ |
d0191583 | 11997 | ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11998 | |
ad6254c5 | 11999 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12000 | # This file is a shell script that caches the results of configure |
12001 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12002 | # scripts and configure runs, see configure's option --config-cache. |
12003 | # It is not useful on other systems. If it contains results you don't | |
12004 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12005 | # |
ad6254c5 AK |
12006 | # config.status only pays attention to the cache file if you give it |
12007 | # the --recheck option to rerun configure. | |
795ca3e5 | 12008 | # |
ad6254c5 AK |
12009 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12010 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12011 | # following values. | |
12012 | ||
12013 | _ACEOF | |
12014 | ||
795ca3e5 AK |
12015 | # The following way of writing the cache mishandles newlines in values, |
12016 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12017 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12018 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12019 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12020 | ( |
12021 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12022 | eval ac_val=\$$ac_var | |
12023 | case $ac_val in #( | |
12024 | *${as_nl}*) | |
12025 | case $ac_var in #( | |
b145d876 ZK |
12026 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
12027 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
12028 | esac |
12029 | case $ac_var in #( | |
12030 | _ | IFS | as_nl) ;; #( | |
b145d876 | 12031 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12032 | *) $as_unset $ac_var ;; |
12033 | esac ;; | |
12034 | esac | |
12035 | done | |
12036 | ||
ad6254c5 | 12037 | (set) 2>&1 | |
7a197a62 AK |
12038 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12039 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12040 | # `set' does not quote correctly, so add quotes (double-quote |
12041 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12042 | sed -n \ | |
8a2fc586 AK |
12043 | "s/'/'\\\\''/g; |
12044 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12045 | ;; #( |
ad6254c5 AK |
12046 | *) |
12047 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12048 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12049 | ;; |
7a197a62 AK |
12050 | esac | |
12051 | sort | |
12052 | ) | | |
ad6254c5 | 12053 | sed ' |
7a197a62 | 12054 | /^ac_cv_env_/b end |
ad6254c5 | 12055 | t clear |
7a197a62 | 12056 | :clear |
ad6254c5 AK |
12057 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12058 | t end | |
7a197a62 AK |
12059 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12060 | :end' >>confcache | |
12061 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12062 | if test -w "$cache_file"; then | |
12063 | test "x$cache_file" != "x/dev/null" && | |
b145d876 ZK |
12064 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12065 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12066 | cat confcache >$cache_file |
795ca3e5 | 12067 | else |
b145d876 ZK |
12068 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12069 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12070 | fi |
12071 | fi | |
12072 | rm -f confcache | |
12073 | ||
795ca3e5 AK |
12074 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12075 | # Let make expand exec_prefix. | |
12076 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12077 | ||
72b2cb61 | 12078 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12079 | |
12080 | ac_libobjs= | |
12081 | ac_ltlibobjs= | |
12082 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12083 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12084 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
b145d876 | 12085 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12086 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12087 | # will be set to the directory where LIBOBJS objects are built. | |
12088 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12089 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12090 | done |
12091 | LIBOBJS=$ac_libobjs | |
80992638 | 12092 | |
ad6254c5 AK |
12093 | LTLIBOBJS=$ac_ltlibobjs |
12094 | ||
12095 | ||
12096 | ||
12097 | : ${CONFIG_STATUS=./config.status} | |
b145d876 | 12098 | ac_write_fail=0 |
ad6254c5 AK |
12099 | ac_clean_files_save=$ac_clean_files |
12100 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b145d876 ZK |
12101 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12102 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12103 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
12104 | #! $SHELL |
12105 | # Generated by $as_me. | |
795ca3e5 | 12106 | # Run this file to recreate the current configuration. |
795ca3e5 | 12107 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12108 | # configure, is in config.log if it exists. |
12109 | ||
12110 | debug=false | |
12111 | ac_cs_recheck=false | |
12112 | ac_cs_silent=false | |
12113 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12114 | _ACEOF | |
12115 | ||
b145d876 | 12116 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12117 | ## --------------------- ## |
12118 | ## M4sh Initialization. ## | |
12119 | ## --------------------- ## | |
12120 | ||
25fbec5b AK |
12121 | # Be more Bourne compatible |
12122 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
12123 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12124 | emulate sh | |
12125 | NULLCMD=: | |
b145d876 | 12126 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
12127 | # is contrary to our usage. Disable this feature. |
12128 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12129 | setopt NO_GLOB_SUBST |
12130 | else | |
25fbec5b AK |
12131 | case `(set -o) 2>/dev/null` in |
12132 | *posix*) set -o posix ;; | |
12133 | esac | |
12134 | ||
7a197a62 | 12135 | fi |
25fbec5b AK |
12136 | |
12137 | ||
7a197a62 AK |
12138 | |
12139 | ||
12140 | # PATH needs CR | |
12141 | # Avoid depending upon Character Ranges. | |
12142 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12143 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12144 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12145 | as_cr_digits='0123456789' | |
12146 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12147 | ||
b145d876 ZK |
12148 | as_nl=' |
12149 | ' | |
12150 | export as_nl | |
12151 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12152 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12153 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12154 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12155 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12156 | as_echo='printf %s\n' | |
12157 | as_echo_n='printf %s' | |
12158 | else | |
12159 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12160 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12161 | as_echo_n='/usr/ucb/echo -n' | |
5556819a | 12162 | else |
b145d876 ZK |
12163 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12164 | as_echo_n_body='eval | |
12165 | arg=$1; | |
12166 | case $arg in | |
12167 | *"$as_nl"*) | |
12168 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12169 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12170 | esac; | |
12171 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12172 | ' | |
12173 | export as_echo_n_body | |
12174 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5556819a | 12175 | fi |
b145d876 ZK |
12176 | export as_echo_body |
12177 | as_echo='sh -c $as_echo_body as_echo' | |
12178 | fi | |
12179 | ||
12180 | # The user is always right. | |
12181 | if test "${PATH_SEPARATOR+set}" != set; then | |
12182 | PATH_SEPARATOR=: | |
12183 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12184 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12185 | PATH_SEPARATOR=';' | |
12186 | } | |
ad6254c5 AK |
12187 | fi |
12188 | ||
12189 | # Support unset when possible. | |
8a2fc586 | 12190 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12191 | as_unset=unset |
12192 | else | |
12193 | as_unset=false | |
12194 | fi | |
8106cdd5 | 12195 | |
ad6254c5 | 12196 | |
7a197a62 AK |
12197 | # IFS |
12198 | # We need space, tab and new line, in precisely that order. Quoting is | |
12199 | # there to prevent editors from complaining about space-tab. | |
12200 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12201 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
12202 | IFS=" "" $as_nl" |
12203 | ||
12204 | # Find who we are. Look in the path if we contain no directory separator. | |
12205 | case $0 in | |
12206 | *[\\/]* ) as_myself=$0 ;; | |
12207 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12208 | for as_dir in $PATH | |
12209 | do | |
12210 | IFS=$as_save_IFS | |
12211 | test -z "$as_dir" && as_dir=. | |
12212 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12213 | done | |
12214 | IFS=$as_save_IFS | |
12215 | ||
12216 | ;; | |
12217 | esac | |
12218 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12219 | # in which case we are not to be found in the path. | |
12220 | if test "x$as_myself" = x; then | |
12221 | as_myself=$0 | |
12222 | fi | |
12223 | if test ! -f "$as_myself"; then | |
b145d876 | 12224 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12225 | { (exit 1); exit 1; } |
12226 | fi | |
12227 | ||
ad6254c5 | 12228 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12229 | for as_var in ENV MAIL MAILPATH |
12230 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12231 | done | |
ad6254c5 AK |
12232 | PS1='$ ' |
12233 | PS2='> ' | |
12234 | PS4='+ ' | |
12235 | ||
12236 | # NLS nuisances. | |
b145d876 ZK |
12237 | LC_ALL=C |
12238 | export LC_ALL | |
12239 | LANGUAGE=C | |
12240 | export LANGUAGE | |
8106cdd5 | 12241 | |
ad6254c5 | 12242 | # Required to use basename. |
7a197a62 AK |
12243 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12244 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12245 | as_expr=expr |
12246 | else | |
12247 | as_expr=false | |
12248 | fi | |
8106cdd5 | 12249 | |
7a197a62 | 12250 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12251 | as_basename=basename |
12252 | else | |
12253 | as_basename=false | |
12254 | fi | |
12255 | ||
12256 | ||
12257 | # Name of the executable. | |
7a197a62 | 12258 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12259 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12260 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12261 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b145d876 | 12262 | $as_echo X/"$0" | |
7a197a62 AK |
12263 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12264 | s//\1/ | |
12265 | q | |
12266 | } | |
12267 | /^X\/\(\/\/\)$/{ | |
12268 | s//\1/ | |
12269 | q | |
12270 | } | |
12271 | /^X\/\(\/\).*/{ | |
12272 | s//\1/ | |
12273 | q | |
12274 | } | |
12275 | s/.*/./; q'` | |
ad6254c5 | 12276 | |
7a197a62 AK |
12277 | # CDPATH. |
12278 | $as_unset CDPATH | |
ad6254c5 AK |
12279 | |
12280 | ||
ad6254c5 | 12281 | |
ad6254c5 AK |
12282 | as_lineno_1=$LINENO |
12283 | as_lineno_2=$LINENO | |
ad6254c5 | 12284 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12285 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12286 | |
ad6254c5 AK |
12287 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12288 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12289 | # line-number line after each line using $LINENO; the second 'sed' |
12290 | # does the real work. The second script uses 'N' to pair each | |
12291 | # line-number line with the line containing $LINENO, and appends | |
12292 | # trailing '-' during substitution so that $LINENO is not a special | |
12293 | # case at line end. | |
ad6254c5 | 12294 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12295 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12296 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12297 | sed -n ' | |
12298 | p | |
12299 | /[$]LINENO/= | |
12300 | ' <$as_myself | | |
ad6254c5 | 12301 | sed ' |
7a197a62 AK |
12302 | s/[$]LINENO.*/&-/ |
12303 | t lineno | |
12304 | b | |
12305 | :lineno | |
ad6254c5 | 12306 | N |
7a197a62 AK |
12307 | :loop |
12308 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12309 | t loop |
7a197a62 | 12310 | s/-\n.*// |
ad6254c5 | 12311 | ' >$as_me.lineno && |
7a197a62 | 12312 | chmod +x "$as_me.lineno" || |
b145d876 | 12313 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12314 | { (exit 1); exit 1; }; } |
12315 | ||
12316 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12317 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12318 | # original and so on. Autoconf is especially sensitive to this). |
12319 | . "./$as_me.lineno" | |
ad6254c5 AK |
12320 | # Exit status is that of the last command. |
12321 | exit | |
12322 | } | |
12323 | ||
12324 | ||
7a197a62 AK |
12325 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12326 | as_dirname=dirname | |
12327 | else | |
12328 | as_dirname=false | |
12329 | fi | |
12330 | ||
12331 | ECHO_C= ECHO_N= ECHO_T= | |
12332 | case `echo -n x` in | |
12333 | -n*) | |
12334 | case `echo 'x\c'` in | |
12335 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12336 | *) ECHO_C='\c';; | |
12337 | esac;; | |
12338 | *) | |
12339 | ECHO_N='-n';; | |
ad6254c5 | 12340 | esac |
7a197a62 AK |
12341 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12342 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12343 | as_expr=expr |
12344 | else | |
12345 | as_expr=false | |
12346 | fi | |
80992638 | 12347 | |
ad6254c5 | 12348 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12349 | if test -d conf$$.dir; then |
12350 | rm -f conf$$.dir/conf$$.file | |
12351 | else | |
12352 | rm -f conf$$.dir | |
b145d876 ZK |
12353 | mkdir conf$$.dir 2>/dev/null |
12354 | fi | |
12355 | if (echo >conf$$.file) 2>/dev/null; then | |
12356 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12357 | as_ln_s='ln -s' | |
12358 | # ... but there are two gotchas: | |
12359 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12360 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12361 | # In both cases, we have to default to `cp -p'. | |
12362 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12363 | as_ln_s='cp -p' | |
12364 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12365 | as_ln_s=ln | |
12366 | else | |
ad6254c5 | 12367 | as_ln_s='cp -p' |
b145d876 | 12368 | fi |
ad6254c5 AK |
12369 | else |
12370 | as_ln_s='cp -p' | |
12371 | fi | |
7a197a62 AK |
12372 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12373 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12374 | |
ad6254c5 AK |
12375 | if mkdir -p . 2>/dev/null; then |
12376 | as_mkdir_p=: | |
12377 | else | |
8a2fc586 | 12378 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12379 | as_mkdir_p=false |
12380 | fi | |
12381 | ||
25fbec5b AK |
12382 | if test -x / >/dev/null 2>&1; then |
12383 | as_test_x='test -x' | |
7a197a62 | 12384 | else |
25fbec5b AK |
12385 | if ls -dL / >/dev/null 2>&1; then |
12386 | as_ls_L_option=L | |
12387 | else | |
12388 | as_ls_L_option= | |
12389 | fi | |
12390 | as_test_x=' | |
12391 | eval sh -c '\'' | |
12392 | if test -d "$1"; then | |
b145d876 | 12393 | test -d "$1/."; |
25fbec5b AK |
12394 | else |
12395 | case $1 in | |
b145d876 | 12396 | -*)set "./$1";; |
25fbec5b AK |
12397 | esac; |
12398 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12399 | ???[sx]*):;;*)false;;esac;fi | |
12400 | '\'' sh | |
12401 | ' | |
7a197a62 | 12402 | fi |
25fbec5b | 12403 | as_executable_p=$as_test_x |
ad6254c5 AK |
12404 | |
12405 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12406 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12407 | |
12408 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12409 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12410 | |
12411 | ||
ad6254c5 AK |
12412 | exec 6>&1 |
12413 | ||
7a197a62 | 12414 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12415 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12416 | # values after options handling. |
12417 | ac_log=" | |
ad6254c5 | 12418 | This file was extended by $as_me, which was |
b145d876 | 12419 | generated by GNU Autoconf 2.62. Invocation command line was |
ad6254c5 AK |
12420 | |
12421 | CONFIG_FILES = $CONFIG_FILES | |
12422 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12423 | CONFIG_LINKS = $CONFIG_LINKS | |
12424 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12425 | $ $0 $@ | |
12426 | ||
7a197a62 AK |
12427 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12428 | " | |
12429 | ||
ad6254c5 AK |
12430 | _ACEOF |
12431 | ||
b145d876 | 12432 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 12433 | # Files that config.status was made for. |
b145d876 ZK |
12434 | config_files="`echo $ac_config_files`" |
12435 | config_headers="`echo $ac_config_headers`" | |
ad6254c5 | 12436 | |
7a197a62 | 12437 | _ACEOF |
ad6254c5 | 12438 | |
b145d876 | 12439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12440 | ac_cs_usage="\ |
12441 | \`$as_me' instantiates files from templates according to the | |
12442 | current configuration. | |
12443 | ||
12444 | Usage: $0 [OPTIONS] [FILE]... | |
12445 | ||
12446 | -h, --help print this help, then exit | |
25fbec5b | 12447 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12448 | -q, --quiet do not print progress messages |
12449 | -d, --debug don't remove temporary files | |
12450 | --recheck update $as_me by reconfiguring in the same conditions | |
12451 | --file=FILE[:TEMPLATE] | |
b145d876 | 12452 | instantiate the configuration file FILE |
72b2cb61 | 12453 | --header=FILE[:TEMPLATE] |
b145d876 | 12454 | instantiate the configuration header FILE |
ad6254c5 AK |
12455 | |
12456 | Configuration files: | |
12457 | $config_files | |
12458 | ||
72b2cb61 AK |
12459 | Configuration headers: |
12460 | $config_headers | |
12461 | ||
ad6254c5 | 12462 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12463 | |
7a197a62 | 12464 | _ACEOF |
b145d876 | 12465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12466 | ac_cs_version="\\ |
12467 | config.status | |
b145d876 ZK |
12468 | configured by $0, generated by GNU Autoconf 2.62, |
12469 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12470 | |
b145d876 | 12471 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
12472 | This config.status script is free software; the Free Software Foundation |
12473 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12474 | |
12475 | ac_pwd='$ac_pwd' | |
12476 | srcdir='$srcdir' | |
12477 | INSTALL='$INSTALL' | |
fddafd51 | 12478 | MKDIR_P='$MKDIR_P' |
b145d876 ZK |
12479 | AWK='$AWK' |
12480 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
12481 | _ACEOF |
12482 | ||
b145d876 ZK |
12483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12484 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
12485 | ac_need_defaults=: |
12486 | while test $# != 0 | |
12487 | do | |
12488 | case $1 in | |
12489 | --*=*) | |
7a197a62 AK |
12490 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12491 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12492 | ac_shift=: |
12493 | ;; | |
7a197a62 | 12494 | *) |
ad6254c5 AK |
12495 | ac_option=$1 |
12496 | ac_optarg=$2 | |
12497 | ac_shift=shift | |
12498 | ;; | |
ad6254c5 AK |
12499 | esac |
12500 | ||
12501 | case $ac_option in | |
12502 | # Handling of the options. | |
ad6254c5 AK |
12503 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12504 | ac_cs_recheck=: ;; | |
7a197a62 | 12505 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
b145d876 | 12506 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 12507 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12508 | debug=: ;; |
12509 | --file | --fil | --fi | --f ) | |
12510 | $ac_shift | |
b145d876 ZK |
12511 | case $ac_optarg in |
12512 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12513 | esac | |
12514 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
12515 | ac_need_defaults=false;; |
12516 | --header | --heade | --head | --hea ) | |
12517 | $ac_shift | |
b145d876 ZK |
12518 | case $ac_optarg in |
12519 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12520 | esac | |
12521 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 12522 | ac_need_defaults=false;; |
7a197a62 AK |
12523 | --he | --h) |
12524 | # Conflict between --help and --header | |
b145d876 | 12525 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12526 | Try \`$0 --help' for more information." >&2 |
12527 | { (exit 1); exit 1; }; };; | |
12528 | --help | --hel | -h ) | |
b145d876 | 12529 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12530 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12531 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12532 | ac_cs_silent=: ;; | |
12533 | ||
12534 | # This is an error. | |
b145d876 | 12535 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12536 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12537 | { (exit 1); exit 1; }; } ;; |
12538 | ||
7a197a62 AK |
12539 | *) ac_config_targets="$ac_config_targets $1" |
12540 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12541 | |
12542 | esac | |
12543 | shift | |
12544 | done | |
12545 | ||
12546 | ac_configure_extra_args= | |
12547 | ||
12548 | if $ac_cs_silent; then | |
12549 | exec 6>/dev/null | |
12550 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12551 | fi | |
12552 | ||
12553 | _ACEOF | |
b145d876 | 12554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 12555 | if \$ac_cs_recheck; then |
b145d876 ZK |
12556 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12557 | shift | |
12558 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12559 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 12560 | export CONFIG_SHELL |
b145d876 | 12561 | exec "\$@" |
ad6254c5 AK |
12562 | fi |
12563 | ||
12564 | _ACEOF | |
b145d876 | 12565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12566 | exec 5>>config.log |
12567 | { | |
12568 | echo | |
12569 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12570 | ## Running $as_me. ## | |
12571 | _ASBOX | |
b145d876 | 12572 | $as_echo "$ac_log" |
7a197a62 | 12573 | } >&5 |
ad6254c5 | 12574 | |
7a197a62 | 12575 | _ACEOF |
b145d876 | 12576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 12577 | _ACEOF |
ad6254c5 | 12578 | |
b145d876 | 12579 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12580 | |
12581 | # Handling of arguments. | |
ad6254c5 AK |
12582 | for ac_config_target in $ac_config_targets |
12583 | do | |
7a197a62 AK |
12584 | case $ac_config_target in |
12585 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12586 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12587 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
d0191583 JM |
12588 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12589 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12590 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12591 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12592 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
7a197a62 AK |
12593 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
12594 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
7a197a62 | 12595 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; |
d0191583 | 12596 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 | 12597 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
7a197a62 AK |
12598 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12599 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12600 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12601 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12602 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12603 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12604 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
12605 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12606 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12607 | |
b145d876 ZK |
12608 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12609 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12610 | { (exit 1); exit 1; }; };; |
80992638 | 12611 | esac |
ad6254c5 AK |
12612 | done |
12613 | ||
7a197a62 | 12614 | |
ad6254c5 AK |
12615 | # If the user did not use the arguments to specify the items to instantiate, |
12616 | # then the envvar interface is used. Set only those that are not. | |
12617 | # We use the long form for the default assignment because of an extremely | |
12618 | # bizarre bug on SunOS 4.1.3. | |
12619 | if $ac_need_defaults; then | |
12620 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12621 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12622 | fi |
12623 | ||
12624 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12625 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12626 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12627 | # Hook for its removal unless debugging. |
12628 | # Note that there is a small window in which the directory will not be cleaned: | |
12629 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12630 | $debug || |
12631 | { | |
7a197a62 AK |
12632 | tmp= |
12633 | trap 'exit_status=$? | |
12634 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12635 | ' 0 | |
ad6254c5 AK |
12636 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12637 | } | |
ad6254c5 AK |
12638 | # Create a (secure) tmp directory for tmp files. |
12639 | ||
12640 | { | |
7a197a62 | 12641 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12642 | test -n "$tmp" && test -d "$tmp" |
12643 | } || | |
12644 | { | |
7a197a62 AK |
12645 | tmp=./conf$$-$RANDOM |
12646 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12647 | } || |
12648 | { | |
b145d876 | 12649 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12650 | { (exit 1); exit 1; } |
12651 | } | |
12652 | ||
b145d876 ZK |
12653 | # Set up the scripts for CONFIG_FILES section. |
12654 | # No need to generate them if there are no CONFIG_FILES. | |
12655 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 12656 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12657 | |
5556819a | 12658 | |
b145d876 ZK |
12659 | ac_cr='\r' |
12660 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12661 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12662 | ac_cs_awk_cr='\\r' | |
12663 | else | |
12664 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 12665 | fi |
7a197a62 | 12666 | |
b145d876 | 12667 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 12668 | _ACEOF |
7a197a62 | 12669 | |
8106cdd5 | 12670 | |
b145d876 ZK |
12671 | { |
12672 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12673 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12674 | echo "_ACEOF" | |
12675 | } >conf$$subs.sh || | |
12676 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12677 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12678 | { (exit 1); exit 1; }; } | |
12679 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
12680 | ac_delim='%!_!# ' |
12681 | for ac_last_try in false false false false false :; do | |
b145d876 ZK |
12682 | . ./conf$$subs.sh || |
12683 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12684 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12685 | { (exit 1); exit 1; }; } | |
12686 | ||
12687 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then | |
1995c9ff AK |
12688 | break |
12689 | elif $ac_last_try; then | |
b145d876 ZK |
12690 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12691 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12692 | { (exit 1); exit 1; }; } |
12693 | else | |
12694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12695 | fi | |
12696 | done | |
b145d876 ZK |
12697 | rm -f conf$$subs.sh |
12698 | ||
12699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12700 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12701 | _ACEOF | |
12702 | sed -n ' | |
12703 | h | |
12704 | s/^/S["/; s/!.*/"]=/ | |
12705 | p | |
12706 | g | |
12707 | s/^[^!]*!// | |
12708 | :repl | |
12709 | t repl | |
12710 | s/'"$ac_delim"'$// | |
12711 | t delim | |
12712 | :nl | |
12713 | h | |
12714 | s/\(.\{148\}\).*/\1/ | |
12715 | t more1 | |
12716 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12717 | p | |
12718 | n | |
12719 | b repl | |
12720 | :more1 | |
12721 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12722 | p | |
12723 | g | |
12724 | s/.\{148\}// | |
12725 | t nl | |
12726 | :delim | |
12727 | h | |
12728 | s/\(.\{148\}\).*/\1/ | |
12729 | t more2 | |
12730 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12731 | p | |
12732 | b | |
12733 | :more2 | |
12734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12735 | p | |
12736 | g | |
12737 | s/.\{148\}// | |
12738 | t delim | |
12739 | ' <conf$$subs.awk | sed ' | |
12740 | /^[^""]/{ | |
12741 | N | |
12742 | s/\n// | |
12743 | } | |
12744 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12745 | rm -f conf$$subs.awk | |
12746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12747 | _ACAWK | |
12748 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12749 | for (key in S) S_is_set[key] = 1 | |
12750 | FS = "\a" | |
7a197a62 | 12751 | |
b145d876 ZK |
12752 | } |
12753 | { | |
12754 | line = $ 0 | |
12755 | nfields = split(line, field, "@") | |
12756 | substed = 0 | |
12757 | len = length(field[1]) | |
12758 | for (i = 2; i < nfields; i++) { | |
12759 | key = field[i] | |
12760 | keylen = length(key) | |
12761 | if (S_is_set[key]) { | |
12762 | value = S[key] | |
12763 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12764 | len += length(value) + length(field[++i]) | |
12765 | substed = 1 | |
12766 | } else | |
12767 | len += 1 + keylen | |
12768 | } | |
12769 | ||
12770 | print line | |
12771 | } | |
fddafd51 | 12772 | |
b145d876 | 12773 | _ACAWK |
1995c9ff | 12774 | _ACEOF |
b145d876 ZK |
12775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12776 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12777 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12778 | else | |
12779 | cat | |
12780 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12781 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
12782 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
12783 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
12784 | _ACEOF |
12785 | ||
7a197a62 AK |
12786 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12787 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12788 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12789 | # (actually we leave an empty line to preserve line numbers). | |
12790 | if test "x$srcdir" = x.; then | |
12791 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12792 | s/:*\$(srcdir):*/:/ | |
12793 | s/:*\${srcdir}:*/:/ | |
12794 | s/:*@srcdir@:*/:/ | |
12795 | s/^\([^=]*=[ ]*\):*/\1/ | |
12796 | s/:*$// | |
12797 | s/^[^=]*=[ ]*$// | |
12798 | }' | |
12799 | fi | |
12800 | ||
b145d876 | 12801 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12802 | fi # test -n "$CONFIG_FILES" |
12803 | ||
b145d876 ZK |
12804 | # Set up the scripts for CONFIG_HEADERS section. |
12805 | # No need to generate them if there are no CONFIG_HEADERS. | |
12806 | # This happens for instance with `./config.status Makefile'. | |
12807 | if test -n "$CONFIG_HEADERS"; then | |
12808 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12809 | BEGIN { | |
12810 | _ACEOF | |
12811 | ||
12812 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12813 | # here-document in config.status, that substitutes the proper values into | |
12814 | # config.h.in to produce config.h. | |
12815 | ||
12816 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12817 | # handling of long lines. | |
12818 | ac_delim='%!_!# ' | |
12819 | for ac_last_try in false false :; do | |
12820 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12821 | if test -z "$ac_t"; then | |
12822 | break | |
12823 | elif $ac_last_try; then | |
12824 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
12825 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
12826 | { (exit 1); exit 1; }; } | |
12827 | else | |
12828 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12829 | fi | |
12830 | done | |
12831 | ||
12832 | # For the awk script, D is an array of macro values keyed by name, | |
12833 | # likewise P contains macro parameters if any. Preserve backslash | |
12834 | # newline sequences. | |
7a197a62 | 12835 | |
b145d876 ZK |
12836 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
12837 | sed -n ' | |
12838 | s/.\{148\}/&'"$ac_delim"'/g | |
12839 | t rset | |
12840 | :rset | |
12841 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12842 | t def | |
12843 | d | |
12844 | :def | |
12845 | s/\\$// | |
12846 | t bsnl | |
12847 | s/["\\]/\\&/g | |
12848 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12849 | D["\1"]=" \3"/p | |
12850 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12851 | d | |
12852 | :bsnl | |
12853 | s/["\\]/\\&/g | |
12854 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12855 | D["\1"]=" \3\\\\\\n"\\/p | |
12856 | t cont | |
12857 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12858 | t cont | |
12859 | d | |
12860 | :cont | |
12861 | n | |
12862 | s/.\{148\}/&'"$ac_delim"'/g | |
12863 | t clear | |
12864 | :clear | |
12865 | s/\\$// | |
12866 | t bsnlc | |
12867 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12868 | d | |
12869 | :bsnlc | |
12870 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12871 | b cont | |
12872 | ' <confdefs.h | sed ' | |
12873 | s/'"$ac_delim"'/"\\\ | |
12874 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12875 | ||
12876 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12877 | for (key in D) D_is_set[key] = 1 | |
12878 | FS = "\a" | |
12879 | } | |
12880 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12881 | line = \$ 0 | |
12882 | split(line, arg, " ") | |
12883 | if (arg[1] == "#") { | |
12884 | defundef = arg[2] | |
12885 | mac1 = arg[3] | |
12886 | } else { | |
12887 | defundef = substr(arg[1], 2) | |
12888 | mac1 = arg[2] | |
12889 | } | |
12890 | split(mac1, mac2, "(") #) | |
12891 | macro = mac2[1] | |
12892 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12893 | if (D_is_set[macro]) { | |
12894 | # Preserve the white space surrounding the "#". | |
12895 | print prefix "define", macro P[macro] D[macro] | |
12896 | next | |
12897 | } else { | |
12898 | # Replace #undef with comments. This is necessary, for example, | |
12899 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12900 | # on some systems where configure will not decide to define it. | |
12901 | if (defundef == "undef") { | |
12902 | print "/*", prefix defundef, macro, "*/" | |
12903 | next | |
12904 | } | |
12905 | } | |
12906 | } | |
12907 | { print } | |
12908 | _ACAWK | |
12909 | _ACEOF | |
12910 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12911 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
12912 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
12913 | { (exit 1); exit 1; }; } | |
12914 | fi # test -n "$CONFIG_HEADERS" | |
12915 | ||
12916 | ||
12917 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
12918 | shift | |
12919 | for ac_tag | |
7a197a62 AK |
12920 | do |
12921 | case $ac_tag in | |
12922 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12923 | esac | |
12924 | case $ac_mode$ac_tag in | |
12925 | :[FHL]*:*);; | |
b145d876 ZK |
12926 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12927 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12928 | { (exit 1); exit 1; }; };; |
12929 | :[FH]-) ac_tag=-:-;; | |
12930 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12931 | esac | |
12932 | ac_save_IFS=$IFS | |
12933 | IFS=: | |
12934 | set x $ac_tag | |
12935 | IFS=$ac_save_IFS | |
12936 | shift | |
12937 | ac_file=$1 | |
12938 | shift | |
12939 | ||
12940 | case $ac_mode in | |
12941 | :L) ac_source=$1;; | |
12942 | :[FH]) | |
12943 | ac_file_inputs= | |
12944 | for ac_f | |
12945 | do | |
12946 | case $ac_f in | |
12947 | -) ac_f="$tmp/stdin";; | |
12948 | *) # Look for the file first in the build tree, then in the source tree | |
12949 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12950 | # because $ac_f cannot contain `:'. | |
12951 | test -f "$ac_f" || | |
12952 | case $ac_f in | |
12953 | [\\/$]*) false;; | |
12954 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12955 | esac || | |
b145d876 ZK |
12956 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12957 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12958 | { (exit 1); exit 1; }; };; |
12959 | esac | |
b145d876 ZK |
12960 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
12961 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
12962 | done |
12963 | ||
12964 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12965 | # use $as_me), people would be surprised to read: | |
12966 | # /* config.h. Generated by config.status. */ | |
b145d876 ZK |
12967 | configure_input='Generated from '` |
12968 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12969 | `' by configure.' | |
7a197a62 AK |
12970 | if test x"$ac_file" != x-; then |
12971 | configure_input="$ac_file. $configure_input" | |
b145d876 ZK |
12972 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
12973 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 12974 | fi |
b145d876 ZK |
12975 | # Neutralize special characters interpreted by sed in replacement strings. |
12976 | case $configure_input in #( | |
12977 | *\&* | *\|* | *\\* ) | |
12978 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12979 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12980 | *) ac_sed_conf_input=$configure_input;; | |
12981 | esac | |
7a197a62 AK |
12982 | |
12983 | case $ac_tag in | |
b145d876 ZK |
12984 | *:-:* | *:-) cat >"$tmp/stdin" \ |
12985 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
12986 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
12987 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
12988 | esac |
12989 | ;; | |
80992638 | 12990 | esac |
8106cdd5 | 12991 | |
7a197a62 | 12992 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12993 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12994 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12995 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12996 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
b145d876 | 12997 | $as_echo X"$ac_file" | |
7a197a62 AK |
12998 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12999 | s//\1/ | |
13000 | q | |
13001 | } | |
13002 | /^X\(\/\/\)[^/].*/{ | |
13003 | s//\1/ | |
13004 | q | |
13005 | } | |
13006 | /^X\(\/\/\)$/{ | |
13007 | s//\1/ | |
13008 | q | |
13009 | } | |
13010 | /^X\(\/\).*/{ | |
13011 | s//\1/ | |
13012 | q | |
13013 | } | |
13014 | s/.*/./; q'` | |
13015 | { as_dir="$ac_dir" | |
13016 | case $as_dir in #( | |
13017 | -*) as_dir=./$as_dir;; | |
13018 | esac | |
13019 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13020 | as_dirs= |
7a197a62 AK |
13021 | while :; do |
13022 | case $as_dir in #( | |
b145d876 | 13023 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13024 | *) as_qdir=$as_dir;; |
13025 | esac | |
13026 | as_dirs="'$as_qdir' $as_dirs" | |
13027 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13028 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13029 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13030 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13031 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
b145d876 | 13032 | $as_echo X"$as_dir" | |
7a197a62 AK |
13033 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13034 | s//\1/ | |
13035 | q | |
13036 | } | |
13037 | /^X\(\/\/\)[^/].*/{ | |
13038 | s//\1/ | |
13039 | q | |
13040 | } | |
13041 | /^X\(\/\/\)$/{ | |
13042 | s//\1/ | |
13043 | q | |
13044 | } | |
13045 | /^X\(\/\).*/{ | |
13046 | s//\1/ | |
13047 | q | |
13048 | } | |
13049 | s/.*/./; q'` | |
13050 | test -d "$as_dir" && break | |
ad6254c5 | 13051 | done |
7a197a62 | 13052 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
b145d876 ZK |
13053 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13054 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13055 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13056 | ac_builddir=. |
13057 | ||
7a197a62 AK |
13058 | case "$ac_dir" in |
13059 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13060 | *) | |
b145d876 | 13061 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13062 | # A ".." for each directory in $ac_dir_suffix. |
b145d876 | 13063 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13064 | case $ac_top_builddir_sub in |
13065 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13066 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13067 | esac ;; | |
13068 | esac | |
13069 | ac_abs_top_builddir=$ac_pwd | |
13070 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13071 | # for backward compatibility: | |
13072 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13073 | |
13074 | case $srcdir in | |
7a197a62 | 13075 | .) # We are building in place. |
ad6254c5 | 13076 | ac_srcdir=. |
7a197a62 AK |
13077 | ac_top_srcdir=$ac_top_builddir_sub |
13078 | ac_abs_top_srcdir=$ac_pwd ;; | |
13079 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13080 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13081 | ac_top_srcdir=$srcdir |
13082 | ac_abs_top_srcdir=$srcdir ;; | |
13083 | *) # Relative name. | |
13084 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13085 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13086 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13087 | esac |
7a197a62 | 13088 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13089 | |
ad6254c5 | 13090 | |
7a197a62 AK |
13091 | case $ac_mode in |
13092 | :F) | |
13093 | # | |
13094 | # CONFIG_FILE | |
13095 | # | |
ad6254c5 AK |
13096 | |
13097 | case $INSTALL in | |
13098 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13099 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13100 | esac |
fddafd51 ZK |
13101 | ac_MKDIR_P=$MKDIR_P |
13102 | case $MKDIR_P in | |
13103 | [\\/$]* | ?:[\\/]* ) ;; | |
13104 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13105 | esac | |
7a197a62 | 13106 | _ACEOF |
795ca3e5 | 13107 | |
b145d876 | 13108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13109 | # If the template does not know about datarootdir, expand it. |
13110 | # FIXME: This hack should be removed a few years after 2.60. | |
13111 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13112 | ||
b145d876 ZK |
13113 | ac_sed_dataroot=' |
13114 | /datarootdir/ { | |
7a197a62 AK |
13115 | p |
13116 | q | |
13117 | } | |
13118 | /@datadir@/p | |
13119 | /@docdir@/p | |
13120 | /@infodir@/p | |
13121 | /@localedir@/p | |
13122 | /@mandir@/p | |
b145d876 ZK |
13123 | ' |
13124 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
13125 | *datarootdir*) ac_datarootdir_seen=yes;; |
13126 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b145d876 ZK |
13127 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13128 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13129 | _ACEOF |
b145d876 | 13130 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13131 | ac_datarootdir_hack=' |
13132 | s&@datadir@&$datadir&g | |
13133 | s&@docdir@&$docdir&g | |
13134 | s&@infodir@&$infodir&g | |
13135 | s&@localedir@&$localedir&g | |
13136 | s&@mandir@&$mandir&g | |
13137 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13138 | esac | |
13139 | _ACEOF | |
13140 | ||
13141 | # Neutralize VPATH when `$srcdir' = `.'. | |
13142 | # Shell code in configure.ac might set extrasub. | |
13143 | # FIXME: do we really want to maintain this feature? | |
b145d876 ZK |
13144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13145 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
13146 | $extrasub |
13147 | _ACEOF | |
b145d876 | 13148 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13149 | :t |
13150 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b145d876 | 13151 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 13152 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
b145d876 | 13153 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
13154 | s&@srcdir@&$ac_srcdir&;t t |
13155 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13156 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13157 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13158 | s&@builddir@&$ac_builddir&;t t | |
13159 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13160 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13161 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 13162 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 13163 | $ac_datarootdir_hack |
b145d876 ZK |
13164 | " |
13165 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13166 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13167 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13168 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13169 | |
13170 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13171 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13172 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
b145d876 | 13173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13174 | which seems to be undefined. Please make sure it is defined." >&5 |
b145d876 | 13175 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13176 | which seems to be undefined. Please make sure it is defined." >&2;} |
13177 | ||
13178 | rm -f "$tmp/stdin" | |
72b2cb61 | 13179 | case $ac_file in |
b145d876 ZK |
13180 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13181 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13182 | esac \ | |
13183 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13184 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13185 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13186 | ;; |
13187 | :H) | |
13188 | # | |
13189 | # CONFIG_HEADER | |
13190 | # | |
72b2cb61 | 13191 | if test x"$ac_file" != x-; then |
b145d876 ZK |
13192 | { |
13193 | $as_echo "/* $configure_input */" \ | |
13194 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13195 | } >"$tmp/config.h" \ | |
13196 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13197 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13198 | { (exit 1); exit 1; }; } | |
13199 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13200 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13201 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13202 | else |
b145d876 ZK |
13203 | rm -f "$ac_file" |
13204 | mv "$tmp/config.h" "$ac_file" \ | |
13205 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13206 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13207 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
13208 | fi |
13209 | else | |
b145d876 ZK |
13210 | $as_echo "/* $configure_input */" \ |
13211 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13212 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13213 | $as_echo "$as_me: error: could not create -" >&2;} | |
13214 | { (exit 1); exit 1; }; } | |
72b2cb61 | 13215 | fi |
7a197a62 AK |
13216 | ;; |
13217 | ||
13218 | ||
13219 | esac | |
13220 | ||
13221 | done # for ac_tag | |
795ca3e5 | 13222 | |
795ca3e5 | 13223 | |
ad6254c5 AK |
13224 | { (exit 0); exit 0; } |
13225 | _ACEOF | |
795ca3e5 | 13226 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13227 | ac_clean_files=$ac_clean_files_save |
13228 | ||
b145d876 ZK |
13229 | test $ac_write_fail = 0 || |
13230 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13231 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13232 | { (exit 1); exit 1; }; } | |
13233 | ||
ad6254c5 AK |
13234 | |
13235 | # configure is writing to config.log, and then calls config.status. | |
13236 | # config.status does its own redirection, appending to config.log. | |
13237 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13238 | # by configure, so config.status won't be able to write to it; its | |
13239 | # output is simply discarded. So we exec the FD to /dev/null, | |
13240 | # effectively closing config.log, so it can be properly (re)opened and | |
13241 | # appended to by config.status. When coming back to configure, we | |
13242 | # need to make the FD available again. | |
13243 | if test "$no_create" != yes; then | |
13244 | ac_cs_success=: | |
13245 | ac_config_status_args= | |
13246 | test "$silent" = yes && | |
13247 | ac_config_status_args="$ac_config_status_args --quiet" | |
13248 | exec 5>/dev/null | |
13249 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13250 | exec 5>>config.log | |
13251 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13252 | # would make configure fail if this is the last instruction. | |
13253 | $ac_cs_success || { (exit 1); exit 1; } | |
13254 | fi | |
b145d876 ZK |
13255 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13256 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 | |
13257 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | |
13258 | fi | |
795ca3e5 | 13259 | |
2dc95e1c AK |
13260 | |
13261 | if test x$ODIRECT != xyes; then | |
b145d876 ZK |
13262 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13263 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13264 | fi |
809fae91 AK |
13265 | |
13266 | if test x$FSADM == xyes; then | |
b145d876 ZK |
13267 | { $as_echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
13268 | $as_echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 13269 | fi |
06f62ad1 AK |
13270 | |
13271 | if test x$DMEVENTD == xyes; then | |
b145d876 ZK |
13272 | { $as_echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
13273 | $as_echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 13274 | fi |